@everymatrix/casino-categories-vendor-bar 1.62.0 → 1.62.2
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/{CasinoCategoriesVendorBar-DLi_1MrE.js → CasinoCategoriesVendorBar-BV0LRBw9.js} +873 -857
- package/components/CasinoCategoriesVendorBar-CKN-D2Hw.cjs +18 -0
- package/components/{CasinoCategoriesVendorBar-Nm4tGpiB.js → CasinoCategoriesVendorBar-D4JmKa5K.js} +907 -891
- package/es2015/casino-categories-vendor-bar.cjs +1 -1
- package/es2015/casino-categories-vendor-bar.js +1 -1
- package/esnext/casino-categories-vendor-bar.js +1 -1
- package/package.json +1 -1
- package/components/CasinoCategoriesVendorBar-BGnChmmb.cjs +0 -18
- package/stencil/app-globals-0f993ce5-D-kw1sls.js +0 -5
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +0 -1
- package/stencil/index-b7bbd57e-6KaMTlNN.js +0 -534
- package/stencil/index-b7bbd57e-BSagye0B.js +0 -550
- package/stencil/index-b7bbd57e-DIQXXTTR.cjs +0 -1
- package/stencil/ui-image-38c3c15f-CumwWbNu.js +0 -39
- package/stencil/ui-image-38c3c15f-Dxl-aZb-.js +0 -39
- package/stencil/ui-image-38c3c15f-y5t5ZLG0.cjs +0 -1
- package/stencil/ui-image-BQa5UbqU.js +0 -11
- package/stencil/ui-image-Bi4jDe3D.js +0 -29
- package/stencil/ui-image-z441BZiX.cjs +0 -1
package/components/{CasinoCategoriesVendorBar-DLi_1MrE.js → CasinoCategoriesVendorBar-BV0LRBw9.js}
RENAMED
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
import "../stencil/ui-image-BQa5UbqU.js";
|
|
2
1
|
function D() {
|
|
3
2
|
}
|
|
4
|
-
function
|
|
3
|
+
function Xt(e) {
|
|
5
4
|
return e();
|
|
6
5
|
}
|
|
7
|
-
function
|
|
6
|
+
function pt() {
|
|
8
7
|
return /* @__PURE__ */ Object.create(null);
|
|
9
8
|
}
|
|
10
|
-
function
|
|
11
|
-
e.forEach(
|
|
9
|
+
function X(e) {
|
|
10
|
+
e.forEach(Xt);
|
|
12
11
|
}
|
|
13
12
|
function Te(e) {
|
|
14
13
|
return typeof e == "function";
|
|
15
14
|
}
|
|
16
|
-
function
|
|
15
|
+
function zt(e, t) {
|
|
17
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
18
17
|
}
|
|
19
|
-
let
|
|
20
|
-
function
|
|
21
|
-
return e === t ? !0 : (
|
|
18
|
+
let me;
|
|
19
|
+
function Ee(e, t) {
|
|
20
|
+
return e === t ? !0 : (me || (me = document.createElement("a")), me.href = t, e === me.href);
|
|
22
21
|
}
|
|
23
22
|
function Dr(e) {
|
|
24
23
|
return Object.keys(e).length === 0;
|
|
@@ -68,29 +67,25 @@ function I(e) {
|
|
|
68
67
|
function S(e) {
|
|
69
68
|
return document.createElement(e);
|
|
70
69
|
}
|
|
71
|
-
function
|
|
70
|
+
function pe(e) {
|
|
72
71
|
return document.createTextNode(e);
|
|
73
72
|
}
|
|
74
|
-
function
|
|
75
|
-
return
|
|
73
|
+
function F() {
|
|
74
|
+
return pe(" ");
|
|
76
75
|
}
|
|
77
|
-
function
|
|
78
|
-
return
|
|
76
|
+
function at() {
|
|
77
|
+
return pe("");
|
|
79
78
|
}
|
|
80
|
-
function
|
|
79
|
+
function J(e, t, r, n) {
|
|
81
80
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
82
81
|
}
|
|
83
|
-
function
|
|
82
|
+
function x(e, t, r) {
|
|
84
83
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
85
84
|
}
|
|
86
|
-
function V(e, t, r) {
|
|
87
|
-
const n = t.toLowerCase();
|
|
88
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : C(e, t, r);
|
|
89
|
-
}
|
|
90
85
|
function jr(e) {
|
|
91
86
|
return Array.from(e.childNodes);
|
|
92
87
|
}
|
|
93
|
-
function
|
|
88
|
+
function ut(e, t) {
|
|
94
89
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
95
90
|
t);
|
|
96
91
|
}
|
|
@@ -103,158 +98,158 @@ function Vr(e) {
|
|
|
103
98
|
}
|
|
104
99
|
), t;
|
|
105
100
|
}
|
|
106
|
-
let
|
|
107
|
-
function
|
|
108
|
-
|
|
101
|
+
let he;
|
|
102
|
+
function le(e) {
|
|
103
|
+
he = e;
|
|
109
104
|
}
|
|
110
105
|
function Wr() {
|
|
111
|
-
if (!
|
|
106
|
+
if (!he)
|
|
112
107
|
throw new Error("Function called outside component initialization");
|
|
113
|
-
return
|
|
108
|
+
return he;
|
|
114
109
|
}
|
|
115
110
|
function Xr(e) {
|
|
116
111
|
Wr().$$.on_mount.push(e);
|
|
117
112
|
}
|
|
118
|
-
const
|
|
119
|
-
let
|
|
113
|
+
const q = [], K = [];
|
|
114
|
+
let ee = [];
|
|
120
115
|
const dt = [], zr = /* @__PURE__ */ Promise.resolve();
|
|
121
|
-
let
|
|
116
|
+
let Ve = !1;
|
|
122
117
|
function Zr() {
|
|
123
|
-
|
|
118
|
+
Ve || (Ve = !0, zr.then(R));
|
|
124
119
|
}
|
|
125
|
-
function
|
|
126
|
-
|
|
120
|
+
function We(e) {
|
|
121
|
+
ee.push(e);
|
|
127
122
|
}
|
|
128
|
-
const
|
|
129
|
-
let
|
|
123
|
+
const Re = /* @__PURE__ */ new Set();
|
|
124
|
+
let Q = 0;
|
|
130
125
|
function R() {
|
|
131
|
-
if (
|
|
126
|
+
if (Q !== 0)
|
|
132
127
|
return;
|
|
133
|
-
const e =
|
|
128
|
+
const e = he;
|
|
134
129
|
do {
|
|
135
130
|
try {
|
|
136
|
-
for (;
|
|
137
|
-
const t =
|
|
138
|
-
|
|
131
|
+
for (; Q < q.length; ) {
|
|
132
|
+
const t = q[Q];
|
|
133
|
+
Q++, le(t), Qr(t.$$);
|
|
139
134
|
}
|
|
140
135
|
} catch (t) {
|
|
141
|
-
throw
|
|
136
|
+
throw q.length = 0, Q = 0, t;
|
|
142
137
|
}
|
|
143
|
-
for (
|
|
144
|
-
|
|
145
|
-
for (let t = 0; t <
|
|
146
|
-
const r =
|
|
147
|
-
|
|
138
|
+
for (le(null), q.length = 0, Q = 0; K.length; )
|
|
139
|
+
K.pop()();
|
|
140
|
+
for (let t = 0; t < ee.length; t += 1) {
|
|
141
|
+
const r = ee[t];
|
|
142
|
+
Re.has(r) || (Re.add(r), r());
|
|
148
143
|
}
|
|
149
|
-
|
|
150
|
-
} while (
|
|
144
|
+
ee.length = 0;
|
|
145
|
+
} while (q.length);
|
|
151
146
|
for (; dt.length; )
|
|
152
147
|
dt.pop()();
|
|
153
|
-
|
|
148
|
+
Ve = !1, Re.clear(), le(e);
|
|
154
149
|
}
|
|
155
150
|
function Qr(e) {
|
|
156
151
|
if (e.fragment !== null) {
|
|
157
|
-
e.update(),
|
|
152
|
+
e.update(), X(e.before_update);
|
|
158
153
|
const t = e.dirty;
|
|
159
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
154
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(We);
|
|
160
155
|
}
|
|
161
156
|
}
|
|
162
|
-
function
|
|
157
|
+
function Yr(e) {
|
|
163
158
|
const t = [], r = [];
|
|
164
|
-
|
|
159
|
+
ee.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ee = t;
|
|
165
160
|
}
|
|
166
|
-
const
|
|
167
|
-
function
|
|
168
|
-
e && e.i && (
|
|
161
|
+
const qr = /* @__PURE__ */ new Set();
|
|
162
|
+
function Zt(e, t) {
|
|
163
|
+
e && e.i && (qr.delete(e), e.i(t));
|
|
169
164
|
}
|
|
170
|
-
function
|
|
165
|
+
function mt(e) {
|
|
171
166
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
172
167
|
}
|
|
173
168
|
function Jr(e, t) {
|
|
174
169
|
e.d(1), t.delete(e.key);
|
|
175
170
|
}
|
|
176
|
-
function Kr(e, t, r, n, i, o, s, a,
|
|
177
|
-
let f = e.length, m = o.length,
|
|
171
|
+
function Kr(e, t, r, n, i, o, s, a, u, l, h, c) {
|
|
172
|
+
let f = e.length, m = o.length, d = f;
|
|
178
173
|
const b = {};
|
|
179
|
-
for (;
|
|
180
|
-
b[e[
|
|
174
|
+
for (; d--; )
|
|
175
|
+
b[e[d].key] = d;
|
|
181
176
|
const T = [], L = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map(), A = [];
|
|
182
|
-
for (
|
|
183
|
-
const g = c(i, o,
|
|
177
|
+
for (d = m; d--; ) {
|
|
178
|
+
const g = c(i, o, d), $ = r(g);
|
|
184
179
|
let k = s.get($);
|
|
185
|
-
k ? A.push(() => k.p(g, t)) : (k =
|
|
180
|
+
k ? A.push(() => k.p(g, t)) : (k = l($, g), k.c()), L.set($, T[d] = k), $ in b && P.set($, Math.abs(d - b[$]));
|
|
186
181
|
}
|
|
187
|
-
const
|
|
182
|
+
const O = /* @__PURE__ */ new Set(), w = /* @__PURE__ */ new Set();
|
|
188
183
|
function N(g) {
|
|
189
|
-
|
|
184
|
+
Zt(g, 1), g.m(a, h), s.set(g.key, g), h = g.first, m--;
|
|
190
185
|
}
|
|
191
186
|
for (; f && m; ) {
|
|
192
|
-
const g = T[m - 1], $ = e[f - 1], k = g.key,
|
|
193
|
-
g === $ ? (h = g.first, f--, m--) : L.has(
|
|
187
|
+
const g = T[m - 1], $ = e[f - 1], k = g.key, Z = $.key;
|
|
188
|
+
g === $ ? (h = g.first, f--, m--) : L.has(Z) ? !s.has(k) || O.has(k) ? N(g) : w.has(Z) ? f-- : P.get(k) > P.get(Z) ? (w.add(k), N(g)) : (O.add(Z), f--) : (u($, s), f--);
|
|
194
189
|
}
|
|
195
190
|
for (; f--; ) {
|
|
196
191
|
const g = e[f];
|
|
197
|
-
L.has(g.key) ||
|
|
192
|
+
L.has(g.key) || u(g, s);
|
|
198
193
|
}
|
|
199
194
|
for (; m; )
|
|
200
195
|
N(T[m - 1]);
|
|
201
|
-
return
|
|
196
|
+
return X(A), T;
|
|
202
197
|
}
|
|
203
198
|
function en(e, t, r) {
|
|
204
199
|
const { fragment: n, after_update: i } = e.$$;
|
|
205
|
-
n && n.m(t, r),
|
|
206
|
-
const o = e.$$.on_mount.map(
|
|
207
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
208
|
-
}), i.forEach(
|
|
200
|
+
n && n.m(t, r), We(() => {
|
|
201
|
+
const o = e.$$.on_mount.map(Xt).filter(Te);
|
|
202
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : X(o), e.$$.on_mount = [];
|
|
203
|
+
}), i.forEach(We);
|
|
209
204
|
}
|
|
210
205
|
function tn(e, t) {
|
|
211
206
|
const r = e.$$;
|
|
212
|
-
r.fragment !== null && (
|
|
207
|
+
r.fragment !== null && (Yr(r.after_update), X(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
213
208
|
}
|
|
214
209
|
function rn(e, t) {
|
|
215
|
-
e.$$.dirty[0] === -1 && (
|
|
210
|
+
e.$$.dirty[0] === -1 && (q.push(e), Zr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
216
211
|
}
|
|
217
212
|
function nn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
218
|
-
const
|
|
219
|
-
|
|
220
|
-
const
|
|
213
|
+
const u = he;
|
|
214
|
+
le(e);
|
|
215
|
+
const l = e.$$ = {
|
|
221
216
|
fragment: null,
|
|
222
217
|
ctx: [],
|
|
223
218
|
// state
|
|
224
219
|
props: o,
|
|
225
220
|
update: D,
|
|
226
221
|
not_equal: i,
|
|
227
|
-
bound:
|
|
222
|
+
bound: pt(),
|
|
228
223
|
// lifecycle
|
|
229
224
|
on_mount: [],
|
|
230
225
|
on_destroy: [],
|
|
231
226
|
on_disconnect: [],
|
|
232
227
|
before_update: [],
|
|
233
228
|
after_update: [],
|
|
234
|
-
context: new Map(t.context || (
|
|
229
|
+
context: new Map(t.context || (u ? u.$$.context : [])),
|
|
235
230
|
// everything else
|
|
236
|
-
callbacks:
|
|
231
|
+
callbacks: pt(),
|
|
237
232
|
dirty: a,
|
|
238
233
|
skip_bound: !1,
|
|
239
|
-
root: t.target ||
|
|
234
|
+
root: t.target || u.$$.root
|
|
240
235
|
};
|
|
241
|
-
s && s(
|
|
236
|
+
s && s(l.root);
|
|
242
237
|
let h = !1;
|
|
243
|
-
if (
|
|
244
|
-
const
|
|
245
|
-
return
|
|
246
|
-
}) : [],
|
|
238
|
+
if (l.ctx = r ? r(e, t.props || {}, (c, f, ...m) => {
|
|
239
|
+
const d = m.length ? m[0] : f;
|
|
240
|
+
return l.ctx && i(l.ctx[c], l.ctx[c] = d) && (!l.skip_bound && l.bound[c] && l.bound[c](d), h && rn(e, c)), f;
|
|
241
|
+
}) : [], l.update(), h = !0, X(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
247
242
|
if (t.hydrate) {
|
|
248
243
|
const c = jr(t.target);
|
|
249
|
-
|
|
244
|
+
l.fragment && l.fragment.l(c), c.forEach(I);
|
|
250
245
|
} else
|
|
251
|
-
|
|
252
|
-
t.intro &&
|
|
246
|
+
l.fragment && l.fragment.c();
|
|
247
|
+
t.intro && Zt(e.$$.fragment), en(e, t.target, t.anchor), R();
|
|
253
248
|
}
|
|
254
|
-
|
|
249
|
+
le(u);
|
|
255
250
|
}
|
|
256
|
-
let
|
|
257
|
-
typeof HTMLElement == "function" && (
|
|
251
|
+
let Qt;
|
|
252
|
+
typeof HTMLElement == "function" && (Qt = class extends HTMLElement {
|
|
258
253
|
/** The Svelte component constructor */
|
|
259
254
|
$$ctor;
|
|
260
255
|
/** Slots */
|
|
@@ -296,17 +291,17 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
|
296
291
|
let o;
|
|
297
292
|
return {
|
|
298
293
|
c: function() {
|
|
299
|
-
o = S("slot"), i !== "default" &&
|
|
294
|
+
o = S("slot"), i !== "default" && x(o, "name", i);
|
|
300
295
|
},
|
|
301
296
|
/**
|
|
302
297
|
* @param {HTMLElement} target
|
|
303
298
|
* @param {HTMLElement} [anchor]
|
|
304
299
|
*/
|
|
305
|
-
m: function(
|
|
306
|
-
B(
|
|
300
|
+
m: function(u, l) {
|
|
301
|
+
B(u, o, l);
|
|
307
302
|
},
|
|
308
|
-
d: function(
|
|
309
|
-
|
|
303
|
+
d: function(u) {
|
|
304
|
+
u && I(o);
|
|
310
305
|
}
|
|
311
306
|
};
|
|
312
307
|
};
|
|
@@ -318,7 +313,7 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
|
318
313
|
i in r && (t[i] = [e(i)]);
|
|
319
314
|
for (const i of this.attributes) {
|
|
320
315
|
const o = this.$$g_p(i.name);
|
|
321
|
-
o in this.$$d || (this.$$d[o] =
|
|
316
|
+
o in this.$$d || (this.$$d[o] = ve(o, i.value, this.$$p_d, "toProp"));
|
|
322
317
|
}
|
|
323
318
|
for (const i in this.$$p_d)
|
|
324
319
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -336,7 +331,7 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
|
336
331
|
this.$$r = !0;
|
|
337
332
|
for (const i in this.$$p_d)
|
|
338
333
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
339
|
-
const o =
|
|
334
|
+
const o = ve(
|
|
340
335
|
i,
|
|
341
336
|
this.$$d[i],
|
|
342
337
|
this.$$p_d,
|
|
@@ -358,7 +353,7 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
|
358
353
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
359
354
|
// and setting attributes through setAttribute etc, this is helpful
|
|
360
355
|
attributeChangedCallback(e, t, r) {
|
|
361
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
356
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ve(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
362
357
|
}
|
|
363
358
|
disconnectedCallback() {
|
|
364
359
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -371,7 +366,7 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
|
371
366
|
) || e;
|
|
372
367
|
}
|
|
373
368
|
});
|
|
374
|
-
function
|
|
369
|
+
function ve(e, t, r, n) {
|
|
375
370
|
const i = r[e]?.type;
|
|
376
371
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
377
372
|
return t;
|
|
@@ -401,7 +396,7 @@ function ye(e, t, r, n) {
|
|
|
401
396
|
}
|
|
402
397
|
}
|
|
403
398
|
function on(e, t, r, n, i, o) {
|
|
404
|
-
let s = class extends
|
|
399
|
+
let s = class extends Qt {
|
|
405
400
|
constructor() {
|
|
406
401
|
super(e, r, i), this.$$p_d = t;
|
|
407
402
|
}
|
|
@@ -416,8 +411,8 @@ function on(e, t, r, n, i, o) {
|
|
|
416
411
|
get() {
|
|
417
412
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
418
413
|
},
|
|
419
|
-
set(
|
|
420
|
-
|
|
414
|
+
set(u) {
|
|
415
|
+
u = ve(a, u, t), this.$$d[a] = u, this.$$c?.$set({ [a]: u });
|
|
421
416
|
}
|
|
422
417
|
});
|
|
423
418
|
}), n.forEach((a) => {
|
|
@@ -489,43 +484,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
489
484
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
490
485
|
PERFORMANCE OF THIS SOFTWARE.
|
|
491
486
|
***************************************************************************** */
|
|
492
|
-
var
|
|
493
|
-
return
|
|
487
|
+
var Xe = function(e, t) {
|
|
488
|
+
return Xe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
494
489
|
r.__proto__ = n;
|
|
495
490
|
} || function(r, n) {
|
|
496
491
|
for (var i in n)
|
|
497
492
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
498
|
-
},
|
|
493
|
+
}, Xe(e, t);
|
|
499
494
|
};
|
|
500
|
-
function
|
|
495
|
+
function de(e, t) {
|
|
501
496
|
if (typeof t != "function" && t !== null)
|
|
502
497
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
503
|
-
|
|
498
|
+
Xe(e, t);
|
|
504
499
|
function r() {
|
|
505
500
|
this.constructor = e;
|
|
506
501
|
}
|
|
507
502
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
508
503
|
}
|
|
509
|
-
|
|
510
|
-
return _ = Object.assign || function(t) {
|
|
511
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
512
|
-
r = arguments[n];
|
|
513
|
-
for (var o in r)
|
|
514
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
515
|
-
}
|
|
516
|
-
return t;
|
|
517
|
-
}, _.apply(this, arguments);
|
|
518
|
-
};
|
|
519
|
-
function ln(e, t) {
|
|
520
|
-
var r = {};
|
|
521
|
-
for (var n in e)
|
|
522
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
523
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
524
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
525
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
526
|
-
return r;
|
|
527
|
-
}
|
|
528
|
-
function Xe(e) {
|
|
504
|
+
function ze(e) {
|
|
529
505
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
530
506
|
if (r)
|
|
531
507
|
return r.call(e);
|
|
@@ -537,7 +513,7 @@ function Xe(e) {
|
|
|
537
513
|
};
|
|
538
514
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
539
515
|
}
|
|
540
|
-
function
|
|
516
|
+
function Ze(e, t) {
|
|
541
517
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
542
518
|
if (!r)
|
|
543
519
|
return e;
|
|
@@ -557,22 +533,22 @@ function ze(e, t) {
|
|
|
557
533
|
}
|
|
558
534
|
return o;
|
|
559
535
|
}
|
|
560
|
-
function
|
|
561
|
-
if (
|
|
536
|
+
function Qe(e, t, r) {
|
|
537
|
+
if (arguments.length === 2)
|
|
562
538
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
563
539
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
564
540
|
return e.concat(o || t);
|
|
565
541
|
}
|
|
566
|
-
function
|
|
542
|
+
function j(e) {
|
|
567
543
|
return typeof e == "function";
|
|
568
544
|
}
|
|
569
|
-
function
|
|
545
|
+
function Yt(e) {
|
|
570
546
|
var t = function(n) {
|
|
571
547
|
Error.call(n), n.stack = new Error().stack;
|
|
572
548
|
}, r = e(t);
|
|
573
549
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
574
550
|
}
|
|
575
|
-
var
|
|
551
|
+
var Ue = Yt(function(e) {
|
|
576
552
|
return function(r) {
|
|
577
553
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
578
554
|
` + r.map(function(n, i) {
|
|
@@ -581,7 +557,7 @@ var Re = Qt(function(e) {
|
|
|
581
557
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
582
558
|
};
|
|
583
559
|
});
|
|
584
|
-
function
|
|
560
|
+
function Ye(e, t) {
|
|
585
561
|
if (e) {
|
|
586
562
|
var r = e.indexOf(t);
|
|
587
563
|
0 <= r && e.splice(r, 1);
|
|
@@ -599,15 +575,15 @@ var He = function() {
|
|
|
599
575
|
if (s)
|
|
600
576
|
if (this._parentage = null, Array.isArray(s))
|
|
601
577
|
try {
|
|
602
|
-
for (var a =
|
|
603
|
-
var
|
|
604
|
-
|
|
578
|
+
for (var a = ze(s), u = a.next(); !u.done; u = a.next()) {
|
|
579
|
+
var l = u.value;
|
|
580
|
+
l.remove(this);
|
|
605
581
|
}
|
|
606
582
|
} catch (b) {
|
|
607
583
|
t = { error: b };
|
|
608
584
|
} finally {
|
|
609
585
|
try {
|
|
610
|
-
|
|
586
|
+
u && !u.done && (r = a.return) && r.call(a);
|
|
611
587
|
} finally {
|
|
612
588
|
if (t)
|
|
613
589
|
throw t.error;
|
|
@@ -616,22 +592,22 @@ var He = function() {
|
|
|
616
592
|
else
|
|
617
593
|
s.remove(this);
|
|
618
594
|
var h = this.initialTeardown;
|
|
619
|
-
if (
|
|
595
|
+
if (j(h))
|
|
620
596
|
try {
|
|
621
597
|
h();
|
|
622
598
|
} catch (b) {
|
|
623
|
-
o = b instanceof
|
|
599
|
+
o = b instanceof Ue ? b.errors : [b];
|
|
624
600
|
}
|
|
625
601
|
var c = this._finalizers;
|
|
626
602
|
if (c) {
|
|
627
603
|
this._finalizers = null;
|
|
628
604
|
try {
|
|
629
|
-
for (var f =
|
|
630
|
-
var
|
|
605
|
+
for (var f = ze(c), m = f.next(); !m.done; m = f.next()) {
|
|
606
|
+
var d = m.value;
|
|
631
607
|
try {
|
|
632
|
-
|
|
608
|
+
bt(d);
|
|
633
609
|
} catch (b) {
|
|
634
|
-
o = o ?? [], b instanceof
|
|
610
|
+
o = o ?? [], b instanceof Ue ? o = Qe(Qe([], Ze(o)), Ze(b.errors)) : o.push(b);
|
|
635
611
|
}
|
|
636
612
|
}
|
|
637
613
|
} catch (b) {
|
|
@@ -646,13 +622,13 @@ var He = function() {
|
|
|
646
622
|
}
|
|
647
623
|
}
|
|
648
624
|
if (o)
|
|
649
|
-
throw new
|
|
625
|
+
throw new Ue(o);
|
|
650
626
|
}
|
|
651
627
|
}, e.prototype.add = function(t) {
|
|
652
628
|
var r;
|
|
653
629
|
if (t && t !== this)
|
|
654
630
|
if (this.closed)
|
|
655
|
-
|
|
631
|
+
bt(t);
|
|
656
632
|
else {
|
|
657
633
|
if (t instanceof e) {
|
|
658
634
|
if (t.closed || t._hasParent(this))
|
|
@@ -669,32 +645,28 @@ var He = function() {
|
|
|
669
645
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
670
646
|
}, e.prototype._removeParent = function(t) {
|
|
671
647
|
var r = this._parentage;
|
|
672
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
648
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ye(r, t);
|
|
673
649
|
}, e.prototype.remove = function(t) {
|
|
674
650
|
var r = this._finalizers;
|
|
675
|
-
r &&
|
|
651
|
+
r && Ye(r, t), t instanceof e && t._removeParent(this);
|
|
676
652
|
}, e.EMPTY = function() {
|
|
677
653
|
var t = new e();
|
|
678
654
|
return t.closed = !0, t;
|
|
679
655
|
}(), e;
|
|
680
656
|
}(), qt = He.EMPTY;
|
|
681
|
-
function
|
|
682
|
-
return e instanceof He || e && "closed" in e &&
|
|
657
|
+
function Jt(e) {
|
|
658
|
+
return e instanceof He || e && "closed" in e && j(e.remove) && j(e.add) && j(e.unsubscribe);
|
|
683
659
|
}
|
|
684
|
-
function
|
|
685
|
-
|
|
686
|
-
}
|
|
687
|
-
var
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
Promise: void 0,
|
|
691
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
692
|
-
useDeprecatedNextContext: !1
|
|
693
|
-
}, un = {
|
|
660
|
+
function bt(e) {
|
|
661
|
+
j(e) ? e() : e.unsubscribe();
|
|
662
|
+
}
|
|
663
|
+
var un = {
|
|
664
|
+
Promise: void 0
|
|
665
|
+
}, ln = {
|
|
694
666
|
setTimeout: function(e, t) {
|
|
695
667
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
696
668
|
r[n - 2] = arguments[n];
|
|
697
|
-
return setTimeout.apply(void 0,
|
|
669
|
+
return setTimeout.apply(void 0, Qe([e, t], Ze(r)));
|
|
698
670
|
},
|
|
699
671
|
clearTimeout: function(e) {
|
|
700
672
|
return clearTimeout(e);
|
|
@@ -702,23 +674,23 @@ var Jt = {
|
|
|
702
674
|
delegate: void 0
|
|
703
675
|
};
|
|
704
676
|
function hn(e) {
|
|
705
|
-
|
|
677
|
+
ln.setTimeout(function() {
|
|
706
678
|
throw e;
|
|
707
679
|
});
|
|
708
680
|
}
|
|
709
|
-
function
|
|
681
|
+
function gt() {
|
|
710
682
|
}
|
|
711
|
-
function
|
|
683
|
+
function ye(e) {
|
|
712
684
|
e();
|
|
713
685
|
}
|
|
714
686
|
var Kt = function(e) {
|
|
715
|
-
|
|
687
|
+
de(t, e);
|
|
716
688
|
function t(r) {
|
|
717
689
|
var n = e.call(this) || this;
|
|
718
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
690
|
+
return n.isStopped = !1, r ? (n.destination = r, Jt(r) && r.add(n)) : n.destination = pn, n;
|
|
719
691
|
}
|
|
720
692
|
return t.create = function(r, n, i) {
|
|
721
|
-
return new
|
|
693
|
+
return new qe(r, n, i);
|
|
722
694
|
}, t.prototype.next = function(r) {
|
|
723
695
|
this.isStopped || this._next(r);
|
|
724
696
|
}, t.prototype.error = function(r) {
|
|
@@ -742,11 +714,7 @@ var Kt = function(e) {
|
|
|
742
714
|
this.unsubscribe();
|
|
743
715
|
}
|
|
744
716
|
}, t;
|
|
745
|
-
}(He), cn =
|
|
746
|
-
function Ue(e, t) {
|
|
747
|
-
return cn.call(e, t);
|
|
748
|
-
}
|
|
749
|
-
var fn = function() {
|
|
717
|
+
}(He), cn = function() {
|
|
750
718
|
function e(t) {
|
|
751
719
|
this.partialObserver = t;
|
|
752
720
|
}
|
|
@@ -756,7 +724,7 @@ var fn = function() {
|
|
|
756
724
|
try {
|
|
757
725
|
r.next(t);
|
|
758
726
|
} catch (n) {
|
|
759
|
-
|
|
727
|
+
be(n);
|
|
760
728
|
}
|
|
761
729
|
}, e.prototype.error = function(t) {
|
|
762
730
|
var r = this.partialObserver;
|
|
@@ -764,68 +732,56 @@ var fn = function() {
|
|
|
764
732
|
try {
|
|
765
733
|
r.error(t);
|
|
766
734
|
} catch (n) {
|
|
767
|
-
|
|
735
|
+
be(n);
|
|
768
736
|
}
|
|
769
737
|
else
|
|
770
|
-
|
|
738
|
+
be(t);
|
|
771
739
|
}, e.prototype.complete = function() {
|
|
772
740
|
var t = this.partialObserver;
|
|
773
741
|
if (t.complete)
|
|
774
742
|
try {
|
|
775
743
|
t.complete();
|
|
776
744
|
} catch (r) {
|
|
777
|
-
|
|
745
|
+
be(r);
|
|
778
746
|
}
|
|
779
747
|
}, e;
|
|
780
|
-
}(),
|
|
781
|
-
|
|
748
|
+
}(), qe = function(e) {
|
|
749
|
+
de(t, e);
|
|
782
750
|
function t(r, n, i) {
|
|
783
751
|
var o = e.call(this) || this, s;
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
};
|
|
790
|
-
else {
|
|
791
|
-
var a;
|
|
792
|
-
o && Jt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
793
|
-
return o.unsubscribe();
|
|
794
|
-
}, s = {
|
|
795
|
-
next: r.next && Ue(r.next, a),
|
|
796
|
-
error: r.error && Ue(r.error, a),
|
|
797
|
-
complete: r.complete && Ue(r.complete, a)
|
|
798
|
-
}) : s = r;
|
|
799
|
-
}
|
|
800
|
-
return o.destination = new fn(s), o;
|
|
752
|
+
return j(r) || !r ? s = {
|
|
753
|
+
next: r ?? void 0,
|
|
754
|
+
error: n ?? void 0,
|
|
755
|
+
complete: i ?? void 0
|
|
756
|
+
} : s = r, o.destination = new cn(s), o;
|
|
801
757
|
}
|
|
802
758
|
return t;
|
|
803
759
|
}(Kt);
|
|
804
|
-
function
|
|
760
|
+
function be(e) {
|
|
805
761
|
hn(e);
|
|
806
762
|
}
|
|
807
|
-
function
|
|
763
|
+
function fn(e) {
|
|
808
764
|
throw e;
|
|
809
765
|
}
|
|
810
766
|
var pn = {
|
|
811
767
|
closed: !0,
|
|
812
|
-
next:
|
|
813
|
-
error:
|
|
814
|
-
complete:
|
|
815
|
-
},
|
|
768
|
+
next: gt,
|
|
769
|
+
error: fn,
|
|
770
|
+
complete: gt
|
|
771
|
+
}, dn = function() {
|
|
816
772
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
817
773
|
}();
|
|
818
|
-
function
|
|
774
|
+
function mn(e) {
|
|
819
775
|
return e;
|
|
820
776
|
}
|
|
821
|
-
function
|
|
822
|
-
return e.length === 0 ?
|
|
777
|
+
function bn(e) {
|
|
778
|
+
return e.length === 0 ? mn : e.length === 1 ? e[0] : function(r) {
|
|
823
779
|
return e.reduce(function(n, i) {
|
|
824
780
|
return i(n);
|
|
825
781
|
}, r);
|
|
826
782
|
};
|
|
827
783
|
}
|
|
828
|
-
var
|
|
784
|
+
var vt = function() {
|
|
829
785
|
function e(t) {
|
|
830
786
|
t && (this._subscribe = t);
|
|
831
787
|
}
|
|
@@ -833,10 +789,10 @@ var gt = function() {
|
|
|
833
789
|
var r = new e();
|
|
834
790
|
return r.source = this, r.operator = t, r;
|
|
835
791
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
836
|
-
var i = this, o =
|
|
837
|
-
return
|
|
838
|
-
var s = i, a = s.operator,
|
|
839
|
-
o.add(a ? a.call(o,
|
|
792
|
+
var i = this, o = vn(t) ? t : new qe(t, r, n);
|
|
793
|
+
return ye(function() {
|
|
794
|
+
var s = i, a = s.operator, u = s.source;
|
|
795
|
+
o.add(a ? a.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
|
|
840
796
|
}), o;
|
|
841
797
|
}, e.prototype._trySubscribe = function(t) {
|
|
842
798
|
try {
|
|
@@ -846,13 +802,13 @@ var gt = function() {
|
|
|
846
802
|
}
|
|
847
803
|
}, e.prototype.forEach = function(t, r) {
|
|
848
804
|
var n = this;
|
|
849
|
-
return r =
|
|
850
|
-
var s = new
|
|
805
|
+
return r = yt(r), new r(function(i, o) {
|
|
806
|
+
var s = new qe({
|
|
851
807
|
next: function(a) {
|
|
852
808
|
try {
|
|
853
809
|
t(a);
|
|
854
|
-
} catch (
|
|
855
|
-
o(
|
|
810
|
+
} catch (u) {
|
|
811
|
+
o(u), s.unsubscribe();
|
|
856
812
|
}
|
|
857
813
|
},
|
|
858
814
|
error: o,
|
|
@@ -863,15 +819,15 @@ var gt = function() {
|
|
|
863
819
|
}, e.prototype._subscribe = function(t) {
|
|
864
820
|
var r;
|
|
865
821
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
866
|
-
}, e.prototype[
|
|
822
|
+
}, e.prototype[dn] = function() {
|
|
867
823
|
return this;
|
|
868
824
|
}, e.prototype.pipe = function() {
|
|
869
825
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
870
826
|
t[r] = arguments[r];
|
|
871
|
-
return
|
|
827
|
+
return bn(t)(this);
|
|
872
828
|
}, e.prototype.toPromise = function(t) {
|
|
873
829
|
var r = this;
|
|
874
|
-
return t =
|
|
830
|
+
return t = yt(t), new t(function(n, i) {
|
|
875
831
|
var o;
|
|
876
832
|
r.subscribe(function(s) {
|
|
877
833
|
return o = s;
|
|
@@ -885,45 +841,45 @@ var gt = function() {
|
|
|
885
841
|
return new e(t);
|
|
886
842
|
}, e;
|
|
887
843
|
}();
|
|
888
|
-
function
|
|
844
|
+
function yt(e) {
|
|
889
845
|
var t;
|
|
890
|
-
return (t = e ??
|
|
846
|
+
return (t = e ?? un.Promise) !== null && t !== void 0 ? t : Promise;
|
|
891
847
|
}
|
|
892
|
-
function
|
|
893
|
-
return e &&
|
|
848
|
+
function gn(e) {
|
|
849
|
+
return e && j(e.next) && j(e.error) && j(e.complete);
|
|
894
850
|
}
|
|
895
|
-
function
|
|
896
|
-
return e && e instanceof Kt ||
|
|
851
|
+
function vn(e) {
|
|
852
|
+
return e && e instanceof Kt || gn(e) && Jt(e);
|
|
897
853
|
}
|
|
898
|
-
var
|
|
854
|
+
var yn = Yt(function(e) {
|
|
899
855
|
return function() {
|
|
900
856
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
901
857
|
};
|
|
902
858
|
}), er = function(e) {
|
|
903
|
-
|
|
859
|
+
de(t, e);
|
|
904
860
|
function t() {
|
|
905
861
|
var r = e.call(this) || this;
|
|
906
862
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
907
863
|
}
|
|
908
864
|
return t.prototype.lift = function(r) {
|
|
909
|
-
var n = new
|
|
865
|
+
var n = new _t(this, this);
|
|
910
866
|
return n.operator = r, n;
|
|
911
867
|
}, t.prototype._throwIfClosed = function() {
|
|
912
868
|
if (this.closed)
|
|
913
|
-
throw new
|
|
869
|
+
throw new yn();
|
|
914
870
|
}, t.prototype.next = function(r) {
|
|
915
871
|
var n = this;
|
|
916
|
-
|
|
872
|
+
ye(function() {
|
|
917
873
|
var i, o;
|
|
918
874
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
919
875
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
920
876
|
try {
|
|
921
|
-
for (var s =
|
|
922
|
-
var
|
|
923
|
-
|
|
877
|
+
for (var s = ze(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
878
|
+
var u = a.value;
|
|
879
|
+
u.next(r);
|
|
924
880
|
}
|
|
925
|
-
} catch (
|
|
926
|
-
i = { error:
|
|
881
|
+
} catch (l) {
|
|
882
|
+
i = { error: l };
|
|
927
883
|
} finally {
|
|
928
884
|
try {
|
|
929
885
|
a && !a.done && (o = s.return) && o.call(s);
|
|
@@ -936,7 +892,7 @@ var _n = Qt(function(e) {
|
|
|
936
892
|
});
|
|
937
893
|
}, t.prototype.error = function(r) {
|
|
938
894
|
var n = this;
|
|
939
|
-
|
|
895
|
+
ye(function() {
|
|
940
896
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
941
897
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
942
898
|
for (var i = n.observers; i.length; )
|
|
@@ -945,7 +901,7 @@ var _n = Qt(function(e) {
|
|
|
945
901
|
});
|
|
946
902
|
}, t.prototype.complete = function() {
|
|
947
903
|
var r = this;
|
|
948
|
-
|
|
904
|
+
ye(function() {
|
|
949
905
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
950
906
|
r.isStopped = !0;
|
|
951
907
|
for (var n = r.observers; n.length; )
|
|
@@ -968,19 +924,19 @@ var _n = Qt(function(e) {
|
|
|
968
924
|
}, t.prototype._innerSubscribe = function(r) {
|
|
969
925
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
970
926
|
return o || s ? qt : (this.currentObservers = null, a.push(r), new He(function() {
|
|
971
|
-
n.currentObservers = null,
|
|
927
|
+
n.currentObservers = null, Ye(a, r);
|
|
972
928
|
}));
|
|
973
929
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
974
930
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
975
931
|
i ? r.error(o) : s && r.complete();
|
|
976
932
|
}, t.prototype.asObservable = function() {
|
|
977
|
-
var r = new
|
|
933
|
+
var r = new vt();
|
|
978
934
|
return r.source = this, r;
|
|
979
935
|
}, t.create = function(r, n) {
|
|
980
|
-
return new
|
|
936
|
+
return new _t(r, n);
|
|
981
937
|
}, t;
|
|
982
|
-
}(
|
|
983
|
-
|
|
938
|
+
}(vt), _t = function(e) {
|
|
939
|
+
de(t, e);
|
|
984
940
|
function t(r, n) {
|
|
985
941
|
var i = e.call(this) || this;
|
|
986
942
|
return i.destination = r, i.source = n, i;
|
|
@@ -1003,38 +959,38 @@ var _n = Qt(function(e) {
|
|
|
1003
959
|
return (tr.delegate || Date).now();
|
|
1004
960
|
},
|
|
1005
961
|
delegate: void 0
|
|
1006
|
-
},
|
|
1007
|
-
|
|
962
|
+
}, _n = function(e) {
|
|
963
|
+
de(t, e);
|
|
1008
964
|
function t(r, n, i) {
|
|
1009
965
|
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = tr);
|
|
1010
966
|
var o = e.call(this) || this;
|
|
1011
967
|
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;
|
|
1012
968
|
}
|
|
1013
969
|
return t.prototype.next = function(r) {
|
|
1014
|
-
var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider,
|
|
1015
|
-
i || (o.push(r), !s && o.push(a.now() +
|
|
970
|
+
var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, u = n._windowTime;
|
|
971
|
+
i || (o.push(r), !s && o.push(a.now() + u)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
1016
972
|
}, t.prototype._subscribe = function(r) {
|
|
1017
973
|
this._throwIfClosed(), this._trimBuffer();
|
|
1018
|
-
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(),
|
|
1019
|
-
r.next(a[
|
|
974
|
+
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), u = 0; u < a.length && !r.closed; u += o ? 1 : 2)
|
|
975
|
+
r.next(a[u]);
|
|
1020
976
|
return this._checkFinalizedStatuses(r), n;
|
|
1021
977
|
}, t.prototype._trimBuffer = function() {
|
|
1022
978
|
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
|
|
1023
979
|
if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
|
|
1024
|
-
for (var
|
|
1025
|
-
|
|
1026
|
-
|
|
980
|
+
for (var u = i.now(), l = 0, h = 1; h < o.length && o[h] <= u; h += 2)
|
|
981
|
+
l = h;
|
|
982
|
+
l && o.splice(0, l + 1);
|
|
1027
983
|
}
|
|
1028
984
|
}, t;
|
|
1029
985
|
}(er);
|
|
1030
|
-
const
|
|
1031
|
-
if (
|
|
1032
|
-
const r = new
|
|
1033
|
-
|
|
986
|
+
const xt = [], Et = {}, xn = (e, t = 0) => {
|
|
987
|
+
if (xt.indexOf(e) == -1) {
|
|
988
|
+
const r = new _n(t);
|
|
989
|
+
Et[e] = r, xt.push(e);
|
|
1034
990
|
}
|
|
1035
|
-
return
|
|
991
|
+
return Et[e];
|
|
1036
992
|
}, Y = [];
|
|
1037
|
-
function
|
|
993
|
+
function En(e, t) {
|
|
1038
994
|
return {
|
|
1039
995
|
subscribe: Ae(e, t).subscribe
|
|
1040
996
|
};
|
|
@@ -1043,13 +999,13 @@ function Ae(e, t = D) {
|
|
|
1043
999
|
let r;
|
|
1044
1000
|
const n = /* @__PURE__ */ new Set();
|
|
1045
1001
|
function i(a) {
|
|
1046
|
-
if (
|
|
1047
|
-
const
|
|
1048
|
-
for (const
|
|
1049
|
-
|
|
1050
|
-
if (
|
|
1051
|
-
for (let
|
|
1052
|
-
Y[
|
|
1002
|
+
if (zt(e, a) && (e = a, r)) {
|
|
1003
|
+
const u = !Y.length;
|
|
1004
|
+
for (const l of n)
|
|
1005
|
+
l[1](), Y.push(l, e);
|
|
1006
|
+
if (u) {
|
|
1007
|
+
for (let l = 0; l < Y.length; l += 2)
|
|
1008
|
+
Y[l][0](Y[l + 1]);
|
|
1053
1009
|
Y.length = 0;
|
|
1054
1010
|
}
|
|
1055
1011
|
}
|
|
@@ -1057,86 +1013,86 @@ function Ae(e, t = D) {
|
|
|
1057
1013
|
function o(a) {
|
|
1058
1014
|
i(a(e));
|
|
1059
1015
|
}
|
|
1060
|
-
function s(a,
|
|
1061
|
-
const
|
|
1062
|
-
return n.add(
|
|
1063
|
-
n.delete(
|
|
1016
|
+
function s(a, u = D) {
|
|
1017
|
+
const l = [a, u];
|
|
1018
|
+
return n.add(l), n.size === 1 && (r = t(i, o) || D), a(e), () => {
|
|
1019
|
+
n.delete(l), n.size === 0 && r && (r(), r = null);
|
|
1064
1020
|
};
|
|
1065
1021
|
}
|
|
1066
1022
|
return { set: i, update: o, subscribe: s };
|
|
1067
1023
|
}
|
|
1068
|
-
function
|
|
1024
|
+
function oe(e, t, r) {
|
|
1069
1025
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1070
1026
|
if (!i.every(Boolean))
|
|
1071
1027
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1072
1028
|
const o = t.length < 2;
|
|
1073
|
-
return
|
|
1074
|
-
let
|
|
1075
|
-
const
|
|
1029
|
+
return En(r, (s, a) => {
|
|
1030
|
+
let u = !1;
|
|
1031
|
+
const l = [];
|
|
1076
1032
|
let h = 0, c = D;
|
|
1077
1033
|
const f = () => {
|
|
1078
1034
|
if (h)
|
|
1079
1035
|
return;
|
|
1080
1036
|
c();
|
|
1081
|
-
const
|
|
1082
|
-
o ? s(
|
|
1037
|
+
const d = t(n ? l[0] : l, s, a);
|
|
1038
|
+
o ? s(d) : c = Te(d) ? d : D;
|
|
1083
1039
|
}, m = i.map(
|
|
1084
|
-
(
|
|
1085
|
-
|
|
1040
|
+
(d, b) => $r(
|
|
1041
|
+
d,
|
|
1086
1042
|
(T) => {
|
|
1087
|
-
|
|
1043
|
+
l[b] = T, h &= ~(1 << b), u && f();
|
|
1088
1044
|
},
|
|
1089
1045
|
() => {
|
|
1090
1046
|
h |= 1 << b;
|
|
1091
1047
|
}
|
|
1092
1048
|
)
|
|
1093
1049
|
);
|
|
1094
|
-
return
|
|
1095
|
-
|
|
1050
|
+
return u = !0, f(), function() {
|
|
1051
|
+
X(m), c(), u = !1;
|
|
1096
1052
|
};
|
|
1097
1053
|
});
|
|
1098
1054
|
}
|
|
1099
|
-
function
|
|
1055
|
+
function wn(e) {
|
|
1100
1056
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1101
1057
|
}
|
|
1102
|
-
var
|
|
1103
|
-
return
|
|
1058
|
+
var Cn = function(t) {
|
|
1059
|
+
return Sn(t) && !Tn(t);
|
|
1104
1060
|
};
|
|
1105
|
-
function
|
|
1061
|
+
function Sn(e) {
|
|
1106
1062
|
return !!e && typeof e == "object";
|
|
1107
1063
|
}
|
|
1108
|
-
function
|
|
1064
|
+
function Tn(e) {
|
|
1109
1065
|
var t = Object.prototype.toString.call(e);
|
|
1110
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1066
|
+
return t === "[object RegExp]" || t === "[object Date]" || In(e);
|
|
1111
1067
|
}
|
|
1112
|
-
var
|
|
1113
|
-
function
|
|
1114
|
-
return e.$$typeof ===
|
|
1068
|
+
var Hn = typeof Symbol == "function" && Symbol.for, An = Hn ? Symbol.for("react.element") : 60103;
|
|
1069
|
+
function In(e) {
|
|
1070
|
+
return e.$$typeof === An;
|
|
1115
1071
|
}
|
|
1116
|
-
function
|
|
1072
|
+
function Bn(e) {
|
|
1117
1073
|
return Array.isArray(e) ? [] : {};
|
|
1118
1074
|
}
|
|
1119
|
-
function
|
|
1120
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1075
|
+
function ce(e, t) {
|
|
1076
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? te(Bn(e), e, t) : e;
|
|
1121
1077
|
}
|
|
1122
|
-
function
|
|
1078
|
+
function Pn(e, t, r) {
|
|
1123
1079
|
return e.concat(t).map(function(n) {
|
|
1124
|
-
return
|
|
1080
|
+
return ce(n, r);
|
|
1125
1081
|
});
|
|
1126
1082
|
}
|
|
1127
1083
|
function On(e, t) {
|
|
1128
1084
|
if (!t.customMerge)
|
|
1129
|
-
return
|
|
1085
|
+
return te;
|
|
1130
1086
|
var r = t.customMerge(e);
|
|
1131
|
-
return typeof r == "function" ? r :
|
|
1087
|
+
return typeof r == "function" ? r : te;
|
|
1132
1088
|
}
|
|
1133
|
-
function
|
|
1089
|
+
function Mn(e) {
|
|
1134
1090
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1135
1091
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1136
1092
|
}) : [];
|
|
1137
1093
|
}
|
|
1138
|
-
function
|
|
1139
|
-
return Object.keys(e).concat(
|
|
1094
|
+
function wt(e) {
|
|
1095
|
+
return Object.keys(e).concat(Mn(e));
|
|
1140
1096
|
}
|
|
1141
1097
|
function rr(e, t) {
|
|
1142
1098
|
try {
|
|
@@ -1145,33 +1101,75 @@ function rr(e, t) {
|
|
|
1145
1101
|
return !1;
|
|
1146
1102
|
}
|
|
1147
1103
|
}
|
|
1148
|
-
function
|
|
1104
|
+
function Ln(e, t) {
|
|
1149
1105
|
return rr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1150
1106
|
}
|
|
1151
|
-
function
|
|
1107
|
+
function Nn(e, t, r) {
|
|
1152
1108
|
var n = {};
|
|
1153
|
-
return r.isMergeableObject(e) &&
|
|
1154
|
-
n[i] =
|
|
1155
|
-
}),
|
|
1156
|
-
|
|
1109
|
+
return r.isMergeableObject(e) && wt(e).forEach(function(i) {
|
|
1110
|
+
n[i] = ce(e[i], r);
|
|
1111
|
+
}), wt(t).forEach(function(i) {
|
|
1112
|
+
Ln(e, i) || (rr(e, i) && r.isMergeableObject(t[i]) ? n[i] = On(i, r)(e[i], t[i], r) : n[i] = ce(t[i], r));
|
|
1157
1113
|
}), n;
|
|
1158
1114
|
}
|
|
1159
|
-
function
|
|
1160
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1115
|
+
function te(e, t, r) {
|
|
1116
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Pn, r.isMergeableObject = r.isMergeableObject || Cn, r.cloneUnlessOtherwiseSpecified = ce;
|
|
1161
1117
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1162
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1118
|
+
return o ? n ? r.arrayMerge(e, t, r) : Nn(e, t, r) : ce(t, r);
|
|
1163
1119
|
}
|
|
1164
|
-
|
|
1120
|
+
te.all = function(t, r) {
|
|
1165
1121
|
if (!Array.isArray(t))
|
|
1166
1122
|
throw new Error("first argument should be an array");
|
|
1167
1123
|
return t.reduce(function(n, i) {
|
|
1168
|
-
return
|
|
1124
|
+
return te(n, i, r);
|
|
1169
1125
|
}, {});
|
|
1170
1126
|
};
|
|
1171
|
-
var
|
|
1172
|
-
const
|
|
1173
|
-
function
|
|
1174
|
-
|
|
1127
|
+
var Rn = te, Un = Rn;
|
|
1128
|
+
const Dn = /* @__PURE__ */ wn(Un);
|
|
1129
|
+
var Je = function(e, t) {
|
|
1130
|
+
return Je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1131
|
+
r.__proto__ = n;
|
|
1132
|
+
} || function(r, n) {
|
|
1133
|
+
for (var i in n)
|
|
1134
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1135
|
+
}, Je(e, t);
|
|
1136
|
+
};
|
|
1137
|
+
function Ie(e, t) {
|
|
1138
|
+
if (typeof t != "function" && t !== null)
|
|
1139
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1140
|
+
Je(e, t);
|
|
1141
|
+
function r() {
|
|
1142
|
+
this.constructor = e;
|
|
1143
|
+
}
|
|
1144
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1145
|
+
}
|
|
1146
|
+
var G = function() {
|
|
1147
|
+
return G = Object.assign || function(t) {
|
|
1148
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1149
|
+
r = arguments[n];
|
|
1150
|
+
for (var o in r)
|
|
1151
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1152
|
+
}
|
|
1153
|
+
return t;
|
|
1154
|
+
}, G.apply(this, arguments);
|
|
1155
|
+
};
|
|
1156
|
+
function $n(e, t) {
|
|
1157
|
+
var r = {};
|
|
1158
|
+
for (var n in e)
|
|
1159
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1160
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1161
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1162
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1163
|
+
return r;
|
|
1164
|
+
}
|
|
1165
|
+
function De(e, t, r) {
|
|
1166
|
+
if (r || arguments.length === 2)
|
|
1167
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1168
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1169
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1170
|
+
}
|
|
1171
|
+
function $e(e, t) {
|
|
1172
|
+
var r = t && t.cache ? t.cache : Xn, n = t && t.serializer ? t.serializer : Vn, i = t && t.strategy ? t.strategy : Fn;
|
|
1175
1173
|
return i(e, {
|
|
1176
1174
|
cache: r,
|
|
1177
1175
|
serializer: n
|
|
@@ -1180,47 +1178,55 @@ function De(e, t) {
|
|
|
1180
1178
|
function kn(e) {
|
|
1181
1179
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1182
1180
|
}
|
|
1183
|
-
function
|
|
1181
|
+
function Gn(e, t, r, n) {
|
|
1184
1182
|
var i = kn(n) ? n : r(n), o = t.get(i);
|
|
1185
1183
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1186
1184
|
}
|
|
1187
|
-
function
|
|
1185
|
+
function nr(e, t, r) {
|
|
1188
1186
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1189
1187
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1190
1188
|
}
|
|
1191
|
-
function
|
|
1189
|
+
function ir(e, t, r, n, i) {
|
|
1192
1190
|
return r.bind(t, e, n, i);
|
|
1193
1191
|
}
|
|
1194
|
-
function Gn(e, t) {
|
|
1195
|
-
var r = e.length === 1 ? nr : ir;
|
|
1196
|
-
return st(e, this, r, t.cache.create(), t.serializer);
|
|
1197
|
-
}
|
|
1198
1192
|
function Fn(e, t) {
|
|
1199
|
-
|
|
1193
|
+
var r = e.length === 1 ? Gn : nr;
|
|
1194
|
+
return ir(e, this, r, t.cache.create(), t.serializer);
|
|
1200
1195
|
}
|
|
1201
1196
|
function jn(e, t) {
|
|
1202
|
-
return
|
|
1197
|
+
return ir(e, this, nr, t.cache.create(), t.serializer);
|
|
1203
1198
|
}
|
|
1204
1199
|
var Vn = function() {
|
|
1205
1200
|
return JSON.stringify(arguments);
|
|
1206
|
-
}
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1201
|
+
}, Wn = (
|
|
1202
|
+
/** @class */
|
|
1203
|
+
function() {
|
|
1204
|
+
function e() {
|
|
1205
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1206
|
+
}
|
|
1207
|
+
return e.prototype.get = function(t) {
|
|
1208
|
+
return this.cache[t];
|
|
1209
|
+
}, e.prototype.set = function(t, r) {
|
|
1210
|
+
this.cache[t] = r;
|
|
1211
|
+
}, e;
|
|
1212
|
+
}()
|
|
1213
|
+
), Xn = {
|
|
1217
1214
|
create: function() {
|
|
1218
|
-
return new
|
|
1215
|
+
return new Wn();
|
|
1219
1216
|
}
|
|
1220
|
-
},
|
|
1221
|
-
variadic:
|
|
1222
|
-
|
|
1223
|
-
|
|
1217
|
+
}, ke = {
|
|
1218
|
+
variadic: jn
|
|
1219
|
+
}, we = function() {
|
|
1220
|
+
return we = Object.assign || function(t) {
|
|
1221
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1222
|
+
r = arguments[n];
|
|
1223
|
+
for (var o in r)
|
|
1224
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1225
|
+
}
|
|
1226
|
+
return t;
|
|
1227
|
+
}, we.apply(this, arguments);
|
|
1228
|
+
};
|
|
1229
|
+
var v;
|
|
1224
1230
|
(function(e) {
|
|
1225
1231
|
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";
|
|
1226
1232
|
})(v || (v = {}));
|
|
@@ -1228,14 +1234,14 @@ var E;
|
|
|
1228
1234
|
(function(e) {
|
|
1229
1235
|
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";
|
|
1230
1236
|
})(E || (E = {}));
|
|
1231
|
-
var
|
|
1237
|
+
var re;
|
|
1232
1238
|
(function(e) {
|
|
1233
1239
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1234
|
-
})(
|
|
1235
|
-
function
|
|
1240
|
+
})(re || (re = {}));
|
|
1241
|
+
function Ct(e) {
|
|
1236
1242
|
return e.type === E.literal;
|
|
1237
1243
|
}
|
|
1238
|
-
function
|
|
1244
|
+
function zn(e) {
|
|
1239
1245
|
return e.type === E.argument;
|
|
1240
1246
|
}
|
|
1241
1247
|
function or(e) {
|
|
@@ -1247,28 +1253,28 @@ function sr(e) {
|
|
|
1247
1253
|
function ar(e) {
|
|
1248
1254
|
return e.type === E.time;
|
|
1249
1255
|
}
|
|
1250
|
-
function
|
|
1256
|
+
function ur(e) {
|
|
1251
1257
|
return e.type === E.select;
|
|
1252
1258
|
}
|
|
1253
|
-
function
|
|
1259
|
+
function lr(e) {
|
|
1254
1260
|
return e.type === E.plural;
|
|
1255
1261
|
}
|
|
1256
|
-
function
|
|
1262
|
+
function Zn(e) {
|
|
1257
1263
|
return e.type === E.pound;
|
|
1258
1264
|
}
|
|
1259
1265
|
function hr(e) {
|
|
1260
1266
|
return e.type === E.tag;
|
|
1261
1267
|
}
|
|
1262
1268
|
function cr(e) {
|
|
1263
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1269
|
+
return !!(e && typeof e == "object" && e.type === re.number);
|
|
1264
1270
|
}
|
|
1265
|
-
function
|
|
1266
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1271
|
+
function Ke(e) {
|
|
1272
|
+
return !!(e && typeof e == "object" && e.type === re.dateTime);
|
|
1267
1273
|
}
|
|
1268
|
-
var fr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
1269
|
-
function
|
|
1274
|
+
var fr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Qn = /(?:[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;
|
|
1275
|
+
function Yn(e) {
|
|
1270
1276
|
var t = {};
|
|
1271
|
-
return e.replace(
|
|
1277
|
+
return e.replace(Qn, function(r) {
|
|
1272
1278
|
var n = r.length;
|
|
1273
1279
|
switch (r[0]) {
|
|
1274
1280
|
case "G":
|
|
@@ -1357,8 +1363,18 @@ function Qn(e) {
|
|
|
1357
1363
|
return "";
|
|
1358
1364
|
}), t;
|
|
1359
1365
|
}
|
|
1366
|
+
var C = function() {
|
|
1367
|
+
return C = Object.assign || function(t) {
|
|
1368
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1369
|
+
r = arguments[n];
|
|
1370
|
+
for (var o in r)
|
|
1371
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1372
|
+
}
|
|
1373
|
+
return t;
|
|
1374
|
+
}, C.apply(this, arguments);
|
|
1375
|
+
};
|
|
1360
1376
|
var qn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1361
|
-
function
|
|
1377
|
+
function Jn(e) {
|
|
1362
1378
|
if (e.length === 0)
|
|
1363
1379
|
throw new Error("Number skeleton cannot be empty");
|
|
1364
1380
|
for (var t = e.split(qn).filter(function(f) {
|
|
@@ -1367,22 +1383,22 @@ function Yn(e) {
|
|
|
1367
1383
|
var o = i[n], s = o.split("/");
|
|
1368
1384
|
if (s.length === 0)
|
|
1369
1385
|
throw new Error("Invalid number skeleton");
|
|
1370
|
-
for (var a = s[0],
|
|
1371
|
-
var c = h[
|
|
1386
|
+
for (var a = s[0], u = s.slice(1), l = 0, h = u; l < h.length; l++) {
|
|
1387
|
+
var c = h[l];
|
|
1372
1388
|
if (c.length === 0)
|
|
1373
1389
|
throw new Error("Invalid number skeleton");
|
|
1374
1390
|
}
|
|
1375
|
-
r.push({ stem: a, options:
|
|
1391
|
+
r.push({ stem: a, options: u });
|
|
1376
1392
|
}
|
|
1377
1393
|
return r;
|
|
1378
1394
|
}
|
|
1379
|
-
function
|
|
1395
|
+
function Kn(e) {
|
|
1380
1396
|
return e.replace(/^(.*?)-/, "");
|
|
1381
1397
|
}
|
|
1382
|
-
var
|
|
1383
|
-
function
|
|
1398
|
+
var St = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, pr = /^(@+)?(\+|#+)?[rs]?$/g, ei = /(\*)(0+)|(#+)(0+)|(0+)/g, dr = /^(0+)$/;
|
|
1399
|
+
function Tt(e) {
|
|
1384
1400
|
var t = {};
|
|
1385
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1401
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(pr, function(r, n, i) {
|
|
1386
1402
|
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)), "";
|
|
1387
1403
|
}), t;
|
|
1388
1404
|
}
|
|
@@ -1426,7 +1442,7 @@ function mr(e) {
|
|
|
1426
1442
|
};
|
|
1427
1443
|
}
|
|
1428
1444
|
}
|
|
1429
|
-
function
|
|
1445
|
+
function ti(e) {
|
|
1430
1446
|
var t;
|
|
1431
1447
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1432
1448
|
notation: "engineering"
|
|
@@ -1434,17 +1450,17 @@ function ei(e) {
|
|
|
1434
1450
|
notation: "scientific"
|
|
1435
1451
|
}, e = e.slice(1)), t) {
|
|
1436
1452
|
var r = e.slice(0, 2);
|
|
1437
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1453
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !dr.test(e))
|
|
1438
1454
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1439
1455
|
t.minimumIntegerDigits = e.length;
|
|
1440
1456
|
}
|
|
1441
1457
|
return t;
|
|
1442
1458
|
}
|
|
1443
|
-
function
|
|
1459
|
+
function Ht(e) {
|
|
1444
1460
|
var t = {}, r = mr(e);
|
|
1445
1461
|
return r || t;
|
|
1446
1462
|
}
|
|
1447
|
-
function
|
|
1463
|
+
function ri(e) {
|
|
1448
1464
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1449
1465
|
var i = n[r];
|
|
1450
1466
|
switch (i.stem) {
|
|
@@ -1468,7 +1484,7 @@ function ti(e) {
|
|
|
1468
1484
|
continue;
|
|
1469
1485
|
case "measure-unit":
|
|
1470
1486
|
case "unit":
|
|
1471
|
-
t.style = "unit", t.unit =
|
|
1487
|
+
t.style = "unit", t.unit = Kn(i.options[0]);
|
|
1472
1488
|
continue;
|
|
1473
1489
|
case "compact-short":
|
|
1474
1490
|
case "K":
|
|
@@ -1479,13 +1495,13 @@ function ti(e) {
|
|
|
1479
1495
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1480
1496
|
continue;
|
|
1481
1497
|
case "scientific":
|
|
1482
|
-
t =
|
|
1483
|
-
return
|
|
1498
|
+
t = C(C(C({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
|
|
1499
|
+
return C(C({}, u), Ht(l));
|
|
1484
1500
|
}, {}));
|
|
1485
1501
|
continue;
|
|
1486
1502
|
case "engineering":
|
|
1487
|
-
t =
|
|
1488
|
-
return
|
|
1503
|
+
t = C(C(C({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
|
|
1504
|
+
return C(C({}, u), Ht(l));
|
|
1489
1505
|
}, {}));
|
|
1490
1506
|
continue;
|
|
1491
1507
|
case "notation-simple":
|
|
@@ -1530,8 +1546,8 @@ function ti(e) {
|
|
|
1530
1546
|
case "integer-width":
|
|
1531
1547
|
if (i.options.length > 1)
|
|
1532
1548
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1533
|
-
i.options[0].replace(
|
|
1534
|
-
if (
|
|
1549
|
+
i.options[0].replace(ei, function(u, l, h, c, f, m) {
|
|
1550
|
+
if (l)
|
|
1535
1551
|
t.minimumIntegerDigits = h.length;
|
|
1536
1552
|
else {
|
|
1537
1553
|
if (c && f)
|
|
@@ -1543,32 +1559,32 @@ function ti(e) {
|
|
|
1543
1559
|
});
|
|
1544
1560
|
continue;
|
|
1545
1561
|
}
|
|
1546
|
-
if (
|
|
1562
|
+
if (dr.test(i.stem)) {
|
|
1547
1563
|
t.minimumIntegerDigits = i.stem.length;
|
|
1548
1564
|
continue;
|
|
1549
1565
|
}
|
|
1550
|
-
if (
|
|
1566
|
+
if (St.test(i.stem)) {
|
|
1551
1567
|
if (i.options.length > 1)
|
|
1552
1568
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1553
|
-
i.stem.replace(
|
|
1554
|
-
return h === "*" ? t.minimumFractionDigits =
|
|
1569
|
+
i.stem.replace(St, function(u, l, h, c, f, m) {
|
|
1570
|
+
return h === "*" ? t.minimumFractionDigits = l.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && m ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + m.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1555
1571
|
});
|
|
1556
1572
|
var o = i.options[0];
|
|
1557
|
-
o === "w" ? t =
|
|
1573
|
+
o === "w" ? t = C(C({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = C(C({}, t), Tt(o)));
|
|
1558
1574
|
continue;
|
|
1559
1575
|
}
|
|
1560
|
-
if (
|
|
1561
|
-
t =
|
|
1576
|
+
if (pr.test(i.stem)) {
|
|
1577
|
+
t = C(C({}, t), Tt(i.stem));
|
|
1562
1578
|
continue;
|
|
1563
1579
|
}
|
|
1564
1580
|
var s = mr(i.stem);
|
|
1565
|
-
s && (t =
|
|
1566
|
-
var a =
|
|
1567
|
-
a && (t =
|
|
1581
|
+
s && (t = C(C({}, t), s));
|
|
1582
|
+
var a = ti(i.stem);
|
|
1583
|
+
a && (t = C(C({}, t), a));
|
|
1568
1584
|
}
|
|
1569
1585
|
return t;
|
|
1570
1586
|
}
|
|
1571
|
-
var
|
|
1587
|
+
var ge = {
|
|
1572
1588
|
"001": [
|
|
1573
1589
|
"H",
|
|
1574
1590
|
"h"
|
|
@@ -2983,23 +2999,23 @@ var ve = {
|
|
|
2983
2999
|
"h"
|
|
2984
3000
|
]
|
|
2985
3001
|
};
|
|
2986
|
-
function
|
|
3002
|
+
function ni(e, t) {
|
|
2987
3003
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2988
3004
|
var i = e.charAt(n);
|
|
2989
3005
|
if (i === "j") {
|
|
2990
3006
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2991
3007
|
o++, n++;
|
|
2992
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1),
|
|
2993
|
-
for ((
|
|
2994
|
-
r +=
|
|
3008
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = ii(t);
|
|
3009
|
+
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
|
3010
|
+
r += u;
|
|
2995
3011
|
for (; s-- > 0; )
|
|
2996
|
-
r =
|
|
3012
|
+
r = l + r;
|
|
2997
3013
|
} else
|
|
2998
3014
|
i === "J" ? r += "H" : r += i;
|
|
2999
3015
|
}
|
|
3000
3016
|
return r;
|
|
3001
3017
|
}
|
|
3002
|
-
function
|
|
3018
|
+
function ii(e) {
|
|
3003
3019
|
var t = e.hourCycle;
|
|
3004
3020
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3005
3021
|
e.hourCycles && // @ts-ignore
|
|
@@ -3018,23 +3034,23 @@ function ni(e) {
|
|
|
3018
3034
|
}
|
|
3019
3035
|
var r = e.language, n;
|
|
3020
3036
|
r !== "root" && (n = e.maximize().region);
|
|
3021
|
-
var i =
|
|
3037
|
+
var i = ge[n || ""] || ge[r || ""] || ge["".concat(r, "-001")] || ge["001"];
|
|
3022
3038
|
return i[0];
|
|
3023
3039
|
}
|
|
3024
|
-
var
|
|
3040
|
+
var Ge, oi = new RegExp("^".concat(fr.source, "*")), si = new RegExp("".concat(fr.source, "*$"));
|
|
3025
3041
|
function y(e, t) {
|
|
3026
3042
|
return { start: e, end: t };
|
|
3027
3043
|
}
|
|
3028
|
-
var
|
|
3044
|
+
var ai = !!String.prototype.startsWith && "_a".startsWith("a", 1), ui = !!String.fromCodePoint, li = !!Object.fromEntries, hi = !!String.prototype.codePointAt, ci = !!String.prototype.trimStart, fi = !!String.prototype.trimEnd, pi = !!Number.isSafeInteger, di = pi ? Number.isSafeInteger : function(e) {
|
|
3029
3045
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3030
|
-
},
|
|
3046
|
+
}, et = !0;
|
|
3031
3047
|
try {
|
|
3032
|
-
var
|
|
3033
|
-
|
|
3048
|
+
var mi = gr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3049
|
+
et = ((Ge = mi.exec("a")) === null || Ge === void 0 ? void 0 : Ge[0]) === "a";
|
|
3034
3050
|
} catch {
|
|
3035
|
-
|
|
3051
|
+
et = !1;
|
|
3036
3052
|
}
|
|
3037
|
-
var
|
|
3053
|
+
var At = ai ? (
|
|
3038
3054
|
// Native
|
|
3039
3055
|
function(t, r, n) {
|
|
3040
3056
|
return t.startsWith(r, n);
|
|
@@ -3044,7 +3060,7 @@ var Ht = si ? (
|
|
|
3044
3060
|
function(t, r, n) {
|
|
3045
3061
|
return t.slice(n, n + r.length) === r;
|
|
3046
3062
|
}
|
|
3047
|
-
),
|
|
3063
|
+
), tt = ui ? String.fromCodePoint : (
|
|
3048
3064
|
// IE11
|
|
3049
3065
|
function() {
|
|
3050
3066
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3056,7 +3072,7 @@ var Ht = si ? (
|
|
|
3056
3072
|
}
|
|
3057
3073
|
return n;
|
|
3058
3074
|
}
|
|
3059
|
-
),
|
|
3075
|
+
), It = (
|
|
3060
3076
|
// native
|
|
3061
3077
|
li ? Object.fromEntries : (
|
|
3062
3078
|
// Ponyfill
|
|
@@ -3068,7 +3084,7 @@ var Ht = si ? (
|
|
|
3068
3084
|
return r;
|
|
3069
3085
|
}
|
|
3070
3086
|
)
|
|
3071
|
-
), br =
|
|
3087
|
+
), br = hi ? (
|
|
3072
3088
|
// Native
|
|
3073
3089
|
function(t, r) {
|
|
3074
3090
|
return t.codePointAt(r);
|
|
@@ -3082,7 +3098,7 @@ var Ht = si ? (
|
|
|
3082
3098
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3083
3099
|
}
|
|
3084
3100
|
}
|
|
3085
|
-
),
|
|
3101
|
+
), bi = ci ? (
|
|
3086
3102
|
// Native
|
|
3087
3103
|
function(t) {
|
|
3088
3104
|
return t.trimStart();
|
|
@@ -3090,9 +3106,9 @@ var Ht = si ? (
|
|
|
3090
3106
|
) : (
|
|
3091
3107
|
// Ponyfill
|
|
3092
3108
|
function(t) {
|
|
3093
|
-
return t.replace(
|
|
3109
|
+
return t.replace(oi, "");
|
|
3094
3110
|
}
|
|
3095
|
-
),
|
|
3111
|
+
), gi = fi ? (
|
|
3096
3112
|
// Native
|
|
3097
3113
|
function(t) {
|
|
3098
3114
|
return t.trimEnd();
|
|
@@ -3100,32 +3116,32 @@ var Ht = si ? (
|
|
|
3100
3116
|
) : (
|
|
3101
3117
|
// Ponyfill
|
|
3102
3118
|
function(t) {
|
|
3103
|
-
return t.replace(
|
|
3119
|
+
return t.replace(si, "");
|
|
3104
3120
|
}
|
|
3105
3121
|
);
|
|
3106
3122
|
function gr(e, t) {
|
|
3107
3123
|
return new RegExp(e, t);
|
|
3108
3124
|
}
|
|
3109
|
-
var
|
|
3110
|
-
if (
|
|
3111
|
-
var
|
|
3112
|
-
|
|
3125
|
+
var rt;
|
|
3126
|
+
if (et) {
|
|
3127
|
+
var Bt = gr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3128
|
+
rt = function(t, r) {
|
|
3113
3129
|
var n;
|
|
3114
|
-
|
|
3115
|
-
var i =
|
|
3130
|
+
Bt.lastIndex = r;
|
|
3131
|
+
var i = Bt.exec(t);
|
|
3116
3132
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3117
3133
|
};
|
|
3118
3134
|
} else
|
|
3119
|
-
|
|
3135
|
+
rt = function(t, r) {
|
|
3120
3136
|
for (var n = []; ; ) {
|
|
3121
3137
|
var i = br(t, r);
|
|
3122
|
-
if (i === void 0 || vr(i) ||
|
|
3138
|
+
if (i === void 0 || vr(i) || xi(i))
|
|
3123
3139
|
break;
|
|
3124
3140
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3125
3141
|
}
|
|
3126
|
-
return
|
|
3142
|
+
return tt.apply(void 0, n);
|
|
3127
3143
|
};
|
|
3128
|
-
var
|
|
3144
|
+
var vi = (
|
|
3129
3145
|
/** @class */
|
|
3130
3146
|
function() {
|
|
3131
3147
|
function e(t, r) {
|
|
@@ -3156,7 +3172,7 @@ var gi = (
|
|
|
3156
3172
|
if (n)
|
|
3157
3173
|
break;
|
|
3158
3174
|
return this.error(v.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
|
3159
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3175
|
+
} else if (o === 60 && !this.ignoreTag && nt(this.peek() || 0)) {
|
|
3160
3176
|
var s = this.parseTag(t, r);
|
|
3161
3177
|
if (s.err)
|
|
3162
3178
|
return s;
|
|
@@ -3189,10 +3205,10 @@ var gi = (
|
|
|
3189
3205
|
return o;
|
|
3190
3206
|
var s = o.val, a = this.clonePosition();
|
|
3191
3207
|
if (this.bumpIf("</")) {
|
|
3192
|
-
if (this.isEOF() || !
|
|
3208
|
+
if (this.isEOF() || !nt(this.char()))
|
|
3193
3209
|
return this.error(v.INVALID_TAG, y(a, this.clonePosition()));
|
|
3194
|
-
var
|
|
3195
|
-
return i !==
|
|
3210
|
+
var u = this.clonePosition(), l = this.parseTagName();
|
|
3211
|
+
return i !== l ? this.error(v.UNMATCHED_CLOSING_TAG, y(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3196
3212
|
val: {
|
|
3197
3213
|
type: E.tag,
|
|
3198
3214
|
value: i,
|
|
@@ -3207,7 +3223,7 @@ var gi = (
|
|
|
3207
3223
|
return this.error(v.INVALID_TAG, y(n, this.clonePosition()));
|
|
3208
3224
|
}, e.prototype.parseTagName = function() {
|
|
3209
3225
|
var t = this.offset();
|
|
3210
|
-
for (this.bump(); !this.isEOF() &&
|
|
3226
|
+
for (this.bump(); !this.isEOF() && _i(this.char()); )
|
|
3211
3227
|
this.bump();
|
|
3212
3228
|
return this.message.slice(t, this.offset());
|
|
3213
3229
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3229,14 +3245,14 @@ var gi = (
|
|
|
3229
3245
|
}
|
|
3230
3246
|
break;
|
|
3231
3247
|
}
|
|
3232
|
-
var
|
|
3248
|
+
var u = y(n, this.clonePosition());
|
|
3233
3249
|
return {
|
|
3234
|
-
val: { type: E.literal, value: i, location:
|
|
3250
|
+
val: { type: E.literal, value: i, location: u },
|
|
3235
3251
|
err: null
|
|
3236
3252
|
};
|
|
3237
3253
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3238
3254
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3239
|
-
!
|
|
3255
|
+
!yi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3240
3256
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3241
3257
|
if (this.isEOF() || this.char() !== 39)
|
|
3242
3258
|
return null;
|
|
@@ -3270,12 +3286,12 @@ var gi = (
|
|
|
3270
3286
|
r.push(n);
|
|
3271
3287
|
this.bump();
|
|
3272
3288
|
}
|
|
3273
|
-
return
|
|
3289
|
+
return tt.apply(void 0, r);
|
|
3274
3290
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3275
3291
|
if (this.isEOF())
|
|
3276
3292
|
return null;
|
|
3277
3293
|
var n = this.char();
|
|
3278
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3294
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), tt(n));
|
|
3279
3295
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3280
3296
|
var n = this.clonePosition();
|
|
3281
3297
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3304,39 +3320,39 @@ var gi = (
|
|
|
3304
3320
|
return this.error(v.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
3305
3321
|
}
|
|
3306
3322
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3307
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3323
|
+
var t = this.clonePosition(), r = this.offset(), n = rt(this.message, r), i = r + n.length;
|
|
3308
3324
|
this.bumpTo(i);
|
|
3309
3325
|
var o = this.clonePosition(), s = y(t, o);
|
|
3310
3326
|
return { value: n, location: s };
|
|
3311
3327
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3312
|
-
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value,
|
|
3328
|
+
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
3313
3329
|
switch (a) {
|
|
3314
3330
|
case "":
|
|
3315
|
-
return this.error(v.EXPECT_ARGUMENT_TYPE, y(s,
|
|
3331
|
+
return this.error(v.EXPECT_ARGUMENT_TYPE, y(s, u));
|
|
3316
3332
|
case "number":
|
|
3317
3333
|
case "date":
|
|
3318
3334
|
case "time": {
|
|
3319
3335
|
this.bumpSpace();
|
|
3320
|
-
var
|
|
3336
|
+
var l = null;
|
|
3321
3337
|
if (this.bumpIf(",")) {
|
|
3322
3338
|
this.bumpSpace();
|
|
3323
3339
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3324
3340
|
if (c.err)
|
|
3325
3341
|
return c;
|
|
3326
|
-
var f =
|
|
3342
|
+
var f = gi(c.val);
|
|
3327
3343
|
if (f.length === 0)
|
|
3328
3344
|
return this.error(v.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
|
3329
3345
|
var m = y(h, this.clonePosition());
|
|
3330
|
-
|
|
3346
|
+
l = { style: f, styleLocation: m };
|
|
3331
3347
|
}
|
|
3332
|
-
var
|
|
3333
|
-
if (
|
|
3334
|
-
return
|
|
3348
|
+
var d = this.tryParseArgumentClose(i);
|
|
3349
|
+
if (d.err)
|
|
3350
|
+
return d;
|
|
3335
3351
|
var b = y(i, this.clonePosition());
|
|
3336
|
-
if (
|
|
3337
|
-
var T =
|
|
3352
|
+
if (l && At(l?.style, "::", 0)) {
|
|
3353
|
+
var T = bi(l.style.slice(2));
|
|
3338
3354
|
if (a === "number") {
|
|
3339
|
-
var c = this.parseNumberSkeletonFromString(T,
|
|
3355
|
+
var c = this.parseNumberSkeletonFromString(T, l.styleLocation);
|
|
3340
3356
|
return c.err ? c : {
|
|
3341
3357
|
val: { type: E.number, value: n, location: b, style: c.val },
|
|
3342
3358
|
err: null
|
|
@@ -3345,12 +3361,12 @@ var gi = (
|
|
|
3345
3361
|
if (T.length === 0)
|
|
3346
3362
|
return this.error(v.EXPECT_DATE_TIME_SKELETON, b);
|
|
3347
3363
|
var L = T;
|
|
3348
|
-
this.locale && (L =
|
|
3364
|
+
this.locale && (L = ni(T, this.locale));
|
|
3349
3365
|
var f = {
|
|
3350
|
-
type:
|
|
3366
|
+
type: re.dateTime,
|
|
3351
3367
|
pattern: L,
|
|
3352
|
-
location:
|
|
3353
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3368
|
+
location: l.styleLocation,
|
|
3369
|
+
parsedOptions: this.shouldParseSkeletons ? Yn(L) : {}
|
|
3354
3370
|
}, P = a === "date" ? E.date : E.time;
|
|
3355
3371
|
return {
|
|
3356
3372
|
val: { type: P, value: n, location: b, style: f },
|
|
@@ -3363,7 +3379,7 @@ var gi = (
|
|
|
3363
3379
|
type: a === "number" ? E.number : a === "date" ? E.date : E.time,
|
|
3364
3380
|
value: n,
|
|
3365
3381
|
location: b,
|
|
3366
|
-
style: (o =
|
|
3382
|
+
style: (o = l?.style) !== null && o !== void 0 ? o : null
|
|
3367
3383
|
},
|
|
3368
3384
|
err: null
|
|
3369
3385
|
};
|
|
@@ -3373,30 +3389,30 @@ var gi = (
|
|
|
3373
3389
|
case "select": {
|
|
3374
3390
|
var A = this.clonePosition();
|
|
3375
3391
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3376
|
-
return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, y(A,
|
|
3392
|
+
return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, y(A, we({}, A)));
|
|
3377
3393
|
this.bumpSpace();
|
|
3378
|
-
var
|
|
3379
|
-
if (a !== "select" &&
|
|
3394
|
+
var O = this.parseIdentifierIfPossible(), w = 0;
|
|
3395
|
+
if (a !== "select" && O.value === "offset") {
|
|
3380
3396
|
if (!this.bumpIf(":"))
|
|
3381
3397
|
return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
|
|
3382
3398
|
this.bumpSpace();
|
|
3383
3399
|
var c = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3384
3400
|
if (c.err)
|
|
3385
3401
|
return c;
|
|
3386
|
-
this.bumpSpace(),
|
|
3402
|
+
this.bumpSpace(), O = this.parseIdentifierIfPossible(), w = c.val;
|
|
3387
3403
|
}
|
|
3388
|
-
var N = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
3404
|
+
var N = this.tryParsePluralOrSelectOptions(t, a, r, O);
|
|
3389
3405
|
if (N.err)
|
|
3390
3406
|
return N;
|
|
3391
|
-
var
|
|
3392
|
-
if (
|
|
3393
|
-
return
|
|
3407
|
+
var d = this.tryParseArgumentClose(i);
|
|
3408
|
+
if (d.err)
|
|
3409
|
+
return d;
|
|
3394
3410
|
var g = y(i, this.clonePosition());
|
|
3395
3411
|
return a === "select" ? {
|
|
3396
3412
|
val: {
|
|
3397
3413
|
type: E.select,
|
|
3398
3414
|
value: n,
|
|
3399
|
-
options:
|
|
3415
|
+
options: It(N.val),
|
|
3400
3416
|
location: g
|
|
3401
3417
|
},
|
|
3402
3418
|
err: null
|
|
@@ -3404,7 +3420,7 @@ var gi = (
|
|
|
3404
3420
|
val: {
|
|
3405
3421
|
type: E.plural,
|
|
3406
3422
|
value: n,
|
|
3407
|
-
options:
|
|
3423
|
+
options: It(N.val),
|
|
3408
3424
|
offset: w,
|
|
3409
3425
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3410
3426
|
location: g
|
|
@@ -3413,7 +3429,7 @@ var gi = (
|
|
|
3413
3429
|
};
|
|
3414
3430
|
}
|
|
3415
3431
|
default:
|
|
3416
|
-
return this.error(v.INVALID_ARGUMENT_TYPE, y(s,
|
|
3432
|
+
return this.error(v.INVALID_ARGUMENT_TYPE, y(s, u));
|
|
3417
3433
|
}
|
|
3418
3434
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3419
3435
|
return this.isEOF() || this.char() !== 125 ? this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -3455,50 +3471,50 @@ var gi = (
|
|
|
3455
3471
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3456
3472
|
var n = [];
|
|
3457
3473
|
try {
|
|
3458
|
-
n =
|
|
3474
|
+
n = Jn(t);
|
|
3459
3475
|
} catch {
|
|
3460
3476
|
return this.error(v.INVALID_NUMBER_SKELETON, r);
|
|
3461
3477
|
}
|
|
3462
3478
|
return {
|
|
3463
3479
|
val: {
|
|
3464
|
-
type:
|
|
3480
|
+
type: re.number,
|
|
3465
3481
|
tokens: n,
|
|
3466
3482
|
location: r,
|
|
3467
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3483
|
+
parsedOptions: this.shouldParseSkeletons ? ri(n) : {}
|
|
3468
3484
|
},
|
|
3469
3485
|
err: null
|
|
3470
3486
|
};
|
|
3471
3487
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3472
|
-
for (var o, s = !1, a = [],
|
|
3473
|
-
if (
|
|
3488
|
+
for (var o, s = !1, a = [], u = /* @__PURE__ */ new Set(), l = i.value, h = i.location; ; ) {
|
|
3489
|
+
if (l.length === 0) {
|
|
3474
3490
|
var c = this.clonePosition();
|
|
3475
3491
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3476
3492
|
var f = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_SELECTOR, v.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3477
3493
|
if (f.err)
|
|
3478
3494
|
return f;
|
|
3479
|
-
h = y(c, this.clonePosition()),
|
|
3495
|
+
h = y(c, this.clonePosition()), l = this.message.slice(c.offset, this.offset());
|
|
3480
3496
|
} else
|
|
3481
3497
|
break;
|
|
3482
3498
|
}
|
|
3483
|
-
if (
|
|
3499
|
+
if (u.has(l))
|
|
3484
3500
|
return this.error(r === "select" ? v.DUPLICATE_SELECT_ARGUMENT_SELECTOR : v.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3485
|
-
|
|
3501
|
+
l === "other" && (s = !0), this.bumpSpace();
|
|
3486
3502
|
var m = this.clonePosition();
|
|
3487
3503
|
if (!this.bumpIf("{"))
|
|
3488
3504
|
return this.error(r === "select" ? v.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : v.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
|
|
3489
|
-
var
|
|
3490
|
-
if (
|
|
3491
|
-
return
|
|
3505
|
+
var d = this.parseMessage(t + 1, r, n);
|
|
3506
|
+
if (d.err)
|
|
3507
|
+
return d;
|
|
3492
3508
|
var b = this.tryParseArgumentClose(m);
|
|
3493
3509
|
if (b.err)
|
|
3494
3510
|
return b;
|
|
3495
3511
|
a.push([
|
|
3496
|
-
|
|
3512
|
+
l,
|
|
3497
3513
|
{
|
|
3498
|
-
value:
|
|
3514
|
+
value: d.val,
|
|
3499
3515
|
location: y(m, this.clonePosition())
|
|
3500
3516
|
}
|
|
3501
|
-
]),
|
|
3517
|
+
]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, h = o.location;
|
|
3502
3518
|
}
|
|
3503
3519
|
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 };
|
|
3504
3520
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
@@ -3511,8 +3527,8 @@ var gi = (
|
|
|
3511
3527
|
else
|
|
3512
3528
|
break;
|
|
3513
3529
|
}
|
|
3514
|
-
var
|
|
3515
|
-
return o ? (s *= n, di(s) ? { val: s, err: null } : this.error(r,
|
|
3530
|
+
var u = y(i, this.clonePosition());
|
|
3531
|
+
return o ? (s *= n, di(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
|
|
3516
3532
|
}, e.prototype.offset = function() {
|
|
3517
3533
|
return this.position.offset;
|
|
3518
3534
|
}, e.prototype.isEOF = function() {
|
|
@@ -3546,7 +3562,7 @@ var gi = (
|
|
|
3546
3562
|
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);
|
|
3547
3563
|
}
|
|
3548
3564
|
}, e.prototype.bumpIf = function(t) {
|
|
3549
|
-
if (
|
|
3565
|
+
if (At(this.message, t, this.offset())) {
|
|
3550
3566
|
for (var r = 0; r < t.length; r++)
|
|
3551
3567
|
this.bump();
|
|
3552
3568
|
return !0;
|
|
@@ -3578,47 +3594,47 @@ var gi = (
|
|
|
3578
3594
|
}, e;
|
|
3579
3595
|
}()
|
|
3580
3596
|
);
|
|
3581
|
-
function
|
|
3597
|
+
function nt(e) {
|
|
3582
3598
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3583
3599
|
}
|
|
3584
|
-
function vi(e) {
|
|
3585
|
-
return et(e) || e === 47;
|
|
3586
|
-
}
|
|
3587
3600
|
function yi(e) {
|
|
3601
|
+
return nt(e) || e === 47;
|
|
3602
|
+
}
|
|
3603
|
+
function _i(e) {
|
|
3588
3604
|
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;
|
|
3589
3605
|
}
|
|
3590
3606
|
function vr(e) {
|
|
3591
3607
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3592
3608
|
}
|
|
3593
|
-
function
|
|
3609
|
+
function xi(e) {
|
|
3594
3610
|
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;
|
|
3595
3611
|
}
|
|
3596
|
-
function
|
|
3612
|
+
function it(e) {
|
|
3597
3613
|
e.forEach(function(t) {
|
|
3598
|
-
if (delete t.location,
|
|
3614
|
+
if (delete t.location, ur(t) || lr(t))
|
|
3599
3615
|
for (var r in t.options)
|
|
3600
|
-
delete t.options[r].location,
|
|
3616
|
+
delete t.options[r].location, it(t.options[r].value);
|
|
3601
3617
|
else
|
|
3602
|
-
or(t) && cr(t.style) || (sr(t) || ar(t)) &&
|
|
3618
|
+
or(t) && cr(t.style) || (sr(t) || ar(t)) && Ke(t.style) ? delete t.style.location : hr(t) && it(t.children);
|
|
3603
3619
|
});
|
|
3604
3620
|
}
|
|
3605
|
-
function
|
|
3606
|
-
t === void 0 && (t = {}), t =
|
|
3607
|
-
var r = new
|
|
3621
|
+
function Ei(e, t) {
|
|
3622
|
+
t === void 0 && (t = {}), t = we({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3623
|
+
var r = new vi(e, t).parse();
|
|
3608
3624
|
if (r.err) {
|
|
3609
3625
|
var n = SyntaxError(v[r.err.kind]);
|
|
3610
3626
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3611
3627
|
}
|
|
3612
|
-
return t?.captureLocation ||
|
|
3628
|
+
return t?.captureLocation || it(r.val), r.val;
|
|
3613
3629
|
}
|
|
3614
|
-
var
|
|
3630
|
+
var ne;
|
|
3615
3631
|
(function(e) {
|
|
3616
3632
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3617
|
-
})(
|
|
3618
|
-
var
|
|
3633
|
+
})(ne || (ne = {}));
|
|
3634
|
+
var Be = (
|
|
3619
3635
|
/** @class */
|
|
3620
3636
|
function(e) {
|
|
3621
|
-
|
|
3637
|
+
Ie(t, e);
|
|
3622
3638
|
function t(r, n, i) {
|
|
3623
3639
|
var o = e.call(this, r) || this;
|
|
3624
3640
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3627,93 +3643,93 @@ var Ie = (
|
|
|
3627
3643
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3628
3644
|
}, t;
|
|
3629
3645
|
}(Error)
|
|
3630
|
-
),
|
|
3646
|
+
), Pt = (
|
|
3631
3647
|
/** @class */
|
|
3632
3648
|
function(e) {
|
|
3633
|
-
|
|
3649
|
+
Ie(t, e);
|
|
3634
3650
|
function t(r, n, i, o) {
|
|
3635
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3651
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ne.INVALID_VALUE, o) || this;
|
|
3636
3652
|
}
|
|
3637
3653
|
return t;
|
|
3638
|
-
}(
|
|
3639
|
-
),
|
|
3654
|
+
}(Be)
|
|
3655
|
+
), wi = (
|
|
3640
3656
|
/** @class */
|
|
3641
3657
|
function(e) {
|
|
3642
|
-
|
|
3658
|
+
Ie(t, e);
|
|
3643
3659
|
function t(r, n, i) {
|
|
3644
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3660
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ne.INVALID_VALUE, i) || this;
|
|
3645
3661
|
}
|
|
3646
3662
|
return t;
|
|
3647
|
-
}(
|
|
3648
|
-
),
|
|
3663
|
+
}(Be)
|
|
3664
|
+
), Ci = (
|
|
3649
3665
|
/** @class */
|
|
3650
3666
|
function(e) {
|
|
3651
|
-
|
|
3667
|
+
Ie(t, e);
|
|
3652
3668
|
function t(r, n) {
|
|
3653
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3669
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ne.MISSING_VALUE, n) || this;
|
|
3654
3670
|
}
|
|
3655
3671
|
return t;
|
|
3656
|
-
}(
|
|
3657
|
-
),
|
|
3672
|
+
}(Be)
|
|
3673
|
+
), M;
|
|
3658
3674
|
(function(e) {
|
|
3659
3675
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3660
|
-
})(
|
|
3661
|
-
function
|
|
3676
|
+
})(M || (M = {}));
|
|
3677
|
+
function Si(e) {
|
|
3662
3678
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3663
3679
|
var n = t[t.length - 1];
|
|
3664
|
-
return !n || n.type !==
|
|
3680
|
+
return !n || n.type !== M.literal || r.type !== M.literal ? t.push(r) : n.value += r.value, t;
|
|
3665
3681
|
}, []);
|
|
3666
3682
|
}
|
|
3667
|
-
function
|
|
3683
|
+
function Ti(e) {
|
|
3668
3684
|
return typeof e == "function";
|
|
3669
3685
|
}
|
|
3670
|
-
function
|
|
3671
|
-
if (e.length === 1 &&
|
|
3686
|
+
function _e(e, t, r, n, i, o, s) {
|
|
3687
|
+
if (e.length === 1 && Ct(e[0]))
|
|
3672
3688
|
return [
|
|
3673
3689
|
{
|
|
3674
|
-
type:
|
|
3690
|
+
type: M.literal,
|
|
3675
3691
|
value: e[0].value
|
|
3676
3692
|
}
|
|
3677
3693
|
];
|
|
3678
|
-
for (var a = [],
|
|
3679
|
-
var h = u
|
|
3680
|
-
if (
|
|
3694
|
+
for (var a = [], u = 0, l = e; u < l.length; u++) {
|
|
3695
|
+
var h = l[u];
|
|
3696
|
+
if (Ct(h)) {
|
|
3681
3697
|
a.push({
|
|
3682
|
-
type:
|
|
3698
|
+
type: M.literal,
|
|
3683
3699
|
value: h.value
|
|
3684
3700
|
});
|
|
3685
3701
|
continue;
|
|
3686
3702
|
}
|
|
3687
|
-
if (
|
|
3703
|
+
if (Zn(h)) {
|
|
3688
3704
|
typeof o == "number" && a.push({
|
|
3689
|
-
type:
|
|
3705
|
+
type: M.literal,
|
|
3690
3706
|
value: r.getNumberFormat(t).format(o)
|
|
3691
3707
|
});
|
|
3692
3708
|
continue;
|
|
3693
3709
|
}
|
|
3694
3710
|
var c = h.value;
|
|
3695
3711
|
if (!(i && c in i))
|
|
3696
|
-
throw new
|
|
3712
|
+
throw new Ci(c, s);
|
|
3697
3713
|
var f = i[c];
|
|
3698
|
-
if (
|
|
3714
|
+
if (zn(h)) {
|
|
3699
3715
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3700
|
-
type: typeof f == "string" ?
|
|
3716
|
+
type: typeof f == "string" ? M.literal : M.object,
|
|
3701
3717
|
value: f
|
|
3702
3718
|
});
|
|
3703
3719
|
continue;
|
|
3704
3720
|
}
|
|
3705
3721
|
if (sr(h)) {
|
|
3706
|
-
var m = typeof h.style == "string" ? n.date[h.style] :
|
|
3722
|
+
var m = typeof h.style == "string" ? n.date[h.style] : Ke(h.style) ? h.style.parsedOptions : void 0;
|
|
3707
3723
|
a.push({
|
|
3708
|
-
type:
|
|
3724
|
+
type: M.literal,
|
|
3709
3725
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3710
3726
|
});
|
|
3711
3727
|
continue;
|
|
3712
3728
|
}
|
|
3713
3729
|
if (ar(h)) {
|
|
3714
|
-
var m = typeof h.style == "string" ? n.time[h.style] :
|
|
3730
|
+
var m = typeof h.style == "string" ? n.time[h.style] : Ke(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3715
3731
|
a.push({
|
|
3716
|
-
type:
|
|
3732
|
+
type: M.literal,
|
|
3717
3733
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3718
3734
|
});
|
|
3719
3735
|
continue;
|
|
@@ -3721,61 +3737,61 @@ function xe(e, t, r, n, i, o, s) {
|
|
|
3721
3737
|
if (or(h)) {
|
|
3722
3738
|
var m = typeof h.style == "string" ? n.number[h.style] : cr(h.style) ? h.style.parsedOptions : void 0;
|
|
3723
3739
|
m && m.scale && (f = f * (m.scale || 1)), a.push({
|
|
3724
|
-
type:
|
|
3740
|
+
type: M.literal,
|
|
3725
3741
|
value: r.getNumberFormat(t, m).format(f)
|
|
3726
3742
|
});
|
|
3727
3743
|
continue;
|
|
3728
3744
|
}
|
|
3729
3745
|
if (hr(h)) {
|
|
3730
|
-
var
|
|
3731
|
-
if (!
|
|
3732
|
-
throw new
|
|
3733
|
-
var L =
|
|
3746
|
+
var d = h.children, b = h.value, T = i[b];
|
|
3747
|
+
if (!Ti(T))
|
|
3748
|
+
throw new wi(b, "function", s);
|
|
3749
|
+
var L = _e(d, t, r, n, i, o), P = T(L.map(function(w) {
|
|
3734
3750
|
return w.value;
|
|
3735
3751
|
}));
|
|
3736
3752
|
Array.isArray(P) || (P = [P]), a.push.apply(a, P.map(function(w) {
|
|
3737
3753
|
return {
|
|
3738
|
-
type: typeof w == "string" ?
|
|
3754
|
+
type: typeof w == "string" ? M.literal : M.object,
|
|
3739
3755
|
value: w
|
|
3740
3756
|
};
|
|
3741
3757
|
}));
|
|
3742
3758
|
}
|
|
3743
|
-
if (
|
|
3759
|
+
if (ur(h)) {
|
|
3744
3760
|
var A = h.options[f] || h.options.other;
|
|
3745
3761
|
if (!A)
|
|
3746
|
-
throw new
|
|
3747
|
-
a.push.apply(a,
|
|
3762
|
+
throw new Pt(h.value, f, Object.keys(h.options), s);
|
|
3763
|
+
a.push.apply(a, _e(A.value, t, r, n, i));
|
|
3748
3764
|
continue;
|
|
3749
3765
|
}
|
|
3750
|
-
if (
|
|
3766
|
+
if (lr(h)) {
|
|
3751
3767
|
var A = h.options["=".concat(f)];
|
|
3752
3768
|
if (!A) {
|
|
3753
3769
|
if (!Intl.PluralRules)
|
|
3754
|
-
throw new
|
|
3770
|
+
throw new Be(`Intl.PluralRules is not available in this environment.
|
|
3755
3771
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3756
|
-
`,
|
|
3757
|
-
var
|
|
3758
|
-
A = h.options[
|
|
3772
|
+
`, ne.MISSING_INTL_API, s);
|
|
3773
|
+
var O = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3774
|
+
A = h.options[O] || h.options.other;
|
|
3759
3775
|
}
|
|
3760
3776
|
if (!A)
|
|
3761
|
-
throw new
|
|
3762
|
-
a.push.apply(a,
|
|
3777
|
+
throw new Pt(h.value, f, Object.keys(h.options), s);
|
|
3778
|
+
a.push.apply(a, _e(A.value, t, r, n, i, f - (h.offset || 0)));
|
|
3763
3779
|
continue;
|
|
3764
3780
|
}
|
|
3765
3781
|
}
|
|
3766
|
-
return
|
|
3782
|
+
return Si(a);
|
|
3767
3783
|
}
|
|
3768
|
-
function
|
|
3769
|
-
return t ?
|
|
3770
|
-
return r[n] =
|
|
3784
|
+
function Hi(e, t) {
|
|
3785
|
+
return t ? G(G(G({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3786
|
+
return r[n] = G(G({}, e[n]), t[n] || {}), r;
|
|
3771
3787
|
}, {})) : e;
|
|
3772
3788
|
}
|
|
3773
|
-
function
|
|
3789
|
+
function Ai(e, t) {
|
|
3774
3790
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3775
|
-
return r[n] =
|
|
3776
|
-
},
|
|
3791
|
+
return r[n] = Hi(e[n], t[n]), r;
|
|
3792
|
+
}, G({}, e)) : e;
|
|
3777
3793
|
}
|
|
3778
|
-
function
|
|
3794
|
+
function Fe(e) {
|
|
3779
3795
|
return {
|
|
3780
3796
|
create: function() {
|
|
3781
3797
|
return {
|
|
@@ -3789,39 +3805,39 @@ function Ge(e) {
|
|
|
3789
3805
|
}
|
|
3790
3806
|
};
|
|
3791
3807
|
}
|
|
3792
|
-
function
|
|
3808
|
+
function Ii(e) {
|
|
3793
3809
|
return e === void 0 && (e = {
|
|
3794
3810
|
number: {},
|
|
3795
3811
|
dateTime: {},
|
|
3796
3812
|
pluralRules: {}
|
|
3797
3813
|
}), {
|
|
3798
|
-
getNumberFormat:
|
|
3814
|
+
getNumberFormat: $e(function() {
|
|
3799
3815
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3800
3816
|
r[n] = arguments[n];
|
|
3801
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3817
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, De([void 0], r, !1)))();
|
|
3802
3818
|
}, {
|
|
3803
|
-
cache:
|
|
3804
|
-
strategy:
|
|
3819
|
+
cache: Fe(e.number),
|
|
3820
|
+
strategy: ke.variadic
|
|
3805
3821
|
}),
|
|
3806
|
-
getDateTimeFormat:
|
|
3822
|
+
getDateTimeFormat: $e(function() {
|
|
3807
3823
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3808
3824
|
r[n] = arguments[n];
|
|
3809
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3825
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, De([void 0], r, !1)))();
|
|
3810
3826
|
}, {
|
|
3811
|
-
cache:
|
|
3812
|
-
strategy:
|
|
3827
|
+
cache: Fe(e.dateTime),
|
|
3828
|
+
strategy: ke.variadic
|
|
3813
3829
|
}),
|
|
3814
|
-
getPluralRules:
|
|
3830
|
+
getPluralRules: $e(function() {
|
|
3815
3831
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3816
3832
|
r[n] = arguments[n];
|
|
3817
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3833
|
+
return new ((t = Intl.PluralRules).bind.apply(t, De([void 0], r, !1)))();
|
|
3818
3834
|
}, {
|
|
3819
|
-
cache:
|
|
3820
|
-
strategy:
|
|
3835
|
+
cache: Fe(e.pluralRules),
|
|
3836
|
+
strategy: ke.variadic
|
|
3821
3837
|
})
|
|
3822
3838
|
};
|
|
3823
3839
|
}
|
|
3824
|
-
var
|
|
3840
|
+
var Bi = (
|
|
3825
3841
|
/** @class */
|
|
3826
3842
|
function() {
|
|
3827
3843
|
function e(t, r, n, i) {
|
|
@@ -3831,20 +3847,20 @@ var Ii = (
|
|
|
3831
3847
|
number: {},
|
|
3832
3848
|
dateTime: {},
|
|
3833
3849
|
pluralRules: {}
|
|
3834
|
-
}, this.format = function(
|
|
3835
|
-
var
|
|
3836
|
-
if (
|
|
3837
|
-
return
|
|
3838
|
-
var h =
|
|
3839
|
-
return !c.length || f.type !==
|
|
3850
|
+
}, this.format = function(u) {
|
|
3851
|
+
var l = o.formatToParts(u);
|
|
3852
|
+
if (l.length === 1)
|
|
3853
|
+
return l[0].value;
|
|
3854
|
+
var h = l.reduce(function(c, f) {
|
|
3855
|
+
return !c.length || f.type !== M.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3840
3856
|
}, []);
|
|
3841
3857
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3842
|
-
}, this.formatToParts = function(
|
|
3843
|
-
return
|
|
3858
|
+
}, this.formatToParts = function(u) {
|
|
3859
|
+
return _e(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
|
|
3844
3860
|
}, this.resolvedOptions = function() {
|
|
3845
|
-
var
|
|
3861
|
+
var u;
|
|
3846
3862
|
return {
|
|
3847
|
-
locale: ((
|
|
3863
|
+
locale: ((u = o.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
3848
3864
|
};
|
|
3849
3865
|
}, this.getAst = function() {
|
|
3850
3866
|
return o.ast;
|
|
@@ -3853,13 +3869,13 @@ var Ii = (
|
|
|
3853
3869
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3854
3870
|
var s = i || {};
|
|
3855
3871
|
s.formatters;
|
|
3856
|
-
var a =
|
|
3857
|
-
this.ast = e.__parse(t,
|
|
3872
|
+
var a = $n(s, ["formatters"]);
|
|
3873
|
+
this.ast = e.__parse(t, G(G({}, a), { locale: this.resolvedLocale }));
|
|
3858
3874
|
} else
|
|
3859
3875
|
this.ast = t;
|
|
3860
3876
|
if (!Array.isArray(this.ast))
|
|
3861
3877
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3862
|
-
this.formats =
|
|
3878
|
+
this.formats = Ai(e.formats, n), this.formatters = i && i.formatters || Ii(this.formatterCache);
|
|
3863
3879
|
}
|
|
3864
3880
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3865
3881
|
get: function() {
|
|
@@ -3872,7 +3888,7 @@ var Ii = (
|
|
|
3872
3888
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3873
3889
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3874
3890
|
}
|
|
3875
|
-
}, e.__parse =
|
|
3891
|
+
}, e.__parse = Ei, e.formats = {
|
|
3876
3892
|
number: {
|
|
3877
3893
|
integer: {
|
|
3878
3894
|
maximumFractionDigits: 0
|
|
@@ -3933,7 +3949,7 @@ var Ii = (
|
|
|
3933
3949
|
}, e;
|
|
3934
3950
|
}()
|
|
3935
3951
|
);
|
|
3936
|
-
function
|
|
3952
|
+
function Pi(e, t) {
|
|
3937
3953
|
if (t == null)
|
|
3938
3954
|
return;
|
|
3939
3955
|
if (t in e)
|
|
@@ -3954,36 +3970,36 @@ function Bi(e, t) {
|
|
|
3954
3970
|
n = void 0;
|
|
3955
3971
|
return n;
|
|
3956
3972
|
}
|
|
3957
|
-
const
|
|
3973
|
+
const V = {}, Oi = (e, t, r) => r && (t in V || (V[t] = {}), e in V[t] || (V[t][e] = r), r), yr = (e, t) => {
|
|
3958
3974
|
if (t == null)
|
|
3959
3975
|
return;
|
|
3960
|
-
if (t in
|
|
3961
|
-
return
|
|
3962
|
-
const r =
|
|
3976
|
+
if (t in V && e in V[t])
|
|
3977
|
+
return V[t][e];
|
|
3978
|
+
const r = Pe(t);
|
|
3963
3979
|
for (let n = 0; n < r.length; n++) {
|
|
3964
|
-
const i = r[n], o =
|
|
3980
|
+
const i = r[n], o = Li(i, e);
|
|
3965
3981
|
if (o)
|
|
3966
|
-
return
|
|
3982
|
+
return Oi(e, t, o);
|
|
3967
3983
|
}
|
|
3968
3984
|
};
|
|
3969
3985
|
let lt;
|
|
3970
|
-
const
|
|
3986
|
+
const se = Ae({});
|
|
3971
3987
|
function Mi(e) {
|
|
3972
3988
|
return lt[e] || null;
|
|
3973
3989
|
}
|
|
3974
3990
|
function _r(e) {
|
|
3975
3991
|
return e in lt;
|
|
3976
3992
|
}
|
|
3977
|
-
function
|
|
3993
|
+
function Li(e, t) {
|
|
3978
3994
|
if (!_r(e))
|
|
3979
3995
|
return null;
|
|
3980
3996
|
const r = Mi(e);
|
|
3981
|
-
return
|
|
3997
|
+
return Pi(r, t);
|
|
3982
3998
|
}
|
|
3983
|
-
function
|
|
3999
|
+
function Ni(e) {
|
|
3984
4000
|
if (e == null)
|
|
3985
4001
|
return;
|
|
3986
|
-
const t =
|
|
4002
|
+
const t = Pe(e);
|
|
3987
4003
|
for (let r = 0; r < t.length; r++) {
|
|
3988
4004
|
const n = t[r];
|
|
3989
4005
|
if (_r(n))
|
|
@@ -3991,55 +4007,55 @@ function Li(e) {
|
|
|
3991
4007
|
}
|
|
3992
4008
|
}
|
|
3993
4009
|
function xr(e, ...t) {
|
|
3994
|
-
delete
|
|
4010
|
+
delete V[e], se.update((r) => (r[e] = Dn.all([r[e] || {}, ...t]), r));
|
|
3995
4011
|
}
|
|
3996
|
-
|
|
3997
|
-
[
|
|
4012
|
+
oe(
|
|
4013
|
+
[se],
|
|
3998
4014
|
([e]) => Object.keys(e)
|
|
3999
4015
|
);
|
|
4000
|
-
|
|
4001
|
-
const
|
|
4002
|
-
function
|
|
4003
|
-
|
|
4016
|
+
se.subscribe((e) => lt = e);
|
|
4017
|
+
const xe = {};
|
|
4018
|
+
function Ri(e, t) {
|
|
4019
|
+
xe[e].delete(t), xe[e].size === 0 && delete xe[e];
|
|
4004
4020
|
}
|
|
4005
4021
|
function Er(e) {
|
|
4006
|
-
return
|
|
4022
|
+
return xe[e];
|
|
4007
4023
|
}
|
|
4008
|
-
function
|
|
4009
|
-
return
|
|
4024
|
+
function Ui(e) {
|
|
4025
|
+
return Pe(e).map((t) => {
|
|
4010
4026
|
const r = Er(t);
|
|
4011
4027
|
return [t, r ? [...r] : []];
|
|
4012
4028
|
}).filter(([, t]) => t.length > 0);
|
|
4013
4029
|
}
|
|
4014
|
-
function
|
|
4015
|
-
return e == null ? !1 :
|
|
4030
|
+
function ot(e) {
|
|
4031
|
+
return e == null ? !1 : Pe(e).some(
|
|
4016
4032
|
(t) => {
|
|
4017
4033
|
var r;
|
|
4018
4034
|
return (r = Er(t)) == null ? void 0 : r.size;
|
|
4019
4035
|
}
|
|
4020
4036
|
);
|
|
4021
4037
|
}
|
|
4022
|
-
function
|
|
4038
|
+
function Di(e, t) {
|
|
4023
4039
|
return Promise.all(
|
|
4024
|
-
t.map((n) => (
|
|
4040
|
+
t.map((n) => (Ri(e, n), n().then((i) => i.default || i)))
|
|
4025
4041
|
).then((n) => xr(e, ...n));
|
|
4026
4042
|
}
|
|
4027
|
-
const
|
|
4043
|
+
const ue = {};
|
|
4028
4044
|
function wr(e) {
|
|
4029
|
-
if (!
|
|
4030
|
-
return e in
|
|
4031
|
-
const t =
|
|
4032
|
-
return
|
|
4045
|
+
if (!ot(e))
|
|
4046
|
+
return e in ue ? ue[e] : Promise.resolve();
|
|
4047
|
+
const t = Ui(e);
|
|
4048
|
+
return ue[e] = Promise.all(
|
|
4033
4049
|
t.map(
|
|
4034
|
-
([r, n]) =>
|
|
4050
|
+
([r, n]) => Di(r, n)
|
|
4035
4051
|
)
|
|
4036
4052
|
).then(() => {
|
|
4037
|
-
if (
|
|
4053
|
+
if (ot(e))
|
|
4038
4054
|
return wr(e);
|
|
4039
|
-
delete
|
|
4040
|
-
}),
|
|
4055
|
+
delete ue[e];
|
|
4056
|
+
}), ue[e];
|
|
4041
4057
|
}
|
|
4042
|
-
const
|
|
4058
|
+
const $i = {
|
|
4043
4059
|
number: {
|
|
4044
4060
|
scientific: { notation: "scientific" },
|
|
4045
4061
|
engineering: { notation: "engineering" },
|
|
@@ -4068,72 +4084,72 @@ const Di = {
|
|
|
4068
4084
|
timeZoneName: "short"
|
|
4069
4085
|
}
|
|
4070
4086
|
}
|
|
4071
|
-
},
|
|
4087
|
+
}, ki = {
|
|
4072
4088
|
fallbackLocale: null,
|
|
4073
4089
|
loadingDelay: 200,
|
|
4074
|
-
formats:
|
|
4090
|
+
formats: $i,
|
|
4075
4091
|
warnOnMissingMessages: !0,
|
|
4076
4092
|
handleMissingMessage: void 0,
|
|
4077
4093
|
ignoreTag: !0
|
|
4078
|
-
},
|
|
4079
|
-
function
|
|
4080
|
-
return
|
|
4094
|
+
}, Gi = ki;
|
|
4095
|
+
function ie() {
|
|
4096
|
+
return Gi;
|
|
4081
4097
|
}
|
|
4082
|
-
const
|
|
4083
|
-
var
|
|
4098
|
+
const je = Ae(!1);
|
|
4099
|
+
var Fi = Object.defineProperty, ji = Object.defineProperties, Vi = Object.getOwnPropertyDescriptors, Ot = Object.getOwnPropertySymbols, Wi = Object.prototype.hasOwnProperty, Xi = Object.prototype.propertyIsEnumerable, Mt = (e, t, r) => t in e ? Fi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, zi = (e, t) => {
|
|
4084
4100
|
for (var r in t || (t = {}))
|
|
4085
|
-
|
|
4086
|
-
if (
|
|
4087
|
-
for (var r of
|
|
4088
|
-
|
|
4101
|
+
Wi.call(t, r) && Mt(e, r, t[r]);
|
|
4102
|
+
if (Ot)
|
|
4103
|
+
for (var r of Ot(t))
|
|
4104
|
+
Xi.call(t, r) && Mt(e, r, t[r]);
|
|
4089
4105
|
return e;
|
|
4090
|
-
},
|
|
4091
|
-
let
|
|
4106
|
+
}, Zi = (e, t) => ji(e, Vi(t));
|
|
4107
|
+
let st;
|
|
4092
4108
|
const Ce = Ae(null);
|
|
4093
|
-
function
|
|
4109
|
+
function Lt(e) {
|
|
4094
4110
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4095
4111
|
}
|
|
4096
|
-
function
|
|
4097
|
-
const r =
|
|
4098
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4112
|
+
function Pe(e, t = ie().fallbackLocale) {
|
|
4113
|
+
const r = Lt(e);
|
|
4114
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Lt(t)])] : r;
|
|
4099
4115
|
}
|
|
4100
|
-
function
|
|
4101
|
-
return
|
|
4116
|
+
function z() {
|
|
4117
|
+
return st ?? void 0;
|
|
4102
4118
|
}
|
|
4103
4119
|
Ce.subscribe((e) => {
|
|
4104
|
-
|
|
4120
|
+
st = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4105
4121
|
});
|
|
4106
|
-
const
|
|
4107
|
-
if (e &&
|
|
4108
|
-
const { loadingDelay: t } =
|
|
4122
|
+
const Qi = (e) => {
|
|
4123
|
+
if (e && Ni(e) && ot(e)) {
|
|
4124
|
+
const { loadingDelay: t } = ie();
|
|
4109
4125
|
let r;
|
|
4110
|
-
return typeof window < "u" &&
|
|
4111
|
-
() =>
|
|
4126
|
+
return typeof window < "u" && z() != null && t ? r = window.setTimeout(
|
|
4127
|
+
() => je.set(!0),
|
|
4112
4128
|
t
|
|
4113
|
-
) :
|
|
4129
|
+
) : je.set(!0), wr(e).then(() => {
|
|
4114
4130
|
Ce.set(e);
|
|
4115
4131
|
}).finally(() => {
|
|
4116
|
-
clearTimeout(r),
|
|
4132
|
+
clearTimeout(r), je.set(!1);
|
|
4117
4133
|
});
|
|
4118
4134
|
}
|
|
4119
4135
|
return Ce.set(e);
|
|
4120
|
-
},
|
|
4121
|
-
set:
|
|
4122
|
-
}),
|
|
4136
|
+
}, W = Zi(zi({}, Ce), {
|
|
4137
|
+
set: Qi
|
|
4138
|
+
}), Oe = (e) => {
|
|
4123
4139
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4124
4140
|
return (n) => {
|
|
4125
4141
|
const i = JSON.stringify(n);
|
|
4126
4142
|
return i in t ? t[i] : t[i] = e(n);
|
|
4127
4143
|
};
|
|
4128
4144
|
};
|
|
4129
|
-
var
|
|
4145
|
+
var Yi = Object.defineProperty, Se = Object.getOwnPropertySymbols, Cr = Object.prototype.hasOwnProperty, Sr = Object.prototype.propertyIsEnumerable, Nt = (e, t, r) => t in e ? Yi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ht = (e, t) => {
|
|
4130
4146
|
for (var r in t || (t = {}))
|
|
4131
|
-
Cr.call(t, r) &&
|
|
4147
|
+
Cr.call(t, r) && Nt(e, r, t[r]);
|
|
4132
4148
|
if (Se)
|
|
4133
4149
|
for (var r of Se(t))
|
|
4134
|
-
Sr.call(t, r) &&
|
|
4150
|
+
Sr.call(t, r) && Nt(e, r, t[r]);
|
|
4135
4151
|
return e;
|
|
4136
|
-
},
|
|
4152
|
+
}, ae = (e, t) => {
|
|
4137
4153
|
var r = {};
|
|
4138
4154
|
for (var n in e)
|
|
4139
4155
|
Cr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -4142,76 +4158,76 @@ var Qi = Object.defineProperty, Se = Object.getOwnPropertySymbols, Cr = Object.p
|
|
|
4142
4158
|
t.indexOf(n) < 0 && Sr.call(e, n) && (r[n] = e[n]);
|
|
4143
4159
|
return r;
|
|
4144
4160
|
};
|
|
4145
|
-
const
|
|
4146
|
-
const { formats: r } =
|
|
4161
|
+
const fe = (e, t) => {
|
|
4162
|
+
const { formats: r } = ie();
|
|
4147
4163
|
if (e in r && t in r[e])
|
|
4148
4164
|
return r[e][t];
|
|
4149
4165
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4150
|
-
}, qi =
|
|
4166
|
+
}, qi = Oe(
|
|
4151
4167
|
(e) => {
|
|
4152
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4168
|
+
var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
|
|
4153
4169
|
if (r == null)
|
|
4154
4170
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4155
|
-
return n && (i =
|
|
4171
|
+
return n && (i = fe("number", n)), new Intl.NumberFormat(r, i);
|
|
4156
4172
|
}
|
|
4157
|
-
),
|
|
4173
|
+
), Ji = Oe(
|
|
4158
4174
|
(e) => {
|
|
4159
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4175
|
+
var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
|
|
4160
4176
|
if (r == null)
|
|
4161
4177
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4162
|
-
return n ? i =
|
|
4178
|
+
return n ? i = fe("date", n) : Object.keys(i).length === 0 && (i = fe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4163
4179
|
}
|
|
4164
|
-
),
|
|
4180
|
+
), Ki = Oe(
|
|
4165
4181
|
(e) => {
|
|
4166
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4182
|
+
var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
|
|
4167
4183
|
if (r == null)
|
|
4168
4184
|
throw new Error(
|
|
4169
4185
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4170
4186
|
);
|
|
4171
|
-
return n ? i =
|
|
4187
|
+
return n ? i = fe("time", n) : Object.keys(i).length === 0 && (i = fe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4172
4188
|
}
|
|
4173
|
-
),
|
|
4189
|
+
), eo = (e = {}) => {
|
|
4174
4190
|
var t = e, {
|
|
4175
|
-
locale: r =
|
|
4176
|
-
} = t, n =
|
|
4191
|
+
locale: r = z()
|
|
4192
|
+
} = t, n = ae(t, [
|
|
4177
4193
|
"locale"
|
|
4178
4194
|
]);
|
|
4179
|
-
return qi(
|
|
4180
|
-
},
|
|
4195
|
+
return qi(ht({ locale: r }, n));
|
|
4196
|
+
}, to = (e = {}) => {
|
|
4181
4197
|
var t = e, {
|
|
4182
|
-
locale: r =
|
|
4183
|
-
} = t, n =
|
|
4198
|
+
locale: r = z()
|
|
4199
|
+
} = t, n = ae(t, [
|
|
4184
4200
|
"locale"
|
|
4185
4201
|
]);
|
|
4186
|
-
return
|
|
4187
|
-
},
|
|
4202
|
+
return Ji(ht({ locale: r }, n));
|
|
4203
|
+
}, ro = (e = {}) => {
|
|
4188
4204
|
var t = e, {
|
|
4189
|
-
locale: r =
|
|
4190
|
-
} = t, n =
|
|
4205
|
+
locale: r = z()
|
|
4206
|
+
} = t, n = ae(t, [
|
|
4191
4207
|
"locale"
|
|
4192
4208
|
]);
|
|
4193
|
-
return
|
|
4194
|
-
},
|
|
4209
|
+
return Ki(ht({ locale: r }, n));
|
|
4210
|
+
}, no = Oe(
|
|
4195
4211
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4196
|
-
(e, t =
|
|
4197
|
-
ignoreTag:
|
|
4212
|
+
(e, t = z()) => new Bi(e, t, ie().formats, {
|
|
4213
|
+
ignoreTag: ie().ignoreTag
|
|
4198
4214
|
})
|
|
4199
|
-
),
|
|
4215
|
+
), io = (e, t = {}) => {
|
|
4200
4216
|
var r, n, i, o;
|
|
4201
4217
|
let s = t;
|
|
4202
4218
|
typeof e == "object" && (s = e, e = s.id);
|
|
4203
4219
|
const {
|
|
4204
4220
|
values: a,
|
|
4205
|
-
locale:
|
|
4206
|
-
default:
|
|
4221
|
+
locale: u = z(),
|
|
4222
|
+
default: l
|
|
4207
4223
|
} = s;
|
|
4208
|
-
if (
|
|
4224
|
+
if (u == null)
|
|
4209
4225
|
throw new Error(
|
|
4210
4226
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4211
4227
|
);
|
|
4212
|
-
let h = yr(e,
|
|
4228
|
+
let h = yr(e, u);
|
|
4213
4229
|
if (!h)
|
|
4214
|
-
h = (o = (i = (n = (r =
|
|
4230
|
+
h = (o = (i = (n = (r = ie()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
4215
4231
|
else if (typeof h != "string")
|
|
4216
4232
|
return console.warn(
|
|
4217
4233
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4220,7 +4236,7 @@ const pe = (e, t) => {
|
|
|
4220
4236
|
return h;
|
|
4221
4237
|
let c = h;
|
|
4222
4238
|
try {
|
|
4223
|
-
c =
|
|
4239
|
+
c = no(h, u).format(a);
|
|
4224
4240
|
} catch (f) {
|
|
4225
4241
|
f instanceof Error && console.warn(
|
|
4226
4242
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4228,32 +4244,32 @@ const pe = (e, t) => {
|
|
|
4228
4244
|
);
|
|
4229
4245
|
}
|
|
4230
4246
|
return c;
|
|
4231
|
-
},
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
window.emWidgets = { topic:
|
|
4238
|
-
const
|
|
4247
|
+
}, oo = (e, t) => ro(t).format(e), so = (e, t) => to(t).format(e), ao = (e, t) => eo(t).format(e), uo = (e, t = z()) => yr(e, t);
|
|
4248
|
+
oe([W, se], () => io);
|
|
4249
|
+
oe([W], () => oo);
|
|
4250
|
+
oe([W], () => so);
|
|
4251
|
+
oe([W], () => ao);
|
|
4252
|
+
oe([W, se], () => uo);
|
|
4253
|
+
window.emWidgets = { topic: xn };
|
|
4254
|
+
const Rt = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4239
4255
|
function lo({ withLocale: e, translations: t }) {
|
|
4240
|
-
|
|
4241
|
-
r == null && (
|
|
4256
|
+
W.subscribe((r) => {
|
|
4257
|
+
r == null && (se.set(t), W.set(e));
|
|
4242
4258
|
});
|
|
4243
4259
|
}
|
|
4244
|
-
function
|
|
4260
|
+
function ho(e, t) {
|
|
4245
4261
|
xr(e, t);
|
|
4246
4262
|
}
|
|
4247
|
-
function
|
|
4248
|
-
|
|
4263
|
+
function co(e) {
|
|
4264
|
+
W.set(e);
|
|
4249
4265
|
}
|
|
4250
|
-
function
|
|
4266
|
+
function fo(e, t) {
|
|
4251
4267
|
if (e) {
|
|
4252
4268
|
const r = document.createElement("style");
|
|
4253
4269
|
r.innerHTML = t, e.appendChild(r);
|
|
4254
4270
|
}
|
|
4255
4271
|
}
|
|
4256
|
-
function
|
|
4272
|
+
function po(e, t) {
|
|
4257
4273
|
const r = new URL(t);
|
|
4258
4274
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4259
4275
|
const i = document.createElement("style");
|
|
@@ -4262,7 +4278,7 @@ function fo(e, t) {
|
|
|
4262
4278
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4263
4279
|
});
|
|
4264
4280
|
}
|
|
4265
|
-
function
|
|
4281
|
+
function mo(e, t, r) {
|
|
4266
4282
|
if (window.emMessageBus) {
|
|
4267
4283
|
const n = document.createElement("style");
|
|
4268
4284
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4270,44 +4286,44 @@ function po(e, t, r) {
|
|
|
4270
4286
|
});
|
|
4271
4287
|
}
|
|
4272
4288
|
}
|
|
4273
|
-
function
|
|
4274
|
-
kr(e, "svelte-
|
|
4289
|
+
function bo(e) {
|
|
4290
|
+
kr(e, "svelte-kras36", '.CasinoVendorsLoading{height:52px}p{color:var(--emw--categories-typography, var(--emw--color-white) #ffffff);text-align:center}.CasinoVendorsContainer{background:transparent;border-radius:var(--emw--border-radius-medium, 20px)}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CarouselWrapper{min-height:72px;max-height:75px;background:var(--emw--color-primary, #194127);background:-webkit-linear-gradient(to left, var(--emw--categories-color-secondary, #194127), var(--emw--categories-color-primary, #003d5d));background:linear-gradient(to left, var(--emw--categories-color-secondary, #194127), var(--emw--categories-color-primary, #003d5d));border-radius:var(--emw--border-radius-medium, 20px);max-width:1300px;margin:0 auto}.CarouselContainer{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;width:100%;color:var(--emw--categories-typography, var(--emw--color-white, #ffffff));margin:0 auto;max-width:1300px;min-height:72px}.CarouselContainer.CarouselContainerMobile{padding:0}.CarouselContainer .CarouselItems{overflow-x:auto;overflow-y:hidden;scroll-snap-align:center}.CarouselContainer ul{align-items:center;list-style:none;padding:0;margin:0}.CarouselContainer ul::-webkit-scrollbar{display:none}.CarouselContainer ul li{align-items:center;font-size:var(--emw--font-size-medium, 15px);font-weight:500;line-height:34px;white-space:nowrap;display:inline-block;text-align:left;word-spacing:normal;position:relative}.CarouselContainer ul li>a{position:relative;border-bottom:2px solid transparent}.CarouselContainer ul li.SecondaryMenu button,.CarouselContainer ul li.SecondaryMenu .ActiveImg{border-bottom:2px solid transparent;position:relative}.CarouselContainer ul li.SecondaryMenu:hover,.CarouselContainer ul li.SecondaryMenu.active,.CarouselContainer ul li.SecondaryMenu:focus,.CarouselContainer ul li.SecondaryMenu:focus-within{cursor:pointer}.CarouselContainer ul li.SecondaryMenu:hover button,.CarouselContainer ul li.SecondaryMenu:hover .ActiveImg,.CarouselContainer ul li.SecondaryMenu.active button,.CarouselContainer ul li.SecondaryMenu.active .ActiveImg,.CarouselContainer ul li.SecondaryMenu:focus button,.CarouselContainer ul li.SecondaryMenu:focus .ActiveImg,.CarouselContainer ul li.SecondaryMenu:focus-within button,.CarouselContainer ul li.SecondaryMenu:focus-within .ActiveImg{border-bottom:2px solid var(--emw--color-green, #23b04e);position:relative}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li:hover,.CarouselContainer ul>li>a:hover,.CarouselContainer ul li:focus,.CarouselContainer ul>li>a:focus{z-index:105}.CarouselContainer .CarouselItems li:hover>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear}.CarouselContainer .CarouselItems li:focus-within>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear, top 0.5s}.CarouselContainer .CarouselItems ul ul{transition:opacity 0.4s, left 0s 0.4s, margin 0s 0.4s;z-index:103}.CarouselContainer .CarouselItems li li:hover ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselItems li li:focus-within ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselLeftArrow,.CarouselContainer .CarouselRightArrow{display:flex;align-items:center;justify-content:center;width:50%;max-width:64px}.CarouselContainer .CarouselLeftArrow svg,.CarouselContainer .CarouselRightArrow svg{width:100%;max-width:22px;stroke:var(--emw--categories-arrows, var(--emw--color-white, #ffffff))}.CarouselContainer h1{text-align:center}.CarouselContainer ul{margin:0;padding:0;list-style:none}.CarouselContainer .CarouselNavWrap{overflow-y:scroll;white-space:nowrap;list-style-type:none;-ms-overflow-style:none;scrollbar-width:none}.CarouselContainer .CarouselNavWrap::-webkit-scrollbar{display:none}.CarouselContainer .CarouselItems{display:table;width:100%;text-align:center;height:100%}.CarouselContainer .CarouselItems li{text-align:left;padding:18px}.CarouselContainer .CarouselItems li>a{position:relative}.CarouselContainer .CarouselItems li li{display:block}.CarouselContainer .CarouselItems li svg,.CarouselContainer .CarouselItems li img{height:100%;margin-right:5px;position:relative;top:5px;max-height:25px;line-height:25px;font-size:var(--emw--font-size-2x-small, 11px);overflow:auto}.CarouselContainer .CarouselItems button{background:none;border:none;color:var(--emw--categories-typography, var(--emw--color-white, #ffffff));text-decoration:none;white-space:nowrap;position:relative;padding-bottom:5px}.CarouselContainer .CarouselItems span{position:absolute;bottom:15px;right:-15px;background:var(--emw--pam-color-primary, var(--emw--color-primary, #23b04e));border-radius:50%;padding:3px;min-width:20px;max-width:30px;height:20px;text-align:center;display:flex;align-items:center;justify-content:center;font-size:var(--emw--font-size-2x-small, 11px)}.CarouselContainer .CarouselItems .categoryImgButtonCount{top:15px;right:8px}.CarouselContainer .CarouselItems a{display:block;color:var(--emw--categories-typography, var(--emw--color-white, #ffffff));text-decoration:none;white-space:nowrap;position:relative}.CarouselContainer .CarouselItems.SecondaryMenu li:hover>a,.CarouselContainer .CarouselItems.SecondaryMenu a:hover,.CarouselContainer .CarouselItems.SecondaryMenu li:focus>a,.CarouselContainer .CarouselItems.SecondaryMenu a:focus{background:var(--emw--categories-contrast, var(--emw--color-background, #07072a))}.CarouselContainer .CarouselItems ul{position:absolute;z-index:104;left:-999em;top:0;opacity:0;transition:opacity 0.1s, left 0s 0.1s, top 0.1s;background:-webkit-linear-gradient(to left, var(--emw--categories-color-secondary, #194127), var(--emw--categories-color-primary, #003d5d));background:linear-gradient(to left, var(--emw--categories-color-secondary, #194127), var(--emw--categories-color-primary, #003d5d))}.CarouselContainer .CarouselItems .TouchOnly{display:none}.CarouselContainer .touch-device .CarouselItems .TouchOnly{display:inline-block;left:-10px}.CarouselContainer .touch-device .CarouselItems .TouchOnly a{background:var(--emw--categories-contrast, var(--emw--color-background, #07072a));color:var(--emw--categories-typography, var(--emw--color-white, #ffffff))}.CarouselContainer .isScrolling .CarouselItems ul.DropDown{left:-999em;opacity:0}.CarouselItems li a:first-child:not(:last-child){padding-right:20px}.CarouselItems li a:first-child:not(:last-child):after{content:"";position:absolute;right:3px;top:50%;margin-top:-6px;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:6px solid var(--emw--color-white, #ffffff)}.CarouselItems>li>a:first-child:not(:last-child):after{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid var(--emw--color-white, #ffffff);border-bottom:none;margin-top:-3px}.CarouselItems li:hover a:first-child:not(:last-child):after{border-left-color:var(--emw--color-white, #ffffff)}.CarouselItems li:focus-within a:first-child:not(:last-child):after{border-left-color:var(--emw--color-white, #ffffff)}.CarouselItems>li:hover>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emw--color-white, #ffffff)}.CarouselItems>li:focus-within>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emw--color-white, #ffffff)}.CategoryIconImg{height:20px;margin:0 auto;display:block}.CarouselWrapperMobile{margin:0 10px;border-radius:20px;max-height:75px}.CarouselWrapperMobile .MobileCategoryButton{margin-top:5px}.CarouselWrapperMobile .CarouselLeftArrow,.CarouselWrapperMobile .CarouselRightArrow{display:flex;max-height:75px}.CarouselWrapperMobile .CarouselLeftArrow svg,.CarouselWrapperMobile .CarouselRightArrow svg{max-width:15px}.CarouselWrapperMobile .CarouselItems li{display:inline-flex;flex-direction:column;justify-content:center;height:inherit;gap:5px;padding:15px 25px}.CarouselWrapperMobile .CarouselItems li svg{position:unset;top:unset}.CarouselWrapperMobile .CategoryIconContainer{position:relative;height:25px}.CarouselWrapperMobile .CategoryIconContainer span{top:-5px;right:-10px}.CarouselWrapperMobile .ImageContainer{display:block;height:25px}.CarouselWrapperMobile .CarouselContainer .CarouselItems li svg,.CarouselWrapperMobile .CarouselContainer .CarouselItems li img{margin:0;top:unset;position:static;overflow:auto}');
|
|
4275
4291
|
}
|
|
4276
|
-
function
|
|
4292
|
+
function Ut(e, t, r) {
|
|
4277
4293
|
const n = e.slice();
|
|
4278
4294
|
return n[43] = t[r], n[45] = r, n;
|
|
4279
4295
|
}
|
|
4280
|
-
function
|
|
4281
|
-
let t, r, n, i, o, s, a,
|
|
4296
|
+
function go(e) {
|
|
4297
|
+
let t, r, n, i, o, s, a, u, l, h, c, f, m, d = (
|
|
4282
4298
|
/*vendors*/
|
|
4283
|
-
e[6].length > 0 &&
|
|
4299
|
+
e[6].length > 0 && Dt(e)
|
|
4284
4300
|
);
|
|
4285
4301
|
return {
|
|
4286
4302
|
c() {
|
|
4287
|
-
t = S("div"), r = S("div"), n = S("div"), i = S("div"), i.innerHTML = '<svg fill="none" stroke="var(--emw--categories-arrows, var( --emw--color-white, #FFFFFF));" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="3" d="M15 19l-7-7 7-7"></path></svg>', o =
|
|
4288
|
-
(e[10] ? "CarouselWrapperMobile" : "")),
|
|
4303
|
+
t = S("div"), r = S("div"), n = S("div"), i = S("div"), i.innerHTML = '<svg fill="none" stroke="var(--emw--categories-arrows, var( --emw--color-white, #FFFFFF));" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="3" d="M15 19l-7-7 7-7"></path></svg>', o = F(), s = S("div"), a = S("ul"), u = S("li"), u.innerHTML = '<a href="#CarouselNav">Close Subs</a>', l = F(), d && d.c(), h = F(), c = S("div"), c.innerHTML = '<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="3" d="M9 5l7 7-7 7"></path></svg>', x(i, "class", "CarouselLeftArrow"), x(u, "class", "TouchOnly"), x(a, "id", "CarouselNav"), x(a, "class", "CarouselItems"), x(s, "class", "CarouselNavWrap"), x(c, "class", "CarouselRightArrow"), x(n, "class", "CarouselContainer CarouselContainerMobile"), x(r, "class", "CarouselWrapper " + /*isMobile*/
|
|
4304
|
+
(e[10] ? "CarouselWrapperMobile" : "")), x(t, "class", "CasinoVendorsContainer"), x(t, "part", "CasinoVendorsContainer");
|
|
4289
4305
|
},
|
|
4290
4306
|
m(b, T) {
|
|
4291
|
-
B(b, t, T), H(t, r), H(r, n), H(n, i), H(n, o), H(n, s), H(s, a), H(a,
|
|
4292
|
-
|
|
4307
|
+
B(b, t, T), H(t, r), H(r, n), H(n, i), H(n, o), H(n, s), H(s, a), H(a, u), H(a, l), d && d.m(a, null), e[28](a), e[29](s), H(n, h), H(n, c), e[30](r), f || (m = [
|
|
4308
|
+
J(
|
|
4293
4309
|
i,
|
|
4294
4310
|
"click",
|
|
4295
4311
|
/*scrollLeft*/
|
|
4296
4312
|
e[12]
|
|
4297
4313
|
),
|
|
4298
|
-
|
|
4314
|
+
J(
|
|
4299
4315
|
i,
|
|
4300
4316
|
"keydown",
|
|
4301
4317
|
/*onScrollLeftKeydown*/
|
|
4302
4318
|
e[15]
|
|
4303
4319
|
),
|
|
4304
|
-
|
|
4320
|
+
J(
|
|
4305
4321
|
c,
|
|
4306
4322
|
"click",
|
|
4307
4323
|
/*scrollRight*/
|
|
4308
4324
|
e[13]
|
|
4309
4325
|
),
|
|
4310
|
-
|
|
4326
|
+
J(
|
|
4311
4327
|
c,
|
|
4312
4328
|
"keydown",
|
|
4313
4329
|
/*onScrollRightKeydown*/
|
|
@@ -4317,18 +4333,18 @@ function bo(e) {
|
|
|
4317
4333
|
},
|
|
4318
4334
|
p(b, T) {
|
|
4319
4335
|
/*vendors*/
|
|
4320
|
-
b[6].length > 0 ?
|
|
4336
|
+
b[6].length > 0 ? d ? d.p(b, T) : (d = Dt(b), d.c(), d.m(a, null)) : d && (d.d(1), d = null);
|
|
4321
4337
|
},
|
|
4322
4338
|
d(b) {
|
|
4323
|
-
b && I(t),
|
|
4339
|
+
b && I(t), d && d.d(), e[28](null), e[29](null), e[30](null), f = !1, X(m);
|
|
4324
4340
|
}
|
|
4325
4341
|
};
|
|
4326
4342
|
}
|
|
4327
|
-
function
|
|
4343
|
+
function vo(e) {
|
|
4328
4344
|
let t;
|
|
4329
4345
|
return {
|
|
4330
4346
|
c() {
|
|
4331
|
-
t = S("p"), t.textContent = "500 Error - Internal Server Error.",
|
|
4347
|
+
t = S("p"), t.textContent = "500 Error - Internal Server Error.", x(t, "class", "SearchLoading");
|
|
4332
4348
|
},
|
|
4333
4349
|
m(r, n) {
|
|
4334
4350
|
B(r, t, n);
|
|
@@ -4339,11 +4355,11 @@ function go(e) {
|
|
|
4339
4355
|
}
|
|
4340
4356
|
};
|
|
4341
4357
|
}
|
|
4342
|
-
function
|
|
4358
|
+
function yo(e) {
|
|
4343
4359
|
let t;
|
|
4344
4360
|
return {
|
|
4345
4361
|
c() {
|
|
4346
|
-
t = S("div"),
|
|
4362
|
+
t = S("div"), x(t, "class", "CasinoVendorsLoading");
|
|
4347
4363
|
},
|
|
4348
4364
|
m(r, n) {
|
|
4349
4365
|
B(r, t, n);
|
|
@@ -4354,8 +4370,8 @@ function vo(e) {
|
|
|
4354
4370
|
}
|
|
4355
4371
|
};
|
|
4356
4372
|
}
|
|
4357
|
-
function
|
|
4358
|
-
let t = [], r = /* @__PURE__ */ new Map(), n, i =
|
|
4373
|
+
function Dt(e) {
|
|
4374
|
+
let t = [], r = /* @__PURE__ */ new Map(), n, i = mt(
|
|
4359
4375
|
/*vendors*/
|
|
4360
4376
|
e[6]
|
|
4361
4377
|
);
|
|
@@ -4364,26 +4380,26 @@ function Ut(e) {
|
|
|
4364
4380
|
s[43].id
|
|
4365
4381
|
);
|
|
4366
4382
|
for (let s = 0; s < i.length; s += 1) {
|
|
4367
|
-
let a =
|
|
4368
|
-
r.set(
|
|
4383
|
+
let a = Ut(e, i, s), u = o(a);
|
|
4384
|
+
r.set(u, t[s] = Wt(u, a));
|
|
4369
4385
|
}
|
|
4370
4386
|
return {
|
|
4371
4387
|
c() {
|
|
4372
4388
|
for (let s = 0; s < t.length; s += 1)
|
|
4373
4389
|
t[s].c();
|
|
4374
|
-
n =
|
|
4390
|
+
n = at();
|
|
4375
4391
|
},
|
|
4376
4392
|
m(s, a) {
|
|
4377
|
-
for (let
|
|
4378
|
-
t[
|
|
4393
|
+
for (let u = 0; u < t.length; u += 1)
|
|
4394
|
+
t[u] && t[u].m(s, a);
|
|
4379
4395
|
B(s, n, a);
|
|
4380
4396
|
},
|
|
4381
4397
|
p(s, a) {
|
|
4382
4398
|
a[0] & /*activevendor, vendors, handleClick, onCarouselItemKeydown, getButtonClasses, getGamesTotal, showvendorgames, showvendorname, showvendoricon, isMobile*/
|
|
4383
|
-
461903 && (i =
|
|
4399
|
+
461903 && (i = mt(
|
|
4384
4400
|
/*vendors*/
|
|
4385
4401
|
s[6]
|
|
4386
|
-
), t = Kr(t, a, o, 1, s, i, r, n.parentNode, Jr,
|
|
4402
|
+
), t = Kr(t, a, o, 1, s, i, r, n.parentNode, Jr, Wt, n, Ut));
|
|
4387
4403
|
},
|
|
4388
4404
|
d(s) {
|
|
4389
4405
|
s && I(n);
|
|
@@ -4392,18 +4408,18 @@ function Ut(e) {
|
|
|
4392
4408
|
}
|
|
4393
4409
|
};
|
|
4394
4410
|
}
|
|
4395
|
-
function
|
|
4411
|
+
function $t(e) {
|
|
4396
4412
|
let t;
|
|
4397
4413
|
function r(o, s) {
|
|
4398
4414
|
return (
|
|
4399
4415
|
/*isMobile*/
|
|
4400
|
-
o[10] ?
|
|
4416
|
+
o[10] ? xo : _o
|
|
4401
4417
|
);
|
|
4402
4418
|
}
|
|
4403
4419
|
let i = r(e)(e);
|
|
4404
4420
|
return {
|
|
4405
4421
|
c() {
|
|
4406
|
-
i.c(), t =
|
|
4422
|
+
i.c(), t = at();
|
|
4407
4423
|
},
|
|
4408
4424
|
m(o, s) {
|
|
4409
4425
|
i.m(o, s), B(o, t, s);
|
|
@@ -4416,65 +4432,65 @@ function Dt(e) {
|
|
|
4416
4432
|
}
|
|
4417
4433
|
};
|
|
4418
4434
|
}
|
|
4419
|
-
function
|
|
4435
|
+
function _o(e) {
|
|
4420
4436
|
let t, r, n, i, o, s = (
|
|
4421
4437
|
/*showvendorname*/
|
|
4422
|
-
e[2] === "false" &&
|
|
4438
|
+
e[2] === "false" && kt()
|
|
4423
4439
|
);
|
|
4424
4440
|
return {
|
|
4425
4441
|
c() {
|
|
4426
|
-
t = S("
|
|
4427
|
-
e[43].logo) ||
|
|
4442
|
+
t = S("img"), i = F(), s && s.c(), o = at(), Ee(t.src, r = /*vendor*/
|
|
4443
|
+
e[43].logo) || x(t, "src", r), x(t, "alt", n = /*vendor*/
|
|
4428
4444
|
e[43].displayName);
|
|
4429
4445
|
},
|
|
4430
|
-
m(a,
|
|
4431
|
-
B(a, t,
|
|
4446
|
+
m(a, u) {
|
|
4447
|
+
B(a, t, u), B(a, i, u), s && s.m(a, u), B(a, o, u);
|
|
4432
4448
|
},
|
|
4433
|
-
p(a,
|
|
4434
|
-
|
|
4435
|
-
64 && !
|
|
4436
|
-
a[43].logo) &&
|
|
4449
|
+
p(a, u) {
|
|
4450
|
+
u[0] & /*vendors*/
|
|
4451
|
+
64 && !Ee(t.src, r = /*vendor*/
|
|
4452
|
+
a[43].logo) && x(t, "src", r), u[0] & /*vendors*/
|
|
4437
4453
|
64 && n !== (n = /*vendor*/
|
|
4438
|
-
a[43].displayName) &&
|
|
4439
|
-
a[2] === "false" ? s || (s =
|
|
4454
|
+
a[43].displayName) && x(t, "alt", n), /*showvendorname*/
|
|
4455
|
+
a[2] === "false" ? s || (s = kt(), s.c(), s.m(o.parentNode, o)) : s && (s.d(1), s = null);
|
|
4440
4456
|
},
|
|
4441
4457
|
d(a) {
|
|
4442
4458
|
a && (I(t), I(i), I(o)), s && s.d(a);
|
|
4443
4459
|
}
|
|
4444
4460
|
};
|
|
4445
4461
|
}
|
|
4446
|
-
function
|
|
4462
|
+
function xo(e) {
|
|
4447
4463
|
let t, r, n, i, o, s = (
|
|
4448
4464
|
/*showvendorname*/
|
|
4449
|
-
e[2] === "false" &&
|
|
4465
|
+
e[2] === "false" && Gt()
|
|
4450
4466
|
);
|
|
4451
4467
|
return {
|
|
4452
4468
|
c() {
|
|
4453
|
-
t = S("div"), r = S("
|
|
4454
|
-
e[43].logo) ||
|
|
4455
|
-
e[43].displayName),
|
|
4469
|
+
t = S("div"), r = S("img"), o = F(), s && s.c(), Ee(r.src, n = /*vendor*/
|
|
4470
|
+
e[43].logo) || x(r, "src", n), x(r, "alt", i = /*vendor*/
|
|
4471
|
+
e[43].displayName), x(t, "class", "ImageContainer");
|
|
4456
4472
|
},
|
|
4457
|
-
m(a,
|
|
4458
|
-
B(a, t,
|
|
4473
|
+
m(a, u) {
|
|
4474
|
+
B(a, t, u), H(t, r), H(t, o), s && s.m(t, null);
|
|
4459
4475
|
},
|
|
4460
|
-
p(a,
|
|
4461
|
-
|
|
4462
|
-
64 && !
|
|
4463
|
-
a[43].logo) &&
|
|
4476
|
+
p(a, u) {
|
|
4477
|
+
u[0] & /*vendors*/
|
|
4478
|
+
64 && !Ee(r.src, n = /*vendor*/
|
|
4479
|
+
a[43].logo) && x(r, "src", n), u[0] & /*vendors*/
|
|
4464
4480
|
64 && i !== (i = /*vendor*/
|
|
4465
|
-
a[43].displayName) &&
|
|
4466
|
-
a[2] === "false" ? s || (s =
|
|
4481
|
+
a[43].displayName) && x(r, "alt", i), /*showvendorname*/
|
|
4482
|
+
a[2] === "false" ? s || (s = Gt(), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
|
|
4467
4483
|
},
|
|
4468
4484
|
d(a) {
|
|
4469
4485
|
a && I(t), s && s.d();
|
|
4470
4486
|
}
|
|
4471
4487
|
};
|
|
4472
4488
|
}
|
|
4473
|
-
function
|
|
4489
|
+
function kt(e) {
|
|
4474
4490
|
let t;
|
|
4475
4491
|
return {
|
|
4476
4492
|
c() {
|
|
4477
|
-
t = S("div"),
|
|
4493
|
+
t = S("div"), x(t, "class", "ActiveImg");
|
|
4478
4494
|
},
|
|
4479
4495
|
m(r, n) {
|
|
4480
4496
|
B(r, t, n);
|
|
@@ -4484,11 +4500,11 @@ function $t(e) {
|
|
|
4484
4500
|
}
|
|
4485
4501
|
};
|
|
4486
4502
|
}
|
|
4487
|
-
function
|
|
4503
|
+
function Gt(e) {
|
|
4488
4504
|
let t;
|
|
4489
4505
|
return {
|
|
4490
4506
|
c() {
|
|
4491
|
-
t = S("div"),
|
|
4507
|
+
t = S("div"), x(t, "class", "ActiveImg");
|
|
4492
4508
|
},
|
|
4493
4509
|
m(r, n) {
|
|
4494
4510
|
B(r, t, n);
|
|
@@ -4498,7 +4514,7 @@ function kt(e) {
|
|
|
4498
4514
|
}
|
|
4499
4515
|
};
|
|
4500
4516
|
}
|
|
4501
|
-
function
|
|
4517
|
+
function Ft(e) {
|
|
4502
4518
|
let t, r = (
|
|
4503
4519
|
/*getGamesTotal*/
|
|
4504
4520
|
e[18](
|
|
@@ -4508,7 +4524,7 @@ function Gt(e) {
|
|
|
4508
4524
|
), n;
|
|
4509
4525
|
return {
|
|
4510
4526
|
c() {
|
|
4511
|
-
t = S("span"), n =
|
|
4527
|
+
t = S("span"), n = pe(r), x(t, "class", "categoryImgButtonCount");
|
|
4512
4528
|
},
|
|
4513
4529
|
m(i, o) {
|
|
4514
4530
|
B(i, t, o), H(t, n);
|
|
@@ -4519,25 +4535,25 @@ function Gt(e) {
|
|
|
4519
4535
|
i[18](
|
|
4520
4536
|
/*vendor*/
|
|
4521
4537
|
i[43]?.games.total
|
|
4522
|
-
) + "") &&
|
|
4538
|
+
) + "") && ut(n, r);
|
|
4523
4539
|
},
|
|
4524
4540
|
d(i) {
|
|
4525
4541
|
i && I(t);
|
|
4526
4542
|
}
|
|
4527
4543
|
};
|
|
4528
4544
|
}
|
|
4529
|
-
function
|
|
4545
|
+
function jt(e) {
|
|
4530
4546
|
let t, r = (
|
|
4531
4547
|
/*vendor*/
|
|
4532
4548
|
e[43].displayName + ""
|
|
4533
4549
|
), n, i, o = (
|
|
4534
4550
|
/*showvendorgames*/
|
|
4535
4551
|
e[3] !== "false" && /*vendor*/
|
|
4536
|
-
e[43]?.games.total &&
|
|
4552
|
+
e[43]?.games.total && Vt(e)
|
|
4537
4553
|
);
|
|
4538
4554
|
return {
|
|
4539
4555
|
c() {
|
|
4540
|
-
t = S("button"), n =
|
|
4556
|
+
t = S("button"), n = pe(r), i = F(), o && o.c(), x(
|
|
4541
4557
|
t,
|
|
4542
4558
|
"class",
|
|
4543
4559
|
/*getButtonClasses*/
|
|
@@ -4550,16 +4566,16 @@ function Ft(e) {
|
|
|
4550
4566
|
p(s, a) {
|
|
4551
4567
|
a[0] & /*vendors*/
|
|
4552
4568
|
64 && r !== (r = /*vendor*/
|
|
4553
|
-
s[43].displayName + "") &&
|
|
4569
|
+
s[43].displayName + "") && ut(n, r), /*showvendorgames*/
|
|
4554
4570
|
s[3] !== "false" && /*vendor*/
|
|
4555
|
-
s[43]?.games.total ? o ? o.p(s, a) : (o =
|
|
4571
|
+
s[43]?.games.total ? o ? o.p(s, a) : (o = Vt(s), o.c(), o.m(t, null)) : o && (o.d(1), o = null);
|
|
4556
4572
|
},
|
|
4557
4573
|
d(s) {
|
|
4558
4574
|
s && I(t), o && o.d();
|
|
4559
4575
|
}
|
|
4560
4576
|
};
|
|
4561
4577
|
}
|
|
4562
|
-
function
|
|
4578
|
+
function Vt(e) {
|
|
4563
4579
|
let t, r = (
|
|
4564
4580
|
/*getGamesTotal*/
|
|
4565
4581
|
e[18](
|
|
@@ -4569,7 +4585,7 @@ function jt(e) {
|
|
|
4569
4585
|
), n;
|
|
4570
4586
|
return {
|
|
4571
4587
|
c() {
|
|
4572
|
-
t = S("span"), n =
|
|
4588
|
+
t = S("span"), n = pe(r), x(t, "class", "CategoryButtonCount");
|
|
4573
4589
|
},
|
|
4574
4590
|
m(i, o) {
|
|
4575
4591
|
B(i, t, o), H(t, n);
|
|
@@ -4580,26 +4596,26 @@ function jt(e) {
|
|
|
4580
4596
|
i[18](
|
|
4581
4597
|
/*vendor*/
|
|
4582
4598
|
i[43]?.games.total
|
|
4583
|
-
) + "") &&
|
|
4599
|
+
) + "") && ut(n, r);
|
|
4584
4600
|
},
|
|
4585
4601
|
d(i) {
|
|
4586
4602
|
i && I(t);
|
|
4587
4603
|
}
|
|
4588
4604
|
};
|
|
4589
4605
|
}
|
|
4590
|
-
function
|
|
4591
|
-
let r, n, i, o, s, a,
|
|
4606
|
+
function Wt(e, t) {
|
|
4607
|
+
let r, n, i, o, s, a, u, l = (
|
|
4592
4608
|
/*showvendoricon*/
|
|
4593
|
-
t[1] !== "false" &&
|
|
4609
|
+
t[1] !== "false" && $t(t)
|
|
4594
4610
|
), h = (
|
|
4595
4611
|
/*showvendoricon*/
|
|
4596
4612
|
t[1] == "true" && /*showvendorgames*/
|
|
4597
4613
|
t[3] !== "false" && /*showvendorname*/
|
|
4598
4614
|
t[2] == "false" && /*vendor*/
|
|
4599
|
-
t[43]?.games?.total &&
|
|
4615
|
+
t[43]?.games?.total && Ft(t)
|
|
4600
4616
|
), c = (
|
|
4601
4617
|
/*showvendorname*/
|
|
4602
|
-
t[2] !== "false" &&
|
|
4618
|
+
t[2] !== "false" && jt(t)
|
|
4603
4619
|
);
|
|
4604
4620
|
function f(...m) {
|
|
4605
4621
|
return (
|
|
@@ -4617,7 +4633,7 @@ function Vt(e, t) {
|
|
|
4617
4633
|
key: e,
|
|
4618
4634
|
first: null,
|
|
4619
4635
|
c() {
|
|
4620
|
-
r = S("li"),
|
|
4636
|
+
r = S("li"), l && l.c(), n = F(), h && h.c(), i = F(), c && c.c(), o = F(), x(r, "class", s = "CarouselItem " + (String(
|
|
4621
4637
|
/*activevendor*/
|
|
4622
4638
|
t[0]
|
|
4623
4639
|
) == String(
|
|
@@ -4625,10 +4641,10 @@ function Vt(e, t) {
|
|
|
4625
4641
|
t[43].id
|
|
4626
4642
|
) ? "active" : "") + " SecondaryMenu"), this.first = r;
|
|
4627
4643
|
},
|
|
4628
|
-
m(m,
|
|
4629
|
-
B(m, r,
|
|
4630
|
-
|
|
4631
|
-
|
|
4644
|
+
m(m, d) {
|
|
4645
|
+
B(m, r, d), l && l.m(r, null), H(r, n), h && h.m(r, null), H(r, i), c && c.m(r, null), H(r, o), a || (u = [
|
|
4646
|
+
J(r, "click", f),
|
|
4647
|
+
J(r, "keydown", function() {
|
|
4632
4648
|
Te(
|
|
4633
4649
|
/*onCarouselItemKeydown*/
|
|
4634
4650
|
t[16](
|
|
@@ -4646,35 +4662,35 @@ function Vt(e, t) {
|
|
|
4646
4662
|
})
|
|
4647
4663
|
], a = !0);
|
|
4648
4664
|
},
|
|
4649
|
-
p(m,
|
|
4665
|
+
p(m, d) {
|
|
4650
4666
|
t = m, /*showvendoricon*/
|
|
4651
|
-
t[1] !== "false" ?
|
|
4667
|
+
t[1] !== "false" ? l ? l.p(t, d) : (l = $t(t), l.c(), l.m(r, n)) : l && (l.d(1), l = null), /*showvendoricon*/
|
|
4652
4668
|
t[1] == "true" && /*showvendorgames*/
|
|
4653
4669
|
t[3] !== "false" && /*showvendorname*/
|
|
4654
4670
|
t[2] == "false" && /*vendor*/
|
|
4655
|
-
t[43]?.games?.total ? h ? h.p(t,
|
|
4656
|
-
t[2] !== "false" ? c ? c.p(t,
|
|
4671
|
+
t[43]?.games?.total ? h ? h.p(t, d) : (h = Ft(t), h.c(), h.m(r, i)) : h && (h.d(1), h = null), /*showvendorname*/
|
|
4672
|
+
t[2] !== "false" ? c ? c.p(t, d) : (c = jt(t), c.c(), c.m(r, o)) : c && (c.d(1), c = null), d[0] & /*activevendor, vendors*/
|
|
4657
4673
|
65 && s !== (s = "CarouselItem " + (String(
|
|
4658
4674
|
/*activevendor*/
|
|
4659
4675
|
t[0]
|
|
4660
4676
|
) == String(
|
|
4661
4677
|
/*vendor*/
|
|
4662
4678
|
t[43].id
|
|
4663
|
-
) ? "active" : "") + " SecondaryMenu") &&
|
|
4679
|
+
) ? "active" : "") + " SecondaryMenu") && x(r, "class", s);
|
|
4664
4680
|
},
|
|
4665
4681
|
d(m) {
|
|
4666
|
-
m && I(r),
|
|
4682
|
+
m && I(r), l && l.d(), h && h.d(), c && c.d(), a = !1, X(u);
|
|
4667
4683
|
}
|
|
4668
4684
|
};
|
|
4669
4685
|
}
|
|
4670
|
-
function
|
|
4686
|
+
function Eo(e) {
|
|
4671
4687
|
let t;
|
|
4672
4688
|
function r(o, s) {
|
|
4673
4689
|
return (
|
|
4674
4690
|
/*isLoading*/
|
|
4675
|
-
o[5] ?
|
|
4691
|
+
o[5] ? yo : (
|
|
4676
4692
|
/*hasErrors*/
|
|
4677
|
-
o[7] ?
|
|
4693
|
+
o[7] ? vo : go
|
|
4678
4694
|
)
|
|
4679
4695
|
);
|
|
4680
4696
|
}
|
|
@@ -4696,121 +4712,121 @@ function xo(e) {
|
|
|
4696
4712
|
}
|
|
4697
4713
|
};
|
|
4698
4714
|
}
|
|
4699
|
-
function
|
|
4715
|
+
function wo(e, t, r) {
|
|
4700
4716
|
lo({ withLocale: "en", translations: {} });
|
|
4701
|
-
let { endpoint: n = "" } = t, { datasource: i = "" } = t, { lang: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { actionevent:
|
|
4717
|
+
let { endpoint: n = "" } = t, { datasource: i = "" } = t, { lang: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { actionevent: u = "defaultevent" } = t, { translationurl: l = "" } = t, { showvendoricon: h = "true" } = t, { showvendorname: c = "false" } = t, { showvendorgames: f = "false" } = t, { activevendor: m = "0" } = t, { mbsource: d } = t, b = window.navigator.userAgent, T = Rt(b) !== "PC", L = !0, P, A = [], O = !1, w, N, g;
|
|
4702
4718
|
const $ = () => {
|
|
4703
|
-
fetch(
|
|
4704
|
-
Object.keys(
|
|
4705
|
-
|
|
4719
|
+
fetch(l).then((_) => _.json()).then((_) => {
|
|
4720
|
+
Object.keys(_).forEach((U) => {
|
|
4721
|
+
ho(U, _[U]);
|
|
4706
4722
|
});
|
|
4707
|
-
}).catch((
|
|
4708
|
-
console.log(
|
|
4723
|
+
}).catch((_) => {
|
|
4724
|
+
console.log(_);
|
|
4709
4725
|
});
|
|
4710
4726
|
}, k = () => {
|
|
4711
|
-
|
|
4712
|
-
},
|
|
4713
|
-
if (!
|
|
4714
|
-
let
|
|
4715
|
-
|
|
4716
|
-
(
|
|
4717
|
-
let U =
|
|
4727
|
+
co(o);
|
|
4728
|
+
}, Z = () => (n || (P = "Endpoint is missing! Please provide a valid endpointURL.", r(7, O = !0), r(5, L = !1), console.error(P)), (!o || o.length < 2) && (P = "Language is missing! Please provide a valid language (alpha2code)", r(7, O = !0), r(5, L = !1), console.error(P)), O), Tr = () => {
|
|
4729
|
+
if (!Z()) {
|
|
4730
|
+
let p = new URL(`${n}/v1/casino/vendors`);
|
|
4731
|
+
p.searchParams.append("datasource", i), p.searchParams.append("language", o), p.searchParams.append("platform", Rt(b)), fetch(p).then((_) => _.json()).then(
|
|
4732
|
+
(_) => {
|
|
4733
|
+
let U = _.items.filter((Ne) => Ne.games.total > 0);
|
|
4718
4734
|
r(6, A = []), r(6, A = A.concat(U)), r(5, L = !1);
|
|
4719
4735
|
},
|
|
4720
|
-
(
|
|
4721
|
-
r(7,
|
|
4736
|
+
(_) => {
|
|
4737
|
+
r(7, O = !0), console.error("There was an error while fetching the vendors", _);
|
|
4722
4738
|
}
|
|
4723
|
-
).catch((
|
|
4724
|
-
r(7,
|
|
4739
|
+
).catch((_) => {
|
|
4740
|
+
r(7, O = !0), console.error("There was an error while fetching the vendors", _);
|
|
4725
4741
|
});
|
|
4726
4742
|
}
|
|
4727
4743
|
};
|
|
4728
4744
|
Xr(() => ("ontouchstart" in document.documentElement && (document.documentElement.className += " touch-device"), setTimeout(
|
|
4729
4745
|
() => {
|
|
4730
|
-
g && g.addEventListener("scroll",
|
|
4746
|
+
g && g.addEventListener("scroll", Le);
|
|
4731
4747
|
},
|
|
4732
4748
|
500
|
|
4733
4749
|
), () => {
|
|
4734
|
-
N.removeEventListener("scroll",
|
|
4750
|
+
N.removeEventListener("scroll", Le);
|
|
4735
4751
|
}));
|
|
4736
|
-
let Me = (
|
|
4737
|
-
|
|
4752
|
+
let Me = (p, _) => {
|
|
4753
|
+
Le(), r(0, m = p.id), window.postMessage(
|
|
4738
4754
|
{
|
|
4739
|
-
type:
|
|
4740
|
-
itemId:
|
|
4741
|
-
index:
|
|
4742
|
-
item:
|
|
4743
|
-
path:
|
|
4744
|
-
externalLink:
|
|
4745
|
-
target:
|
|
4755
|
+
type: u,
|
|
4756
|
+
itemId: p.id,
|
|
4757
|
+
index: _,
|
|
4758
|
+
item: p,
|
|
4759
|
+
path: p.path,
|
|
4760
|
+
externalLink: p.externalLink || !1,
|
|
4761
|
+
target: p.attrs?.target || null
|
|
4746
4762
|
},
|
|
4747
4763
|
window.location.href
|
|
4748
4764
|
);
|
|
4749
|
-
},
|
|
4750
|
-
const
|
|
4751
|
-
if (
|
|
4752
|
-
const
|
|
4765
|
+
}, ct = () => {
|
|
4766
|
+
const p = g.scrollLeft;
|
|
4767
|
+
if (p > 0) {
|
|
4768
|
+
const _ = Math.min(250, p);
|
|
4753
4769
|
g.scrollBy({
|
|
4754
|
-
left: -
|
|
4770
|
+
left: -_,
|
|
4755
4771
|
behavior: "smooth"
|
|
4756
4772
|
});
|
|
4757
4773
|
}
|
|
4758
|
-
},
|
|
4759
|
-
const
|
|
4760
|
-
if (
|
|
4761
|
-
const
|
|
4774
|
+
}, ft = () => {
|
|
4775
|
+
const p = g.scrollLeft, _ = g.scrollWidth, U = g.clientWidth;
|
|
4776
|
+
if (p + U < _) {
|
|
4777
|
+
const Ne = _ - (p + U), Ur = Math.min(250, Ne);
|
|
4762
4778
|
g.scrollBy({ left: Ur, behavior: "smooth" });
|
|
4763
4779
|
}
|
|
4764
4780
|
};
|
|
4765
|
-
const
|
|
4766
|
-
const
|
|
4781
|
+
const Le = () => {
|
|
4782
|
+
const p = N.querySelectorAll(".DropDown");
|
|
4767
4783
|
document.activeElement.blur(), g.classList.add("isScrolling");
|
|
4768
|
-
for (let
|
|
4769
|
-
|
|
4784
|
+
for (let _ = 0; _ < p.length; _++)
|
|
4785
|
+
p[_].style.transform = "translateX(-" + g.scrollLeft + "px)";
|
|
4770
4786
|
g.classList.remove("isScrolling");
|
|
4771
|
-
}, Hr = (
|
|
4772
|
-
(
|
|
4773
|
-
}, Ar = (
|
|
4774
|
-
(
|
|
4775
|
-
}, Ir = (
|
|
4776
|
-
(U.key === "Enter" || U.key === " ") && (Me(
|
|
4787
|
+
}, Hr = (p) => {
|
|
4788
|
+
(p.key === "Enter" || p.key === " ") && (ft(), p.preventDefault());
|
|
4789
|
+
}, Ar = (p) => {
|
|
4790
|
+
(p.key === "Enter" || p.key === " ") && (ct(), p.preventDefault());
|
|
4791
|
+
}, Ir = (p, _) => (U) => {
|
|
4792
|
+
(U.key === "Enter" || U.key === " ") && (Me(p, _), U.preventDefault());
|
|
4777
4793
|
}, Br = () => {
|
|
4778
4794
|
if (T && c === "true" && h === "false")
|
|
4779
4795
|
return "MobileCategoryButton";
|
|
4780
|
-
}, Pr = (
|
|
4781
|
-
Me(
|
|
4796
|
+
}, Pr = (p) => p > 1e3 ? "999+" : p, Or = (p, _, U) => {
|
|
4797
|
+
Me(p, _), U.preventDefault();
|
|
4782
4798
|
};
|
|
4783
|
-
function
|
|
4784
|
-
|
|
4785
|
-
N =
|
|
4799
|
+
function Mr(p) {
|
|
4800
|
+
K[p ? "unshift" : "push"](() => {
|
|
4801
|
+
N = p, r(8, N);
|
|
4786
4802
|
});
|
|
4787
4803
|
}
|
|
4788
|
-
function Lr(
|
|
4789
|
-
|
|
4790
|
-
g =
|
|
4804
|
+
function Lr(p) {
|
|
4805
|
+
K[p ? "unshift" : "push"](() => {
|
|
4806
|
+
g = p, r(9, g);
|
|
4791
4807
|
});
|
|
4792
4808
|
}
|
|
4793
|
-
function Nr(
|
|
4794
|
-
|
|
4795
|
-
w =
|
|
4809
|
+
function Nr(p) {
|
|
4810
|
+
K[p ? "unshift" : "push"](() => {
|
|
4811
|
+
w = p, r(4, w);
|
|
4796
4812
|
});
|
|
4797
4813
|
}
|
|
4798
|
-
function Rr(
|
|
4799
|
-
|
|
4800
|
-
w =
|
|
4814
|
+
function Rr(p) {
|
|
4815
|
+
K[p ? "unshift" : "push"](() => {
|
|
4816
|
+
w = p, r(4, w);
|
|
4801
4817
|
});
|
|
4802
4818
|
}
|
|
4803
|
-
return e.$$set = (
|
|
4804
|
-
"endpoint" in
|
|
4819
|
+
return e.$$set = (p) => {
|
|
4820
|
+
"endpoint" in p && r(19, n = p.endpoint), "datasource" in p && r(20, i = p.datasource), "lang" in p && r(21, o = p.lang), "clientstyling" in p && r(22, s = p.clientstyling), "clientstylingurl" in p && r(23, a = p.clientstylingurl), "actionevent" in p && r(24, u = p.actionevent), "translationurl" in p && r(25, l = p.translationurl), "showvendoricon" in p && r(1, h = p.showvendoricon), "showvendorname" in p && r(2, c = p.showvendorname), "showvendorgames" in p && r(3, f = p.showvendorgames), "activevendor" in p && r(0, m = p.activevendor), "mbsource" in p && r(26, d = p.mbsource);
|
|
4805
4821
|
}, e.$$.update = () => {
|
|
4806
4822
|
e.$$.dirty[0] & /*endpoint, lang*/
|
|
4807
4823
|
2621440 && n && o && Tr(), e.$$.dirty[0] & /*translationurl*/
|
|
4808
|
-
33554432 &&
|
|
4824
|
+
33554432 && l && $(), e.$$.dirty[0] & /*activevendor*/
|
|
4809
4825
|
1, e.$$.dirty[0] & /*lang*/
|
|
4810
4826
|
2097152 && o && k(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4811
|
-
4194320 && s && w &&
|
|
4812
|
-
8388624 && a && w &&
|
|
4813
|
-
67108880 &&
|
|
4827
|
+
4194320 && s && w && fo(w, s), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4828
|
+
8388624 && a && w && po(w, a), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4829
|
+
67108880 && d && w && mo(w, `${d}.Style`);
|
|
4814
4830
|
}, [
|
|
4815
4831
|
m,
|
|
4816
4832
|
h,
|
|
@@ -4819,13 +4835,13 @@ function Eo(e, t, r) {
|
|
|
4819
4835
|
w,
|
|
4820
4836
|
L,
|
|
4821
4837
|
A,
|
|
4822
|
-
|
|
4838
|
+
O,
|
|
4823
4839
|
N,
|
|
4824
4840
|
g,
|
|
4825
4841
|
T,
|
|
4826
4842
|
Me,
|
|
4827
|
-
ht,
|
|
4828
4843
|
ct,
|
|
4844
|
+
ft,
|
|
4829
4845
|
Hr,
|
|
4830
4846
|
Ar,
|
|
4831
4847
|
Ir,
|
|
@@ -4836,24 +4852,24 @@ function Eo(e, t, r) {
|
|
|
4836
4852
|
o,
|
|
4837
4853
|
s,
|
|
4838
4854
|
a,
|
|
4839
|
-
l,
|
|
4840
4855
|
u,
|
|
4841
|
-
|
|
4842
|
-
|
|
4856
|
+
l,
|
|
4857
|
+
d,
|
|
4843
4858
|
Or,
|
|
4859
|
+
Mr,
|
|
4844
4860
|
Lr,
|
|
4845
4861
|
Nr,
|
|
4846
4862
|
Rr
|
|
4847
4863
|
];
|
|
4848
4864
|
}
|
|
4849
|
-
class
|
|
4865
|
+
class Co extends sn {
|
|
4850
4866
|
constructor(t) {
|
|
4851
4867
|
super(), nn(
|
|
4852
4868
|
this,
|
|
4853
4869
|
t,
|
|
4870
|
+
wo,
|
|
4854
4871
|
Eo,
|
|
4855
|
-
|
|
4856
|
-
Xt,
|
|
4872
|
+
zt,
|
|
4857
4873
|
{
|
|
4858
4874
|
endpoint: 19,
|
|
4859
4875
|
datasource: 20,
|
|
@@ -4868,7 +4884,7 @@ class wo extends sn {
|
|
|
4868
4884
|
activevendor: 0,
|
|
4869
4885
|
mbsource: 26
|
|
4870
4886
|
},
|
|
4871
|
-
|
|
4887
|
+
bo,
|
|
4872
4888
|
[-1, -1]
|
|
4873
4889
|
);
|
|
4874
4890
|
}
|
|
@@ -4945,7 +4961,7 @@ class wo extends sn {
|
|
|
4945
4961
|
this.$$set({ mbsource: t }), R();
|
|
4946
4962
|
}
|
|
4947
4963
|
}
|
|
4948
|
-
on(
|
|
4964
|
+
on(Co, { endpoint: {}, datasource: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, actionevent: {}, translationurl: {}, showvendoricon: {}, showvendorname: {}, showvendorgames: {}, activevendor: {}, mbsource: {} }, [], [], !0);
|
|
4949
4965
|
export {
|
|
4950
|
-
|
|
4966
|
+
Co as C
|
|
4951
4967
|
};
|