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