@everymatrix/casino-categories-providers 1.60.1 → 1.61.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoCategories-CkBZnT1R.js → CasinoCategories-43kv7Ixl.js} +691 -692
- package/components/CasinoCategories-Bb_iAxyS.cjs +16 -0
- package/components/{CasinoCategories-CpYuQZ7U.js → CasinoCategories-C1SbCggG.js} +706 -707
- package/components/{CasinoCategoriesProviders-BG-FGTs-.cjs → CasinoCategoriesProviders-BRk7QvhE.cjs} +1 -1
- package/components/{CasinoCategoriesProviders-De_6ATE1.js → CasinoCategoriesProviders-D0zwQEPC.js} +19 -19
- package/components/{CasinoCategoriesProviders-BDw-rk5g.js → CasinoCategoriesProviders-DD8RNcU6.js} +17 -17
- package/components/CasinoProviders-B1fox9dx.cjs +1 -0
- package/components/{CasinoProviders-DsL3JzjC.js → CasinoProviders-BiWUYHVq.js} +142 -141
- package/components/{CasinoProviders-Cm7soutR.js → CasinoProviders-DHsyJul_.js} +142 -141
- 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/app-globals-0f993ce5-D-kw1sls.js +5 -0
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
- package/stencil/index-b7bbd57e-BBUBsGhp.js +550 -0
- package/stencil/index-b7bbd57e-SuDXAV6_.cjs +1 -0
- package/stencil/index-b7bbd57e-wJC_uAuk.js +534 -0
- package/stencil/ui-image-38c3c15f-ByZECnci.js +39 -0
- package/stencil/ui-image-38c3c15f-D_V48h1L.js +39 -0
- package/stencil/ui-image-38c3c15f-VguNkCIq.cjs +1 -0
- package/stencil/ui-image-BNrzgSpe.js +11 -0
- package/stencil/ui-image-CLghOqUz.cjs +1 -0
- package/stencil/ui-image-CPH6BqjQ.js +29 -0
- package/components/CasinoCategories-DqO2b02B.cjs +0 -16
- package/components/CasinoProviders-DJlmVQlk.cjs +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var er = Object.defineProperty, tr = Object.defineProperties;
|
|
2
|
+
var rr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var qe = Object.getOwnPropertySymbols;
|
|
4
|
+
var nr = Object.prototype.hasOwnProperty, ir = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var He = (e, t, r) => t in e ? er(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Je = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
nr.call(t, r) && He(e, r, t[r]);
|
|
8
|
+
if (qe)
|
|
9
|
+
for (var r of qe(t))
|
|
10
|
+
ir.call(t, r) && He(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
}, Ye = (e, t) => tr(e, rr(t));
|
|
13
|
+
var N = (e, t, r) => (He(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var Ke = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (h) => {
|
|
16
16
|
try {
|
|
17
17
|
u(r.next(h));
|
|
@@ -27,53 +27,54 @@ var et = (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
|
-
|
|
30
|
+
import "../stencil/ui-image-CPH6BqjQ.js";
|
|
31
|
+
function L() {
|
|
31
32
|
}
|
|
32
|
-
function
|
|
33
|
+
function vt(e) {
|
|
33
34
|
return e();
|
|
34
35
|
}
|
|
35
|
-
function
|
|
36
|
+
function et() {
|
|
36
37
|
return /* @__PURE__ */ Object.create(null);
|
|
37
38
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
39
|
+
function ue(e) {
|
|
40
|
+
e.forEach(vt);
|
|
40
41
|
}
|
|
41
|
-
function
|
|
42
|
+
function Xe(e) {
|
|
42
43
|
return typeof e == "function";
|
|
43
44
|
}
|
|
44
45
|
function Ct(e, t) {
|
|
45
46
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
47
|
}
|
|
47
|
-
let
|
|
48
|
-
function
|
|
49
|
-
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);
|
|
50
51
|
}
|
|
51
|
-
function
|
|
52
|
+
function sr(e) {
|
|
52
53
|
return Object.keys(e).length === 0;
|
|
53
54
|
}
|
|
54
|
-
function
|
|
55
|
+
function Tt(e, ...t) {
|
|
55
56
|
if (e == null) {
|
|
56
57
|
for (const n of t)
|
|
57
58
|
n(void 0);
|
|
58
|
-
return
|
|
59
|
+
return L;
|
|
59
60
|
}
|
|
60
61
|
const r = e.subscribe(...t);
|
|
61
62
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
62
63
|
}
|
|
63
|
-
function
|
|
64
|
-
e.$$.on_destroy.push(
|
|
64
|
+
function or(e, t, r) {
|
|
65
|
+
e.$$.on_destroy.push(Tt(t, r));
|
|
65
66
|
}
|
|
66
67
|
function v(e, t) {
|
|
67
68
|
e.appendChild(t);
|
|
68
69
|
}
|
|
69
|
-
function
|
|
70
|
-
const n =
|
|
70
|
+
function ar(e, t, r) {
|
|
71
|
+
const n = ur(e);
|
|
71
72
|
if (!n.getElementById(t)) {
|
|
72
|
-
const i =
|
|
73
|
-
i.id = t, i.textContent = r,
|
|
73
|
+
const i = S("style");
|
|
74
|
+
i.id = t, i.textContent = r, hr(n, i);
|
|
74
75
|
}
|
|
75
76
|
}
|
|
76
|
-
function
|
|
77
|
+
function ur(e) {
|
|
77
78
|
if (!e)
|
|
78
79
|
return document;
|
|
79
80
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -83,49 +84,49 @@ function hr(e) {
|
|
|
83
84
|
t
|
|
84
85
|
) : e.ownerDocument;
|
|
85
86
|
}
|
|
86
|
-
function
|
|
87
|
+
function hr(e, t) {
|
|
87
88
|
return v(
|
|
88
89
|
/** @type {Document} */
|
|
89
90
|
e.head || e,
|
|
90
91
|
t
|
|
91
92
|
), t.sheet;
|
|
92
93
|
}
|
|
93
|
-
function
|
|
94
|
+
function K(e, t, r) {
|
|
94
95
|
e.insertBefore(t, r || null);
|
|
95
96
|
}
|
|
96
|
-
function
|
|
97
|
+
function k(e) {
|
|
97
98
|
e.parentNode && e.parentNode.removeChild(e);
|
|
98
99
|
}
|
|
99
|
-
function
|
|
100
|
+
function tt(e, t) {
|
|
100
101
|
for (let r = 0; r < e.length; r += 1)
|
|
101
102
|
e[r] && e[r].d(t);
|
|
102
103
|
}
|
|
103
|
-
function
|
|
104
|
+
function S(e) {
|
|
104
105
|
return document.createElement(e);
|
|
105
106
|
}
|
|
106
|
-
function
|
|
107
|
+
function D(e) {
|
|
107
108
|
return document.createTextNode(e);
|
|
108
109
|
}
|
|
109
|
-
function
|
|
110
|
-
return
|
|
110
|
+
function U() {
|
|
111
|
+
return D(" ");
|
|
111
112
|
}
|
|
112
|
-
function
|
|
113
|
-
return
|
|
113
|
+
function Bi() {
|
|
114
|
+
return D("");
|
|
114
115
|
}
|
|
115
|
-
function
|
|
116
|
+
function Ht(e, t, r, n) {
|
|
116
117
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
117
118
|
}
|
|
118
|
-
function
|
|
119
|
+
function I(e, t, r) {
|
|
119
120
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
120
121
|
}
|
|
121
|
-
function
|
|
122
|
+
function R(e, t, r) {
|
|
122
123
|
const n = t.toLowerCase();
|
|
123
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
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);
|
|
124
125
|
}
|
|
125
|
-
function
|
|
126
|
+
function lr(e) {
|
|
126
127
|
return Array.from(e.childNodes);
|
|
127
128
|
}
|
|
128
|
-
function
|
|
129
|
+
function F(e, t) {
|
|
129
130
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
130
131
|
t);
|
|
131
132
|
}
|
|
@@ -138,98 +139,98 @@ function fr(e) {
|
|
|
138
139
|
}
|
|
139
140
|
), t;
|
|
140
141
|
}
|
|
141
|
-
let
|
|
142
|
-
function
|
|
143
|
-
|
|
142
|
+
let se;
|
|
143
|
+
function ie(e) {
|
|
144
|
+
se = e;
|
|
144
145
|
}
|
|
145
|
-
function
|
|
146
|
-
if (!
|
|
146
|
+
function cr() {
|
|
147
|
+
if (!se)
|
|
147
148
|
throw new Error("Function called outside component initialization");
|
|
148
|
-
return
|
|
149
|
+
return se;
|
|
149
150
|
}
|
|
150
|
-
function
|
|
151
|
-
|
|
151
|
+
function gr(e) {
|
|
152
|
+
cr().$$.on_mount.push(e);
|
|
152
153
|
}
|
|
153
|
-
const
|
|
154
|
-
let
|
|
155
|
-
const
|
|
156
|
-
let
|
|
157
|
-
function
|
|
158
|
-
|
|
154
|
+
const W = [], Le = [];
|
|
155
|
+
let Z = [];
|
|
156
|
+
const rt = [], mr = /* @__PURE__ */ Promise.resolve();
|
|
157
|
+
let Ie = !1;
|
|
158
|
+
function pr() {
|
|
159
|
+
Ie || (Ie = !0, mr.then(M));
|
|
159
160
|
}
|
|
160
|
-
function
|
|
161
|
-
|
|
161
|
+
function Me(e) {
|
|
162
|
+
Z.push(e);
|
|
162
163
|
}
|
|
163
|
-
const
|
|
164
|
-
let
|
|
164
|
+
const Ae = /* @__PURE__ */ new Set();
|
|
165
|
+
let X = 0;
|
|
165
166
|
function M() {
|
|
166
|
-
if (
|
|
167
|
+
if (X !== 0)
|
|
167
168
|
return;
|
|
168
|
-
const e =
|
|
169
|
+
const e = se;
|
|
169
170
|
do {
|
|
170
171
|
try {
|
|
171
|
-
for (;
|
|
172
|
-
const t =
|
|
173
|
-
|
|
172
|
+
for (; X < W.length; ) {
|
|
173
|
+
const t = W[X];
|
|
174
|
+
X++, ie(t), dr(t.$$);
|
|
174
175
|
}
|
|
175
176
|
} catch (t) {
|
|
176
|
-
throw
|
|
177
|
+
throw W.length = 0, X = 0, t;
|
|
177
178
|
}
|
|
178
|
-
for (
|
|
179
|
-
|
|
180
|
-
for (let t = 0; t <
|
|
181
|
-
const r =
|
|
182
|
-
|
|
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());
|
|
183
184
|
}
|
|
184
|
-
|
|
185
|
-
} while (
|
|
186
|
-
for (;
|
|
187
|
-
|
|
188
|
-
|
|
185
|
+
Z.length = 0;
|
|
186
|
+
} while (W.length);
|
|
187
|
+
for (; rt.length; )
|
|
188
|
+
rt.pop()();
|
|
189
|
+
Ie = !1, Ae.clear(), ie(e);
|
|
189
190
|
}
|
|
190
|
-
function
|
|
191
|
+
function dr(e) {
|
|
191
192
|
if (e.fragment !== null) {
|
|
192
|
-
e.update(),
|
|
193
|
+
e.update(), ue(e.before_update);
|
|
193
194
|
const t = e.dirty;
|
|
194
|
-
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);
|
|
195
196
|
}
|
|
196
197
|
}
|
|
197
|
-
function
|
|
198
|
+
function br(e) {
|
|
198
199
|
const t = [], r = [];
|
|
199
|
-
|
|
200
|
+
Z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Z = t;
|
|
200
201
|
}
|
|
201
|
-
const
|
|
202
|
-
function
|
|
203
|
-
e && e.i && (
|
|
202
|
+
const yr = /* @__PURE__ */ new Set();
|
|
203
|
+
function _r(e, t) {
|
|
204
|
+
e && e.i && (yr.delete(e), e.i(t));
|
|
204
205
|
}
|
|
205
206
|
function ce(e) {
|
|
206
207
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
207
208
|
}
|
|
208
|
-
function
|
|
209
|
+
function xr(e, t, r) {
|
|
209
210
|
const { fragment: n, after_update: i } = e.$$;
|
|
210
|
-
n && n.m(t, r),
|
|
211
|
-
const s = e.$$.on_mount.map(
|
|
212
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
213
|
-
}), i.forEach(
|
|
211
|
+
n && n.m(t, r), Me(() => {
|
|
212
|
+
const s = e.$$.on_mount.map(vt).filter(Xe);
|
|
213
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ue(s), e.$$.on_mount = [];
|
|
214
|
+
}), i.forEach(Me);
|
|
214
215
|
}
|
|
215
|
-
function
|
|
216
|
+
function Er(e, t) {
|
|
216
217
|
const r = e.$$;
|
|
217
|
-
r.fragment !== null && (
|
|
218
|
+
r.fragment !== null && (br(r.after_update), ue(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
218
219
|
}
|
|
219
|
-
function
|
|
220
|
-
e.$$.dirty[0] === -1 && (
|
|
220
|
+
function vr(e, t) {
|
|
221
|
+
e.$$.dirty[0] === -1 && (W.push(e), pr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
221
222
|
}
|
|
222
223
|
function Cr(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
223
|
-
const h =
|
|
224
|
-
|
|
224
|
+
const h = se;
|
|
225
|
+
ie(e);
|
|
225
226
|
const a = e.$$ = {
|
|
226
227
|
fragment: null,
|
|
227
228
|
ctx: [],
|
|
228
229
|
// state
|
|
229
230
|
props: s,
|
|
230
|
-
update:
|
|
231
|
+
update: L,
|
|
231
232
|
not_equal: i,
|
|
232
|
-
bound:
|
|
233
|
+
bound: et(),
|
|
233
234
|
// lifecycle
|
|
234
235
|
on_mount: [],
|
|
235
236
|
on_destroy: [],
|
|
@@ -238,48 +239,48 @@ function Cr(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
|
238
239
|
after_update: [],
|
|
239
240
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
240
241
|
// everything else
|
|
241
|
-
callbacks:
|
|
242
|
+
callbacks: et(),
|
|
242
243
|
dirty: u,
|
|
243
244
|
skip_bound: !1,
|
|
244
245
|
root: t.target || h.$$.root
|
|
245
246
|
};
|
|
246
247
|
o && o(a.root);
|
|
247
248
|
let l = !1;
|
|
248
|
-
if (a.ctx = r ? r(e, t.props || {}, (
|
|
249
|
-
const d = p.length ? p[0] :
|
|
250
|
-
return a.ctx && i(a.ctx[
|
|
251
|
-
}) : [], a.update(), l = !0,
|
|
249
|
+
if (a.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
250
|
+
const d = p.length ? p[0] : f;
|
|
251
|
+
return a.ctx && i(a.ctx[c], a.ctx[c] = d) && (!a.skip_bound && a.bound[c] && a.bound[c](d), l && vr(e, c)), f;
|
|
252
|
+
}) : [], a.update(), l = !0, ue(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
252
253
|
if (t.hydrate) {
|
|
253
|
-
const
|
|
254
|
-
a.fragment && a.fragment.l(
|
|
254
|
+
const c = lr(t.target);
|
|
255
|
+
a.fragment && a.fragment.l(c), c.forEach(k);
|
|
255
256
|
} else
|
|
256
257
|
a.fragment && a.fragment.c();
|
|
257
|
-
t.intro &&
|
|
258
|
+
t.intro && _r(e.$$.fragment), xr(e, t.target, t.anchor), M();
|
|
258
259
|
}
|
|
259
|
-
|
|
260
|
+
ie(h);
|
|
260
261
|
}
|
|
261
|
-
let
|
|
262
|
-
typeof HTMLElement == "function" && (
|
|
262
|
+
let At;
|
|
263
|
+
typeof HTMLElement == "function" && (At = class extends HTMLElement {
|
|
263
264
|
constructor(t, r, n) {
|
|
264
265
|
super();
|
|
265
266
|
/** The Svelte component constructor */
|
|
266
|
-
|
|
267
|
+
N(this, "$$ctor");
|
|
267
268
|
/** Slots */
|
|
268
|
-
|
|
269
|
+
N(this, "$$s");
|
|
269
270
|
/** The Svelte component instance */
|
|
270
|
-
|
|
271
|
+
N(this, "$$c");
|
|
271
272
|
/** Whether or not the custom element is connected */
|
|
272
|
-
|
|
273
|
+
N(this, "$$cn", !1);
|
|
273
274
|
/** Component props data */
|
|
274
|
-
|
|
275
|
+
N(this, "$$d", {});
|
|
275
276
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
276
|
-
|
|
277
|
+
N(this, "$$r", !1);
|
|
277
278
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
278
|
-
|
|
279
|
+
N(this, "$$p_d", {});
|
|
279
280
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
280
|
-
|
|
281
|
+
N(this, "$$l", {});
|
|
281
282
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
282
|
-
|
|
283
|
+
N(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
283
284
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
284
285
|
}
|
|
285
286
|
addEventListener(t, r, n) {
|
|
@@ -296,24 +297,24 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
296
297
|
}
|
|
297
298
|
}
|
|
298
299
|
connectedCallback() {
|
|
299
|
-
return
|
|
300
|
+
return Ke(this, null, function* () {
|
|
300
301
|
if (this.$$cn = !0, !this.$$c) {
|
|
301
302
|
let t = function(s) {
|
|
302
303
|
return () => {
|
|
303
304
|
let o;
|
|
304
305
|
return {
|
|
305
306
|
c: function() {
|
|
306
|
-
o =
|
|
307
|
+
o = S("slot"), s !== "default" && I(o, "name", s);
|
|
307
308
|
},
|
|
308
309
|
/**
|
|
309
310
|
* @param {HTMLElement} target
|
|
310
311
|
* @param {HTMLElement} [anchor]
|
|
311
312
|
*/
|
|
312
313
|
m: function(a, l) {
|
|
313
|
-
|
|
314
|
+
K(a, o, l);
|
|
314
315
|
},
|
|
315
316
|
d: function(a) {
|
|
316
|
-
a &&
|
|
317
|
+
a && k(o);
|
|
317
318
|
}
|
|
318
319
|
};
|
|
319
320
|
};
|
|
@@ -325,13 +326,13 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
325
326
|
s in n && (r[s] = [t(s)]);
|
|
326
327
|
for (const s of this.attributes) {
|
|
327
328
|
const o = this.$$g_p(s.name);
|
|
328
|
-
o in this.$$d || (this.$$d[o] =
|
|
329
|
+
o in this.$$d || (this.$$d[o] = me(o, s.value, this.$$p_d, "toProp"));
|
|
329
330
|
}
|
|
330
331
|
for (const s in this.$$p_d)
|
|
331
332
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
332
333
|
this.$$c = new this.$$ctor({
|
|
333
334
|
target: this.shadowRoot || this,
|
|
334
|
-
props:
|
|
335
|
+
props: Ye(Je({}, this.$$d), {
|
|
335
336
|
$$slots: r,
|
|
336
337
|
$$scope: {
|
|
337
338
|
ctx: []
|
|
@@ -342,7 +343,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
342
343
|
this.$$r = !0;
|
|
343
344
|
for (const s in this.$$p_d)
|
|
344
345
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
345
|
-
const o =
|
|
346
|
+
const o = me(
|
|
346
347
|
s,
|
|
347
348
|
this.$$d[s],
|
|
348
349
|
this.$$p_d,
|
|
@@ -366,7 +367,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
366
367
|
// and setting attributes through setAttribute etc, this is helpful
|
|
367
368
|
attributeChangedCallback(t, r, n) {
|
|
368
369
|
var i;
|
|
369
|
-
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] }));
|
|
370
371
|
}
|
|
371
372
|
disconnectedCallback() {
|
|
372
373
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -379,7 +380,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
379
380
|
) || t;
|
|
380
381
|
}
|
|
381
382
|
});
|
|
382
|
-
function
|
|
383
|
+
function me(e, t, r, n) {
|
|
383
384
|
var s;
|
|
384
385
|
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
385
386
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -409,8 +410,8 @@ function ge(e, t, r, n) {
|
|
|
409
410
|
return t;
|
|
410
411
|
}
|
|
411
412
|
}
|
|
412
|
-
function
|
|
413
|
-
let o = class extends
|
|
413
|
+
function Tr(e, t, r, n, i, s) {
|
|
414
|
+
let o = class extends At {
|
|
414
415
|
constructor() {
|
|
415
416
|
super(e, r, i), this.$$p_d = t;
|
|
416
417
|
}
|
|
@@ -427,7 +428,7 @@ function Hr(e, t, r, n, i, s) {
|
|
|
427
428
|
},
|
|
428
429
|
set(h) {
|
|
429
430
|
var a;
|
|
430
|
-
h =
|
|
431
|
+
h = me(u, h, t), this.$$d[u] = h, (a = this.$$c) == null || a.$set({ [u]: h });
|
|
431
432
|
}
|
|
432
433
|
});
|
|
433
434
|
}), n.forEach((u) => {
|
|
@@ -440,7 +441,7 @@ function Hr(e, t, r, n, i, s) {
|
|
|
440
441
|
}), e.element = /** @type {any} */
|
|
441
442
|
o, o;
|
|
442
443
|
}
|
|
443
|
-
class
|
|
444
|
+
class Hr {
|
|
444
445
|
constructor() {
|
|
445
446
|
/**
|
|
446
447
|
* ### PRIVATE API
|
|
@@ -449,7 +450,7 @@ class Ar {
|
|
|
449
450
|
*
|
|
450
451
|
* @type {any}
|
|
451
452
|
*/
|
|
452
|
-
|
|
453
|
+
N(this, "$$");
|
|
453
454
|
/**
|
|
454
455
|
* ### PRIVATE API
|
|
455
456
|
*
|
|
@@ -457,11 +458,11 @@ class Ar {
|
|
|
457
458
|
*
|
|
458
459
|
* @type {any}
|
|
459
460
|
*/
|
|
460
|
-
|
|
461
|
+
N(this, "$$set");
|
|
461
462
|
}
|
|
462
463
|
/** @returns {void} */
|
|
463
464
|
$destroy() {
|
|
464
|
-
|
|
465
|
+
Er(this, 1), this.$destroy = L;
|
|
465
466
|
}
|
|
466
467
|
/**
|
|
467
468
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -470,8 +471,8 @@ class Ar {
|
|
|
470
471
|
* @returns {() => void}
|
|
471
472
|
*/
|
|
472
473
|
$on(t, r) {
|
|
473
|
-
if (!
|
|
474
|
-
return
|
|
474
|
+
if (!Xe(r))
|
|
475
|
+
return L;
|
|
475
476
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
476
477
|
return n.push(r), () => {
|
|
477
478
|
const i = n.indexOf(r);
|
|
@@ -483,148 +484,148 @@ class Ar {
|
|
|
483
484
|
* @returns {void}
|
|
484
485
|
*/
|
|
485
486
|
$set(t) {
|
|
486
|
-
this.$$set && !
|
|
487
|
+
this.$$set && !sr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
487
488
|
}
|
|
488
489
|
}
|
|
489
|
-
const
|
|
490
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
491
|
-
const
|
|
492
|
-
function
|
|
490
|
+
const Ar = "4";
|
|
491
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ar);
|
|
492
|
+
const z = [];
|
|
493
|
+
function Br(e, t) {
|
|
493
494
|
return {
|
|
494
|
-
subscribe:
|
|
495
|
+
subscribe: xe(e, t).subscribe
|
|
495
496
|
};
|
|
496
497
|
}
|
|
497
|
-
function
|
|
498
|
+
function xe(e, t = L) {
|
|
498
499
|
let r;
|
|
499
500
|
const n = /* @__PURE__ */ new Set();
|
|
500
501
|
function i(u) {
|
|
501
502
|
if (Ct(e, u) && (e = u, r)) {
|
|
502
|
-
const h = !
|
|
503
|
+
const h = !z.length;
|
|
503
504
|
for (const a of n)
|
|
504
|
-
a[1](),
|
|
505
|
+
a[1](), z.push(a, e);
|
|
505
506
|
if (h) {
|
|
506
|
-
for (let a = 0; a <
|
|
507
|
-
|
|
508
|
-
|
|
507
|
+
for (let a = 0; a < z.length; a += 2)
|
|
508
|
+
z[a][0](z[a + 1]);
|
|
509
|
+
z.length = 0;
|
|
509
510
|
}
|
|
510
511
|
}
|
|
511
512
|
}
|
|
512
513
|
function s(u) {
|
|
513
514
|
i(u(e));
|
|
514
515
|
}
|
|
515
|
-
function o(u, h =
|
|
516
|
+
function o(u, h = L) {
|
|
516
517
|
const a = [u, h];
|
|
517
|
-
return n.add(a), n.size === 1 && (r = t(i, s) ||
|
|
518
|
+
return n.add(a), n.size === 1 && (r = t(i, s) || L), u(e), () => {
|
|
518
519
|
n.delete(a), n.size === 0 && r && (r(), r = null);
|
|
519
520
|
};
|
|
520
521
|
}
|
|
521
522
|
return { set: i, update: s, subscribe: o };
|
|
522
523
|
}
|
|
523
|
-
function
|
|
524
|
+
function ee(e, t, r) {
|
|
524
525
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
525
526
|
if (!i.every(Boolean))
|
|
526
527
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
527
528
|
const s = t.length < 2;
|
|
528
|
-
return
|
|
529
|
+
return Br(r, (o, u) => {
|
|
529
530
|
let h = !1;
|
|
530
531
|
const a = [];
|
|
531
|
-
let l = 0,
|
|
532
|
-
const
|
|
532
|
+
let l = 0, c = L;
|
|
533
|
+
const f = () => {
|
|
533
534
|
if (l)
|
|
534
535
|
return;
|
|
535
|
-
|
|
536
|
+
c();
|
|
536
537
|
const d = t(n ? a[0] : a, o, u);
|
|
537
|
-
s ? o(d) :
|
|
538
|
+
s ? o(d) : c = Xe(d) ? d : L;
|
|
538
539
|
}, p = i.map(
|
|
539
|
-
(d, g) =>
|
|
540
|
+
(d, g) => Tt(
|
|
540
541
|
d,
|
|
541
542
|
(E) => {
|
|
542
|
-
a[g] = E, l &= ~(1 << g), h &&
|
|
543
|
+
a[g] = E, l &= ~(1 << g), h && f();
|
|
543
544
|
},
|
|
544
545
|
() => {
|
|
545
546
|
l |= 1 << g;
|
|
546
547
|
}
|
|
547
548
|
)
|
|
548
549
|
);
|
|
549
|
-
return h = !0,
|
|
550
|
-
|
|
550
|
+
return h = !0, f(), function() {
|
|
551
|
+
ue(p), c(), h = !1;
|
|
551
552
|
};
|
|
552
553
|
});
|
|
553
554
|
}
|
|
554
|
-
function
|
|
555
|
+
function Sr(e) {
|
|
555
556
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
556
557
|
}
|
|
557
558
|
var Or = function(t) {
|
|
558
|
-
return
|
|
559
|
+
return wr(t) && !Pr(t);
|
|
559
560
|
};
|
|
560
|
-
function
|
|
561
|
+
function wr(e) {
|
|
561
562
|
return !!e && typeof e == "object";
|
|
562
563
|
}
|
|
563
|
-
function
|
|
564
|
+
function Pr(e) {
|
|
564
565
|
var t = Object.prototype.toString.call(e);
|
|
565
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
566
|
+
return t === "[object RegExp]" || t === "[object Date]" || Ir(e);
|
|
566
567
|
}
|
|
567
|
-
var
|
|
568
|
-
function
|
|
569
|
-
return e.$$typeof ===
|
|
568
|
+
var Nr = typeof Symbol == "function" && Symbol.for, Lr = Nr ? Symbol.for("react.element") : 60103;
|
|
569
|
+
function Ir(e) {
|
|
570
|
+
return e.$$typeof === Lr;
|
|
570
571
|
}
|
|
571
|
-
function
|
|
572
|
+
function Mr(e) {
|
|
572
573
|
return Array.isArray(e) ? [] : {};
|
|
573
574
|
}
|
|
574
|
-
function
|
|
575
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
575
|
+
function oe(e, t) {
|
|
576
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Q(Mr(e), e, t) : e;
|
|
576
577
|
}
|
|
577
|
-
function
|
|
578
|
+
function $r(e, t, r) {
|
|
578
579
|
return e.concat(t).map(function(n) {
|
|
579
|
-
return
|
|
580
|
+
return oe(n, r);
|
|
580
581
|
});
|
|
581
582
|
}
|
|
582
|
-
function
|
|
583
|
+
function Rr(e, t) {
|
|
583
584
|
if (!t.customMerge)
|
|
584
|
-
return
|
|
585
|
+
return Q;
|
|
585
586
|
var r = t.customMerge(e);
|
|
586
|
-
return typeof r == "function" ? r :
|
|
587
|
+
return typeof r == "function" ? r : Q;
|
|
587
588
|
}
|
|
588
|
-
function
|
|
589
|
+
function Ur(e) {
|
|
589
590
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
590
591
|
return Object.propertyIsEnumerable.call(e, t);
|
|
591
592
|
}) : [];
|
|
592
593
|
}
|
|
593
|
-
function
|
|
594
|
-
return Object.keys(e).concat(
|
|
594
|
+
function nt(e) {
|
|
595
|
+
return Object.keys(e).concat(Ur(e));
|
|
595
596
|
}
|
|
596
|
-
function
|
|
597
|
+
function Bt(e, t) {
|
|
597
598
|
try {
|
|
598
599
|
return t in e;
|
|
599
600
|
} catch (r) {
|
|
600
601
|
return !1;
|
|
601
602
|
}
|
|
602
603
|
}
|
|
603
|
-
function
|
|
604
|
-
return
|
|
604
|
+
function Dr(e, t) {
|
|
605
|
+
return Bt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
605
606
|
}
|
|
606
|
-
function
|
|
607
|
+
function Gr(e, t, r) {
|
|
607
608
|
var n = {};
|
|
608
|
-
return r.isMergeableObject(e) &&
|
|
609
|
-
n[i] =
|
|
610
|
-
}),
|
|
611
|
-
|
|
609
|
+
return r.isMergeableObject(e) && nt(e).forEach(function(i) {
|
|
610
|
+
n[i] = oe(e[i], r);
|
|
611
|
+
}), nt(t).forEach(function(i) {
|
|
612
|
+
Dr(e, i) || (Bt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Rr(i, r)(e[i], t[i], r) : n[i] = oe(t[i], r));
|
|
612
613
|
}), n;
|
|
613
614
|
}
|
|
614
|
-
function
|
|
615
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
615
|
+
function Q(e, t, r) {
|
|
616
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || $r, r.isMergeableObject = r.isMergeableObject || Or, r.cloneUnlessOtherwiseSpecified = oe;
|
|
616
617
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
617
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
618
|
+
return s ? n ? r.arrayMerge(e, t, r) : Gr(e, t, r) : oe(t, r);
|
|
618
619
|
}
|
|
619
|
-
|
|
620
|
+
Q.all = function(t, r) {
|
|
620
621
|
if (!Array.isArray(t))
|
|
621
622
|
throw new Error("first argument should be an array");
|
|
622
623
|
return t.reduce(function(n, i) {
|
|
623
|
-
return
|
|
624
|
+
return Q(n, i, r);
|
|
624
625
|
}, {});
|
|
625
626
|
};
|
|
626
|
-
var
|
|
627
|
-
const
|
|
627
|
+
var Fr = Q, jr = Fr;
|
|
628
|
+
const kr = /* @__PURE__ */ Sr(jr);
|
|
628
629
|
/*! *****************************************************************************
|
|
629
630
|
Copyright (c) Microsoft Corporation.
|
|
630
631
|
|
|
@@ -639,18 +640,18 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
639
640
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
640
641
|
PERFORMANCE OF THIS SOFTWARE.
|
|
641
642
|
***************************************************************************** */
|
|
642
|
-
var
|
|
643
|
-
return
|
|
643
|
+
var $e = function(e, t) {
|
|
644
|
+
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
644
645
|
r.__proto__ = n;
|
|
645
646
|
} || function(r, n) {
|
|
646
647
|
for (var i in n)
|
|
647
648
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
648
|
-
},
|
|
649
|
+
}, $e(e, t);
|
|
649
650
|
};
|
|
650
|
-
function
|
|
651
|
+
function Ee(e, t) {
|
|
651
652
|
if (typeof t != "function" && t !== null)
|
|
652
653
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
653
|
-
|
|
654
|
+
$e(e, t);
|
|
654
655
|
function r() {
|
|
655
656
|
this.constructor = e;
|
|
656
657
|
}
|
|
@@ -666,7 +667,7 @@ var x = function() {
|
|
|
666
667
|
return t;
|
|
667
668
|
}, x.apply(this, arguments);
|
|
668
669
|
};
|
|
669
|
-
function
|
|
670
|
+
function Vr(e, t) {
|
|
670
671
|
var r = {};
|
|
671
672
|
for (var n in e)
|
|
672
673
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -675,108 +676,106 @@ function Xr(e, t) {
|
|
|
675
676
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
676
677
|
return r;
|
|
677
678
|
}
|
|
678
|
-
function
|
|
679
|
+
function Be(e, t, r) {
|
|
679
680
|
if (arguments.length === 2)
|
|
680
681
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
681
682
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
682
683
|
return e.concat(s || t);
|
|
683
684
|
}
|
|
684
|
-
function
|
|
685
|
-
var r = t && t.cache ? t.cache : Jr, n = t && t.serializer ? t.serializer :
|
|
685
|
+
function Se(e, t) {
|
|
686
|
+
var r = t && t.cache ? t.cache : Jr, n = t && t.serializer ? t.serializer : Qr, i = t && t.strategy ? t.strategy : Wr;
|
|
686
687
|
return i(e, {
|
|
687
688
|
cache: r,
|
|
688
689
|
serializer: n
|
|
689
690
|
});
|
|
690
691
|
}
|
|
691
|
-
function
|
|
692
|
+
function Xr(e) {
|
|
692
693
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
693
694
|
}
|
|
694
|
-
function
|
|
695
|
-
var i =
|
|
695
|
+
function zr(e, t, r, n) {
|
|
696
|
+
var i = Xr(n) ? n : r(n), s = t.get(i);
|
|
696
697
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
697
698
|
}
|
|
698
|
-
function
|
|
699
|
+
function St(e, t, r) {
|
|
699
700
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
700
701
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
701
702
|
}
|
|
702
|
-
function
|
|
703
|
+
function Ot(e, t, r, n, i) {
|
|
703
704
|
return r.bind(t, e, n, i);
|
|
704
705
|
}
|
|
705
706
|
function Wr(e, t) {
|
|
706
|
-
var r = e.length === 1 ?
|
|
707
|
-
return
|
|
707
|
+
var r = e.length === 1 ? zr : St;
|
|
708
|
+
return Ot(e, this, r, t.cache.create(), t.serializer);
|
|
708
709
|
}
|
|
709
710
|
function Zr(e, t) {
|
|
710
|
-
return
|
|
711
|
-
}
|
|
712
|
-
function Qr(e, t) {
|
|
713
|
-
return Xe(e, this, wt, t.cache.create(), t.serializer);
|
|
711
|
+
return Ot(e, this, St, t.cache.create(), t.serializer);
|
|
714
712
|
}
|
|
715
|
-
var
|
|
713
|
+
var Qr = function() {
|
|
716
714
|
return JSON.stringify(arguments);
|
|
717
|
-
}
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
715
|
+
}, qr = (
|
|
716
|
+
/** @class */
|
|
717
|
+
function() {
|
|
718
|
+
function e() {
|
|
719
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
720
|
+
}
|
|
721
|
+
return e.prototype.get = function(t) {
|
|
722
|
+
return this.cache[t];
|
|
723
|
+
}, e.prototype.set = function(t, r) {
|
|
724
|
+
this.cache[t] = r;
|
|
725
|
+
}, e;
|
|
726
|
+
}()
|
|
727
|
+
), Jr = {
|
|
728
728
|
create: function() {
|
|
729
|
-
return new
|
|
729
|
+
return new qr();
|
|
730
730
|
}
|
|
731
|
-
},
|
|
732
|
-
variadic: Zr
|
|
733
|
-
monadic: Qr
|
|
731
|
+
}, Oe = {
|
|
732
|
+
variadic: Zr
|
|
734
733
|
}, y;
|
|
735
734
|
(function(e) {
|
|
736
735
|
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";
|
|
737
736
|
})(y || (y = {}));
|
|
738
|
-
var
|
|
737
|
+
var C;
|
|
739
738
|
(function(e) {
|
|
740
739
|
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";
|
|
741
|
-
})(
|
|
742
|
-
var
|
|
740
|
+
})(C || (C = {}));
|
|
741
|
+
var q;
|
|
743
742
|
(function(e) {
|
|
744
743
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
745
|
-
})(
|
|
746
|
-
function
|
|
747
|
-
return e.type ===
|
|
744
|
+
})(q || (q = {}));
|
|
745
|
+
function it(e) {
|
|
746
|
+
return e.type === C.literal;
|
|
748
747
|
}
|
|
749
748
|
function Yr(e) {
|
|
750
|
-
return e.type ===
|
|
749
|
+
return e.type === C.argument;
|
|
750
|
+
}
|
|
751
|
+
function wt(e) {
|
|
752
|
+
return e.type === C.number;
|
|
751
753
|
}
|
|
752
754
|
function Pt(e) {
|
|
753
|
-
return e.type ===
|
|
755
|
+
return e.type === C.date;
|
|
754
756
|
}
|
|
755
757
|
function Nt(e) {
|
|
756
|
-
return e.type ===
|
|
758
|
+
return e.type === C.time;
|
|
757
759
|
}
|
|
758
760
|
function Lt(e) {
|
|
759
|
-
return e.type ===
|
|
761
|
+
return e.type === C.select;
|
|
760
762
|
}
|
|
761
763
|
function It(e) {
|
|
762
|
-
return e.type ===
|
|
763
|
-
}
|
|
764
|
-
function Mt(e) {
|
|
765
|
-
return e.type === T.plural;
|
|
764
|
+
return e.type === C.plural;
|
|
766
765
|
}
|
|
767
766
|
function Kr(e) {
|
|
768
|
-
return e.type ===
|
|
767
|
+
return e.type === C.pound;
|
|
769
768
|
}
|
|
770
|
-
function
|
|
771
|
-
return e.type ===
|
|
769
|
+
function Mt(e) {
|
|
770
|
+
return e.type === C.tag;
|
|
772
771
|
}
|
|
773
|
-
function
|
|
774
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
772
|
+
function $t(e) {
|
|
773
|
+
return !!(e && typeof e == "object" && e.type === q.number);
|
|
775
774
|
}
|
|
776
|
-
function
|
|
777
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
775
|
+
function Re(e) {
|
|
776
|
+
return !!(e && typeof e == "object" && e.type === q.dateTime);
|
|
778
777
|
}
|
|
779
|
-
var
|
|
778
|
+
var Rt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, en = /(?:[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;
|
|
780
779
|
function tn(e) {
|
|
781
780
|
var t = {};
|
|
782
781
|
return e.replace(en, function(r) {
|
|
@@ -872,15 +871,15 @@ var rn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
|
872
871
|
function nn(e) {
|
|
873
872
|
if (e.length === 0)
|
|
874
873
|
throw new Error("Number skeleton cannot be empty");
|
|
875
|
-
for (var t = e.split(rn).filter(function(
|
|
876
|
-
return
|
|
874
|
+
for (var t = e.split(rn).filter(function(f) {
|
|
875
|
+
return f.length > 0;
|
|
877
876
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
878
877
|
var s = i[n], o = s.split("/");
|
|
879
878
|
if (o.length === 0)
|
|
880
879
|
throw new Error("Invalid number skeleton");
|
|
881
880
|
for (var u = o[0], h = o.slice(1), a = 0, l = h; a < l.length; a++) {
|
|
882
|
-
var
|
|
883
|
-
if (
|
|
881
|
+
var c = l[a];
|
|
882
|
+
if (c.length === 0)
|
|
884
883
|
throw new Error("Invalid number skeleton");
|
|
885
884
|
}
|
|
886
885
|
r.push({ stem: u, options: h });
|
|
@@ -890,14 +889,14 @@ function nn(e) {
|
|
|
890
889
|
function sn(e) {
|
|
891
890
|
return e.replace(/^(.*?)-/, "");
|
|
892
891
|
}
|
|
893
|
-
var
|
|
894
|
-
function
|
|
892
|
+
var st = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ut = /^(@+)?(\+|#+)?[rs]?$/g, on = /(\*)(0+)|(#+)(0+)|(0+)/g, Dt = /^(0+)$/;
|
|
893
|
+
function ot(e) {
|
|
895
894
|
var t = {};
|
|
896
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
895
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ut, function(r, n, i) {
|
|
897
896
|
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)), "";
|
|
898
897
|
}), t;
|
|
899
898
|
}
|
|
900
|
-
function
|
|
899
|
+
function Gt(e) {
|
|
901
900
|
switch (e) {
|
|
902
901
|
case "sign-auto":
|
|
903
902
|
return {
|
|
@@ -945,14 +944,14 @@ function an(e) {
|
|
|
945
944
|
notation: "scientific"
|
|
946
945
|
}, e = e.slice(1)), t) {
|
|
947
946
|
var r = e.slice(0, 2);
|
|
948
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
947
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Dt.test(e))
|
|
949
948
|
throw new Error("Malformed concise eng/scientific notation");
|
|
950
949
|
t.minimumIntegerDigits = e.length;
|
|
951
950
|
}
|
|
952
951
|
return t;
|
|
953
952
|
}
|
|
954
|
-
function
|
|
955
|
-
var t = {}, r =
|
|
953
|
+
function at(e) {
|
|
954
|
+
var t = {}, r = Gt(e);
|
|
956
955
|
return r || t;
|
|
957
956
|
}
|
|
958
957
|
function un(e) {
|
|
@@ -991,12 +990,12 @@ function un(e) {
|
|
|
991
990
|
continue;
|
|
992
991
|
case "scientific":
|
|
993
992
|
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(h, a) {
|
|
994
|
-
return x(x({}, h),
|
|
993
|
+
return x(x({}, h), at(a));
|
|
995
994
|
}, {}));
|
|
996
995
|
continue;
|
|
997
996
|
case "engineering":
|
|
998
997
|
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(h, a) {
|
|
999
|
-
return x(x({}, h),
|
|
998
|
+
return x(x({}, h), at(a));
|
|
1000
999
|
}, {}));
|
|
1001
1000
|
continue;
|
|
1002
1001
|
case "notation-simple":
|
|
@@ -1041,11 +1040,11 @@ function un(e) {
|
|
|
1041
1040
|
case "integer-width":
|
|
1042
1041
|
if (i.options.length > 1)
|
|
1043
1042
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1044
|
-
i.options[0].replace(on, function(h, a, l,
|
|
1043
|
+
i.options[0].replace(on, function(h, a, l, c, f, p) {
|
|
1045
1044
|
if (a)
|
|
1046
1045
|
t.minimumIntegerDigits = l.length;
|
|
1047
1046
|
else {
|
|
1048
|
-
if (
|
|
1047
|
+
if (c && f)
|
|
1049
1048
|
throw new Error("We currently do not support maximum integer digits");
|
|
1050
1049
|
if (p)
|
|
1051
1050
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1054,32 +1053,32 @@ function un(e) {
|
|
|
1054
1053
|
});
|
|
1055
1054
|
continue;
|
|
1056
1055
|
}
|
|
1057
|
-
if (
|
|
1056
|
+
if (Dt.test(i.stem)) {
|
|
1058
1057
|
t.minimumIntegerDigits = i.stem.length;
|
|
1059
1058
|
continue;
|
|
1060
1059
|
}
|
|
1061
|
-
if (
|
|
1060
|
+
if (st.test(i.stem)) {
|
|
1062
1061
|
if (i.options.length > 1)
|
|
1063
1062
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1064
|
-
i.stem.replace(
|
|
1065
|
-
return l === "*" ? t.minimumFractionDigits = a.length :
|
|
1063
|
+
i.stem.replace(st, function(h, a, l, c, f, p) {
|
|
1064
|
+
return l === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1066
1065
|
});
|
|
1067
1066
|
var s = i.options[0];
|
|
1068
|
-
s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t),
|
|
1067
|
+
s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t), ot(s)));
|
|
1069
1068
|
continue;
|
|
1070
1069
|
}
|
|
1071
|
-
if (
|
|
1072
|
-
t = x(x({}, t),
|
|
1070
|
+
if (Ut.test(i.stem)) {
|
|
1071
|
+
t = x(x({}, t), ot(i.stem));
|
|
1073
1072
|
continue;
|
|
1074
1073
|
}
|
|
1075
|
-
var o =
|
|
1074
|
+
var o = Gt(i.stem);
|
|
1076
1075
|
o && (t = x(x({}, t), o));
|
|
1077
1076
|
var u = an(i.stem);
|
|
1078
1077
|
u && (t = x(x({}, t), u));
|
|
1079
1078
|
}
|
|
1080
1079
|
return t;
|
|
1081
1080
|
}
|
|
1082
|
-
var
|
|
1081
|
+
var ge = {
|
|
1083
1082
|
"001": [
|
|
1084
1083
|
"H",
|
|
1085
1084
|
"h"
|
|
@@ -2529,23 +2528,23 @@ function ln(e) {
|
|
|
2529
2528
|
}
|
|
2530
2529
|
var r = e.language, n;
|
|
2531
2530
|
r !== "root" && (n = e.maximize().region);
|
|
2532
|
-
var i =
|
|
2531
|
+
var i = ge[n || ""] || ge[r || ""] || ge["".concat(r, "-001")] || ge["001"];
|
|
2533
2532
|
return i[0];
|
|
2534
2533
|
}
|
|
2535
|
-
var we,
|
|
2534
|
+
var we, fn = new RegExp("^".concat(Rt.source, "*")), cn = new RegExp("".concat(Rt.source, "*$"));
|
|
2536
2535
|
function _(e, t) {
|
|
2537
2536
|
return { start: e, end: t };
|
|
2538
2537
|
}
|
|
2539
2538
|
var gn = !!String.prototype.startsWith && "_a".startsWith("a", 1), mn = !!String.fromCodePoint, pn = !!Object.fromEntries, dn = !!String.prototype.codePointAt, bn = !!String.prototype.trimStart, yn = !!String.prototype.trimEnd, _n = !!Number.isSafeInteger, xn = _n ? Number.isSafeInteger : function(e) {
|
|
2540
2539
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2541
|
-
},
|
|
2540
|
+
}, Ue = !0;
|
|
2542
2541
|
try {
|
|
2543
|
-
var En =
|
|
2544
|
-
|
|
2542
|
+
var En = jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2543
|
+
Ue = ((we = En.exec("a")) === null || we === void 0 ? void 0 : we[0]) === "a";
|
|
2545
2544
|
} catch (e) {
|
|
2546
|
-
|
|
2545
|
+
Ue = !1;
|
|
2547
2546
|
}
|
|
2548
|
-
var
|
|
2547
|
+
var ut = gn ? (
|
|
2549
2548
|
// Native
|
|
2550
2549
|
function(t, r, n) {
|
|
2551
2550
|
return t.startsWith(r, n);
|
|
@@ -2555,7 +2554,7 @@ var ht = gn ? (
|
|
|
2555
2554
|
function(t, r, n) {
|
|
2556
2555
|
return t.slice(n, n + r.length) === r;
|
|
2557
2556
|
}
|
|
2558
|
-
),
|
|
2557
|
+
), De = mn ? String.fromCodePoint : (
|
|
2559
2558
|
// IE11
|
|
2560
2559
|
function() {
|
|
2561
2560
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2567,7 +2566,7 @@ var ht = gn ? (
|
|
|
2567
2566
|
}
|
|
2568
2567
|
return n;
|
|
2569
2568
|
}
|
|
2570
|
-
),
|
|
2569
|
+
), ht = (
|
|
2571
2570
|
// native
|
|
2572
2571
|
pn ? Object.fromEntries : (
|
|
2573
2572
|
// Ponyfill
|
|
@@ -2579,7 +2578,7 @@ var ht = gn ? (
|
|
|
2579
2578
|
return r;
|
|
2580
2579
|
}
|
|
2581
2580
|
)
|
|
2582
|
-
),
|
|
2581
|
+
), Ft = dn ? (
|
|
2583
2582
|
// Native
|
|
2584
2583
|
function(t, r) {
|
|
2585
2584
|
return t.codePointAt(r);
|
|
@@ -2601,9 +2600,9 @@ var ht = gn ? (
|
|
|
2601
2600
|
) : (
|
|
2602
2601
|
// Ponyfill
|
|
2603
2602
|
function(t) {
|
|
2604
|
-
return t.replace(
|
|
2603
|
+
return t.replace(fn, "");
|
|
2605
2604
|
}
|
|
2606
|
-
),
|
|
2605
|
+
), Cn = yn ? (
|
|
2607
2606
|
// Native
|
|
2608
2607
|
function(t) {
|
|
2609
2608
|
return t.trimEnd();
|
|
@@ -2611,32 +2610,32 @@ var ht = gn ? (
|
|
|
2611
2610
|
) : (
|
|
2612
2611
|
// Ponyfill
|
|
2613
2612
|
function(t) {
|
|
2614
|
-
return t.replace(
|
|
2613
|
+
return t.replace(cn, "");
|
|
2615
2614
|
}
|
|
2616
2615
|
);
|
|
2617
|
-
function
|
|
2616
|
+
function jt(e, t) {
|
|
2618
2617
|
return new RegExp(e, t);
|
|
2619
2618
|
}
|
|
2620
|
-
var
|
|
2621
|
-
if (
|
|
2622
|
-
var
|
|
2623
|
-
|
|
2619
|
+
var Ge;
|
|
2620
|
+
if (Ue) {
|
|
2621
|
+
var lt = jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2622
|
+
Ge = function(t, r) {
|
|
2624
2623
|
var n;
|
|
2625
|
-
|
|
2626
|
-
var i =
|
|
2624
|
+
lt.lastIndex = r;
|
|
2625
|
+
var i = lt.exec(t);
|
|
2627
2626
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2628
2627
|
};
|
|
2629
2628
|
} else
|
|
2630
|
-
|
|
2629
|
+
Ge = function(t, r) {
|
|
2631
2630
|
for (var n = []; ; ) {
|
|
2632
|
-
var i =
|
|
2633
|
-
if (i === void 0 ||
|
|
2631
|
+
var i = Ft(t, r);
|
|
2632
|
+
if (i === void 0 || kt(i) || Bn(i))
|
|
2634
2633
|
break;
|
|
2635
2634
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2636
2635
|
}
|
|
2637
|
-
return
|
|
2636
|
+
return De.apply(void 0, n);
|
|
2638
2637
|
};
|
|
2639
|
-
var
|
|
2638
|
+
var Tn = (
|
|
2640
2639
|
/** @class */
|
|
2641
2640
|
function() {
|
|
2642
2641
|
function e(t, r) {
|
|
@@ -2660,14 +2659,14 @@ var Cn = (
|
|
|
2660
2659
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2661
2660
|
var u = this.clonePosition();
|
|
2662
2661
|
this.bump(), i.push({
|
|
2663
|
-
type:
|
|
2662
|
+
type: C.pound,
|
|
2664
2663
|
location: _(u, this.clonePosition())
|
|
2665
2664
|
});
|
|
2666
2665
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2667
2666
|
if (n)
|
|
2668
2667
|
break;
|
|
2669
2668
|
return this.error(y.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
|
|
2670
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2669
|
+
} else if (s === 60 && !this.ignoreTag && Fe(this.peek() || 0)) {
|
|
2671
2670
|
var o = this.parseTag(t, r);
|
|
2672
2671
|
if (o.err)
|
|
2673
2672
|
return o;
|
|
@@ -2688,7 +2687,7 @@ var Cn = (
|
|
|
2688
2687
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2689
2688
|
return {
|
|
2690
2689
|
val: {
|
|
2691
|
-
type:
|
|
2690
|
+
type: C.literal,
|
|
2692
2691
|
value: "<".concat(i, "/>"),
|
|
2693
2692
|
location: _(n, this.clonePosition())
|
|
2694
2693
|
},
|
|
@@ -2700,12 +2699,12 @@ var Cn = (
|
|
|
2700
2699
|
return s;
|
|
2701
2700
|
var o = s.val, u = this.clonePosition();
|
|
2702
2701
|
if (this.bumpIf("</")) {
|
|
2703
|
-
if (this.isEOF() || !
|
|
2702
|
+
if (this.isEOF() || !Fe(this.char()))
|
|
2704
2703
|
return this.error(y.INVALID_TAG, _(u, this.clonePosition()));
|
|
2705
2704
|
var h = this.clonePosition(), a = this.parseTagName();
|
|
2706
2705
|
return i !== a ? this.error(y.UNMATCHED_CLOSING_TAG, _(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2707
2706
|
val: {
|
|
2708
|
-
type:
|
|
2707
|
+
type: C.tag,
|
|
2709
2708
|
value: i,
|
|
2710
2709
|
children: o,
|
|
2711
2710
|
location: _(n, this.clonePosition())
|
|
@@ -2742,7 +2741,7 @@ var Cn = (
|
|
|
2742
2741
|
}
|
|
2743
2742
|
var h = _(n, this.clonePosition());
|
|
2744
2743
|
return {
|
|
2745
|
-
val: { type:
|
|
2744
|
+
val: { type: C.literal, value: i, location: h },
|
|
2746
2745
|
err: null
|
|
2747
2746
|
};
|
|
2748
2747
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
@@ -2781,12 +2780,12 @@ var Cn = (
|
|
|
2781
2780
|
r.push(n);
|
|
2782
2781
|
this.bump();
|
|
2783
2782
|
}
|
|
2784
|
-
return
|
|
2783
|
+
return De.apply(void 0, r);
|
|
2785
2784
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2786
2785
|
if (this.isEOF())
|
|
2787
2786
|
return null;
|
|
2788
2787
|
var n = this.char();
|
|
2789
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2788
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), De(n));
|
|
2790
2789
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2791
2790
|
var n = this.clonePosition();
|
|
2792
2791
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2802,7 +2801,7 @@ var Cn = (
|
|
|
2802
2801
|
case 125:
|
|
2803
2802
|
return this.bump(), {
|
|
2804
2803
|
val: {
|
|
2805
|
-
type:
|
|
2804
|
+
type: C.argument,
|
|
2806
2805
|
// value does not include the opening and closing braces.
|
|
2807
2806
|
value: i,
|
|
2808
2807
|
location: _(n, this.clonePosition())
|
|
@@ -2815,7 +2814,7 @@ var Cn = (
|
|
|
2815
2814
|
return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
|
|
2816
2815
|
}
|
|
2817
2816
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2818
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2817
|
+
var t = this.clonePosition(), r = this.offset(), n = Ge(this.message, r), i = r + n.length;
|
|
2819
2818
|
this.bumpTo(i);
|
|
2820
2819
|
var s = this.clonePosition(), o = _(t, s);
|
|
2821
2820
|
return { value: n, location: o };
|
|
@@ -2831,25 +2830,25 @@ var Cn = (
|
|
|
2831
2830
|
var a = null;
|
|
2832
2831
|
if (this.bumpIf(",")) {
|
|
2833
2832
|
this.bumpSpace();
|
|
2834
|
-
var l = this.clonePosition(),
|
|
2835
|
-
if (
|
|
2836
|
-
return
|
|
2837
|
-
var
|
|
2838
|
-
if (
|
|
2833
|
+
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2834
|
+
if (c.err)
|
|
2835
|
+
return c;
|
|
2836
|
+
var f = Cn(c.val);
|
|
2837
|
+
if (f.length === 0)
|
|
2839
2838
|
return this.error(y.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
|
2840
2839
|
var p = _(l, this.clonePosition());
|
|
2841
|
-
a = { style:
|
|
2840
|
+
a = { style: f, styleLocation: p };
|
|
2842
2841
|
}
|
|
2843
2842
|
var d = this.tryParseArgumentClose(i);
|
|
2844
2843
|
if (d.err)
|
|
2845
2844
|
return d;
|
|
2846
2845
|
var g = _(i, this.clonePosition());
|
|
2847
|
-
if (a &&
|
|
2846
|
+
if (a && ut(a == null ? void 0 : a.style, "::", 0)) {
|
|
2848
2847
|
var E = vn(a.style.slice(2));
|
|
2849
2848
|
if (u === "number") {
|
|
2850
|
-
var
|
|
2851
|
-
return
|
|
2852
|
-
val: { type:
|
|
2849
|
+
var c = this.parseNumberSkeletonFromString(E, a.styleLocation);
|
|
2850
|
+
return c.err ? c : {
|
|
2851
|
+
val: { type: C.number, value: n, location: g, style: c.val },
|
|
2853
2852
|
err: null
|
|
2854
2853
|
};
|
|
2855
2854
|
} else {
|
|
@@ -2857,21 +2856,21 @@ var Cn = (
|
|
|
2857
2856
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, g);
|
|
2858
2857
|
var m = E;
|
|
2859
2858
|
this.locale && (m = hn(E, this.locale));
|
|
2860
|
-
var
|
|
2861
|
-
type:
|
|
2859
|
+
var f = {
|
|
2860
|
+
type: q.dateTime,
|
|
2862
2861
|
pattern: m,
|
|
2863
2862
|
location: a.styleLocation,
|
|
2864
2863
|
parsedOptions: this.shouldParseSkeletons ? tn(m) : {}
|
|
2865
|
-
},
|
|
2864
|
+
}, T = u === "date" ? C.date : C.time;
|
|
2866
2865
|
return {
|
|
2867
|
-
val: { type:
|
|
2866
|
+
val: { type: T, value: n, location: g, style: f },
|
|
2868
2867
|
err: null
|
|
2869
2868
|
};
|
|
2870
2869
|
}
|
|
2871
2870
|
}
|
|
2872
2871
|
return {
|
|
2873
2872
|
val: {
|
|
2874
|
-
type: u === "number" ?
|
|
2873
|
+
type: u === "number" ? C.number : u === "date" ? C.date : C.time,
|
|
2875
2874
|
value: n,
|
|
2876
2875
|
location: g,
|
|
2877
2876
|
style: (s = a == null ? void 0 : a.style) !== null && s !== void 0 ? s : null
|
|
@@ -2882,43 +2881,43 @@ var Cn = (
|
|
|
2882
2881
|
case "plural":
|
|
2883
2882
|
case "selectordinal":
|
|
2884
2883
|
case "select": {
|
|
2885
|
-
var
|
|
2884
|
+
var A = this.clonePosition();
|
|
2886
2885
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2887
|
-
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(
|
|
2886
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(A, x({}, A)));
|
|
2888
2887
|
this.bumpSpace();
|
|
2889
|
-
var
|
|
2890
|
-
if (u !== "select" &&
|
|
2888
|
+
var w = this.parseIdentifierIfPossible(), B = 0;
|
|
2889
|
+
if (u !== "select" && w.value === "offset") {
|
|
2891
2890
|
if (!this.bumpIf(":"))
|
|
2892
2891
|
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
|
|
2893
2892
|
this.bumpSpace();
|
|
2894
|
-
var
|
|
2895
|
-
if (
|
|
2896
|
-
return
|
|
2897
|
-
this.bumpSpace(),
|
|
2893
|
+
var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2894
|
+
if (c.err)
|
|
2895
|
+
return c;
|
|
2896
|
+
this.bumpSpace(), w = this.parseIdentifierIfPossible(), B = c.val;
|
|
2898
2897
|
}
|
|
2899
|
-
var
|
|
2900
|
-
if (
|
|
2901
|
-
return
|
|
2898
|
+
var H = this.tryParsePluralOrSelectOptions(t, u, r, w);
|
|
2899
|
+
if (H.err)
|
|
2900
|
+
return H;
|
|
2902
2901
|
var d = this.tryParseArgumentClose(i);
|
|
2903
2902
|
if (d.err)
|
|
2904
2903
|
return d;
|
|
2905
|
-
var
|
|
2904
|
+
var P = _(i, this.clonePosition());
|
|
2906
2905
|
return u === "select" ? {
|
|
2907
2906
|
val: {
|
|
2908
|
-
type:
|
|
2907
|
+
type: C.select,
|
|
2909
2908
|
value: n,
|
|
2910
|
-
options:
|
|
2911
|
-
location:
|
|
2909
|
+
options: ht(H.val),
|
|
2910
|
+
location: P
|
|
2912
2911
|
},
|
|
2913
2912
|
err: null
|
|
2914
2913
|
} : {
|
|
2915
2914
|
val: {
|
|
2916
|
-
type:
|
|
2915
|
+
type: C.plural,
|
|
2917
2916
|
value: n,
|
|
2918
|
-
options:
|
|
2919
|
-
offset:
|
|
2917
|
+
options: ht(H.val),
|
|
2918
|
+
offset: B,
|
|
2920
2919
|
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
|
2921
|
-
location:
|
|
2920
|
+
location: P
|
|
2922
2921
|
},
|
|
2923
2922
|
err: null
|
|
2924
2923
|
};
|
|
@@ -2972,7 +2971,7 @@ var Cn = (
|
|
|
2972
2971
|
}
|
|
2973
2972
|
return {
|
|
2974
2973
|
val: {
|
|
2975
|
-
type:
|
|
2974
|
+
type: q.number,
|
|
2976
2975
|
tokens: n,
|
|
2977
2976
|
location: r,
|
|
2978
2977
|
parsedOptions: this.shouldParseSkeletons ? un(n) : {}
|
|
@@ -2982,12 +2981,12 @@ var Cn = (
|
|
|
2982
2981
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
2983
2982
|
for (var s, o = !1, u = [], h = /* @__PURE__ */ new Set(), a = i.value, l = i.location; ; ) {
|
|
2984
2983
|
if (a.length === 0) {
|
|
2985
|
-
var
|
|
2984
|
+
var c = this.clonePosition();
|
|
2986
2985
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2987
|
-
var
|
|
2988
|
-
if (
|
|
2989
|
-
return
|
|
2990
|
-
l = _(
|
|
2986
|
+
var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2987
|
+
if (f.err)
|
|
2988
|
+
return f;
|
|
2989
|
+
l = _(c, this.clonePosition()), a = this.message.slice(c.offset, this.offset());
|
|
2991
2990
|
} else
|
|
2992
2991
|
break;
|
|
2993
2992
|
}
|
|
@@ -3038,7 +3037,7 @@ var Cn = (
|
|
|
3038
3037
|
var t = this.position.offset;
|
|
3039
3038
|
if (t >= this.message.length)
|
|
3040
3039
|
throw Error("out of bound");
|
|
3041
|
-
var r =
|
|
3040
|
+
var r = Ft(this.message, t);
|
|
3042
3041
|
if (r === void 0)
|
|
3043
3042
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3044
3043
|
return r;
|
|
@@ -3057,7 +3056,7 @@ var Cn = (
|
|
|
3057
3056
|
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);
|
|
3058
3057
|
}
|
|
3059
3058
|
}, e.prototype.bumpIf = function(t) {
|
|
3060
|
-
if (
|
|
3059
|
+
if (ut(this.message, t, this.offset())) {
|
|
3061
3060
|
for (var r = 0; r < t.length; r++)
|
|
3062
3061
|
this.bump();
|
|
3063
3062
|
return !0;
|
|
@@ -3079,7 +3078,7 @@ var Cn = (
|
|
|
3079
3078
|
break;
|
|
3080
3079
|
}
|
|
3081
3080
|
}, e.prototype.bumpSpace = function() {
|
|
3082
|
-
for (; !this.isEOF() &&
|
|
3081
|
+
for (; !this.isEOF() && kt(this.char()); )
|
|
3083
3082
|
this.bump();
|
|
3084
3083
|
}, e.prototype.peek = function() {
|
|
3085
3084
|
if (this.isEOF())
|
|
@@ -3089,47 +3088,47 @@ var Cn = (
|
|
|
3089
3088
|
}, e;
|
|
3090
3089
|
}()
|
|
3091
3090
|
);
|
|
3092
|
-
function
|
|
3091
|
+
function Fe(e) {
|
|
3093
3092
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3094
3093
|
}
|
|
3095
3094
|
function Hn(e) {
|
|
3096
|
-
return
|
|
3095
|
+
return Fe(e) || e === 47;
|
|
3097
3096
|
}
|
|
3098
3097
|
function An(e) {
|
|
3099
3098
|
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;
|
|
3100
3099
|
}
|
|
3101
|
-
function
|
|
3100
|
+
function kt(e) {
|
|
3102
3101
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3103
3102
|
}
|
|
3104
3103
|
function Bn(e) {
|
|
3105
3104
|
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;
|
|
3106
3105
|
}
|
|
3107
|
-
function
|
|
3106
|
+
function je(e) {
|
|
3108
3107
|
e.forEach(function(t) {
|
|
3109
|
-
if (delete t.location,
|
|
3108
|
+
if (delete t.location, Lt(t) || It(t))
|
|
3110
3109
|
for (var r in t.options)
|
|
3111
|
-
delete t.options[r].location,
|
|
3110
|
+
delete t.options[r].location, je(t.options[r].value);
|
|
3112
3111
|
else
|
|
3113
|
-
|
|
3112
|
+
wt(t) && $t(t.style) || (Pt(t) || Nt(t)) && Re(t.style) ? delete t.style.location : Mt(t) && je(t.children);
|
|
3114
3113
|
});
|
|
3115
3114
|
}
|
|
3116
3115
|
function Sn(e, t) {
|
|
3117
3116
|
t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3118
|
-
var r = new
|
|
3117
|
+
var r = new Tn(e, t).parse();
|
|
3119
3118
|
if (r.err) {
|
|
3120
3119
|
var n = SyntaxError(y[r.err.kind]);
|
|
3121
3120
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3122
3121
|
}
|
|
3123
|
-
return t != null && t.captureLocation ||
|
|
3122
|
+
return t != null && t.captureLocation || je(r.val), r.val;
|
|
3124
3123
|
}
|
|
3125
|
-
var
|
|
3124
|
+
var J;
|
|
3126
3125
|
(function(e) {
|
|
3127
3126
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3128
|
-
})(
|
|
3129
|
-
var
|
|
3127
|
+
})(J || (J = {}));
|
|
3128
|
+
var ve = (
|
|
3130
3129
|
/** @class */
|
|
3131
3130
|
function(e) {
|
|
3132
|
-
|
|
3131
|
+
Ee(t, e);
|
|
3133
3132
|
function t(r, n, i) {
|
|
3134
3133
|
var s = e.call(this, r) || this;
|
|
3135
3134
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3141,30 +3140,30 @@ var Ee = (
|
|
|
3141
3140
|
), ft = (
|
|
3142
3141
|
/** @class */
|
|
3143
3142
|
function(e) {
|
|
3144
|
-
|
|
3143
|
+
Ee(t, e);
|
|
3145
3144
|
function t(r, n, i, s) {
|
|
3146
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3145
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), J.INVALID_VALUE, s) || this;
|
|
3147
3146
|
}
|
|
3148
3147
|
return t;
|
|
3149
|
-
}(
|
|
3150
|
-
),
|
|
3148
|
+
}(ve)
|
|
3149
|
+
), On = (
|
|
3151
3150
|
/** @class */
|
|
3152
3151
|
function(e) {
|
|
3153
|
-
|
|
3152
|
+
Ee(t, e);
|
|
3154
3153
|
function t(r, n, i) {
|
|
3155
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3154
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), J.INVALID_VALUE, i) || this;
|
|
3156
3155
|
}
|
|
3157
3156
|
return t;
|
|
3158
|
-
}(
|
|
3159
|
-
),
|
|
3157
|
+
}(ve)
|
|
3158
|
+
), wn = (
|
|
3160
3159
|
/** @class */
|
|
3161
3160
|
function(e) {
|
|
3162
|
-
|
|
3161
|
+
Ee(t, e);
|
|
3163
3162
|
function t(r, n) {
|
|
3164
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3163
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), J.MISSING_VALUE, n) || this;
|
|
3165
3164
|
}
|
|
3166
3165
|
return t;
|
|
3167
|
-
}(
|
|
3166
|
+
}(ve)
|
|
3168
3167
|
), O;
|
|
3169
3168
|
(function(e) {
|
|
3170
3169
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
@@ -3178,8 +3177,8 @@ function Pn(e) {
|
|
|
3178
3177
|
function Nn(e) {
|
|
3179
3178
|
return typeof e == "function";
|
|
3180
3179
|
}
|
|
3181
|
-
function
|
|
3182
|
-
if (e.length === 1 &&
|
|
3180
|
+
function pe(e, t, r, n, i, s, o) {
|
|
3181
|
+
if (e.length === 1 && it(e[0]))
|
|
3183
3182
|
return [
|
|
3184
3183
|
{
|
|
3185
3184
|
type: O.literal,
|
|
@@ -3188,7 +3187,7 @@ function me(e, t, r, n, i, s, o) {
|
|
|
3188
3187
|
];
|
|
3189
3188
|
for (var u = [], h = 0, a = e; h < a.length; h++) {
|
|
3190
3189
|
var l = a[h];
|
|
3191
|
-
if (
|
|
3190
|
+
if (it(l)) {
|
|
3192
3191
|
u.push({
|
|
3193
3192
|
type: O.literal,
|
|
3194
3193
|
value: l.value
|
|
@@ -3202,75 +3201,75 @@ function me(e, t, r, n, i, s, o) {
|
|
|
3202
3201
|
});
|
|
3203
3202
|
continue;
|
|
3204
3203
|
}
|
|
3205
|
-
var
|
|
3206
|
-
if (!(i &&
|
|
3207
|
-
throw new
|
|
3208
|
-
var
|
|
3204
|
+
var c = l.value;
|
|
3205
|
+
if (!(i && c in i))
|
|
3206
|
+
throw new wn(c, o);
|
|
3207
|
+
var f = i[c];
|
|
3209
3208
|
if (Yr(l)) {
|
|
3210
|
-
(!
|
|
3211
|
-
type: typeof
|
|
3212
|
-
value:
|
|
3209
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), u.push({
|
|
3210
|
+
type: typeof f == "string" ? O.literal : O.object,
|
|
3211
|
+
value: f
|
|
3213
3212
|
});
|
|
3214
3213
|
continue;
|
|
3215
3214
|
}
|
|
3216
|
-
if (
|
|
3217
|
-
var p = typeof l.style == "string" ? n.date[l.style] :
|
|
3215
|
+
if (Pt(l)) {
|
|
3216
|
+
var p = typeof l.style == "string" ? n.date[l.style] : Re(l.style) ? l.style.parsedOptions : void 0;
|
|
3218
3217
|
u.push({
|
|
3219
3218
|
type: O.literal,
|
|
3220
|
-
value: r.getDateTimeFormat(t, p).format(
|
|
3219
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3221
3220
|
});
|
|
3222
3221
|
continue;
|
|
3223
3222
|
}
|
|
3224
|
-
if (
|
|
3225
|
-
var p = typeof l.style == "string" ? n.time[l.style] :
|
|
3223
|
+
if (Nt(l)) {
|
|
3224
|
+
var p = typeof l.style == "string" ? n.time[l.style] : Re(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3226
3225
|
u.push({
|
|
3227
3226
|
type: O.literal,
|
|
3228
|
-
value: r.getDateTimeFormat(t, p).format(
|
|
3227
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3229
3228
|
});
|
|
3230
3229
|
continue;
|
|
3231
3230
|
}
|
|
3232
|
-
if (
|
|
3233
|
-
var p = typeof l.style == "string" ? n.number[l.style] :
|
|
3234
|
-
p && p.scale && (
|
|
3231
|
+
if (wt(l)) {
|
|
3232
|
+
var p = typeof l.style == "string" ? n.number[l.style] : $t(l.style) ? l.style.parsedOptions : void 0;
|
|
3233
|
+
p && p.scale && (f = f * (p.scale || 1)), u.push({
|
|
3235
3234
|
type: O.literal,
|
|
3236
|
-
value: r.getNumberFormat(t, p).format(
|
|
3235
|
+
value: r.getNumberFormat(t, p).format(f)
|
|
3237
3236
|
});
|
|
3238
3237
|
continue;
|
|
3239
3238
|
}
|
|
3240
|
-
if (
|
|
3239
|
+
if (Mt(l)) {
|
|
3241
3240
|
var d = l.children, g = l.value, E = i[g];
|
|
3242
3241
|
if (!Nn(E))
|
|
3243
|
-
throw new
|
|
3244
|
-
var m =
|
|
3245
|
-
return
|
|
3242
|
+
throw new On(g, "function", o);
|
|
3243
|
+
var m = pe(d, t, r, n, i, s), T = E(m.map(function(B) {
|
|
3244
|
+
return B.value;
|
|
3246
3245
|
}));
|
|
3247
|
-
Array.isArray(
|
|
3246
|
+
Array.isArray(T) || (T = [T]), u.push.apply(u, T.map(function(B) {
|
|
3248
3247
|
return {
|
|
3249
|
-
type: typeof
|
|
3250
|
-
value:
|
|
3248
|
+
type: typeof B == "string" ? O.literal : O.object,
|
|
3249
|
+
value: B
|
|
3251
3250
|
};
|
|
3252
3251
|
}));
|
|
3253
3252
|
}
|
|
3254
|
-
if (
|
|
3255
|
-
var
|
|
3256
|
-
if (!
|
|
3257
|
-
throw new ft(l.value,
|
|
3258
|
-
u.push.apply(u,
|
|
3253
|
+
if (Lt(l)) {
|
|
3254
|
+
var A = l.options[f] || l.options.other;
|
|
3255
|
+
if (!A)
|
|
3256
|
+
throw new ft(l.value, f, Object.keys(l.options), o);
|
|
3257
|
+
u.push.apply(u, pe(A.value, t, r, n, i));
|
|
3259
3258
|
continue;
|
|
3260
3259
|
}
|
|
3261
|
-
if (
|
|
3262
|
-
var
|
|
3263
|
-
if (!
|
|
3260
|
+
if (It(l)) {
|
|
3261
|
+
var A = l.options["=".concat(f)];
|
|
3262
|
+
if (!A) {
|
|
3264
3263
|
if (!Intl.PluralRules)
|
|
3265
|
-
throw new
|
|
3264
|
+
throw new ve(`Intl.PluralRules is not available in this environment.
|
|
3266
3265
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3267
|
-
`,
|
|
3268
|
-
var
|
|
3269
|
-
|
|
3266
|
+
`, J.MISSING_INTL_API, o);
|
|
3267
|
+
var w = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3268
|
+
A = l.options[w] || l.options.other;
|
|
3270
3269
|
}
|
|
3271
|
-
if (!
|
|
3272
|
-
throw new ft(l.value,
|
|
3273
|
-
u.push.apply(u,
|
|
3270
|
+
if (!A)
|
|
3271
|
+
throw new ft(l.value, f, Object.keys(l.options), o);
|
|
3272
|
+
u.push.apply(u, pe(A.value, t, r, n, i, f - (l.offset || 0)));
|
|
3274
3273
|
continue;
|
|
3275
3274
|
}
|
|
3276
3275
|
}
|
|
@@ -3286,7 +3285,7 @@ function In(e, t) {
|
|
|
3286
3285
|
return r[n] = Ln(e[n], t[n]), r;
|
|
3287
3286
|
}, x({}, e)) : e;
|
|
3288
3287
|
}
|
|
3289
|
-
function
|
|
3288
|
+
function Pe(e) {
|
|
3290
3289
|
return {
|
|
3291
3290
|
create: function() {
|
|
3292
3291
|
return {
|
|
@@ -3306,29 +3305,29 @@ function Mn(e) {
|
|
|
3306
3305
|
dateTime: {},
|
|
3307
3306
|
pluralRules: {}
|
|
3308
3307
|
}), {
|
|
3309
|
-
getNumberFormat:
|
|
3308
|
+
getNumberFormat: Se(function() {
|
|
3310
3309
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3311
3310
|
r[n] = arguments[n];
|
|
3312
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3311
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Be([void 0], r, !1)))();
|
|
3313
3312
|
}, {
|
|
3314
|
-
cache:
|
|
3315
|
-
strategy:
|
|
3313
|
+
cache: Pe(e.number),
|
|
3314
|
+
strategy: Oe.variadic
|
|
3316
3315
|
}),
|
|
3317
|
-
getDateTimeFormat:
|
|
3316
|
+
getDateTimeFormat: Se(function() {
|
|
3318
3317
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3319
3318
|
r[n] = arguments[n];
|
|
3320
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3319
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Be([void 0], r, !1)))();
|
|
3321
3320
|
}, {
|
|
3322
|
-
cache:
|
|
3323
|
-
strategy:
|
|
3321
|
+
cache: Pe(e.dateTime),
|
|
3322
|
+
strategy: Oe.variadic
|
|
3324
3323
|
}),
|
|
3325
|
-
getPluralRules:
|
|
3324
|
+
getPluralRules: Se(function() {
|
|
3326
3325
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3327
3326
|
r[n] = arguments[n];
|
|
3328
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3327
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Be([void 0], r, !1)))();
|
|
3329
3328
|
}, {
|
|
3330
|
-
cache:
|
|
3331
|
-
strategy:
|
|
3329
|
+
cache: Pe(e.pluralRules),
|
|
3330
|
+
strategy: Oe.variadic
|
|
3332
3331
|
})
|
|
3333
3332
|
};
|
|
3334
3333
|
}
|
|
@@ -3346,12 +3345,12 @@ var $n = (
|
|
|
3346
3345
|
var a = s.formatToParts(h);
|
|
3347
3346
|
if (a.length === 1)
|
|
3348
3347
|
return a[0].value;
|
|
3349
|
-
var l = a.reduce(function(
|
|
3350
|
-
return !
|
|
3348
|
+
var l = a.reduce(function(c, f) {
|
|
3349
|
+
return !c.length || f.type !== O.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3351
3350
|
}, []);
|
|
3352
3351
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3353
3352
|
}, this.formatToParts = function(h) {
|
|
3354
|
-
return
|
|
3353
|
+
return pe(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
|
|
3355
3354
|
}, this.resolvedOptions = function() {
|
|
3356
3355
|
var h;
|
|
3357
3356
|
return {
|
|
@@ -3364,7 +3363,7 @@ var $n = (
|
|
|
3364
3363
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3365
3364
|
var o = i || {};
|
|
3366
3365
|
o.formatters;
|
|
3367
|
-
var u =
|
|
3366
|
+
var u = Vr(o, ["formatters"]);
|
|
3368
3367
|
this.ast = e.__parse(t, x(x({}, u), { locale: this.resolvedLocale }));
|
|
3369
3368
|
} else
|
|
3370
3369
|
this.ast = t;
|
|
@@ -3465,28 +3464,28 @@ function Rn(e, t) {
|
|
|
3465
3464
|
n = void 0;
|
|
3466
3465
|
return n;
|
|
3467
3466
|
}
|
|
3468
|
-
const
|
|
3467
|
+
const G = {}, Un = (e, t, r) => r && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = r), r), Vt = (e, t) => {
|
|
3469
3468
|
if (t == null)
|
|
3470
3469
|
return;
|
|
3471
|
-
if (t in
|
|
3472
|
-
return
|
|
3473
|
-
const r =
|
|
3470
|
+
if (t in G && e in G[t])
|
|
3471
|
+
return G[t][e];
|
|
3472
|
+
const r = Ce(t);
|
|
3474
3473
|
for (let n = 0; n < r.length; n++) {
|
|
3475
3474
|
const i = r[n], s = Gn(i, e);
|
|
3476
3475
|
if (s)
|
|
3477
3476
|
return Un(e, t, s);
|
|
3478
3477
|
}
|
|
3479
3478
|
};
|
|
3480
|
-
let
|
|
3481
|
-
const
|
|
3479
|
+
let ze;
|
|
3480
|
+
const he = xe({});
|
|
3482
3481
|
function Dn(e) {
|
|
3483
|
-
return
|
|
3482
|
+
return ze[e] || null;
|
|
3484
3483
|
}
|
|
3485
|
-
function
|
|
3486
|
-
return e in
|
|
3484
|
+
function Xt(e) {
|
|
3485
|
+
return e in ze;
|
|
3487
3486
|
}
|
|
3488
3487
|
function Gn(e, t) {
|
|
3489
|
-
if (!
|
|
3488
|
+
if (!Xt(e))
|
|
3490
3489
|
return null;
|
|
3491
3490
|
const r = Dn(e);
|
|
3492
3491
|
return Rn(r, t);
|
|
@@ -3494,61 +3493,61 @@ function Gn(e, t) {
|
|
|
3494
3493
|
function Fn(e) {
|
|
3495
3494
|
if (e == null)
|
|
3496
3495
|
return;
|
|
3497
|
-
const t =
|
|
3496
|
+
const t = Ce(e);
|
|
3498
3497
|
for (let r = 0; r < t.length; r++) {
|
|
3499
3498
|
const n = t[r];
|
|
3500
|
-
if (
|
|
3499
|
+
if (Xt(n))
|
|
3501
3500
|
return n;
|
|
3502
3501
|
}
|
|
3503
3502
|
}
|
|
3504
|
-
function
|
|
3505
|
-
delete
|
|
3503
|
+
function zt(e, ...t) {
|
|
3504
|
+
delete G[e], he.update((r) => (r[e] = kr.all([r[e] || {}, ...t]), r));
|
|
3506
3505
|
}
|
|
3507
|
-
|
|
3508
|
-
[
|
|
3506
|
+
ee(
|
|
3507
|
+
[he],
|
|
3509
3508
|
([e]) => Object.keys(e)
|
|
3510
3509
|
);
|
|
3511
|
-
|
|
3512
|
-
const
|
|
3510
|
+
he.subscribe((e) => ze = e);
|
|
3511
|
+
const de = {};
|
|
3513
3512
|
function jn(e, t) {
|
|
3514
|
-
|
|
3513
|
+
de[e].delete(t), de[e].size === 0 && delete de[e];
|
|
3515
3514
|
}
|
|
3516
|
-
function
|
|
3517
|
-
return
|
|
3515
|
+
function Wt(e) {
|
|
3516
|
+
return de[e];
|
|
3518
3517
|
}
|
|
3519
3518
|
function kn(e) {
|
|
3520
|
-
return
|
|
3521
|
-
const r =
|
|
3519
|
+
return Ce(e).map((t) => {
|
|
3520
|
+
const r = Wt(t);
|
|
3522
3521
|
return [t, r ? [...r] : []];
|
|
3523
3522
|
}).filter(([, t]) => t.length > 0);
|
|
3524
3523
|
}
|
|
3525
|
-
function
|
|
3526
|
-
return e == null ? !1 :
|
|
3524
|
+
function ke(e) {
|
|
3525
|
+
return e == null ? !1 : Ce(e).some(
|
|
3527
3526
|
(t) => {
|
|
3528
3527
|
var r;
|
|
3529
|
-
return (r =
|
|
3528
|
+
return (r = Wt(t)) == null ? void 0 : r.size;
|
|
3530
3529
|
}
|
|
3531
3530
|
);
|
|
3532
3531
|
}
|
|
3533
3532
|
function Vn(e, t) {
|
|
3534
3533
|
return Promise.all(
|
|
3535
3534
|
t.map((n) => (jn(e, n), n().then((i) => i.default || i)))
|
|
3536
|
-
).then((n) =>
|
|
3535
|
+
).then((n) => zt(e, ...n));
|
|
3537
3536
|
}
|
|
3538
|
-
const
|
|
3539
|
-
function
|
|
3540
|
-
if (!
|
|
3541
|
-
return e in
|
|
3537
|
+
const ne = {};
|
|
3538
|
+
function Zt(e) {
|
|
3539
|
+
if (!ke(e))
|
|
3540
|
+
return e in ne ? ne[e] : Promise.resolve();
|
|
3542
3541
|
const t = kn(e);
|
|
3543
|
-
return
|
|
3542
|
+
return ne[e] = Promise.all(
|
|
3544
3543
|
t.map(
|
|
3545
3544
|
([r, n]) => Vn(r, n)
|
|
3546
3545
|
)
|
|
3547
3546
|
).then(() => {
|
|
3548
|
-
if (
|
|
3549
|
-
return
|
|
3550
|
-
delete
|
|
3551
|
-
}),
|
|
3547
|
+
if (ke(e))
|
|
3548
|
+
return Zt(e);
|
|
3549
|
+
delete ne[e];
|
|
3550
|
+
}), ne[e];
|
|
3552
3551
|
}
|
|
3553
3552
|
const Xn = {
|
|
3554
3553
|
number: {
|
|
@@ -3587,48 +3586,48 @@ const Xn = {
|
|
|
3587
3586
|
handleMissingMessage: void 0,
|
|
3588
3587
|
ignoreTag: !0
|
|
3589
3588
|
}, Wn = zn;
|
|
3590
|
-
function
|
|
3589
|
+
function Y() {
|
|
3591
3590
|
return Wn;
|
|
3592
3591
|
}
|
|
3593
|
-
const
|
|
3594
|
-
var Zn = Object.defineProperty, Qn = Object.defineProperties, qn = Object.getOwnPropertyDescriptors,
|
|
3592
|
+
const Ne = xe(!1);
|
|
3593
|
+
var Zn = Object.defineProperty, Qn = Object.defineProperties, qn = Object.getOwnPropertyDescriptors, ct = Object.getOwnPropertySymbols, Jn = Object.prototype.hasOwnProperty, Yn = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? Zn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Kn = (e, t) => {
|
|
3595
3594
|
for (var r in t || (t = {}))
|
|
3596
|
-
Jn.call(t, r) &&
|
|
3597
|
-
if (
|
|
3598
|
-
for (var r of
|
|
3599
|
-
Yn.call(t, r) &&
|
|
3595
|
+
Jn.call(t, r) && gt(e, r, t[r]);
|
|
3596
|
+
if (ct)
|
|
3597
|
+
for (var r of ct(t))
|
|
3598
|
+
Yn.call(t, r) && gt(e, r, t[r]);
|
|
3600
3599
|
return e;
|
|
3601
3600
|
}, ei = (e, t) => Qn(e, qn(t));
|
|
3602
|
-
let
|
|
3603
|
-
const
|
|
3604
|
-
function
|
|
3601
|
+
let Ve;
|
|
3602
|
+
const ye = xe(null);
|
|
3603
|
+
function mt(e) {
|
|
3605
3604
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3606
3605
|
}
|
|
3607
|
-
function
|
|
3608
|
-
const r =
|
|
3609
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3606
|
+
function Ce(e, t = Y().fallbackLocale) {
|
|
3607
|
+
const r = mt(e);
|
|
3608
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...mt(t)])] : r;
|
|
3610
3609
|
}
|
|
3611
|
-
function
|
|
3612
|
-
return
|
|
3610
|
+
function V() {
|
|
3611
|
+
return Ve != null ? Ve : void 0;
|
|
3613
3612
|
}
|
|
3614
|
-
|
|
3615
|
-
|
|
3613
|
+
ye.subscribe((e) => {
|
|
3614
|
+
Ve = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3616
3615
|
});
|
|
3617
3616
|
const ti = (e) => {
|
|
3618
|
-
if (e && Fn(e) &&
|
|
3619
|
-
const { loadingDelay: t } =
|
|
3617
|
+
if (e && Fn(e) && ke(e)) {
|
|
3618
|
+
const { loadingDelay: t } = Y();
|
|
3620
3619
|
let r;
|
|
3621
|
-
return typeof window != "undefined" &&
|
|
3622
|
-
() =>
|
|
3620
|
+
return typeof window != "undefined" && V() != null && t ? r = window.setTimeout(
|
|
3621
|
+
() => Ne.set(!0),
|
|
3623
3622
|
t
|
|
3624
|
-
) :
|
|
3625
|
-
|
|
3623
|
+
) : Ne.set(!0), Zt(e).then(() => {
|
|
3624
|
+
ye.set(e);
|
|
3626
3625
|
}).finally(() => {
|
|
3627
|
-
clearTimeout(r),
|
|
3626
|
+
clearTimeout(r), Ne.set(!1);
|
|
3628
3627
|
});
|
|
3629
3628
|
}
|
|
3630
|
-
return
|
|
3631
|
-
},
|
|
3629
|
+
return ye.set(e);
|
|
3630
|
+
}, te = ei(Kn({}, ye), {
|
|
3632
3631
|
set: ti
|
|
3633
3632
|
}), Te = (e) => {
|
|
3634
3633
|
const t = /* @__PURE__ */ Object.create(null);
|
|
@@ -3637,75 +3636,75 @@ const ti = (e) => {
|
|
|
3637
3636
|
return i in t ? t[i] : t[i] = e(n);
|
|
3638
3637
|
};
|
|
3639
3638
|
};
|
|
3640
|
-
var ri = Object.defineProperty,
|
|
3639
|
+
var ri = Object.defineProperty, _e = Object.getOwnPropertySymbols, Qt = Object.prototype.hasOwnProperty, qt = Object.prototype.propertyIsEnumerable, pt = (e, t, r) => t in e ? ri(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, We = (e, t) => {
|
|
3641
3640
|
for (var r in t || (t = {}))
|
|
3642
|
-
|
|
3643
|
-
if (
|
|
3644
|
-
for (var r of
|
|
3645
|
-
|
|
3641
|
+
Qt.call(t, r) && pt(e, r, t[r]);
|
|
3642
|
+
if (_e)
|
|
3643
|
+
for (var r of _e(t))
|
|
3644
|
+
qt.call(t, r) && pt(e, r, t[r]);
|
|
3646
3645
|
return e;
|
|
3647
|
-
},
|
|
3646
|
+
}, re = (e, t) => {
|
|
3648
3647
|
var r = {};
|
|
3649
3648
|
for (var n in e)
|
|
3650
|
-
|
|
3651
|
-
if (e != null &&
|
|
3652
|
-
for (var n of
|
|
3653
|
-
t.indexOf(n) < 0 &&
|
|
3649
|
+
Qt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3650
|
+
if (e != null && _e)
|
|
3651
|
+
for (var n of _e(e))
|
|
3652
|
+
t.indexOf(n) < 0 && qt.call(e, n) && (r[n] = e[n]);
|
|
3654
3653
|
return r;
|
|
3655
3654
|
};
|
|
3656
|
-
const
|
|
3657
|
-
const { formats: r } =
|
|
3655
|
+
const ae = (e, t) => {
|
|
3656
|
+
const { formats: r } = Y();
|
|
3658
3657
|
if (e in r && t in r[e])
|
|
3659
3658
|
return r[e][t];
|
|
3660
3659
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3661
3660
|
}, ni = Te(
|
|
3662
3661
|
(e) => {
|
|
3663
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3662
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
3664
3663
|
if (r == null)
|
|
3665
3664
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3666
|
-
return n && (i =
|
|
3665
|
+
return n && (i = ae("number", n)), new Intl.NumberFormat(r, i);
|
|
3667
3666
|
}
|
|
3668
3667
|
), ii = Te(
|
|
3669
3668
|
(e) => {
|
|
3670
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3669
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
3671
3670
|
if (r == null)
|
|
3672
3671
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3673
|
-
return n ? i =
|
|
3672
|
+
return n ? i = ae("date", n) : Object.keys(i).length === 0 && (i = ae("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3674
3673
|
}
|
|
3675
3674
|
), si = Te(
|
|
3676
3675
|
(e) => {
|
|
3677
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3676
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
3678
3677
|
if (r == null)
|
|
3679
3678
|
throw new Error(
|
|
3680
3679
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3681
3680
|
);
|
|
3682
|
-
return n ? i =
|
|
3681
|
+
return n ? i = ae("time", n) : Object.keys(i).length === 0 && (i = ae("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3683
3682
|
}
|
|
3684
3683
|
), oi = (e = {}) => {
|
|
3685
3684
|
var t = e, {
|
|
3686
|
-
locale: r =
|
|
3687
|
-
} = t, n =
|
|
3685
|
+
locale: r = V()
|
|
3686
|
+
} = t, n = re(t, [
|
|
3688
3687
|
"locale"
|
|
3689
3688
|
]);
|
|
3690
|
-
return ni(
|
|
3689
|
+
return ni(We({ locale: r }, n));
|
|
3691
3690
|
}, ai = (e = {}) => {
|
|
3692
3691
|
var t = e, {
|
|
3693
|
-
locale: r =
|
|
3694
|
-
} = t, n =
|
|
3692
|
+
locale: r = V()
|
|
3693
|
+
} = t, n = re(t, [
|
|
3695
3694
|
"locale"
|
|
3696
3695
|
]);
|
|
3697
|
-
return ii(
|
|
3696
|
+
return ii(We({ locale: r }, n));
|
|
3698
3697
|
}, ui = (e = {}) => {
|
|
3699
3698
|
var t = e, {
|
|
3700
|
-
locale: r =
|
|
3701
|
-
} = t, n =
|
|
3699
|
+
locale: r = V()
|
|
3700
|
+
} = t, n = re(t, [
|
|
3702
3701
|
"locale"
|
|
3703
3702
|
]);
|
|
3704
|
-
return si(
|
|
3703
|
+
return si(We({ locale: r }, n));
|
|
3705
3704
|
}, hi = Te(
|
|
3706
3705
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3707
|
-
(e, t =
|
|
3708
|
-
ignoreTag:
|
|
3706
|
+
(e, t = V()) => new $n(e, t, Y().formats, {
|
|
3707
|
+
ignoreTag: Y().ignoreTag
|
|
3709
3708
|
})
|
|
3710
3709
|
), li = (e, t = {}) => {
|
|
3711
3710
|
var r, n, i, s;
|
|
@@ -3713,37 +3712,37 @@ const oe = (e, t) => {
|
|
|
3713
3712
|
typeof e == "object" && (o = e, e = o.id);
|
|
3714
3713
|
const {
|
|
3715
3714
|
values: u,
|
|
3716
|
-
locale: h =
|
|
3715
|
+
locale: h = V(),
|
|
3717
3716
|
default: a
|
|
3718
3717
|
} = o;
|
|
3719
3718
|
if (h == null)
|
|
3720
3719
|
throw new Error(
|
|
3721
3720
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3722
3721
|
);
|
|
3723
|
-
let l =
|
|
3722
|
+
let l = Vt(e, h);
|
|
3724
3723
|
if (!l)
|
|
3725
|
-
l = (s = (i = (n = (r =
|
|
3724
|
+
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;
|
|
3726
3725
|
else if (typeof l != "string")
|
|
3727
3726
|
return console.warn(
|
|
3728
3727
|
`[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.`
|
|
3729
3728
|
), l;
|
|
3730
3729
|
if (!u)
|
|
3731
3730
|
return l;
|
|
3732
|
-
let
|
|
3731
|
+
let c = l;
|
|
3733
3732
|
try {
|
|
3734
|
-
|
|
3735
|
-
} catch (
|
|
3736
|
-
|
|
3733
|
+
c = hi(l, h).format(u);
|
|
3734
|
+
} catch (f) {
|
|
3735
|
+
f instanceof Error && console.warn(
|
|
3737
3736
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3738
|
-
|
|
3737
|
+
f.message
|
|
3739
3738
|
);
|
|
3740
3739
|
}
|
|
3741
|
-
return
|
|
3742
|
-
},
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3740
|
+
return c;
|
|
3741
|
+
}, fi = (e, t) => ui(t).format(e), ci = (e, t) => ai(t).format(e), gi = (e, t) => oi(t).format(e), mi = (e, t = V()) => Vt(e, t), pi = ee([te, he], () => li);
|
|
3742
|
+
ee([te], () => fi);
|
|
3743
|
+
ee([te], () => ci);
|
|
3744
|
+
ee([te], () => gi);
|
|
3745
|
+
ee([te, he], () => mi);
|
|
3747
3746
|
function di(e, t) {
|
|
3748
3747
|
if (e) {
|
|
3749
3748
|
const r = document.createElement("style");
|
|
@@ -3767,13 +3766,13 @@ function yi(e, t, r) {
|
|
|
3767
3766
|
});
|
|
3768
3767
|
}
|
|
3769
3768
|
}
|
|
3770
|
-
function
|
|
3771
|
-
|
|
3769
|
+
function dt(e, t) {
|
|
3770
|
+
zt(e, t);
|
|
3772
3771
|
}
|
|
3773
3772
|
function _i(e) {
|
|
3774
|
-
|
|
3773
|
+
te.set(e);
|
|
3775
3774
|
}
|
|
3776
|
-
const
|
|
3775
|
+
const bt = {
|
|
3777
3776
|
en: {
|
|
3778
3777
|
topCategories: "Top Categories",
|
|
3779
3778
|
otherCategories: "Other Categories",
|
|
@@ -3884,13 +3883,13 @@ const yt = {
|
|
|
3884
3883
|
}
|
|
3885
3884
|
};
|
|
3886
3885
|
function xi(e) {
|
|
3887
|
-
|
|
3886
|
+
ar(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}");
|
|
3888
3887
|
}
|
|
3889
|
-
function
|
|
3888
|
+
function yt(e, t, r) {
|
|
3890
3889
|
const n = e.slice();
|
|
3891
3890
|
return n[23] = t[r], n;
|
|
3892
3891
|
}
|
|
3893
|
-
function
|
|
3892
|
+
function _t(e, t, r) {
|
|
3894
3893
|
const n = e.slice();
|
|
3895
3894
|
return n[23] = t[r], n;
|
|
3896
3895
|
}
|
|
@@ -3901,32 +3900,32 @@ function Ei(e) {
|
|
|
3901
3900
|
), i, s, o, u, h = (
|
|
3902
3901
|
/*$_*/
|
|
3903
3902
|
e[5]("otherCategories") + ""
|
|
3904
|
-
), a, l,
|
|
3903
|
+
), a, l, c = ce(
|
|
3905
3904
|
/*topCategories*/
|
|
3906
3905
|
e[3]
|
|
3907
|
-
),
|
|
3908
|
-
for (let g = 0; g <
|
|
3909
|
-
|
|
3906
|
+
), f = [];
|
|
3907
|
+
for (let g = 0; g < c.length; g += 1)
|
|
3908
|
+
f[g] = xt(_t(e, c, g));
|
|
3910
3909
|
let p = ce(
|
|
3911
3910
|
/*otherCategories*/
|
|
3912
3911
|
e[4]
|
|
3913
3912
|
), d = [];
|
|
3914
3913
|
for (let g = 0; g < p.length; g += 1)
|
|
3915
|
-
d[g] =
|
|
3914
|
+
d[g] = Et(yt(e, p, g));
|
|
3916
3915
|
return {
|
|
3917
3916
|
c() {
|
|
3918
|
-
t =
|
|
3919
|
-
for (let g = 0; g <
|
|
3920
|
-
|
|
3921
|
-
o =
|
|
3917
|
+
t = S("div"), r = S("h4"), i = D(n), s = U();
|
|
3918
|
+
for (let g = 0; g < f.length; g += 1)
|
|
3919
|
+
f[g].c();
|
|
3920
|
+
o = U(), u = S("h4"), a = D(h), l = U();
|
|
3922
3921
|
for (let g = 0; g < d.length; g += 1)
|
|
3923
3922
|
d[g].c();
|
|
3924
|
-
|
|
3923
|
+
I(r, "class", "CategoryTitle"), I(u, "class", "CategoryTitle"), I(t, "class", "CasinoCategories");
|
|
3925
3924
|
},
|
|
3926
3925
|
m(g, E) {
|
|
3927
|
-
|
|
3928
|
-
for (let m = 0; m <
|
|
3929
|
-
|
|
3926
|
+
K(g, t, E), v(t, r), v(r, i), v(t, s);
|
|
3927
|
+
for (let m = 0; m < f.length; m += 1)
|
|
3928
|
+
f[m] && f[m].m(t, null);
|
|
3930
3929
|
v(t, o), v(t, u), v(u, a), v(t, l);
|
|
3931
3930
|
for (let m = 0; m < d.length; m += 1)
|
|
3932
3931
|
d[m] && d[m].m(t, null);
|
|
@@ -3934,24 +3933,24 @@ function Ei(e) {
|
|
|
3934
3933
|
p(g, E) {
|
|
3935
3934
|
if (E & /*$_*/
|
|
3936
3935
|
32 && n !== (n = /*$_*/
|
|
3937
|
-
g[5]("topCategories") + "") &&
|
|
3936
|
+
g[5]("topCategories") + "") && F(i, n), E & /*activecategory, topCategories, openGameCategory, $_*/
|
|
3938
3937
|
105) {
|
|
3939
|
-
|
|
3938
|
+
c = ce(
|
|
3940
3939
|
/*topCategories*/
|
|
3941
3940
|
g[3]
|
|
3942
3941
|
);
|
|
3943
3942
|
let m;
|
|
3944
|
-
for (m = 0; m <
|
|
3945
|
-
const
|
|
3946
|
-
|
|
3943
|
+
for (m = 0; m < c.length; m += 1) {
|
|
3944
|
+
const T = _t(g, c, m);
|
|
3945
|
+
f[m] ? f[m].p(T, E) : (f[m] = xt(T), f[m].c(), f[m].m(t, o));
|
|
3947
3946
|
}
|
|
3948
|
-
for (; m <
|
|
3949
|
-
|
|
3950
|
-
|
|
3947
|
+
for (; m < f.length; m += 1)
|
|
3948
|
+
f[m].d(1);
|
|
3949
|
+
f.length = c.length;
|
|
3951
3950
|
}
|
|
3952
3951
|
if (E & /*$_*/
|
|
3953
3952
|
32 && h !== (h = /*$_*/
|
|
3954
|
-
g[5]("otherCategories") + "") &&
|
|
3953
|
+
g[5]("otherCategories") + "") && F(a, h), E & /*activecategory, otherCategories, openGameCategory, $_*/
|
|
3955
3954
|
113) {
|
|
3956
3955
|
p = ce(
|
|
3957
3956
|
/*otherCategories*/
|
|
@@ -3959,8 +3958,8 @@ function Ei(e) {
|
|
|
3959
3958
|
);
|
|
3960
3959
|
let m;
|
|
3961
3960
|
for (m = 0; m < p.length; m += 1) {
|
|
3962
|
-
const
|
|
3963
|
-
d[m] ? d[m].p(
|
|
3961
|
+
const T = yt(g, p, m);
|
|
3962
|
+
d[m] ? d[m].p(T, E) : (d[m] = Et(T), d[m].c(), d[m].m(t, null));
|
|
3964
3963
|
}
|
|
3965
3964
|
for (; m < d.length; m += 1)
|
|
3966
3965
|
d[m].d(1);
|
|
@@ -3968,7 +3967,7 @@ function Ei(e) {
|
|
|
3968
3967
|
}
|
|
3969
3968
|
},
|
|
3970
3969
|
d(g) {
|
|
3971
|
-
g &&
|
|
3970
|
+
g && k(t), tt(f, g), tt(d, g);
|
|
3972
3971
|
}
|
|
3973
3972
|
};
|
|
3974
3973
|
}
|
|
@@ -3976,29 +3975,29 @@ function vi(e) {
|
|
|
3976
3975
|
let t;
|
|
3977
3976
|
return {
|
|
3978
3977
|
c() {
|
|
3979
|
-
t =
|
|
3978
|
+
t = S("p"), t.textContent = "Loading, please wait...", I(t, "class", "Message");
|
|
3980
3979
|
},
|
|
3981
3980
|
m(r, n) {
|
|
3982
|
-
|
|
3981
|
+
K(r, t, n);
|
|
3983
3982
|
},
|
|
3984
|
-
p:
|
|
3983
|
+
p: L,
|
|
3985
3984
|
d(r) {
|
|
3986
|
-
r &&
|
|
3985
|
+
r && k(t);
|
|
3987
3986
|
}
|
|
3988
3987
|
};
|
|
3989
3988
|
}
|
|
3990
|
-
function
|
|
3989
|
+
function xt(e) {
|
|
3991
3990
|
let t, r, n, i, s, o, u, h = (
|
|
3992
3991
|
/*category*/
|
|
3993
3992
|
e[23].name + ""
|
|
3994
|
-
), a, l,
|
|
3993
|
+
), a, l, c, f = (
|
|
3995
3994
|
/*category*/
|
|
3996
3995
|
e[23].games.count + ""
|
|
3997
3996
|
), p, d, g = (
|
|
3998
3997
|
/*$_*/
|
|
3999
3998
|
e[5]("games") + ""
|
|
4000
|
-
), E, m,
|
|
4001
|
-
function
|
|
3999
|
+
), E, m, T, A;
|
|
4000
|
+
function w() {
|
|
4002
4001
|
return (
|
|
4003
4002
|
/*click_handler*/
|
|
4004
4003
|
e[15](
|
|
@@ -4009,48 +4008,48 @@ function Et(e) {
|
|
|
4009
4008
|
}
|
|
4010
4009
|
return {
|
|
4011
4010
|
c() {
|
|
4012
|
-
t =
|
|
4013
|
-
e[23].icon) ||
|
|
4014
|
-
e[23].name),
|
|
4011
|
+
t = S("div"), r = S("ui-image"), s = U(), o = S("div"), u = S("p"), a = D(h), l = U(), c = S("p"), p = D(f), d = U(), E = D(g), be(r.src, n = /*category*/
|
|
4012
|
+
e[23].icon) || R(r, "src", n), R(r, "alt", i = /*category*/
|
|
4013
|
+
e[23].name), R(r, "imgClass", "CategoryImage"), I(o, "class", "CategoryTextContainer"), I(t, "class", m = "Category " + /*activecategory*/
|
|
4015
4014
|
(e[0] === /*category*/
|
|
4016
4015
|
e[23].id ? "Active" : ""));
|
|
4017
4016
|
},
|
|
4018
|
-
m(
|
|
4019
|
-
|
|
4017
|
+
m(B, H) {
|
|
4018
|
+
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, p), v(c, d), v(c, E), T || (A = Ht(t, "click", w), T = !0);
|
|
4020
4019
|
},
|
|
4021
|
-
p(
|
|
4022
|
-
e =
|
|
4023
|
-
8 && !
|
|
4024
|
-
e[23].icon) &&
|
|
4020
|
+
p(B, H) {
|
|
4021
|
+
e = B, H & /*topCategories*/
|
|
4022
|
+
8 && !be(r.src, n = /*category*/
|
|
4023
|
+
e[23].icon) && R(r, "src", n), H & /*topCategories*/
|
|
4025
4024
|
8 && i !== (i = /*category*/
|
|
4026
|
-
e[23].name) &&
|
|
4025
|
+
e[23].name) && R(r, "alt", i), H & /*topCategories*/
|
|
4027
4026
|
8 && h !== (h = /*category*/
|
|
4028
|
-
e[23].name + "") &&
|
|
4029
|
-
8 &&
|
|
4030
|
-
e[23].games.count + "") &&
|
|
4027
|
+
e[23].name + "") && F(a, h), H & /*topCategories*/
|
|
4028
|
+
8 && f !== (f = /*category*/
|
|
4029
|
+
e[23].games.count + "") && F(p, f), H & /*$_*/
|
|
4031
4030
|
32 && g !== (g = /*$_*/
|
|
4032
|
-
e[5]("games") + "") &&
|
|
4031
|
+
e[5]("games") + "") && F(E, g), H & /*activecategory, topCategories*/
|
|
4033
4032
|
9 && m !== (m = "Category " + /*activecategory*/
|
|
4034
4033
|
(e[0] === /*category*/
|
|
4035
|
-
e[23].id ? "Active" : "")) &&
|
|
4034
|
+
e[23].id ? "Active" : "")) && I(t, "class", m);
|
|
4036
4035
|
},
|
|
4037
|
-
d(
|
|
4038
|
-
|
|
4036
|
+
d(B) {
|
|
4037
|
+
B && k(t), T = !1, A();
|
|
4039
4038
|
}
|
|
4040
4039
|
};
|
|
4041
4040
|
}
|
|
4042
|
-
function
|
|
4041
|
+
function Et(e) {
|
|
4043
4042
|
let t, r, n, i, s, o, u, h = (
|
|
4044
4043
|
/*category*/
|
|
4045
4044
|
e[23].name + ""
|
|
4046
|
-
), a, l,
|
|
4045
|
+
), a, l, c, f = (
|
|
4047
4046
|
/*category*/
|
|
4048
4047
|
e[23].games.count + ""
|
|
4049
4048
|
), p, d, g = (
|
|
4050
4049
|
/*$_*/
|
|
4051
4050
|
e[5]("games") + ""
|
|
4052
|
-
), E, m,
|
|
4053
|
-
function
|
|
4051
|
+
), E, m, T, A, w;
|
|
4052
|
+
function B() {
|
|
4054
4053
|
return (
|
|
4055
4054
|
/*click_handler_1*/
|
|
4056
4055
|
e[16](
|
|
@@ -4061,37 +4060,37 @@ function vt(e) {
|
|
|
4061
4060
|
}
|
|
4062
4061
|
return {
|
|
4063
4062
|
c() {
|
|
4064
|
-
t =
|
|
4065
|
-
e[23].icon) ||
|
|
4066
|
-
e[23].name),
|
|
4063
|
+
t = S("div"), r = S("ui-image"), s = U(), o = S("div"), u = S("p"), a = D(h), l = U(), c = S("p"), p = D(f), d = U(), E = D(g), m = U(), be(r.src, n = /*category*/
|
|
4064
|
+
e[23].icon) || R(r, "src", n), R(r, "alt", i = /*category*/
|
|
4065
|
+
e[23].name), R(r, "imgClass", "CategoryImage"), I(o, "class", "CategoryTextContainer"), I(t, "class", T = "Category " + /*activecategory*/
|
|
4067
4066
|
(e[0] === /*category*/
|
|
4068
4067
|
e[23].id ? "Active" : ""));
|
|
4069
4068
|
},
|
|
4070
|
-
m(
|
|
4071
|
-
|
|
4069
|
+
m(H, P) {
|
|
4070
|
+
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, p), v(c, d), v(c, E), v(t, m), A || (w = Ht(t, "click", B), A = !0);
|
|
4072
4071
|
},
|
|
4073
|
-
p(
|
|
4074
|
-
e =
|
|
4075
|
-
16 && !
|
|
4076
|
-
e[23].icon) &&
|
|
4072
|
+
p(H, P) {
|
|
4073
|
+
e = H, P & /*otherCategories*/
|
|
4074
|
+
16 && !be(r.src, n = /*category*/
|
|
4075
|
+
e[23].icon) && R(r, "src", n), P & /*otherCategories*/
|
|
4077
4076
|
16 && i !== (i = /*category*/
|
|
4078
|
-
e[23].name) &&
|
|
4077
|
+
e[23].name) && R(r, "alt", i), P & /*otherCategories*/
|
|
4079
4078
|
16 && h !== (h = /*category*/
|
|
4080
|
-
e[23].name + "") &&
|
|
4081
|
-
16 &&
|
|
4082
|
-
e[23].games.count + "") &&
|
|
4079
|
+
e[23].name + "") && F(a, h), P & /*otherCategories*/
|
|
4080
|
+
16 && f !== (f = /*category*/
|
|
4081
|
+
e[23].games.count + "") && F(p, f), P & /*$_*/
|
|
4083
4082
|
32 && g !== (g = /*$_*/
|
|
4084
|
-
e[5]("games") + "") &&
|
|
4085
|
-
17 &&
|
|
4083
|
+
e[5]("games") + "") && F(E, g), P & /*activecategory, otherCategories*/
|
|
4084
|
+
17 && T !== (T = "Category " + /*activecategory*/
|
|
4086
4085
|
(e[0] === /*category*/
|
|
4087
|
-
e[23].id ? "Active" : "")) &&
|
|
4086
|
+
e[23].id ? "Active" : "")) && I(t, "class", T);
|
|
4088
4087
|
},
|
|
4089
|
-
d(
|
|
4090
|
-
|
|
4088
|
+
d(H) {
|
|
4089
|
+
H && k(t), A = !1, w();
|
|
4091
4090
|
}
|
|
4092
4091
|
};
|
|
4093
4092
|
}
|
|
4094
|
-
function
|
|
4093
|
+
function Ci(e) {
|
|
4095
4094
|
let t;
|
|
4096
4095
|
function r(s, o) {
|
|
4097
4096
|
return (
|
|
@@ -4102,74 +4101,74 @@ function Ti(e) {
|
|
|
4102
4101
|
let n = r(e), i = n(e);
|
|
4103
4102
|
return {
|
|
4104
4103
|
c() {
|
|
4105
|
-
t =
|
|
4104
|
+
t = S("div"), i.c();
|
|
4106
4105
|
},
|
|
4107
4106
|
m(s, o) {
|
|
4108
|
-
|
|
4107
|
+
K(s, t, o), i.m(t, null), e[17](t);
|
|
4109
4108
|
},
|
|
4110
4109
|
p(s, [o]) {
|
|
4111
4110
|
n === (n = r(s)) && i ? i.p(s, o) : (i.d(1), i = n(s), i && (i.c(), i.m(t, null)));
|
|
4112
4111
|
},
|
|
4113
|
-
i:
|
|
4114
|
-
o:
|
|
4112
|
+
i: L,
|
|
4113
|
+
o: L,
|
|
4115
4114
|
d(s) {
|
|
4116
|
-
s &&
|
|
4115
|
+
s && k(t), i.d(), e[17](null);
|
|
4117
4116
|
}
|
|
4118
4117
|
};
|
|
4119
4118
|
}
|
|
4120
|
-
function
|
|
4119
|
+
function Ti(e, t, r) {
|
|
4121
4120
|
let n;
|
|
4122
|
-
|
|
4123
|
-
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { activecategory: u = "" } = t, { excludedflags: h = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: l = "" } = t, { translationurl:
|
|
4121
|
+
or(e, pi, (b) => r(5, n = b));
|
|
4122
|
+
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, p, d = !1;
|
|
4124
4123
|
const g = [];
|
|
4125
4124
|
let E = [], m = [];
|
|
4126
|
-
Object.keys(
|
|
4127
|
-
|
|
4125
|
+
Object.keys(bt).forEach((b) => {
|
|
4126
|
+
dt(b, bt[b]);
|
|
4128
4127
|
});
|
|
4129
|
-
const
|
|
4130
|
-
fetch(
|
|
4131
|
-
Object.keys($).forEach((
|
|
4132
|
-
|
|
4128
|
+
const T = () => {
|
|
4129
|
+
fetch(c).then(($) => $.json()).then(($) => {
|
|
4130
|
+
Object.keys($).forEach((le) => {
|
|
4131
|
+
dt(le, $[le]);
|
|
4133
4132
|
});
|
|
4134
4133
|
}).catch(($) => {
|
|
4135
4134
|
console.log($);
|
|
4136
4135
|
});
|
|
4137
|
-
},
|
|
4136
|
+
}, A = () => {
|
|
4138
4137
|
r(2, d = !0);
|
|
4139
4138
|
const b = new URL(`${i}/v1/casino/groups/${s}`);
|
|
4140
4139
|
b.searchParams.append("language", o), fetch(b).then(($) => $.json()).then(($) => {
|
|
4141
4140
|
r(2, d = !1);
|
|
4142
|
-
const
|
|
4141
|
+
const le = h.split(",").map((j) => j.trim());
|
|
4143
4142
|
g.push(...$.items);
|
|
4144
|
-
const
|
|
4145
|
-
var
|
|
4146
|
-
return ((
|
|
4143
|
+
const Ze = g.filter((j) => !le.some((Kt) => {
|
|
4144
|
+
var Qe;
|
|
4145
|
+
return ((Qe = j.flags) == null ? void 0 : Qe.indexOf(Kt)) >= 0;
|
|
4147
4146
|
}));
|
|
4148
|
-
r(3, E =
|
|
4147
|
+
r(3, E = Ze.filter((j) => j.isTopCategory === !0)), r(4, m = Ze.filter((j) => j.isTopCategory === !1));
|
|
4149
4148
|
});
|
|
4150
|
-
},
|
|
4149
|
+
}, w = (b) => {
|
|
4151
4150
|
window.postMessage({ type: "OpenGameCategory", categoryId: b }, window.location.href);
|
|
4152
|
-
},
|
|
4151
|
+
}, B = () => {
|
|
4153
4152
|
_i(o);
|
|
4154
4153
|
};
|
|
4155
|
-
|
|
4154
|
+
gr(() => () => {
|
|
4156
4155
|
});
|
|
4157
|
-
const
|
|
4158
|
-
function
|
|
4159
|
-
|
|
4156
|
+
const H = (b) => w(b.id), P = (b) => w(b.id);
|
|
4157
|
+
function Yt(b) {
|
|
4158
|
+
Le[b ? "unshift" : "push"](() => {
|
|
4160
4159
|
p = b, r(1, p);
|
|
4161
4160
|
});
|
|
4162
4161
|
}
|
|
4163
4162
|
return e.$$set = (b) => {
|
|
4164
|
-
"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,
|
|
4163
|
+
"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);
|
|
4165
4164
|
}, e.$$.update = () => {
|
|
4166
4165
|
e.$$.dirty & /*endpoint, datasource*/
|
|
4167
|
-
384 && i && s &&
|
|
4168
|
-
8192 &&
|
|
4169
|
-
512 && o &&
|
|
4166
|
+
384 && i && s && A(), e.$$.dirty & /*translationurl*/
|
|
4167
|
+
8192 && c && T(), e.$$.dirty & /*lang*/
|
|
4168
|
+
512 && o && B(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4170
4169
|
2050 && a && p && di(p, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4171
4170
|
4098 && l && p && bi(p, l), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4172
|
-
16386 &&
|
|
4171
|
+
16386 && f && p && yi(p, `${f}.Style`);
|
|
4173
4172
|
}, [
|
|
4174
4173
|
u,
|
|
4175
4174
|
p,
|
|
@@ -4177,27 +4176,27 @@ function Ci(e, t, r) {
|
|
|
4177
4176
|
E,
|
|
4178
4177
|
m,
|
|
4179
4178
|
n,
|
|
4180
|
-
|
|
4179
|
+
w,
|
|
4181
4180
|
i,
|
|
4182
4181
|
s,
|
|
4183
4182
|
o,
|
|
4184
4183
|
h,
|
|
4185
4184
|
a,
|
|
4186
4185
|
l,
|
|
4187
|
-
f,
|
|
4188
4186
|
c,
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4187
|
+
f,
|
|
4188
|
+
H,
|
|
4189
|
+
P,
|
|
4190
|
+
Yt
|
|
4192
4191
|
];
|
|
4193
4192
|
}
|
|
4194
|
-
class
|
|
4193
|
+
class Jt extends Hr {
|
|
4195
4194
|
constructor(t) {
|
|
4196
4195
|
super(), Cr(
|
|
4197
4196
|
this,
|
|
4198
4197
|
t,
|
|
4199
|
-
Ci,
|
|
4200
4198
|
Ti,
|
|
4199
|
+
Ci,
|
|
4201
4200
|
Ct,
|
|
4202
4201
|
{
|
|
4203
4202
|
endpoint: 7,
|
|
@@ -4268,42 +4267,42 @@ class Yt extends Ar {
|
|
|
4268
4267
|
this.$$set({ mbsource: t }), M();
|
|
4269
4268
|
}
|
|
4270
4269
|
}
|
|
4271
|
-
|
|
4270
|
+
Tr(Jt, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4272
4271
|
const Si = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4273
4272
|
__proto__: null,
|
|
4274
|
-
default:
|
|
4273
|
+
default: Jt
|
|
4275
4274
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4276
4275
|
export {
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4276
|
+
te as $,
|
|
4277
|
+
tt as A,
|
|
4278
|
+
Bi as B,
|
|
4279
|
+
be as C,
|
|
4281
4280
|
Si as D,
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4281
|
+
Hr as S,
|
|
4282
|
+
zt as a,
|
|
4283
|
+
ar as b,
|
|
4284
|
+
Tr as c,
|
|
4285
|
+
k as d,
|
|
4286
|
+
F as e,
|
|
4288
4287
|
M as f,
|
|
4289
|
-
|
|
4290
|
-
|
|
4288
|
+
I as g,
|
|
4289
|
+
R as h,
|
|
4291
4290
|
Cr as i,
|
|
4292
|
-
|
|
4291
|
+
K as j,
|
|
4293
4292
|
v as k,
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4293
|
+
Ht as l,
|
|
4294
|
+
S as m,
|
|
4295
|
+
L as n,
|
|
4296
|
+
U as o,
|
|
4297
|
+
or as p,
|
|
4298
|
+
gr as q,
|
|
4299
|
+
ue as r,
|
|
4301
4300
|
Ct as s,
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4301
|
+
D as t,
|
|
4302
|
+
Le as u,
|
|
4303
|
+
pi as v,
|
|
4304
|
+
di as w,
|
|
4305
|
+
bi as x,
|
|
4306
|
+
yi as y,
|
|
4308
4307
|
ce as z
|
|
4309
4308
|
};
|