@everymatrix/casino-random-game 1.77.20 → 1.77.22
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-ByCdDwkD.js → CasinoRandomGame-BCx6_mSm.js} +799 -756
- package/components/CasinoRandomGame-CIt395QJ.cjs +19 -0
- package/components/{CasinoRandomGame-YGA85kwE.js → CasinoRandomGame-DGqtZD9p.js} +805 -762
- 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-TZXxfhwD.cjs +0 -19
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
function
|
|
1
|
+
function C() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function kr(e, t) {
|
|
4
4
|
for (const r in t)
|
|
5
5
|
e[r] = t[r];
|
|
6
6
|
return (
|
|
@@ -8,50 +8,50 @@ function Ur(e, t) {
|
|
|
8
8
|
e
|
|
9
9
|
);
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function Xt(e) {
|
|
12
12
|
return e();
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function pt() {
|
|
15
15
|
return /* @__PURE__ */ Object.create(null);
|
|
16
16
|
}
|
|
17
17
|
function z(e) {
|
|
18
|
-
e.forEach(
|
|
18
|
+
e.forEach(Xt);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function lt(e) {
|
|
21
21
|
return typeof e == "function";
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function zt(e, t) {
|
|
24
24
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
25
25
|
}
|
|
26
26
|
let ge;
|
|
27
|
-
function
|
|
27
|
+
function bt(e, t) {
|
|
28
28
|
return e === t ? !0 : (ge || (ge = document.createElement("a")), ge.href = t, e === ge.href);
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function Vr(e) {
|
|
31
31
|
return Object.keys(e).length === 0;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Jt(e, ...t) {
|
|
34
34
|
if (e == null) {
|
|
35
35
|
for (const n of t)
|
|
36
36
|
n(void 0);
|
|
37
|
-
return
|
|
37
|
+
return C;
|
|
38
38
|
}
|
|
39
39
|
const r = e.subscribe(...t);
|
|
40
40
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
e.$$.on_destroy.push(
|
|
42
|
+
function Wr(e, t, r) {
|
|
43
|
+
e.$$.on_destroy.push(Jt(t, r));
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Xr(e, t, r, n) {
|
|
46
46
|
if (e) {
|
|
47
|
-
const i =
|
|
47
|
+
const i = Zt(e, t, r, n);
|
|
48
48
|
return e[0](i);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
return e[1] && n ?
|
|
51
|
+
function Zt(e, t, r, n) {
|
|
52
|
+
return e[1] && n ? kr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function zr(e, t, r, n) {
|
|
55
55
|
if (e[2] && n) {
|
|
56
56
|
const i = e[2](n(r));
|
|
57
57
|
if (t.dirty === void 0)
|
|
@@ -66,13 +66,13 @@ function jr(e, t, r, n) {
|
|
|
66
66
|
}
|
|
67
67
|
return t.dirty;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function Jr(e, t, r, n, i, o) {
|
|
70
70
|
if (i) {
|
|
71
|
-
const a =
|
|
71
|
+
const a = Zt(t, r, n, o);
|
|
72
72
|
e.p(a, i);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function Zr(e) {
|
|
76
76
|
if (e.ctx.length > 32) {
|
|
77
77
|
const t = [], r = e.ctx.length / 32;
|
|
78
78
|
for (let n = 0; n < r; n++)
|
|
@@ -81,17 +81,17 @@ function Vr(e) {
|
|
|
81
81
|
}
|
|
82
82
|
return -1;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function _(e, t) {
|
|
85
85
|
e.appendChild(t);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
const n =
|
|
87
|
+
function Qr(e, t, r) {
|
|
88
|
+
const n = Yr(e);
|
|
89
89
|
if (!n.getElementById(t)) {
|
|
90
|
-
const i =
|
|
91
|
-
i.id = t, i.textContent = r,
|
|
90
|
+
const i = w("style");
|
|
91
|
+
i.id = t, i.textContent = r, qr(n, i);
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function Yr(e) {
|
|
95
95
|
if (!e)
|
|
96
96
|
return document;
|
|
97
97
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -101,8 +101,8 @@ function Xr(e) {
|
|
|
101
101
|
t
|
|
102
102
|
) : e.ownerDocument;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
return
|
|
104
|
+
function qr(e, t) {
|
|
105
|
+
return _(
|
|
106
106
|
/** @type {Document} */
|
|
107
107
|
e.head || e,
|
|
108
108
|
t
|
|
@@ -111,17 +111,17 @@ function zr(e, t) {
|
|
|
111
111
|
function I(e, t, r) {
|
|
112
112
|
e.insertBefore(t, r || null);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function O(e) {
|
|
115
115
|
e.parentNode && e.parentNode.removeChild(e);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function Kr(e, t) {
|
|
118
118
|
for (let r = 0; r < e.length; r += 1)
|
|
119
119
|
e[r] && e[r].d(t);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function w(e) {
|
|
122
122
|
return document.createElement(e);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function gt(e) {
|
|
125
125
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
126
126
|
}
|
|
127
127
|
function j(e) {
|
|
@@ -136,14 +136,14 @@ function Te(e, t, r, n) {
|
|
|
136
136
|
function g(e, t, r) {
|
|
137
137
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function en(e) {
|
|
140
140
|
return Array.from(e.childNodes);
|
|
141
141
|
}
|
|
142
142
|
function X(e, t) {
|
|
143
143
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
144
144
|
t);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function tn(e) {
|
|
147
147
|
const t = {};
|
|
148
148
|
return e.childNodes.forEach(
|
|
149
149
|
/** @param {Element} node */
|
|
@@ -152,72 +152,72 @@ function Qr(e) {
|
|
|
152
152
|
}
|
|
153
153
|
), t;
|
|
154
154
|
}
|
|
155
|
-
let
|
|
156
|
-
function
|
|
157
|
-
|
|
155
|
+
let ce;
|
|
156
|
+
function le(e) {
|
|
157
|
+
ce = e;
|
|
158
158
|
}
|
|
159
|
-
function
|
|
160
|
-
if (!
|
|
159
|
+
function rn() {
|
|
160
|
+
if (!ce)
|
|
161
161
|
throw new Error("Function called outside component initialization");
|
|
162
|
-
return
|
|
162
|
+
return ce;
|
|
163
163
|
}
|
|
164
|
-
function
|
|
165
|
-
|
|
164
|
+
function nn(e) {
|
|
165
|
+
rn().$$.on_mount.push(e);
|
|
166
166
|
}
|
|
167
167
|
const q = [], He = [];
|
|
168
168
|
let K = [];
|
|
169
|
-
const
|
|
170
|
-
let
|
|
171
|
-
function
|
|
172
|
-
|
|
169
|
+
const yt = [], Qt = /* @__PURE__ */ Promise.resolve();
|
|
170
|
+
let We = !1;
|
|
171
|
+
function Yt() {
|
|
172
|
+
We || (We = !0, Qt.then(R));
|
|
173
173
|
}
|
|
174
|
-
function
|
|
175
|
-
return
|
|
174
|
+
function on() {
|
|
175
|
+
return Yt(), Qt;
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function Xe(e) {
|
|
178
178
|
K.push(e);
|
|
179
179
|
}
|
|
180
|
-
const
|
|
180
|
+
const Ge = /* @__PURE__ */ new Set();
|
|
181
181
|
let Q = 0;
|
|
182
|
-
function
|
|
182
|
+
function R() {
|
|
183
183
|
if (Q !== 0)
|
|
184
184
|
return;
|
|
185
|
-
const e =
|
|
185
|
+
const e = ce;
|
|
186
186
|
do {
|
|
187
187
|
try {
|
|
188
188
|
for (; Q < q.length; ) {
|
|
189
189
|
const t = q[Q];
|
|
190
|
-
Q++,
|
|
190
|
+
Q++, le(t), an(t.$$);
|
|
191
191
|
}
|
|
192
192
|
} catch (t) {
|
|
193
193
|
throw q.length = 0, Q = 0, t;
|
|
194
194
|
}
|
|
195
|
-
for (
|
|
195
|
+
for (le(null), q.length = 0, Q = 0; He.length; )
|
|
196
196
|
He.pop()();
|
|
197
197
|
for (let t = 0; t < K.length; t += 1) {
|
|
198
198
|
const r = K[t];
|
|
199
|
-
|
|
199
|
+
Ge.has(r) || (Ge.add(r), r());
|
|
200
200
|
}
|
|
201
201
|
K.length = 0;
|
|
202
202
|
} while (q.length);
|
|
203
|
-
for (;
|
|
204
|
-
|
|
205
|
-
|
|
203
|
+
for (; yt.length; )
|
|
204
|
+
yt.pop()();
|
|
205
|
+
We = !1, Ge.clear(), le(e);
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function an(e) {
|
|
208
208
|
if (e.fragment !== null) {
|
|
209
209
|
e.update(), z(e.before_update);
|
|
210
210
|
const t = e.dirty;
|
|
211
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
211
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Xe);
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function sn(e) {
|
|
215
215
|
const t = [], r = [];
|
|
216
216
|
K.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), K = t;
|
|
217
217
|
}
|
|
218
218
|
const _e = /* @__PURE__ */ new Set();
|
|
219
219
|
let W;
|
|
220
|
-
function
|
|
220
|
+
function un() {
|
|
221
221
|
W = {
|
|
222
222
|
r: 0,
|
|
223
223
|
c: [],
|
|
@@ -225,13 +225,13 @@ function rn() {
|
|
|
225
225
|
// parent group
|
|
226
226
|
};
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function ln() {
|
|
229
229
|
W.r || z(W.c), W = W.p;
|
|
230
230
|
}
|
|
231
|
-
function
|
|
231
|
+
function he(e, t) {
|
|
232
232
|
e && e.i && (_e.delete(e), e.i(t));
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function ze(e, t, r, n) {
|
|
235
235
|
if (e && e.o) {
|
|
236
236
|
if (_e.has(e))
|
|
237
237
|
return;
|
|
@@ -241,34 +241,34 @@ function Ve(e, t, r, n) {
|
|
|
241
241
|
} else
|
|
242
242
|
n && n();
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function vt(e) {
|
|
245
245
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
246
246
|
}
|
|
247
|
-
function
|
|
247
|
+
function hn(e, t, r) {
|
|
248
248
|
const { fragment: n, after_update: i } = e.$$;
|
|
249
|
-
n && n.m(t, r),
|
|
250
|
-
const o = e.$$.on_mount.map(
|
|
249
|
+
n && n.m(t, r), Xe(() => {
|
|
250
|
+
const o = e.$$.on_mount.map(Xt).filter(lt);
|
|
251
251
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : z(o), e.$$.on_mount = [];
|
|
252
|
-
}), i.forEach(
|
|
252
|
+
}), i.forEach(Xe);
|
|
253
253
|
}
|
|
254
|
-
function
|
|
254
|
+
function cn(e, t) {
|
|
255
255
|
const r = e.$$;
|
|
256
|
-
r.fragment !== null && (
|
|
256
|
+
r.fragment !== null && (sn(r.after_update), z(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
257
257
|
}
|
|
258
|
-
function
|
|
259
|
-
e.$$.dirty[0] === -1 && (q.push(e),
|
|
258
|
+
function fn(e, t) {
|
|
259
|
+
e.$$.dirty[0] === -1 && (q.push(e), Yt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
260
260
|
}
|
|
261
|
-
function
|
|
262
|
-
const h =
|
|
263
|
-
|
|
261
|
+
function mn(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
262
|
+
const h = ce;
|
|
263
|
+
le(e);
|
|
264
264
|
const l = e.$$ = {
|
|
265
265
|
fragment: null,
|
|
266
266
|
ctx: [],
|
|
267
267
|
// state
|
|
268
268
|
props: o,
|
|
269
|
-
update:
|
|
269
|
+
update: C,
|
|
270
270
|
not_equal: i,
|
|
271
|
-
bound:
|
|
271
|
+
bound: pt(),
|
|
272
272
|
// lifecycle
|
|
273
273
|
on_mount: [],
|
|
274
274
|
on_destroy: [],
|
|
@@ -277,7 +277,7 @@ function un(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
277
277
|
after_update: [],
|
|
278
278
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
279
279
|
// everything else
|
|
280
|
-
callbacks:
|
|
280
|
+
callbacks: pt(),
|
|
281
281
|
dirty: s,
|
|
282
282
|
skip_bound: !1,
|
|
283
283
|
root: t.target || h.$$.root
|
|
@@ -286,19 +286,19 @@ function un(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
286
286
|
let u = !1;
|
|
287
287
|
if (l.ctx = r ? r(e, t.props || {}, (f, c, ...m) => {
|
|
288
288
|
const d = m.length ? m[0] : c;
|
|
289
|
-
return l.ctx && i(l.ctx[f], l.ctx[f] = d) && (!l.skip_bound && l.bound[f] && l.bound[f](d), u &&
|
|
289
|
+
return l.ctx && i(l.ctx[f], l.ctx[f] = d) && (!l.skip_bound && l.bound[f] && l.bound[f](d), u && fn(e, f)), c;
|
|
290
290
|
}) : [], l.update(), u = !0, z(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
291
291
|
if (t.hydrate) {
|
|
292
|
-
const f =
|
|
293
|
-
l.fragment && l.fragment.l(f), f.forEach(
|
|
292
|
+
const f = en(t.target);
|
|
293
|
+
l.fragment && l.fragment.l(f), f.forEach(O);
|
|
294
294
|
} else
|
|
295
295
|
l.fragment && l.fragment.c();
|
|
296
|
-
t.intro &&
|
|
296
|
+
t.intro && he(e.$$.fragment), hn(e, t.target, t.anchor), R();
|
|
297
297
|
}
|
|
298
|
-
|
|
298
|
+
le(h);
|
|
299
299
|
}
|
|
300
|
-
let
|
|
301
|
-
typeof HTMLElement == "function" && (
|
|
300
|
+
let qt;
|
|
301
|
+
typeof HTMLElement == "function" && (qt = class extends HTMLElement {
|
|
302
302
|
/** The Svelte component constructor */
|
|
303
303
|
$$ctor;
|
|
304
304
|
/** Slots */
|
|
@@ -340,7 +340,7 @@ typeof HTMLElement == "function" && (zt = class extends HTMLElement {
|
|
|
340
340
|
let o;
|
|
341
341
|
return {
|
|
342
342
|
c: function() {
|
|
343
|
-
o =
|
|
343
|
+
o = w("slot"), i !== "default" && g(o, "name", i);
|
|
344
344
|
},
|
|
345
345
|
/**
|
|
346
346
|
* @param {HTMLElement} target
|
|
@@ -350,14 +350,14 @@ typeof HTMLElement == "function" && (zt = class extends HTMLElement {
|
|
|
350
350
|
I(h, o, l);
|
|
351
351
|
},
|
|
352
352
|
d: function(h) {
|
|
353
|
-
h &&
|
|
353
|
+
h && O(o);
|
|
354
354
|
}
|
|
355
355
|
};
|
|
356
356
|
};
|
|
357
357
|
};
|
|
358
358
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
359
359
|
return;
|
|
360
|
-
const t = {}, r =
|
|
360
|
+
const t = {}, r = tn(this);
|
|
361
361
|
for (const i of this.$$s)
|
|
362
362
|
i in r && (t[i] = [e(i)]);
|
|
363
363
|
for (const i of this.attributes) {
|
|
@@ -444,8 +444,8 @@ function xe(e, t, r, n) {
|
|
|
444
444
|
return t;
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
|
-
function
|
|
448
|
-
let a = class extends
|
|
447
|
+
function dn(e, t, r, n, i, o) {
|
|
448
|
+
let a = class extends qt {
|
|
449
449
|
constructor() {
|
|
450
450
|
super(e, r, i), this.$$p_d = t;
|
|
451
451
|
}
|
|
@@ -473,7 +473,7 @@ function ln(e, t, r, n, i, o) {
|
|
|
473
473
|
}), e.element = /** @type {any} */
|
|
474
474
|
a, a;
|
|
475
475
|
}
|
|
476
|
-
class
|
|
476
|
+
class pn {
|
|
477
477
|
/**
|
|
478
478
|
* ### PRIVATE API
|
|
479
479
|
*
|
|
@@ -492,7 +492,7 @@ class hn {
|
|
|
492
492
|
$$set = void 0;
|
|
493
493
|
/** @returns {void} */
|
|
494
494
|
$destroy() {
|
|
495
|
-
|
|
495
|
+
cn(this, 1), this.$destroy = C;
|
|
496
496
|
}
|
|
497
497
|
/**
|
|
498
498
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -501,8 +501,8 @@ class hn {
|
|
|
501
501
|
* @returns {() => void}
|
|
502
502
|
*/
|
|
503
503
|
$on(t, r) {
|
|
504
|
-
if (!
|
|
505
|
-
return
|
|
504
|
+
if (!lt(r))
|
|
505
|
+
return C;
|
|
506
506
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
507
507
|
return n.push(r), () => {
|
|
508
508
|
const i = n.indexOf(r);
|
|
@@ -514,11 +514,11 @@ class hn {
|
|
|
514
514
|
* @returns {void}
|
|
515
515
|
*/
|
|
516
516
|
$set(t) {
|
|
517
|
-
this.$$set && !
|
|
517
|
+
this.$$set && !Vr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
|
-
const
|
|
521
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
520
|
+
const bn = "4";
|
|
521
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(bn);
|
|
522
522
|
/*! *****************************************************************************
|
|
523
523
|
Copyright (c) Microsoft Corporation.
|
|
524
524
|
|
|
@@ -533,43 +533,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
533
533
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
534
534
|
PERFORMANCE OF THIS SOFTWARE.
|
|
535
535
|
***************************************************************************** */
|
|
536
|
-
var
|
|
537
|
-
return
|
|
536
|
+
var Je = function(e, t) {
|
|
537
|
+
return Je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
538
538
|
r.__proto__ = n;
|
|
539
539
|
} || function(r, n) {
|
|
540
540
|
for (var i in n)
|
|
541
541
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
542
|
-
},
|
|
542
|
+
}, Je(e, t);
|
|
543
543
|
};
|
|
544
|
-
function
|
|
544
|
+
function de(e, t) {
|
|
545
545
|
if (typeof t != "function" && t !== null)
|
|
546
546
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
547
|
-
|
|
547
|
+
Je(e, t);
|
|
548
548
|
function r() {
|
|
549
549
|
this.constructor = e;
|
|
550
550
|
}
|
|
551
551
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
552
552
|
}
|
|
553
|
-
|
|
554
|
-
return _ = Object.assign || function(t) {
|
|
555
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
556
|
-
r = arguments[n];
|
|
557
|
-
for (var o in r)
|
|
558
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
559
|
-
}
|
|
560
|
-
return t;
|
|
561
|
-
}, _.apply(this, arguments);
|
|
562
|
-
};
|
|
563
|
-
function fn(e, t) {
|
|
564
|
-
var r = {};
|
|
565
|
-
for (var n in e)
|
|
566
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
567
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
568
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
569
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
570
|
-
return r;
|
|
571
|
-
}
|
|
572
|
-
function Xe(e) {
|
|
553
|
+
function Ze(e) {
|
|
573
554
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
574
555
|
if (r)
|
|
575
556
|
return r.call(e);
|
|
@@ -581,7 +562,7 @@ function Xe(e) {
|
|
|
581
562
|
};
|
|
582
563
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
583
564
|
}
|
|
584
|
-
function
|
|
565
|
+
function Qe(e, t) {
|
|
585
566
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
586
567
|
if (!r)
|
|
587
568
|
return e;
|
|
@@ -601,8 +582,8 @@ function ze(e, t) {
|
|
|
601
582
|
}
|
|
602
583
|
return o;
|
|
603
584
|
}
|
|
604
|
-
function
|
|
605
|
-
if (
|
|
585
|
+
function Ye(e, t, r) {
|
|
586
|
+
if (arguments.length === 2)
|
|
606
587
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
607
588
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
608
589
|
return e.concat(o || t);
|
|
@@ -610,13 +591,13 @@ function ee(e, t, r) {
|
|
|
610
591
|
function F(e) {
|
|
611
592
|
return typeof e == "function";
|
|
612
593
|
}
|
|
613
|
-
function
|
|
594
|
+
function Kt(e) {
|
|
614
595
|
var t = function(n) {
|
|
615
596
|
Error.call(n), n.stack = new Error().stack;
|
|
616
597
|
}, r = e(t);
|
|
617
598
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
618
599
|
}
|
|
619
|
-
var
|
|
600
|
+
var Ue = Kt(function(e) {
|
|
620
601
|
return function(r) {
|
|
621
602
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
622
603
|
` + r.map(function(n, i) {
|
|
@@ -625,13 +606,13 @@ var Ce = Jt(function(e) {
|
|
|
625
606
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
626
607
|
};
|
|
627
608
|
});
|
|
628
|
-
function
|
|
609
|
+
function qe(e, t) {
|
|
629
610
|
if (e) {
|
|
630
611
|
var r = e.indexOf(t);
|
|
631
612
|
0 <= r && e.splice(r, 1);
|
|
632
613
|
}
|
|
633
614
|
}
|
|
634
|
-
var
|
|
615
|
+
var Oe = function() {
|
|
635
616
|
function e(t) {
|
|
636
617
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
637
618
|
}
|
|
@@ -643,7 +624,7 @@ var Pe = function() {
|
|
|
643
624
|
if (a)
|
|
644
625
|
if (this._parentage = null, Array.isArray(a))
|
|
645
626
|
try {
|
|
646
|
-
for (var s =
|
|
627
|
+
for (var s = Ze(a), h = s.next(); !h.done; h = s.next()) {
|
|
647
628
|
var l = h.value;
|
|
648
629
|
l.remove(this);
|
|
649
630
|
}
|
|
@@ -664,18 +645,18 @@ var Pe = function() {
|
|
|
664
645
|
try {
|
|
665
646
|
u();
|
|
666
647
|
} catch (p) {
|
|
667
|
-
o = p instanceof
|
|
648
|
+
o = p instanceof Ue ? p.errors : [p];
|
|
668
649
|
}
|
|
669
650
|
var f = this._finalizers;
|
|
670
651
|
if (f) {
|
|
671
652
|
this._finalizers = null;
|
|
672
653
|
try {
|
|
673
|
-
for (var c =
|
|
654
|
+
for (var c = Ze(f), m = c.next(); !m.done; m = c.next()) {
|
|
674
655
|
var d = m.value;
|
|
675
656
|
try {
|
|
676
|
-
|
|
657
|
+
_t(d);
|
|
677
658
|
} catch (p) {
|
|
678
|
-
o = o ?? [], p instanceof
|
|
659
|
+
o = o ?? [], p instanceof Ue ? o = Ye(Ye([], Qe(o)), Qe(p.errors)) : o.push(p);
|
|
679
660
|
}
|
|
680
661
|
}
|
|
681
662
|
} catch (p) {
|
|
@@ -690,13 +671,13 @@ var Pe = function() {
|
|
|
690
671
|
}
|
|
691
672
|
}
|
|
692
673
|
if (o)
|
|
693
|
-
throw new
|
|
674
|
+
throw new Ue(o);
|
|
694
675
|
}
|
|
695
676
|
}, e.prototype.add = function(t) {
|
|
696
677
|
var r;
|
|
697
678
|
if (t && t !== this)
|
|
698
679
|
if (this.closed)
|
|
699
|
-
|
|
680
|
+
_t(t);
|
|
700
681
|
else {
|
|
701
682
|
if (t instanceof e) {
|
|
702
683
|
if (t.closed || t._hasParent(this))
|
|
@@ -713,52 +694,52 @@ var Pe = function() {
|
|
|
713
694
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
714
695
|
}, e.prototype._removeParent = function(t) {
|
|
715
696
|
var r = this._parentage;
|
|
716
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
697
|
+
r === t ? this._parentage = null : Array.isArray(r) && qe(r, t);
|
|
717
698
|
}, e.prototype.remove = function(t) {
|
|
718
699
|
var r = this._finalizers;
|
|
719
|
-
r &&
|
|
700
|
+
r && qe(r, t), t instanceof e && t._removeParent(this);
|
|
720
701
|
}, e.EMPTY = function() {
|
|
721
702
|
var t = new e();
|
|
722
703
|
return t.closed = !0, t;
|
|
723
704
|
}(), e;
|
|
724
|
-
}(),
|
|
725
|
-
function
|
|
726
|
-
return e instanceof
|
|
705
|
+
}(), er = Oe.EMPTY;
|
|
706
|
+
function tr(e) {
|
|
707
|
+
return e instanceof Oe || e && "closed" in e && F(e.remove) && F(e.add) && F(e.unsubscribe);
|
|
727
708
|
}
|
|
728
|
-
function
|
|
709
|
+
function _t(e) {
|
|
729
710
|
F(e) ? e() : e.unsubscribe();
|
|
730
711
|
}
|
|
731
|
-
var
|
|
712
|
+
var gn = {
|
|
732
713
|
Promise: void 0
|
|
733
|
-
},
|
|
714
|
+
}, yn = {
|
|
734
715
|
setTimeout: function(e, t) {
|
|
735
716
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
736
717
|
r[n - 2] = arguments[n];
|
|
737
|
-
return setTimeout.apply(void 0,
|
|
718
|
+
return setTimeout.apply(void 0, Ye([e, t], Qe(r)));
|
|
738
719
|
},
|
|
739
720
|
clearTimeout: function(e) {
|
|
740
721
|
return clearTimeout(e);
|
|
741
722
|
},
|
|
742
723
|
delegate: void 0
|
|
743
724
|
};
|
|
744
|
-
function
|
|
745
|
-
|
|
725
|
+
function vn(e) {
|
|
726
|
+
yn.setTimeout(function() {
|
|
746
727
|
throw e;
|
|
747
728
|
});
|
|
748
729
|
}
|
|
749
|
-
function
|
|
730
|
+
function xt() {
|
|
750
731
|
}
|
|
751
732
|
function Ee(e) {
|
|
752
733
|
e();
|
|
753
734
|
}
|
|
754
|
-
var
|
|
755
|
-
|
|
735
|
+
var rr = function(e) {
|
|
736
|
+
de(t, e);
|
|
756
737
|
function t(r) {
|
|
757
738
|
var n = e.call(this) || this;
|
|
758
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
739
|
+
return n.isStopped = !1, r ? (n.destination = r, tr(r) && r.add(n)) : n.destination = En, n;
|
|
759
740
|
}
|
|
760
741
|
return t.create = function(r, n, i) {
|
|
761
|
-
return new
|
|
742
|
+
return new Ke(r, n, i);
|
|
762
743
|
}, t.prototype.next = function(r) {
|
|
763
744
|
this.isStopped || this._next(r);
|
|
764
745
|
}, t.prototype.error = function(r) {
|
|
@@ -782,7 +763,7 @@ var Yt = function(e) {
|
|
|
782
763
|
this.unsubscribe();
|
|
783
764
|
}
|
|
784
765
|
}, t;
|
|
785
|
-
}(
|
|
766
|
+
}(Oe), _n = function() {
|
|
786
767
|
function e(t) {
|
|
787
768
|
this.partialObserver = t;
|
|
788
769
|
}
|
|
@@ -813,43 +794,43 @@ var Yt = function(e) {
|
|
|
813
794
|
ye(r);
|
|
814
795
|
}
|
|
815
796
|
}, e;
|
|
816
|
-
}(),
|
|
817
|
-
|
|
797
|
+
}(), Ke = function(e) {
|
|
798
|
+
de(t, e);
|
|
818
799
|
function t(r, n, i) {
|
|
819
800
|
var o = e.call(this) || this, a;
|
|
820
801
|
return F(r) || !r ? a = {
|
|
821
802
|
next: r ?? void 0,
|
|
822
803
|
error: n ?? void 0,
|
|
823
804
|
complete: i ?? void 0
|
|
824
|
-
} : a = r, o.destination = new
|
|
805
|
+
} : a = r, o.destination = new _n(a), o;
|
|
825
806
|
}
|
|
826
807
|
return t;
|
|
827
|
-
}(
|
|
808
|
+
}(rr);
|
|
828
809
|
function ye(e) {
|
|
829
|
-
|
|
810
|
+
vn(e);
|
|
830
811
|
}
|
|
831
|
-
function
|
|
812
|
+
function xn(e) {
|
|
832
813
|
throw e;
|
|
833
814
|
}
|
|
834
|
-
var
|
|
815
|
+
var En = {
|
|
835
816
|
closed: !0,
|
|
836
|
-
next:
|
|
837
|
-
error:
|
|
838
|
-
complete:
|
|
839
|
-
},
|
|
817
|
+
next: xt,
|
|
818
|
+
error: xn,
|
|
819
|
+
complete: xt
|
|
820
|
+
}, wn = function() {
|
|
840
821
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
841
822
|
}();
|
|
842
|
-
function
|
|
823
|
+
function Sn(e) {
|
|
843
824
|
return e;
|
|
844
825
|
}
|
|
845
|
-
function
|
|
846
|
-
return e.length === 0 ?
|
|
826
|
+
function Tn(e) {
|
|
827
|
+
return e.length === 0 ? Sn : e.length === 1 ? e[0] : function(r) {
|
|
847
828
|
return e.reduce(function(n, i) {
|
|
848
829
|
return i(n);
|
|
849
830
|
}, r);
|
|
850
831
|
};
|
|
851
832
|
}
|
|
852
|
-
var
|
|
833
|
+
var Et = function() {
|
|
853
834
|
function e(t) {
|
|
854
835
|
t && (this._subscribe = t);
|
|
855
836
|
}
|
|
@@ -857,7 +838,7 @@ var gt = function() {
|
|
|
857
838
|
var r = new e();
|
|
858
839
|
return r.source = this, r.operator = t, r;
|
|
859
840
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
860
|
-
var i = this, o =
|
|
841
|
+
var i = this, o = Bn(t) ? t : new Ke(t, r, n);
|
|
861
842
|
return Ee(function() {
|
|
862
843
|
var a = i, s = a.operator, h = a.source;
|
|
863
844
|
o.add(s ? s.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -870,8 +851,8 @@ var gt = function() {
|
|
|
870
851
|
}
|
|
871
852
|
}, e.prototype.forEach = function(t, r) {
|
|
872
853
|
var n = this;
|
|
873
|
-
return r =
|
|
874
|
-
var a = new
|
|
854
|
+
return r = wt(r), new r(function(i, o) {
|
|
855
|
+
var a = new Ke({
|
|
875
856
|
next: function(s) {
|
|
876
857
|
try {
|
|
877
858
|
t(s);
|
|
@@ -887,15 +868,15 @@ var gt = function() {
|
|
|
887
868
|
}, e.prototype._subscribe = function(t) {
|
|
888
869
|
var r;
|
|
889
870
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
890
|
-
}, e.prototype[
|
|
871
|
+
}, e.prototype[wn] = function() {
|
|
891
872
|
return this;
|
|
892
873
|
}, e.prototype.pipe = function() {
|
|
893
874
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
894
875
|
t[r] = arguments[r];
|
|
895
|
-
return
|
|
876
|
+
return Tn(t)(this);
|
|
896
877
|
}, e.prototype.toPromise = function(t) {
|
|
897
878
|
var r = this;
|
|
898
|
-
return t =
|
|
879
|
+
return t = wt(t), new t(function(n, i) {
|
|
899
880
|
var o;
|
|
900
881
|
r.subscribe(function(a) {
|
|
901
882
|
return o = a;
|
|
@@ -909,32 +890,32 @@ var gt = function() {
|
|
|
909
890
|
return new e(t);
|
|
910
891
|
}, e;
|
|
911
892
|
}();
|
|
912
|
-
function
|
|
893
|
+
function wt(e) {
|
|
913
894
|
var t;
|
|
914
|
-
return (t = e ??
|
|
895
|
+
return (t = e ?? gn.Promise) !== null && t !== void 0 ? t : Promise;
|
|
915
896
|
}
|
|
916
|
-
function
|
|
897
|
+
function Hn(e) {
|
|
917
898
|
return e && F(e.next) && F(e.error) && F(e.complete);
|
|
918
899
|
}
|
|
919
|
-
function
|
|
920
|
-
return e && e instanceof
|
|
900
|
+
function Bn(e) {
|
|
901
|
+
return e && e instanceof rr || Hn(e) && tr(e);
|
|
921
902
|
}
|
|
922
|
-
var
|
|
903
|
+
var An = Kt(function(e) {
|
|
923
904
|
return function() {
|
|
924
905
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
925
906
|
};
|
|
926
|
-
}),
|
|
927
|
-
|
|
907
|
+
}), nr = function(e) {
|
|
908
|
+
de(t, e);
|
|
928
909
|
function t() {
|
|
929
910
|
var r = e.call(this) || this;
|
|
930
911
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
931
912
|
}
|
|
932
913
|
return t.prototype.lift = function(r) {
|
|
933
|
-
var n = new
|
|
914
|
+
var n = new St(this, this);
|
|
934
915
|
return n.operator = r, n;
|
|
935
916
|
}, t.prototype._throwIfClosed = function() {
|
|
936
917
|
if (this.closed)
|
|
937
|
-
throw new
|
|
918
|
+
throw new An();
|
|
938
919
|
}, t.prototype.next = function(r) {
|
|
939
920
|
var n = this;
|
|
940
921
|
Ee(function() {
|
|
@@ -942,7 +923,7 @@ var Sn = Jt(function(e) {
|
|
|
942
923
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
943
924
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
944
925
|
try {
|
|
945
|
-
for (var a =
|
|
926
|
+
for (var a = Ze(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
946
927
|
var h = s.value;
|
|
947
928
|
h.next(r);
|
|
948
929
|
}
|
|
@@ -991,20 +972,20 @@ var Sn = Jt(function(e) {
|
|
|
991
972
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
992
973
|
}, t.prototype._innerSubscribe = function(r) {
|
|
993
974
|
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
994
|
-
return o || a ?
|
|
995
|
-
n.currentObservers = null,
|
|
975
|
+
return o || a ? er : (this.currentObservers = null, s.push(r), new Oe(function() {
|
|
976
|
+
n.currentObservers = null, qe(s, r);
|
|
996
977
|
}));
|
|
997
978
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
998
979
|
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
999
980
|
i ? r.error(o) : a && r.complete();
|
|
1000
981
|
}, t.prototype.asObservable = function() {
|
|
1001
|
-
var r = new
|
|
982
|
+
var r = new Et();
|
|
1002
983
|
return r.source = this, r;
|
|
1003
984
|
}, t.create = function(r, n) {
|
|
1004
|
-
return new
|
|
985
|
+
return new St(r, n);
|
|
1005
986
|
}, t;
|
|
1006
|
-
}(
|
|
1007
|
-
|
|
987
|
+
}(Et), St = function(e) {
|
|
988
|
+
de(t, e);
|
|
1008
989
|
function t(r, n) {
|
|
1009
990
|
var i = e.call(this) || this;
|
|
1010
991
|
return i.destination = r, i.source = n, i;
|
|
@@ -1020,17 +1001,17 @@ var Sn = Jt(function(e) {
|
|
|
1020
1001
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1021
1002
|
}, t.prototype._subscribe = function(r) {
|
|
1022
1003
|
var n, i;
|
|
1023
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1004
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : er;
|
|
1024
1005
|
}, t;
|
|
1025
|
-
}(
|
|
1006
|
+
}(nr), ir = {
|
|
1026
1007
|
now: function() {
|
|
1027
|
-
return (
|
|
1008
|
+
return (ir.delegate || Date).now();
|
|
1028
1009
|
},
|
|
1029
1010
|
delegate: void 0
|
|
1030
|
-
},
|
|
1031
|
-
|
|
1011
|
+
}, Pn = function(e) {
|
|
1012
|
+
de(t, e);
|
|
1032
1013
|
function t(r, n, i) {
|
|
1033
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1014
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = ir);
|
|
1034
1015
|
var o = e.call(this) || this;
|
|
1035
1016
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
1036
1017
|
}
|
|
@@ -1050,24 +1031,24 @@ var Sn = Jt(function(e) {
|
|
|
1050
1031
|
l && o.splice(0, l + 1);
|
|
1051
1032
|
}
|
|
1052
1033
|
}, t;
|
|
1053
|
-
}(
|
|
1054
|
-
const
|
|
1055
|
-
if (
|
|
1056
|
-
const r = new
|
|
1057
|
-
|
|
1034
|
+
}(nr);
|
|
1035
|
+
const Tt = [], Ht = {}, On = (e, t = 0) => {
|
|
1036
|
+
if (Tt.indexOf(e) == -1) {
|
|
1037
|
+
const r = new Pn(t);
|
|
1038
|
+
Ht[e] = r, Tt.push(e);
|
|
1058
1039
|
}
|
|
1059
|
-
return
|
|
1040
|
+
return Ht[e];
|
|
1060
1041
|
}, Y = [];
|
|
1061
|
-
function
|
|
1042
|
+
function Rn(e, t) {
|
|
1062
1043
|
return {
|
|
1063
1044
|
subscribe: Re(e, t).subscribe
|
|
1064
1045
|
};
|
|
1065
1046
|
}
|
|
1066
|
-
function Re(e, t =
|
|
1047
|
+
function Re(e, t = C) {
|
|
1067
1048
|
let r;
|
|
1068
1049
|
const n = /* @__PURE__ */ new Set();
|
|
1069
1050
|
function i(s) {
|
|
1070
|
-
if (
|
|
1051
|
+
if (zt(e, s) && (e = s, r)) {
|
|
1071
1052
|
const h = !Y.length;
|
|
1072
1053
|
for (const l of n)
|
|
1073
1054
|
l[1](), Y.push(l, e);
|
|
@@ -1081,31 +1062,31 @@ function Re(e, t = M) {
|
|
|
1081
1062
|
function o(s) {
|
|
1082
1063
|
i(s(e));
|
|
1083
1064
|
}
|
|
1084
|
-
function a(s, h =
|
|
1065
|
+
function a(s, h = C) {
|
|
1085
1066
|
const l = [s, h];
|
|
1086
|
-
return n.add(l), n.size === 1 && (r = t(i, o) ||
|
|
1067
|
+
return n.add(l), n.size === 1 && (r = t(i, o) || C), s(e), () => {
|
|
1087
1068
|
n.delete(l), n.size === 0 && r && (r(), r = null);
|
|
1088
1069
|
};
|
|
1089
1070
|
}
|
|
1090
1071
|
return { set: i, update: o, subscribe: a };
|
|
1091
1072
|
}
|
|
1092
|
-
function
|
|
1073
|
+
function ie(e, t, r) {
|
|
1093
1074
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1094
1075
|
if (!i.every(Boolean))
|
|
1095
1076
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1096
1077
|
const o = t.length < 2;
|
|
1097
|
-
return
|
|
1078
|
+
return Rn(r, (a, s) => {
|
|
1098
1079
|
let h = !1;
|
|
1099
1080
|
const l = [];
|
|
1100
|
-
let u = 0, f =
|
|
1081
|
+
let u = 0, f = C;
|
|
1101
1082
|
const c = () => {
|
|
1102
1083
|
if (u)
|
|
1103
1084
|
return;
|
|
1104
1085
|
f();
|
|
1105
1086
|
const d = t(n ? l[0] : l, a, s);
|
|
1106
|
-
o ? a(d) : f =
|
|
1087
|
+
o ? a(d) : f = lt(d) ? d : C;
|
|
1107
1088
|
}, m = i.map(
|
|
1108
|
-
(d, p) =>
|
|
1089
|
+
(d, p) => Jt(
|
|
1109
1090
|
d,
|
|
1110
1091
|
(A) => {
|
|
1111
1092
|
l[p] = A, u &= ~(1 << p), h && c();
|
|
@@ -1120,111 +1101,153 @@ function oe(e, t, r) {
|
|
|
1120
1101
|
};
|
|
1121
1102
|
});
|
|
1122
1103
|
}
|
|
1123
|
-
function
|
|
1104
|
+
function In(e) {
|
|
1124
1105
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1125
1106
|
}
|
|
1126
|
-
var
|
|
1127
|
-
return
|
|
1107
|
+
var Nn = function(t) {
|
|
1108
|
+
return Ln(t) && !Mn(t);
|
|
1128
1109
|
};
|
|
1129
|
-
function
|
|
1110
|
+
function Ln(e) {
|
|
1130
1111
|
return !!e && typeof e == "object";
|
|
1131
1112
|
}
|
|
1132
|
-
function
|
|
1113
|
+
function Mn(e) {
|
|
1133
1114
|
var t = Object.prototype.toString.call(e);
|
|
1134
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1115
|
+
return t === "[object RegExp]" || t === "[object Date]" || Un(e);
|
|
1135
1116
|
}
|
|
1136
|
-
var
|
|
1137
|
-
function
|
|
1138
|
-
return e.$$typeof ===
|
|
1117
|
+
var Cn = typeof Symbol == "function" && Symbol.for, Gn = Cn ? Symbol.for("react.element") : 60103;
|
|
1118
|
+
function Un(e) {
|
|
1119
|
+
return e.$$typeof === Gn;
|
|
1139
1120
|
}
|
|
1140
|
-
function
|
|
1121
|
+
function $n(e) {
|
|
1141
1122
|
return Array.isArray(e) ? [] : {};
|
|
1142
1123
|
}
|
|
1143
|
-
function
|
|
1144
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1124
|
+
function fe(e, t) {
|
|
1125
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ee($n(e), e, t) : e;
|
|
1145
1126
|
}
|
|
1146
|
-
function
|
|
1127
|
+
function Fn(e, t, r) {
|
|
1147
1128
|
return e.concat(t).map(function(n) {
|
|
1148
|
-
return
|
|
1129
|
+
return fe(n, r);
|
|
1149
1130
|
});
|
|
1150
1131
|
}
|
|
1151
|
-
function
|
|
1132
|
+
function Dn(e, t) {
|
|
1152
1133
|
if (!t.customMerge)
|
|
1153
|
-
return
|
|
1134
|
+
return ee;
|
|
1154
1135
|
var r = t.customMerge(e);
|
|
1155
|
-
return typeof r == "function" ? r :
|
|
1136
|
+
return typeof r == "function" ? r : ee;
|
|
1156
1137
|
}
|
|
1157
|
-
function
|
|
1138
|
+
function jn(e) {
|
|
1158
1139
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1159
1140
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1160
1141
|
}) : [];
|
|
1161
1142
|
}
|
|
1162
|
-
function
|
|
1163
|
-
return Object.keys(e).concat(
|
|
1143
|
+
function Bt(e) {
|
|
1144
|
+
return Object.keys(e).concat(jn(e));
|
|
1164
1145
|
}
|
|
1165
|
-
function
|
|
1146
|
+
function or(e, t) {
|
|
1166
1147
|
try {
|
|
1167
1148
|
return t in e;
|
|
1168
1149
|
} catch {
|
|
1169
1150
|
return !1;
|
|
1170
1151
|
}
|
|
1171
1152
|
}
|
|
1172
|
-
function
|
|
1173
|
-
return
|
|
1153
|
+
function kn(e, t) {
|
|
1154
|
+
return or(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1174
1155
|
}
|
|
1175
|
-
function
|
|
1156
|
+
function Vn(e, t, r) {
|
|
1176
1157
|
var n = {};
|
|
1177
|
-
return r.isMergeableObject(e) &&
|
|
1178
|
-
n[i] =
|
|
1179
|
-
}),
|
|
1180
|
-
|
|
1158
|
+
return r.isMergeableObject(e) && Bt(e).forEach(function(i) {
|
|
1159
|
+
n[i] = fe(e[i], r);
|
|
1160
|
+
}), Bt(t).forEach(function(i) {
|
|
1161
|
+
kn(e, i) || (or(e, i) && r.isMergeableObject(t[i]) ? n[i] = Dn(i, r)(e[i], t[i], r) : n[i] = fe(t[i], r));
|
|
1181
1162
|
}), n;
|
|
1182
1163
|
}
|
|
1183
|
-
function
|
|
1184
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1164
|
+
function ee(e, t, r) {
|
|
1165
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Fn, r.isMergeableObject = r.isMergeableObject || Nn, r.cloneUnlessOtherwiseSpecified = fe;
|
|
1185
1166
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1186
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1167
|
+
return o ? n ? r.arrayMerge(e, t, r) : Vn(e, t, r) : fe(t, r);
|
|
1187
1168
|
}
|
|
1188
|
-
|
|
1169
|
+
ee.all = function(t, r) {
|
|
1189
1170
|
if (!Array.isArray(t))
|
|
1190
1171
|
throw new Error("first argument should be an array");
|
|
1191
1172
|
return t.reduce(function(n, i) {
|
|
1192
|
-
return
|
|
1173
|
+
return ee(n, i, r);
|
|
1193
1174
|
}, {});
|
|
1194
1175
|
};
|
|
1195
|
-
var
|
|
1196
|
-
const
|
|
1197
|
-
function
|
|
1198
|
-
|
|
1176
|
+
var Wn = ee, Xn = Wn;
|
|
1177
|
+
const zn = /* @__PURE__ */ In(Xn);
|
|
1178
|
+
var et = function(e, t) {
|
|
1179
|
+
return et = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1180
|
+
r.__proto__ = n;
|
|
1181
|
+
} || function(r, n) {
|
|
1182
|
+
for (var i in n)
|
|
1183
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1184
|
+
}, et(e, t);
|
|
1185
|
+
};
|
|
1186
|
+
function Ie(e, t) {
|
|
1187
|
+
if (typeof t != "function" && t !== null)
|
|
1188
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1189
|
+
et(e, t);
|
|
1190
|
+
function r() {
|
|
1191
|
+
this.constructor = e;
|
|
1192
|
+
}
|
|
1193
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1194
|
+
}
|
|
1195
|
+
var M = function() {
|
|
1196
|
+
return M = Object.assign || function(t) {
|
|
1197
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1198
|
+
r = arguments[n];
|
|
1199
|
+
for (var o in r)
|
|
1200
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1201
|
+
}
|
|
1202
|
+
return t;
|
|
1203
|
+
}, M.apply(this, arguments);
|
|
1204
|
+
};
|
|
1205
|
+
function Jn(e, t) {
|
|
1206
|
+
var r = {};
|
|
1207
|
+
for (var n in e)
|
|
1208
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1209
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1210
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1211
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1212
|
+
return r;
|
|
1213
|
+
}
|
|
1214
|
+
function $e(e, t, r) {
|
|
1215
|
+
if (r || arguments.length === 2)
|
|
1216
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1217
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1218
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1219
|
+
}
|
|
1220
|
+
function Fe(e, t) {
|
|
1221
|
+
var r = t && t.cache ? t.cache : ti, n = t && t.serializer ? t.serializer : Kn, i = t && t.strategy ? t.strategy : Yn;
|
|
1199
1222
|
return i(e, {
|
|
1200
1223
|
cache: r,
|
|
1201
1224
|
serializer: n
|
|
1202
1225
|
});
|
|
1203
1226
|
}
|
|
1204
|
-
function
|
|
1227
|
+
function Zn(e) {
|
|
1205
1228
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1206
1229
|
}
|
|
1207
|
-
function
|
|
1208
|
-
var i =
|
|
1230
|
+
function Qn(e, t, r, n) {
|
|
1231
|
+
var i = Zn(n) ? n : r(n), o = t.get(i);
|
|
1209
1232
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1210
1233
|
}
|
|
1211
|
-
function
|
|
1234
|
+
function ar(e, t, r) {
|
|
1212
1235
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1213
1236
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1214
1237
|
}
|
|
1215
|
-
function
|
|
1238
|
+
function sr(e, t, r, n, i) {
|
|
1216
1239
|
return r.bind(t, e, n, i);
|
|
1217
1240
|
}
|
|
1218
|
-
function
|
|
1219
|
-
var r = e.length === 1 ?
|
|
1220
|
-
return
|
|
1241
|
+
function Yn(e, t) {
|
|
1242
|
+
var r = e.length === 1 ? Qn : ar;
|
|
1243
|
+
return sr(e, this, r, t.cache.create(), t.serializer);
|
|
1221
1244
|
}
|
|
1222
|
-
function
|
|
1223
|
-
return
|
|
1245
|
+
function qn(e, t) {
|
|
1246
|
+
return sr(e, this, ar, t.cache.create(), t.serializer);
|
|
1224
1247
|
}
|
|
1225
|
-
var
|
|
1248
|
+
var Kn = function() {
|
|
1226
1249
|
return JSON.stringify(arguments);
|
|
1227
|
-
},
|
|
1250
|
+
}, ei = (
|
|
1228
1251
|
/** @class */
|
|
1229
1252
|
function() {
|
|
1230
1253
|
function e() {
|
|
@@ -1236,61 +1259,71 @@ var Jn = function() {
|
|
|
1236
1259
|
this.cache[t] = r;
|
|
1237
1260
|
}, e;
|
|
1238
1261
|
}()
|
|
1239
|
-
),
|
|
1262
|
+
), ti = {
|
|
1240
1263
|
create: function() {
|
|
1241
|
-
return new
|
|
1264
|
+
return new ei();
|
|
1242
1265
|
}
|
|
1243
|
-
},
|
|
1244
|
-
variadic:
|
|
1245
|
-
},
|
|
1266
|
+
}, De = {
|
|
1267
|
+
variadic: qn
|
|
1268
|
+
}, Be = function() {
|
|
1269
|
+
return Be = Object.assign || function(t) {
|
|
1270
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1271
|
+
r = arguments[n];
|
|
1272
|
+
for (var o in r)
|
|
1273
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1274
|
+
}
|
|
1275
|
+
return t;
|
|
1276
|
+
}, Be.apply(this, arguments);
|
|
1277
|
+
};
|
|
1278
|
+
var y;
|
|
1246
1279
|
(function(e) {
|
|
1247
1280
|
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";
|
|
1248
1281
|
})(y || (y = {}));
|
|
1249
|
-
var
|
|
1282
|
+
var E;
|
|
1250
1283
|
(function(e) {
|
|
1251
1284
|
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";
|
|
1252
|
-
})(
|
|
1253
|
-
var
|
|
1285
|
+
})(E || (E = {}));
|
|
1286
|
+
var te;
|
|
1254
1287
|
(function(e) {
|
|
1255
1288
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1256
|
-
})(
|
|
1257
|
-
function
|
|
1258
|
-
return e.type ===
|
|
1289
|
+
})(te || (te = {}));
|
|
1290
|
+
function At(e) {
|
|
1291
|
+
return e.type === E.literal;
|
|
1259
1292
|
}
|
|
1260
|
-
function
|
|
1261
|
-
return e.type ===
|
|
1293
|
+
function ri(e) {
|
|
1294
|
+
return e.type === E.argument;
|
|
1262
1295
|
}
|
|
1263
|
-
function
|
|
1264
|
-
return e.type ===
|
|
1296
|
+
function ur(e) {
|
|
1297
|
+
return e.type === E.number;
|
|
1265
1298
|
}
|
|
1266
|
-
function
|
|
1267
|
-
return e.type ===
|
|
1299
|
+
function lr(e) {
|
|
1300
|
+
return e.type === E.date;
|
|
1268
1301
|
}
|
|
1269
|
-
function
|
|
1270
|
-
return e.type ===
|
|
1302
|
+
function hr(e) {
|
|
1303
|
+
return e.type === E.time;
|
|
1271
1304
|
}
|
|
1272
|
-
function
|
|
1273
|
-
return e.type ===
|
|
1305
|
+
function cr(e) {
|
|
1306
|
+
return e.type === E.select;
|
|
1274
1307
|
}
|
|
1275
|
-
function
|
|
1276
|
-
return e.type ===
|
|
1308
|
+
function fr(e) {
|
|
1309
|
+
return e.type === E.plural;
|
|
1277
1310
|
}
|
|
1278
|
-
function
|
|
1279
|
-
return e.type ===
|
|
1311
|
+
function ni(e) {
|
|
1312
|
+
return e.type === E.pound;
|
|
1280
1313
|
}
|
|
1281
|
-
function
|
|
1282
|
-
return e.type ===
|
|
1314
|
+
function mr(e) {
|
|
1315
|
+
return e.type === E.tag;
|
|
1283
1316
|
}
|
|
1284
|
-
function
|
|
1285
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1317
|
+
function dr(e) {
|
|
1318
|
+
return !!(e && typeof e == "object" && e.type === te.number);
|
|
1286
1319
|
}
|
|
1287
|
-
function
|
|
1288
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1320
|
+
function tt(e) {
|
|
1321
|
+
return !!(e && typeof e == "object" && e.type === te.dateTime);
|
|
1289
1322
|
}
|
|
1290
|
-
var
|
|
1291
|
-
function
|
|
1323
|
+
var pr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ii = /(?:[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;
|
|
1324
|
+
function oi(e) {
|
|
1292
1325
|
var t = {};
|
|
1293
|
-
return e.replace(
|
|
1326
|
+
return e.replace(ii, function(r) {
|
|
1294
1327
|
var n = r.length;
|
|
1295
1328
|
switch (r[0]) {
|
|
1296
1329
|
case "G":
|
|
@@ -1379,11 +1412,21 @@ function ei(e) {
|
|
|
1379
1412
|
return "";
|
|
1380
1413
|
}), t;
|
|
1381
1414
|
}
|
|
1382
|
-
var
|
|
1383
|
-
function
|
|
1415
|
+
var S = function() {
|
|
1416
|
+
return S = Object.assign || function(t) {
|
|
1417
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1418
|
+
r = arguments[n];
|
|
1419
|
+
for (var o in r)
|
|
1420
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1421
|
+
}
|
|
1422
|
+
return t;
|
|
1423
|
+
}, S.apply(this, arguments);
|
|
1424
|
+
};
|
|
1425
|
+
var ai = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1426
|
+
function si(e) {
|
|
1384
1427
|
if (e.length === 0)
|
|
1385
1428
|
throw new Error("Number skeleton cannot be empty");
|
|
1386
|
-
for (var t = e.split(
|
|
1429
|
+
for (var t = e.split(ai).filter(function(c) {
|
|
1387
1430
|
return c.length > 0;
|
|
1388
1431
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1389
1432
|
var o = i[n], a = o.split("/");
|
|
@@ -1398,17 +1441,17 @@ function ri(e) {
|
|
|
1398
1441
|
}
|
|
1399
1442
|
return r;
|
|
1400
1443
|
}
|
|
1401
|
-
function
|
|
1444
|
+
function ui(e) {
|
|
1402
1445
|
return e.replace(/^(.*?)-/, "");
|
|
1403
1446
|
}
|
|
1404
|
-
var
|
|
1405
|
-
function
|
|
1447
|
+
var Pt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, br = /^(@+)?(\+|#+)?[rs]?$/g, li = /(\*)(0+)|(#+)(0+)|(0+)/g, gr = /^(0+)$/;
|
|
1448
|
+
function Ot(e) {
|
|
1406
1449
|
var t = {};
|
|
1407
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1450
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(br, function(r, n, i) {
|
|
1408
1451
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1409
1452
|
}), t;
|
|
1410
1453
|
}
|
|
1411
|
-
function
|
|
1454
|
+
function yr(e) {
|
|
1412
1455
|
switch (e) {
|
|
1413
1456
|
case "sign-auto":
|
|
1414
1457
|
return {
|
|
@@ -1448,7 +1491,7 @@ function mr(e) {
|
|
|
1448
1491
|
};
|
|
1449
1492
|
}
|
|
1450
1493
|
}
|
|
1451
|
-
function
|
|
1494
|
+
function hi(e) {
|
|
1452
1495
|
var t;
|
|
1453
1496
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1454
1497
|
notation: "engineering"
|
|
@@ -1456,17 +1499,17 @@ function oi(e) {
|
|
|
1456
1499
|
notation: "scientific"
|
|
1457
1500
|
}, e = e.slice(1)), t) {
|
|
1458
1501
|
var r = e.slice(0, 2);
|
|
1459
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1502
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !gr.test(e))
|
|
1460
1503
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1461
1504
|
t.minimumIntegerDigits = e.length;
|
|
1462
1505
|
}
|
|
1463
1506
|
return t;
|
|
1464
1507
|
}
|
|
1465
|
-
function
|
|
1466
|
-
var t = {}, r =
|
|
1508
|
+
function Rt(e) {
|
|
1509
|
+
var t = {}, r = yr(e);
|
|
1467
1510
|
return r || t;
|
|
1468
1511
|
}
|
|
1469
|
-
function
|
|
1512
|
+
function ci(e) {
|
|
1470
1513
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1471
1514
|
var i = n[r];
|
|
1472
1515
|
switch (i.stem) {
|
|
@@ -1490,7 +1533,7 @@ function ai(e) {
|
|
|
1490
1533
|
continue;
|
|
1491
1534
|
case "measure-unit":
|
|
1492
1535
|
case "unit":
|
|
1493
|
-
t.style = "unit", t.unit =
|
|
1536
|
+
t.style = "unit", t.unit = ui(i.options[0]);
|
|
1494
1537
|
continue;
|
|
1495
1538
|
case "compact-short":
|
|
1496
1539
|
case "K":
|
|
@@ -1501,13 +1544,13 @@ function ai(e) {
|
|
|
1501
1544
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1502
1545
|
continue;
|
|
1503
1546
|
case "scientific":
|
|
1504
|
-
t =
|
|
1505
|
-
return
|
|
1547
|
+
t = S(S(S({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
|
|
1548
|
+
return S(S({}, h), Rt(l));
|
|
1506
1549
|
}, {}));
|
|
1507
1550
|
continue;
|
|
1508
1551
|
case "engineering":
|
|
1509
|
-
t =
|
|
1510
|
-
return
|
|
1552
|
+
t = S(S(S({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
|
|
1553
|
+
return S(S({}, h), Rt(l));
|
|
1511
1554
|
}, {}));
|
|
1512
1555
|
continue;
|
|
1513
1556
|
case "notation-simple":
|
|
@@ -1552,7 +1595,7 @@ function ai(e) {
|
|
|
1552
1595
|
case "integer-width":
|
|
1553
1596
|
if (i.options.length > 1)
|
|
1554
1597
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1555
|
-
i.options[0].replace(
|
|
1598
|
+
i.options[0].replace(li, function(h, l, u, f, c, m) {
|
|
1556
1599
|
if (l)
|
|
1557
1600
|
t.minimumIntegerDigits = u.length;
|
|
1558
1601
|
else {
|
|
@@ -1565,28 +1608,28 @@ function ai(e) {
|
|
|
1565
1608
|
});
|
|
1566
1609
|
continue;
|
|
1567
1610
|
}
|
|
1568
|
-
if (
|
|
1611
|
+
if (gr.test(i.stem)) {
|
|
1569
1612
|
t.minimumIntegerDigits = i.stem.length;
|
|
1570
1613
|
continue;
|
|
1571
1614
|
}
|
|
1572
|
-
if (
|
|
1615
|
+
if (Pt.test(i.stem)) {
|
|
1573
1616
|
if (i.options.length > 1)
|
|
1574
1617
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1575
|
-
i.stem.replace(
|
|
1618
|
+
i.stem.replace(Pt, function(h, l, u, f, c, m) {
|
|
1576
1619
|
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), "";
|
|
1577
1620
|
});
|
|
1578
1621
|
var o = i.options[0];
|
|
1579
|
-
o === "w" ? t =
|
|
1622
|
+
o === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = S(S({}, t), Ot(o)));
|
|
1580
1623
|
continue;
|
|
1581
1624
|
}
|
|
1582
|
-
if (
|
|
1583
|
-
t =
|
|
1625
|
+
if (br.test(i.stem)) {
|
|
1626
|
+
t = S(S({}, t), Ot(i.stem));
|
|
1584
1627
|
continue;
|
|
1585
1628
|
}
|
|
1586
|
-
var a =
|
|
1587
|
-
a && (t =
|
|
1588
|
-
var s =
|
|
1589
|
-
s && (t =
|
|
1629
|
+
var a = yr(i.stem);
|
|
1630
|
+
a && (t = S(S({}, t), a));
|
|
1631
|
+
var s = hi(i.stem);
|
|
1632
|
+
s && (t = S(S({}, t), s));
|
|
1590
1633
|
}
|
|
1591
1634
|
return t;
|
|
1592
1635
|
}
|
|
@@ -3005,13 +3048,13 @@ var ve = {
|
|
|
3005
3048
|
"h"
|
|
3006
3049
|
]
|
|
3007
3050
|
};
|
|
3008
|
-
function
|
|
3051
|
+
function fi(e, t) {
|
|
3009
3052
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3010
3053
|
var i = e.charAt(n);
|
|
3011
3054
|
if (i === "j") {
|
|
3012
3055
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3013
3056
|
o++, n++;
|
|
3014
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", l =
|
|
3057
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", l = mi(t);
|
|
3015
3058
|
for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
|
|
3016
3059
|
r += h;
|
|
3017
3060
|
for (; a-- > 0; )
|
|
@@ -3021,7 +3064,7 @@ function si(e, t) {
|
|
|
3021
3064
|
}
|
|
3022
3065
|
return r;
|
|
3023
3066
|
}
|
|
3024
|
-
function
|
|
3067
|
+
function mi(e) {
|
|
3025
3068
|
var t = e.hourCycle;
|
|
3026
3069
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3027
3070
|
e.hourCycles && // @ts-ignore
|
|
@@ -3043,20 +3086,20 @@ function ui(e) {
|
|
|
3043
3086
|
var i = ve[n || ""] || ve[r || ""] || ve["".concat(r, "-001")] || ve["001"];
|
|
3044
3087
|
return i[0];
|
|
3045
3088
|
}
|
|
3046
|
-
var
|
|
3089
|
+
var je, di = new RegExp("^".concat(pr.source, "*")), pi = new RegExp("".concat(pr.source, "*$"));
|
|
3047
3090
|
function v(e, t) {
|
|
3048
3091
|
return { start: e, end: t };
|
|
3049
3092
|
}
|
|
3050
|
-
var
|
|
3093
|
+
var bi = !!String.prototype.startsWith && "_a".startsWith("a", 1), gi = !!String.fromCodePoint, yi = !!Object.fromEntries, vi = !!String.prototype.codePointAt, _i = !!String.prototype.trimStart, xi = !!String.prototype.trimEnd, Ei = !!Number.isSafeInteger, wi = Ei ? Number.isSafeInteger : function(e) {
|
|
3051
3094
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3052
|
-
},
|
|
3095
|
+
}, rt = !0;
|
|
3053
3096
|
try {
|
|
3054
|
-
var
|
|
3055
|
-
|
|
3097
|
+
var Si = _r("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3098
|
+
rt = ((je = Si.exec("a")) === null || je === void 0 ? void 0 : je[0]) === "a";
|
|
3056
3099
|
} catch {
|
|
3057
|
-
|
|
3100
|
+
rt = !1;
|
|
3058
3101
|
}
|
|
3059
|
-
var
|
|
3102
|
+
var It = bi ? (
|
|
3060
3103
|
// Native
|
|
3061
3104
|
function(t, r, n) {
|
|
3062
3105
|
return t.startsWith(r, n);
|
|
@@ -3066,7 +3109,7 @@ var Bt = ci ? (
|
|
|
3066
3109
|
function(t, r, n) {
|
|
3067
3110
|
return t.slice(n, n + r.length) === r;
|
|
3068
3111
|
}
|
|
3069
|
-
),
|
|
3112
|
+
), nt = gi ? String.fromCodePoint : (
|
|
3070
3113
|
// IE11
|
|
3071
3114
|
function() {
|
|
3072
3115
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3078,9 +3121,9 @@ var Bt = ci ? (
|
|
|
3078
3121
|
}
|
|
3079
3122
|
return n;
|
|
3080
3123
|
}
|
|
3081
|
-
),
|
|
3124
|
+
), Nt = (
|
|
3082
3125
|
// native
|
|
3083
|
-
|
|
3126
|
+
yi ? Object.fromEntries : (
|
|
3084
3127
|
// Ponyfill
|
|
3085
3128
|
function(t) {
|
|
3086
3129
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3090,7 +3133,7 @@ var Bt = ci ? (
|
|
|
3090
3133
|
return r;
|
|
3091
3134
|
}
|
|
3092
3135
|
)
|
|
3093
|
-
),
|
|
3136
|
+
), vr = vi ? (
|
|
3094
3137
|
// Native
|
|
3095
3138
|
function(t, r) {
|
|
3096
3139
|
return t.codePointAt(r);
|
|
@@ -3104,7 +3147,7 @@ var Bt = ci ? (
|
|
|
3104
3147
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3105
3148
|
}
|
|
3106
3149
|
}
|
|
3107
|
-
),
|
|
3150
|
+
), Ti = _i ? (
|
|
3108
3151
|
// Native
|
|
3109
3152
|
function(t) {
|
|
3110
3153
|
return t.trimStart();
|
|
@@ -3112,9 +3155,9 @@ var Bt = ci ? (
|
|
|
3112
3155
|
) : (
|
|
3113
3156
|
// Ponyfill
|
|
3114
3157
|
function(t) {
|
|
3115
|
-
return t.replace(
|
|
3158
|
+
return t.replace(di, "");
|
|
3116
3159
|
}
|
|
3117
|
-
),
|
|
3160
|
+
), Hi = xi ? (
|
|
3118
3161
|
// Native
|
|
3119
3162
|
function(t) {
|
|
3120
3163
|
return t.trimEnd();
|
|
@@ -3122,32 +3165,32 @@ var Bt = ci ? (
|
|
|
3122
3165
|
) : (
|
|
3123
3166
|
// Ponyfill
|
|
3124
3167
|
function(t) {
|
|
3125
|
-
return t.replace(
|
|
3168
|
+
return t.replace(pi, "");
|
|
3126
3169
|
}
|
|
3127
3170
|
);
|
|
3128
|
-
function
|
|
3171
|
+
function _r(e, t) {
|
|
3129
3172
|
return new RegExp(e, t);
|
|
3130
3173
|
}
|
|
3131
|
-
var
|
|
3132
|
-
if (
|
|
3133
|
-
var
|
|
3134
|
-
|
|
3174
|
+
var it;
|
|
3175
|
+
if (rt) {
|
|
3176
|
+
var Lt = _r("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3177
|
+
it = function(t, r) {
|
|
3135
3178
|
var n;
|
|
3136
|
-
|
|
3137
|
-
var i =
|
|
3179
|
+
Lt.lastIndex = r;
|
|
3180
|
+
var i = Lt.exec(t);
|
|
3138
3181
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3139
3182
|
};
|
|
3140
3183
|
} else
|
|
3141
|
-
|
|
3184
|
+
it = function(t, r) {
|
|
3142
3185
|
for (var n = []; ; ) {
|
|
3143
|
-
var i =
|
|
3144
|
-
if (i === void 0 ||
|
|
3186
|
+
var i = vr(t, r);
|
|
3187
|
+
if (i === void 0 || xr(i) || Oi(i))
|
|
3145
3188
|
break;
|
|
3146
3189
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3147
3190
|
}
|
|
3148
|
-
return
|
|
3191
|
+
return nt.apply(void 0, n);
|
|
3149
3192
|
};
|
|
3150
|
-
var
|
|
3193
|
+
var Bi = (
|
|
3151
3194
|
/** @class */
|
|
3152
3195
|
function() {
|
|
3153
3196
|
function e(t, r) {
|
|
@@ -3171,14 +3214,14 @@ var Ei = (
|
|
|
3171
3214
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3172
3215
|
var s = this.clonePosition();
|
|
3173
3216
|
this.bump(), i.push({
|
|
3174
|
-
type:
|
|
3217
|
+
type: E.pound,
|
|
3175
3218
|
location: v(s, this.clonePosition())
|
|
3176
3219
|
});
|
|
3177
3220
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3178
3221
|
if (n)
|
|
3179
3222
|
break;
|
|
3180
3223
|
return this.error(y.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
|
3181
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3224
|
+
} else if (o === 60 && !this.ignoreTag && ot(this.peek() || 0)) {
|
|
3182
3225
|
var a = this.parseTag(t, r);
|
|
3183
3226
|
if (a.err)
|
|
3184
3227
|
return a;
|
|
@@ -3199,7 +3242,7 @@ var Ei = (
|
|
|
3199
3242
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3200
3243
|
return {
|
|
3201
3244
|
val: {
|
|
3202
|
-
type:
|
|
3245
|
+
type: E.literal,
|
|
3203
3246
|
value: "<".concat(i, "/>"),
|
|
3204
3247
|
location: v(n, this.clonePosition())
|
|
3205
3248
|
},
|
|
@@ -3211,12 +3254,12 @@ var Ei = (
|
|
|
3211
3254
|
return o;
|
|
3212
3255
|
var a = o.val, s = this.clonePosition();
|
|
3213
3256
|
if (this.bumpIf("</")) {
|
|
3214
|
-
if (this.isEOF() || !
|
|
3257
|
+
if (this.isEOF() || !ot(this.char()))
|
|
3215
3258
|
return this.error(y.INVALID_TAG, v(s, this.clonePosition()));
|
|
3216
3259
|
var h = this.clonePosition(), l = this.parseTagName();
|
|
3217
3260
|
return i !== l ? this.error(y.UNMATCHED_CLOSING_TAG, v(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3218
3261
|
val: {
|
|
3219
|
-
type:
|
|
3262
|
+
type: E.tag,
|
|
3220
3263
|
value: i,
|
|
3221
3264
|
children: a,
|
|
3222
3265
|
location: v(n, this.clonePosition())
|
|
@@ -3229,7 +3272,7 @@ var Ei = (
|
|
|
3229
3272
|
return this.error(y.INVALID_TAG, v(n, this.clonePosition()));
|
|
3230
3273
|
}, e.prototype.parseTagName = function() {
|
|
3231
3274
|
var t = this.offset();
|
|
3232
|
-
for (this.bump(); !this.isEOF() &&
|
|
3275
|
+
for (this.bump(); !this.isEOF() && Pi(this.char()); )
|
|
3233
3276
|
this.bump();
|
|
3234
3277
|
return this.message.slice(t, this.offset());
|
|
3235
3278
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3253,12 +3296,12 @@ var Ei = (
|
|
|
3253
3296
|
}
|
|
3254
3297
|
var h = v(n, this.clonePosition());
|
|
3255
3298
|
return {
|
|
3256
|
-
val: { type:
|
|
3299
|
+
val: { type: E.literal, value: i, location: h },
|
|
3257
3300
|
err: null
|
|
3258
3301
|
};
|
|
3259
3302
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3260
3303
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3261
|
-
!
|
|
3304
|
+
!Ai(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3262
3305
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3263
3306
|
if (this.isEOF() || this.char() !== 39)
|
|
3264
3307
|
return null;
|
|
@@ -3292,12 +3335,12 @@ var Ei = (
|
|
|
3292
3335
|
r.push(n);
|
|
3293
3336
|
this.bump();
|
|
3294
3337
|
}
|
|
3295
|
-
return
|
|
3338
|
+
return nt.apply(void 0, r);
|
|
3296
3339
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3297
3340
|
if (this.isEOF())
|
|
3298
3341
|
return null;
|
|
3299
3342
|
var n = this.char();
|
|
3300
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3343
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), nt(n));
|
|
3301
3344
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3302
3345
|
var n = this.clonePosition();
|
|
3303
3346
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3313,7 +3356,7 @@ var Ei = (
|
|
|
3313
3356
|
case 125:
|
|
3314
3357
|
return this.bump(), {
|
|
3315
3358
|
val: {
|
|
3316
|
-
type:
|
|
3359
|
+
type: E.argument,
|
|
3317
3360
|
// value does not include the opening and closing braces.
|
|
3318
3361
|
value: i,
|
|
3319
3362
|
location: v(n, this.clonePosition())
|
|
@@ -3326,7 +3369,7 @@ var Ei = (
|
|
|
3326
3369
|
return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3327
3370
|
}
|
|
3328
3371
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3329
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3372
|
+
var t = this.clonePosition(), r = this.offset(), n = it(this.message, r), i = r + n.length;
|
|
3330
3373
|
this.bumpTo(i);
|
|
3331
3374
|
var o = this.clonePosition(), a = v(t, o);
|
|
3332
3375
|
return { value: n, location: a };
|
|
@@ -3345,7 +3388,7 @@ var Ei = (
|
|
|
3345
3388
|
var u = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3346
3389
|
if (f.err)
|
|
3347
3390
|
return f;
|
|
3348
|
-
var c =
|
|
3391
|
+
var c = Hi(f.val);
|
|
3349
3392
|
if (c.length === 0)
|
|
3350
3393
|
return this.error(y.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
|
3351
3394
|
var m = v(u, this.clonePosition());
|
|
@@ -3355,25 +3398,25 @@ var Ei = (
|
|
|
3355
3398
|
if (d.err)
|
|
3356
3399
|
return d;
|
|
3357
3400
|
var p = v(i, this.clonePosition());
|
|
3358
|
-
if (l &&
|
|
3359
|
-
var A =
|
|
3401
|
+
if (l && It(l?.style, "::", 0)) {
|
|
3402
|
+
var A = Ti(l.style.slice(2));
|
|
3360
3403
|
if (s === "number") {
|
|
3361
3404
|
var f = this.parseNumberSkeletonFromString(A, l.styleLocation);
|
|
3362
3405
|
return f.err ? f : {
|
|
3363
|
-
val: { type:
|
|
3406
|
+
val: { type: E.number, value: n, location: p, style: f.val },
|
|
3364
3407
|
err: null
|
|
3365
3408
|
};
|
|
3366
3409
|
} else {
|
|
3367
3410
|
if (A.length === 0)
|
|
3368
3411
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, p);
|
|
3369
3412
|
var H = A;
|
|
3370
|
-
this.locale && (H =
|
|
3413
|
+
this.locale && (H = fi(A, this.locale));
|
|
3371
3414
|
var c = {
|
|
3372
|
-
type:
|
|
3415
|
+
type: te.dateTime,
|
|
3373
3416
|
pattern: H,
|
|
3374
3417
|
location: l.styleLocation,
|
|
3375
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3376
|
-
}, T = s === "date" ?
|
|
3418
|
+
parsedOptions: this.shouldParseSkeletons ? oi(H) : {}
|
|
3419
|
+
}, T = s === "date" ? E.date : E.time;
|
|
3377
3420
|
return {
|
|
3378
3421
|
val: { type: T, value: n, location: p, style: c },
|
|
3379
3422
|
err: null
|
|
@@ -3382,7 +3425,7 @@ var Ei = (
|
|
|
3382
3425
|
}
|
|
3383
3426
|
return {
|
|
3384
3427
|
val: {
|
|
3385
|
-
type: s === "number" ?
|
|
3428
|
+
type: s === "number" ? E.number : s === "date" ? E.date : E.time,
|
|
3386
3429
|
value: n,
|
|
3387
3430
|
location: p,
|
|
3388
3431
|
style: (o = l?.style) !== null && o !== void 0 ? o : null
|
|
@@ -3395,7 +3438,7 @@ var Ei = (
|
|
|
3395
3438
|
case "select": {
|
|
3396
3439
|
var B = this.clonePosition();
|
|
3397
3440
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3398
|
-
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, v(B,
|
|
3441
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, v(B, Be({}, B)));
|
|
3399
3442
|
this.bumpSpace();
|
|
3400
3443
|
var N = this.parseIdentifierIfPossible(), L = 0;
|
|
3401
3444
|
if (s !== "select" && N.value === "offset") {
|
|
@@ -3407,26 +3450,26 @@ var Ei = (
|
|
|
3407
3450
|
return f;
|
|
3408
3451
|
this.bumpSpace(), N = this.parseIdentifierIfPossible(), L = f.val;
|
|
3409
3452
|
}
|
|
3410
|
-
var
|
|
3411
|
-
if (
|
|
3412
|
-
return
|
|
3453
|
+
var G = this.tryParsePluralOrSelectOptions(t, s, r, N);
|
|
3454
|
+
if (G.err)
|
|
3455
|
+
return G;
|
|
3413
3456
|
var d = this.tryParseArgumentClose(i);
|
|
3414
3457
|
if (d.err)
|
|
3415
3458
|
return d;
|
|
3416
3459
|
var pe = v(i, this.clonePosition());
|
|
3417
3460
|
return s === "select" ? {
|
|
3418
3461
|
val: {
|
|
3419
|
-
type:
|
|
3462
|
+
type: E.select,
|
|
3420
3463
|
value: n,
|
|
3421
|
-
options:
|
|
3464
|
+
options: Nt(G.val),
|
|
3422
3465
|
location: pe
|
|
3423
3466
|
},
|
|
3424
3467
|
err: null
|
|
3425
3468
|
} : {
|
|
3426
3469
|
val: {
|
|
3427
|
-
type:
|
|
3470
|
+
type: E.plural,
|
|
3428
3471
|
value: n,
|
|
3429
|
-
options:
|
|
3472
|
+
options: Nt(G.val),
|
|
3430
3473
|
offset: L,
|
|
3431
3474
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3432
3475
|
location: pe
|
|
@@ -3477,16 +3520,16 @@ var Ei = (
|
|
|
3477
3520
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3478
3521
|
var n = [];
|
|
3479
3522
|
try {
|
|
3480
|
-
n =
|
|
3523
|
+
n = si(t);
|
|
3481
3524
|
} catch {
|
|
3482
3525
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
3483
3526
|
}
|
|
3484
3527
|
return {
|
|
3485
3528
|
val: {
|
|
3486
|
-
type:
|
|
3529
|
+
type: te.number,
|
|
3487
3530
|
tokens: n,
|
|
3488
3531
|
location: r,
|
|
3489
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3532
|
+
parsedOptions: this.shouldParseSkeletons ? ci(n) : {}
|
|
3490
3533
|
},
|
|
3491
3534
|
err: null
|
|
3492
3535
|
};
|
|
@@ -3534,7 +3577,7 @@ var Ei = (
|
|
|
3534
3577
|
break;
|
|
3535
3578
|
}
|
|
3536
3579
|
var h = v(i, this.clonePosition());
|
|
3537
|
-
return o ? (a *= n,
|
|
3580
|
+
return o ? (a *= n, wi(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3538
3581
|
}, e.prototype.offset = function() {
|
|
3539
3582
|
return this.position.offset;
|
|
3540
3583
|
}, e.prototype.isEOF = function() {
|
|
@@ -3549,7 +3592,7 @@ var Ei = (
|
|
|
3549
3592
|
var t = this.position.offset;
|
|
3550
3593
|
if (t >= this.message.length)
|
|
3551
3594
|
throw Error("out of bound");
|
|
3552
|
-
var r =
|
|
3595
|
+
var r = vr(this.message, t);
|
|
3553
3596
|
if (r === void 0)
|
|
3554
3597
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3555
3598
|
return r;
|
|
@@ -3568,7 +3611,7 @@ var Ei = (
|
|
|
3568
3611
|
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);
|
|
3569
3612
|
}
|
|
3570
3613
|
}, e.prototype.bumpIf = function(t) {
|
|
3571
|
-
if (
|
|
3614
|
+
if (It(this.message, t, this.offset())) {
|
|
3572
3615
|
for (var r = 0; r < t.length; r++)
|
|
3573
3616
|
this.bump();
|
|
3574
3617
|
return !0;
|
|
@@ -3590,7 +3633,7 @@ var Ei = (
|
|
|
3590
3633
|
break;
|
|
3591
3634
|
}
|
|
3592
3635
|
}, e.prototype.bumpSpace = function() {
|
|
3593
|
-
for (; !this.isEOF() &&
|
|
3636
|
+
for (; !this.isEOF() && xr(this.char()); )
|
|
3594
3637
|
this.bump();
|
|
3595
3638
|
}, e.prototype.peek = function() {
|
|
3596
3639
|
if (this.isEOF())
|
|
@@ -3600,47 +3643,47 @@ var Ei = (
|
|
|
3600
3643
|
}, e;
|
|
3601
3644
|
}()
|
|
3602
3645
|
);
|
|
3603
|
-
function
|
|
3646
|
+
function ot(e) {
|
|
3604
3647
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3605
3648
|
}
|
|
3606
|
-
function
|
|
3607
|
-
return
|
|
3649
|
+
function Ai(e) {
|
|
3650
|
+
return ot(e) || e === 47;
|
|
3608
3651
|
}
|
|
3609
|
-
function
|
|
3652
|
+
function Pi(e) {
|
|
3610
3653
|
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;
|
|
3611
3654
|
}
|
|
3612
|
-
function
|
|
3655
|
+
function xr(e) {
|
|
3613
3656
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3614
3657
|
}
|
|
3615
|
-
function
|
|
3658
|
+
function Oi(e) {
|
|
3616
3659
|
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;
|
|
3617
3660
|
}
|
|
3618
|
-
function
|
|
3661
|
+
function at(e) {
|
|
3619
3662
|
e.forEach(function(t) {
|
|
3620
|
-
if (delete t.location,
|
|
3663
|
+
if (delete t.location, cr(t) || fr(t))
|
|
3621
3664
|
for (var r in t.options)
|
|
3622
|
-
delete t.options[r].location,
|
|
3665
|
+
delete t.options[r].location, at(t.options[r].value);
|
|
3623
3666
|
else
|
|
3624
|
-
|
|
3667
|
+
ur(t) && dr(t.style) || (lr(t) || hr(t)) && tt(t.style) ? delete t.style.location : mr(t) && at(t.children);
|
|
3625
3668
|
});
|
|
3626
3669
|
}
|
|
3627
|
-
function
|
|
3628
|
-
t === void 0 && (t = {}), t =
|
|
3629
|
-
var r = new
|
|
3670
|
+
function Ri(e, t) {
|
|
3671
|
+
t === void 0 && (t = {}), t = Be({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3672
|
+
var r = new Bi(e, t).parse();
|
|
3630
3673
|
if (r.err) {
|
|
3631
3674
|
var n = SyntaxError(y[r.err.kind]);
|
|
3632
3675
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3633
3676
|
}
|
|
3634
|
-
return t?.captureLocation ||
|
|
3677
|
+
return t?.captureLocation || at(r.val), r.val;
|
|
3635
3678
|
}
|
|
3636
|
-
var
|
|
3679
|
+
var re;
|
|
3637
3680
|
(function(e) {
|
|
3638
3681
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3639
|
-
})(
|
|
3640
|
-
var
|
|
3682
|
+
})(re || (re = {}));
|
|
3683
|
+
var Ne = (
|
|
3641
3684
|
/** @class */
|
|
3642
3685
|
function(e) {
|
|
3643
|
-
|
|
3686
|
+
Ie(t, e);
|
|
3644
3687
|
function t(r, n, i) {
|
|
3645
3688
|
var o = e.call(this, r) || this;
|
|
3646
3689
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3649,48 +3692,48 @@ var Oe = (
|
|
|
3649
3692
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3650
3693
|
}, t;
|
|
3651
3694
|
}(Error)
|
|
3652
|
-
),
|
|
3695
|
+
), Mt = (
|
|
3653
3696
|
/** @class */
|
|
3654
3697
|
function(e) {
|
|
3655
|
-
|
|
3698
|
+
Ie(t, e);
|
|
3656
3699
|
function t(r, n, i, o) {
|
|
3657
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3700
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), re.INVALID_VALUE, o) || this;
|
|
3658
3701
|
}
|
|
3659
3702
|
return t;
|
|
3660
|
-
}(
|
|
3661
|
-
),
|
|
3703
|
+
}(Ne)
|
|
3704
|
+
), Ii = (
|
|
3662
3705
|
/** @class */
|
|
3663
3706
|
function(e) {
|
|
3664
|
-
|
|
3707
|
+
Ie(t, e);
|
|
3665
3708
|
function t(r, n, i) {
|
|
3666
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3709
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), re.INVALID_VALUE, i) || this;
|
|
3667
3710
|
}
|
|
3668
3711
|
return t;
|
|
3669
|
-
}(
|
|
3670
|
-
),
|
|
3712
|
+
}(Ne)
|
|
3713
|
+
), Ni = (
|
|
3671
3714
|
/** @class */
|
|
3672
3715
|
function(e) {
|
|
3673
|
-
|
|
3716
|
+
Ie(t, e);
|
|
3674
3717
|
function t(r, n) {
|
|
3675
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3718
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), re.MISSING_VALUE, n) || this;
|
|
3676
3719
|
}
|
|
3677
3720
|
return t;
|
|
3678
|
-
}(
|
|
3721
|
+
}(Ne)
|
|
3679
3722
|
), P;
|
|
3680
3723
|
(function(e) {
|
|
3681
3724
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3682
3725
|
})(P || (P = {}));
|
|
3683
|
-
function
|
|
3726
|
+
function Li(e) {
|
|
3684
3727
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3685
3728
|
var n = t[t.length - 1];
|
|
3686
3729
|
return !n || n.type !== P.literal || r.type !== P.literal ? t.push(r) : n.value += r.value, t;
|
|
3687
3730
|
}, []);
|
|
3688
3731
|
}
|
|
3689
|
-
function
|
|
3732
|
+
function Mi(e) {
|
|
3690
3733
|
return typeof e == "function";
|
|
3691
3734
|
}
|
|
3692
3735
|
function we(e, t, r, n, i, o, a) {
|
|
3693
|
-
if (e.length === 1 &&
|
|
3736
|
+
if (e.length === 1 && At(e[0]))
|
|
3694
3737
|
return [
|
|
3695
3738
|
{
|
|
3696
3739
|
type: P.literal,
|
|
@@ -3699,14 +3742,14 @@ function we(e, t, r, n, i, o, a) {
|
|
|
3699
3742
|
];
|
|
3700
3743
|
for (var s = [], h = 0, l = e; h < l.length; h++) {
|
|
3701
3744
|
var u = l[h];
|
|
3702
|
-
if (
|
|
3745
|
+
if (At(u)) {
|
|
3703
3746
|
s.push({
|
|
3704
3747
|
type: P.literal,
|
|
3705
3748
|
value: u.value
|
|
3706
3749
|
});
|
|
3707
3750
|
continue;
|
|
3708
3751
|
}
|
|
3709
|
-
if (
|
|
3752
|
+
if (ni(u)) {
|
|
3710
3753
|
typeof o == "number" && s.push({
|
|
3711
3754
|
type: P.literal,
|
|
3712
3755
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3715,43 +3758,43 @@ function we(e, t, r, n, i, o, a) {
|
|
|
3715
3758
|
}
|
|
3716
3759
|
var f = u.value;
|
|
3717
3760
|
if (!(i && f in i))
|
|
3718
|
-
throw new
|
|
3761
|
+
throw new Ni(f, a);
|
|
3719
3762
|
var c = i[f];
|
|
3720
|
-
if (
|
|
3763
|
+
if (ri(u)) {
|
|
3721
3764
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
|
|
3722
3765
|
type: typeof c == "string" ? P.literal : P.object,
|
|
3723
3766
|
value: c
|
|
3724
3767
|
});
|
|
3725
3768
|
continue;
|
|
3726
3769
|
}
|
|
3727
|
-
if (
|
|
3728
|
-
var m = typeof u.style == "string" ? n.date[u.style] :
|
|
3770
|
+
if (lr(u)) {
|
|
3771
|
+
var m = typeof u.style == "string" ? n.date[u.style] : tt(u.style) ? u.style.parsedOptions : void 0;
|
|
3729
3772
|
s.push({
|
|
3730
3773
|
type: P.literal,
|
|
3731
3774
|
value: r.getDateTimeFormat(t, m).format(c)
|
|
3732
3775
|
});
|
|
3733
3776
|
continue;
|
|
3734
3777
|
}
|
|
3735
|
-
if (
|
|
3736
|
-
var m = typeof u.style == "string" ? n.time[u.style] :
|
|
3778
|
+
if (hr(u)) {
|
|
3779
|
+
var m = typeof u.style == "string" ? n.time[u.style] : tt(u.style) ? u.style.parsedOptions : n.time.medium;
|
|
3737
3780
|
s.push({
|
|
3738
3781
|
type: P.literal,
|
|
3739
3782
|
value: r.getDateTimeFormat(t, m).format(c)
|
|
3740
3783
|
});
|
|
3741
3784
|
continue;
|
|
3742
3785
|
}
|
|
3743
|
-
if (
|
|
3744
|
-
var m = typeof u.style == "string" ? n.number[u.style] :
|
|
3786
|
+
if (ur(u)) {
|
|
3787
|
+
var m = typeof u.style == "string" ? n.number[u.style] : dr(u.style) ? u.style.parsedOptions : void 0;
|
|
3745
3788
|
m && m.scale && (c = c * (m.scale || 1)), s.push({
|
|
3746
3789
|
type: P.literal,
|
|
3747
3790
|
value: r.getNumberFormat(t, m).format(c)
|
|
3748
3791
|
});
|
|
3749
3792
|
continue;
|
|
3750
3793
|
}
|
|
3751
|
-
if (
|
|
3794
|
+
if (mr(u)) {
|
|
3752
3795
|
var d = u.children, p = u.value, A = i[p];
|
|
3753
|
-
if (!
|
|
3754
|
-
throw new
|
|
3796
|
+
if (!Mi(A))
|
|
3797
|
+
throw new Ii(p, "function", a);
|
|
3755
3798
|
var H = we(d, t, r, n, i, o), T = A(H.map(function(L) {
|
|
3756
3799
|
return L.value;
|
|
3757
3800
|
}));
|
|
@@ -3762,42 +3805,42 @@ function we(e, t, r, n, i, o, a) {
|
|
|
3762
3805
|
};
|
|
3763
3806
|
}));
|
|
3764
3807
|
}
|
|
3765
|
-
if (
|
|
3808
|
+
if (cr(u)) {
|
|
3766
3809
|
var B = u.options[c] || u.options.other;
|
|
3767
3810
|
if (!B)
|
|
3768
|
-
throw new
|
|
3811
|
+
throw new Mt(u.value, c, Object.keys(u.options), a);
|
|
3769
3812
|
s.push.apply(s, we(B.value, t, r, n, i));
|
|
3770
3813
|
continue;
|
|
3771
3814
|
}
|
|
3772
|
-
if (
|
|
3815
|
+
if (fr(u)) {
|
|
3773
3816
|
var B = u.options["=".concat(c)];
|
|
3774
3817
|
if (!B) {
|
|
3775
3818
|
if (!Intl.PluralRules)
|
|
3776
|
-
throw new
|
|
3819
|
+
throw new Ne(`Intl.PluralRules is not available in this environment.
|
|
3777
3820
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3778
|
-
`,
|
|
3821
|
+
`, re.MISSING_INTL_API, a);
|
|
3779
3822
|
var N = r.getPluralRules(t, { type: u.pluralType }).select(c - (u.offset || 0));
|
|
3780
3823
|
B = u.options[N] || u.options.other;
|
|
3781
3824
|
}
|
|
3782
3825
|
if (!B)
|
|
3783
|
-
throw new
|
|
3826
|
+
throw new Mt(u.value, c, Object.keys(u.options), a);
|
|
3784
3827
|
s.push.apply(s, we(B.value, t, r, n, i, c - (u.offset || 0)));
|
|
3785
3828
|
continue;
|
|
3786
3829
|
}
|
|
3787
3830
|
}
|
|
3788
|
-
return
|
|
3831
|
+
return Li(s);
|
|
3789
3832
|
}
|
|
3790
|
-
function
|
|
3791
|
-
return t ?
|
|
3792
|
-
return r[n] =
|
|
3833
|
+
function Ci(e, t) {
|
|
3834
|
+
return t ? M(M(M({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3835
|
+
return r[n] = M(M({}, e[n]), t[n] || {}), r;
|
|
3793
3836
|
}, {})) : e;
|
|
3794
3837
|
}
|
|
3795
|
-
function
|
|
3838
|
+
function Gi(e, t) {
|
|
3796
3839
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3797
|
-
return r[n] =
|
|
3798
|
-
},
|
|
3840
|
+
return r[n] = Ci(e[n], t[n]), r;
|
|
3841
|
+
}, M({}, e)) : e;
|
|
3799
3842
|
}
|
|
3800
|
-
function
|
|
3843
|
+
function ke(e) {
|
|
3801
3844
|
return {
|
|
3802
3845
|
create: function() {
|
|
3803
3846
|
return {
|
|
@@ -3811,39 +3854,39 @@ function De(e) {
|
|
|
3811
3854
|
}
|
|
3812
3855
|
};
|
|
3813
3856
|
}
|
|
3814
|
-
function
|
|
3857
|
+
function Ui(e) {
|
|
3815
3858
|
return e === void 0 && (e = {
|
|
3816
3859
|
number: {},
|
|
3817
3860
|
dateTime: {},
|
|
3818
3861
|
pluralRules: {}
|
|
3819
3862
|
}), {
|
|
3820
|
-
getNumberFormat:
|
|
3863
|
+
getNumberFormat: Fe(function() {
|
|
3821
3864
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3822
3865
|
r[n] = arguments[n];
|
|
3823
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3866
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, $e([void 0], r, !1)))();
|
|
3824
3867
|
}, {
|
|
3825
|
-
cache:
|
|
3826
|
-
strategy:
|
|
3868
|
+
cache: ke(e.number),
|
|
3869
|
+
strategy: De.variadic
|
|
3827
3870
|
}),
|
|
3828
|
-
getDateTimeFormat:
|
|
3871
|
+
getDateTimeFormat: Fe(function() {
|
|
3829
3872
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3830
3873
|
r[n] = arguments[n];
|
|
3831
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3874
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, $e([void 0], r, !1)))();
|
|
3832
3875
|
}, {
|
|
3833
|
-
cache:
|
|
3834
|
-
strategy:
|
|
3876
|
+
cache: ke(e.dateTime),
|
|
3877
|
+
strategy: De.variadic
|
|
3835
3878
|
}),
|
|
3836
|
-
getPluralRules:
|
|
3879
|
+
getPluralRules: Fe(function() {
|
|
3837
3880
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3838
3881
|
r[n] = arguments[n];
|
|
3839
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3882
|
+
return new ((t = Intl.PluralRules).bind.apply(t, $e([void 0], r, !1)))();
|
|
3840
3883
|
}, {
|
|
3841
|
-
cache:
|
|
3842
|
-
strategy:
|
|
3884
|
+
cache: ke(e.pluralRules),
|
|
3885
|
+
strategy: De.variadic
|
|
3843
3886
|
})
|
|
3844
3887
|
};
|
|
3845
3888
|
}
|
|
3846
|
-
var
|
|
3889
|
+
var $i = (
|
|
3847
3890
|
/** @class */
|
|
3848
3891
|
function() {
|
|
3849
3892
|
function e(t, r, n, i) {
|
|
@@ -3875,13 +3918,13 @@ var Li = (
|
|
|
3875
3918
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3876
3919
|
var a = i || {};
|
|
3877
3920
|
a.formatters;
|
|
3878
|
-
var s =
|
|
3879
|
-
this.ast = e.__parse(t,
|
|
3921
|
+
var s = Jn(a, ["formatters"]);
|
|
3922
|
+
this.ast = e.__parse(t, M(M({}, s), { locale: this.resolvedLocale }));
|
|
3880
3923
|
} else
|
|
3881
3924
|
this.ast = t;
|
|
3882
3925
|
if (!Array.isArray(this.ast))
|
|
3883
3926
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3884
|
-
this.formats =
|
|
3927
|
+
this.formats = Gi(e.formats, n), this.formatters = i && i.formatters || Ui(this.formatterCache);
|
|
3885
3928
|
}
|
|
3886
3929
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3887
3930
|
get: function() {
|
|
@@ -3894,7 +3937,7 @@ var Li = (
|
|
|
3894
3937
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3895
3938
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3896
3939
|
}
|
|
3897
|
-
}, e.__parse =
|
|
3940
|
+
}, e.__parse = Ri, e.formats = {
|
|
3898
3941
|
number: {
|
|
3899
3942
|
integer: {
|
|
3900
3943
|
maximumFractionDigits: 0
|
|
@@ -3955,7 +3998,7 @@ var Li = (
|
|
|
3955
3998
|
}, e;
|
|
3956
3999
|
}()
|
|
3957
4000
|
);
|
|
3958
|
-
function
|
|
4001
|
+
function Fi(e, t) {
|
|
3959
4002
|
if (t == null)
|
|
3960
4003
|
return;
|
|
3961
4004
|
if (t in e)
|
|
@@ -3976,92 +4019,92 @@ function Mi(e, t) {
|
|
|
3976
4019
|
n = void 0;
|
|
3977
4020
|
return n;
|
|
3978
4021
|
}
|
|
3979
|
-
const
|
|
4022
|
+
const D = {}, Di = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), Er = (e, t) => {
|
|
3980
4023
|
if (t == null)
|
|
3981
4024
|
return;
|
|
3982
|
-
if (t in
|
|
3983
|
-
return
|
|
3984
|
-
const r =
|
|
4025
|
+
if (t in D && e in D[t])
|
|
4026
|
+
return D[t][e];
|
|
4027
|
+
const r = Le(t);
|
|
3985
4028
|
for (let n = 0; n < r.length; n++) {
|
|
3986
|
-
const i = r[n], o =
|
|
4029
|
+
const i = r[n], o = ki(i, e);
|
|
3987
4030
|
if (o)
|
|
3988
|
-
return
|
|
4031
|
+
return Di(e, t, o);
|
|
3989
4032
|
}
|
|
3990
4033
|
};
|
|
3991
|
-
let
|
|
3992
|
-
const
|
|
3993
|
-
function
|
|
3994
|
-
return
|
|
4034
|
+
let ht;
|
|
4035
|
+
const oe = Re({});
|
|
4036
|
+
function ji(e) {
|
|
4037
|
+
return ht[e] || null;
|
|
3995
4038
|
}
|
|
3996
|
-
function
|
|
3997
|
-
return e in
|
|
4039
|
+
function wr(e) {
|
|
4040
|
+
return e in ht;
|
|
3998
4041
|
}
|
|
3999
|
-
function
|
|
4000
|
-
if (!
|
|
4042
|
+
function ki(e, t) {
|
|
4043
|
+
if (!wr(e))
|
|
4001
4044
|
return null;
|
|
4002
|
-
const r =
|
|
4003
|
-
return
|
|
4045
|
+
const r = ji(e);
|
|
4046
|
+
return Fi(r, t);
|
|
4004
4047
|
}
|
|
4005
|
-
function
|
|
4048
|
+
function Vi(e) {
|
|
4006
4049
|
if (e == null)
|
|
4007
4050
|
return;
|
|
4008
|
-
const t =
|
|
4051
|
+
const t = Le(e);
|
|
4009
4052
|
for (let r = 0; r < t.length; r++) {
|
|
4010
4053
|
const n = t[r];
|
|
4011
|
-
if (
|
|
4054
|
+
if (wr(n))
|
|
4012
4055
|
return n;
|
|
4013
4056
|
}
|
|
4014
4057
|
}
|
|
4015
|
-
function
|
|
4016
|
-
delete
|
|
4058
|
+
function Sr(e, ...t) {
|
|
4059
|
+
delete D[e], oe.update((r) => (r[e] = zn.all([r[e] || {}, ...t]), r));
|
|
4017
4060
|
}
|
|
4018
|
-
|
|
4019
|
-
[
|
|
4061
|
+
ie(
|
|
4062
|
+
[oe],
|
|
4020
4063
|
([e]) => Object.keys(e)
|
|
4021
4064
|
);
|
|
4022
|
-
|
|
4065
|
+
oe.subscribe((e) => ht = e);
|
|
4023
4066
|
const Se = {};
|
|
4024
|
-
function
|
|
4067
|
+
function Wi(e, t) {
|
|
4025
4068
|
Se[e].delete(t), Se[e].size === 0 && delete Se[e];
|
|
4026
4069
|
}
|
|
4027
|
-
function
|
|
4070
|
+
function Tr(e) {
|
|
4028
4071
|
return Se[e];
|
|
4029
4072
|
}
|
|
4030
|
-
function
|
|
4031
|
-
return
|
|
4032
|
-
const r =
|
|
4073
|
+
function Xi(e) {
|
|
4074
|
+
return Le(e).map((t) => {
|
|
4075
|
+
const r = Tr(t);
|
|
4033
4076
|
return [t, r ? [...r] : []];
|
|
4034
4077
|
}).filter(([, t]) => t.length > 0);
|
|
4035
4078
|
}
|
|
4036
|
-
function
|
|
4037
|
-
return e == null ? !1 :
|
|
4079
|
+
function st(e) {
|
|
4080
|
+
return e == null ? !1 : Le(e).some(
|
|
4038
4081
|
(t) => {
|
|
4039
4082
|
var r;
|
|
4040
|
-
return (r =
|
|
4083
|
+
return (r = Tr(t)) == null ? void 0 : r.size;
|
|
4041
4084
|
}
|
|
4042
4085
|
);
|
|
4043
4086
|
}
|
|
4044
|
-
function
|
|
4087
|
+
function zi(e, t) {
|
|
4045
4088
|
return Promise.all(
|
|
4046
|
-
t.map((n) => (
|
|
4047
|
-
).then((n) =>
|
|
4048
|
-
}
|
|
4049
|
-
const
|
|
4050
|
-
function
|
|
4051
|
-
if (!
|
|
4052
|
-
return e in
|
|
4053
|
-
const t =
|
|
4054
|
-
return
|
|
4089
|
+
t.map((n) => (Wi(e, n), n().then((i) => i.default || i)))
|
|
4090
|
+
).then((n) => Sr(e, ...n));
|
|
4091
|
+
}
|
|
4092
|
+
const ue = {};
|
|
4093
|
+
function Hr(e) {
|
|
4094
|
+
if (!st(e))
|
|
4095
|
+
return e in ue ? ue[e] : Promise.resolve();
|
|
4096
|
+
const t = Xi(e);
|
|
4097
|
+
return ue[e] = Promise.all(
|
|
4055
4098
|
t.map(
|
|
4056
|
-
([r, n]) =>
|
|
4099
|
+
([r, n]) => zi(r, n)
|
|
4057
4100
|
)
|
|
4058
4101
|
).then(() => {
|
|
4059
|
-
if (
|
|
4060
|
-
return
|
|
4061
|
-
delete
|
|
4062
|
-
}),
|
|
4102
|
+
if (st(e))
|
|
4103
|
+
return Hr(e);
|
|
4104
|
+
delete ue[e];
|
|
4105
|
+
}), ue[e];
|
|
4063
4106
|
}
|
|
4064
|
-
const
|
|
4107
|
+
const Ji = {
|
|
4065
4108
|
number: {
|
|
4066
4109
|
scientific: { notation: "scientific" },
|
|
4067
4110
|
engineering: { notation: "engineering" },
|
|
@@ -4090,135 +4133,135 @@ const ki = {
|
|
|
4090
4133
|
timeZoneName: "short"
|
|
4091
4134
|
}
|
|
4092
4135
|
}
|
|
4093
|
-
},
|
|
4136
|
+
}, Zi = {
|
|
4094
4137
|
fallbackLocale: null,
|
|
4095
4138
|
loadingDelay: 200,
|
|
4096
|
-
formats:
|
|
4139
|
+
formats: Ji,
|
|
4097
4140
|
warnOnMissingMessages: !0,
|
|
4098
4141
|
handleMissingMessage: void 0,
|
|
4099
4142
|
ignoreTag: !0
|
|
4100
|
-
},
|
|
4101
|
-
function
|
|
4102
|
-
return
|
|
4143
|
+
}, Qi = Zi;
|
|
4144
|
+
function ne() {
|
|
4145
|
+
return Qi;
|
|
4103
4146
|
}
|
|
4104
|
-
const
|
|
4105
|
-
var
|
|
4147
|
+
const Ve = Re(!1);
|
|
4148
|
+
var Yi = Object.defineProperty, qi = Object.defineProperties, Ki = Object.getOwnPropertyDescriptors, Ct = Object.getOwnPropertySymbols, eo = Object.prototype.hasOwnProperty, to = Object.prototype.propertyIsEnumerable, Gt = (e, t, r) => t in e ? Yi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ro = (e, t) => {
|
|
4106
4149
|
for (var r in t || (t = {}))
|
|
4107
|
-
|
|
4108
|
-
if (
|
|
4109
|
-
for (var r of
|
|
4110
|
-
|
|
4150
|
+
eo.call(t, r) && Gt(e, r, t[r]);
|
|
4151
|
+
if (Ct)
|
|
4152
|
+
for (var r of Ct(t))
|
|
4153
|
+
to.call(t, r) && Gt(e, r, t[r]);
|
|
4111
4154
|
return e;
|
|
4112
|
-
},
|
|
4113
|
-
let
|
|
4114
|
-
const
|
|
4115
|
-
function
|
|
4155
|
+
}, no = (e, t) => qi(e, Ki(t));
|
|
4156
|
+
let ut;
|
|
4157
|
+
const Ae = Re(null);
|
|
4158
|
+
function Ut(e) {
|
|
4116
4159
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4117
4160
|
}
|
|
4118
|
-
function
|
|
4119
|
-
const r =
|
|
4120
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4161
|
+
function Le(e, t = ne().fallbackLocale) {
|
|
4162
|
+
const r = Ut(e);
|
|
4163
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Ut(t)])] : r;
|
|
4121
4164
|
}
|
|
4122
4165
|
function J() {
|
|
4123
|
-
return
|
|
4166
|
+
return ut ?? void 0;
|
|
4124
4167
|
}
|
|
4125
|
-
|
|
4126
|
-
|
|
4168
|
+
Ae.subscribe((e) => {
|
|
4169
|
+
ut = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4127
4170
|
});
|
|
4128
|
-
const
|
|
4129
|
-
if (e &&
|
|
4130
|
-
const { loadingDelay: t } =
|
|
4171
|
+
const io = (e) => {
|
|
4172
|
+
if (e && Vi(e) && st(e)) {
|
|
4173
|
+
const { loadingDelay: t } = ne();
|
|
4131
4174
|
let r;
|
|
4132
4175
|
return typeof window < "u" && J() != null && t ? r = window.setTimeout(
|
|
4133
|
-
() =>
|
|
4176
|
+
() => Ve.set(!0),
|
|
4134
4177
|
t
|
|
4135
|
-
) :
|
|
4136
|
-
|
|
4178
|
+
) : Ve.set(!0), Hr(e).then(() => {
|
|
4179
|
+
Ae.set(e);
|
|
4137
4180
|
}).finally(() => {
|
|
4138
|
-
clearTimeout(r),
|
|
4181
|
+
clearTimeout(r), Ve.set(!1);
|
|
4139
4182
|
});
|
|
4140
4183
|
}
|
|
4141
|
-
return
|
|
4142
|
-
}, V =
|
|
4143
|
-
set:
|
|
4144
|
-
}),
|
|
4184
|
+
return Ae.set(e);
|
|
4185
|
+
}, V = no(ro({}, Ae), {
|
|
4186
|
+
set: io
|
|
4187
|
+
}), Me = (e) => {
|
|
4145
4188
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4146
4189
|
return (n) => {
|
|
4147
4190
|
const i = JSON.stringify(n);
|
|
4148
4191
|
return i in t ? t[i] : t[i] = e(n);
|
|
4149
4192
|
};
|
|
4150
4193
|
};
|
|
4151
|
-
var
|
|
4194
|
+
var oo = Object.defineProperty, Pe = Object.getOwnPropertySymbols, Br = Object.prototype.hasOwnProperty, Ar = Object.prototype.propertyIsEnumerable, $t = (e, t, r) => t in e ? oo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ct = (e, t) => {
|
|
4152
4195
|
for (var r in t || (t = {}))
|
|
4153
|
-
|
|
4154
|
-
if (
|
|
4155
|
-
for (var r of
|
|
4156
|
-
|
|
4196
|
+
Br.call(t, r) && $t(e, r, t[r]);
|
|
4197
|
+
if (Pe)
|
|
4198
|
+
for (var r of Pe(t))
|
|
4199
|
+
Ar.call(t, r) && $t(e, r, t[r]);
|
|
4157
4200
|
return e;
|
|
4158
|
-
},
|
|
4201
|
+
}, ae = (e, t) => {
|
|
4159
4202
|
var r = {};
|
|
4160
4203
|
for (var n in e)
|
|
4161
|
-
|
|
4162
|
-
if (e != null &&
|
|
4163
|
-
for (var n of
|
|
4164
|
-
t.indexOf(n) < 0 &&
|
|
4204
|
+
Br.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4205
|
+
if (e != null && Pe)
|
|
4206
|
+
for (var n of Pe(e))
|
|
4207
|
+
t.indexOf(n) < 0 && Ar.call(e, n) && (r[n] = e[n]);
|
|
4165
4208
|
return r;
|
|
4166
4209
|
};
|
|
4167
|
-
const
|
|
4168
|
-
const { formats: r } =
|
|
4210
|
+
const me = (e, t) => {
|
|
4211
|
+
const { formats: r } = ne();
|
|
4169
4212
|
if (e in r && t in r[e])
|
|
4170
4213
|
return r[e][t];
|
|
4171
4214
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4172
|
-
},
|
|
4215
|
+
}, ao = Me(
|
|
4173
4216
|
(e) => {
|
|
4174
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4217
|
+
var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
|
|
4175
4218
|
if (r == null)
|
|
4176
4219
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4177
|
-
return n && (i =
|
|
4220
|
+
return n && (i = me("number", n)), new Intl.NumberFormat(r, i);
|
|
4178
4221
|
}
|
|
4179
|
-
),
|
|
4222
|
+
), so = Me(
|
|
4180
4223
|
(e) => {
|
|
4181
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4224
|
+
var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
|
|
4182
4225
|
if (r == null)
|
|
4183
4226
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4184
|
-
return n ? i =
|
|
4227
|
+
return n ? i = me("date", n) : Object.keys(i).length === 0 && (i = me("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4185
4228
|
}
|
|
4186
|
-
),
|
|
4229
|
+
), uo = Me(
|
|
4187
4230
|
(e) => {
|
|
4188
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4231
|
+
var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
|
|
4189
4232
|
if (r == null)
|
|
4190
4233
|
throw new Error(
|
|
4191
4234
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4192
4235
|
);
|
|
4193
|
-
return n ? i =
|
|
4236
|
+
return n ? i = me("time", n) : Object.keys(i).length === 0 && (i = me("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4194
4237
|
}
|
|
4195
|
-
),
|
|
4238
|
+
), lo = (e = {}) => {
|
|
4196
4239
|
var t = e, {
|
|
4197
4240
|
locale: r = J()
|
|
4198
|
-
} = t, n =
|
|
4241
|
+
} = t, n = ae(t, [
|
|
4199
4242
|
"locale"
|
|
4200
4243
|
]);
|
|
4201
|
-
return
|
|
4202
|
-
},
|
|
4244
|
+
return ao(ct({ locale: r }, n));
|
|
4245
|
+
}, ho = (e = {}) => {
|
|
4203
4246
|
var t = e, {
|
|
4204
4247
|
locale: r = J()
|
|
4205
|
-
} = t, n =
|
|
4248
|
+
} = t, n = ae(t, [
|
|
4206
4249
|
"locale"
|
|
4207
4250
|
]);
|
|
4208
|
-
return
|
|
4209
|
-
},
|
|
4251
|
+
return so(ct({ locale: r }, n));
|
|
4252
|
+
}, co = (e = {}) => {
|
|
4210
4253
|
var t = e, {
|
|
4211
4254
|
locale: r = J()
|
|
4212
|
-
} = t, n =
|
|
4255
|
+
} = t, n = ae(t, [
|
|
4213
4256
|
"locale"
|
|
4214
4257
|
]);
|
|
4215
|
-
return
|
|
4216
|
-
},
|
|
4258
|
+
return uo(ct({ locale: r }, n));
|
|
4259
|
+
}, fo = Me(
|
|
4217
4260
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4218
|
-
(e, t = J()) => new
|
|
4219
|
-
ignoreTag:
|
|
4261
|
+
(e, t = J()) => new $i(e, t, ne().formats, {
|
|
4262
|
+
ignoreTag: ne().ignoreTag
|
|
4220
4263
|
})
|
|
4221
|
-
),
|
|
4264
|
+
), mo = (e, t = {}) => {
|
|
4222
4265
|
var r, n, i, o;
|
|
4223
4266
|
let a = t;
|
|
4224
4267
|
typeof e == "object" && (a = e, e = a.id);
|
|
@@ -4231,9 +4274,9 @@ const de = (e, t) => {
|
|
|
4231
4274
|
throw new Error(
|
|
4232
4275
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4233
4276
|
);
|
|
4234
|
-
let u =
|
|
4277
|
+
let u = Er(e, h);
|
|
4235
4278
|
if (!u)
|
|
4236
|
-
u = (o = (i = (n = (r =
|
|
4279
|
+
u = (o = (i = (n = (r = ne()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
4237
4280
|
else if (typeof u != "string")
|
|
4238
4281
|
return console.warn(
|
|
4239
4282
|
`[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.`
|
|
@@ -4242,7 +4285,7 @@ const de = (e, t) => {
|
|
|
4242
4285
|
return u;
|
|
4243
4286
|
let f = u;
|
|
4244
4287
|
try {
|
|
4245
|
-
f =
|
|
4288
|
+
f = fo(u, h).format(s);
|
|
4246
4289
|
} catch (c) {
|
|
4247
4290
|
c instanceof Error && console.warn(
|
|
4248
4291
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4250,20 +4293,20 @@ const de = (e, t) => {
|
|
|
4250
4293
|
);
|
|
4251
4294
|
}
|
|
4252
4295
|
return f;
|
|
4253
|
-
},
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
window.emWidgets = { topic:
|
|
4259
|
-
const
|
|
4260
|
-
function
|
|
4296
|
+
}, po = (e, t) => co(t).format(e), bo = (e, t) => ho(t).format(e), go = (e, t) => lo(t).format(e), yo = (e, t = J()) => Er(e, t), vo = ie([V, oe], () => mo);
|
|
4297
|
+
ie([V], () => po);
|
|
4298
|
+
ie([V], () => bo);
|
|
4299
|
+
ie([V], () => go);
|
|
4300
|
+
ie([V, oe], () => yo);
|
|
4301
|
+
window.emWidgets = { topic: On };
|
|
4302
|
+
const _o = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4303
|
+
function xo(e, t) {
|
|
4261
4304
|
if (e) {
|
|
4262
4305
|
const r = document.createElement("style");
|
|
4263
4306
|
r.innerHTML = t, e.appendChild(r);
|
|
4264
4307
|
}
|
|
4265
4308
|
}
|
|
4266
|
-
function
|
|
4309
|
+
function Eo(e, t) {
|
|
4267
4310
|
const r = new URL(t);
|
|
4268
4311
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4269
4312
|
const i = document.createElement("style");
|
|
@@ -4272,7 +4315,7 @@ function go(e, t) {
|
|
|
4272
4315
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4273
4316
|
});
|
|
4274
4317
|
}
|
|
4275
|
-
function
|
|
4318
|
+
function wo(e, t, r) {
|
|
4276
4319
|
if (window.emMessageBus) {
|
|
4277
4320
|
const n = document.createElement("style");
|
|
4278
4321
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4280,18 +4323,18 @@ function yo(e, t, r) {
|
|
|
4280
4323
|
});
|
|
4281
4324
|
}
|
|
4282
4325
|
}
|
|
4283
|
-
function
|
|
4326
|
+
function So({ withLocale: e, translations: t }) {
|
|
4284
4327
|
V.subscribe((r) => {
|
|
4285
|
-
r == null && (
|
|
4328
|
+
r == null && (oe.set(t), V.set(e));
|
|
4286
4329
|
});
|
|
4287
4330
|
}
|
|
4288
|
-
function
|
|
4289
|
-
|
|
4331
|
+
function Ft(e, t) {
|
|
4332
|
+
Sr(e, t);
|
|
4290
4333
|
}
|
|
4291
|
-
function
|
|
4334
|
+
function To(e) {
|
|
4292
4335
|
V.set(e);
|
|
4293
4336
|
}
|
|
4294
|
-
const
|
|
4337
|
+
const Dt = {
|
|
4295
4338
|
en: {
|
|
4296
4339
|
playRandomGame: "Play a random game",
|
|
4297
4340
|
randomGameLoading: "Selecting ...",
|
|
@@ -4365,39 +4408,39 @@ const Ct = {
|
|
|
4365
4408
|
noGames: "There are no random games to play"
|
|
4366
4409
|
}
|
|
4367
4410
|
};
|
|
4368
|
-
function
|
|
4369
|
-
|
|
4411
|
+
function Ho(e) {
|
|
4412
|
+
Qr(e, "svelte-kfgfhx", "*,*::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}.CasinoPlayRandomGameWrapper{min-height:0}.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, #22B04E));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{margin:5px 0;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, #22B04E));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, #22B04E));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}");
|
|
4370
4413
|
}
|
|
4371
|
-
function
|
|
4414
|
+
function jt(e, t, r) {
|
|
4372
4415
|
const n = e.slice();
|
|
4373
4416
|
return n[41] = t[r], n;
|
|
4374
4417
|
}
|
|
4375
|
-
const
|
|
4376
|
-
function
|
|
4418
|
+
const Bo = (e) => ({}), kt = (e) => ({});
|
|
4419
|
+
function Vt(e) {
|
|
4377
4420
|
let t, r, n, i, o, a, s;
|
|
4378
4421
|
const h = (
|
|
4379
4422
|
/*#slots*/
|
|
4380
4423
|
e[23].close
|
|
4381
|
-
), l =
|
|
4424
|
+
), l = Xr(
|
|
4382
4425
|
h,
|
|
4383
4426
|
e,
|
|
4384
4427
|
/*$$scope*/
|
|
4385
4428
|
e[22],
|
|
4386
|
-
|
|
4387
|
-
), u = l ||
|
|
4429
|
+
kt
|
|
4430
|
+
), u = l || Ao();
|
|
4388
4431
|
function f(d, p) {
|
|
4389
4432
|
return (
|
|
4390
4433
|
/*hasRandomGames*/
|
|
4391
|
-
d[7] ?
|
|
4434
|
+
d[7] ? Oo : Po
|
|
4392
4435
|
);
|
|
4393
4436
|
}
|
|
4394
4437
|
let c = f(e), m = c(e);
|
|
4395
4438
|
return {
|
|
4396
4439
|
c() {
|
|
4397
|
-
t =
|
|
4440
|
+
t = w("div"), r = w("div"), n = w("span"), u && u.c(), i = k(), m.c(), g(n, "class", "ModalCloseBtn"), g(n, "role", "button"), g(r, "class", "ModalContainer"), g(t, "class", "ModalWindow");
|
|
4398
4441
|
},
|
|
4399
4442
|
m(d, p) {
|
|
4400
|
-
I(d, t, p),
|
|
4443
|
+
I(d, t, p), _(t, r), _(r, n), u && u.m(n, null), _(r, i), m.m(r, null), o = !0, a || (s = Te(
|
|
4401
4444
|
n,
|
|
4402
4445
|
"click",
|
|
4403
4446
|
/*closeModal*/
|
|
@@ -4406,62 +4449,62 @@ function Ft(e) {
|
|
|
4406
4449
|
},
|
|
4407
4450
|
p(d, p) {
|
|
4408
4451
|
l && l.p && (!o || p[0] & /*$$scope*/
|
|
4409
|
-
4194304) &&
|
|
4452
|
+
4194304) && Jr(
|
|
4410
4453
|
l,
|
|
4411
4454
|
h,
|
|
4412
4455
|
d,
|
|
4413
4456
|
/*$$scope*/
|
|
4414
4457
|
d[22],
|
|
4415
|
-
o ?
|
|
4458
|
+
o ? zr(
|
|
4416
4459
|
h,
|
|
4417
4460
|
/*$$scope*/
|
|
4418
4461
|
d[22],
|
|
4419
4462
|
p,
|
|
4420
|
-
|
|
4421
|
-
) :
|
|
4463
|
+
Bo
|
|
4464
|
+
) : Zr(
|
|
4422
4465
|
/*$$scope*/
|
|
4423
4466
|
d[22]
|
|
4424
4467
|
),
|
|
4425
|
-
|
|
4468
|
+
kt
|
|
4426
4469
|
), c === (c = f(d)) && m ? m.p(d, p) : (m.d(1), m = c(d), m && (m.c(), m.m(r, null)));
|
|
4427
4470
|
},
|
|
4428
4471
|
i(d) {
|
|
4429
|
-
o || (
|
|
4472
|
+
o || (he(u, d), o = !0);
|
|
4430
4473
|
},
|
|
4431
4474
|
o(d) {
|
|
4432
|
-
|
|
4475
|
+
ze(u, d), o = !1;
|
|
4433
4476
|
},
|
|
4434
4477
|
d(d) {
|
|
4435
|
-
d &&
|
|
4478
|
+
d && O(t), u && u.d(d), m.d(), a = !1, s();
|
|
4436
4479
|
}
|
|
4437
4480
|
};
|
|
4438
4481
|
}
|
|
4439
|
-
function
|
|
4482
|
+
function Ao(e) {
|
|
4440
4483
|
let t, r;
|
|
4441
4484
|
return {
|
|
4442
4485
|
c() {
|
|
4443
|
-
t =
|
|
4486
|
+
t = gt("svg"), r = gt("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");
|
|
4444
4487
|
},
|
|
4445
4488
|
m(n, i) {
|
|
4446
|
-
I(n, t, i),
|
|
4489
|
+
I(n, t, i), _(t, r);
|
|
4447
4490
|
},
|
|
4448
|
-
p:
|
|
4491
|
+
p: C,
|
|
4449
4492
|
d(n) {
|
|
4450
|
-
n &&
|
|
4493
|
+
n && O(t);
|
|
4451
4494
|
}
|
|
4452
4495
|
};
|
|
4453
4496
|
}
|
|
4454
|
-
function
|
|
4497
|
+
function Po(e) {
|
|
4455
4498
|
let t, r = (
|
|
4456
4499
|
/*$_*/
|
|
4457
4500
|
e[9]("noGames") + ""
|
|
4458
4501
|
), n;
|
|
4459
4502
|
return {
|
|
4460
4503
|
c() {
|
|
4461
|
-
t =
|
|
4504
|
+
t = w("p"), n = j(r), g(t, "class", "RandomGameLoading");
|
|
4462
4505
|
},
|
|
4463
4506
|
m(i, o) {
|
|
4464
|
-
I(i, t, o),
|
|
4507
|
+
I(i, t, o), _(t, n);
|
|
4465
4508
|
},
|
|
4466
4509
|
p(i, o) {
|
|
4467
4510
|
o[0] & /*$_*/
|
|
@@ -4469,48 +4512,48 @@ function So(e) {
|
|
|
4469
4512
|
i[9]("noGames") + "") && X(n, r);
|
|
4470
4513
|
},
|
|
4471
4514
|
d(i) {
|
|
4472
|
-
i &&
|
|
4515
|
+
i && O(t);
|
|
4473
4516
|
}
|
|
4474
4517
|
};
|
|
4475
4518
|
}
|
|
4476
|
-
function
|
|
4477
|
-
let t, r, n, i, o =
|
|
4519
|
+
function Oo(e) {
|
|
4520
|
+
let t, r, n, i, o = vt(
|
|
4478
4521
|
/*gamesToShow*/
|
|
4479
4522
|
e[4]
|
|
4480
4523
|
), a = [];
|
|
4481
4524
|
for (let u = 0; u < o.length; u += 1)
|
|
4482
|
-
a[u] =
|
|
4525
|
+
a[u] = Wt(jt(e, o, u));
|
|
4483
4526
|
function s(u, f) {
|
|
4484
4527
|
return (
|
|
4485
4528
|
/*animationDone*/
|
|
4486
|
-
u[6] ?
|
|
4529
|
+
u[6] ? Io : Ro
|
|
4487
4530
|
);
|
|
4488
4531
|
}
|
|
4489
4532
|
let h = s(e), l = h(e);
|
|
4490
4533
|
return {
|
|
4491
4534
|
c() {
|
|
4492
|
-
t =
|
|
4535
|
+
t = w("div"), r = w("main"), n = w("div");
|
|
4493
4536
|
for (let u = 0; u < a.length; u += 1)
|
|
4494
4537
|
a[u].c();
|
|
4495
4538
|
i = k(), l.c(), g(n, "class", "GamesContainer"), g(r, "class", "RandomGamesSliderWrapper"), g(t, "class", "RandomGameWrapper");
|
|
4496
4539
|
},
|
|
4497
4540
|
m(u, f) {
|
|
4498
|
-
I(u, t, f),
|
|
4541
|
+
I(u, t, f), _(t, r), _(r, n);
|
|
4499
4542
|
for (let c = 0; c < a.length; c += 1)
|
|
4500
4543
|
a[c] && a[c].m(n, null);
|
|
4501
|
-
e[24](n),
|
|
4544
|
+
e[24](n), _(t, i), l.m(t, null);
|
|
4502
4545
|
},
|
|
4503
4546
|
p(u, f) {
|
|
4504
4547
|
if (f[0] & /*gamesToShow*/
|
|
4505
4548
|
16) {
|
|
4506
|
-
o =
|
|
4549
|
+
o = vt(
|
|
4507
4550
|
/*gamesToShow*/
|
|
4508
4551
|
u[4]
|
|
4509
4552
|
);
|
|
4510
4553
|
let c;
|
|
4511
4554
|
for (c = 0; c < o.length; c += 1) {
|
|
4512
|
-
const m =
|
|
4513
|
-
a[c] ? a[c].p(m, f) : (a[c] =
|
|
4555
|
+
const m = jt(u, o, c);
|
|
4556
|
+
a[c] ? a[c].p(m, f) : (a[c] = Wt(m), a[c].c(), a[c].m(n, null));
|
|
4514
4557
|
}
|
|
4515
4558
|
for (; c < a.length; c += 1)
|
|
4516
4559
|
a[c].d(1);
|
|
@@ -4519,25 +4562,25 @@ function To(e) {
|
|
|
4519
4562
|
h === (h = s(u)) && l ? l.p(u, f) : (l.d(1), l = h(u), l && (l.c(), l.m(t, null)));
|
|
4520
4563
|
},
|
|
4521
4564
|
d(u) {
|
|
4522
|
-
u &&
|
|
4565
|
+
u && O(t), Kr(a, u), e[24](null), l.d();
|
|
4523
4566
|
}
|
|
4524
4567
|
};
|
|
4525
4568
|
}
|
|
4526
|
-
function
|
|
4569
|
+
function Wt(e) {
|
|
4527
4570
|
let t, r, n, i, o, a;
|
|
4528
4571
|
return {
|
|
4529
4572
|
c() {
|
|
4530
|
-
t =
|
|
4573
|
+
t = w("div"), r = w("img"), a = k(), g(r, "class", "RandomGameImage"), bt(r.src, n = /*game*/
|
|
4531
4574
|
e[41].thumbnail) || g(r, "src", n), g(r, "alt", i = /*game*/
|
|
4532
4575
|
e[41].name), g(r, "title", o = /*game*/
|
|
4533
4576
|
e[41].name), g(t, "class", "item");
|
|
4534
4577
|
},
|
|
4535
4578
|
m(s, h) {
|
|
4536
|
-
I(s, t, h),
|
|
4579
|
+
I(s, t, h), _(t, r), _(t, a);
|
|
4537
4580
|
},
|
|
4538
4581
|
p(s, h) {
|
|
4539
4582
|
h[0] & /*gamesToShow*/
|
|
4540
|
-
16 && !
|
|
4583
|
+
16 && !bt(r.src, n = /*game*/
|
|
4541
4584
|
s[41].thumbnail) && g(r, "src", n), h[0] & /*gamesToShow*/
|
|
4542
4585
|
16 && i !== (i = /*game*/
|
|
4543
4586
|
s[41].name) && g(r, "alt", i), h[0] & /*gamesToShow*/
|
|
@@ -4545,21 +4588,21 @@ function Dt(e) {
|
|
|
4545
4588
|
s[41].name) && g(r, "title", o);
|
|
4546
4589
|
},
|
|
4547
4590
|
d(s) {
|
|
4548
|
-
s &&
|
|
4591
|
+
s && O(t);
|
|
4549
4592
|
}
|
|
4550
4593
|
};
|
|
4551
4594
|
}
|
|
4552
|
-
function
|
|
4595
|
+
function Ro(e) {
|
|
4553
4596
|
let t, r = (
|
|
4554
4597
|
/*$_*/
|
|
4555
4598
|
e[9]("randomGameLoading") + ""
|
|
4556
4599
|
), n;
|
|
4557
4600
|
return {
|
|
4558
4601
|
c() {
|
|
4559
|
-
t =
|
|
4602
|
+
t = w("p"), n = j(r), g(t, "class", "RandomGameLoading");
|
|
4560
4603
|
},
|
|
4561
4604
|
m(i, o) {
|
|
4562
|
-
I(i, t, o),
|
|
4605
|
+
I(i, t, o), _(t, n);
|
|
4563
4606
|
},
|
|
4564
4607
|
p(i, o) {
|
|
4565
4608
|
o[0] & /*$_*/
|
|
@@ -4567,11 +4610,11 @@ function Ho(e) {
|
|
|
4567
4610
|
i[9]("randomGameLoading") + "") && X(n, r);
|
|
4568
4611
|
},
|
|
4569
4612
|
d(i) {
|
|
4570
|
-
i &&
|
|
4613
|
+
i && O(t);
|
|
4571
4614
|
}
|
|
4572
4615
|
};
|
|
4573
4616
|
}
|
|
4574
|
-
function
|
|
4617
|
+
function Io(e) {
|
|
4575
4618
|
let t, r, n, i, o = (
|
|
4576
4619
|
/*randomGame*/
|
|
4577
4620
|
e[3].name + ""
|
|
@@ -4584,11 +4627,11 @@ function Bo(e) {
|
|
|
4584
4627
|
), d, p, A;
|
|
4585
4628
|
return {
|
|
4586
4629
|
c() {
|
|
4587
|
-
t =
|
|
4588
|
-
</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 = k(), n =
|
|
4630
|
+
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));}
|
|
4631
|
+
</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 = k(), n = w("div"), i = w("p"), a = j(o), s = k(), h = w("p"), u = j(l), f = k(), c = w("button"), d = j(m), g(t, "class", "RandomTryAgain"), g(i, "class", "RandomGameTitle"), g(h, "class", "RandomGameVendor"), g(c, "class", "RandomGamePlay"), g(n, "class", "RandomGameDetails");
|
|
4589
4632
|
},
|
|
4590
4633
|
m(H, T) {
|
|
4591
|
-
I(H, t, T), I(H, r, T), I(H, n, T),
|
|
4634
|
+
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 = [
|
|
4592
4635
|
Te(
|
|
4593
4636
|
t,
|
|
4594
4637
|
"click",
|
|
@@ -4613,21 +4656,21 @@ function Bo(e) {
|
|
|
4613
4656
|
H[9]("playNowRandomGame") + "") && X(d, m);
|
|
4614
4657
|
},
|
|
4615
4658
|
d(H) {
|
|
4616
|
-
H && (
|
|
4659
|
+
H && (O(t), O(r), O(n)), p = !1, z(A);
|
|
4617
4660
|
}
|
|
4618
4661
|
};
|
|
4619
4662
|
}
|
|
4620
|
-
function
|
|
4663
|
+
function No(e) {
|
|
4621
4664
|
let t, r = (
|
|
4622
4665
|
/*$_*/
|
|
4623
4666
|
e[9]("playRandomGame") + ""
|
|
4624
4667
|
), n;
|
|
4625
4668
|
return {
|
|
4626
4669
|
c() {
|
|
4627
|
-
t =
|
|
4670
|
+
t = w("span"), n = j(r), g(t, "class", "RandomButtonText");
|
|
4628
4671
|
},
|
|
4629
4672
|
m(i, o) {
|
|
4630
|
-
I(i, t, o),
|
|
4673
|
+
I(i, t, o), _(t, n);
|
|
4631
4674
|
},
|
|
4632
4675
|
p(i, o) {
|
|
4633
4676
|
o[0] & /*$_*/
|
|
@@ -4635,21 +4678,21 @@ function Ao(e) {
|
|
|
4635
4678
|
i[9]("playRandomGame") + "") && X(n, r);
|
|
4636
4679
|
},
|
|
4637
4680
|
d(i) {
|
|
4638
|
-
i &&
|
|
4681
|
+
i && O(t);
|
|
4639
4682
|
}
|
|
4640
4683
|
};
|
|
4641
4684
|
}
|
|
4642
|
-
function
|
|
4685
|
+
function Lo(e) {
|
|
4643
4686
|
let t, r;
|
|
4644
4687
|
return {
|
|
4645
4688
|
c() {
|
|
4646
|
-
t =
|
|
4689
|
+
t = w("span"), r = j(
|
|
4647
4690
|
/*buttontext*/
|
|
4648
4691
|
e[1]
|
|
4649
4692
|
), g(t, "class", "RandomButtonText");
|
|
4650
4693
|
},
|
|
4651
4694
|
m(n, i) {
|
|
4652
|
-
I(n, t, i),
|
|
4695
|
+
I(n, t, i), _(t, r);
|
|
4653
4696
|
},
|
|
4654
4697
|
p(n, i) {
|
|
4655
4698
|
i[0] & /*buttontext*/
|
|
@@ -4660,32 +4703,32 @@ function Po(e) {
|
|
|
4660
4703
|
);
|
|
4661
4704
|
},
|
|
4662
4705
|
d(n) {
|
|
4663
|
-
n &&
|
|
4706
|
+
n && O(t);
|
|
4664
4707
|
}
|
|
4665
4708
|
};
|
|
4666
4709
|
}
|
|
4667
|
-
function
|
|
4710
|
+
function Mo(e) {
|
|
4668
4711
|
let t, r, n, i, o, a, s, h, l, u = (
|
|
4669
4712
|
/*show*/
|
|
4670
|
-
e[5] &&
|
|
4713
|
+
e[5] && Vt(e)
|
|
4671
4714
|
);
|
|
4672
4715
|
function f(d, p) {
|
|
4673
4716
|
if (
|
|
4674
4717
|
/*buttontext*/
|
|
4675
4718
|
d[1]
|
|
4676
4719
|
)
|
|
4677
|
-
return
|
|
4720
|
+
return Lo;
|
|
4678
4721
|
if (!/*buttontext*/
|
|
4679
4722
|
d[1])
|
|
4680
|
-
return
|
|
4723
|
+
return No;
|
|
4681
4724
|
}
|
|
4682
4725
|
let c = f(e), m = c && c(e);
|
|
4683
4726
|
return {
|
|
4684
4727
|
c() {
|
|
4685
|
-
t =
|
|
4728
|
+
t = w("div"), u && u.c(), r = k(), n = w("div"), i = w("button"), m && m.c(), o = k(), a = w("span"), g(a, "class", "RandomButtonIcon"), g(i, "class", "RandomButton"), g(n, "class", "RandomButtonWrapper");
|
|
4686
4729
|
},
|
|
4687
4730
|
m(d, p) {
|
|
4688
|
-
I(d, t, p), u && u.m(t, null),
|
|
4731
|
+
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*/
|
|
4689
4732
|
e[0], e[28](t), s = !0, h || (l = Te(
|
|
4690
4733
|
i,
|
|
4691
4734
|
"click",
|
|
@@ -4696,75 +4739,75 @@ function Ro(e) {
|
|
|
4696
4739
|
p(d, p) {
|
|
4697
4740
|
/*show*/
|
|
4698
4741
|
d[5] ? u ? (u.p(d, p), p[0] & /*show*/
|
|
4699
|
-
32 &&
|
|
4742
|
+
32 && he(u, 1)) : (u = Vt(d), u.c(), he(u, 1), u.m(t, r)) : u && (un(), ze(u, 1, 1, () => {
|
|
4700
4743
|
u = null;
|
|
4701
|
-
}),
|
|
4744
|
+
}), ln()), 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*/
|
|
4702
4745
|
1) && (a.innerHTML = /*randombuttonicon*/
|
|
4703
4746
|
d[0]);
|
|
4704
4747
|
},
|
|
4705
4748
|
i(d) {
|
|
4706
|
-
s || (
|
|
4749
|
+
s || (he(u), s = !0);
|
|
4707
4750
|
},
|
|
4708
4751
|
o(d) {
|
|
4709
|
-
|
|
4752
|
+
ze(u), s = !1;
|
|
4710
4753
|
},
|
|
4711
4754
|
d(d) {
|
|
4712
|
-
d &&
|
|
4755
|
+
d && O(t), u && u.d(), m && m.d(), e[28](null), h = !1, l();
|
|
4713
4756
|
}
|
|
4714
4757
|
};
|
|
4715
4758
|
}
|
|
4716
|
-
function
|
|
4759
|
+
function Co(e, t, r) {
|
|
4717
4760
|
let n;
|
|
4718
|
-
|
|
4719
|
-
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, N = !1, L = !1,
|
|
4720
|
-
|
|
4721
|
-
const
|
|
4722
|
-
fetch(c).then((
|
|
4723
|
-
Object.keys(
|
|
4724
|
-
|
|
4761
|
+
Wr(e, vo, (b) => r(9, n = b));
|
|
4762
|
+
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, N = !1, L = !1, G = !1, pe = window.navigator.userAgent, U, Z, ft, be, mt = null;
|
|
4763
|
+
So({ withLocale: "en", translations: {} });
|
|
4764
|
+
const Pr = () => {
|
|
4765
|
+
fetch(c).then((x) => x.json()).then((x) => {
|
|
4766
|
+
Object.keys(x).forEach(($) => {
|
|
4767
|
+
Ft($, x[$]);
|
|
4725
4768
|
});
|
|
4726
|
-
}).catch((
|
|
4727
|
-
console.log(
|
|
4769
|
+
}).catch((x) => {
|
|
4770
|
+
console.log(x);
|
|
4728
4771
|
});
|
|
4729
4772
|
};
|
|
4730
|
-
Object.keys(
|
|
4731
|
-
|
|
4773
|
+
Object.keys(Dt).forEach((b) => {
|
|
4774
|
+
Ft(b, Dt[b]);
|
|
4732
4775
|
});
|
|
4733
|
-
const
|
|
4776
|
+
const Or = () => {
|
|
4734
4777
|
let b = new URL(`${a}/v1/casino/games`);
|
|
4735
|
-
b.searchParams.append("platform",
|
|
4736
|
-
H =
|
|
4737
|
-
}).catch((
|
|
4738
|
-
console.log(
|
|
4778
|
+
b.searchParams.append("platform", _o(pe)), 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) => {
|
|
4779
|
+
H = x.items, H.length ? (r(4, B = Rr(H.slice(0, 19))), r(7, G = !0)) : (r(4, B = []), r(7, G = !1));
|
|
4780
|
+
}).catch((x) => {
|
|
4781
|
+
console.log(x), r(7, G = !1);
|
|
4739
4782
|
});
|
|
4740
|
-
},
|
|
4741
|
-
const
|
|
4742
|
-
return
|
|
4743
|
-
},
|
|
4744
|
-
await
|
|
4745
|
-
},
|
|
4746
|
-
r(6, L = !1), r(5, N = !0), window.postMessage({ type: "RandomWidgetState", state: !0 }, window.location.href), await
|
|
4747
|
-
const b = window.getComputedStyle(Z).getPropertyValue("gap"),
|
|
4783
|
+
}, Rr = (b) => {
|
|
4784
|
+
const x = Nr(b);
|
|
4785
|
+
return x.concat(x);
|
|
4786
|
+
}, Ir = async () => {
|
|
4787
|
+
await on(), be = Math.floor(Math.random() * (B.length / 2)) + B.length / 2, r(3, T = B[be]), ft = Z.children[be];
|
|
4788
|
+
}, Ce = async () => {
|
|
4789
|
+
r(6, L = !1), r(5, N = !0), window.postMessage({ type: "RandomWidgetState", state: !0 }, window.location.href), await Ir();
|
|
4790
|
+
const b = window.getComputedStyle(Z).getPropertyValue("gap"), x = parseInt(b, 10) || 0, se = (ft.offsetHeight + x) * be, Dr = [
|
|
4748
4791
|
{ transform: "translateX(0px)" },
|
|
4749
4792
|
{ filter: "blur(5px)" },
|
|
4750
4793
|
{
|
|
4751
|
-
transform: `translateY(-${
|
|
4794
|
+
transform: `translateY(-${se}px)`
|
|
4752
4795
|
}
|
|
4753
|
-
],
|
|
4796
|
+
], jr = {
|
|
4754
4797
|
duration: 2e3,
|
|
4755
4798
|
easing: "cubic-bezier(0.5, 0, 0.5, 1.2)",
|
|
4756
4799
|
fill: "forwards"
|
|
4757
4800
|
};
|
|
4758
|
-
|
|
4801
|
+
mt = Z.animate(Dr, jr), mt.onfinish = () => {
|
|
4759
4802
|
r(6, L = !0);
|
|
4760
4803
|
};
|
|
4761
|
-
},
|
|
4762
|
-
const
|
|
4763
|
-
let
|
|
4764
|
-
for (;
|
|
4765
|
-
|
|
4766
|
-
return
|
|
4767
|
-
},
|
|
4804
|
+
}, Nr = (b) => {
|
|
4805
|
+
const x = structuredClone(b);
|
|
4806
|
+
let $ = x.length, se;
|
|
4807
|
+
for (; $ != 0; )
|
|
4808
|
+
se = Math.floor(Math.random() * $), $--, [x[$], x[se]] = [x[se], x[$]];
|
|
4809
|
+
return x;
|
|
4810
|
+
}, dt = () => {
|
|
4768
4811
|
window.postMessage(
|
|
4769
4812
|
{
|
|
4770
4813
|
type: h,
|
|
@@ -4775,48 +4818,48 @@ function Oo(e, t, r) {
|
|
|
4775
4818
|
context: "RandomGameWidget",
|
|
4776
4819
|
gameId: `${T.gId || T.id}`
|
|
4777
4820
|
});
|
|
4778
|
-
},
|
|
4821
|
+
}, Lr = () => {
|
|
4779
4822
|
r(5, N = !1), window.postMessage({ type: "RandomWidgetState", state: N }, window.location.href);
|
|
4780
|
-
},
|
|
4781
|
-
|
|
4823
|
+
}, Mr = () => {
|
|
4824
|
+
To(l);
|
|
4782
4825
|
};
|
|
4783
|
-
|
|
4826
|
+
nn(() => () => {
|
|
4784
4827
|
});
|
|
4785
|
-
function
|
|
4828
|
+
function Cr(b) {
|
|
4786
4829
|
He[b ? "unshift" : "push"](() => {
|
|
4787
4830
|
Z = b, r(8, Z);
|
|
4788
4831
|
});
|
|
4789
4832
|
}
|
|
4790
|
-
const
|
|
4791
|
-
function
|
|
4833
|
+
const Gr = () => Ce(), Ur = () => dt(), $r = () => Ce();
|
|
4834
|
+
function Fr(b) {
|
|
4792
4835
|
He[b ? "unshift" : "push"](() => {
|
|
4793
|
-
|
|
4836
|
+
U = b, r(2, U);
|
|
4794
4837
|
});
|
|
4795
4838
|
}
|
|
4796
4839
|
return e.$$set = (b) => {
|
|
4797
4840
|
"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);
|
|
4798
4841
|
}, e.$$.update = () => {
|
|
4799
4842
|
e.$$.dirty[0] & /*lang*/
|
|
4800
|
-
65536 && l &&
|
|
4801
|
-
131072 && c &&
|
|
4802
|
-
24576 && a && s &&
|
|
4803
|
-
262148 && m &&
|
|
4804
|
-
524292 && d &&
|
|
4805
|
-
2097156 &&
|
|
4843
|
+
65536 && l && Mr(), e.$$.dirty[0] & /*translationurl*/
|
|
4844
|
+
131072 && c && Pr(), e.$$.dirty[0] & /*endpoint, datasource*/
|
|
4845
|
+
24576 && a && s && Or(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4846
|
+
262148 && m && U && xo(U, m), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4847
|
+
524292 && d && U && Eo(U, d), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
4848
|
+
2097156 && U && wo(U, `${A}.Style`);
|
|
4806
4849
|
}, [
|
|
4807
4850
|
u,
|
|
4808
4851
|
f,
|
|
4809
|
-
|
|
4852
|
+
U,
|
|
4810
4853
|
T,
|
|
4811
4854
|
B,
|
|
4812
4855
|
N,
|
|
4813
4856
|
L,
|
|
4814
|
-
|
|
4857
|
+
G,
|
|
4815
4858
|
Z,
|
|
4816
4859
|
n,
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4860
|
+
Ce,
|
|
4861
|
+
dt,
|
|
4862
|
+
Lr,
|
|
4820
4863
|
a,
|
|
4821
4864
|
s,
|
|
4822
4865
|
h,
|
|
@@ -4828,21 +4871,21 @@ function Oo(e, t, r) {
|
|
|
4828
4871
|
A,
|
|
4829
4872
|
o,
|
|
4830
4873
|
i,
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4874
|
+
Cr,
|
|
4875
|
+
Gr,
|
|
4876
|
+
Ur,
|
|
4877
|
+
$r,
|
|
4878
|
+
Fr
|
|
4836
4879
|
];
|
|
4837
4880
|
}
|
|
4838
|
-
class
|
|
4881
|
+
class Go extends pn {
|
|
4839
4882
|
constructor(t) {
|
|
4840
|
-
super(),
|
|
4883
|
+
super(), mn(
|
|
4841
4884
|
this,
|
|
4842
4885
|
t,
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4886
|
+
Co,
|
|
4887
|
+
Mo,
|
|
4888
|
+
zt,
|
|
4846
4889
|
{
|
|
4847
4890
|
endpoint: 13,
|
|
4848
4891
|
datasource: 14,
|
|
@@ -4856,7 +4899,7 @@ class Io extends hn {
|
|
|
4856
4899
|
filteredrandomgamecategories: 20,
|
|
4857
4900
|
mbsource: 21
|
|
4858
4901
|
},
|
|
4859
|
-
|
|
4902
|
+
Ho,
|
|
4860
4903
|
[-1, -1]
|
|
4861
4904
|
);
|
|
4862
4905
|
}
|
|
@@ -4864,70 +4907,70 @@ class Io extends hn {
|
|
|
4864
4907
|
return this.$$.ctx[13];
|
|
4865
4908
|
}
|
|
4866
4909
|
set endpoint(t) {
|
|
4867
|
-
this.$$set({ endpoint: t }),
|
|
4910
|
+
this.$$set({ endpoint: t }), R();
|
|
4868
4911
|
}
|
|
4869
4912
|
get datasource() {
|
|
4870
4913
|
return this.$$.ctx[14];
|
|
4871
4914
|
}
|
|
4872
4915
|
set datasource(t) {
|
|
4873
|
-
this.$$set({ datasource: t }),
|
|
4916
|
+
this.$$set({ datasource: t }), R();
|
|
4874
4917
|
}
|
|
4875
4918
|
get gameevent() {
|
|
4876
4919
|
return this.$$.ctx[15];
|
|
4877
4920
|
}
|
|
4878
4921
|
set gameevent(t) {
|
|
4879
|
-
this.$$set({ gameevent: t }),
|
|
4922
|
+
this.$$set({ gameevent: t }), R();
|
|
4880
4923
|
}
|
|
4881
4924
|
get lang() {
|
|
4882
4925
|
return this.$$.ctx[16];
|
|
4883
4926
|
}
|
|
4884
4927
|
set lang(t) {
|
|
4885
|
-
this.$$set({ lang: t }),
|
|
4928
|
+
this.$$set({ lang: t }), R();
|
|
4886
4929
|
}
|
|
4887
4930
|
get randombuttonicon() {
|
|
4888
4931
|
return this.$$.ctx[0];
|
|
4889
4932
|
}
|
|
4890
4933
|
set randombuttonicon(t) {
|
|
4891
|
-
this.$$set({ randombuttonicon: t }),
|
|
4934
|
+
this.$$set({ randombuttonicon: t }), R();
|
|
4892
4935
|
}
|
|
4893
4936
|
get buttontext() {
|
|
4894
4937
|
return this.$$.ctx[1];
|
|
4895
4938
|
}
|
|
4896
4939
|
set buttontext(t) {
|
|
4897
|
-
this.$$set({ buttontext: t }),
|
|
4940
|
+
this.$$set({ buttontext: t }), R();
|
|
4898
4941
|
}
|
|
4899
4942
|
get translationurl() {
|
|
4900
4943
|
return this.$$.ctx[17];
|
|
4901
4944
|
}
|
|
4902
4945
|
set translationurl(t) {
|
|
4903
|
-
this.$$set({ translationurl: t }),
|
|
4946
|
+
this.$$set({ translationurl: t }), R();
|
|
4904
4947
|
}
|
|
4905
4948
|
get clientstyling() {
|
|
4906
4949
|
return this.$$.ctx[18];
|
|
4907
4950
|
}
|
|
4908
4951
|
set clientstyling(t) {
|
|
4909
|
-
this.$$set({ clientstyling: t }),
|
|
4952
|
+
this.$$set({ clientstyling: t }), R();
|
|
4910
4953
|
}
|
|
4911
4954
|
get clientstylingurl() {
|
|
4912
4955
|
return this.$$.ctx[19];
|
|
4913
4956
|
}
|
|
4914
4957
|
set clientstylingurl(t) {
|
|
4915
|
-
this.$$set({ clientstylingurl: t }),
|
|
4958
|
+
this.$$set({ clientstylingurl: t }), R();
|
|
4916
4959
|
}
|
|
4917
4960
|
get filteredrandomgamecategories() {
|
|
4918
4961
|
return this.$$.ctx[20];
|
|
4919
4962
|
}
|
|
4920
4963
|
set filteredrandomgamecategories(t) {
|
|
4921
|
-
this.$$set({ filteredrandomgamecategories: t }),
|
|
4964
|
+
this.$$set({ filteredrandomgamecategories: t }), R();
|
|
4922
4965
|
}
|
|
4923
4966
|
get mbsource() {
|
|
4924
4967
|
return this.$$.ctx[21];
|
|
4925
4968
|
}
|
|
4926
4969
|
set mbsource(t) {
|
|
4927
|
-
this.$$set({ mbsource: t }),
|
|
4970
|
+
this.$$set({ mbsource: t }), R();
|
|
4928
4971
|
}
|
|
4929
4972
|
}
|
|
4930
|
-
|
|
4973
|
+
dn(Go, { endpoint: {}, datasource: {}, gameevent: {}, lang: {}, randombuttonicon: {}, buttontext: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, filteredrandomgamecategories: {}, mbsource: {} }, ["close"], [], !0);
|
|
4931
4974
|
export {
|
|
4932
|
-
|
|
4975
|
+
Go as C
|
|
4933
4976
|
};
|