@everymatrix/casino-collections-providers 1.61.1 → 1.62.1
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-BRowNBke.cjs +18 -0
- package/components/{CasinoCollectionsProviders-CvZkMD5L.js → CasinoCollectionsProviders-CuGoEyfV.js} +900 -857
- package/components/{CasinoCollectionsProviders-D5btJk9X.js → CasinoCollectionsProviders-D_RrC8JM.js} +872 -829
- 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/stencil/index-97d17652-CCalHFFZ.js +558 -0
- package/stencil/index-97d17652-CeszPuI-.cjs +1 -0
- package/stencil/index-97d17652-De_e2iwD.js +542 -0
- package/stencil/ui-image-3911756b-B-U8CxGn.cjs +1 -0
- package/stencil/ui-image-3911756b-C-PJ3oso.js +39 -0
- package/stencil/ui-image-3911756b-D1cmuQAe.js +39 -0
- package/stencil/ui-image-CxLeLi3r.cjs +1 -0
- package/stencil/ui-image-D12cpp7q.js +25 -0
- package/stencil/ui-image-jU_A8Cc1.js +7 -0
- package/stencil/ui-image_2-8wL-gGdE.cjs +73 -0
- package/stencil/ui-image_2-BcBI-Hq7.js +154 -0
- package/stencil/ui-image_2-CIsvIZfV.js +154 -0
- package/components/CasinoCollectionsProviders-CxRm-bwJ.cjs +0 -18
- package/stencil/index-b7bbd57e-BBUBsGhp.js +0 -550
- package/stencil/index-b7bbd57e-SuDXAV6_.cjs +0 -1
- package/stencil/index-b7bbd57e-wJC_uAuk.js +0 -534
- package/stencil/ui-image-38c3c15f-ByZECnci.js +0 -39
- package/stencil/ui-image-38c3c15f-D_V48h1L.js +0 -39
- package/stencil/ui-image-38c3c15f-VguNkCIq.cjs +0 -1
- package/stencil/ui-image-BNrzgSpe.js +0 -11
- package/stencil/ui-image-CLghOqUz.cjs +0 -1
- package/stencil/ui-image-CPH6BqjQ.js +0 -29
package/components/{CasinoCollectionsProviders-CvZkMD5L.js → CasinoCollectionsProviders-CuGoEyfV.js}
RENAMED
@@ -1,58 +1,58 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
var
|
4
|
-
var
|
5
|
-
var
|
1
|
+
var Zr = Object.defineProperty, Qr = Object.defineProperties;
|
2
|
+
var Jr = Object.getOwnPropertyDescriptors;
|
3
|
+
var Et = Object.getOwnPropertySymbols;
|
4
|
+
var qr = Object.prototype.hasOwnProperty, Yr = Object.prototype.propertyIsEnumerable;
|
5
|
+
var Me = (e, t, r) => t in e ? Zr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, xt = (e, t) => {
|
6
6
|
for (var r in t || (t = {}))
|
7
|
-
|
8
|
-
if (
|
9
|
-
for (var r of
|
10
|
-
|
7
|
+
qr.call(t, r) && Me(e, r, t[r]);
|
8
|
+
if (Et)
|
9
|
+
for (var r of Et(t))
|
10
|
+
Yr.call(t, r) && Me(e, r, t[r]);
|
11
11
|
return e;
|
12
|
-
},
|
13
|
-
var N = (e, t, r) => (
|
14
|
-
var
|
12
|
+
}, St = (e, t) => Qr(e, Jr(t));
|
13
|
+
var N = (e, t, r) => (Me(e, typeof t != "symbol" ? t + "" : t, r), r);
|
14
|
+
var wt = (e, t, r) => new Promise((n, i) => {
|
15
15
|
var o = (h) => {
|
16
16
|
try {
|
17
17
|
a(r.next(h));
|
18
|
-
} catch (
|
19
|
-
i(
|
18
|
+
} catch (l) {
|
19
|
+
i(l);
|
20
20
|
}
|
21
21
|
}, s = (h) => {
|
22
22
|
try {
|
23
23
|
a(r.throw(h));
|
24
|
-
} catch (
|
25
|
-
i(
|
24
|
+
} catch (l) {
|
25
|
+
i(l);
|
26
26
|
}
|
27
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
|
-
import "../stencil/ui-image-
|
30
|
+
import "../stencil/ui-image-D12cpp7q.js";
|
31
31
|
function I() {
|
32
32
|
}
|
33
|
-
function
|
33
|
+
function tr(e) {
|
34
34
|
return e();
|
35
35
|
}
|
36
|
-
function
|
36
|
+
function Tt() {
|
37
37
|
return /* @__PURE__ */ Object.create(null);
|
38
38
|
}
|
39
|
-
function
|
40
|
-
e.forEach(
|
39
|
+
function re(e) {
|
40
|
+
e.forEach(tr);
|
41
41
|
}
|
42
|
-
function
|
42
|
+
function ut(e) {
|
43
43
|
return typeof e == "function";
|
44
44
|
}
|
45
|
-
function
|
45
|
+
function rr(e, t) {
|
46
46
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
47
47
|
}
|
48
48
|
let de;
|
49
49
|
function _e(e, t) {
|
50
50
|
return e === t ? !0 : (de || (de = document.createElement("a")), de.href = t, e === de.href);
|
51
51
|
}
|
52
|
-
function
|
52
|
+
function Kr(e) {
|
53
53
|
return Object.keys(e).length === 0;
|
54
54
|
}
|
55
|
-
function
|
55
|
+
function nr(e, ...t) {
|
56
56
|
if (e == null) {
|
57
57
|
for (const n of t)
|
58
58
|
n(void 0);
|
@@ -61,20 +61,20 @@ function Yt(e, ...t) {
|
|
61
61
|
const r = e.subscribe(...t);
|
62
62
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
63
63
|
}
|
64
|
-
function
|
65
|
-
e.$$.on_destroy.push(
|
64
|
+
function en(e, t, r) {
|
65
|
+
e.$$.on_destroy.push(nr(t, r));
|
66
66
|
}
|
67
67
|
function H(e, t) {
|
68
68
|
e.appendChild(t);
|
69
69
|
}
|
70
|
-
function
|
71
|
-
const n =
|
70
|
+
function tn(e, t, r) {
|
71
|
+
const n = rn(e);
|
72
72
|
if (!n.getElementById(t)) {
|
73
73
|
const i = C("style");
|
74
|
-
i.id = t, i.textContent = r,
|
74
|
+
i.id = t, i.textContent = r, nn(n, i);
|
75
75
|
}
|
76
76
|
}
|
77
|
-
function
|
77
|
+
function rn(e) {
|
78
78
|
if (!e)
|
79
79
|
return document;
|
80
80
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
@@ -84,36 +84,36 @@ function Jr(e) {
|
|
84
84
|
t
|
85
85
|
) : e.ownerDocument;
|
86
86
|
}
|
87
|
-
function
|
87
|
+
function nn(e, t) {
|
88
88
|
return H(
|
89
89
|
/** @type {Document} */
|
90
90
|
e.head || e,
|
91
91
|
t
|
92
92
|
), t.sheet;
|
93
93
|
}
|
94
|
-
function
|
94
|
+
function D(e, t, r) {
|
95
95
|
e.insertBefore(t, r || null);
|
96
96
|
}
|
97
97
|
function R(e) {
|
98
98
|
e.parentNode && e.parentNode.removeChild(e);
|
99
99
|
}
|
100
|
-
function
|
100
|
+
function ir(e, t) {
|
101
101
|
for (let r = 0; r < e.length; r += 1)
|
102
102
|
e[r] && e[r].d(t);
|
103
103
|
}
|
104
104
|
function C(e) {
|
105
105
|
return document.createElement(e);
|
106
106
|
}
|
107
|
-
function
|
107
|
+
function Ce(e) {
|
108
108
|
return document.createTextNode(e);
|
109
109
|
}
|
110
110
|
function X() {
|
111
|
-
return
|
111
|
+
return Ce(" ");
|
112
112
|
}
|
113
|
-
function
|
113
|
+
function Ee(e, t, r, n) {
|
114
114
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
115
115
|
}
|
116
|
-
function
|
116
|
+
function on(e) {
|
117
117
|
return function(t) {
|
118
118
|
return t.stopPropagation(), e.call(this, t);
|
119
119
|
};
|
@@ -125,17 +125,17 @@ function G(e, t, r) {
|
|
125
125
|
const n = t.toLowerCase();
|
126
126
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : P(e, t, r);
|
127
127
|
}
|
128
|
-
function
|
128
|
+
function sn(e) {
|
129
129
|
return Array.from(e.childNodes);
|
130
130
|
}
|
131
|
-
function
|
131
|
+
function lt(e, t) {
|
132
132
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
133
133
|
t);
|
134
134
|
}
|
135
|
-
function
|
135
|
+
function Re(e, t, r, n) {
|
136
136
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
137
137
|
}
|
138
|
-
function
|
138
|
+
function an(e) {
|
139
139
|
const t = {};
|
140
140
|
return e.childNodes.forEach(
|
141
141
|
/** @param {Element} node */
|
@@ -145,28 +145,28 @@ function tn(e) {
|
|
145
145
|
), t;
|
146
146
|
}
|
147
147
|
let ue;
|
148
|
-
function
|
148
|
+
function ae(e) {
|
149
149
|
ue = e;
|
150
150
|
}
|
151
|
-
function
|
151
|
+
function un() {
|
152
152
|
if (!ue)
|
153
153
|
throw new Error("Function called outside component initialization");
|
154
154
|
return ue;
|
155
155
|
}
|
156
|
-
function
|
157
|
-
|
156
|
+
function ln(e) {
|
157
|
+
un().$$.on_mount.push(e);
|
158
158
|
}
|
159
|
-
const
|
160
|
-
let
|
161
|
-
const
|
162
|
-
let
|
163
|
-
function
|
164
|
-
|
159
|
+
const J = [], xe = [];
|
160
|
+
let q = [];
|
161
|
+
const Ht = [], hn = /* @__PURE__ */ Promise.resolve();
|
162
|
+
let Xe = !1;
|
163
|
+
function cn() {
|
164
|
+
Xe || (Xe = !0, hn.then(M));
|
165
165
|
}
|
166
|
-
function
|
167
|
-
|
166
|
+
function We(e) {
|
167
|
+
q.push(e);
|
168
168
|
}
|
169
|
-
const
|
169
|
+
const $e = /* @__PURE__ */ new Set();
|
170
170
|
let Z = 0;
|
171
171
|
function M() {
|
172
172
|
if (Z !== 0)
|
@@ -174,68 +174,68 @@ function M() {
|
|
174
174
|
const e = ue;
|
175
175
|
do {
|
176
176
|
try {
|
177
|
-
for (; Z <
|
178
|
-
const t =
|
179
|
-
Z++,
|
177
|
+
for (; Z < J.length; ) {
|
178
|
+
const t = J[Z];
|
179
|
+
Z++, ae(t), fn(t.$$);
|
180
180
|
}
|
181
181
|
} catch (t) {
|
182
|
-
throw
|
182
|
+
throw J.length = 0, Z = 0, t;
|
183
183
|
}
|
184
|
-
for (
|
185
|
-
|
186
|
-
for (let t = 0; t <
|
187
|
-
const r =
|
188
|
-
|
184
|
+
for (ae(null), J.length = 0, Z = 0; xe.length; )
|
185
|
+
xe.pop()();
|
186
|
+
for (let t = 0; t < q.length; t += 1) {
|
187
|
+
const r = q[t];
|
188
|
+
$e.has(r) || ($e.add(r), r());
|
189
189
|
}
|
190
|
-
|
191
|
-
} while (
|
192
|
-
for (;
|
193
|
-
|
194
|
-
|
190
|
+
q.length = 0;
|
191
|
+
} while (J.length);
|
192
|
+
for (; Ht.length; )
|
193
|
+
Ht.pop()();
|
194
|
+
Xe = !1, $e.clear(), ae(e);
|
195
195
|
}
|
196
|
-
function
|
196
|
+
function fn(e) {
|
197
197
|
if (e.fragment !== null) {
|
198
|
-
e.update(),
|
198
|
+
e.update(), re(e.before_update);
|
199
199
|
const t = e.dirty;
|
200
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
200
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(We);
|
201
201
|
}
|
202
202
|
}
|
203
|
-
function
|
203
|
+
function dn(e) {
|
204
204
|
const t = [], r = [];
|
205
|
-
|
205
|
+
q.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), q = t;
|
206
206
|
}
|
207
|
-
const
|
208
|
-
function
|
209
|
-
e && e.i && (
|
207
|
+
const pn = /* @__PURE__ */ new Set();
|
208
|
+
function mn(e, t) {
|
209
|
+
e && e.i && (pn.delete(e), e.i(t));
|
210
210
|
}
|
211
211
|
function Se(e) {
|
212
212
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
213
213
|
}
|
214
|
-
function
|
214
|
+
function bn(e, t, r) {
|
215
215
|
const { fragment: n, after_update: i } = e.$$;
|
216
|
-
n && n.m(t, r),
|
217
|
-
const o = e.$$.on_mount.map(
|
218
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
219
|
-
}), i.forEach(
|
216
|
+
n && n.m(t, r), We(() => {
|
217
|
+
const o = e.$$.on_mount.map(tr).filter(ut);
|
218
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : re(o), e.$$.on_mount = [];
|
219
|
+
}), i.forEach(We);
|
220
220
|
}
|
221
|
-
function
|
221
|
+
function gn(e, t) {
|
222
222
|
const r = e.$$;
|
223
|
-
r.fragment !== null && (
|
223
|
+
r.fragment !== null && (dn(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
224
224
|
}
|
225
|
-
function
|
226
|
-
e.$$.dirty[0] === -1 && (
|
225
|
+
function vn(e, t) {
|
226
|
+
e.$$.dirty[0] === -1 && (J.push(e), cn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
227
227
|
}
|
228
|
-
function
|
228
|
+
function yn(e, t, r, n, i, o, s = null, a = [-1]) {
|
229
229
|
const h = ue;
|
230
|
-
|
231
|
-
const
|
230
|
+
ae(e);
|
231
|
+
const l = e.$$ = {
|
232
232
|
fragment: null,
|
233
233
|
ctx: [],
|
234
234
|
// state
|
235
235
|
props: o,
|
236
236
|
update: I,
|
237
237
|
not_equal: i,
|
238
|
-
bound:
|
238
|
+
bound: Tt(),
|
239
239
|
// lifecycle
|
240
240
|
on_mount: [],
|
241
241
|
on_destroy: [],
|
@@ -244,28 +244,28 @@ function pn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
244
244
|
after_update: [],
|
245
245
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
246
246
|
// everything else
|
247
|
-
callbacks:
|
247
|
+
callbacks: Tt(),
|
248
248
|
dirty: a,
|
249
249
|
skip_bound: !1,
|
250
250
|
root: t.target || h.$$.root
|
251
251
|
};
|
252
|
-
s && s(
|
253
|
-
let
|
254
|
-
if (
|
252
|
+
s && s(l.root);
|
253
|
+
let u = !1;
|
254
|
+
if (l.ctx = r ? r(e, t.props || {}, (f, c, ...d) => {
|
255
255
|
const m = d.length ? d[0] : c;
|
256
|
-
return
|
257
|
-
}) : [],
|
256
|
+
return l.ctx && i(l.ctx[f], l.ctx[f] = m) && (!l.skip_bound && l.bound[f] && l.bound[f](m), u && vn(e, f)), c;
|
257
|
+
}) : [], l.update(), u = !0, re(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
258
258
|
if (t.hydrate) {
|
259
|
-
const f =
|
260
|
-
|
259
|
+
const f = sn(t.target);
|
260
|
+
l.fragment && l.fragment.l(f), f.forEach(R);
|
261
261
|
} else
|
262
|
-
|
263
|
-
t.intro &&
|
262
|
+
l.fragment && l.fragment.c();
|
263
|
+
t.intro && mn(e.$$.fragment), bn(e, t.target, t.anchor), M();
|
264
264
|
}
|
265
|
-
|
265
|
+
ae(h);
|
266
266
|
}
|
267
|
-
let
|
268
|
-
typeof HTMLElement == "function" && (
|
267
|
+
let or;
|
268
|
+
typeof HTMLElement == "function" && (or = class extends HTMLElement {
|
269
269
|
constructor(t, r, n) {
|
270
270
|
super();
|
271
271
|
/** The Svelte component constructor */
|
@@ -302,7 +302,7 @@ typeof HTMLElement == "function" && (er = class extends HTMLElement {
|
|
302
302
|
}
|
303
303
|
}
|
304
304
|
connectedCallback() {
|
305
|
-
return
|
305
|
+
return wt(this, null, function* () {
|
306
306
|
if (this.$$cn = !0, !this.$$c) {
|
307
307
|
let t = function(o) {
|
308
308
|
return () => {
|
@@ -315,18 +315,18 @@ typeof HTMLElement == "function" && (er = class extends HTMLElement {
|
|
315
315
|
* @param {HTMLElement} target
|
316
316
|
* @param {HTMLElement} [anchor]
|
317
317
|
*/
|
318
|
-
m: function(
|
319
|
-
|
318
|
+
m: function(l, u) {
|
319
|
+
D(l, s, u);
|
320
320
|
},
|
321
|
-
d: function(
|
322
|
-
|
321
|
+
d: function(l) {
|
322
|
+
l && R(s);
|
323
323
|
}
|
324
324
|
};
|
325
325
|
};
|
326
326
|
};
|
327
327
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
328
328
|
return;
|
329
|
-
const r = {}, n =
|
329
|
+
const r = {}, n = an(this);
|
330
330
|
for (const o of this.$$s)
|
331
331
|
o in n && (r[o] = [t(o)]);
|
332
332
|
for (const o of this.attributes) {
|
@@ -337,7 +337,7 @@ typeof HTMLElement == "function" && (er = class extends HTMLElement {
|
|
337
337
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
338
338
|
this.$$c = new this.$$ctor({
|
339
339
|
target: this.shadowRoot || this,
|
340
|
-
props:
|
340
|
+
props: St(xt({}, this.$$d), {
|
341
341
|
$$slots: r,
|
342
342
|
$$scope: {
|
343
343
|
ctx: []
|
@@ -415,8 +415,8 @@ function be(e, t, r, n) {
|
|
415
415
|
return t;
|
416
416
|
}
|
417
417
|
}
|
418
|
-
function
|
419
|
-
let s = class extends
|
418
|
+
function _n(e, t, r, n, i, o) {
|
419
|
+
let s = class extends or {
|
420
420
|
constructor() {
|
421
421
|
super(e, r, i), this.$$p_d = t;
|
422
422
|
}
|
@@ -432,8 +432,8 @@ function mn(e, t, r, n, i, o) {
|
|
432
432
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
433
433
|
},
|
434
434
|
set(h) {
|
435
|
-
var
|
436
|
-
h = be(a, h, t), this.$$d[a] = h, (
|
435
|
+
var l;
|
436
|
+
h = be(a, h, t), this.$$d[a] = h, (l = this.$$c) == null || l.$set({ [a]: h });
|
437
437
|
}
|
438
438
|
});
|
439
439
|
}), n.forEach((a) => {
|
@@ -446,7 +446,7 @@ function mn(e, t, r, n, i, o) {
|
|
446
446
|
}), e.element = /** @type {any} */
|
447
447
|
s, s;
|
448
448
|
}
|
449
|
-
class
|
449
|
+
class En {
|
450
450
|
constructor() {
|
451
451
|
/**
|
452
452
|
* ### PRIVATE API
|
@@ -467,7 +467,7 @@ class bn {
|
|
467
467
|
}
|
468
468
|
/** @returns {void} */
|
469
469
|
$destroy() {
|
470
|
-
|
470
|
+
gn(this, 1), this.$destroy = I;
|
471
471
|
}
|
472
472
|
/**
|
473
473
|
* @template {Extract<keyof Events, string>} K
|
@@ -476,7 +476,7 @@ class bn {
|
|
476
476
|
* @returns {() => void}
|
477
477
|
*/
|
478
478
|
$on(t, r) {
|
479
|
-
if (!
|
479
|
+
if (!ut(r))
|
480
480
|
return I;
|
481
481
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
482
482
|
return n.push(r), () => {
|
@@ -489,28 +489,28 @@ class bn {
|
|
489
489
|
* @returns {void}
|
490
490
|
*/
|
491
491
|
$set(t) {
|
492
|
-
this.$$set && !
|
492
|
+
this.$$set && !Kr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
493
493
|
}
|
494
494
|
}
|
495
|
-
const
|
496
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
495
|
+
const xn = "4";
|
496
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(xn);
|
497
497
|
const Q = [];
|
498
|
-
function
|
498
|
+
function Sn(e, t) {
|
499
499
|
return {
|
500
|
-
subscribe:
|
500
|
+
subscribe: Pe(e, t).subscribe
|
501
501
|
};
|
502
502
|
}
|
503
|
-
function
|
503
|
+
function Pe(e, t = I) {
|
504
504
|
let r;
|
505
505
|
const n = /* @__PURE__ */ new Set();
|
506
506
|
function i(a) {
|
507
|
-
if (
|
507
|
+
if (rr(e, a) && (e = a, r)) {
|
508
508
|
const h = !Q.length;
|
509
|
-
for (const
|
510
|
-
|
509
|
+
for (const l of n)
|
510
|
+
l[1](), Q.push(l, e);
|
511
511
|
if (h) {
|
512
|
-
for (let
|
513
|
-
Q[
|
512
|
+
for (let l = 0; l < Q.length; l += 2)
|
513
|
+
Q[l][0](Q[l + 1]);
|
514
514
|
Q.length = 0;
|
515
515
|
}
|
516
516
|
}
|
@@ -519,160 +519,146 @@ function Ce(e, t = I) {
|
|
519
519
|
i(a(e));
|
520
520
|
}
|
521
521
|
function s(a, h = I) {
|
522
|
-
const
|
523
|
-
return n.add(
|
524
|
-
n.delete(
|
522
|
+
const l = [a, h];
|
523
|
+
return n.add(l), n.size === 1 && (r = t(i, o) || I), a(e), () => {
|
524
|
+
n.delete(l), n.size === 0 && r && (r(), r = null);
|
525
525
|
};
|
526
526
|
}
|
527
527
|
return { set: i, update: o, subscribe: s };
|
528
528
|
}
|
529
|
-
function
|
529
|
+
function ne(e, t, r) {
|
530
530
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
531
531
|
if (!i.every(Boolean))
|
532
532
|
throw new Error("derived() expects stores as input, got a falsy value");
|
533
533
|
const o = t.length < 2;
|
534
|
-
return
|
534
|
+
return Sn(r, (s, a) => {
|
535
535
|
let h = !1;
|
536
|
-
const
|
537
|
-
let
|
536
|
+
const l = [];
|
537
|
+
let u = 0, f = I;
|
538
538
|
const c = () => {
|
539
|
-
if (
|
539
|
+
if (u)
|
540
540
|
return;
|
541
541
|
f();
|
542
|
-
const m = t(n ?
|
543
|
-
o ? s(m) : f =
|
542
|
+
const m = t(n ? l[0] : l, s, a);
|
543
|
+
o ? s(m) : f = ut(m) ? m : I;
|
544
544
|
}, d = i.map(
|
545
|
-
(m, b) =>
|
545
|
+
(m, b) => nr(
|
546
546
|
m,
|
547
547
|
(g) => {
|
548
|
-
|
548
|
+
l[b] = g, u &= ~(1 << b), h && c();
|
549
549
|
},
|
550
550
|
() => {
|
551
|
-
|
551
|
+
u |= 1 << b;
|
552
552
|
}
|
553
553
|
)
|
554
554
|
);
|
555
555
|
return h = !0, c(), function() {
|
556
|
-
|
556
|
+
re(d), f(), h = !1;
|
557
557
|
};
|
558
558
|
});
|
559
559
|
}
|
560
|
-
function
|
560
|
+
function wn(e) {
|
561
561
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
562
562
|
}
|
563
|
-
var
|
564
|
-
return
|
563
|
+
var Tn = function(t) {
|
564
|
+
return Hn(t) && !Cn(t);
|
565
565
|
};
|
566
|
-
function
|
566
|
+
function Hn(e) {
|
567
567
|
return !!e && typeof e == "object";
|
568
568
|
}
|
569
|
-
function
|
569
|
+
function Cn(e) {
|
570
570
|
var t = Object.prototype.toString.call(e);
|
571
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
571
|
+
return t === "[object RegExp]" || t === "[object Date]" || An(e);
|
572
572
|
}
|
573
|
-
var
|
574
|
-
function
|
575
|
-
return e.$$typeof ===
|
573
|
+
var Pn = typeof Symbol == "function" && Symbol.for, Bn = Pn ? Symbol.for("react.element") : 60103;
|
574
|
+
function An(e) {
|
575
|
+
return e.$$typeof === Bn;
|
576
576
|
}
|
577
|
-
function
|
577
|
+
function On(e) {
|
578
578
|
return Array.isArray(e) ? [] : {};
|
579
579
|
}
|
580
|
-
function
|
581
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
580
|
+
function le(e, t) {
|
581
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Y(On(e), e, t) : e;
|
582
582
|
}
|
583
|
-
function
|
583
|
+
function Ln(e, t, r) {
|
584
584
|
return e.concat(t).map(function(n) {
|
585
|
-
return
|
585
|
+
return le(n, r);
|
586
586
|
});
|
587
587
|
}
|
588
|
-
function
|
588
|
+
function In(e, t) {
|
589
589
|
if (!t.customMerge)
|
590
|
-
return
|
590
|
+
return Y;
|
591
591
|
var r = t.customMerge(e);
|
592
|
-
return typeof r == "function" ? r :
|
592
|
+
return typeof r == "function" ? r : Y;
|
593
593
|
}
|
594
|
-
function
|
594
|
+
function Nn(e) {
|
595
595
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
596
596
|
return Object.propertyIsEnumerable.call(e, t);
|
597
597
|
}) : [];
|
598
598
|
}
|
599
|
-
function
|
600
|
-
return Object.keys(e).concat(
|
599
|
+
function Ct(e) {
|
600
|
+
return Object.keys(e).concat(Nn(e));
|
601
601
|
}
|
602
|
-
function
|
602
|
+
function sr(e, t) {
|
603
603
|
try {
|
604
604
|
return t in e;
|
605
605
|
} catch (r) {
|
606
606
|
return !1;
|
607
607
|
}
|
608
608
|
}
|
609
|
-
function
|
610
|
-
return
|
609
|
+
function Mn(e, t) {
|
610
|
+
return sr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
611
611
|
}
|
612
|
-
function
|
612
|
+
function Rn(e, t, r) {
|
613
613
|
var n = {};
|
614
|
-
return r.isMergeableObject(e) &&
|
615
|
-
n[i] =
|
616
|
-
}),
|
617
|
-
|
614
|
+
return r.isMergeableObject(e) && Ct(e).forEach(function(i) {
|
615
|
+
n[i] = le(e[i], r);
|
616
|
+
}), Ct(t).forEach(function(i) {
|
617
|
+
Mn(e, i) || (sr(e, i) && r.isMergeableObject(t[i]) ? n[i] = In(i, r)(e[i], t[i], r) : n[i] = le(t[i], r));
|
618
618
|
}), n;
|
619
619
|
}
|
620
|
-
function
|
621
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
620
|
+
function Y(e, t, r) {
|
621
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Ln, r.isMergeableObject = r.isMergeableObject || Tn, r.cloneUnlessOtherwiseSpecified = le;
|
622
622
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
623
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
623
|
+
return o ? n ? r.arrayMerge(e, t, r) : Rn(e, t, r) : le(t, r);
|
624
624
|
}
|
625
|
-
|
625
|
+
Y.all = function(t, r) {
|
626
626
|
if (!Array.isArray(t))
|
627
627
|
throw new Error("first argument should be an array");
|
628
628
|
return t.reduce(function(n, i) {
|
629
|
-
return
|
629
|
+
return Y(n, i, r);
|
630
630
|
}, {});
|
631
631
|
};
|
632
|
-
var
|
633
|
-
const
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
638
|
-
purpose with or without fee is hereby granted.
|
639
|
-
|
640
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
641
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
642
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
643
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
644
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
645
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
646
|
-
PERFORMANCE OF THIS SOFTWARE.
|
647
|
-
***************************************************************************** */
|
648
|
-
var Ve = function(e, t) {
|
649
|
-
return Ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
632
|
+
var $n = Y, Gn = $n;
|
633
|
+
const Un = /* @__PURE__ */ wn(Gn);
|
634
|
+
var ze = function(e, t) {
|
635
|
+
return ze = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
650
636
|
r.__proto__ = n;
|
651
637
|
} || function(r, n) {
|
652
638
|
for (var i in n)
|
653
639
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
654
|
-
},
|
640
|
+
}, ze(e, t);
|
655
641
|
};
|
656
|
-
function
|
642
|
+
function Be(e, t) {
|
657
643
|
if (typeof t != "function" && t !== null)
|
658
644
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
659
|
-
|
645
|
+
ze(e, t);
|
660
646
|
function r() {
|
661
647
|
this.constructor = e;
|
662
648
|
}
|
663
649
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
664
650
|
}
|
665
|
-
var
|
666
|
-
return
|
651
|
+
var U = function() {
|
652
|
+
return U = Object.assign || function(t) {
|
667
653
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
668
654
|
r = arguments[n];
|
669
655
|
for (var o in r)
|
670
656
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
671
657
|
}
|
672
658
|
return t;
|
673
|
-
},
|
659
|
+
}, U.apply(this, arguments);
|
674
660
|
};
|
675
|
-
function
|
661
|
+
function Dn(e, t) {
|
676
662
|
var r = {};
|
677
663
|
for (var n in e)
|
678
664
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
@@ -681,75 +667,43 @@ function Mn(e, t) {
|
|
681
667
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
682
668
|
return r;
|
683
669
|
}
|
684
|
-
function
|
685
|
-
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
686
|
-
if (r)
|
687
|
-
return r.call(e);
|
688
|
-
if (e && typeof e.length == "number")
|
689
|
-
return {
|
690
|
-
next: function() {
|
691
|
-
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
692
|
-
}
|
693
|
-
};
|
694
|
-
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
695
|
-
}
|
696
|
-
function We(e, t) {
|
697
|
-
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
698
|
-
if (!r)
|
699
|
-
return e;
|
700
|
-
var n = r.call(e), i, o = [], s;
|
701
|
-
try {
|
702
|
-
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
703
|
-
o.push(i.value);
|
704
|
-
} catch (a) {
|
705
|
-
s = { error: a };
|
706
|
-
} finally {
|
707
|
-
try {
|
708
|
-
i && !i.done && (r = n.return) && r.call(n);
|
709
|
-
} finally {
|
710
|
-
if (s)
|
711
|
-
throw s.error;
|
712
|
-
}
|
713
|
-
}
|
714
|
-
return o;
|
715
|
-
}
|
716
|
-
function Y(e, t, r) {
|
670
|
+
function Ge(e, t, r) {
|
717
671
|
if (r || arguments.length === 2)
|
718
672
|
for (var n = 0, i = t.length, o; n < i; n++)
|
719
673
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
720
|
-
return e.concat(o || t);
|
674
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
721
675
|
}
|
722
|
-
function
|
723
|
-
var r = t && t.cache ? t.cache :
|
676
|
+
function Ue(e, t) {
|
677
|
+
var r = t && t.cache ? t.cache : zn, n = t && t.serializer ? t.serializer : Xn, i = t && t.strategy ? t.strategy : kn;
|
724
678
|
return i(e, {
|
725
679
|
cache: r,
|
726
680
|
serializer: n
|
727
681
|
});
|
728
682
|
}
|
729
|
-
function
|
683
|
+
function Fn(e) {
|
730
684
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
731
685
|
}
|
732
|
-
function
|
733
|
-
var i =
|
686
|
+
function jn(e, t, r, n) {
|
687
|
+
var i = Fn(n) ? n : r(n), o = t.get(i);
|
734
688
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
735
689
|
}
|
736
|
-
function
|
690
|
+
function ar(e, t, r) {
|
737
691
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
738
692
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
739
693
|
}
|
740
|
-
function
|
694
|
+
function ur(e, t, r, n, i) {
|
741
695
|
return r.bind(t, e, n, i);
|
742
696
|
}
|
743
|
-
function
|
744
|
-
var r = e.length === 1 ?
|
745
|
-
return
|
697
|
+
function kn(e, t) {
|
698
|
+
var r = e.length === 1 ? jn : ar;
|
699
|
+
return ur(e, this, r, t.cache.create(), t.serializer);
|
746
700
|
}
|
747
|
-
function
|
748
|
-
return
|
701
|
+
function Vn(e, t) {
|
702
|
+
return ur(e, this, ar, t.cache.create(), t.serializer);
|
749
703
|
}
|
750
|
-
var
|
704
|
+
var Xn = function() {
|
751
705
|
return JSON.stringify(arguments);
|
752
|
-
},
|
706
|
+
}, Wn = (
|
753
707
|
/** @class */
|
754
708
|
function() {
|
755
709
|
function e() {
|
@@ -761,61 +715,71 @@ var Dn = function() {
|
|
761
715
|
this.cache[t] = r;
|
762
716
|
}, e;
|
763
717
|
}()
|
764
|
-
),
|
718
|
+
), zn = {
|
765
719
|
create: function() {
|
766
|
-
return new
|
720
|
+
return new Wn();
|
767
721
|
}
|
768
|
-
},
|
769
|
-
variadic:
|
770
|
-
},
|
722
|
+
}, De = {
|
723
|
+
variadic: Vn
|
724
|
+
}, we = function() {
|
725
|
+
return we = Object.assign || function(t) {
|
726
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
727
|
+
r = arguments[n];
|
728
|
+
for (var o in r)
|
729
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
730
|
+
}
|
731
|
+
return t;
|
732
|
+
}, we.apply(this, arguments);
|
733
|
+
};
|
734
|
+
var v;
|
771
735
|
(function(e) {
|
772
736
|
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";
|
773
737
|
})(v || (v = {}));
|
774
|
-
var
|
738
|
+
var x;
|
775
739
|
(function(e) {
|
776
740
|
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";
|
777
|
-
})(
|
778
|
-
var
|
741
|
+
})(x || (x = {}));
|
742
|
+
var K;
|
779
743
|
(function(e) {
|
780
744
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
781
|
-
})(
|
782
|
-
function
|
783
|
-
return e.type ===
|
745
|
+
})(K || (K = {}));
|
746
|
+
function Pt(e) {
|
747
|
+
return e.type === x.literal;
|
784
748
|
}
|
785
|
-
function
|
786
|
-
return e.type ===
|
749
|
+
function Zn(e) {
|
750
|
+
return e.type === x.argument;
|
787
751
|
}
|
788
|
-
function
|
789
|
-
return e.type ===
|
752
|
+
function lr(e) {
|
753
|
+
return e.type === x.number;
|
790
754
|
}
|
791
|
-
function
|
792
|
-
return e.type ===
|
755
|
+
function hr(e) {
|
756
|
+
return e.type === x.date;
|
793
757
|
}
|
794
|
-
function
|
795
|
-
return e.type ===
|
758
|
+
function cr(e) {
|
759
|
+
return e.type === x.time;
|
796
760
|
}
|
797
|
-
function
|
798
|
-
return e.type ===
|
761
|
+
function fr(e) {
|
762
|
+
return e.type === x.select;
|
799
763
|
}
|
800
|
-
function
|
801
|
-
return e.type ===
|
764
|
+
function dr(e) {
|
765
|
+
return e.type === x.plural;
|
802
766
|
}
|
803
|
-
function
|
804
|
-
return e.type ===
|
767
|
+
function Qn(e) {
|
768
|
+
return e.type === x.pound;
|
805
769
|
}
|
806
|
-
function
|
807
|
-
return e.type ===
|
770
|
+
function pr(e) {
|
771
|
+
return e.type === x.tag;
|
808
772
|
}
|
809
|
-
function
|
810
|
-
return !!(e && typeof e == "object" && e.type ===
|
773
|
+
function mr(e) {
|
774
|
+
return !!(e && typeof e == "object" && e.type === K.number);
|
811
775
|
}
|
812
|
-
function
|
813
|
-
return !!(e && typeof e == "object" && e.type ===
|
776
|
+
function Ze(e) {
|
777
|
+
return !!(e && typeof e == "object" && e.type === K.dateTime);
|
814
778
|
}
|
815
|
-
var
|
816
|
-
function
|
779
|
+
var br = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Jn = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
780
|
+
function qn(e) {
|
817
781
|
var t = {};
|
818
|
-
return e.replace(
|
782
|
+
return e.replace(Jn, function(r) {
|
819
783
|
var n = r.length;
|
820
784
|
switch (r[0]) {
|
821
785
|
case "G":
|
@@ -904,18 +868,28 @@ function Wn(e) {
|
|
904
868
|
return "";
|
905
869
|
}), t;
|
906
870
|
}
|
907
|
-
var
|
908
|
-
function
|
871
|
+
var S = function() {
|
872
|
+
return S = Object.assign || function(t) {
|
873
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
874
|
+
r = arguments[n];
|
875
|
+
for (var o in r)
|
876
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
877
|
+
}
|
878
|
+
return t;
|
879
|
+
}, S.apply(this, arguments);
|
880
|
+
};
|
881
|
+
var Yn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
882
|
+
function Kn(e) {
|
909
883
|
if (e.length === 0)
|
910
884
|
throw new Error("Number skeleton cannot be empty");
|
911
|
-
for (var t = e.split(
|
885
|
+
for (var t = e.split(Yn).filter(function(c) {
|
912
886
|
return c.length > 0;
|
913
887
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
914
888
|
var o = i[n], s = o.split("/");
|
915
889
|
if (s.length === 0)
|
916
890
|
throw new Error("Invalid number skeleton");
|
917
|
-
for (var a = s[0], h = s.slice(1),
|
918
|
-
var f = l
|
891
|
+
for (var a = s[0], h = s.slice(1), l = 0, u = h; l < u.length; l++) {
|
892
|
+
var f = u[l];
|
919
893
|
if (f.length === 0)
|
920
894
|
throw new Error("Invalid number skeleton");
|
921
895
|
}
|
@@ -923,17 +897,17 @@ function Zn(e) {
|
|
923
897
|
}
|
924
898
|
return r;
|
925
899
|
}
|
926
|
-
function
|
900
|
+
function ei(e) {
|
927
901
|
return e.replace(/^(.*?)-/, "");
|
928
902
|
}
|
929
|
-
var
|
930
|
-
function
|
903
|
+
var Bt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, gr = /^(@+)?(\+|#+)?[rs]?$/g, ti = /(\*)(0+)|(#+)(0+)|(0+)/g, vr = /^(0+)$/;
|
904
|
+
function At(e) {
|
931
905
|
var t = {};
|
932
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
906
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(gr, function(r, n, i) {
|
933
907
|
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)), "";
|
934
908
|
}), t;
|
935
909
|
}
|
936
|
-
function
|
910
|
+
function yr(e) {
|
937
911
|
switch (e) {
|
938
912
|
case "sign-auto":
|
939
913
|
return {
|
@@ -973,7 +947,7 @@ function pr(e) {
|
|
973
947
|
};
|
974
948
|
}
|
975
949
|
}
|
976
|
-
function
|
950
|
+
function ri(e) {
|
977
951
|
var t;
|
978
952
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
979
953
|
notation: "engineering"
|
@@ -981,17 +955,17 @@ function Jn(e) {
|
|
981
955
|
notation: "scientific"
|
982
956
|
}, e = e.slice(1)), t) {
|
983
957
|
var r = e.slice(0, 2);
|
984
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
958
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !vr.test(e))
|
985
959
|
throw new Error("Malformed concise eng/scientific notation");
|
986
960
|
t.minimumIntegerDigits = e.length;
|
987
961
|
}
|
988
962
|
return t;
|
989
963
|
}
|
990
|
-
function
|
991
|
-
var t = {}, r =
|
964
|
+
function Ot(e) {
|
965
|
+
var t = {}, r = yr(e);
|
992
966
|
return r || t;
|
993
967
|
}
|
994
|
-
function
|
968
|
+
function ni(e) {
|
995
969
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
996
970
|
var i = n[r];
|
997
971
|
switch (i.stem) {
|
@@ -1015,7 +989,7 @@ function Yn(e) {
|
|
1015
989
|
continue;
|
1016
990
|
case "measure-unit":
|
1017
991
|
case "unit":
|
1018
|
-
t.style = "unit", t.unit =
|
992
|
+
t.style = "unit", t.unit = ei(i.options[0]);
|
1019
993
|
continue;
|
1020
994
|
case "compact-short":
|
1021
995
|
case "K":
|
@@ -1026,13 +1000,13 @@ function Yn(e) {
|
|
1026
1000
|
t.notation = "compact", t.compactDisplay = "long";
|
1027
1001
|
continue;
|
1028
1002
|
case "scientific":
|
1029
|
-
t =
|
1030
|
-
return
|
1003
|
+
t = S(S(S({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
|
1004
|
+
return S(S({}, h), Ot(l));
|
1031
1005
|
}, {}));
|
1032
1006
|
continue;
|
1033
1007
|
case "engineering":
|
1034
|
-
t =
|
1035
|
-
return
|
1008
|
+
t = S(S(S({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
|
1009
|
+
return S(S({}, h), Ot(l));
|
1036
1010
|
}, {}));
|
1037
1011
|
continue;
|
1038
1012
|
case "notation-simple":
|
@@ -1077,9 +1051,9 @@ function Yn(e) {
|
|
1077
1051
|
case "integer-width":
|
1078
1052
|
if (i.options.length > 1)
|
1079
1053
|
throw new RangeError("integer-width stems only accept a single optional option");
|
1080
|
-
i.options[0].replace(
|
1081
|
-
if (
|
1082
|
-
t.minimumIntegerDigits =
|
1054
|
+
i.options[0].replace(ti, function(h, l, u, f, c, d) {
|
1055
|
+
if (l)
|
1056
|
+
t.minimumIntegerDigits = u.length;
|
1083
1057
|
else {
|
1084
1058
|
if (f && c)
|
1085
1059
|
throw new Error("We currently do not support maximum integer digits");
|
@@ -1090,28 +1064,28 @@ function Yn(e) {
|
|
1090
1064
|
});
|
1091
1065
|
continue;
|
1092
1066
|
}
|
1093
|
-
if (
|
1067
|
+
if (vr.test(i.stem)) {
|
1094
1068
|
t.minimumIntegerDigits = i.stem.length;
|
1095
1069
|
continue;
|
1096
1070
|
}
|
1097
|
-
if (
|
1071
|
+
if (Bt.test(i.stem)) {
|
1098
1072
|
if (i.options.length > 1)
|
1099
1073
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1100
|
-
i.stem.replace(
|
1101
|
-
return
|
1074
|
+
i.stem.replace(Bt, function(h, l, u, f, c, d) {
|
1075
|
+
return u === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
1102
1076
|
});
|
1103
1077
|
var o = i.options[0];
|
1104
|
-
o === "w" ? t =
|
1078
|
+
o === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = S(S({}, t), At(o)));
|
1105
1079
|
continue;
|
1106
1080
|
}
|
1107
|
-
if (
|
1108
|
-
t =
|
1081
|
+
if (gr.test(i.stem)) {
|
1082
|
+
t = S(S({}, t), At(i.stem));
|
1109
1083
|
continue;
|
1110
1084
|
}
|
1111
|
-
var s =
|
1112
|
-
s && (t =
|
1113
|
-
var a =
|
1114
|
-
a && (t =
|
1085
|
+
var s = yr(i.stem);
|
1086
|
+
s && (t = S(S({}, t), s));
|
1087
|
+
var a = ri(i.stem);
|
1088
|
+
a && (t = S(S({}, t), a));
|
1115
1089
|
}
|
1116
1090
|
return t;
|
1117
1091
|
}
|
@@ -2530,23 +2504,23 @@ var pe = {
|
|
2530
2504
|
"h"
|
2531
2505
|
]
|
2532
2506
|
};
|
2533
|
-
function
|
2507
|
+
function ii(e, t) {
|
2534
2508
|
for (var r = "", n = 0; n < e.length; n++) {
|
2535
2509
|
var i = e.charAt(n);
|
2536
2510
|
if (i === "j") {
|
2537
2511
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2538
2512
|
o++, n++;
|
2539
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a",
|
2540
|
-
for ((
|
2513
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", l = oi(t);
|
2514
|
+
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
2541
2515
|
r += h;
|
2542
2516
|
for (; s-- > 0; )
|
2543
|
-
r =
|
2517
|
+
r = l + r;
|
2544
2518
|
} else
|
2545
2519
|
i === "J" ? r += "H" : r += i;
|
2546
2520
|
}
|
2547
2521
|
return r;
|
2548
2522
|
}
|
2549
|
-
function
|
2523
|
+
function oi(e) {
|
2550
2524
|
var t = e.hourCycle;
|
2551
2525
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
2552
2526
|
e.hourCycles && // @ts-ignore
|
@@ -2568,20 +2542,20 @@ function ei(e) {
|
|
2568
2542
|
var i = pe[n || ""] || pe[r || ""] || pe["".concat(r, "-001")] || pe["001"];
|
2569
2543
|
return i[0];
|
2570
2544
|
}
|
2571
|
-
var
|
2545
|
+
var Fe, si = new RegExp("^".concat(br.source, "*")), ai = new RegExp("".concat(br.source, "*$"));
|
2572
2546
|
function y(e, t) {
|
2573
2547
|
return { start: e, end: t };
|
2574
2548
|
}
|
2575
|
-
var
|
2549
|
+
var ui = !!String.prototype.startsWith && "_a".startsWith("a", 1), li = !!String.fromCodePoint, hi = !!Object.fromEntries, ci = !!String.prototype.codePointAt, fi = !!String.prototype.trimStart, di = !!String.prototype.trimEnd, pi = !!Number.isSafeInteger, mi = pi ? Number.isSafeInteger : function(e) {
|
2576
2550
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
2577
|
-
},
|
2551
|
+
}, Qe = !0;
|
2578
2552
|
try {
|
2579
|
-
var
|
2580
|
-
|
2553
|
+
var bi = Er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2554
|
+
Qe = ((Fe = bi.exec("a")) === null || Fe === void 0 ? void 0 : Fe[0]) === "a";
|
2581
2555
|
} catch (e) {
|
2582
|
-
|
2556
|
+
Qe = !1;
|
2583
2557
|
}
|
2584
|
-
var
|
2558
|
+
var Lt = ui ? (
|
2585
2559
|
// Native
|
2586
2560
|
function(t, r, n) {
|
2587
2561
|
return t.startsWith(r, n);
|
@@ -2591,7 +2565,7 @@ var Ct = ni ? (
|
|
2591
2565
|
function(t, r, n) {
|
2592
2566
|
return t.slice(n, n + r.length) === r;
|
2593
2567
|
}
|
2594
|
-
),
|
2568
|
+
), Je = li ? String.fromCodePoint : (
|
2595
2569
|
// IE11
|
2596
2570
|
function() {
|
2597
2571
|
for (var t = [], r = 0; r < arguments.length; r++)
|
@@ -2603,9 +2577,9 @@ var Ct = ni ? (
|
|
2603
2577
|
}
|
2604
2578
|
return n;
|
2605
2579
|
}
|
2606
|
-
),
|
2580
|
+
), It = (
|
2607
2581
|
// native
|
2608
|
-
|
2582
|
+
hi ? Object.fromEntries : (
|
2609
2583
|
// Ponyfill
|
2610
2584
|
function(t) {
|
2611
2585
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
@@ -2615,7 +2589,7 @@ var Ct = ni ? (
|
|
2615
2589
|
return r;
|
2616
2590
|
}
|
2617
2591
|
)
|
2618
|
-
),
|
2592
|
+
), _r = ci ? (
|
2619
2593
|
// Native
|
2620
2594
|
function(t, r) {
|
2621
2595
|
return t.codePointAt(r);
|
@@ -2629,7 +2603,7 @@ var Ct = ni ? (
|
|
2629
2603
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
2630
2604
|
}
|
2631
2605
|
}
|
2632
|
-
),
|
2606
|
+
), gi = fi ? (
|
2633
2607
|
// Native
|
2634
2608
|
function(t) {
|
2635
2609
|
return t.trimStart();
|
@@ -2637,9 +2611,9 @@ var Ct = ni ? (
|
|
2637
2611
|
) : (
|
2638
2612
|
// Ponyfill
|
2639
2613
|
function(t) {
|
2640
|
-
return t.replace(
|
2614
|
+
return t.replace(si, "");
|
2641
2615
|
}
|
2642
|
-
),
|
2616
|
+
), vi = di ? (
|
2643
2617
|
// Native
|
2644
2618
|
function(t) {
|
2645
2619
|
return t.trimEnd();
|
@@ -2647,32 +2621,32 @@ var Ct = ni ? (
|
|
2647
2621
|
) : (
|
2648
2622
|
// Ponyfill
|
2649
2623
|
function(t) {
|
2650
|
-
return t.replace(
|
2624
|
+
return t.replace(ai, "");
|
2651
2625
|
}
|
2652
2626
|
);
|
2653
|
-
function
|
2627
|
+
function Er(e, t) {
|
2654
2628
|
return new RegExp(e, t);
|
2655
2629
|
}
|
2656
2630
|
var qe;
|
2657
|
-
if (
|
2658
|
-
var
|
2631
|
+
if (Qe) {
|
2632
|
+
var Nt = Er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2659
2633
|
qe = function(t, r) {
|
2660
2634
|
var n;
|
2661
|
-
|
2662
|
-
var i =
|
2635
|
+
Nt.lastIndex = r;
|
2636
|
+
var i = Nt.exec(t);
|
2663
2637
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
2664
2638
|
};
|
2665
2639
|
} else
|
2666
2640
|
qe = function(t, r) {
|
2667
2641
|
for (var n = []; ; ) {
|
2668
|
-
var i =
|
2669
|
-
if (i === void 0 ||
|
2642
|
+
var i = _r(t, r);
|
2643
|
+
if (i === void 0 || xr(i) || xi(i))
|
2670
2644
|
break;
|
2671
2645
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
2672
2646
|
}
|
2673
|
-
return
|
2647
|
+
return Je.apply(void 0, n);
|
2674
2648
|
};
|
2675
|
-
var
|
2649
|
+
var yi = (
|
2676
2650
|
/** @class */
|
2677
2651
|
function() {
|
2678
2652
|
function e(t, r) {
|
@@ -2696,14 +2670,14 @@ var pi = (
|
|
2696
2670
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
2697
2671
|
var a = this.clonePosition();
|
2698
2672
|
this.bump(), i.push({
|
2699
|
-
type:
|
2673
|
+
type: x.pound,
|
2700
2674
|
location: y(a, this.clonePosition())
|
2701
2675
|
});
|
2702
2676
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
2703
2677
|
if (n)
|
2704
2678
|
break;
|
2705
2679
|
return this.error(v.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
2706
|
-
} else if (o === 60 && !this.ignoreTag &&
|
2680
|
+
} else if (o === 60 && !this.ignoreTag && Ye(this.peek() || 0)) {
|
2707
2681
|
var s = this.parseTag(t, r);
|
2708
2682
|
if (s.err)
|
2709
2683
|
return s;
|
@@ -2724,7 +2698,7 @@ var pi = (
|
|
2724
2698
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
2725
2699
|
return {
|
2726
2700
|
val: {
|
2727
|
-
type:
|
2701
|
+
type: x.literal,
|
2728
2702
|
value: "<".concat(i, "/>"),
|
2729
2703
|
location: y(n, this.clonePosition())
|
2730
2704
|
},
|
@@ -2736,12 +2710,12 @@ var pi = (
|
|
2736
2710
|
return o;
|
2737
2711
|
var s = o.val, a = this.clonePosition();
|
2738
2712
|
if (this.bumpIf("</")) {
|
2739
|
-
if (this.isEOF() || !
|
2713
|
+
if (this.isEOF() || !Ye(this.char()))
|
2740
2714
|
return this.error(v.INVALID_TAG, y(a, this.clonePosition()));
|
2741
|
-
var h = this.clonePosition(),
|
2742
|
-
return i !==
|
2715
|
+
var h = this.clonePosition(), l = this.parseTagName();
|
2716
|
+
return i !== l ? this.error(v.UNMATCHED_CLOSING_TAG, y(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
2743
2717
|
val: {
|
2744
|
-
type:
|
2718
|
+
type: x.tag,
|
2745
2719
|
value: i,
|
2746
2720
|
children: s,
|
2747
2721
|
location: y(n, this.clonePosition())
|
@@ -2754,7 +2728,7 @@ var pi = (
|
|
2754
2728
|
return this.error(v.INVALID_TAG, y(n, this.clonePosition()));
|
2755
2729
|
}, e.prototype.parseTagName = function() {
|
2756
2730
|
var t = this.offset();
|
2757
|
-
for (this.bump(); !this.isEOF() &&
|
2731
|
+
for (this.bump(); !this.isEOF() && Ei(this.char()); )
|
2758
2732
|
this.bump();
|
2759
2733
|
return this.message.slice(t, this.offset());
|
2760
2734
|
}, e.prototype.parseLiteral = function(t, r) {
|
@@ -2778,12 +2752,12 @@ var pi = (
|
|
2778
2752
|
}
|
2779
2753
|
var h = y(n, this.clonePosition());
|
2780
2754
|
return {
|
2781
|
-
val: { type:
|
2755
|
+
val: { type: x.literal, value: i, location: h },
|
2782
2756
|
err: null
|
2783
2757
|
};
|
2784
2758
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
2785
2759
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
2786
|
-
!
|
2760
|
+
!_i(this.peek() || 0)) ? (this.bump(), "<") : null;
|
2787
2761
|
}, e.prototype.tryParseQuote = function(t) {
|
2788
2762
|
if (this.isEOF() || this.char() !== 39)
|
2789
2763
|
return null;
|
@@ -2817,12 +2791,12 @@ var pi = (
|
|
2817
2791
|
r.push(n);
|
2818
2792
|
this.bump();
|
2819
2793
|
}
|
2820
|
-
return
|
2794
|
+
return Je.apply(void 0, r);
|
2821
2795
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
2822
2796
|
if (this.isEOF())
|
2823
2797
|
return null;
|
2824
2798
|
var n = this.char();
|
2825
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
2799
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Je(n));
|
2826
2800
|
}, e.prototype.parseArgument = function(t, r) {
|
2827
2801
|
var n = this.clonePosition();
|
2828
2802
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
@@ -2838,7 +2812,7 @@ var pi = (
|
|
2838
2812
|
case 125:
|
2839
2813
|
return this.bump(), {
|
2840
2814
|
val: {
|
2841
|
-
type:
|
2815
|
+
type: x.argument,
|
2842
2816
|
// value does not include the opening and closing braces.
|
2843
2817
|
value: i,
|
2844
2818
|
location: y(n, this.clonePosition())
|
@@ -2864,41 +2838,41 @@ var pi = (
|
|
2864
2838
|
case "date":
|
2865
2839
|
case "time": {
|
2866
2840
|
this.bumpSpace();
|
2867
|
-
var
|
2841
|
+
var l = null;
|
2868
2842
|
if (this.bumpIf(",")) {
|
2869
2843
|
this.bumpSpace();
|
2870
|
-
var
|
2844
|
+
var u = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
2871
2845
|
if (f.err)
|
2872
2846
|
return f;
|
2873
|
-
var c =
|
2847
|
+
var c = vi(f.val);
|
2874
2848
|
if (c.length === 0)
|
2875
2849
|
return this.error(v.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
2876
|
-
var d = y(
|
2877
|
-
|
2850
|
+
var d = y(u, this.clonePosition());
|
2851
|
+
l = { style: c, styleLocation: d };
|
2878
2852
|
}
|
2879
2853
|
var m = this.tryParseArgumentClose(i);
|
2880
2854
|
if (m.err)
|
2881
2855
|
return m;
|
2882
2856
|
var b = y(i, this.clonePosition());
|
2883
|
-
if (
|
2884
|
-
var g =
|
2857
|
+
if (l && Lt(l == null ? void 0 : l.style, "::", 0)) {
|
2858
|
+
var g = gi(l.style.slice(2));
|
2885
2859
|
if (a === "number") {
|
2886
|
-
var f = this.parseNumberSkeletonFromString(g,
|
2860
|
+
var f = this.parseNumberSkeletonFromString(g, l.styleLocation);
|
2887
2861
|
return f.err ? f : {
|
2888
|
-
val: { type:
|
2862
|
+
val: { type: x.number, value: n, location: b, style: f.val },
|
2889
2863
|
err: null
|
2890
2864
|
};
|
2891
2865
|
} else {
|
2892
2866
|
if (g.length === 0)
|
2893
2867
|
return this.error(v.EXPECT_DATE_TIME_SKELETON, b);
|
2894
|
-
var
|
2895
|
-
this.locale && (
|
2868
|
+
var _ = g;
|
2869
|
+
this.locale && (_ = ii(g, this.locale));
|
2896
2870
|
var c = {
|
2897
|
-
type:
|
2898
|
-
pattern:
|
2899
|
-
location:
|
2900
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2901
|
-
}, E = a === "date" ?
|
2871
|
+
type: K.dateTime,
|
2872
|
+
pattern: _,
|
2873
|
+
location: l.styleLocation,
|
2874
|
+
parsedOptions: this.shouldParseSkeletons ? qn(_) : {}
|
2875
|
+
}, E = a === "date" ? x.date : x.time;
|
2902
2876
|
return {
|
2903
2877
|
val: { type: E, value: n, location: b, style: c },
|
2904
2878
|
err: null
|
@@ -2907,10 +2881,10 @@ var pi = (
|
|
2907
2881
|
}
|
2908
2882
|
return {
|
2909
2883
|
val: {
|
2910
|
-
type: a === "number" ?
|
2884
|
+
type: a === "number" ? x.number : a === "date" ? x.date : x.time,
|
2911
2885
|
value: n,
|
2912
2886
|
location: b,
|
2913
|
-
style: (o =
|
2887
|
+
style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
|
2914
2888
|
},
|
2915
2889
|
err: null
|
2916
2890
|
};
|
@@ -2920,7 +2894,7 @@ var pi = (
|
|
2920
2894
|
case "select": {
|
2921
2895
|
var w = this.clonePosition();
|
2922
2896
|
if (this.bumpSpace(), !this.bumpIf(","))
|
2923
|
-
return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, y(w,
|
2897
|
+
return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, y(w, we({}, w)));
|
2924
2898
|
this.bumpSpace();
|
2925
2899
|
var T = this.parseIdentifierIfPossible(), O = 0;
|
2926
2900
|
if (a !== "select" && T.value === "offset") {
|
@@ -2941,17 +2915,17 @@ var pi = (
|
|
2941
2915
|
var z = y(i, this.clonePosition());
|
2942
2916
|
return a === "select" ? {
|
2943
2917
|
val: {
|
2944
|
-
type:
|
2918
|
+
type: x.select,
|
2945
2919
|
value: n,
|
2946
|
-
options:
|
2920
|
+
options: It(V.val),
|
2947
2921
|
location: z
|
2948
2922
|
},
|
2949
2923
|
err: null
|
2950
2924
|
} : {
|
2951
2925
|
val: {
|
2952
|
-
type:
|
2926
|
+
type: x.plural,
|
2953
2927
|
value: n,
|
2954
|
-
options:
|
2928
|
+
options: It(V.val),
|
2955
2929
|
offset: O,
|
2956
2930
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
2957
2931
|
location: z
|
@@ -3002,34 +2976,34 @@ var pi = (
|
|
3002
2976
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
3003
2977
|
var n = [];
|
3004
2978
|
try {
|
3005
|
-
n =
|
2979
|
+
n = Kn(t);
|
3006
2980
|
} catch (i) {
|
3007
2981
|
return this.error(v.INVALID_NUMBER_SKELETON, r);
|
3008
2982
|
}
|
3009
2983
|
return {
|
3010
2984
|
val: {
|
3011
|
-
type:
|
2985
|
+
type: K.number,
|
3012
2986
|
tokens: n,
|
3013
2987
|
location: r,
|
3014
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2988
|
+
parsedOptions: this.shouldParseSkeletons ? ni(n) : {}
|
3015
2989
|
},
|
3016
2990
|
err: null
|
3017
2991
|
};
|
3018
2992
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
3019
|
-
for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(),
|
3020
|
-
if (
|
2993
|
+
for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), l = i.value, u = i.location; ; ) {
|
2994
|
+
if (l.length === 0) {
|
3021
2995
|
var f = this.clonePosition();
|
3022
2996
|
if (r !== "select" && this.bumpIf("=")) {
|
3023
2997
|
var c = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_SELECTOR, v.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
3024
2998
|
if (c.err)
|
3025
2999
|
return c;
|
3026
|
-
|
3000
|
+
u = y(f, this.clonePosition()), l = this.message.slice(f.offset, this.offset());
|
3027
3001
|
} else
|
3028
3002
|
break;
|
3029
3003
|
}
|
3030
|
-
if (h.has(
|
3031
|
-
return this.error(r === "select" ? v.DUPLICATE_SELECT_ARGUMENT_SELECTOR : v.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,
|
3032
|
-
|
3004
|
+
if (h.has(l))
|
3005
|
+
return this.error(r === "select" ? v.DUPLICATE_SELECT_ARGUMENT_SELECTOR : v.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
|
3006
|
+
l === "other" && (s = !0), this.bumpSpace();
|
3033
3007
|
var d = this.clonePosition();
|
3034
3008
|
if (!this.bumpIf("{"))
|
3035
3009
|
return this.error(r === "select" ? v.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : v.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
|
@@ -3040,12 +3014,12 @@ var pi = (
|
|
3040
3014
|
if (b.err)
|
3041
3015
|
return b;
|
3042
3016
|
a.push([
|
3043
|
-
|
3017
|
+
l,
|
3044
3018
|
{
|
3045
3019
|
value: m.val,
|
3046
3020
|
location: y(d, this.clonePosition())
|
3047
3021
|
}
|
3048
|
-
]), h.add(
|
3022
|
+
]), h.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, u = o.location;
|
3049
3023
|
}
|
3050
3024
|
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 };
|
3051
3025
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
@@ -3059,7 +3033,7 @@ var pi = (
|
|
3059
3033
|
break;
|
3060
3034
|
}
|
3061
3035
|
var h = y(i, this.clonePosition());
|
3062
|
-
return o ? (s *= n,
|
3036
|
+
return o ? (s *= n, mi(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
3063
3037
|
}, e.prototype.offset = function() {
|
3064
3038
|
return this.position.offset;
|
3065
3039
|
}, e.prototype.isEOF = function() {
|
@@ -3074,7 +3048,7 @@ var pi = (
|
|
3074
3048
|
var t = this.position.offset;
|
3075
3049
|
if (t >= this.message.length)
|
3076
3050
|
throw Error("out of bound");
|
3077
|
-
var r =
|
3051
|
+
var r = _r(this.message, t);
|
3078
3052
|
if (r === void 0)
|
3079
3053
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
3080
3054
|
return r;
|
@@ -3093,7 +3067,7 @@ var pi = (
|
|
3093
3067
|
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);
|
3094
3068
|
}
|
3095
3069
|
}, e.prototype.bumpIf = function(t) {
|
3096
|
-
if (
|
3070
|
+
if (Lt(this.message, t, this.offset())) {
|
3097
3071
|
for (var r = 0; r < t.length; r++)
|
3098
3072
|
this.bump();
|
3099
3073
|
return !0;
|
@@ -3115,7 +3089,7 @@ var pi = (
|
|
3115
3089
|
break;
|
3116
3090
|
}
|
3117
3091
|
}, e.prototype.bumpSpace = function() {
|
3118
|
-
for (; !this.isEOF() &&
|
3092
|
+
for (; !this.isEOF() && xr(this.char()); )
|
3119
3093
|
this.bump();
|
3120
3094
|
}, e.prototype.peek = function() {
|
3121
3095
|
if (this.isEOF())
|
@@ -3125,47 +3099,47 @@ var pi = (
|
|
3125
3099
|
}, e;
|
3126
3100
|
}()
|
3127
3101
|
);
|
3128
|
-
function
|
3102
|
+
function Ye(e) {
|
3129
3103
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3130
3104
|
}
|
3131
|
-
function
|
3132
|
-
return
|
3105
|
+
function _i(e) {
|
3106
|
+
return Ye(e) || e === 47;
|
3133
3107
|
}
|
3134
|
-
function
|
3108
|
+
function Ei(e) {
|
3135
3109
|
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;
|
3136
3110
|
}
|
3137
|
-
function
|
3111
|
+
function xr(e) {
|
3138
3112
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3139
3113
|
}
|
3140
|
-
function
|
3114
|
+
function xi(e) {
|
3141
3115
|
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;
|
3142
3116
|
}
|
3143
|
-
function
|
3117
|
+
function Ke(e) {
|
3144
3118
|
e.forEach(function(t) {
|
3145
|
-
if (delete t.location,
|
3119
|
+
if (delete t.location, fr(t) || dr(t))
|
3146
3120
|
for (var r in t.options)
|
3147
|
-
delete t.options[r].location,
|
3121
|
+
delete t.options[r].location, Ke(t.options[r].value);
|
3148
3122
|
else
|
3149
|
-
|
3123
|
+
lr(t) && mr(t.style) || (hr(t) || cr(t)) && Ze(t.style) ? delete t.style.location : pr(t) && Ke(t.children);
|
3150
3124
|
});
|
3151
3125
|
}
|
3152
|
-
function
|
3153
|
-
t === void 0 && (t = {}), t =
|
3154
|
-
var r = new
|
3126
|
+
function Si(e, t) {
|
3127
|
+
t === void 0 && (t = {}), t = we({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3128
|
+
var r = new yi(e, t).parse();
|
3155
3129
|
if (r.err) {
|
3156
3130
|
var n = SyntaxError(v[r.err.kind]);
|
3157
3131
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
3158
3132
|
}
|
3159
|
-
return t != null && t.captureLocation ||
|
3133
|
+
return t != null && t.captureLocation || Ke(r.val), r.val;
|
3160
3134
|
}
|
3161
|
-
var
|
3135
|
+
var ee;
|
3162
3136
|
(function(e) {
|
3163
3137
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
3164
|
-
})(
|
3165
|
-
var
|
3138
|
+
})(ee || (ee = {}));
|
3139
|
+
var Ae = (
|
3166
3140
|
/** @class */
|
3167
3141
|
function(e) {
|
3168
|
-
|
3142
|
+
Be(t, e);
|
3169
3143
|
function t(r, n, i) {
|
3170
3144
|
var o = e.call(this, r) || this;
|
3171
3145
|
return o.code = n, o.originalMessage = i, o;
|
@@ -3174,110 +3148,110 @@ var Pe = (
|
|
3174
3148
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3175
3149
|
}, t;
|
3176
3150
|
}(Error)
|
3177
|
-
),
|
3151
|
+
), Mt = (
|
3178
3152
|
/** @class */
|
3179
3153
|
function(e) {
|
3180
|
-
|
3154
|
+
Be(t, e);
|
3181
3155
|
function t(r, n, i, o) {
|
3182
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
3156
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ee.INVALID_VALUE, o) || this;
|
3183
3157
|
}
|
3184
3158
|
return t;
|
3185
|
-
}(
|
3186
|
-
),
|
3159
|
+
}(Ae)
|
3160
|
+
), wi = (
|
3187
3161
|
/** @class */
|
3188
3162
|
function(e) {
|
3189
|
-
|
3163
|
+
Be(t, e);
|
3190
3164
|
function t(r, n, i) {
|
3191
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
3165
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ee.INVALID_VALUE, i) || this;
|
3192
3166
|
}
|
3193
3167
|
return t;
|
3194
|
-
}(
|
3195
|
-
),
|
3168
|
+
}(Ae)
|
3169
|
+
), Ti = (
|
3196
3170
|
/** @class */
|
3197
3171
|
function(e) {
|
3198
|
-
|
3172
|
+
Be(t, e);
|
3199
3173
|
function t(r, n) {
|
3200
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
3174
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ee.MISSING_VALUE, n) || this;
|
3201
3175
|
}
|
3202
3176
|
return t;
|
3203
|
-
}(
|
3177
|
+
}(Ae)
|
3204
3178
|
), A;
|
3205
3179
|
(function(e) {
|
3206
3180
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3207
3181
|
})(A || (A = {}));
|
3208
|
-
function
|
3182
|
+
function Hi(e) {
|
3209
3183
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3210
3184
|
var n = t[t.length - 1];
|
3211
3185
|
return !n || n.type !== A.literal || r.type !== A.literal ? t.push(r) : n.value += r.value, t;
|
3212
3186
|
}, []);
|
3213
3187
|
}
|
3214
|
-
function
|
3188
|
+
function Ci(e) {
|
3215
3189
|
return typeof e == "function";
|
3216
3190
|
}
|
3217
3191
|
function ge(e, t, r, n, i, o, s) {
|
3218
|
-
if (e.length === 1 &&
|
3192
|
+
if (e.length === 1 && Pt(e[0]))
|
3219
3193
|
return [
|
3220
3194
|
{
|
3221
3195
|
type: A.literal,
|
3222
3196
|
value: e[0].value
|
3223
3197
|
}
|
3224
3198
|
];
|
3225
|
-
for (var a = [], h = 0,
|
3226
|
-
var
|
3227
|
-
if (
|
3199
|
+
for (var a = [], h = 0, l = e; h < l.length; h++) {
|
3200
|
+
var u = l[h];
|
3201
|
+
if (Pt(u)) {
|
3228
3202
|
a.push({
|
3229
3203
|
type: A.literal,
|
3230
|
-
value:
|
3204
|
+
value: u.value
|
3231
3205
|
});
|
3232
3206
|
continue;
|
3233
3207
|
}
|
3234
|
-
if (
|
3208
|
+
if (Qn(u)) {
|
3235
3209
|
typeof o == "number" && a.push({
|
3236
3210
|
type: A.literal,
|
3237
3211
|
value: r.getNumberFormat(t).format(o)
|
3238
3212
|
});
|
3239
3213
|
continue;
|
3240
3214
|
}
|
3241
|
-
var f =
|
3215
|
+
var f = u.value;
|
3242
3216
|
if (!(i && f in i))
|
3243
|
-
throw new
|
3217
|
+
throw new Ti(f, s);
|
3244
3218
|
var c = i[f];
|
3245
|
-
if (
|
3219
|
+
if (Zn(u)) {
|
3246
3220
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
3247
3221
|
type: typeof c == "string" ? A.literal : A.object,
|
3248
3222
|
value: c
|
3249
3223
|
});
|
3250
3224
|
continue;
|
3251
3225
|
}
|
3252
|
-
if (
|
3253
|
-
var d = typeof
|
3226
|
+
if (hr(u)) {
|
3227
|
+
var d = typeof u.style == "string" ? n.date[u.style] : Ze(u.style) ? u.style.parsedOptions : void 0;
|
3254
3228
|
a.push({
|
3255
3229
|
type: A.literal,
|
3256
3230
|
value: r.getDateTimeFormat(t, d).format(c)
|
3257
3231
|
});
|
3258
3232
|
continue;
|
3259
3233
|
}
|
3260
|
-
if (
|
3261
|
-
var d = typeof
|
3234
|
+
if (cr(u)) {
|
3235
|
+
var d = typeof u.style == "string" ? n.time[u.style] : Ze(u.style) ? u.style.parsedOptions : n.time.medium;
|
3262
3236
|
a.push({
|
3263
3237
|
type: A.literal,
|
3264
3238
|
value: r.getDateTimeFormat(t, d).format(c)
|
3265
3239
|
});
|
3266
3240
|
continue;
|
3267
3241
|
}
|
3268
|
-
if (
|
3269
|
-
var d = typeof
|
3242
|
+
if (lr(u)) {
|
3243
|
+
var d = typeof u.style == "string" ? n.number[u.style] : mr(u.style) ? u.style.parsedOptions : void 0;
|
3270
3244
|
d && d.scale && (c = c * (d.scale || 1)), a.push({
|
3271
3245
|
type: A.literal,
|
3272
3246
|
value: r.getNumberFormat(t, d).format(c)
|
3273
3247
|
});
|
3274
3248
|
continue;
|
3275
3249
|
}
|
3276
|
-
if (
|
3277
|
-
var m =
|
3278
|
-
if (!
|
3279
|
-
throw new
|
3280
|
-
var
|
3250
|
+
if (pr(u)) {
|
3251
|
+
var m = u.children, b = u.value, g = i[b];
|
3252
|
+
if (!Ci(g))
|
3253
|
+
throw new wi(b, "function", s);
|
3254
|
+
var _ = ge(m, t, r, n, i, o), E = g(_.map(function(O) {
|
3281
3255
|
return O.value;
|
3282
3256
|
}));
|
3283
3257
|
Array.isArray(E) || (E = [E]), a.push.apply(a, E.map(function(O) {
|
@@ -3287,42 +3261,42 @@ function ge(e, t, r, n, i, o, s) {
|
|
3287
3261
|
};
|
3288
3262
|
}));
|
3289
3263
|
}
|
3290
|
-
if (
|
3291
|
-
var w =
|
3264
|
+
if (fr(u)) {
|
3265
|
+
var w = u.options[c] || u.options.other;
|
3292
3266
|
if (!w)
|
3293
|
-
throw new
|
3267
|
+
throw new Mt(u.value, c, Object.keys(u.options), s);
|
3294
3268
|
a.push.apply(a, ge(w.value, t, r, n, i));
|
3295
3269
|
continue;
|
3296
3270
|
}
|
3297
|
-
if (
|
3298
|
-
var w =
|
3271
|
+
if (dr(u)) {
|
3272
|
+
var w = u.options["=".concat(c)];
|
3299
3273
|
if (!w) {
|
3300
3274
|
if (!Intl.PluralRules)
|
3301
|
-
throw new
|
3275
|
+
throw new Ae(`Intl.PluralRules is not available in this environment.
|
3302
3276
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3303
|
-
`,
|
3304
|
-
var T = r.getPluralRules(t, { type:
|
3305
|
-
w =
|
3277
|
+
`, ee.MISSING_INTL_API, s);
|
3278
|
+
var T = r.getPluralRules(t, { type: u.pluralType }).select(c - (u.offset || 0));
|
3279
|
+
w = u.options[T] || u.options.other;
|
3306
3280
|
}
|
3307
3281
|
if (!w)
|
3308
|
-
throw new
|
3309
|
-
a.push.apply(a, ge(w.value, t, r, n, i, c - (
|
3282
|
+
throw new Mt(u.value, c, Object.keys(u.options), s);
|
3283
|
+
a.push.apply(a, ge(w.value, t, r, n, i, c - (u.offset || 0)));
|
3310
3284
|
continue;
|
3311
3285
|
}
|
3312
3286
|
}
|
3313
|
-
return
|
3287
|
+
return Hi(a);
|
3314
3288
|
}
|
3315
|
-
function
|
3316
|
-
return t ?
|
3317
|
-
return r[n] =
|
3289
|
+
function Pi(e, t) {
|
3290
|
+
return t ? U(U(U({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3291
|
+
return r[n] = U(U({}, e[n]), t[n] || {}), r;
|
3318
3292
|
}, {})) : e;
|
3319
3293
|
}
|
3320
|
-
function
|
3294
|
+
function Bi(e, t) {
|
3321
3295
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3322
|
-
return r[n] =
|
3323
|
-
},
|
3296
|
+
return r[n] = Pi(e[n], t[n]), r;
|
3297
|
+
}, U({}, e)) : e;
|
3324
3298
|
}
|
3325
|
-
function
|
3299
|
+
function je(e) {
|
3326
3300
|
return {
|
3327
3301
|
create: function() {
|
3328
3302
|
return {
|
@@ -3336,39 +3310,39 @@ function Ue(e) {
|
|
3336
3310
|
}
|
3337
3311
|
};
|
3338
3312
|
}
|
3339
|
-
function
|
3313
|
+
function Ai(e) {
|
3340
3314
|
return e === void 0 && (e = {
|
3341
3315
|
number: {},
|
3342
3316
|
dateTime: {},
|
3343
3317
|
pluralRules: {}
|
3344
3318
|
}), {
|
3345
|
-
getNumberFormat:
|
3319
|
+
getNumberFormat: Ue(function() {
|
3346
3320
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3347
3321
|
r[n] = arguments[n];
|
3348
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
3322
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ge([void 0], r, !1)))();
|
3349
3323
|
}, {
|
3350
|
-
cache:
|
3351
|
-
strategy:
|
3324
|
+
cache: je(e.number),
|
3325
|
+
strategy: De.variadic
|
3352
3326
|
}),
|
3353
|
-
getDateTimeFormat:
|
3327
|
+
getDateTimeFormat: Ue(function() {
|
3354
3328
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3355
3329
|
r[n] = arguments[n];
|
3356
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
3330
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ge([void 0], r, !1)))();
|
3357
3331
|
}, {
|
3358
|
-
cache:
|
3359
|
-
strategy:
|
3332
|
+
cache: je(e.dateTime),
|
3333
|
+
strategy: De.variadic
|
3360
3334
|
}),
|
3361
|
-
getPluralRules:
|
3335
|
+
getPluralRules: Ue(function() {
|
3362
3336
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3363
3337
|
r[n] = arguments[n];
|
3364
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
3338
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ge([void 0], r, !1)))();
|
3365
3339
|
}, {
|
3366
|
-
cache:
|
3367
|
-
strategy:
|
3340
|
+
cache: je(e.pluralRules),
|
3341
|
+
strategy: De.variadic
|
3368
3342
|
})
|
3369
3343
|
};
|
3370
3344
|
}
|
3371
|
-
var
|
3345
|
+
var Oi = (
|
3372
3346
|
/** @class */
|
3373
3347
|
function() {
|
3374
3348
|
function e(t, r, n, i) {
|
@@ -3379,13 +3353,13 @@ var Hi = (
|
|
3379
3353
|
dateTime: {},
|
3380
3354
|
pluralRules: {}
|
3381
3355
|
}, this.format = function(h) {
|
3382
|
-
var
|
3383
|
-
if (
|
3384
|
-
return
|
3385
|
-
var
|
3356
|
+
var l = o.formatToParts(h);
|
3357
|
+
if (l.length === 1)
|
3358
|
+
return l[0].value;
|
3359
|
+
var u = l.reduce(function(f, c) {
|
3386
3360
|
return !f.length || c.type !== A.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
3387
3361
|
}, []);
|
3388
|
-
return
|
3362
|
+
return u.length <= 1 ? u[0] || "" : u;
|
3389
3363
|
}, this.formatToParts = function(h) {
|
3390
3364
|
return ge(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
3391
3365
|
}, this.resolvedOptions = function() {
|
@@ -3400,13 +3374,13 @@ var Hi = (
|
|
3400
3374
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3401
3375
|
var s = i || {};
|
3402
3376
|
s.formatters;
|
3403
|
-
var a =
|
3404
|
-
this.ast = e.__parse(t,
|
3377
|
+
var a = Dn(s, ["formatters"]);
|
3378
|
+
this.ast = e.__parse(t, U(U({}, a), { locale: this.resolvedLocale }));
|
3405
3379
|
} else
|
3406
3380
|
this.ast = t;
|
3407
3381
|
if (!Array.isArray(this.ast))
|
3408
3382
|
throw new TypeError("A message must be provided as a String or AST.");
|
3409
|
-
this.formats =
|
3383
|
+
this.formats = Bi(e.formats, n), this.formatters = i && i.formatters || Ai(this.formatterCache);
|
3410
3384
|
}
|
3411
3385
|
return Object.defineProperty(e, "defaultLocale", {
|
3412
3386
|
get: function() {
|
@@ -3419,7 +3393,7 @@ var Hi = (
|
|
3419
3393
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3420
3394
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3421
3395
|
}
|
3422
|
-
}, e.__parse =
|
3396
|
+
}, e.__parse = Si, e.formats = {
|
3423
3397
|
number: {
|
3424
3398
|
integer: {
|
3425
3399
|
maximumFractionDigits: 0
|
@@ -3480,7 +3454,7 @@ var Hi = (
|
|
3480
3454
|
}, e;
|
3481
3455
|
}()
|
3482
3456
|
);
|
3483
|
-
function
|
3457
|
+
function Li(e, t) {
|
3484
3458
|
if (t == null)
|
3485
3459
|
return;
|
3486
3460
|
if (t in e)
|
@@ -3501,92 +3475,92 @@ function Ci(e, t) {
|
|
3501
3475
|
n = void 0;
|
3502
3476
|
return n;
|
3503
3477
|
}
|
3504
|
-
const k = {},
|
3478
|
+
const k = {}, Ii = (e, t, r) => r && (t in k || (k[t] = {}), e in k[t] || (k[t][e] = r), r), Sr = (e, t) => {
|
3505
3479
|
if (t == null)
|
3506
3480
|
return;
|
3507
3481
|
if (t in k && e in k[t])
|
3508
3482
|
return k[t][e];
|
3509
|
-
const r =
|
3483
|
+
const r = Oe(t);
|
3510
3484
|
for (let n = 0; n < r.length; n++) {
|
3511
|
-
const i = r[n], o =
|
3485
|
+
const i = r[n], o = Mi(i, e);
|
3512
3486
|
if (o)
|
3513
|
-
return
|
3487
|
+
return Ii(e, t, o);
|
3514
3488
|
}
|
3515
3489
|
};
|
3516
|
-
let
|
3517
|
-
const
|
3518
|
-
function
|
3519
|
-
return
|
3490
|
+
let ht;
|
3491
|
+
const ce = Pe({});
|
3492
|
+
function Ni(e) {
|
3493
|
+
return ht[e] || null;
|
3520
3494
|
}
|
3521
|
-
function
|
3522
|
-
return e in
|
3495
|
+
function wr(e) {
|
3496
|
+
return e in ht;
|
3523
3497
|
}
|
3524
|
-
function
|
3525
|
-
if (!
|
3498
|
+
function Mi(e, t) {
|
3499
|
+
if (!wr(e))
|
3526
3500
|
return null;
|
3527
|
-
const r =
|
3528
|
-
return
|
3501
|
+
const r = Ni(e);
|
3502
|
+
return Li(r, t);
|
3529
3503
|
}
|
3530
|
-
function
|
3504
|
+
function Ri(e) {
|
3531
3505
|
if (e == null)
|
3532
3506
|
return;
|
3533
|
-
const t =
|
3507
|
+
const t = Oe(e);
|
3534
3508
|
for (let r = 0; r < t.length; r++) {
|
3535
3509
|
const n = t[r];
|
3536
|
-
if (
|
3510
|
+
if (wr(n))
|
3537
3511
|
return n;
|
3538
3512
|
}
|
3539
3513
|
}
|
3540
|
-
function
|
3541
|
-
delete k[e],
|
3514
|
+
function Tr(e, ...t) {
|
3515
|
+
delete k[e], ce.update((r) => (r[e] = Un.all([r[e] || {}, ...t]), r));
|
3542
3516
|
}
|
3543
|
-
|
3544
|
-
[
|
3517
|
+
ne(
|
3518
|
+
[ce],
|
3545
3519
|
([e]) => Object.keys(e)
|
3546
3520
|
);
|
3547
|
-
|
3521
|
+
ce.subscribe((e) => ht = e);
|
3548
3522
|
const ve = {};
|
3549
|
-
function
|
3523
|
+
function $i(e, t) {
|
3550
3524
|
ve[e].delete(t), ve[e].size === 0 && delete ve[e];
|
3551
3525
|
}
|
3552
|
-
function
|
3526
|
+
function Hr(e) {
|
3553
3527
|
return ve[e];
|
3554
3528
|
}
|
3555
|
-
function
|
3556
|
-
return
|
3557
|
-
const r =
|
3529
|
+
function Gi(e) {
|
3530
|
+
return Oe(e).map((t) => {
|
3531
|
+
const r = Hr(t);
|
3558
3532
|
return [t, r ? [...r] : []];
|
3559
3533
|
}).filter(([, t]) => t.length > 0);
|
3560
3534
|
}
|
3561
|
-
function
|
3562
|
-
return e == null ? !1 :
|
3535
|
+
function et(e) {
|
3536
|
+
return e == null ? !1 : Oe(e).some(
|
3563
3537
|
(t) => {
|
3564
3538
|
var r;
|
3565
|
-
return (r =
|
3539
|
+
return (r = Hr(t)) == null ? void 0 : r.size;
|
3566
3540
|
}
|
3567
3541
|
);
|
3568
3542
|
}
|
3569
|
-
function
|
3543
|
+
function Ui(e, t) {
|
3570
3544
|
return Promise.all(
|
3571
|
-
t.map((n) => (
|
3572
|
-
).then((n) =>
|
3573
|
-
}
|
3574
|
-
const
|
3575
|
-
function
|
3576
|
-
if (!
|
3577
|
-
return e in
|
3578
|
-
const t =
|
3579
|
-
return
|
3545
|
+
t.map((n) => ($i(e, n), n().then((i) => i.default || i)))
|
3546
|
+
).then((n) => Tr(e, ...n));
|
3547
|
+
}
|
3548
|
+
const se = {};
|
3549
|
+
function Cr(e) {
|
3550
|
+
if (!et(e))
|
3551
|
+
return e in se ? se[e] : Promise.resolve();
|
3552
|
+
const t = Gi(e);
|
3553
|
+
return se[e] = Promise.all(
|
3580
3554
|
t.map(
|
3581
|
-
([r, n]) =>
|
3555
|
+
([r, n]) => Ui(r, n)
|
3582
3556
|
)
|
3583
3557
|
).then(() => {
|
3584
|
-
if (
|
3585
|
-
return
|
3586
|
-
delete
|
3587
|
-
}),
|
3558
|
+
if (et(e))
|
3559
|
+
return Cr(e);
|
3560
|
+
delete se[e];
|
3561
|
+
}), se[e];
|
3588
3562
|
}
|
3589
|
-
const
|
3563
|
+
const Di = {
|
3590
3564
|
number: {
|
3591
3565
|
scientific: { notation: "scientific" },
|
3592
3566
|
engineering: { notation: "engineering" },
|
@@ -3615,159 +3589,159 @@ const Mi = {
|
|
3615
3589
|
timeZoneName: "short"
|
3616
3590
|
}
|
3617
3591
|
}
|
3618
|
-
},
|
3592
|
+
}, Fi = {
|
3619
3593
|
fallbackLocale: null,
|
3620
3594
|
loadingDelay: 200,
|
3621
|
-
formats:
|
3595
|
+
formats: Di,
|
3622
3596
|
warnOnMissingMessages: !0,
|
3623
3597
|
handleMissingMessage: void 0,
|
3624
3598
|
ignoreTag: !0
|
3625
|
-
},
|
3626
|
-
function
|
3627
|
-
return
|
3599
|
+
}, ji = Fi;
|
3600
|
+
function te() {
|
3601
|
+
return ji;
|
3628
3602
|
}
|
3629
|
-
const
|
3630
|
-
var
|
3603
|
+
const ke = Pe(!1);
|
3604
|
+
var ki = Object.defineProperty, Vi = Object.defineProperties, Xi = Object.getOwnPropertyDescriptors, Rt = Object.getOwnPropertySymbols, Wi = Object.prototype.hasOwnProperty, zi = Object.prototype.propertyIsEnumerable, $t = (e, t, r) => t in e ? ki(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Zi = (e, t) => {
|
3631
3605
|
for (var r in t || (t = {}))
|
3632
|
-
|
3633
|
-
if (
|
3634
|
-
for (var r of
|
3635
|
-
|
3606
|
+
Wi.call(t, r) && $t(e, r, t[r]);
|
3607
|
+
if (Rt)
|
3608
|
+
for (var r of Rt(t))
|
3609
|
+
zi.call(t, r) && $t(e, r, t[r]);
|
3636
3610
|
return e;
|
3637
|
-
},
|
3638
|
-
let
|
3639
|
-
const
|
3640
|
-
function
|
3611
|
+
}, Qi = (e, t) => Vi(e, Xi(t));
|
3612
|
+
let tt;
|
3613
|
+
const Te = Pe(null);
|
3614
|
+
function Gt(e) {
|
3641
3615
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
3642
3616
|
}
|
3643
|
-
function
|
3644
|
-
const r =
|
3645
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
3617
|
+
function Oe(e, t = te().fallbackLocale) {
|
3618
|
+
const r = Gt(e);
|
3619
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Gt(t)])] : r;
|
3646
3620
|
}
|
3647
3621
|
function W() {
|
3648
|
-
return
|
3622
|
+
return tt != null ? tt : void 0;
|
3649
3623
|
}
|
3650
|
-
|
3651
|
-
|
3624
|
+
Te.subscribe((e) => {
|
3625
|
+
tt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
3652
3626
|
});
|
3653
|
-
const
|
3654
|
-
if (e &&
|
3655
|
-
const { loadingDelay: t } =
|
3627
|
+
const Ji = (e) => {
|
3628
|
+
if (e && Ri(e) && et(e)) {
|
3629
|
+
const { loadingDelay: t } = te();
|
3656
3630
|
let r;
|
3657
3631
|
return typeof window != "undefined" && W() != null && t ? r = window.setTimeout(
|
3658
|
-
() =>
|
3632
|
+
() => ke.set(!0),
|
3659
3633
|
t
|
3660
|
-
) :
|
3661
|
-
|
3634
|
+
) : ke.set(!0), Cr(e).then(() => {
|
3635
|
+
Te.set(e);
|
3662
3636
|
}).finally(() => {
|
3663
|
-
clearTimeout(r),
|
3637
|
+
clearTimeout(r), ke.set(!1);
|
3664
3638
|
});
|
3665
3639
|
}
|
3666
|
-
return
|
3667
|
-
},
|
3668
|
-
set:
|
3669
|
-
}),
|
3640
|
+
return Te.set(e);
|
3641
|
+
}, ie = Qi(Zi({}, Te), {
|
3642
|
+
set: Ji
|
3643
|
+
}), Le = (e) => {
|
3670
3644
|
const t = /* @__PURE__ */ Object.create(null);
|
3671
3645
|
return (n) => {
|
3672
3646
|
const i = JSON.stringify(n);
|
3673
3647
|
return i in t ? t[i] : t[i] = e(n);
|
3674
3648
|
};
|
3675
3649
|
};
|
3676
|
-
var
|
3650
|
+
var qi = Object.defineProperty, He = Object.getOwnPropertySymbols, Pr = Object.prototype.hasOwnProperty, Br = Object.prototype.propertyIsEnumerable, Ut = (e, t, r) => t in e ? qi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ct = (e, t) => {
|
3677
3651
|
for (var r in t || (t = {}))
|
3678
|
-
|
3679
|
-
if (
|
3680
|
-
for (var r of
|
3681
|
-
|
3652
|
+
Pr.call(t, r) && Ut(e, r, t[r]);
|
3653
|
+
if (He)
|
3654
|
+
for (var r of He(t))
|
3655
|
+
Br.call(t, r) && Ut(e, r, t[r]);
|
3682
3656
|
return e;
|
3683
|
-
},
|
3657
|
+
}, oe = (e, t) => {
|
3684
3658
|
var r = {};
|
3685
3659
|
for (var n in e)
|
3686
|
-
|
3687
|
-
if (e != null &&
|
3688
|
-
for (var n of
|
3689
|
-
t.indexOf(n) < 0 &&
|
3660
|
+
Pr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
3661
|
+
if (e != null && He)
|
3662
|
+
for (var n of He(e))
|
3663
|
+
t.indexOf(n) < 0 && Br.call(e, n) && (r[n] = e[n]);
|
3690
3664
|
return r;
|
3691
3665
|
};
|
3692
|
-
const
|
3693
|
-
const { formats: r } =
|
3666
|
+
const he = (e, t) => {
|
3667
|
+
const { formats: r } = te();
|
3694
3668
|
if (e in r && t in r[e])
|
3695
3669
|
return r[e][t];
|
3696
3670
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
3697
|
-
},
|
3671
|
+
}, Yi = Le(
|
3698
3672
|
(e) => {
|
3699
|
-
var t = e, { locale: r, format: n } = t, i =
|
3673
|
+
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
3700
3674
|
if (r == null)
|
3701
3675
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
3702
|
-
return n && (i =
|
3676
|
+
return n && (i = he("number", n)), new Intl.NumberFormat(r, i);
|
3703
3677
|
}
|
3704
|
-
),
|
3678
|
+
), Ki = Le(
|
3705
3679
|
(e) => {
|
3706
|
-
var t = e, { locale: r, format: n } = t, i =
|
3680
|
+
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
3707
3681
|
if (r == null)
|
3708
3682
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
3709
|
-
return n ? i =
|
3683
|
+
return n ? i = he("date", n) : Object.keys(i).length === 0 && (i = he("date", "short")), new Intl.DateTimeFormat(r, i);
|
3710
3684
|
}
|
3711
|
-
),
|
3685
|
+
), eo = Le(
|
3712
3686
|
(e) => {
|
3713
|
-
var t = e, { locale: r, format: n } = t, i =
|
3687
|
+
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
3714
3688
|
if (r == null)
|
3715
3689
|
throw new Error(
|
3716
3690
|
'[svelte-i18n] A "locale" must be set to format time values'
|
3717
3691
|
);
|
3718
|
-
return n ? i =
|
3692
|
+
return n ? i = he("time", n) : Object.keys(i).length === 0 && (i = he("time", "short")), new Intl.DateTimeFormat(r, i);
|
3719
3693
|
}
|
3720
|
-
),
|
3694
|
+
), to = (e = {}) => {
|
3721
3695
|
var t = e, {
|
3722
3696
|
locale: r = W()
|
3723
|
-
} = t, n =
|
3697
|
+
} = t, n = oe(t, [
|
3724
3698
|
"locale"
|
3725
3699
|
]);
|
3726
|
-
return
|
3727
|
-
},
|
3700
|
+
return Yi(ct({ locale: r }, n));
|
3701
|
+
}, ro = (e = {}) => {
|
3728
3702
|
var t = e, {
|
3729
3703
|
locale: r = W()
|
3730
|
-
} = t, n =
|
3704
|
+
} = t, n = oe(t, [
|
3731
3705
|
"locale"
|
3732
3706
|
]);
|
3733
|
-
return
|
3734
|
-
},
|
3707
|
+
return Ki(ct({ locale: r }, n));
|
3708
|
+
}, no = (e = {}) => {
|
3735
3709
|
var t = e, {
|
3736
3710
|
locale: r = W()
|
3737
|
-
} = t, n =
|
3711
|
+
} = t, n = oe(t, [
|
3738
3712
|
"locale"
|
3739
3713
|
]);
|
3740
|
-
return
|
3741
|
-
},
|
3714
|
+
return eo(ct({ locale: r }, n));
|
3715
|
+
}, io = Le(
|
3742
3716
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
3743
|
-
(e, t = W()) => new
|
3744
|
-
ignoreTag:
|
3717
|
+
(e, t = W()) => new Oi(e, t, te().formats, {
|
3718
|
+
ignoreTag: te().ignoreTag
|
3745
3719
|
})
|
3746
|
-
),
|
3720
|
+
), oo = (e, t = {}) => {
|
3747
3721
|
var r, n, i, o;
|
3748
3722
|
let s = t;
|
3749
3723
|
typeof e == "object" && (s = e, e = s.id);
|
3750
3724
|
const {
|
3751
3725
|
values: a,
|
3752
3726
|
locale: h = W(),
|
3753
|
-
default:
|
3727
|
+
default: l
|
3754
3728
|
} = s;
|
3755
3729
|
if (h == null)
|
3756
3730
|
throw new Error(
|
3757
3731
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
3758
3732
|
);
|
3759
|
-
let
|
3760
|
-
if (!
|
3761
|
-
|
3762
|
-
else if (typeof
|
3733
|
+
let u = Sr(e, h);
|
3734
|
+
if (!u)
|
3735
|
+
u = (o = (i = (n = (r = te()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
3736
|
+
else if (typeof u != "string")
|
3763
3737
|
return console.warn(
|
3764
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
3765
|
-
),
|
3738
|
+
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
3739
|
+
), u;
|
3766
3740
|
if (!a)
|
3767
|
-
return
|
3768
|
-
let f =
|
3741
|
+
return u;
|
3742
|
+
let f = u;
|
3769
3743
|
try {
|
3770
|
-
f =
|
3744
|
+
f = io(u, h).format(a);
|
3771
3745
|
} catch (c) {
|
3772
3746
|
c instanceof Error && console.warn(
|
3773
3747
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -3775,18 +3749,18 @@ const ce = (e, t) => {
|
|
3775
3749
|
);
|
3776
3750
|
}
|
3777
3751
|
return f;
|
3778
|
-
},
|
3779
|
-
|
3780
|
-
|
3781
|
-
|
3782
|
-
|
3783
|
-
function
|
3784
|
-
|
3785
|
-
}
|
3786
|
-
function
|
3787
|
-
|
3788
|
-
}
|
3789
|
-
const
|
3752
|
+
}, so = (e, t) => no(t).format(e), ao = (e, t) => ro(t).format(e), uo = (e, t) => to(t).format(e), lo = (e, t = W()) => Sr(e, t), ho = ne([ie, ce], () => oo);
|
3753
|
+
ne([ie], () => so);
|
3754
|
+
ne([ie], () => ao);
|
3755
|
+
ne([ie], () => uo);
|
3756
|
+
ne([ie, ce], () => lo);
|
3757
|
+
function Dt(e, t) {
|
3758
|
+
Tr(e, t);
|
3759
|
+
}
|
3760
|
+
function co(e) {
|
3761
|
+
ie.set(e);
|
3762
|
+
}
|
3763
|
+
const Ft = {
|
3790
3764
|
en: {
|
3791
3765
|
collections: "Game Collections",
|
3792
3766
|
providers: "Game Providers",
|
@@ -3883,16 +3857,85 @@ const Rt = {
|
|
3883
3857
|
loading: "Loading, please wait ..."
|
3884
3858
|
}
|
3885
3859
|
};
|
3886
|
-
|
3860
|
+
/*! *****************************************************************************
|
3861
|
+
Copyright (c) Microsoft Corporation.
|
3862
|
+
|
3863
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
3864
|
+
purpose with or without fee is hereby granted.
|
3865
|
+
|
3866
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
3867
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
3868
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
3869
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
3870
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
3871
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
3872
|
+
PERFORMANCE OF THIS SOFTWARE.
|
3873
|
+
***************************************************************************** */
|
3874
|
+
var rt = function(e, t) {
|
3875
|
+
return rt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
3876
|
+
r.__proto__ = n;
|
3877
|
+
} || function(r, n) {
|
3878
|
+
for (var i in n)
|
3879
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
3880
|
+
}, rt(e, t);
|
3881
|
+
};
|
3882
|
+
function fe(e, t) {
|
3883
|
+
if (typeof t != "function" && t !== null)
|
3884
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
3885
|
+
rt(e, t);
|
3886
|
+
function r() {
|
3887
|
+
this.constructor = e;
|
3888
|
+
}
|
3889
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
3890
|
+
}
|
3891
|
+
function nt(e) {
|
3892
|
+
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
3893
|
+
if (r)
|
3894
|
+
return r.call(e);
|
3895
|
+
if (e && typeof e.length == "number")
|
3896
|
+
return {
|
3897
|
+
next: function() {
|
3898
|
+
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
3899
|
+
}
|
3900
|
+
};
|
3901
|
+
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
3902
|
+
}
|
3903
|
+
function it(e, t) {
|
3904
|
+
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
3905
|
+
if (!r)
|
3906
|
+
return e;
|
3907
|
+
var n = r.call(e), i, o = [], s;
|
3908
|
+
try {
|
3909
|
+
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
3910
|
+
o.push(i.value);
|
3911
|
+
} catch (a) {
|
3912
|
+
s = { error: a };
|
3913
|
+
} finally {
|
3914
|
+
try {
|
3915
|
+
i && !i.done && (r = n.return) && r.call(n);
|
3916
|
+
} finally {
|
3917
|
+
if (s)
|
3918
|
+
throw s.error;
|
3919
|
+
}
|
3920
|
+
}
|
3921
|
+
return o;
|
3922
|
+
}
|
3923
|
+
function ot(e, t, r) {
|
3924
|
+
if (arguments.length === 2)
|
3925
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
3926
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
3927
|
+
return e.concat(o || t);
|
3928
|
+
}
|
3929
|
+
function j(e) {
|
3887
3930
|
return typeof e == "function";
|
3888
3931
|
}
|
3889
|
-
function
|
3932
|
+
function Ar(e) {
|
3890
3933
|
var t = function(n) {
|
3891
3934
|
Error.call(n), n.stack = new Error().stack;
|
3892
3935
|
}, r = e(t);
|
3893
3936
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
3894
3937
|
}
|
3895
|
-
var
|
3938
|
+
var Ve = Ar(function(e) {
|
3896
3939
|
return function(r) {
|
3897
3940
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
3898
3941
|
` + r.map(function(n, i) {
|
@@ -3901,13 +3944,13 @@ var Fe = Tr(function(e) {
|
|
3901
3944
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
3902
3945
|
};
|
3903
3946
|
});
|
3904
|
-
function
|
3947
|
+
function st(e, t) {
|
3905
3948
|
if (e) {
|
3906
3949
|
var r = e.indexOf(t);
|
3907
3950
|
0 <= r && e.splice(r, 1);
|
3908
3951
|
}
|
3909
3952
|
}
|
3910
|
-
var
|
3953
|
+
var Ie = function() {
|
3911
3954
|
function e(t) {
|
3912
3955
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
3913
3956
|
}
|
@@ -3919,9 +3962,9 @@ var Oe = function() {
|
|
3919
3962
|
if (s)
|
3920
3963
|
if (this._parentage = null, Array.isArray(s))
|
3921
3964
|
try {
|
3922
|
-
for (var a =
|
3923
|
-
var
|
3924
|
-
|
3965
|
+
for (var a = nt(s), h = a.next(); !h.done; h = a.next()) {
|
3966
|
+
var l = h.value;
|
3967
|
+
l.remove(this);
|
3925
3968
|
}
|
3926
3969
|
} catch (b) {
|
3927
3970
|
t = { error: b };
|
@@ -3935,23 +3978,23 @@ var Oe = function() {
|
|
3935
3978
|
}
|
3936
3979
|
else
|
3937
3980
|
s.remove(this);
|
3938
|
-
var
|
3939
|
-
if (
|
3981
|
+
var u = this.initialTeardown;
|
3982
|
+
if (j(u))
|
3940
3983
|
try {
|
3941
|
-
|
3984
|
+
u();
|
3942
3985
|
} catch (b) {
|
3943
|
-
o = b instanceof
|
3986
|
+
o = b instanceof Ve ? b.errors : [b];
|
3944
3987
|
}
|
3945
3988
|
var f = this._finalizers;
|
3946
3989
|
if (f) {
|
3947
3990
|
this._finalizers = null;
|
3948
3991
|
try {
|
3949
|
-
for (var c =
|
3992
|
+
for (var c = nt(f), d = c.next(); !d.done; d = c.next()) {
|
3950
3993
|
var m = d.value;
|
3951
3994
|
try {
|
3952
|
-
|
3995
|
+
jt(m);
|
3953
3996
|
} catch (b) {
|
3954
|
-
o = o != null ? o : [], b instanceof
|
3997
|
+
o = o != null ? o : [], b instanceof Ve ? o = ot(ot([], it(o)), it(b.errors)) : o.push(b);
|
3955
3998
|
}
|
3956
3999
|
}
|
3957
4000
|
} catch (b) {
|
@@ -3966,13 +4009,13 @@ var Oe = function() {
|
|
3966
4009
|
}
|
3967
4010
|
}
|
3968
4011
|
if (o)
|
3969
|
-
throw new
|
4012
|
+
throw new Ve(o);
|
3970
4013
|
}
|
3971
4014
|
}, e.prototype.add = function(t) {
|
3972
4015
|
var r;
|
3973
4016
|
if (t && t !== this)
|
3974
4017
|
if (this.closed)
|
3975
|
-
|
4018
|
+
jt(t);
|
3976
4019
|
else {
|
3977
4020
|
if (t instanceof e) {
|
3978
4021
|
if (t.closed || t._hasParent(this))
|
@@ -3989,52 +4032,52 @@ var Oe = function() {
|
|
3989
4032
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
3990
4033
|
}, e.prototype._removeParent = function(t) {
|
3991
4034
|
var r = this._parentage;
|
3992
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
4035
|
+
r === t ? this._parentage = null : Array.isArray(r) && st(r, t);
|
3993
4036
|
}, e.prototype.remove = function(t) {
|
3994
4037
|
var r = this._finalizers;
|
3995
|
-
r &&
|
4038
|
+
r && st(r, t), t instanceof e && t._removeParent(this);
|
3996
4039
|
}, e.EMPTY = function() {
|
3997
4040
|
var t = new e();
|
3998
4041
|
return t.closed = !0, t;
|
3999
4042
|
}(), e;
|
4000
|
-
}(),
|
4001
|
-
function
|
4002
|
-
return e instanceof
|
4043
|
+
}(), Or = Ie.EMPTY;
|
4044
|
+
function Lr(e) {
|
4045
|
+
return e instanceof Ie || e && "closed" in e && j(e.remove) && j(e.add) && j(e.unsubscribe);
|
4003
4046
|
}
|
4004
|
-
function
|
4005
|
-
|
4047
|
+
function jt(e) {
|
4048
|
+
j(e) ? e() : e.unsubscribe();
|
4006
4049
|
}
|
4007
|
-
var
|
4050
|
+
var fo = {
|
4008
4051
|
Promise: void 0
|
4009
|
-
},
|
4052
|
+
}, po = {
|
4010
4053
|
setTimeout: function(e, t) {
|
4011
4054
|
for (var r = [], n = 2; n < arguments.length; n++)
|
4012
4055
|
r[n - 2] = arguments[n];
|
4013
|
-
return setTimeout.apply(void 0,
|
4056
|
+
return setTimeout.apply(void 0, ot([e, t], it(r)));
|
4014
4057
|
},
|
4015
4058
|
clearTimeout: function(e) {
|
4016
4059
|
return clearTimeout(e);
|
4017
4060
|
},
|
4018
4061
|
delegate: void 0
|
4019
4062
|
};
|
4020
|
-
function
|
4021
|
-
|
4063
|
+
function mo(e) {
|
4064
|
+
po.setTimeout(function() {
|
4022
4065
|
throw e;
|
4023
4066
|
});
|
4024
4067
|
}
|
4025
|
-
function
|
4068
|
+
function kt() {
|
4026
4069
|
}
|
4027
4070
|
function ye(e) {
|
4028
4071
|
e();
|
4029
4072
|
}
|
4030
|
-
var
|
4031
|
-
|
4073
|
+
var Ir = function(e) {
|
4074
|
+
fe(t, e);
|
4032
4075
|
function t(r) {
|
4033
4076
|
var n = e.call(this) || this;
|
4034
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
4077
|
+
return n.isStopped = !1, r ? (n.destination = r, Lr(r) && r.add(n)) : n.destination = vo, n;
|
4035
4078
|
}
|
4036
4079
|
return t.create = function(r, n, i) {
|
4037
|
-
return new
|
4080
|
+
return new at(r, n, i);
|
4038
4081
|
}, t.prototype.next = function(r) {
|
4039
4082
|
this.isStopped || this._next(r);
|
4040
4083
|
}, t.prototype.error = function(r) {
|
@@ -4058,7 +4101,7 @@ var Pr = function(e) {
|
|
4058
4101
|
this.unsubscribe();
|
4059
4102
|
}
|
4060
4103
|
}, t;
|
4061
|
-
}(
|
4104
|
+
}(Ie), bo = function() {
|
4062
4105
|
function e(t) {
|
4063
4106
|
this.partialObserver = t;
|
4064
4107
|
}
|
@@ -4089,43 +4132,43 @@ var Pr = function(e) {
|
|
4089
4132
|
me(r);
|
4090
4133
|
}
|
4091
4134
|
}, e;
|
4092
|
-
}(),
|
4093
|
-
|
4135
|
+
}(), at = function(e) {
|
4136
|
+
fe(t, e);
|
4094
4137
|
function t(r, n, i) {
|
4095
4138
|
var o = e.call(this) || this, s;
|
4096
|
-
return
|
4139
|
+
return j(r) || !r ? s = {
|
4097
4140
|
next: r != null ? r : void 0,
|
4098
4141
|
error: n != null ? n : void 0,
|
4099
4142
|
complete: i != null ? i : void 0
|
4100
|
-
} : s = r, o.destination = new
|
4143
|
+
} : s = r, o.destination = new bo(s), o;
|
4101
4144
|
}
|
4102
4145
|
return t;
|
4103
|
-
}(
|
4146
|
+
}(Ir);
|
4104
4147
|
function me(e) {
|
4105
|
-
|
4148
|
+
mo(e);
|
4106
4149
|
}
|
4107
|
-
function
|
4150
|
+
function go(e) {
|
4108
4151
|
throw e;
|
4109
4152
|
}
|
4110
|
-
var
|
4153
|
+
var vo = {
|
4111
4154
|
closed: !0,
|
4112
|
-
next:
|
4113
|
-
error:
|
4114
|
-
complete:
|
4115
|
-
},
|
4155
|
+
next: kt,
|
4156
|
+
error: go,
|
4157
|
+
complete: kt
|
4158
|
+
}, yo = function() {
|
4116
4159
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
4117
4160
|
}();
|
4118
|
-
function
|
4161
|
+
function _o(e) {
|
4119
4162
|
return e;
|
4120
4163
|
}
|
4121
|
-
function
|
4122
|
-
return e.length === 0 ?
|
4164
|
+
function Eo(e) {
|
4165
|
+
return e.length === 0 ? _o : e.length === 1 ? e[0] : function(r) {
|
4123
4166
|
return e.reduce(function(n, i) {
|
4124
4167
|
return i(n);
|
4125
4168
|
}, r);
|
4126
4169
|
};
|
4127
4170
|
}
|
4128
|
-
var
|
4171
|
+
var Vt = function() {
|
4129
4172
|
function e(t) {
|
4130
4173
|
t && (this._subscribe = t);
|
4131
4174
|
}
|
@@ -4133,7 +4176,7 @@ var Ut = function() {
|
|
4133
4176
|
var r = new e();
|
4134
4177
|
return r.source = this, r.operator = t, r;
|
4135
4178
|
}, e.prototype.subscribe = function(t, r, n) {
|
4136
|
-
var i = this, o =
|
4179
|
+
var i = this, o = So(t) ? t : new at(t, r, n);
|
4137
4180
|
return ye(function() {
|
4138
4181
|
var s = i, a = s.operator, h = s.source;
|
4139
4182
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
@@ -4146,8 +4189,8 @@ var Ut = function() {
|
|
4146
4189
|
}
|
4147
4190
|
}, e.prototype.forEach = function(t, r) {
|
4148
4191
|
var n = this;
|
4149
|
-
return r =
|
4150
|
-
var s = new
|
4192
|
+
return r = Xt(r), new r(function(i, o) {
|
4193
|
+
var s = new at({
|
4151
4194
|
next: function(a) {
|
4152
4195
|
try {
|
4153
4196
|
t(a);
|
@@ -4163,15 +4206,15 @@ var Ut = function() {
|
|
4163
4206
|
}, e.prototype._subscribe = function(t) {
|
4164
4207
|
var r;
|
4165
4208
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
4166
|
-
}, e.prototype[
|
4209
|
+
}, e.prototype[yo] = function() {
|
4167
4210
|
return this;
|
4168
4211
|
}, e.prototype.pipe = function() {
|
4169
4212
|
for (var t = [], r = 0; r < arguments.length; r++)
|
4170
4213
|
t[r] = arguments[r];
|
4171
|
-
return
|
4214
|
+
return Eo(t)(this);
|
4172
4215
|
}, e.prototype.toPromise = function(t) {
|
4173
4216
|
var r = this;
|
4174
|
-
return t =
|
4217
|
+
return t = Xt(t), new t(function(n, i) {
|
4175
4218
|
var o;
|
4176
4219
|
r.subscribe(function(s) {
|
4177
4220
|
return o = s;
|
@@ -4185,32 +4228,32 @@ var Ut = function() {
|
|
4185
4228
|
return new e(t);
|
4186
4229
|
}, e;
|
4187
4230
|
}();
|
4188
|
-
function
|
4231
|
+
function Xt(e) {
|
4189
4232
|
var t;
|
4190
|
-
return (t = e != null ? e :
|
4233
|
+
return (t = e != null ? e : fo.Promise) !== null && t !== void 0 ? t : Promise;
|
4191
4234
|
}
|
4192
|
-
function
|
4193
|
-
return e &&
|
4235
|
+
function xo(e) {
|
4236
|
+
return e && j(e.next) && j(e.error) && j(e.complete);
|
4194
4237
|
}
|
4195
|
-
function
|
4196
|
-
return e && e instanceof
|
4238
|
+
function So(e) {
|
4239
|
+
return e && e instanceof Ir || xo(e) && Lr(e);
|
4197
4240
|
}
|
4198
|
-
var
|
4241
|
+
var wo = Ar(function(e) {
|
4199
4242
|
return function() {
|
4200
4243
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
4201
4244
|
};
|
4202
|
-
}),
|
4203
|
-
|
4245
|
+
}), Nr = function(e) {
|
4246
|
+
fe(t, e);
|
4204
4247
|
function t() {
|
4205
4248
|
var r = e.call(this) || this;
|
4206
4249
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
4207
4250
|
}
|
4208
4251
|
return t.prototype.lift = function(r) {
|
4209
|
-
var n = new
|
4252
|
+
var n = new Wt(this, this);
|
4210
4253
|
return n.operator = r, n;
|
4211
4254
|
}, t.prototype._throwIfClosed = function() {
|
4212
4255
|
if (this.closed)
|
4213
|
-
throw new
|
4256
|
+
throw new wo();
|
4214
4257
|
}, t.prototype.next = function(r) {
|
4215
4258
|
var n = this;
|
4216
4259
|
ye(function() {
|
@@ -4218,12 +4261,12 @@ var yo = Tr(function(e) {
|
|
4218
4261
|
if (n._throwIfClosed(), !n.isStopped) {
|
4219
4262
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
4220
4263
|
try {
|
4221
|
-
for (var s =
|
4264
|
+
for (var s = nt(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
4222
4265
|
var h = a.value;
|
4223
4266
|
h.next(r);
|
4224
4267
|
}
|
4225
|
-
} catch (
|
4226
|
-
i = { error:
|
4268
|
+
} catch (l) {
|
4269
|
+
i = { error: l };
|
4227
4270
|
} finally {
|
4228
4271
|
try {
|
4229
4272
|
a && !a.done && (o = s.return) && o.call(s);
|
@@ -4267,20 +4310,20 @@ var yo = Tr(function(e) {
|
|
4267
4310
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
4268
4311
|
}, t.prototype._innerSubscribe = function(r) {
|
4269
4312
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
4270
|
-
return o || s ?
|
4271
|
-
n.currentObservers = null,
|
4313
|
+
return o || s ? Or : (this.currentObservers = null, a.push(r), new Ie(function() {
|
4314
|
+
n.currentObservers = null, st(a, r);
|
4272
4315
|
}));
|
4273
4316
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
4274
4317
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
4275
4318
|
i ? r.error(o) : s && r.complete();
|
4276
4319
|
}, t.prototype.asObservable = function() {
|
4277
|
-
var r = new
|
4320
|
+
var r = new Vt();
|
4278
4321
|
return r.source = this, r;
|
4279
4322
|
}, t.create = function(r, n) {
|
4280
|
-
return new
|
4323
|
+
return new Wt(r, n);
|
4281
4324
|
}, t;
|
4282
|
-
}(
|
4283
|
-
|
4325
|
+
}(Vt), Wt = function(e) {
|
4326
|
+
fe(t, e);
|
4284
4327
|
function t(r, n) {
|
4285
4328
|
var i = e.call(this) || this;
|
4286
4329
|
return i.destination = r, i.source = n, i;
|
@@ -4296,17 +4339,17 @@ var yo = Tr(function(e) {
|
|
4296
4339
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
4297
4340
|
}, t.prototype._subscribe = function(r) {
|
4298
4341
|
var n, i;
|
4299
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
4342
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Or;
|
4300
4343
|
}, t;
|
4301
|
-
}(
|
4344
|
+
}(Nr), Mr = {
|
4302
4345
|
now: function() {
|
4303
|
-
return (
|
4346
|
+
return (Mr.delegate || Date).now();
|
4304
4347
|
},
|
4305
4348
|
delegate: void 0
|
4306
|
-
},
|
4307
|
-
|
4349
|
+
}, To = function(e) {
|
4350
|
+
fe(t, e);
|
4308
4351
|
function t(r, n, i) {
|
4309
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
4352
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Mr);
|
4310
4353
|
var o = e.call(this) || this;
|
4311
4354
|
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;
|
4312
4355
|
}
|
@@ -4321,28 +4364,28 @@ var yo = Tr(function(e) {
|
|
4321
4364
|
}, t.prototype._trimBuffer = function() {
|
4322
4365
|
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
|
4323
4366
|
if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
|
4324
|
-
for (var h = i.now(),
|
4325
|
-
|
4326
|
-
|
4367
|
+
for (var h = i.now(), l = 0, u = 1; u < o.length && o[u] <= h; u += 2)
|
4368
|
+
l = u;
|
4369
|
+
l && o.splice(0, l + 1);
|
4327
4370
|
}
|
4328
4371
|
}, t;
|
4329
|
-
}(
|
4330
|
-
const
|
4331
|
-
if (
|
4332
|
-
const r = new
|
4333
|
-
|
4372
|
+
}(Nr);
|
4373
|
+
const zt = [], Zt = {}, Ho = (e, t = 0) => {
|
4374
|
+
if (zt.indexOf(e) == -1) {
|
4375
|
+
const r = new To(t);
|
4376
|
+
Zt[e] = r, zt.push(e);
|
4334
4377
|
}
|
4335
|
-
return
|
4378
|
+
return Zt[e];
|
4336
4379
|
};
|
4337
|
-
window.emWidgets = { topic:
|
4338
|
-
const
|
4339
|
-
function
|
4380
|
+
window.emWidgets = { topic: Ho };
|
4381
|
+
const Co = (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));
|
4382
|
+
function Po(e, t) {
|
4340
4383
|
if (e) {
|
4341
4384
|
const r = document.createElement("style");
|
4342
4385
|
r.innerHTML = t, e.appendChild(r);
|
4343
4386
|
}
|
4344
4387
|
}
|
4345
|
-
function
|
4388
|
+
function Bo(e, t) {
|
4346
4389
|
const r = new URL(t);
|
4347
4390
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
4348
4391
|
const i = document.createElement("style");
|
@@ -4351,7 +4394,7 @@ function wo(e, t) {
|
|
4351
4394
|
console.error("There was an error while trying to load client styling from URL", n);
|
4352
4395
|
});
|
4353
4396
|
}
|
4354
|
-
function
|
4397
|
+
function Ao(e, t, r) {
|
4355
4398
|
if (window.emMessageBus) {
|
4356
4399
|
const n = document.createElement("style");
|
4357
4400
|
window.emMessageBus.subscribe(t, (i) => {
|
@@ -4359,18 +4402,18 @@ function To(e, t, r) {
|
|
4359
4402
|
});
|
4360
4403
|
}
|
4361
4404
|
}
|
4362
|
-
function
|
4363
|
-
|
4405
|
+
function Oo(e) {
|
4406
|
+
tn(e, "svelte-ci1i8", '*,*::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));background-color:inherit;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:70px;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:60px;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)}}');
|
4364
4407
|
}
|
4365
|
-
function
|
4408
|
+
function Qt(e, t, r) {
|
4366
4409
|
const n = e.slice();
|
4367
4410
|
return n[41] = t[r], n;
|
4368
4411
|
}
|
4369
|
-
function
|
4412
|
+
function Jt(e, t, r) {
|
4370
4413
|
const n = e.slice();
|
4371
4414
|
return n[44] = t[r], n;
|
4372
4415
|
}
|
4373
|
-
function
|
4416
|
+
function Lo(e) {
|
4374
4417
|
let t, r, n, i = (
|
4375
4418
|
/*type*/
|
4376
4419
|
(e[0] === "vendor" ? (
|
@@ -4380,27 +4423,27 @@ function Co(e) {
|
|
4380
4423
|
/*$_*/
|
4381
4424
|
e[10]("collections")
|
4382
4425
|
)) + ""
|
4383
|
-
), o, s, a, h,
|
4426
|
+
), o, s, a, h, l, u = (
|
4384
4427
|
/*numberOfSlides*/
|
4385
4428
|
e[7] > /*numberOfVisibleSlides*/
|
4386
|
-
e[8] &&
|
4429
|
+
e[8] && qt(e)
|
4387
4430
|
), f = Se(
|
4388
4431
|
/*gameCategories*/
|
4389
4432
|
e[3]
|
4390
4433
|
), c = [];
|
4391
4434
|
for (let d = 0; d < f.length; d += 1)
|
4392
|
-
c[d] = Qt(
|
4435
|
+
c[d] = er(Qt(e, f, d));
|
4393
4436
|
return {
|
4394
4437
|
c() {
|
4395
|
-
t = C("div"), r = C("div"), n = C("p"), o =
|
4438
|
+
t = C("div"), r = C("div"), n = C("p"), o = Ce(i), s = X(), u && u.c(), a = X(), h = C("div");
|
4396
4439
|
for (let d = 0; d < c.length; d += 1)
|
4397
4440
|
c[d].c();
|
4398
|
-
P(n, "class", "Title"), P(r, "class", "CategoriesHeader"), P(h, "class", "CategoriesSlider"), P(t, "class",
|
4441
|
+
P(n, "class", "Title"), P(r, "class", "CategoriesHeader"), P(h, "class", "CategoriesSlider"), P(t, "class", l = "CasinoCollectionsProviders " + /*mobile*/
|
4399
4442
|
(e[9] ? "Mobile" : "") + " " + /*type*/
|
4400
4443
|
(e[0] === "vendor" ? "Providers" : "Collections"));
|
4401
4444
|
},
|
4402
4445
|
m(d, m) {
|
4403
|
-
|
4446
|
+
D(d, t, m), H(t, r), H(r, n), H(n, o), H(r, s), u && u.m(r, null), H(t, a), H(t, h);
|
4404
4447
|
for (let b = 0; b < c.length; b += 1)
|
4405
4448
|
c[b] && c[b].m(h, null);
|
4406
4449
|
e[25](h);
|
@@ -4414,9 +4457,9 @@ function Co(e) {
|
|
4414
4457
|
) : (
|
4415
4458
|
/*$_*/
|
4416
4459
|
d[10]("collections")
|
4417
|
-
)) + "") &&
|
4460
|
+
)) + "") && lt(o, i), /*numberOfSlides*/
|
4418
4461
|
d[7] > /*numberOfVisibleSlides*/
|
4419
|
-
d[8] ?
|
4462
|
+
d[8] ? u ? u.p(d, m) : (u = qt(d), u.c(), u.m(r, null)) : u && (u.d(1), u = null), m[0] & /*gameCategories, openCategory, collectionprovidersgamenames, openGame, titletype*/
|
4420
4463
|
24590) {
|
4421
4464
|
f = Se(
|
4422
4465
|
/*gameCategories*/
|
@@ -4424,31 +4467,31 @@ function Co(e) {
|
|
4424
4467
|
);
|
4425
4468
|
let b;
|
4426
4469
|
for (b = 0; b < f.length; b += 1) {
|
4427
|
-
const g =
|
4428
|
-
c[b] ? c[b].p(g, m) : (c[b] =
|
4470
|
+
const g = Qt(d, f, b);
|
4471
|
+
c[b] ? c[b].p(g, m) : (c[b] = er(g), c[b].c(), c[b].m(h, null));
|
4429
4472
|
}
|
4430
4473
|
for (; b < c.length; b += 1)
|
4431
4474
|
c[b].d(1);
|
4432
4475
|
c.length = f.length;
|
4433
4476
|
}
|
4434
4477
|
m[0] & /*mobile, type*/
|
4435
|
-
513 &&
|
4478
|
+
513 && l !== (l = "CasinoCollectionsProviders " + /*mobile*/
|
4436
4479
|
(d[9] ? "Mobile" : "") + " " + /*type*/
|
4437
|
-
(d[0] === "vendor" ? "Providers" : "Collections")) && P(t, "class",
|
4480
|
+
(d[0] === "vendor" ? "Providers" : "Collections")) && P(t, "class", l);
|
4438
4481
|
},
|
4439
4482
|
d(d) {
|
4440
|
-
d && R(t),
|
4483
|
+
d && R(t), u && u.d(), ir(c, d), e[25](null);
|
4441
4484
|
}
|
4442
4485
|
};
|
4443
4486
|
}
|
4444
|
-
function
|
4487
|
+
function Io(e) {
|
4445
4488
|
let t;
|
4446
4489
|
return {
|
4447
4490
|
c() {
|
4448
4491
|
t = C("div"), P(t, "class", "LoadingSpinner");
|
4449
4492
|
},
|
4450
4493
|
m(r, n) {
|
4451
|
-
|
4494
|
+
D(r, t, n);
|
4452
4495
|
},
|
4453
4496
|
p: I,
|
4454
4497
|
d(r) {
|
@@ -4456,21 +4499,21 @@ function Po(e) {
|
|
4456
4499
|
}
|
4457
4500
|
};
|
4458
4501
|
}
|
4459
|
-
function
|
4502
|
+
function qt(e) {
|
4460
4503
|
let t, r, n, i, o, s;
|
4461
4504
|
return {
|
4462
4505
|
c() {
|
4463
4506
|
t = C("div"), r = C("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 = X(), i = C("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>', P(t, "class", "ButtonsContainer");
|
4464
4507
|
},
|
4465
4508
|
m(a, h) {
|
4466
|
-
|
4467
|
-
|
4509
|
+
D(a, t, h), H(t, r), H(t, n), H(t, i), o || (s = [
|
4510
|
+
Ee(
|
4468
4511
|
r,
|
4469
4512
|
"click",
|
4470
4513
|
/*sliderScrollLeft*/
|
4471
4514
|
e[11]
|
4472
4515
|
),
|
4473
|
-
|
4516
|
+
Ee(
|
4474
4517
|
i,
|
4475
4518
|
"click",
|
4476
4519
|
/*sliderScrollRight*/
|
@@ -4480,42 +4523,42 @@ function Wt(e) {
|
|
4480
4523
|
},
|
4481
4524
|
p: I,
|
4482
4525
|
d(a) {
|
4483
|
-
a && R(t), o = !1,
|
4526
|
+
a && R(t), o = !1, re(s);
|
4484
4527
|
}
|
4485
4528
|
};
|
4486
4529
|
}
|
4487
|
-
function
|
4530
|
+
function No(e) {
|
4488
4531
|
let t, r = (
|
4489
4532
|
/*category*/
|
4490
4533
|
e[41].name + ""
|
4491
4534
|
), n;
|
4492
4535
|
return {
|
4493
4536
|
c() {
|
4494
|
-
t = C("p"), n =
|
4537
|
+
t = C("p"), n = Ce(r), P(t, "class", "CategorySlideTitle");
|
4495
4538
|
},
|
4496
4539
|
m(i, o) {
|
4497
|
-
|
4540
|
+
D(i, t, o), H(t, n);
|
4498
4541
|
},
|
4499
4542
|
p(i, o) {
|
4500
4543
|
o[0] & /*gameCategories*/
|
4501
4544
|
8 && r !== (r = /*category*/
|
4502
|
-
i[41].name + "") &&
|
4545
|
+
i[41].name + "") && lt(n, r);
|
4503
4546
|
},
|
4504
4547
|
d(i) {
|
4505
4548
|
i && R(t);
|
4506
4549
|
}
|
4507
4550
|
};
|
4508
4551
|
}
|
4509
|
-
function
|
4552
|
+
function Mo(e) {
|
4510
4553
|
let t, r, n;
|
4511
4554
|
return {
|
4512
4555
|
c() {
|
4513
|
-
t = C("ui-image"), G(t, "
|
4556
|
+
t = C("ui-image"), G(t, "class", "CategorySlideLogo"), _e(t.src, r = /*category*/
|
4514
4557
|
e[41].icon) || G(t, "src", r), G(t, "alt", n = /*category*/
|
4515
4558
|
e[41].name + " icon");
|
4516
4559
|
},
|
4517
4560
|
m(i, o) {
|
4518
|
-
|
4561
|
+
D(i, t, o);
|
4519
4562
|
},
|
4520
4563
|
p(i, o) {
|
4521
4564
|
o[0] & /*gameCategories*/
|
@@ -4529,23 +4572,23 @@ function Ao(e) {
|
|
4529
4572
|
}
|
4530
4573
|
};
|
4531
4574
|
}
|
4532
|
-
function
|
4575
|
+
function Yt(e) {
|
4533
4576
|
let t, r = (
|
4534
4577
|
/*game*/
|
4535
4578
|
e[44].name + ""
|
4536
4579
|
), n, i;
|
4537
4580
|
return {
|
4538
4581
|
c() {
|
4539
|
-
t = C("p"), n =
|
4582
|
+
t = C("p"), n = Ce(r), P(t, "title", i = /*game*/
|
4540
4583
|
e[44].name);
|
4541
4584
|
},
|
4542
4585
|
m(o, s) {
|
4543
|
-
|
4586
|
+
D(o, t, s), H(t, n);
|
4544
4587
|
},
|
4545
4588
|
p(o, s) {
|
4546
4589
|
s[0] & /*gameCategories*/
|
4547
4590
|
8 && r !== (r = /*game*/
|
4548
|
-
o[44].name + "") &&
|
4591
|
+
o[44].name + "") && lt(n, r), s[0] & /*gameCategories*/
|
4549
4592
|
8 && i !== (i = /*game*/
|
4550
4593
|
o[44].name) && P(t, "title", i);
|
4551
4594
|
},
|
@@ -4554,9 +4597,9 @@ function zt(e) {
|
|
4554
4597
|
}
|
4555
4598
|
};
|
4556
4599
|
}
|
4557
|
-
function
|
4600
|
+
function Kt(e) {
|
4558
4601
|
let t, r, n, i, o, s, a, h;
|
4559
|
-
function
|
4602
|
+
function l() {
|
4560
4603
|
return (
|
4561
4604
|
/*click_handler*/
|
4562
4605
|
e[23](
|
@@ -4565,18 +4608,18 @@ function Zt(e) {
|
|
4565
4608
|
)
|
4566
4609
|
);
|
4567
4610
|
}
|
4568
|
-
let
|
4611
|
+
let u = (
|
4569
4612
|
/*collectionprovidersgamenames*/
|
4570
|
-
e[2] == "true" &&
|
4613
|
+
e[2] == "true" && Yt(e)
|
4571
4614
|
);
|
4572
4615
|
return {
|
4573
4616
|
c() {
|
4574
|
-
t = C("div"), r = C("ui-image"), o = X(),
|
4617
|
+
t = C("div"), r = C("ui-image"), o = X(), u && u.c(), s = X(), G(r, "class", "CategorySlideGameImage"), _e(r.src, n = /*game*/
|
4575
4618
|
e[44].defaultThumbnail) || G(r, "src", n), G(r, "alt", i = /*game*/
|
4576
4619
|
e[44].name), P(t, "class", "CategorySlideGames");
|
4577
4620
|
},
|
4578
4621
|
m(f, c) {
|
4579
|
-
|
4622
|
+
D(f, t, c), H(t, r), H(t, o), u && u.m(t, null), H(t, s), a || (h = Ee(r, "click", on(l)), a = !0);
|
4580
4623
|
},
|
4581
4624
|
p(f, c) {
|
4582
4625
|
e = f, c[0] & /*gameCategories*/
|
@@ -4584,33 +4627,33 @@ function Zt(e) {
|
|
4584
4627
|
e[44].defaultThumbnail) && G(r, "src", n), c[0] & /*gameCategories*/
|
4585
4628
|
8 && i !== (i = /*game*/
|
4586
4629
|
e[44].name) && G(r, "alt", i), /*collectionprovidersgamenames*/
|
4587
|
-
e[2] == "true" ?
|
4630
|
+
e[2] == "true" ? u ? u.p(e, c) : (u = Yt(e), u.c(), u.m(t, s)) : u && (u.d(1), u = null);
|
4588
4631
|
},
|
4589
4632
|
d(f) {
|
4590
|
-
f && R(t),
|
4633
|
+
f && R(t), u && u.d(), a = !1, h();
|
4591
4634
|
}
|
4592
4635
|
};
|
4593
4636
|
}
|
4594
|
-
function
|
4595
|
-
let t, r, n, i, o, s, a, h,
|
4596
|
-
function
|
4637
|
+
function er(e) {
|
4638
|
+
let t, r, n, i, o, s, a, h, l;
|
4639
|
+
function u(g, _) {
|
4597
4640
|
if (
|
4598
4641
|
/*titletype*/
|
4599
4642
|
g[1] === "logo"
|
4600
4643
|
)
|
4601
|
-
return
|
4644
|
+
return Mo;
|
4602
4645
|
if (
|
4603
4646
|
/*titletype*/
|
4604
4647
|
g[1] === "title"
|
4605
4648
|
)
|
4606
|
-
return
|
4649
|
+
return No;
|
4607
4650
|
}
|
4608
|
-
let f =
|
4651
|
+
let f = u(e), c = f && f(e), d = Se(
|
4609
4652
|
/*category*/
|
4610
4653
|
e[41].games
|
4611
4654
|
), m = [];
|
4612
4655
|
for (let g = 0; g < d.length; g += 1)
|
4613
|
-
m[g] =
|
4656
|
+
m[g] = Kt(Jt(e, d, g));
|
4614
4657
|
function b() {
|
4615
4658
|
return (
|
4616
4659
|
/*click_handler_1*/
|
@@ -4622,23 +4665,23 @@ function Qt(e) {
|
|
4622
4665
|
}
|
4623
4666
|
return {
|
4624
4667
|
c() {
|
4625
|
-
var g,
|
4668
|
+
var g, _;
|
4626
4669
|
t = C("div"), r = C("div"), n = C("div"), c && c.c(), i = X(), o = C("div");
|
4627
4670
|
for (let E = 0; E < m.length; E += 1)
|
4628
4671
|
m[E].c();
|
4629
4672
|
a = X(), P(n, "class", "CategorySlideTopContainer"), P(o, "class", "CategorySlideGameContainer"), P(r, "class", s = "CategorySlide " + /*category*/
|
4630
|
-
(((g = e[41]) == null ? void 0 : g.flag[0]) === "vendor" ? "CategorySlideNoHighlight" : "")),
|
4631
|
-
((
|
4673
|
+
(((g = e[41]) == null ? void 0 : g.flag[0]) === "vendor" ? "CategorySlideNoHighlight" : "")), Re(r, "background-image", "url(" + /*category*/
|
4674
|
+
((_ = e[41]) == null ? void 0 : _.background) + ")"), Re(r, "background-size", "cover"), P(t, "class", "CategoriesSliderWrapper Animation");
|
4632
4675
|
},
|
4633
|
-
m(g,
|
4634
|
-
|
4676
|
+
m(g, _) {
|
4677
|
+
D(g, t, _), H(t, r), H(r, n), c && c.m(n, null), H(r, i), H(r, o);
|
4635
4678
|
for (let E = 0; E < m.length; E += 1)
|
4636
4679
|
m[E] && m[E].m(o, null);
|
4637
|
-
H(t, a), h || (
|
4680
|
+
H(t, a), h || (l = Ee(r, "click", b), h = !0);
|
4638
4681
|
},
|
4639
|
-
p(g,
|
4682
|
+
p(g, _) {
|
4640
4683
|
var E, w;
|
4641
|
-
if (e = g, f === (f =
|
4684
|
+
if (e = g, f === (f = u(e)) && c ? c.p(e, _) : (c && c.d(1), c = f && f(e), c && (c.c(), c.m(n, null))), _[0] & /*gameCategories, collectionprovidersgamenames, openGame*/
|
4642
4685
|
8204) {
|
4643
4686
|
d = Se(
|
4644
4687
|
/*category*/
|
@@ -4646,30 +4689,30 @@ function Qt(e) {
|
|
4646
4689
|
);
|
4647
4690
|
let T;
|
4648
4691
|
for (T = 0; T < d.length; T += 1) {
|
4649
|
-
const O =
|
4650
|
-
m[T] ? m[T].p(O,
|
4692
|
+
const O = Jt(e, d, T);
|
4693
|
+
m[T] ? m[T].p(O, _) : (m[T] = Kt(O), m[T].c(), m[T].m(o, null));
|
4651
4694
|
}
|
4652
4695
|
for (; T < m.length; T += 1)
|
4653
4696
|
m[T].d(1);
|
4654
4697
|
m.length = d.length;
|
4655
4698
|
}
|
4656
|
-
|
4699
|
+
_[0] & /*gameCategories*/
|
4657
4700
|
8 && s !== (s = "CategorySlide " + /*category*/
|
4658
|
-
(((E = e[41]) == null ? void 0 : E.flag[0]) === "vendor" ? "CategorySlideNoHighlight" : "")) && P(r, "class", s),
|
4659
|
-
8 &&
|
4701
|
+
(((E = e[41]) == null ? void 0 : E.flag[0]) === "vendor" ? "CategorySlideNoHighlight" : "")) && P(r, "class", s), _[0] & /*gameCategories*/
|
4702
|
+
8 && Re(r, "background-image", "url(" + /*category*/
|
4660
4703
|
((w = e[41]) == null ? void 0 : w.background) + ")");
|
4661
4704
|
},
|
4662
4705
|
d(g) {
|
4663
|
-
g && R(t), c && c.d(),
|
4706
|
+
g && R(t), c && c.d(), ir(m, g), h = !1, l();
|
4664
4707
|
}
|
4665
4708
|
};
|
4666
4709
|
}
|
4667
|
-
function
|
4710
|
+
function Ro(e) {
|
4668
4711
|
let t;
|
4669
4712
|
function r(o, s) {
|
4670
4713
|
return (
|
4671
4714
|
/*isLoading*/
|
4672
|
-
o[6] ?
|
4715
|
+
o[6] ? Io : Lo
|
4673
4716
|
);
|
4674
4717
|
}
|
4675
4718
|
let n = r(e), i = n(e);
|
@@ -4678,7 +4721,7 @@ function Oo(e) {
|
|
4678
4721
|
t = C("div"), i.c();
|
4679
4722
|
},
|
4680
4723
|
m(o, s) {
|
4681
|
-
|
4724
|
+
D(o, t, s), i.m(t, null), e[26](t);
|
4682
4725
|
},
|
4683
4726
|
p(o, s) {
|
4684
4727
|
n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
|
@@ -4690,70 +4733,70 @@ function Oo(e) {
|
|
4690
4733
|
}
|
4691
4734
|
};
|
4692
4735
|
}
|
4693
|
-
function
|
4736
|
+
function $o(e, t, r) {
|
4694
4737
|
let n;
|
4695
|
-
|
4696
|
-
let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "" } = t, { type: a = "" } = t, { titletype: h = "" } = t, { clientstyling:
|
4697
|
-
const
|
4738
|
+
en(e, ho, (p) => r(10, n = p));
|
4739
|
+
let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "" } = t, { type: a = "" } = t, { titletype: h = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: f = "" } = t, { collectionprovidersgamenames: c = "" } = t, { mbsource: d } = t, m = [], b = !0, g, _ = 0, E = 0, w = 0, T, O, V = 0, z = 50, Ne = !1, $, Rr = window.navigator.userAgent, ft;
|
4740
|
+
const $r = () => {
|
4698
4741
|
fetch(f).then((B) => B.json()).then((B) => {
|
4699
|
-
Object.keys(B).forEach((
|
4700
|
-
|
4742
|
+
Object.keys(B).forEach((F) => {
|
4743
|
+
Dt(F, B[F]);
|
4701
4744
|
});
|
4702
4745
|
}).catch((B) => {
|
4703
4746
|
console.log(B);
|
4704
4747
|
});
|
4705
4748
|
};
|
4706
|
-
Object.keys(
|
4707
|
-
|
4749
|
+
Object.keys(Ft).forEach((p) => {
|
4750
|
+
Dt(p, Ft[p]);
|
4708
4751
|
});
|
4709
|
-
const
|
4752
|
+
const dt = () => {
|
4710
4753
|
const p = new URL(`${i}/v2/casino/groups/${o}`);
|
4711
4754
|
p.searchParams.append("language", s), p.searchParams.append("expand", "games"), p.searchParams.append("filter", `$and(flags=${a})`), p.searchParams.append("pagination", `offset=${V},limit=${z}`), fetch(p.href).then((B) => B.json()).then((B) => {
|
4712
|
-
r(6, b = !1), B.total > z && (V += 50, z += 50, r(22,
|
4713
|
-
let
|
4714
|
-
var
|
4755
|
+
r(6, b = !1), B.total > z && (V += 50, z += 50, r(22, Ne = !0));
|
4756
|
+
let F = B.items.map((L) => {
|
4757
|
+
var vt, yt, _t;
|
4715
4758
|
return {
|
4716
4759
|
id: L.id,
|
4717
4760
|
name: L.name,
|
4718
|
-
icon: L.icon ? L.icon : (
|
4719
|
-
games: L.games.items.slice(0, 4).map((
|
4761
|
+
icon: L.icon ? L.icon : (_t = (yt = (vt = L.vendors) == null ? void 0 : vt.items[0]) == null ? void 0 : yt.subVendors[0]) == null ? void 0 : _t.logo,
|
4762
|
+
games: L.games.items.slice(0, 4).map((zr) => zr),
|
4720
4763
|
background: L.background,
|
4721
4764
|
flag: L.flags
|
4722
4765
|
};
|
4723
4766
|
});
|
4724
|
-
r(3, m = [...m, ...
|
4767
|
+
r(3, m = [...m, ...F]), r(7, E = m.length), Gr();
|
4725
4768
|
});
|
4726
|
-
},
|
4769
|
+
}, Gr = () => {
|
4727
4770
|
const p = $.getRootNode().host;
|
4728
4771
|
p.dispatchEvent(new CustomEvent("data-loaded", { bubbles: !0, detail: { target: p } }));
|
4729
|
-
},
|
4772
|
+
}, pt = (p) => {
|
4730
4773
|
var B;
|
4731
|
-
O = [...g.children], O.forEach((
|
4732
|
-
|
4733
|
-
}), T = (B = O[0]) == null ? void 0 : B.getBoundingClientRect().width,
|
4734
|
-
},
|
4774
|
+
O = [...g.children], O.forEach((F, L) => {
|
4775
|
+
F.style.transform = `translateX(${100 * (p ? L - p : L)}%)`;
|
4776
|
+
}), T = (B = O[0]) == null ? void 0 : B.getBoundingClientRect().width, Ur();
|
4777
|
+
}, Ur = () => {
|
4735
4778
|
r(8, w = Math.floor(g.clientWidth / T));
|
4736
|
-
},
|
4737
|
-
|
4738
|
-
},
|
4739
|
-
|
4740
|
-
},
|
4741
|
-
|
4742
|
-
},
|
4779
|
+
}, mt = () => {
|
4780
|
+
pt(_);
|
4781
|
+
}, Dr = () => {
|
4782
|
+
_ === 0 ? _ = E - w : _ - w < -1 ? _ = 0 : _--, mt();
|
4783
|
+
}, Fr = () => {
|
4784
|
+
_ === E - w ? _ = 0 : E - w < _ + 1 ? _ = E - w : _++, mt();
|
4785
|
+
}, bt = (p, B, F, L) => {
|
4743
4786
|
window.postMessage(
|
4744
4787
|
{
|
4745
4788
|
type: "OpenCollectionsProvidersGame",
|
4746
4789
|
gameId: p,
|
4747
4790
|
launchUrl: B,
|
4748
|
-
gameName:
|
4791
|
+
gameName: F,
|
4749
4792
|
subVendor: L
|
4750
4793
|
},
|
4751
4794
|
window.location.href
|
4752
4795
|
), typeof gtag == "function" && gtag("event", "OpenGame", {
|
4753
4796
|
context: "CollectionsProviders",
|
4754
|
-
gameName: `${
|
4797
|
+
gameName: `${F}`
|
4755
4798
|
});
|
4756
|
-
},
|
4799
|
+
}, gt = (p) => {
|
4757
4800
|
window.postMessage(
|
4758
4801
|
{
|
4759
4802
|
type: "OpenCollectionsProvidersCategory",
|
@@ -4761,34 +4804,34 @@ function Lo(e, t, r) {
|
|
4761
4804
|
},
|
4762
4805
|
window.location.href
|
4763
4806
|
);
|
4764
|
-
},
|
4765
|
-
|
4807
|
+
}, jr = () => {
|
4808
|
+
co(s);
|
4766
4809
|
};
|
4767
|
-
|
4810
|
+
ln(() => (r(9, ft = Co(Rr)), () => {
|
4768
4811
|
}));
|
4769
|
-
const
|
4770
|
-
function
|
4771
|
-
|
4812
|
+
const kr = (p) => bt(p.gameId, p.launchUrl, p.name, p.subVendor), Vr = (p) => gt(p.id);
|
4813
|
+
function Xr(p) {
|
4814
|
+
xe[p ? "unshift" : "push"](() => {
|
4772
4815
|
g = p, r(4, g);
|
4773
4816
|
});
|
4774
4817
|
}
|
4775
|
-
function
|
4776
|
-
|
4818
|
+
function Wr(p) {
|
4819
|
+
xe[p ? "unshift" : "push"](() => {
|
4777
4820
|
$ = p, r(5, $);
|
4778
4821
|
});
|
4779
4822
|
}
|
4780
4823
|
return e.$$set = (p) => {
|
4781
|
-
"endpoint" in p && r(15, i = p.endpoint), "datasource" in p && r(16, o = p.datasource), "lang" in p && r(17, s = p.lang), "type" in p && r(0, a = p.type), "titletype" in p && r(1, h = p.titletype), "clientstyling" in p && r(18,
|
4824
|
+
"endpoint" in p && r(15, i = p.endpoint), "datasource" in p && r(16, o = p.datasource), "lang" in p && r(17, s = p.lang), "type" in p && r(0, a = p.type), "titletype" in p && r(1, h = p.titletype), "clientstyling" in p && r(18, l = p.clientstyling), "clientstylingurl" in p && r(19, u = p.clientstylingurl), "translationurl" in p && r(20, f = p.translationurl), "collectionprovidersgamenames" in p && r(2, c = p.collectionprovidersgamenames), "mbsource" in p && r(21, d = p.mbsource);
|
4782
4825
|
}, e.$$.update = () => {
|
4783
4826
|
e.$$.dirty[0] & /*endpoint, datasource, lang*/
|
4784
|
-
229376 && i && o && s &&
|
4785
|
-
24 && m && g &&
|
4786
|
-
131072 && s &&
|
4787
|
-
262176 &&
|
4788
|
-
524320 &&
|
4789
|
-
2097184 && $ &&
|
4790
|
-
1048576 && f &&
|
4791
|
-
4194304 &&
|
4827
|
+
229376 && i && o && s && dt(), e.$$.dirty[0] & /*gameCategories, categoriesSlider*/
|
4828
|
+
24 && m && g && pt(), e.$$.dirty[0] & /*lang*/
|
4829
|
+
131072 && s && jr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
4830
|
+
262176 && l && $ && Po($, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
4831
|
+
524320 && u && $ && Bo($, u), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
4832
|
+
2097184 && $ && Ao($, `${d}.Style`), e.$$.dirty[0] & /*translationurl*/
|
4833
|
+
1048576 && f && $r(), e.$$.dirty[0] & /*paginationrequired*/
|
4834
|
+
4194304 && Ne && dt();
|
4792
4835
|
}, [
|
4793
4836
|
a,
|
4794
4837
|
h,
|
@@ -4799,34 +4842,34 @@ function Lo(e, t, r) {
|
|
4799
4842
|
b,
|
4800
4843
|
E,
|
4801
4844
|
w,
|
4802
|
-
at,
|
4803
|
-
n,
|
4804
|
-
Mr,
|
4805
|
-
Rr,
|
4806
|
-
ct,
|
4807
4845
|
ft,
|
4846
|
+
n,
|
4847
|
+
Dr,
|
4848
|
+
Fr,
|
4849
|
+
bt,
|
4850
|
+
gt,
|
4808
4851
|
i,
|
4809
4852
|
o,
|
4810
4853
|
s,
|
4811
|
-
u,
|
4812
4854
|
l,
|
4855
|
+
u,
|
4813
4856
|
f,
|
4814
4857
|
d,
|
4815
|
-
|
4816
|
-
|
4817
|
-
|
4818
|
-
|
4819
|
-
|
4858
|
+
Ne,
|
4859
|
+
kr,
|
4860
|
+
Vr,
|
4861
|
+
Xr,
|
4862
|
+
Wr
|
4820
4863
|
];
|
4821
4864
|
}
|
4822
|
-
class
|
4865
|
+
class Go extends En {
|
4823
4866
|
constructor(t) {
|
4824
|
-
super(),
|
4867
|
+
super(), yn(
|
4825
4868
|
this,
|
4826
4869
|
t,
|
4827
|
-
|
4828
|
-
|
4829
|
-
|
4870
|
+
$o,
|
4871
|
+
Ro,
|
4872
|
+
rr,
|
4830
4873
|
{
|
4831
4874
|
endpoint: 15,
|
4832
4875
|
datasource: 16,
|
@@ -4839,7 +4882,7 @@ class Io extends bn {
|
|
4839
4882
|
collectionprovidersgamenames: 2,
|
4840
4883
|
mbsource: 21
|
4841
4884
|
},
|
4842
|
-
|
4885
|
+
Oo,
|
4843
4886
|
[-1, -1]
|
4844
4887
|
);
|
4845
4888
|
}
|
@@ -4904,7 +4947,7 @@ class Io extends bn {
|
|
4904
4947
|
this.$$set({ mbsource: t }), M();
|
4905
4948
|
}
|
4906
4949
|
}
|
4907
|
-
|
4950
|
+
_n(Go, { endpoint: {}, datasource: {}, lang: {}, type: {}, titletype: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, collectionprovidersgamenames: {}, mbsource: {} }, [], [], !0);
|
4908
4951
|
export {
|
4909
|
-
|
4952
|
+
Go as default
|
4910
4953
|
};
|