@everymatrix/casino-categories-providers 1.76.0 → 1.76.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CasinoCategories-B97ZfU61.cjs +16 -0
- package/components/{CasinoCategories-CXLAuWYF.js → CasinoCategories-BImygVw4.js} +726 -728
- package/components/{CasinoCategories-BqM-br8V.js → CasinoCategories-CwlYTalh.js} +744 -746
- package/components/{CasinoCategoriesProviders-BHRb__s-.cjs → CasinoCategoriesProviders-BHoYQ2ut.cjs} +1 -1
- package/components/{CasinoCategoriesProviders-BhaINbEA.js → CasinoCategoriesProviders-DzQk1OC-.js} +18 -18
- package/components/{CasinoCategoriesProviders-DMIdKBMn.js → CasinoCategoriesProviders-v9Vo-YFA.js} +16 -16
- package/components/{CasinoProviders-BMvB6Px6.js → CasinoProviders-BpSAc_EM.js} +33 -33
- package/components/{CasinoProviders-BFxUOmAA.cjs → CasinoProviders-DNWL194W.cjs} +1 -1
- package/components/{CasinoProviders-Bqh5jFuR.js → CasinoProviders-JB15M5Vn.js} +33 -33
- package/es2015/casino-categories-providers.cjs +1 -1
- package/es2015/casino-categories-providers.js +1 -1
- package/esnext/casino-categories-providers.js +1 -1
- package/package.json +1 -1
- package/stencil/index-97d17652-BgKdDb-e.cjs +1 -0
- package/stencil/{index-97d17652--F7PvMq9.js → index-97d17652-C7V2DWFg.js} +176 -176
- package/stencil/{index-97d17652-CCFHkzJw.js → index-97d17652-DIpvPU9H.js} +187 -187
- package/stencil/{ui-image-CHeV8e9p.js → ui-image-CYuYAlOX.js} +1 -1
- package/stencil/{ui-image-C7s6Uvn5.js → ui-image-D3_FGUyo.js} +1 -1
- package/stencil/{ui-image-BaHsVAxH.cjs → ui-image-DJWD4G-S.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-ByRuJtdE.js → ui-image-b7b48fe5-B-k0kWgx.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-D6iig_uN.js → ui-image-b7b48fe5-D8-wEkoZ.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DG83WzAo.cjs → ui-image-b7b48fe5-yceZ9WkN.cjs} +1 -1
- package/stencil/{ui-image_2-Bm97-wkj.js → ui-image_2-CzFe50WB.js} +2 -2
- package/stencil/{ui-image_2-DdFjzzNO.cjs → ui-image_2-Ha_4GYwN.cjs} +1 -1
- package/stencil/{ui-image_2-qO3reSlr.js → ui-image_2-z5LhXZY2.js} +2 -2
- package/components/CasinoCategories-D2i87Wp_.cjs +0 -3
- package/stencil/index-97d17652-BhLhk_xz.cjs +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var tr = Object.defineProperty, rr = Object.defineProperties;
|
|
2
|
+
var nr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Je = Object.getOwnPropertySymbols;
|
|
4
|
+
var ir = Object.prototype.hasOwnProperty, sr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var He = (e, t, r) => t in e ? tr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
ir.call(t, r) && He(e, r, t[r]);
|
|
8
|
+
if (Je)
|
|
9
|
+
for (var r of Je(t))
|
|
10
|
+
sr.call(t, r) && He(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var N = (e, t, r) => (
|
|
14
|
-
var
|
|
12
|
+
}, Ke = (e, t) => rr(e, nr(t));
|
|
13
|
+
var N = (e, t, r) => (He(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var et = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (h) => {
|
|
16
16
|
try {
|
|
17
17
|
u(r.next(h));
|
|
@@ -27,32 +27,32 @@ var tt = (e, t, r) => new Promise((n, i) => {
|
|
|
27
27
|
}, u = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(s, o);
|
|
28
28
|
u((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
import "../stencil/ui-image-
|
|
30
|
+
import "../stencil/ui-image-D3_FGUyo.js";
|
|
31
31
|
function L() {
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Tt(e) {
|
|
34
34
|
return e();
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function tt() {
|
|
37
37
|
return /* @__PURE__ */ Object.create(null);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
e.forEach(
|
|
39
|
+
function ue(e) {
|
|
40
|
+
e.forEach(Tt);
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function Xe(e) {
|
|
43
43
|
return typeof e == "function";
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Ct(e, t) {
|
|
46
46
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
47
47
|
}
|
|
48
|
-
let
|
|
49
|
-
function
|
|
50
|
-
return e === t ? !0 : (
|
|
48
|
+
let fe;
|
|
49
|
+
function be(e, t) {
|
|
50
|
+
return e === t ? !0 : (fe || (fe = document.createElement("a")), fe.href = t, e === fe.href);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function or(e) {
|
|
53
53
|
return Object.keys(e).length === 0;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function Ht(e, ...t) {
|
|
56
56
|
if (e == null) {
|
|
57
57
|
for (const n of t)
|
|
58
58
|
n(void 0);
|
|
@@ -61,20 +61,20 @@ function St(e, ...t) {
|
|
|
61
61
|
const r = e.subscribe(...t);
|
|
62
62
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
65
|
-
e.$$.on_destroy.push(
|
|
64
|
+
function ar(e, t, r) {
|
|
65
|
+
e.$$.on_destroy.push(Ht(t, r));
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function v(e, t) {
|
|
68
68
|
e.appendChild(t);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
const n =
|
|
70
|
+
function ur(e, t, r) {
|
|
71
|
+
const n = hr(e);
|
|
72
72
|
if (!n.getElementById(t)) {
|
|
73
|
-
const i =
|
|
74
|
-
i.id = t, i.textContent = r,
|
|
73
|
+
const i = S("style");
|
|
74
|
+
i.id = t, i.textContent = r, lr(n, i);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function hr(e) {
|
|
78
78
|
if (!e)
|
|
79
79
|
return document;
|
|
80
80
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -84,34 +84,34 @@ function lr(e) {
|
|
|
84
84
|
t
|
|
85
85
|
) : e.ownerDocument;
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
return
|
|
87
|
+
function lr(e, t) {
|
|
88
|
+
return v(
|
|
89
89
|
/** @type {Document} */
|
|
90
90
|
e.head || e,
|
|
91
91
|
t
|
|
92
92
|
), t.sheet;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function K(e, t, r) {
|
|
95
95
|
e.insertBefore(t, r || null);
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function k(e) {
|
|
98
98
|
e.parentNode && e.parentNode.removeChild(e);
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function rt(e, t) {
|
|
101
101
|
for (let r = 0; r < e.length; r += 1)
|
|
102
102
|
e[r] && e[r].d(t);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function S(e) {
|
|
105
105
|
return document.createElement(e);
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function D(e) {
|
|
108
108
|
return document.createTextNode(e);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
return
|
|
110
|
+
function U() {
|
|
111
|
+
return D(" ");
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
return
|
|
113
|
+
function Si() {
|
|
114
|
+
return D("");
|
|
115
115
|
}
|
|
116
116
|
function At(e, t, r, n) {
|
|
117
117
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
@@ -123,14 +123,14 @@ function R(e, t, r) {
|
|
|
123
123
|
const n = t.toLowerCase();
|
|
124
124
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : I(e, t, r);
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function fr(e) {
|
|
127
127
|
return Array.from(e.childNodes);
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function F(e, t) {
|
|
130
130
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
131
131
|
t);
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function cr(e) {
|
|
134
134
|
const t = {};
|
|
135
135
|
return e.childNodes.forEach(
|
|
136
136
|
/** @param {Element} node */
|
|
@@ -139,90 +139,90 @@ function gr(e) {
|
|
|
139
139
|
}
|
|
140
140
|
), t;
|
|
141
141
|
}
|
|
142
|
-
let
|
|
143
|
-
function
|
|
144
|
-
|
|
142
|
+
let se;
|
|
143
|
+
function ie(e) {
|
|
144
|
+
se = e;
|
|
145
145
|
}
|
|
146
|
-
function
|
|
147
|
-
if (!
|
|
146
|
+
function gr() {
|
|
147
|
+
if (!se)
|
|
148
148
|
throw new Error("Function called outside component initialization");
|
|
149
|
-
return
|
|
149
|
+
return se;
|
|
150
150
|
}
|
|
151
|
-
function
|
|
152
|
-
|
|
151
|
+
function mr(e) {
|
|
152
|
+
gr().$$.on_mount.push(e);
|
|
153
153
|
}
|
|
154
|
-
const
|
|
155
|
-
let
|
|
156
|
-
const
|
|
157
|
-
let
|
|
158
|
-
function
|
|
159
|
-
|
|
154
|
+
const W = [], Le = [];
|
|
155
|
+
let Z = [];
|
|
156
|
+
const nt = [], dr = /* @__PURE__ */ Promise.resolve();
|
|
157
|
+
let Ie = !1;
|
|
158
|
+
function pr() {
|
|
159
|
+
Ie || (Ie = !0, dr.then(M));
|
|
160
160
|
}
|
|
161
|
-
function
|
|
162
|
-
|
|
161
|
+
function Me(e) {
|
|
162
|
+
Z.push(e);
|
|
163
163
|
}
|
|
164
|
-
const
|
|
165
|
-
let
|
|
164
|
+
const Ae = /* @__PURE__ */ new Set();
|
|
165
|
+
let X = 0;
|
|
166
166
|
function M() {
|
|
167
|
-
if (
|
|
167
|
+
if (X !== 0)
|
|
168
168
|
return;
|
|
169
|
-
const e =
|
|
169
|
+
const e = se;
|
|
170
170
|
do {
|
|
171
171
|
try {
|
|
172
|
-
for (;
|
|
173
|
-
const t =
|
|
174
|
-
|
|
172
|
+
for (; X < W.length; ) {
|
|
173
|
+
const t = W[X];
|
|
174
|
+
X++, ie(t), br(t.$$);
|
|
175
175
|
}
|
|
176
176
|
} catch (t) {
|
|
177
|
-
throw
|
|
177
|
+
throw W.length = 0, X = 0, t;
|
|
178
178
|
}
|
|
179
|
-
for (
|
|
180
|
-
|
|
181
|
-
for (let t = 0; t <
|
|
182
|
-
const r =
|
|
183
|
-
|
|
179
|
+
for (ie(null), W.length = 0, X = 0; Le.length; )
|
|
180
|
+
Le.pop()();
|
|
181
|
+
for (let t = 0; t < Z.length; t += 1) {
|
|
182
|
+
const r = Z[t];
|
|
183
|
+
Ae.has(r) || (Ae.add(r), r());
|
|
184
184
|
}
|
|
185
|
-
|
|
186
|
-
} while (
|
|
187
|
-
for (;
|
|
188
|
-
|
|
189
|
-
|
|
185
|
+
Z.length = 0;
|
|
186
|
+
} while (W.length);
|
|
187
|
+
for (; nt.length; )
|
|
188
|
+
nt.pop()();
|
|
189
|
+
Ie = !1, Ae.clear(), ie(e);
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function br(e) {
|
|
192
192
|
if (e.fragment !== null) {
|
|
193
|
-
e.update(),
|
|
193
|
+
e.update(), ue(e.before_update);
|
|
194
194
|
const t = e.dirty;
|
|
195
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
195
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Me);
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function yr(e) {
|
|
199
199
|
const t = [], r = [];
|
|
200
|
-
|
|
200
|
+
Z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Z = t;
|
|
201
201
|
}
|
|
202
|
-
const
|
|
202
|
+
const _r = /* @__PURE__ */ new Set();
|
|
203
203
|
function xr(e, t) {
|
|
204
|
-
e && e.i && (
|
|
204
|
+
e && e.i && (_r.delete(e), e.i(t));
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function ce(e) {
|
|
207
207
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function Er(e, t, r) {
|
|
210
210
|
const { fragment: n, after_update: i } = e.$$;
|
|
211
|
-
n && n.m(t, r),
|
|
212
|
-
const s = e.$$.on_mount.map(
|
|
213
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
214
|
-
}), i.forEach(
|
|
211
|
+
n && n.m(t, r), Me(() => {
|
|
212
|
+
const s = e.$$.on_mount.map(Tt).filter(Xe);
|
|
213
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ue(s), e.$$.on_mount = [];
|
|
214
|
+
}), i.forEach(Me);
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function vr(e, t) {
|
|
217
217
|
const r = e.$$;
|
|
218
|
-
r.fragment !== null && (
|
|
218
|
+
r.fragment !== null && (yr(r.after_update), ue(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
219
219
|
}
|
|
220
|
-
function
|
|
221
|
-
e.$$.dirty[0] === -1 && (
|
|
220
|
+
function Tr(e, t) {
|
|
221
|
+
e.$$.dirty[0] === -1 && (W.push(e), pr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
222
222
|
}
|
|
223
|
-
function
|
|
224
|
-
const h =
|
|
225
|
-
|
|
223
|
+
function Cr(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
224
|
+
const h = se;
|
|
225
|
+
ie(e);
|
|
226
226
|
const a = e.$$ = {
|
|
227
227
|
fragment: null,
|
|
228
228
|
ctx: [],
|
|
@@ -230,7 +230,7 @@ function Hr(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
|
230
230
|
props: s,
|
|
231
231
|
update: L,
|
|
232
232
|
not_equal: i,
|
|
233
|
-
bound:
|
|
233
|
+
bound: tt(),
|
|
234
234
|
// lifecycle
|
|
235
235
|
on_mount: [],
|
|
236
236
|
on_destroy: [],
|
|
@@ -239,25 +239,25 @@ function Hr(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
|
239
239
|
after_update: [],
|
|
240
240
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
241
241
|
// everything else
|
|
242
|
-
callbacks:
|
|
242
|
+
callbacks: tt(),
|
|
243
243
|
dirty: u,
|
|
244
244
|
skip_bound: !1,
|
|
245
245
|
root: t.target || h.$$.root
|
|
246
246
|
};
|
|
247
247
|
o && o(a.root);
|
|
248
248
|
let l = !1;
|
|
249
|
-
if (a.ctx = r ? r(e, t.props || {}, (c, f, ...
|
|
250
|
-
const
|
|
251
|
-
return a.ctx && i(a.ctx[c], a.ctx[c] =
|
|
252
|
-
}) : [], a.update(), l = !0,
|
|
249
|
+
if (a.ctx = r ? r(e, t.props || {}, (c, f, ...d) => {
|
|
250
|
+
const p = d.length ? d[0] : f;
|
|
251
|
+
return a.ctx && i(a.ctx[c], a.ctx[c] = p) && (!a.skip_bound && a.bound[c] && a.bound[c](p), l && Tr(e, c)), f;
|
|
252
|
+
}) : [], a.update(), l = !0, ue(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
253
253
|
if (t.hydrate) {
|
|
254
|
-
const c =
|
|
255
|
-
a.fragment && a.fragment.l(c), c.forEach(
|
|
254
|
+
const c = fr(t.target);
|
|
255
|
+
a.fragment && a.fragment.l(c), c.forEach(k);
|
|
256
256
|
} else
|
|
257
257
|
a.fragment && a.fragment.c();
|
|
258
|
-
t.intro && xr(e.$$.fragment),
|
|
258
|
+
t.intro && xr(e.$$.fragment), Er(e, t.target, t.anchor), M();
|
|
259
259
|
}
|
|
260
|
-
|
|
260
|
+
ie(h);
|
|
261
261
|
}
|
|
262
262
|
let Bt;
|
|
263
263
|
typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
@@ -297,42 +297,42 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
299
|
connectedCallback() {
|
|
300
|
-
return
|
|
300
|
+
return et(this, null, function* () {
|
|
301
301
|
if (this.$$cn = !0, !this.$$c) {
|
|
302
302
|
let t = function(s) {
|
|
303
303
|
return () => {
|
|
304
304
|
let o;
|
|
305
305
|
return {
|
|
306
306
|
c: function() {
|
|
307
|
-
o =
|
|
307
|
+
o = S("slot"), s !== "default" && I(o, "name", s);
|
|
308
308
|
},
|
|
309
309
|
/**
|
|
310
310
|
* @param {HTMLElement} target
|
|
311
311
|
* @param {HTMLElement} [anchor]
|
|
312
312
|
*/
|
|
313
313
|
m: function(a, l) {
|
|
314
|
-
|
|
314
|
+
K(a, o, l);
|
|
315
315
|
},
|
|
316
316
|
d: function(a) {
|
|
317
|
-
a &&
|
|
317
|
+
a && k(o);
|
|
318
318
|
}
|
|
319
319
|
};
|
|
320
320
|
};
|
|
321
321
|
};
|
|
322
322
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
323
323
|
return;
|
|
324
|
-
const r = {}, n =
|
|
324
|
+
const r = {}, n = cr(this);
|
|
325
325
|
for (const s of this.$$s)
|
|
326
326
|
s in n && (r[s] = [t(s)]);
|
|
327
327
|
for (const s of this.attributes) {
|
|
328
328
|
const o = this.$$g_p(s.name);
|
|
329
|
-
o in this.$$d || (this.$$d[o] =
|
|
329
|
+
o in this.$$d || (this.$$d[o] = me(o, s.value, this.$$p_d, "toProp"));
|
|
330
330
|
}
|
|
331
331
|
for (const s in this.$$p_d)
|
|
332
332
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
333
333
|
this.$$c = new this.$$ctor({
|
|
334
334
|
target: this.shadowRoot || this,
|
|
335
|
-
props:
|
|
335
|
+
props: Ke(Ye({}, this.$$d), {
|
|
336
336
|
$$slots: r,
|
|
337
337
|
$$scope: {
|
|
338
338
|
ctx: []
|
|
@@ -343,7 +343,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
343
343
|
this.$$r = !0;
|
|
344
344
|
for (const s in this.$$p_d)
|
|
345
345
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
346
|
-
const o =
|
|
346
|
+
const o = me(
|
|
347
347
|
s,
|
|
348
348
|
this.$$d[s],
|
|
349
349
|
this.$$p_d,
|
|
@@ -367,7 +367,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
367
367
|
// and setting attributes through setAttribute etc, this is helpful
|
|
368
368
|
attributeChangedCallback(t, r, n) {
|
|
369
369
|
var i;
|
|
370
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
370
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = me(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
371
371
|
}
|
|
372
372
|
disconnectedCallback() {
|
|
373
373
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -380,7 +380,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
380
380
|
) || t;
|
|
381
381
|
}
|
|
382
382
|
});
|
|
383
|
-
function
|
|
383
|
+
function me(e, t, r, n) {
|
|
384
384
|
var s;
|
|
385
385
|
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
386
386
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -410,7 +410,7 @@ function pe(e, t, r, n) {
|
|
|
410
410
|
return t;
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
|
-
function
|
|
413
|
+
function Hr(e, t, r, n, i, s) {
|
|
414
414
|
let o = class extends Bt {
|
|
415
415
|
constructor() {
|
|
416
416
|
super(e, r, i), this.$$p_d = t;
|
|
@@ -428,7 +428,7 @@ function Sr(e, t, r, n, i, s) {
|
|
|
428
428
|
},
|
|
429
429
|
set(h) {
|
|
430
430
|
var a;
|
|
431
|
-
h =
|
|
431
|
+
h = me(u, h, t), this.$$d[u] = h, (a = this.$$c) == null || a.$set({ [u]: h });
|
|
432
432
|
}
|
|
433
433
|
});
|
|
434
434
|
}), n.forEach((u) => {
|
|
@@ -462,7 +462,7 @@ class Ar {
|
|
|
462
462
|
}
|
|
463
463
|
/** @returns {void} */
|
|
464
464
|
$destroy() {
|
|
465
|
-
|
|
465
|
+
vr(this, 1), this.$destroy = L;
|
|
466
466
|
}
|
|
467
467
|
/**
|
|
468
468
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -471,7 +471,7 @@ class Ar {
|
|
|
471
471
|
* @returns {() => void}
|
|
472
472
|
*/
|
|
473
473
|
$on(t, r) {
|
|
474
|
-
if (!
|
|
474
|
+
if (!Xe(r))
|
|
475
475
|
return L;
|
|
476
476
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
477
477
|
return n.push(r), () => {
|
|
@@ -484,29 +484,29 @@ class Ar {
|
|
|
484
484
|
* @returns {void}
|
|
485
485
|
*/
|
|
486
486
|
$set(t) {
|
|
487
|
-
this.$$set && !
|
|
487
|
+
this.$$set && !or(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
490
|
const Br = "4";
|
|
491
491
|
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Br);
|
|
492
|
-
const
|
|
493
|
-
function
|
|
492
|
+
const z = [];
|
|
493
|
+
function Sr(e, t) {
|
|
494
494
|
return {
|
|
495
|
-
subscribe:
|
|
495
|
+
subscribe: xe(e, t).subscribe
|
|
496
496
|
};
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function xe(e, t = L) {
|
|
499
499
|
let r;
|
|
500
500
|
const n = /* @__PURE__ */ new Set();
|
|
501
501
|
function i(u) {
|
|
502
|
-
if (
|
|
503
|
-
const h = !
|
|
502
|
+
if (Ct(e, u) && (e = u, r)) {
|
|
503
|
+
const h = !z.length;
|
|
504
504
|
for (const a of n)
|
|
505
|
-
a[1](),
|
|
505
|
+
a[1](), z.push(a, e);
|
|
506
506
|
if (h) {
|
|
507
|
-
for (let a = 0; a <
|
|
508
|
-
|
|
509
|
-
|
|
507
|
+
for (let a = 0; a < z.length; a += 2)
|
|
508
|
+
z[a][0](z[a + 1]);
|
|
509
|
+
z.length = 0;
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
512
|
}
|
|
@@ -521,12 +521,12 @@ function ve(e, t = L) {
|
|
|
521
521
|
}
|
|
522
522
|
return { set: i, update: s, subscribe: o };
|
|
523
523
|
}
|
|
524
|
-
function
|
|
524
|
+
function ee(e, t, r) {
|
|
525
525
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
526
526
|
if (!i.every(Boolean))
|
|
527
527
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
528
528
|
const s = t.length < 2;
|
|
529
|
-
return
|
|
529
|
+
return Sr(r, (o, u) => {
|
|
530
530
|
let h = !1;
|
|
531
531
|
const a = [];
|
|
532
532
|
let l = 0, c = L;
|
|
@@ -534,11 +534,11 @@ function te(e, t, r) {
|
|
|
534
534
|
if (l)
|
|
535
535
|
return;
|
|
536
536
|
c();
|
|
537
|
-
const
|
|
538
|
-
s ? o(
|
|
539
|
-
},
|
|
540
|
-
(
|
|
541
|
-
|
|
537
|
+
const p = t(n ? a[0] : a, o, u);
|
|
538
|
+
s ? o(p) : c = Xe(p) ? p : L;
|
|
539
|
+
}, d = i.map(
|
|
540
|
+
(p, g) => Ht(
|
|
541
|
+
p,
|
|
542
542
|
(E) => {
|
|
543
543
|
a[g] = E, l &= ~(1 << g), h && f();
|
|
544
544
|
},
|
|
@@ -548,112 +548,126 @@ function te(e, t, r) {
|
|
|
548
548
|
)
|
|
549
549
|
);
|
|
550
550
|
return h = !0, f(), function() {
|
|
551
|
-
|
|
551
|
+
ue(d), c(), h = !1;
|
|
552
552
|
};
|
|
553
553
|
});
|
|
554
554
|
}
|
|
555
|
-
function
|
|
556
|
-
return e
|
|
555
|
+
function Or(e) {
|
|
556
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
557
557
|
}
|
|
558
|
-
var
|
|
559
|
-
return
|
|
558
|
+
var wr = function(t) {
|
|
559
|
+
return Pr(t) && !Nr(t);
|
|
560
560
|
};
|
|
561
|
-
function
|
|
561
|
+
function Pr(e) {
|
|
562
562
|
return !!e && typeof e == "object";
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function Nr(e) {
|
|
565
565
|
var t = Object.prototype.toString.call(e);
|
|
566
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
566
|
+
return t === "[object RegExp]" || t === "[object Date]" || Mr(e);
|
|
567
567
|
}
|
|
568
|
-
var
|
|
569
|
-
function
|
|
570
|
-
return e.$$typeof ===
|
|
568
|
+
var Lr = typeof Symbol == "function" && Symbol.for, Ir = Lr ? Symbol.for("react.element") : 60103;
|
|
569
|
+
function Mr(e) {
|
|
570
|
+
return e.$$typeof === Ir;
|
|
571
571
|
}
|
|
572
|
-
function
|
|
572
|
+
function $r(e) {
|
|
573
573
|
return Array.isArray(e) ? [] : {};
|
|
574
574
|
}
|
|
575
|
-
function
|
|
576
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
575
|
+
function oe(e, t) {
|
|
576
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Q($r(e), e, t) : e;
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function Rr(e, t, r) {
|
|
579
579
|
return e.concat(t).map(function(n) {
|
|
580
|
-
return
|
|
580
|
+
return oe(n, r);
|
|
581
581
|
});
|
|
582
582
|
}
|
|
583
|
-
function
|
|
583
|
+
function Ur(e, t) {
|
|
584
584
|
if (!t.customMerge)
|
|
585
|
-
return
|
|
585
|
+
return Q;
|
|
586
586
|
var r = t.customMerge(e);
|
|
587
|
-
return typeof r == "function" ? r :
|
|
587
|
+
return typeof r == "function" ? r : Q;
|
|
588
588
|
}
|
|
589
|
-
function
|
|
589
|
+
function Dr(e) {
|
|
590
590
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
591
591
|
return Object.propertyIsEnumerable.call(e, t);
|
|
592
592
|
}) : [];
|
|
593
593
|
}
|
|
594
|
-
function
|
|
595
|
-
return Object.keys(e).concat(
|
|
594
|
+
function it(e) {
|
|
595
|
+
return Object.keys(e).concat(Dr(e));
|
|
596
596
|
}
|
|
597
|
-
function
|
|
597
|
+
function St(e, t) {
|
|
598
598
|
try {
|
|
599
599
|
return t in e;
|
|
600
600
|
} catch (r) {
|
|
601
601
|
return !1;
|
|
602
602
|
}
|
|
603
603
|
}
|
|
604
|
-
function
|
|
605
|
-
return
|
|
604
|
+
function Gr(e, t) {
|
|
605
|
+
return St(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
606
606
|
}
|
|
607
|
-
function
|
|
607
|
+
function Fr(e, t, r) {
|
|
608
608
|
var n = {};
|
|
609
|
-
return r.isMergeableObject(e) &&
|
|
610
|
-
n[i] =
|
|
611
|
-
}),
|
|
612
|
-
|
|
609
|
+
return r.isMergeableObject(e) && it(e).forEach(function(i) {
|
|
610
|
+
n[i] = oe(e[i], r);
|
|
611
|
+
}), it(t).forEach(function(i) {
|
|
612
|
+
Gr(e, i) || (St(e, i) && r.isMergeableObject(t[i]) ? n[i] = Ur(i, r)(e[i], t[i], r) : n[i] = oe(t[i], r));
|
|
613
613
|
}), n;
|
|
614
614
|
}
|
|
615
|
-
function
|
|
616
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
615
|
+
function Q(e, t, r) {
|
|
616
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Rr, r.isMergeableObject = r.isMergeableObject || wr, r.cloneUnlessOtherwiseSpecified = oe;
|
|
617
617
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
618
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
618
|
+
return s ? n ? r.arrayMerge(e, t, r) : Fr(e, t, r) : oe(t, r);
|
|
619
619
|
}
|
|
620
|
-
|
|
620
|
+
Q.all = function(t, r) {
|
|
621
621
|
if (!Array.isArray(t))
|
|
622
622
|
throw new Error("first argument should be an array");
|
|
623
623
|
return t.reduce(function(n, i) {
|
|
624
|
-
return
|
|
624
|
+
return Q(n, i, r);
|
|
625
625
|
}, {});
|
|
626
626
|
};
|
|
627
|
-
var
|
|
628
|
-
const
|
|
629
|
-
|
|
630
|
-
|
|
627
|
+
var jr = Q, kr = jr;
|
|
628
|
+
const Vr = /* @__PURE__ */ Or(kr);
|
|
629
|
+
/*! *****************************************************************************
|
|
630
|
+
Copyright (c) Microsoft Corporation.
|
|
631
|
+
|
|
632
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
633
|
+
purpose with or without fee is hereby granted.
|
|
634
|
+
|
|
635
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
636
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
637
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
638
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
639
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
640
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
641
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
642
|
+
***************************************************************************** */
|
|
643
|
+
var $e = function(e, t) {
|
|
644
|
+
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
631
645
|
r.__proto__ = n;
|
|
632
646
|
} || function(r, n) {
|
|
633
647
|
for (var i in n)
|
|
634
648
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
635
|
-
},
|
|
649
|
+
}, $e(e, t);
|
|
636
650
|
};
|
|
637
|
-
function
|
|
651
|
+
function Ee(e, t) {
|
|
638
652
|
if (typeof t != "function" && t !== null)
|
|
639
653
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
640
|
-
|
|
654
|
+
$e(e, t);
|
|
641
655
|
function r() {
|
|
642
656
|
this.constructor = e;
|
|
643
657
|
}
|
|
644
658
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
645
659
|
}
|
|
646
|
-
var
|
|
647
|
-
return
|
|
660
|
+
var x = function() {
|
|
661
|
+
return x = Object.assign || function(t) {
|
|
648
662
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
649
663
|
r = arguments[n];
|
|
650
664
|
for (var s in r)
|
|
651
665
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
652
666
|
}
|
|
653
667
|
return t;
|
|
654
|
-
},
|
|
668
|
+
}, x.apply(this, arguments);
|
|
655
669
|
};
|
|
656
|
-
function
|
|
670
|
+
function Xr(e, t) {
|
|
657
671
|
var r = {};
|
|
658
672
|
for (var n in e)
|
|
659
673
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -662,43 +676,46 @@ function zr(e, t) {
|
|
|
662
676
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
663
677
|
return r;
|
|
664
678
|
}
|
|
665
|
-
function
|
|
666
|
-
if (
|
|
679
|
+
function Be(e, t, r) {
|
|
680
|
+
if (arguments.length === 2)
|
|
667
681
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
668
682
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
669
|
-
return e.concat(s ||
|
|
683
|
+
return e.concat(s || t);
|
|
670
684
|
}
|
|
671
|
-
function
|
|
672
|
-
var r = t && t.cache ? t.cache :
|
|
685
|
+
function Se(e, t) {
|
|
686
|
+
var r = t && t.cache ? t.cache : Yr, n = t && t.serializer ? t.serializer : qr, i = t && t.strategy ? t.strategy : Wr;
|
|
673
687
|
return i(e, {
|
|
674
688
|
cache: r,
|
|
675
689
|
serializer: n
|
|
676
690
|
});
|
|
677
691
|
}
|
|
678
|
-
function
|
|
692
|
+
function zr(e) {
|
|
679
693
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
680
694
|
}
|
|
681
|
-
function
|
|
682
|
-
var i =
|
|
695
|
+
function Ot(e, t, r, n) {
|
|
696
|
+
var i = zr(n) ? n : r(n), s = t.get(i);
|
|
683
697
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
684
698
|
}
|
|
685
699
|
function wt(e, t, r) {
|
|
686
700
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
687
701
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
688
702
|
}
|
|
689
|
-
function
|
|
703
|
+
function ze(e, t, r, n, i) {
|
|
690
704
|
return r.bind(t, e, n, i);
|
|
691
705
|
}
|
|
692
|
-
function
|
|
693
|
-
var r = e.length === 1 ?
|
|
694
|
-
return
|
|
706
|
+
function Wr(e, t) {
|
|
707
|
+
var r = e.length === 1 ? Ot : wt;
|
|
708
|
+
return ze(e, this, r, t.cache.create(), t.serializer);
|
|
695
709
|
}
|
|
696
|
-
function
|
|
697
|
-
return
|
|
710
|
+
function Zr(e, t) {
|
|
711
|
+
return ze(e, this, wt, t.cache.create(), t.serializer);
|
|
698
712
|
}
|
|
699
|
-
|
|
713
|
+
function Qr(e, t) {
|
|
714
|
+
return ze(e, this, Ot, t.cache.create(), t.serializer);
|
|
715
|
+
}
|
|
716
|
+
var qr = function() {
|
|
700
717
|
return JSON.stringify(arguments);
|
|
701
|
-
},
|
|
718
|
+
}, Jr = (
|
|
702
719
|
/** @class */
|
|
703
720
|
function() {
|
|
704
721
|
function e() {
|
|
@@ -710,71 +727,62 @@ var Jr = function() {
|
|
|
710
727
|
this.cache[t] = r;
|
|
711
728
|
}, e;
|
|
712
729
|
}()
|
|
713
|
-
),
|
|
730
|
+
), Yr = {
|
|
714
731
|
create: function() {
|
|
715
|
-
return new
|
|
732
|
+
return new Jr();
|
|
716
733
|
}
|
|
717
|
-
},
|
|
718
|
-
variadic:
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
722
|
-
r = arguments[n];
|
|
723
|
-
for (var s in r)
|
|
724
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
725
|
-
}
|
|
726
|
-
return t;
|
|
727
|
-
}, _e.apply(this, arguments);
|
|
728
|
-
};
|
|
729
|
-
var y;
|
|
734
|
+
}, Oe = {
|
|
735
|
+
variadic: Zr,
|
|
736
|
+
monadic: Qr
|
|
737
|
+
}, y;
|
|
730
738
|
(function(e) {
|
|
731
739
|
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";
|
|
732
740
|
})(y || (y = {}));
|
|
733
|
-
var
|
|
741
|
+
var T;
|
|
734
742
|
(function(e) {
|
|
735
743
|
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";
|
|
736
|
-
})(
|
|
737
|
-
var
|
|
744
|
+
})(T || (T = {}));
|
|
745
|
+
var q;
|
|
738
746
|
(function(e) {
|
|
739
747
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
740
|
-
})(
|
|
741
|
-
function
|
|
742
|
-
return e.type ===
|
|
748
|
+
})(q || (q = {}));
|
|
749
|
+
function st(e) {
|
|
750
|
+
return e.type === T.literal;
|
|
743
751
|
}
|
|
744
|
-
function
|
|
745
|
-
return e.type ===
|
|
752
|
+
function Kr(e) {
|
|
753
|
+
return e.type === T.argument;
|
|
754
|
+
}
|
|
755
|
+
function Pt(e) {
|
|
756
|
+
return e.type === T.number;
|
|
746
757
|
}
|
|
747
758
|
function Nt(e) {
|
|
748
|
-
return e.type ===
|
|
759
|
+
return e.type === T.date;
|
|
749
760
|
}
|
|
750
761
|
function Lt(e) {
|
|
751
|
-
return e.type ===
|
|
762
|
+
return e.type === T.time;
|
|
752
763
|
}
|
|
753
764
|
function It(e) {
|
|
754
|
-
return e.type ===
|
|
765
|
+
return e.type === T.select;
|
|
755
766
|
}
|
|
756
767
|
function Mt(e) {
|
|
757
|
-
return e.type ===
|
|
768
|
+
return e.type === T.plural;
|
|
758
769
|
}
|
|
759
|
-
function
|
|
760
|
-
return e.type ===
|
|
770
|
+
function en(e) {
|
|
771
|
+
return e.type === T.pound;
|
|
761
772
|
}
|
|
762
|
-
function
|
|
763
|
-
return e.type ===
|
|
773
|
+
function $t(e) {
|
|
774
|
+
return e.type === T.tag;
|
|
764
775
|
}
|
|
765
776
|
function Rt(e) {
|
|
766
|
-
return e.type ===
|
|
777
|
+
return !!(e && typeof e == "object" && e.type === q.number);
|
|
767
778
|
}
|
|
768
|
-
function
|
|
769
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
770
|
-
}
|
|
771
|
-
function De(e) {
|
|
772
|
-
return !!(e && typeof e == "object" && e.type === J.dateTime);
|
|
779
|
+
function Re(e) {
|
|
780
|
+
return !!(e && typeof e == "object" && e.type === q.dateTime);
|
|
773
781
|
}
|
|
774
|
-
var
|
|
775
|
-
function
|
|
782
|
+
var Ut = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, tn = /(?:[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;
|
|
783
|
+
function rn(e) {
|
|
776
784
|
var t = {};
|
|
777
|
-
return e.replace(
|
|
785
|
+
return e.replace(tn, function(r) {
|
|
778
786
|
var n = r.length;
|
|
779
787
|
switch (r[0]) {
|
|
780
788
|
case "G":
|
|
@@ -863,21 +871,11 @@ function nn(e) {
|
|
|
863
871
|
return "";
|
|
864
872
|
}), t;
|
|
865
873
|
}
|
|
866
|
-
var
|
|
867
|
-
|
|
868
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
869
|
-
r = arguments[n];
|
|
870
|
-
for (var s in r)
|
|
871
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
872
|
-
}
|
|
873
|
-
return t;
|
|
874
|
-
}, C.apply(this, arguments);
|
|
875
|
-
};
|
|
876
|
-
var sn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
877
|
-
function on(e) {
|
|
874
|
+
var nn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
875
|
+
function sn(e) {
|
|
878
876
|
if (e.length === 0)
|
|
879
877
|
throw new Error("Number skeleton cannot be empty");
|
|
880
|
-
for (var t = e.split(
|
|
878
|
+
for (var t = e.split(nn).filter(function(f) {
|
|
881
879
|
return f.length > 0;
|
|
882
880
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
883
881
|
var s = i[n], o = s.split("/");
|
|
@@ -892,17 +890,17 @@ function on(e) {
|
|
|
892
890
|
}
|
|
893
891
|
return r;
|
|
894
892
|
}
|
|
895
|
-
function
|
|
893
|
+
function on(e) {
|
|
896
894
|
return e.replace(/^(.*?)-/, "");
|
|
897
895
|
}
|
|
898
|
-
var
|
|
899
|
-
function
|
|
896
|
+
var ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Dt = /^(@+)?(\+|#+)?[rs]?$/g, an = /(\*)(0+)|(#+)(0+)|(0+)/g, Gt = /^(0+)$/;
|
|
897
|
+
function at(e) {
|
|
900
898
|
var t = {};
|
|
901
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
899
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Dt, function(r, n, i) {
|
|
902
900
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
903
901
|
}), t;
|
|
904
902
|
}
|
|
905
|
-
function
|
|
903
|
+
function Ft(e) {
|
|
906
904
|
switch (e) {
|
|
907
905
|
case "sign-auto":
|
|
908
906
|
return {
|
|
@@ -942,7 +940,7 @@ function jt(e) {
|
|
|
942
940
|
};
|
|
943
941
|
}
|
|
944
942
|
}
|
|
945
|
-
function
|
|
943
|
+
function un(e) {
|
|
946
944
|
var t;
|
|
947
945
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
948
946
|
notation: "engineering"
|
|
@@ -950,17 +948,17 @@ function hn(e) {
|
|
|
950
948
|
notation: "scientific"
|
|
951
949
|
}, e = e.slice(1)), t) {
|
|
952
950
|
var r = e.slice(0, 2);
|
|
953
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
951
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Gt.test(e))
|
|
954
952
|
throw new Error("Malformed concise eng/scientific notation");
|
|
955
953
|
t.minimumIntegerDigits = e.length;
|
|
956
954
|
}
|
|
957
955
|
return t;
|
|
958
956
|
}
|
|
959
|
-
function
|
|
960
|
-
var t = {}, r =
|
|
957
|
+
function ut(e) {
|
|
958
|
+
var t = {}, r = Ft(e);
|
|
961
959
|
return r || t;
|
|
962
960
|
}
|
|
963
|
-
function
|
|
961
|
+
function hn(e) {
|
|
964
962
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
965
963
|
var i = n[r];
|
|
966
964
|
switch (i.stem) {
|
|
@@ -984,7 +982,7 @@ function ln(e) {
|
|
|
984
982
|
continue;
|
|
985
983
|
case "measure-unit":
|
|
986
984
|
case "unit":
|
|
987
|
-
t.style = "unit", t.unit =
|
|
985
|
+
t.style = "unit", t.unit = on(i.options[0]);
|
|
988
986
|
continue;
|
|
989
987
|
case "compact-short":
|
|
990
988
|
case "K":
|
|
@@ -995,13 +993,13 @@ function ln(e) {
|
|
|
995
993
|
t.notation = "compact", t.compactDisplay = "long";
|
|
996
994
|
continue;
|
|
997
995
|
case "scientific":
|
|
998
|
-
t =
|
|
999
|
-
return
|
|
996
|
+
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(h, a) {
|
|
997
|
+
return x(x({}, h), ut(a));
|
|
1000
998
|
}, {}));
|
|
1001
999
|
continue;
|
|
1002
1000
|
case "engineering":
|
|
1003
|
-
t =
|
|
1004
|
-
return
|
|
1001
|
+
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(h, a) {
|
|
1002
|
+
return x(x({}, h), ut(a));
|
|
1005
1003
|
}, {}));
|
|
1006
1004
|
continue;
|
|
1007
1005
|
case "notation-simple":
|
|
@@ -1046,45 +1044,45 @@ function ln(e) {
|
|
|
1046
1044
|
case "integer-width":
|
|
1047
1045
|
if (i.options.length > 1)
|
|
1048
1046
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1049
|
-
i.options[0].replace(
|
|
1047
|
+
i.options[0].replace(an, function(h, a, l, c, f, d) {
|
|
1050
1048
|
if (a)
|
|
1051
1049
|
t.minimumIntegerDigits = l.length;
|
|
1052
1050
|
else {
|
|
1053
1051
|
if (c && f)
|
|
1054
1052
|
throw new Error("We currently do not support maximum integer digits");
|
|
1055
|
-
if (
|
|
1053
|
+
if (d)
|
|
1056
1054
|
throw new Error("We currently do not support exact integer digits");
|
|
1057
1055
|
}
|
|
1058
1056
|
return "";
|
|
1059
1057
|
});
|
|
1060
1058
|
continue;
|
|
1061
1059
|
}
|
|
1062
|
-
if (
|
|
1060
|
+
if (Gt.test(i.stem)) {
|
|
1063
1061
|
t.minimumIntegerDigits = i.stem.length;
|
|
1064
1062
|
continue;
|
|
1065
1063
|
}
|
|
1066
|
-
if (
|
|
1064
|
+
if (ot.test(i.stem)) {
|
|
1067
1065
|
if (i.options.length > 1)
|
|
1068
1066
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1069
|
-
i.stem.replace(
|
|
1070
|
-
return l === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f &&
|
|
1067
|
+
i.stem.replace(ot, function(h, a, l, c, f, d) {
|
|
1068
|
+
return l === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && d ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + d.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1071
1069
|
});
|
|
1072
1070
|
var s = i.options[0];
|
|
1073
|
-
s === "w" ? t =
|
|
1071
|
+
s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t), at(s)));
|
|
1074
1072
|
continue;
|
|
1075
1073
|
}
|
|
1076
|
-
if (
|
|
1077
|
-
t =
|
|
1074
|
+
if (Dt.test(i.stem)) {
|
|
1075
|
+
t = x(x({}, t), at(i.stem));
|
|
1078
1076
|
continue;
|
|
1079
1077
|
}
|
|
1080
|
-
var o =
|
|
1081
|
-
o && (t =
|
|
1082
|
-
var u =
|
|
1083
|
-
u && (t =
|
|
1078
|
+
var o = Ft(i.stem);
|
|
1079
|
+
o && (t = x(x({}, t), o));
|
|
1080
|
+
var u = un(i.stem);
|
|
1081
|
+
u && (t = x(x({}, t), u));
|
|
1084
1082
|
}
|
|
1085
1083
|
return t;
|
|
1086
1084
|
}
|
|
1087
|
-
var
|
|
1085
|
+
var ge = {
|
|
1088
1086
|
"001": [
|
|
1089
1087
|
"H",
|
|
1090
1088
|
"h"
|
|
@@ -2499,13 +2497,13 @@ var me = {
|
|
|
2499
2497
|
"h"
|
|
2500
2498
|
]
|
|
2501
2499
|
};
|
|
2502
|
-
function
|
|
2500
|
+
function ln(e, t) {
|
|
2503
2501
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2504
2502
|
var i = e.charAt(n);
|
|
2505
2503
|
if (i === "j") {
|
|
2506
2504
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2507
2505
|
s++, n++;
|
|
2508
|
-
var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), h = "a", a =
|
|
2506
|
+
var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), h = "a", a = fn(t);
|
|
2509
2507
|
for ((a == "H" || a == "k") && (u = 0); u-- > 0; )
|
|
2510
2508
|
r += h;
|
|
2511
2509
|
for (; o-- > 0; )
|
|
@@ -2515,7 +2513,7 @@ function fn(e, t) {
|
|
|
2515
2513
|
}
|
|
2516
2514
|
return r;
|
|
2517
2515
|
}
|
|
2518
|
-
function
|
|
2516
|
+
function fn(e) {
|
|
2519
2517
|
var t = e.hourCycle;
|
|
2520
2518
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2521
2519
|
e.hourCycles && // @ts-ignore
|
|
@@ -2534,23 +2532,23 @@ function cn(e) {
|
|
|
2534
2532
|
}
|
|
2535
2533
|
var r = e.language, n;
|
|
2536
2534
|
r !== "root" && (n = e.maximize().region);
|
|
2537
|
-
var i =
|
|
2535
|
+
var i = ge[n || ""] || ge[r || ""] || ge["".concat(r, "-001")] || ge["001"];
|
|
2538
2536
|
return i[0];
|
|
2539
2537
|
}
|
|
2540
|
-
var
|
|
2538
|
+
var we, cn = new RegExp("^".concat(Ut.source, "*")), gn = new RegExp("".concat(Ut.source, "*$"));
|
|
2541
2539
|
function _(e, t) {
|
|
2542
2540
|
return { start: e, end: t };
|
|
2543
2541
|
}
|
|
2544
|
-
var
|
|
2542
|
+
var mn = !!String.prototype.startsWith && "_a".startsWith("a", 1), dn = !!String.fromCodePoint, pn = !!Object.fromEntries, bn = !!String.prototype.codePointAt, yn = !!String.prototype.trimStart, _n = !!String.prototype.trimEnd, xn = !!Number.isSafeInteger, En = xn ? Number.isSafeInteger : function(e) {
|
|
2545
2543
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2546
|
-
},
|
|
2544
|
+
}, Ue = !0;
|
|
2547
2545
|
try {
|
|
2548
|
-
var
|
|
2549
|
-
|
|
2546
|
+
var vn = kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2547
|
+
Ue = ((we = vn.exec("a")) === null || we === void 0 ? void 0 : we[0]) === "a";
|
|
2550
2548
|
} catch (e) {
|
|
2551
|
-
|
|
2549
|
+
Ue = !1;
|
|
2552
2550
|
}
|
|
2553
|
-
var
|
|
2551
|
+
var ht = mn ? (
|
|
2554
2552
|
// Native
|
|
2555
2553
|
function(t, r, n) {
|
|
2556
2554
|
return t.startsWith(r, n);
|
|
@@ -2560,7 +2558,7 @@ var lt = pn ? (
|
|
|
2560
2558
|
function(t, r, n) {
|
|
2561
2559
|
return t.slice(n, n + r.length) === r;
|
|
2562
2560
|
}
|
|
2563
|
-
),
|
|
2561
|
+
), De = dn ? String.fromCodePoint : (
|
|
2564
2562
|
// IE11
|
|
2565
2563
|
function() {
|
|
2566
2564
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2572,9 +2570,9 @@ var lt = pn ? (
|
|
|
2572
2570
|
}
|
|
2573
2571
|
return n;
|
|
2574
2572
|
}
|
|
2575
|
-
),
|
|
2573
|
+
), lt = (
|
|
2576
2574
|
// native
|
|
2577
|
-
|
|
2575
|
+
pn ? Object.fromEntries : (
|
|
2578
2576
|
// Ponyfill
|
|
2579
2577
|
function(t) {
|
|
2580
2578
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2584,7 +2582,7 @@ var lt = pn ? (
|
|
|
2584
2582
|
return r;
|
|
2585
2583
|
}
|
|
2586
2584
|
)
|
|
2587
|
-
),
|
|
2585
|
+
), jt = bn ? (
|
|
2588
2586
|
// Native
|
|
2589
2587
|
function(t, r) {
|
|
2590
2588
|
return t.codePointAt(r);
|
|
@@ -2598,7 +2596,7 @@ var lt = pn ? (
|
|
|
2598
2596
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2599
2597
|
}
|
|
2600
2598
|
}
|
|
2601
|
-
),
|
|
2599
|
+
), Tn = yn ? (
|
|
2602
2600
|
// Native
|
|
2603
2601
|
function(t) {
|
|
2604
2602
|
return t.trimStart();
|
|
@@ -2606,9 +2604,9 @@ var lt = pn ? (
|
|
|
2606
2604
|
) : (
|
|
2607
2605
|
// Ponyfill
|
|
2608
2606
|
function(t) {
|
|
2609
|
-
return t.replace(
|
|
2607
|
+
return t.replace(cn, "");
|
|
2610
2608
|
}
|
|
2611
|
-
),
|
|
2609
|
+
), Cn = _n ? (
|
|
2612
2610
|
// Native
|
|
2613
2611
|
function(t) {
|
|
2614
2612
|
return t.trimEnd();
|
|
@@ -2616,32 +2614,32 @@ var lt = pn ? (
|
|
|
2616
2614
|
) : (
|
|
2617
2615
|
// Ponyfill
|
|
2618
2616
|
function(t) {
|
|
2619
|
-
return t.replace(
|
|
2617
|
+
return t.replace(gn, "");
|
|
2620
2618
|
}
|
|
2621
2619
|
);
|
|
2622
|
-
function
|
|
2620
|
+
function kt(e, t) {
|
|
2623
2621
|
return new RegExp(e, t);
|
|
2624
2622
|
}
|
|
2625
|
-
var
|
|
2626
|
-
if (
|
|
2627
|
-
var
|
|
2628
|
-
|
|
2623
|
+
var Ge;
|
|
2624
|
+
if (Ue) {
|
|
2625
|
+
var ft = kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2626
|
+
Ge = function(t, r) {
|
|
2629
2627
|
var n;
|
|
2630
|
-
|
|
2631
|
-
var i =
|
|
2628
|
+
ft.lastIndex = r;
|
|
2629
|
+
var i = ft.exec(t);
|
|
2632
2630
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2633
2631
|
};
|
|
2634
2632
|
} else
|
|
2635
|
-
|
|
2633
|
+
Ge = function(t, r) {
|
|
2636
2634
|
for (var n = []; ; ) {
|
|
2637
|
-
var i =
|
|
2638
|
-
if (i === void 0 ||
|
|
2635
|
+
var i = jt(t, r);
|
|
2636
|
+
if (i === void 0 || Vt(i) || Sn(i))
|
|
2639
2637
|
break;
|
|
2640
2638
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2641
2639
|
}
|
|
2642
|
-
return
|
|
2640
|
+
return De.apply(void 0, n);
|
|
2643
2641
|
};
|
|
2644
|
-
var
|
|
2642
|
+
var Hn = (
|
|
2645
2643
|
/** @class */
|
|
2646
2644
|
function() {
|
|
2647
2645
|
function e(t, r) {
|
|
@@ -2665,14 +2663,14 @@ var Sn = (
|
|
|
2665
2663
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2666
2664
|
var u = this.clonePosition();
|
|
2667
2665
|
this.bump(), i.push({
|
|
2668
|
-
type:
|
|
2666
|
+
type: T.pound,
|
|
2669
2667
|
location: _(u, this.clonePosition())
|
|
2670
2668
|
});
|
|
2671
2669
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2672
2670
|
if (n)
|
|
2673
2671
|
break;
|
|
2674
2672
|
return this.error(y.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
|
|
2675
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2673
|
+
} else if (s === 60 && !this.ignoreTag && Fe(this.peek() || 0)) {
|
|
2676
2674
|
var o = this.parseTag(t, r);
|
|
2677
2675
|
if (o.err)
|
|
2678
2676
|
return o;
|
|
@@ -2693,7 +2691,7 @@ var Sn = (
|
|
|
2693
2691
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2694
2692
|
return {
|
|
2695
2693
|
val: {
|
|
2696
|
-
type:
|
|
2694
|
+
type: T.literal,
|
|
2697
2695
|
value: "<".concat(i, "/>"),
|
|
2698
2696
|
location: _(n, this.clonePosition())
|
|
2699
2697
|
},
|
|
@@ -2705,12 +2703,12 @@ var Sn = (
|
|
|
2705
2703
|
return s;
|
|
2706
2704
|
var o = s.val, u = this.clonePosition();
|
|
2707
2705
|
if (this.bumpIf("</")) {
|
|
2708
|
-
if (this.isEOF() || !
|
|
2706
|
+
if (this.isEOF() || !Fe(this.char()))
|
|
2709
2707
|
return this.error(y.INVALID_TAG, _(u, this.clonePosition()));
|
|
2710
2708
|
var h = this.clonePosition(), a = this.parseTagName();
|
|
2711
2709
|
return i !== a ? this.error(y.UNMATCHED_CLOSING_TAG, _(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2712
2710
|
val: {
|
|
2713
|
-
type:
|
|
2711
|
+
type: T.tag,
|
|
2714
2712
|
value: i,
|
|
2715
2713
|
children: o,
|
|
2716
2714
|
location: _(n, this.clonePosition())
|
|
@@ -2747,7 +2745,7 @@ var Sn = (
|
|
|
2747
2745
|
}
|
|
2748
2746
|
var h = _(n, this.clonePosition());
|
|
2749
2747
|
return {
|
|
2750
|
-
val: { type:
|
|
2748
|
+
val: { type: T.literal, value: i, location: h },
|
|
2751
2749
|
err: null
|
|
2752
2750
|
};
|
|
2753
2751
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
@@ -2786,12 +2784,12 @@ var Sn = (
|
|
|
2786
2784
|
r.push(n);
|
|
2787
2785
|
this.bump();
|
|
2788
2786
|
}
|
|
2789
|
-
return
|
|
2787
|
+
return De.apply(void 0, r);
|
|
2790
2788
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2791
2789
|
if (this.isEOF())
|
|
2792
2790
|
return null;
|
|
2793
2791
|
var n = this.char();
|
|
2794
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2792
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), De(n));
|
|
2795
2793
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2796
2794
|
var n = this.clonePosition();
|
|
2797
2795
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2807,7 +2805,7 @@ var Sn = (
|
|
|
2807
2805
|
case 125:
|
|
2808
2806
|
return this.bump(), {
|
|
2809
2807
|
val: {
|
|
2810
|
-
type:
|
|
2808
|
+
type: T.argument,
|
|
2811
2809
|
// value does not include the opening and closing braces.
|
|
2812
2810
|
value: i,
|
|
2813
2811
|
location: _(n, this.clonePosition())
|
|
@@ -2820,7 +2818,7 @@ var Sn = (
|
|
|
2820
2818
|
return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
|
|
2821
2819
|
}
|
|
2822
2820
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2823
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2821
|
+
var t = this.clonePosition(), r = this.offset(), n = Ge(this.message, r), i = r + n.length;
|
|
2824
2822
|
this.bumpTo(i);
|
|
2825
2823
|
var s = this.clonePosition(), o = _(t, s);
|
|
2826
2824
|
return { value: n, location: o };
|
|
@@ -2839,44 +2837,44 @@ var Sn = (
|
|
|
2839
2837
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2840
2838
|
if (c.err)
|
|
2841
2839
|
return c;
|
|
2842
|
-
var f =
|
|
2840
|
+
var f = Cn(c.val);
|
|
2843
2841
|
if (f.length === 0)
|
|
2844
2842
|
return this.error(y.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
|
2845
|
-
var
|
|
2846
|
-
a = { style: f, styleLocation:
|
|
2843
|
+
var d = _(l, this.clonePosition());
|
|
2844
|
+
a = { style: f, styleLocation: d };
|
|
2847
2845
|
}
|
|
2848
|
-
var
|
|
2849
|
-
if (
|
|
2850
|
-
return
|
|
2846
|
+
var p = this.tryParseArgumentClose(i);
|
|
2847
|
+
if (p.err)
|
|
2848
|
+
return p;
|
|
2851
2849
|
var g = _(i, this.clonePosition());
|
|
2852
|
-
if (a &&
|
|
2853
|
-
var E =
|
|
2850
|
+
if (a && ht(a == null ? void 0 : a.style, "::", 0)) {
|
|
2851
|
+
var E = Tn(a.style.slice(2));
|
|
2854
2852
|
if (u === "number") {
|
|
2855
2853
|
var c = this.parseNumberSkeletonFromString(E, a.styleLocation);
|
|
2856
2854
|
return c.err ? c : {
|
|
2857
|
-
val: { type:
|
|
2855
|
+
val: { type: T.number, value: n, location: g, style: c.val },
|
|
2858
2856
|
err: null
|
|
2859
2857
|
};
|
|
2860
2858
|
} else {
|
|
2861
2859
|
if (E.length === 0)
|
|
2862
2860
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, g);
|
|
2863
2861
|
var m = E;
|
|
2864
|
-
this.locale && (m =
|
|
2862
|
+
this.locale && (m = ln(E, this.locale));
|
|
2865
2863
|
var f = {
|
|
2866
|
-
type:
|
|
2864
|
+
type: q.dateTime,
|
|
2867
2865
|
pattern: m,
|
|
2868
2866
|
location: a.styleLocation,
|
|
2869
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2870
|
-
},
|
|
2867
|
+
parsedOptions: this.shouldParseSkeletons ? rn(m) : {}
|
|
2868
|
+
}, C = u === "date" ? T.date : T.time;
|
|
2871
2869
|
return {
|
|
2872
|
-
val: { type:
|
|
2870
|
+
val: { type: C, value: n, location: g, style: f },
|
|
2873
2871
|
err: null
|
|
2874
2872
|
};
|
|
2875
2873
|
}
|
|
2876
2874
|
}
|
|
2877
2875
|
return {
|
|
2878
2876
|
val: {
|
|
2879
|
-
type: u === "number" ?
|
|
2877
|
+
type: u === "number" ? T.number : u === "date" ? T.date : T.time,
|
|
2880
2878
|
value: n,
|
|
2881
2879
|
location: g,
|
|
2882
2880
|
style: (s = a == null ? void 0 : a.style) !== null && s !== void 0 ? s : null
|
|
@@ -2887,11 +2885,11 @@ var Sn = (
|
|
|
2887
2885
|
case "plural":
|
|
2888
2886
|
case "selectordinal":
|
|
2889
2887
|
case "select": {
|
|
2890
|
-
var
|
|
2888
|
+
var A = this.clonePosition();
|
|
2891
2889
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2892
|
-
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(
|
|
2890
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(A, x({}, A)));
|
|
2893
2891
|
this.bumpSpace();
|
|
2894
|
-
var w = this.parseIdentifierIfPossible(),
|
|
2892
|
+
var w = this.parseIdentifierIfPossible(), B = 0;
|
|
2895
2893
|
if (u !== "select" && w.value === "offset") {
|
|
2896
2894
|
if (!this.bumpIf(":"))
|
|
2897
2895
|
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
|
|
@@ -2899,29 +2897,29 @@ var Sn = (
|
|
|
2899
2897
|
var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2900
2898
|
if (c.err)
|
|
2901
2899
|
return c;
|
|
2902
|
-
this.bumpSpace(), w = this.parseIdentifierIfPossible(),
|
|
2900
|
+
this.bumpSpace(), w = this.parseIdentifierIfPossible(), B = c.val;
|
|
2903
2901
|
}
|
|
2904
2902
|
var H = this.tryParsePluralOrSelectOptions(t, u, r, w);
|
|
2905
2903
|
if (H.err)
|
|
2906
2904
|
return H;
|
|
2907
|
-
var
|
|
2908
|
-
if (
|
|
2909
|
-
return
|
|
2905
|
+
var p = this.tryParseArgumentClose(i);
|
|
2906
|
+
if (p.err)
|
|
2907
|
+
return p;
|
|
2910
2908
|
var P = _(i, this.clonePosition());
|
|
2911
2909
|
return u === "select" ? {
|
|
2912
2910
|
val: {
|
|
2913
|
-
type:
|
|
2911
|
+
type: T.select,
|
|
2914
2912
|
value: n,
|
|
2915
|
-
options:
|
|
2913
|
+
options: lt(H.val),
|
|
2916
2914
|
location: P
|
|
2917
2915
|
},
|
|
2918
2916
|
err: null
|
|
2919
2917
|
} : {
|
|
2920
2918
|
val: {
|
|
2921
|
-
type:
|
|
2919
|
+
type: T.plural,
|
|
2922
2920
|
value: n,
|
|
2923
|
-
options:
|
|
2924
|
-
offset:
|
|
2921
|
+
options: lt(H.val),
|
|
2922
|
+
offset: B,
|
|
2925
2923
|
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
|
2926
2924
|
location: P
|
|
2927
2925
|
},
|
|
@@ -2971,16 +2969,16 @@ var Sn = (
|
|
|
2971
2969
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2972
2970
|
var n = [];
|
|
2973
2971
|
try {
|
|
2974
|
-
n =
|
|
2972
|
+
n = sn(t);
|
|
2975
2973
|
} catch (i) {
|
|
2976
2974
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
2977
2975
|
}
|
|
2978
2976
|
return {
|
|
2979
2977
|
val: {
|
|
2980
|
-
type:
|
|
2978
|
+
type: q.number,
|
|
2981
2979
|
tokens: n,
|
|
2982
2980
|
location: r,
|
|
2983
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2981
|
+
parsedOptions: this.shouldParseSkeletons ? hn(n) : {}
|
|
2984
2982
|
},
|
|
2985
2983
|
err: null
|
|
2986
2984
|
};
|
|
@@ -2999,20 +2997,20 @@ var Sn = (
|
|
|
2999
2997
|
if (h.has(a))
|
|
3000
2998
|
return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3001
2999
|
a === "other" && (o = !0), this.bumpSpace();
|
|
3002
|
-
var
|
|
3000
|
+
var d = this.clonePosition();
|
|
3003
3001
|
if (!this.bumpIf("{"))
|
|
3004
3002
|
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
|
|
3005
|
-
var
|
|
3006
|
-
if (
|
|
3007
|
-
return
|
|
3008
|
-
var g = this.tryParseArgumentClose(
|
|
3003
|
+
var p = this.parseMessage(t + 1, r, n);
|
|
3004
|
+
if (p.err)
|
|
3005
|
+
return p;
|
|
3006
|
+
var g = this.tryParseArgumentClose(d);
|
|
3009
3007
|
if (g.err)
|
|
3010
3008
|
return g;
|
|
3011
3009
|
u.push([
|
|
3012
3010
|
a,
|
|
3013
3011
|
{
|
|
3014
|
-
value:
|
|
3015
|
-
location: _(
|
|
3012
|
+
value: p.val,
|
|
3013
|
+
location: _(d, this.clonePosition())
|
|
3016
3014
|
}
|
|
3017
3015
|
]), h.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, l = s.location;
|
|
3018
3016
|
}
|
|
@@ -3028,7 +3026,7 @@ var Sn = (
|
|
|
3028
3026
|
break;
|
|
3029
3027
|
}
|
|
3030
3028
|
var h = _(i, this.clonePosition());
|
|
3031
|
-
return s ? (o *= n,
|
|
3029
|
+
return s ? (o *= n, En(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3032
3030
|
}, e.prototype.offset = function() {
|
|
3033
3031
|
return this.position.offset;
|
|
3034
3032
|
}, e.prototype.isEOF = function() {
|
|
@@ -3043,7 +3041,7 @@ var Sn = (
|
|
|
3043
3041
|
var t = this.position.offset;
|
|
3044
3042
|
if (t >= this.message.length)
|
|
3045
3043
|
throw Error("out of bound");
|
|
3046
|
-
var r =
|
|
3044
|
+
var r = jt(this.message, t);
|
|
3047
3045
|
if (r === void 0)
|
|
3048
3046
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3049
3047
|
return r;
|
|
@@ -3062,7 +3060,7 @@ var Sn = (
|
|
|
3062
3060
|
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);
|
|
3063
3061
|
}
|
|
3064
3062
|
}, e.prototype.bumpIf = function(t) {
|
|
3065
|
-
if (
|
|
3063
|
+
if (ht(this.message, t, this.offset())) {
|
|
3066
3064
|
for (var r = 0; r < t.length; r++)
|
|
3067
3065
|
this.bump();
|
|
3068
3066
|
return !0;
|
|
@@ -3084,7 +3082,7 @@ var Sn = (
|
|
|
3084
3082
|
break;
|
|
3085
3083
|
}
|
|
3086
3084
|
}, e.prototype.bumpSpace = function() {
|
|
3087
|
-
for (; !this.isEOF() &&
|
|
3085
|
+
for (; !this.isEOF() && Vt(this.char()); )
|
|
3088
3086
|
this.bump();
|
|
3089
3087
|
}, e.prototype.peek = function() {
|
|
3090
3088
|
if (this.isEOF())
|
|
@@ -3094,47 +3092,47 @@ var Sn = (
|
|
|
3094
3092
|
}, e;
|
|
3095
3093
|
}()
|
|
3096
3094
|
);
|
|
3097
|
-
function
|
|
3095
|
+
function Fe(e) {
|
|
3098
3096
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3099
3097
|
}
|
|
3100
3098
|
function An(e) {
|
|
3101
|
-
return
|
|
3099
|
+
return Fe(e) || e === 47;
|
|
3102
3100
|
}
|
|
3103
3101
|
function Bn(e) {
|
|
3104
3102
|
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;
|
|
3105
3103
|
}
|
|
3106
|
-
function
|
|
3104
|
+
function Vt(e) {
|
|
3107
3105
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3108
3106
|
}
|
|
3109
|
-
function
|
|
3107
|
+
function Sn(e) {
|
|
3110
3108
|
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;
|
|
3111
3109
|
}
|
|
3112
|
-
function
|
|
3110
|
+
function je(e) {
|
|
3113
3111
|
e.forEach(function(t) {
|
|
3114
|
-
if (delete t.location,
|
|
3112
|
+
if (delete t.location, It(t) || Mt(t))
|
|
3115
3113
|
for (var r in t.options)
|
|
3116
|
-
delete t.options[r].location,
|
|
3114
|
+
delete t.options[r].location, je(t.options[r].value);
|
|
3117
3115
|
else
|
|
3118
|
-
|
|
3116
|
+
Pt(t) && Rt(t.style) || (Nt(t) || Lt(t)) && Re(t.style) ? delete t.style.location : $t(t) && je(t.children);
|
|
3119
3117
|
});
|
|
3120
3118
|
}
|
|
3121
|
-
function
|
|
3122
|
-
t === void 0 && (t = {}), t =
|
|
3123
|
-
var r = new
|
|
3119
|
+
function On(e, t) {
|
|
3120
|
+
t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3121
|
+
var r = new Hn(e, t).parse();
|
|
3124
3122
|
if (r.err) {
|
|
3125
3123
|
var n = SyntaxError(y[r.err.kind]);
|
|
3126
3124
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3127
3125
|
}
|
|
3128
|
-
return t != null && t.captureLocation ||
|
|
3126
|
+
return t != null && t.captureLocation || je(r.val), r.val;
|
|
3129
3127
|
}
|
|
3130
|
-
var
|
|
3128
|
+
var J;
|
|
3131
3129
|
(function(e) {
|
|
3132
3130
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3133
|
-
})(
|
|
3134
|
-
var
|
|
3131
|
+
})(J || (J = {}));
|
|
3132
|
+
var ve = (
|
|
3135
3133
|
/** @class */
|
|
3136
3134
|
function(e) {
|
|
3137
|
-
|
|
3135
|
+
Ee(t, e);
|
|
3138
3136
|
function t(r, n, i) {
|
|
3139
3137
|
var s = e.call(this, r) || this;
|
|
3140
3138
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3143,48 +3141,48 @@ var Ce = (
|
|
|
3143
3141
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3144
3142
|
}, t;
|
|
3145
3143
|
}(Error)
|
|
3146
|
-
),
|
|
3144
|
+
), ct = (
|
|
3147
3145
|
/** @class */
|
|
3148
3146
|
function(e) {
|
|
3149
|
-
|
|
3147
|
+
Ee(t, e);
|
|
3150
3148
|
function t(r, n, i, s) {
|
|
3151
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3149
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), J.INVALID_VALUE, s) || this;
|
|
3152
3150
|
}
|
|
3153
3151
|
return t;
|
|
3154
|
-
}(
|
|
3155
|
-
),
|
|
3152
|
+
}(ve)
|
|
3153
|
+
), wn = (
|
|
3156
3154
|
/** @class */
|
|
3157
3155
|
function(e) {
|
|
3158
|
-
|
|
3156
|
+
Ee(t, e);
|
|
3159
3157
|
function t(r, n, i) {
|
|
3160
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3158
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), J.INVALID_VALUE, i) || this;
|
|
3161
3159
|
}
|
|
3162
3160
|
return t;
|
|
3163
|
-
}(
|
|
3164
|
-
),
|
|
3161
|
+
}(ve)
|
|
3162
|
+
), Pn = (
|
|
3165
3163
|
/** @class */
|
|
3166
3164
|
function(e) {
|
|
3167
|
-
|
|
3165
|
+
Ee(t, e);
|
|
3168
3166
|
function t(r, n) {
|
|
3169
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3167
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), J.MISSING_VALUE, n) || this;
|
|
3170
3168
|
}
|
|
3171
3169
|
return t;
|
|
3172
|
-
}(
|
|
3170
|
+
}(ve)
|
|
3173
3171
|
), O;
|
|
3174
3172
|
(function(e) {
|
|
3175
3173
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3176
3174
|
})(O || (O = {}));
|
|
3177
|
-
function
|
|
3175
|
+
function Nn(e) {
|
|
3178
3176
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3179
3177
|
var n = t[t.length - 1];
|
|
3180
3178
|
return !n || n.type !== O.literal || r.type !== O.literal ? t.push(r) : n.value += r.value, t;
|
|
3181
3179
|
}, []);
|
|
3182
3180
|
}
|
|
3183
|
-
function
|
|
3181
|
+
function Ln(e) {
|
|
3184
3182
|
return typeof e == "function";
|
|
3185
3183
|
}
|
|
3186
3184
|
function de(e, t, r, n, i, s, o) {
|
|
3187
|
-
if (e.length === 1 &&
|
|
3185
|
+
if (e.length === 1 && st(e[0]))
|
|
3188
3186
|
return [
|
|
3189
3187
|
{
|
|
3190
3188
|
type: O.literal,
|
|
@@ -3193,14 +3191,14 @@ function de(e, t, r, n, i, s, o) {
|
|
|
3193
3191
|
];
|
|
3194
3192
|
for (var u = [], h = 0, a = e; h < a.length; h++) {
|
|
3195
3193
|
var l = a[h];
|
|
3196
|
-
if (
|
|
3194
|
+
if (st(l)) {
|
|
3197
3195
|
u.push({
|
|
3198
3196
|
type: O.literal,
|
|
3199
3197
|
value: l.value
|
|
3200
3198
|
});
|
|
3201
3199
|
continue;
|
|
3202
3200
|
}
|
|
3203
|
-
if (
|
|
3201
|
+
if (en(l)) {
|
|
3204
3202
|
typeof s == "number" && u.push({
|
|
3205
3203
|
type: O.literal,
|
|
3206
3204
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3209,89 +3207,89 @@ function de(e, t, r, n, i, s, o) {
|
|
|
3209
3207
|
}
|
|
3210
3208
|
var c = l.value;
|
|
3211
3209
|
if (!(i && c in i))
|
|
3212
|
-
throw new
|
|
3210
|
+
throw new Pn(c, o);
|
|
3213
3211
|
var f = i[c];
|
|
3214
|
-
if (
|
|
3212
|
+
if (Kr(l)) {
|
|
3215
3213
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), u.push({
|
|
3216
3214
|
type: typeof f == "string" ? O.literal : O.object,
|
|
3217
3215
|
value: f
|
|
3218
3216
|
});
|
|
3219
3217
|
continue;
|
|
3220
3218
|
}
|
|
3221
|
-
if (
|
|
3222
|
-
var
|
|
3219
|
+
if (Nt(l)) {
|
|
3220
|
+
var d = typeof l.style == "string" ? n.date[l.style] : Re(l.style) ? l.style.parsedOptions : void 0;
|
|
3223
3221
|
u.push({
|
|
3224
3222
|
type: O.literal,
|
|
3225
|
-
value: r.getDateTimeFormat(t,
|
|
3223
|
+
value: r.getDateTimeFormat(t, d).format(f)
|
|
3226
3224
|
});
|
|
3227
3225
|
continue;
|
|
3228
3226
|
}
|
|
3229
|
-
if (
|
|
3230
|
-
var
|
|
3227
|
+
if (Lt(l)) {
|
|
3228
|
+
var d = typeof l.style == "string" ? n.time[l.style] : Re(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3231
3229
|
u.push({
|
|
3232
3230
|
type: O.literal,
|
|
3233
|
-
value: r.getDateTimeFormat(t,
|
|
3231
|
+
value: r.getDateTimeFormat(t, d).format(f)
|
|
3234
3232
|
});
|
|
3235
3233
|
continue;
|
|
3236
3234
|
}
|
|
3237
|
-
if (
|
|
3238
|
-
var
|
|
3239
|
-
|
|
3235
|
+
if (Pt(l)) {
|
|
3236
|
+
var d = typeof l.style == "string" ? n.number[l.style] : Rt(l.style) ? l.style.parsedOptions : void 0;
|
|
3237
|
+
d && d.scale && (f = f * (d.scale || 1)), u.push({
|
|
3240
3238
|
type: O.literal,
|
|
3241
|
-
value: r.getNumberFormat(t,
|
|
3239
|
+
value: r.getNumberFormat(t, d).format(f)
|
|
3242
3240
|
});
|
|
3243
3241
|
continue;
|
|
3244
3242
|
}
|
|
3245
|
-
if (
|
|
3246
|
-
var
|
|
3247
|
-
if (!
|
|
3248
|
-
throw new
|
|
3249
|
-
var m = de(
|
|
3250
|
-
return
|
|
3243
|
+
if ($t(l)) {
|
|
3244
|
+
var p = l.children, g = l.value, E = i[g];
|
|
3245
|
+
if (!Ln(E))
|
|
3246
|
+
throw new wn(g, "function", o);
|
|
3247
|
+
var m = de(p, t, r, n, i, s), C = E(m.map(function(B) {
|
|
3248
|
+
return B.value;
|
|
3251
3249
|
}));
|
|
3252
|
-
Array.isArray(
|
|
3250
|
+
Array.isArray(C) || (C = [C]), u.push.apply(u, C.map(function(B) {
|
|
3253
3251
|
return {
|
|
3254
|
-
type: typeof
|
|
3255
|
-
value:
|
|
3252
|
+
type: typeof B == "string" ? O.literal : O.object,
|
|
3253
|
+
value: B
|
|
3256
3254
|
};
|
|
3257
3255
|
}));
|
|
3258
3256
|
}
|
|
3259
|
-
if (
|
|
3260
|
-
var
|
|
3261
|
-
if (!
|
|
3262
|
-
throw new
|
|
3263
|
-
u.push.apply(u, de(
|
|
3257
|
+
if (It(l)) {
|
|
3258
|
+
var A = l.options[f] || l.options.other;
|
|
3259
|
+
if (!A)
|
|
3260
|
+
throw new ct(l.value, f, Object.keys(l.options), o);
|
|
3261
|
+
u.push.apply(u, de(A.value, t, r, n, i));
|
|
3264
3262
|
continue;
|
|
3265
3263
|
}
|
|
3266
|
-
if (
|
|
3267
|
-
var
|
|
3268
|
-
if (!
|
|
3264
|
+
if (Mt(l)) {
|
|
3265
|
+
var A = l.options["=".concat(f)];
|
|
3266
|
+
if (!A) {
|
|
3269
3267
|
if (!Intl.PluralRules)
|
|
3270
|
-
throw new
|
|
3268
|
+
throw new ve(`Intl.PluralRules is not available in this environment.
|
|
3271
3269
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3272
|
-
`,
|
|
3270
|
+
`, J.MISSING_INTL_API, o);
|
|
3273
3271
|
var w = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3274
|
-
|
|
3272
|
+
A = l.options[w] || l.options.other;
|
|
3275
3273
|
}
|
|
3276
|
-
if (!
|
|
3277
|
-
throw new
|
|
3278
|
-
u.push.apply(u, de(
|
|
3274
|
+
if (!A)
|
|
3275
|
+
throw new ct(l.value, f, Object.keys(l.options), o);
|
|
3276
|
+
u.push.apply(u, de(A.value, t, r, n, i, f - (l.offset || 0)));
|
|
3279
3277
|
continue;
|
|
3280
3278
|
}
|
|
3281
3279
|
}
|
|
3282
|
-
return
|
|
3280
|
+
return Nn(u);
|
|
3283
3281
|
}
|
|
3284
|
-
function
|
|
3285
|
-
return t ?
|
|
3286
|
-
return r[n] =
|
|
3282
|
+
function In(e, t) {
|
|
3283
|
+
return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3284
|
+
return r[n] = x(x({}, e[n]), t[n] || {}), r;
|
|
3287
3285
|
}, {})) : e;
|
|
3288
3286
|
}
|
|
3289
|
-
function
|
|
3287
|
+
function Mn(e, t) {
|
|
3290
3288
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3291
|
-
return r[n] =
|
|
3292
|
-
},
|
|
3289
|
+
return r[n] = In(e[n], t[n]), r;
|
|
3290
|
+
}, x({}, e)) : e;
|
|
3293
3291
|
}
|
|
3294
|
-
function
|
|
3292
|
+
function Pe(e) {
|
|
3295
3293
|
return {
|
|
3296
3294
|
create: function() {
|
|
3297
3295
|
return {
|
|
@@ -3305,39 +3303,39 @@ function Le(e) {
|
|
|
3305
3303
|
}
|
|
3306
3304
|
};
|
|
3307
3305
|
}
|
|
3308
|
-
function
|
|
3306
|
+
function $n(e) {
|
|
3309
3307
|
return e === void 0 && (e = {
|
|
3310
3308
|
number: {},
|
|
3311
3309
|
dateTime: {},
|
|
3312
3310
|
pluralRules: {}
|
|
3313
3311
|
}), {
|
|
3314
|
-
getNumberFormat:
|
|
3312
|
+
getNumberFormat: Se(function() {
|
|
3315
3313
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3316
3314
|
r[n] = arguments[n];
|
|
3317
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3315
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Be([void 0], r, !1)))();
|
|
3318
3316
|
}, {
|
|
3319
|
-
cache:
|
|
3320
|
-
strategy:
|
|
3317
|
+
cache: Pe(e.number),
|
|
3318
|
+
strategy: Oe.variadic
|
|
3321
3319
|
}),
|
|
3322
|
-
getDateTimeFormat:
|
|
3320
|
+
getDateTimeFormat: Se(function() {
|
|
3323
3321
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3324
3322
|
r[n] = arguments[n];
|
|
3325
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3323
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Be([void 0], r, !1)))();
|
|
3326
3324
|
}, {
|
|
3327
|
-
cache:
|
|
3328
|
-
strategy:
|
|
3325
|
+
cache: Pe(e.dateTime),
|
|
3326
|
+
strategy: Oe.variadic
|
|
3329
3327
|
}),
|
|
3330
|
-
getPluralRules:
|
|
3328
|
+
getPluralRules: Se(function() {
|
|
3331
3329
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3332
3330
|
r[n] = arguments[n];
|
|
3333
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3331
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Be([void 0], r, !1)))();
|
|
3334
3332
|
}, {
|
|
3335
|
-
cache:
|
|
3336
|
-
strategy:
|
|
3333
|
+
cache: Pe(e.pluralRules),
|
|
3334
|
+
strategy: Oe.variadic
|
|
3337
3335
|
})
|
|
3338
3336
|
};
|
|
3339
3337
|
}
|
|
3340
|
-
var
|
|
3338
|
+
var Rn = (
|
|
3341
3339
|
/** @class */
|
|
3342
3340
|
function() {
|
|
3343
3341
|
function e(t, r, n, i) {
|
|
@@ -3369,13 +3367,13 @@ var Un = (
|
|
|
3369
3367
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3370
3368
|
var o = i || {};
|
|
3371
3369
|
o.formatters;
|
|
3372
|
-
var u =
|
|
3373
|
-
this.ast = e.__parse(t,
|
|
3370
|
+
var u = Xr(o, ["formatters"]);
|
|
3371
|
+
this.ast = e.__parse(t, x(x({}, u), { locale: this.resolvedLocale }));
|
|
3374
3372
|
} else
|
|
3375
3373
|
this.ast = t;
|
|
3376
3374
|
if (!Array.isArray(this.ast))
|
|
3377
3375
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3378
|
-
this.formats =
|
|
3376
|
+
this.formats = Mn(e.formats, n), this.formatters = i && i.formatters || $n(this.formatterCache);
|
|
3379
3377
|
}
|
|
3380
3378
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3381
3379
|
get: function() {
|
|
@@ -3388,7 +3386,7 @@ var Un = (
|
|
|
3388
3386
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3389
3387
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3390
3388
|
}
|
|
3391
|
-
}, e.__parse =
|
|
3389
|
+
}, e.__parse = On, e.formats = {
|
|
3392
3390
|
number: {
|
|
3393
3391
|
integer: {
|
|
3394
3392
|
maximumFractionDigits: 0
|
|
@@ -3449,7 +3447,7 @@ var Un = (
|
|
|
3449
3447
|
}, e;
|
|
3450
3448
|
}()
|
|
3451
3449
|
);
|
|
3452
|
-
function
|
|
3450
|
+
function Un(e, t) {
|
|
3453
3451
|
if (t == null)
|
|
3454
3452
|
return;
|
|
3455
3453
|
if (t in e)
|
|
@@ -3470,92 +3468,92 @@ function Dn(e, t) {
|
|
|
3470
3468
|
n = void 0;
|
|
3471
3469
|
return n;
|
|
3472
3470
|
}
|
|
3473
|
-
const
|
|
3471
|
+
const G = {}, Dn = (e, t, r) => r && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = r), r), Xt = (e, t) => {
|
|
3474
3472
|
if (t == null)
|
|
3475
3473
|
return;
|
|
3476
|
-
if (t in
|
|
3477
|
-
return
|
|
3478
|
-
const r =
|
|
3474
|
+
if (t in G && e in G[t])
|
|
3475
|
+
return G[t][e];
|
|
3476
|
+
const r = Te(t);
|
|
3479
3477
|
for (let n = 0; n < r.length; n++) {
|
|
3480
|
-
const i = r[n], s =
|
|
3478
|
+
const i = r[n], s = Fn(i, e);
|
|
3481
3479
|
if (s)
|
|
3482
|
-
return
|
|
3480
|
+
return Dn(e, t, s);
|
|
3483
3481
|
}
|
|
3484
3482
|
};
|
|
3485
|
-
let
|
|
3486
|
-
const
|
|
3487
|
-
function
|
|
3488
|
-
return
|
|
3483
|
+
let We;
|
|
3484
|
+
const he = xe({});
|
|
3485
|
+
function Gn(e) {
|
|
3486
|
+
return We[e] || null;
|
|
3489
3487
|
}
|
|
3490
|
-
function
|
|
3491
|
-
return e in
|
|
3488
|
+
function zt(e) {
|
|
3489
|
+
return e in We;
|
|
3492
3490
|
}
|
|
3493
|
-
function
|
|
3494
|
-
if (!
|
|
3491
|
+
function Fn(e, t) {
|
|
3492
|
+
if (!zt(e))
|
|
3495
3493
|
return null;
|
|
3496
|
-
const r =
|
|
3497
|
-
return
|
|
3494
|
+
const r = Gn(e);
|
|
3495
|
+
return Un(r, t);
|
|
3498
3496
|
}
|
|
3499
|
-
function
|
|
3497
|
+
function jn(e) {
|
|
3500
3498
|
if (e == null)
|
|
3501
3499
|
return;
|
|
3502
|
-
const t =
|
|
3500
|
+
const t = Te(e);
|
|
3503
3501
|
for (let r = 0; r < t.length; r++) {
|
|
3504
3502
|
const n = t[r];
|
|
3505
|
-
if (
|
|
3503
|
+
if (zt(n))
|
|
3506
3504
|
return n;
|
|
3507
3505
|
}
|
|
3508
3506
|
}
|
|
3509
|
-
function
|
|
3510
|
-
delete
|
|
3507
|
+
function Wt(e, ...t) {
|
|
3508
|
+
delete G[e], he.update((r) => (r[e] = Vr.all([r[e] || {}, ...t]), r));
|
|
3511
3509
|
}
|
|
3512
|
-
|
|
3513
|
-
[
|
|
3510
|
+
ee(
|
|
3511
|
+
[he],
|
|
3514
3512
|
([e]) => Object.keys(e)
|
|
3515
3513
|
);
|
|
3516
|
-
|
|
3517
|
-
const
|
|
3518
|
-
function
|
|
3519
|
-
|
|
3514
|
+
he.subscribe((e) => We = e);
|
|
3515
|
+
const pe = {};
|
|
3516
|
+
function kn(e, t) {
|
|
3517
|
+
pe[e].delete(t), pe[e].size === 0 && delete pe[e];
|
|
3520
3518
|
}
|
|
3521
|
-
function
|
|
3522
|
-
return
|
|
3519
|
+
function Zt(e) {
|
|
3520
|
+
return pe[e];
|
|
3523
3521
|
}
|
|
3524
|
-
function
|
|
3525
|
-
return
|
|
3526
|
-
const r =
|
|
3522
|
+
function Vn(e) {
|
|
3523
|
+
return Te(e).map((t) => {
|
|
3524
|
+
const r = Zt(t);
|
|
3527
3525
|
return [t, r ? [...r] : []];
|
|
3528
3526
|
}).filter(([, t]) => t.length > 0);
|
|
3529
3527
|
}
|
|
3530
|
-
function
|
|
3531
|
-
return e == null ? !1 :
|
|
3528
|
+
function ke(e) {
|
|
3529
|
+
return e == null ? !1 : Te(e).some(
|
|
3532
3530
|
(t) => {
|
|
3533
3531
|
var r;
|
|
3534
|
-
return (r =
|
|
3532
|
+
return (r = Zt(t)) == null ? void 0 : r.size;
|
|
3535
3533
|
}
|
|
3536
3534
|
);
|
|
3537
3535
|
}
|
|
3538
|
-
function
|
|
3536
|
+
function Xn(e, t) {
|
|
3539
3537
|
return Promise.all(
|
|
3540
|
-
t.map((n) => (
|
|
3541
|
-
).then((n) =>
|
|
3542
|
-
}
|
|
3543
|
-
const
|
|
3544
|
-
function
|
|
3545
|
-
if (!
|
|
3546
|
-
return e in
|
|
3547
|
-
const t =
|
|
3548
|
-
return
|
|
3538
|
+
t.map((n) => (kn(e, n), n().then((i) => i.default || i)))
|
|
3539
|
+
).then((n) => Wt(e, ...n));
|
|
3540
|
+
}
|
|
3541
|
+
const ne = {};
|
|
3542
|
+
function Qt(e) {
|
|
3543
|
+
if (!ke(e))
|
|
3544
|
+
return e in ne ? ne[e] : Promise.resolve();
|
|
3545
|
+
const t = Vn(e);
|
|
3546
|
+
return ne[e] = Promise.all(
|
|
3549
3547
|
t.map(
|
|
3550
|
-
([r, n]) =>
|
|
3548
|
+
([r, n]) => Xn(r, n)
|
|
3551
3549
|
)
|
|
3552
3550
|
).then(() => {
|
|
3553
|
-
if (
|
|
3554
|
-
return
|
|
3555
|
-
delete
|
|
3556
|
-
}),
|
|
3551
|
+
if (ke(e))
|
|
3552
|
+
return Qt(e);
|
|
3553
|
+
delete ne[e];
|
|
3554
|
+
}), ne[e];
|
|
3557
3555
|
}
|
|
3558
|
-
const
|
|
3556
|
+
const zn = {
|
|
3559
3557
|
number: {
|
|
3560
3558
|
scientific: { notation: "scientific" },
|
|
3561
3559
|
engineering: { notation: "engineering" },
|
|
@@ -3584,150 +3582,150 @@ const Wn = {
|
|
|
3584
3582
|
timeZoneName: "short"
|
|
3585
3583
|
}
|
|
3586
3584
|
}
|
|
3587
|
-
},
|
|
3585
|
+
}, Wn = {
|
|
3588
3586
|
fallbackLocale: null,
|
|
3589
3587
|
loadingDelay: 200,
|
|
3590
|
-
formats:
|
|
3588
|
+
formats: zn,
|
|
3591
3589
|
warnOnMissingMessages: !0,
|
|
3592
3590
|
handleMissingMessage: void 0,
|
|
3593
3591
|
ignoreTag: !0
|
|
3594
|
-
},
|
|
3595
|
-
function
|
|
3596
|
-
return
|
|
3597
|
-
}
|
|
3598
|
-
const
|
|
3599
|
-
var
|
|
3600
|
-
for (var r in t
|
|
3601
|
-
|
|
3602
|
-
if (
|
|
3603
|
-
for (var r of
|
|
3604
|
-
|
|
3592
|
+
}, Zn = Wn;
|
|
3593
|
+
function Y() {
|
|
3594
|
+
return Zn;
|
|
3595
|
+
}
|
|
3596
|
+
const Ne = xe(!1);
|
|
3597
|
+
var Qn = Object.defineProperty, qn = Object.defineProperties, Jn = Object.getOwnPropertyDescriptors, gt = Object.getOwnPropertySymbols, Yn = Object.prototype.hasOwnProperty, Kn = Object.prototype.propertyIsEnumerable, mt = (e, t, r) => t in e ? Qn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ei = (e, t) => {
|
|
3598
|
+
for (var r in t)
|
|
3599
|
+
Yn.call(t, r) && mt(e, r, t[r]);
|
|
3600
|
+
if (gt)
|
|
3601
|
+
for (var r of gt(t))
|
|
3602
|
+
Kn.call(t, r) && mt(e, r, t[r]);
|
|
3605
3603
|
return e;
|
|
3606
|
-
},
|
|
3607
|
-
let
|
|
3608
|
-
const
|
|
3604
|
+
}, ti = (e, t) => qn(e, Jn(t));
|
|
3605
|
+
let Ve;
|
|
3606
|
+
const ye = xe(null);
|
|
3609
3607
|
function dt(e) {
|
|
3610
3608
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3611
3609
|
}
|
|
3612
|
-
function
|
|
3610
|
+
function Te(e, t = Y().fallbackLocale) {
|
|
3613
3611
|
const r = dt(e);
|
|
3614
3612
|
return t ? [.../* @__PURE__ */ new Set([...r, ...dt(t)])] : r;
|
|
3615
3613
|
}
|
|
3616
|
-
function
|
|
3617
|
-
return
|
|
3614
|
+
function V() {
|
|
3615
|
+
return Ve != null ? Ve : void 0;
|
|
3618
3616
|
}
|
|
3619
|
-
|
|
3620
|
-
|
|
3617
|
+
ye.subscribe((e) => {
|
|
3618
|
+
Ve = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3621
3619
|
});
|
|
3622
|
-
const
|
|
3623
|
-
if (e &&
|
|
3624
|
-
const { loadingDelay: t } =
|
|
3620
|
+
const ri = (e) => {
|
|
3621
|
+
if (e && jn(e) && ke(e)) {
|
|
3622
|
+
const { loadingDelay: t } = Y();
|
|
3625
3623
|
let r;
|
|
3626
|
-
return typeof window != "undefined" &&
|
|
3627
|
-
() =>
|
|
3624
|
+
return typeof window != "undefined" && V() != null && t ? r = window.setTimeout(
|
|
3625
|
+
() => Ne.set(!0),
|
|
3628
3626
|
t
|
|
3629
|
-
) :
|
|
3630
|
-
|
|
3627
|
+
) : Ne.set(!0), Qt(e).then(() => {
|
|
3628
|
+
ye.set(e);
|
|
3631
3629
|
}).finally(() => {
|
|
3632
|
-
clearTimeout(r),
|
|
3630
|
+
clearTimeout(r), Ne.set(!1);
|
|
3633
3631
|
});
|
|
3634
3632
|
}
|
|
3635
|
-
return
|
|
3636
|
-
},
|
|
3637
|
-
set:
|
|
3638
|
-
}),
|
|
3633
|
+
return ye.set(e);
|
|
3634
|
+
}, te = ti(ei({}, ye), {
|
|
3635
|
+
set: ri
|
|
3636
|
+
}), Ce = (e) => {
|
|
3639
3637
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3640
3638
|
return (n) => {
|
|
3641
3639
|
const i = JSON.stringify(n);
|
|
3642
3640
|
return i in t ? t[i] : t[i] = e(n);
|
|
3643
3641
|
};
|
|
3644
3642
|
};
|
|
3645
|
-
var
|
|
3643
|
+
var ni = Object.defineProperty, _e = Object.getOwnPropertySymbols, qt = Object.prototype.hasOwnProperty, Jt = Object.prototype.propertyIsEnumerable, pt = (e, t, r) => t in e ? ni(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ze = (e, t) => {
|
|
3646
3644
|
for (var r in t || (t = {}))
|
|
3647
|
-
|
|
3648
|
-
if (
|
|
3649
|
-
for (var r of
|
|
3650
|
-
|
|
3645
|
+
qt.call(t, r) && pt(e, r, t[r]);
|
|
3646
|
+
if (_e)
|
|
3647
|
+
for (var r of _e(t))
|
|
3648
|
+
Jt.call(t, r) && pt(e, r, t[r]);
|
|
3651
3649
|
return e;
|
|
3652
|
-
},
|
|
3650
|
+
}, re = (e, t) => {
|
|
3653
3651
|
var r = {};
|
|
3654
3652
|
for (var n in e)
|
|
3655
|
-
|
|
3656
|
-
if (e != null &&
|
|
3657
|
-
for (var n of
|
|
3658
|
-
t.indexOf(n) < 0 &&
|
|
3653
|
+
qt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3654
|
+
if (e != null && _e)
|
|
3655
|
+
for (var n of _e(e))
|
|
3656
|
+
t.indexOf(n) < 0 && Jt.call(e, n) && (r[n] = e[n]);
|
|
3659
3657
|
return r;
|
|
3660
3658
|
};
|
|
3661
|
-
const
|
|
3662
|
-
const { formats: r } =
|
|
3659
|
+
const ae = (e, t) => {
|
|
3660
|
+
const { formats: r } = Y();
|
|
3663
3661
|
if (e in r && t in r[e])
|
|
3664
3662
|
return r[e][t];
|
|
3665
3663
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3666
|
-
},
|
|
3664
|
+
}, ii = Ce(
|
|
3667
3665
|
(e) => {
|
|
3668
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3666
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
3669
3667
|
if (r == null)
|
|
3670
3668
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3671
|
-
return n && (i =
|
|
3669
|
+
return n && (i = ae("number", n)), new Intl.NumberFormat(r, i);
|
|
3672
3670
|
}
|
|
3673
|
-
),
|
|
3671
|
+
), si = Ce(
|
|
3674
3672
|
(e) => {
|
|
3675
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3673
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
3676
3674
|
if (r == null)
|
|
3677
3675
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3678
|
-
return n ? i =
|
|
3676
|
+
return n ? i = ae("date", n) : Object.keys(i).length === 0 && (i = ae("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3679
3677
|
}
|
|
3680
|
-
),
|
|
3678
|
+
), oi = Ce(
|
|
3681
3679
|
(e) => {
|
|
3682
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3680
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
3683
3681
|
if (r == null)
|
|
3684
3682
|
throw new Error(
|
|
3685
3683
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3686
3684
|
);
|
|
3687
|
-
return n ? i =
|
|
3685
|
+
return n ? i = ae("time", n) : Object.keys(i).length === 0 && (i = ae("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3688
3686
|
}
|
|
3689
|
-
),
|
|
3687
|
+
), ai = (e = {}) => {
|
|
3690
3688
|
var t = e, {
|
|
3691
|
-
locale: r =
|
|
3692
|
-
} = t, n =
|
|
3689
|
+
locale: r = V()
|
|
3690
|
+
} = t, n = re(t, [
|
|
3693
3691
|
"locale"
|
|
3694
3692
|
]);
|
|
3695
|
-
return
|
|
3696
|
-
},
|
|
3693
|
+
return ii(Ze({ locale: r }, n));
|
|
3694
|
+
}, ui = (e = {}) => {
|
|
3697
3695
|
var t = e, {
|
|
3698
|
-
locale: r =
|
|
3699
|
-
} = t, n =
|
|
3696
|
+
locale: r = V()
|
|
3697
|
+
} = t, n = re(t, [
|
|
3700
3698
|
"locale"
|
|
3701
3699
|
]);
|
|
3702
|
-
return
|
|
3703
|
-
},
|
|
3700
|
+
return si(Ze({ locale: r }, n));
|
|
3701
|
+
}, hi = (e = {}) => {
|
|
3704
3702
|
var t = e, {
|
|
3705
|
-
locale: r =
|
|
3706
|
-
} = t, n =
|
|
3703
|
+
locale: r = V()
|
|
3704
|
+
} = t, n = re(t, [
|
|
3707
3705
|
"locale"
|
|
3708
3706
|
]);
|
|
3709
|
-
return
|
|
3710
|
-
},
|
|
3707
|
+
return oi(Ze({ locale: r }, n));
|
|
3708
|
+
}, li = Ce(
|
|
3711
3709
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3712
|
-
(e, t =
|
|
3713
|
-
ignoreTag:
|
|
3710
|
+
(e, t = V()) => new Rn(e, t, Y().formats, {
|
|
3711
|
+
ignoreTag: Y().ignoreTag
|
|
3714
3712
|
})
|
|
3715
|
-
),
|
|
3713
|
+
), fi = (e, t = {}) => {
|
|
3716
3714
|
var r, n, i, s;
|
|
3717
3715
|
let o = t;
|
|
3718
3716
|
typeof e == "object" && (o = e, e = o.id);
|
|
3719
3717
|
const {
|
|
3720
3718
|
values: u,
|
|
3721
|
-
locale: h =
|
|
3719
|
+
locale: h = V(),
|
|
3722
3720
|
default: a
|
|
3723
3721
|
} = o;
|
|
3724
3722
|
if (h == null)
|
|
3725
3723
|
throw new Error(
|
|
3726
3724
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3727
3725
|
);
|
|
3728
|
-
let l =
|
|
3726
|
+
let l = Xt(e, h);
|
|
3729
3727
|
if (!l)
|
|
3730
|
-
l = (s = (i = (n = (r =
|
|
3728
|
+
l = (s = (i = (n = (r = Y()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
|
|
3731
3729
|
else if (typeof l != "string")
|
|
3732
3730
|
return console.warn(
|
|
3733
3731
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3736,7 +3734,7 @@ const ue = (e, t) => {
|
|
|
3736
3734
|
return l;
|
|
3737
3735
|
let c = l;
|
|
3738
3736
|
try {
|
|
3739
|
-
c =
|
|
3737
|
+
c = li(l, h).format(u);
|
|
3740
3738
|
} catch (f) {
|
|
3741
3739
|
f instanceof Error && console.warn(
|
|
3742
3740
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3744,18 +3742,18 @@ const ue = (e, t) => {
|
|
|
3744
3742
|
);
|
|
3745
3743
|
}
|
|
3746
3744
|
return c;
|
|
3747
|
-
},
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
function
|
|
3745
|
+
}, ci = (e, t) => hi(t).format(e), gi = (e, t) => ui(t).format(e), mi = (e, t) => ai(t).format(e), di = (e, t = V()) => Xt(e, t), pi = ee([te, he], () => fi);
|
|
3746
|
+
ee([te], () => ci);
|
|
3747
|
+
ee([te], () => gi);
|
|
3748
|
+
ee([te], () => mi);
|
|
3749
|
+
ee([te, he], () => di);
|
|
3750
|
+
function bi(e, t) {
|
|
3753
3751
|
if (e) {
|
|
3754
3752
|
const r = document.createElement("style");
|
|
3755
3753
|
r.innerHTML = t, e.appendChild(r);
|
|
3756
3754
|
}
|
|
3757
3755
|
}
|
|
3758
|
-
function
|
|
3756
|
+
function yi(e, t) {
|
|
3759
3757
|
const r = new URL(t);
|
|
3760
3758
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
3761
3759
|
const i = document.createElement("style");
|
|
@@ -3764,7 +3762,7 @@ function _i(e, t) {
|
|
|
3764
3762
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3765
3763
|
});
|
|
3766
3764
|
}
|
|
3767
|
-
function
|
|
3765
|
+
function _i(e, t, r) {
|
|
3768
3766
|
if (window.emMessageBus) {
|
|
3769
3767
|
const n = document.createElement("style");
|
|
3770
3768
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3772,13 +3770,13 @@ function Ei(e, t, r) {
|
|
|
3772
3770
|
});
|
|
3773
3771
|
}
|
|
3774
3772
|
}
|
|
3775
|
-
function
|
|
3776
|
-
|
|
3773
|
+
function bt(e, t) {
|
|
3774
|
+
Wt(e, t);
|
|
3777
3775
|
}
|
|
3778
3776
|
function xi(e) {
|
|
3779
|
-
|
|
3777
|
+
te.set(e);
|
|
3780
3778
|
}
|
|
3781
|
-
const
|
|
3779
|
+
const yt = {
|
|
3782
3780
|
en: {
|
|
3783
3781
|
topCategories: "Top Categories",
|
|
3784
3782
|
otherCategories: "Other Categories",
|
|
@@ -3888,10 +3886,10 @@ const _t = {
|
|
|
3888
3886
|
games: "games"
|
|
3889
3887
|
}
|
|
3890
3888
|
};
|
|
3891
|
-
function
|
|
3892
|
-
|
|
3889
|
+
function Ei(e) {
|
|
3890
|
+
ur(e, "svelte-2l182v", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.CasinoCategories{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.CategoryTitle{font-weight:500;position:relative;right:30px;margin:10px 0;font-size:18px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Category{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.Category.Active{box-shadow:15px 15px 30px var(--emw--color-gray-100, #E6E6E6)}.CategoryTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:first-child{font-weight:600;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:last-child{color:var(--emw--color-gray-150, #828282);font-weight:300}.CategoryImage{border-radius:4px;object-fit:cover;height:64px;width:64px;font-weight:100}.Message{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);font-weight:600}");
|
|
3893
3891
|
}
|
|
3894
|
-
function
|
|
3892
|
+
function _t(e, t, r) {
|
|
3895
3893
|
const n = e.slice();
|
|
3896
3894
|
return n[23] = t[r], n;
|
|
3897
3895
|
}
|
|
@@ -3899,56 +3897,56 @@ function xt(e, t, r) {
|
|
|
3899
3897
|
const n = e.slice();
|
|
3900
3898
|
return n[23] = t[r], n;
|
|
3901
3899
|
}
|
|
3902
|
-
function
|
|
3900
|
+
function vi(e) {
|
|
3903
3901
|
let t, r, n = (
|
|
3904
3902
|
/*$_*/
|
|
3905
3903
|
e[5]("topCategories") + ""
|
|
3906
3904
|
), i, s, o, u, h = (
|
|
3907
3905
|
/*$_*/
|
|
3908
3906
|
e[5]("otherCategories") + ""
|
|
3909
|
-
), a, l, c =
|
|
3907
|
+
), a, l, c = ce(
|
|
3910
3908
|
/*topCategories*/
|
|
3911
3909
|
e[3]
|
|
3912
3910
|
), f = [];
|
|
3913
3911
|
for (let g = 0; g < c.length; g += 1)
|
|
3914
|
-
f[g] =
|
|
3915
|
-
let
|
|
3912
|
+
f[g] = Et(xt(e, c, g));
|
|
3913
|
+
let d = ce(
|
|
3916
3914
|
/*otherCategories*/
|
|
3917
3915
|
e[4]
|
|
3918
|
-
),
|
|
3919
|
-
for (let g = 0; g <
|
|
3920
|
-
|
|
3916
|
+
), p = [];
|
|
3917
|
+
for (let g = 0; g < d.length; g += 1)
|
|
3918
|
+
p[g] = vt(_t(e, d, g));
|
|
3921
3919
|
return {
|
|
3922
3920
|
c() {
|
|
3923
|
-
t =
|
|
3921
|
+
t = S("div"), r = S("h4"), i = D(n), s = U();
|
|
3924
3922
|
for (let g = 0; g < f.length; g += 1)
|
|
3925
3923
|
f[g].c();
|
|
3926
|
-
o =
|
|
3927
|
-
for (let g = 0; g <
|
|
3928
|
-
|
|
3924
|
+
o = U(), u = S("h4"), a = D(h), l = U();
|
|
3925
|
+
for (let g = 0; g < p.length; g += 1)
|
|
3926
|
+
p[g].c();
|
|
3929
3927
|
I(r, "class", "CategoryTitle"), I(u, "class", "CategoryTitle"), I(t, "class", "CasinoCategories");
|
|
3930
3928
|
},
|
|
3931
3929
|
m(g, E) {
|
|
3932
|
-
|
|
3930
|
+
K(g, t, E), v(t, r), v(r, i), v(t, s);
|
|
3933
3931
|
for (let m = 0; m < f.length; m += 1)
|
|
3934
3932
|
f[m] && f[m].m(t, null);
|
|
3935
|
-
|
|
3936
|
-
for (let m = 0; m <
|
|
3937
|
-
|
|
3933
|
+
v(t, o), v(t, u), v(u, a), v(t, l);
|
|
3934
|
+
for (let m = 0; m < p.length; m += 1)
|
|
3935
|
+
p[m] && p[m].m(t, null);
|
|
3938
3936
|
},
|
|
3939
3937
|
p(g, E) {
|
|
3940
3938
|
if (E & /*$_*/
|
|
3941
3939
|
32 && n !== (n = /*$_*/
|
|
3942
|
-
g[5]("topCategories") + "") &&
|
|
3940
|
+
g[5]("topCategories") + "") && F(i, n), E & /*activecategory, topCategories, openGameCategory, $_*/
|
|
3943
3941
|
105) {
|
|
3944
|
-
c =
|
|
3942
|
+
c = ce(
|
|
3945
3943
|
/*topCategories*/
|
|
3946
3944
|
g[3]
|
|
3947
3945
|
);
|
|
3948
3946
|
let m;
|
|
3949
3947
|
for (m = 0; m < c.length; m += 1) {
|
|
3950
|
-
const
|
|
3951
|
-
f[m] ? f[m].p(
|
|
3948
|
+
const C = xt(g, c, m);
|
|
3949
|
+
f[m] ? f[m].p(C, E) : (f[m] = Et(C), f[m].c(), f[m].m(t, o));
|
|
3952
3950
|
}
|
|
3953
3951
|
for (; m < f.length; m += 1)
|
|
3954
3952
|
f[m].d(1);
|
|
@@ -3956,53 +3954,53 @@ function Ti(e) {
|
|
|
3956
3954
|
}
|
|
3957
3955
|
if (E & /*$_*/
|
|
3958
3956
|
32 && h !== (h = /*$_*/
|
|
3959
|
-
g[5]("otherCategories") + "") &&
|
|
3957
|
+
g[5]("otherCategories") + "") && F(a, h), E & /*activecategory, otherCategories, openGameCategory, $_*/
|
|
3960
3958
|
113) {
|
|
3961
|
-
|
|
3959
|
+
d = ce(
|
|
3962
3960
|
/*otherCategories*/
|
|
3963
3961
|
g[4]
|
|
3964
3962
|
);
|
|
3965
3963
|
let m;
|
|
3966
|
-
for (m = 0; m <
|
|
3967
|
-
const
|
|
3968
|
-
|
|
3964
|
+
for (m = 0; m < d.length; m += 1) {
|
|
3965
|
+
const C = _t(g, d, m);
|
|
3966
|
+
p[m] ? p[m].p(C, E) : (p[m] = vt(C), p[m].c(), p[m].m(t, null));
|
|
3969
3967
|
}
|
|
3970
|
-
for (; m <
|
|
3971
|
-
|
|
3972
|
-
|
|
3968
|
+
for (; m < p.length; m += 1)
|
|
3969
|
+
p[m].d(1);
|
|
3970
|
+
p.length = d.length;
|
|
3973
3971
|
}
|
|
3974
3972
|
},
|
|
3975
3973
|
d(g) {
|
|
3976
|
-
g &&
|
|
3974
|
+
g && k(t), rt(f, g), rt(p, g);
|
|
3977
3975
|
}
|
|
3978
3976
|
};
|
|
3979
3977
|
}
|
|
3980
|
-
function
|
|
3978
|
+
function Ti(e) {
|
|
3981
3979
|
let t;
|
|
3982
3980
|
return {
|
|
3983
3981
|
c() {
|
|
3984
|
-
t =
|
|
3982
|
+
t = S("p"), t.textContent = "Loading, please wait...", I(t, "class", "Message");
|
|
3985
3983
|
},
|
|
3986
3984
|
m(r, n) {
|
|
3987
|
-
|
|
3985
|
+
K(r, t, n);
|
|
3988
3986
|
},
|
|
3989
3987
|
p: L,
|
|
3990
3988
|
d(r) {
|
|
3991
|
-
r &&
|
|
3989
|
+
r && k(t);
|
|
3992
3990
|
}
|
|
3993
3991
|
};
|
|
3994
3992
|
}
|
|
3995
|
-
function
|
|
3993
|
+
function Et(e) {
|
|
3996
3994
|
let t, r, n, i, s, o, u, h = (
|
|
3997
3995
|
/*category*/
|
|
3998
3996
|
e[23].name + ""
|
|
3999
3997
|
), a, l, c, f = (
|
|
4000
3998
|
/*category*/
|
|
4001
3999
|
e[23].games.count + ""
|
|
4002
|
-
),
|
|
4000
|
+
), d, p, g = (
|
|
4003
4001
|
/*$_*/
|
|
4004
4002
|
e[5]("games") + ""
|
|
4005
|
-
), E, m,
|
|
4003
|
+
), E, m, C, A;
|
|
4006
4004
|
function w() {
|
|
4007
4005
|
return (
|
|
4008
4006
|
/*click_handler*/
|
|
@@ -4014,48 +4012,48 @@ function vt(e) {
|
|
|
4014
4012
|
}
|
|
4015
4013
|
return {
|
|
4016
4014
|
c() {
|
|
4017
|
-
t =
|
|
4015
|
+
t = S("div"), r = S("ui-image"), s = U(), o = S("div"), u = S("p"), a = D(h), l = U(), c = S("p"), d = D(f), p = U(), E = D(g), be(r.src, n = /*category*/
|
|
4018
4016
|
e[23].icon) || R(r, "src", n), R(r, "alt", i = /*category*/
|
|
4019
4017
|
e[23].name), R(r, "class", "CategoryImage"), I(o, "class", "CategoryTextContainer"), I(t, "class", m = "Category " + /*activecategory*/
|
|
4020
4018
|
(e[0] === /*category*/
|
|
4021
4019
|
e[23].id ? "Active" : ""));
|
|
4022
4020
|
},
|
|
4023
|
-
m(
|
|
4024
|
-
|
|
4021
|
+
m(B, H) {
|
|
4022
|
+
K(B, t, H), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, l), v(o, c), v(c, d), v(c, p), v(c, E), C || (A = At(t, "click", w), C = !0);
|
|
4025
4023
|
},
|
|
4026
|
-
p(
|
|
4027
|
-
e =
|
|
4028
|
-
8 && !
|
|
4024
|
+
p(B, H) {
|
|
4025
|
+
e = B, H & /*topCategories*/
|
|
4026
|
+
8 && !be(r.src, n = /*category*/
|
|
4029
4027
|
e[23].icon) && R(r, "src", n), H & /*topCategories*/
|
|
4030
4028
|
8 && i !== (i = /*category*/
|
|
4031
4029
|
e[23].name) && R(r, "alt", i), H & /*topCategories*/
|
|
4032
4030
|
8 && h !== (h = /*category*/
|
|
4033
|
-
e[23].name + "") &&
|
|
4031
|
+
e[23].name + "") && F(a, h), H & /*topCategories*/
|
|
4034
4032
|
8 && f !== (f = /*category*/
|
|
4035
|
-
e[23].games.count + "") &&
|
|
4033
|
+
e[23].games.count + "") && F(d, f), H & /*$_*/
|
|
4036
4034
|
32 && g !== (g = /*$_*/
|
|
4037
|
-
e[5]("games") + "") &&
|
|
4035
|
+
e[5]("games") + "") && F(E, g), H & /*activecategory, topCategories*/
|
|
4038
4036
|
9 && m !== (m = "Category " + /*activecategory*/
|
|
4039
4037
|
(e[0] === /*category*/
|
|
4040
4038
|
e[23].id ? "Active" : "")) && I(t, "class", m);
|
|
4041
4039
|
},
|
|
4042
|
-
d(
|
|
4043
|
-
|
|
4040
|
+
d(B) {
|
|
4041
|
+
B && k(t), C = !1, A();
|
|
4044
4042
|
}
|
|
4045
4043
|
};
|
|
4046
4044
|
}
|
|
4047
|
-
function
|
|
4045
|
+
function vt(e) {
|
|
4048
4046
|
let t, r, n, i, s, o, u, h = (
|
|
4049
4047
|
/*category*/
|
|
4050
4048
|
e[23].name + ""
|
|
4051
4049
|
), a, l, c, f = (
|
|
4052
4050
|
/*category*/
|
|
4053
4051
|
e[23].games.count + ""
|
|
4054
|
-
),
|
|
4052
|
+
), d, p, g = (
|
|
4055
4053
|
/*$_*/
|
|
4056
4054
|
e[5]("games") + ""
|
|
4057
|
-
), E, m,
|
|
4058
|
-
function
|
|
4055
|
+
), E, m, C, A, w;
|
|
4056
|
+
function B() {
|
|
4059
4057
|
return (
|
|
4060
4058
|
/*click_handler_1*/
|
|
4061
4059
|
e[16](
|
|
@@ -4066,51 +4064,51 @@ function Tt(e) {
|
|
|
4066
4064
|
}
|
|
4067
4065
|
return {
|
|
4068
4066
|
c() {
|
|
4069
|
-
t =
|
|
4067
|
+
t = S("div"), r = S("ui-image"), s = U(), o = S("div"), u = S("p"), a = D(h), l = U(), c = S("p"), d = D(f), p = U(), E = D(g), m = U(), be(r.src, n = /*category*/
|
|
4070
4068
|
e[23].icon) || R(r, "src", n), R(r, "alt", i = /*category*/
|
|
4071
|
-
e[23].name), R(r, "class", "CategoryImage"), I(o, "class", "CategoryTextContainer"), I(t, "class",
|
|
4069
|
+
e[23].name), R(r, "class", "CategoryImage"), I(o, "class", "CategoryTextContainer"), I(t, "class", C = "Category " + /*activecategory*/
|
|
4072
4070
|
(e[0] === /*category*/
|
|
4073
4071
|
e[23].id ? "Active" : ""));
|
|
4074
4072
|
},
|
|
4075
4073
|
m(H, P) {
|
|
4076
|
-
|
|
4074
|
+
K(H, t, P), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, l), v(o, c), v(c, d), v(c, p), v(c, E), v(t, m), A || (w = At(t, "click", B), A = !0);
|
|
4077
4075
|
},
|
|
4078
4076
|
p(H, P) {
|
|
4079
4077
|
e = H, P & /*otherCategories*/
|
|
4080
|
-
16 && !
|
|
4078
|
+
16 && !be(r.src, n = /*category*/
|
|
4081
4079
|
e[23].icon) && R(r, "src", n), P & /*otherCategories*/
|
|
4082
4080
|
16 && i !== (i = /*category*/
|
|
4083
4081
|
e[23].name) && R(r, "alt", i), P & /*otherCategories*/
|
|
4084
4082
|
16 && h !== (h = /*category*/
|
|
4085
|
-
e[23].name + "") &&
|
|
4083
|
+
e[23].name + "") && F(a, h), P & /*otherCategories*/
|
|
4086
4084
|
16 && f !== (f = /*category*/
|
|
4087
|
-
e[23].games.count + "") &&
|
|
4085
|
+
e[23].games.count + "") && F(d, f), P & /*$_*/
|
|
4088
4086
|
32 && g !== (g = /*$_*/
|
|
4089
|
-
e[5]("games") + "") &&
|
|
4090
|
-
17 &&
|
|
4087
|
+
e[5]("games") + "") && F(E, g), P & /*activecategory, otherCategories*/
|
|
4088
|
+
17 && C !== (C = "Category " + /*activecategory*/
|
|
4091
4089
|
(e[0] === /*category*/
|
|
4092
|
-
e[23].id ? "Active" : "")) && I(t, "class",
|
|
4090
|
+
e[23].id ? "Active" : "")) && I(t, "class", C);
|
|
4093
4091
|
},
|
|
4094
4092
|
d(H) {
|
|
4095
|
-
H &&
|
|
4093
|
+
H && k(t), A = !1, w();
|
|
4096
4094
|
}
|
|
4097
4095
|
};
|
|
4098
4096
|
}
|
|
4099
|
-
function
|
|
4097
|
+
function Ci(e) {
|
|
4100
4098
|
let t;
|
|
4101
4099
|
function r(s, o) {
|
|
4102
4100
|
return (
|
|
4103
4101
|
/*isLoading*/
|
|
4104
|
-
s[2] ?
|
|
4102
|
+
s[2] ? Ti : vi
|
|
4105
4103
|
);
|
|
4106
4104
|
}
|
|
4107
4105
|
let n = r(e), i = n(e);
|
|
4108
4106
|
return {
|
|
4109
4107
|
c() {
|
|
4110
|
-
t =
|
|
4108
|
+
t = S("div"), i.c();
|
|
4111
4109
|
},
|
|
4112
4110
|
m(s, o) {
|
|
4113
|
-
|
|
4111
|
+
K(s, t, o), i.m(t, null), e[17](t);
|
|
4114
4112
|
},
|
|
4115
4113
|
p(s, [o]) {
|
|
4116
4114
|
n === (n = r(s)) && i ? i.p(s, o) : (i.d(1), i = n(s), i && (i.c(), i.m(t, null)));
|
|
@@ -4118,67 +4116,67 @@ function Hi(e) {
|
|
|
4118
4116
|
i: L,
|
|
4119
4117
|
o: L,
|
|
4120
4118
|
d(s) {
|
|
4121
|
-
s &&
|
|
4119
|
+
s && k(t), i.d(), e[17](null);
|
|
4122
4120
|
}
|
|
4123
4121
|
};
|
|
4124
4122
|
}
|
|
4125
|
-
function
|
|
4123
|
+
function Hi(e, t, r) {
|
|
4126
4124
|
let n;
|
|
4127
|
-
|
|
4128
|
-
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { activecategory: u = "" } = t, { excludedflags: h = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: c = "" } = t, { mbsource: f } = t,
|
|
4125
|
+
ar(e, pi, (b) => r(5, n = b));
|
|
4126
|
+
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { activecategory: u = "" } = t, { excludedflags: h = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: c = "" } = t, { mbsource: f } = t, d, p = !1;
|
|
4129
4127
|
const g = [];
|
|
4130
4128
|
let E = [], m = [];
|
|
4131
|
-
Object.keys(
|
|
4132
|
-
|
|
4129
|
+
Object.keys(yt).forEach((b) => {
|
|
4130
|
+
bt(b, yt[b]);
|
|
4133
4131
|
});
|
|
4134
|
-
const
|
|
4132
|
+
const C = () => {
|
|
4135
4133
|
fetch(c).then(($) => $.json()).then(($) => {
|
|
4136
|
-
Object.keys($).forEach((
|
|
4137
|
-
|
|
4134
|
+
Object.keys($).forEach((le) => {
|
|
4135
|
+
bt(le, $[le]);
|
|
4138
4136
|
});
|
|
4139
4137
|
}).catch(($) => {
|
|
4140
4138
|
console.log($);
|
|
4141
4139
|
});
|
|
4142
|
-
},
|
|
4143
|
-
r(2,
|
|
4140
|
+
}, A = () => {
|
|
4141
|
+
r(2, p = !0);
|
|
4144
4142
|
const b = new URL(`${i}/v1/casino/groups/${s}`);
|
|
4145
4143
|
b.searchParams.append("language", o), fetch(b).then(($) => $.json()).then(($) => {
|
|
4146
|
-
r(2,
|
|
4147
|
-
const
|
|
4144
|
+
r(2, p = !1);
|
|
4145
|
+
const le = h.split(",").map((j) => j.trim());
|
|
4148
4146
|
g.push(...$.items);
|
|
4149
|
-
const
|
|
4150
|
-
var
|
|
4151
|
-
return ((
|
|
4147
|
+
const Qe = g.filter((j) => !le.some((er) => {
|
|
4148
|
+
var qe;
|
|
4149
|
+
return ((qe = j.flags) == null ? void 0 : qe.indexOf(er)) >= 0;
|
|
4152
4150
|
}));
|
|
4153
|
-
r(3, E =
|
|
4151
|
+
r(3, E = Qe.filter((j) => j.isTopCategory === !0)), r(4, m = Qe.filter((j) => j.isTopCategory === !1));
|
|
4154
4152
|
});
|
|
4155
4153
|
}, w = (b) => {
|
|
4156
4154
|
window.postMessage({ type: "OpenGameCategory", categoryId: b }, window.location.href);
|
|
4157
|
-
},
|
|
4155
|
+
}, B = () => {
|
|
4158
4156
|
xi(o);
|
|
4159
4157
|
};
|
|
4160
|
-
|
|
4158
|
+
mr(() => () => {
|
|
4161
4159
|
});
|
|
4162
4160
|
const H = (b) => w(b.id), P = (b) => w(b.id);
|
|
4163
|
-
function
|
|
4164
|
-
|
|
4165
|
-
|
|
4161
|
+
function Kt(b) {
|
|
4162
|
+
Le[b ? "unshift" : "push"](() => {
|
|
4163
|
+
d = b, r(1, d);
|
|
4166
4164
|
});
|
|
4167
4165
|
}
|
|
4168
4166
|
return e.$$set = (b) => {
|
|
4169
4167
|
"endpoint" in b && r(7, i = b.endpoint), "datasource" in b && r(8, s = b.datasource), "lang" in b && r(9, o = b.lang), "activecategory" in b && r(0, u = b.activecategory), "excludedflags" in b && r(10, h = b.excludedflags), "clientstyling" in b && r(11, a = b.clientstyling), "clientstylingurl" in b && r(12, l = b.clientstylingurl), "translationurl" in b && r(13, c = b.translationurl), "mbsource" in b && r(14, f = b.mbsource);
|
|
4170
4168
|
}, e.$$.update = () => {
|
|
4171
4169
|
e.$$.dirty & /*endpoint, datasource*/
|
|
4172
|
-
384 && i && s &&
|
|
4173
|
-
8192 && c &&
|
|
4174
|
-
512 && o &&
|
|
4175
|
-
2050 && a &&
|
|
4176
|
-
4098 && l &&
|
|
4177
|
-
16386 && f &&
|
|
4170
|
+
384 && i && s && A(), e.$$.dirty & /*translationurl*/
|
|
4171
|
+
8192 && c && C(), e.$$.dirty & /*lang*/
|
|
4172
|
+
512 && o && B(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4173
|
+
2050 && a && d && bi(d, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4174
|
+
4098 && l && d && yi(d, l), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4175
|
+
16386 && f && d && _i(d, `${f}.Style`);
|
|
4178
4176
|
}, [
|
|
4179
4177
|
u,
|
|
4180
|
-
p,
|
|
4181
4178
|
d,
|
|
4179
|
+
p,
|
|
4182
4180
|
E,
|
|
4183
4181
|
m,
|
|
4184
4182
|
n,
|
|
@@ -4193,17 +4191,17 @@ function Si(e, t, r) {
|
|
|
4193
4191
|
f,
|
|
4194
4192
|
H,
|
|
4195
4193
|
P,
|
|
4196
|
-
|
|
4194
|
+
Kt
|
|
4197
4195
|
];
|
|
4198
4196
|
}
|
|
4199
|
-
class
|
|
4197
|
+
class Yt extends Ar {
|
|
4200
4198
|
constructor(t) {
|
|
4201
|
-
super(),
|
|
4199
|
+
super(), Cr(
|
|
4202
4200
|
this,
|
|
4203
4201
|
t,
|
|
4204
|
-
Si,
|
|
4205
4202
|
Hi,
|
|
4206
|
-
|
|
4203
|
+
Ci,
|
|
4204
|
+
Ct,
|
|
4207
4205
|
{
|
|
4208
4206
|
endpoint: 7,
|
|
4209
4207
|
datasource: 8,
|
|
@@ -4215,7 +4213,7 @@ class Kt extends Ar {
|
|
|
4215
4213
|
translationurl: 13,
|
|
4216
4214
|
mbsource: 14
|
|
4217
4215
|
},
|
|
4218
|
-
|
|
4216
|
+
Ei
|
|
4219
4217
|
);
|
|
4220
4218
|
}
|
|
4221
4219
|
get endpoint() {
|
|
@@ -4273,42 +4271,42 @@ class Kt extends Ar {
|
|
|
4273
4271
|
this.$$set({ mbsource: t }), M();
|
|
4274
4272
|
}
|
|
4275
4273
|
}
|
|
4276
|
-
|
|
4277
|
-
const
|
|
4274
|
+
Hr(Yt, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4275
|
+
const Oi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4278
4276
|
__proto__: null,
|
|
4279
|
-
default:
|
|
4277
|
+
default: Yt
|
|
4280
4278
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4281
4279
|
export {
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4280
|
+
te as $,
|
|
4281
|
+
Si as A,
|
|
4282
|
+
rt as B,
|
|
4283
|
+
be as C,
|
|
4284
|
+
Oi as D,
|
|
4287
4285
|
Ar as S,
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4286
|
+
Wt as a,
|
|
4287
|
+
ur as b,
|
|
4288
|
+
Hr as c,
|
|
4289
|
+
U as d,
|
|
4290
|
+
S as e,
|
|
4293
4291
|
M as f,
|
|
4294
4292
|
I as g,
|
|
4295
4293
|
R as h,
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4294
|
+
Cr as i,
|
|
4295
|
+
K as j,
|
|
4296
|
+
v as k,
|
|
4299
4297
|
At as l,
|
|
4300
|
-
|
|
4298
|
+
F as m,
|
|
4301
4299
|
L as n,
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4300
|
+
k as o,
|
|
4301
|
+
ar as p,
|
|
4302
|
+
mr as q,
|
|
4303
|
+
ue as r,
|
|
4304
|
+
Ct as s,
|
|
4305
|
+
D as t,
|
|
4306
|
+
Le as u,
|
|
4309
4307
|
bi as v,
|
|
4310
4308
|
yi as w,
|
|
4311
4309
|
_i as x,
|
|
4312
|
-
|
|
4313
|
-
|
|
4310
|
+
pi as y,
|
|
4311
|
+
ce as z
|
|
4314
4312
|
};
|