@everymatrix/casino-collections-providers 1.56.2 → 1.56.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CasinoCollectionsProviders-B5ykNs86.cjs +18 -0
- package/components/{CasinoCollectionsProviders-C-puSDuJ.js → CasinoCollectionsProviders-CqMjPT7I.js} +975 -1021
- package/components/{CasinoCollectionsProviders-Clfgs5xw.js → CasinoCollectionsProviders-DRU-mr9N.js} +1007 -1053
- package/es2015/casino-collections-providers.cjs +1 -1
- package/es2015/casino-collections-providers.js +1 -1
- package/esnext/casino-collections-providers.js +1 -1
- package/package.json +1 -1
- package/components/CasinoCollectionsProviders-W-o6oFjp.cjs +0 -18
package/components/{CasinoCollectionsProviders-Clfgs5xw.js → CasinoCollectionsProviders-DRU-mr9N.js}
RENAMED
@@ -1,57 +1,57 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
var
|
4
|
-
var
|
5
|
-
var Le = (e, t, r) => t in e ?
|
1
|
+
var Xr = Object.defineProperty, Wr = Object.defineProperties;
|
2
|
+
var zr = Object.getOwnPropertyDescriptors;
|
3
|
+
var vt = Object.getOwnPropertySymbols;
|
4
|
+
var Zr = Object.prototype.hasOwnProperty, Qr = Object.prototype.propertyIsEnumerable;
|
5
|
+
var Le = (e, t, r) => t in e ? Xr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, yt = (e, t) => {
|
6
6
|
for (var r in t || (t = {}))
|
7
|
-
|
8
|
-
if (
|
9
|
-
for (var r of
|
10
|
-
|
7
|
+
Zr.call(t, r) && Le(e, r, t[r]);
|
8
|
+
if (vt)
|
9
|
+
for (var r of vt(t))
|
10
|
+
Qr.call(t, r) && Le(e, r, t[r]);
|
11
11
|
return e;
|
12
|
-
},
|
13
|
-
var
|
14
|
-
var
|
15
|
-
var o = (
|
12
|
+
}, _t = (e, t) => Wr(e, zr(t));
|
13
|
+
var I = (e, t, r) => (Le(e, typeof t != "symbol" ? t + "" : t, r), r);
|
14
|
+
var Et = (e, t, r) => new Promise((n, i) => {
|
15
|
+
var o = (h) => {
|
16
16
|
try {
|
17
|
-
a(r.next(
|
17
|
+
a(r.next(h));
|
18
18
|
} catch (u) {
|
19
19
|
i(u);
|
20
20
|
}
|
21
|
-
}, s = (
|
21
|
+
}, s = (h) => {
|
22
22
|
try {
|
23
|
-
a(r.throw(
|
23
|
+
a(r.throw(h));
|
24
24
|
} catch (u) {
|
25
25
|
i(u);
|
26
26
|
}
|
27
|
-
}, a = (
|
27
|
+
}, a = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(o, s);
|
28
28
|
a((r = r.apply(e, t)).next());
|
29
29
|
});
|
30
30
|
function L() {
|
31
31
|
}
|
32
|
-
function
|
32
|
+
function Yt(e) {
|
33
33
|
return e();
|
34
34
|
}
|
35
|
-
function
|
35
|
+
function xt() {
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
37
37
|
}
|
38
|
-
function
|
39
|
-
e.forEach(
|
38
|
+
function re(e) {
|
39
|
+
e.forEach(Yt);
|
40
40
|
}
|
41
41
|
function nt(e) {
|
42
42
|
return typeof e == "function";
|
43
43
|
}
|
44
|
-
function
|
44
|
+
function Kt(e, t) {
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
46
46
|
}
|
47
|
-
let
|
48
|
-
function
|
49
|
-
return e === t ? !0 : (
|
47
|
+
let fe;
|
48
|
+
function ye(e, t) {
|
49
|
+
return e === t ? !0 : (fe || (fe = document.createElement("a")), fe.href = t, e === fe.href);
|
50
50
|
}
|
51
|
-
function
|
51
|
+
function qr(e) {
|
52
52
|
return Object.keys(e).length === 0;
|
53
53
|
}
|
54
|
-
function
|
54
|
+
function er(e, ...t) {
|
55
55
|
if (e == null) {
|
56
56
|
for (const n of t)
|
57
57
|
n(void 0);
|
@@ -60,20 +60,20 @@ function tr(e, ...t) {
|
|
60
60
|
const r = e.subscribe(...t);
|
61
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
62
62
|
}
|
63
|
-
function
|
64
|
-
e.$$.on_destroy.push(
|
63
|
+
function Jr(e, t, r) {
|
64
|
+
e.$$.on_destroy.push(er(t, r));
|
65
65
|
}
|
66
66
|
function C(e, t) {
|
67
67
|
e.appendChild(t);
|
68
68
|
}
|
69
|
-
function
|
70
|
-
const n =
|
69
|
+
function Yr(e, t, r) {
|
70
|
+
const n = Kr(e);
|
71
71
|
if (!n.getElementById(t)) {
|
72
72
|
const i = P("style");
|
73
|
-
i.id = t, i.textContent = r,
|
73
|
+
i.id = t, i.textContent = r, en(n, i);
|
74
74
|
}
|
75
75
|
}
|
76
|
-
function
|
76
|
+
function Kr(e) {
|
77
77
|
if (!e)
|
78
78
|
return document;
|
79
79
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
@@ -83,36 +83,36 @@ function tn(e) {
|
|
83
83
|
t
|
84
84
|
) : e.ownerDocument;
|
85
85
|
}
|
86
|
-
function
|
86
|
+
function en(e, t) {
|
87
87
|
return C(
|
88
88
|
/** @type {Document} */
|
89
89
|
e.head || e,
|
90
90
|
t
|
91
91
|
), t.sheet;
|
92
92
|
}
|
93
|
-
function
|
93
|
+
function G(e, t, r) {
|
94
94
|
e.insertBefore(t, r || null);
|
95
95
|
}
|
96
|
-
function
|
96
|
+
function M(e) {
|
97
97
|
e.parentNode && e.parentNode.removeChild(e);
|
98
98
|
}
|
99
|
-
function
|
99
|
+
function tr(e, t) {
|
100
100
|
for (let r = 0; r < e.length; r += 1)
|
101
101
|
e[r] && e[r].d(t);
|
102
102
|
}
|
103
103
|
function P(e) {
|
104
104
|
return document.createElement(e);
|
105
105
|
}
|
106
|
-
function
|
106
|
+
function Te(e) {
|
107
107
|
return document.createTextNode(e);
|
108
108
|
}
|
109
|
-
function
|
110
|
-
return
|
109
|
+
function V() {
|
110
|
+
return Te(" ");
|
111
111
|
}
|
112
|
-
function
|
112
|
+
function _e(e, t, r, n) {
|
113
113
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
114
114
|
}
|
115
|
-
function
|
115
|
+
function tn(e) {
|
116
116
|
return function(t) {
|
117
117
|
return t.stopPropagation(), e.call(this, t);
|
118
118
|
};
|
@@ -120,51 +120,17 @@ function nn(e) {
|
|
120
120
|
function x(e, t, r) {
|
121
121
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
122
122
|
}
|
123
|
-
function
|
123
|
+
function rn(e) {
|
124
124
|
return Array.from(e.childNodes);
|
125
125
|
}
|
126
126
|
function it(e, t) {
|
127
127
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
128
128
|
t);
|
129
129
|
}
|
130
|
-
function
|
130
|
+
function Ie(e, t, r, n) {
|
131
131
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
132
132
|
}
|
133
|
-
|
134
|
-
function sn() {
|
135
|
-
if (pe === void 0) {
|
136
|
-
pe = !1;
|
137
|
-
try {
|
138
|
-
typeof window != "undefined" && window.parent && window.parent.document;
|
139
|
-
} catch (e) {
|
140
|
-
pe = !0;
|
141
|
-
}
|
142
|
-
}
|
143
|
-
return pe;
|
144
|
-
}
|
145
|
-
function an(e, t) {
|
146
|
-
getComputedStyle(e).position === "static" && (e.style.position = "relative");
|
147
|
-
const n = P("iframe");
|
148
|
-
n.setAttribute(
|
149
|
-
"style",
|
150
|
-
"display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
|
151
|
-
), n.setAttribute("aria-hidden", "true"), n.tabIndex = -1;
|
152
|
-
const i = sn();
|
153
|
-
let o;
|
154
|
-
return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o = J(
|
155
|
-
window,
|
156
|
-
"message",
|
157
|
-
/** @param {MessageEvent} event */
|
158
|
-
(s) => {
|
159
|
-
s.source === n.contentWindow && t();
|
160
|
-
}
|
161
|
-
)) : (n.src = "about:blank", n.onload = () => {
|
162
|
-
o = J(n.contentWindow, "resize", t), t();
|
163
|
-
}), C(e, n), () => {
|
164
|
-
(i || o && n.contentWindow) && o(), $(n);
|
165
|
-
};
|
166
|
-
}
|
167
|
-
function ln(e) {
|
133
|
+
function nn(e) {
|
168
134
|
const t = {};
|
169
135
|
return e.childNodes.forEach(
|
170
136
|
/** @param {Element} node */
|
@@ -177,85 +143,85 @@ let le;
|
|
177
143
|
function ae(e) {
|
178
144
|
le = e;
|
179
145
|
}
|
180
|
-
function
|
146
|
+
function on() {
|
181
147
|
if (!le)
|
182
148
|
throw new Error("Function called outside component initialization");
|
183
149
|
return le;
|
184
150
|
}
|
185
|
-
function
|
186
|
-
|
187
|
-
}
|
188
|
-
const
|
189
|
-
let
|
190
|
-
const
|
191
|
-
let
|
192
|
-
function
|
193
|
-
|
194
|
-
}
|
195
|
-
function
|
196
|
-
|
197
|
-
}
|
198
|
-
const
|
199
|
-
let
|
200
|
-
function
|
201
|
-
if (
|
151
|
+
function sn(e) {
|
152
|
+
on().$$.on_mount.push(e);
|
153
|
+
}
|
154
|
+
const Q = [], Ee = [];
|
155
|
+
let q = [];
|
156
|
+
const St = [], an = /* @__PURE__ */ Promise.resolve();
|
157
|
+
let je = !1;
|
158
|
+
function ln() {
|
159
|
+
je || (je = !0, an.then(N));
|
160
|
+
}
|
161
|
+
function ke(e) {
|
162
|
+
q.push(e);
|
163
|
+
}
|
164
|
+
const Ne = /* @__PURE__ */ new Set();
|
165
|
+
let z = 0;
|
166
|
+
function N() {
|
167
|
+
if (z !== 0)
|
202
168
|
return;
|
203
169
|
const e = le;
|
204
170
|
do {
|
205
171
|
try {
|
206
|
-
for (;
|
207
|
-
const t = z
|
208
|
-
|
172
|
+
for (; z < Q.length; ) {
|
173
|
+
const t = Q[z];
|
174
|
+
z++, ae(t), un(t.$$);
|
209
175
|
}
|
210
176
|
} catch (t) {
|
211
|
-
throw
|
177
|
+
throw Q.length = 0, z = 0, t;
|
212
178
|
}
|
213
|
-
for (ae(null),
|
214
|
-
|
215
|
-
for (let t = 0; t <
|
216
|
-
const r =
|
217
|
-
|
179
|
+
for (ae(null), Q.length = 0, z = 0; Ee.length; )
|
180
|
+
Ee.pop()();
|
181
|
+
for (let t = 0; t < q.length; t += 1) {
|
182
|
+
const r = q[t];
|
183
|
+
Ne.has(r) || (Ne.add(r), r());
|
218
184
|
}
|
219
|
-
|
220
|
-
} while (
|
221
|
-
for (;
|
222
|
-
|
223
|
-
|
185
|
+
q.length = 0;
|
186
|
+
} while (Q.length);
|
187
|
+
for (; St.length; )
|
188
|
+
St.pop()();
|
189
|
+
je = !1, Ne.clear(), ae(e);
|
224
190
|
}
|
225
|
-
function
|
191
|
+
function un(e) {
|
226
192
|
if (e.fragment !== null) {
|
227
|
-
e.update(),
|
193
|
+
e.update(), re(e.before_update);
|
228
194
|
const t = e.dirty;
|
229
|
-
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(ke);
|
230
196
|
}
|
231
197
|
}
|
232
|
-
function
|
198
|
+
function hn(e) {
|
233
199
|
const t = [], r = [];
|
234
|
-
|
200
|
+
q.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), q = t;
|
235
201
|
}
|
236
|
-
const
|
237
|
-
function
|
238
|
-
e && e.i && (
|
202
|
+
const cn = /* @__PURE__ */ new Set();
|
203
|
+
function fn(e, t) {
|
204
|
+
e && e.i && (cn.delete(e), e.i(t));
|
239
205
|
}
|
240
|
-
function
|
206
|
+
function xe(e) {
|
241
207
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
242
208
|
}
|
243
|
-
function
|
209
|
+
function dn(e, t, r) {
|
244
210
|
const { fragment: n, after_update: i } = e.$$;
|
245
|
-
n && n.m(t, r),
|
246
|
-
const o = e.$$.on_mount.map(
|
247
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
248
|
-
}), i.forEach(
|
211
|
+
n && n.m(t, r), ke(() => {
|
212
|
+
const o = e.$$.on_mount.map(Yt).filter(nt);
|
213
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : re(o), e.$$.on_mount = [];
|
214
|
+
}), i.forEach(ke);
|
249
215
|
}
|
250
|
-
function
|
216
|
+
function pn(e, t) {
|
251
217
|
const r = e.$$;
|
252
|
-
r.fragment !== null && (
|
218
|
+
r.fragment !== null && (hn(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
253
219
|
}
|
254
|
-
function
|
255
|
-
e.$$.dirty[0] === -1 && (
|
220
|
+
function mn(e, t) {
|
221
|
+
e.$$.dirty[0] === -1 && (Q.push(e), ln(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
256
222
|
}
|
257
|
-
function
|
258
|
-
const
|
223
|
+
function bn(e, t, r, n, i, o, s = null, a = [-1]) {
|
224
|
+
const h = le;
|
259
225
|
ae(e);
|
260
226
|
const u = e.$$ = {
|
261
227
|
fragment: null,
|
@@ -264,57 +230,57 @@ function _n(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
264
230
|
props: o,
|
265
231
|
update: L,
|
266
232
|
not_equal: i,
|
267
|
-
bound:
|
233
|
+
bound: xt(),
|
268
234
|
// lifecycle
|
269
235
|
on_mount: [],
|
270
236
|
on_destroy: [],
|
271
237
|
on_disconnect: [],
|
272
238
|
before_update: [],
|
273
239
|
after_update: [],
|
274
|
-
context: new Map(t.context || (
|
240
|
+
context: new Map(t.context || (h ? h.$$.context : [])),
|
275
241
|
// everything else
|
276
|
-
callbacks:
|
242
|
+
callbacks: xt(),
|
277
243
|
dirty: a,
|
278
244
|
skip_bound: !1,
|
279
|
-
root: t.target ||
|
245
|
+
root: t.target || h.$$.root
|
280
246
|
};
|
281
247
|
s && s(u.root);
|
282
|
-
let
|
283
|
-
if (u.ctx = r ? r(e, t.props || {}, (
|
284
|
-
const
|
285
|
-
return u.ctx && i(u.ctx[
|
286
|
-
}) : [], u.update(),
|
248
|
+
let l = !1;
|
249
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...d) => {
|
250
|
+
const p = d.length ? d[0] : c;
|
251
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = p) && (!u.skip_bound && u.bound[f] && u.bound[f](p), l && mn(e, f)), c;
|
252
|
+
}) : [], u.update(), l = !0, re(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
287
253
|
if (t.hydrate) {
|
288
|
-
const
|
289
|
-
u.fragment && u.fragment.l(
|
254
|
+
const f = rn(t.target);
|
255
|
+
u.fragment && u.fragment.l(f), f.forEach(M);
|
290
256
|
} else
|
291
257
|
u.fragment && u.fragment.c();
|
292
|
-
t.intro &&
|
258
|
+
t.intro && fn(e.$$.fragment), dn(e, t.target, t.anchor), N();
|
293
259
|
}
|
294
|
-
ae(
|
260
|
+
ae(h);
|
295
261
|
}
|
296
|
-
let
|
297
|
-
typeof HTMLElement == "function" && (
|
262
|
+
let rr;
|
263
|
+
typeof HTMLElement == "function" && (rr = class extends HTMLElement {
|
298
264
|
constructor(t, r, n) {
|
299
265
|
super();
|
300
266
|
/** The Svelte component constructor */
|
301
|
-
|
267
|
+
I(this, "$$ctor");
|
302
268
|
/** Slots */
|
303
|
-
|
269
|
+
I(this, "$$s");
|
304
270
|
/** The Svelte component instance */
|
305
|
-
|
271
|
+
I(this, "$$c");
|
306
272
|
/** Whether or not the custom element is connected */
|
307
|
-
|
273
|
+
I(this, "$$cn", !1);
|
308
274
|
/** Component props data */
|
309
|
-
|
275
|
+
I(this, "$$d", {});
|
310
276
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
311
|
-
|
277
|
+
I(this, "$$r", !1);
|
312
278
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
313
|
-
|
279
|
+
I(this, "$$p_d", {});
|
314
280
|
/** @type {Record<string, Function[]>} Event listeners */
|
315
|
-
|
281
|
+
I(this, "$$l", {});
|
316
282
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
317
|
-
|
283
|
+
I(this, "$$l_u", /* @__PURE__ */ new Map());
|
318
284
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
319
285
|
}
|
320
286
|
addEventListener(t, r, n) {
|
@@ -331,7 +297,7 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
|
|
331
297
|
}
|
332
298
|
}
|
333
299
|
connectedCallback() {
|
334
|
-
return
|
300
|
+
return Et(this, null, function* () {
|
335
301
|
if (this.$$cn = !0, !this.$$c) {
|
336
302
|
let t = function(o) {
|
337
303
|
return () => {
|
@@ -344,29 +310,29 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
|
|
344
310
|
* @param {HTMLElement} target
|
345
311
|
* @param {HTMLElement} [anchor]
|
346
312
|
*/
|
347
|
-
m: function(u,
|
348
|
-
|
313
|
+
m: function(u, l) {
|
314
|
+
G(u, s, l);
|
349
315
|
},
|
350
316
|
d: function(u) {
|
351
|
-
u &&
|
317
|
+
u && M(s);
|
352
318
|
}
|
353
319
|
};
|
354
320
|
};
|
355
321
|
};
|
356
322
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
357
323
|
return;
|
358
|
-
const r = {}, n =
|
324
|
+
const r = {}, n = nn(this);
|
359
325
|
for (const o of this.$$s)
|
360
326
|
o in n && (r[o] = [t(o)]);
|
361
327
|
for (const o of this.attributes) {
|
362
328
|
const s = this.$$g_p(o.name);
|
363
|
-
s in this.$$d || (this.$$d[s] =
|
329
|
+
s in this.$$d || (this.$$d[s] = me(s, o.value, this.$$p_d, "toProp"));
|
364
330
|
}
|
365
331
|
for (const o in this.$$p_d)
|
366
332
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
367
333
|
this.$$c = new this.$$ctor({
|
368
334
|
target: this.shadowRoot || this,
|
369
|
-
props:
|
335
|
+
props: _t(yt({}, this.$$d), {
|
370
336
|
$$slots: r,
|
371
337
|
$$scope: {
|
372
338
|
ctx: []
|
@@ -377,7 +343,7 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
|
|
377
343
|
this.$$r = !0;
|
378
344
|
for (const o in this.$$p_d)
|
379
345
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
380
|
-
const s =
|
346
|
+
const s = me(
|
381
347
|
o,
|
382
348
|
this.$$d[o],
|
383
349
|
this.$$p_d,
|
@@ -401,7 +367,7 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
|
|
401
367
|
// and setting attributes through setAttribute etc, this is helpful
|
402
368
|
attributeChangedCallback(t, r, n) {
|
403
369
|
var i;
|
404
|
-
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] }));
|
405
371
|
}
|
406
372
|
disconnectedCallback() {
|
407
373
|
this.$$cn = !1, Promise.resolve().then(() => {
|
@@ -414,7 +380,7 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
|
|
414
380
|
) || t;
|
415
381
|
}
|
416
382
|
});
|
417
|
-
function
|
383
|
+
function me(e, t, r, n) {
|
418
384
|
var o;
|
419
385
|
const i = (o = r[e]) == null ? void 0 : o.type;
|
420
386
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
@@ -444,8 +410,8 @@ function ge(e, t, r, n) {
|
|
444
410
|
return t;
|
445
411
|
}
|
446
412
|
}
|
447
|
-
function
|
448
|
-
let s = class extends
|
413
|
+
function gn(e, t, r, n, i, o) {
|
414
|
+
let s = class extends rr {
|
449
415
|
constructor() {
|
450
416
|
super(e, r, i), this.$$p_d = t;
|
451
417
|
}
|
@@ -460,22 +426,22 @@ function En(e, t, r, n, i, o) {
|
|
460
426
|
get() {
|
461
427
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
462
428
|
},
|
463
|
-
set(
|
429
|
+
set(h) {
|
464
430
|
var u;
|
465
|
-
|
431
|
+
h = me(a, h, t), this.$$d[a] = h, (u = this.$$c) == null || u.$set({ [a]: h });
|
466
432
|
}
|
467
433
|
});
|
468
434
|
}), n.forEach((a) => {
|
469
435
|
Object.defineProperty(s.prototype, a, {
|
470
436
|
get() {
|
471
|
-
var
|
472
|
-
return (
|
437
|
+
var h;
|
438
|
+
return (h = this.$$c) == null ? void 0 : h[a];
|
473
439
|
}
|
474
440
|
});
|
475
441
|
}), e.element = /** @type {any} */
|
476
442
|
s, s;
|
477
443
|
}
|
478
|
-
class
|
444
|
+
class vn {
|
479
445
|
constructor() {
|
480
446
|
/**
|
481
447
|
* ### PRIVATE API
|
@@ -484,7 +450,7 @@ class xn {
|
|
484
450
|
*
|
485
451
|
* @type {any}
|
486
452
|
*/
|
487
|
-
|
453
|
+
I(this, "$$");
|
488
454
|
/**
|
489
455
|
* ### PRIVATE API
|
490
456
|
*
|
@@ -492,11 +458,11 @@ class xn {
|
|
492
458
|
*
|
493
459
|
* @type {any}
|
494
460
|
*/
|
495
|
-
|
461
|
+
I(this, "$$set");
|
496
462
|
}
|
497
463
|
/** @returns {void} */
|
498
464
|
$destroy() {
|
499
|
-
|
465
|
+
pn(this, 1), this.$destroy = L;
|
500
466
|
}
|
501
467
|
/**
|
502
468
|
* @template {Extract<keyof Events, string>} K
|
@@ -518,148 +484,148 @@ class xn {
|
|
518
484
|
* @returns {void}
|
519
485
|
*/
|
520
486
|
$set(t) {
|
521
|
-
this.$$set && !
|
487
|
+
this.$$set && !qr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
522
488
|
}
|
523
489
|
}
|
524
|
-
const
|
525
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
526
|
-
const
|
527
|
-
function
|
490
|
+
const yn = "4";
|
491
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(yn);
|
492
|
+
const Z = [];
|
493
|
+
function _n(e, t) {
|
528
494
|
return {
|
529
|
-
subscribe:
|
495
|
+
subscribe: He(e, t).subscribe
|
530
496
|
};
|
531
497
|
}
|
532
|
-
function
|
498
|
+
function He(e, t = L) {
|
533
499
|
let r;
|
534
500
|
const n = /* @__PURE__ */ new Set();
|
535
501
|
function i(a) {
|
536
|
-
if (
|
537
|
-
const
|
502
|
+
if (Kt(e, a) && (e = a, r)) {
|
503
|
+
const h = !Z.length;
|
538
504
|
for (const u of n)
|
539
|
-
u[1](),
|
540
|
-
if (
|
541
|
-
for (let u = 0; u <
|
542
|
-
|
543
|
-
|
505
|
+
u[1](), Z.push(u, e);
|
506
|
+
if (h) {
|
507
|
+
for (let u = 0; u < Z.length; u += 2)
|
508
|
+
Z[u][0](Z[u + 1]);
|
509
|
+
Z.length = 0;
|
544
510
|
}
|
545
511
|
}
|
546
512
|
}
|
547
513
|
function o(a) {
|
548
514
|
i(a(e));
|
549
515
|
}
|
550
|
-
function s(a,
|
551
|
-
const u = [a,
|
516
|
+
function s(a, h = L) {
|
517
|
+
const u = [a, h];
|
552
518
|
return n.add(u), n.size === 1 && (r = t(i, o) || L), a(e), () => {
|
553
519
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
554
520
|
};
|
555
521
|
}
|
556
522
|
return { set: i, update: o, subscribe: s };
|
557
523
|
}
|
558
|
-
function
|
524
|
+
function ne(e, t, r) {
|
559
525
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
560
526
|
if (!i.every(Boolean))
|
561
527
|
throw new Error("derived() expects stores as input, got a falsy value");
|
562
528
|
const o = t.length < 2;
|
563
|
-
return
|
564
|
-
let
|
529
|
+
return _n(r, (s, a) => {
|
530
|
+
let h = !1;
|
565
531
|
const u = [];
|
566
|
-
let
|
567
|
-
const
|
568
|
-
if (
|
532
|
+
let l = 0, f = L;
|
533
|
+
const c = () => {
|
534
|
+
if (l)
|
569
535
|
return;
|
570
|
-
|
571
|
-
const
|
572
|
-
o ? s(
|
573
|
-
},
|
574
|
-
(
|
575
|
-
|
576
|
-
(
|
577
|
-
u[
|
536
|
+
f();
|
537
|
+
const p = t(n ? u[0] : u, s, a);
|
538
|
+
o ? s(p) : f = nt(p) ? p : L;
|
539
|
+
}, d = i.map(
|
540
|
+
(p, b) => er(
|
541
|
+
p,
|
542
|
+
(g) => {
|
543
|
+
u[b] = g, l &= ~(1 << b), h && c();
|
578
544
|
},
|
579
545
|
() => {
|
580
|
-
|
546
|
+
l |= 1 << b;
|
581
547
|
}
|
582
548
|
)
|
583
549
|
);
|
584
|
-
return
|
585
|
-
|
550
|
+
return h = !0, c(), function() {
|
551
|
+
re(d), f(), h = !1;
|
586
552
|
};
|
587
553
|
});
|
588
554
|
}
|
589
|
-
function
|
555
|
+
function En(e) {
|
590
556
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
591
557
|
}
|
592
|
-
var
|
593
|
-
return
|
558
|
+
var xn = function(t) {
|
559
|
+
return Sn(t) && !wn(t);
|
594
560
|
};
|
595
|
-
function
|
561
|
+
function Sn(e) {
|
596
562
|
return !!e && typeof e == "object";
|
597
563
|
}
|
598
|
-
function
|
564
|
+
function wn(e) {
|
599
565
|
var t = Object.prototype.toString.call(e);
|
600
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
566
|
+
return t === "[object RegExp]" || t === "[object Date]" || Cn(e);
|
601
567
|
}
|
602
|
-
var
|
603
|
-
function
|
604
|
-
return e.$$typeof ===
|
568
|
+
var Tn = typeof Symbol == "function" && Symbol.for, Hn = Tn ? Symbol.for("react.element") : 60103;
|
569
|
+
function Cn(e) {
|
570
|
+
return e.$$typeof === Hn;
|
605
571
|
}
|
606
|
-
function
|
572
|
+
function Pn(e) {
|
607
573
|
return Array.isArray(e) ? [] : {};
|
608
574
|
}
|
609
575
|
function ue(e, t) {
|
610
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
576
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Y(Pn(e), e, t) : e;
|
611
577
|
}
|
612
|
-
function
|
578
|
+
function Bn(e, t, r) {
|
613
579
|
return e.concat(t).map(function(n) {
|
614
580
|
return ue(n, r);
|
615
581
|
});
|
616
582
|
}
|
617
|
-
function
|
583
|
+
function An(e, t) {
|
618
584
|
if (!t.customMerge)
|
619
|
-
return
|
585
|
+
return Y;
|
620
586
|
var r = t.customMerge(e);
|
621
|
-
return typeof r == "function" ? r :
|
587
|
+
return typeof r == "function" ? r : Y;
|
622
588
|
}
|
623
|
-
function
|
589
|
+
function On(e) {
|
624
590
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
625
591
|
return Object.propertyIsEnumerable.call(e, t);
|
626
592
|
}) : [];
|
627
593
|
}
|
628
|
-
function
|
629
|
-
return Object.keys(e).concat(
|
594
|
+
function wt(e) {
|
595
|
+
return Object.keys(e).concat(On(e));
|
630
596
|
}
|
631
|
-
function
|
597
|
+
function nr(e, t) {
|
632
598
|
try {
|
633
599
|
return t in e;
|
634
600
|
} catch (r) {
|
635
601
|
return !1;
|
636
602
|
}
|
637
603
|
}
|
638
|
-
function
|
639
|
-
return
|
604
|
+
function Ln(e, t) {
|
605
|
+
return nr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
640
606
|
}
|
641
|
-
function
|
607
|
+
function In(e, t, r) {
|
642
608
|
var n = {};
|
643
|
-
return r.isMergeableObject(e) &&
|
609
|
+
return r.isMergeableObject(e) && wt(e).forEach(function(i) {
|
644
610
|
n[i] = ue(e[i], r);
|
645
|
-
}),
|
646
|
-
|
611
|
+
}), wt(t).forEach(function(i) {
|
612
|
+
Ln(e, i) || (nr(e, i) && r.isMergeableObject(t[i]) ? n[i] = An(i, r)(e[i], t[i], r) : n[i] = ue(t[i], r));
|
647
613
|
}), n;
|
648
614
|
}
|
649
|
-
function
|
650
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
615
|
+
function Y(e, t, r) {
|
616
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Bn, r.isMergeableObject = r.isMergeableObject || xn, r.cloneUnlessOtherwiseSpecified = ue;
|
651
617
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
652
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
618
|
+
return o ? n ? r.arrayMerge(e, t, r) : In(e, t, r) : ue(t, r);
|
653
619
|
}
|
654
|
-
|
620
|
+
Y.all = function(t, r) {
|
655
621
|
if (!Array.isArray(t))
|
656
622
|
throw new Error("first argument should be an array");
|
657
623
|
return t.reduce(function(n, i) {
|
658
|
-
return
|
624
|
+
return Y(n, i, r);
|
659
625
|
}, {});
|
660
626
|
};
|
661
|
-
var
|
662
|
-
const
|
627
|
+
var Nn = Y, Mn = Nn;
|
628
|
+
const Rn = /* @__PURE__ */ En(Mn);
|
663
629
|
/*! *****************************************************************************
|
664
630
|
Copyright (c) Microsoft Corporation.
|
665
631
|
|
@@ -691,17 +657,17 @@ function F(e, t) {
|
|
691
657
|
}
|
692
658
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
693
659
|
}
|
694
|
-
var
|
695
|
-
return
|
660
|
+
var _ = function() {
|
661
|
+
return _ = Object.assign || function(t) {
|
696
662
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
697
663
|
r = arguments[n];
|
698
664
|
for (var o in r)
|
699
665
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
700
666
|
}
|
701
667
|
return t;
|
702
|
-
},
|
668
|
+
}, _.apply(this, arguments);
|
703
669
|
};
|
704
|
-
function
|
670
|
+
function $n(e, t) {
|
705
671
|
var r = {};
|
706
672
|
for (var n in e)
|
707
673
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
@@ -742,44 +708,44 @@ function We(e, t) {
|
|
742
708
|
}
|
743
709
|
return o;
|
744
710
|
}
|
745
|
-
function
|
711
|
+
function J(e, t, r) {
|
746
712
|
if (r || arguments.length === 2)
|
747
713
|
for (var n = 0, i = t.length, o; n < i; n++)
|
748
714
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
749
715
|
return e.concat(o || t);
|
750
716
|
}
|
751
|
-
function
|
752
|
-
var r = t && t.cache ? t.cache :
|
717
|
+
function Me(e, t) {
|
718
|
+
var r = t && t.cache ? t.cache : kn, n = t && t.serializer ? t.serializer : jn, i = t && t.strategy ? t.strategy : Un;
|
753
719
|
return i(e, {
|
754
720
|
cache: r,
|
755
721
|
serializer: n
|
756
722
|
});
|
757
723
|
}
|
758
|
-
function
|
724
|
+
function Gn(e) {
|
759
725
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
760
726
|
}
|
761
|
-
function
|
762
|
-
var i =
|
727
|
+
function ir(e, t, r, n) {
|
728
|
+
var i = Gn(n) ? n : r(n), o = t.get(i);
|
763
729
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
764
730
|
}
|
765
|
-
function
|
731
|
+
function or(e, t, r) {
|
766
732
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
767
733
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
768
734
|
}
|
769
735
|
function ot(e, t, r, n, i) {
|
770
736
|
return r.bind(t, e, n, i);
|
771
737
|
}
|
772
|
-
function
|
773
|
-
var r = e.length === 1 ?
|
738
|
+
function Un(e, t) {
|
739
|
+
var r = e.length === 1 ? ir : or;
|
774
740
|
return ot(e, this, r, t.cache.create(), t.serializer);
|
775
741
|
}
|
776
|
-
function
|
777
|
-
return ot(e, this, sr, t.cache.create(), t.serializer);
|
778
|
-
}
|
779
|
-
function Xn(e, t) {
|
742
|
+
function Dn(e, t) {
|
780
743
|
return ot(e, this, or, t.cache.create(), t.serializer);
|
781
744
|
}
|
782
|
-
|
745
|
+
function Fn(e, t) {
|
746
|
+
return ot(e, this, ir, t.cache.create(), t.serializer);
|
747
|
+
}
|
748
|
+
var jn = function() {
|
783
749
|
return JSON.stringify(arguments);
|
784
750
|
};
|
785
751
|
function st() {
|
@@ -791,13 +757,13 @@ st.prototype.get = function(e) {
|
|
791
757
|
st.prototype.set = function(e, t) {
|
792
758
|
this.cache[e] = t;
|
793
759
|
};
|
794
|
-
var
|
760
|
+
var kn = {
|
795
761
|
create: function() {
|
796
762
|
return new st();
|
797
763
|
}
|
798
|
-
},
|
799
|
-
variadic:
|
800
|
-
monadic:
|
764
|
+
}, Re = {
|
765
|
+
variadic: Dn,
|
766
|
+
monadic: Fn
|
801
767
|
}, v;
|
802
768
|
(function(e) {
|
803
769
|
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";
|
@@ -806,47 +772,47 @@ var w;
|
|
806
772
|
(function(e) {
|
807
773
|
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";
|
808
774
|
})(w || (w = {}));
|
809
|
-
var
|
775
|
+
var K;
|
810
776
|
(function(e) {
|
811
777
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
812
|
-
})(
|
813
|
-
function
|
778
|
+
})(K || (K = {}));
|
779
|
+
function Tt(e) {
|
814
780
|
return e.type === w.literal;
|
815
781
|
}
|
816
|
-
function
|
782
|
+
function Vn(e) {
|
817
783
|
return e.type === w.argument;
|
818
784
|
}
|
819
|
-
function
|
785
|
+
function sr(e) {
|
820
786
|
return e.type === w.number;
|
821
787
|
}
|
822
|
-
function
|
788
|
+
function ar(e) {
|
823
789
|
return e.type === w.date;
|
824
790
|
}
|
825
|
-
function
|
791
|
+
function lr(e) {
|
826
792
|
return e.type === w.time;
|
827
793
|
}
|
828
|
-
function
|
794
|
+
function ur(e) {
|
829
795
|
return e.type === w.select;
|
830
796
|
}
|
831
|
-
function
|
797
|
+
function hr(e) {
|
832
798
|
return e.type === w.plural;
|
833
799
|
}
|
834
|
-
function
|
800
|
+
function Xn(e) {
|
835
801
|
return e.type === w.pound;
|
836
802
|
}
|
837
|
-
function
|
803
|
+
function cr(e) {
|
838
804
|
return e.type === w.tag;
|
839
805
|
}
|
840
|
-
function
|
841
|
-
return !!(e && typeof e == "object" && e.type ===
|
806
|
+
function fr(e) {
|
807
|
+
return !!(e && typeof e == "object" && e.type === K.number);
|
842
808
|
}
|
843
809
|
function ze(e) {
|
844
|
-
return !!(e && typeof e == "object" && e.type ===
|
810
|
+
return !!(e && typeof e == "object" && e.type === K.dateTime);
|
845
811
|
}
|
846
|
-
var
|
847
|
-
function
|
812
|
+
var dr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Wn = /(?:[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;
|
813
|
+
function zn(e) {
|
848
814
|
var t = {};
|
849
|
-
return e.replace(
|
815
|
+
return e.replace(Wn, function(r) {
|
850
816
|
var n = r.length;
|
851
817
|
switch (r[0]) {
|
852
818
|
case "G":
|
@@ -935,36 +901,36 @@ function qn(e) {
|
|
935
901
|
return "";
|
936
902
|
}), t;
|
937
903
|
}
|
938
|
-
var
|
939
|
-
function
|
904
|
+
var Zn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
905
|
+
function Qn(e) {
|
940
906
|
if (e.length === 0)
|
941
907
|
throw new Error("Number skeleton cannot be empty");
|
942
|
-
for (var t = e.split(
|
943
|
-
return
|
908
|
+
for (var t = e.split(Zn).filter(function(c) {
|
909
|
+
return c.length > 0;
|
944
910
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
945
911
|
var o = i[n], s = o.split("/");
|
946
912
|
if (s.length === 0)
|
947
913
|
throw new Error("Invalid number skeleton");
|
948
|
-
for (var a = s[0],
|
949
|
-
var
|
950
|
-
if (
|
914
|
+
for (var a = s[0], h = s.slice(1), u = 0, l = h; u < l.length; u++) {
|
915
|
+
var f = l[u];
|
916
|
+
if (f.length === 0)
|
951
917
|
throw new Error("Invalid number skeleton");
|
952
918
|
}
|
953
|
-
r.push({ stem: a, options:
|
919
|
+
r.push({ stem: a, options: h });
|
954
920
|
}
|
955
921
|
return r;
|
956
922
|
}
|
957
|
-
function
|
923
|
+
function qn(e) {
|
958
924
|
return e.replace(/^(.*?)-/, "");
|
959
925
|
}
|
960
|
-
var
|
961
|
-
function
|
926
|
+
var Ht = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, pr = /^(@+)?(\+|#+)?[rs]?$/g, Jn = /(\*)(0+)|(#+)(0+)|(0+)/g, mr = /^(0+)$/;
|
927
|
+
function Ct(e) {
|
962
928
|
var t = {};
|
963
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
929
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(pr, function(r, n, i) {
|
964
930
|
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)), "";
|
965
931
|
}), t;
|
966
932
|
}
|
967
|
-
function
|
933
|
+
function br(e) {
|
968
934
|
switch (e) {
|
969
935
|
case "sign-auto":
|
970
936
|
return {
|
@@ -1004,7 +970,7 @@ function gr(e) {
|
|
1004
970
|
};
|
1005
971
|
}
|
1006
972
|
}
|
1007
|
-
function
|
973
|
+
function Yn(e) {
|
1008
974
|
var t;
|
1009
975
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
1010
976
|
notation: "engineering"
|
@@ -1012,17 +978,17 @@ function ri(e) {
|
|
1012
978
|
notation: "scientific"
|
1013
979
|
}, e = e.slice(1)), t) {
|
1014
980
|
var r = e.slice(0, 2);
|
1015
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
981
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !mr.test(e))
|
1016
982
|
throw new Error("Malformed concise eng/scientific notation");
|
1017
983
|
t.minimumIntegerDigits = e.length;
|
1018
984
|
}
|
1019
985
|
return t;
|
1020
986
|
}
|
1021
|
-
function
|
1022
|
-
var t = {}, r =
|
987
|
+
function Pt(e) {
|
988
|
+
var t = {}, r = br(e);
|
1023
989
|
return r || t;
|
1024
990
|
}
|
1025
|
-
function
|
991
|
+
function Kn(e) {
|
1026
992
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
1027
993
|
var i = n[r];
|
1028
994
|
switch (i.stem) {
|
@@ -1046,7 +1012,7 @@ function ni(e) {
|
|
1046
1012
|
continue;
|
1047
1013
|
case "measure-unit":
|
1048
1014
|
case "unit":
|
1049
|
-
t.style = "unit", t.unit =
|
1015
|
+
t.style = "unit", t.unit = qn(i.options[0]);
|
1050
1016
|
continue;
|
1051
1017
|
case "compact-short":
|
1052
1018
|
case "K":
|
@@ -1057,13 +1023,13 @@ function ni(e) {
|
|
1057
1023
|
t.notation = "compact", t.compactDisplay = "long";
|
1058
1024
|
continue;
|
1059
1025
|
case "scientific":
|
1060
|
-
t =
|
1061
|
-
return
|
1026
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
1027
|
+
return _(_({}, h), Pt(u));
|
1062
1028
|
}, {}));
|
1063
1029
|
continue;
|
1064
1030
|
case "engineering":
|
1065
|
-
t =
|
1066
|
-
return
|
1031
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
1032
|
+
return _(_({}, h), Pt(u));
|
1067
1033
|
}, {}));
|
1068
1034
|
continue;
|
1069
1035
|
case "notation-simple":
|
@@ -1108,45 +1074,45 @@ function ni(e) {
|
|
1108
1074
|
case "integer-width":
|
1109
1075
|
if (i.options.length > 1)
|
1110
1076
|
throw new RangeError("integer-width stems only accept a single optional option");
|
1111
|
-
i.options[0].replace(
|
1077
|
+
i.options[0].replace(Jn, function(h, u, l, f, c, d) {
|
1112
1078
|
if (u)
|
1113
|
-
t.minimumIntegerDigits =
|
1079
|
+
t.minimumIntegerDigits = l.length;
|
1114
1080
|
else {
|
1115
|
-
if (
|
1081
|
+
if (f && c)
|
1116
1082
|
throw new Error("We currently do not support maximum integer digits");
|
1117
|
-
if (
|
1083
|
+
if (d)
|
1118
1084
|
throw new Error("We currently do not support exact integer digits");
|
1119
1085
|
}
|
1120
1086
|
return "";
|
1121
1087
|
});
|
1122
1088
|
continue;
|
1123
1089
|
}
|
1124
|
-
if (
|
1090
|
+
if (mr.test(i.stem)) {
|
1125
1091
|
t.minimumIntegerDigits = i.stem.length;
|
1126
1092
|
continue;
|
1127
1093
|
}
|
1128
|
-
if (
|
1094
|
+
if (Ht.test(i.stem)) {
|
1129
1095
|
if (i.options.length > 1)
|
1130
1096
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1131
|
-
i.stem.replace(
|
1132
|
-
return
|
1097
|
+
i.stem.replace(Ht, function(h, u, l, f, c, d) {
|
1098
|
+
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
1133
1099
|
});
|
1134
1100
|
var o = i.options[0];
|
1135
|
-
o === "w" ? t =
|
1101
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), Ct(o)));
|
1136
1102
|
continue;
|
1137
1103
|
}
|
1138
|
-
if (
|
1139
|
-
t =
|
1104
|
+
if (pr.test(i.stem)) {
|
1105
|
+
t = _(_({}, t), Ct(i.stem));
|
1140
1106
|
continue;
|
1141
1107
|
}
|
1142
|
-
var s =
|
1143
|
-
s && (t =
|
1144
|
-
var a =
|
1145
|
-
a && (t =
|
1108
|
+
var s = br(i.stem);
|
1109
|
+
s && (t = _(_({}, t), s));
|
1110
|
+
var a = Yn(i.stem);
|
1111
|
+
a && (t = _(_({}, t), a));
|
1146
1112
|
}
|
1147
1113
|
return t;
|
1148
1114
|
}
|
1149
|
-
var
|
1115
|
+
var de = {
|
1150
1116
|
"001": [
|
1151
1117
|
"H",
|
1152
1118
|
"h"
|
@@ -2561,15 +2527,15 @@ var me = {
|
|
2561
2527
|
"h"
|
2562
2528
|
]
|
2563
2529
|
};
|
2564
|
-
function
|
2530
|
+
function ei(e, t) {
|
2565
2531
|
for (var r = "", n = 0; n < e.length; n++) {
|
2566
2532
|
var i = e.charAt(n);
|
2567
2533
|
if (i === "j") {
|
2568
2534
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2569
2535
|
o++, n++;
|
2570
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1),
|
2536
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = ti(t);
|
2571
2537
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
2572
|
-
r +=
|
2538
|
+
r += h;
|
2573
2539
|
for (; s-- > 0; )
|
2574
2540
|
r = u + r;
|
2575
2541
|
} else
|
@@ -2577,7 +2543,7 @@ function ii(e, t) {
|
|
2577
2543
|
}
|
2578
2544
|
return r;
|
2579
2545
|
}
|
2580
|
-
function
|
2546
|
+
function ti(e) {
|
2581
2547
|
var t = e.hourCycle;
|
2582
2548
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
2583
2549
|
e.hourCycles && // @ts-ignore
|
@@ -2596,23 +2562,23 @@ function oi(e) {
|
|
2596
2562
|
}
|
2597
2563
|
var r = e.language, n;
|
2598
2564
|
r !== "root" && (n = e.maximize().region);
|
2599
|
-
var i =
|
2565
|
+
var i = de[n || ""] || de[r || ""] || de["".concat(r, "-001")] || de["001"];
|
2600
2566
|
return i[0];
|
2601
2567
|
}
|
2602
|
-
var
|
2568
|
+
var $e, ri = new RegExp("^".concat(dr.source, "*")), ni = new RegExp("".concat(dr.source, "*$"));
|
2603
2569
|
function y(e, t) {
|
2604
2570
|
return { start: e, end: t };
|
2605
2571
|
}
|
2606
|
-
var
|
2572
|
+
var ii = !!String.prototype.startsWith && "_a".startsWith("a", 1), oi = !!String.fromCodePoint, si = !!Object.fromEntries, ai = !!String.prototype.codePointAt, li = !!String.prototype.trimStart, ui = !!String.prototype.trimEnd, hi = !!Number.isSafeInteger, ci = hi ? Number.isSafeInteger : function(e) {
|
2607
2573
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
2608
2574
|
}, Ze = !0;
|
2609
2575
|
try {
|
2610
|
-
var
|
2611
|
-
Ze = ((
|
2576
|
+
var fi = vr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2577
|
+
Ze = (($e = fi.exec("a")) === null || $e === void 0 ? void 0 : $e[0]) === "a";
|
2612
2578
|
} catch (e) {
|
2613
2579
|
Ze = !1;
|
2614
2580
|
}
|
2615
|
-
var
|
2581
|
+
var Bt = ii ? (
|
2616
2582
|
// Native
|
2617
2583
|
function(t, r, n) {
|
2618
2584
|
return t.startsWith(r, n);
|
@@ -2622,7 +2588,7 @@ var At = li ? (
|
|
2622
2588
|
function(t, r, n) {
|
2623
2589
|
return t.slice(n, n + r.length) === r;
|
2624
2590
|
}
|
2625
|
-
), Qe =
|
2591
|
+
), Qe = oi ? String.fromCodePoint : (
|
2626
2592
|
// IE11
|
2627
2593
|
function() {
|
2628
2594
|
for (var t = [], r = 0; r < arguments.length; r++)
|
@@ -2634,9 +2600,9 @@ var At = li ? (
|
|
2634
2600
|
}
|
2635
2601
|
return n;
|
2636
2602
|
}
|
2637
|
-
),
|
2603
|
+
), At = (
|
2638
2604
|
// native
|
2639
|
-
|
2605
|
+
si ? Object.fromEntries : (
|
2640
2606
|
// Ponyfill
|
2641
2607
|
function(t) {
|
2642
2608
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
@@ -2646,7 +2612,7 @@ var At = li ? (
|
|
2646
2612
|
return r;
|
2647
2613
|
}
|
2648
2614
|
)
|
2649
|
-
),
|
2615
|
+
), gr = ai ? (
|
2650
2616
|
// Native
|
2651
2617
|
function(t, r) {
|
2652
2618
|
return t.codePointAt(r);
|
@@ -2660,7 +2626,7 @@ var At = li ? (
|
|
2660
2626
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
2661
2627
|
}
|
2662
2628
|
}
|
2663
|
-
),
|
2629
|
+
), di = li ? (
|
2664
2630
|
// Native
|
2665
2631
|
function(t) {
|
2666
2632
|
return t.trimStart();
|
@@ -2668,9 +2634,9 @@ var At = li ? (
|
|
2668
2634
|
) : (
|
2669
2635
|
// Ponyfill
|
2670
2636
|
function(t) {
|
2671
|
-
return t.replace(
|
2637
|
+
return t.replace(ri, "");
|
2672
2638
|
}
|
2673
|
-
),
|
2639
|
+
), pi = ui ? (
|
2674
2640
|
// Native
|
2675
2641
|
function(t) {
|
2676
2642
|
return t.trimEnd();
|
@@ -2678,32 +2644,32 @@ var At = li ? (
|
|
2678
2644
|
) : (
|
2679
2645
|
// Ponyfill
|
2680
2646
|
function(t) {
|
2681
|
-
return t.replace(
|
2647
|
+
return t.replace(ni, "");
|
2682
2648
|
}
|
2683
2649
|
);
|
2684
|
-
function
|
2650
|
+
function vr(e, t) {
|
2685
2651
|
return new RegExp(e, t);
|
2686
2652
|
}
|
2687
|
-
var
|
2653
|
+
var qe;
|
2688
2654
|
if (Ze) {
|
2689
|
-
var
|
2690
|
-
|
2655
|
+
var Ot = vr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2656
|
+
qe = function(t, r) {
|
2691
2657
|
var n;
|
2692
|
-
|
2693
|
-
var i =
|
2658
|
+
Ot.lastIndex = r;
|
2659
|
+
var i = Ot.exec(t);
|
2694
2660
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
2695
2661
|
};
|
2696
2662
|
} else
|
2697
|
-
|
2663
|
+
qe = function(t, r) {
|
2698
2664
|
for (var n = []; ; ) {
|
2699
|
-
var i =
|
2700
|
-
if (i === void 0 ||
|
2665
|
+
var i = gr(t, r);
|
2666
|
+
if (i === void 0 || yr(i) || vi(i))
|
2701
2667
|
break;
|
2702
2668
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
2703
2669
|
}
|
2704
2670
|
return Qe.apply(void 0, n);
|
2705
2671
|
};
|
2706
|
-
var
|
2672
|
+
var mi = (
|
2707
2673
|
/** @class */
|
2708
2674
|
function() {
|
2709
2675
|
function e(t, r) {
|
@@ -2734,7 +2700,7 @@ var yi = (
|
|
2734
2700
|
if (n)
|
2735
2701
|
break;
|
2736
2702
|
return this.error(v.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
2737
|
-
} else if (o === 60 && !this.ignoreTag &&
|
2703
|
+
} else if (o === 60 && !this.ignoreTag && Je(this.peek() || 0)) {
|
2738
2704
|
var s = this.parseTag(t, r);
|
2739
2705
|
if (s.err)
|
2740
2706
|
return s;
|
@@ -2767,10 +2733,10 @@ var yi = (
|
|
2767
2733
|
return o;
|
2768
2734
|
var s = o.val, a = this.clonePosition();
|
2769
2735
|
if (this.bumpIf("</")) {
|
2770
|
-
if (this.isEOF() || !
|
2736
|
+
if (this.isEOF() || !Je(this.char()))
|
2771
2737
|
return this.error(v.INVALID_TAG, y(a, this.clonePosition()));
|
2772
|
-
var
|
2773
|
-
return i !== u ? this.error(v.UNMATCHED_CLOSING_TAG, y(
|
2738
|
+
var h = this.clonePosition(), u = this.parseTagName();
|
2739
|
+
return i !== u ? this.error(v.UNMATCHED_CLOSING_TAG, y(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
2774
2740
|
val: {
|
2775
2741
|
type: w.tag,
|
2776
2742
|
value: i,
|
@@ -2785,7 +2751,7 @@ var yi = (
|
|
2785
2751
|
return this.error(v.INVALID_TAG, y(n, this.clonePosition()));
|
2786
2752
|
}, e.prototype.parseTagName = function() {
|
2787
2753
|
var t = this.offset();
|
2788
|
-
for (this.bump(); !this.isEOF() &&
|
2754
|
+
for (this.bump(); !this.isEOF() && gi(this.char()); )
|
2789
2755
|
this.bump();
|
2790
2756
|
return this.message.slice(t, this.offset());
|
2791
2757
|
}, e.prototype.parseLiteral = function(t, r) {
|
@@ -2807,14 +2773,14 @@ var yi = (
|
|
2807
2773
|
}
|
2808
2774
|
break;
|
2809
2775
|
}
|
2810
|
-
var
|
2776
|
+
var h = y(n, this.clonePosition());
|
2811
2777
|
return {
|
2812
|
-
val: { type: w.literal, value: i, location:
|
2778
|
+
val: { type: w.literal, value: i, location: h },
|
2813
2779
|
err: null
|
2814
2780
|
};
|
2815
2781
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
2816
2782
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
2817
|
-
!
|
2783
|
+
!bi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
2818
2784
|
}, e.prototype.tryParseQuote = function(t) {
|
2819
2785
|
if (this.isEOF() || this.char() !== 39)
|
2820
2786
|
return null;
|
@@ -2882,15 +2848,15 @@ var yi = (
|
|
2882
2848
|
return this.error(v.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
2883
2849
|
}
|
2884
2850
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
2885
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
2851
|
+
var t = this.clonePosition(), r = this.offset(), n = qe(this.message, r), i = r + n.length;
|
2886
2852
|
this.bumpTo(i);
|
2887
2853
|
var o = this.clonePosition(), s = y(t, o);
|
2888
2854
|
return { value: n, location: s };
|
2889
2855
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
2890
|
-
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value,
|
2856
|
+
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
2891
2857
|
switch (a) {
|
2892
2858
|
case "":
|
2893
|
-
return this.error(v.EXPECT_ARGUMENT_TYPE, y(s,
|
2859
|
+
return this.error(v.EXPECT_ARGUMENT_TYPE, y(s, h));
|
2894
2860
|
case "number":
|
2895
2861
|
case "date":
|
2896
2862
|
case "time": {
|
@@ -2898,40 +2864,40 @@ var yi = (
|
|
2898
2864
|
var u = null;
|
2899
2865
|
if (this.bumpIf(",")) {
|
2900
2866
|
this.bumpSpace();
|
2901
|
-
var
|
2902
|
-
if (
|
2903
|
-
return
|
2904
|
-
var
|
2905
|
-
if (
|
2867
|
+
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
2868
|
+
if (f.err)
|
2869
|
+
return f;
|
2870
|
+
var c = pi(f.val);
|
2871
|
+
if (c.length === 0)
|
2906
2872
|
return this.error(v.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
2907
|
-
var
|
2908
|
-
u = { style:
|
2873
|
+
var d = y(l, this.clonePosition());
|
2874
|
+
u = { style: c, styleLocation: d };
|
2909
2875
|
}
|
2910
|
-
var
|
2911
|
-
if (
|
2912
|
-
return
|
2913
|
-
var
|
2914
|
-
if (u &&
|
2915
|
-
var
|
2876
|
+
var p = this.tryParseArgumentClose(i);
|
2877
|
+
if (p.err)
|
2878
|
+
return p;
|
2879
|
+
var b = y(i, this.clonePosition());
|
2880
|
+
if (u && Bt(u == null ? void 0 : u.style, "::", 0)) {
|
2881
|
+
var g = di(u.style.slice(2));
|
2916
2882
|
if (a === "number") {
|
2917
|
-
var
|
2918
|
-
return
|
2919
|
-
val: { type: w.number, value: n, location:
|
2883
|
+
var f = this.parseNumberSkeletonFromString(g, u.styleLocation);
|
2884
|
+
return f.err ? f : {
|
2885
|
+
val: { type: w.number, value: n, location: b, style: f.val },
|
2920
2886
|
err: null
|
2921
2887
|
};
|
2922
2888
|
} else {
|
2923
|
-
if (
|
2924
|
-
return this.error(v.EXPECT_DATE_TIME_SKELETON,
|
2925
|
-
var
|
2926
|
-
this.locale && (
|
2927
|
-
var
|
2928
|
-
type:
|
2929
|
-
pattern:
|
2889
|
+
if (g.length === 0)
|
2890
|
+
return this.error(v.EXPECT_DATE_TIME_SKELETON, b);
|
2891
|
+
var E = g;
|
2892
|
+
this.locale && (E = ei(g, this.locale));
|
2893
|
+
var c = {
|
2894
|
+
type: K.dateTime,
|
2895
|
+
pattern: E,
|
2930
2896
|
location: u.styleLocation,
|
2931
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2897
|
+
parsedOptions: this.shouldParseSkeletons ? zn(E) : {}
|
2932
2898
|
}, S = a === "date" ? w.date : w.time;
|
2933
2899
|
return {
|
2934
|
-
val: { type: S, value: n, location:
|
2900
|
+
val: { type: S, value: n, location: b, style: c },
|
2935
2901
|
err: null
|
2936
2902
|
};
|
2937
2903
|
}
|
@@ -2940,7 +2906,7 @@ var yi = (
|
|
2940
2906
|
val: {
|
2941
2907
|
type: a === "number" ? w.number : a === "date" ? w.date : w.time,
|
2942
2908
|
value: n,
|
2943
|
-
location:
|
2909
|
+
location: b,
|
2944
2910
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
2945
2911
|
},
|
2946
2912
|
err: null
|
@@ -2951,47 +2917,47 @@ var yi = (
|
|
2951
2917
|
case "select": {
|
2952
2918
|
var T = this.clonePosition();
|
2953
2919
|
if (this.bumpSpace(), !this.bumpIf(","))
|
2954
|
-
return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, y(T,
|
2920
|
+
return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, y(T, _({}, T)));
|
2955
2921
|
this.bumpSpace();
|
2956
|
-
var H = this.parseIdentifierIfPossible(),
|
2922
|
+
var H = this.parseIdentifierIfPossible(), O = 0;
|
2957
2923
|
if (a !== "select" && H.value === "offset") {
|
2958
2924
|
if (!this.bumpIf(":"))
|
2959
2925
|
return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
|
2960
2926
|
this.bumpSpace();
|
2961
|
-
var
|
2962
|
-
if (
|
2963
|
-
return
|
2964
|
-
this.bumpSpace(), H = this.parseIdentifierIfPossible(),
|
2927
|
+
var f = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
2928
|
+
if (f.err)
|
2929
|
+
return f;
|
2930
|
+
this.bumpSpace(), H = this.parseIdentifierIfPossible(), O = f.val;
|
2965
2931
|
}
|
2966
|
-
var
|
2967
|
-
if (
|
2968
|
-
return
|
2969
|
-
var
|
2970
|
-
if (
|
2971
|
-
return
|
2972
|
-
var
|
2932
|
+
var k = this.tryParsePluralOrSelectOptions(t, a, r, H);
|
2933
|
+
if (k.err)
|
2934
|
+
return k;
|
2935
|
+
var p = this.tryParseArgumentClose(i);
|
2936
|
+
if (p.err)
|
2937
|
+
return p;
|
2938
|
+
var W = y(i, this.clonePosition());
|
2973
2939
|
return a === "select" ? {
|
2974
2940
|
val: {
|
2975
2941
|
type: w.select,
|
2976
2942
|
value: n,
|
2977
|
-
options:
|
2978
|
-
location:
|
2943
|
+
options: At(k.val),
|
2944
|
+
location: W
|
2979
2945
|
},
|
2980
2946
|
err: null
|
2981
2947
|
} : {
|
2982
2948
|
val: {
|
2983
2949
|
type: w.plural,
|
2984
2950
|
value: n,
|
2985
|
-
options:
|
2986
|
-
offset:
|
2951
|
+
options: At(k.val),
|
2952
|
+
offset: O,
|
2987
2953
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
2988
|
-
location:
|
2954
|
+
location: W
|
2989
2955
|
},
|
2990
2956
|
err: null
|
2991
2957
|
};
|
2992
2958
|
}
|
2993
2959
|
default:
|
2994
|
-
return this.error(v.INVALID_ARGUMENT_TYPE, y(s,
|
2960
|
+
return this.error(v.INVALID_ARGUMENT_TYPE, y(s, h));
|
2995
2961
|
}
|
2996
2962
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
2997
2963
|
return this.isEOF() || this.char() !== 125 ? this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
@@ -3033,50 +2999,50 @@ var yi = (
|
|
3033
2999
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
3034
3000
|
var n = [];
|
3035
3001
|
try {
|
3036
|
-
n =
|
3002
|
+
n = Qn(t);
|
3037
3003
|
} catch (i) {
|
3038
3004
|
return this.error(v.INVALID_NUMBER_SKELETON, r);
|
3039
3005
|
}
|
3040
3006
|
return {
|
3041
3007
|
val: {
|
3042
|
-
type:
|
3008
|
+
type: K.number,
|
3043
3009
|
tokens: n,
|
3044
3010
|
location: r,
|
3045
|
-
parsedOptions: this.shouldParseSkeletons ?
|
3011
|
+
parsedOptions: this.shouldParseSkeletons ? Kn(n) : {}
|
3046
3012
|
},
|
3047
3013
|
err: null
|
3048
3014
|
};
|
3049
3015
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
3050
|
-
for (var o, s = !1, a = [],
|
3016
|
+
for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
3051
3017
|
if (u.length === 0) {
|
3052
|
-
var
|
3018
|
+
var f = this.clonePosition();
|
3053
3019
|
if (r !== "select" && this.bumpIf("=")) {
|
3054
|
-
var
|
3055
|
-
if (
|
3056
|
-
return
|
3057
|
-
|
3020
|
+
var c = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_SELECTOR, v.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
3021
|
+
if (c.err)
|
3022
|
+
return c;
|
3023
|
+
l = y(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
3058
3024
|
} else
|
3059
3025
|
break;
|
3060
3026
|
}
|
3061
|
-
if (
|
3062
|
-
return this.error(r === "select" ? v.DUPLICATE_SELECT_ARGUMENT_SELECTOR : v.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,
|
3027
|
+
if (h.has(u))
|
3028
|
+
return this.error(r === "select" ? v.DUPLICATE_SELECT_ARGUMENT_SELECTOR : v.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
3063
3029
|
u === "other" && (s = !0), this.bumpSpace();
|
3064
|
-
var
|
3030
|
+
var d = this.clonePosition();
|
3065
3031
|
if (!this.bumpIf("{"))
|
3066
3032
|
return this.error(r === "select" ? v.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : v.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
|
3067
|
-
var
|
3068
|
-
if (
|
3069
|
-
return
|
3070
|
-
var
|
3071
|
-
if (
|
3072
|
-
return
|
3033
|
+
var p = this.parseMessage(t + 1, r, n);
|
3034
|
+
if (p.err)
|
3035
|
+
return p;
|
3036
|
+
var b = this.tryParseArgumentClose(d);
|
3037
|
+
if (b.err)
|
3038
|
+
return b;
|
3073
3039
|
a.push([
|
3074
3040
|
u,
|
3075
3041
|
{
|
3076
|
-
value:
|
3077
|
-
location: y(
|
3042
|
+
value: p.val,
|
3043
|
+
location: y(d, this.clonePosition())
|
3078
3044
|
}
|
3079
|
-
]),
|
3045
|
+
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
3080
3046
|
}
|
3081
3047
|
return a.length === 0 ? this.error(r === "select" ? v.EXPECT_SELECT_ARGUMENT_SELECTOR : v.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(v.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
3082
3048
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
@@ -3089,8 +3055,8 @@ var yi = (
|
|
3089
3055
|
else
|
3090
3056
|
break;
|
3091
3057
|
}
|
3092
|
-
var
|
3093
|
-
return o ? (s *= n,
|
3058
|
+
var h = y(i, this.clonePosition());
|
3059
|
+
return o ? (s *= n, ci(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
3094
3060
|
}, e.prototype.offset = function() {
|
3095
3061
|
return this.position.offset;
|
3096
3062
|
}, e.prototype.isEOF = function() {
|
@@ -3105,7 +3071,7 @@ var yi = (
|
|
3105
3071
|
var t = this.position.offset;
|
3106
3072
|
if (t >= this.message.length)
|
3107
3073
|
throw Error("out of bound");
|
3108
|
-
var r =
|
3074
|
+
var r = gr(this.message, t);
|
3109
3075
|
if (r === void 0)
|
3110
3076
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
3111
3077
|
return r;
|
@@ -3124,7 +3090,7 @@ var yi = (
|
|
3124
3090
|
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);
|
3125
3091
|
}
|
3126
3092
|
}, e.prototype.bumpIf = function(t) {
|
3127
|
-
if (
|
3093
|
+
if (Bt(this.message, t, this.offset())) {
|
3128
3094
|
for (var r = 0; r < t.length; r++)
|
3129
3095
|
this.bump();
|
3130
3096
|
return !0;
|
@@ -3146,7 +3112,7 @@ var yi = (
|
|
3146
3112
|
break;
|
3147
3113
|
}
|
3148
3114
|
}, e.prototype.bumpSpace = function() {
|
3149
|
-
for (; !this.isEOF() &&
|
3115
|
+
for (; !this.isEOF() && yr(this.char()); )
|
3150
3116
|
this.bump();
|
3151
3117
|
}, e.prototype.peek = function() {
|
3152
3118
|
if (this.isEOF())
|
@@ -3156,44 +3122,44 @@ var yi = (
|
|
3156
3122
|
}, e;
|
3157
3123
|
}()
|
3158
3124
|
);
|
3159
|
-
function
|
3125
|
+
function Je(e) {
|
3160
3126
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3161
3127
|
}
|
3162
|
-
function
|
3163
|
-
return
|
3128
|
+
function bi(e) {
|
3129
|
+
return Je(e) || e === 47;
|
3164
3130
|
}
|
3165
|
-
function
|
3131
|
+
function gi(e) {
|
3166
3132
|
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;
|
3167
3133
|
}
|
3168
|
-
function
|
3134
|
+
function yr(e) {
|
3169
3135
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3170
3136
|
}
|
3171
|
-
function
|
3137
|
+
function vi(e) {
|
3172
3138
|
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;
|
3173
3139
|
}
|
3174
3140
|
function Ye(e) {
|
3175
3141
|
e.forEach(function(t) {
|
3176
|
-
if (delete t.location,
|
3142
|
+
if (delete t.location, ur(t) || hr(t))
|
3177
3143
|
for (var r in t.options)
|
3178
3144
|
delete t.options[r].location, Ye(t.options[r].value);
|
3179
3145
|
else
|
3180
|
-
|
3146
|
+
sr(t) && fr(t.style) || (ar(t) || lr(t)) && ze(t.style) ? delete t.style.location : cr(t) && Ye(t.children);
|
3181
3147
|
});
|
3182
3148
|
}
|
3183
|
-
function
|
3184
|
-
t === void 0 && (t = {}), t =
|
3185
|
-
var r = new
|
3149
|
+
function yi(e, t) {
|
3150
|
+
t === void 0 && (t = {}), t = _({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3151
|
+
var r = new mi(e, t).parse();
|
3186
3152
|
if (r.err) {
|
3187
3153
|
var n = SyntaxError(v[r.err.kind]);
|
3188
3154
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
3189
3155
|
}
|
3190
3156
|
return t != null && t.captureLocation || Ye(r.val), r.val;
|
3191
3157
|
}
|
3192
|
-
var
|
3158
|
+
var ee;
|
3193
3159
|
(function(e) {
|
3194
3160
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
3195
|
-
})(
|
3196
|
-
var
|
3161
|
+
})(ee || (ee = {}));
|
3162
|
+
var Ce = (
|
3197
3163
|
/** @class */
|
3198
3164
|
function(e) {
|
3199
3165
|
F(t, e);
|
@@ -3210,150 +3176,150 @@ var Be = (
|
|
3210
3176
|
function(e) {
|
3211
3177
|
F(t, e);
|
3212
3178
|
function t(r, n, i, o) {
|
3213
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
3179
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ee.INVALID_VALUE, o) || this;
|
3214
3180
|
}
|
3215
3181
|
return t;
|
3216
|
-
}(
|
3217
|
-
),
|
3182
|
+
}(Ce)
|
3183
|
+
), _i = (
|
3218
3184
|
/** @class */
|
3219
3185
|
function(e) {
|
3220
3186
|
F(t, e);
|
3221
3187
|
function t(r, n, i) {
|
3222
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
3188
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ee.INVALID_VALUE, i) || this;
|
3223
3189
|
}
|
3224
3190
|
return t;
|
3225
|
-
}(
|
3226
|
-
),
|
3191
|
+
}(Ce)
|
3192
|
+
), Ei = (
|
3227
3193
|
/** @class */
|
3228
3194
|
function(e) {
|
3229
3195
|
F(t, e);
|
3230
3196
|
function t(r, n) {
|
3231
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
3197
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ee.MISSING_VALUE, n) || this;
|
3232
3198
|
}
|
3233
3199
|
return t;
|
3234
|
-
}(
|
3235
|
-
),
|
3200
|
+
}(Ce)
|
3201
|
+
), A;
|
3236
3202
|
(function(e) {
|
3237
3203
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3238
|
-
})(
|
3239
|
-
function
|
3204
|
+
})(A || (A = {}));
|
3205
|
+
function xi(e) {
|
3240
3206
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3241
3207
|
var n = t[t.length - 1];
|
3242
|
-
return !n || n.type !==
|
3208
|
+
return !n || n.type !== A.literal || r.type !== A.literal ? t.push(r) : n.value += r.value, t;
|
3243
3209
|
}, []);
|
3244
3210
|
}
|
3245
|
-
function
|
3211
|
+
function Si(e) {
|
3246
3212
|
return typeof e == "function";
|
3247
3213
|
}
|
3248
|
-
function
|
3249
|
-
if (e.length === 1 &&
|
3214
|
+
function be(e, t, r, n, i, o, s) {
|
3215
|
+
if (e.length === 1 && Tt(e[0]))
|
3250
3216
|
return [
|
3251
3217
|
{
|
3252
|
-
type:
|
3218
|
+
type: A.literal,
|
3253
3219
|
value: e[0].value
|
3254
3220
|
}
|
3255
3221
|
];
|
3256
|
-
for (var a = [],
|
3257
|
-
var
|
3258
|
-
if (
|
3222
|
+
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
3223
|
+
var l = u[h];
|
3224
|
+
if (Tt(l)) {
|
3259
3225
|
a.push({
|
3260
|
-
type:
|
3261
|
-
value:
|
3226
|
+
type: A.literal,
|
3227
|
+
value: l.value
|
3262
3228
|
});
|
3263
3229
|
continue;
|
3264
3230
|
}
|
3265
|
-
if (
|
3231
|
+
if (Xn(l)) {
|
3266
3232
|
typeof o == "number" && a.push({
|
3267
|
-
type:
|
3233
|
+
type: A.literal,
|
3268
3234
|
value: r.getNumberFormat(t).format(o)
|
3269
3235
|
});
|
3270
3236
|
continue;
|
3271
3237
|
}
|
3272
|
-
var
|
3273
|
-
if (!(i &&
|
3274
|
-
throw new
|
3275
|
-
var
|
3276
|
-
if (
|
3277
|
-
(!
|
3278
|
-
type: typeof
|
3279
|
-
value:
|
3238
|
+
var f = l.value;
|
3239
|
+
if (!(i && f in i))
|
3240
|
+
throw new Ei(f, s);
|
3241
|
+
var c = i[f];
|
3242
|
+
if (Vn(l)) {
|
3243
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
3244
|
+
type: typeof c == "string" ? A.literal : A.object,
|
3245
|
+
value: c
|
3280
3246
|
});
|
3281
3247
|
continue;
|
3282
3248
|
}
|
3283
|
-
if (
|
3284
|
-
var
|
3249
|
+
if (ar(l)) {
|
3250
|
+
var d = typeof l.style == "string" ? n.date[l.style] : ze(l.style) ? l.style.parsedOptions : void 0;
|
3285
3251
|
a.push({
|
3286
|
-
type:
|
3287
|
-
value: r.getDateTimeFormat(t,
|
3252
|
+
type: A.literal,
|
3253
|
+
value: r.getDateTimeFormat(t, d).format(c)
|
3288
3254
|
});
|
3289
3255
|
continue;
|
3290
3256
|
}
|
3291
|
-
if (
|
3292
|
-
var
|
3257
|
+
if (lr(l)) {
|
3258
|
+
var d = typeof l.style == "string" ? n.time[l.style] : ze(l.style) ? l.style.parsedOptions : n.time.medium;
|
3293
3259
|
a.push({
|
3294
|
-
type:
|
3295
|
-
value: r.getDateTimeFormat(t,
|
3260
|
+
type: A.literal,
|
3261
|
+
value: r.getDateTimeFormat(t, d).format(c)
|
3296
3262
|
});
|
3297
3263
|
continue;
|
3298
3264
|
}
|
3299
|
-
if (
|
3300
|
-
var
|
3301
|
-
|
3302
|
-
type:
|
3303
|
-
value: r.getNumberFormat(t,
|
3265
|
+
if (sr(l)) {
|
3266
|
+
var d = typeof l.style == "string" ? n.number[l.style] : fr(l.style) ? l.style.parsedOptions : void 0;
|
3267
|
+
d && d.scale && (c = c * (d.scale || 1)), a.push({
|
3268
|
+
type: A.literal,
|
3269
|
+
value: r.getNumberFormat(t, d).format(c)
|
3304
3270
|
});
|
3305
3271
|
continue;
|
3306
3272
|
}
|
3307
|
-
if (
|
3308
|
-
var
|
3309
|
-
if (!
|
3310
|
-
throw new
|
3311
|
-
var
|
3312
|
-
return
|
3273
|
+
if (cr(l)) {
|
3274
|
+
var p = l.children, b = l.value, g = i[b];
|
3275
|
+
if (!Si(g))
|
3276
|
+
throw new _i(b, "function", s);
|
3277
|
+
var E = be(p, t, r, n, i, o), S = g(E.map(function(O) {
|
3278
|
+
return O.value;
|
3313
3279
|
}));
|
3314
|
-
Array.isArray(S) || (S = [S]), a.push.apply(a, S.map(function(
|
3280
|
+
Array.isArray(S) || (S = [S]), a.push.apply(a, S.map(function(O) {
|
3315
3281
|
return {
|
3316
|
-
type: typeof
|
3317
|
-
value:
|
3282
|
+
type: typeof O == "string" ? A.literal : A.object,
|
3283
|
+
value: O
|
3318
3284
|
};
|
3319
3285
|
}));
|
3320
3286
|
}
|
3321
|
-
if (
|
3322
|
-
var T =
|
3287
|
+
if (ur(l)) {
|
3288
|
+
var T = l.options[c] || l.options.other;
|
3323
3289
|
if (!T)
|
3324
|
-
throw new Lt(
|
3325
|
-
a.push.apply(a,
|
3290
|
+
throw new Lt(l.value, c, Object.keys(l.options), s);
|
3291
|
+
a.push.apply(a, be(T.value, t, r, n, i));
|
3326
3292
|
continue;
|
3327
3293
|
}
|
3328
|
-
if (
|
3329
|
-
var T =
|
3294
|
+
if (hr(l)) {
|
3295
|
+
var T = l.options["=".concat(c)];
|
3330
3296
|
if (!T) {
|
3331
3297
|
if (!Intl.PluralRules)
|
3332
|
-
throw new
|
3298
|
+
throw new Ce(`Intl.PluralRules is not available in this environment.
|
3333
3299
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3334
|
-
`,
|
3335
|
-
var H = r.getPluralRules(t, { type:
|
3336
|
-
T =
|
3300
|
+
`, ee.MISSING_INTL_API, s);
|
3301
|
+
var H = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
3302
|
+
T = l.options[H] || l.options.other;
|
3337
3303
|
}
|
3338
3304
|
if (!T)
|
3339
|
-
throw new Lt(
|
3340
|
-
a.push.apply(a,
|
3305
|
+
throw new Lt(l.value, c, Object.keys(l.options), s);
|
3306
|
+
a.push.apply(a, be(T.value, t, r, n, i, c - (l.offset || 0)));
|
3341
3307
|
continue;
|
3342
3308
|
}
|
3343
3309
|
}
|
3344
|
-
return
|
3310
|
+
return xi(a);
|
3345
3311
|
}
|
3346
|
-
function
|
3347
|
-
return t ?
|
3348
|
-
return r[n] =
|
3312
|
+
function wi(e, t) {
|
3313
|
+
return t ? _(_(_({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3314
|
+
return r[n] = _(_({}, e[n]), t[n] || {}), r;
|
3349
3315
|
}, {})) : e;
|
3350
3316
|
}
|
3351
|
-
function
|
3317
|
+
function Ti(e, t) {
|
3352
3318
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3353
|
-
return r[n] =
|
3354
|
-
},
|
3319
|
+
return r[n] = wi(e[n], t[n]), r;
|
3320
|
+
}, _({}, e)) : e;
|
3355
3321
|
}
|
3356
|
-
function
|
3322
|
+
function Ge(e) {
|
3357
3323
|
return {
|
3358
3324
|
create: function() {
|
3359
3325
|
return {
|
@@ -3367,39 +3333,39 @@ function Ue(e) {
|
|
3367
3333
|
}
|
3368
3334
|
};
|
3369
3335
|
}
|
3370
|
-
function
|
3336
|
+
function Hi(e) {
|
3371
3337
|
return e === void 0 && (e = {
|
3372
3338
|
number: {},
|
3373
3339
|
dateTime: {},
|
3374
3340
|
pluralRules: {}
|
3375
3341
|
}), {
|
3376
|
-
getNumberFormat:
|
3342
|
+
getNumberFormat: Me(function() {
|
3377
3343
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3378
3344
|
r[n] = arguments[n];
|
3379
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
3345
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, J([void 0], r, !1)))();
|
3380
3346
|
}, {
|
3381
|
-
cache:
|
3382
|
-
strategy:
|
3347
|
+
cache: Ge(e.number),
|
3348
|
+
strategy: Re.variadic
|
3383
3349
|
}),
|
3384
|
-
getDateTimeFormat:
|
3350
|
+
getDateTimeFormat: Me(function() {
|
3385
3351
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3386
3352
|
r[n] = arguments[n];
|
3387
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
3353
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, J([void 0], r, !1)))();
|
3388
3354
|
}, {
|
3389
|
-
cache:
|
3390
|
-
strategy:
|
3355
|
+
cache: Ge(e.dateTime),
|
3356
|
+
strategy: Re.variadic
|
3391
3357
|
}),
|
3392
|
-
getPluralRules:
|
3358
|
+
getPluralRules: Me(function() {
|
3393
3359
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3394
3360
|
r[n] = arguments[n];
|
3395
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
3361
|
+
return new ((t = Intl.PluralRules).bind.apply(t, J([void 0], r, !1)))();
|
3396
3362
|
}, {
|
3397
|
-
cache:
|
3398
|
-
strategy:
|
3363
|
+
cache: Ge(e.pluralRules),
|
3364
|
+
strategy: Re.variadic
|
3399
3365
|
})
|
3400
3366
|
};
|
3401
3367
|
}
|
3402
|
-
var
|
3368
|
+
var Ci = (
|
3403
3369
|
/** @class */
|
3404
3370
|
function() {
|
3405
3371
|
function e(t, r, n, i) {
|
@@ -3409,20 +3375,20 @@ var Oi = (
|
|
3409
3375
|
number: {},
|
3410
3376
|
dateTime: {},
|
3411
3377
|
pluralRules: {}
|
3412
|
-
}, this.format = function(
|
3413
|
-
var u = o.formatToParts(
|
3378
|
+
}, this.format = function(h) {
|
3379
|
+
var u = o.formatToParts(h);
|
3414
3380
|
if (u.length === 1)
|
3415
3381
|
return u[0].value;
|
3416
|
-
var
|
3417
|
-
return !
|
3382
|
+
var l = u.reduce(function(f, c) {
|
3383
|
+
return !f.length || c.type !== A.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
3418
3384
|
}, []);
|
3419
|
-
return
|
3420
|
-
}, this.formatToParts = function(
|
3421
|
-
return
|
3385
|
+
return l.length <= 1 ? l[0] || "" : l;
|
3386
|
+
}, this.formatToParts = function(h) {
|
3387
|
+
return be(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
3422
3388
|
}, this.resolvedOptions = function() {
|
3423
|
-
var
|
3389
|
+
var h;
|
3424
3390
|
return {
|
3425
|
-
locale: ((
|
3391
|
+
locale: ((h = o.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
3426
3392
|
};
|
3427
3393
|
}, this.getAst = function() {
|
3428
3394
|
return o.ast;
|
@@ -3431,13 +3397,13 @@ var Oi = (
|
|
3431
3397
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3432
3398
|
var s = i || {};
|
3433
3399
|
s.formatters;
|
3434
|
-
var a =
|
3435
|
-
this.ast = e.__parse(t,
|
3400
|
+
var a = $n(s, ["formatters"]);
|
3401
|
+
this.ast = e.__parse(t, _(_({}, a), { locale: this.resolvedLocale }));
|
3436
3402
|
} else
|
3437
3403
|
this.ast = t;
|
3438
3404
|
if (!Array.isArray(this.ast))
|
3439
3405
|
throw new TypeError("A message must be provided as a String or AST.");
|
3440
|
-
this.formats =
|
3406
|
+
this.formats = Ti(e.formats, n), this.formatters = i && i.formatters || Hi(this.formatterCache);
|
3441
3407
|
}
|
3442
3408
|
return Object.defineProperty(e, "defaultLocale", {
|
3443
3409
|
get: function() {
|
@@ -3450,7 +3416,7 @@ var Oi = (
|
|
3450
3416
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3451
3417
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3452
3418
|
}
|
3453
|
-
}, e.__parse =
|
3419
|
+
}, e.__parse = yi, e.formats = {
|
3454
3420
|
number: {
|
3455
3421
|
integer: {
|
3456
3422
|
maximumFractionDigits: 0
|
@@ -3511,7 +3477,7 @@ var Oi = (
|
|
3511
3477
|
}, e;
|
3512
3478
|
}()
|
3513
3479
|
);
|
3514
|
-
function
|
3480
|
+
function Pi(e, t) {
|
3515
3481
|
if (t == null)
|
3516
3482
|
return;
|
3517
3483
|
if (t in e)
|
@@ -3532,92 +3498,92 @@ function Ii(e, t) {
|
|
3532
3498
|
n = void 0;
|
3533
3499
|
return n;
|
3534
3500
|
}
|
3535
|
-
const j = {},
|
3501
|
+
const j = {}, Bi = (e, t, r) => r && (t in j || (j[t] = {}), e in j[t] || (j[t][e] = r), r), _r = (e, t) => {
|
3536
3502
|
if (t == null)
|
3537
3503
|
return;
|
3538
3504
|
if (t in j && e in j[t])
|
3539
3505
|
return j[t][e];
|
3540
|
-
const r =
|
3506
|
+
const r = Pe(t);
|
3541
3507
|
for (let n = 0; n < r.length; n++) {
|
3542
|
-
const i = r[n], o =
|
3508
|
+
const i = r[n], o = Oi(i, e);
|
3543
3509
|
if (o)
|
3544
|
-
return
|
3510
|
+
return Bi(e, t, o);
|
3545
3511
|
}
|
3546
3512
|
};
|
3547
3513
|
let at;
|
3548
|
-
const ce =
|
3549
|
-
function
|
3514
|
+
const ce = He({});
|
3515
|
+
function Ai(e) {
|
3550
3516
|
return at[e] || null;
|
3551
3517
|
}
|
3552
|
-
function
|
3518
|
+
function Er(e) {
|
3553
3519
|
return e in at;
|
3554
3520
|
}
|
3555
|
-
function
|
3556
|
-
if (!
|
3521
|
+
function Oi(e, t) {
|
3522
|
+
if (!Er(e))
|
3557
3523
|
return null;
|
3558
|
-
const r =
|
3559
|
-
return
|
3524
|
+
const r = Ai(e);
|
3525
|
+
return Pi(r, t);
|
3560
3526
|
}
|
3561
|
-
function
|
3527
|
+
function Li(e) {
|
3562
3528
|
if (e == null)
|
3563
3529
|
return;
|
3564
|
-
const t =
|
3530
|
+
const t = Pe(e);
|
3565
3531
|
for (let r = 0; r < t.length; r++) {
|
3566
3532
|
const n = t[r];
|
3567
|
-
if (
|
3533
|
+
if (Er(n))
|
3568
3534
|
return n;
|
3569
3535
|
}
|
3570
3536
|
}
|
3571
|
-
function
|
3572
|
-
delete j[e], ce.update((r) => (r[e] =
|
3537
|
+
function xr(e, ...t) {
|
3538
|
+
delete j[e], ce.update((r) => (r[e] = Rn.all([r[e] || {}, ...t]), r));
|
3573
3539
|
}
|
3574
|
-
|
3540
|
+
ne(
|
3575
3541
|
[ce],
|
3576
3542
|
([e]) => Object.keys(e)
|
3577
3543
|
);
|
3578
3544
|
ce.subscribe((e) => at = e);
|
3579
|
-
const
|
3580
|
-
function
|
3581
|
-
|
3545
|
+
const ge = {};
|
3546
|
+
function Ii(e, t) {
|
3547
|
+
ge[e].delete(t), ge[e].size === 0 && delete ge[e];
|
3582
3548
|
}
|
3583
|
-
function
|
3584
|
-
return
|
3549
|
+
function Sr(e) {
|
3550
|
+
return ge[e];
|
3585
3551
|
}
|
3586
|
-
function
|
3587
|
-
return
|
3588
|
-
const r =
|
3552
|
+
function Ni(e) {
|
3553
|
+
return Pe(e).map((t) => {
|
3554
|
+
const r = Sr(t);
|
3589
3555
|
return [t, r ? [...r] : []];
|
3590
3556
|
}).filter(([, t]) => t.length > 0);
|
3591
3557
|
}
|
3592
3558
|
function Ke(e) {
|
3593
|
-
return e == null ? !1 :
|
3559
|
+
return e == null ? !1 : Pe(e).some(
|
3594
3560
|
(t) => {
|
3595
3561
|
var r;
|
3596
|
-
return (r =
|
3562
|
+
return (r = Sr(t)) == null ? void 0 : r.size;
|
3597
3563
|
}
|
3598
3564
|
);
|
3599
3565
|
}
|
3600
|
-
function
|
3566
|
+
function Mi(e, t) {
|
3601
3567
|
return Promise.all(
|
3602
|
-
t.map((n) => (
|
3603
|
-
).then((n) =>
|
3568
|
+
t.map((n) => (Ii(e, n), n().then((i) => i.default || i)))
|
3569
|
+
).then((n) => xr(e, ...n));
|
3604
3570
|
}
|
3605
3571
|
const se = {};
|
3606
|
-
function
|
3572
|
+
function wr(e) {
|
3607
3573
|
if (!Ke(e))
|
3608
3574
|
return e in se ? se[e] : Promise.resolve();
|
3609
|
-
const t =
|
3575
|
+
const t = Ni(e);
|
3610
3576
|
return se[e] = Promise.all(
|
3611
3577
|
t.map(
|
3612
|
-
([r, n]) =>
|
3578
|
+
([r, n]) => Mi(r, n)
|
3613
3579
|
)
|
3614
3580
|
).then(() => {
|
3615
3581
|
if (Ke(e))
|
3616
|
-
return
|
3582
|
+
return wr(e);
|
3617
3583
|
delete se[e];
|
3618
3584
|
}), se[e];
|
3619
3585
|
}
|
3620
|
-
const
|
3586
|
+
const Ri = {
|
3621
3587
|
number: {
|
3622
3588
|
scientific: { notation: "scientific" },
|
3623
3589
|
engineering: { notation: "engineering" },
|
@@ -3646,178 +3612,178 @@ const Di = {
|
|
3646
3612
|
timeZoneName: "short"
|
3647
3613
|
}
|
3648
3614
|
}
|
3649
|
-
},
|
3615
|
+
}, $i = {
|
3650
3616
|
fallbackLocale: null,
|
3651
3617
|
loadingDelay: 200,
|
3652
|
-
formats:
|
3618
|
+
formats: Ri,
|
3653
3619
|
warnOnMissingMessages: !0,
|
3654
3620
|
handleMissingMessage: void 0,
|
3655
3621
|
ignoreTag: !0
|
3656
|
-
},
|
3657
|
-
function
|
3658
|
-
return
|
3622
|
+
}, Gi = $i;
|
3623
|
+
function te() {
|
3624
|
+
return Gi;
|
3659
3625
|
}
|
3660
|
-
const
|
3661
|
-
var
|
3626
|
+
const Ue = He(!1);
|
3627
|
+
var Ui = Object.defineProperty, Di = Object.defineProperties, Fi = Object.getOwnPropertyDescriptors, It = Object.getOwnPropertySymbols, ji = Object.prototype.hasOwnProperty, ki = Object.prototype.propertyIsEnumerable, Nt = (e, t, r) => t in e ? Ui(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Vi = (e, t) => {
|
3662
3628
|
for (var r in t || (t = {}))
|
3663
|
-
|
3664
|
-
if (
|
3665
|
-
for (var r of
|
3666
|
-
|
3629
|
+
ji.call(t, r) && Nt(e, r, t[r]);
|
3630
|
+
if (It)
|
3631
|
+
for (var r of It(t))
|
3632
|
+
ki.call(t, r) && Nt(e, r, t[r]);
|
3667
3633
|
return e;
|
3668
|
-
},
|
3634
|
+
}, Xi = (e, t) => Di(e, Fi(t));
|
3669
3635
|
let et;
|
3670
|
-
const
|
3671
|
-
function
|
3636
|
+
const Se = He(null);
|
3637
|
+
function Mt(e) {
|
3672
3638
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
3673
3639
|
}
|
3674
|
-
function
|
3675
|
-
const r =
|
3676
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
3640
|
+
function Pe(e, t = te().fallbackLocale) {
|
3641
|
+
const r = Mt(e);
|
3642
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Mt(t)])] : r;
|
3677
3643
|
}
|
3678
|
-
function
|
3644
|
+
function X() {
|
3679
3645
|
return et != null ? et : void 0;
|
3680
3646
|
}
|
3681
|
-
|
3647
|
+
Se.subscribe((e) => {
|
3682
3648
|
et = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
3683
3649
|
});
|
3684
|
-
const
|
3685
|
-
if (e &&
|
3686
|
-
const { loadingDelay: t } =
|
3650
|
+
const Wi = (e) => {
|
3651
|
+
if (e && Li(e) && Ke(e)) {
|
3652
|
+
const { loadingDelay: t } = te();
|
3687
3653
|
let r;
|
3688
|
-
return typeof window != "undefined" &&
|
3689
|
-
() =>
|
3654
|
+
return typeof window != "undefined" && X() != null && t ? r = window.setTimeout(
|
3655
|
+
() => Ue.set(!0),
|
3690
3656
|
t
|
3691
|
-
) :
|
3692
|
-
|
3657
|
+
) : Ue.set(!0), wr(e).then(() => {
|
3658
|
+
Se.set(e);
|
3693
3659
|
}).finally(() => {
|
3694
|
-
clearTimeout(r),
|
3660
|
+
clearTimeout(r), Ue.set(!1);
|
3695
3661
|
});
|
3696
3662
|
}
|
3697
|
-
return
|
3698
|
-
},
|
3699
|
-
set:
|
3700
|
-
}),
|
3663
|
+
return Se.set(e);
|
3664
|
+
}, ie = Xi(Vi({}, Se), {
|
3665
|
+
set: Wi
|
3666
|
+
}), Be = (e) => {
|
3701
3667
|
const t = /* @__PURE__ */ Object.create(null);
|
3702
3668
|
return (n) => {
|
3703
3669
|
const i = JSON.stringify(n);
|
3704
3670
|
return i in t ? t[i] : t[i] = e(n);
|
3705
3671
|
};
|
3706
3672
|
};
|
3707
|
-
var
|
3673
|
+
var zi = Object.defineProperty, we = Object.getOwnPropertySymbols, Tr = Object.prototype.hasOwnProperty, Hr = Object.prototype.propertyIsEnumerable, Rt = (e, t, r) => t in e ? zi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, lt = (e, t) => {
|
3708
3674
|
for (var r in t || (t = {}))
|
3709
|
-
|
3710
|
-
if (
|
3711
|
-
for (var r of
|
3712
|
-
|
3675
|
+
Tr.call(t, r) && Rt(e, r, t[r]);
|
3676
|
+
if (we)
|
3677
|
+
for (var r of we(t))
|
3678
|
+
Hr.call(t, r) && Rt(e, r, t[r]);
|
3713
3679
|
return e;
|
3714
|
-
},
|
3680
|
+
}, oe = (e, t) => {
|
3715
3681
|
var r = {};
|
3716
3682
|
for (var n in e)
|
3717
|
-
|
3718
|
-
if (e != null &&
|
3719
|
-
for (var n of
|
3720
|
-
t.indexOf(n) < 0 &&
|
3683
|
+
Tr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
3684
|
+
if (e != null && we)
|
3685
|
+
for (var n of we(e))
|
3686
|
+
t.indexOf(n) < 0 && Hr.call(e, n) && (r[n] = e[n]);
|
3721
3687
|
return r;
|
3722
3688
|
};
|
3723
3689
|
const he = (e, t) => {
|
3724
|
-
const { formats: r } =
|
3690
|
+
const { formats: r } = te();
|
3725
3691
|
if (e in r && t in r[e])
|
3726
3692
|
return r[e][t];
|
3727
3693
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
3728
|
-
},
|
3694
|
+
}, Zi = Be(
|
3729
3695
|
(e) => {
|
3730
|
-
var t = e, { locale: r, format: n } = t, i =
|
3696
|
+
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
3731
3697
|
if (r == null)
|
3732
3698
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
3733
3699
|
return n && (i = he("number", n)), new Intl.NumberFormat(r, i);
|
3734
3700
|
}
|
3735
|
-
),
|
3701
|
+
), Qi = Be(
|
3736
3702
|
(e) => {
|
3737
|
-
var t = e, { locale: r, format: n } = t, i =
|
3703
|
+
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
3738
3704
|
if (r == null)
|
3739
3705
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
3740
3706
|
return n ? i = he("date", n) : Object.keys(i).length === 0 && (i = he("date", "short")), new Intl.DateTimeFormat(r, i);
|
3741
3707
|
}
|
3742
|
-
),
|
3708
|
+
), qi = Be(
|
3743
3709
|
(e) => {
|
3744
|
-
var t = e, { locale: r, format: n } = t, i =
|
3710
|
+
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
3745
3711
|
if (r == null)
|
3746
3712
|
throw new Error(
|
3747
3713
|
'[svelte-i18n] A "locale" must be set to format time values'
|
3748
3714
|
);
|
3749
3715
|
return n ? i = he("time", n) : Object.keys(i).length === 0 && (i = he("time", "short")), new Intl.DateTimeFormat(r, i);
|
3750
3716
|
}
|
3751
|
-
),
|
3717
|
+
), Ji = (e = {}) => {
|
3752
3718
|
var t = e, {
|
3753
|
-
locale: r =
|
3754
|
-
} = t, n =
|
3719
|
+
locale: r = X()
|
3720
|
+
} = t, n = oe(t, [
|
3755
3721
|
"locale"
|
3756
3722
|
]);
|
3757
|
-
return
|
3758
|
-
},
|
3723
|
+
return Zi(lt({ locale: r }, n));
|
3724
|
+
}, Yi = (e = {}) => {
|
3759
3725
|
var t = e, {
|
3760
|
-
locale: r =
|
3761
|
-
} = t, n =
|
3726
|
+
locale: r = X()
|
3727
|
+
} = t, n = oe(t, [
|
3762
3728
|
"locale"
|
3763
3729
|
]);
|
3764
|
-
return
|
3765
|
-
},
|
3730
|
+
return Qi(lt({ locale: r }, n));
|
3731
|
+
}, Ki = (e = {}) => {
|
3766
3732
|
var t = e, {
|
3767
|
-
locale: r =
|
3768
|
-
} = t, n =
|
3733
|
+
locale: r = X()
|
3734
|
+
} = t, n = oe(t, [
|
3769
3735
|
"locale"
|
3770
3736
|
]);
|
3771
|
-
return
|
3772
|
-
},
|
3737
|
+
return qi(lt({ locale: r }, n));
|
3738
|
+
}, eo = Be(
|
3773
3739
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
3774
|
-
(e, t =
|
3775
|
-
ignoreTag:
|
3740
|
+
(e, t = X()) => new Ci(e, t, te().formats, {
|
3741
|
+
ignoreTag: te().ignoreTag
|
3776
3742
|
})
|
3777
|
-
),
|
3743
|
+
), to = (e, t = {}) => {
|
3778
3744
|
var r, n, i, o;
|
3779
3745
|
let s = t;
|
3780
3746
|
typeof e == "object" && (s = e, e = s.id);
|
3781
3747
|
const {
|
3782
3748
|
values: a,
|
3783
|
-
locale:
|
3749
|
+
locale: h = X(),
|
3784
3750
|
default: u
|
3785
3751
|
} = s;
|
3786
|
-
if (
|
3752
|
+
if (h == null)
|
3787
3753
|
throw new Error(
|
3788
3754
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
3789
3755
|
);
|
3790
|
-
let
|
3791
|
-
if (!
|
3792
|
-
|
3793
|
-
else if (typeof
|
3756
|
+
let l = _r(e, h);
|
3757
|
+
if (!l)
|
3758
|
+
l = (o = (i = (n = (r = te()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
3759
|
+
else if (typeof l != "string")
|
3794
3760
|
return console.warn(
|
3795
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
3796
|
-
),
|
3761
|
+
`[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.`
|
3762
|
+
), l;
|
3797
3763
|
if (!a)
|
3798
|
-
return
|
3799
|
-
let
|
3764
|
+
return l;
|
3765
|
+
let f = l;
|
3800
3766
|
try {
|
3801
|
-
|
3802
|
-
} catch (
|
3803
|
-
|
3767
|
+
f = eo(l, h).format(a);
|
3768
|
+
} catch (c) {
|
3769
|
+
c instanceof Error && console.warn(
|
3804
3770
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
3805
|
-
|
3771
|
+
c.message
|
3806
3772
|
);
|
3807
3773
|
}
|
3808
|
-
return
|
3809
|
-
},
|
3810
|
-
|
3811
|
-
|
3812
|
-
|
3813
|
-
|
3814
|
-
function
|
3815
|
-
|
3816
|
-
}
|
3817
|
-
function
|
3818
|
-
|
3819
|
-
}
|
3820
|
-
const
|
3774
|
+
return f;
|
3775
|
+
}, ro = (e, t) => Ki(t).format(e), no = (e, t) => Yi(t).format(e), io = (e, t) => Ji(t).format(e), oo = (e, t = X()) => _r(e, t), so = ne([ie, ce], () => to);
|
3776
|
+
ne([ie], () => ro);
|
3777
|
+
ne([ie], () => no);
|
3778
|
+
ne([ie], () => io);
|
3779
|
+
ne([ie, ce], () => oo);
|
3780
|
+
function $t(e, t) {
|
3781
|
+
xr(e, t);
|
3782
|
+
}
|
3783
|
+
function ao(e) {
|
3784
|
+
ie.set(e);
|
3785
|
+
}
|
3786
|
+
const Gt = {
|
3821
3787
|
en: {
|
3822
3788
|
collections: "Game Collections",
|
3823
3789
|
providers: "Game Providers",
|
@@ -3917,13 +3883,13 @@ const Ut = {
|
|
3917
3883
|
function D(e) {
|
3918
3884
|
return typeof e == "function";
|
3919
3885
|
}
|
3920
|
-
function
|
3886
|
+
function Cr(e) {
|
3921
3887
|
var t = function(n) {
|
3922
3888
|
Error.call(n), n.stack = new Error().stack;
|
3923
3889
|
}, r = e(t);
|
3924
3890
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
3925
3891
|
}
|
3926
|
-
var
|
3892
|
+
var De = Cr(function(e) {
|
3927
3893
|
return function(r) {
|
3928
3894
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
3929
3895
|
` + r.map(function(n, i) {
|
@@ -3938,7 +3904,7 @@ function tt(e, t) {
|
|
3938
3904
|
0 <= r && e.splice(r, 1);
|
3939
3905
|
}
|
3940
3906
|
}
|
3941
|
-
var
|
3907
|
+
var Ae = function() {
|
3942
3908
|
function e(t) {
|
3943
3909
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
3944
3910
|
}
|
@@ -3950,15 +3916,15 @@ var Ie = function() {
|
|
3950
3916
|
if (s)
|
3951
3917
|
if (this._parentage = null, Array.isArray(s))
|
3952
3918
|
try {
|
3953
|
-
for (var a = Xe(s),
|
3954
|
-
var u =
|
3919
|
+
for (var a = Xe(s), h = a.next(); !h.done; h = a.next()) {
|
3920
|
+
var u = h.value;
|
3955
3921
|
u.remove(this);
|
3956
3922
|
}
|
3957
|
-
} catch (
|
3958
|
-
t = { error:
|
3923
|
+
} catch (b) {
|
3924
|
+
t = { error: b };
|
3959
3925
|
} finally {
|
3960
3926
|
try {
|
3961
|
-
|
3927
|
+
h && !h.done && (r = a.return) && r.call(a);
|
3962
3928
|
} finally {
|
3963
3929
|
if (t)
|
3964
3930
|
throw t.error;
|
@@ -3966,30 +3932,30 @@ var Ie = function() {
|
|
3966
3932
|
}
|
3967
3933
|
else
|
3968
3934
|
s.remove(this);
|
3969
|
-
var
|
3970
|
-
if (D(
|
3935
|
+
var l = this.initialTeardown;
|
3936
|
+
if (D(l))
|
3971
3937
|
try {
|
3972
|
-
|
3973
|
-
} catch (
|
3974
|
-
o =
|
3938
|
+
l();
|
3939
|
+
} catch (b) {
|
3940
|
+
o = b instanceof De ? b.errors : [b];
|
3975
3941
|
}
|
3976
|
-
var
|
3977
|
-
if (
|
3942
|
+
var f = this._finalizers;
|
3943
|
+
if (f) {
|
3978
3944
|
this._finalizers = null;
|
3979
3945
|
try {
|
3980
|
-
for (var
|
3981
|
-
var
|
3946
|
+
for (var c = Xe(f), d = c.next(); !d.done; d = c.next()) {
|
3947
|
+
var p = d.value;
|
3982
3948
|
try {
|
3983
|
-
|
3984
|
-
} catch (
|
3985
|
-
o = o != null ? o : [],
|
3949
|
+
Ut(p);
|
3950
|
+
} catch (b) {
|
3951
|
+
o = o != null ? o : [], b instanceof De ? o = J(J([], We(o)), We(b.errors)) : o.push(b);
|
3986
3952
|
}
|
3987
3953
|
}
|
3988
|
-
} catch (
|
3989
|
-
n = { error:
|
3954
|
+
} catch (b) {
|
3955
|
+
n = { error: b };
|
3990
3956
|
} finally {
|
3991
3957
|
try {
|
3992
|
-
|
3958
|
+
d && !d.done && (i = c.return) && i.call(c);
|
3993
3959
|
} finally {
|
3994
3960
|
if (n)
|
3995
3961
|
throw n.error;
|
@@ -3997,13 +3963,13 @@ var Ie = function() {
|
|
3997
3963
|
}
|
3998
3964
|
}
|
3999
3965
|
if (o)
|
4000
|
-
throw new
|
3966
|
+
throw new De(o);
|
4001
3967
|
}
|
4002
3968
|
}, e.prototype.add = function(t) {
|
4003
3969
|
var r;
|
4004
3970
|
if (t && t !== this)
|
4005
3971
|
if (this.closed)
|
4006
|
-
|
3972
|
+
Ut(t);
|
4007
3973
|
else {
|
4008
3974
|
if (t instanceof e) {
|
4009
3975
|
if (t.closed || t._hasParent(this))
|
@@ -4028,45 +3994,45 @@ var Ie = function() {
|
|
4028
3994
|
var t = new e();
|
4029
3995
|
return t.closed = !0, t;
|
4030
3996
|
}(), e;
|
4031
|
-
}(),
|
4032
|
-
function
|
4033
|
-
return e instanceof
|
3997
|
+
}(), Pr = Ae.EMPTY;
|
3998
|
+
function Br(e) {
|
3999
|
+
return e instanceof Ae || e && "closed" in e && D(e.remove) && D(e.add) && D(e.unsubscribe);
|
4034
4000
|
}
|
4035
|
-
function
|
4001
|
+
function Ut(e) {
|
4036
4002
|
D(e) ? e() : e.unsubscribe();
|
4037
4003
|
}
|
4038
|
-
var
|
4004
|
+
var Ar = {
|
4039
4005
|
onUnhandledError: null,
|
4040
4006
|
onStoppedNotification: null,
|
4041
4007
|
Promise: void 0,
|
4042
4008
|
useDeprecatedSynchronousErrorHandling: !1,
|
4043
4009
|
useDeprecatedNextContext: !1
|
4044
|
-
},
|
4010
|
+
}, lo = {
|
4045
4011
|
setTimeout: function(e, t) {
|
4046
4012
|
for (var r = [], n = 2; n < arguments.length; n++)
|
4047
4013
|
r[n - 2] = arguments[n];
|
4048
|
-
return setTimeout.apply(void 0,
|
4014
|
+
return setTimeout.apply(void 0, J([e, t], We(r)));
|
4049
4015
|
},
|
4050
4016
|
clearTimeout: function(e) {
|
4051
4017
|
return clearTimeout(e);
|
4052
4018
|
},
|
4053
4019
|
delegate: void 0
|
4054
4020
|
};
|
4055
|
-
function
|
4056
|
-
|
4021
|
+
function uo(e) {
|
4022
|
+
lo.setTimeout(function() {
|
4057
4023
|
throw e;
|
4058
4024
|
});
|
4059
4025
|
}
|
4060
|
-
function
|
4026
|
+
function Dt() {
|
4061
4027
|
}
|
4062
|
-
function
|
4028
|
+
function ve(e) {
|
4063
4029
|
e();
|
4064
4030
|
}
|
4065
|
-
var
|
4031
|
+
var Or = function(e) {
|
4066
4032
|
F(t, e);
|
4067
4033
|
function t(r) {
|
4068
4034
|
var n = e.call(this) || this;
|
4069
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
4035
|
+
return n.isStopped = !1, r ? (n.destination = r, Br(r) && r.add(n)) : n.destination = po, n;
|
4070
4036
|
}
|
4071
4037
|
return t.create = function(r, n, i) {
|
4072
4038
|
return new rt(r, n, i);
|
@@ -4093,11 +4059,11 @@ var Ir = function(e) {
|
|
4093
4059
|
this.unsubscribe();
|
4094
4060
|
}
|
4095
4061
|
}, t;
|
4096
|
-
}(
|
4097
|
-
function
|
4098
|
-
return
|
4062
|
+
}(Ae), ho = Function.prototype.bind;
|
4063
|
+
function Fe(e, t) {
|
4064
|
+
return ho.call(e, t);
|
4099
4065
|
}
|
4100
|
-
var
|
4066
|
+
var co = function() {
|
4101
4067
|
function e(t) {
|
4102
4068
|
this.partialObserver = t;
|
4103
4069
|
}
|
@@ -4107,7 +4073,7 @@ var bo = function() {
|
|
4107
4073
|
try {
|
4108
4074
|
r.next(t);
|
4109
4075
|
} catch (n) {
|
4110
|
-
|
4076
|
+
pe(n);
|
4111
4077
|
}
|
4112
4078
|
}, e.prototype.error = function(t) {
|
4113
4079
|
var r = this.partialObserver;
|
@@ -4115,17 +4081,17 @@ var bo = function() {
|
|
4115
4081
|
try {
|
4116
4082
|
r.error(t);
|
4117
4083
|
} catch (n) {
|
4118
|
-
|
4084
|
+
pe(n);
|
4119
4085
|
}
|
4120
4086
|
else
|
4121
|
-
|
4087
|
+
pe(t);
|
4122
4088
|
}, e.prototype.complete = function() {
|
4123
4089
|
var t = this.partialObserver;
|
4124
4090
|
if (t.complete)
|
4125
4091
|
try {
|
4126
4092
|
t.complete();
|
4127
4093
|
} catch (r) {
|
4128
|
-
|
4094
|
+
pe(r);
|
4129
4095
|
}
|
4130
4096
|
}, e;
|
4131
4097
|
}(), rt = function(e) {
|
@@ -4140,43 +4106,43 @@ var bo = function() {
|
|
4140
4106
|
};
|
4141
4107
|
else {
|
4142
4108
|
var a;
|
4143
|
-
o &&
|
4109
|
+
o && Ar.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
4144
4110
|
return o.unsubscribe();
|
4145
4111
|
}, s = {
|
4146
|
-
next: r.next &&
|
4147
|
-
error: r.error &&
|
4148
|
-
complete: r.complete &&
|
4112
|
+
next: r.next && Fe(r.next, a),
|
4113
|
+
error: r.error && Fe(r.error, a),
|
4114
|
+
complete: r.complete && Fe(r.complete, a)
|
4149
4115
|
}) : s = r;
|
4150
4116
|
}
|
4151
|
-
return o.destination = new
|
4117
|
+
return o.destination = new co(s), o;
|
4152
4118
|
}
|
4153
4119
|
return t;
|
4154
|
-
}(
|
4155
|
-
function
|
4156
|
-
|
4120
|
+
}(Or);
|
4121
|
+
function pe(e) {
|
4122
|
+
uo(e);
|
4157
4123
|
}
|
4158
|
-
function
|
4124
|
+
function fo(e) {
|
4159
4125
|
throw e;
|
4160
4126
|
}
|
4161
|
-
var
|
4127
|
+
var po = {
|
4162
4128
|
closed: !0,
|
4163
|
-
next:
|
4164
|
-
error:
|
4165
|
-
complete:
|
4166
|
-
},
|
4129
|
+
next: Dt,
|
4130
|
+
error: fo,
|
4131
|
+
complete: Dt
|
4132
|
+
}, mo = function() {
|
4167
4133
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
4168
4134
|
}();
|
4169
|
-
function
|
4135
|
+
function bo(e) {
|
4170
4136
|
return e;
|
4171
4137
|
}
|
4172
|
-
function
|
4173
|
-
return e.length === 0 ?
|
4138
|
+
function go(e) {
|
4139
|
+
return e.length === 0 ? bo : e.length === 1 ? e[0] : function(r) {
|
4174
4140
|
return e.reduce(function(n, i) {
|
4175
4141
|
return i(n);
|
4176
4142
|
}, r);
|
4177
4143
|
};
|
4178
4144
|
}
|
4179
|
-
var
|
4145
|
+
var Ft = function() {
|
4180
4146
|
function e(t) {
|
4181
4147
|
t && (this._subscribe = t);
|
4182
4148
|
}
|
@@ -4184,10 +4150,10 @@ var jt = function() {
|
|
4184
4150
|
var r = new e();
|
4185
4151
|
return r.source = this, r.operator = t, r;
|
4186
4152
|
}, e.prototype.subscribe = function(t, r, n) {
|
4187
|
-
var i = this, o =
|
4188
|
-
return
|
4189
|
-
var s = i, a = s.operator,
|
4190
|
-
o.add(a ? a.call(o,
|
4153
|
+
var i = this, o = yo(t) ? t : new rt(t, r, n);
|
4154
|
+
return ve(function() {
|
4155
|
+
var s = i, a = s.operator, h = s.source;
|
4156
|
+
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
4191
4157
|
}), o;
|
4192
4158
|
}, e.prototype._trySubscribe = function(t) {
|
4193
4159
|
try {
|
@@ -4197,13 +4163,13 @@ var jt = function() {
|
|
4197
4163
|
}
|
4198
4164
|
}, e.prototype.forEach = function(t, r) {
|
4199
4165
|
var n = this;
|
4200
|
-
return r =
|
4166
|
+
return r = jt(r), new r(function(i, o) {
|
4201
4167
|
var s = new rt({
|
4202
4168
|
next: function(a) {
|
4203
4169
|
try {
|
4204
4170
|
t(a);
|
4205
|
-
} catch (
|
4206
|
-
o(
|
4171
|
+
} catch (h) {
|
4172
|
+
o(h), s.unsubscribe();
|
4207
4173
|
}
|
4208
4174
|
},
|
4209
4175
|
error: o,
|
@@ -4214,15 +4180,15 @@ var jt = function() {
|
|
4214
4180
|
}, e.prototype._subscribe = function(t) {
|
4215
4181
|
var r;
|
4216
4182
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
4217
|
-
}, e.prototype[
|
4183
|
+
}, e.prototype[mo] = function() {
|
4218
4184
|
return this;
|
4219
4185
|
}, e.prototype.pipe = function() {
|
4220
4186
|
for (var t = [], r = 0; r < arguments.length; r++)
|
4221
4187
|
t[r] = arguments[r];
|
4222
|
-
return
|
4188
|
+
return go(t)(this);
|
4223
4189
|
}, e.prototype.toPromise = function(t) {
|
4224
4190
|
var r = this;
|
4225
|
-
return t =
|
4191
|
+
return t = jt(t), new t(function(n, i) {
|
4226
4192
|
var o;
|
4227
4193
|
r.subscribe(function(s) {
|
4228
4194
|
return o = s;
|
@@ -4236,17 +4202,17 @@ var jt = function() {
|
|
4236
4202
|
return new e(t);
|
4237
4203
|
}, e;
|
4238
4204
|
}();
|
4239
|
-
function
|
4205
|
+
function jt(e) {
|
4240
4206
|
var t;
|
4241
|
-
return (t = e != null ? e :
|
4207
|
+
return (t = e != null ? e : Ar.Promise) !== null && t !== void 0 ? t : Promise;
|
4242
4208
|
}
|
4243
|
-
function
|
4209
|
+
function vo(e) {
|
4244
4210
|
return e && D(e.next) && D(e.error) && D(e.complete);
|
4245
4211
|
}
|
4246
|
-
function
|
4247
|
-
return e && e instanceof
|
4212
|
+
function yo(e) {
|
4213
|
+
return e && e instanceof Or || vo(e) && Br(e);
|
4248
4214
|
}
|
4249
|
-
var
|
4215
|
+
var _o = Cr(function(e) {
|
4250
4216
|
return function() {
|
4251
4217
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
4252
4218
|
};
|
@@ -4257,21 +4223,21 @@ var wo = Pr(function(e) {
|
|
4257
4223
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
4258
4224
|
}
|
4259
4225
|
return t.prototype.lift = function(r) {
|
4260
|
-
var n = new
|
4226
|
+
var n = new kt(this, this);
|
4261
4227
|
return n.operator = r, n;
|
4262
4228
|
}, t.prototype._throwIfClosed = function() {
|
4263
4229
|
if (this.closed)
|
4264
|
-
throw new
|
4230
|
+
throw new _o();
|
4265
4231
|
}, t.prototype.next = function(r) {
|
4266
4232
|
var n = this;
|
4267
|
-
|
4233
|
+
ve(function() {
|
4268
4234
|
var i, o;
|
4269
4235
|
if (n._throwIfClosed(), !n.isStopped) {
|
4270
4236
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
4271
4237
|
try {
|
4272
4238
|
for (var s = Xe(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
4273
|
-
var
|
4274
|
-
|
4239
|
+
var h = a.value;
|
4240
|
+
h.next(r);
|
4275
4241
|
}
|
4276
4242
|
} catch (u) {
|
4277
4243
|
i = { error: u };
|
@@ -4287,7 +4253,7 @@ var wo = Pr(function(e) {
|
|
4287
4253
|
});
|
4288
4254
|
}, t.prototype.error = function(r) {
|
4289
4255
|
var n = this;
|
4290
|
-
|
4256
|
+
ve(function() {
|
4291
4257
|
if (n._throwIfClosed(), !n.isStopped) {
|
4292
4258
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
4293
4259
|
for (var i = n.observers; i.length; )
|
@@ -4296,7 +4262,7 @@ var wo = Pr(function(e) {
|
|
4296
4262
|
});
|
4297
4263
|
}, t.prototype.complete = function() {
|
4298
4264
|
var r = this;
|
4299
|
-
|
4265
|
+
ve(function() {
|
4300
4266
|
if (r._throwIfClosed(), !r.isStopped) {
|
4301
4267
|
r.isStopped = !0;
|
4302
4268
|
for (var n = r.observers; n.length; )
|
@@ -4318,19 +4284,19 @@ var wo = Pr(function(e) {
|
|
4318
4284
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
4319
4285
|
}, t.prototype._innerSubscribe = function(r) {
|
4320
4286
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
4321
|
-
return o || s ?
|
4287
|
+
return o || s ? Pr : (this.currentObservers = null, a.push(r), new Ae(function() {
|
4322
4288
|
n.currentObservers = null, tt(a, r);
|
4323
4289
|
}));
|
4324
4290
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
4325
4291
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
4326
4292
|
i ? r.error(o) : s && r.complete();
|
4327
4293
|
}, t.prototype.asObservable = function() {
|
4328
|
-
var r = new
|
4294
|
+
var r = new Ft();
|
4329
4295
|
return r.source = this, r;
|
4330
4296
|
}, t.create = function(r, n) {
|
4331
|
-
return new
|
4297
|
+
return new kt(r, n);
|
4332
4298
|
}, t;
|
4333
|
-
}(
|
4299
|
+
}(Ft), kt = function(e) {
|
4334
4300
|
F(t, e);
|
4335
4301
|
function t(r, n) {
|
4336
4302
|
var i = e.call(this) || this;
|
@@ -4347,53 +4313,53 @@ var wo = Pr(function(e) {
|
|
4347
4313
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
4348
4314
|
}, t.prototype._subscribe = function(r) {
|
4349
4315
|
var n, i;
|
4350
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
4316
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Pr;
|
4351
4317
|
}, t;
|
4352
|
-
}(Lr),
|
4318
|
+
}(Lr), Ir = {
|
4353
4319
|
now: function() {
|
4354
|
-
return (
|
4320
|
+
return (Ir.delegate || Date).now();
|
4355
4321
|
},
|
4356
4322
|
delegate: void 0
|
4357
|
-
},
|
4323
|
+
}, Eo = function(e) {
|
4358
4324
|
F(t, e);
|
4359
4325
|
function t(r, n, i) {
|
4360
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
4326
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ir);
|
4361
4327
|
var o = e.call(this) || this;
|
4362
4328
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
4363
4329
|
}
|
4364
4330
|
return t.prototype.next = function(r) {
|
4365
|
-
var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider,
|
4366
|
-
i || (o.push(r), !s && o.push(a.now() +
|
4331
|
+
var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, h = n._windowTime;
|
4332
|
+
i || (o.push(r), !s && o.push(a.now() + h)), this._trimBuffer(), e.prototype.next.call(this, r);
|
4367
4333
|
}, t.prototype._subscribe = function(r) {
|
4368
4334
|
this._throwIfClosed(), this._trimBuffer();
|
4369
|
-
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(),
|
4370
|
-
r.next(a[
|
4335
|
+
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), h = 0; h < a.length && !r.closed; h += o ? 1 : 2)
|
4336
|
+
r.next(a[h]);
|
4371
4337
|
return this._checkFinalizedStatuses(r), n;
|
4372
4338
|
}, t.prototype._trimBuffer = function() {
|
4373
4339
|
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
|
4374
4340
|
if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
|
4375
|
-
for (var
|
4376
|
-
u =
|
4341
|
+
for (var h = i.now(), u = 0, l = 1; l < o.length && o[l] <= h; l += 2)
|
4342
|
+
u = l;
|
4377
4343
|
u && o.splice(0, u + 1);
|
4378
4344
|
}
|
4379
4345
|
}, t;
|
4380
4346
|
}(Lr);
|
4381
|
-
const
|
4382
|
-
if (
|
4383
|
-
const r = new
|
4384
|
-
|
4347
|
+
const Vt = [], Xt = {}, xo = (e, t = 0) => {
|
4348
|
+
if (Vt.indexOf(e) == -1) {
|
4349
|
+
const r = new Eo(t);
|
4350
|
+
Xt[e] = r, Vt.push(e);
|
4385
4351
|
}
|
4386
|
-
return
|
4352
|
+
return Xt[e];
|
4387
4353
|
};
|
4388
|
-
window.emWidgets = { topic:
|
4389
|
-
const
|
4390
|
-
function
|
4354
|
+
window.emWidgets = { topic: xo };
|
4355
|
+
const So = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
4356
|
+
function wo(e, t) {
|
4391
4357
|
if (e) {
|
4392
4358
|
const r = document.createElement("style");
|
4393
4359
|
r.innerHTML = t, e.appendChild(r);
|
4394
4360
|
}
|
4395
4361
|
}
|
4396
|
-
function
|
4362
|
+
function To(e, t) {
|
4397
4363
|
const r = new URL(t);
|
4398
4364
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
4399
4365
|
const i = document.createElement("style");
|
@@ -4402,7 +4368,7 @@ function Bo(e, t) {
|
|
4402
4368
|
console.error("There was an error while trying to load client styling from URL", n);
|
4403
4369
|
});
|
4404
4370
|
}
|
4405
|
-
function
|
4371
|
+
function Ho(e, t, r) {
|
4406
4372
|
if (window.emMessageBus) {
|
4407
4373
|
const n = document.createElement("style");
|
4408
4374
|
window.emMessageBus.subscribe(t, (i) => {
|
@@ -4410,324 +4376,317 @@ function Ao(e, t, r) {
|
|
4410
4376
|
});
|
4411
4377
|
}
|
4412
4378
|
}
|
4413
|
-
function
|
4414
|
-
|
4379
|
+
function Co(e) {
|
4380
|
+
Yr(e, "svelte-3oqkg3", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CasinoCollectionsProviders{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));width:100%;height:330px;margin:0 auto;margin-top:24px}.CategoriesHeader{display:flex;justify-content:space-between;height:70px}.CategoriesHeader .Title{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));font-size:22px;font-weight:500}.CategoriesHeader .ButtonsContainer button{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px;cursor:pointer}.CategoriesHeader .ButtonsContainer button:active{opacity:0.7}.CategoriesSlider{position:relative;height:230px;overflow:hidden;cursor:pointer}.CategoriesSliderWrapper{position:absolute;top:0;left:0}.CategoriesSlider .Animation{transition:transform 0.8s}.CategoriesSlider .CategorySlide{border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;height:200px;width:400px;margin-right:15px;background-size:cover}.CategoriesSlider .CategorySlide:not(.CategorySlideNoHighlight){background-color:#808080;background-blend-mode:multiply}.CategoriesSlider .CategorySlideTopContainer{height:100px;display:flex;align-items:center}.CategoriesSlider .CategorySlideLogo{transform:translate(-50%, -50%);max-width:175px;top:30%;max-height:100%;position:absolute}.CategoriesSlider .CategorySlideTitle{color:var(--emw--casino-typography, var(--emw--color-constrast, #FFFFFF));font-size:18px;letter-spacing:1px}.CategoriesSlider .CategorySlideGameContainer{display:flex;width:40px;justify-content:center;gap:10%;min-height:85px}.CategoriesSlider .CategorySlideGameImage{border-radius:10px;width:auto;height:55px;object-fit:cover}.CategoriesSlider .CategorySlideGames{color:white;text-align:center}.CategoriesSlider .CategorySlideGames p{font-size:8px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.Mobile.Providers{padding:25px 10px}.Mobile.Collections{padding:25px 10px}.Mobile.CasinoCollectionsProviders{padding:25px 10px}.Mobile .CategoriesSlider{overflow:auto;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.Mobile .CategoriesSlider::-webkit-scrollbar{display:none}.Mobile .CategorySlide{width:80vw;scroll-snap-align:start}.Mobile .ButtonsContainer{display:none}.Mobile .CategorySlideGameImage{border-radius:10px;width:auto;height:40px;object-fit:cover}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}');
|
4415
4381
|
}
|
4416
|
-
function
|
4382
|
+
function Wt(e, t, r) {
|
4417
4383
|
const n = e.slice();
|
4418
|
-
return n[
|
4384
|
+
return n[40] = t[r], n;
|
4419
4385
|
}
|
4420
|
-
function
|
4386
|
+
function zt(e, t, r) {
|
4421
4387
|
const n = e.slice();
|
4422
|
-
return n[
|
4388
|
+
return n[43] = t[r], n;
|
4423
4389
|
}
|
4424
|
-
function
|
4390
|
+
function Po(e) {
|
4425
4391
|
let t, r, n, i = (
|
4426
4392
|
/*type*/
|
4427
|
-
(e[0]
|
4393
|
+
(e[0] === "vendor" ? (
|
4428
4394
|
/*$_*/
|
4429
|
-
e[
|
4395
|
+
e[10]("providers")
|
4430
4396
|
) : (
|
4431
4397
|
/*$_*/
|
4432
|
-
e[
|
4398
|
+
e[10]("collections")
|
4433
4399
|
)) + ""
|
4434
|
-
), o, s, a,
|
4400
|
+
), o, s, a, h, u, l = (
|
4435
4401
|
/*numberOfSlides*/
|
4436
|
-
e[
|
4437
|
-
e[
|
4438
|
-
), f =
|
4402
|
+
e[7] > /*numberOfVisibleSlides*/
|
4403
|
+
e[8] && Zt(e)
|
4404
|
+
), f = xe(
|
4439
4405
|
/*gameCategories*/
|
4440
4406
|
e[3]
|
4441
|
-
),
|
4407
|
+
), c = [];
|
4442
4408
|
for (let d = 0; d < f.length; d += 1)
|
4443
|
-
|
4409
|
+
c[d] = Jt(Wt(e, f, d));
|
4444
4410
|
return {
|
4445
4411
|
c() {
|
4446
|
-
t = P("div"), r = P("div"), n = P("p"), o =
|
4447
|
-
for (let d = 0; d <
|
4448
|
-
|
4449
|
-
x(n, "class", "Title"), x(r, "class", "CategoriesHeader"), x(
|
4450
|
-
|
4451
|
-
e[28].call(l)
|
4452
|
-
)), x(t, "class", h = "CasinoCollectionsProviders " + /*mobile*/
|
4453
|
-
(e[10] ? "Mobile" : "") + " " + /*type*/
|
4412
|
+
t = P("div"), r = P("div"), n = P("p"), o = Te(i), s = V(), l && l.c(), a = V(), h = P("div");
|
4413
|
+
for (let d = 0; d < c.length; d += 1)
|
4414
|
+
c[d].c();
|
4415
|
+
x(n, "class", "Title"), x(r, "class", "CategoriesHeader"), x(h, "class", "CategoriesSlider"), x(t, "class", u = "CasinoCollectionsProviders " + /*mobile*/
|
4416
|
+
(e[9] ? "Mobile" : "") + " " + /*type*/
|
4454
4417
|
(e[0] === "vendor" ? "Providers" : "Collections"));
|
4455
4418
|
},
|
4456
|
-
m(d,
|
4457
|
-
|
4458
|
-
for (let
|
4459
|
-
|
4460
|
-
e[
|
4461
|
-
l,
|
4462
|
-
/*div1_elementresize_handler*/
|
4463
|
-
e[28].bind(l)
|
4464
|
-
);
|
4419
|
+
m(d, p) {
|
4420
|
+
G(d, t, p), C(t, r), C(r, n), C(n, o), C(r, s), l && l.m(r, null), C(t, a), C(t, h);
|
4421
|
+
for (let b = 0; b < c.length; b += 1)
|
4422
|
+
c[b] && c[b].m(h, null);
|
4423
|
+
e[25](h);
|
4465
4424
|
},
|
4466
|
-
p(d,
|
4467
|
-
if (
|
4468
|
-
|
4469
|
-
(d[0]
|
4425
|
+
p(d, p) {
|
4426
|
+
if (p[0] & /*type, $_*/
|
4427
|
+
1025 && i !== (i = /*type*/
|
4428
|
+
(d[0] === "vendor" ? (
|
4470
4429
|
/*$_*/
|
4471
|
-
d[
|
4430
|
+
d[10]("providers")
|
4472
4431
|
) : (
|
4473
4432
|
/*$_*/
|
4474
|
-
d[
|
4433
|
+
d[10]("collections")
|
4475
4434
|
)) + "") && it(o, i), /*numberOfSlides*/
|
4476
|
-
d[
|
4477
|
-
d[
|
4478
|
-
|
4479
|
-
f =
|
4435
|
+
d[7] > /*numberOfVisibleSlides*/
|
4436
|
+
d[8] ? l ? l.p(d, p) : (l = Zt(d), l.c(), l.m(r, null)) : l && (l.d(1), l = null), p[0] & /*gameCategories, openCategory, collectionprovidersgamenames, openGame, titletype*/
|
4437
|
+
24590) {
|
4438
|
+
f = xe(
|
4480
4439
|
/*gameCategories*/
|
4481
4440
|
d[3]
|
4482
4441
|
);
|
4483
|
-
let
|
4484
|
-
for (
|
4485
|
-
const
|
4486
|
-
|
4442
|
+
let b;
|
4443
|
+
for (b = 0; b < f.length; b += 1) {
|
4444
|
+
const g = Wt(d, f, b);
|
4445
|
+
c[b] ? c[b].p(g, p) : (c[b] = Jt(g), c[b].c(), c[b].m(h, null));
|
4487
4446
|
}
|
4488
|
-
for (;
|
4489
|
-
|
4490
|
-
|
4447
|
+
for (; b < c.length; b += 1)
|
4448
|
+
c[b].d(1);
|
4449
|
+
c.length = f.length;
|
4491
4450
|
}
|
4492
|
-
|
4493
|
-
|
4494
|
-
(d[
|
4495
|
-
(d[0] === "vendor" ? "Providers" : "Collections")) && x(t, "class",
|
4451
|
+
p[0] & /*mobile, type*/
|
4452
|
+
513 && u !== (u = "CasinoCollectionsProviders " + /*mobile*/
|
4453
|
+
(d[9] ? "Mobile" : "") + " " + /*type*/
|
4454
|
+
(d[0] === "vendor" ? "Providers" : "Collections")) && x(t, "class", u);
|
4496
4455
|
},
|
4497
4456
|
d(d) {
|
4498
|
-
d &&
|
4457
|
+
d && M(t), l && l.d(), tr(c, d), e[25](null);
|
4499
4458
|
}
|
4500
4459
|
};
|
4501
4460
|
}
|
4502
|
-
function
|
4461
|
+
function Bo(e) {
|
4503
4462
|
let t;
|
4504
4463
|
return {
|
4505
4464
|
c() {
|
4506
4465
|
t = P("div"), x(t, "class", "LoadingSpinner");
|
4507
4466
|
},
|
4508
4467
|
m(r, n) {
|
4509
|
-
|
4468
|
+
G(r, t, n);
|
4510
4469
|
},
|
4511
4470
|
p: L,
|
4512
4471
|
d(r) {
|
4513
|
-
r &&
|
4472
|
+
r && M(t);
|
4514
4473
|
}
|
4515
4474
|
};
|
4516
4475
|
}
|
4517
|
-
function
|
4476
|
+
function Zt(e) {
|
4518
4477
|
let t, r, n, i, o, s;
|
4519
4478
|
return {
|
4520
4479
|
c() {
|
4521
|
-
t = P("div"), r = P("button"), r.innerHTML = '<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(14.656 0) rotate(90)" fill="#fff"></path></svg>', n =
|
4480
|
+
t = P("div"), r = P("button"), r.innerHTML = '<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(14.656 0) rotate(90)" fill="#fff"></path></svg>', n = V(), i = P("button"), i.innerHTML = '<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(0 24.656) rotate(-90)" fill="#fff"></path></svg>', x(t, "class", "ButtonsContainer");
|
4522
4481
|
},
|
4523
|
-
m(a,
|
4524
|
-
|
4525
|
-
|
4482
|
+
m(a, h) {
|
4483
|
+
G(a, t, h), C(t, r), C(t, n), C(t, i), o || (s = [
|
4484
|
+
_e(
|
4526
4485
|
r,
|
4527
4486
|
"click",
|
4528
|
-
/*
|
4529
|
-
e[
|
4487
|
+
/*sliderScrollLeft*/
|
4488
|
+
e[11]
|
4530
4489
|
),
|
4531
|
-
|
4490
|
+
_e(
|
4532
4491
|
i,
|
4533
4492
|
"click",
|
4534
|
-
/*
|
4535
|
-
e[
|
4493
|
+
/*sliderScrollRight*/
|
4494
|
+
e[12]
|
4536
4495
|
)
|
4537
4496
|
], o = !0);
|
4538
4497
|
},
|
4539
4498
|
p: L,
|
4540
4499
|
d(a) {
|
4541
|
-
a &&
|
4500
|
+
a && M(t), o = !1, re(s);
|
4542
4501
|
}
|
4543
4502
|
};
|
4544
4503
|
}
|
4545
|
-
function
|
4504
|
+
function Ao(e) {
|
4546
4505
|
let t, r = (
|
4547
4506
|
/*category*/
|
4548
|
-
e[
|
4507
|
+
e[40].name + ""
|
4549
4508
|
), n;
|
4550
4509
|
return {
|
4551
4510
|
c() {
|
4552
|
-
t = P("p"), n =
|
4511
|
+
t = P("p"), n = Te(r), x(t, "class", "CategorySlideTitle");
|
4553
4512
|
},
|
4554
4513
|
m(i, o) {
|
4555
|
-
|
4514
|
+
G(i, t, o), C(t, n);
|
4556
4515
|
},
|
4557
4516
|
p(i, o) {
|
4558
4517
|
o[0] & /*gameCategories*/
|
4559
4518
|
8 && r !== (r = /*category*/
|
4560
|
-
i[
|
4519
|
+
i[40].name + "") && it(n, r);
|
4561
4520
|
},
|
4562
4521
|
d(i) {
|
4563
|
-
i &&
|
4522
|
+
i && M(t);
|
4564
4523
|
}
|
4565
4524
|
};
|
4566
4525
|
}
|
4567
|
-
function
|
4526
|
+
function Oo(e) {
|
4568
4527
|
let t, r, n;
|
4569
4528
|
return {
|
4570
4529
|
c() {
|
4571
|
-
t = P("img"), x(t, "class", "CategorySlideLogo"),
|
4572
|
-
e[
|
4573
|
-
e[
|
4530
|
+
t = P("img"), x(t, "class", "CategorySlideLogo"), ye(t.src, r = /*category*/
|
4531
|
+
e[40].icon) || x(t, "src", r), x(t, "alt", n = /*category*/
|
4532
|
+
e[40].name + " icon");
|
4574
4533
|
},
|
4575
4534
|
m(i, o) {
|
4576
|
-
|
4535
|
+
G(i, t, o);
|
4577
4536
|
},
|
4578
4537
|
p(i, o) {
|
4579
4538
|
o[0] & /*gameCategories*/
|
4580
|
-
8 && !
|
4581
|
-
i[
|
4539
|
+
8 && !ye(t.src, r = /*category*/
|
4540
|
+
i[40].icon) && x(t, "src", r), o[0] & /*gameCategories*/
|
4582
4541
|
8 && n !== (n = /*category*/
|
4583
|
-
i[
|
4542
|
+
i[40].name + " icon") && x(t, "alt", n);
|
4584
4543
|
},
|
4585
4544
|
d(i) {
|
4586
|
-
i &&
|
4545
|
+
i && M(t);
|
4587
4546
|
}
|
4588
4547
|
};
|
4589
4548
|
}
|
4590
|
-
function
|
4549
|
+
function Qt(e) {
|
4591
4550
|
let t, r = (
|
4592
4551
|
/*game*/
|
4593
|
-
e[
|
4552
|
+
e[43].name + ""
|
4594
4553
|
), n, i;
|
4595
4554
|
return {
|
4596
4555
|
c() {
|
4597
|
-
t = P("p"), n =
|
4598
|
-
e[
|
4556
|
+
t = P("p"), n = Te(r), x(t, "title", i = /*game*/
|
4557
|
+
e[43].name);
|
4599
4558
|
},
|
4600
4559
|
m(o, s) {
|
4601
|
-
|
4560
|
+
G(o, t, s), C(t, n);
|
4602
4561
|
},
|
4603
4562
|
p(o, s) {
|
4604
4563
|
s[0] & /*gameCategories*/
|
4605
4564
|
8 && r !== (r = /*game*/
|
4606
|
-
o[
|
4565
|
+
o[43].name + "") && it(n, r), s[0] & /*gameCategories*/
|
4607
4566
|
8 && i !== (i = /*game*/
|
4608
|
-
o[
|
4567
|
+
o[43].name) && x(t, "title", i);
|
4609
4568
|
},
|
4610
4569
|
d(o) {
|
4611
|
-
o &&
|
4570
|
+
o && M(t);
|
4612
4571
|
}
|
4613
4572
|
};
|
4614
4573
|
}
|
4615
4574
|
function qt(e) {
|
4616
|
-
let t, r, n, i, o, s, a,
|
4575
|
+
let t, r, n, i, o, s, a, h;
|
4617
4576
|
function u() {
|
4618
4577
|
return (
|
4619
|
-
/*
|
4620
|
-
e[
|
4578
|
+
/*click_handler*/
|
4579
|
+
e[23](
|
4621
4580
|
/*game*/
|
4622
|
-
e[
|
4581
|
+
e[43]
|
4623
4582
|
)
|
4624
4583
|
);
|
4625
4584
|
}
|
4626
|
-
let
|
4585
|
+
let l = (
|
4627
4586
|
/*collectionprovidersgamenames*/
|
4628
|
-
e[2] == "true" &&
|
4587
|
+
e[2] == "true" && Qt(e)
|
4629
4588
|
);
|
4630
4589
|
return {
|
4631
4590
|
c() {
|
4632
|
-
t = P("div"), r = P("img"), o =
|
4633
|
-
e[
|
4634
|
-
e[
|
4591
|
+
t = P("div"), r = P("img"), o = V(), l && l.c(), s = V(), x(r, "class", "CategorySlideGameImage"), ye(r.src, n = /*game*/
|
4592
|
+
e[43].defaultThumbnail) || x(r, "src", n), x(r, "alt", i = /*game*/
|
4593
|
+
e[43].name), x(t, "class", "CategorySlideGames");
|
4635
4594
|
},
|
4636
|
-
m(
|
4637
|
-
|
4595
|
+
m(f, c) {
|
4596
|
+
G(f, t, c), C(t, r), C(t, o), l && l.m(t, null), C(t, s), a || (h = _e(r, "click", tn(u)), a = !0);
|
4638
4597
|
},
|
4639
|
-
p(
|
4640
|
-
e =
|
4641
|
-
8 && !
|
4642
|
-
e[
|
4598
|
+
p(f, c) {
|
4599
|
+
e = f, c[0] & /*gameCategories*/
|
4600
|
+
8 && !ye(r.src, n = /*game*/
|
4601
|
+
e[43].defaultThumbnail) && x(r, "src", n), c[0] & /*gameCategories*/
|
4643
4602
|
8 && i !== (i = /*game*/
|
4644
|
-
e[
|
4645
|
-
e[2] == "true" ?
|
4603
|
+
e[43].name) && x(r, "alt", i), /*collectionprovidersgamenames*/
|
4604
|
+
e[2] == "true" ? l ? l.p(e, c) : (l = Qt(e), l.c(), l.m(t, s)) : l && (l.d(1), l = null);
|
4646
4605
|
},
|
4647
|
-
d(
|
4648
|
-
|
4606
|
+
d(f) {
|
4607
|
+
f && M(t), l && l.d(), a = !1, h();
|
4649
4608
|
}
|
4650
4609
|
};
|
4651
4610
|
}
|
4652
|
-
function
|
4653
|
-
let t, r, n, i, o, s, a,
|
4654
|
-
function
|
4611
|
+
function Jt(e) {
|
4612
|
+
let t, r, n, i, o, s, a, h, u;
|
4613
|
+
function l(g, E) {
|
4655
4614
|
if (
|
4656
4615
|
/*titletype*/
|
4657
|
-
|
4616
|
+
g[1] === "logo"
|
4658
4617
|
)
|
4659
|
-
return
|
4618
|
+
return Oo;
|
4660
4619
|
if (
|
4661
4620
|
/*titletype*/
|
4662
|
-
|
4621
|
+
g[1] === "title"
|
4663
4622
|
)
|
4664
|
-
return
|
4623
|
+
return Ao;
|
4665
4624
|
}
|
4666
|
-
let
|
4625
|
+
let f = l(e), c = f && f(e), d = xe(
|
4667
4626
|
/*category*/
|
4668
|
-
e[
|
4669
|
-
),
|
4670
|
-
for (let
|
4671
|
-
|
4672
|
-
function
|
4627
|
+
e[40].games
|
4628
|
+
), p = [];
|
4629
|
+
for (let g = 0; g < d.length; g += 1)
|
4630
|
+
p[g] = qt(zt(e, d, g));
|
4631
|
+
function b() {
|
4673
4632
|
return (
|
4674
|
-
/*
|
4675
|
-
e[
|
4633
|
+
/*click_handler_1*/
|
4634
|
+
e[24](
|
4676
4635
|
/*category*/
|
4677
|
-
e[
|
4636
|
+
e[40]
|
4678
4637
|
)
|
4679
4638
|
);
|
4680
4639
|
}
|
4681
4640
|
return {
|
4682
4641
|
c() {
|
4683
|
-
var
|
4684
|
-
t = P("div"), r = P("div"), n = P("div"),
|
4685
|
-
for (let S = 0; S <
|
4686
|
-
|
4687
|
-
a =
|
4688
|
-
(((
|
4689
|
-
((
|
4642
|
+
var g, E;
|
4643
|
+
t = P("div"), r = P("div"), n = P("div"), c && c.c(), i = V(), o = P("div");
|
4644
|
+
for (let S = 0; S < p.length; S += 1)
|
4645
|
+
p[S].c();
|
4646
|
+
a = V(), x(n, "class", "CategorySlideTopContainer"), x(o, "class", "CategorySlideGameContainer"), x(r, "class", s = "CategorySlide " + /*category*/
|
4647
|
+
(((g = e[40]) == null ? void 0 : g.flag[0]) === "vendor" ? "CategorySlideNoHighlight" : "")), Ie(r, "background-image", "url(" + /*category*/
|
4648
|
+
((E = e[40]) == null ? void 0 : E.background) + ")"), Ie(r, "background-size", "cover"), x(t, "class", "CategoriesSliderWrapper Animation");
|
4690
4649
|
},
|
4691
|
-
m(
|
4692
|
-
|
4693
|
-
for (let S = 0; S <
|
4694
|
-
|
4695
|
-
C(t, a),
|
4650
|
+
m(g, E) {
|
4651
|
+
G(g, t, E), C(t, r), C(r, n), c && c.m(n, null), C(r, i), C(r, o);
|
4652
|
+
for (let S = 0; S < p.length; S += 1)
|
4653
|
+
p[S] && p[S].m(o, null);
|
4654
|
+
C(t, a), h || (u = _e(r, "click", b), h = !0);
|
4696
4655
|
},
|
4697
|
-
p(
|
4656
|
+
p(g, E) {
|
4698
4657
|
var S, T;
|
4699
|
-
if (e =
|
4700
|
-
|
4701
|
-
|
4658
|
+
if (e = g, f === (f = l(e)) && c ? c.p(e, E) : (c && c.d(1), c = f && f(e), c && (c.c(), c.m(n, null))), E[0] & /*gameCategories, collectionprovidersgamenames, openGame*/
|
4659
|
+
8204) {
|
4660
|
+
d = xe(
|
4702
4661
|
/*category*/
|
4703
|
-
e[
|
4662
|
+
e[40].games
|
4704
4663
|
);
|
4705
4664
|
let H;
|
4706
|
-
for (H = 0; H <
|
4707
|
-
const
|
4708
|
-
|
4665
|
+
for (H = 0; H < d.length; H += 1) {
|
4666
|
+
const O = zt(e, d, H);
|
4667
|
+
p[H] ? p[H].p(O, E) : (p[H] = qt(O), p[H].c(), p[H].m(o, null));
|
4709
4668
|
}
|
4710
|
-
for (; H <
|
4711
|
-
|
4712
|
-
|
4669
|
+
for (; H < p.length; H += 1)
|
4670
|
+
p[H].d(1);
|
4671
|
+
p.length = d.length;
|
4713
4672
|
}
|
4714
|
-
|
4673
|
+
E[0] & /*gameCategories*/
|
4715
4674
|
8 && s !== (s = "CategorySlide " + /*category*/
|
4716
|
-
(((S = e[
|
4717
|
-
8 &&
|
4718
|
-
((T = e[
|
4675
|
+
(((S = e[40]) == null ? void 0 : S.flag[0]) === "vendor" ? "CategorySlideNoHighlight" : "")) && x(r, "class", s), E[0] & /*gameCategories*/
|
4676
|
+
8 && Ie(r, "background-image", "url(" + /*category*/
|
4677
|
+
((T = e[40]) == null ? void 0 : T.background) + ")");
|
4719
4678
|
},
|
4720
|
-
d(
|
4721
|
-
|
4679
|
+
d(g) {
|
4680
|
+
g && M(t), c && c.d(), tr(p, g), h = !1, u();
|
4722
4681
|
}
|
4723
4682
|
};
|
4724
4683
|
}
|
4725
|
-
function
|
4684
|
+
function Lo(e) {
|
4726
4685
|
let t;
|
4727
4686
|
function r(o, s) {
|
4728
4687
|
return (
|
4729
4688
|
/*isLoading*/
|
4730
|
-
o[
|
4689
|
+
o[6] ? Bo : Po
|
4731
4690
|
);
|
4732
4691
|
}
|
4733
4692
|
let n = r(e), i = n(e);
|
@@ -4736,7 +4695,7 @@ function Ro(e) {
|
|
4736
4695
|
t = P("div"), i.c();
|
4737
4696
|
},
|
4738
4697
|
m(o, s) {
|
4739
|
-
|
4698
|
+
G(o, t, s), i.m(t, null), e[26](t);
|
4740
4699
|
},
|
4741
4700
|
p(o, s) {
|
4742
4701
|
n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
|
@@ -4744,226 +4703,221 @@ function Ro(e) {
|
|
4744
4703
|
i: L,
|
4745
4704
|
o: L,
|
4746
4705
|
d(o) {
|
4747
|
-
o &&
|
4706
|
+
o && M(t), i.d(), e[26](null);
|
4748
4707
|
}
|
4749
4708
|
};
|
4750
4709
|
}
|
4751
|
-
function
|
4710
|
+
function Io(e, t, r) {
|
4752
4711
|
let n;
|
4753
|
-
|
4754
|
-
let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "" } = t, { type: a = "" } = t, { titletype:
|
4712
|
+
Jr(e, so, (m) => r(10, n = m));
|
4713
|
+
let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "" } = t, { type: a = "" } = t, { titletype: h = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, { collectionprovidersgamenames: c = "" } = t, { mbsource: d } = t, p = [], b = !0, g, E = 0, S = 0, T = 0, H, O, k = 0, W = 50, Oe = !1, U, Nr = window.navigator.userAgent, ut;
|
4755
4714
|
const Mr = () => {
|
4756
|
-
fetch(
|
4757
|
-
Object.keys(
|
4758
|
-
|
4715
|
+
fetch(f).then((B) => B.json()).then((B) => {
|
4716
|
+
Object.keys(B).forEach((R) => {
|
4717
|
+
$t(R, B[R]);
|
4759
4718
|
});
|
4760
|
-
}).catch((
|
4761
|
-
console.log(
|
4719
|
+
}).catch((B) => {
|
4720
|
+
console.log(B);
|
4762
4721
|
});
|
4763
4722
|
};
|
4764
|
-
Object.keys(
|
4765
|
-
|
4723
|
+
Object.keys(Gt).forEach((m) => {
|
4724
|
+
$t(m, Gt[m]);
|
4766
4725
|
});
|
4767
|
-
const
|
4768
|
-
const
|
4769
|
-
|
4770
|
-
r(
|
4771
|
-
let
|
4772
|
-
|
4773
|
-
var bt, gt, vt;
|
4726
|
+
const ht = () => {
|
4727
|
+
const m = new URL(`${i}/v2/casino/groups/${o}`);
|
4728
|
+
m.searchParams.append("language", s), m.searchParams.append("expand", "games"), m.searchParams.append("filter", `$and(flags=${a})`), m.searchParams.append("pagination", `offset=${k},limit=${W}`), fetch(m.href).then((B) => B.json()).then((B) => {
|
4729
|
+
r(6, b = !1), B.total > W && (k += 50, W += 50, r(22, Oe = !0));
|
4730
|
+
let R = B.items.map(($) => {
|
4731
|
+
var mt, bt, gt;
|
4774
4732
|
return {
|
4775
|
-
id:
|
4776
|
-
name:
|
4777
|
-
icon:
|
4778
|
-
games:
|
4779
|
-
background:
|
4780
|
-
flag:
|
4733
|
+
id: $.id,
|
4734
|
+
name: $.name,
|
4735
|
+
icon: $.icon ? $.icon : (gt = (bt = (mt = $.vendors) == null ? void 0 : mt.items[0]) == null ? void 0 : bt.subVendors[0]) == null ? void 0 : gt.logo,
|
4736
|
+
games: $.games.items.slice(0, 4).map((Vr) => Vr),
|
4737
|
+
background: $.background,
|
4738
|
+
flag: $.flags
|
4781
4739
|
};
|
4782
|
-
})
|
4740
|
+
});
|
4741
|
+
r(3, p = [...p, ...R]), r(7, S = p.length);
|
4783
4742
|
});
|
4784
|
-
},
|
4785
|
-
|
4786
|
-
|
4787
|
-
}), H =
|
4788
|
-
},
|
4789
|
-
r(
|
4790
|
-
}, ct = () => {
|
4791
|
-
ht(_);
|
4743
|
+
}, ct = (m) => {
|
4744
|
+
O = [...g.children], O.forEach((B, R) => {
|
4745
|
+
B.style.transform = `translateX(${100 * (m ? R - m : R)}%)`;
|
4746
|
+
}), H = O[0].getBoundingClientRect().width, Rr();
|
4747
|
+
}, Rr = () => {
|
4748
|
+
r(8, T = Math.floor(g.clientWidth / H));
|
4792
4749
|
}, ft = () => {
|
4793
|
-
|
4794
|
-
},
|
4795
|
-
|
4796
|
-
},
|
4750
|
+
ct(E);
|
4751
|
+
}, $r = () => {
|
4752
|
+
E === 0 ? E = S - T : E - T < -1 ? E = 0 : E--, ft();
|
4753
|
+
}, Gr = () => {
|
4754
|
+
E === S - T ? E = 0 : S - T < E + 1 ? E = S - T : E++, ft();
|
4755
|
+
}, dt = (m, B, R, $) => {
|
4797
4756
|
window.postMessage(
|
4798
4757
|
{
|
4799
4758
|
type: "OpenCollectionsProvidersGame",
|
4800
|
-
gameId:
|
4801
|
-
launchUrl:
|
4802
|
-
gameName:
|
4803
|
-
subVendor:
|
4759
|
+
gameId: m,
|
4760
|
+
launchUrl: B,
|
4761
|
+
gameName: R,
|
4762
|
+
subVendor: $
|
4804
4763
|
},
|
4805
4764
|
window.location.href
|
4806
4765
|
), typeof gtag == "function" && gtag("event", "OpenGame", {
|
4807
4766
|
context: "CollectionsProviders",
|
4808
|
-
gameName: `${
|
4767
|
+
gameName: `${R}`
|
4809
4768
|
});
|
4810
|
-
},
|
4769
|
+
}, pt = (m) => {
|
4811
4770
|
window.postMessage(
|
4812
4771
|
{
|
4813
4772
|
type: "OpenCollectionsProvidersCategory",
|
4814
|
-
categoryId:
|
4773
|
+
categoryId: m
|
4815
4774
|
},
|
4816
4775
|
window.location.href
|
4817
4776
|
);
|
4818
|
-
},
|
4819
|
-
|
4777
|
+
}, Ur = () => {
|
4778
|
+
ao(s);
|
4820
4779
|
};
|
4821
|
-
|
4780
|
+
sn(() => (r(9, ut = So(Nr)), () => {
|
4822
4781
|
}));
|
4823
|
-
const
|
4824
|
-
function
|
4825
|
-
|
4826
|
-
|
4782
|
+
const Dr = (m) => dt(m.gameId, m.launchUrl, m.name, m.subVendor), Fr = (m) => pt(m.id);
|
4783
|
+
function jr(m) {
|
4784
|
+
Ee[m ? "unshift" : "push"](() => {
|
4785
|
+
g = m, r(4, g);
|
4827
4786
|
});
|
4828
4787
|
}
|
4829
|
-
function
|
4830
|
-
|
4831
|
-
|
4832
|
-
function Xr(b) {
|
4833
|
-
xe[b ? "unshift" : "push"](() => {
|
4834
|
-
O = b, r(5, O);
|
4788
|
+
function kr(m) {
|
4789
|
+
Ee[m ? "unshift" : "push"](() => {
|
4790
|
+
U = m, r(5, U);
|
4835
4791
|
});
|
4836
4792
|
}
|
4837
|
-
return e.$$set = (
|
4838
|
-
"endpoint" in
|
4793
|
+
return e.$$set = (m) => {
|
4794
|
+
"endpoint" in m && r(15, i = m.endpoint), "datasource" in m && r(16, o = m.datasource), "lang" in m && r(17, s = m.lang), "type" in m && r(0, a = m.type), "titletype" in m && r(1, h = m.titletype), "clientstyling" in m && r(18, u = m.clientstyling), "clientstylingurl" in m && r(19, l = m.clientstylingurl), "translationurl" in m && r(20, f = m.translationurl), "collectionprovidersgamenames" in m && r(2, c = m.collectionprovidersgamenames), "mbsource" in m && r(21, d = m.mbsource);
|
4839
4795
|
}, e.$$.update = () => {
|
4840
4796
|
e.$$.dirty[0] & /*endpoint, datasource, lang*/
|
4841
|
-
|
4842
|
-
|
4843
|
-
|
4844
|
-
|
4845
|
-
|
4846
|
-
|
4847
|
-
|
4797
|
+
229376 && i && o && s && ht(), e.$$.dirty[0] & /*gameCategories, categoriesSlider*/
|
4798
|
+
24 && p && g && ct(), e.$$.dirty[0] & /*lang*/
|
4799
|
+
131072 && s && Ur(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
4800
|
+
262176 && u && U && wo(U, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
4801
|
+
524320 && l && U && To(U, l), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
4802
|
+
2097184 && U && Ho(U, `${d}.Style`), e.$$.dirty[0] & /*translationurl*/
|
4803
|
+
1048576 && f && Mr(), e.$$.dirty[0] & /*paginationrequired*/
|
4804
|
+
4194304 && Oe && ht();
|
4848
4805
|
}, [
|
4849
4806
|
a,
|
4850
|
-
|
4851
|
-
|
4852
|
-
|
4853
|
-
m,
|
4854
|
-
O,
|
4855
|
-
oe,
|
4807
|
+
h,
|
4808
|
+
c,
|
4809
|
+
p,
|
4856
4810
|
g,
|
4811
|
+
U,
|
4812
|
+
b,
|
4857
4813
|
S,
|
4858
4814
|
T,
|
4859
4815
|
ut,
|
4860
4816
|
n,
|
4861
|
-
|
4817
|
+
$r,
|
4818
|
+
Gr,
|
4862
4819
|
dt,
|
4863
4820
|
pt,
|
4864
|
-
mt,
|
4865
4821
|
i,
|
4866
4822
|
o,
|
4867
4823
|
s,
|
4868
4824
|
u,
|
4869
|
-
|
4870
|
-
|
4871
|
-
|
4872
|
-
|
4825
|
+
l,
|
4826
|
+
f,
|
4827
|
+
d,
|
4828
|
+
Oe,
|
4873
4829
|
Dr,
|
4874
4830
|
Fr,
|
4875
4831
|
jr,
|
4876
|
-
kr
|
4877
|
-
Vr,
|
4878
|
-
Xr
|
4832
|
+
kr
|
4879
4833
|
];
|
4880
4834
|
}
|
4881
|
-
class
|
4835
|
+
class No extends vn {
|
4882
4836
|
constructor(t) {
|
4883
|
-
super(),
|
4837
|
+
super(), bn(
|
4884
4838
|
this,
|
4885
4839
|
t,
|
4886
|
-
|
4887
|
-
|
4888
|
-
|
4840
|
+
Io,
|
4841
|
+
Lo,
|
4842
|
+
Kt,
|
4889
4843
|
{
|
4890
|
-
endpoint:
|
4891
|
-
datasource:
|
4892
|
-
lang:
|
4844
|
+
endpoint: 15,
|
4845
|
+
datasource: 16,
|
4846
|
+
lang: 17,
|
4893
4847
|
type: 0,
|
4894
4848
|
titletype: 1,
|
4895
|
-
clientstyling:
|
4896
|
-
clientstylingurl:
|
4897
|
-
translationurl:
|
4849
|
+
clientstyling: 18,
|
4850
|
+
clientstylingurl: 19,
|
4851
|
+
translationurl: 20,
|
4898
4852
|
collectionprovidersgamenames: 2,
|
4899
|
-
mbsource:
|
4853
|
+
mbsource: 21
|
4900
4854
|
},
|
4901
|
-
|
4855
|
+
Co,
|
4902
4856
|
[-1, -1]
|
4903
4857
|
);
|
4904
4858
|
}
|
4905
4859
|
get endpoint() {
|
4906
|
-
return this.$$.ctx[
|
4860
|
+
return this.$$.ctx[15];
|
4907
4861
|
}
|
4908
4862
|
set endpoint(t) {
|
4909
|
-
this.$$set({ endpoint: t }),
|
4863
|
+
this.$$set({ endpoint: t }), N();
|
4910
4864
|
}
|
4911
4865
|
get datasource() {
|
4912
|
-
return this.$$.ctx[
|
4866
|
+
return this.$$.ctx[16];
|
4913
4867
|
}
|
4914
4868
|
set datasource(t) {
|
4915
|
-
this.$$set({ datasource: t }),
|
4869
|
+
this.$$set({ datasource: t }), N();
|
4916
4870
|
}
|
4917
4871
|
get lang() {
|
4918
|
-
return this.$$.ctx[
|
4872
|
+
return this.$$.ctx[17];
|
4919
4873
|
}
|
4920
4874
|
set lang(t) {
|
4921
|
-
this.$$set({ lang: t }),
|
4875
|
+
this.$$set({ lang: t }), N();
|
4922
4876
|
}
|
4923
4877
|
get type() {
|
4924
4878
|
return this.$$.ctx[0];
|
4925
4879
|
}
|
4926
4880
|
set type(t) {
|
4927
|
-
this.$$set({ type: t }),
|
4881
|
+
this.$$set({ type: t }), N();
|
4928
4882
|
}
|
4929
4883
|
get titletype() {
|
4930
4884
|
return this.$$.ctx[1];
|
4931
4885
|
}
|
4932
4886
|
set titletype(t) {
|
4933
|
-
this.$$set({ titletype: t }),
|
4887
|
+
this.$$set({ titletype: t }), N();
|
4934
4888
|
}
|
4935
4889
|
get clientstyling() {
|
4936
|
-
return this.$$.ctx[
|
4890
|
+
return this.$$.ctx[18];
|
4937
4891
|
}
|
4938
4892
|
set clientstyling(t) {
|
4939
|
-
this.$$set({ clientstyling: t }),
|
4893
|
+
this.$$set({ clientstyling: t }), N();
|
4940
4894
|
}
|
4941
4895
|
get clientstylingurl() {
|
4942
|
-
return this.$$.ctx[
|
4896
|
+
return this.$$.ctx[19];
|
4943
4897
|
}
|
4944
4898
|
set clientstylingurl(t) {
|
4945
|
-
this.$$set({ clientstylingurl: t }),
|
4899
|
+
this.$$set({ clientstylingurl: t }), N();
|
4946
4900
|
}
|
4947
4901
|
get translationurl() {
|
4948
|
-
return this.$$.ctx[
|
4902
|
+
return this.$$.ctx[20];
|
4949
4903
|
}
|
4950
4904
|
set translationurl(t) {
|
4951
|
-
this.$$set({ translationurl: t }),
|
4905
|
+
this.$$set({ translationurl: t }), N();
|
4952
4906
|
}
|
4953
4907
|
get collectionprovidersgamenames() {
|
4954
4908
|
return this.$$.ctx[2];
|
4955
4909
|
}
|
4956
4910
|
set collectionprovidersgamenames(t) {
|
4957
|
-
this.$$set({ collectionprovidersgamenames: t }),
|
4911
|
+
this.$$set({ collectionprovidersgamenames: t }), N();
|
4958
4912
|
}
|
4959
4913
|
get mbsource() {
|
4960
|
-
return this.$$.ctx[
|
4914
|
+
return this.$$.ctx[21];
|
4961
4915
|
}
|
4962
4916
|
set mbsource(t) {
|
4963
|
-
this.$$set({ mbsource: t }),
|
4917
|
+
this.$$set({ mbsource: t }), N();
|
4964
4918
|
}
|
4965
4919
|
}
|
4966
|
-
|
4920
|
+
gn(No, { endpoint: {}, datasource: {}, lang: {}, type: {}, titletype: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, collectionprovidersgamenames: {}, mbsource: {} }, [], [], !0);
|
4967
4921
|
export {
|
4968
|
-
|
4922
|
+
No as default
|
4969
4923
|
};
|