@everymatrix/casino-lobby-mini-games 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoLobbyMiniGames-BY57Q6t9.js → CasinoLobbyMiniGames-BryWSr_q.js} +839 -874
- package/components/CasinoLobbyMiniGames-n4MOHFqS.cjs +20 -0
- package/components/{CasinoLobbyMiniGames-Bh5LeG52.js → CasinoLobbyMiniGames-sNUyjxD5.js} +804 -839
- package/components/{CasinoMysteryChestContainer-IiI_otYE.js → CasinoMysteryChestContainer-CdhHMGFs.js} +16 -16
- package/components/{CasinoMysteryChestContainer-Z25Fea_T.cjs → CasinoMysteryChestContainer-D15BPVsB.cjs} +1 -1
- package/components/{CasinoMysteryChestContainer-wxjkuWy1.js → CasinoMysteryChestContainer-D7JtkMJ9.js} +18 -18
- package/components/{CasinoMysteryChestDetails-Dqlj_CKW.js → CasinoMysteryChestDetails--0wC24zE.js} +169 -169
- package/components/{CasinoMysteryChestDetails-Chfd66X8.js → CasinoMysteryChestDetails-D5dMcrfJ.js} +183 -183
- package/components/{CasinoMysteryChestDetails-foimB6DB.cjs → CasinoMysteryChestDetails-xS_2_kXB.cjs} +2 -2
- package/components/{CasinoMysteryChestModal-CC3ky83r.js → CasinoMysteryChestModal-Dg8ZAcJN.js} +13 -13
- package/components/{CasinoMysteryChestModal-a-4F-9oK.cjs → CasinoMysteryChestModal-DoD9hwC0.cjs} +1 -1
- package/components/{CasinoMysteryChestModal-CePqroCF.js → CasinoMysteryChestModal-GMfH3Nfr.js} +16 -16
- package/components/CasinoMysteryChestsList-6U8-I26u.cjs +1 -0
- package/components/{CasinoMysteryChestsList-DK9sWaBi.js → CasinoMysteryChestsList-BT105bIk.js} +565 -563
- package/components/{CasinoMysteryChestsList-IyypXB58.js → CasinoMysteryChestsList-D2r8u6uw.js} +593 -591
- package/components/{GeneralAnimationLoading-kV60Vm7G.js → GeneralAnimationLoading-5QXKFRlL.js} +13 -13
- package/components/{GeneralAnimationLoading-C5zco7Jv.js → GeneralAnimationLoading-5lYCjCwv.js} +17 -17
- package/components/{GeneralAnimationLoading-ie71G-dL.cjs → GeneralAnimationLoading-CRL3xtro.cjs} +1 -1
- package/es2015/casino-lobby-mini-games.cjs +1 -1
- package/es2015/casino-lobby-mini-games.js +1 -1
- package/esnext/casino-lobby-mini-games.js +1 -1
- package/package.json +1 -1
- package/components/CasinoLobbyMiniGames-CajMXLVl.cjs +0 -20
- package/components/CasinoMysteryChestsList-Bub2sm61.cjs +0 -1
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
function I() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Pt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function st() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function re(e) {
|
|
10
|
+
e.forEach(Pt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function et(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Ct(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
18
|
let me;
|
|
19
|
-
function
|
|
19
|
+
function Ki(e, t) {
|
|
20
20
|
return e === t ? !0 : (me || (me = document.createElement("a")), me.href = t, e === me.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function cr(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function It(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const n of t)
|
|
28
28
|
n(void 0);
|
|
@@ -31,20 +31,20 @@ function $t(e, ...t) {
|
|
|
31
31
|
const r = e.subscribe(...t);
|
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
e.$$.on_destroy.push(
|
|
34
|
+
function dr(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(It(t, r));
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function w(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const n =
|
|
40
|
+
function pr(e, t, r) {
|
|
41
|
+
const n = mr(e);
|
|
42
42
|
if (!n.getElementById(t)) {
|
|
43
43
|
const i = C("style");
|
|
44
|
-
i.id = t, i.textContent = r,
|
|
44
|
+
i.id = t, i.textContent = r, br(n, i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function mr(e) {
|
|
48
48
|
if (!e)
|
|
49
49
|
return document;
|
|
50
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -54,20 +54,20 @@ function vr(e) {
|
|
|
54
54
|
t
|
|
55
55
|
) : e.ownerDocument;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
58
|
-
return
|
|
57
|
+
function br(e, t) {
|
|
58
|
+
return w(
|
|
59
59
|
/** @type {Document} */
|
|
60
60
|
e.head || e,
|
|
61
61
|
t
|
|
62
62
|
), t.sheet;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function ne(e, t, r) {
|
|
65
65
|
e.insertBefore(t, r || null);
|
|
66
66
|
}
|
|
67
67
|
function k(e) {
|
|
68
68
|
e.parentNode && e.parentNode.removeChild(e);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function es(e, t) {
|
|
71
71
|
for (let r = 0; r < e.length; r += 1)
|
|
72
72
|
e[r] && e[r].d(t);
|
|
73
73
|
}
|
|
@@ -80,20 +80,20 @@ function Q(e) {
|
|
|
80
80
|
function be() {
|
|
81
81
|
return Q(" ");
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function ts() {
|
|
84
84
|
return Q("");
|
|
85
85
|
}
|
|
86
86
|
function ye(e, t, r, n) {
|
|
87
87
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function B(e, t, r) {
|
|
90
90
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
91
91
|
}
|
|
92
92
|
function $(e, t, r) {
|
|
93
93
|
const n = t.toLowerCase();
|
|
94
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
94
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : B(e, t, r);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function yr(e) {
|
|
97
97
|
return Array.from(e.childNodes);
|
|
98
98
|
}
|
|
99
99
|
function ge(e, t) {
|
|
@@ -103,7 +103,7 @@ function ge(e, t) {
|
|
|
103
103
|
function G(e, t, r) {
|
|
104
104
|
e.classList.toggle(t, !!r);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function gr(e) {
|
|
107
107
|
const t = {};
|
|
108
108
|
return e.childNodes.forEach(
|
|
109
109
|
/** @param {Element} node */
|
|
@@ -112,90 +112,90 @@ function xr(e) {
|
|
|
112
112
|
}
|
|
113
113
|
), t;
|
|
114
114
|
}
|
|
115
|
-
let
|
|
116
|
-
function
|
|
117
|
-
|
|
115
|
+
let le;
|
|
116
|
+
function he(e) {
|
|
117
|
+
le = e;
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
if (!
|
|
119
|
+
function _r() {
|
|
120
|
+
if (!le)
|
|
121
121
|
throw new Error("Function called outside component initialization");
|
|
122
|
-
return
|
|
122
|
+
return le;
|
|
123
123
|
}
|
|
124
|
-
function
|
|
125
|
-
|
|
124
|
+
function vr(e) {
|
|
125
|
+
_r().$$.on_mount.push(e);
|
|
126
126
|
}
|
|
127
|
-
const Z = [],
|
|
127
|
+
const Z = [], De = [];
|
|
128
128
|
let q = [];
|
|
129
|
-
const
|
|
130
|
-
let
|
|
131
|
-
function
|
|
132
|
-
|
|
129
|
+
const ot = [], Er = /* @__PURE__ */ Promise.resolve();
|
|
130
|
+
let Ge = !1;
|
|
131
|
+
function xr() {
|
|
132
|
+
Ge || (Ge = !0, Er.then(R));
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function Fe(e) {
|
|
135
135
|
q.push(e);
|
|
136
136
|
}
|
|
137
|
-
const
|
|
137
|
+
const Ie = /* @__PURE__ */ new Set();
|
|
138
138
|
let W = 0;
|
|
139
|
-
function
|
|
139
|
+
function R() {
|
|
140
140
|
if (W !== 0)
|
|
141
141
|
return;
|
|
142
|
-
const e =
|
|
142
|
+
const e = le;
|
|
143
143
|
do {
|
|
144
144
|
try {
|
|
145
145
|
for (; W < Z.length; ) {
|
|
146
146
|
const t = Z[W];
|
|
147
|
-
W++,
|
|
147
|
+
W++, he(t), Sr(t.$$);
|
|
148
148
|
}
|
|
149
149
|
} catch (t) {
|
|
150
150
|
throw Z.length = 0, W = 0, t;
|
|
151
151
|
}
|
|
152
|
-
for (
|
|
153
|
-
|
|
152
|
+
for (he(null), Z.length = 0, W = 0; De.length; )
|
|
153
|
+
De.pop()();
|
|
154
154
|
for (let t = 0; t < q.length; t += 1) {
|
|
155
155
|
const r = q[t];
|
|
156
|
-
|
|
156
|
+
Ie.has(r) || (Ie.add(r), r());
|
|
157
157
|
}
|
|
158
158
|
q.length = 0;
|
|
159
159
|
} while (Z.length);
|
|
160
|
-
for (;
|
|
161
|
-
|
|
162
|
-
|
|
160
|
+
for (; ot.length; )
|
|
161
|
+
ot.pop()();
|
|
162
|
+
Ge = !1, Ie.clear(), he(e);
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function Sr(e) {
|
|
165
165
|
if (e.fragment !== null) {
|
|
166
|
-
e.update(),
|
|
166
|
+
e.update(), re(e.before_update);
|
|
167
167
|
const t = e.dirty;
|
|
168
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
168
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Fe);
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function Tr(e) {
|
|
172
172
|
const t = [], r = [];
|
|
173
173
|
q.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), q = t;
|
|
174
174
|
}
|
|
175
|
-
const
|
|
176
|
-
function
|
|
177
|
-
e && e.i && (
|
|
175
|
+
const Hr = /* @__PURE__ */ new Set();
|
|
176
|
+
function wr(e, t) {
|
|
177
|
+
e && e.i && (Hr.delete(e), e.i(t));
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function rs(e) {
|
|
180
180
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function Br(e, t, r) {
|
|
183
183
|
const { fragment: n, after_update: i } = e.$$;
|
|
184
|
-
n && n.m(t, r),
|
|
185
|
-
const s = e.$$.on_mount.map(
|
|
186
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
187
|
-
}), i.forEach(
|
|
184
|
+
n && n.m(t, r), Fe(() => {
|
|
185
|
+
const s = e.$$.on_mount.map(Pt).filter(et);
|
|
186
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : re(s), e.$$.on_mount = [];
|
|
187
|
+
}), i.forEach(Fe);
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function Ar(e, t) {
|
|
190
190
|
const r = e.$$;
|
|
191
|
-
r.fragment !== null && (
|
|
191
|
+
r.fragment !== null && (Tr(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
192
192
|
}
|
|
193
|
-
function
|
|
194
|
-
e.$$.dirty[0] === -1 && (Z.push(e),
|
|
193
|
+
function Or(e, t) {
|
|
194
|
+
e.$$.dirty[0] === -1 && (Z.push(e), xr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
195
195
|
}
|
|
196
|
-
function
|
|
197
|
-
const h =
|
|
198
|
-
|
|
196
|
+
function Pr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
197
|
+
const h = le;
|
|
198
|
+
he(e);
|
|
199
199
|
const u = e.$$ = {
|
|
200
200
|
fragment: null,
|
|
201
201
|
ctx: [],
|
|
@@ -203,7 +203,7 @@ function Mr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
203
203
|
props: s,
|
|
204
204
|
update: I,
|
|
205
205
|
not_equal: i,
|
|
206
|
-
bound:
|
|
206
|
+
bound: st(),
|
|
207
207
|
// lifecycle
|
|
208
208
|
on_mount: [],
|
|
209
209
|
on_destroy: [],
|
|
@@ -212,28 +212,28 @@ function Mr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
212
212
|
after_update: [],
|
|
213
213
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
214
214
|
// everything else
|
|
215
|
-
callbacks:
|
|
215
|
+
callbacks: st(),
|
|
216
216
|
dirty: a,
|
|
217
217
|
skip_bound: !1,
|
|
218
218
|
root: t.target || h.$$.root
|
|
219
219
|
};
|
|
220
220
|
o && o(u.root);
|
|
221
221
|
let l = !1;
|
|
222
|
-
if (u.ctx = r ? r(e, t.props || {}, (
|
|
223
|
-
const y =
|
|
224
|
-
return u.ctx && i(u.ctx[
|
|
225
|
-
}) : [], u.update(), l = !0,
|
|
222
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...d) => {
|
|
223
|
+
const y = d.length ? d[0] : c;
|
|
224
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = y) && (!u.skip_bound && u.bound[f] && u.bound[f](y), l && Or(e, f)), c;
|
|
225
|
+
}) : [], u.update(), l = !0, re(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
226
226
|
if (t.hydrate) {
|
|
227
|
-
const
|
|
228
|
-
u.fragment && u.fragment.l(
|
|
227
|
+
const f = yr(t.target);
|
|
228
|
+
u.fragment && u.fragment.l(f), f.forEach(k);
|
|
229
229
|
} else
|
|
230
230
|
u.fragment && u.fragment.c();
|
|
231
|
-
t.intro &&
|
|
231
|
+
t.intro && wr(e.$$.fragment), Br(e, t.target, t.anchor), R();
|
|
232
232
|
}
|
|
233
|
-
|
|
233
|
+
he(h);
|
|
234
234
|
}
|
|
235
|
-
let
|
|
236
|
-
typeof HTMLElement == "function" && (
|
|
235
|
+
let Lt;
|
|
236
|
+
typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
|
|
237
237
|
/** The Svelte component constructor */
|
|
238
238
|
$$ctor;
|
|
239
239
|
/** Slots */
|
|
@@ -275,14 +275,14 @@ typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
|
275
275
|
let s;
|
|
276
276
|
return {
|
|
277
277
|
c: function() {
|
|
278
|
-
s = C("slot"), i !== "default" &&
|
|
278
|
+
s = C("slot"), i !== "default" && B(s, "name", i);
|
|
279
279
|
},
|
|
280
280
|
/**
|
|
281
281
|
* @param {HTMLElement} target
|
|
282
282
|
* @param {HTMLElement} [anchor]
|
|
283
283
|
*/
|
|
284
284
|
m: function(h, u) {
|
|
285
|
-
|
|
285
|
+
ne(h, s, u);
|
|
286
286
|
},
|
|
287
287
|
d: function(h) {
|
|
288
288
|
h && k(s);
|
|
@@ -292,7 +292,7 @@ typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
|
292
292
|
};
|
|
293
293
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
294
294
|
return;
|
|
295
|
-
const t = {}, r =
|
|
295
|
+
const t = {}, r = gr(this);
|
|
296
296
|
for (const i of this.$$s)
|
|
297
297
|
i in r && (t[i] = [e(i)]);
|
|
298
298
|
for (const i of this.attributes) {
|
|
@@ -379,8 +379,8 @@ function Ee(e, t, r, n) {
|
|
|
379
379
|
return t;
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
|
-
function
|
|
383
|
-
let o = class extends
|
|
382
|
+
function Cr(e, t, r, n, i, s) {
|
|
383
|
+
let o = class extends Lt {
|
|
384
384
|
constructor() {
|
|
385
385
|
super(e, r, i), this.$$p_d = t;
|
|
386
386
|
}
|
|
@@ -408,7 +408,7 @@ function Nr(e, t, r, n, i, s) {
|
|
|
408
408
|
}), e.element = /** @type {any} */
|
|
409
409
|
o, o;
|
|
410
410
|
}
|
|
411
|
-
class
|
|
411
|
+
class Ir {
|
|
412
412
|
/**
|
|
413
413
|
* ### PRIVATE API
|
|
414
414
|
*
|
|
@@ -427,7 +427,7 @@ class $r {
|
|
|
427
427
|
$$set = void 0;
|
|
428
428
|
/** @returns {void} */
|
|
429
429
|
$destroy() {
|
|
430
|
-
|
|
430
|
+
Ar(this, 1), this.$destroy = I;
|
|
431
431
|
}
|
|
432
432
|
/**
|
|
433
433
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -436,7 +436,7 @@ class $r {
|
|
|
436
436
|
* @returns {() => void}
|
|
437
437
|
*/
|
|
438
438
|
$on(t, r) {
|
|
439
|
-
if (!
|
|
439
|
+
if (!et(r))
|
|
440
440
|
return I;
|
|
441
441
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
442
442
|
return n.push(r), () => {
|
|
@@ -449,11 +449,11 @@ class $r {
|
|
|
449
449
|
* @returns {void}
|
|
450
450
|
*/
|
|
451
451
|
$set(t) {
|
|
452
|
-
this.$$set && !
|
|
452
|
+
this.$$set && !cr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
|
-
const
|
|
456
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
455
|
+
const Lr = "4";
|
|
456
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Lr);
|
|
457
457
|
if (typeof window < "u") {
|
|
458
458
|
let e = function(t) {
|
|
459
459
|
return function(...r) {
|
|
@@ -466,7 +466,7 @@ if (typeof window < "u") {
|
|
|
466
466
|
}
|
|
467
467
|
};
|
|
468
468
|
};
|
|
469
|
-
customElements.define = e(customElements.define), import("./CasinoMysteryChestContainer-
|
|
469
|
+
customElements.define = e(customElements.define), import("./CasinoMysteryChestContainer-CdhHMGFs.js").then(({ default: t }) => {
|
|
470
470
|
!customElements.get("casino-mystery-chest-container") && customElements.define("casino-mystery-chest-container", t.element);
|
|
471
471
|
});
|
|
472
472
|
}
|
|
@@ -484,24 +484,43 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
484
484
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
485
485
|
PERFORMANCE OF THIS SOFTWARE.
|
|
486
486
|
***************************************************************************** */
|
|
487
|
-
var
|
|
488
|
-
return
|
|
487
|
+
var je = function(e, t) {
|
|
488
|
+
return je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
489
489
|
r.__proto__ = n;
|
|
490
490
|
} || function(r, n) {
|
|
491
491
|
for (var i in n)
|
|
492
492
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
493
|
-
},
|
|
493
|
+
}, je(e, t);
|
|
494
494
|
};
|
|
495
|
-
function
|
|
495
|
+
function D(e, t) {
|
|
496
496
|
if (typeof t != "function" && t !== null)
|
|
497
497
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
498
|
-
|
|
498
|
+
je(e, t);
|
|
499
499
|
function r() {
|
|
500
500
|
this.constructor = e;
|
|
501
501
|
}
|
|
502
502
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
var _ = function() {
|
|
505
|
+
return _ = Object.assign || function(t) {
|
|
506
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
507
|
+
r = arguments[n];
|
|
508
|
+
for (var s in r)
|
|
509
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
510
|
+
}
|
|
511
|
+
return t;
|
|
512
|
+
}, _.apply(this, arguments);
|
|
513
|
+
};
|
|
514
|
+
function Mr(e, t) {
|
|
515
|
+
var r = {};
|
|
516
|
+
for (var n in e)
|
|
517
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
518
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
519
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
520
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
521
|
+
return r;
|
|
522
|
+
}
|
|
523
|
+
function ke(e) {
|
|
505
524
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
506
525
|
if (r)
|
|
507
526
|
return r.call(e);
|
|
@@ -513,7 +532,7 @@ function We(e) {
|
|
|
513
532
|
};
|
|
514
533
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
515
534
|
}
|
|
516
|
-
function
|
|
535
|
+
function Ve(e, t) {
|
|
517
536
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
518
537
|
if (!r)
|
|
519
538
|
return e;
|
|
@@ -533,22 +552,22 @@ function ze(e, t) {
|
|
|
533
552
|
}
|
|
534
553
|
return s;
|
|
535
554
|
}
|
|
536
|
-
function
|
|
537
|
-
if (arguments.length === 2)
|
|
555
|
+
function J(e, t, r) {
|
|
556
|
+
if (r || arguments.length === 2)
|
|
538
557
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
539
558
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
540
559
|
return e.concat(s || t);
|
|
541
560
|
}
|
|
542
|
-
function
|
|
561
|
+
function U(e) {
|
|
543
562
|
return typeof e == "function";
|
|
544
563
|
}
|
|
545
|
-
function
|
|
564
|
+
function Mt(e) {
|
|
546
565
|
var t = function(n) {
|
|
547
566
|
Error.call(n), n.stack = new Error().stack;
|
|
548
567
|
}, r = e(t);
|
|
549
568
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
550
569
|
}
|
|
551
|
-
var
|
|
570
|
+
var Le = Mt(function(e) {
|
|
552
571
|
return function(r) {
|
|
553
572
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
554
573
|
` + r.map(function(n, i) {
|
|
@@ -557,13 +576,13 @@ var Ne = Ut(function(e) {
|
|
|
557
576
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
558
577
|
};
|
|
559
578
|
});
|
|
560
|
-
function
|
|
579
|
+
function Xe(e, t) {
|
|
561
580
|
if (e) {
|
|
562
581
|
var r = e.indexOf(t);
|
|
563
582
|
0 <= r && e.splice(r, 1);
|
|
564
583
|
}
|
|
565
584
|
}
|
|
566
|
-
var
|
|
585
|
+
var Ae = function() {
|
|
567
586
|
function e(t) {
|
|
568
587
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
569
588
|
}
|
|
@@ -575,7 +594,7 @@ var Be = function() {
|
|
|
575
594
|
if (o)
|
|
576
595
|
if (this._parentage = null, Array.isArray(o))
|
|
577
596
|
try {
|
|
578
|
-
for (var a =
|
|
597
|
+
for (var a = ke(o), h = a.next(); !h.done; h = a.next()) {
|
|
579
598
|
var u = h.value;
|
|
580
599
|
u.remove(this);
|
|
581
600
|
}
|
|
@@ -592,29 +611,29 @@ var Be = function() {
|
|
|
592
611
|
else
|
|
593
612
|
o.remove(this);
|
|
594
613
|
var l = this.initialTeardown;
|
|
595
|
-
if (
|
|
614
|
+
if (U(l))
|
|
596
615
|
try {
|
|
597
616
|
l();
|
|
598
617
|
} catch (g) {
|
|
599
|
-
s = g instanceof
|
|
618
|
+
s = g instanceof Le ? g.errors : [g];
|
|
600
619
|
}
|
|
601
|
-
var
|
|
602
|
-
if (
|
|
620
|
+
var f = this._finalizers;
|
|
621
|
+
if (f) {
|
|
603
622
|
this._finalizers = null;
|
|
604
623
|
try {
|
|
605
|
-
for (var
|
|
606
|
-
var y =
|
|
624
|
+
for (var c = ke(f), d = c.next(); !d.done; d = c.next()) {
|
|
625
|
+
var y = d.value;
|
|
607
626
|
try {
|
|
608
|
-
|
|
627
|
+
at(y);
|
|
609
628
|
} catch (g) {
|
|
610
|
-
s = s ?? [], g instanceof
|
|
629
|
+
s = s ?? [], g instanceof Le ? s = J(J([], Ve(s)), Ve(g.errors)) : s.push(g);
|
|
611
630
|
}
|
|
612
631
|
}
|
|
613
632
|
} catch (g) {
|
|
614
633
|
n = { error: g };
|
|
615
634
|
} finally {
|
|
616
635
|
try {
|
|
617
|
-
|
|
636
|
+
d && !d.done && (i = c.return) && i.call(c);
|
|
618
637
|
} finally {
|
|
619
638
|
if (n)
|
|
620
639
|
throw n.error;
|
|
@@ -622,13 +641,13 @@ var Be = function() {
|
|
|
622
641
|
}
|
|
623
642
|
}
|
|
624
643
|
if (s)
|
|
625
|
-
throw new
|
|
644
|
+
throw new Le(s);
|
|
626
645
|
}
|
|
627
646
|
}, e.prototype.add = function(t) {
|
|
628
647
|
var r;
|
|
629
648
|
if (t && t !== this)
|
|
630
649
|
if (this.closed)
|
|
631
|
-
|
|
650
|
+
at(t);
|
|
632
651
|
else {
|
|
633
652
|
if (t instanceof e) {
|
|
634
653
|
if (t.closed || t._hasParent(this))
|
|
@@ -645,52 +664,56 @@ var Be = function() {
|
|
|
645
664
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
646
665
|
}, e.prototype._removeParent = function(t) {
|
|
647
666
|
var r = this._parentage;
|
|
648
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
667
|
+
r === t ? this._parentage = null : Array.isArray(r) && Xe(r, t);
|
|
649
668
|
}, e.prototype.remove = function(t) {
|
|
650
669
|
var r = this._finalizers;
|
|
651
|
-
r &&
|
|
670
|
+
r && Xe(r, t), t instanceof e && t._removeParent(this);
|
|
652
671
|
}, e.EMPTY = function() {
|
|
653
672
|
var t = new e();
|
|
654
673
|
return t.closed = !0, t;
|
|
655
674
|
}(), e;
|
|
656
|
-
}(),
|
|
657
|
-
function
|
|
658
|
-
return e instanceof
|
|
659
|
-
}
|
|
660
|
-
function
|
|
661
|
-
|
|
662
|
-
}
|
|
663
|
-
var
|
|
664
|
-
|
|
665
|
-
|
|
675
|
+
}(), Nt = Ae.EMPTY;
|
|
676
|
+
function $t(e) {
|
|
677
|
+
return e instanceof Ae || e && "closed" in e && U(e.remove) && U(e.add) && U(e.unsubscribe);
|
|
678
|
+
}
|
|
679
|
+
function at(e) {
|
|
680
|
+
U(e) ? e() : e.unsubscribe();
|
|
681
|
+
}
|
|
682
|
+
var Nr = {
|
|
683
|
+
onUnhandledError: null,
|
|
684
|
+
onStoppedNotification: null,
|
|
685
|
+
Promise: void 0,
|
|
686
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
687
|
+
useDeprecatedNextContext: !1
|
|
688
|
+
}, $r = {
|
|
666
689
|
setTimeout: function(e, t) {
|
|
667
690
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
668
691
|
r[n - 2] = arguments[n];
|
|
669
|
-
return setTimeout.apply(void 0,
|
|
692
|
+
return setTimeout.apply(void 0, J([e, t], Ve(r)));
|
|
670
693
|
},
|
|
671
694
|
clearTimeout: function(e) {
|
|
672
695
|
return clearTimeout(e);
|
|
673
696
|
},
|
|
674
697
|
delegate: void 0
|
|
675
698
|
};
|
|
676
|
-
function
|
|
677
|
-
|
|
699
|
+
function Rr(e) {
|
|
700
|
+
$r.setTimeout(function() {
|
|
678
701
|
throw e;
|
|
679
702
|
});
|
|
680
703
|
}
|
|
681
|
-
function
|
|
704
|
+
function ut() {
|
|
682
705
|
}
|
|
683
706
|
function xe(e) {
|
|
684
707
|
e();
|
|
685
708
|
}
|
|
686
|
-
var
|
|
687
|
-
|
|
709
|
+
var Rt = function(e) {
|
|
710
|
+
D(t, e);
|
|
688
711
|
function t(r) {
|
|
689
712
|
var n = e.call(this) || this;
|
|
690
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
713
|
+
return n.isStopped = !1, r ? (n.destination = r, $t(r) && r.add(n)) : n.destination = Gr, n;
|
|
691
714
|
}
|
|
692
715
|
return t.create = function(r, n, i) {
|
|
693
|
-
return new
|
|
716
|
+
return new We(r, n, i);
|
|
694
717
|
}, t.prototype.next = function(r) {
|
|
695
718
|
this.isStopped || this._next(r);
|
|
696
719
|
}, t.prototype.error = function(r) {
|
|
@@ -714,7 +737,7 @@ var Ft = function(e) {
|
|
|
714
737
|
this.unsubscribe();
|
|
715
738
|
}
|
|
716
739
|
}, t;
|
|
717
|
-
}(
|
|
740
|
+
}(Ae), Ur = function() {
|
|
718
741
|
function e(t) {
|
|
719
742
|
this.partialObserver = t;
|
|
720
743
|
}
|
|
@@ -724,7 +747,7 @@ var Ft = function(e) {
|
|
|
724
747
|
try {
|
|
725
748
|
r.next(t);
|
|
726
749
|
} catch (n) {
|
|
727
|
-
|
|
750
|
+
_e(n);
|
|
728
751
|
}
|
|
729
752
|
}, e.prototype.error = function(t) {
|
|
730
753
|
var r = this.partialObserver;
|
|
@@ -732,56 +755,56 @@ var Ft = function(e) {
|
|
|
732
755
|
try {
|
|
733
756
|
r.error(t);
|
|
734
757
|
} catch (n) {
|
|
735
|
-
|
|
758
|
+
_e(n);
|
|
736
759
|
}
|
|
737
760
|
else
|
|
738
|
-
|
|
761
|
+
_e(t);
|
|
739
762
|
}, e.prototype.complete = function() {
|
|
740
763
|
var t = this.partialObserver;
|
|
741
764
|
if (t.complete)
|
|
742
765
|
try {
|
|
743
766
|
t.complete();
|
|
744
767
|
} catch (r) {
|
|
745
|
-
|
|
768
|
+
_e(r);
|
|
746
769
|
}
|
|
747
770
|
}, e;
|
|
748
|
-
}(),
|
|
749
|
-
|
|
771
|
+
}(), We = function(e) {
|
|
772
|
+
D(t, e);
|
|
750
773
|
function t(r, n, i) {
|
|
751
774
|
var s = e.call(this) || this, o;
|
|
752
|
-
return
|
|
775
|
+
return U(r) || !r ? o = {
|
|
753
776
|
next: r ?? void 0,
|
|
754
777
|
error: n ?? void 0,
|
|
755
778
|
complete: i ?? void 0
|
|
756
|
-
} : o = r, s.destination = new
|
|
779
|
+
} : o = r, s.destination = new Ur(o), s;
|
|
757
780
|
}
|
|
758
781
|
return t;
|
|
759
|
-
}(
|
|
760
|
-
function
|
|
761
|
-
|
|
782
|
+
}(Rt);
|
|
783
|
+
function _e(e) {
|
|
784
|
+
Rr(e);
|
|
762
785
|
}
|
|
763
|
-
function
|
|
786
|
+
function Dr(e) {
|
|
764
787
|
throw e;
|
|
765
788
|
}
|
|
766
|
-
var
|
|
789
|
+
var Gr = {
|
|
767
790
|
closed: !0,
|
|
768
|
-
next:
|
|
769
|
-
error:
|
|
770
|
-
complete:
|
|
771
|
-
},
|
|
791
|
+
next: ut,
|
|
792
|
+
error: Dr,
|
|
793
|
+
complete: ut
|
|
794
|
+
}, Fr = function() {
|
|
772
795
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
773
796
|
}();
|
|
774
|
-
function
|
|
797
|
+
function jr(e) {
|
|
775
798
|
return e;
|
|
776
799
|
}
|
|
777
|
-
function
|
|
778
|
-
return e.length === 0 ?
|
|
800
|
+
function kr(e) {
|
|
801
|
+
return e.length === 0 ? jr : e.length === 1 ? e[0] : function(r) {
|
|
779
802
|
return e.reduce(function(n, i) {
|
|
780
803
|
return i(n);
|
|
781
804
|
}, r);
|
|
782
805
|
};
|
|
783
806
|
}
|
|
784
|
-
var
|
|
807
|
+
var ht = function() {
|
|
785
808
|
function e(t) {
|
|
786
809
|
t && (this._subscribe = t);
|
|
787
810
|
}
|
|
@@ -789,7 +812,7 @@ var pt = function() {
|
|
|
789
812
|
var r = new e();
|
|
790
813
|
return r.source = this, r.operator = t, r;
|
|
791
814
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
792
|
-
var i = this, s =
|
|
815
|
+
var i = this, s = Xr(t) ? t : new We(t, r, n);
|
|
793
816
|
return xe(function() {
|
|
794
817
|
var o = i, a = o.operator, h = o.source;
|
|
795
818
|
s.add(a ? a.call(s, h) : h ? i._subscribe(s) : i._trySubscribe(s));
|
|
@@ -802,8 +825,8 @@ var pt = function() {
|
|
|
802
825
|
}
|
|
803
826
|
}, e.prototype.forEach = function(t, r) {
|
|
804
827
|
var n = this;
|
|
805
|
-
return r =
|
|
806
|
-
var o = new
|
|
828
|
+
return r = lt(r), new r(function(i, s) {
|
|
829
|
+
var o = new We({
|
|
807
830
|
next: function(a) {
|
|
808
831
|
try {
|
|
809
832
|
t(a);
|
|
@@ -819,15 +842,15 @@ var pt = function() {
|
|
|
819
842
|
}, e.prototype._subscribe = function(t) {
|
|
820
843
|
var r;
|
|
821
844
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
822
|
-
}, e.prototype[
|
|
845
|
+
}, e.prototype[Fr] = function() {
|
|
823
846
|
return this;
|
|
824
847
|
}, e.prototype.pipe = function() {
|
|
825
848
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
826
849
|
t[r] = arguments[r];
|
|
827
|
-
return
|
|
850
|
+
return kr(t)(this);
|
|
828
851
|
}, e.prototype.toPromise = function(t) {
|
|
829
852
|
var r = this;
|
|
830
|
-
return t =
|
|
853
|
+
return t = lt(t), new t(function(n, i) {
|
|
831
854
|
var s;
|
|
832
855
|
r.subscribe(function(o) {
|
|
833
856
|
return s = o;
|
|
@@ -841,32 +864,32 @@ var pt = function() {
|
|
|
841
864
|
return new e(t);
|
|
842
865
|
}, e;
|
|
843
866
|
}();
|
|
844
|
-
function
|
|
867
|
+
function lt(e) {
|
|
845
868
|
var t;
|
|
846
|
-
return (t = e ??
|
|
869
|
+
return (t = e ?? Nr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
847
870
|
}
|
|
848
|
-
function
|
|
849
|
-
return e &&
|
|
871
|
+
function Vr(e) {
|
|
872
|
+
return e && U(e.next) && U(e.error) && U(e.complete);
|
|
850
873
|
}
|
|
851
|
-
function
|
|
852
|
-
return e && e instanceof
|
|
874
|
+
function Xr(e) {
|
|
875
|
+
return e && e instanceof Rt || Vr(e) && $t(e);
|
|
853
876
|
}
|
|
854
|
-
var
|
|
877
|
+
var Wr = Mt(function(e) {
|
|
855
878
|
return function() {
|
|
856
879
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
857
880
|
};
|
|
858
|
-
}),
|
|
859
|
-
|
|
881
|
+
}), Ut = function(e) {
|
|
882
|
+
D(t, e);
|
|
860
883
|
function t() {
|
|
861
884
|
var r = e.call(this) || this;
|
|
862
885
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
863
886
|
}
|
|
864
887
|
return t.prototype.lift = function(r) {
|
|
865
|
-
var n = new
|
|
888
|
+
var n = new ft(this, this);
|
|
866
889
|
return n.operator = r, n;
|
|
867
890
|
}, t.prototype._throwIfClosed = function() {
|
|
868
891
|
if (this.closed)
|
|
869
|
-
throw new
|
|
892
|
+
throw new Wr();
|
|
870
893
|
}, t.prototype.next = function(r) {
|
|
871
894
|
var n = this;
|
|
872
895
|
xe(function() {
|
|
@@ -874,7 +897,7 @@ var Qr = Ut(function(e) {
|
|
|
874
897
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
875
898
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
876
899
|
try {
|
|
877
|
-
for (var o =
|
|
900
|
+
for (var o = ke(n.currentObservers), a = o.next(); !a.done; a = o.next()) {
|
|
878
901
|
var h = a.value;
|
|
879
902
|
h.next(r);
|
|
880
903
|
}
|
|
@@ -923,20 +946,20 @@ var Qr = Ut(function(e) {
|
|
|
923
946
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
924
947
|
}, t.prototype._innerSubscribe = function(r) {
|
|
925
948
|
var n = this, i = this, s = i.hasError, o = i.isStopped, a = i.observers;
|
|
926
|
-
return s || o ?
|
|
927
|
-
n.currentObservers = null,
|
|
949
|
+
return s || o ? Nt : (this.currentObservers = null, a.push(r), new Ae(function() {
|
|
950
|
+
n.currentObservers = null, Xe(a, r);
|
|
928
951
|
}));
|
|
929
952
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
930
953
|
var n = this, i = n.hasError, s = n.thrownError, o = n.isStopped;
|
|
931
954
|
i ? r.error(s) : o && r.complete();
|
|
932
955
|
}, t.prototype.asObservable = function() {
|
|
933
|
-
var r = new
|
|
956
|
+
var r = new ht();
|
|
934
957
|
return r.source = this, r;
|
|
935
958
|
}, t.create = function(r, n) {
|
|
936
|
-
return new
|
|
959
|
+
return new ft(r, n);
|
|
937
960
|
}, t;
|
|
938
|
-
}(
|
|
939
|
-
|
|
961
|
+
}(ht), ft = function(e) {
|
|
962
|
+
D(t, e);
|
|
940
963
|
function t(r, n) {
|
|
941
964
|
var i = e.call(this) || this;
|
|
942
965
|
return i.destination = r, i.source = n, i;
|
|
@@ -952,17 +975,17 @@ var Qr = Ut(function(e) {
|
|
|
952
975
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
953
976
|
}, t.prototype._subscribe = function(r) {
|
|
954
977
|
var n, i;
|
|
955
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
978
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Nt;
|
|
956
979
|
}, t;
|
|
957
|
-
}(
|
|
980
|
+
}(Ut), Dt = {
|
|
958
981
|
now: function() {
|
|
959
|
-
return (
|
|
982
|
+
return (Dt.delegate || Date).now();
|
|
960
983
|
},
|
|
961
984
|
delegate: void 0
|
|
962
|
-
},
|
|
963
|
-
|
|
985
|
+
}, zr = function(e) {
|
|
986
|
+
D(t, e);
|
|
964
987
|
function t(r, n, i) {
|
|
965
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
988
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Dt);
|
|
966
989
|
var s = e.call(this) || this;
|
|
967
990
|
return s._bufferSize = r, s._windowTime = n, s._timestampProvider = i, s._buffer = [], s._infiniteTimeWindow = !0, s._infiniteTimeWindow = n === 1 / 0, s._bufferSize = Math.max(1, r), s._windowTime = Math.max(1, n), s;
|
|
968
991
|
}
|
|
@@ -982,24 +1005,24 @@ var Qr = Ut(function(e) {
|
|
|
982
1005
|
u && s.splice(0, u + 1);
|
|
983
1006
|
}
|
|
984
1007
|
}, t;
|
|
985
|
-
}(
|
|
986
|
-
const
|
|
987
|
-
if (
|
|
988
|
-
const r = new
|
|
989
|
-
|
|
1008
|
+
}(Ut);
|
|
1009
|
+
const ct = [], dt = {}, Zr = (e, t = 0) => {
|
|
1010
|
+
if (ct.indexOf(e) == -1) {
|
|
1011
|
+
const r = new zr(t);
|
|
1012
|
+
dt[e] = r, ct.push(e);
|
|
990
1013
|
}
|
|
991
|
-
return
|
|
1014
|
+
return dt[e];
|
|
992
1015
|
}, z = [];
|
|
993
|
-
function
|
|
1016
|
+
function Qr(e, t) {
|
|
994
1017
|
return {
|
|
995
|
-
subscribe:
|
|
1018
|
+
subscribe: Oe(e, t).subscribe
|
|
996
1019
|
};
|
|
997
1020
|
}
|
|
998
|
-
function
|
|
1021
|
+
function Oe(e, t = I) {
|
|
999
1022
|
let r;
|
|
1000
1023
|
const n = /* @__PURE__ */ new Set();
|
|
1001
1024
|
function i(a) {
|
|
1002
|
-
if (
|
|
1025
|
+
if (Ct(e, a) && (e = a, r)) {
|
|
1003
1026
|
const h = !z.length;
|
|
1004
1027
|
for (const u of n)
|
|
1005
1028
|
u[1](), z.push(u, e);
|
|
@@ -1021,184 +1044,145 @@ function Pe(e, t = I) {
|
|
|
1021
1044
|
}
|
|
1022
1045
|
return { set: i, update: s, subscribe: o };
|
|
1023
1046
|
}
|
|
1024
|
-
function
|
|
1047
|
+
function ie(e, t, r) {
|
|
1025
1048
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1026
1049
|
if (!i.every(Boolean))
|
|
1027
1050
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1028
1051
|
const s = t.length < 2;
|
|
1029
|
-
return
|
|
1052
|
+
return Qr(r, (o, a) => {
|
|
1030
1053
|
let h = !1;
|
|
1031
1054
|
const u = [];
|
|
1032
|
-
let l = 0,
|
|
1033
|
-
const
|
|
1055
|
+
let l = 0, f = I;
|
|
1056
|
+
const c = () => {
|
|
1034
1057
|
if (l)
|
|
1035
1058
|
return;
|
|
1036
|
-
|
|
1059
|
+
f();
|
|
1037
1060
|
const y = t(n ? u[0] : u, o, a);
|
|
1038
|
-
s ? o(y) :
|
|
1039
|
-
},
|
|
1040
|
-
(y, g) =>
|
|
1061
|
+
s ? o(y) : f = et(y) ? y : I;
|
|
1062
|
+
}, d = i.map(
|
|
1063
|
+
(y, g) => It(
|
|
1041
1064
|
y,
|
|
1042
|
-
(
|
|
1043
|
-
u[g] =
|
|
1065
|
+
(O) => {
|
|
1066
|
+
u[g] = O, l &= ~(1 << g), h && c();
|
|
1044
1067
|
},
|
|
1045
1068
|
() => {
|
|
1046
1069
|
l |= 1 << g;
|
|
1047
1070
|
}
|
|
1048
1071
|
)
|
|
1049
1072
|
);
|
|
1050
|
-
return h = !0,
|
|
1051
|
-
|
|
1073
|
+
return h = !0, c(), function() {
|
|
1074
|
+
re(d), f(), h = !1;
|
|
1052
1075
|
};
|
|
1053
1076
|
});
|
|
1054
1077
|
}
|
|
1055
|
-
function
|
|
1056
|
-
return e
|
|
1078
|
+
function qr(e) {
|
|
1079
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1057
1080
|
}
|
|
1058
|
-
var
|
|
1059
|
-
return
|
|
1081
|
+
var Jr = function(t) {
|
|
1082
|
+
return Yr(t) && !Kr(t);
|
|
1060
1083
|
};
|
|
1061
|
-
function
|
|
1084
|
+
function Yr(e) {
|
|
1062
1085
|
return !!e && typeof e == "object";
|
|
1063
1086
|
}
|
|
1064
|
-
function
|
|
1087
|
+
function Kr(e) {
|
|
1065
1088
|
var t = Object.prototype.toString.call(e);
|
|
1066
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1089
|
+
return t === "[object RegExp]" || t === "[object Date]" || rn(e);
|
|
1067
1090
|
}
|
|
1068
|
-
var
|
|
1069
|
-
function
|
|
1070
|
-
return e.$$typeof ===
|
|
1091
|
+
var en = typeof Symbol == "function" && Symbol.for, tn = en ? Symbol.for("react.element") : 60103;
|
|
1092
|
+
function rn(e) {
|
|
1093
|
+
return e.$$typeof === tn;
|
|
1071
1094
|
}
|
|
1072
|
-
function
|
|
1095
|
+
function nn(e) {
|
|
1073
1096
|
return Array.isArray(e) ? [] : {};
|
|
1074
1097
|
}
|
|
1075
|
-
function
|
|
1076
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1098
|
+
function fe(e, t) {
|
|
1099
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Y(nn(e), e, t) : e;
|
|
1077
1100
|
}
|
|
1078
|
-
function
|
|
1101
|
+
function sn(e, t, r) {
|
|
1079
1102
|
return e.concat(t).map(function(n) {
|
|
1080
|
-
return
|
|
1103
|
+
return fe(n, r);
|
|
1081
1104
|
});
|
|
1082
1105
|
}
|
|
1083
|
-
function
|
|
1106
|
+
function on(e, t) {
|
|
1084
1107
|
if (!t.customMerge)
|
|
1085
|
-
return
|
|
1108
|
+
return Y;
|
|
1086
1109
|
var r = t.customMerge(e);
|
|
1087
|
-
return typeof r == "function" ? r :
|
|
1110
|
+
return typeof r == "function" ? r : Y;
|
|
1088
1111
|
}
|
|
1089
|
-
function
|
|
1112
|
+
function an(e) {
|
|
1090
1113
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1091
1114
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1092
1115
|
}) : [];
|
|
1093
1116
|
}
|
|
1094
|
-
function
|
|
1095
|
-
return Object.keys(e).concat(
|
|
1117
|
+
function pt(e) {
|
|
1118
|
+
return Object.keys(e).concat(an(e));
|
|
1096
1119
|
}
|
|
1097
|
-
function
|
|
1120
|
+
function Gt(e, t) {
|
|
1098
1121
|
try {
|
|
1099
1122
|
return t in e;
|
|
1100
1123
|
} catch {
|
|
1101
1124
|
return !1;
|
|
1102
1125
|
}
|
|
1103
1126
|
}
|
|
1104
|
-
function
|
|
1105
|
-
return
|
|
1127
|
+
function un(e, t) {
|
|
1128
|
+
return Gt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1106
1129
|
}
|
|
1107
|
-
function
|
|
1130
|
+
function hn(e, t, r) {
|
|
1108
1131
|
var n = {};
|
|
1109
|
-
return r.isMergeableObject(e) &&
|
|
1110
|
-
n[i] =
|
|
1111
|
-
}),
|
|
1112
|
-
|
|
1132
|
+
return r.isMergeableObject(e) && pt(e).forEach(function(i) {
|
|
1133
|
+
n[i] = fe(e[i], r);
|
|
1134
|
+
}), pt(t).forEach(function(i) {
|
|
1135
|
+
un(e, i) || (Gt(e, i) && r.isMergeableObject(t[i]) ? n[i] = on(i, r)(e[i], t[i], r) : n[i] = fe(t[i], r));
|
|
1113
1136
|
}), n;
|
|
1114
1137
|
}
|
|
1115
|
-
function
|
|
1116
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1138
|
+
function Y(e, t, r) {
|
|
1139
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || sn, r.isMergeableObject = r.isMergeableObject || Jr, r.cloneUnlessOtherwiseSpecified = fe;
|
|
1117
1140
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
1118
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
1141
|
+
return s ? n ? r.arrayMerge(e, t, r) : hn(e, t, r) : fe(t, r);
|
|
1119
1142
|
}
|
|
1120
|
-
|
|
1143
|
+
Y.all = function(t, r) {
|
|
1121
1144
|
if (!Array.isArray(t))
|
|
1122
1145
|
throw new Error("first argument should be an array");
|
|
1123
1146
|
return t.reduce(function(n, i) {
|
|
1124
|
-
return
|
|
1147
|
+
return Y(n, i, r);
|
|
1125
1148
|
}, {});
|
|
1126
1149
|
};
|
|
1127
|
-
var
|
|
1128
|
-
const
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
r.__proto__ = n;
|
|
1132
|
-
} || function(r, n) {
|
|
1133
|
-
for (var i in n)
|
|
1134
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1135
|
-
}, Je(e, t);
|
|
1136
|
-
};
|
|
1137
|
-
function Ce(e, t) {
|
|
1138
|
-
if (typeof t != "function" && t !== null)
|
|
1139
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1140
|
-
Je(e, t);
|
|
1141
|
-
function r() {
|
|
1142
|
-
this.constructor = e;
|
|
1143
|
-
}
|
|
1144
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1145
|
-
}
|
|
1146
|
-
var R = function() {
|
|
1147
|
-
return R = Object.assign || function(t) {
|
|
1148
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1149
|
-
r = arguments[n];
|
|
1150
|
-
for (var s in r)
|
|
1151
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
1152
|
-
}
|
|
1153
|
-
return t;
|
|
1154
|
-
}, R.apply(this, arguments);
|
|
1155
|
-
};
|
|
1156
|
-
function bn(e, t) {
|
|
1157
|
-
var r = {};
|
|
1158
|
-
for (var n in e)
|
|
1159
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1160
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1161
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1162
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1163
|
-
return r;
|
|
1164
|
-
}
|
|
1165
|
-
function $e(e, t, r) {
|
|
1166
|
-
if (r || arguments.length === 2)
|
|
1167
|
-
for (var n = 0, i = t.length, s; n < i; n++)
|
|
1168
|
-
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
1169
|
-
return e.concat(s || Array.prototype.slice.call(t));
|
|
1170
|
-
}
|
|
1171
|
-
function Re(e, t) {
|
|
1172
|
-
var r = t && t.cache ? t.cache : Sn, n = t && t.serializer ? t.serializer : En, i = t && t.strategy ? t.strategy : vn;
|
|
1150
|
+
var ln = Y, fn = ln;
|
|
1151
|
+
const cn = /* @__PURE__ */ qr(fn);
|
|
1152
|
+
function Me(e, t) {
|
|
1153
|
+
var r = t && t.cache ? t.cache : _n, n = t && t.serializer ? t.serializer : yn, i = t && t.strategy ? t.strategy : pn;
|
|
1173
1154
|
return i(e, {
|
|
1174
1155
|
cache: r,
|
|
1175
1156
|
serializer: n
|
|
1176
1157
|
});
|
|
1177
1158
|
}
|
|
1178
|
-
function
|
|
1159
|
+
function dn(e) {
|
|
1179
1160
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1180
1161
|
}
|
|
1181
|
-
function
|
|
1182
|
-
var i =
|
|
1162
|
+
function Ft(e, t, r, n) {
|
|
1163
|
+
var i = dn(n) ? n : r(n), s = t.get(i);
|
|
1183
1164
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
1184
1165
|
}
|
|
1185
|
-
function
|
|
1166
|
+
function jt(e, t, r) {
|
|
1186
1167
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
1187
1168
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
1188
1169
|
}
|
|
1189
|
-
function
|
|
1170
|
+
function tt(e, t, r, n, i) {
|
|
1190
1171
|
return r.bind(t, e, n, i);
|
|
1191
1172
|
}
|
|
1192
|
-
function
|
|
1193
|
-
var r = e.length === 1 ?
|
|
1194
|
-
return
|
|
1173
|
+
function pn(e, t) {
|
|
1174
|
+
var r = e.length === 1 ? Ft : jt;
|
|
1175
|
+
return tt(e, this, r, t.cache.create(), t.serializer);
|
|
1195
1176
|
}
|
|
1196
|
-
function
|
|
1197
|
-
return
|
|
1177
|
+
function mn(e, t) {
|
|
1178
|
+
return tt(e, this, jt, t.cache.create(), t.serializer);
|
|
1198
1179
|
}
|
|
1199
|
-
|
|
1180
|
+
function bn(e, t) {
|
|
1181
|
+
return tt(e, this, Ft, t.cache.create(), t.serializer);
|
|
1182
|
+
}
|
|
1183
|
+
var yn = function() {
|
|
1200
1184
|
return JSON.stringify(arguments);
|
|
1201
|
-
},
|
|
1185
|
+
}, gn = (
|
|
1202
1186
|
/** @class */
|
|
1203
1187
|
function() {
|
|
1204
1188
|
function e() {
|
|
@@ -1210,71 +1194,62 @@ var En = function() {
|
|
|
1210
1194
|
this.cache[t] = r;
|
|
1211
1195
|
}, e;
|
|
1212
1196
|
}()
|
|
1213
|
-
),
|
|
1197
|
+
), _n = {
|
|
1214
1198
|
create: function() {
|
|
1215
|
-
return new
|
|
1199
|
+
return new gn();
|
|
1216
1200
|
}
|
|
1217
|
-
},
|
|
1218
|
-
variadic:
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1222
|
-
r = arguments[n];
|
|
1223
|
-
for (var s in r)
|
|
1224
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
1225
|
-
}
|
|
1226
|
-
return t;
|
|
1227
|
-
}, Te.apply(this, arguments);
|
|
1228
|
-
};
|
|
1229
|
-
var d;
|
|
1201
|
+
}, Ne = {
|
|
1202
|
+
variadic: mn,
|
|
1203
|
+
monadic: bn
|
|
1204
|
+
}, p;
|
|
1230
1205
|
(function(e) {
|
|
1231
1206
|
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";
|
|
1232
|
-
})(
|
|
1207
|
+
})(p || (p = {}));
|
|
1233
1208
|
var v;
|
|
1234
1209
|
(function(e) {
|
|
1235
1210
|
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";
|
|
1236
1211
|
})(v || (v = {}));
|
|
1237
|
-
var
|
|
1212
|
+
var K;
|
|
1238
1213
|
(function(e) {
|
|
1239
1214
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1240
|
-
})(
|
|
1241
|
-
function
|
|
1215
|
+
})(K || (K = {}));
|
|
1216
|
+
function mt(e) {
|
|
1242
1217
|
return e.type === v.literal;
|
|
1243
1218
|
}
|
|
1244
|
-
function
|
|
1219
|
+
function vn(e) {
|
|
1245
1220
|
return e.type === v.argument;
|
|
1246
1221
|
}
|
|
1247
|
-
function
|
|
1222
|
+
function kt(e) {
|
|
1248
1223
|
return e.type === v.number;
|
|
1249
1224
|
}
|
|
1250
|
-
function
|
|
1225
|
+
function Vt(e) {
|
|
1251
1226
|
return e.type === v.date;
|
|
1252
1227
|
}
|
|
1253
|
-
function
|
|
1228
|
+
function Xt(e) {
|
|
1254
1229
|
return e.type === v.time;
|
|
1255
1230
|
}
|
|
1256
|
-
function
|
|
1231
|
+
function Wt(e) {
|
|
1257
1232
|
return e.type === v.select;
|
|
1258
1233
|
}
|
|
1259
|
-
function
|
|
1234
|
+
function zt(e) {
|
|
1260
1235
|
return e.type === v.plural;
|
|
1261
1236
|
}
|
|
1262
|
-
function
|
|
1237
|
+
function En(e) {
|
|
1263
1238
|
return e.type === v.pound;
|
|
1264
1239
|
}
|
|
1265
|
-
function
|
|
1240
|
+
function Zt(e) {
|
|
1266
1241
|
return e.type === v.tag;
|
|
1267
1242
|
}
|
|
1268
|
-
function
|
|
1269
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1243
|
+
function Qt(e) {
|
|
1244
|
+
return !!(e && typeof e == "object" && e.type === K.number);
|
|
1270
1245
|
}
|
|
1271
|
-
function
|
|
1272
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1246
|
+
function ze(e) {
|
|
1247
|
+
return !!(e && typeof e == "object" && e.type === K.dateTime);
|
|
1273
1248
|
}
|
|
1274
|
-
var
|
|
1275
|
-
function
|
|
1249
|
+
var qt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, xn = /(?:[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;
|
|
1250
|
+
function Sn(e) {
|
|
1276
1251
|
var t = {};
|
|
1277
|
-
return e.replace(
|
|
1252
|
+
return e.replace(xn, function(r) {
|
|
1278
1253
|
var n = r.length;
|
|
1279
1254
|
switch (r[0]) {
|
|
1280
1255
|
case "G":
|
|
@@ -1363,46 +1338,36 @@ function On(e) {
|
|
|
1363
1338
|
return "";
|
|
1364
1339
|
}), t;
|
|
1365
1340
|
}
|
|
1366
|
-
var
|
|
1367
|
-
|
|
1368
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1369
|
-
r = arguments[n];
|
|
1370
|
-
for (var s in r)
|
|
1371
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
1372
|
-
}
|
|
1373
|
-
return t;
|
|
1374
|
-
}, _.apply(this, arguments);
|
|
1375
|
-
};
|
|
1376
|
-
var An = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1377
|
-
function Bn(e) {
|
|
1341
|
+
var Tn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1342
|
+
function Hn(e) {
|
|
1378
1343
|
if (e.length === 0)
|
|
1379
1344
|
throw new Error("Number skeleton cannot be empty");
|
|
1380
|
-
for (var t = e.split(
|
|
1381
|
-
return
|
|
1345
|
+
for (var t = e.split(Tn).filter(function(c) {
|
|
1346
|
+
return c.length > 0;
|
|
1382
1347
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1383
1348
|
var s = i[n], o = s.split("/");
|
|
1384
1349
|
if (o.length === 0)
|
|
1385
1350
|
throw new Error("Invalid number skeleton");
|
|
1386
1351
|
for (var a = o[0], h = o.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
1387
|
-
var
|
|
1388
|
-
if (
|
|
1352
|
+
var f = l[u];
|
|
1353
|
+
if (f.length === 0)
|
|
1389
1354
|
throw new Error("Invalid number skeleton");
|
|
1390
1355
|
}
|
|
1391
1356
|
r.push({ stem: a, options: h });
|
|
1392
1357
|
}
|
|
1393
1358
|
return r;
|
|
1394
1359
|
}
|
|
1395
|
-
function
|
|
1360
|
+
function wn(e) {
|
|
1396
1361
|
return e.replace(/^(.*?)-/, "");
|
|
1397
1362
|
}
|
|
1398
|
-
var
|
|
1399
|
-
function
|
|
1363
|
+
var bt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Jt = /^(@+)?(\+|#+)?[rs]?$/g, Bn = /(\*)(0+)|(#+)(0+)|(0+)/g, Yt = /^(0+)$/;
|
|
1364
|
+
function yt(e) {
|
|
1400
1365
|
var t = {};
|
|
1401
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1366
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Jt, function(r, n, i) {
|
|
1402
1367
|
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)), "";
|
|
1403
1368
|
}), t;
|
|
1404
1369
|
}
|
|
1405
|
-
function
|
|
1370
|
+
function Kt(e) {
|
|
1406
1371
|
switch (e) {
|
|
1407
1372
|
case "sign-auto":
|
|
1408
1373
|
return {
|
|
@@ -1442,7 +1407,7 @@ function nr(e) {
|
|
|
1442
1407
|
};
|
|
1443
1408
|
}
|
|
1444
1409
|
}
|
|
1445
|
-
function
|
|
1410
|
+
function An(e) {
|
|
1446
1411
|
var t;
|
|
1447
1412
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1448
1413
|
notation: "engineering"
|
|
@@ -1450,17 +1415,17 @@ function In(e) {
|
|
|
1450
1415
|
notation: "scientific"
|
|
1451
1416
|
}, e = e.slice(1)), t) {
|
|
1452
1417
|
var r = e.slice(0, 2);
|
|
1453
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1418
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Yt.test(e))
|
|
1454
1419
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1455
1420
|
t.minimumIntegerDigits = e.length;
|
|
1456
1421
|
}
|
|
1457
1422
|
return t;
|
|
1458
1423
|
}
|
|
1459
|
-
function
|
|
1460
|
-
var t = {}, r =
|
|
1424
|
+
function gt(e) {
|
|
1425
|
+
var t = {}, r = Kt(e);
|
|
1461
1426
|
return r || t;
|
|
1462
1427
|
}
|
|
1463
|
-
function
|
|
1428
|
+
function On(e) {
|
|
1464
1429
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1465
1430
|
var i = n[r];
|
|
1466
1431
|
switch (i.stem) {
|
|
@@ -1484,7 +1449,7 @@ function Ln(e) {
|
|
|
1484
1449
|
continue;
|
|
1485
1450
|
case "measure-unit":
|
|
1486
1451
|
case "unit":
|
|
1487
|
-
t.style = "unit", t.unit =
|
|
1452
|
+
t.style = "unit", t.unit = wn(i.options[0]);
|
|
1488
1453
|
continue;
|
|
1489
1454
|
case "compact-short":
|
|
1490
1455
|
case "K":
|
|
@@ -1496,12 +1461,12 @@ function Ln(e) {
|
|
|
1496
1461
|
continue;
|
|
1497
1462
|
case "scientific":
|
|
1498
1463
|
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1499
|
-
return _(_({}, h),
|
|
1464
|
+
return _(_({}, h), gt(u));
|
|
1500
1465
|
}, {}));
|
|
1501
1466
|
continue;
|
|
1502
1467
|
case "engineering":
|
|
1503
1468
|
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1504
|
-
return _(_({}, h),
|
|
1469
|
+
return _(_({}, h), gt(u));
|
|
1505
1470
|
}, {}));
|
|
1506
1471
|
continue;
|
|
1507
1472
|
case "notation-simple":
|
|
@@ -1546,45 +1511,45 @@ function Ln(e) {
|
|
|
1546
1511
|
case "integer-width":
|
|
1547
1512
|
if (i.options.length > 1)
|
|
1548
1513
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1549
|
-
i.options[0].replace(
|
|
1514
|
+
i.options[0].replace(Bn, function(h, u, l, f, c, d) {
|
|
1550
1515
|
if (u)
|
|
1551
1516
|
t.minimumIntegerDigits = l.length;
|
|
1552
1517
|
else {
|
|
1553
|
-
if (
|
|
1518
|
+
if (f && c)
|
|
1554
1519
|
throw new Error("We currently do not support maximum integer digits");
|
|
1555
|
-
if (
|
|
1520
|
+
if (d)
|
|
1556
1521
|
throw new Error("We currently do not support exact integer digits");
|
|
1557
1522
|
}
|
|
1558
1523
|
return "";
|
|
1559
1524
|
});
|
|
1560
1525
|
continue;
|
|
1561
1526
|
}
|
|
1562
|
-
if (
|
|
1527
|
+
if (Yt.test(i.stem)) {
|
|
1563
1528
|
t.minimumIntegerDigits = i.stem.length;
|
|
1564
1529
|
continue;
|
|
1565
1530
|
}
|
|
1566
|
-
if (
|
|
1531
|
+
if (bt.test(i.stem)) {
|
|
1567
1532
|
if (i.options.length > 1)
|
|
1568
1533
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1569
|
-
i.stem.replace(
|
|
1570
|
-
return l === "*" ? t.minimumFractionDigits = u.length :
|
|
1534
|
+
i.stem.replace(bt, function(h, u, l, f, c, d) {
|
|
1535
|
+
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1571
1536
|
});
|
|
1572
1537
|
var s = i.options[0];
|
|
1573
|
-
s === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = _(_({}, t),
|
|
1538
|
+
s === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = _(_({}, t), yt(s)));
|
|
1574
1539
|
continue;
|
|
1575
1540
|
}
|
|
1576
|
-
if (
|
|
1577
|
-
t = _(_({}, t),
|
|
1541
|
+
if (Jt.test(i.stem)) {
|
|
1542
|
+
t = _(_({}, t), yt(i.stem));
|
|
1578
1543
|
continue;
|
|
1579
1544
|
}
|
|
1580
|
-
var o =
|
|
1545
|
+
var o = Kt(i.stem);
|
|
1581
1546
|
o && (t = _(_({}, t), o));
|
|
1582
|
-
var a =
|
|
1547
|
+
var a = An(i.stem);
|
|
1583
1548
|
a && (t = _(_({}, t), a));
|
|
1584
1549
|
}
|
|
1585
1550
|
return t;
|
|
1586
1551
|
}
|
|
1587
|
-
var
|
|
1552
|
+
var ve = {
|
|
1588
1553
|
"001": [
|
|
1589
1554
|
"H",
|
|
1590
1555
|
"h"
|
|
@@ -2999,13 +2964,13 @@ var _e = {
|
|
|
2999
2964
|
"h"
|
|
3000
2965
|
]
|
|
3001
2966
|
};
|
|
3002
|
-
function
|
|
2967
|
+
function Pn(e, t) {
|
|
3003
2968
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3004
2969
|
var i = e.charAt(n);
|
|
3005
2970
|
if (i === "j") {
|
|
3006
2971
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3007
2972
|
s++, n++;
|
|
3008
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u =
|
|
2973
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u = Cn(t);
|
|
3009
2974
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3010
2975
|
r += h;
|
|
3011
2976
|
for (; o-- > 0; )
|
|
@@ -3015,7 +2980,7 @@ function Mn(e, t) {
|
|
|
3015
2980
|
}
|
|
3016
2981
|
return r;
|
|
3017
2982
|
}
|
|
3018
|
-
function
|
|
2983
|
+
function Cn(e) {
|
|
3019
2984
|
var t = e.hourCycle;
|
|
3020
2985
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3021
2986
|
e.hourCycles && // @ts-ignore
|
|
@@ -3034,23 +2999,23 @@ function Nn(e) {
|
|
|
3034
2999
|
}
|
|
3035
3000
|
var r = e.language, n;
|
|
3036
3001
|
r !== "root" && (n = e.maximize().region);
|
|
3037
|
-
var i =
|
|
3002
|
+
var i = ve[n || ""] || ve[r || ""] || ve["".concat(r, "-001")] || ve["001"];
|
|
3038
3003
|
return i[0];
|
|
3039
3004
|
}
|
|
3040
|
-
var
|
|
3005
|
+
var $e, In = new RegExp("^".concat(qt.source, "*")), Ln = new RegExp("".concat(qt.source, "*$"));
|
|
3041
3006
|
function b(e, t) {
|
|
3042
3007
|
return { start: e, end: t };
|
|
3043
3008
|
}
|
|
3044
|
-
var
|
|
3009
|
+
var Mn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Nn = !!String.fromCodePoint, $n = !!Object.fromEntries, Rn = !!String.prototype.codePointAt, Un = !!String.prototype.trimStart, Dn = !!String.prototype.trimEnd, Gn = !!Number.isSafeInteger, Fn = Gn ? Number.isSafeInteger : function(e) {
|
|
3045
3010
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3046
|
-
},
|
|
3011
|
+
}, Ze = !0;
|
|
3047
3012
|
try {
|
|
3048
|
-
var
|
|
3049
|
-
|
|
3013
|
+
var jn = tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3014
|
+
Ze = (($e = jn.exec("a")) === null || $e === void 0 ? void 0 : $e[0]) === "a";
|
|
3050
3015
|
} catch {
|
|
3051
|
-
|
|
3016
|
+
Ze = !1;
|
|
3052
3017
|
}
|
|
3053
|
-
var
|
|
3018
|
+
var _t = Mn ? (
|
|
3054
3019
|
// Native
|
|
3055
3020
|
function(t, r, n) {
|
|
3056
3021
|
return t.startsWith(r, n);
|
|
@@ -3060,7 +3025,7 @@ var St = Un ? (
|
|
|
3060
3025
|
function(t, r, n) {
|
|
3061
3026
|
return t.slice(n, n + r.length) === r;
|
|
3062
3027
|
}
|
|
3063
|
-
),
|
|
3028
|
+
), Qe = Nn ? String.fromCodePoint : (
|
|
3064
3029
|
// IE11
|
|
3065
3030
|
function() {
|
|
3066
3031
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3072,9 +3037,9 @@ var St = Un ? (
|
|
|
3072
3037
|
}
|
|
3073
3038
|
return n;
|
|
3074
3039
|
}
|
|
3075
|
-
),
|
|
3040
|
+
), vt = (
|
|
3076
3041
|
// native
|
|
3077
|
-
|
|
3042
|
+
$n ? Object.fromEntries : (
|
|
3078
3043
|
// Ponyfill
|
|
3079
3044
|
function(t) {
|
|
3080
3045
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3084,7 +3049,7 @@ var St = Un ? (
|
|
|
3084
3049
|
return r;
|
|
3085
3050
|
}
|
|
3086
3051
|
)
|
|
3087
|
-
),
|
|
3052
|
+
), er = Rn ? (
|
|
3088
3053
|
// Native
|
|
3089
3054
|
function(t, r) {
|
|
3090
3055
|
return t.codePointAt(r);
|
|
@@ -3098,7 +3063,7 @@ var St = Un ? (
|
|
|
3098
3063
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
3099
3064
|
}
|
|
3100
3065
|
}
|
|
3101
|
-
),
|
|
3066
|
+
), kn = Un ? (
|
|
3102
3067
|
// Native
|
|
3103
3068
|
function(t) {
|
|
3104
3069
|
return t.trimStart();
|
|
@@ -3106,9 +3071,9 @@ var St = Un ? (
|
|
|
3106
3071
|
) : (
|
|
3107
3072
|
// Ponyfill
|
|
3108
3073
|
function(t) {
|
|
3109
|
-
return t.replace(
|
|
3074
|
+
return t.replace(In, "");
|
|
3110
3075
|
}
|
|
3111
|
-
),
|
|
3076
|
+
), Vn = Dn ? (
|
|
3112
3077
|
// Native
|
|
3113
3078
|
function(t) {
|
|
3114
3079
|
return t.trimEnd();
|
|
@@ -3116,32 +3081,32 @@ var St = Un ? (
|
|
|
3116
3081
|
) : (
|
|
3117
3082
|
// Ponyfill
|
|
3118
3083
|
function(t) {
|
|
3119
|
-
return t.replace(
|
|
3084
|
+
return t.replace(Ln, "");
|
|
3120
3085
|
}
|
|
3121
3086
|
);
|
|
3122
|
-
function
|
|
3087
|
+
function tr(e, t) {
|
|
3123
3088
|
return new RegExp(e, t);
|
|
3124
3089
|
}
|
|
3125
|
-
var
|
|
3126
|
-
if (
|
|
3127
|
-
var
|
|
3128
|
-
|
|
3090
|
+
var qe;
|
|
3091
|
+
if (Ze) {
|
|
3092
|
+
var Et = tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3093
|
+
qe = function(t, r) {
|
|
3129
3094
|
var n;
|
|
3130
|
-
|
|
3131
|
-
var i =
|
|
3095
|
+
Et.lastIndex = r;
|
|
3096
|
+
var i = Et.exec(t);
|
|
3132
3097
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3133
3098
|
};
|
|
3134
3099
|
} else
|
|
3135
|
-
|
|
3100
|
+
qe = function(t, r) {
|
|
3136
3101
|
for (var n = []; ; ) {
|
|
3137
|
-
var i =
|
|
3138
|
-
if (i === void 0 ||
|
|
3102
|
+
var i = er(t, r);
|
|
3103
|
+
if (i === void 0 || rr(i) || Zn(i))
|
|
3139
3104
|
break;
|
|
3140
3105
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3141
3106
|
}
|
|
3142
|
-
return
|
|
3107
|
+
return Qe.apply(void 0, n);
|
|
3143
3108
|
};
|
|
3144
|
-
var
|
|
3109
|
+
var Xn = (
|
|
3145
3110
|
/** @class */
|
|
3146
3111
|
function() {
|
|
3147
3112
|
function e(t, r) {
|
|
@@ -3171,8 +3136,8 @@ var Qn = (
|
|
|
3171
3136
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3172
3137
|
if (n)
|
|
3173
3138
|
break;
|
|
3174
|
-
return this.error(
|
|
3175
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
3139
|
+
return this.error(p.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
3140
|
+
} else if (s === 60 && !this.ignoreTag && Je(this.peek() || 0)) {
|
|
3176
3141
|
var o = this.parseTag(t, r);
|
|
3177
3142
|
if (o.err)
|
|
3178
3143
|
return o;
|
|
@@ -3205,10 +3170,10 @@ var Qn = (
|
|
|
3205
3170
|
return s;
|
|
3206
3171
|
var o = s.val, a = this.clonePosition();
|
|
3207
3172
|
if (this.bumpIf("</")) {
|
|
3208
|
-
if (this.isEOF() || !
|
|
3209
|
-
return this.error(
|
|
3173
|
+
if (this.isEOF() || !Je(this.char()))
|
|
3174
|
+
return this.error(p.INVALID_TAG, b(a, this.clonePosition()));
|
|
3210
3175
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3211
|
-
return i !== u ? this.error(
|
|
3176
|
+
return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3212
3177
|
val: {
|
|
3213
3178
|
type: v.tag,
|
|
3214
3179
|
value: i,
|
|
@@ -3216,14 +3181,14 @@ var Qn = (
|
|
|
3216
3181
|
location: b(n, this.clonePosition())
|
|
3217
3182
|
},
|
|
3218
3183
|
err: null
|
|
3219
|
-
} : this.error(
|
|
3184
|
+
} : this.error(p.INVALID_TAG, b(a, this.clonePosition())));
|
|
3220
3185
|
} else
|
|
3221
|
-
return this.error(
|
|
3186
|
+
return this.error(p.UNCLOSED_TAG, b(n, this.clonePosition()));
|
|
3222
3187
|
} else
|
|
3223
|
-
return this.error(
|
|
3188
|
+
return this.error(p.INVALID_TAG, b(n, this.clonePosition()));
|
|
3224
3189
|
}, e.prototype.parseTagName = function() {
|
|
3225
3190
|
var t = this.offset();
|
|
3226
|
-
for (this.bump(); !this.isEOF() &&
|
|
3191
|
+
for (this.bump(); !this.isEOF() && zn(this.char()); )
|
|
3227
3192
|
this.bump();
|
|
3228
3193
|
return this.message.slice(t, this.offset());
|
|
3229
3194
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3252,7 +3217,7 @@ var Qn = (
|
|
|
3252
3217
|
};
|
|
3253
3218
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3254
3219
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3255
|
-
!
|
|
3220
|
+
!Wn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3256
3221
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3257
3222
|
if (this.isEOF() || this.char() !== 39)
|
|
3258
3223
|
return null;
|
|
@@ -3286,23 +3251,23 @@ var Qn = (
|
|
|
3286
3251
|
r.push(n);
|
|
3287
3252
|
this.bump();
|
|
3288
3253
|
}
|
|
3289
|
-
return
|
|
3254
|
+
return Qe.apply(void 0, r);
|
|
3290
3255
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3291
3256
|
if (this.isEOF())
|
|
3292
3257
|
return null;
|
|
3293
3258
|
var n = this.char();
|
|
3294
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3259
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Qe(n));
|
|
3295
3260
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3296
3261
|
var n = this.clonePosition();
|
|
3297
3262
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3298
|
-
return this.error(
|
|
3263
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
3299
3264
|
if (this.char() === 125)
|
|
3300
|
-
return this.bump(), this.error(
|
|
3265
|
+
return this.bump(), this.error(p.EMPTY_ARGUMENT, b(n, this.clonePosition()));
|
|
3301
3266
|
var i = this.parseIdentifierIfPossible().value;
|
|
3302
3267
|
if (!i)
|
|
3303
|
-
return this.error(
|
|
3268
|
+
return this.error(p.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3304
3269
|
if (this.bumpSpace(), this.isEOF())
|
|
3305
|
-
return this.error(
|
|
3270
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
3306
3271
|
switch (this.char()) {
|
|
3307
3272
|
case 125:
|
|
3308
3273
|
return this.bump(), {
|
|
@@ -3315,12 +3280,12 @@ var Qn = (
|
|
|
3315
3280
|
err: null
|
|
3316
3281
|
};
|
|
3317
3282
|
case 44:
|
|
3318
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3283
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3319
3284
|
default:
|
|
3320
|
-
return this.error(
|
|
3285
|
+
return this.error(p.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3321
3286
|
}
|
|
3322
3287
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3323
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3288
|
+
var t = this.clonePosition(), r = this.offset(), n = qe(this.message, r), i = r + n.length;
|
|
3324
3289
|
this.bumpTo(i);
|
|
3325
3290
|
var s = this.clonePosition(), o = b(t, s);
|
|
3326
3291
|
return { value: n, location: o };
|
|
@@ -3328,7 +3293,7 @@ var Qn = (
|
|
|
3328
3293
|
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3329
3294
|
switch (a) {
|
|
3330
3295
|
case "":
|
|
3331
|
-
return this.error(
|
|
3296
|
+
return this.error(p.EXPECT_ARGUMENT_TYPE, b(o, h));
|
|
3332
3297
|
case "number":
|
|
3333
3298
|
case "date":
|
|
3334
3299
|
case "time": {
|
|
@@ -3336,40 +3301,40 @@ var Qn = (
|
|
|
3336
3301
|
var u = null;
|
|
3337
3302
|
if (this.bumpIf(",")) {
|
|
3338
3303
|
this.bumpSpace();
|
|
3339
|
-
var l = this.clonePosition(),
|
|
3340
|
-
if (
|
|
3341
|
-
return
|
|
3342
|
-
var
|
|
3343
|
-
if (
|
|
3344
|
-
return this.error(
|
|
3345
|
-
var
|
|
3346
|
-
u = { style:
|
|
3304
|
+
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3305
|
+
if (f.err)
|
|
3306
|
+
return f;
|
|
3307
|
+
var c = Vn(f.val);
|
|
3308
|
+
if (c.length === 0)
|
|
3309
|
+
return this.error(p.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3310
|
+
var d = b(l, this.clonePosition());
|
|
3311
|
+
u = { style: c, styleLocation: d };
|
|
3347
3312
|
}
|
|
3348
3313
|
var y = this.tryParseArgumentClose(i);
|
|
3349
3314
|
if (y.err)
|
|
3350
3315
|
return y;
|
|
3351
3316
|
var g = b(i, this.clonePosition());
|
|
3352
|
-
if (u &&
|
|
3353
|
-
var
|
|
3317
|
+
if (u && _t(u?.style, "::", 0)) {
|
|
3318
|
+
var O = kn(u.style.slice(2));
|
|
3354
3319
|
if (a === "number") {
|
|
3355
|
-
var
|
|
3356
|
-
return
|
|
3357
|
-
val: { type: v.number, value: n, location: g, style:
|
|
3320
|
+
var f = this.parseNumberSkeletonFromString(O, u.styleLocation);
|
|
3321
|
+
return f.err ? f : {
|
|
3322
|
+
val: { type: v.number, value: n, location: g, style: f.val },
|
|
3358
3323
|
err: null
|
|
3359
3324
|
};
|
|
3360
3325
|
} else {
|
|
3361
|
-
if (
|
|
3362
|
-
return this.error(
|
|
3363
|
-
var
|
|
3364
|
-
this.locale && (
|
|
3365
|
-
var
|
|
3366
|
-
type:
|
|
3367
|
-
pattern:
|
|
3326
|
+
if (O.length === 0)
|
|
3327
|
+
return this.error(p.EXPECT_DATE_TIME_SKELETON, g);
|
|
3328
|
+
var T = O;
|
|
3329
|
+
this.locale && (T = Pn(O, this.locale));
|
|
3330
|
+
var c = {
|
|
3331
|
+
type: K.dateTime,
|
|
3332
|
+
pattern: T,
|
|
3368
3333
|
location: u.styleLocation,
|
|
3369
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3334
|
+
parsedOptions: this.shouldParseSkeletons ? Sn(T) : {}
|
|
3370
3335
|
}, L = a === "date" ? v.date : v.time;
|
|
3371
3336
|
return {
|
|
3372
|
-
val: { type: L, value: n, location: g, style:
|
|
3337
|
+
val: { type: L, value: n, location: g, style: c },
|
|
3373
3338
|
err: null
|
|
3374
3339
|
};
|
|
3375
3340
|
}
|
|
@@ -3387,19 +3352,19 @@ var Qn = (
|
|
|
3387
3352
|
case "plural":
|
|
3388
3353
|
case "selectordinal":
|
|
3389
3354
|
case "select": {
|
|
3390
|
-
var
|
|
3355
|
+
var H = this.clonePosition();
|
|
3391
3356
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3392
|
-
return this.error(
|
|
3357
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, _({}, H)));
|
|
3393
3358
|
this.bumpSpace();
|
|
3394
3359
|
var m = this.parseIdentifierIfPossible(), S = 0;
|
|
3395
3360
|
if (a !== "select" && m.value === "offset") {
|
|
3396
3361
|
if (!this.bumpIf(":"))
|
|
3397
|
-
return this.error(
|
|
3362
|
+
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
3398
3363
|
this.bumpSpace();
|
|
3399
|
-
var
|
|
3400
|
-
if (
|
|
3401
|
-
return
|
|
3402
|
-
this.bumpSpace(), m = this.parseIdentifierIfPossible(), S =
|
|
3364
|
+
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3365
|
+
if (f.err)
|
|
3366
|
+
return f;
|
|
3367
|
+
this.bumpSpace(), m = this.parseIdentifierIfPossible(), S = f.val;
|
|
3403
3368
|
}
|
|
3404
3369
|
var N = this.tryParsePluralOrSelectOptions(t, a, r, m);
|
|
3405
3370
|
if (N.err)
|
|
@@ -3407,32 +3372,32 @@ var Qn = (
|
|
|
3407
3372
|
var y = this.tryParseArgumentClose(i);
|
|
3408
3373
|
if (y.err)
|
|
3409
3374
|
return y;
|
|
3410
|
-
var
|
|
3375
|
+
var oe = b(i, this.clonePosition());
|
|
3411
3376
|
return a === "select" ? {
|
|
3412
3377
|
val: {
|
|
3413
3378
|
type: v.select,
|
|
3414
3379
|
value: n,
|
|
3415
|
-
options:
|
|
3416
|
-
location:
|
|
3380
|
+
options: vt(N.val),
|
|
3381
|
+
location: oe
|
|
3417
3382
|
},
|
|
3418
3383
|
err: null
|
|
3419
3384
|
} : {
|
|
3420
3385
|
val: {
|
|
3421
3386
|
type: v.plural,
|
|
3422
3387
|
value: n,
|
|
3423
|
-
options:
|
|
3388
|
+
options: vt(N.val),
|
|
3424
3389
|
offset: S,
|
|
3425
3390
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3426
|
-
location:
|
|
3391
|
+
location: oe
|
|
3427
3392
|
},
|
|
3428
3393
|
err: null
|
|
3429
3394
|
};
|
|
3430
3395
|
}
|
|
3431
3396
|
default:
|
|
3432
|
-
return this.error(
|
|
3397
|
+
return this.error(p.INVALID_ARGUMENT_TYPE, b(o, h));
|
|
3433
3398
|
}
|
|
3434
3399
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3435
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3400
|
+
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3436
3401
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3437
3402
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3438
3403
|
var n = this.char();
|
|
@@ -3441,7 +3406,7 @@ var Qn = (
|
|
|
3441
3406
|
this.bump();
|
|
3442
3407
|
var i = this.clonePosition();
|
|
3443
3408
|
if (!this.bumpUntil("'"))
|
|
3444
|
-
return this.error(
|
|
3409
|
+
return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
|
|
3445
3410
|
this.bump();
|
|
3446
3411
|
break;
|
|
3447
3412
|
}
|
|
@@ -3471,52 +3436,52 @@ var Qn = (
|
|
|
3471
3436
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3472
3437
|
var n = [];
|
|
3473
3438
|
try {
|
|
3474
|
-
n =
|
|
3439
|
+
n = Hn(t);
|
|
3475
3440
|
} catch {
|
|
3476
|
-
return this.error(
|
|
3441
|
+
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
3477
3442
|
}
|
|
3478
3443
|
return {
|
|
3479
3444
|
val: {
|
|
3480
|
-
type:
|
|
3445
|
+
type: K.number,
|
|
3481
3446
|
tokens: n,
|
|
3482
3447
|
location: r,
|
|
3483
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3448
|
+
parsedOptions: this.shouldParseSkeletons ? On(n) : {}
|
|
3484
3449
|
},
|
|
3485
3450
|
err: null
|
|
3486
3451
|
};
|
|
3487
3452
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3488
3453
|
for (var s, o = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
3489
3454
|
if (u.length === 0) {
|
|
3490
|
-
var
|
|
3455
|
+
var f = this.clonePosition();
|
|
3491
3456
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3492
|
-
var
|
|
3493
|
-
if (
|
|
3494
|
-
return
|
|
3495
|
-
l = b(
|
|
3457
|
+
var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3458
|
+
if (c.err)
|
|
3459
|
+
return c;
|
|
3460
|
+
l = b(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
3496
3461
|
} else
|
|
3497
3462
|
break;
|
|
3498
3463
|
}
|
|
3499
3464
|
if (h.has(u))
|
|
3500
|
-
return this.error(r === "select" ?
|
|
3465
|
+
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3501
3466
|
u === "other" && (o = !0), this.bumpSpace();
|
|
3502
|
-
var
|
|
3467
|
+
var d = this.clonePosition();
|
|
3503
3468
|
if (!this.bumpIf("{"))
|
|
3504
|
-
return this.error(r === "select" ?
|
|
3469
|
+
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3505
3470
|
var y = this.parseMessage(t + 1, r, n);
|
|
3506
3471
|
if (y.err)
|
|
3507
3472
|
return y;
|
|
3508
|
-
var g = this.tryParseArgumentClose(
|
|
3473
|
+
var g = this.tryParseArgumentClose(d);
|
|
3509
3474
|
if (g.err)
|
|
3510
3475
|
return g;
|
|
3511
3476
|
a.push([
|
|
3512
3477
|
u,
|
|
3513
3478
|
{
|
|
3514
3479
|
value: y.val,
|
|
3515
|
-
location: b(
|
|
3480
|
+
location: b(d, this.clonePosition())
|
|
3516
3481
|
}
|
|
3517
3482
|
]), h.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, l = s.location;
|
|
3518
3483
|
}
|
|
3519
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3484
|
+
return a.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(p.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3520
3485
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3521
3486
|
var n = 1, i = this.clonePosition();
|
|
3522
3487
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3528,7 +3493,7 @@ var Qn = (
|
|
|
3528
3493
|
break;
|
|
3529
3494
|
}
|
|
3530
3495
|
var h = b(i, this.clonePosition());
|
|
3531
|
-
return s ? (o *= n,
|
|
3496
|
+
return s ? (o *= n, Fn(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3532
3497
|
}, e.prototype.offset = function() {
|
|
3533
3498
|
return this.position.offset;
|
|
3534
3499
|
}, e.prototype.isEOF = function() {
|
|
@@ -3543,7 +3508,7 @@ var Qn = (
|
|
|
3543
3508
|
var t = this.position.offset;
|
|
3544
3509
|
if (t >= this.message.length)
|
|
3545
3510
|
throw Error("out of bound");
|
|
3546
|
-
var r =
|
|
3511
|
+
var r = er(this.message, t);
|
|
3547
3512
|
if (r === void 0)
|
|
3548
3513
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3549
3514
|
return r;
|
|
@@ -3562,7 +3527,7 @@ var Qn = (
|
|
|
3562
3527
|
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);
|
|
3563
3528
|
}
|
|
3564
3529
|
}, e.prototype.bumpIf = function(t) {
|
|
3565
|
-
if (
|
|
3530
|
+
if (_t(this.message, t, this.offset())) {
|
|
3566
3531
|
for (var r = 0; r < t.length; r++)
|
|
3567
3532
|
this.bump();
|
|
3568
3533
|
return !0;
|
|
@@ -3584,7 +3549,7 @@ var Qn = (
|
|
|
3584
3549
|
break;
|
|
3585
3550
|
}
|
|
3586
3551
|
}, e.prototype.bumpSpace = function() {
|
|
3587
|
-
for (; !this.isEOF() &&
|
|
3552
|
+
for (; !this.isEOF() && rr(this.char()); )
|
|
3588
3553
|
this.bump();
|
|
3589
3554
|
}, e.prototype.peek = function() {
|
|
3590
3555
|
if (this.isEOF())
|
|
@@ -3594,47 +3559,47 @@ var Qn = (
|
|
|
3594
3559
|
}, e;
|
|
3595
3560
|
}()
|
|
3596
3561
|
);
|
|
3597
|
-
function
|
|
3562
|
+
function Je(e) {
|
|
3598
3563
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3599
3564
|
}
|
|
3600
|
-
function
|
|
3601
|
-
return
|
|
3565
|
+
function Wn(e) {
|
|
3566
|
+
return Je(e) || e === 47;
|
|
3602
3567
|
}
|
|
3603
|
-
function
|
|
3568
|
+
function zn(e) {
|
|
3604
3569
|
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;
|
|
3605
3570
|
}
|
|
3606
|
-
function
|
|
3571
|
+
function rr(e) {
|
|
3607
3572
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3608
3573
|
}
|
|
3609
|
-
function
|
|
3574
|
+
function Zn(e) {
|
|
3610
3575
|
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;
|
|
3611
3576
|
}
|
|
3612
|
-
function
|
|
3577
|
+
function Ye(e) {
|
|
3613
3578
|
e.forEach(function(t) {
|
|
3614
|
-
if (delete t.location,
|
|
3579
|
+
if (delete t.location, Wt(t) || zt(t))
|
|
3615
3580
|
for (var r in t.options)
|
|
3616
|
-
delete t.options[r].location,
|
|
3581
|
+
delete t.options[r].location, Ye(t.options[r].value);
|
|
3617
3582
|
else
|
|
3618
|
-
|
|
3583
|
+
kt(t) && Qt(t.style) || (Vt(t) || Xt(t)) && ze(t.style) ? delete t.style.location : Zt(t) && Ye(t.children);
|
|
3619
3584
|
});
|
|
3620
3585
|
}
|
|
3621
|
-
function
|
|
3622
|
-
t === void 0 && (t = {}), t =
|
|
3623
|
-
var r = new
|
|
3586
|
+
function Qn(e, t) {
|
|
3587
|
+
t === void 0 && (t = {}), t = _({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3588
|
+
var r = new Xn(e, t).parse();
|
|
3624
3589
|
if (r.err) {
|
|
3625
|
-
var n = SyntaxError(
|
|
3590
|
+
var n = SyntaxError(p[r.err.kind]);
|
|
3626
3591
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3627
3592
|
}
|
|
3628
|
-
return t?.captureLocation ||
|
|
3593
|
+
return t?.captureLocation || Ye(r.val), r.val;
|
|
3629
3594
|
}
|
|
3630
|
-
var
|
|
3595
|
+
var ee;
|
|
3631
3596
|
(function(e) {
|
|
3632
3597
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3633
|
-
})(
|
|
3634
|
-
var
|
|
3598
|
+
})(ee || (ee = {}));
|
|
3599
|
+
var Pe = (
|
|
3635
3600
|
/** @class */
|
|
3636
3601
|
function(e) {
|
|
3637
|
-
|
|
3602
|
+
D(t, e);
|
|
3638
3603
|
function t(r, n, i) {
|
|
3639
3604
|
var s = e.call(this, r) || this;
|
|
3640
3605
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3643,48 +3608,48 @@ var Ie = (
|
|
|
3643
3608
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3644
3609
|
}, t;
|
|
3645
3610
|
}(Error)
|
|
3646
|
-
),
|
|
3611
|
+
), xt = (
|
|
3647
3612
|
/** @class */
|
|
3648
3613
|
function(e) {
|
|
3649
|
-
|
|
3614
|
+
D(t, e);
|
|
3650
3615
|
function t(r, n, i, s) {
|
|
3651
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3616
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ee.INVALID_VALUE, s) || this;
|
|
3652
3617
|
}
|
|
3653
3618
|
return t;
|
|
3654
|
-
}(
|
|
3655
|
-
),
|
|
3619
|
+
}(Pe)
|
|
3620
|
+
), qn = (
|
|
3656
3621
|
/** @class */
|
|
3657
3622
|
function(e) {
|
|
3658
|
-
|
|
3623
|
+
D(t, e);
|
|
3659
3624
|
function t(r, n, i) {
|
|
3660
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3625
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ee.INVALID_VALUE, i) || this;
|
|
3661
3626
|
}
|
|
3662
3627
|
return t;
|
|
3663
|
-
}(
|
|
3664
|
-
),
|
|
3628
|
+
}(Pe)
|
|
3629
|
+
), Jn = (
|
|
3665
3630
|
/** @class */
|
|
3666
3631
|
function(e) {
|
|
3667
|
-
|
|
3632
|
+
D(t, e);
|
|
3668
3633
|
function t(r, n) {
|
|
3669
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3634
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ee.MISSING_VALUE, n) || this;
|
|
3670
3635
|
}
|
|
3671
3636
|
return t;
|
|
3672
|
-
}(
|
|
3637
|
+
}(Pe)
|
|
3673
3638
|
), A;
|
|
3674
3639
|
(function(e) {
|
|
3675
3640
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3676
3641
|
})(A || (A = {}));
|
|
3677
|
-
function
|
|
3642
|
+
function Yn(e) {
|
|
3678
3643
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3679
3644
|
var n = t[t.length - 1];
|
|
3680
3645
|
return !n || n.type !== A.literal || r.type !== A.literal ? t.push(r) : n.value += r.value, t;
|
|
3681
3646
|
}, []);
|
|
3682
3647
|
}
|
|
3683
|
-
function
|
|
3648
|
+
function Kn(e) {
|
|
3684
3649
|
return typeof e == "function";
|
|
3685
3650
|
}
|
|
3686
3651
|
function Se(e, t, r, n, i, s, o) {
|
|
3687
|
-
if (e.length === 1 &&
|
|
3652
|
+
if (e.length === 1 && mt(e[0]))
|
|
3688
3653
|
return [
|
|
3689
3654
|
{
|
|
3690
3655
|
type: A.literal,
|
|
@@ -3693,60 +3658,60 @@ function Se(e, t, r, n, i, s, o) {
|
|
|
3693
3658
|
];
|
|
3694
3659
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3695
3660
|
var l = u[h];
|
|
3696
|
-
if (
|
|
3661
|
+
if (mt(l)) {
|
|
3697
3662
|
a.push({
|
|
3698
3663
|
type: A.literal,
|
|
3699
3664
|
value: l.value
|
|
3700
3665
|
});
|
|
3701
3666
|
continue;
|
|
3702
3667
|
}
|
|
3703
|
-
if (
|
|
3668
|
+
if (En(l)) {
|
|
3704
3669
|
typeof s == "number" && a.push({
|
|
3705
3670
|
type: A.literal,
|
|
3706
3671
|
value: r.getNumberFormat(t).format(s)
|
|
3707
3672
|
});
|
|
3708
3673
|
continue;
|
|
3709
3674
|
}
|
|
3710
|
-
var
|
|
3711
|
-
if (!(i &&
|
|
3712
|
-
throw new
|
|
3713
|
-
var
|
|
3714
|
-
if (
|
|
3715
|
-
(!
|
|
3716
|
-
type: typeof
|
|
3717
|
-
value:
|
|
3675
|
+
var f = l.value;
|
|
3676
|
+
if (!(i && f in i))
|
|
3677
|
+
throw new Jn(f, o);
|
|
3678
|
+
var c = i[f];
|
|
3679
|
+
if (vn(l)) {
|
|
3680
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3681
|
+
type: typeof c == "string" ? A.literal : A.object,
|
|
3682
|
+
value: c
|
|
3718
3683
|
});
|
|
3719
3684
|
continue;
|
|
3720
3685
|
}
|
|
3721
|
-
if (
|
|
3722
|
-
var
|
|
3686
|
+
if (Vt(l)) {
|
|
3687
|
+
var d = typeof l.style == "string" ? n.date[l.style] : ze(l.style) ? l.style.parsedOptions : void 0;
|
|
3723
3688
|
a.push({
|
|
3724
3689
|
type: A.literal,
|
|
3725
|
-
value: r.getDateTimeFormat(t,
|
|
3690
|
+
value: r.getDateTimeFormat(t, d).format(c)
|
|
3726
3691
|
});
|
|
3727
3692
|
continue;
|
|
3728
3693
|
}
|
|
3729
|
-
if (
|
|
3730
|
-
var
|
|
3694
|
+
if (Xt(l)) {
|
|
3695
|
+
var d = typeof l.style == "string" ? n.time[l.style] : ze(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3731
3696
|
a.push({
|
|
3732
3697
|
type: A.literal,
|
|
3733
|
-
value: r.getDateTimeFormat(t,
|
|
3698
|
+
value: r.getDateTimeFormat(t, d).format(c)
|
|
3734
3699
|
});
|
|
3735
3700
|
continue;
|
|
3736
3701
|
}
|
|
3737
|
-
if (
|
|
3738
|
-
var
|
|
3739
|
-
|
|
3702
|
+
if (kt(l)) {
|
|
3703
|
+
var d = typeof l.style == "string" ? n.number[l.style] : Qt(l.style) ? l.style.parsedOptions : void 0;
|
|
3704
|
+
d && d.scale && (c = c * (d.scale || 1)), a.push({
|
|
3740
3705
|
type: A.literal,
|
|
3741
|
-
value: r.getNumberFormat(t,
|
|
3706
|
+
value: r.getNumberFormat(t, d).format(c)
|
|
3742
3707
|
});
|
|
3743
3708
|
continue;
|
|
3744
3709
|
}
|
|
3745
|
-
if (
|
|
3746
|
-
var y = l.children, g = l.value,
|
|
3747
|
-
if (!
|
|
3748
|
-
throw new
|
|
3749
|
-
var
|
|
3710
|
+
if (Zt(l)) {
|
|
3711
|
+
var y = l.children, g = l.value, O = i[g];
|
|
3712
|
+
if (!Kn(O))
|
|
3713
|
+
throw new qn(g, "function", o);
|
|
3714
|
+
var T = Se(y, t, r, n, i, s), L = O(T.map(function(S) {
|
|
3750
3715
|
return S.value;
|
|
3751
3716
|
}));
|
|
3752
3717
|
Array.isArray(L) || (L = [L]), a.push.apply(a, L.map(function(S) {
|
|
@@ -3756,42 +3721,42 @@ function Se(e, t, r, n, i, s, o) {
|
|
|
3756
3721
|
};
|
|
3757
3722
|
}));
|
|
3758
3723
|
}
|
|
3759
|
-
if (
|
|
3760
|
-
var
|
|
3761
|
-
if (!
|
|
3762
|
-
throw new
|
|
3763
|
-
a.push.apply(a, Se(
|
|
3724
|
+
if (Wt(l)) {
|
|
3725
|
+
var H = l.options[c] || l.options.other;
|
|
3726
|
+
if (!H)
|
|
3727
|
+
throw new xt(l.value, c, Object.keys(l.options), o);
|
|
3728
|
+
a.push.apply(a, Se(H.value, t, r, n, i));
|
|
3764
3729
|
continue;
|
|
3765
3730
|
}
|
|
3766
|
-
if (
|
|
3767
|
-
var
|
|
3768
|
-
if (!
|
|
3731
|
+
if (zt(l)) {
|
|
3732
|
+
var H = l.options["=".concat(c)];
|
|
3733
|
+
if (!H) {
|
|
3769
3734
|
if (!Intl.PluralRules)
|
|
3770
|
-
throw new
|
|
3735
|
+
throw new Pe(`Intl.PluralRules is not available in this environment.
|
|
3771
3736
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3772
|
-
`,
|
|
3773
|
-
var m = r.getPluralRules(t, { type: l.pluralType }).select(
|
|
3774
|
-
|
|
3737
|
+
`, ee.MISSING_INTL_API, o);
|
|
3738
|
+
var m = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3739
|
+
H = l.options[m] || l.options.other;
|
|
3775
3740
|
}
|
|
3776
|
-
if (!
|
|
3777
|
-
throw new
|
|
3778
|
-
a.push.apply(a, Se(
|
|
3741
|
+
if (!H)
|
|
3742
|
+
throw new xt(l.value, c, Object.keys(l.options), o);
|
|
3743
|
+
a.push.apply(a, Se(H.value, t, r, n, i, c - (l.offset || 0)));
|
|
3779
3744
|
continue;
|
|
3780
3745
|
}
|
|
3781
3746
|
}
|
|
3782
|
-
return
|
|
3747
|
+
return Yn(a);
|
|
3783
3748
|
}
|
|
3784
|
-
function
|
|
3785
|
-
return t ?
|
|
3786
|
-
return r[n] =
|
|
3749
|
+
function ei(e, t) {
|
|
3750
|
+
return t ? _(_(_({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3751
|
+
return r[n] = _(_({}, e[n]), t[n] || {}), r;
|
|
3787
3752
|
}, {})) : e;
|
|
3788
3753
|
}
|
|
3789
|
-
function
|
|
3754
|
+
function ti(e, t) {
|
|
3790
3755
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3791
|
-
return r[n] =
|
|
3792
|
-
},
|
|
3756
|
+
return r[n] = ei(e[n], t[n]), r;
|
|
3757
|
+
}, _({}, e)) : e;
|
|
3793
3758
|
}
|
|
3794
|
-
function
|
|
3759
|
+
function Re(e) {
|
|
3795
3760
|
return {
|
|
3796
3761
|
create: function() {
|
|
3797
3762
|
return {
|
|
@@ -3805,39 +3770,39 @@ function Ge(e) {
|
|
|
3805
3770
|
}
|
|
3806
3771
|
};
|
|
3807
3772
|
}
|
|
3808
|
-
function
|
|
3773
|
+
function ri(e) {
|
|
3809
3774
|
return e === void 0 && (e = {
|
|
3810
3775
|
number: {},
|
|
3811
3776
|
dateTime: {},
|
|
3812
3777
|
pluralRules: {}
|
|
3813
3778
|
}), {
|
|
3814
|
-
getNumberFormat:
|
|
3779
|
+
getNumberFormat: Me(function() {
|
|
3815
3780
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3816
3781
|
r[n] = arguments[n];
|
|
3817
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3782
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, J([void 0], r, !1)))();
|
|
3818
3783
|
}, {
|
|
3819
|
-
cache:
|
|
3820
|
-
strategy:
|
|
3784
|
+
cache: Re(e.number),
|
|
3785
|
+
strategy: Ne.variadic
|
|
3821
3786
|
}),
|
|
3822
|
-
getDateTimeFormat:
|
|
3787
|
+
getDateTimeFormat: Me(function() {
|
|
3823
3788
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3824
3789
|
r[n] = arguments[n];
|
|
3825
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3790
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, J([void 0], r, !1)))();
|
|
3826
3791
|
}, {
|
|
3827
|
-
cache:
|
|
3828
|
-
strategy:
|
|
3792
|
+
cache: Re(e.dateTime),
|
|
3793
|
+
strategy: Ne.variadic
|
|
3829
3794
|
}),
|
|
3830
|
-
getPluralRules:
|
|
3795
|
+
getPluralRules: Me(function() {
|
|
3831
3796
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3832
3797
|
r[n] = arguments[n];
|
|
3833
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3798
|
+
return new ((t = Intl.PluralRules).bind.apply(t, J([void 0], r, !1)))();
|
|
3834
3799
|
}, {
|
|
3835
|
-
cache:
|
|
3836
|
-
strategy:
|
|
3800
|
+
cache: Re(e.pluralRules),
|
|
3801
|
+
strategy: Ne.variadic
|
|
3837
3802
|
})
|
|
3838
3803
|
};
|
|
3839
3804
|
}
|
|
3840
|
-
var
|
|
3805
|
+
var nr = (
|
|
3841
3806
|
/** @class */
|
|
3842
3807
|
function() {
|
|
3843
3808
|
function e(t, r, n, i) {
|
|
@@ -3851,8 +3816,8 @@ var ar = (
|
|
|
3851
3816
|
var u = s.formatToParts(h);
|
|
3852
3817
|
if (u.length === 1)
|
|
3853
3818
|
return u[0].value;
|
|
3854
|
-
var l = u.reduce(function(
|
|
3855
|
-
return !
|
|
3819
|
+
var l = u.reduce(function(f, c) {
|
|
3820
|
+
return !f.length || c.type !== A.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3856
3821
|
}, []);
|
|
3857
3822
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3858
3823
|
}, this.formatToParts = function(h) {
|
|
@@ -3869,13 +3834,13 @@ var ar = (
|
|
|
3869
3834
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3870
3835
|
var o = i || {};
|
|
3871
3836
|
o.formatters;
|
|
3872
|
-
var a =
|
|
3873
|
-
this.ast = e.__parse(t,
|
|
3837
|
+
var a = Mr(o, ["formatters"]);
|
|
3838
|
+
this.ast = e.__parse(t, _(_({}, a), { locale: this.resolvedLocale }));
|
|
3874
3839
|
} else
|
|
3875
3840
|
this.ast = t;
|
|
3876
3841
|
if (!Array.isArray(this.ast))
|
|
3877
3842
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3878
|
-
this.formats =
|
|
3843
|
+
this.formats = ti(e.formats, n), this.formatters = i && i.formatters || ri(this.formatterCache);
|
|
3879
3844
|
}
|
|
3880
3845
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3881
3846
|
get: function() {
|
|
@@ -3888,7 +3853,7 @@ var ar = (
|
|
|
3888
3853
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3889
3854
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3890
3855
|
}
|
|
3891
|
-
}, e.__parse =
|
|
3856
|
+
}, e.__parse = Qn, e.formats = {
|
|
3892
3857
|
number: {
|
|
3893
3858
|
integer: {
|
|
3894
3859
|
maximumFractionDigits: 0
|
|
@@ -3949,7 +3914,7 @@ var ar = (
|
|
|
3949
3914
|
}, e;
|
|
3950
3915
|
}()
|
|
3951
3916
|
);
|
|
3952
|
-
function
|
|
3917
|
+
function ni(e, t) {
|
|
3953
3918
|
if (t == null)
|
|
3954
3919
|
return;
|
|
3955
3920
|
if (t in e)
|
|
@@ -3970,101 +3935,101 @@ function ai(e, t) {
|
|
|
3970
3935
|
n = void 0;
|
|
3971
3936
|
return n;
|
|
3972
3937
|
}
|
|
3973
|
-
const F = {},
|
|
3938
|
+
const F = {}, ii = (e, t, r) => r && (t in F || (F[t] = {}), e in F[t] || (F[t][e] = r), r), ir = (e, t) => {
|
|
3974
3939
|
if (t == null)
|
|
3975
3940
|
return;
|
|
3976
3941
|
if (t in F && e in F[t])
|
|
3977
3942
|
return F[t][e];
|
|
3978
|
-
const r =
|
|
3943
|
+
const r = pe(t);
|
|
3979
3944
|
for (let n = 0; n < r.length; n++) {
|
|
3980
|
-
const i = r[n], s =
|
|
3945
|
+
const i = r[n], s = oi(i, e);
|
|
3981
3946
|
if (s)
|
|
3982
|
-
return
|
|
3947
|
+
return ii(e, t, s);
|
|
3983
3948
|
}
|
|
3984
3949
|
};
|
|
3985
|
-
let
|
|
3986
|
-
const
|
|
3987
|
-
function
|
|
3988
|
-
return
|
|
3950
|
+
let rt;
|
|
3951
|
+
const de = Oe({});
|
|
3952
|
+
function si(e) {
|
|
3953
|
+
return rt[e] || null;
|
|
3989
3954
|
}
|
|
3990
|
-
function
|
|
3991
|
-
return e in
|
|
3955
|
+
function sr(e) {
|
|
3956
|
+
return e in rt;
|
|
3992
3957
|
}
|
|
3993
|
-
function
|
|
3994
|
-
if (!
|
|
3958
|
+
function oi(e, t) {
|
|
3959
|
+
if (!sr(e))
|
|
3995
3960
|
return null;
|
|
3996
|
-
const r =
|
|
3997
|
-
return
|
|
3961
|
+
const r = si(e);
|
|
3962
|
+
return ni(r, t);
|
|
3998
3963
|
}
|
|
3999
|
-
function
|
|
3964
|
+
function ai(e) {
|
|
4000
3965
|
if (e == null)
|
|
4001
3966
|
return;
|
|
4002
|
-
const t =
|
|
3967
|
+
const t = pe(e);
|
|
4003
3968
|
for (let r = 0; r < t.length; r++) {
|
|
4004
3969
|
const n = t[r];
|
|
4005
|
-
if (
|
|
3970
|
+
if (sr(n))
|
|
4006
3971
|
return n;
|
|
4007
3972
|
}
|
|
4008
3973
|
}
|
|
4009
|
-
function
|
|
4010
|
-
delete F[e],
|
|
3974
|
+
function or(e, ...t) {
|
|
3975
|
+
delete F[e], de.update((r) => (r[e] = cn.all([r[e] || {}, ...t]), r));
|
|
4011
3976
|
}
|
|
4012
|
-
|
|
4013
|
-
[
|
|
3977
|
+
ie(
|
|
3978
|
+
[de],
|
|
4014
3979
|
([e]) => Object.keys(e)
|
|
4015
3980
|
);
|
|
4016
|
-
|
|
4017
|
-
const
|
|
4018
|
-
function
|
|
4019
|
-
|
|
3981
|
+
de.subscribe((e) => rt = e);
|
|
3982
|
+
const Te = {};
|
|
3983
|
+
function ui(e, t) {
|
|
3984
|
+
Te[e].delete(t), Te[e].size === 0 && delete Te[e];
|
|
4020
3985
|
}
|
|
4021
|
-
function
|
|
4022
|
-
return
|
|
3986
|
+
function ar(e) {
|
|
3987
|
+
return Te[e];
|
|
4023
3988
|
}
|
|
4024
|
-
function
|
|
4025
|
-
return
|
|
4026
|
-
const r =
|
|
3989
|
+
function hi(e) {
|
|
3990
|
+
return pe(e).map((t) => {
|
|
3991
|
+
const r = ar(t);
|
|
4027
3992
|
return [t, r ? [...r] : []];
|
|
4028
3993
|
}).filter(([, t]) => t.length > 0);
|
|
4029
3994
|
}
|
|
4030
3995
|
function He(e) {
|
|
4031
|
-
return e == null ? !1 :
|
|
3996
|
+
return e == null ? !1 : pe(e).some(
|
|
4032
3997
|
(t) => {
|
|
4033
3998
|
var r;
|
|
4034
|
-
return (r =
|
|
3999
|
+
return (r = ar(t)) == null ? void 0 : r.size;
|
|
4035
4000
|
}
|
|
4036
4001
|
);
|
|
4037
4002
|
}
|
|
4038
|
-
function
|
|
4003
|
+
function li(e, t) {
|
|
4039
4004
|
return Promise.all(
|
|
4040
|
-
t.map((n) => (
|
|
4041
|
-
).then((n) =>
|
|
4005
|
+
t.map((n) => (ui(e, n), n().then((i) => i.default || i)))
|
|
4006
|
+
).then((n) => or(e, ...n));
|
|
4042
4007
|
}
|
|
4043
|
-
const
|
|
4044
|
-
function
|
|
4008
|
+
const ae = {};
|
|
4009
|
+
function ur(e) {
|
|
4045
4010
|
if (!He(e))
|
|
4046
|
-
return e in
|
|
4047
|
-
const t =
|
|
4048
|
-
return
|
|
4011
|
+
return e in ae ? ae[e] : Promise.resolve();
|
|
4012
|
+
const t = hi(e);
|
|
4013
|
+
return ae[e] = Promise.all(
|
|
4049
4014
|
t.map(
|
|
4050
|
-
([r, n]) =>
|
|
4015
|
+
([r, n]) => li(r, n)
|
|
4051
4016
|
)
|
|
4052
4017
|
).then(() => {
|
|
4053
4018
|
if (He(e))
|
|
4054
|
-
return
|
|
4055
|
-
delete
|
|
4056
|
-
}),
|
|
4019
|
+
return ur(e);
|
|
4020
|
+
delete ae[e];
|
|
4021
|
+
}), ae[e];
|
|
4057
4022
|
}
|
|
4058
|
-
var
|
|
4023
|
+
var St = Object.getOwnPropertySymbols, fi = Object.prototype.hasOwnProperty, ci = Object.prototype.propertyIsEnumerable, di = (e, t) => {
|
|
4059
4024
|
var r = {};
|
|
4060
4025
|
for (var n in e)
|
|
4061
|
-
|
|
4062
|
-
if (e != null &&
|
|
4063
|
-
for (var n of
|
|
4064
|
-
t.indexOf(n) < 0 &&
|
|
4026
|
+
fi.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4027
|
+
if (e != null && St)
|
|
4028
|
+
for (var n of St(e))
|
|
4029
|
+
t.indexOf(n) < 0 && ci.call(e, n) && (r[n] = e[n]);
|
|
4065
4030
|
return r;
|
|
4066
4031
|
};
|
|
4067
|
-
const
|
|
4032
|
+
const pi = {
|
|
4068
4033
|
number: {
|
|
4069
4034
|
scientific: { notation: "scientific" },
|
|
4070
4035
|
engineering: { notation: "engineering" },
|
|
@@ -4094,159 +4059,159 @@ const gi = {
|
|
|
4094
4059
|
}
|
|
4095
4060
|
}
|
|
4096
4061
|
};
|
|
4097
|
-
function
|
|
4062
|
+
function mi({ locale: e, id: t }) {
|
|
4098
4063
|
console.warn(
|
|
4099
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
4064
|
+
`[svelte-i18n] The message "${t}" was not found in "${pe(
|
|
4100
4065
|
e
|
|
4101
4066
|
).join('", "')}".${He(j()) ? `
|
|
4102
4067
|
|
|
4103
4068
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
4104
4069
|
);
|
|
4105
4070
|
}
|
|
4106
|
-
const
|
|
4071
|
+
const bi = {
|
|
4107
4072
|
fallbackLocale: null,
|
|
4108
4073
|
loadingDelay: 200,
|
|
4109
|
-
formats:
|
|
4074
|
+
formats: pi,
|
|
4110
4075
|
warnOnMissingMessages: !0,
|
|
4111
4076
|
handleMissingMessage: void 0,
|
|
4112
4077
|
ignoreTag: !0
|
|
4113
|
-
},
|
|
4114
|
-
function
|
|
4115
|
-
return
|
|
4078
|
+
}, ue = bi;
|
|
4079
|
+
function te() {
|
|
4080
|
+
return ue;
|
|
4116
4081
|
}
|
|
4117
|
-
function
|
|
4118
|
-
const t = e, { formats: r } = t, n =
|
|
4082
|
+
function yi(e) {
|
|
4083
|
+
const t = e, { formats: r } = t, n = di(t, ["formats"]);
|
|
4119
4084
|
let i = e.fallbackLocale;
|
|
4120
4085
|
if (e.initialLocale)
|
|
4121
4086
|
try {
|
|
4122
|
-
|
|
4087
|
+
nr.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
4123
4088
|
} catch {
|
|
4124
4089
|
console.warn(
|
|
4125
4090
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
4126
4091
|
);
|
|
4127
4092
|
}
|
|
4128
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
4093
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = mi : console.warn(
|
|
4129
4094
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
4130
|
-
)), Object.assign(
|
|
4131
|
-
}
|
|
4132
|
-
const
|
|
4133
|
-
var
|
|
4134
|
-
for (var r in t
|
|
4135
|
-
|
|
4136
|
-
if (
|
|
4137
|
-
for (var r of
|
|
4138
|
-
|
|
4095
|
+
)), Object.assign(ue, n, { initialLocale: i }), r && ("number" in r && Object.assign(ue.formats.number, r.number), "date" in r && Object.assign(ue.formats.date, r.date), "time" in r && Object.assign(ue.formats.time, r.time)), V.set(i);
|
|
4096
|
+
}
|
|
4097
|
+
const Ue = Oe(!1);
|
|
4098
|
+
var gi = Object.defineProperty, _i = Object.defineProperties, vi = Object.getOwnPropertyDescriptors, Tt = Object.getOwnPropertySymbols, Ei = Object.prototype.hasOwnProperty, xi = Object.prototype.propertyIsEnumerable, Ht = (e, t, r) => t in e ? gi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Si = (e, t) => {
|
|
4099
|
+
for (var r in t)
|
|
4100
|
+
Ei.call(t, r) && Ht(e, r, t[r]);
|
|
4101
|
+
if (Tt)
|
|
4102
|
+
for (var r of Tt(t))
|
|
4103
|
+
xi.call(t, r) && Ht(e, r, t[r]);
|
|
4139
4104
|
return e;
|
|
4140
|
-
},
|
|
4141
|
-
let
|
|
4142
|
-
const
|
|
4143
|
-
function
|
|
4105
|
+
}, Ti = (e, t) => _i(e, vi(t));
|
|
4106
|
+
let Ke;
|
|
4107
|
+
const we = Oe(null);
|
|
4108
|
+
function wt(e) {
|
|
4144
4109
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4145
4110
|
}
|
|
4146
|
-
function
|
|
4147
|
-
const r =
|
|
4148
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4111
|
+
function pe(e, t = te().fallbackLocale) {
|
|
4112
|
+
const r = wt(e);
|
|
4113
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...wt(t)])] : r;
|
|
4149
4114
|
}
|
|
4150
4115
|
function j() {
|
|
4151
|
-
return
|
|
4116
|
+
return Ke ?? void 0;
|
|
4152
4117
|
}
|
|
4153
|
-
|
|
4154
|
-
|
|
4118
|
+
we.subscribe((e) => {
|
|
4119
|
+
Ke = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4155
4120
|
});
|
|
4156
|
-
const
|
|
4157
|
-
if (e &&
|
|
4158
|
-
const { loadingDelay: t } =
|
|
4121
|
+
const Hi = (e) => {
|
|
4122
|
+
if (e && ai(e) && He(e)) {
|
|
4123
|
+
const { loadingDelay: t } = te();
|
|
4159
4124
|
let r;
|
|
4160
4125
|
return typeof window < "u" && j() != null && t ? r = window.setTimeout(
|
|
4161
|
-
() =>
|
|
4126
|
+
() => Ue.set(!0),
|
|
4162
4127
|
t
|
|
4163
|
-
) :
|
|
4164
|
-
|
|
4128
|
+
) : Ue.set(!0), ur(e).then(() => {
|
|
4129
|
+
we.set(e);
|
|
4165
4130
|
}).finally(() => {
|
|
4166
|
-
clearTimeout(r),
|
|
4131
|
+
clearTimeout(r), Ue.set(!1);
|
|
4167
4132
|
});
|
|
4168
4133
|
}
|
|
4169
|
-
return
|
|
4170
|
-
}, V =
|
|
4171
|
-
set:
|
|
4172
|
-
}),
|
|
4134
|
+
return we.set(e);
|
|
4135
|
+
}, V = Ti(Si({}, we), {
|
|
4136
|
+
set: Hi
|
|
4137
|
+
}), Ce = (e) => {
|
|
4173
4138
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4174
4139
|
return (n) => {
|
|
4175
4140
|
const i = JSON.stringify(n);
|
|
4176
4141
|
return i in t ? t[i] : t[i] = e(n);
|
|
4177
4142
|
};
|
|
4178
4143
|
};
|
|
4179
|
-
var
|
|
4144
|
+
var wi = Object.defineProperty, Be = Object.getOwnPropertySymbols, hr = Object.prototype.hasOwnProperty, lr = Object.prototype.propertyIsEnumerable, Bt = (e, t, r) => t in e ? wi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, nt = (e, t) => {
|
|
4180
4145
|
for (var r in t || (t = {}))
|
|
4181
|
-
|
|
4182
|
-
if (
|
|
4183
|
-
for (var r of
|
|
4184
|
-
|
|
4146
|
+
hr.call(t, r) && Bt(e, r, t[r]);
|
|
4147
|
+
if (Be)
|
|
4148
|
+
for (var r of Be(t))
|
|
4149
|
+
lr.call(t, r) && Bt(e, r, t[r]);
|
|
4185
4150
|
return e;
|
|
4186
|
-
},
|
|
4151
|
+
}, se = (e, t) => {
|
|
4187
4152
|
var r = {};
|
|
4188
4153
|
for (var n in e)
|
|
4189
|
-
|
|
4190
|
-
if (e != null &&
|
|
4191
|
-
for (var n of
|
|
4192
|
-
t.indexOf(n) < 0 &&
|
|
4154
|
+
hr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4155
|
+
if (e != null && Be)
|
|
4156
|
+
for (var n of Be(e))
|
|
4157
|
+
t.indexOf(n) < 0 && lr.call(e, n) && (r[n] = e[n]);
|
|
4193
4158
|
return r;
|
|
4194
4159
|
};
|
|
4195
4160
|
const ce = (e, t) => {
|
|
4196
|
-
const { formats: r } =
|
|
4161
|
+
const { formats: r } = te();
|
|
4197
4162
|
if (e in r && t in r[e])
|
|
4198
4163
|
return r[e][t];
|
|
4199
4164
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4200
|
-
},
|
|
4165
|
+
}, Bi = Ce(
|
|
4201
4166
|
(e) => {
|
|
4202
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4167
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
4203
4168
|
if (r == null)
|
|
4204
4169
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4205
4170
|
return n && (i = ce("number", n)), new Intl.NumberFormat(r, i);
|
|
4206
4171
|
}
|
|
4207
|
-
),
|
|
4172
|
+
), Ai = Ce(
|
|
4208
4173
|
(e) => {
|
|
4209
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4174
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
4210
4175
|
if (r == null)
|
|
4211
4176
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4212
4177
|
return n ? i = ce("date", n) : Object.keys(i).length === 0 && (i = ce("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4213
4178
|
}
|
|
4214
|
-
),
|
|
4179
|
+
), Oi = Ce(
|
|
4215
4180
|
(e) => {
|
|
4216
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4181
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
4217
4182
|
if (r == null)
|
|
4218
4183
|
throw new Error(
|
|
4219
4184
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4220
4185
|
);
|
|
4221
4186
|
return n ? i = ce("time", n) : Object.keys(i).length === 0 && (i = ce("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4222
4187
|
}
|
|
4223
|
-
),
|
|
4188
|
+
), Pi = (e = {}) => {
|
|
4224
4189
|
var t = e, {
|
|
4225
4190
|
locale: r = j()
|
|
4226
|
-
} = t, n =
|
|
4191
|
+
} = t, n = se(t, [
|
|
4227
4192
|
"locale"
|
|
4228
4193
|
]);
|
|
4229
|
-
return
|
|
4230
|
-
},
|
|
4194
|
+
return Bi(nt({ locale: r }, n));
|
|
4195
|
+
}, Ci = (e = {}) => {
|
|
4231
4196
|
var t = e, {
|
|
4232
4197
|
locale: r = j()
|
|
4233
|
-
} = t, n =
|
|
4198
|
+
} = t, n = se(t, [
|
|
4234
4199
|
"locale"
|
|
4235
4200
|
]);
|
|
4236
|
-
return
|
|
4237
|
-
},
|
|
4201
|
+
return Ai(nt({ locale: r }, n));
|
|
4202
|
+
}, Ii = (e = {}) => {
|
|
4238
4203
|
var t = e, {
|
|
4239
4204
|
locale: r = j()
|
|
4240
|
-
} = t, n =
|
|
4205
|
+
} = t, n = se(t, [
|
|
4241
4206
|
"locale"
|
|
4242
4207
|
]);
|
|
4243
|
-
return
|
|
4244
|
-
},
|
|
4208
|
+
return Oi(nt({ locale: r }, n));
|
|
4209
|
+
}, Li = Ce(
|
|
4245
4210
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4246
|
-
(e, t = j()) => new
|
|
4247
|
-
ignoreTag:
|
|
4211
|
+
(e, t = j()) => new nr(e, t, te().formats, {
|
|
4212
|
+
ignoreTag: te().ignoreTag
|
|
4248
4213
|
})
|
|
4249
|
-
),
|
|
4214
|
+
), Mi = (e, t = {}) => {
|
|
4250
4215
|
var r, n, i, s;
|
|
4251
4216
|
let o = t;
|
|
4252
4217
|
typeof e == "object" && (o = e, e = o.id);
|
|
@@ -4259,39 +4224,39 @@ const ce = (e, t) => {
|
|
|
4259
4224
|
throw new Error(
|
|
4260
4225
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4261
4226
|
);
|
|
4262
|
-
let l =
|
|
4227
|
+
let l = ir(e, h);
|
|
4263
4228
|
if (!l)
|
|
4264
|
-
l = (s = (i = (n = (r =
|
|
4229
|
+
l = (s = (i = (n = (r = te()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
4265
4230
|
else if (typeof l != "string")
|
|
4266
4231
|
return console.warn(
|
|
4267
4232
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
4268
4233
|
), l;
|
|
4269
4234
|
if (!a)
|
|
4270
4235
|
return l;
|
|
4271
|
-
let
|
|
4236
|
+
let f = l;
|
|
4272
4237
|
try {
|
|
4273
|
-
|
|
4274
|
-
} catch (
|
|
4275
|
-
|
|
4238
|
+
f = Li(l, h).format(a);
|
|
4239
|
+
} catch (c) {
|
|
4240
|
+
c instanceof Error && console.warn(
|
|
4276
4241
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4277
|
-
|
|
4242
|
+
c.message
|
|
4278
4243
|
);
|
|
4279
4244
|
}
|
|
4280
|
-
return
|
|
4281
|
-
},
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
window.emWidgets = { topic:
|
|
4287
|
-
const
|
|
4288
|
-
function
|
|
4245
|
+
return f;
|
|
4246
|
+
}, Ni = (e, t) => Ii(t).format(e), $i = (e, t) => Ci(t).format(e), Ri = (e, t) => Pi(t).format(e), Ui = (e, t = j()) => ir(e, t), Di = ie([V, de], () => Mi);
|
|
4247
|
+
ie([V], () => Ni);
|
|
4248
|
+
ie([V], () => $i);
|
|
4249
|
+
ie([V], () => Ri);
|
|
4250
|
+
ie([V, de], () => Ui);
|
|
4251
|
+
window.emWidgets = { topic: Zr };
|
|
4252
|
+
const Gi = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
4253
|
+
function Fi(e, t) {
|
|
4289
4254
|
if (e) {
|
|
4290
4255
|
const r = document.createElement("style");
|
|
4291
4256
|
r.innerHTML = t, e.appendChild(r);
|
|
4292
4257
|
}
|
|
4293
4258
|
}
|
|
4294
|
-
function
|
|
4259
|
+
function ji(e, t) {
|
|
4295
4260
|
const r = new URL(t);
|
|
4296
4261
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4297
4262
|
const i = document.createElement("style");
|
|
@@ -4300,7 +4265,7 @@ function Wi(e, t) {
|
|
|
4300
4265
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4301
4266
|
});
|
|
4302
4267
|
}
|
|
4303
|
-
function
|
|
4268
|
+
function ki(e, t, r) {
|
|
4304
4269
|
if (window.emMessageBus) {
|
|
4305
4270
|
const n = document.createElement("style");
|
|
4306
4271
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4308,8 +4273,8 @@ function zi(e, t, r) {
|
|
|
4308
4273
|
});
|
|
4309
4274
|
}
|
|
4310
4275
|
}
|
|
4311
|
-
var x = /* @__PURE__ */ ((e) => (e.MysteryChests = "MysteryChests", e.FlipCoin = "FlipCoin", e.LuckyWheels = "LuckyWheels", e.Dices = "Dices", e))(x || {}),
|
|
4312
|
-
const
|
|
4276
|
+
var x = /* @__PURE__ */ ((e) => (e.MysteryChests = "MysteryChests", e.FlipCoin = "FlipCoin", e.LuckyWheels = "LuckyWheels", e.Dices = "Dices", e))(x || {}), fr = /* @__PURE__ */ ((e) => (e.Showed = "Showed", e.Hiden = "Hiden", e))(fr || {});
|
|
4277
|
+
const At = {
|
|
4313
4278
|
en: {
|
|
4314
4279
|
mysteryChest: "Mystery Chest",
|
|
4315
4280
|
luckyWheel: "LuckyWheel",
|
|
@@ -4317,25 +4282,25 @@ const It = {
|
|
|
4317
4282
|
flipCoin: "Flip Coin"
|
|
4318
4283
|
}
|
|
4319
4284
|
};
|
|
4320
|
-
function
|
|
4321
|
-
|
|
4285
|
+
function Ot(e, t) {
|
|
4286
|
+
or(e, t);
|
|
4322
4287
|
}
|
|
4323
|
-
function
|
|
4324
|
-
|
|
4288
|
+
function Vi(e) {
|
|
4289
|
+
yi({
|
|
4325
4290
|
fallbackLocale: "en"
|
|
4326
4291
|
}), V.set(e);
|
|
4327
4292
|
}
|
|
4328
|
-
function
|
|
4329
|
-
|
|
4293
|
+
function Xi(e) {
|
|
4294
|
+
pr(e, "svelte-dp9rm6", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.container{padding:0 16.5%}.container.mobile{padding:0 28px}.container.mobile .header{padding:16px 0 13px}.container.mobile .header .slider__container{gap:16px;justify-content:space-between;padding:0 24px}.container.mobile .header .slider__container__tab{font-size:var(--emw--font-size-2x-small, 10px)}.header{background:linear-gradient(89.94deg, var(--emw--color-background, #003e5c) 0.05%, var(--emw--color-background-secondary, #113b21) 87.69%);padding:23px 0 17px;border-radius:12px}.header .slider__container{display:flex;position:relative;gap:60px;justify-content:center}.header .slider__tab{padding:8px 0 13px;font-weight:var(--emw--font-weight-bold, 700);color:var(--emw--color-gray-300, #729787);cursor:pointer;text-align:center;background:transparent;border:none;font-size:var(--emw--font-size-x-small, 12px);line-height:15px}.header .slider__tab.active{color:var(--emw--color-typography, #fff);border-bottom:2px solid var(--emw--button-border-color, #00b74f);margin-bottom:-2px}");
|
|
4330
4295
|
}
|
|
4331
|
-
function
|
|
4296
|
+
function Wi(e) {
|
|
4332
4297
|
let t;
|
|
4333
4298
|
return {
|
|
4334
4299
|
c() {
|
|
4335
4300
|
t = C("div"), t.textContent = "Comming soon";
|
|
4336
4301
|
},
|
|
4337
4302
|
m(r, n) {
|
|
4338
|
-
|
|
4303
|
+
ne(r, t, n);
|
|
4339
4304
|
},
|
|
4340
4305
|
p: I,
|
|
4341
4306
|
d(r) {
|
|
@@ -4343,14 +4308,14 @@ function qi(e) {
|
|
|
4343
4308
|
}
|
|
4344
4309
|
};
|
|
4345
4310
|
}
|
|
4346
|
-
function
|
|
4311
|
+
function zi(e) {
|
|
4347
4312
|
let t;
|
|
4348
4313
|
return {
|
|
4349
4314
|
c() {
|
|
4350
4315
|
t = C("div"), t.textContent = "Comming soon";
|
|
4351
4316
|
},
|
|
4352
4317
|
m(r, n) {
|
|
4353
|
-
|
|
4318
|
+
ne(r, t, n);
|
|
4354
4319
|
},
|
|
4355
4320
|
p: I,
|
|
4356
4321
|
d(r) {
|
|
@@ -4358,14 +4323,14 @@ function Ji(e) {
|
|
|
4358
4323
|
}
|
|
4359
4324
|
};
|
|
4360
4325
|
}
|
|
4361
|
-
function
|
|
4326
|
+
function Zi(e) {
|
|
4362
4327
|
let t;
|
|
4363
4328
|
return {
|
|
4364
4329
|
c() {
|
|
4365
4330
|
t = C("div"), t.textContent = "Comming soon";
|
|
4366
4331
|
},
|
|
4367
4332
|
m(r, n) {
|
|
4368
|
-
|
|
4333
|
+
ne(r, t, n);
|
|
4369
4334
|
},
|
|
4370
4335
|
p: I,
|
|
4371
4336
|
d(r) {
|
|
@@ -4373,7 +4338,7 @@ function Yi(e) {
|
|
|
4373
4338
|
}
|
|
4374
4339
|
};
|
|
4375
4340
|
}
|
|
4376
|
-
function
|
|
4341
|
+
function Qi(e) {
|
|
4377
4342
|
let t;
|
|
4378
4343
|
return {
|
|
4379
4344
|
c() {
|
|
@@ -4397,7 +4362,7 @@ function Ki(e) {
|
|
|
4397
4362
|
"clientstylingurl",
|
|
4398
4363
|
/*clientstylingurl*/
|
|
4399
4364
|
e[0]
|
|
4400
|
-
), $(t, "gameoverlay",
|
|
4365
|
+
), $(t, "gameoverlay", fr.Hiden), $(t, "openedbydefauls", !0), $(
|
|
4401
4366
|
t,
|
|
4402
4367
|
"clientstyling",
|
|
4403
4368
|
/*mysteryChestDrawerStyles*/
|
|
@@ -4405,7 +4370,7 @@ function Ki(e) {
|
|
|
4405
4370
|
);
|
|
4406
4371
|
},
|
|
4407
4372
|
m(r, n) {
|
|
4408
|
-
|
|
4373
|
+
ne(r, t, n);
|
|
4409
4374
|
},
|
|
4410
4375
|
p(r, n) {
|
|
4411
4376
|
n & /*endpoint*/
|
|
@@ -4439,70 +4404,70 @@ function Ki(e) {
|
|
|
4439
4404
|
}
|
|
4440
4405
|
};
|
|
4441
4406
|
}
|
|
4442
|
-
function
|
|
4407
|
+
function qi(e) {
|
|
4443
4408
|
let t, r, n, i, s, o = (
|
|
4444
4409
|
/*$_*/
|
|
4445
4410
|
e[7]("mysteryChest") + ""
|
|
4446
4411
|
), a, h, u, l = (
|
|
4447
4412
|
/*$_*/
|
|
4448
4413
|
e[7]("flipCoin") + ""
|
|
4449
|
-
),
|
|
4414
|
+
), f, c, d, y = (
|
|
4450
4415
|
/*$_*/
|
|
4451
4416
|
e[7]("luckyWheel") + ""
|
|
4452
|
-
), g,
|
|
4417
|
+
), g, O, T, L = (
|
|
4453
4418
|
/*$_*/
|
|
4454
4419
|
e[7]("dices") + ""
|
|
4455
|
-
),
|
|
4456
|
-
function
|
|
4420
|
+
), H, m, S, N, oe;
|
|
4421
|
+
function it(E, M) {
|
|
4457
4422
|
if (
|
|
4458
4423
|
/*activeTab*/
|
|
4459
4424
|
E[6] === x.MysteryChests
|
|
4460
4425
|
)
|
|
4461
|
-
return
|
|
4426
|
+
return Qi;
|
|
4462
4427
|
if (
|
|
4463
4428
|
/*activeTab*/
|
|
4464
4429
|
E[6] === x.LuckyWheels
|
|
4465
4430
|
)
|
|
4466
|
-
return
|
|
4431
|
+
return Zi;
|
|
4467
4432
|
if (
|
|
4468
4433
|
/*activeTab*/
|
|
4469
4434
|
E[6] === x.FlipCoin
|
|
4470
4435
|
)
|
|
4471
|
-
return
|
|
4436
|
+
return zi;
|
|
4472
4437
|
if (
|
|
4473
4438
|
/*activeTab*/
|
|
4474
4439
|
E[6] === x.Dices
|
|
4475
4440
|
)
|
|
4476
|
-
return
|
|
4441
|
+
return Wi;
|
|
4477
4442
|
}
|
|
4478
|
-
let X =
|
|
4443
|
+
let X = it(e), P = X && X(e);
|
|
4479
4444
|
return {
|
|
4480
4445
|
c() {
|
|
4481
|
-
t = C("div"), r = C("div"), n = C("div"), i = C("div"), s = C("button"), a = Q(o), h = be(), u = C("button"),
|
|
4446
|
+
t = C("div"), r = C("div"), n = C("div"), i = C("div"), s = C("button"), a = Q(o), h = be(), u = C("button"), f = Q(l), c = be(), d = C("button"), g = Q(y), O = be(), T = C("button"), H = Q(L), m = be(), P && P.c(), B(s, "data-index", x.MysteryChests), B(s, "class", "slider__tab"), G(
|
|
4482
4447
|
s,
|
|
4483
4448
|
"active",
|
|
4484
4449
|
/*activeTab*/
|
|
4485
4450
|
e[6] === x.MysteryChests
|
|
4486
|
-
),
|
|
4451
|
+
), B(u, "data-index", x.FlipCoin), B(u, "class", "slider__tab"), G(
|
|
4487
4452
|
u,
|
|
4488
4453
|
"active",
|
|
4489
4454
|
/*activeTab*/
|
|
4490
4455
|
e[6] === x.FlipCoin
|
|
4491
|
-
),
|
|
4492
|
-
|
|
4456
|
+
), B(d, "data-index", x.LuckyWheels), B(d, "class", "slider__tab"), G(
|
|
4457
|
+
d,
|
|
4493
4458
|
"active",
|
|
4494
4459
|
/*activeTab*/
|
|
4495
4460
|
e[6] === x.LuckyWheels
|
|
4496
|
-
),
|
|
4497
|
-
|
|
4461
|
+
), B(T, "data-index", x.Dices), B(T, "class", "slider__tab"), G(
|
|
4462
|
+
T,
|
|
4498
4463
|
"active",
|
|
4499
4464
|
/*activeTab*/
|
|
4500
4465
|
e[6] === x.Dices
|
|
4501
|
-
),
|
|
4466
|
+
), B(i, "class", "slider__container"), B(n, "class", "slider"), B(r, "class", "header"), B(t, "class", S = "container " + /*mobileView*/
|
|
4502
4467
|
(e[5] ? "mobile" : ""));
|
|
4503
4468
|
},
|
|
4504
4469
|
m(E, M) {
|
|
4505
|
-
|
|
4470
|
+
ne(E, t, M), w(t, r), w(r, n), w(n, i), w(i, s), w(s, a), w(i, h), w(i, u), w(u, f), w(i, c), w(i, d), w(d, g), w(i, O), w(i, T), w(T, H), w(t, m), P && P.m(t, null), e[13](t), N || (oe = [
|
|
4506
4471
|
ye(
|
|
4507
4472
|
s,
|
|
4508
4473
|
"click",
|
|
@@ -4516,13 +4481,13 @@ function es(e) {
|
|
|
4516
4481
|
e[9]
|
|
4517
4482
|
),
|
|
4518
4483
|
ye(
|
|
4519
|
-
|
|
4484
|
+
d,
|
|
4520
4485
|
"click",
|
|
4521
4486
|
/*handleTabChange*/
|
|
4522
4487
|
e[9]
|
|
4523
4488
|
),
|
|
4524
4489
|
ye(
|
|
4525
|
-
|
|
4490
|
+
T,
|
|
4526
4491
|
"click",
|
|
4527
4492
|
/*handleTabChange*/
|
|
4528
4493
|
e[9]
|
|
@@ -4540,7 +4505,7 @@ function es(e) {
|
|
|
4540
4505
|
E[6] === x.MysteryChests
|
|
4541
4506
|
), M & /*$_*/
|
|
4542
4507
|
128 && l !== (l = /*$_*/
|
|
4543
|
-
E[7]("flipCoin") + "") && ge(
|
|
4508
|
+
E[7]("flipCoin") + "") && ge(f, l), M & /*activeTab*/
|
|
4544
4509
|
64 && G(
|
|
4545
4510
|
u,
|
|
4546
4511
|
"active",
|
|
@@ -4550,87 +4515,87 @@ function es(e) {
|
|
|
4550
4515
|
128 && y !== (y = /*$_*/
|
|
4551
4516
|
E[7]("luckyWheel") + "") && ge(g, y), M & /*activeTab*/
|
|
4552
4517
|
64 && G(
|
|
4553
|
-
|
|
4518
|
+
d,
|
|
4554
4519
|
"active",
|
|
4555
4520
|
/*activeTab*/
|
|
4556
4521
|
E[6] === x.LuckyWheels
|
|
4557
4522
|
), M & /*$_*/
|
|
4558
4523
|
128 && L !== (L = /*$_*/
|
|
4559
|
-
E[7]("dices") + "") && ge(
|
|
4524
|
+
E[7]("dices") + "") && ge(H, L), M & /*activeTab*/
|
|
4560
4525
|
64 && G(
|
|
4561
|
-
|
|
4526
|
+
T,
|
|
4562
4527
|
"active",
|
|
4563
4528
|
/*activeTab*/
|
|
4564
4529
|
E[6] === x.Dices
|
|
4565
|
-
), X === (X =
|
|
4530
|
+
), X === (X = it(E)) && P ? P.p(E, M) : (P && P.d(1), P = X && X(E), P && (P.c(), P.m(t, null))), M & /*mobileView*/
|
|
4566
4531
|
32 && S !== (S = "container " + /*mobileView*/
|
|
4567
|
-
(E[5] ? "mobile" : "")) &&
|
|
4532
|
+
(E[5] ? "mobile" : "")) && B(t, "class", S);
|
|
4568
4533
|
},
|
|
4569
4534
|
i: I,
|
|
4570
4535
|
o: I,
|
|
4571
4536
|
d(E) {
|
|
4572
|
-
E && k(t), P && P.d(), e[13](null), N = !1,
|
|
4537
|
+
E && k(t), P && P.d(), e[13](null), N = !1, re(oe);
|
|
4573
4538
|
}
|
|
4574
4539
|
};
|
|
4575
4540
|
}
|
|
4576
|
-
function
|
|
4541
|
+
function Ji(e, t, r) {
|
|
4577
4542
|
let n;
|
|
4578
|
-
|
|
4579
|
-
let { clientstyling: i = "" } = t, { clientstylingurl: s = "" } = t, { translationurl: o = "" } = t, { mbsource: a } = t, { endpoint: h = "" } = t, { session: u = "" } = t, { lang: l = "en" } = t,
|
|
4580
|
-
const g = ".overlay { display: none; } .drawer { position: unset; transform: none; background: transparent; width: initial; height: initial; padding: 0; border-radius: 0; } .chests-header,.close,.chest-header__title { display: none } .mobile.drawer { padding: 0 } .back { height: 40px; width: 40px;} .chest-header {padding: 20px 0 0}",
|
|
4543
|
+
dr(e, Di, (m) => r(7, n = m));
|
|
4544
|
+
let { clientstyling: i = "" } = t, { clientstylingurl: s = "" } = t, { translationurl: o = "" } = t, { mbsource: a } = t, { endpoint: h = "" } = t, { session: u = "" } = t, { lang: l = "en" } = t, f = !0, c = window.navigator.userAgent, d, y = x.MysteryChests;
|
|
4545
|
+
const g = ".overlay { display: none; } .drawer { position: unset; transform: none; background: transparent; width: initial; height: initial; padding: 0; border-radius: 0; } .chests-header,.close,.chest-header__title { display: none } .mobile.drawer { padding: 0 } .back { height: 40px; width: 40px;} .chest-header {padding: 20px 0 0}", O = async (m) => {
|
|
4581
4546
|
r(6, y = m.target.getAttribute("data-index")), y === x.MysteryChests && window.postMessage({ type: "OpenMysteryChestDrawer" });
|
|
4582
|
-
},
|
|
4583
|
-
|
|
4547
|
+
}, T = () => {
|
|
4548
|
+
Vi(l);
|
|
4584
4549
|
}, L = () => {
|
|
4585
4550
|
fetch(o).then((S) => S.json()).then((S) => {
|
|
4586
4551
|
Object.keys(S).forEach((N) => {
|
|
4587
|
-
|
|
4552
|
+
Ot(N, S[N]);
|
|
4588
4553
|
});
|
|
4589
4554
|
});
|
|
4590
4555
|
};
|
|
4591
|
-
Object.keys(
|
|
4592
|
-
|
|
4593
|
-
}),
|
|
4556
|
+
Object.keys(At).forEach((m) => {
|
|
4557
|
+
Ot(m, At[m]);
|
|
4558
|
+
}), vr(() => (r(5, f = Gi(c)), () => {
|
|
4594
4559
|
}));
|
|
4595
|
-
function
|
|
4596
|
-
|
|
4597
|
-
|
|
4560
|
+
function H(m) {
|
|
4561
|
+
De[m ? "unshift" : "push"](() => {
|
|
4562
|
+
d = m, r(4, d);
|
|
4598
4563
|
});
|
|
4599
4564
|
}
|
|
4600
4565
|
return e.$$set = (m) => {
|
|
4601
4566
|
"clientstyling" in m && r(10, i = m.clientstyling), "clientstylingurl" in m && r(0, s = m.clientstylingurl), "translationurl" in m && r(11, o = m.translationurl), "mbsource" in m && r(12, a = m.mbsource), "endpoint" in m && r(1, h = m.endpoint), "session" in m && r(2, u = m.session), "lang" in m && r(3, l = m.lang);
|
|
4602
4567
|
}, e.$$.update = () => {
|
|
4603
4568
|
e.$$.dirty & /*lang*/
|
|
4604
|
-
8 && l &&
|
|
4569
|
+
8 && l && T(), e.$$.dirty & /*translationurl*/
|
|
4605
4570
|
2048 && o && L(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4606
|
-
1040 && i &&
|
|
4607
|
-
17 && s &&
|
|
4608
|
-
4112 && a &&
|
|
4571
|
+
1040 && i && d && Fi(d, i), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4572
|
+
17 && s && d && ji(d, s), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4573
|
+
4112 && a && d && ki(d, `${a}.Style`);
|
|
4609
4574
|
}, [
|
|
4610
4575
|
s,
|
|
4611
4576
|
h,
|
|
4612
4577
|
u,
|
|
4613
4578
|
l,
|
|
4614
|
-
|
|
4615
|
-
|
|
4579
|
+
d,
|
|
4580
|
+
f,
|
|
4616
4581
|
y,
|
|
4617
4582
|
n,
|
|
4618
4583
|
g,
|
|
4619
|
-
|
|
4584
|
+
O,
|
|
4620
4585
|
i,
|
|
4621
4586
|
o,
|
|
4622
4587
|
a,
|
|
4623
|
-
|
|
4588
|
+
H
|
|
4624
4589
|
];
|
|
4625
4590
|
}
|
|
4626
|
-
class
|
|
4591
|
+
class Yi extends Ir {
|
|
4627
4592
|
constructor(t) {
|
|
4628
|
-
super(),
|
|
4593
|
+
super(), Pr(
|
|
4629
4594
|
this,
|
|
4630
4595
|
t,
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4596
|
+
Ji,
|
|
4597
|
+
qi,
|
|
4598
|
+
Ct,
|
|
4634
4599
|
{
|
|
4635
4600
|
clientstyling: 10,
|
|
4636
4601
|
clientstylingurl: 0,
|
|
@@ -4640,86 +4605,86 @@ class rs extends $r {
|
|
|
4640
4605
|
session: 2,
|
|
4641
4606
|
lang: 3
|
|
4642
4607
|
},
|
|
4643
|
-
|
|
4608
|
+
Xi
|
|
4644
4609
|
);
|
|
4645
4610
|
}
|
|
4646
4611
|
get clientstyling() {
|
|
4647
4612
|
return this.$$.ctx[10];
|
|
4648
4613
|
}
|
|
4649
4614
|
set clientstyling(t) {
|
|
4650
|
-
this.$$set({ clientstyling: t }),
|
|
4615
|
+
this.$$set({ clientstyling: t }), R();
|
|
4651
4616
|
}
|
|
4652
4617
|
get clientstylingurl() {
|
|
4653
4618
|
return this.$$.ctx[0];
|
|
4654
4619
|
}
|
|
4655
4620
|
set clientstylingurl(t) {
|
|
4656
|
-
this.$$set({ clientstylingurl: t }),
|
|
4621
|
+
this.$$set({ clientstylingurl: t }), R();
|
|
4657
4622
|
}
|
|
4658
4623
|
get translationurl() {
|
|
4659
4624
|
return this.$$.ctx[11];
|
|
4660
4625
|
}
|
|
4661
4626
|
set translationurl(t) {
|
|
4662
|
-
this.$$set({ translationurl: t }),
|
|
4627
|
+
this.$$set({ translationurl: t }), R();
|
|
4663
4628
|
}
|
|
4664
4629
|
get mbsource() {
|
|
4665
4630
|
return this.$$.ctx[12];
|
|
4666
4631
|
}
|
|
4667
4632
|
set mbsource(t) {
|
|
4668
|
-
this.$$set({ mbsource: t }),
|
|
4633
|
+
this.$$set({ mbsource: t }), R();
|
|
4669
4634
|
}
|
|
4670
4635
|
get endpoint() {
|
|
4671
4636
|
return this.$$.ctx[1];
|
|
4672
4637
|
}
|
|
4673
4638
|
set endpoint(t) {
|
|
4674
|
-
this.$$set({ endpoint: t }),
|
|
4639
|
+
this.$$set({ endpoint: t }), R();
|
|
4675
4640
|
}
|
|
4676
4641
|
get session() {
|
|
4677
4642
|
return this.$$.ctx[2];
|
|
4678
4643
|
}
|
|
4679
4644
|
set session(t) {
|
|
4680
|
-
this.$$set({ session: t }),
|
|
4645
|
+
this.$$set({ session: t }), R();
|
|
4681
4646
|
}
|
|
4682
4647
|
get lang() {
|
|
4683
4648
|
return this.$$.ctx[3];
|
|
4684
4649
|
}
|
|
4685
4650
|
set lang(t) {
|
|
4686
|
-
this.$$set({ lang: t }),
|
|
4651
|
+
this.$$set({ lang: t }), R();
|
|
4687
4652
|
}
|
|
4688
4653
|
}
|
|
4689
|
-
|
|
4654
|
+
Cr(Yi, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {}, endpoint: {}, session: {}, lang: {} }, [], [], !0);
|
|
4690
4655
|
export {
|
|
4691
4656
|
V as $,
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4657
|
+
rs as A,
|
|
4658
|
+
es as B,
|
|
4659
|
+
Fi as C,
|
|
4660
|
+
ji as D,
|
|
4661
|
+
ki as E,
|
|
4662
|
+
Yi as F,
|
|
4663
|
+
Ir as S,
|
|
4664
|
+
pr as a,
|
|
4665
|
+
be as b,
|
|
4666
|
+
Cr as c,
|
|
4667
|
+
ne as d,
|
|
4668
|
+
ts as e,
|
|
4669
|
+
R as f,
|
|
4670
|
+
k as g,
|
|
4671
|
+
Gi as h,
|
|
4672
|
+
Pr as i,
|
|
4673
|
+
C as j,
|
|
4674
|
+
$ as k,
|
|
4675
|
+
B as l,
|
|
4676
|
+
Ki as m,
|
|
4712
4677
|
I as n,
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4678
|
+
vr as o,
|
|
4679
|
+
w as p,
|
|
4680
|
+
ye as q,
|
|
4681
|
+
or as r,
|
|
4682
|
+
Ct as s,
|
|
4683
|
+
Q as t,
|
|
4719
4684
|
ge as u,
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4685
|
+
re as v,
|
|
4686
|
+
dr as w,
|
|
4687
|
+
De as x,
|
|
4688
|
+
Di as y,
|
|
4724
4689
|
G as z
|
|
4725
4690
|
};
|