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