@everymatrix/casino-favorites-section-nd 1.76.3 → 1.76.5
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/{CasinoFavoritesSectionNd-BVvzvJak.js → CasinoFavoritesSectionNd-BGaHqgJV.js} +1133 -1167
- package/components/{CasinoFavoritesSectionNd-CGcJ_apo.js → CasinoFavoritesSectionNd-DP90l8My.js} +1164 -1198
- package/components/CasinoFavoritesSectionNd-SxS-TVLa.cjs +3 -0
- package/components/{CasinoFilter-CnzSbUjR.js → CasinoFilter-7GK-PIS_.js} +246 -182
- package/components/CasinoFilter-CS4LKPNZ.cjs +16 -0
- package/components/{CasinoFilter-Mo0DGiXB.js → CasinoFilter-CV0GUzMH.js} +321 -255
- package/components/CasinoGameThumbnailNd-4SfllNkL.cjs +30 -0
- package/components/{CasinoGameThumbnailNd-DryeKkt-.js → CasinoGameThumbnailNd-BwAkH8IC.js} +669 -671
- package/components/{CasinoGameThumbnailNd-B9YJb0KW.js → CasinoGameThumbnailNd-CPTpptVI.js} +670 -672
- package/components/{CasinoGamesCategorySectionNd-ZG4nL3sa.js → CasinoGamesCategorySectionNd-CHQjp29a.js} +146 -146
- package/components/{CasinoGamesCategorySectionNd-Dus8zQe_.js → CasinoGamesCategorySectionNd-Ci-51lkl.js} +178 -178
- package/components/CasinoGamesCategorySectionNd-uMEy3Jt0.cjs +1 -0
- package/components/{CasinoSort-DilAQMXd.js → CasinoSort-CfbE40Of.js} +22 -22
- package/components/{CasinoSort-DZPR79IZ.cjs → CasinoSort-CncXFLE_.cjs} +1 -1
- package/components/{CasinoSort-C78rQ370.js → CasinoSort-yYjyVGum.js} +22 -22
- package/es2015/casino-favorites-section-nd.cjs +1 -1
- package/es2015/casino-favorites-section-nd.js +1 -1
- package/esnext/casino-favorites-section-nd.js +1 -1
- package/package.json +1 -1
- package/stencil/{index-97d17652-C7V2DWFg.js → index-97d17652--F7PvMq9.js} +176 -176
- package/stencil/index-97d17652-BhLhk_xz.cjs +1 -0
- package/stencil/{index-97d17652-DIpvPU9H.js → index-97d17652-CCFHkzJw.js} +187 -187
- package/stencil/{ui-image-DJWD4G-S.cjs → ui-image-BaHsVAxH.cjs} +1 -1
- package/stencil/{ui-image-D3_FGUyo.js → ui-image-C7s6Uvn5.js} +1 -1
- package/stencil/{ui-image-CYuYAlOX.js → ui-image-CHeV8e9p.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-B-k0kWgx.js → ui-image-b7b48fe5-ByRuJtdE.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-D8-wEkoZ.js → ui-image-b7b48fe5-D6iig_uN.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-yceZ9WkN.cjs → ui-image-b7b48fe5-DG83WzAo.cjs} +1 -1
- package/stencil/{ui-image_2-z5LhXZY2.js → ui-image_2-Bm97-wkj.js} +2 -2
- package/stencil/{ui-image_2-Ha_4GYwN.cjs → ui-image_2-DdFjzzNO.cjs} +1 -1
- package/stencil/{ui-image_2-CzFe50WB.js → ui-image_2-qO3reSlr.js} +2 -2
- package/components/CasinoFavoritesSectionNd-CjRy-511.cjs +0 -16
- package/components/CasinoFilter-doymrGOj.cjs +0 -3
- package/components/CasinoGameThumbnailNd-BFcuBKHJ.cjs +0 -30
- package/components/CasinoGamesCategorySectionNd-CdVycZ7E.cjs +0 -1
- package/stencil/index-97d17652-BgKdDb-e.cjs +0 -1
package/components/{CasinoFavoritesSectionNd-BVvzvJak.js → CasinoFavoritesSectionNd-BGaHqgJV.js}
RENAMED
|
@@ -3,48 +3,48 @@ function I() {
|
|
|
3
3
|
function nt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Fe() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function W(e) {
|
|
10
10
|
e.forEach(nt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function $e(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function it(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
let
|
|
19
|
-
function
|
|
20
|
-
return e === t ? !0 : (
|
|
18
|
+
let ie;
|
|
19
|
+
function Jn(e, t) {
|
|
20
|
+
return e === t ? !0 : (ie || (ie = document.createElement("a")), ie.href = t, e === ie.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function Mt(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function st(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
|
-
for (const
|
|
28
|
-
|
|
27
|
+
for (const n of t)
|
|
28
|
+
n(void 0);
|
|
29
29
|
return I;
|
|
30
30
|
}
|
|
31
|
-
const
|
|
32
|
-
return
|
|
31
|
+
const r = e.subscribe(...t);
|
|
32
|
+
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
e.$$.on_destroy.push(
|
|
34
|
+
function Yn(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(st(t, r));
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function Rt(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const
|
|
42
|
-
if (!
|
|
43
|
-
const i =
|
|
44
|
-
i.id = t, i.textContent =
|
|
40
|
+
function $t(e, t, r) {
|
|
41
|
+
const n = Ut(e);
|
|
42
|
+
if (!n.getElementById(t)) {
|
|
43
|
+
const i = re("style");
|
|
44
|
+
i.id = t, i.textContent = r, Dt(n, i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Ut(e) {
|
|
48
48
|
if (!e)
|
|
49
49
|
return document;
|
|
50
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -54,65 +54,65 @@ function $t(e) {
|
|
|
54
54
|
t
|
|
55
55
|
) : e.ownerDocument;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
58
|
-
return
|
|
57
|
+
function Dt(e, t) {
|
|
58
|
+
return Rt(
|
|
59
59
|
/** @type {Document} */
|
|
60
60
|
e.head || e,
|
|
61
61
|
t
|
|
62
62
|
), t.sheet;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
65
|
-
e.insertBefore(t,
|
|
64
|
+
function ce(e, t, r) {
|
|
65
|
+
e.insertBefore(t, r || null);
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function te(e) {
|
|
68
68
|
e.parentNode && e.parentNode.removeChild(e);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
for (let
|
|
72
|
-
e[
|
|
70
|
+
function Kn(e, t) {
|
|
71
|
+
for (let r = 0; r < e.length; r += 1)
|
|
72
|
+
e[r] && e[r].d(t);
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function re(e) {
|
|
75
75
|
return document.createElement(e);
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function Gt(e) {
|
|
78
78
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function at(e) {
|
|
81
81
|
return document.createTextNode(e);
|
|
82
82
|
}
|
|
83
|
-
function Kr() {
|
|
84
|
-
return st(" ");
|
|
85
|
-
}
|
|
86
83
|
function ei() {
|
|
87
|
-
return
|
|
84
|
+
return at(" ");
|
|
88
85
|
}
|
|
89
|
-
function ti(
|
|
90
|
-
return
|
|
86
|
+
function ti() {
|
|
87
|
+
return at("");
|
|
91
88
|
}
|
|
92
|
-
function
|
|
93
|
-
|
|
89
|
+
function ri(e, t, r, n) {
|
|
90
|
+
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
94
91
|
}
|
|
95
|
-
function
|
|
96
|
-
|
|
97
|
-
r in e ? e[r] = typeof e[r] == "boolean" && n === "" ? !0 : n : t in e ? e[t] = typeof e[t] == "boolean" && n === "" ? !0 : n : Re(e, t, n);
|
|
92
|
+
function Ue(e, t, r) {
|
|
93
|
+
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
98
94
|
}
|
|
99
|
-
function
|
|
95
|
+
function g(e, t, r) {
|
|
96
|
+
const n = t.toLowerCase();
|
|
97
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : Ue(e, t, r);
|
|
98
|
+
}
|
|
99
|
+
function Ft(e) {
|
|
100
100
|
return Array.from(e.childNodes);
|
|
101
101
|
}
|
|
102
102
|
function ni(e, t) {
|
|
103
103
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
104
104
|
t);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function ii(e, t) {
|
|
107
107
|
e.value = t ?? "";
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
|
|
109
|
+
function si(e, t, r, n) {
|
|
110
|
+
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
e.classList.toggle(t, !!
|
|
112
|
+
function ai(e, t, r) {
|
|
113
|
+
e.classList.toggle(t, !!r);
|
|
114
114
|
}
|
|
115
|
-
class
|
|
115
|
+
class oi {
|
|
116
116
|
/**
|
|
117
117
|
* @private
|
|
118
118
|
* @default false
|
|
@@ -142,17 +142,17 @@ class ai {
|
|
|
142
142
|
* @param {HTMLElement | SVGElement} anchor
|
|
143
143
|
* @returns {void}
|
|
144
144
|
*/
|
|
145
|
-
m(t,
|
|
146
|
-
this.e || (this.is_svg ? this.e =
|
|
145
|
+
m(t, r, n = null) {
|
|
146
|
+
this.e || (this.is_svg ? this.e = Gt(
|
|
147
147
|
/** @type {keyof SVGElementTagNameMap} */
|
|
148
|
-
|
|
149
|
-
) : this.e =
|
|
148
|
+
r.nodeName
|
|
149
|
+
) : this.e = re(
|
|
150
150
|
/** @type {keyof HTMLElementTagNameMap} */
|
|
151
|
-
|
|
152
|
-
), this.t =
|
|
151
|
+
r.nodeType === 11 ? "TEMPLATE" : r.nodeName
|
|
152
|
+
), this.t = r.tagName !== "TEMPLATE" ? r : (
|
|
153
153
|
/** @type {HTMLTemplateElement} */
|
|
154
|
-
|
|
155
|
-
), this.c(t)), this.i(
|
|
154
|
+
r.content
|
|
155
|
+
), this.c(t)), this.i(n);
|
|
156
156
|
}
|
|
157
157
|
/**
|
|
158
158
|
* @param {string} html
|
|
@@ -166,8 +166,8 @@ class ai {
|
|
|
166
166
|
/**
|
|
167
167
|
* @returns {void} */
|
|
168
168
|
i(t) {
|
|
169
|
-
for (let
|
|
170
|
-
|
|
169
|
+
for (let r = 0; r < this.n.length; r += 1)
|
|
170
|
+
ce(this.t, this.n[r], t);
|
|
171
171
|
}
|
|
172
172
|
/**
|
|
173
173
|
* @param {string} html
|
|
@@ -179,146 +179,146 @@ class ai {
|
|
|
179
179
|
/**
|
|
180
180
|
* @returns {void} */
|
|
181
181
|
d() {
|
|
182
|
-
this.n.forEach(
|
|
182
|
+
this.n.forEach(te);
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function jt(e) {
|
|
186
186
|
const t = {};
|
|
187
187
|
return e.childNodes.forEach(
|
|
188
188
|
/** @param {Element} node */
|
|
189
|
-
(
|
|
190
|
-
t[
|
|
189
|
+
(r) => {
|
|
190
|
+
t[r.slot || "default"] = !0;
|
|
191
191
|
}
|
|
192
192
|
), t;
|
|
193
193
|
}
|
|
194
|
-
let
|
|
195
|
-
function
|
|
196
|
-
|
|
194
|
+
let Y;
|
|
195
|
+
function J(e) {
|
|
196
|
+
Y = e;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
199
|
-
if (!
|
|
198
|
+
function ot() {
|
|
199
|
+
if (!Y)
|
|
200
200
|
throw new Error("Function called outside component initialization");
|
|
201
|
-
return
|
|
201
|
+
return Y;
|
|
202
202
|
}
|
|
203
|
-
function
|
|
204
|
-
|
|
203
|
+
function kt(e) {
|
|
204
|
+
ot().$$.on_mount.push(e);
|
|
205
205
|
}
|
|
206
|
-
function
|
|
207
|
-
|
|
206
|
+
function ui(e) {
|
|
207
|
+
ot().$$.on_destroy.push(e);
|
|
208
208
|
}
|
|
209
|
-
const
|
|
210
|
-
let
|
|
211
|
-
const
|
|
212
|
-
let
|
|
213
|
-
function
|
|
214
|
-
|
|
209
|
+
const G = [], Se = [];
|
|
210
|
+
let F = [];
|
|
211
|
+
const je = [], ut = /* @__PURE__ */ Promise.resolve();
|
|
212
|
+
let Be = !1;
|
|
213
|
+
function ht() {
|
|
214
|
+
Be || (Be = !0, ut.then(H));
|
|
215
215
|
}
|
|
216
|
-
function
|
|
217
|
-
return
|
|
216
|
+
function hi() {
|
|
217
|
+
return ht(), ut;
|
|
218
218
|
}
|
|
219
|
-
function
|
|
220
|
-
|
|
219
|
+
function Ae(e) {
|
|
220
|
+
F.push(e);
|
|
221
221
|
}
|
|
222
|
-
const
|
|
223
|
-
let
|
|
222
|
+
const ye = /* @__PURE__ */ new Set();
|
|
223
|
+
let U = 0;
|
|
224
224
|
function H() {
|
|
225
|
-
if (
|
|
225
|
+
if (U !== 0)
|
|
226
226
|
return;
|
|
227
|
-
const e =
|
|
227
|
+
const e = Y;
|
|
228
228
|
do {
|
|
229
229
|
try {
|
|
230
|
-
for (;
|
|
231
|
-
const t =
|
|
232
|
-
|
|
230
|
+
for (; U < G.length; ) {
|
|
231
|
+
const t = G[U];
|
|
232
|
+
U++, J(t), Vt(t.$$);
|
|
233
233
|
}
|
|
234
234
|
} catch (t) {
|
|
235
|
-
throw
|
|
235
|
+
throw G.length = 0, U = 0, t;
|
|
236
236
|
}
|
|
237
|
-
for (
|
|
238
|
-
|
|
239
|
-
for (let t = 0; t <
|
|
240
|
-
const
|
|
241
|
-
|
|
237
|
+
for (J(null), G.length = 0, U = 0; Se.length; )
|
|
238
|
+
Se.pop()();
|
|
239
|
+
for (let t = 0; t < F.length; t += 1) {
|
|
240
|
+
const r = F[t];
|
|
241
|
+
ye.has(r) || (ye.add(r), r());
|
|
242
242
|
}
|
|
243
|
-
|
|
244
|
-
} while (
|
|
245
|
-
for (;
|
|
246
|
-
|
|
247
|
-
|
|
243
|
+
F.length = 0;
|
|
244
|
+
} while (G.length);
|
|
245
|
+
for (; je.length; )
|
|
246
|
+
je.pop()();
|
|
247
|
+
Be = !1, ye.clear(), J(e);
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function Vt(e) {
|
|
250
250
|
if (e.fragment !== null) {
|
|
251
|
-
e.update(),
|
|
251
|
+
e.update(), W(e.before_update);
|
|
252
252
|
const t = e.dirty;
|
|
253
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
253
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ae);
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
|
-
function
|
|
257
|
-
const t = [],
|
|
258
|
-
|
|
256
|
+
function Xt(e) {
|
|
257
|
+
const t = [], r = [];
|
|
258
|
+
F.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), F = t;
|
|
259
259
|
}
|
|
260
|
-
const
|
|
261
|
-
function
|
|
262
|
-
e && e.i && (
|
|
260
|
+
const Wt = /* @__PURE__ */ new Set();
|
|
261
|
+
function lt(e, t) {
|
|
262
|
+
e && e.i && (Wt.delete(e), e.i(t));
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function li(e) {
|
|
265
265
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
266
266
|
}
|
|
267
|
-
function
|
|
267
|
+
function fi(e, t) {
|
|
268
268
|
e.d(1), t.delete(e.key);
|
|
269
269
|
}
|
|
270
|
-
function
|
|
270
|
+
function ci(e, t, r, n, i, s, u, o, l, a, h, c) {
|
|
271
271
|
let f = e.length, b = s.length, y = f;
|
|
272
|
-
const
|
|
272
|
+
const x = {};
|
|
273
273
|
for (; y--; )
|
|
274
|
-
|
|
274
|
+
x[e[y].key] = y;
|
|
275
275
|
const S = [], N = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map(), B = [];
|
|
276
276
|
for (y = b; y--; ) {
|
|
277
|
-
const
|
|
278
|
-
let L =
|
|
279
|
-
L ? B.push(() => L.p(
|
|
277
|
+
const v = c(i, s, y), m = r(v);
|
|
278
|
+
let L = u.get(m);
|
|
279
|
+
L ? B.push(() => L.p(v, t)) : (L = a(m, v), L.c()), N.set(m, S[y] = L), m in x && w.set(m, Math.abs(y - x[m]));
|
|
280
280
|
}
|
|
281
281
|
const O = /* @__PURE__ */ new Set(), P = /* @__PURE__ */ new Set();
|
|
282
|
-
function T(
|
|
283
|
-
|
|
282
|
+
function T(v) {
|
|
283
|
+
lt(v, 1), v.m(o, h), u.set(v.key, v), h = v.first, b--;
|
|
284
284
|
}
|
|
285
285
|
for (; f && b; ) {
|
|
286
|
-
const
|
|
287
|
-
|
|
286
|
+
const v = S[b - 1], m = e[f - 1], L = v.key, ne = m.key;
|
|
287
|
+
v === m ? (h = v.first, f--, b--) : N.has(ne) ? !u.has(L) || O.has(L) ? T(v) : P.has(ne) ? f-- : w.get(L) > w.get(ne) ? (P.add(L), T(v)) : (O.add(ne), f--) : (l(m, u), f--);
|
|
288
288
|
}
|
|
289
289
|
for (; f--; ) {
|
|
290
|
-
const
|
|
291
|
-
N.has(
|
|
290
|
+
const v = e[f];
|
|
291
|
+
N.has(v.key) || l(v, u);
|
|
292
292
|
}
|
|
293
293
|
for (; b; )
|
|
294
294
|
T(S[b - 1]);
|
|
295
|
-
return
|
|
296
|
-
}
|
|
297
|
-
function zt(e, t, n) {
|
|
298
|
-
const { fragment: r, after_update: i } = e.$$;
|
|
299
|
-
r && r.m(t, n), Se(() => {
|
|
300
|
-
const s = e.$$.on_mount.map(nt).filter(Me);
|
|
301
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : X(s), e.$$.on_mount = [];
|
|
302
|
-
}), i.forEach(Se);
|
|
295
|
+
return W(B), S;
|
|
303
296
|
}
|
|
304
|
-
function
|
|
305
|
-
const n = e.$$;
|
|
306
|
-
n
|
|
297
|
+
function zt(e, t, r) {
|
|
298
|
+
const { fragment: n, after_update: i } = e.$$;
|
|
299
|
+
n && n.m(t, r), Ae(() => {
|
|
300
|
+
const s = e.$$.on_mount.map(nt).filter($e);
|
|
301
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : W(s), e.$$.on_mount = [];
|
|
302
|
+
}), i.forEach(Ae);
|
|
307
303
|
}
|
|
308
304
|
function Zt(e, t) {
|
|
309
|
-
|
|
305
|
+
const r = e.$$;
|
|
306
|
+
r.fragment !== null && (Xt(r.after_update), W(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
310
307
|
}
|
|
311
|
-
function Qt(e, t
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
308
|
+
function Qt(e, t) {
|
|
309
|
+
e.$$.dirty[0] === -1 && (G.push(e), ht(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
310
|
+
}
|
|
311
|
+
function qt(e, t, r, n, i, s, u = null, o = [-1]) {
|
|
312
|
+
const l = Y;
|
|
313
|
+
J(e);
|
|
314
|
+
const a = e.$$ = {
|
|
315
315
|
fragment: null,
|
|
316
316
|
ctx: [],
|
|
317
317
|
// state
|
|
318
318
|
props: s,
|
|
319
319
|
update: I,
|
|
320
320
|
not_equal: i,
|
|
321
|
-
bound:
|
|
321
|
+
bound: Fe(),
|
|
322
322
|
// lifecycle
|
|
323
323
|
on_mount: [],
|
|
324
324
|
on_destroy: [],
|
|
@@ -327,28 +327,28 @@ function Qt(e, t, n, r, i, s, a = null, o = [-1]) {
|
|
|
327
327
|
after_update: [],
|
|
328
328
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
329
329
|
// everything else
|
|
330
|
-
callbacks:
|
|
330
|
+
callbacks: Fe(),
|
|
331
331
|
dirty: o,
|
|
332
332
|
skip_bound: !1,
|
|
333
333
|
root: t.target || l.$$.root
|
|
334
334
|
};
|
|
335
|
-
|
|
335
|
+
u && u(a.root);
|
|
336
336
|
let h = !1;
|
|
337
|
-
if (
|
|
337
|
+
if (a.ctx = r ? r(e, t.props || {}, (c, f, ...b) => {
|
|
338
338
|
const y = b.length ? b[0] : f;
|
|
339
|
-
return
|
|
340
|
-
}) : [],
|
|
339
|
+
return a.ctx && i(a.ctx[c], a.ctx[c] = y) && (!a.skip_bound && a.bound[c] && a.bound[c](y), h && Qt(e, c)), f;
|
|
340
|
+
}) : [], a.update(), h = !0, W(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
341
341
|
if (t.hydrate) {
|
|
342
|
-
const c =
|
|
343
|
-
|
|
342
|
+
const c = Ft(t.target);
|
|
343
|
+
a.fragment && a.fragment.l(c), c.forEach(te);
|
|
344
344
|
} else
|
|
345
|
-
|
|
346
|
-
t.intro &&
|
|
345
|
+
a.fragment && a.fragment.c();
|
|
346
|
+
t.intro && lt(e.$$.fragment), zt(e, t.target, t.anchor), H();
|
|
347
347
|
}
|
|
348
|
-
|
|
348
|
+
J(l);
|
|
349
349
|
}
|
|
350
|
-
let
|
|
351
|
-
typeof HTMLElement == "function" && (
|
|
350
|
+
let ft;
|
|
351
|
+
typeof HTMLElement == "function" && (ft = class extends HTMLElement {
|
|
352
352
|
/** The Svelte component constructor */
|
|
353
353
|
$$ctor;
|
|
354
354
|
/** Slots */
|
|
@@ -367,20 +367,20 @@ typeof HTMLElement == "function" && (lt = class extends HTMLElement {
|
|
|
367
367
|
$$l = {};
|
|
368
368
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
369
369
|
$$l_u = /* @__PURE__ */ new Map();
|
|
370
|
-
constructor(e, t,
|
|
371
|
-
super(), this.$$ctor = e, this.$$s = t,
|
|
370
|
+
constructor(e, t, r) {
|
|
371
|
+
super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
|
|
372
372
|
}
|
|
373
|
-
addEventListener(e, t,
|
|
373
|
+
addEventListener(e, t, r) {
|
|
374
374
|
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
375
|
-
const
|
|
376
|
-
this.$$l_u.set(t,
|
|
375
|
+
const n = this.$$c.$on(e, t);
|
|
376
|
+
this.$$l_u.set(t, n);
|
|
377
377
|
}
|
|
378
|
-
super.addEventListener(e, t,
|
|
378
|
+
super.addEventListener(e, t, r);
|
|
379
379
|
}
|
|
380
|
-
removeEventListener(e, t,
|
|
381
|
-
if (super.removeEventListener(e, t,
|
|
382
|
-
const
|
|
383
|
-
|
|
380
|
+
removeEventListener(e, t, r) {
|
|
381
|
+
if (super.removeEventListener(e, t, r), this.$$c) {
|
|
382
|
+
const n = this.$$l_u.get(t);
|
|
383
|
+
n && (n(), this.$$l_u.delete(t));
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
386
|
async connectedCallback() {
|
|
@@ -390,29 +390,29 @@ typeof HTMLElement == "function" && (lt = class extends HTMLElement {
|
|
|
390
390
|
let s;
|
|
391
391
|
return {
|
|
392
392
|
c: function() {
|
|
393
|
-
s =
|
|
393
|
+
s = re("slot"), i !== "default" && Ue(s, "name", i);
|
|
394
394
|
},
|
|
395
395
|
/**
|
|
396
396
|
* @param {HTMLElement} target
|
|
397
397
|
* @param {HTMLElement} [anchor]
|
|
398
398
|
*/
|
|
399
|
-
m: function(l,
|
|
400
|
-
|
|
399
|
+
m: function(l, a) {
|
|
400
|
+
ce(l, s, a);
|
|
401
401
|
},
|
|
402
402
|
d: function(l) {
|
|
403
|
-
l &&
|
|
403
|
+
l && te(s);
|
|
404
404
|
}
|
|
405
405
|
};
|
|
406
406
|
};
|
|
407
407
|
};
|
|
408
408
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
409
409
|
return;
|
|
410
|
-
const t = {},
|
|
410
|
+
const t = {}, r = jt(this);
|
|
411
411
|
for (const i of this.$$s)
|
|
412
|
-
i in
|
|
412
|
+
i in r && (t[i] = [e(i)]);
|
|
413
413
|
for (const i of this.attributes) {
|
|
414
414
|
const s = this.$$g_p(i.name);
|
|
415
|
-
s in this.$$d || (this.$$d[s] =
|
|
415
|
+
s in this.$$d || (this.$$d[s] = ae(s, i.value, this.$$p_d, "toProp"));
|
|
416
416
|
}
|
|
417
417
|
for (const i in this.$$p_d)
|
|
418
418
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -426,11 +426,11 @@ typeof HTMLElement == "function" && (lt = class extends HTMLElement {
|
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
428
|
});
|
|
429
|
-
const
|
|
429
|
+
const n = () => {
|
|
430
430
|
this.$$r = !0;
|
|
431
431
|
for (const i in this.$$p_d)
|
|
432
432
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
433
|
-
const s =
|
|
433
|
+
const s = ae(
|
|
434
434
|
i,
|
|
435
435
|
this.$$d[i],
|
|
436
436
|
this.$$p_d,
|
|
@@ -440,19 +440,19 @@ typeof HTMLElement == "function" && (lt = class extends HTMLElement {
|
|
|
440
440
|
}
|
|
441
441
|
this.$$r = !1;
|
|
442
442
|
};
|
|
443
|
-
this.$$c.$$.after_update.push(
|
|
443
|
+
this.$$c.$$.after_update.push(n), n();
|
|
444
444
|
for (const i in this.$$l)
|
|
445
445
|
for (const s of this.$$l[i]) {
|
|
446
|
-
const
|
|
447
|
-
this.$$l_u.set(s,
|
|
446
|
+
const u = this.$$c.$on(i, s);
|
|
447
|
+
this.$$l_u.set(s, u);
|
|
448
448
|
}
|
|
449
449
|
this.$$l = {};
|
|
450
450
|
}
|
|
451
451
|
}
|
|
452
452
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
453
453
|
// and setting attributes through setAttribute etc, this is helpful
|
|
454
|
-
attributeChangedCallback(e, t,
|
|
455
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
454
|
+
attributeChangedCallback(e, t, r) {
|
|
455
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ae(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
456
456
|
}
|
|
457
457
|
disconnectedCallback() {
|
|
458
458
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -465,11 +465,11 @@ typeof HTMLElement == "function" && (lt = class extends HTMLElement {
|
|
|
465
465
|
) || e;
|
|
466
466
|
}
|
|
467
467
|
});
|
|
468
|
-
function
|
|
469
|
-
const i =
|
|
470
|
-
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !
|
|
468
|
+
function ae(e, t, r, n) {
|
|
469
|
+
const i = r[e]?.type;
|
|
470
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
471
471
|
return t;
|
|
472
|
-
if (
|
|
472
|
+
if (n === "toAttribute")
|
|
473
473
|
switch (i) {
|
|
474
474
|
case "Object":
|
|
475
475
|
case "Array":
|
|
@@ -494,10 +494,10 @@ function se(e, t, n, r) {
|
|
|
494
494
|
return t;
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
|
-
function
|
|
498
|
-
let
|
|
497
|
+
function Jt(e, t, r, n, i, s) {
|
|
498
|
+
let u = class extends ft {
|
|
499
499
|
constructor() {
|
|
500
|
-
super(e,
|
|
500
|
+
super(e, r, i), this.$$p_d = t;
|
|
501
501
|
}
|
|
502
502
|
static get observedAttributes() {
|
|
503
503
|
return Object.keys(t).map(
|
|
@@ -506,24 +506,24 @@ function qt(e, t, n, r, i, s) {
|
|
|
506
506
|
}
|
|
507
507
|
};
|
|
508
508
|
return Object.keys(t).forEach((o) => {
|
|
509
|
-
Object.defineProperty(
|
|
509
|
+
Object.defineProperty(u.prototype, o, {
|
|
510
510
|
get() {
|
|
511
511
|
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
512
512
|
},
|
|
513
513
|
set(l) {
|
|
514
|
-
l =
|
|
514
|
+
l = ae(o, l, t), this.$$d[o] = l, this.$$c?.$set({ [o]: l });
|
|
515
515
|
}
|
|
516
516
|
});
|
|
517
|
-
}),
|
|
518
|
-
Object.defineProperty(
|
|
517
|
+
}), n.forEach((o) => {
|
|
518
|
+
Object.defineProperty(u.prototype, o, {
|
|
519
519
|
get() {
|
|
520
520
|
return this.$$c?.[o];
|
|
521
521
|
}
|
|
522
522
|
});
|
|
523
523
|
}), e.element = /** @type {any} */
|
|
524
|
-
|
|
524
|
+
u, u;
|
|
525
525
|
}
|
|
526
|
-
class
|
|
526
|
+
class Yt {
|
|
527
527
|
/**
|
|
528
528
|
* ### PRIVATE API
|
|
529
529
|
*
|
|
@@ -542,7 +542,7 @@ class Jt {
|
|
|
542
542
|
$$set = void 0;
|
|
543
543
|
/** @returns {void} */
|
|
544
544
|
$destroy() {
|
|
545
|
-
|
|
545
|
+
Zt(this, 1), this.$destroy = I;
|
|
546
546
|
}
|
|
547
547
|
/**
|
|
548
548
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -550,13 +550,13 @@ class Jt {
|
|
|
550
550
|
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
551
551
|
* @returns {() => void}
|
|
552
552
|
*/
|
|
553
|
-
$on(t,
|
|
554
|
-
if (
|
|
553
|
+
$on(t, r) {
|
|
554
|
+
if (!$e(r))
|
|
555
555
|
return I;
|
|
556
|
-
const
|
|
557
|
-
return
|
|
558
|
-
const i =
|
|
559
|
-
i !== -1 &&
|
|
556
|
+
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
557
|
+
return n.push(r), () => {
|
|
558
|
+
const i = n.indexOf(r);
|
|
559
|
+
i !== -1 && n.splice(i, 1);
|
|
560
560
|
};
|
|
561
561
|
}
|
|
562
562
|
/**
|
|
@@ -564,270 +564,221 @@ class Jt {
|
|
|
564
564
|
* @returns {void}
|
|
565
565
|
*/
|
|
566
566
|
$set(t) {
|
|
567
|
-
this.$$set && !
|
|
567
|
+
this.$$set && !Mt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
|
-
const
|
|
571
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
572
|
-
const
|
|
573
|
-
function
|
|
570
|
+
const Kt = "4";
|
|
571
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Kt);
|
|
572
|
+
const D = [];
|
|
573
|
+
function er(e, t) {
|
|
574
574
|
return {
|
|
575
|
-
subscribe:
|
|
575
|
+
subscribe: me(e, t).subscribe
|
|
576
576
|
};
|
|
577
577
|
}
|
|
578
|
-
function
|
|
579
|
-
let
|
|
580
|
-
const
|
|
578
|
+
function me(e, t = I) {
|
|
579
|
+
let r;
|
|
580
|
+
const n = /* @__PURE__ */ new Set();
|
|
581
581
|
function i(o) {
|
|
582
|
-
if (
|
|
583
|
-
const l = !
|
|
584
|
-
for (const
|
|
585
|
-
|
|
582
|
+
if (it(e, o) && (e = o, r)) {
|
|
583
|
+
const l = !D.length;
|
|
584
|
+
for (const a of n)
|
|
585
|
+
a[1](), D.push(a, e);
|
|
586
586
|
if (l) {
|
|
587
|
-
for (let
|
|
588
|
-
|
|
589
|
-
|
|
587
|
+
for (let a = 0; a < D.length; a += 2)
|
|
588
|
+
D[a][0](D[a + 1]);
|
|
589
|
+
D.length = 0;
|
|
590
590
|
}
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
593
|
function s(o) {
|
|
594
594
|
i(o(e));
|
|
595
595
|
}
|
|
596
|
-
function
|
|
597
|
-
const
|
|
598
|
-
return
|
|
599
|
-
|
|
596
|
+
function u(o, l = I) {
|
|
597
|
+
const a = [o, l];
|
|
598
|
+
return n.add(a), n.size === 1 && (r = t(i, s) || I), o(e), () => {
|
|
599
|
+
n.delete(a), n.size === 0 && r && (r(), r = null);
|
|
600
600
|
};
|
|
601
601
|
}
|
|
602
|
-
return { set: i, update: s, subscribe:
|
|
602
|
+
return { set: i, update: s, subscribe: u };
|
|
603
603
|
}
|
|
604
|
-
function z(e, t,
|
|
605
|
-
const
|
|
604
|
+
function z(e, t, r) {
|
|
605
|
+
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
606
606
|
if (!i.every(Boolean))
|
|
607
607
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
608
608
|
const s = t.length < 2;
|
|
609
|
-
return
|
|
609
|
+
return er(r, (u, o) => {
|
|
610
610
|
let l = !1;
|
|
611
|
-
const
|
|
611
|
+
const a = [];
|
|
612
612
|
let h = 0, c = I;
|
|
613
613
|
const f = () => {
|
|
614
614
|
if (h)
|
|
615
615
|
return;
|
|
616
616
|
c();
|
|
617
|
-
const y = t(
|
|
618
|
-
s ?
|
|
617
|
+
const y = t(n ? a[0] : a, u, o);
|
|
618
|
+
s ? u(y) : c = $e(y) ? y : I;
|
|
619
619
|
}, b = i.map(
|
|
620
|
-
(y,
|
|
620
|
+
(y, x) => st(
|
|
621
621
|
y,
|
|
622
622
|
(S) => {
|
|
623
|
-
|
|
623
|
+
a[x] = S, h &= ~(1 << x), l && f();
|
|
624
624
|
},
|
|
625
625
|
() => {
|
|
626
|
-
h |= 1 <<
|
|
626
|
+
h |= 1 << x;
|
|
627
627
|
}
|
|
628
628
|
)
|
|
629
629
|
);
|
|
630
630
|
return l = !0, f(), function() {
|
|
631
|
-
|
|
631
|
+
W(b), c(), l = !1;
|
|
632
632
|
};
|
|
633
633
|
});
|
|
634
634
|
}
|
|
635
|
-
function
|
|
636
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
635
|
+
function tr(e) {
|
|
636
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
637
637
|
}
|
|
638
|
-
var
|
|
639
|
-
return
|
|
638
|
+
var rr = function(t) {
|
|
639
|
+
return nr(t) && !ir(t);
|
|
640
640
|
};
|
|
641
|
-
function
|
|
641
|
+
function nr(e) {
|
|
642
642
|
return !!e && typeof e == "object";
|
|
643
643
|
}
|
|
644
|
-
function
|
|
644
|
+
function ir(e) {
|
|
645
645
|
var t = Object.prototype.toString.call(e);
|
|
646
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
646
|
+
return t === "[object RegExp]" || t === "[object Date]" || or(e);
|
|
647
647
|
}
|
|
648
|
-
var
|
|
649
|
-
function
|
|
650
|
-
return e.$$typeof ===
|
|
648
|
+
var sr = typeof Symbol == "function" && Symbol.for, ar = sr ? Symbol.for("react.element") : 60103;
|
|
649
|
+
function or(e) {
|
|
650
|
+
return e.$$typeof === ar;
|
|
651
651
|
}
|
|
652
|
-
function
|
|
652
|
+
function ur(e) {
|
|
653
653
|
return Array.isArray(e) ? [] : {};
|
|
654
654
|
}
|
|
655
|
-
function
|
|
656
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
655
|
+
function K(e, t) {
|
|
656
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? j(ur(e), e, t) : e;
|
|
657
657
|
}
|
|
658
|
-
function
|
|
659
|
-
return e.concat(t).map(function(
|
|
660
|
-
return
|
|
658
|
+
function hr(e, t, r) {
|
|
659
|
+
return e.concat(t).map(function(n) {
|
|
660
|
+
return K(n, r);
|
|
661
661
|
});
|
|
662
662
|
}
|
|
663
|
-
function
|
|
663
|
+
function lr(e, t) {
|
|
664
664
|
if (!t.customMerge)
|
|
665
|
-
return
|
|
666
|
-
var
|
|
667
|
-
return typeof
|
|
665
|
+
return j;
|
|
666
|
+
var r = t.customMerge(e);
|
|
667
|
+
return typeof r == "function" ? r : j;
|
|
668
668
|
}
|
|
669
|
-
function
|
|
669
|
+
function fr(e) {
|
|
670
670
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
671
671
|
return Object.propertyIsEnumerable.call(e, t);
|
|
672
672
|
}) : [];
|
|
673
673
|
}
|
|
674
|
-
function
|
|
675
|
-
return Object.keys(e).concat(
|
|
674
|
+
function ke(e) {
|
|
675
|
+
return Object.keys(e).concat(fr(e));
|
|
676
676
|
}
|
|
677
|
-
function
|
|
677
|
+
function ct(e, t) {
|
|
678
678
|
try {
|
|
679
679
|
return t in e;
|
|
680
680
|
} catch {
|
|
681
681
|
return !1;
|
|
682
682
|
}
|
|
683
683
|
}
|
|
684
|
-
function
|
|
685
|
-
return
|
|
684
|
+
function cr(e, t) {
|
|
685
|
+
return ct(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
686
686
|
}
|
|
687
|
-
function
|
|
688
|
-
var
|
|
689
|
-
return
|
|
690
|
-
|
|
691
|
-
}),
|
|
692
|
-
|
|
693
|
-
}),
|
|
694
|
-
}
|
|
695
|
-
function
|
|
696
|
-
|
|
697
|
-
var
|
|
698
|
-
return s ?
|
|
699
|
-
}
|
|
700
|
-
|
|
687
|
+
function mr(e, t, r) {
|
|
688
|
+
var n = {};
|
|
689
|
+
return r.isMergeableObject(e) && ke(e).forEach(function(i) {
|
|
690
|
+
n[i] = K(e[i], r);
|
|
691
|
+
}), ke(t).forEach(function(i) {
|
|
692
|
+
cr(e, i) || (ct(e, i) && r.isMergeableObject(t[i]) ? n[i] = lr(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
|
|
693
|
+
}), n;
|
|
694
|
+
}
|
|
695
|
+
function j(e, t, r) {
|
|
696
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || hr, r.isMergeableObject = r.isMergeableObject || rr, r.cloneUnlessOtherwiseSpecified = K;
|
|
697
|
+
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
698
|
+
return s ? n ? r.arrayMerge(e, t, r) : mr(e, t, r) : K(t, r);
|
|
699
|
+
}
|
|
700
|
+
j.all = function(t, r) {
|
|
701
701
|
if (!Array.isArray(t))
|
|
702
702
|
throw new Error("first argument should be an array");
|
|
703
|
-
return t.reduce(function(
|
|
704
|
-
return
|
|
703
|
+
return t.reduce(function(n, i) {
|
|
704
|
+
return j(n, i, r);
|
|
705
705
|
}, {});
|
|
706
706
|
};
|
|
707
|
-
var
|
|
708
|
-
const
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
717
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
718
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
719
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
720
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
721
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
722
|
-
***************************************************************************** */
|
|
723
|
-
var Be = function(e, t) {
|
|
724
|
-
return Be = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
725
|
-
n.__proto__ = r;
|
|
726
|
-
} || function(n, r) {
|
|
727
|
-
for (var i in r)
|
|
728
|
-
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
729
|
-
}, Be(e, t);
|
|
707
|
+
var gr = j, dr = gr;
|
|
708
|
+
const br = /* @__PURE__ */ tr(dr);
|
|
709
|
+
var we = function(e, t) {
|
|
710
|
+
return we = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
711
|
+
r.__proto__ = n;
|
|
712
|
+
} || function(r, n) {
|
|
713
|
+
for (var i in n)
|
|
714
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
715
|
+
}, we(e, t);
|
|
730
716
|
};
|
|
731
|
-
function
|
|
717
|
+
function ge(e, t) {
|
|
732
718
|
if (typeof t != "function" && t !== null)
|
|
733
719
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
734
|
-
|
|
735
|
-
function
|
|
720
|
+
we(e, t);
|
|
721
|
+
function r() {
|
|
736
722
|
this.constructor = e;
|
|
737
723
|
}
|
|
738
|
-
e.prototype = t === null ? Object.create(t) : (
|
|
739
|
-
}
|
|
740
|
-
var
|
|
741
|
-
return
|
|
742
|
-
for (var
|
|
743
|
-
|
|
744
|
-
for (var s in
|
|
745
|
-
Object.prototype.hasOwnProperty.call(
|
|
724
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
725
|
+
}
|
|
726
|
+
var C = function() {
|
|
727
|
+
return C = Object.assign || function(t) {
|
|
728
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
729
|
+
r = arguments[n];
|
|
730
|
+
for (var s in r)
|
|
731
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
746
732
|
}
|
|
747
733
|
return t;
|
|
748
|
-
},
|
|
734
|
+
}, C.apply(this, arguments);
|
|
749
735
|
};
|
|
750
|
-
function
|
|
751
|
-
var
|
|
752
|
-
for (var
|
|
753
|
-
Object.prototype.hasOwnProperty.call(e,
|
|
736
|
+
function pr(e, t) {
|
|
737
|
+
var r = {};
|
|
738
|
+
for (var n in e)
|
|
739
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
754
740
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
755
|
-
for (var i = 0,
|
|
756
|
-
t.indexOf(
|
|
757
|
-
return
|
|
758
|
-
}
|
|
759
|
-
function ci(e) {
|
|
760
|
-
var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
|
|
761
|
-
if (n)
|
|
762
|
-
return n.call(e);
|
|
763
|
-
if (e && typeof e.length == "number")
|
|
764
|
-
return {
|
|
765
|
-
next: function() {
|
|
766
|
-
return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e };
|
|
767
|
-
}
|
|
768
|
-
};
|
|
769
|
-
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
770
|
-
}
|
|
771
|
-
function mi(e, t) {
|
|
772
|
-
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
773
|
-
if (!n)
|
|
774
|
-
return e;
|
|
775
|
-
var r = n.call(e), i, s = [], a;
|
|
776
|
-
try {
|
|
777
|
-
for (; (t === void 0 || t-- > 0) && !(i = r.next()).done; )
|
|
778
|
-
s.push(i.value);
|
|
779
|
-
} catch (o) {
|
|
780
|
-
a = { error: o };
|
|
781
|
-
} finally {
|
|
782
|
-
try {
|
|
783
|
-
i && !i.done && (n = r.return) && n.call(r);
|
|
784
|
-
} finally {
|
|
785
|
-
if (a)
|
|
786
|
-
throw a.error;
|
|
787
|
-
}
|
|
788
|
-
}
|
|
789
|
-
return s;
|
|
741
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
742
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
743
|
+
return r;
|
|
790
744
|
}
|
|
791
|
-
function
|
|
792
|
-
if (
|
|
793
|
-
for (var
|
|
794
|
-
(s || !(
|
|
795
|
-
return e.concat(s || t);
|
|
745
|
+
function Ee(e, t, r) {
|
|
746
|
+
if (r || arguments.length === 2)
|
|
747
|
+
for (var n = 0, i = t.length, s; n < i; n++)
|
|
748
|
+
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
749
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
796
750
|
}
|
|
797
|
-
function
|
|
798
|
-
var
|
|
751
|
+
function ve(e, t) {
|
|
752
|
+
var r = t && t.cache ? t.cache : Tr, n = t && t.serializer ? t.serializer : xr, i = t && t.strategy ? t.strategy : vr;
|
|
799
753
|
return i(e, {
|
|
800
|
-
cache:
|
|
801
|
-
serializer:
|
|
754
|
+
cache: r,
|
|
755
|
+
serializer: n
|
|
802
756
|
});
|
|
803
757
|
}
|
|
804
|
-
function
|
|
758
|
+
function yr(e) {
|
|
805
759
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
806
760
|
}
|
|
807
|
-
function
|
|
808
|
-
var i =
|
|
809
|
-
return typeof s > "u" && (s = e.call(this,
|
|
761
|
+
function Er(e, t, r, n) {
|
|
762
|
+
var i = yr(n) ? n : r(n), s = t.get(i);
|
|
763
|
+
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
810
764
|
}
|
|
811
|
-
function mt(e, t,
|
|
812
|
-
var
|
|
813
|
-
return typeof s > "u" && (s = e.apply(this,
|
|
765
|
+
function mt(e, t, r) {
|
|
766
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
767
|
+
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
814
768
|
}
|
|
815
|
-
function
|
|
816
|
-
return
|
|
769
|
+
function gt(e, t, r, n, i) {
|
|
770
|
+
return r.bind(t, e, n, i);
|
|
817
771
|
}
|
|
818
|
-
function
|
|
819
|
-
var
|
|
820
|
-
return
|
|
772
|
+
function vr(e, t) {
|
|
773
|
+
var r = e.length === 1 ? Er : mt;
|
|
774
|
+
return gt(e, this, r, t.cache.create(), t.serializer);
|
|
821
775
|
}
|
|
822
|
-
function
|
|
823
|
-
return
|
|
776
|
+
function _r(e, t) {
|
|
777
|
+
return gt(e, this, mt, t.cache.create(), t.serializer);
|
|
824
778
|
}
|
|
825
|
-
function
|
|
826
|
-
return $e(e, this, ct, t.cache.create(), t.serializer);
|
|
827
|
-
}
|
|
828
|
-
var vn = function() {
|
|
779
|
+
var xr = function() {
|
|
829
780
|
return JSON.stringify(arguments);
|
|
830
|
-
},
|
|
781
|
+
}, Hr = (
|
|
831
782
|
/** @class */
|
|
832
783
|
function() {
|
|
833
784
|
function e() {
|
|
@@ -835,73 +786,82 @@ var vn = function() {
|
|
|
835
786
|
}
|
|
836
787
|
return e.prototype.get = function(t) {
|
|
837
788
|
return this.cache[t];
|
|
838
|
-
}, e.prototype.set = function(t,
|
|
839
|
-
this.cache[t] =
|
|
789
|
+
}, e.prototype.set = function(t, r) {
|
|
790
|
+
this.cache[t] = r;
|
|
840
791
|
}, e;
|
|
841
792
|
}()
|
|
842
|
-
),
|
|
793
|
+
), Tr = {
|
|
843
794
|
create: function() {
|
|
844
|
-
return new
|
|
795
|
+
return new Hr();
|
|
845
796
|
}
|
|
846
|
-
},
|
|
847
|
-
variadic:
|
|
848
|
-
|
|
849
|
-
|
|
797
|
+
}, _e = {
|
|
798
|
+
variadic: _r
|
|
799
|
+
}, he = function() {
|
|
800
|
+
return he = Object.assign || function(t) {
|
|
801
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
802
|
+
r = arguments[n];
|
|
803
|
+
for (var s in r)
|
|
804
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
805
|
+
}
|
|
806
|
+
return t;
|
|
807
|
+
}, he.apply(this, arguments);
|
|
808
|
+
};
|
|
809
|
+
var d;
|
|
850
810
|
(function(e) {
|
|
851
811
|
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";
|
|
852
|
-
})(
|
|
853
|
-
var
|
|
812
|
+
})(d || (d = {}));
|
|
813
|
+
var E;
|
|
854
814
|
(function(e) {
|
|
855
815
|
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";
|
|
856
|
-
})(
|
|
857
|
-
var
|
|
816
|
+
})(E || (E = {}));
|
|
817
|
+
var k;
|
|
858
818
|
(function(e) {
|
|
859
819
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
860
|
-
})(
|
|
861
|
-
function
|
|
862
|
-
return e.type ===
|
|
820
|
+
})(k || (k = {}));
|
|
821
|
+
function Ve(e) {
|
|
822
|
+
return e.type === E.literal;
|
|
863
823
|
}
|
|
864
|
-
function
|
|
865
|
-
return e.type ===
|
|
824
|
+
function Sr(e) {
|
|
825
|
+
return e.type === E.argument;
|
|
866
826
|
}
|
|
867
827
|
function dt(e) {
|
|
868
|
-
return e.type ===
|
|
869
|
-
}
|
|
870
|
-
function gt(e) {
|
|
871
|
-
return e.type === _.date;
|
|
828
|
+
return e.type === E.number;
|
|
872
829
|
}
|
|
873
830
|
function bt(e) {
|
|
874
|
-
return e.type ===
|
|
831
|
+
return e.type === E.date;
|
|
875
832
|
}
|
|
876
833
|
function pt(e) {
|
|
877
|
-
return e.type ===
|
|
834
|
+
return e.type === E.time;
|
|
878
835
|
}
|
|
879
836
|
function yt(e) {
|
|
880
|
-
return e.type ===
|
|
881
|
-
}
|
|
882
|
-
function Bn(e) {
|
|
883
|
-
return e.type === _.pound;
|
|
837
|
+
return e.type === E.select;
|
|
884
838
|
}
|
|
885
839
|
function Et(e) {
|
|
886
|
-
return e.type ===
|
|
840
|
+
return e.type === E.plural;
|
|
841
|
+
}
|
|
842
|
+
function Br(e) {
|
|
843
|
+
return e.type === E.pound;
|
|
844
|
+
}
|
|
845
|
+
function vt(e) {
|
|
846
|
+
return e.type === E.tag;
|
|
887
847
|
}
|
|
888
848
|
function _t(e) {
|
|
889
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
849
|
+
return !!(e && typeof e == "object" && e.type === k.number);
|
|
890
850
|
}
|
|
891
|
-
function
|
|
892
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
851
|
+
function Pe(e) {
|
|
852
|
+
return !!(e && typeof e == "object" && e.type === k.dateTime);
|
|
893
853
|
}
|
|
894
|
-
var xt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
895
|
-
function
|
|
854
|
+
var xt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ar = /(?:[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;
|
|
855
|
+
function wr(e) {
|
|
896
856
|
var t = {};
|
|
897
|
-
return e.replace(
|
|
898
|
-
var
|
|
899
|
-
switch (
|
|
857
|
+
return e.replace(Ar, function(r) {
|
|
858
|
+
var n = r.length;
|
|
859
|
+
switch (r[0]) {
|
|
900
860
|
case "G":
|
|
901
|
-
t.era =
|
|
861
|
+
t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
902
862
|
break;
|
|
903
863
|
case "y":
|
|
904
|
-
t.year =
|
|
864
|
+
t.year = n === 2 ? "2-digit" : "numeric";
|
|
905
865
|
break;
|
|
906
866
|
case "Y":
|
|
907
867
|
case "u":
|
|
@@ -913,30 +873,30 @@ function wn(e) {
|
|
|
913
873
|
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
914
874
|
case "M":
|
|
915
875
|
case "L":
|
|
916
|
-
t.month = ["numeric", "2-digit", "short", "long", "narrow"][
|
|
876
|
+
t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
|
|
917
877
|
break;
|
|
918
878
|
case "w":
|
|
919
879
|
case "W":
|
|
920
880
|
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
921
881
|
case "d":
|
|
922
|
-
t.day = ["numeric", "2-digit"][
|
|
882
|
+
t.day = ["numeric", "2-digit"][n - 1];
|
|
923
883
|
break;
|
|
924
884
|
case "D":
|
|
925
885
|
case "F":
|
|
926
886
|
case "g":
|
|
927
887
|
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
928
888
|
case "E":
|
|
929
|
-
t.weekday =
|
|
889
|
+
t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
930
890
|
break;
|
|
931
891
|
case "e":
|
|
932
|
-
if (
|
|
892
|
+
if (n < 4)
|
|
933
893
|
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
934
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
894
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
935
895
|
break;
|
|
936
896
|
case "c":
|
|
937
|
-
if (
|
|
897
|
+
if (n < 4)
|
|
938
898
|
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
939
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
899
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
940
900
|
break;
|
|
941
901
|
case "a":
|
|
942
902
|
t.hour12 = !0;
|
|
@@ -945,32 +905,32 @@ function wn(e) {
|
|
|
945
905
|
case "B":
|
|
946
906
|
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
947
907
|
case "h":
|
|
948
|
-
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][
|
|
908
|
+
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
|
|
949
909
|
break;
|
|
950
910
|
case "H":
|
|
951
|
-
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][
|
|
911
|
+
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
|
|
952
912
|
break;
|
|
953
913
|
case "K":
|
|
954
|
-
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][
|
|
914
|
+
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
|
|
955
915
|
break;
|
|
956
916
|
case "k":
|
|
957
|
-
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][
|
|
917
|
+
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
|
|
958
918
|
break;
|
|
959
919
|
case "j":
|
|
960
920
|
case "J":
|
|
961
921
|
case "C":
|
|
962
922
|
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
963
923
|
case "m":
|
|
964
|
-
t.minute = ["numeric", "2-digit"][
|
|
924
|
+
t.minute = ["numeric", "2-digit"][n - 1];
|
|
965
925
|
break;
|
|
966
926
|
case "s":
|
|
967
|
-
t.second = ["numeric", "2-digit"][
|
|
927
|
+
t.second = ["numeric", "2-digit"][n - 1];
|
|
968
928
|
break;
|
|
969
929
|
case "S":
|
|
970
930
|
case "A":
|
|
971
931
|
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
972
932
|
case "z":
|
|
973
|
-
t.timeZoneName =
|
|
933
|
+
t.timeZoneName = n < 4 ? "short" : "long";
|
|
974
934
|
break;
|
|
975
935
|
case "Z":
|
|
976
936
|
case "O":
|
|
@@ -983,36 +943,46 @@ function wn(e) {
|
|
|
983
943
|
return "";
|
|
984
944
|
}), t;
|
|
985
945
|
}
|
|
986
|
-
var
|
|
987
|
-
function
|
|
946
|
+
var _ = function() {
|
|
947
|
+
return _ = Object.assign || function(t) {
|
|
948
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
949
|
+
r = arguments[n];
|
|
950
|
+
for (var s in r)
|
|
951
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
952
|
+
}
|
|
953
|
+
return t;
|
|
954
|
+
}, _.apply(this, arguments);
|
|
955
|
+
};
|
|
956
|
+
var Pr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
957
|
+
function Nr(e) {
|
|
988
958
|
if (e.length === 0)
|
|
989
959
|
throw new Error("Number skeleton cannot be empty");
|
|
990
|
-
for (var t = e.split(
|
|
960
|
+
for (var t = e.split(Pr).filter(function(f) {
|
|
991
961
|
return f.length > 0;
|
|
992
|
-
}),
|
|
993
|
-
var s = i[
|
|
994
|
-
if (
|
|
962
|
+
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
963
|
+
var s = i[n], u = s.split("/");
|
|
964
|
+
if (u.length === 0)
|
|
995
965
|
throw new Error("Invalid number skeleton");
|
|
996
|
-
for (var o =
|
|
997
|
-
var c = h[
|
|
966
|
+
for (var o = u[0], l = u.slice(1), a = 0, h = l; a < h.length; a++) {
|
|
967
|
+
var c = h[a];
|
|
998
968
|
if (c.length === 0)
|
|
999
969
|
throw new Error("Invalid number skeleton");
|
|
1000
970
|
}
|
|
1001
|
-
|
|
971
|
+
r.push({ stem: o, options: l });
|
|
1002
972
|
}
|
|
1003
|
-
return
|
|
973
|
+
return r;
|
|
1004
974
|
}
|
|
1005
|
-
function
|
|
975
|
+
function Or(e) {
|
|
1006
976
|
return e.replace(/^(.*?)-/, "");
|
|
1007
977
|
}
|
|
1008
|
-
var
|
|
1009
|
-
function
|
|
978
|
+
var Xe = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ht = /^(@+)?(\+|#+)?[rs]?$/g, Ir = /(\*)(0+)|(#+)(0+)|(0+)/g, Tt = /^(0+)$/;
|
|
979
|
+
function We(e) {
|
|
1010
980
|
var t = {};
|
|
1011
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1012
|
-
return typeof i != "string" ? (t.minimumSignificantDigits =
|
|
981
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ht, function(r, n, i) {
|
|
982
|
+
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)), "";
|
|
1013
983
|
}), t;
|
|
1014
984
|
}
|
|
1015
|
-
function
|
|
985
|
+
function St(e) {
|
|
1016
986
|
switch (e) {
|
|
1017
987
|
case "sign-auto":
|
|
1018
988
|
return {
|
|
@@ -1052,27 +1022,27 @@ function Tt(e) {
|
|
|
1052
1022
|
};
|
|
1053
1023
|
}
|
|
1054
1024
|
}
|
|
1055
|
-
function
|
|
1025
|
+
function Lr(e) {
|
|
1056
1026
|
var t;
|
|
1057
1027
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1058
1028
|
notation: "engineering"
|
|
1059
1029
|
}, e = e.slice(2)) : e[0] === "E" && (t = {
|
|
1060
1030
|
notation: "scientific"
|
|
1061
1031
|
}, e = e.slice(1)), t) {
|
|
1062
|
-
var
|
|
1063
|
-
if (
|
|
1032
|
+
var r = e.slice(0, 2);
|
|
1033
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Tt.test(e))
|
|
1064
1034
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1065
1035
|
t.minimumIntegerDigits = e.length;
|
|
1066
1036
|
}
|
|
1067
1037
|
return t;
|
|
1068
1038
|
}
|
|
1069
1039
|
function ze(e) {
|
|
1070
|
-
var t = {},
|
|
1071
|
-
return
|
|
1040
|
+
var t = {}, r = St(e);
|
|
1041
|
+
return r || t;
|
|
1072
1042
|
}
|
|
1073
|
-
function
|
|
1074
|
-
for (var t = {},
|
|
1075
|
-
var i = r
|
|
1043
|
+
function Cr(e) {
|
|
1044
|
+
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1045
|
+
var i = n[r];
|
|
1076
1046
|
switch (i.stem) {
|
|
1077
1047
|
case "percent":
|
|
1078
1048
|
case "%":
|
|
@@ -1094,7 +1064,7 @@ function Cn(e) {
|
|
|
1094
1064
|
continue;
|
|
1095
1065
|
case "measure-unit":
|
|
1096
1066
|
case "unit":
|
|
1097
|
-
t.style = "unit", t.unit =
|
|
1067
|
+
t.style = "unit", t.unit = Or(i.options[0]);
|
|
1098
1068
|
continue;
|
|
1099
1069
|
case "compact-short":
|
|
1100
1070
|
case "K":
|
|
@@ -1105,13 +1075,13 @@ function Cn(e) {
|
|
|
1105
1075
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1106
1076
|
continue;
|
|
1107
1077
|
case "scientific":
|
|
1108
|
-
t =
|
|
1109
|
-
return
|
|
1078
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(l, a) {
|
|
1079
|
+
return _(_({}, l), ze(a));
|
|
1110
1080
|
}, {}));
|
|
1111
1081
|
continue;
|
|
1112
1082
|
case "engineering":
|
|
1113
|
-
t =
|
|
1114
|
-
return
|
|
1083
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(l, a) {
|
|
1084
|
+
return _(_({}, l), ze(a));
|
|
1115
1085
|
}, {}));
|
|
1116
1086
|
continue;
|
|
1117
1087
|
case "notation-simple":
|
|
@@ -1156,8 +1126,8 @@ function Cn(e) {
|
|
|
1156
1126
|
case "integer-width":
|
|
1157
1127
|
if (i.options.length > 1)
|
|
1158
1128
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1159
|
-
i.options[0].replace(
|
|
1160
|
-
if (
|
|
1129
|
+
i.options[0].replace(Ir, function(l, a, h, c, f, b) {
|
|
1130
|
+
if (a)
|
|
1161
1131
|
t.minimumIntegerDigits = h.length;
|
|
1162
1132
|
else {
|
|
1163
1133
|
if (c && f)
|
|
@@ -1169,32 +1139,32 @@ function Cn(e) {
|
|
|
1169
1139
|
});
|
|
1170
1140
|
continue;
|
|
1171
1141
|
}
|
|
1172
|
-
if (
|
|
1142
|
+
if (Tt.test(i.stem)) {
|
|
1173
1143
|
t.minimumIntegerDigits = i.stem.length;
|
|
1174
1144
|
continue;
|
|
1175
1145
|
}
|
|
1176
|
-
if (
|
|
1146
|
+
if (Xe.test(i.stem)) {
|
|
1177
1147
|
if (i.options.length > 1)
|
|
1178
1148
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1179
|
-
i.stem.replace(
|
|
1180
|
-
return h === "*" ? t.minimumFractionDigits =
|
|
1149
|
+
i.stem.replace(Xe, function(l, a, h, c, f, b) {
|
|
1150
|
+
return h === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && b ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + b.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1181
1151
|
});
|
|
1182
1152
|
var s = i.options[0];
|
|
1183
|
-
s === "w" ? t =
|
|
1153
|
+
s === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = _(_({}, t), We(s)));
|
|
1184
1154
|
continue;
|
|
1185
1155
|
}
|
|
1186
|
-
if (
|
|
1187
|
-
t =
|
|
1156
|
+
if (Ht.test(i.stem)) {
|
|
1157
|
+
t = _(_({}, t), We(i.stem));
|
|
1188
1158
|
continue;
|
|
1189
1159
|
}
|
|
1190
|
-
var
|
|
1191
|
-
|
|
1192
|
-
var o =
|
|
1193
|
-
o && (t =
|
|
1160
|
+
var u = St(i.stem);
|
|
1161
|
+
u && (t = _(_({}, t), u));
|
|
1162
|
+
var o = Lr(i.stem);
|
|
1163
|
+
o && (t = _(_({}, t), o));
|
|
1194
1164
|
}
|
|
1195
1165
|
return t;
|
|
1196
1166
|
}
|
|
1197
|
-
var
|
|
1167
|
+
var se = {
|
|
1198
1168
|
"001": [
|
|
1199
1169
|
"H",
|
|
1200
1170
|
"h"
|
|
@@ -2609,23 +2579,23 @@ var ie = {
|
|
|
2609
2579
|
"h"
|
|
2610
2580
|
]
|
|
2611
2581
|
};
|
|
2612
|
-
function
|
|
2613
|
-
for (var
|
|
2614
|
-
var i = e.charAt(
|
|
2582
|
+
function Mr(e, t) {
|
|
2583
|
+
for (var r = "", n = 0; n < e.length; n++) {
|
|
2584
|
+
var i = e.charAt(n);
|
|
2615
2585
|
if (i === "j") {
|
|
2616
|
-
for (var s = 0;
|
|
2617
|
-
s++,
|
|
2618
|
-
var
|
|
2619
|
-
for ((
|
|
2620
|
-
|
|
2621
|
-
for (;
|
|
2622
|
-
|
|
2586
|
+
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2587
|
+
s++, n++;
|
|
2588
|
+
var u = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", a = Rr(t);
|
|
2589
|
+
for ((a == "H" || a == "k") && (o = 0); o-- > 0; )
|
|
2590
|
+
r += l;
|
|
2591
|
+
for (; u-- > 0; )
|
|
2592
|
+
r = a + r;
|
|
2623
2593
|
} else
|
|
2624
|
-
i === "J" ?
|
|
2594
|
+
i === "J" ? r += "H" : r += i;
|
|
2625
2595
|
}
|
|
2626
|
-
return
|
|
2596
|
+
return r;
|
|
2627
2597
|
}
|
|
2628
|
-
function
|
|
2598
|
+
function Rr(e) {
|
|
2629
2599
|
var t = e.hourCycle;
|
|
2630
2600
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2631
2601
|
e.hourCycles && // @ts-ignore
|
|
@@ -2642,73 +2612,73 @@ function Rn(e) {
|
|
|
2642
2612
|
default:
|
|
2643
2613
|
throw new Error("Invalid hourCycle");
|
|
2644
2614
|
}
|
|
2645
|
-
var
|
|
2646
|
-
|
|
2647
|
-
var i =
|
|
2615
|
+
var r = e.language, n;
|
|
2616
|
+
r !== "root" && (n = e.maximize().region);
|
|
2617
|
+
var i = se[n || ""] || se[r || ""] || se["".concat(r, "-001")] || se["001"];
|
|
2648
2618
|
return i[0];
|
|
2649
2619
|
}
|
|
2650
|
-
var
|
|
2620
|
+
var xe, $r = new RegExp("^".concat(xt.source, "*")), Ur = new RegExp("".concat(xt.source, "*$"));
|
|
2651
2621
|
function p(e, t) {
|
|
2652
2622
|
return { start: e, end: t };
|
|
2653
2623
|
}
|
|
2654
|
-
var
|
|
2624
|
+
var Dr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Gr = !!String.fromCodePoint, Fr = !!Object.fromEntries, jr = !!String.prototype.codePointAt, kr = !!String.prototype.trimStart, Vr = !!String.prototype.trimEnd, Xr = !!Number.isSafeInteger, Wr = Xr ? Number.isSafeInteger : function(e) {
|
|
2655
2625
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2656
|
-
},
|
|
2626
|
+
}, Ne = !0;
|
|
2657
2627
|
try {
|
|
2658
|
-
var
|
|
2659
|
-
|
|
2628
|
+
var zr = At("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2629
|
+
Ne = ((xe = zr.exec("a")) === null || xe === void 0 ? void 0 : xe[0]) === "a";
|
|
2660
2630
|
} catch {
|
|
2661
|
-
|
|
2631
|
+
Ne = !1;
|
|
2662
2632
|
}
|
|
2663
|
-
var
|
|
2633
|
+
var Ze = Dr ? (
|
|
2664
2634
|
// Native
|
|
2665
|
-
function(t,
|
|
2666
|
-
return t.startsWith(
|
|
2635
|
+
function(t, r, n) {
|
|
2636
|
+
return t.startsWith(r, n);
|
|
2667
2637
|
}
|
|
2668
2638
|
) : (
|
|
2669
2639
|
// For IE11
|
|
2670
|
-
function(t,
|
|
2671
|
-
return t.slice(
|
|
2640
|
+
function(t, r, n) {
|
|
2641
|
+
return t.slice(n, n + r.length) === r;
|
|
2672
2642
|
}
|
|
2673
|
-
),
|
|
2643
|
+
), Oe = Gr ? String.fromCodePoint : (
|
|
2674
2644
|
// IE11
|
|
2675
2645
|
function() {
|
|
2676
|
-
for (var t = [],
|
|
2677
|
-
t[
|
|
2678
|
-
for (var
|
|
2679
|
-
if (
|
|
2680
|
-
throw RangeError(
|
|
2681
|
-
|
|
2646
|
+
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2647
|
+
t[r] = arguments[r];
|
|
2648
|
+
for (var n = "", i = t.length, s = 0, u; i > s; ) {
|
|
2649
|
+
if (u = t[s++], u > 1114111)
|
|
2650
|
+
throw RangeError(u + " is not a valid code point");
|
|
2651
|
+
n += u < 65536 ? String.fromCharCode(u) : String.fromCharCode(((u -= 65536) >> 10) + 55296, u % 1024 + 56320);
|
|
2682
2652
|
}
|
|
2683
|
-
return
|
|
2653
|
+
return n;
|
|
2684
2654
|
}
|
|
2685
|
-
),
|
|
2655
|
+
), Qe = (
|
|
2686
2656
|
// native
|
|
2687
|
-
|
|
2657
|
+
Fr ? Object.fromEntries : (
|
|
2688
2658
|
// Ponyfill
|
|
2689
2659
|
function(t) {
|
|
2690
|
-
for (var
|
|
2691
|
-
var s = i[
|
|
2692
|
-
|
|
2660
|
+
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2661
|
+
var s = i[n], u = s[0], o = s[1];
|
|
2662
|
+
r[u] = o;
|
|
2693
2663
|
}
|
|
2694
|
-
return
|
|
2664
|
+
return r;
|
|
2695
2665
|
}
|
|
2696
2666
|
)
|
|
2697
|
-
),
|
|
2667
|
+
), Bt = jr ? (
|
|
2698
2668
|
// Native
|
|
2699
|
-
function(t,
|
|
2700
|
-
return t.codePointAt(
|
|
2669
|
+
function(t, r) {
|
|
2670
|
+
return t.codePointAt(r);
|
|
2701
2671
|
}
|
|
2702
2672
|
) : (
|
|
2703
2673
|
// IE 11
|
|
2704
|
-
function(t,
|
|
2705
|
-
var
|
|
2706
|
-
if (!(
|
|
2707
|
-
var i = t.charCodeAt(
|
|
2708
|
-
return i < 55296 || i > 56319 ||
|
|
2674
|
+
function(t, r) {
|
|
2675
|
+
var n = t.length;
|
|
2676
|
+
if (!(r < 0 || r >= n)) {
|
|
2677
|
+
var i = t.charCodeAt(r), s;
|
|
2678
|
+
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2709
2679
|
}
|
|
2710
2680
|
}
|
|
2711
|
-
),
|
|
2681
|
+
), Zr = kr ? (
|
|
2712
2682
|
// Native
|
|
2713
2683
|
function(t) {
|
|
2714
2684
|
return t.trimStart();
|
|
@@ -2716,9 +2686,9 @@ var We = Dn ? (
|
|
|
2716
2686
|
) : (
|
|
2717
2687
|
// Ponyfill
|
|
2718
2688
|
function(t) {
|
|
2719
|
-
return t.replace($
|
|
2689
|
+
return t.replace($r, "");
|
|
2720
2690
|
}
|
|
2721
|
-
),
|
|
2691
|
+
), Qr = Vr ? (
|
|
2722
2692
|
// Native
|
|
2723
2693
|
function(t) {
|
|
2724
2694
|
return t.trimEnd();
|
|
@@ -2726,126 +2696,126 @@ var We = Dn ? (
|
|
|
2726
2696
|
) : (
|
|
2727
2697
|
// Ponyfill
|
|
2728
2698
|
function(t) {
|
|
2729
|
-
return t.replace(
|
|
2699
|
+
return t.replace(Ur, "");
|
|
2730
2700
|
}
|
|
2731
2701
|
);
|
|
2732
|
-
function
|
|
2702
|
+
function At(e, t) {
|
|
2733
2703
|
return new RegExp(e, t);
|
|
2734
2704
|
}
|
|
2735
|
-
var
|
|
2736
|
-
if (
|
|
2737
|
-
var
|
|
2738
|
-
|
|
2739
|
-
var
|
|
2740
|
-
|
|
2741
|
-
var i =
|
|
2742
|
-
return (
|
|
2705
|
+
var Ie;
|
|
2706
|
+
if (Ne) {
|
|
2707
|
+
var qe = At("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2708
|
+
Ie = function(t, r) {
|
|
2709
|
+
var n;
|
|
2710
|
+
qe.lastIndex = r;
|
|
2711
|
+
var i = qe.exec(t);
|
|
2712
|
+
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2743
2713
|
};
|
|
2744
2714
|
} else
|
|
2745
|
-
|
|
2746
|
-
for (var
|
|
2747
|
-
var i =
|
|
2748
|
-
if (i === void 0 ||
|
|
2715
|
+
Ie = function(t, r) {
|
|
2716
|
+
for (var n = []; ; ) {
|
|
2717
|
+
var i = Bt(t, r);
|
|
2718
|
+
if (i === void 0 || wt(i) || Kr(i))
|
|
2749
2719
|
break;
|
|
2750
|
-
|
|
2720
|
+
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2751
2721
|
}
|
|
2752
|
-
return
|
|
2722
|
+
return Oe.apply(void 0, n);
|
|
2753
2723
|
};
|
|
2754
|
-
var
|
|
2724
|
+
var qr = (
|
|
2755
2725
|
/** @class */
|
|
2756
2726
|
function() {
|
|
2757
|
-
function e(t,
|
|
2758
|
-
|
|
2727
|
+
function e(t, r) {
|
|
2728
|
+
r === void 0 && (r = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
|
|
2759
2729
|
}
|
|
2760
2730
|
return e.prototype.parse = function() {
|
|
2761
2731
|
if (this.offset() !== 0)
|
|
2762
2732
|
throw Error("parser can only be used once");
|
|
2763
2733
|
return this.parseMessage(0, "", !1);
|
|
2764
|
-
}, e.prototype.parseMessage = function(t,
|
|
2734
|
+
}, e.prototype.parseMessage = function(t, r, n) {
|
|
2765
2735
|
for (var i = []; !this.isEOF(); ) {
|
|
2766
2736
|
var s = this.char();
|
|
2767
2737
|
if (s === 123) {
|
|
2768
|
-
var
|
|
2769
|
-
if (
|
|
2770
|
-
return
|
|
2771
|
-
i.push(
|
|
2738
|
+
var u = this.parseArgument(t, n);
|
|
2739
|
+
if (u.err)
|
|
2740
|
+
return u;
|
|
2741
|
+
i.push(u.val);
|
|
2772
2742
|
} else {
|
|
2773
2743
|
if (s === 125 && t > 0)
|
|
2774
2744
|
break;
|
|
2775
|
-
if (s === 35 && (
|
|
2745
|
+
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2776
2746
|
var o = this.clonePosition();
|
|
2777
2747
|
this.bump(), i.push({
|
|
2778
|
-
type:
|
|
2748
|
+
type: E.pound,
|
|
2779
2749
|
location: p(o, this.clonePosition())
|
|
2780
2750
|
});
|
|
2781
2751
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2782
|
-
if (
|
|
2752
|
+
if (n)
|
|
2783
2753
|
break;
|
|
2784
|
-
return this.error(
|
|
2785
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2786
|
-
var
|
|
2787
|
-
if (
|
|
2788
|
-
return
|
|
2789
|
-
i.push(
|
|
2754
|
+
return this.error(d.UNMATCHED_CLOSING_TAG, p(this.clonePosition(), this.clonePosition()));
|
|
2755
|
+
} else if (s === 60 && !this.ignoreTag && Le(this.peek() || 0)) {
|
|
2756
|
+
var u = this.parseTag(t, r);
|
|
2757
|
+
if (u.err)
|
|
2758
|
+
return u;
|
|
2759
|
+
i.push(u.val);
|
|
2790
2760
|
} else {
|
|
2791
|
-
var
|
|
2792
|
-
if (
|
|
2793
|
-
return
|
|
2794
|
-
i.push(
|
|
2761
|
+
var u = this.parseLiteral(t, r);
|
|
2762
|
+
if (u.err)
|
|
2763
|
+
return u;
|
|
2764
|
+
i.push(u.val);
|
|
2795
2765
|
}
|
|
2796
2766
|
}
|
|
2797
2767
|
}
|
|
2798
2768
|
return { val: i, err: null };
|
|
2799
|
-
}, e.prototype.parseTag = function(t,
|
|
2800
|
-
var
|
|
2769
|
+
}, e.prototype.parseTag = function(t, r) {
|
|
2770
|
+
var n = this.clonePosition();
|
|
2801
2771
|
this.bump();
|
|
2802
2772
|
var i = this.parseTagName();
|
|
2803
2773
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2804
2774
|
return {
|
|
2805
2775
|
val: {
|
|
2806
|
-
type:
|
|
2776
|
+
type: E.literal,
|
|
2807
2777
|
value: "<".concat(i, "/>"),
|
|
2808
|
-
location: p(
|
|
2778
|
+
location: p(n, this.clonePosition())
|
|
2809
2779
|
},
|
|
2810
2780
|
err: null
|
|
2811
2781
|
};
|
|
2812
2782
|
if (this.bumpIf(">")) {
|
|
2813
|
-
var s = this.parseMessage(t + 1,
|
|
2783
|
+
var s = this.parseMessage(t + 1, r, !0);
|
|
2814
2784
|
if (s.err)
|
|
2815
2785
|
return s;
|
|
2816
|
-
var
|
|
2786
|
+
var u = s.val, o = this.clonePosition();
|
|
2817
2787
|
if (this.bumpIf("</")) {
|
|
2818
|
-
if (this.isEOF() || !
|
|
2819
|
-
return this.error(
|
|
2820
|
-
var l = this.clonePosition(),
|
|
2821
|
-
return i !==
|
|
2788
|
+
if (this.isEOF() || !Le(this.char()))
|
|
2789
|
+
return this.error(d.INVALID_TAG, p(o, this.clonePosition()));
|
|
2790
|
+
var l = this.clonePosition(), a = this.parseTagName();
|
|
2791
|
+
return i !== a ? this.error(d.UNMATCHED_CLOSING_TAG, p(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2822
2792
|
val: {
|
|
2823
|
-
type:
|
|
2793
|
+
type: E.tag,
|
|
2824
2794
|
value: i,
|
|
2825
|
-
children:
|
|
2826
|
-
location: p(
|
|
2795
|
+
children: u,
|
|
2796
|
+
location: p(n, this.clonePosition())
|
|
2827
2797
|
},
|
|
2828
2798
|
err: null
|
|
2829
|
-
} : this.error(
|
|
2799
|
+
} : this.error(d.INVALID_TAG, p(o, this.clonePosition())));
|
|
2830
2800
|
} else
|
|
2831
|
-
return this.error(
|
|
2801
|
+
return this.error(d.UNCLOSED_TAG, p(n, this.clonePosition()));
|
|
2832
2802
|
} else
|
|
2833
|
-
return this.error(
|
|
2803
|
+
return this.error(d.INVALID_TAG, p(n, this.clonePosition()));
|
|
2834
2804
|
}, e.prototype.parseTagName = function() {
|
|
2835
2805
|
var t = this.offset();
|
|
2836
|
-
for (this.bump(); !this.isEOF() &&
|
|
2806
|
+
for (this.bump(); !this.isEOF() && Yr(this.char()); )
|
|
2837
2807
|
this.bump();
|
|
2838
2808
|
return this.message.slice(t, this.offset());
|
|
2839
|
-
}, e.prototype.parseLiteral = function(t,
|
|
2840
|
-
for (var
|
|
2841
|
-
var s = this.tryParseQuote(
|
|
2809
|
+
}, e.prototype.parseLiteral = function(t, r) {
|
|
2810
|
+
for (var n = this.clonePosition(), i = ""; ; ) {
|
|
2811
|
+
var s = this.tryParseQuote(r);
|
|
2842
2812
|
if (s) {
|
|
2843
2813
|
i += s;
|
|
2844
2814
|
continue;
|
|
2845
2815
|
}
|
|
2846
|
-
var
|
|
2847
|
-
if (
|
|
2848
|
-
i +=
|
|
2816
|
+
var u = this.tryParseUnquoted(t, r);
|
|
2817
|
+
if (u) {
|
|
2818
|
+
i += u;
|
|
2849
2819
|
continue;
|
|
2850
2820
|
}
|
|
2851
2821
|
var o = this.tryParseLeftAngleBracket();
|
|
@@ -2855,14 +2825,14 @@ var qn = (
|
|
|
2855
2825
|
}
|
|
2856
2826
|
break;
|
|
2857
2827
|
}
|
|
2858
|
-
var l = p(
|
|
2828
|
+
var l = p(n, this.clonePosition());
|
|
2859
2829
|
return {
|
|
2860
|
-
val: { type:
|
|
2830
|
+
val: { type: E.literal, value: i, location: l },
|
|
2861
2831
|
err: null
|
|
2862
2832
|
};
|
|
2863
2833
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2864
2834
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2865
|
-
!
|
|
2835
|
+
!Jr(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2866
2836
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2867
2837
|
if (this.isEOF() || this.char() !== 39)
|
|
2868
2838
|
return null;
|
|
@@ -2882,114 +2852,114 @@ var qn = (
|
|
|
2882
2852
|
return null;
|
|
2883
2853
|
}
|
|
2884
2854
|
this.bump();
|
|
2885
|
-
var
|
|
2855
|
+
var r = [this.char()];
|
|
2886
2856
|
for (this.bump(); !this.isEOF(); ) {
|
|
2887
|
-
var
|
|
2888
|
-
if (
|
|
2857
|
+
var n = this.char();
|
|
2858
|
+
if (n === 39)
|
|
2889
2859
|
if (this.peek() === 39)
|
|
2890
|
-
|
|
2860
|
+
r.push(39), this.bump();
|
|
2891
2861
|
else {
|
|
2892
2862
|
this.bump();
|
|
2893
2863
|
break;
|
|
2894
2864
|
}
|
|
2895
2865
|
else
|
|
2896
|
-
|
|
2866
|
+
r.push(n);
|
|
2897
2867
|
this.bump();
|
|
2898
2868
|
}
|
|
2899
|
-
return
|
|
2900
|
-
}, e.prototype.tryParseUnquoted = function(t,
|
|
2869
|
+
return Oe.apply(void 0, r);
|
|
2870
|
+
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2901
2871
|
if (this.isEOF())
|
|
2902
2872
|
return null;
|
|
2903
|
-
var
|
|
2904
|
-
return
|
|
2905
|
-
}, e.prototype.parseArgument = function(t,
|
|
2906
|
-
var
|
|
2873
|
+
var n = this.char();
|
|
2874
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Oe(n));
|
|
2875
|
+
}, e.prototype.parseArgument = function(t, r) {
|
|
2876
|
+
var n = this.clonePosition();
|
|
2907
2877
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2908
|
-
return this.error(
|
|
2878
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition()));
|
|
2909
2879
|
if (this.char() === 125)
|
|
2910
|
-
return this.bump(), this.error(
|
|
2880
|
+
return this.bump(), this.error(d.EMPTY_ARGUMENT, p(n, this.clonePosition()));
|
|
2911
2881
|
var i = this.parseIdentifierIfPossible().value;
|
|
2912
2882
|
if (!i)
|
|
2913
|
-
return this.error(
|
|
2883
|
+
return this.error(d.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
|
|
2914
2884
|
if (this.bumpSpace(), this.isEOF())
|
|
2915
|
-
return this.error(
|
|
2885
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition()));
|
|
2916
2886
|
switch (this.char()) {
|
|
2917
2887
|
case 125:
|
|
2918
2888
|
return this.bump(), {
|
|
2919
2889
|
val: {
|
|
2920
|
-
type:
|
|
2890
|
+
type: E.argument,
|
|
2921
2891
|
// value does not include the opening and closing braces.
|
|
2922
2892
|
value: i,
|
|
2923
|
-
location: p(
|
|
2893
|
+
location: p(n, this.clonePosition())
|
|
2924
2894
|
},
|
|
2925
2895
|
err: null
|
|
2926
2896
|
};
|
|
2927
2897
|
case 44:
|
|
2928
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2898
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2929
2899
|
default:
|
|
2930
|
-
return this.error(
|
|
2900
|
+
return this.error(d.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
|
|
2931
2901
|
}
|
|
2932
2902
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2933
|
-
var t = this.clonePosition(),
|
|
2903
|
+
var t = this.clonePosition(), r = this.offset(), n = Ie(this.message, r), i = r + n.length;
|
|
2934
2904
|
this.bumpTo(i);
|
|
2935
|
-
var s = this.clonePosition(),
|
|
2936
|
-
return { value:
|
|
2937
|
-
}, e.prototype.parseArgumentOptions = function(t,
|
|
2938
|
-
var s,
|
|
2905
|
+
var s = this.clonePosition(), u = p(t, s);
|
|
2906
|
+
return { value: n, location: u };
|
|
2907
|
+
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2908
|
+
var s, u = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2939
2909
|
switch (o) {
|
|
2940
2910
|
case "":
|
|
2941
|
-
return this.error(
|
|
2911
|
+
return this.error(d.EXPECT_ARGUMENT_TYPE, p(u, l));
|
|
2942
2912
|
case "number":
|
|
2943
2913
|
case "date":
|
|
2944
2914
|
case "time": {
|
|
2945
2915
|
this.bumpSpace();
|
|
2946
|
-
var
|
|
2916
|
+
var a = null;
|
|
2947
2917
|
if (this.bumpIf(",")) {
|
|
2948
2918
|
this.bumpSpace();
|
|
2949
2919
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2950
2920
|
if (c.err)
|
|
2951
2921
|
return c;
|
|
2952
|
-
var f =
|
|
2922
|
+
var f = Qr(c.val);
|
|
2953
2923
|
if (f.length === 0)
|
|
2954
|
-
return this.error(
|
|
2924
|
+
return this.error(d.EXPECT_ARGUMENT_STYLE, p(this.clonePosition(), this.clonePosition()));
|
|
2955
2925
|
var b = p(h, this.clonePosition());
|
|
2956
|
-
|
|
2926
|
+
a = { style: f, styleLocation: b };
|
|
2957
2927
|
}
|
|
2958
2928
|
var y = this.tryParseArgumentClose(i);
|
|
2959
2929
|
if (y.err)
|
|
2960
2930
|
return y;
|
|
2961
|
-
var
|
|
2962
|
-
if (
|
|
2963
|
-
var S =
|
|
2931
|
+
var x = p(i, this.clonePosition());
|
|
2932
|
+
if (a && Ze(a?.style, "::", 0)) {
|
|
2933
|
+
var S = Zr(a.style.slice(2));
|
|
2964
2934
|
if (o === "number") {
|
|
2965
|
-
var c = this.parseNumberSkeletonFromString(S,
|
|
2935
|
+
var c = this.parseNumberSkeletonFromString(S, a.styleLocation);
|
|
2966
2936
|
return c.err ? c : {
|
|
2967
|
-
val: { type:
|
|
2937
|
+
val: { type: E.number, value: n, location: x, style: c.val },
|
|
2968
2938
|
err: null
|
|
2969
2939
|
};
|
|
2970
2940
|
} else {
|
|
2971
2941
|
if (S.length === 0)
|
|
2972
|
-
return this.error(
|
|
2942
|
+
return this.error(d.EXPECT_DATE_TIME_SKELETON, x);
|
|
2973
2943
|
var N = S;
|
|
2974
|
-
this.locale && (N =
|
|
2944
|
+
this.locale && (N = Mr(S, this.locale));
|
|
2975
2945
|
var f = {
|
|
2976
|
-
type:
|
|
2946
|
+
type: k.dateTime,
|
|
2977
2947
|
pattern: N,
|
|
2978
|
-
location:
|
|
2979
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2980
|
-
}, w = o === "date" ?
|
|
2948
|
+
location: a.styleLocation,
|
|
2949
|
+
parsedOptions: this.shouldParseSkeletons ? wr(N) : {}
|
|
2950
|
+
}, w = o === "date" ? E.date : E.time;
|
|
2981
2951
|
return {
|
|
2982
|
-
val: { type: w, value:
|
|
2952
|
+
val: { type: w, value: n, location: x, style: f },
|
|
2983
2953
|
err: null
|
|
2984
2954
|
};
|
|
2985
2955
|
}
|
|
2986
2956
|
}
|
|
2987
2957
|
return {
|
|
2988
2958
|
val: {
|
|
2989
|
-
type: o === "number" ?
|
|
2990
|
-
value:
|
|
2991
|
-
location:
|
|
2992
|
-
style: (s =
|
|
2959
|
+
type: o === "number" ? E.number : o === "date" ? E.date : E.time,
|
|
2960
|
+
value: n,
|
|
2961
|
+
location: x,
|
|
2962
|
+
style: (s = a?.style) !== null && s !== void 0 ? s : null
|
|
2993
2963
|
},
|
|
2994
2964
|
err: null
|
|
2995
2965
|
};
|
|
@@ -2999,59 +2969,59 @@ var qn = (
|
|
|
2999
2969
|
case "select": {
|
|
3000
2970
|
var B = this.clonePosition();
|
|
3001
2971
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3002
|
-
return this.error(
|
|
2972
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, p(B, he({}, B)));
|
|
3003
2973
|
this.bumpSpace();
|
|
3004
2974
|
var O = this.parseIdentifierIfPossible(), P = 0;
|
|
3005
2975
|
if (o !== "select" && O.value === "offset") {
|
|
3006
2976
|
if (!this.bumpIf(":"))
|
|
3007
|
-
return this.error(
|
|
2977
|
+
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p(this.clonePosition(), this.clonePosition()));
|
|
3008
2978
|
this.bumpSpace();
|
|
3009
|
-
var c = this.tryParseDecimalInteger(
|
|
2979
|
+
var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3010
2980
|
if (c.err)
|
|
3011
2981
|
return c;
|
|
3012
2982
|
this.bumpSpace(), O = this.parseIdentifierIfPossible(), P = c.val;
|
|
3013
2983
|
}
|
|
3014
|
-
var T = this.tryParsePluralOrSelectOptions(t, o,
|
|
2984
|
+
var T = this.tryParsePluralOrSelectOptions(t, o, r, O);
|
|
3015
2985
|
if (T.err)
|
|
3016
2986
|
return T;
|
|
3017
2987
|
var y = this.tryParseArgumentClose(i);
|
|
3018
2988
|
if (y.err)
|
|
3019
2989
|
return y;
|
|
3020
|
-
var
|
|
2990
|
+
var v = p(i, this.clonePosition());
|
|
3021
2991
|
return o === "select" ? {
|
|
3022
2992
|
val: {
|
|
3023
|
-
type:
|
|
3024
|
-
value:
|
|
3025
|
-
options:
|
|
3026
|
-
location:
|
|
2993
|
+
type: E.select,
|
|
2994
|
+
value: n,
|
|
2995
|
+
options: Qe(T.val),
|
|
2996
|
+
location: v
|
|
3027
2997
|
},
|
|
3028
2998
|
err: null
|
|
3029
2999
|
} : {
|
|
3030
3000
|
val: {
|
|
3031
|
-
type:
|
|
3032
|
-
value:
|
|
3033
|
-
options:
|
|
3001
|
+
type: E.plural,
|
|
3002
|
+
value: n,
|
|
3003
|
+
options: Qe(T.val),
|
|
3034
3004
|
offset: P,
|
|
3035
3005
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
3036
|
-
location:
|
|
3006
|
+
location: v
|
|
3037
3007
|
},
|
|
3038
3008
|
err: null
|
|
3039
3009
|
};
|
|
3040
3010
|
}
|
|
3041
3011
|
default:
|
|
3042
|
-
return this.error(
|
|
3012
|
+
return this.error(d.INVALID_ARGUMENT_TYPE, p(u, l));
|
|
3043
3013
|
}
|
|
3044
3014
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3045
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3015
|
+
return this.isEOF() || this.char() !== 125 ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, p(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3046
3016
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3047
|
-
for (var t = 0,
|
|
3048
|
-
var
|
|
3049
|
-
switch (
|
|
3017
|
+
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3018
|
+
var n = this.char();
|
|
3019
|
+
switch (n) {
|
|
3050
3020
|
case 39: {
|
|
3051
3021
|
this.bump();
|
|
3052
3022
|
var i = this.clonePosition();
|
|
3053
3023
|
if (!this.bumpUntil("'"))
|
|
3054
|
-
return this.error(
|
|
3024
|
+
return this.error(d.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, p(i, this.clonePosition()));
|
|
3055
3025
|
this.bump();
|
|
3056
3026
|
break;
|
|
3057
3027
|
}
|
|
@@ -3064,7 +3034,7 @@ var qn = (
|
|
|
3064
3034
|
t -= 1;
|
|
3065
3035
|
else
|
|
3066
3036
|
return {
|
|
3067
|
-
val: this.message.slice(
|
|
3037
|
+
val: this.message.slice(r.offset, this.offset()),
|
|
3068
3038
|
err: null
|
|
3069
3039
|
};
|
|
3070
3040
|
break;
|
|
@@ -3075,70 +3045,70 @@ var qn = (
|
|
|
3075
3045
|
}
|
|
3076
3046
|
}
|
|
3077
3047
|
return {
|
|
3078
|
-
val: this.message.slice(
|
|
3048
|
+
val: this.message.slice(r.offset, this.offset()),
|
|
3079
3049
|
err: null
|
|
3080
3050
|
};
|
|
3081
|
-
}, e.prototype.parseNumberSkeletonFromString = function(t,
|
|
3082
|
-
var
|
|
3051
|
+
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3052
|
+
var n = [];
|
|
3083
3053
|
try {
|
|
3084
|
-
|
|
3054
|
+
n = Nr(t);
|
|
3085
3055
|
} catch {
|
|
3086
|
-
return this.error(
|
|
3056
|
+
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
3087
3057
|
}
|
|
3088
3058
|
return {
|
|
3089
3059
|
val: {
|
|
3090
|
-
type:
|
|
3091
|
-
tokens:
|
|
3092
|
-
location:
|
|
3093
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3060
|
+
type: k.number,
|
|
3061
|
+
tokens: n,
|
|
3062
|
+
location: r,
|
|
3063
|
+
parsedOptions: this.shouldParseSkeletons ? Cr(n) : {}
|
|
3094
3064
|
},
|
|
3095
3065
|
err: null
|
|
3096
3066
|
};
|
|
3097
|
-
}, e.prototype.tryParsePluralOrSelectOptions = function(t,
|
|
3098
|
-
for (var s,
|
|
3099
|
-
if (
|
|
3067
|
+
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3068
|
+
for (var s, u = !1, o = [], l = /* @__PURE__ */ new Set(), a = i.value, h = i.location; ; ) {
|
|
3069
|
+
if (a.length === 0) {
|
|
3100
3070
|
var c = this.clonePosition();
|
|
3101
|
-
if (
|
|
3102
|
-
var f = this.tryParseDecimalInteger(
|
|
3071
|
+
if (r !== "select" && this.bumpIf("=")) {
|
|
3072
|
+
var f = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3103
3073
|
if (f.err)
|
|
3104
3074
|
return f;
|
|
3105
|
-
h = p(c, this.clonePosition()),
|
|
3075
|
+
h = p(c, this.clonePosition()), a = this.message.slice(c.offset, this.offset());
|
|
3106
3076
|
} else
|
|
3107
3077
|
break;
|
|
3108
3078
|
}
|
|
3109
|
-
if (l.has(
|
|
3110
|
-
return this.error(
|
|
3111
|
-
|
|
3079
|
+
if (l.has(a))
|
|
3080
|
+
return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3081
|
+
a === "other" && (u = !0), this.bumpSpace();
|
|
3112
3082
|
var b = this.clonePosition();
|
|
3113
3083
|
if (!this.bumpIf("{"))
|
|
3114
|
-
return this.error(
|
|
3115
|
-
var y = this.parseMessage(t + 1,
|
|
3084
|
+
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, p(this.clonePosition(), this.clonePosition()));
|
|
3085
|
+
var y = this.parseMessage(t + 1, r, n);
|
|
3116
3086
|
if (y.err)
|
|
3117
3087
|
return y;
|
|
3118
|
-
var
|
|
3119
|
-
if (
|
|
3120
|
-
return
|
|
3088
|
+
var x = this.tryParseArgumentClose(b);
|
|
3089
|
+
if (x.err)
|
|
3090
|
+
return x;
|
|
3121
3091
|
o.push([
|
|
3122
|
-
|
|
3092
|
+
a,
|
|
3123
3093
|
{
|
|
3124
3094
|
value: y.val,
|
|
3125
3095
|
location: p(b, this.clonePosition())
|
|
3126
3096
|
}
|
|
3127
|
-
]), l.add(
|
|
3097
|
+
]), l.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, h = s.location;
|
|
3128
3098
|
}
|
|
3129
|
-
return o.length === 0 ? this.error(
|
|
3130
|
-
}, e.prototype.tryParseDecimalInteger = function(t,
|
|
3131
|
-
var
|
|
3132
|
-
this.bumpIf("+") || this.bumpIf("-") && (
|
|
3133
|
-
for (var s = !1,
|
|
3099
|
+
return o.length === 0 ? this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR : d.EXPECT_PLURAL_ARGUMENT_SELECTOR, p(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !u ? this.error(d.MISSING_OTHER_CLAUSE, p(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
3100
|
+
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3101
|
+
var n = 1, i = this.clonePosition();
|
|
3102
|
+
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3103
|
+
for (var s = !1, u = 0; !this.isEOF(); ) {
|
|
3134
3104
|
var o = this.char();
|
|
3135
3105
|
if (o >= 48 && o <= 57)
|
|
3136
|
-
s = !0,
|
|
3106
|
+
s = !0, u = u * 10 + (o - 48), this.bump();
|
|
3137
3107
|
else
|
|
3138
3108
|
break;
|
|
3139
3109
|
}
|
|
3140
3110
|
var l = p(i, this.clonePosition());
|
|
3141
|
-
return s ? (
|
|
3111
|
+
return s ? (u *= n, Wr(u) ? { val: u, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3142
3112
|
}, e.prototype.offset = function() {
|
|
3143
3113
|
return this.position.offset;
|
|
3144
3114
|
}, e.prototype.isEOF = function() {
|
|
@@ -3153,17 +3123,17 @@ var qn = (
|
|
|
3153
3123
|
var t = this.position.offset;
|
|
3154
3124
|
if (t >= this.message.length)
|
|
3155
3125
|
throw Error("out of bound");
|
|
3156
|
-
var
|
|
3157
|
-
if (
|
|
3126
|
+
var r = Bt(this.message, t);
|
|
3127
|
+
if (r === void 0)
|
|
3158
3128
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3159
|
-
return
|
|
3160
|
-
}, e.prototype.error = function(t,
|
|
3129
|
+
return r;
|
|
3130
|
+
}, e.prototype.error = function(t, r) {
|
|
3161
3131
|
return {
|
|
3162
3132
|
val: null,
|
|
3163
3133
|
err: {
|
|
3164
3134
|
kind: t,
|
|
3165
3135
|
message: this.message,
|
|
3166
|
-
location:
|
|
3136
|
+
location: r
|
|
3167
3137
|
}
|
|
3168
3138
|
};
|
|
3169
3139
|
}, e.prototype.bump = function() {
|
|
@@ -3172,191 +3142,191 @@ var qn = (
|
|
|
3172
3142
|
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);
|
|
3173
3143
|
}
|
|
3174
3144
|
}, e.prototype.bumpIf = function(t) {
|
|
3175
|
-
if (
|
|
3176
|
-
for (var
|
|
3145
|
+
if (Ze(this.message, t, this.offset())) {
|
|
3146
|
+
for (var r = 0; r < t.length; r++)
|
|
3177
3147
|
this.bump();
|
|
3178
3148
|
return !0;
|
|
3179
3149
|
}
|
|
3180
3150
|
return !1;
|
|
3181
3151
|
}, e.prototype.bumpUntil = function(t) {
|
|
3182
|
-
var
|
|
3183
|
-
return
|
|
3152
|
+
var r = this.offset(), n = this.message.indexOf(t, r);
|
|
3153
|
+
return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
|
|
3184
3154
|
}, e.prototype.bumpTo = function(t) {
|
|
3185
3155
|
if (this.offset() > t)
|
|
3186
3156
|
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
3187
3157
|
for (t = Math.min(t, this.message.length); ; ) {
|
|
3188
|
-
var
|
|
3189
|
-
if (
|
|
3158
|
+
var r = this.offset();
|
|
3159
|
+
if (r === t)
|
|
3190
3160
|
break;
|
|
3191
|
-
if (
|
|
3161
|
+
if (r > t)
|
|
3192
3162
|
throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3193
3163
|
if (this.bump(), this.isEOF())
|
|
3194
3164
|
break;
|
|
3195
3165
|
}
|
|
3196
3166
|
}, e.prototype.bumpSpace = function() {
|
|
3197
|
-
for (; !this.isEOF() &&
|
|
3167
|
+
for (; !this.isEOF() && wt(this.char()); )
|
|
3198
3168
|
this.bump();
|
|
3199
3169
|
}, e.prototype.peek = function() {
|
|
3200
3170
|
if (this.isEOF())
|
|
3201
3171
|
return null;
|
|
3202
|
-
var t = this.char(),
|
|
3203
|
-
return
|
|
3172
|
+
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
3173
|
+
return n ?? null;
|
|
3204
3174
|
}, e;
|
|
3205
3175
|
}()
|
|
3206
3176
|
);
|
|
3207
|
-
function
|
|
3177
|
+
function Le(e) {
|
|
3208
3178
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3209
3179
|
}
|
|
3210
|
-
function
|
|
3211
|
-
return
|
|
3180
|
+
function Jr(e) {
|
|
3181
|
+
return Le(e) || e === 47;
|
|
3212
3182
|
}
|
|
3213
|
-
function
|
|
3183
|
+
function Yr(e) {
|
|
3214
3184
|
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;
|
|
3215
3185
|
}
|
|
3216
|
-
function
|
|
3186
|
+
function wt(e) {
|
|
3217
3187
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3218
3188
|
}
|
|
3219
|
-
function
|
|
3189
|
+
function Kr(e) {
|
|
3220
3190
|
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;
|
|
3221
3191
|
}
|
|
3222
|
-
function
|
|
3192
|
+
function Ce(e) {
|
|
3223
3193
|
e.forEach(function(t) {
|
|
3224
|
-
if (delete t.location,
|
|
3225
|
-
for (var
|
|
3226
|
-
delete t.options[
|
|
3194
|
+
if (delete t.location, yt(t) || Et(t))
|
|
3195
|
+
for (var r in t.options)
|
|
3196
|
+
delete t.options[r].location, Ce(t.options[r].value);
|
|
3227
3197
|
else
|
|
3228
|
-
dt(t) && _t(t.style) || (
|
|
3198
|
+
dt(t) && _t(t.style) || (bt(t) || pt(t)) && Pe(t.style) ? delete t.style.location : vt(t) && Ce(t.children);
|
|
3229
3199
|
});
|
|
3230
3200
|
}
|
|
3231
|
-
function
|
|
3232
|
-
t === void 0 && (t = {}), t =
|
|
3233
|
-
var
|
|
3234
|
-
if (
|
|
3235
|
-
var
|
|
3236
|
-
throw
|
|
3201
|
+
function en(e, t) {
|
|
3202
|
+
t === void 0 && (t = {}), t = he({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3203
|
+
var r = new qr(e, t).parse();
|
|
3204
|
+
if (r.err) {
|
|
3205
|
+
var n = SyntaxError(d[r.err.kind]);
|
|
3206
|
+
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3237
3207
|
}
|
|
3238
|
-
return t?.captureLocation ||
|
|
3208
|
+
return t?.captureLocation || Ce(r.val), r.val;
|
|
3239
3209
|
}
|
|
3240
|
-
var
|
|
3210
|
+
var V;
|
|
3241
3211
|
(function(e) {
|
|
3242
3212
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3243
|
-
})(
|
|
3244
|
-
var
|
|
3213
|
+
})(V || (V = {}));
|
|
3214
|
+
var de = (
|
|
3245
3215
|
/** @class */
|
|
3246
3216
|
function(e) {
|
|
3247
|
-
|
|
3248
|
-
function t(
|
|
3249
|
-
var s = e.call(this,
|
|
3250
|
-
return s.code =
|
|
3217
|
+
ge(t, e);
|
|
3218
|
+
function t(r, n, i) {
|
|
3219
|
+
var s = e.call(this, r) || this;
|
|
3220
|
+
return s.code = n, s.originalMessage = i, s;
|
|
3251
3221
|
}
|
|
3252
3222
|
return t.prototype.toString = function() {
|
|
3253
3223
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3254
3224
|
}, t;
|
|
3255
3225
|
}(Error)
|
|
3256
|
-
),
|
|
3226
|
+
), Je = (
|
|
3257
3227
|
/** @class */
|
|
3258
3228
|
function(e) {
|
|
3259
|
-
|
|
3260
|
-
function t(
|
|
3261
|
-
return e.call(this, 'Invalid values for "'.concat(
|
|
3229
|
+
ge(t, e);
|
|
3230
|
+
function t(r, n, i, s) {
|
|
3231
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), V.INVALID_VALUE, s) || this;
|
|
3262
3232
|
}
|
|
3263
3233
|
return t;
|
|
3264
|
-
}(
|
|
3265
|
-
),
|
|
3234
|
+
}(de)
|
|
3235
|
+
), tn = (
|
|
3266
3236
|
/** @class */
|
|
3267
3237
|
function(e) {
|
|
3268
|
-
|
|
3269
|
-
function t(
|
|
3270
|
-
return e.call(this, 'Value for "'.concat(
|
|
3238
|
+
ge(t, e);
|
|
3239
|
+
function t(r, n, i) {
|
|
3240
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), V.INVALID_VALUE, i) || this;
|
|
3271
3241
|
}
|
|
3272
3242
|
return t;
|
|
3273
|
-
}(
|
|
3274
|
-
),
|
|
3243
|
+
}(de)
|
|
3244
|
+
), rn = (
|
|
3275
3245
|
/** @class */
|
|
3276
3246
|
function(e) {
|
|
3277
|
-
|
|
3278
|
-
function t(
|
|
3279
|
-
return e.call(this, 'The intl string context variable "'.concat(
|
|
3247
|
+
ge(t, e);
|
|
3248
|
+
function t(r, n) {
|
|
3249
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), V.MISSING_VALUE, n) || this;
|
|
3280
3250
|
}
|
|
3281
3251
|
return t;
|
|
3282
|
-
}(
|
|
3252
|
+
}(de)
|
|
3283
3253
|
), A;
|
|
3284
3254
|
(function(e) {
|
|
3285
3255
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3286
3256
|
})(A || (A = {}));
|
|
3287
|
-
function
|
|
3288
|
-
return e.length < 2 ? e : e.reduce(function(t,
|
|
3289
|
-
var
|
|
3290
|
-
return !
|
|
3257
|
+
function nn(e) {
|
|
3258
|
+
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3259
|
+
var n = t[t.length - 1];
|
|
3260
|
+
return !n || n.type !== A.literal || r.type !== A.literal ? t.push(r) : n.value += r.value, t;
|
|
3291
3261
|
}, []);
|
|
3292
3262
|
}
|
|
3293
|
-
function
|
|
3263
|
+
function sn(e) {
|
|
3294
3264
|
return typeof e == "function";
|
|
3295
3265
|
}
|
|
3296
|
-
function
|
|
3297
|
-
if (e.length === 1 &&
|
|
3266
|
+
function oe(e, t, r, n, i, s, u) {
|
|
3267
|
+
if (e.length === 1 && Ve(e[0]))
|
|
3298
3268
|
return [
|
|
3299
3269
|
{
|
|
3300
3270
|
type: A.literal,
|
|
3301
3271
|
value: e[0].value
|
|
3302
3272
|
}
|
|
3303
3273
|
];
|
|
3304
|
-
for (var o = [], l = 0,
|
|
3305
|
-
var h =
|
|
3306
|
-
if (
|
|
3274
|
+
for (var o = [], l = 0, a = e; l < a.length; l++) {
|
|
3275
|
+
var h = a[l];
|
|
3276
|
+
if (Ve(h)) {
|
|
3307
3277
|
o.push({
|
|
3308
3278
|
type: A.literal,
|
|
3309
3279
|
value: h.value
|
|
3310
3280
|
});
|
|
3311
3281
|
continue;
|
|
3312
3282
|
}
|
|
3313
|
-
if (
|
|
3283
|
+
if (Br(h)) {
|
|
3314
3284
|
typeof s == "number" && o.push({
|
|
3315
3285
|
type: A.literal,
|
|
3316
|
-
value:
|
|
3286
|
+
value: r.getNumberFormat(t).format(s)
|
|
3317
3287
|
});
|
|
3318
3288
|
continue;
|
|
3319
3289
|
}
|
|
3320
3290
|
var c = h.value;
|
|
3321
3291
|
if (!(i && c in i))
|
|
3322
|
-
throw new
|
|
3292
|
+
throw new rn(c, u);
|
|
3323
3293
|
var f = i[c];
|
|
3324
|
-
if (
|
|
3294
|
+
if (Sr(h)) {
|
|
3325
3295
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), o.push({
|
|
3326
3296
|
type: typeof f == "string" ? A.literal : A.object,
|
|
3327
3297
|
value: f
|
|
3328
3298
|
});
|
|
3329
3299
|
continue;
|
|
3330
3300
|
}
|
|
3331
|
-
if (
|
|
3332
|
-
var b = typeof h.style == "string" ?
|
|
3301
|
+
if (bt(h)) {
|
|
3302
|
+
var b = typeof h.style == "string" ? n.date[h.style] : Pe(h.style) ? h.style.parsedOptions : void 0;
|
|
3333
3303
|
o.push({
|
|
3334
3304
|
type: A.literal,
|
|
3335
|
-
value:
|
|
3305
|
+
value: r.getDateTimeFormat(t, b).format(f)
|
|
3336
3306
|
});
|
|
3337
3307
|
continue;
|
|
3338
3308
|
}
|
|
3339
|
-
if (
|
|
3340
|
-
var b = typeof h.style == "string" ?
|
|
3309
|
+
if (pt(h)) {
|
|
3310
|
+
var b = typeof h.style == "string" ? n.time[h.style] : Pe(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3341
3311
|
o.push({
|
|
3342
3312
|
type: A.literal,
|
|
3343
|
-
value:
|
|
3313
|
+
value: r.getDateTimeFormat(t, b).format(f)
|
|
3344
3314
|
});
|
|
3345
3315
|
continue;
|
|
3346
3316
|
}
|
|
3347
3317
|
if (dt(h)) {
|
|
3348
|
-
var b = typeof h.style == "string" ?
|
|
3318
|
+
var b = typeof h.style == "string" ? n.number[h.style] : _t(h.style) ? h.style.parsedOptions : void 0;
|
|
3349
3319
|
b && b.scale && (f = f * (b.scale || 1)), o.push({
|
|
3350
3320
|
type: A.literal,
|
|
3351
|
-
value:
|
|
3321
|
+
value: r.getNumberFormat(t, b).format(f)
|
|
3352
3322
|
});
|
|
3353
3323
|
continue;
|
|
3354
3324
|
}
|
|
3355
|
-
if (
|
|
3356
|
-
var y = h.children,
|
|
3357
|
-
if (!
|
|
3358
|
-
throw new
|
|
3359
|
-
var N =
|
|
3325
|
+
if (vt(h)) {
|
|
3326
|
+
var y = h.children, x = h.value, S = i[x];
|
|
3327
|
+
if (!sn(S))
|
|
3328
|
+
throw new tn(x, "function", u);
|
|
3329
|
+
var N = oe(y, t, r, n, i, s), w = S(N.map(function(P) {
|
|
3360
3330
|
return P.value;
|
|
3361
3331
|
}));
|
|
3362
3332
|
Array.isArray(w) || (w = [w]), o.push.apply(o, w.map(function(P) {
|
|
@@ -3366,107 +3336,107 @@ function ae(e, t, n, r, i, s, a) {
|
|
|
3366
3336
|
};
|
|
3367
3337
|
}));
|
|
3368
3338
|
}
|
|
3369
|
-
if (
|
|
3339
|
+
if (yt(h)) {
|
|
3370
3340
|
var B = h.options[f] || h.options.other;
|
|
3371
3341
|
if (!B)
|
|
3372
|
-
throw new
|
|
3373
|
-
o.push.apply(o,
|
|
3342
|
+
throw new Je(h.value, f, Object.keys(h.options), u);
|
|
3343
|
+
o.push.apply(o, oe(B.value, t, r, n, i));
|
|
3374
3344
|
continue;
|
|
3375
3345
|
}
|
|
3376
|
-
if (
|
|
3346
|
+
if (Et(h)) {
|
|
3377
3347
|
var B = h.options["=".concat(f)];
|
|
3378
3348
|
if (!B) {
|
|
3379
3349
|
if (!Intl.PluralRules)
|
|
3380
|
-
throw new
|
|
3350
|
+
throw new de(`Intl.PluralRules is not available in this environment.
|
|
3381
3351
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3382
|
-
`,
|
|
3383
|
-
var O =
|
|
3352
|
+
`, V.MISSING_INTL_API, u);
|
|
3353
|
+
var O = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3384
3354
|
B = h.options[O] || h.options.other;
|
|
3385
3355
|
}
|
|
3386
3356
|
if (!B)
|
|
3387
|
-
throw new
|
|
3388
|
-
o.push.apply(o,
|
|
3357
|
+
throw new Je(h.value, f, Object.keys(h.options), u);
|
|
3358
|
+
o.push.apply(o, oe(B.value, t, r, n, i, f - (h.offset || 0)));
|
|
3389
3359
|
continue;
|
|
3390
3360
|
}
|
|
3391
3361
|
}
|
|
3392
|
-
return
|
|
3362
|
+
return nn(o);
|
|
3393
3363
|
}
|
|
3394
|
-
function
|
|
3395
|
-
return t ?
|
|
3396
|
-
return n
|
|
3364
|
+
function an(e, t) {
|
|
3365
|
+
return t ? C(C(C({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3366
|
+
return r[n] = C(C({}, e[n]), t[n] || {}), r;
|
|
3397
3367
|
}, {})) : e;
|
|
3398
3368
|
}
|
|
3399
|
-
function
|
|
3400
|
-
return t ? Object.keys(e).reduce(function(
|
|
3401
|
-
return n
|
|
3402
|
-
},
|
|
3369
|
+
function on(e, t) {
|
|
3370
|
+
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3371
|
+
return r[n] = an(e[n], t[n]), r;
|
|
3372
|
+
}, C({}, e)) : e;
|
|
3403
3373
|
}
|
|
3404
|
-
function
|
|
3374
|
+
function He(e) {
|
|
3405
3375
|
return {
|
|
3406
3376
|
create: function() {
|
|
3407
3377
|
return {
|
|
3408
3378
|
get: function(t) {
|
|
3409
3379
|
return e[t];
|
|
3410
3380
|
},
|
|
3411
|
-
set: function(t,
|
|
3412
|
-
e[t] =
|
|
3381
|
+
set: function(t, r) {
|
|
3382
|
+
e[t] = r;
|
|
3413
3383
|
}
|
|
3414
3384
|
};
|
|
3415
3385
|
}
|
|
3416
3386
|
};
|
|
3417
3387
|
}
|
|
3418
|
-
function
|
|
3388
|
+
function un(e) {
|
|
3419
3389
|
return e === void 0 && (e = {
|
|
3420
3390
|
number: {},
|
|
3421
3391
|
dateTime: {},
|
|
3422
3392
|
pluralRules: {}
|
|
3423
3393
|
}), {
|
|
3424
|
-
getNumberFormat:
|
|
3425
|
-
for (var t,
|
|
3426
|
-
n
|
|
3427
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3394
|
+
getNumberFormat: ve(function() {
|
|
3395
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3396
|
+
r[n] = arguments[n];
|
|
3397
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ee([void 0], r, !1)))();
|
|
3428
3398
|
}, {
|
|
3429
|
-
cache:
|
|
3430
|
-
strategy:
|
|
3399
|
+
cache: He(e.number),
|
|
3400
|
+
strategy: _e.variadic
|
|
3431
3401
|
}),
|
|
3432
|
-
getDateTimeFormat:
|
|
3433
|
-
for (var t,
|
|
3434
|
-
n
|
|
3435
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3402
|
+
getDateTimeFormat: ve(function() {
|
|
3403
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3404
|
+
r[n] = arguments[n];
|
|
3405
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ee([void 0], r, !1)))();
|
|
3436
3406
|
}, {
|
|
3437
|
-
cache:
|
|
3438
|
-
strategy:
|
|
3407
|
+
cache: He(e.dateTime),
|
|
3408
|
+
strategy: _e.variadic
|
|
3439
3409
|
}),
|
|
3440
|
-
getPluralRules:
|
|
3441
|
-
for (var t,
|
|
3442
|
-
n
|
|
3443
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3410
|
+
getPluralRules: ve(function() {
|
|
3411
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3412
|
+
r[n] = arguments[n];
|
|
3413
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ee([void 0], r, !1)))();
|
|
3444
3414
|
}, {
|
|
3445
|
-
cache:
|
|
3446
|
-
strategy:
|
|
3415
|
+
cache: He(e.pluralRules),
|
|
3416
|
+
strategy: _e.variadic
|
|
3447
3417
|
})
|
|
3448
3418
|
};
|
|
3449
3419
|
}
|
|
3450
|
-
var
|
|
3420
|
+
var hn = (
|
|
3451
3421
|
/** @class */
|
|
3452
3422
|
function() {
|
|
3453
|
-
function e(t,
|
|
3454
|
-
|
|
3423
|
+
function e(t, r, n, i) {
|
|
3424
|
+
r === void 0 && (r = e.defaultLocale);
|
|
3455
3425
|
var s = this;
|
|
3456
3426
|
if (this.formatterCache = {
|
|
3457
3427
|
number: {},
|
|
3458
3428
|
dateTime: {},
|
|
3459
3429
|
pluralRules: {}
|
|
3460
3430
|
}, this.format = function(l) {
|
|
3461
|
-
var
|
|
3462
|
-
if (
|
|
3463
|
-
return
|
|
3464
|
-
var h =
|
|
3431
|
+
var a = s.formatToParts(l);
|
|
3432
|
+
if (a.length === 1)
|
|
3433
|
+
return a[0].value;
|
|
3434
|
+
var h = a.reduce(function(c, f) {
|
|
3465
3435
|
return !c.length || f.type !== A.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3466
3436
|
}, []);
|
|
3467
3437
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3468
3438
|
}, this.formatToParts = function(l) {
|
|
3469
|
-
return
|
|
3439
|
+
return oe(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3470
3440
|
}, this.resolvedOptions = function() {
|
|
3471
3441
|
var l;
|
|
3472
3442
|
return {
|
|
@@ -3474,18 +3444,18 @@ var ur = (
|
|
|
3474
3444
|
};
|
|
3475
3445
|
}, this.getAst = function() {
|
|
3476
3446
|
return s.ast;
|
|
3477
|
-
}, this.locales =
|
|
3447
|
+
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3478
3448
|
if (this.message = t, !e.__parse)
|
|
3479
3449
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3480
|
-
var
|
|
3481
|
-
|
|
3482
|
-
var o =
|
|
3483
|
-
this.ast = e.__parse(t,
|
|
3450
|
+
var u = i || {};
|
|
3451
|
+
u.formatters;
|
|
3452
|
+
var o = pr(u, ["formatters"]);
|
|
3453
|
+
this.ast = e.__parse(t, C(C({}, o), { locale: this.resolvedLocale }));
|
|
3484
3454
|
} else
|
|
3485
3455
|
this.ast = t;
|
|
3486
3456
|
if (!Array.isArray(this.ast))
|
|
3487
3457
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3488
|
-
this.formats =
|
|
3458
|
+
this.formats = on(e.formats, n), this.formatters = i && i.formatters || un(this.formatterCache);
|
|
3489
3459
|
}
|
|
3490
3460
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3491
3461
|
get: function() {
|
|
@@ -3495,10 +3465,10 @@ var ur = (
|
|
|
3495
3465
|
configurable: !0
|
|
3496
3466
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3497
3467
|
if (!(typeof Intl.Locale > "u")) {
|
|
3498
|
-
var
|
|
3499
|
-
return
|
|
3468
|
+
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3469
|
+
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3500
3470
|
}
|
|
3501
|
-
}, e.__parse =
|
|
3471
|
+
}, e.__parse = en, e.formats = {
|
|
3502
3472
|
number: {
|
|
3503
3473
|
integer: {
|
|
3504
3474
|
maximumFractionDigits: 0
|
|
@@ -3559,113 +3529,113 @@ var ur = (
|
|
|
3559
3529
|
}, e;
|
|
3560
3530
|
}()
|
|
3561
3531
|
);
|
|
3562
|
-
function
|
|
3532
|
+
function ln(e, t) {
|
|
3563
3533
|
if (t == null)
|
|
3564
3534
|
return;
|
|
3565
3535
|
if (t in e)
|
|
3566
3536
|
return e[t];
|
|
3567
|
-
const
|
|
3568
|
-
let
|
|
3569
|
-
for (let i = 0; i <
|
|
3570
|
-
if (typeof
|
|
3537
|
+
const r = t.split(".");
|
|
3538
|
+
let n = e;
|
|
3539
|
+
for (let i = 0; i < r.length; i++)
|
|
3540
|
+
if (typeof n == "object") {
|
|
3571
3541
|
if (i > 0) {
|
|
3572
|
-
const s =
|
|
3573
|
-
if (s in
|
|
3574
|
-
|
|
3542
|
+
const s = r.slice(i, r.length).join(".");
|
|
3543
|
+
if (s in n) {
|
|
3544
|
+
n = n[s];
|
|
3575
3545
|
break;
|
|
3576
3546
|
}
|
|
3577
3547
|
}
|
|
3578
|
-
|
|
3548
|
+
n = n[r[i]];
|
|
3579
3549
|
} else
|
|
3580
|
-
|
|
3581
|
-
return
|
|
3550
|
+
n = void 0;
|
|
3551
|
+
return n;
|
|
3582
3552
|
}
|
|
3583
|
-
const
|
|
3553
|
+
const M = {}, fn = (e, t, r) => r && (t in M || (M[t] = {}), e in M[t] || (M[t][e] = r), r), Pt = (e, t) => {
|
|
3584
3554
|
if (t == null)
|
|
3585
3555
|
return;
|
|
3586
|
-
if (t in
|
|
3587
|
-
return
|
|
3588
|
-
const
|
|
3589
|
-
for (let
|
|
3590
|
-
const i = n
|
|
3556
|
+
if (t in M && e in M[t])
|
|
3557
|
+
return M[t][e];
|
|
3558
|
+
const r = be(t);
|
|
3559
|
+
for (let n = 0; n < r.length; n++) {
|
|
3560
|
+
const i = r[n], s = mn(i, e);
|
|
3591
3561
|
if (s)
|
|
3592
|
-
return
|
|
3562
|
+
return fn(e, t, s);
|
|
3593
3563
|
}
|
|
3594
3564
|
};
|
|
3595
|
-
let
|
|
3596
|
-
const
|
|
3597
|
-
function
|
|
3598
|
-
return
|
|
3565
|
+
let De;
|
|
3566
|
+
const Z = me({});
|
|
3567
|
+
function cn(e) {
|
|
3568
|
+
return De[e] || null;
|
|
3599
3569
|
}
|
|
3600
|
-
function
|
|
3601
|
-
return e in
|
|
3570
|
+
function Nt(e) {
|
|
3571
|
+
return e in De;
|
|
3602
3572
|
}
|
|
3603
|
-
function
|
|
3604
|
-
if (!
|
|
3573
|
+
function mn(e, t) {
|
|
3574
|
+
if (!Nt(e))
|
|
3605
3575
|
return null;
|
|
3606
|
-
const
|
|
3607
|
-
return
|
|
3576
|
+
const r = cn(e);
|
|
3577
|
+
return ln(r, t);
|
|
3608
3578
|
}
|
|
3609
|
-
function
|
|
3579
|
+
function gn(e) {
|
|
3610
3580
|
if (e == null)
|
|
3611
3581
|
return;
|
|
3612
|
-
const t =
|
|
3613
|
-
for (let
|
|
3614
|
-
const
|
|
3615
|
-
if (
|
|
3616
|
-
return
|
|
3582
|
+
const t = be(e);
|
|
3583
|
+
for (let r = 0; r < t.length; r++) {
|
|
3584
|
+
const n = t[r];
|
|
3585
|
+
if (Nt(n))
|
|
3586
|
+
return n;
|
|
3617
3587
|
}
|
|
3618
3588
|
}
|
|
3619
|
-
function
|
|
3620
|
-
delete
|
|
3589
|
+
function dn(e, ...t) {
|
|
3590
|
+
delete M[e], Z.update((r) => (r[e] = br.all([r[e] || {}, ...t]), r));
|
|
3621
3591
|
}
|
|
3622
3592
|
z(
|
|
3623
|
-
[
|
|
3593
|
+
[Z],
|
|
3624
3594
|
([e]) => Object.keys(e)
|
|
3625
3595
|
);
|
|
3626
|
-
|
|
3627
|
-
const
|
|
3628
|
-
function
|
|
3629
|
-
|
|
3596
|
+
Z.subscribe((e) => De = e);
|
|
3597
|
+
const ue = {};
|
|
3598
|
+
function bn(e, t) {
|
|
3599
|
+
ue[e].delete(t), ue[e].size === 0 && delete ue[e];
|
|
3630
3600
|
}
|
|
3631
|
-
function
|
|
3632
|
-
return
|
|
3601
|
+
function Ot(e) {
|
|
3602
|
+
return ue[e];
|
|
3633
3603
|
}
|
|
3634
|
-
function
|
|
3635
|
-
return
|
|
3636
|
-
const
|
|
3637
|
-
return [t,
|
|
3604
|
+
function pn(e) {
|
|
3605
|
+
return be(e).map((t) => {
|
|
3606
|
+
const r = Ot(t);
|
|
3607
|
+
return [t, r ? [...r] : []];
|
|
3638
3608
|
}).filter(([, t]) => t.length > 0);
|
|
3639
3609
|
}
|
|
3640
|
-
function
|
|
3641
|
-
return e == null ? !1 :
|
|
3610
|
+
function Me(e) {
|
|
3611
|
+
return e == null ? !1 : be(e).some(
|
|
3642
3612
|
(t) => {
|
|
3643
|
-
var
|
|
3644
|
-
return (
|
|
3613
|
+
var r;
|
|
3614
|
+
return (r = Ot(t)) == null ? void 0 : r.size;
|
|
3645
3615
|
}
|
|
3646
3616
|
);
|
|
3647
3617
|
}
|
|
3648
|
-
function
|
|
3618
|
+
function yn(e, t) {
|
|
3649
3619
|
return Promise.all(
|
|
3650
|
-
t.map((
|
|
3651
|
-
).then((
|
|
3652
|
-
}
|
|
3653
|
-
const
|
|
3654
|
-
function
|
|
3655
|
-
if (!
|
|
3656
|
-
return e in
|
|
3657
|
-
const t =
|
|
3658
|
-
return
|
|
3620
|
+
t.map((n) => (bn(e, n), n().then((i) => i.default || i)))
|
|
3621
|
+
).then((n) => dn(e, ...n));
|
|
3622
|
+
}
|
|
3623
|
+
const q = {};
|
|
3624
|
+
function It(e) {
|
|
3625
|
+
if (!Me(e))
|
|
3626
|
+
return e in q ? q[e] : Promise.resolve();
|
|
3627
|
+
const t = pn(e);
|
|
3628
|
+
return q[e] = Promise.all(
|
|
3659
3629
|
t.map(
|
|
3660
|
-
([
|
|
3630
|
+
([r, n]) => yn(r, n)
|
|
3661
3631
|
)
|
|
3662
3632
|
).then(() => {
|
|
3663
|
-
if (
|
|
3664
|
-
return
|
|
3665
|
-
delete
|
|
3666
|
-
}),
|
|
3633
|
+
if (Me(e))
|
|
3634
|
+
return It(e);
|
|
3635
|
+
delete q[e];
|
|
3636
|
+
}), q[e];
|
|
3667
3637
|
}
|
|
3668
|
-
const
|
|
3638
|
+
const En = {
|
|
3669
3639
|
number: {
|
|
3670
3640
|
scientific: { notation: "scientific" },
|
|
3671
3641
|
engineering: { notation: "engineering" },
|
|
@@ -3694,150 +3664,150 @@ const yr = {
|
|
|
3694
3664
|
timeZoneName: "short"
|
|
3695
3665
|
}
|
|
3696
3666
|
}
|
|
3697
|
-
},
|
|
3667
|
+
}, vn = {
|
|
3698
3668
|
fallbackLocale: null,
|
|
3699
3669
|
loadingDelay: 200,
|
|
3700
|
-
formats:
|
|
3670
|
+
formats: En,
|
|
3701
3671
|
warnOnMissingMessages: !0,
|
|
3702
3672
|
handleMissingMessage: void 0,
|
|
3703
3673
|
ignoreTag: !0
|
|
3704
|
-
},
|
|
3705
|
-
function
|
|
3706
|
-
return
|
|
3707
|
-
}
|
|
3708
|
-
const
|
|
3709
|
-
var
|
|
3710
|
-
for (var
|
|
3711
|
-
|
|
3712
|
-
if (
|
|
3713
|
-
for (var
|
|
3714
|
-
|
|
3674
|
+
}, _n = vn;
|
|
3675
|
+
function X() {
|
|
3676
|
+
return _n;
|
|
3677
|
+
}
|
|
3678
|
+
const Te = me(!1);
|
|
3679
|
+
var xn = Object.defineProperty, Hn = Object.defineProperties, Tn = Object.getOwnPropertyDescriptors, Ye = Object.getOwnPropertySymbols, Sn = Object.prototype.hasOwnProperty, Bn = Object.prototype.propertyIsEnumerable, Ke = (e, t, r) => t in e ? xn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, An = (e, t) => {
|
|
3680
|
+
for (var r in t || (t = {}))
|
|
3681
|
+
Sn.call(t, r) && Ke(e, r, t[r]);
|
|
3682
|
+
if (Ye)
|
|
3683
|
+
for (var r of Ye(t))
|
|
3684
|
+
Bn.call(t, r) && Ke(e, r, t[r]);
|
|
3715
3685
|
return e;
|
|
3716
|
-
},
|
|
3717
|
-
let
|
|
3718
|
-
const
|
|
3719
|
-
function
|
|
3720
|
-
return e.split("-").map((t,
|
|
3686
|
+
}, wn = (e, t) => Hn(e, Tn(t));
|
|
3687
|
+
let Re;
|
|
3688
|
+
const le = me(null);
|
|
3689
|
+
function et(e) {
|
|
3690
|
+
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3721
3691
|
}
|
|
3722
|
-
function
|
|
3723
|
-
const
|
|
3724
|
-
return t ? [.../* @__PURE__ */ new Set([...
|
|
3692
|
+
function be(e, t = X().fallbackLocale) {
|
|
3693
|
+
const r = et(e);
|
|
3694
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...et(t)])] : r;
|
|
3725
3695
|
}
|
|
3726
|
-
function
|
|
3727
|
-
return
|
|
3696
|
+
function $() {
|
|
3697
|
+
return Re ?? void 0;
|
|
3728
3698
|
}
|
|
3729
|
-
|
|
3730
|
-
|
|
3699
|
+
le.subscribe((e) => {
|
|
3700
|
+
Re = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3731
3701
|
});
|
|
3732
|
-
const
|
|
3733
|
-
if (e &&
|
|
3734
|
-
const { loadingDelay: t } =
|
|
3735
|
-
let
|
|
3736
|
-
return typeof window < "u" &&
|
|
3737
|
-
() =>
|
|
3702
|
+
const Pn = (e) => {
|
|
3703
|
+
if (e && gn(e) && Me(e)) {
|
|
3704
|
+
const { loadingDelay: t } = X();
|
|
3705
|
+
let r;
|
|
3706
|
+
return typeof window < "u" && $() != null && t ? r = window.setTimeout(
|
|
3707
|
+
() => Te.set(!0),
|
|
3738
3708
|
t
|
|
3739
|
-
) :
|
|
3740
|
-
|
|
3709
|
+
) : Te.set(!0), It(e).then(() => {
|
|
3710
|
+
le.set(e);
|
|
3741
3711
|
}).finally(() => {
|
|
3742
|
-
clearTimeout(
|
|
3712
|
+
clearTimeout(r), Te.set(!1);
|
|
3743
3713
|
});
|
|
3744
3714
|
}
|
|
3745
|
-
return
|
|
3746
|
-
},
|
|
3747
|
-
set:
|
|
3748
|
-
}),
|
|
3715
|
+
return le.set(e);
|
|
3716
|
+
}, R = wn(An({}, le), {
|
|
3717
|
+
set: Pn
|
|
3718
|
+
}), pe = (e) => {
|
|
3749
3719
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3750
|
-
return (
|
|
3751
|
-
const i = JSON.stringify(
|
|
3752
|
-
return i in t ? t[i] : t[i] = e(
|
|
3720
|
+
return (n) => {
|
|
3721
|
+
const i = JSON.stringify(n);
|
|
3722
|
+
return i in t ? t[i] : t[i] = e(n);
|
|
3753
3723
|
};
|
|
3754
3724
|
};
|
|
3755
|
-
var
|
|
3756
|
-
for (var
|
|
3757
|
-
|
|
3758
|
-
if (
|
|
3759
|
-
for (var
|
|
3760
|
-
|
|
3725
|
+
var Nn = Object.defineProperty, fe = Object.getOwnPropertySymbols, Lt = Object.prototype.hasOwnProperty, Ct = Object.prototype.propertyIsEnumerable, tt = (e, t, r) => t in e ? Nn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ge = (e, t) => {
|
|
3726
|
+
for (var r in t || (t = {}))
|
|
3727
|
+
Lt.call(t, r) && tt(e, r, t[r]);
|
|
3728
|
+
if (fe)
|
|
3729
|
+
for (var r of fe(t))
|
|
3730
|
+
Ct.call(t, r) && tt(e, r, t[r]);
|
|
3761
3731
|
return e;
|
|
3762
|
-
},
|
|
3763
|
-
var
|
|
3764
|
-
for (var
|
|
3765
|
-
|
|
3766
|
-
if (e != null &&
|
|
3767
|
-
for (var
|
|
3768
|
-
t.indexOf(
|
|
3769
|
-
return
|
|
3732
|
+
}, Q = (e, t) => {
|
|
3733
|
+
var r = {};
|
|
3734
|
+
for (var n in e)
|
|
3735
|
+
Lt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3736
|
+
if (e != null && fe)
|
|
3737
|
+
for (var n of fe(e))
|
|
3738
|
+
t.indexOf(n) < 0 && Ct.call(e, n) && (r[n] = e[n]);
|
|
3739
|
+
return r;
|
|
3770
3740
|
};
|
|
3771
|
-
const
|
|
3772
|
-
const { formats:
|
|
3773
|
-
if (e in
|
|
3774
|
-
return
|
|
3741
|
+
const ee = (e, t) => {
|
|
3742
|
+
const { formats: r } = X();
|
|
3743
|
+
if (e in r && t in r[e])
|
|
3744
|
+
return r[e][t];
|
|
3775
3745
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3776
|
-
},
|
|
3746
|
+
}, On = pe(
|
|
3777
3747
|
(e) => {
|
|
3778
|
-
var t = e, { locale:
|
|
3779
|
-
if (
|
|
3748
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3749
|
+
if (r == null)
|
|
3780
3750
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3781
|
-
return
|
|
3751
|
+
return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
|
|
3782
3752
|
}
|
|
3783
|
-
),
|
|
3753
|
+
), In = pe(
|
|
3784
3754
|
(e) => {
|
|
3785
|
-
var t = e, { locale:
|
|
3786
|
-
if (
|
|
3755
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3756
|
+
if (r == null)
|
|
3787
3757
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3788
|
-
return
|
|
3758
|
+
return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3789
3759
|
}
|
|
3790
|
-
),
|
|
3760
|
+
), Ln = pe(
|
|
3791
3761
|
(e) => {
|
|
3792
|
-
var t = e, { locale:
|
|
3793
|
-
if (
|
|
3762
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3763
|
+
if (r == null)
|
|
3794
3764
|
throw new Error(
|
|
3795
3765
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3796
3766
|
);
|
|
3797
|
-
return
|
|
3767
|
+
return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3798
3768
|
}
|
|
3799
|
-
),
|
|
3769
|
+
), Cn = (e = {}) => {
|
|
3800
3770
|
var t = e, {
|
|
3801
|
-
locale:
|
|
3802
|
-
} = t,
|
|
3771
|
+
locale: r = $()
|
|
3772
|
+
} = t, n = Q(t, [
|
|
3803
3773
|
"locale"
|
|
3804
3774
|
]);
|
|
3805
|
-
return
|
|
3806
|
-
},
|
|
3775
|
+
return On(Ge({ locale: r }, n));
|
|
3776
|
+
}, Mn = (e = {}) => {
|
|
3807
3777
|
var t = e, {
|
|
3808
|
-
locale:
|
|
3809
|
-
} = t,
|
|
3778
|
+
locale: r = $()
|
|
3779
|
+
} = t, n = Q(t, [
|
|
3810
3780
|
"locale"
|
|
3811
3781
|
]);
|
|
3812
|
-
return
|
|
3813
|
-
},
|
|
3782
|
+
return In(Ge({ locale: r }, n));
|
|
3783
|
+
}, Rn = (e = {}) => {
|
|
3814
3784
|
var t = e, {
|
|
3815
|
-
locale:
|
|
3816
|
-
} = t,
|
|
3785
|
+
locale: r = $()
|
|
3786
|
+
} = t, n = Q(t, [
|
|
3817
3787
|
"locale"
|
|
3818
3788
|
]);
|
|
3819
|
-
return
|
|
3820
|
-
},
|
|
3789
|
+
return Ln(Ge({ locale: r }, n));
|
|
3790
|
+
}, $n = pe(
|
|
3821
3791
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3822
|
-
(e, t =
|
|
3823
|
-
ignoreTag:
|
|
3792
|
+
(e, t = $()) => new hn(e, t, X().formats, {
|
|
3793
|
+
ignoreTag: X().ignoreTag
|
|
3824
3794
|
})
|
|
3825
|
-
),
|
|
3826
|
-
var
|
|
3827
|
-
let
|
|
3828
|
-
typeof e == "object" && (
|
|
3795
|
+
), Un = (e, t = {}) => {
|
|
3796
|
+
var r, n, i, s;
|
|
3797
|
+
let u = t;
|
|
3798
|
+
typeof e == "object" && (u = e, e = u.id);
|
|
3829
3799
|
const {
|
|
3830
3800
|
values: o,
|
|
3831
|
-
locale: l =
|
|
3832
|
-
default:
|
|
3833
|
-
} =
|
|
3801
|
+
locale: l = $(),
|
|
3802
|
+
default: a
|
|
3803
|
+
} = u;
|
|
3834
3804
|
if (l == null)
|
|
3835
3805
|
throw new Error(
|
|
3836
3806
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3837
3807
|
);
|
|
3838
|
-
let h =
|
|
3808
|
+
let h = Pt(e, l);
|
|
3839
3809
|
if (!h)
|
|
3840
|
-
h = (s = (i = (
|
|
3810
|
+
h = (s = (i = (n = (r = X()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
|
|
3841
3811
|
else if (typeof h != "string")
|
|
3842
3812
|
return console.warn(
|
|
3843
3813
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3846,7 +3816,7 @@ const K = (e, t) => {
|
|
|
3846
3816
|
return h;
|
|
3847
3817
|
let c = h;
|
|
3848
3818
|
try {
|
|
3849
|
-
c =
|
|
3819
|
+
c = $n(h, l).format(o);
|
|
3850
3820
|
} catch (f) {
|
|
3851
3821
|
f instanceof Error && console.warn(
|
|
3852
3822
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3854,337 +3824,337 @@ const K = (e, t) => {
|
|
|
3854
3824
|
);
|
|
3855
3825
|
}
|
|
3856
3826
|
return c;
|
|
3857
|
-
},
|
|
3858
|
-
z([
|
|
3859
|
-
z([
|
|
3860
|
-
z([
|
|
3861
|
-
z([
|
|
3862
|
-
function
|
|
3863
|
-
|
|
3864
|
-
|
|
3827
|
+
}, Dn = (e, t) => Rn(t).format(e), Gn = (e, t) => Mn(t).format(e), Fn = (e, t) => Cn(t).format(e), jn = (e, t = $()) => Pt(e, t), mi = z([R, Z], () => Un);
|
|
3828
|
+
z([R], () => Dn);
|
|
3829
|
+
z([R], () => Gn);
|
|
3830
|
+
z([R], () => Fn);
|
|
3831
|
+
z([R, Z], () => jn);
|
|
3832
|
+
function kn({ withLocale: e, translations: t }) {
|
|
3833
|
+
R.subscribe((r) => {
|
|
3834
|
+
r == null && (Z.set(t), R.set(e));
|
|
3865
3835
|
});
|
|
3866
3836
|
}
|
|
3867
|
-
function
|
|
3837
|
+
function Vn(e, t) {
|
|
3868
3838
|
if (e) {
|
|
3869
|
-
const
|
|
3870
|
-
|
|
3839
|
+
const r = document.createElement("style");
|
|
3840
|
+
r.innerHTML = t, e.appendChild(r);
|
|
3871
3841
|
}
|
|
3872
3842
|
}
|
|
3873
|
-
function
|
|
3874
|
-
const
|
|
3875
|
-
fetch(
|
|
3843
|
+
function Xn(e, t) {
|
|
3844
|
+
const r = new URL(t);
|
|
3845
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
3876
3846
|
const i = document.createElement("style");
|
|
3877
|
-
i.innerHTML =
|
|
3878
|
-
}).catch((
|
|
3879
|
-
console.error("There was an error while trying to load client styling from URL",
|
|
3847
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
3848
|
+
}).catch((n) => {
|
|
3849
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
3880
3850
|
});
|
|
3881
3851
|
}
|
|
3882
|
-
function
|
|
3852
|
+
function Wn(e, t, r) {
|
|
3883
3853
|
if (window.emMessageBus) {
|
|
3884
|
-
const
|
|
3854
|
+
const n = document.createElement("style");
|
|
3885
3855
|
window.emMessageBus.subscribe(t, (i) => {
|
|
3886
|
-
|
|
3856
|
+
n.innerHTML = i, e && e.appendChild(n);
|
|
3887
3857
|
});
|
|
3888
3858
|
}
|
|
3889
3859
|
}
|
|
3890
3860
|
if (typeof window < "u") {
|
|
3891
3861
|
let e = function(t) {
|
|
3892
|
-
return function(...
|
|
3862
|
+
return function(...r) {
|
|
3893
3863
|
try {
|
|
3894
|
-
return t.apply(this,
|
|
3895
|
-
} catch (
|
|
3896
|
-
if (
|
|
3864
|
+
return t.apply(this, r);
|
|
3865
|
+
} catch (n) {
|
|
3866
|
+
if (n instanceof DOMException && n.message.includes("has already been used with this registry") || n.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
3897
3867
|
return !1;
|
|
3898
|
-
throw
|
|
3868
|
+
throw n;
|
|
3899
3869
|
}
|
|
3900
3870
|
};
|
|
3901
3871
|
};
|
|
3902
|
-
customElements.define = e(customElements.define), import("./CasinoGamesCategorySectionNd-
|
|
3872
|
+
customElements.define = e(customElements.define), import("./CasinoGamesCategorySectionNd-CHQjp29a.js").then(({ default: t }) => {
|
|
3903
3873
|
!customElements.get("casino-games-category-section-nd") && customElements.define("casino-games-category-section-nd", t.element);
|
|
3904
3874
|
});
|
|
3905
3875
|
}
|
|
3906
|
-
function
|
|
3907
|
-
|
|
3876
|
+
function zn(e) {
|
|
3877
|
+
$t(e, "svelte-nazqps", ".CasinoFavoritesSectionContainer{font-family:inherit;background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}");
|
|
3908
3878
|
}
|
|
3909
|
-
function
|
|
3879
|
+
function rt(e) {
|
|
3910
3880
|
let t;
|
|
3911
3881
|
return {
|
|
3912
3882
|
c() {
|
|
3913
|
-
t =
|
|
3883
|
+
t = re("casino-games-category-section-nd"), g(
|
|
3914
3884
|
t,
|
|
3915
3885
|
"session",
|
|
3916
3886
|
/*session*/
|
|
3917
3887
|
e[4]
|
|
3918
|
-
),
|
|
3888
|
+
), g(
|
|
3919
3889
|
t,
|
|
3920
3890
|
"userid",
|
|
3921
3891
|
/*userid*/
|
|
3922
3892
|
e[5]
|
|
3923
|
-
),
|
|
3893
|
+
), g(
|
|
3924
3894
|
t,
|
|
3925
3895
|
"endpoint",
|
|
3926
3896
|
/*endpoint*/
|
|
3927
3897
|
e[0]
|
|
3928
|
-
),
|
|
3898
|
+
), g(
|
|
3929
3899
|
t,
|
|
3930
3900
|
"datasource",
|
|
3931
3901
|
/*datasource*/
|
|
3932
3902
|
e[1]
|
|
3933
|
-
),
|
|
3903
|
+
), g(
|
|
3934
3904
|
t,
|
|
3935
3905
|
"lang",
|
|
3936
3906
|
/*lang*/
|
|
3937
3907
|
e[3]
|
|
3938
|
-
),
|
|
3908
|
+
), g(
|
|
3939
3909
|
t,
|
|
3940
3910
|
"currency",
|
|
3941
3911
|
/*currency*/
|
|
3942
3912
|
e[2]
|
|
3943
|
-
),
|
|
3913
|
+
), g(
|
|
3944
3914
|
t,
|
|
3945
3915
|
"favorites",
|
|
3946
3916
|
/*favorites*/
|
|
3947
3917
|
e[16]
|
|
3948
|
-
),
|
|
3918
|
+
), g(
|
|
3949
3919
|
t,
|
|
3950
3920
|
"fetchviaevent",
|
|
3951
3921
|
/*fetchviaevent*/
|
|
3952
3922
|
e[18]
|
|
3953
|
-
),
|
|
3923
|
+
), g(t, "categoryid", "FAVORITES"), g(t, "class", "CategoryContainer"), g(
|
|
3954
3924
|
t,
|
|
3955
3925
|
"showgamename",
|
|
3956
3926
|
/*showgamename*/
|
|
3957
3927
|
e[13]
|
|
3958
|
-
),
|
|
3928
|
+
), g(
|
|
3959
3929
|
t,
|
|
3960
3930
|
"clientstyling",
|
|
3961
3931
|
/*clientstyling*/
|
|
3962
3932
|
e[7]
|
|
3963
|
-
),
|
|
3933
|
+
), g(
|
|
3964
3934
|
t,
|
|
3965
3935
|
"clientstylingurl",
|
|
3966
3936
|
/*clientstylingurl*/
|
|
3967
3937
|
e[8]
|
|
3968
|
-
),
|
|
3938
|
+
), g(
|
|
3969
3939
|
t,
|
|
3970
3940
|
"translationurl",
|
|
3971
3941
|
/*translationurl*/
|
|
3972
3942
|
e[9]
|
|
3973
|
-
),
|
|
3943
|
+
), g(
|
|
3974
3944
|
t,
|
|
3975
3945
|
"livecasino",
|
|
3976
3946
|
/*livecasino*/
|
|
3977
3947
|
e[10]
|
|
3978
|
-
),
|
|
3948
|
+
), g(
|
|
3979
3949
|
t,
|
|
3980
3950
|
"visiblegames",
|
|
3981
3951
|
/*visiblegames*/
|
|
3982
3952
|
e[15]
|
|
3983
|
-
),
|
|
3953
|
+
), g(
|
|
3984
3954
|
t,
|
|
3985
3955
|
"gamepagemodalurl",
|
|
3986
3956
|
/*gamepagemodalurl*/
|
|
3987
3957
|
e[14]
|
|
3988
|
-
),
|
|
3958
|
+
), g(
|
|
3989
3959
|
t,
|
|
3990
3960
|
"integratedgameframedesktop",
|
|
3991
3961
|
/*integratedgameframedesktop*/
|
|
3992
3962
|
e[12]
|
|
3993
|
-
),
|
|
3963
|
+
), g(
|
|
3994
3964
|
t,
|
|
3995
3965
|
"integratedgameframemobile",
|
|
3996
3966
|
/*integratedgameframemobile*/
|
|
3997
3967
|
e[11]
|
|
3998
|
-
),
|
|
3968
|
+
), g(
|
|
3999
3969
|
t,
|
|
4000
3970
|
"casinomygames",
|
|
4001
3971
|
/*casinomygames*/
|
|
4002
3972
|
e[17]
|
|
4003
|
-
),
|
|
3973
|
+
), g(
|
|
4004
3974
|
t,
|
|
4005
3975
|
"mbsource",
|
|
4006
3976
|
/*mbsource*/
|
|
4007
3977
|
e[6]
|
|
4008
3978
|
);
|
|
4009
3979
|
},
|
|
4010
|
-
m(
|
|
4011
|
-
|
|
3980
|
+
m(r, n) {
|
|
3981
|
+
ce(r, t, n);
|
|
4012
3982
|
},
|
|
4013
|
-
p(
|
|
4014
|
-
|
|
4015
|
-
16 &&
|
|
3983
|
+
p(r, n) {
|
|
3984
|
+
n & /*session*/
|
|
3985
|
+
16 && g(
|
|
4016
3986
|
t,
|
|
4017
3987
|
"session",
|
|
4018
3988
|
/*session*/
|
|
4019
|
-
|
|
4020
|
-
),
|
|
4021
|
-
32 &&
|
|
3989
|
+
r[4]
|
|
3990
|
+
), n & /*userid*/
|
|
3991
|
+
32 && g(
|
|
4022
3992
|
t,
|
|
4023
3993
|
"userid",
|
|
4024
3994
|
/*userid*/
|
|
4025
|
-
|
|
4026
|
-
),
|
|
4027
|
-
1 &&
|
|
3995
|
+
r[5]
|
|
3996
|
+
), n & /*endpoint*/
|
|
3997
|
+
1 && g(
|
|
4028
3998
|
t,
|
|
4029
3999
|
"endpoint",
|
|
4030
4000
|
/*endpoint*/
|
|
4031
|
-
|
|
4032
|
-
),
|
|
4033
|
-
2 &&
|
|
4001
|
+
r[0]
|
|
4002
|
+
), n & /*datasource*/
|
|
4003
|
+
2 && g(
|
|
4034
4004
|
t,
|
|
4035
4005
|
"datasource",
|
|
4036
4006
|
/*datasource*/
|
|
4037
|
-
|
|
4038
|
-
),
|
|
4039
|
-
8 &&
|
|
4007
|
+
r[1]
|
|
4008
|
+
), n & /*lang*/
|
|
4009
|
+
8 && g(
|
|
4040
4010
|
t,
|
|
4041
4011
|
"lang",
|
|
4042
4012
|
/*lang*/
|
|
4043
|
-
|
|
4044
|
-
),
|
|
4045
|
-
4 &&
|
|
4013
|
+
r[3]
|
|
4014
|
+
), n & /*currency*/
|
|
4015
|
+
4 && g(
|
|
4046
4016
|
t,
|
|
4047
4017
|
"currency",
|
|
4048
4018
|
/*currency*/
|
|
4049
|
-
|
|
4050
|
-
),
|
|
4051
|
-
65536 &&
|
|
4019
|
+
r[2]
|
|
4020
|
+
), n & /*favorites*/
|
|
4021
|
+
65536 && g(
|
|
4052
4022
|
t,
|
|
4053
4023
|
"favorites",
|
|
4054
4024
|
/*favorites*/
|
|
4055
|
-
|
|
4056
|
-
),
|
|
4057
|
-
262144 &&
|
|
4025
|
+
r[16]
|
|
4026
|
+
), n & /*fetchviaevent*/
|
|
4027
|
+
262144 && g(
|
|
4058
4028
|
t,
|
|
4059
4029
|
"fetchviaevent",
|
|
4060
4030
|
/*fetchviaevent*/
|
|
4061
|
-
|
|
4062
|
-
),
|
|
4063
|
-
8192 &&
|
|
4031
|
+
r[18]
|
|
4032
|
+
), n & /*showgamename*/
|
|
4033
|
+
8192 && g(
|
|
4064
4034
|
t,
|
|
4065
4035
|
"showgamename",
|
|
4066
4036
|
/*showgamename*/
|
|
4067
|
-
|
|
4068
|
-
),
|
|
4069
|
-
128 &&
|
|
4037
|
+
r[13]
|
|
4038
|
+
), n & /*clientstyling*/
|
|
4039
|
+
128 && g(
|
|
4070
4040
|
t,
|
|
4071
4041
|
"clientstyling",
|
|
4072
4042
|
/*clientstyling*/
|
|
4073
|
-
|
|
4074
|
-
),
|
|
4075
|
-
256 &&
|
|
4043
|
+
r[7]
|
|
4044
|
+
), n & /*clientstylingurl*/
|
|
4045
|
+
256 && g(
|
|
4076
4046
|
t,
|
|
4077
4047
|
"clientstylingurl",
|
|
4078
4048
|
/*clientstylingurl*/
|
|
4079
|
-
|
|
4080
|
-
),
|
|
4081
|
-
512 &&
|
|
4049
|
+
r[8]
|
|
4050
|
+
), n & /*translationurl*/
|
|
4051
|
+
512 && g(
|
|
4082
4052
|
t,
|
|
4083
4053
|
"translationurl",
|
|
4084
4054
|
/*translationurl*/
|
|
4085
|
-
|
|
4086
|
-
),
|
|
4087
|
-
1024 &&
|
|
4055
|
+
r[9]
|
|
4056
|
+
), n & /*livecasino*/
|
|
4057
|
+
1024 && g(
|
|
4088
4058
|
t,
|
|
4089
4059
|
"livecasino",
|
|
4090
4060
|
/*livecasino*/
|
|
4091
|
-
|
|
4092
|
-
),
|
|
4093
|
-
32768 &&
|
|
4061
|
+
r[10]
|
|
4062
|
+
), n & /*visiblegames*/
|
|
4063
|
+
32768 && g(
|
|
4094
4064
|
t,
|
|
4095
4065
|
"visiblegames",
|
|
4096
4066
|
/*visiblegames*/
|
|
4097
|
-
|
|
4098
|
-
),
|
|
4099
|
-
16384 &&
|
|
4067
|
+
r[15]
|
|
4068
|
+
), n & /*gamepagemodalurl*/
|
|
4069
|
+
16384 && g(
|
|
4100
4070
|
t,
|
|
4101
4071
|
"gamepagemodalurl",
|
|
4102
4072
|
/*gamepagemodalurl*/
|
|
4103
|
-
|
|
4104
|
-
),
|
|
4105
|
-
4096 &&
|
|
4073
|
+
r[14]
|
|
4074
|
+
), n & /*integratedgameframedesktop*/
|
|
4075
|
+
4096 && g(
|
|
4106
4076
|
t,
|
|
4107
4077
|
"integratedgameframedesktop",
|
|
4108
4078
|
/*integratedgameframedesktop*/
|
|
4109
|
-
|
|
4110
|
-
),
|
|
4111
|
-
2048 &&
|
|
4079
|
+
r[12]
|
|
4080
|
+
), n & /*integratedgameframemobile*/
|
|
4081
|
+
2048 && g(
|
|
4112
4082
|
t,
|
|
4113
4083
|
"integratedgameframemobile",
|
|
4114
4084
|
/*integratedgameframemobile*/
|
|
4115
|
-
|
|
4116
|
-
),
|
|
4117
|
-
131072 &&
|
|
4085
|
+
r[11]
|
|
4086
|
+
), n & /*casinomygames*/
|
|
4087
|
+
131072 && g(
|
|
4118
4088
|
t,
|
|
4119
4089
|
"casinomygames",
|
|
4120
4090
|
/*casinomygames*/
|
|
4121
|
-
|
|
4122
|
-
),
|
|
4123
|
-
64 &&
|
|
4091
|
+
r[17]
|
|
4092
|
+
), n & /*mbsource*/
|
|
4093
|
+
64 && g(
|
|
4124
4094
|
t,
|
|
4125
4095
|
"mbsource",
|
|
4126
4096
|
/*mbsource*/
|
|
4127
|
-
|
|
4097
|
+
r[6]
|
|
4128
4098
|
);
|
|
4129
4099
|
},
|
|
4130
|
-
d(
|
|
4131
|
-
|
|
4100
|
+
d(r) {
|
|
4101
|
+
r && te(t);
|
|
4132
4102
|
}
|
|
4133
4103
|
};
|
|
4134
4104
|
}
|
|
4135
|
-
function
|
|
4136
|
-
let t,
|
|
4105
|
+
function Zn(e) {
|
|
4106
|
+
let t, r = (
|
|
4137
4107
|
/*session*/
|
|
4138
|
-
e[4] &&
|
|
4108
|
+
e[4] && rt(e)
|
|
4139
4109
|
);
|
|
4140
4110
|
return {
|
|
4141
4111
|
c() {
|
|
4142
|
-
t =
|
|
4112
|
+
t = re("div"), r && r.c(), Ue(t, "class", "CasinoFavoritesSectionContainer");
|
|
4143
4113
|
},
|
|
4144
|
-
m(
|
|
4145
|
-
|
|
4114
|
+
m(n, i) {
|
|
4115
|
+
ce(n, t, i), r && r.m(t, null), e[20](t);
|
|
4146
4116
|
},
|
|
4147
|
-
p(
|
|
4117
|
+
p(n, [i]) {
|
|
4148
4118
|
/*session*/
|
|
4149
|
-
|
|
4119
|
+
n[4] ? r ? r.p(n, i) : (r = rt(n), r.c(), r.m(t, null)) : r && (r.d(1), r = null);
|
|
4150
4120
|
},
|
|
4151
4121
|
i: I,
|
|
4152
4122
|
o: I,
|
|
4153
|
-
d(
|
|
4154
|
-
|
|
4123
|
+
d(n) {
|
|
4124
|
+
n && te(t), r && r.d(), e[20](null);
|
|
4155
4125
|
}
|
|
4156
4126
|
};
|
|
4157
4127
|
}
|
|
4158
|
-
function
|
|
4159
|
-
let { endpoint:
|
|
4160
|
-
|
|
4128
|
+
function Qn(e, t, r) {
|
|
4129
|
+
let { endpoint: n = "" } = t, { datasource: i = "" } = t, { currency: s = "" } = t, { lang: u = "" } = t, { session: o = "" } = t, { userid: l = "" } = t, { mbsource: a } = t, { clientstyling: h = "" } = t, { clientstylingurl: c = "" } = t, { translationurl: f = "" } = t, { livecasino: b = "false" } = t, { integratedgameframemobile: y = "false" } = t, { integratedgameframedesktop: x = "false" } = t, { showgamename: S = "" } = t, { gamepagemodalurl: N = "false" } = t, { visiblegames: w = "" } = t, { favorites: B = "" } = t, { casinomygames: O = "false" } = t, { fetchviaevent: P = "true" } = t, T;
|
|
4130
|
+
kn({ withLocale: "en", translations: {} }), kt(() => () => {
|
|
4161
4131
|
});
|
|
4162
|
-
function
|
|
4163
|
-
|
|
4164
|
-
T = m,
|
|
4132
|
+
function v(m) {
|
|
4133
|
+
Se[m ? "unshift" : "push"](() => {
|
|
4134
|
+
T = m, r(19, T);
|
|
4165
4135
|
});
|
|
4166
4136
|
}
|
|
4167
4137
|
return e.$$set = (m) => {
|
|
4168
|
-
"endpoint" in m &&
|
|
4138
|
+
"endpoint" in m && r(0, n = m.endpoint), "datasource" in m && r(1, i = m.datasource), "currency" in m && r(2, s = m.currency), "lang" in m && r(3, u = m.lang), "session" in m && r(4, o = m.session), "userid" in m && r(5, l = m.userid), "mbsource" in m && r(6, a = m.mbsource), "clientstyling" in m && r(7, h = m.clientstyling), "clientstylingurl" in m && r(8, c = m.clientstylingurl), "translationurl" in m && r(9, f = m.translationurl), "livecasino" in m && r(10, b = m.livecasino), "integratedgameframemobile" in m && r(11, y = m.integratedgameframemobile), "integratedgameframedesktop" in m && r(12, x = m.integratedgameframedesktop), "showgamename" in m && r(13, S = m.showgamename), "gamepagemodalurl" in m && r(14, N = m.gamepagemodalurl), "visiblegames" in m && r(15, w = m.visiblegames), "favorites" in m && r(16, B = m.favorites), "casinomygames" in m && r(17, O = m.casinomygames), "fetchviaevent" in m && r(18, P = m.fetchviaevent);
|
|
4169
4139
|
}, e.$$.update = () => {
|
|
4170
4140
|
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4171
|
-
524416 && h && T &&
|
|
4172
|
-
524544 && c && T &&
|
|
4173
|
-
524352 &&
|
|
4141
|
+
524416 && h && T && Vn(T, h), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4142
|
+
524544 && c && T && Xn(T, c), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4143
|
+
524352 && a && T && Wn(T, `${a}.Style`);
|
|
4174
4144
|
}, [
|
|
4175
|
-
|
|
4145
|
+
n,
|
|
4176
4146
|
i,
|
|
4177
4147
|
s,
|
|
4178
|
-
|
|
4148
|
+
u,
|
|
4179
4149
|
o,
|
|
4180
4150
|
l,
|
|
4181
|
-
|
|
4151
|
+
a,
|
|
4182
4152
|
h,
|
|
4183
4153
|
c,
|
|
4184
4154
|
f,
|
|
4185
4155
|
b,
|
|
4186
4156
|
y,
|
|
4187
|
-
|
|
4157
|
+
x,
|
|
4188
4158
|
S,
|
|
4189
4159
|
N,
|
|
4190
4160
|
w,
|
|
@@ -4192,17 +4162,17 @@ function Zr(e, t, n) {
|
|
|
4192
4162
|
O,
|
|
4193
4163
|
P,
|
|
4194
4164
|
T,
|
|
4195
|
-
|
|
4165
|
+
v
|
|
4196
4166
|
];
|
|
4197
4167
|
}
|
|
4198
|
-
class
|
|
4168
|
+
class qn extends Yt {
|
|
4199
4169
|
constructor(t) {
|
|
4200
|
-
super(),
|
|
4170
|
+
super(), qt(
|
|
4201
4171
|
this,
|
|
4202
4172
|
t,
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4173
|
+
Qn,
|
|
4174
|
+
Zn,
|
|
4175
|
+
it,
|
|
4206
4176
|
{
|
|
4207
4177
|
endpoint: 0,
|
|
4208
4178
|
datasource: 1,
|
|
@@ -4224,7 +4194,7 @@ class Qr extends Jt {
|
|
|
4224
4194
|
casinomygames: 17,
|
|
4225
4195
|
fetchviaevent: 18
|
|
4226
4196
|
},
|
|
4227
|
-
|
|
4197
|
+
zn
|
|
4228
4198
|
);
|
|
4229
4199
|
}
|
|
4230
4200
|
get endpoint() {
|
|
@@ -4342,52 +4312,48 @@ class Qr extends Jt {
|
|
|
4342
4312
|
this.$$set({ fetchviaevent: t }), H();
|
|
4343
4313
|
}
|
|
4344
4314
|
}
|
|
4345
|
-
|
|
4315
|
+
Jt(qn, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, showgamename: {}, gamepagemodalurl: {}, visiblegames: {}, favorites: {}, casinomygames: {}, fetchviaevent: {} }, [], [], !0);
|
|
4346
4316
|
export {
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4317
|
+
R as $,
|
|
4318
|
+
Xn as A,
|
|
4319
|
+
Wn as B,
|
|
4320
|
+
Jt as C,
|
|
4321
|
+
mi as D,
|
|
4322
|
+
g as E,
|
|
4323
|
+
ai as F,
|
|
4324
|
+
ti as G,
|
|
4325
|
+
oi as H,
|
|
4356
4326
|
si as I,
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
mi as b,
|
|
4369
|
-
ce as c,
|
|
4370
|
-
W as d,
|
|
4371
|
-
dr as e,
|
|
4327
|
+
hi as J,
|
|
4328
|
+
ui as K,
|
|
4329
|
+
ci as L,
|
|
4330
|
+
fi as M,
|
|
4331
|
+
qn as N,
|
|
4332
|
+
Yt as S,
|
|
4333
|
+
Z as a,
|
|
4334
|
+
dn as b,
|
|
4335
|
+
$t as c,
|
|
4336
|
+
te as d,
|
|
4337
|
+
ce as e,
|
|
4372
4338
|
H as f,
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4339
|
+
re as g,
|
|
4340
|
+
Yn as h,
|
|
4341
|
+
qt as i,
|
|
4342
|
+
Se as j,
|
|
4343
|
+
Ue as k,
|
|
4344
|
+
li as l,
|
|
4345
|
+
Kn as m,
|
|
4380
4346
|
I as n,
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4347
|
+
kt as o,
|
|
4348
|
+
ni as p,
|
|
4349
|
+
Rt as q,
|
|
4350
|
+
W as r,
|
|
4351
|
+
it as s,
|
|
4352
|
+
ri as t,
|
|
4353
|
+
Gt as u,
|
|
4354
|
+
ei as v,
|
|
4355
|
+
at as w,
|
|
4356
|
+
ii as x,
|
|
4357
|
+
Jn as y,
|
|
4358
|
+
Vn as z
|
|
4393
4359
|
};
|