@everymatrix/casino-betslip-indicator 1.76.8 → 1.76.9
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/{CasinoBetslipIndicator-DEq6VxYA.js → CasinoBetslipIndicator-BUP9qpWA.js} +350 -343
- package/components/{CasinoBetslipIndicator-Cu-9zNiq.cjs → CasinoBetslipIndicator-Bdsfkyjn.cjs} +5 -5
- package/components/{CasinoBetslipIndicator-PvAVLccj.js → CasinoBetslipIndicator-C0Ki2HhZ.js} +364 -356
- package/es2015/casino-betslip-indicator.cjs +1 -1
- package/es2015/casino-betslip-indicator.js +1 -1
- package/esnext/casino-betslip-indicator.js +1 -1
- package/package.json +1 -1
package/components/{CasinoBetslipIndicator-PvAVLccj.js → CasinoBetslipIndicator-C0Ki2HhZ.js}
RENAMED
|
@@ -10,7 +10,7 @@ var xe = (e, t, r) => t in e ? ir(e, t, { enumerable: !0, configurable: !0, writ
|
|
|
10
10
|
ur.call(t, r) && xe(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
12
|
}, et = (e, t) => or(e, sr(t));
|
|
13
|
-
var
|
|
13
|
+
var H = (e, t, r) => (xe(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var tt = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (h) => {
|
|
16
16
|
try {
|
|
@@ -27,7 +27,7 @@ var tt = (e, t, r) => new Promise((n, i) => {
|
|
|
27
27
|
}, a = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(o, s);
|
|
28
28
|
a((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function T() {
|
|
31
31
|
}
|
|
32
32
|
function Ht(e) {
|
|
33
33
|
return e();
|
|
@@ -51,12 +51,12 @@ function lr(e, ...t) {
|
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const n of t)
|
|
53
53
|
n(void 0);
|
|
54
|
-
return
|
|
54
|
+
return T;
|
|
55
55
|
}
|
|
56
56
|
const r = e.subscribe(...t);
|
|
57
57
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function A(e, t) {
|
|
60
60
|
e.appendChild(t);
|
|
61
61
|
}
|
|
62
62
|
function cr(e, t, r) {
|
|
@@ -77,7 +77,7 @@ function fr(e) {
|
|
|
77
77
|
) : e.ownerDocument;
|
|
78
78
|
}
|
|
79
79
|
function mr(e, t) {
|
|
80
|
-
return
|
|
80
|
+
return A(
|
|
81
81
|
/** @type {Document} */
|
|
82
82
|
e.head || e,
|
|
83
83
|
t
|
|
@@ -86,13 +86,13 @@ function mr(e, t) {
|
|
|
86
86
|
function te(e, t, r) {
|
|
87
87
|
e.insertBefore(t, r || null);
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function X(e) {
|
|
90
90
|
e.parentNode && e.parentNode.removeChild(e);
|
|
91
91
|
}
|
|
92
92
|
function D(e) {
|
|
93
93
|
return document.createElement(e);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function L(e) {
|
|
96
96
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
97
97
|
}
|
|
98
98
|
function Bt(e) {
|
|
@@ -104,7 +104,7 @@ function pr() {
|
|
|
104
104
|
function dr(e, t, r, n) {
|
|
105
105
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function E(e, t, r) {
|
|
108
108
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
109
109
|
}
|
|
110
110
|
function br(e) {
|
|
@@ -138,15 +138,15 @@ function _r() {
|
|
|
138
138
|
function xr(e) {
|
|
139
139
|
_r().$$.on_mount.push(e);
|
|
140
140
|
}
|
|
141
|
-
const
|
|
142
|
-
let
|
|
141
|
+
const U = [], Oe = [];
|
|
142
|
+
let F = [];
|
|
143
143
|
const nt = [], Er = /* @__PURE__ */ Promise.resolve();
|
|
144
144
|
let Ie = !1;
|
|
145
145
|
function Sr() {
|
|
146
146
|
Ie || (Ie = !0, Er.then(J));
|
|
147
147
|
}
|
|
148
148
|
function Ne(e) {
|
|
149
|
-
|
|
149
|
+
F.push(e);
|
|
150
150
|
}
|
|
151
151
|
const Ee = /* @__PURE__ */ new Set();
|
|
152
152
|
let $ = 0;
|
|
@@ -156,21 +156,21 @@ function J() {
|
|
|
156
156
|
const e = Y;
|
|
157
157
|
do {
|
|
158
158
|
try {
|
|
159
|
-
for (; $ <
|
|
160
|
-
const t =
|
|
159
|
+
for (; $ < U.length; ) {
|
|
160
|
+
const t = U[$];
|
|
161
161
|
$++, Q(t), wr(t.$$);
|
|
162
162
|
}
|
|
163
163
|
} catch (t) {
|
|
164
|
-
throw
|
|
164
|
+
throw U.length = 0, $ = 0, t;
|
|
165
165
|
}
|
|
166
|
-
for (Q(null),
|
|
166
|
+
for (Q(null), U.length = 0, $ = 0; Oe.length; )
|
|
167
167
|
Oe.pop()();
|
|
168
|
-
for (let t = 0; t <
|
|
169
|
-
const r =
|
|
168
|
+
for (let t = 0; t < F.length; t += 1) {
|
|
169
|
+
const r = F[t];
|
|
170
170
|
Ee.has(r) || (Ee.add(r), r());
|
|
171
171
|
}
|
|
172
|
-
|
|
173
|
-
} while (
|
|
172
|
+
F.length = 0;
|
|
173
|
+
} while (U.length);
|
|
174
174
|
for (; nt.length; )
|
|
175
175
|
nt.pop()();
|
|
176
176
|
Ie = !1, Ee.clear(), Q(e);
|
|
@@ -184,7 +184,7 @@ function wr(e) {
|
|
|
184
184
|
}
|
|
185
185
|
function Hr(e) {
|
|
186
186
|
const t = [], r = [];
|
|
187
|
-
|
|
187
|
+
F.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), F = t;
|
|
188
188
|
}
|
|
189
189
|
const Tr = /* @__PURE__ */ new Set();
|
|
190
190
|
function Br(e, t) {
|
|
@@ -202,7 +202,7 @@ function Pr(e, t) {
|
|
|
202
202
|
r.fragment !== null && (Hr(r.after_update), ee(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
203
203
|
}
|
|
204
204
|
function Or(e, t) {
|
|
205
|
-
e.$$.dirty[0] === -1 && (
|
|
205
|
+
e.$$.dirty[0] === -1 && (U.push(e), Sr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
206
206
|
}
|
|
207
207
|
function Ir(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
208
208
|
const h = Y;
|
|
@@ -212,7 +212,7 @@ function Ir(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
212
212
|
ctx: [],
|
|
213
213
|
// state
|
|
214
214
|
props: o,
|
|
215
|
-
update:
|
|
215
|
+
update: T,
|
|
216
216
|
not_equal: i,
|
|
217
217
|
bound: rt(),
|
|
218
218
|
// lifecycle
|
|
@@ -230,13 +230,13 @@ function Ir(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
230
230
|
};
|
|
231
231
|
s && s(u.root);
|
|
232
232
|
let l = !1;
|
|
233
|
-
if (u.ctx = r ? r(e, t.props || {}, (
|
|
234
|
-
const
|
|
235
|
-
return u.ctx && i(u.ctx[
|
|
233
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
234
|
+
const y = p.length ? p[0] : f;
|
|
235
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), l && Or(e, c)), f;
|
|
236
236
|
}) : [], u.update(), l = !0, ee(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
237
237
|
if (t.hydrate) {
|
|
238
|
-
const
|
|
239
|
-
u.fragment && u.fragment.l(
|
|
238
|
+
const c = br(t.target);
|
|
239
|
+
u.fragment && u.fragment.l(c), c.forEach(X);
|
|
240
240
|
} else
|
|
241
241
|
u.fragment && u.fragment.c();
|
|
242
242
|
t.intro && Br(e.$$.fragment), Ar(e, t.target, t.anchor), J();
|
|
@@ -248,23 +248,23 @@ typeof HTMLElement == "function" && (At = class extends HTMLElement {
|
|
|
248
248
|
constructor(t, r, n) {
|
|
249
249
|
super();
|
|
250
250
|
/** The Svelte component constructor */
|
|
251
|
-
|
|
251
|
+
H(this, "$$ctor");
|
|
252
252
|
/** Slots */
|
|
253
|
-
|
|
253
|
+
H(this, "$$s");
|
|
254
254
|
/** The Svelte component instance */
|
|
255
|
-
|
|
255
|
+
H(this, "$$c");
|
|
256
256
|
/** Whether or not the custom element is connected */
|
|
257
|
-
|
|
257
|
+
H(this, "$$cn", !1);
|
|
258
258
|
/** Component props data */
|
|
259
|
-
|
|
259
|
+
H(this, "$$d", {});
|
|
260
260
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
261
|
-
|
|
261
|
+
H(this, "$$r", !1);
|
|
262
262
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
263
|
-
|
|
263
|
+
H(this, "$$p_d", {});
|
|
264
264
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
265
|
-
|
|
265
|
+
H(this, "$$l", {});
|
|
266
266
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
267
|
-
|
|
267
|
+
H(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
268
268
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
269
269
|
}
|
|
270
270
|
addEventListener(t, r, n) {
|
|
@@ -288,7 +288,7 @@ typeof HTMLElement == "function" && (At = class extends HTMLElement {
|
|
|
288
288
|
let s;
|
|
289
289
|
return {
|
|
290
290
|
c: function() {
|
|
291
|
-
s = D("slot"), o !== "default" &&
|
|
291
|
+
s = D("slot"), o !== "default" && E(s, "name", o);
|
|
292
292
|
},
|
|
293
293
|
/**
|
|
294
294
|
* @param {HTMLElement} target
|
|
@@ -298,7 +298,7 @@ typeof HTMLElement == "function" && (At = class extends HTMLElement {
|
|
|
298
298
|
te(u, s, l);
|
|
299
299
|
},
|
|
300
300
|
d: function(u) {
|
|
301
|
-
u &&
|
|
301
|
+
u && X(s);
|
|
302
302
|
}
|
|
303
303
|
};
|
|
304
304
|
};
|
|
@@ -434,7 +434,7 @@ class Cr {
|
|
|
434
434
|
*
|
|
435
435
|
* @type {any}
|
|
436
436
|
*/
|
|
437
|
-
|
|
437
|
+
H(this, "$$");
|
|
438
438
|
/**
|
|
439
439
|
* ### PRIVATE API
|
|
440
440
|
*
|
|
@@ -442,11 +442,11 @@ class Cr {
|
|
|
442
442
|
*
|
|
443
443
|
* @type {any}
|
|
444
444
|
*/
|
|
445
|
-
|
|
445
|
+
H(this, "$$set");
|
|
446
446
|
}
|
|
447
447
|
/** @returns {void} */
|
|
448
448
|
$destroy() {
|
|
449
|
-
Pr(this, 1), this.$destroy =
|
|
449
|
+
Pr(this, 1), this.$destroy = T;
|
|
450
450
|
}
|
|
451
451
|
/**
|
|
452
452
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -456,7 +456,7 @@ class Cr {
|
|
|
456
456
|
*/
|
|
457
457
|
$on(t, r) {
|
|
458
458
|
if (!Ze(r))
|
|
459
|
-
return
|
|
459
|
+
return T;
|
|
460
460
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
461
461
|
return n.push(r), () => {
|
|
462
462
|
const i = n.indexOf(r);
|
|
@@ -516,7 +516,7 @@ function Le(e) {
|
|
|
516
516
|
};
|
|
517
517
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function Me(e, t) {
|
|
520
520
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
521
521
|
if (!r)
|
|
522
522
|
return e;
|
|
@@ -536,13 +536,13 @@ function $e(e, t) {
|
|
|
536
536
|
}
|
|
537
537
|
return o;
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function $e(e, t, r) {
|
|
540
540
|
if (arguments.length === 2)
|
|
541
541
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
542
542
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
543
543
|
return e.concat(o || t);
|
|
544
544
|
}
|
|
545
|
-
function
|
|
545
|
+
function I(e) {
|
|
546
546
|
return typeof e == "function";
|
|
547
547
|
}
|
|
548
548
|
function Pt(e) {
|
|
@@ -595,29 +595,29 @@ var de = function() {
|
|
|
595
595
|
else
|
|
596
596
|
s.remove(this);
|
|
597
597
|
var l = this.initialTeardown;
|
|
598
|
-
if (
|
|
598
|
+
if (I(l))
|
|
599
599
|
try {
|
|
600
600
|
l();
|
|
601
601
|
} catch (m) {
|
|
602
602
|
o = m instanceof Se ? m.errors : [m];
|
|
603
603
|
}
|
|
604
|
-
var
|
|
605
|
-
if (
|
|
604
|
+
var c = this._finalizers;
|
|
605
|
+
if (c) {
|
|
606
606
|
this._finalizers = null;
|
|
607
607
|
try {
|
|
608
|
-
for (var
|
|
609
|
-
var
|
|
608
|
+
for (var f = Le(c), p = f.next(); !p.done; p = f.next()) {
|
|
609
|
+
var y = p.value;
|
|
610
610
|
try {
|
|
611
|
-
it(
|
|
611
|
+
it(y);
|
|
612
612
|
} catch (m) {
|
|
613
|
-
o = o != null ? o : [], m instanceof Se ? o =
|
|
613
|
+
o = o != null ? o : [], m instanceof Se ? o = $e($e([], Me(o)), Me(m.errors)) : o.push(m);
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
616
|
} catch (m) {
|
|
617
617
|
n = { error: m };
|
|
618
618
|
} finally {
|
|
619
619
|
try {
|
|
620
|
-
p && !p.done && (i =
|
|
620
|
+
p && !p.done && (i = f.return) && i.call(f);
|
|
621
621
|
} finally {
|
|
622
622
|
if (n)
|
|
623
623
|
throw n.error;
|
|
@@ -658,18 +658,18 @@ var de = function() {
|
|
|
658
658
|
}(), e;
|
|
659
659
|
}(), Ot = de.EMPTY;
|
|
660
660
|
function It(e) {
|
|
661
|
-
return e instanceof de || e && "closed" in e &&
|
|
661
|
+
return e instanceof de || e && "closed" in e && I(e.remove) && I(e.add) && I(e.unsubscribe);
|
|
662
662
|
}
|
|
663
663
|
function it(e) {
|
|
664
|
-
|
|
664
|
+
I(e) ? e() : e.unsubscribe();
|
|
665
665
|
}
|
|
666
|
-
var
|
|
666
|
+
var Mr = {
|
|
667
667
|
Promise: void 0
|
|
668
|
-
},
|
|
668
|
+
}, $r = {
|
|
669
669
|
setTimeout: function(e, t) {
|
|
670
670
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
671
671
|
r[n - 2] = arguments[n];
|
|
672
|
-
return setTimeout.apply(void 0,
|
|
672
|
+
return setTimeout.apply(void 0, $e([e, t], Me(r)));
|
|
673
673
|
},
|
|
674
674
|
clearTimeout: function(e) {
|
|
675
675
|
return clearTimeout(e);
|
|
@@ -677,7 +677,7 @@ var $r = {
|
|
|
677
677
|
delegate: void 0
|
|
678
678
|
};
|
|
679
679
|
function Rr(e) {
|
|
680
|
-
|
|
680
|
+
$r.setTimeout(function() {
|
|
681
681
|
throw e;
|
|
682
682
|
});
|
|
683
683
|
}
|
|
@@ -690,7 +690,7 @@ var Nt = function(e) {
|
|
|
690
690
|
re(t, e);
|
|
691
691
|
function t(r) {
|
|
692
692
|
var n = e.call(this) || this;
|
|
693
|
-
return n.isStopped = !1, r ? (n.destination = r, It(r) && r.add(n)) : n.destination =
|
|
693
|
+
return n.isStopped = !1, r ? (n.destination = r, It(r) && r.add(n)) : n.destination = Dr, n;
|
|
694
694
|
}
|
|
695
695
|
return t.create = function(r, n, i) {
|
|
696
696
|
return new Ue(r, n, i);
|
|
@@ -752,7 +752,7 @@ var Nt = function(e) {
|
|
|
752
752
|
re(t, e);
|
|
753
753
|
function t(r, n, i) {
|
|
754
754
|
var o = e.call(this) || this, s;
|
|
755
|
-
return
|
|
755
|
+
return I(r) || !r ? s = {
|
|
756
756
|
next: r != null ? r : void 0,
|
|
757
757
|
error: n != null ? n : void 0,
|
|
758
758
|
complete: i != null ? i : void 0
|
|
@@ -763,13 +763,13 @@ var Nt = function(e) {
|
|
|
763
763
|
function se(e) {
|
|
764
764
|
Rr(e);
|
|
765
765
|
}
|
|
766
|
-
function
|
|
766
|
+
function Fr(e) {
|
|
767
767
|
throw e;
|
|
768
768
|
}
|
|
769
|
-
var
|
|
769
|
+
var Dr = {
|
|
770
770
|
closed: !0,
|
|
771
771
|
next: ot,
|
|
772
|
-
error:
|
|
772
|
+
error: Fr,
|
|
773
773
|
complete: ot
|
|
774
774
|
}, Gr = function() {
|
|
775
775
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
@@ -846,10 +846,10 @@ var st = function() {
|
|
|
846
846
|
}();
|
|
847
847
|
function at(e) {
|
|
848
848
|
var t;
|
|
849
|
-
return (t = e != null ? e :
|
|
849
|
+
return (t = e != null ? e : Mr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
850
850
|
}
|
|
851
851
|
function Vr(e) {
|
|
852
|
-
return e &&
|
|
852
|
+
return e && I(e.next) && I(e.error) && I(e.complete);
|
|
853
853
|
}
|
|
854
854
|
function Xr(e) {
|
|
855
855
|
return e && e instanceof Nt || Vr(e) && It(e);
|
|
@@ -992,39 +992,39 @@ const ht = [], lt = {}, Zr = (e, t = 0) => {
|
|
|
992
992
|
lt[e] = r, ht.push(e);
|
|
993
993
|
}
|
|
994
994
|
return lt[e];
|
|
995
|
-
},
|
|
995
|
+
}, R = [];
|
|
996
996
|
function Qr(e, t) {
|
|
997
997
|
return {
|
|
998
998
|
subscribe: be(e, t).subscribe
|
|
999
999
|
};
|
|
1000
1000
|
}
|
|
1001
|
-
function be(e, t =
|
|
1001
|
+
function be(e, t = T) {
|
|
1002
1002
|
let r;
|
|
1003
1003
|
const n = /* @__PURE__ */ new Set();
|
|
1004
1004
|
function i(a) {
|
|
1005
1005
|
if (Tt(e, a) && (e = a, r)) {
|
|
1006
|
-
const h = !
|
|
1006
|
+
const h = !R.length;
|
|
1007
1007
|
for (const u of n)
|
|
1008
|
-
u[1](),
|
|
1008
|
+
u[1](), R.push(u, e);
|
|
1009
1009
|
if (h) {
|
|
1010
|
-
for (let u = 0; u <
|
|
1011
|
-
|
|
1012
|
-
|
|
1010
|
+
for (let u = 0; u < R.length; u += 2)
|
|
1011
|
+
R[u][0](R[u + 1]);
|
|
1012
|
+
R.length = 0;
|
|
1013
1013
|
}
|
|
1014
1014
|
}
|
|
1015
1015
|
}
|
|
1016
1016
|
function o(a) {
|
|
1017
1017
|
i(a(e));
|
|
1018
1018
|
}
|
|
1019
|
-
function s(a, h =
|
|
1019
|
+
function s(a, h = T) {
|
|
1020
1020
|
const u = [a, h];
|
|
1021
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
1021
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || T), a(e), () => {
|
|
1022
1022
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1023
1023
|
};
|
|
1024
1024
|
}
|
|
1025
1025
|
return { set: i, update: o, subscribe: s };
|
|
1026
1026
|
}
|
|
1027
|
-
function
|
|
1027
|
+
function W(e, t, r) {
|
|
1028
1028
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1029
1029
|
if (!i.every(Boolean))
|
|
1030
1030
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -1032,26 +1032,26 @@ function X(e, t, r) {
|
|
|
1032
1032
|
return Qr(r, (s, a) => {
|
|
1033
1033
|
let h = !1;
|
|
1034
1034
|
const u = [];
|
|
1035
|
-
let l = 0,
|
|
1036
|
-
const
|
|
1035
|
+
let l = 0, c = T;
|
|
1036
|
+
const f = () => {
|
|
1037
1037
|
if (l)
|
|
1038
1038
|
return;
|
|
1039
|
-
|
|
1040
|
-
const
|
|
1041
|
-
o ? s(
|
|
1039
|
+
c();
|
|
1040
|
+
const y = t(n ? u[0] : u, s, a);
|
|
1041
|
+
o ? s(y) : c = Ze(y) ? y : T;
|
|
1042
1042
|
}, p = i.map(
|
|
1043
|
-
(
|
|
1044
|
-
|
|
1045
|
-
(
|
|
1046
|
-
u[m] =
|
|
1043
|
+
(y, m) => lr(
|
|
1044
|
+
y,
|
|
1045
|
+
(x) => {
|
|
1046
|
+
u[m] = x, l &= ~(1 << m), h && f();
|
|
1047
1047
|
},
|
|
1048
1048
|
() => {
|
|
1049
1049
|
l |= 1 << m;
|
|
1050
1050
|
}
|
|
1051
1051
|
)
|
|
1052
1052
|
);
|
|
1053
|
-
return h = !0,
|
|
1054
|
-
ee(p),
|
|
1053
|
+
return h = !0, f(), function() {
|
|
1054
|
+
ee(p), c(), h = !1;
|
|
1055
1055
|
};
|
|
1056
1056
|
});
|
|
1057
1057
|
}
|
|
@@ -1076,7 +1076,7 @@ function nn(e) {
|
|
|
1076
1076
|
return Array.isArray(e) ? [] : {};
|
|
1077
1077
|
}
|
|
1078
1078
|
function q(e, t) {
|
|
1079
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1079
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? G(nn(e), e, t) : e;
|
|
1080
1080
|
}
|
|
1081
1081
|
function on(e, t, r) {
|
|
1082
1082
|
return e.concat(t).map(function(n) {
|
|
@@ -1085,9 +1085,9 @@ function on(e, t, r) {
|
|
|
1085
1085
|
}
|
|
1086
1086
|
function sn(e, t) {
|
|
1087
1087
|
if (!t.customMerge)
|
|
1088
|
-
return
|
|
1088
|
+
return G;
|
|
1089
1089
|
var r = t.customMerge(e);
|
|
1090
|
-
return typeof r == "function" ? r :
|
|
1090
|
+
return typeof r == "function" ? r : G;
|
|
1091
1091
|
}
|
|
1092
1092
|
function an(e) {
|
|
1093
1093
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -1097,7 +1097,7 @@ function an(e) {
|
|
|
1097
1097
|
function ct(e) {
|
|
1098
1098
|
return Object.keys(e).concat(an(e));
|
|
1099
1099
|
}
|
|
1100
|
-
function
|
|
1100
|
+
function Mt(e, t) {
|
|
1101
1101
|
try {
|
|
1102
1102
|
return t in e;
|
|
1103
1103
|
} catch (r) {
|
|
@@ -1105,56 +1105,56 @@ function $t(e, t) {
|
|
|
1105
1105
|
}
|
|
1106
1106
|
}
|
|
1107
1107
|
function un(e, t) {
|
|
1108
|
-
return
|
|
1108
|
+
return Mt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1109
1109
|
}
|
|
1110
1110
|
function hn(e, t, r) {
|
|
1111
1111
|
var n = {};
|
|
1112
1112
|
return r.isMergeableObject(e) && ct(e).forEach(function(i) {
|
|
1113
1113
|
n[i] = q(e[i], r);
|
|
1114
1114
|
}), ct(t).forEach(function(i) {
|
|
1115
|
-
un(e, i) || (
|
|
1115
|
+
un(e, i) || (Mt(e, i) && r.isMergeableObject(t[i]) ? n[i] = sn(i, r)(e[i], t[i], r) : n[i] = q(t[i], r));
|
|
1116
1116
|
}), n;
|
|
1117
1117
|
}
|
|
1118
|
-
function
|
|
1118
|
+
function G(e, t, r) {
|
|
1119
1119
|
r = r || {}, r.arrayMerge = r.arrayMerge || on, r.isMergeableObject = r.isMergeableObject || Yr, r.cloneUnlessOtherwiseSpecified = q;
|
|
1120
1120
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1121
1121
|
return o ? n ? r.arrayMerge(e, t, r) : hn(e, t, r) : q(t, r);
|
|
1122
1122
|
}
|
|
1123
|
-
|
|
1123
|
+
G.all = function(t, r) {
|
|
1124
1124
|
if (!Array.isArray(t))
|
|
1125
1125
|
throw new Error("first argument should be an array");
|
|
1126
1126
|
return t.reduce(function(n, i) {
|
|
1127
|
-
return
|
|
1127
|
+
return G(n, i, r);
|
|
1128
1128
|
}, {});
|
|
1129
1129
|
};
|
|
1130
|
-
var ln =
|
|
1130
|
+
var ln = G, cn = ln;
|
|
1131
1131
|
const fn = /* @__PURE__ */ Jr(cn);
|
|
1132
|
-
var
|
|
1133
|
-
return
|
|
1132
|
+
var Fe = function(e, t) {
|
|
1133
|
+
return Fe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1134
1134
|
r.__proto__ = n;
|
|
1135
1135
|
} || function(r, n) {
|
|
1136
1136
|
for (var i in n)
|
|
1137
1137
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1138
|
-
},
|
|
1138
|
+
}, Fe(e, t);
|
|
1139
1139
|
};
|
|
1140
1140
|
function ye(e, t) {
|
|
1141
1141
|
if (typeof t != "function" && t !== null)
|
|
1142
1142
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1143
|
-
|
|
1143
|
+
Fe(e, t);
|
|
1144
1144
|
function r() {
|
|
1145
1145
|
this.constructor = e;
|
|
1146
1146
|
}
|
|
1147
1147
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1148
1148
|
}
|
|
1149
|
-
var
|
|
1150
|
-
return
|
|
1149
|
+
var P = function() {
|
|
1150
|
+
return P = Object.assign || function(t) {
|
|
1151
1151
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1152
1152
|
r = arguments[n];
|
|
1153
1153
|
for (var o in r)
|
|
1154
1154
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1155
1155
|
}
|
|
1156
1156
|
return t;
|
|
1157
|
-
},
|
|
1157
|
+
}, P.apply(this, arguments);
|
|
1158
1158
|
};
|
|
1159
1159
|
function mn(e, t) {
|
|
1160
1160
|
var r = {};
|
|
@@ -1185,7 +1185,7 @@ function dn(e, t, r, n) {
|
|
|
1185
1185
|
var i = pn(n) ? n : r(n), o = t.get(i);
|
|
1186
1186
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1187
1187
|
}
|
|
1188
|
-
function
|
|
1188
|
+
function $t(e, t, r) {
|
|
1189
1189
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1190
1190
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1191
1191
|
}
|
|
@@ -1193,11 +1193,11 @@ function Rt(e, t, r, n, i) {
|
|
|
1193
1193
|
return r.bind(t, e, n, i);
|
|
1194
1194
|
}
|
|
1195
1195
|
function bn(e, t) {
|
|
1196
|
-
var r = e.length === 1 ? dn :
|
|
1196
|
+
var r = e.length === 1 ? dn : $t;
|
|
1197
1197
|
return Rt(e, this, r, t.cache.create(), t.serializer);
|
|
1198
1198
|
}
|
|
1199
1199
|
function yn(e, t) {
|
|
1200
|
-
return Rt(e, this,
|
|
1200
|
+
return Rt(e, this, $t, t.cache.create(), t.serializer);
|
|
1201
1201
|
}
|
|
1202
1202
|
var vn = function() {
|
|
1203
1203
|
return JSON.stringify(arguments);
|
|
@@ -1229,18 +1229,18 @@ var vn = function() {
|
|
|
1229
1229
|
return t;
|
|
1230
1230
|
}, fe.apply(this, arguments);
|
|
1231
1231
|
};
|
|
1232
|
-
var
|
|
1232
|
+
var d;
|
|
1233
1233
|
(function(e) {
|
|
1234
1234
|
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";
|
|
1235
|
-
})(
|
|
1235
|
+
})(d || (d = {}));
|
|
1236
1236
|
var g;
|
|
1237
1237
|
(function(e) {
|
|
1238
1238
|
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";
|
|
1239
1239
|
})(g || (g = {}));
|
|
1240
|
-
var
|
|
1240
|
+
var j;
|
|
1241
1241
|
(function(e) {
|
|
1242
1242
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1243
|
-
})(
|
|
1243
|
+
})(j || (j = {}));
|
|
1244
1244
|
function ft(e) {
|
|
1245
1245
|
return e.type === g.literal;
|
|
1246
1246
|
}
|
|
@@ -1250,10 +1250,10 @@ function xn(e) {
|
|
|
1250
1250
|
function Ut(e) {
|
|
1251
1251
|
return e.type === g.number;
|
|
1252
1252
|
}
|
|
1253
|
-
function
|
|
1253
|
+
function Ft(e) {
|
|
1254
1254
|
return e.type === g.date;
|
|
1255
1255
|
}
|
|
1256
|
-
function
|
|
1256
|
+
function Dt(e) {
|
|
1257
1257
|
return e.type === g.time;
|
|
1258
1258
|
}
|
|
1259
1259
|
function Gt(e) {
|
|
@@ -1269,10 +1269,10 @@ function kt(e) {
|
|
|
1269
1269
|
return e.type === g.tag;
|
|
1270
1270
|
}
|
|
1271
1271
|
function Vt(e) {
|
|
1272
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1272
|
+
return !!(e && typeof e == "object" && e.type === j.number);
|
|
1273
1273
|
}
|
|
1274
|
-
function
|
|
1275
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1274
|
+
function De(e) {
|
|
1275
|
+
return !!(e && typeof e == "object" && e.type === j.dateTime);
|
|
1276
1276
|
}
|
|
1277
1277
|
var Xt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Sn = /(?:[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;
|
|
1278
1278
|
function wn(e) {
|
|
@@ -1380,15 +1380,15 @@ var Hn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
|
1380
1380
|
function Tn(e) {
|
|
1381
1381
|
if (e.length === 0)
|
|
1382
1382
|
throw new Error("Number skeleton cannot be empty");
|
|
1383
|
-
for (var t = e.split(Hn).filter(function(
|
|
1384
|
-
return
|
|
1383
|
+
for (var t = e.split(Hn).filter(function(f) {
|
|
1384
|
+
return f.length > 0;
|
|
1385
1385
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1386
1386
|
var o = i[n], s = o.split("/");
|
|
1387
1387
|
if (s.length === 0)
|
|
1388
1388
|
throw new Error("Invalid number skeleton");
|
|
1389
1389
|
for (var a = s[0], h = s.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
1390
|
-
var
|
|
1391
|
-
if (
|
|
1390
|
+
var c = l[u];
|
|
1391
|
+
if (c.length === 0)
|
|
1392
1392
|
throw new Error("Invalid number skeleton");
|
|
1393
1393
|
}
|
|
1394
1394
|
r.push({ stem: a, options: h });
|
|
@@ -1549,11 +1549,11 @@ function On(e) {
|
|
|
1549
1549
|
case "integer-width":
|
|
1550
1550
|
if (i.options.length > 1)
|
|
1551
1551
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1552
|
-
i.options[0].replace(An, function(h, u, l,
|
|
1552
|
+
i.options[0].replace(An, function(h, u, l, c, f, p) {
|
|
1553
1553
|
if (u)
|
|
1554
1554
|
t.minimumIntegerDigits = l.length;
|
|
1555
1555
|
else {
|
|
1556
|
-
if (
|
|
1556
|
+
if (c && f)
|
|
1557
1557
|
throw new Error("We currently do not support maximum integer digits");
|
|
1558
1558
|
if (p)
|
|
1559
1559
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1569,8 +1569,8 @@ function On(e) {
|
|
|
1569
1569
|
if (mt.test(i.stem)) {
|
|
1570
1570
|
if (i.options.length > 1)
|
|
1571
1571
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1572
|
-
i.stem.replace(mt, function(h, u, l,
|
|
1573
|
-
return l === "*" ? t.minimumFractionDigits = u.length :
|
|
1572
|
+
i.stem.replace(mt, function(h, u, l, c, f, p) {
|
|
1573
|
+
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1574
1574
|
});
|
|
1575
1575
|
var o = i.options[0];
|
|
1576
1576
|
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), pt(o)));
|
|
@@ -3041,10 +3041,10 @@ function Nn(e) {
|
|
|
3041
3041
|
return i[0];
|
|
3042
3042
|
}
|
|
3043
3043
|
var Be, Cn = new RegExp("^".concat(Xt.source, "*")), Ln = new RegExp("".concat(Xt.source, "*$"));
|
|
3044
|
-
function
|
|
3044
|
+
function b(e, t) {
|
|
3045
3045
|
return { start: e, end: t };
|
|
3046
3046
|
}
|
|
3047
|
-
var
|
|
3047
|
+
var Mn = !!String.prototype.startsWith && "_a".startsWith("a", 1), $n = !!String.fromCodePoint, Rn = !!Object.fromEntries, Un = !!String.prototype.codePointAt, Fn = !!String.prototype.trimStart, Dn = !!String.prototype.trimEnd, Gn = !!Number.isSafeInteger, jn = Gn ? Number.isSafeInteger : function(e) {
|
|
3048
3048
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3049
3049
|
}, Ge = !0;
|
|
3050
3050
|
try {
|
|
@@ -3053,7 +3053,7 @@ try {
|
|
|
3053
3053
|
} catch (e) {
|
|
3054
3054
|
Ge = !1;
|
|
3055
3055
|
}
|
|
3056
|
-
var bt =
|
|
3056
|
+
var bt = Mn ? (
|
|
3057
3057
|
// Native
|
|
3058
3058
|
function(t, r, n) {
|
|
3059
3059
|
return t.startsWith(r, n);
|
|
@@ -3063,7 +3063,7 @@ var bt = $n ? (
|
|
|
3063
3063
|
function(t, r, n) {
|
|
3064
3064
|
return t.slice(n, n + r.length) === r;
|
|
3065
3065
|
}
|
|
3066
|
-
), je =
|
|
3066
|
+
), je = $n ? String.fromCodePoint : (
|
|
3067
3067
|
// IE11
|
|
3068
3068
|
function() {
|
|
3069
3069
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3101,7 +3101,7 @@ var bt = $n ? (
|
|
|
3101
3101
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3102
3102
|
}
|
|
3103
3103
|
}
|
|
3104
|
-
), Vn =
|
|
3104
|
+
), Vn = Fn ? (
|
|
3105
3105
|
// Native
|
|
3106
3106
|
function(t) {
|
|
3107
3107
|
return t.trimStart();
|
|
@@ -3111,7 +3111,7 @@ var bt = $n ? (
|
|
|
3111
3111
|
function(t) {
|
|
3112
3112
|
return t.replace(Cn, "");
|
|
3113
3113
|
}
|
|
3114
|
-
), Xn =
|
|
3114
|
+
), Xn = Dn ? (
|
|
3115
3115
|
// Native
|
|
3116
3116
|
function(t) {
|
|
3117
3117
|
return t.trimEnd();
|
|
@@ -3169,12 +3169,12 @@ var Wn = (
|
|
|
3169
3169
|
var a = this.clonePosition();
|
|
3170
3170
|
this.bump(), i.push({
|
|
3171
3171
|
type: g.pound,
|
|
3172
|
-
location:
|
|
3172
|
+
location: b(a, this.clonePosition())
|
|
3173
3173
|
});
|
|
3174
3174
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3175
3175
|
if (n)
|
|
3176
3176
|
break;
|
|
3177
|
-
return this.error(
|
|
3177
|
+
return this.error(d.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
3178
3178
|
} else if (o === 60 && !this.ignoreTag && Ve(this.peek() || 0)) {
|
|
3179
3179
|
var s = this.parseTag(t, r);
|
|
3180
3180
|
if (s.err)
|
|
@@ -3198,7 +3198,7 @@ var Wn = (
|
|
|
3198
3198
|
val: {
|
|
3199
3199
|
type: g.literal,
|
|
3200
3200
|
value: "<".concat(i, "/>"),
|
|
3201
|
-
location:
|
|
3201
|
+
location: b(n, this.clonePosition())
|
|
3202
3202
|
},
|
|
3203
3203
|
err: null
|
|
3204
3204
|
};
|
|
@@ -3209,21 +3209,21 @@ var Wn = (
|
|
|
3209
3209
|
var s = o.val, a = this.clonePosition();
|
|
3210
3210
|
if (this.bumpIf("</")) {
|
|
3211
3211
|
if (this.isEOF() || !Ve(this.char()))
|
|
3212
|
-
return this.error(
|
|
3212
|
+
return this.error(d.INVALID_TAG, b(a, this.clonePosition()));
|
|
3213
3213
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3214
|
-
return i !== u ? this.error(
|
|
3214
|
+
return i !== u ? this.error(d.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3215
3215
|
val: {
|
|
3216
3216
|
type: g.tag,
|
|
3217
3217
|
value: i,
|
|
3218
3218
|
children: s,
|
|
3219
|
-
location:
|
|
3219
|
+
location: b(n, this.clonePosition())
|
|
3220
3220
|
},
|
|
3221
3221
|
err: null
|
|
3222
|
-
} : this.error(
|
|
3222
|
+
} : this.error(d.INVALID_TAG, b(a, this.clonePosition())));
|
|
3223
3223
|
} else
|
|
3224
|
-
return this.error(
|
|
3224
|
+
return this.error(d.UNCLOSED_TAG, b(n, this.clonePosition()));
|
|
3225
3225
|
} else
|
|
3226
|
-
return this.error(
|
|
3226
|
+
return this.error(d.INVALID_TAG, b(n, this.clonePosition()));
|
|
3227
3227
|
}, e.prototype.parseTagName = function() {
|
|
3228
3228
|
var t = this.offset();
|
|
3229
3229
|
for (this.bump(); !this.isEOF() && Zn(this.char()); )
|
|
@@ -3248,7 +3248,7 @@ var Wn = (
|
|
|
3248
3248
|
}
|
|
3249
3249
|
break;
|
|
3250
3250
|
}
|
|
3251
|
-
var h =
|
|
3251
|
+
var h = b(n, this.clonePosition());
|
|
3252
3252
|
return {
|
|
3253
3253
|
val: { type: g.literal, value: i, location: h },
|
|
3254
3254
|
err: null
|
|
@@ -3298,14 +3298,14 @@ var Wn = (
|
|
|
3298
3298
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3299
3299
|
var n = this.clonePosition();
|
|
3300
3300
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3301
|
-
return this.error(
|
|
3301
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
3302
3302
|
if (this.char() === 125)
|
|
3303
|
-
return this.bump(), this.error(
|
|
3303
|
+
return this.bump(), this.error(d.EMPTY_ARGUMENT, b(n, this.clonePosition()));
|
|
3304
3304
|
var i = this.parseIdentifierIfPossible().value;
|
|
3305
3305
|
if (!i)
|
|
3306
|
-
return this.error(
|
|
3306
|
+
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3307
3307
|
if (this.bumpSpace(), this.isEOF())
|
|
3308
|
-
return this.error(
|
|
3308
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
3309
3309
|
switch (this.char()) {
|
|
3310
3310
|
case 125:
|
|
3311
3311
|
return this.bump(), {
|
|
@@ -3313,25 +3313,25 @@ var Wn = (
|
|
|
3313
3313
|
type: g.argument,
|
|
3314
3314
|
// value does not include the opening and closing braces.
|
|
3315
3315
|
value: i,
|
|
3316
|
-
location:
|
|
3316
|
+
location: b(n, this.clonePosition())
|
|
3317
3317
|
},
|
|
3318
3318
|
err: null
|
|
3319
3319
|
};
|
|
3320
3320
|
case 44:
|
|
3321
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3321
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3322
3322
|
default:
|
|
3323
|
-
return this.error(
|
|
3323
|
+
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3324
3324
|
}
|
|
3325
3325
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3326
3326
|
var t = this.clonePosition(), r = this.offset(), n = ke(this.message, r), i = r + n.length;
|
|
3327
3327
|
this.bumpTo(i);
|
|
3328
|
-
var o = this.clonePosition(), s =
|
|
3328
|
+
var o = this.clonePosition(), s = b(t, o);
|
|
3329
3329
|
return { value: n, location: s };
|
|
3330
3330
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3331
3331
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3332
3332
|
switch (a) {
|
|
3333
3333
|
case "":
|
|
3334
|
-
return this.error(
|
|
3334
|
+
return this.error(d.EXPECT_ARGUMENT_TYPE, b(s, h));
|
|
3335
3335
|
case "number":
|
|
3336
3336
|
case "date":
|
|
3337
3337
|
case "time": {
|
|
@@ -3339,40 +3339,40 @@ var Wn = (
|
|
|
3339
3339
|
var u = null;
|
|
3340
3340
|
if (this.bumpIf(",")) {
|
|
3341
3341
|
this.bumpSpace();
|
|
3342
|
-
var l = this.clonePosition(),
|
|
3343
|
-
if (
|
|
3344
|
-
return
|
|
3345
|
-
var
|
|
3346
|
-
if (
|
|
3347
|
-
return this.error(
|
|
3348
|
-
var p =
|
|
3349
|
-
u = { style:
|
|
3342
|
+
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3343
|
+
if (c.err)
|
|
3344
|
+
return c;
|
|
3345
|
+
var f = Xn(c.val);
|
|
3346
|
+
if (f.length === 0)
|
|
3347
|
+
return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3348
|
+
var p = b(l, this.clonePosition());
|
|
3349
|
+
u = { style: f, styleLocation: p };
|
|
3350
3350
|
}
|
|
3351
|
-
var
|
|
3352
|
-
if (
|
|
3353
|
-
return
|
|
3354
|
-
var m =
|
|
3351
|
+
var y = this.tryParseArgumentClose(i);
|
|
3352
|
+
if (y.err)
|
|
3353
|
+
return y;
|
|
3354
|
+
var m = b(i, this.clonePosition());
|
|
3355
3355
|
if (u && bt(u == null ? void 0 : u.style, "::", 0)) {
|
|
3356
|
-
var
|
|
3356
|
+
var x = Vn(u.style.slice(2));
|
|
3357
3357
|
if (a === "number") {
|
|
3358
|
-
var
|
|
3359
|
-
return
|
|
3360
|
-
val: { type: g.number, value: n, location: m, style:
|
|
3358
|
+
var c = this.parseNumberSkeletonFromString(x, u.styleLocation);
|
|
3359
|
+
return c.err ? c : {
|
|
3360
|
+
val: { type: g.number, value: n, location: m, style: c.val },
|
|
3361
3361
|
err: null
|
|
3362
3362
|
};
|
|
3363
3363
|
} else {
|
|
3364
|
-
if (
|
|
3365
|
-
return this.error(
|
|
3366
|
-
var
|
|
3367
|
-
this.locale && (
|
|
3368
|
-
var
|
|
3369
|
-
type:
|
|
3370
|
-
pattern:
|
|
3364
|
+
if (x.length === 0)
|
|
3365
|
+
return this.error(d.EXPECT_DATE_TIME_SKELETON, m);
|
|
3366
|
+
var v = x;
|
|
3367
|
+
this.locale && (v = In(x, this.locale));
|
|
3368
|
+
var f = {
|
|
3369
|
+
type: j.dateTime,
|
|
3370
|
+
pattern: v,
|
|
3371
3371
|
location: u.styleLocation,
|
|
3372
|
-
parsedOptions: this.shouldParseSkeletons ? wn(
|
|
3373
|
-
},
|
|
3372
|
+
parsedOptions: this.shouldParseSkeletons ? wn(v) : {}
|
|
3373
|
+
}, B = a === "date" ? g.date : g.time;
|
|
3374
3374
|
return {
|
|
3375
|
-
val: { type:
|
|
3375
|
+
val: { type: B, value: n, location: m, style: f },
|
|
3376
3376
|
err: null
|
|
3377
3377
|
};
|
|
3378
3378
|
}
|
|
@@ -3390,27 +3390,27 @@ var Wn = (
|
|
|
3390
3390
|
case "plural":
|
|
3391
3391
|
case "selectordinal":
|
|
3392
3392
|
case "select": {
|
|
3393
|
-
var
|
|
3393
|
+
var w = this.clonePosition();
|
|
3394
3394
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3395
|
-
return this.error(
|
|
3395
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(w, fe({}, w)));
|
|
3396
3396
|
this.bumpSpace();
|
|
3397
|
-
var
|
|
3398
|
-
if (a !== "select" &&
|
|
3397
|
+
var N = this.parseIdentifierIfPossible(), O = 0;
|
|
3398
|
+
if (a !== "select" && N.value === "offset") {
|
|
3399
3399
|
if (!this.bumpIf(":"))
|
|
3400
|
-
return this.error(
|
|
3400
|
+
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
3401
3401
|
this.bumpSpace();
|
|
3402
|
-
var
|
|
3403
|
-
if (
|
|
3404
|
-
return
|
|
3405
|
-
this.bumpSpace(),
|
|
3402
|
+
var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3403
|
+
if (c.err)
|
|
3404
|
+
return c;
|
|
3405
|
+
this.bumpSpace(), N = this.parseIdentifierIfPossible(), O = c.val;
|
|
3406
3406
|
}
|
|
3407
|
-
var oe = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
3407
|
+
var oe = this.tryParsePluralOrSelectOptions(t, a, r, N);
|
|
3408
3408
|
if (oe.err)
|
|
3409
3409
|
return oe;
|
|
3410
|
-
var
|
|
3411
|
-
if (
|
|
3412
|
-
return
|
|
3413
|
-
var Ye =
|
|
3410
|
+
var y = this.tryParseArgumentClose(i);
|
|
3411
|
+
if (y.err)
|
|
3412
|
+
return y;
|
|
3413
|
+
var Ye = b(i, this.clonePosition());
|
|
3414
3414
|
return a === "select" ? {
|
|
3415
3415
|
val: {
|
|
3416
3416
|
type: g.select,
|
|
@@ -3424,7 +3424,7 @@ var Wn = (
|
|
|
3424
3424
|
type: g.plural,
|
|
3425
3425
|
value: n,
|
|
3426
3426
|
options: yt(oe.val),
|
|
3427
|
-
offset:
|
|
3427
|
+
offset: O,
|
|
3428
3428
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3429
3429
|
location: Ye
|
|
3430
3430
|
},
|
|
@@ -3432,10 +3432,10 @@ var Wn = (
|
|
|
3432
3432
|
};
|
|
3433
3433
|
}
|
|
3434
3434
|
default:
|
|
3435
|
-
return this.error(
|
|
3435
|
+
return this.error(d.INVALID_ARGUMENT_TYPE, b(s, h));
|
|
3436
3436
|
}
|
|
3437
3437
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3438
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3438
|
+
return this.isEOF() || this.char() !== 125 ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3439
3439
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3440
3440
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3441
3441
|
var n = this.char();
|
|
@@ -3444,7 +3444,7 @@ var Wn = (
|
|
|
3444
3444
|
this.bump();
|
|
3445
3445
|
var i = this.clonePosition();
|
|
3446
3446
|
if (!this.bumpUntil("'"))
|
|
3447
|
-
return this.error(
|
|
3447
|
+
return this.error(d.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
|
|
3448
3448
|
this.bump();
|
|
3449
3449
|
break;
|
|
3450
3450
|
}
|
|
@@ -3476,11 +3476,11 @@ var Wn = (
|
|
|
3476
3476
|
try {
|
|
3477
3477
|
n = Tn(t);
|
|
3478
3478
|
} catch (i) {
|
|
3479
|
-
return this.error(
|
|
3479
|
+
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
3480
3480
|
}
|
|
3481
3481
|
return {
|
|
3482
3482
|
val: {
|
|
3483
|
-
type:
|
|
3483
|
+
type: j.number,
|
|
3484
3484
|
tokens: n,
|
|
3485
3485
|
location: r,
|
|
3486
3486
|
parsedOptions: this.shouldParseSkeletons ? On(n) : {}
|
|
@@ -3490,36 +3490,36 @@ var Wn = (
|
|
|
3490
3490
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3491
3491
|
for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
3492
3492
|
if (u.length === 0) {
|
|
3493
|
-
var
|
|
3493
|
+
var c = this.clonePosition();
|
|
3494
3494
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3495
|
-
var
|
|
3496
|
-
if (
|
|
3497
|
-
return
|
|
3498
|
-
l =
|
|
3495
|
+
var f = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3496
|
+
if (f.err)
|
|
3497
|
+
return f;
|
|
3498
|
+
l = b(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3499
3499
|
} else
|
|
3500
3500
|
break;
|
|
3501
3501
|
}
|
|
3502
3502
|
if (h.has(u))
|
|
3503
|
-
return this.error(r === "select" ?
|
|
3503
|
+
return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3504
3504
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3505
3505
|
var p = this.clonePosition();
|
|
3506
3506
|
if (!this.bumpIf("{"))
|
|
3507
|
-
return this.error(r === "select" ?
|
|
3508
|
-
var
|
|
3509
|
-
if (
|
|
3510
|
-
return
|
|
3507
|
+
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3508
|
+
var y = this.parseMessage(t + 1, r, n);
|
|
3509
|
+
if (y.err)
|
|
3510
|
+
return y;
|
|
3511
3511
|
var m = this.tryParseArgumentClose(p);
|
|
3512
3512
|
if (m.err)
|
|
3513
3513
|
return m;
|
|
3514
3514
|
a.push([
|
|
3515
3515
|
u,
|
|
3516
3516
|
{
|
|
3517
|
-
value:
|
|
3518
|
-
location:
|
|
3517
|
+
value: y.val,
|
|
3518
|
+
location: b(p, this.clonePosition())
|
|
3519
3519
|
}
|
|
3520
3520
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3521
3521
|
}
|
|
3522
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3522
|
+
return a.length === 0 ? this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR : d.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(d.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3523
3523
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3524
3524
|
var n = 1, i = this.clonePosition();
|
|
3525
3525
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3530,7 +3530,7 @@ var Wn = (
|
|
|
3530
3530
|
else
|
|
3531
3531
|
break;
|
|
3532
3532
|
}
|
|
3533
|
-
var h =
|
|
3533
|
+
var h = b(i, this.clonePosition());
|
|
3534
3534
|
return o ? (s *= n, jn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3535
3535
|
}, e.prototype.offset = function() {
|
|
3536
3536
|
return this.position.offset;
|
|
@@ -3618,22 +3618,22 @@ function Xe(e) {
|
|
|
3618
3618
|
for (var r in t.options)
|
|
3619
3619
|
delete t.options[r].location, Xe(t.options[r].value);
|
|
3620
3620
|
else
|
|
3621
|
-
Ut(t) && Vt(t.style) || (
|
|
3621
|
+
Ut(t) && Vt(t.style) || (Ft(t) || Dt(t)) && De(t.style) ? delete t.style.location : kt(t) && Xe(t.children);
|
|
3622
3622
|
});
|
|
3623
3623
|
}
|
|
3624
3624
|
function Jn(e, t) {
|
|
3625
3625
|
t === void 0 && (t = {}), t = fe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3626
3626
|
var r = new Wn(e, t).parse();
|
|
3627
3627
|
if (r.err) {
|
|
3628
|
-
var n = SyntaxError(
|
|
3628
|
+
var n = SyntaxError(d[r.err.kind]);
|
|
3629
3629
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3630
3630
|
}
|
|
3631
3631
|
return t != null && t.captureLocation || Xe(r.val), r.val;
|
|
3632
3632
|
}
|
|
3633
|
-
var
|
|
3633
|
+
var k;
|
|
3634
3634
|
(function(e) {
|
|
3635
3635
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3636
|
-
})(
|
|
3636
|
+
})(k || (k = {}));
|
|
3637
3637
|
var ve = (
|
|
3638
3638
|
/** @class */
|
|
3639
3639
|
function(e) {
|
|
@@ -3651,7 +3651,7 @@ var ve = (
|
|
|
3651
3651
|
function(e) {
|
|
3652
3652
|
ye(t, e);
|
|
3653
3653
|
function t(r, n, i, o) {
|
|
3654
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3654
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), k.INVALID_VALUE, o) || this;
|
|
3655
3655
|
}
|
|
3656
3656
|
return t;
|
|
3657
3657
|
}(ve)
|
|
@@ -3660,7 +3660,7 @@ var ve = (
|
|
|
3660
3660
|
function(e) {
|
|
3661
3661
|
ye(t, e);
|
|
3662
3662
|
function t(r, n, i) {
|
|
3663
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3663
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), k.INVALID_VALUE, i) || this;
|
|
3664
3664
|
}
|
|
3665
3665
|
return t;
|
|
3666
3666
|
}(ve)
|
|
@@ -3669,18 +3669,18 @@ var ve = (
|
|
|
3669
3669
|
function(e) {
|
|
3670
3670
|
ye(t, e);
|
|
3671
3671
|
function t(r, n) {
|
|
3672
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3672
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), k.MISSING_VALUE, n) || this;
|
|
3673
3673
|
}
|
|
3674
3674
|
return t;
|
|
3675
3675
|
}(ve)
|
|
3676
|
-
),
|
|
3676
|
+
), S;
|
|
3677
3677
|
(function(e) {
|
|
3678
3678
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3679
|
-
})(
|
|
3679
|
+
})(S || (S = {}));
|
|
3680
3680
|
function Kn(e) {
|
|
3681
3681
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3682
3682
|
var n = t[t.length - 1];
|
|
3683
|
-
return !n || n.type !==
|
|
3683
|
+
return !n || n.type !== S.literal || r.type !== S.literal ? t.push(r) : n.value += r.value, t;
|
|
3684
3684
|
}, []);
|
|
3685
3685
|
}
|
|
3686
3686
|
function ei(e) {
|
|
@@ -3690,7 +3690,7 @@ function le(e, t, r, n, i, o, s) {
|
|
|
3690
3690
|
if (e.length === 1 && ft(e[0]))
|
|
3691
3691
|
return [
|
|
3692
3692
|
{
|
|
3693
|
-
type:
|
|
3693
|
+
type: S.literal,
|
|
3694
3694
|
value: e[0].value
|
|
3695
3695
|
}
|
|
3696
3696
|
];
|
|
@@ -3698,101 +3698,101 @@ function le(e, t, r, n, i, o, s) {
|
|
|
3698
3698
|
var l = u[h];
|
|
3699
3699
|
if (ft(l)) {
|
|
3700
3700
|
a.push({
|
|
3701
|
-
type:
|
|
3701
|
+
type: S.literal,
|
|
3702
3702
|
value: l.value
|
|
3703
3703
|
});
|
|
3704
3704
|
continue;
|
|
3705
3705
|
}
|
|
3706
3706
|
if (En(l)) {
|
|
3707
3707
|
typeof o == "number" && a.push({
|
|
3708
|
-
type:
|
|
3708
|
+
type: S.literal,
|
|
3709
3709
|
value: r.getNumberFormat(t).format(o)
|
|
3710
3710
|
});
|
|
3711
3711
|
continue;
|
|
3712
3712
|
}
|
|
3713
|
-
var
|
|
3714
|
-
if (!(i &&
|
|
3715
|
-
throw new qn(
|
|
3716
|
-
var
|
|
3713
|
+
var c = l.value;
|
|
3714
|
+
if (!(i && c in i))
|
|
3715
|
+
throw new qn(c, s);
|
|
3716
|
+
var f = i[c];
|
|
3717
3717
|
if (xn(l)) {
|
|
3718
|
-
(!
|
|
3719
|
-
type: typeof
|
|
3720
|
-
value:
|
|
3718
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3719
|
+
type: typeof f == "string" ? S.literal : S.object,
|
|
3720
|
+
value: f
|
|
3721
3721
|
});
|
|
3722
3722
|
continue;
|
|
3723
3723
|
}
|
|
3724
|
-
if (
|
|
3725
|
-
var p = typeof l.style == "string" ? n.date[l.style] :
|
|
3724
|
+
if (Ft(l)) {
|
|
3725
|
+
var p = typeof l.style == "string" ? n.date[l.style] : De(l.style) ? l.style.parsedOptions : void 0;
|
|
3726
3726
|
a.push({
|
|
3727
|
-
type:
|
|
3728
|
-
value: r.getDateTimeFormat(t, p).format(
|
|
3727
|
+
type: S.literal,
|
|
3728
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3729
3729
|
});
|
|
3730
3730
|
continue;
|
|
3731
3731
|
}
|
|
3732
|
-
if (
|
|
3733
|
-
var p = typeof l.style == "string" ? n.time[l.style] :
|
|
3732
|
+
if (Dt(l)) {
|
|
3733
|
+
var p = typeof l.style == "string" ? n.time[l.style] : De(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3734
3734
|
a.push({
|
|
3735
|
-
type:
|
|
3736
|
-
value: r.getDateTimeFormat(t, p).format(
|
|
3735
|
+
type: S.literal,
|
|
3736
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3737
3737
|
});
|
|
3738
3738
|
continue;
|
|
3739
3739
|
}
|
|
3740
3740
|
if (Ut(l)) {
|
|
3741
3741
|
var p = typeof l.style == "string" ? n.number[l.style] : Vt(l.style) ? l.style.parsedOptions : void 0;
|
|
3742
|
-
p && p.scale && (
|
|
3743
|
-
type:
|
|
3744
|
-
value: r.getNumberFormat(t, p).format(
|
|
3742
|
+
p && p.scale && (f = f * (p.scale || 1)), a.push({
|
|
3743
|
+
type: S.literal,
|
|
3744
|
+
value: r.getNumberFormat(t, p).format(f)
|
|
3745
3745
|
});
|
|
3746
3746
|
continue;
|
|
3747
3747
|
}
|
|
3748
3748
|
if (kt(l)) {
|
|
3749
|
-
var
|
|
3750
|
-
if (!ei(
|
|
3749
|
+
var y = l.children, m = l.value, x = i[m];
|
|
3750
|
+
if (!ei(x))
|
|
3751
3751
|
throw new Yn(m, "function", s);
|
|
3752
|
-
var
|
|
3753
|
-
return
|
|
3752
|
+
var v = le(y, t, r, n, i, o), B = x(v.map(function(O) {
|
|
3753
|
+
return O.value;
|
|
3754
3754
|
}));
|
|
3755
|
-
Array.isArray(
|
|
3755
|
+
Array.isArray(B) || (B = [B]), a.push.apply(a, B.map(function(O) {
|
|
3756
3756
|
return {
|
|
3757
|
-
type: typeof
|
|
3758
|
-
value:
|
|
3757
|
+
type: typeof O == "string" ? S.literal : S.object,
|
|
3758
|
+
value: O
|
|
3759
3759
|
};
|
|
3760
3760
|
}));
|
|
3761
3761
|
}
|
|
3762
3762
|
if (Gt(l)) {
|
|
3763
|
-
var
|
|
3764
|
-
if (!
|
|
3765
|
-
throw new gt(l.value,
|
|
3766
|
-
a.push.apply(a, le(
|
|
3763
|
+
var w = l.options[f] || l.options.other;
|
|
3764
|
+
if (!w)
|
|
3765
|
+
throw new gt(l.value, f, Object.keys(l.options), s);
|
|
3766
|
+
a.push.apply(a, le(w.value, t, r, n, i));
|
|
3767
3767
|
continue;
|
|
3768
3768
|
}
|
|
3769
3769
|
if (jt(l)) {
|
|
3770
|
-
var
|
|
3771
|
-
if (!
|
|
3770
|
+
var w = l.options["=".concat(f)];
|
|
3771
|
+
if (!w) {
|
|
3772
3772
|
if (!Intl.PluralRules)
|
|
3773
3773
|
throw new ve(`Intl.PluralRules is not available in this environment.
|
|
3774
3774
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3775
|
-
`,
|
|
3776
|
-
var
|
|
3777
|
-
|
|
3775
|
+
`, k.MISSING_INTL_API, s);
|
|
3776
|
+
var N = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3777
|
+
w = l.options[N] || l.options.other;
|
|
3778
3778
|
}
|
|
3779
|
-
if (!
|
|
3780
|
-
throw new gt(l.value,
|
|
3781
|
-
a.push.apply(a, le(
|
|
3779
|
+
if (!w)
|
|
3780
|
+
throw new gt(l.value, f, Object.keys(l.options), s);
|
|
3781
|
+
a.push.apply(a, le(w.value, t, r, n, i, f - (l.offset || 0)));
|
|
3782
3782
|
continue;
|
|
3783
3783
|
}
|
|
3784
3784
|
}
|
|
3785
3785
|
return Kn(a);
|
|
3786
3786
|
}
|
|
3787
3787
|
function ti(e, t) {
|
|
3788
|
-
return t ?
|
|
3789
|
-
return r[n] =
|
|
3788
|
+
return t ? P(P(P({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3789
|
+
return r[n] = P(P({}, e[n]), t[n] || {}), r;
|
|
3790
3790
|
}, {})) : e;
|
|
3791
3791
|
}
|
|
3792
3792
|
function ri(e, t) {
|
|
3793
3793
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3794
3794
|
return r[n] = ti(e[n], t[n]), r;
|
|
3795
|
-
},
|
|
3795
|
+
}, P({}, e)) : e;
|
|
3796
3796
|
}
|
|
3797
3797
|
function Ae(e) {
|
|
3798
3798
|
return {
|
|
@@ -3854,8 +3854,8 @@ var ii = (
|
|
|
3854
3854
|
var u = o.formatToParts(h);
|
|
3855
3855
|
if (u.length === 1)
|
|
3856
3856
|
return u[0].value;
|
|
3857
|
-
var l = u.reduce(function(
|
|
3858
|
-
return !
|
|
3857
|
+
var l = u.reduce(function(c, f) {
|
|
3858
|
+
return !c.length || f.type !== S.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3859
3859
|
}, []);
|
|
3860
3860
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3861
3861
|
}, this.formatToParts = function(h) {
|
|
@@ -3873,7 +3873,7 @@ var ii = (
|
|
|
3873
3873
|
var s = i || {};
|
|
3874
3874
|
s.formatters;
|
|
3875
3875
|
var a = mn(s, ["formatters"]);
|
|
3876
|
-
this.ast = e.__parse(t,
|
|
3876
|
+
this.ast = e.__parse(t, P(P({}, a), { locale: this.resolvedLocale }));
|
|
3877
3877
|
} else
|
|
3878
3878
|
this.ast = t;
|
|
3879
3879
|
if (!Array.isArray(this.ast))
|
|
@@ -3973,11 +3973,11 @@ function oi(e, t) {
|
|
|
3973
3973
|
n = void 0;
|
|
3974
3974
|
return n;
|
|
3975
3975
|
}
|
|
3976
|
-
const
|
|
3976
|
+
const C = {}, si = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), qt = (e, t) => {
|
|
3977
3977
|
if (t == null)
|
|
3978
3978
|
return;
|
|
3979
|
-
if (t in
|
|
3980
|
-
return
|
|
3979
|
+
if (t in C && e in C[t])
|
|
3980
|
+
return C[t][e];
|
|
3981
3981
|
const r = ge(t);
|
|
3982
3982
|
for (let n = 0; n < r.length; n++) {
|
|
3983
3983
|
const i = r[n], o = ui(i, e);
|
|
@@ -4010,9 +4010,9 @@ function hi(e) {
|
|
|
4010
4010
|
}
|
|
4011
4011
|
}
|
|
4012
4012
|
function li(e, ...t) {
|
|
4013
|
-
delete
|
|
4013
|
+
delete C[e], ne.update((r) => (r[e] = fn.all([r[e] || {}, ...t]), r));
|
|
4014
4014
|
}
|
|
4015
|
-
|
|
4015
|
+
W(
|
|
4016
4016
|
[ne],
|
|
4017
4017
|
([e]) => Object.keys(e)
|
|
4018
4018
|
);
|
|
@@ -4095,7 +4095,7 @@ const pi = {
|
|
|
4095
4095
|
handleMissingMessage: void 0,
|
|
4096
4096
|
ignoreTag: !0
|
|
4097
4097
|
}, bi = di;
|
|
4098
|
-
function
|
|
4098
|
+
function V() {
|
|
4099
4099
|
return bi;
|
|
4100
4100
|
}
|
|
4101
4101
|
const Pe = be(!1);
|
|
@@ -4112,11 +4112,11 @@ const me = be(null);
|
|
|
4112
4112
|
function Et(e) {
|
|
4113
4113
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4114
4114
|
}
|
|
4115
|
-
function ge(e, t =
|
|
4115
|
+
function ge(e, t = V().fallbackLocale) {
|
|
4116
4116
|
const r = Et(e);
|
|
4117
4117
|
return t ? [.../* @__PURE__ */ new Set([...r, ...Et(t)])] : r;
|
|
4118
4118
|
}
|
|
4119
|
-
function
|
|
4119
|
+
function M() {
|
|
4120
4120
|
return ze != null ? ze : void 0;
|
|
4121
4121
|
}
|
|
4122
4122
|
me.subscribe((e) => {
|
|
@@ -4124,9 +4124,9 @@ me.subscribe((e) => {
|
|
|
4124
4124
|
});
|
|
4125
4125
|
const wi = (e) => {
|
|
4126
4126
|
if (e && hi(e) && We(e)) {
|
|
4127
|
-
const { loadingDelay: t } =
|
|
4127
|
+
const { loadingDelay: t } = V();
|
|
4128
4128
|
let r;
|
|
4129
|
-
return typeof window != "undefined" &&
|
|
4129
|
+
return typeof window != "undefined" && M() != null && t ? r = window.setTimeout(
|
|
4130
4130
|
() => Pe.set(!0),
|
|
4131
4131
|
t
|
|
4132
4132
|
) : Pe.set(!0), tr(e).then(() => {
|
|
@@ -4152,7 +4152,7 @@ var Hi = Object.defineProperty, pe = Object.getOwnPropertySymbols, rr = Object.p
|
|
|
4152
4152
|
for (var r of pe(t))
|
|
4153
4153
|
nr.call(t, r) && St(e, r, t[r]);
|
|
4154
4154
|
return e;
|
|
4155
|
-
},
|
|
4155
|
+
}, z = (e, t) => {
|
|
4156
4156
|
var r = {};
|
|
4157
4157
|
for (var n in e)
|
|
4158
4158
|
rr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -4162,27 +4162,27 @@ var Hi = Object.defineProperty, pe = Object.getOwnPropertySymbols, rr = Object.p
|
|
|
4162
4162
|
return r;
|
|
4163
4163
|
};
|
|
4164
4164
|
const K = (e, t) => {
|
|
4165
|
-
const { formats: r } =
|
|
4165
|
+
const { formats: r } = V();
|
|
4166
4166
|
if (e in r && t in r[e])
|
|
4167
4167
|
return r[e][t];
|
|
4168
4168
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4169
4169
|
}, Ti = _e(
|
|
4170
4170
|
(e) => {
|
|
4171
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4171
|
+
var t = e, { locale: r, format: n } = t, i = z(t, ["locale", "format"]);
|
|
4172
4172
|
if (r == null)
|
|
4173
4173
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4174
4174
|
return n && (i = K("number", n)), new Intl.NumberFormat(r, i);
|
|
4175
4175
|
}
|
|
4176
4176
|
), Bi = _e(
|
|
4177
4177
|
(e) => {
|
|
4178
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4178
|
+
var t = e, { locale: r, format: n } = t, i = z(t, ["locale", "format"]);
|
|
4179
4179
|
if (r == null)
|
|
4180
4180
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4181
4181
|
return n ? i = K("date", n) : Object.keys(i).length === 0 && (i = K("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4182
4182
|
}
|
|
4183
4183
|
), Ai = _e(
|
|
4184
4184
|
(e) => {
|
|
4185
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4185
|
+
var t = e, { locale: r, format: n } = t, i = z(t, ["locale", "format"]);
|
|
4186
4186
|
if (r == null)
|
|
4187
4187
|
throw new Error(
|
|
4188
4188
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
@@ -4191,29 +4191,29 @@ const K = (e, t) => {
|
|
|
4191
4191
|
}
|
|
4192
4192
|
), Pi = (e = {}) => {
|
|
4193
4193
|
var t = e, {
|
|
4194
|
-
locale: r =
|
|
4195
|
-
} = t, n =
|
|
4194
|
+
locale: r = M()
|
|
4195
|
+
} = t, n = z(t, [
|
|
4196
4196
|
"locale"
|
|
4197
4197
|
]);
|
|
4198
4198
|
return Ti(Je({ locale: r }, n));
|
|
4199
4199
|
}, Oi = (e = {}) => {
|
|
4200
4200
|
var t = e, {
|
|
4201
|
-
locale: r =
|
|
4202
|
-
} = t, n =
|
|
4201
|
+
locale: r = M()
|
|
4202
|
+
} = t, n = z(t, [
|
|
4203
4203
|
"locale"
|
|
4204
4204
|
]);
|
|
4205
4205
|
return Bi(Je({ locale: r }, n));
|
|
4206
4206
|
}, Ii = (e = {}) => {
|
|
4207
4207
|
var t = e, {
|
|
4208
|
-
locale: r =
|
|
4209
|
-
} = t, n =
|
|
4208
|
+
locale: r = M()
|
|
4209
|
+
} = t, n = z(t, [
|
|
4210
4210
|
"locale"
|
|
4211
4211
|
]);
|
|
4212
4212
|
return Ai(Je({ locale: r }, n));
|
|
4213
4213
|
}, Ni = _e(
|
|
4214
4214
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4215
|
-
(e, t =
|
|
4216
|
-
ignoreTag:
|
|
4215
|
+
(e, t = M()) => new ii(e, t, V().formats, {
|
|
4216
|
+
ignoreTag: V().ignoreTag
|
|
4217
4217
|
})
|
|
4218
4218
|
), Ci = (e, t = {}) => {
|
|
4219
4219
|
var r, n, i, o;
|
|
@@ -4221,7 +4221,7 @@ const K = (e, t) => {
|
|
|
4221
4221
|
typeof e == "object" && (s = e, e = s.id);
|
|
4222
4222
|
const {
|
|
4223
4223
|
values: a,
|
|
4224
|
-
locale: h =
|
|
4224
|
+
locale: h = M(),
|
|
4225
4225
|
default: u
|
|
4226
4226
|
} = s;
|
|
4227
4227
|
if (h == null)
|
|
@@ -4230,38 +4230,38 @@ const K = (e, t) => {
|
|
|
4230
4230
|
);
|
|
4231
4231
|
let l = qt(e, h);
|
|
4232
4232
|
if (!l)
|
|
4233
|
-
l = (o = (i = (n = (r =
|
|
4233
|
+
l = (o = (i = (n = (r = V()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4234
4234
|
else if (typeof l != "string")
|
|
4235
4235
|
return console.warn(
|
|
4236
4236
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
4237
4237
|
), l;
|
|
4238
4238
|
if (!a)
|
|
4239
4239
|
return l;
|
|
4240
|
-
let
|
|
4240
|
+
let c = l;
|
|
4241
4241
|
try {
|
|
4242
|
-
|
|
4243
|
-
} catch (
|
|
4244
|
-
|
|
4242
|
+
c = Ni(l, h).format(a);
|
|
4243
|
+
} catch (f) {
|
|
4244
|
+
f instanceof Error && console.warn(
|
|
4245
4245
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4246
|
-
|
|
4246
|
+
f.message
|
|
4247
4247
|
);
|
|
4248
4248
|
}
|
|
4249
|
-
return
|
|
4250
|
-
}, Li = (e, t) => Ii(t).format(e),
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4249
|
+
return c;
|
|
4250
|
+
}, Li = (e, t) => Ii(t).format(e), Mi = (e, t) => Oi(t).format(e), $i = (e, t) => Pi(t).format(e), Ri = (e, t = M()) => qt(e, t);
|
|
4251
|
+
W([ie, ne], () => Ci);
|
|
4252
|
+
W([ie], () => Li);
|
|
4253
|
+
W([ie], () => Mi);
|
|
4254
|
+
W([ie], () => $i);
|
|
4255
|
+
W([ie, ne], () => Ri);
|
|
4256
4256
|
window.emWidgets = { topic: Zr };
|
|
4257
4257
|
const Ui = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
4258
|
-
function
|
|
4258
|
+
function Fi(e, t) {
|
|
4259
4259
|
if (e) {
|
|
4260
4260
|
const r = document.createElement("style");
|
|
4261
4261
|
r.innerHTML = t, e.appendChild(r);
|
|
4262
4262
|
}
|
|
4263
4263
|
}
|
|
4264
|
-
function
|
|
4264
|
+
function Di(e, t) {
|
|
4265
4265
|
const r = new URL(t);
|
|
4266
4266
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4267
4267
|
const i = document.createElement("style");
|
|
@@ -4282,34 +4282,34 @@ function ji(e) {
|
|
|
4282
4282
|
cr(e, "svelte-8o17lh", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.betslipIndicator{display:flex;align-items:center;justify-content:center;padding:15px 20px;position:fixed;bottom:20%;right:20px;color:#fff;background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));box-shadow:0px 5px 30px var(--emw--color-gray-100, #E6E6E6);border-radius:50%;border:none}.betslipIndicator__icon{display:flex;width:20px;fill:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.betslipIndicator__number{display:flex;align-items:center;justify-content:center;position:absolute;right:0px;top:-10px;width:25px;height:25px;background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));border-radius:50%}.loader{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));font-size:2px;margin:100px auto;width:1em;height:1em;border-radius:50%;position:relative;text-indent:-9999em;-webkit-animation:load4 1.3s infinite linear;animation:load4 1.3s infinite linear;-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0)}@-webkit-keyframes load4{0%,100%{box-shadow:0 -3em 0 0.2em, 2em -2em 0 0em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 0}12.5%{box-shadow:0 -3em 0 0, 2em -2em 0 0.2em, 3em 0 0 0, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em}25%{box-shadow:0 -3em 0 -0.5em, 2em -2em 0 0, 3em 0 0 0.2em, 2em 2em 0 0, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em}37.5%{box-shadow:0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 0, 2em 2em 0 0.2em, 0 3em 0 0em, -2em 2em 0 -1em, -3em 0em 0 -1em, -2em -2em 0 -1em}50%{box-shadow:0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 0em, 0 3em 0 0.2em, -2em 2em 0 0, -3em 0em 0 -1em, -2em -2em 0 -1em}62.5%{box-shadow:0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 0, -2em 2em 0 0.2em, -3em 0 0 0, -2em -2em 0 -1em}75%{box-shadow:0em -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0.2em, -2em -2em 0 0}87.5%{box-shadow:0em -3em 0 0, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0, -2em -2em 0 0.2em}}@keyframes load4{0%,100%{box-shadow:0 -3em 0 0.2em, 2em -2em 0 0em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 0}12.5%{box-shadow:0 -3em 0 0, 2em -2em 0 0.2em, 3em 0 0 0, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em}25%{box-shadow:0 -3em 0 -0.5em, 2em -2em 0 0, 3em 0 0 0.2em, 2em 2em 0 0, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em}37.5%{box-shadow:0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 0, 2em 2em 0 0.2em, 0 3em 0 0em, -2em 2em 0 -1em, -3em 0em 0 -1em, -2em -2em 0 -1em}50%{box-shadow:0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 0em, 0 3em 0 0.2em, -2em 2em 0 0, -3em 0em 0 -1em, -2em -2em 0 -1em}62.5%{box-shadow:0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 0, -2em 2em 0 0.2em, -3em 0 0 0, -2em -2em 0 -1em}75%{box-shadow:0em -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0.2em, -2em -2em 0 0}87.5%{box-shadow:0em -3em 0 0, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0, -2em -2em 0 0.2em}}");
|
|
4283
4283
|
}
|
|
4284
4284
|
function wt(e) {
|
|
4285
|
-
let t, r, n, i, o, s, a, h, u, l,
|
|
4286
|
-
function p(
|
|
4285
|
+
let t, r, n, i, o, s, a, h, u, l, c, f;
|
|
4286
|
+
function p(x, v) {
|
|
4287
4287
|
return (
|
|
4288
4288
|
/*isLoading*/
|
|
4289
|
-
|
|
4289
|
+
x[3] ? Vi : ki
|
|
4290
4290
|
);
|
|
4291
4291
|
}
|
|
4292
|
-
let
|
|
4292
|
+
let y = p(e), m = y(e);
|
|
4293
4293
|
return {
|
|
4294
4294
|
c() {
|
|
4295
|
-
t = D("button"), r = D("small"), m.c(), n = pr(), i =
|
|
4295
|
+
t = D("button"), r = D("small"), m.c(), n = pr(), i = L("svg"), o = L("g"), s = L("path"), a = L("path"), h = L("path"), u = L("path"), l = L("path"), E(r, "class", "betslipIndicator__number"), E(s, "d", `M45,95c0,1.1,0.9,2,2,2h11c3.3,0,6-2.7,6-6V9c0-3.3-2.7-6-6-6H47c-1.1,0-2,0.9-2,2c0,7.2-5.8,13-13,13S19,12.2,19,5
|
|
4296
4296
|
c0-1.1-0.9-2-2-2H6C2.7,3,0,5.7,0,9v82c0,3.3,2.7,6,6,6h11c1.1,0,2-0.9,2-2c0-7.2,5.8-13,13-13S45,87.8,45,95z M32,78
|
|
4297
4297
|
c-8.6,0-15.9,6.4-16.9,15H6c-1.1,0-2-0.9-2-2V9c0-1.1,0.9-2,2-2h9.1c1.2,9.3,9.7,15.9,19,14.8c7.7-1,13.8-7,14.8-14.8H58
|
|
4298
|
-
c1.1,0,2,0.9,2,2v82c0,1.1-0.9,2-2,2h-9.1C47.9,84.4,40.6,78,32,78z`),
|
|
4298
|
+
c1.1,0,2,0.9,2,2v82c0,1.1-0.9,2-2,2h-9.1C47.9,84.4,40.6,78,32,78z`), E(a, "d", "M50.9,29.5H13.1c-0.8,0-1.5,0.9-1.5,2c0,1.1,0.7,2,1.5,2h37.8c0.8,0,1.5-0.9,1.5-2C52.4,30.4,51.7,29.5,50.9,29.5z"), E(h, "d", "M50.9,41.5H13.1c-0.8,0-1.5,0.9-1.5,2s0.7,2,1.5,2h37.8c0.8,0,1.5-0.9,1.5-2S51.7,41.5,50.9,41.5z"), E(u, "d", "M50.9,53.5H13.1c-0.8,0-1.5,0.9-1.5,2s0.7,2,1.5,2h37.8c0.8,0,1.5-0.9,1.5-2S51.7,53.5,50.9,53.5z"), E(l, "d", "M50.9,66.5H13.1c-0.8,0-1.5,0.9-1.5,2s0.7,2,1.5,2h37.8c0.8,0,1.5-0.9,1.5-2S51.7,66.5,50.9,66.5z"), E(i, "version", "1.1"), E(i, "id", "Layer_1"), E(i, "class", "betslipIndicator__icon"), E(i, "xmlns", "http://www.w3.org/2000/svg"), E(i, "xmlns:xlink", "http://www.w3.org/1999/xlink"), E(i, "x", "0px"), E(i, "y", "0px"), E(i, "viewBox", "0 0 64 100"), vr(i, "enable-background", "new 0 0 64 100"), E(i, "xml:space", "preserve"), E(t, "class", "betslipIndicator");
|
|
4299
4299
|
},
|
|
4300
|
-
m(
|
|
4301
|
-
te(
|
|
4300
|
+
m(x, v) {
|
|
4301
|
+
te(x, t, v), A(t, r), m.m(r, null), A(t, n), A(t, i), A(i, o), A(o, s), A(o, a), A(o, h), A(o, u), A(o, l), c || (f = dr(
|
|
4302
4302
|
t,
|
|
4303
4303
|
"click",
|
|
4304
4304
|
/*click_handler*/
|
|
4305
|
-
e[
|
|
4306
|
-
),
|
|
4305
|
+
e[9]
|
|
4306
|
+
), c = !0);
|
|
4307
4307
|
},
|
|
4308
|
-
p(
|
|
4309
|
-
|
|
4308
|
+
p(x, v) {
|
|
4309
|
+
y === (y = p(x)) && m ? m.p(x, v) : (m.d(1), m = y(x), m && (m.c(), m.m(r, null)));
|
|
4310
4310
|
},
|
|
4311
|
-
d(
|
|
4312
|
-
|
|
4311
|
+
d(x) {
|
|
4312
|
+
x && X(t), m.d(), c = !1, f();
|
|
4313
4313
|
}
|
|
4314
4314
|
};
|
|
4315
4315
|
}
|
|
@@ -4334,7 +4334,7 @@ function ki(e) {
|
|
|
4334
4334
|
);
|
|
4335
4335
|
},
|
|
4336
4336
|
d(r) {
|
|
4337
|
-
r &&
|
|
4337
|
+
r && X(t);
|
|
4338
4338
|
}
|
|
4339
4339
|
};
|
|
4340
4340
|
}
|
|
@@ -4342,14 +4342,14 @@ function Vi(e) {
|
|
|
4342
4342
|
let t;
|
|
4343
4343
|
return {
|
|
4344
4344
|
c() {
|
|
4345
|
-
t = D("div"), t.textContent = "Loading...",
|
|
4345
|
+
t = D("div"), t.textContent = "Loading...", E(t, "class", "loader");
|
|
4346
4346
|
},
|
|
4347
4347
|
m(r, n) {
|
|
4348
4348
|
te(r, t, n);
|
|
4349
4349
|
},
|
|
4350
|
-
p:
|
|
4350
|
+
p: T,
|
|
4351
4351
|
d(r) {
|
|
4352
|
-
r &&
|
|
4352
|
+
r && X(t);
|
|
4353
4353
|
}
|
|
4354
4354
|
};
|
|
4355
4355
|
}
|
|
@@ -4357,77 +4357,85 @@ function Xi(e) {
|
|
|
4357
4357
|
let t, r = (
|
|
4358
4358
|
/*mobileView*/
|
|
4359
4359
|
e[2] && /*betNumber*/
|
|
4360
|
-
e[1] > 0 &&
|
|
4360
|
+
e[1] > 0 && /*betSlipVisible*/
|
|
4361
|
+
e[4] && wt(e)
|
|
4361
4362
|
);
|
|
4362
4363
|
return {
|
|
4363
4364
|
c() {
|
|
4364
4365
|
t = D("div"), r && r.c();
|
|
4365
4366
|
},
|
|
4366
4367
|
m(n, i) {
|
|
4367
|
-
te(n, t, i), r && r.m(t, null), e[
|
|
4368
|
+
te(n, t, i), r && r.m(t, null), e[10](t);
|
|
4368
4369
|
},
|
|
4369
4370
|
p(n, [i]) {
|
|
4370
4371
|
/*mobileView*/
|
|
4371
4372
|
n[2] && /*betNumber*/
|
|
4372
|
-
n[1] > 0
|
|
4373
|
+
n[1] > 0 && /*betSlipVisible*/
|
|
4374
|
+
n[4] ? r ? r.p(n, i) : (r = wt(n), r.c(), r.m(t, null)) : r && (r.d(1), r = null);
|
|
4373
4375
|
},
|
|
4374
|
-
i:
|
|
4375
|
-
o:
|
|
4376
|
+
i: T,
|
|
4377
|
+
o: T,
|
|
4376
4378
|
d(n) {
|
|
4377
|
-
n &&
|
|
4379
|
+
n && X(t), r && r.d(), e[10](null);
|
|
4378
4380
|
}
|
|
4379
4381
|
};
|
|
4380
4382
|
}
|
|
4381
4383
|
function Wi(e, t, r) {
|
|
4382
|
-
let { clientstyling: n = "" } = t, { clientstylingurl: i = "" } = t, { mbsource: o } = t, s, a = window.navigator.userAgent, h = null, u = !1, l = !0;
|
|
4384
|
+
let { clientstyling: n = "" } = t, { clientstylingurl: i = "" } = t, { mbsource: o } = t, s, a = window.navigator.userAgent, h = null, u = !1, l = !0, c = !1;
|
|
4383
4385
|
const f = () => {
|
|
4384
4386
|
window.postMessage({ type: "OMFE:getBetslipSelectionsCount" }, "*");
|
|
4385
|
-
},
|
|
4387
|
+
}, p = (v, B) => {
|
|
4386
4388
|
s.dispatchEvent(new CustomEvent(
|
|
4387
|
-
|
|
4389
|
+
v,
|
|
4388
4390
|
{
|
|
4389
|
-
detail:
|
|
4391
|
+
detail: B,
|
|
4390
4392
|
composed: !0,
|
|
4391
4393
|
bubbles: !0
|
|
4392
4394
|
// propagate across the shadow DOM
|
|
4393
4395
|
}
|
|
4394
4396
|
));
|
|
4395
|
-
},
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4397
|
+
}, y = (v) => {
|
|
4398
|
+
var N;
|
|
4399
|
+
const { type: B, payload: w } = v.data;
|
|
4400
|
+
if (v.data)
|
|
4401
|
+
switch (B) {
|
|
4399
4402
|
case "OMFE:updateBetslipSelectionsCount":
|
|
4400
|
-
r(1, h =
|
|
4403
|
+
r(1, h = w.count), r(3, l = !1);
|
|
4404
|
+
break;
|
|
4405
|
+
case "OMFE:betslipSidebar":
|
|
4406
|
+
const O = (N = v.data.payload) == null ? void 0 : N.enableBetslipBubble;
|
|
4407
|
+
r(4, c = !!O);
|
|
4401
4408
|
break;
|
|
4402
4409
|
}
|
|
4403
4410
|
};
|
|
4404
|
-
xr(() => (f(), window.addEventListener("message",
|
|
4405
|
-
window.removeEventListener("message",
|
|
4411
|
+
xr(() => (f(), window.addEventListener("message", y, !1), Ui(a) && r(2, u = !0), () => {
|
|
4412
|
+
window.removeEventListener("message", y);
|
|
4406
4413
|
}));
|
|
4407
|
-
const
|
|
4408
|
-
function
|
|
4409
|
-
Oe[
|
|
4410
|
-
s =
|
|
4414
|
+
const m = (v) => p("betslipClick", {});
|
|
4415
|
+
function x(v) {
|
|
4416
|
+
Oe[v ? "unshift" : "push"](() => {
|
|
4417
|
+
s = v, r(0, s);
|
|
4411
4418
|
});
|
|
4412
4419
|
}
|
|
4413
|
-
return e.$$set = (
|
|
4414
|
-
"clientstyling" in
|
|
4420
|
+
return e.$$set = (v) => {
|
|
4421
|
+
"clientstyling" in v && r(6, n = v.clientstyling), "clientstylingurl" in v && r(7, i = v.clientstylingurl), "mbsource" in v && r(8, o = v.mbsource);
|
|
4415
4422
|
}, e.$$.update = () => {
|
|
4416
4423
|
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
|
|
4424
|
+
65 && n && s && Fi(s, n), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4425
|
+
129 && i && s && Di(s, i), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4426
|
+
257 && o && s && Gi(s, `${o}.Style`);
|
|
4420
4427
|
}, [
|
|
4421
4428
|
s,
|
|
4422
4429
|
h,
|
|
4423
4430
|
u,
|
|
4424
4431
|
l,
|
|
4425
4432
|
c,
|
|
4433
|
+
p,
|
|
4426
4434
|
n,
|
|
4427
4435
|
i,
|
|
4428
4436
|
o,
|
|
4429
|
-
|
|
4430
|
-
|
|
4437
|
+
m,
|
|
4438
|
+
x
|
|
4431
4439
|
];
|
|
4432
4440
|
}
|
|
4433
4441
|
class zi extends Cr {
|
|
@@ -4439,27 +4447,27 @@ class zi extends Cr {
|
|
|
4439
4447
|
Xi,
|
|
4440
4448
|
Tt,
|
|
4441
4449
|
{
|
|
4442
|
-
clientstyling:
|
|
4443
|
-
clientstylingurl:
|
|
4444
|
-
mbsource:
|
|
4450
|
+
clientstyling: 6,
|
|
4451
|
+
clientstylingurl: 7,
|
|
4452
|
+
mbsource: 8
|
|
4445
4453
|
},
|
|
4446
4454
|
ji
|
|
4447
4455
|
);
|
|
4448
4456
|
}
|
|
4449
4457
|
get clientstyling() {
|
|
4450
|
-
return this.$$.ctx[
|
|
4458
|
+
return this.$$.ctx[6];
|
|
4451
4459
|
}
|
|
4452
4460
|
set clientstyling(t) {
|
|
4453
4461
|
this.$$set({ clientstyling: t }), J();
|
|
4454
4462
|
}
|
|
4455
4463
|
get clientstylingurl() {
|
|
4456
|
-
return this.$$.ctx[
|
|
4464
|
+
return this.$$.ctx[7];
|
|
4457
4465
|
}
|
|
4458
4466
|
set clientstylingurl(t) {
|
|
4459
4467
|
this.$$set({ clientstylingurl: t }), J();
|
|
4460
4468
|
}
|
|
4461
4469
|
get mbsource() {
|
|
4462
|
-
return this.$$.ctx[
|
|
4470
|
+
return this.$$.ctx[8];
|
|
4463
4471
|
}
|
|
4464
4472
|
set mbsource(t) {
|
|
4465
4473
|
this.$$set({ mbsource: t }), J();
|