@everymatrix/casino-betslip-indicator 1.76.8 → 1.76.10
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-DEq6VxYA.js → CasinoBetslipIndicator-BUP9qpWA.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function H() {
|
|
2
2
|
}
|
|
3
3
|
function gt(e) {
|
|
4
4
|
return e();
|
|
@@ -22,18 +22,18 @@ function Kt(e, ...t) {
|
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const n of t)
|
|
24
24
|
n(void 0);
|
|
25
|
-
return
|
|
25
|
+
return H;
|
|
26
26
|
}
|
|
27
27
|
const r = e.subscribe(...t);
|
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function B(e, t) {
|
|
31
31
|
e.appendChild(t);
|
|
32
32
|
}
|
|
33
33
|
function er(e, t, r) {
|
|
34
34
|
const n = tr(e);
|
|
35
35
|
if (!n.getElementById(t)) {
|
|
36
|
-
const i =
|
|
36
|
+
const i = F("style");
|
|
37
37
|
i.id = t, i.textContent = r, rr(n, i);
|
|
38
38
|
}
|
|
39
39
|
}
|
|
@@ -48,7 +48,7 @@ function tr(e) {
|
|
|
48
48
|
) : e.ownerDocument;
|
|
49
49
|
}
|
|
50
50
|
function rr(e, t) {
|
|
51
|
-
return
|
|
51
|
+
return B(
|
|
52
52
|
/** @type {Document} */
|
|
53
53
|
e.head || e,
|
|
54
54
|
t
|
|
@@ -57,13 +57,13 @@ function rr(e, t) {
|
|
|
57
57
|
function ee(e, t, r) {
|
|
58
58
|
e.insertBefore(t, r || null);
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function V(e) {
|
|
61
61
|
e.parentNode && e.parentNode.removeChild(e);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function F(e) {
|
|
64
64
|
return document.createElement(e);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function C(e) {
|
|
67
67
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
68
68
|
}
|
|
69
69
|
function xt(e) {
|
|
@@ -75,7 +75,7 @@ function nr() {
|
|
|
75
75
|
function ir(e, t, r, n) {
|
|
76
76
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function E(e, t, r) {
|
|
79
79
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
80
80
|
}
|
|
81
81
|
function or(e) {
|
|
@@ -109,39 +109,39 @@ function hr() {
|
|
|
109
109
|
function lr(e) {
|
|
110
110
|
hr().$$.on_mount.push(e);
|
|
111
111
|
}
|
|
112
|
-
const
|
|
113
|
-
let
|
|
112
|
+
const R = [], Ae = [];
|
|
113
|
+
let U = [];
|
|
114
114
|
const Ye = [], cr = /* @__PURE__ */ Promise.resolve();
|
|
115
115
|
let Pe = !1;
|
|
116
116
|
function fr() {
|
|
117
117
|
Pe || (Pe = !0, cr.then(Q));
|
|
118
118
|
}
|
|
119
119
|
function Oe(e) {
|
|
120
|
-
|
|
120
|
+
U.push(e);
|
|
121
121
|
}
|
|
122
122
|
const _e = /* @__PURE__ */ new Set();
|
|
123
|
-
let
|
|
123
|
+
let M = 0;
|
|
124
124
|
function Q() {
|
|
125
|
-
if (
|
|
125
|
+
if (M !== 0)
|
|
126
126
|
return;
|
|
127
127
|
const e = J;
|
|
128
128
|
do {
|
|
129
129
|
try {
|
|
130
|
-
for (;
|
|
131
|
-
const t = M
|
|
132
|
-
|
|
130
|
+
for (; M < R.length; ) {
|
|
131
|
+
const t = R[M];
|
|
132
|
+
M++, Z(t), mr(t.$$);
|
|
133
133
|
}
|
|
134
134
|
} catch (t) {
|
|
135
|
-
throw
|
|
135
|
+
throw R.length = 0, M = 0, t;
|
|
136
136
|
}
|
|
137
|
-
for (Z(null),
|
|
137
|
+
for (Z(null), R.length = 0, M = 0; Ae.length; )
|
|
138
138
|
Ae.pop()();
|
|
139
|
-
for (let t = 0; t <
|
|
140
|
-
const r =
|
|
139
|
+
for (let t = 0; t < U.length; t += 1) {
|
|
140
|
+
const r = U[t];
|
|
141
141
|
_e.has(r) || (_e.add(r), r());
|
|
142
142
|
}
|
|
143
|
-
|
|
144
|
-
} while (
|
|
143
|
+
U.length = 0;
|
|
144
|
+
} while (R.length);
|
|
145
145
|
for (; Ye.length; )
|
|
146
146
|
Ye.pop()();
|
|
147
147
|
Pe = !1, _e.clear(), Z(e);
|
|
@@ -155,7 +155,7 @@ function mr(e) {
|
|
|
155
155
|
}
|
|
156
156
|
function pr(e) {
|
|
157
157
|
const t = [], r = [];
|
|
158
|
-
|
|
158
|
+
U.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), U = t;
|
|
159
159
|
}
|
|
160
160
|
const dr = /* @__PURE__ */ new Set();
|
|
161
161
|
function br(e, t) {
|
|
@@ -173,7 +173,7 @@ function vr(e, t) {
|
|
|
173
173
|
r.fragment !== null && (pr(r.after_update), K(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
174
174
|
}
|
|
175
175
|
function gr(e, t) {
|
|
176
|
-
e.$$.dirty[0] === -1 && (
|
|
176
|
+
e.$$.dirty[0] === -1 && (R.push(e), fr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
177
177
|
}
|
|
178
178
|
function _r(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
179
179
|
const h = J;
|
|
@@ -183,7 +183,7 @@ function _r(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
183
183
|
ctx: [],
|
|
184
184
|
// state
|
|
185
185
|
props: o,
|
|
186
|
-
update:
|
|
186
|
+
update: H,
|
|
187
187
|
not_equal: i,
|
|
188
188
|
bound: Je(),
|
|
189
189
|
// lifecycle
|
|
@@ -201,13 +201,13 @@ function _r(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
201
201
|
};
|
|
202
202
|
s && s(u.root);
|
|
203
203
|
let l = !1;
|
|
204
|
-
if (u.ctx = r ? r(e, t.props || {}, (
|
|
205
|
-
const
|
|
206
|
-
return u.ctx && i(u.ctx[
|
|
204
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
205
|
+
const y = p.length ? p[0] : f;
|
|
206
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), l && gr(e, c)), f;
|
|
207
207
|
}) : [], u.update(), l = !0, K(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
208
208
|
if (t.hydrate) {
|
|
209
|
-
const
|
|
210
|
-
u.fragment && u.fragment.l(
|
|
209
|
+
const c = or(t.target);
|
|
210
|
+
u.fragment && u.fragment.l(c), c.forEach(V);
|
|
211
211
|
} else
|
|
212
212
|
u.fragment && u.fragment.c();
|
|
213
213
|
t.intro && br(e.$$.fragment), yr(e, t.target, t.anchor), Q();
|
|
@@ -257,7 +257,7 @@ typeof HTMLElement == "function" && (Et = class extends HTMLElement {
|
|
|
257
257
|
let o;
|
|
258
258
|
return {
|
|
259
259
|
c: function() {
|
|
260
|
-
o =
|
|
260
|
+
o = F("slot"), i !== "default" && E(o, "name", i);
|
|
261
261
|
},
|
|
262
262
|
/**
|
|
263
263
|
* @param {HTMLElement} target
|
|
@@ -267,7 +267,7 @@ typeof HTMLElement == "function" && (Et = class extends HTMLElement {
|
|
|
267
267
|
ee(h, o, u);
|
|
268
268
|
},
|
|
269
269
|
d: function(h) {
|
|
270
|
-
h &&
|
|
270
|
+
h && V(o);
|
|
271
271
|
}
|
|
272
272
|
};
|
|
273
273
|
};
|
|
@@ -409,7 +409,7 @@ class Er {
|
|
|
409
409
|
$$set = void 0;
|
|
410
410
|
/** @returns {void} */
|
|
411
411
|
$destroy() {
|
|
412
|
-
vr(this, 1), this.$destroy =
|
|
412
|
+
vr(this, 1), this.$destroy = H;
|
|
413
413
|
}
|
|
414
414
|
/**
|
|
415
415
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -419,7 +419,7 @@ class Er {
|
|
|
419
419
|
*/
|
|
420
420
|
$on(t, r) {
|
|
421
421
|
if (!We(r))
|
|
422
|
-
return
|
|
422
|
+
return H;
|
|
423
423
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
424
424
|
return n.push(r), () => {
|
|
425
425
|
const i = n.indexOf(r);
|
|
@@ -505,7 +505,7 @@ function Le(e, t, r) {
|
|
|
505
505
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
506
506
|
return e.concat(o || t);
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function P(e) {
|
|
509
509
|
return typeof e == "function";
|
|
510
510
|
}
|
|
511
511
|
function St(e) {
|
|
@@ -523,7 +523,7 @@ var xe = St(function(e) {
|
|
|
523
523
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
524
524
|
};
|
|
525
525
|
});
|
|
526
|
-
function
|
|
526
|
+
function Me(e, t) {
|
|
527
527
|
if (e) {
|
|
528
528
|
var r = e.indexOf(t);
|
|
529
529
|
0 <= r && e.splice(r, 1);
|
|
@@ -558,20 +558,20 @@ var pe = function() {
|
|
|
558
558
|
else
|
|
559
559
|
s.remove(this);
|
|
560
560
|
var l = this.initialTeardown;
|
|
561
|
-
if (
|
|
561
|
+
if (P(l))
|
|
562
562
|
try {
|
|
563
563
|
l();
|
|
564
564
|
} catch (m) {
|
|
565
565
|
o = m instanceof xe ? m.errors : [m];
|
|
566
566
|
}
|
|
567
|
-
var
|
|
568
|
-
if (
|
|
567
|
+
var c = this._finalizers;
|
|
568
|
+
if (c) {
|
|
569
569
|
this._finalizers = null;
|
|
570
570
|
try {
|
|
571
|
-
for (var
|
|
572
|
-
var
|
|
571
|
+
for (var f = Ne(c), p = f.next(); !p.done; p = f.next()) {
|
|
572
|
+
var y = p.value;
|
|
573
573
|
try {
|
|
574
|
-
qe(
|
|
574
|
+
qe(y);
|
|
575
575
|
} catch (m) {
|
|
576
576
|
o = o ?? [], m instanceof xe ? o = Le(Le([], Ce(o)), Ce(m.errors)) : o.push(m);
|
|
577
577
|
}
|
|
@@ -580,7 +580,7 @@ var pe = function() {
|
|
|
580
580
|
n = { error: m };
|
|
581
581
|
} finally {
|
|
582
582
|
try {
|
|
583
|
-
p && !p.done && (i =
|
|
583
|
+
p && !p.done && (i = f.return) && i.call(f);
|
|
584
584
|
} finally {
|
|
585
585
|
if (n)
|
|
586
586
|
throw n.error;
|
|
@@ -611,20 +611,20 @@ var pe = function() {
|
|
|
611
611
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
612
612
|
}, e.prototype._removeParent = function(t) {
|
|
613
613
|
var r = this._parentage;
|
|
614
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
614
|
+
r === t ? this._parentage = null : Array.isArray(r) && Me(r, t);
|
|
615
615
|
}, e.prototype.remove = function(t) {
|
|
616
616
|
var r = this._finalizers;
|
|
617
|
-
r &&
|
|
617
|
+
r && Me(r, t), t instanceof e && t._removeParent(this);
|
|
618
618
|
}, e.EMPTY = function() {
|
|
619
619
|
var t = new e();
|
|
620
620
|
return t.closed = !0, t;
|
|
621
621
|
}(), e;
|
|
622
622
|
}(), wt = pe.EMPTY;
|
|
623
623
|
function Ht(e) {
|
|
624
|
-
return e instanceof pe || e && "closed" in e &&
|
|
624
|
+
return e instanceof pe || e && "closed" in e && P(e.remove) && P(e.add) && P(e.unsubscribe);
|
|
625
625
|
}
|
|
626
626
|
function qe(e) {
|
|
627
|
-
|
|
627
|
+
P(e) ? e() : e.unsubscribe();
|
|
628
628
|
}
|
|
629
629
|
var wr = {
|
|
630
630
|
Promise: void 0
|
|
@@ -656,7 +656,7 @@ var Tt = function(e) {
|
|
|
656
656
|
return n.isStopped = !1, r ? (n.destination = r, Ht(r) && r.add(n)) : n.destination = Pr, n;
|
|
657
657
|
}
|
|
658
658
|
return t.create = function(r, n, i) {
|
|
659
|
-
return new
|
|
659
|
+
return new $e(r, n, i);
|
|
660
660
|
}, t.prototype.next = function(r) {
|
|
661
661
|
this.isStopped || this._next(r);
|
|
662
662
|
}, t.prototype.error = function(r) {
|
|
@@ -711,11 +711,11 @@ var Tt = function(e) {
|
|
|
711
711
|
oe(r);
|
|
712
712
|
}
|
|
713
713
|
}, e;
|
|
714
|
-
}(),
|
|
714
|
+
}(), $e = function(e) {
|
|
715
715
|
te(t, e);
|
|
716
716
|
function t(r, n, i) {
|
|
717
717
|
var o = e.call(this) || this, s;
|
|
718
|
-
return
|
|
718
|
+
return P(r) || !r ? s = {
|
|
719
719
|
next: r ?? void 0,
|
|
720
720
|
error: n ?? void 0,
|
|
721
721
|
complete: i ?? void 0
|
|
@@ -755,7 +755,7 @@ var et = function() {
|
|
|
755
755
|
var r = new e();
|
|
756
756
|
return r.source = this, r.operator = t, r;
|
|
757
757
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
758
|
-
var i = this, o = Lr(t) ? t : new
|
|
758
|
+
var i = this, o = Lr(t) ? t : new $e(t, r, n);
|
|
759
759
|
return ue(function() {
|
|
760
760
|
var s = i, a = s.operator, h = s.source;
|
|
761
761
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -769,7 +769,7 @@ var et = function() {
|
|
|
769
769
|
}, e.prototype.forEach = function(t, r) {
|
|
770
770
|
var n = this;
|
|
771
771
|
return r = tt(r), new r(function(i, o) {
|
|
772
|
-
var s = new
|
|
772
|
+
var s = new $e({
|
|
773
773
|
next: function(a) {
|
|
774
774
|
try {
|
|
775
775
|
t(a);
|
|
@@ -812,12 +812,12 @@ function tt(e) {
|
|
|
812
812
|
return (t = e ?? wr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
813
813
|
}
|
|
814
814
|
function Cr(e) {
|
|
815
|
-
return e &&
|
|
815
|
+
return e && P(e.next) && P(e.error) && P(e.complete);
|
|
816
816
|
}
|
|
817
817
|
function Lr(e) {
|
|
818
818
|
return e && e instanceof Tt || Cr(e) && Ht(e);
|
|
819
819
|
}
|
|
820
|
-
var
|
|
820
|
+
var Mr = St(function(e) {
|
|
821
821
|
return function() {
|
|
822
822
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
823
823
|
};
|
|
@@ -832,7 +832,7 @@ var $r = St(function(e) {
|
|
|
832
832
|
return n.operator = r, n;
|
|
833
833
|
}, t.prototype._throwIfClosed = function() {
|
|
834
834
|
if (this.closed)
|
|
835
|
-
throw new
|
|
835
|
+
throw new Mr();
|
|
836
836
|
}, t.prototype.next = function(r) {
|
|
837
837
|
var n = this;
|
|
838
838
|
ue(function() {
|
|
@@ -890,7 +890,7 @@ var $r = St(function(e) {
|
|
|
890
890
|
}, t.prototype._innerSubscribe = function(r) {
|
|
891
891
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
892
892
|
return o || s ? wt : (this.currentObservers = null, a.push(r), new pe(function() {
|
|
893
|
-
n.currentObservers = null,
|
|
893
|
+
n.currentObservers = null, Me(a, r);
|
|
894
894
|
}));
|
|
895
895
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
896
896
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
@@ -925,7 +925,7 @@ var $r = St(function(e) {
|
|
|
925
925
|
return (At.delegate || Date).now();
|
|
926
926
|
},
|
|
927
927
|
delegate: void 0
|
|
928
|
-
},
|
|
928
|
+
}, $r = function(e) {
|
|
929
929
|
te(t, e);
|
|
930
930
|
function t(r, n, i) {
|
|
931
931
|
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = At);
|
|
@@ -951,7 +951,7 @@ var $r = St(function(e) {
|
|
|
951
951
|
}(Bt);
|
|
952
952
|
const nt = [], it = {}, Rr = (e, t = 0) => {
|
|
953
953
|
if (nt.indexOf(e) == -1) {
|
|
954
|
-
const r = new
|
|
954
|
+
const r = new $r(t);
|
|
955
955
|
it[e] = r, nt.push(e);
|
|
956
956
|
}
|
|
957
957
|
return it[e];
|
|
@@ -961,7 +961,7 @@ function Ur(e, t) {
|
|
|
961
961
|
subscribe: de(e, t).subscribe
|
|
962
962
|
};
|
|
963
963
|
}
|
|
964
|
-
function de(e, t =
|
|
964
|
+
function de(e, t = H) {
|
|
965
965
|
let r;
|
|
966
966
|
const n = /* @__PURE__ */ new Set();
|
|
967
967
|
function i(a) {
|
|
@@ -979,15 +979,15 @@ function de(e, t = w) {
|
|
|
979
979
|
function o(a) {
|
|
980
980
|
i(a(e));
|
|
981
981
|
}
|
|
982
|
-
function s(a, h =
|
|
982
|
+
function s(a, h = H) {
|
|
983
983
|
const u = [a, h];
|
|
984
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
984
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || H), a(e), () => {
|
|
985
985
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
986
986
|
};
|
|
987
987
|
}
|
|
988
988
|
return { set: i, update: o, subscribe: s };
|
|
989
989
|
}
|
|
990
|
-
function
|
|
990
|
+
function X(e, t, r) {
|
|
991
991
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
992
992
|
if (!i.every(Boolean))
|
|
993
993
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -995,33 +995,33 @@ function V(e, t, r) {
|
|
|
995
995
|
return Ur(r, (s, a) => {
|
|
996
996
|
let h = !1;
|
|
997
997
|
const u = [];
|
|
998
|
-
let l = 0,
|
|
999
|
-
const
|
|
998
|
+
let l = 0, c = H;
|
|
999
|
+
const f = () => {
|
|
1000
1000
|
if (l)
|
|
1001
1001
|
return;
|
|
1002
|
-
|
|
1003
|
-
const
|
|
1004
|
-
o ? s(
|
|
1002
|
+
c();
|
|
1003
|
+
const y = t(n ? u[0] : u, s, a);
|
|
1004
|
+
o ? s(y) : c = We(y) ? y : H;
|
|
1005
1005
|
}, p = i.map(
|
|
1006
|
-
(
|
|
1007
|
-
|
|
1008
|
-
(
|
|
1009
|
-
u[m] =
|
|
1006
|
+
(y, m) => Kt(
|
|
1007
|
+
y,
|
|
1008
|
+
(x) => {
|
|
1009
|
+
u[m] = x, l &= ~(1 << m), h && f();
|
|
1010
1010
|
},
|
|
1011
1011
|
() => {
|
|
1012
1012
|
l |= 1 << m;
|
|
1013
1013
|
}
|
|
1014
1014
|
)
|
|
1015
1015
|
);
|
|
1016
|
-
return h = !0,
|
|
1017
|
-
K(p),
|
|
1016
|
+
return h = !0, f(), function() {
|
|
1017
|
+
K(p), c(), h = !1;
|
|
1018
1018
|
};
|
|
1019
1019
|
});
|
|
1020
1020
|
}
|
|
1021
|
-
function
|
|
1021
|
+
function Fr(e) {
|
|
1022
1022
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1023
1023
|
}
|
|
1024
|
-
var
|
|
1024
|
+
var Dr = function(t) {
|
|
1025
1025
|
return Gr(t) && !jr(t);
|
|
1026
1026
|
};
|
|
1027
1027
|
function Gr(e) {
|
|
@@ -1079,7 +1079,7 @@ function Yr(e, t, r) {
|
|
|
1079
1079
|
}), n;
|
|
1080
1080
|
}
|
|
1081
1081
|
function D(e, t, r) {
|
|
1082
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || zr, r.isMergeableObject = r.isMergeableObject ||
|
|
1082
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || zr, r.isMergeableObject = r.isMergeableObject || Dr, r.cloneUnlessOtherwiseSpecified = Y;
|
|
1083
1083
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1084
1084
|
return o ? n ? r.arrayMerge(e, t, r) : Yr(e, t, r) : Y(t, r);
|
|
1085
1085
|
}
|
|
@@ -1091,7 +1091,7 @@ D.all = function(t, r) {
|
|
|
1091
1091
|
}, {});
|
|
1092
1092
|
};
|
|
1093
1093
|
var qr = D, Kr = qr;
|
|
1094
|
-
const en = /* @__PURE__ */
|
|
1094
|
+
const en = /* @__PURE__ */ Fr(Kr);
|
|
1095
1095
|
var Re = function(e, t) {
|
|
1096
1096
|
return Re = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1097
1097
|
r.__proto__ = n;
|
|
@@ -1109,15 +1109,15 @@ function be(e, t) {
|
|
|
1109
1109
|
}
|
|
1110
1110
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1111
1111
|
}
|
|
1112
|
-
var
|
|
1113
|
-
return
|
|
1112
|
+
var A = function() {
|
|
1113
|
+
return A = Object.assign || function(t) {
|
|
1114
1114
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1115
1115
|
r = arguments[n];
|
|
1116
1116
|
for (var o in r)
|
|
1117
1117
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1118
1118
|
}
|
|
1119
1119
|
return t;
|
|
1120
|
-
},
|
|
1120
|
+
}, A.apply(this, arguments);
|
|
1121
1121
|
};
|
|
1122
1122
|
function tn(e, t) {
|
|
1123
1123
|
var r = {};
|
|
@@ -1192,18 +1192,18 @@ var an = function() {
|
|
|
1192
1192
|
return t;
|
|
1193
1193
|
}, ce.apply(this, arguments);
|
|
1194
1194
|
};
|
|
1195
|
-
var
|
|
1195
|
+
var d;
|
|
1196
1196
|
(function(e) {
|
|
1197
1197
|
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";
|
|
1198
|
-
})(
|
|
1198
|
+
})(d || (d = {}));
|
|
1199
1199
|
var g;
|
|
1200
1200
|
(function(e) {
|
|
1201
1201
|
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";
|
|
1202
1202
|
})(g || (g = {}));
|
|
1203
|
-
var
|
|
1203
|
+
var G;
|
|
1204
1204
|
(function(e) {
|
|
1205
1205
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1206
|
-
})(
|
|
1206
|
+
})(G || (G = {}));
|
|
1207
1207
|
function st(e) {
|
|
1208
1208
|
return e.type === g.literal;
|
|
1209
1209
|
}
|
|
@@ -1219,10 +1219,10 @@ function Ct(e) {
|
|
|
1219
1219
|
function Lt(e) {
|
|
1220
1220
|
return e.type === g.time;
|
|
1221
1221
|
}
|
|
1222
|
-
function
|
|
1222
|
+
function Mt(e) {
|
|
1223
1223
|
return e.type === g.select;
|
|
1224
1224
|
}
|
|
1225
|
-
function
|
|
1225
|
+
function $t(e) {
|
|
1226
1226
|
return e.type === g.plural;
|
|
1227
1227
|
}
|
|
1228
1228
|
function cn(e) {
|
|
@@ -1232,12 +1232,12 @@ function Rt(e) {
|
|
|
1232
1232
|
return e.type === g.tag;
|
|
1233
1233
|
}
|
|
1234
1234
|
function Ut(e) {
|
|
1235
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1235
|
+
return !!(e && typeof e == "object" && e.type === G.number);
|
|
1236
1236
|
}
|
|
1237
1237
|
function Ue(e) {
|
|
1238
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1238
|
+
return !!(e && typeof e == "object" && e.type === G.dateTime);
|
|
1239
1239
|
}
|
|
1240
|
-
var
|
|
1240
|
+
var Ft = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, fn = /(?:[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;
|
|
1241
1241
|
function mn(e) {
|
|
1242
1242
|
var t = {};
|
|
1243
1243
|
return e.replace(fn, function(r) {
|
|
@@ -1343,15 +1343,15 @@ var pn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
|
1343
1343
|
function dn(e) {
|
|
1344
1344
|
if (e.length === 0)
|
|
1345
1345
|
throw new Error("Number skeleton cannot be empty");
|
|
1346
|
-
for (var t = e.split(pn).filter(function(
|
|
1347
|
-
return
|
|
1346
|
+
for (var t = e.split(pn).filter(function(f) {
|
|
1347
|
+
return f.length > 0;
|
|
1348
1348
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1349
1349
|
var o = i[n], s = o.split("/");
|
|
1350
1350
|
if (s.length === 0)
|
|
1351
1351
|
throw new Error("Invalid number skeleton");
|
|
1352
1352
|
for (var a = s[0], h = s.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
1353
|
-
var
|
|
1354
|
-
if (
|
|
1353
|
+
var c = l[u];
|
|
1354
|
+
if (c.length === 0)
|
|
1355
1355
|
throw new Error("Invalid number skeleton");
|
|
1356
1356
|
}
|
|
1357
1357
|
r.push({ stem: a, options: h });
|
|
@@ -1361,10 +1361,10 @@ function dn(e) {
|
|
|
1361
1361
|
function bn(e) {
|
|
1362
1362
|
return e.replace(/^(.*?)-/, "");
|
|
1363
1363
|
}
|
|
1364
|
-
var at = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,
|
|
1364
|
+
var at = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Dt = /^(@+)?(\+|#+)?[rs]?$/g, yn = /(\*)(0+)|(#+)(0+)|(0+)/g, Gt = /^(0+)$/;
|
|
1365
1365
|
function ut(e) {
|
|
1366
1366
|
var t = {};
|
|
1367
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1367
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Dt, function(r, n, i) {
|
|
1368
1368
|
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)), "";
|
|
1369
1369
|
}), t;
|
|
1370
1370
|
}
|
|
@@ -1512,11 +1512,11 @@ function gn(e) {
|
|
|
1512
1512
|
case "integer-width":
|
|
1513
1513
|
if (i.options.length > 1)
|
|
1514
1514
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1515
|
-
i.options[0].replace(yn, function(h, u, l,
|
|
1515
|
+
i.options[0].replace(yn, function(h, u, l, c, f, p) {
|
|
1516
1516
|
if (u)
|
|
1517
1517
|
t.minimumIntegerDigits = l.length;
|
|
1518
1518
|
else {
|
|
1519
|
-
if (
|
|
1519
|
+
if (c && f)
|
|
1520
1520
|
throw new Error("We currently do not support maximum integer digits");
|
|
1521
1521
|
if (p)
|
|
1522
1522
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1532,14 +1532,14 @@ function gn(e) {
|
|
|
1532
1532
|
if (at.test(i.stem)) {
|
|
1533
1533
|
if (i.options.length > 1)
|
|
1534
1534
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1535
|
-
i.stem.replace(at, function(h, u, l,
|
|
1536
|
-
return l === "*" ? t.minimumFractionDigits = u.length :
|
|
1535
|
+
i.stem.replace(at, function(h, u, l, c, f, p) {
|
|
1536
|
+
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), "";
|
|
1537
1537
|
});
|
|
1538
1538
|
var o = i.options[0];
|
|
1539
1539
|
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), ut(o)));
|
|
1540
1540
|
continue;
|
|
1541
1541
|
}
|
|
1542
|
-
if (
|
|
1542
|
+
if (Dt.test(i.stem)) {
|
|
1543
1543
|
t = _(_({}, t), ut(i.stem));
|
|
1544
1544
|
continue;
|
|
1545
1545
|
}
|
|
@@ -3003,18 +3003,18 @@ function xn(e) {
|
|
|
3003
3003
|
var i = se[n || ""] || se[r || ""] || se["".concat(r, "-001")] || se["001"];
|
|
3004
3004
|
return i[0];
|
|
3005
3005
|
}
|
|
3006
|
-
var He, En = new RegExp("^".concat(
|
|
3007
|
-
function
|
|
3006
|
+
var He, En = new RegExp("^".concat(Ft.source, "*")), Sn = new RegExp("".concat(Ft.source, "*$"));
|
|
3007
|
+
function b(e, t) {
|
|
3008
3008
|
return { start: e, end: t };
|
|
3009
3009
|
}
|
|
3010
3010
|
var wn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Hn = !!String.fromCodePoint, Tn = !!Object.fromEntries, Bn = !!String.prototype.codePointAt, An = !!String.prototype.trimStart, Pn = !!String.prototype.trimEnd, On = !!Number.isSafeInteger, In = On ? Number.isSafeInteger : function(e) {
|
|
3011
3011
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3012
|
-
},
|
|
3012
|
+
}, Fe = !0;
|
|
3013
3013
|
try {
|
|
3014
3014
|
var Nn = Vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3015
|
-
|
|
3015
|
+
Fe = ((He = Nn.exec("a")) === null || He === void 0 ? void 0 : He[0]) === "a";
|
|
3016
3016
|
} catch {
|
|
3017
|
-
|
|
3017
|
+
Fe = !1;
|
|
3018
3018
|
}
|
|
3019
3019
|
var lt = wn ? (
|
|
3020
3020
|
// Native
|
|
@@ -3026,7 +3026,7 @@ var lt = wn ? (
|
|
|
3026
3026
|
function(t, r, n) {
|
|
3027
3027
|
return t.slice(n, n + r.length) === r;
|
|
3028
3028
|
}
|
|
3029
|
-
),
|
|
3029
|
+
), De = Hn ? String.fromCodePoint : (
|
|
3030
3030
|
// IE11
|
|
3031
3031
|
function() {
|
|
3032
3032
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3089,7 +3089,7 @@ function Vt(e, t) {
|
|
|
3089
3089
|
return new RegExp(e, t);
|
|
3090
3090
|
}
|
|
3091
3091
|
var Ge;
|
|
3092
|
-
if (
|
|
3092
|
+
if (Fe) {
|
|
3093
3093
|
var ft = Vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3094
3094
|
Ge = function(t, r) {
|
|
3095
3095
|
var n;
|
|
@@ -3105,9 +3105,9 @@ if (De) {
|
|
|
3105
3105
|
break;
|
|
3106
3106
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3107
3107
|
}
|
|
3108
|
-
return
|
|
3108
|
+
return De.apply(void 0, n);
|
|
3109
3109
|
};
|
|
3110
|
-
var
|
|
3110
|
+
var Mn = (
|
|
3111
3111
|
/** @class */
|
|
3112
3112
|
function() {
|
|
3113
3113
|
function e(t, r) {
|
|
@@ -3132,12 +3132,12 @@ var $n = (
|
|
|
3132
3132
|
var a = this.clonePosition();
|
|
3133
3133
|
this.bump(), i.push({
|
|
3134
3134
|
type: g.pound,
|
|
3135
|
-
location:
|
|
3135
|
+
location: b(a, this.clonePosition())
|
|
3136
3136
|
});
|
|
3137
3137
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3138
3138
|
if (n)
|
|
3139
3139
|
break;
|
|
3140
|
-
return this.error(
|
|
3140
|
+
return this.error(d.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
3141
3141
|
} else if (o === 60 && !this.ignoreTag && je(this.peek() || 0)) {
|
|
3142
3142
|
var s = this.parseTag(t, r);
|
|
3143
3143
|
if (s.err)
|
|
@@ -3161,7 +3161,7 @@ var $n = (
|
|
|
3161
3161
|
val: {
|
|
3162
3162
|
type: g.literal,
|
|
3163
3163
|
value: "<".concat(i, "/>"),
|
|
3164
|
-
location:
|
|
3164
|
+
location: b(n, this.clonePosition())
|
|
3165
3165
|
},
|
|
3166
3166
|
err: null
|
|
3167
3167
|
};
|
|
@@ -3172,21 +3172,21 @@ var $n = (
|
|
|
3172
3172
|
var s = o.val, a = this.clonePosition();
|
|
3173
3173
|
if (this.bumpIf("</")) {
|
|
3174
3174
|
if (this.isEOF() || !je(this.char()))
|
|
3175
|
-
return this.error(
|
|
3175
|
+
return this.error(d.INVALID_TAG, b(a, this.clonePosition()));
|
|
3176
3176
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3177
|
-
return i !== u ? this.error(
|
|
3177
|
+
return i !== u ? this.error(d.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3178
3178
|
val: {
|
|
3179
3179
|
type: g.tag,
|
|
3180
3180
|
value: i,
|
|
3181
3181
|
children: s,
|
|
3182
|
-
location:
|
|
3182
|
+
location: b(n, this.clonePosition())
|
|
3183
3183
|
},
|
|
3184
3184
|
err: null
|
|
3185
|
-
} : this.error(
|
|
3185
|
+
} : this.error(d.INVALID_TAG, b(a, this.clonePosition())));
|
|
3186
3186
|
} else
|
|
3187
|
-
return this.error(
|
|
3187
|
+
return this.error(d.UNCLOSED_TAG, b(n, this.clonePosition()));
|
|
3188
3188
|
} else
|
|
3189
|
-
return this.error(
|
|
3189
|
+
return this.error(d.INVALID_TAG, b(n, this.clonePosition()));
|
|
3190
3190
|
}, e.prototype.parseTagName = function() {
|
|
3191
3191
|
var t = this.offset();
|
|
3192
3192
|
for (this.bump(); !this.isEOF() && Rn(this.char()); )
|
|
@@ -3211,14 +3211,14 @@ var $n = (
|
|
|
3211
3211
|
}
|
|
3212
3212
|
break;
|
|
3213
3213
|
}
|
|
3214
|
-
var h =
|
|
3214
|
+
var h = b(n, this.clonePosition());
|
|
3215
3215
|
return {
|
|
3216
3216
|
val: { type: g.literal, value: i, location: h },
|
|
3217
3217
|
err: null
|
|
3218
3218
|
};
|
|
3219
3219
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3220
3220
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3221
|
-
|
|
3221
|
+
!$n(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3222
3222
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3223
3223
|
if (this.isEOF() || this.char() !== 39)
|
|
3224
3224
|
return null;
|
|
@@ -3252,23 +3252,23 @@ var $n = (
|
|
|
3252
3252
|
r.push(n);
|
|
3253
3253
|
this.bump();
|
|
3254
3254
|
}
|
|
3255
|
-
return
|
|
3255
|
+
return De.apply(void 0, r);
|
|
3256
3256
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3257
3257
|
if (this.isEOF())
|
|
3258
3258
|
return null;
|
|
3259
3259
|
var n = this.char();
|
|
3260
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3260
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), De(n));
|
|
3261
3261
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3262
3262
|
var n = this.clonePosition();
|
|
3263
3263
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3264
|
-
return this.error(
|
|
3264
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
3265
3265
|
if (this.char() === 125)
|
|
3266
|
-
return this.bump(), this.error(
|
|
3266
|
+
return this.bump(), this.error(d.EMPTY_ARGUMENT, b(n, this.clonePosition()));
|
|
3267
3267
|
var i = this.parseIdentifierIfPossible().value;
|
|
3268
3268
|
if (!i)
|
|
3269
|
-
return this.error(
|
|
3269
|
+
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3270
3270
|
if (this.bumpSpace(), this.isEOF())
|
|
3271
|
-
return this.error(
|
|
3271
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
3272
3272
|
switch (this.char()) {
|
|
3273
3273
|
case 125:
|
|
3274
3274
|
return this.bump(), {
|
|
@@ -3276,25 +3276,25 @@ var $n = (
|
|
|
3276
3276
|
type: g.argument,
|
|
3277
3277
|
// value does not include the opening and closing braces.
|
|
3278
3278
|
value: i,
|
|
3279
|
-
location:
|
|
3279
|
+
location: b(n, this.clonePosition())
|
|
3280
3280
|
},
|
|
3281
3281
|
err: null
|
|
3282
3282
|
};
|
|
3283
3283
|
case 44:
|
|
3284
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3284
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3285
3285
|
default:
|
|
3286
|
-
return this.error(
|
|
3286
|
+
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3287
3287
|
}
|
|
3288
3288
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3289
3289
|
var t = this.clonePosition(), r = this.offset(), n = Ge(this.message, r), i = r + n.length;
|
|
3290
3290
|
this.bumpTo(i);
|
|
3291
|
-
var o = this.clonePosition(), s =
|
|
3291
|
+
var o = this.clonePosition(), s = b(t, o);
|
|
3292
3292
|
return { value: n, location: s };
|
|
3293
3293
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3294
3294
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3295
3295
|
switch (a) {
|
|
3296
3296
|
case "":
|
|
3297
|
-
return this.error(
|
|
3297
|
+
return this.error(d.EXPECT_ARGUMENT_TYPE, b(s, h));
|
|
3298
3298
|
case "number":
|
|
3299
3299
|
case "date":
|
|
3300
3300
|
case "time": {
|
|
@@ -3302,40 +3302,40 @@ var $n = (
|
|
|
3302
3302
|
var u = null;
|
|
3303
3303
|
if (this.bumpIf(",")) {
|
|
3304
3304
|
this.bumpSpace();
|
|
3305
|
-
var l = this.clonePosition(),
|
|
3306
|
-
if (
|
|
3307
|
-
return
|
|
3308
|
-
var
|
|
3309
|
-
if (
|
|
3310
|
-
return this.error(
|
|
3311
|
-
var p =
|
|
3312
|
-
u = { style:
|
|
3305
|
+
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3306
|
+
if (c.err)
|
|
3307
|
+
return c;
|
|
3308
|
+
var f = Ln(c.val);
|
|
3309
|
+
if (f.length === 0)
|
|
3310
|
+
return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3311
|
+
var p = b(l, this.clonePosition());
|
|
3312
|
+
u = { style: f, styleLocation: p };
|
|
3313
3313
|
}
|
|
3314
|
-
var
|
|
3315
|
-
if (
|
|
3316
|
-
return
|
|
3317
|
-
var m =
|
|
3314
|
+
var y = this.tryParseArgumentClose(i);
|
|
3315
|
+
if (y.err)
|
|
3316
|
+
return y;
|
|
3317
|
+
var m = b(i, this.clonePosition());
|
|
3318
3318
|
if (u && lt(u?.style, "::", 0)) {
|
|
3319
|
-
var
|
|
3319
|
+
var x = Cn(u.style.slice(2));
|
|
3320
3320
|
if (a === "number") {
|
|
3321
|
-
var
|
|
3322
|
-
return
|
|
3323
|
-
val: { type: g.number, value: n, location: m, style:
|
|
3321
|
+
var c = this.parseNumberSkeletonFromString(x, u.styleLocation);
|
|
3322
|
+
return c.err ? c : {
|
|
3323
|
+
val: { type: g.number, value: n, location: m, style: c.val },
|
|
3324
3324
|
err: null
|
|
3325
3325
|
};
|
|
3326
3326
|
} else {
|
|
3327
|
-
if (
|
|
3328
|
-
return this.error(
|
|
3329
|
-
var
|
|
3330
|
-
this.locale && (
|
|
3331
|
-
var
|
|
3332
|
-
type:
|
|
3333
|
-
pattern:
|
|
3327
|
+
if (x.length === 0)
|
|
3328
|
+
return this.error(d.EXPECT_DATE_TIME_SKELETON, m);
|
|
3329
|
+
var v = x;
|
|
3330
|
+
this.locale && (v = _n(x, this.locale));
|
|
3331
|
+
var f = {
|
|
3332
|
+
type: G.dateTime,
|
|
3333
|
+
pattern: v,
|
|
3334
3334
|
location: u.styleLocation,
|
|
3335
|
-
parsedOptions: this.shouldParseSkeletons ? mn(
|
|
3336
|
-
},
|
|
3335
|
+
parsedOptions: this.shouldParseSkeletons ? mn(v) : {}
|
|
3336
|
+
}, T = a === "date" ? g.date : g.time;
|
|
3337
3337
|
return {
|
|
3338
|
-
val: { type:
|
|
3338
|
+
val: { type: T, value: n, location: m, style: f },
|
|
3339
3339
|
err: null
|
|
3340
3340
|
};
|
|
3341
3341
|
}
|
|
@@ -3353,27 +3353,27 @@ var $n = (
|
|
|
3353
3353
|
case "plural":
|
|
3354
3354
|
case "selectordinal":
|
|
3355
3355
|
case "select": {
|
|
3356
|
-
var
|
|
3356
|
+
var w = this.clonePosition();
|
|
3357
3357
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3358
|
-
return this.error(
|
|
3358
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(w, ce({}, w)));
|
|
3359
3359
|
this.bumpSpace();
|
|
3360
|
-
var
|
|
3361
|
-
if (a !== "select" &&
|
|
3360
|
+
var I = this.parseIdentifierIfPossible(), N = 0;
|
|
3361
|
+
if (a !== "select" && I.value === "offset") {
|
|
3362
3362
|
if (!this.bumpIf(":"))
|
|
3363
|
-
return this.error(
|
|
3363
|
+
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
3364
3364
|
this.bumpSpace();
|
|
3365
|
-
var
|
|
3366
|
-
if (
|
|
3367
|
-
return
|
|
3368
|
-
this.bumpSpace(),
|
|
3365
|
+
var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3366
|
+
if (c.err)
|
|
3367
|
+
return c;
|
|
3368
|
+
this.bumpSpace(), I = this.parseIdentifierIfPossible(), N = c.val;
|
|
3369
3369
|
}
|
|
3370
|
-
var ie = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
3370
|
+
var ie = this.tryParsePluralOrSelectOptions(t, a, r, I);
|
|
3371
3371
|
if (ie.err)
|
|
3372
3372
|
return ie;
|
|
3373
|
-
var
|
|
3374
|
-
if (
|
|
3375
|
-
return
|
|
3376
|
-
var Qe =
|
|
3373
|
+
var y = this.tryParseArgumentClose(i);
|
|
3374
|
+
if (y.err)
|
|
3375
|
+
return y;
|
|
3376
|
+
var Qe = b(i, this.clonePosition());
|
|
3377
3377
|
return a === "select" ? {
|
|
3378
3378
|
val: {
|
|
3379
3379
|
type: g.select,
|
|
@@ -3387,7 +3387,7 @@ var $n = (
|
|
|
3387
3387
|
type: g.plural,
|
|
3388
3388
|
value: n,
|
|
3389
3389
|
options: ct(ie.val),
|
|
3390
|
-
offset:
|
|
3390
|
+
offset: N,
|
|
3391
3391
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3392
3392
|
location: Qe
|
|
3393
3393
|
},
|
|
@@ -3395,10 +3395,10 @@ var $n = (
|
|
|
3395
3395
|
};
|
|
3396
3396
|
}
|
|
3397
3397
|
default:
|
|
3398
|
-
return this.error(
|
|
3398
|
+
return this.error(d.INVALID_ARGUMENT_TYPE, b(s, h));
|
|
3399
3399
|
}
|
|
3400
3400
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3401
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3401
|
+
return this.isEOF() || this.char() !== 125 ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3402
3402
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3403
3403
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3404
3404
|
var n = this.char();
|
|
@@ -3407,7 +3407,7 @@ var $n = (
|
|
|
3407
3407
|
this.bump();
|
|
3408
3408
|
var i = this.clonePosition();
|
|
3409
3409
|
if (!this.bumpUntil("'"))
|
|
3410
|
-
return this.error(
|
|
3410
|
+
return this.error(d.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
|
|
3411
3411
|
this.bump();
|
|
3412
3412
|
break;
|
|
3413
3413
|
}
|
|
@@ -3439,11 +3439,11 @@ var $n = (
|
|
|
3439
3439
|
try {
|
|
3440
3440
|
n = dn(t);
|
|
3441
3441
|
} catch {
|
|
3442
|
-
return this.error(
|
|
3442
|
+
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
3443
3443
|
}
|
|
3444
3444
|
return {
|
|
3445
3445
|
val: {
|
|
3446
|
-
type:
|
|
3446
|
+
type: G.number,
|
|
3447
3447
|
tokens: n,
|
|
3448
3448
|
location: r,
|
|
3449
3449
|
parsedOptions: this.shouldParseSkeletons ? gn(n) : {}
|
|
@@ -3453,36 +3453,36 @@ var $n = (
|
|
|
3453
3453
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3454
3454
|
for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
3455
3455
|
if (u.length === 0) {
|
|
3456
|
-
var
|
|
3456
|
+
var c = this.clonePosition();
|
|
3457
3457
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3458
|
-
var
|
|
3459
|
-
if (
|
|
3460
|
-
return
|
|
3461
|
-
l =
|
|
3458
|
+
var f = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3459
|
+
if (f.err)
|
|
3460
|
+
return f;
|
|
3461
|
+
l = b(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3462
3462
|
} else
|
|
3463
3463
|
break;
|
|
3464
3464
|
}
|
|
3465
3465
|
if (h.has(u))
|
|
3466
|
-
return this.error(r === "select" ?
|
|
3466
|
+
return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3467
3467
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3468
3468
|
var p = this.clonePosition();
|
|
3469
3469
|
if (!this.bumpIf("{"))
|
|
3470
|
-
return this.error(r === "select" ?
|
|
3471
|
-
var
|
|
3472
|
-
if (
|
|
3473
|
-
return
|
|
3470
|
+
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3471
|
+
var y = this.parseMessage(t + 1, r, n);
|
|
3472
|
+
if (y.err)
|
|
3473
|
+
return y;
|
|
3474
3474
|
var m = this.tryParseArgumentClose(p);
|
|
3475
3475
|
if (m.err)
|
|
3476
3476
|
return m;
|
|
3477
3477
|
a.push([
|
|
3478
3478
|
u,
|
|
3479
3479
|
{
|
|
3480
|
-
value:
|
|
3481
|
-
location:
|
|
3480
|
+
value: y.val,
|
|
3481
|
+
location: b(p, this.clonePosition())
|
|
3482
3482
|
}
|
|
3483
3483
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3484
3484
|
}
|
|
3485
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3485
|
+
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 };
|
|
3486
3486
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3487
3487
|
var n = 1, i = this.clonePosition();
|
|
3488
3488
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3493,7 +3493,7 @@ var $n = (
|
|
|
3493
3493
|
else
|
|
3494
3494
|
break;
|
|
3495
3495
|
}
|
|
3496
|
-
var h =
|
|
3496
|
+
var h = b(i, this.clonePosition());
|
|
3497
3497
|
return o ? (s *= n, In(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3498
3498
|
}, e.prototype.offset = function() {
|
|
3499
3499
|
return this.position.offset;
|
|
@@ -3563,7 +3563,7 @@ var $n = (
|
|
|
3563
3563
|
function je(e) {
|
|
3564
3564
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3565
3565
|
}
|
|
3566
|
-
function
|
|
3566
|
+
function $n(e) {
|
|
3567
3567
|
return je(e) || e === 47;
|
|
3568
3568
|
}
|
|
3569
3569
|
function Rn(e) {
|
|
@@ -3577,26 +3577,26 @@ function Un(e) {
|
|
|
3577
3577
|
}
|
|
3578
3578
|
function ke(e) {
|
|
3579
3579
|
e.forEach(function(t) {
|
|
3580
|
-
if (delete t.location,
|
|
3580
|
+
if (delete t.location, Mt(t) || $t(t))
|
|
3581
3581
|
for (var r in t.options)
|
|
3582
3582
|
delete t.options[r].location, ke(t.options[r].value);
|
|
3583
3583
|
else
|
|
3584
3584
|
Nt(t) && Ut(t.style) || (Ct(t) || Lt(t)) && Ue(t.style) ? delete t.style.location : Rt(t) && ke(t.children);
|
|
3585
3585
|
});
|
|
3586
3586
|
}
|
|
3587
|
-
function
|
|
3587
|
+
function Fn(e, t) {
|
|
3588
3588
|
t === void 0 && (t = {}), t = ce({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3589
|
-
var r = new
|
|
3589
|
+
var r = new Mn(e, t).parse();
|
|
3590
3590
|
if (r.err) {
|
|
3591
|
-
var n = SyntaxError(
|
|
3591
|
+
var n = SyntaxError(d[r.err.kind]);
|
|
3592
3592
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3593
3593
|
}
|
|
3594
3594
|
return t?.captureLocation || ke(r.val), r.val;
|
|
3595
3595
|
}
|
|
3596
|
-
var
|
|
3596
|
+
var j;
|
|
3597
3597
|
(function(e) {
|
|
3598
3598
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3599
|
-
})(
|
|
3599
|
+
})(j || (j = {}));
|
|
3600
3600
|
var ye = (
|
|
3601
3601
|
/** @class */
|
|
3602
3602
|
function(e) {
|
|
@@ -3614,16 +3614,16 @@ var ye = (
|
|
|
3614
3614
|
function(e) {
|
|
3615
3615
|
be(t, e);
|
|
3616
3616
|
function t(r, n, i, o) {
|
|
3617
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3617
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), j.INVALID_VALUE, o) || this;
|
|
3618
3618
|
}
|
|
3619
3619
|
return t;
|
|
3620
3620
|
}(ye)
|
|
3621
|
-
),
|
|
3621
|
+
), Dn = (
|
|
3622
3622
|
/** @class */
|
|
3623
3623
|
function(e) {
|
|
3624
3624
|
be(t, e);
|
|
3625
3625
|
function t(r, n, i) {
|
|
3626
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3626
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), j.INVALID_VALUE, i) || this;
|
|
3627
3627
|
}
|
|
3628
3628
|
return t;
|
|
3629
3629
|
}(ye)
|
|
@@ -3632,18 +3632,18 @@ var ye = (
|
|
|
3632
3632
|
function(e) {
|
|
3633
3633
|
be(t, e);
|
|
3634
3634
|
function t(r, n) {
|
|
3635
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3635
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), j.MISSING_VALUE, n) || this;
|
|
3636
3636
|
}
|
|
3637
3637
|
return t;
|
|
3638
3638
|
}(ye)
|
|
3639
|
-
),
|
|
3639
|
+
), S;
|
|
3640
3640
|
(function(e) {
|
|
3641
3641
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3642
|
-
})(
|
|
3642
|
+
})(S || (S = {}));
|
|
3643
3643
|
function jn(e) {
|
|
3644
3644
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3645
3645
|
var n = t[t.length - 1];
|
|
3646
|
-
return !n || n.type !==
|
|
3646
|
+
return !n || n.type !== S.literal || r.type !== S.literal ? t.push(r) : n.value += r.value, t;
|
|
3647
3647
|
}, []);
|
|
3648
3648
|
}
|
|
3649
3649
|
function kn(e) {
|
|
@@ -3653,7 +3653,7 @@ function he(e, t, r, n, i, o, s) {
|
|
|
3653
3653
|
if (e.length === 1 && st(e[0]))
|
|
3654
3654
|
return [
|
|
3655
3655
|
{
|
|
3656
|
-
type:
|
|
3656
|
+
type: S.literal,
|
|
3657
3657
|
value: e[0].value
|
|
3658
3658
|
}
|
|
3659
3659
|
];
|
|
@@ -3661,101 +3661,101 @@ function he(e, t, r, n, i, o, s) {
|
|
|
3661
3661
|
var l = u[h];
|
|
3662
3662
|
if (st(l)) {
|
|
3663
3663
|
a.push({
|
|
3664
|
-
type:
|
|
3664
|
+
type: S.literal,
|
|
3665
3665
|
value: l.value
|
|
3666
3666
|
});
|
|
3667
3667
|
continue;
|
|
3668
3668
|
}
|
|
3669
3669
|
if (cn(l)) {
|
|
3670
3670
|
typeof o == "number" && a.push({
|
|
3671
|
-
type:
|
|
3671
|
+
type: S.literal,
|
|
3672
3672
|
value: r.getNumberFormat(t).format(o)
|
|
3673
3673
|
});
|
|
3674
3674
|
continue;
|
|
3675
3675
|
}
|
|
3676
|
-
var
|
|
3677
|
-
if (!(i &&
|
|
3678
|
-
throw new Gn(
|
|
3679
|
-
var
|
|
3676
|
+
var c = l.value;
|
|
3677
|
+
if (!(i && c in i))
|
|
3678
|
+
throw new Gn(c, s);
|
|
3679
|
+
var f = i[c];
|
|
3680
3680
|
if (ln(l)) {
|
|
3681
|
-
(!
|
|
3682
|
-
type: typeof
|
|
3683
|
-
value:
|
|
3681
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3682
|
+
type: typeof f == "string" ? S.literal : S.object,
|
|
3683
|
+
value: f
|
|
3684
3684
|
});
|
|
3685
3685
|
continue;
|
|
3686
3686
|
}
|
|
3687
3687
|
if (Ct(l)) {
|
|
3688
3688
|
var p = typeof l.style == "string" ? n.date[l.style] : Ue(l.style) ? l.style.parsedOptions : void 0;
|
|
3689
3689
|
a.push({
|
|
3690
|
-
type:
|
|
3691
|
-
value: r.getDateTimeFormat(t, p).format(
|
|
3690
|
+
type: S.literal,
|
|
3691
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3692
3692
|
});
|
|
3693
3693
|
continue;
|
|
3694
3694
|
}
|
|
3695
3695
|
if (Lt(l)) {
|
|
3696
3696
|
var p = typeof l.style == "string" ? n.time[l.style] : Ue(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3697
3697
|
a.push({
|
|
3698
|
-
type:
|
|
3699
|
-
value: r.getDateTimeFormat(t, p).format(
|
|
3698
|
+
type: S.literal,
|
|
3699
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3700
3700
|
});
|
|
3701
3701
|
continue;
|
|
3702
3702
|
}
|
|
3703
3703
|
if (Nt(l)) {
|
|
3704
3704
|
var p = typeof l.style == "string" ? n.number[l.style] : Ut(l.style) ? l.style.parsedOptions : void 0;
|
|
3705
|
-
p && p.scale && (
|
|
3706
|
-
type:
|
|
3707
|
-
value: r.getNumberFormat(t, p).format(
|
|
3705
|
+
p && p.scale && (f = f * (p.scale || 1)), a.push({
|
|
3706
|
+
type: S.literal,
|
|
3707
|
+
value: r.getNumberFormat(t, p).format(f)
|
|
3708
3708
|
});
|
|
3709
3709
|
continue;
|
|
3710
3710
|
}
|
|
3711
3711
|
if (Rt(l)) {
|
|
3712
|
-
var
|
|
3713
|
-
if (!kn(
|
|
3714
|
-
throw new
|
|
3715
|
-
var
|
|
3716
|
-
return
|
|
3712
|
+
var y = l.children, m = l.value, x = i[m];
|
|
3713
|
+
if (!kn(x))
|
|
3714
|
+
throw new Dn(m, "function", s);
|
|
3715
|
+
var v = he(y, t, r, n, i, o), T = x(v.map(function(N) {
|
|
3716
|
+
return N.value;
|
|
3717
3717
|
}));
|
|
3718
|
-
Array.isArray(
|
|
3718
|
+
Array.isArray(T) || (T = [T]), a.push.apply(a, T.map(function(N) {
|
|
3719
3719
|
return {
|
|
3720
|
-
type: typeof
|
|
3721
|
-
value:
|
|
3720
|
+
type: typeof N == "string" ? S.literal : S.object,
|
|
3721
|
+
value: N
|
|
3722
3722
|
};
|
|
3723
3723
|
}));
|
|
3724
3724
|
}
|
|
3725
|
-
if (
|
|
3726
|
-
var
|
|
3727
|
-
if (!
|
|
3728
|
-
throw new mt(l.value,
|
|
3729
|
-
a.push.apply(a, he(
|
|
3725
|
+
if (Mt(l)) {
|
|
3726
|
+
var w = l.options[f] || l.options.other;
|
|
3727
|
+
if (!w)
|
|
3728
|
+
throw new mt(l.value, f, Object.keys(l.options), s);
|
|
3729
|
+
a.push.apply(a, he(w.value, t, r, n, i));
|
|
3730
3730
|
continue;
|
|
3731
3731
|
}
|
|
3732
|
-
if (
|
|
3733
|
-
var
|
|
3734
|
-
if (!
|
|
3732
|
+
if ($t(l)) {
|
|
3733
|
+
var w = l.options["=".concat(f)];
|
|
3734
|
+
if (!w) {
|
|
3735
3735
|
if (!Intl.PluralRules)
|
|
3736
3736
|
throw new ye(`Intl.PluralRules is not available in this environment.
|
|
3737
3737
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3738
|
-
`,
|
|
3739
|
-
var
|
|
3740
|
-
|
|
3738
|
+
`, j.MISSING_INTL_API, s);
|
|
3739
|
+
var I = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3740
|
+
w = l.options[I] || l.options.other;
|
|
3741
3741
|
}
|
|
3742
|
-
if (!
|
|
3743
|
-
throw new mt(l.value,
|
|
3744
|
-
a.push.apply(a, he(
|
|
3742
|
+
if (!w)
|
|
3743
|
+
throw new mt(l.value, f, Object.keys(l.options), s);
|
|
3744
|
+
a.push.apply(a, he(w.value, t, r, n, i, f - (l.offset || 0)));
|
|
3745
3745
|
continue;
|
|
3746
3746
|
}
|
|
3747
3747
|
}
|
|
3748
3748
|
return jn(a);
|
|
3749
3749
|
}
|
|
3750
3750
|
function Vn(e, t) {
|
|
3751
|
-
return t ?
|
|
3752
|
-
return r[n] =
|
|
3751
|
+
return t ? A(A(A({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3752
|
+
return r[n] = A(A({}, e[n]), t[n] || {}), r;
|
|
3753
3753
|
}, {})) : e;
|
|
3754
3754
|
}
|
|
3755
3755
|
function Xn(e, t) {
|
|
3756
3756
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3757
3757
|
return r[n] = Vn(e[n], t[n]), r;
|
|
3758
|
-
},
|
|
3758
|
+
}, A({}, e)) : e;
|
|
3759
3759
|
}
|
|
3760
3760
|
function Te(e) {
|
|
3761
3761
|
return {
|
|
@@ -3817,8 +3817,8 @@ var zn = (
|
|
|
3817
3817
|
var u = o.formatToParts(h);
|
|
3818
3818
|
if (u.length === 1)
|
|
3819
3819
|
return u[0].value;
|
|
3820
|
-
var l = u.reduce(function(
|
|
3821
|
-
return !
|
|
3820
|
+
var l = u.reduce(function(c, f) {
|
|
3821
|
+
return !c.length || f.type !== S.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3822
3822
|
}, []);
|
|
3823
3823
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3824
3824
|
}, this.formatToParts = function(h) {
|
|
@@ -3836,7 +3836,7 @@ var zn = (
|
|
|
3836
3836
|
var s = i || {};
|
|
3837
3837
|
s.formatters;
|
|
3838
3838
|
var a = tn(s, ["formatters"]);
|
|
3839
|
-
this.ast = e.__parse(t,
|
|
3839
|
+
this.ast = e.__parse(t, A(A({}, a), { locale: this.resolvedLocale }));
|
|
3840
3840
|
} else
|
|
3841
3841
|
this.ast = t;
|
|
3842
3842
|
if (!Array.isArray(this.ast))
|
|
@@ -3854,7 +3854,7 @@ var zn = (
|
|
|
3854
3854
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3855
3855
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3856
3856
|
}
|
|
3857
|
-
}, e.__parse =
|
|
3857
|
+
}, e.__parse = Fn, e.formats = {
|
|
3858
3858
|
number: {
|
|
3859
3859
|
integer: {
|
|
3860
3860
|
maximumFractionDigits: 0
|
|
@@ -3975,7 +3975,7 @@ function qn(e) {
|
|
|
3975
3975
|
function Kn(e, ...t) {
|
|
3976
3976
|
delete O[e], re.update((r) => (r[e] = en.all([r[e] || {}, ...t]), r));
|
|
3977
3977
|
}
|
|
3978
|
-
|
|
3978
|
+
X(
|
|
3979
3979
|
[re],
|
|
3980
3980
|
([e]) => Object.keys(e)
|
|
3981
3981
|
);
|
|
@@ -4058,7 +4058,7 @@ const ni = {
|
|
|
4058
4058
|
handleMissingMessage: void 0,
|
|
4059
4059
|
ignoreTag: !0
|
|
4060
4060
|
}, oi = ii;
|
|
4061
|
-
function
|
|
4061
|
+
function k() {
|
|
4062
4062
|
return oi;
|
|
4063
4063
|
}
|
|
4064
4064
|
const Be = de(!1);
|
|
@@ -4075,11 +4075,11 @@ const fe = de(null);
|
|
|
4075
4075
|
function bt(e) {
|
|
4076
4076
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4077
4077
|
}
|
|
4078
|
-
function ve(e, t =
|
|
4078
|
+
function ve(e, t = k().fallbackLocale) {
|
|
4079
4079
|
const r = bt(e);
|
|
4080
4080
|
return t ? [.../* @__PURE__ */ new Set([...r, ...bt(t)])] : r;
|
|
4081
4081
|
}
|
|
4082
|
-
function
|
|
4082
|
+
function L() {
|
|
4083
4083
|
return Xe ?? void 0;
|
|
4084
4084
|
}
|
|
4085
4085
|
fe.subscribe((e) => {
|
|
@@ -4087,9 +4087,9 @@ fe.subscribe((e) => {
|
|
|
4087
4087
|
});
|
|
4088
4088
|
const mi = (e) => {
|
|
4089
4089
|
if (e && qn(e) && Ve(e)) {
|
|
4090
|
-
const { loadingDelay: t } =
|
|
4090
|
+
const { loadingDelay: t } = k();
|
|
4091
4091
|
let r;
|
|
4092
|
-
return typeof window < "u" &&
|
|
4092
|
+
return typeof window < "u" && L() != null && t ? r = window.setTimeout(
|
|
4093
4093
|
() => Be.set(!0),
|
|
4094
4094
|
t
|
|
4095
4095
|
) : Be.set(!0), Qt(e).then(() => {
|
|
@@ -4115,7 +4115,7 @@ var pi = Object.defineProperty, me = Object.getOwnPropertySymbols, Jt = Object.p
|
|
|
4115
4115
|
for (var r of me(t))
|
|
4116
4116
|
Yt.call(t, r) && yt(e, r, t[r]);
|
|
4117
4117
|
return e;
|
|
4118
|
-
},
|
|
4118
|
+
}, W = (e, t) => {
|
|
4119
4119
|
var r = {};
|
|
4120
4120
|
for (var n in e)
|
|
4121
4121
|
Jt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -4125,27 +4125,27 @@ var pi = Object.defineProperty, me = Object.getOwnPropertySymbols, Jt = Object.p
|
|
|
4125
4125
|
return r;
|
|
4126
4126
|
};
|
|
4127
4127
|
const q = (e, t) => {
|
|
4128
|
-
const { formats: r } =
|
|
4128
|
+
const { formats: r } = k();
|
|
4129
4129
|
if (e in r && t in r[e])
|
|
4130
4130
|
return r[e][t];
|
|
4131
4131
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4132
4132
|
}, di = ge(
|
|
4133
4133
|
(e) => {
|
|
4134
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4134
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
4135
4135
|
if (r == null)
|
|
4136
4136
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4137
4137
|
return n && (i = q("number", n)), new Intl.NumberFormat(r, i);
|
|
4138
4138
|
}
|
|
4139
4139
|
), bi = ge(
|
|
4140
4140
|
(e) => {
|
|
4141
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4141
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
4142
4142
|
if (r == null)
|
|
4143
4143
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4144
4144
|
return n ? i = q("date", n) : Object.keys(i).length === 0 && (i = q("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4145
4145
|
}
|
|
4146
4146
|
), yi = ge(
|
|
4147
4147
|
(e) => {
|
|
4148
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4148
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
4149
4149
|
if (r == null)
|
|
4150
4150
|
throw new Error(
|
|
4151
4151
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
@@ -4154,29 +4154,29 @@ const q = (e, t) => {
|
|
|
4154
4154
|
}
|
|
4155
4155
|
), vi = (e = {}) => {
|
|
4156
4156
|
var t = e, {
|
|
4157
|
-
locale: r =
|
|
4158
|
-
} = t, n =
|
|
4157
|
+
locale: r = L()
|
|
4158
|
+
} = t, n = W(t, [
|
|
4159
4159
|
"locale"
|
|
4160
4160
|
]);
|
|
4161
4161
|
return di(Ze({ locale: r }, n));
|
|
4162
4162
|
}, gi = (e = {}) => {
|
|
4163
4163
|
var t = e, {
|
|
4164
|
-
locale: r =
|
|
4165
|
-
} = t, n =
|
|
4164
|
+
locale: r = L()
|
|
4165
|
+
} = t, n = W(t, [
|
|
4166
4166
|
"locale"
|
|
4167
4167
|
]);
|
|
4168
4168
|
return bi(Ze({ locale: r }, n));
|
|
4169
4169
|
}, _i = (e = {}) => {
|
|
4170
4170
|
var t = e, {
|
|
4171
|
-
locale: r =
|
|
4172
|
-
} = t, n =
|
|
4171
|
+
locale: r = L()
|
|
4172
|
+
} = t, n = W(t, [
|
|
4173
4173
|
"locale"
|
|
4174
4174
|
]);
|
|
4175
4175
|
return yi(Ze({ locale: r }, n));
|
|
4176
4176
|
}, xi = ge(
|
|
4177
4177
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4178
|
-
(e, t =
|
|
4179
|
-
ignoreTag:
|
|
4178
|
+
(e, t = L()) => new zn(e, t, k().formats, {
|
|
4179
|
+
ignoreTag: k().ignoreTag
|
|
4180
4180
|
})
|
|
4181
4181
|
), Ei = (e, t = {}) => {
|
|
4182
4182
|
var r, n, i, o;
|
|
@@ -4184,7 +4184,7 @@ const q = (e, t) => {
|
|
|
4184
4184
|
typeof e == "object" && (s = e, e = s.id);
|
|
4185
4185
|
const {
|
|
4186
4186
|
values: a,
|
|
4187
|
-
locale: h =
|
|
4187
|
+
locale: h = L(),
|
|
4188
4188
|
default: u
|
|
4189
4189
|
} = s;
|
|
4190
4190
|
if (h == null)
|
|
@@ -4193,29 +4193,29 @@ const q = (e, t) => {
|
|
|
4193
4193
|
);
|
|
4194
4194
|
let l = Wt(e, h);
|
|
4195
4195
|
if (!l)
|
|
4196
|
-
l = (o = (i = (n = (r =
|
|
4196
|
+
l = (o = (i = (n = (r = k()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4197
4197
|
else if (typeof l != "string")
|
|
4198
4198
|
return console.warn(
|
|
4199
4199
|
`[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.`
|
|
4200
4200
|
), l;
|
|
4201
4201
|
if (!a)
|
|
4202
4202
|
return l;
|
|
4203
|
-
let
|
|
4203
|
+
let c = l;
|
|
4204
4204
|
try {
|
|
4205
|
-
|
|
4206
|
-
} catch (
|
|
4207
|
-
|
|
4205
|
+
c = xi(l, h).format(a);
|
|
4206
|
+
} catch (f) {
|
|
4207
|
+
f instanceof Error && console.warn(
|
|
4208
4208
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4209
|
-
|
|
4209
|
+
f.message
|
|
4210
4210
|
);
|
|
4211
4211
|
}
|
|
4212
|
-
return
|
|
4213
|
-
}, Si = (e, t) => _i(t).format(e), wi = (e, t) => gi(t).format(e), Hi = (e, t) => vi(t).format(e), Ti = (e, t =
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4212
|
+
return c;
|
|
4213
|
+
}, Si = (e, t) => _i(t).format(e), wi = (e, t) => gi(t).format(e), Hi = (e, t) => vi(t).format(e), Ti = (e, t = L()) => Wt(e, t);
|
|
4214
|
+
X([ne, re], () => Ei);
|
|
4215
|
+
X([ne], () => Si);
|
|
4216
|
+
X([ne], () => wi);
|
|
4217
|
+
X([ne], () => Hi);
|
|
4218
|
+
X([ne, re], () => Ti);
|
|
4219
4219
|
window.emWidgets = { topic: Rr };
|
|
4220
4220
|
const Bi = (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));
|
|
4221
4221
|
function Ai(e, t) {
|
|
@@ -4245,34 +4245,34 @@ function Ii(e) {
|
|
|
4245
4245
|
er(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}}");
|
|
4246
4246
|
}
|
|
4247
4247
|
function vt(e) {
|
|
4248
|
-
let t, r, n, i, o, s, a, h, u, l,
|
|
4249
|
-
function p(
|
|
4248
|
+
let t, r, n, i, o, s, a, h, u, l, c, f;
|
|
4249
|
+
function p(x, v) {
|
|
4250
4250
|
return (
|
|
4251
4251
|
/*isLoading*/
|
|
4252
|
-
|
|
4252
|
+
x[3] ? Ci : Ni
|
|
4253
4253
|
);
|
|
4254
4254
|
}
|
|
4255
|
-
let
|
|
4255
|
+
let y = p(e), m = y(e);
|
|
4256
4256
|
return {
|
|
4257
4257
|
c() {
|
|
4258
|
-
t =
|
|
4258
|
+
t = F("button"), r = F("small"), m.c(), n = nr(), i = C("svg"), o = C("g"), s = C("path"), a = C("path"), h = C("path"), u = C("path"), l = C("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
|
|
4259
4259
|
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
|
|
4260
4260
|
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
|
|
4261
|
-
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`),
|
|
4261
|
+
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"), ar(i, "enable-background", "new 0 0 64 100"), E(i, "xml:space", "preserve"), E(t, "class", "betslipIndicator");
|
|
4262
4262
|
},
|
|
4263
|
-
m(
|
|
4264
|
-
ee(
|
|
4263
|
+
m(x, v) {
|
|
4264
|
+
ee(x, t, v), B(t, r), m.m(r, null), B(t, n), B(t, i), B(i, o), B(o, s), B(o, a), B(o, h), B(o, u), B(o, l), c || (f = ir(
|
|
4265
4265
|
t,
|
|
4266
4266
|
"click",
|
|
4267
4267
|
/*click_handler*/
|
|
4268
|
-
e[
|
|
4269
|
-
),
|
|
4268
|
+
e[9]
|
|
4269
|
+
), c = !0);
|
|
4270
4270
|
},
|
|
4271
|
-
p(
|
|
4272
|
-
|
|
4271
|
+
p(x, v) {
|
|
4272
|
+
y === (y = p(x)) && m ? m.p(x, v) : (m.d(1), m = y(x), m && (m.c(), m.m(r, null)));
|
|
4273
4273
|
},
|
|
4274
|
-
d(
|
|
4275
|
-
|
|
4274
|
+
d(x) {
|
|
4275
|
+
x && V(t), m.d(), c = !1, f();
|
|
4276
4276
|
}
|
|
4277
4277
|
};
|
|
4278
4278
|
}
|
|
@@ -4297,7 +4297,7 @@ function Ni(e) {
|
|
|
4297
4297
|
);
|
|
4298
4298
|
},
|
|
4299
4299
|
d(r) {
|
|
4300
|
-
r &&
|
|
4300
|
+
r && V(t);
|
|
4301
4301
|
}
|
|
4302
4302
|
};
|
|
4303
4303
|
}
|
|
@@ -4305,14 +4305,14 @@ function Ci(e) {
|
|
|
4305
4305
|
let t;
|
|
4306
4306
|
return {
|
|
4307
4307
|
c() {
|
|
4308
|
-
t =
|
|
4308
|
+
t = F("div"), t.textContent = "Loading...", E(t, "class", "loader");
|
|
4309
4309
|
},
|
|
4310
4310
|
m(r, n) {
|
|
4311
4311
|
ee(r, t, n);
|
|
4312
4312
|
},
|
|
4313
|
-
p:
|
|
4313
|
+
p: H,
|
|
4314
4314
|
d(r) {
|
|
4315
|
-
r &&
|
|
4315
|
+
r && V(t);
|
|
4316
4316
|
}
|
|
4317
4317
|
};
|
|
4318
4318
|
}
|
|
@@ -4320,115 +4320,122 @@ function Li(e) {
|
|
|
4320
4320
|
let t, r = (
|
|
4321
4321
|
/*mobileView*/
|
|
4322
4322
|
e[2] && /*betNumber*/
|
|
4323
|
-
e[1] > 0 &&
|
|
4323
|
+
e[1] > 0 && /*betSlipVisible*/
|
|
4324
|
+
e[4] && vt(e)
|
|
4324
4325
|
);
|
|
4325
4326
|
return {
|
|
4326
4327
|
c() {
|
|
4327
|
-
t =
|
|
4328
|
+
t = F("div"), r && r.c();
|
|
4328
4329
|
},
|
|
4329
4330
|
m(n, i) {
|
|
4330
|
-
ee(n, t, i), r && r.m(t, null), e[
|
|
4331
|
+
ee(n, t, i), r && r.m(t, null), e[10](t);
|
|
4331
4332
|
},
|
|
4332
4333
|
p(n, [i]) {
|
|
4333
4334
|
/*mobileView*/
|
|
4334
4335
|
n[2] && /*betNumber*/
|
|
4335
|
-
n[1] > 0
|
|
4336
|
+
n[1] > 0 && /*betSlipVisible*/
|
|
4337
|
+
n[4] ? r ? r.p(n, i) : (r = vt(n), r.c(), r.m(t, null)) : r && (r.d(1), r = null);
|
|
4336
4338
|
},
|
|
4337
|
-
i:
|
|
4338
|
-
o:
|
|
4339
|
+
i: H,
|
|
4340
|
+
o: H,
|
|
4339
4341
|
d(n) {
|
|
4340
|
-
n &&
|
|
4342
|
+
n && V(t), r && r.d(), e[10](null);
|
|
4341
4343
|
}
|
|
4342
4344
|
};
|
|
4343
4345
|
}
|
|
4344
|
-
function
|
|
4345
|
-
let { clientstyling: n = "" } = t, { clientstylingurl: i = "" } = t, { mbsource: o } = t, s, a = window.navigator.userAgent, h = null, u = !1, l = !0;
|
|
4346
|
+
function Mi(e, t, r) {
|
|
4347
|
+
let { clientstyling: n = "" } = t, { clientstylingurl: i = "" } = t, { mbsource: o } = t, s, a = window.navigator.userAgent, h = null, u = !1, l = !0, c = !1;
|
|
4346
4348
|
const f = () => {
|
|
4347
4349
|
window.postMessage({ type: "OMFE:getBetslipSelectionsCount" }, "*");
|
|
4348
|
-
},
|
|
4350
|
+
}, p = (v, T) => {
|
|
4349
4351
|
s.dispatchEvent(new CustomEvent(
|
|
4350
|
-
|
|
4352
|
+
v,
|
|
4351
4353
|
{
|
|
4352
|
-
detail:
|
|
4354
|
+
detail: T,
|
|
4353
4355
|
composed: !0,
|
|
4354
4356
|
bubbles: !0
|
|
4355
4357
|
// propagate across the shadow DOM
|
|
4356
4358
|
}
|
|
4357
4359
|
));
|
|
4358
|
-
},
|
|
4359
|
-
const { type:
|
|
4360
|
-
if (
|
|
4361
|
-
switch (
|
|
4360
|
+
}, y = (v) => {
|
|
4361
|
+
const { type: T, payload: w } = v.data;
|
|
4362
|
+
if (v.data)
|
|
4363
|
+
switch (T) {
|
|
4362
4364
|
case "OMFE:updateBetslipSelectionsCount":
|
|
4363
|
-
r(1, h =
|
|
4365
|
+
r(1, h = w.count), r(3, l = !1);
|
|
4366
|
+
break;
|
|
4367
|
+
case "OMFE:betslipSidebar":
|
|
4368
|
+
const I = v.data.payload?.enableBetslipBubble;
|
|
4369
|
+
r(4, c = !!I);
|
|
4364
4370
|
break;
|
|
4365
4371
|
}
|
|
4366
4372
|
};
|
|
4367
|
-
lr(() => (f(), window.addEventListener("message",
|
|
4368
|
-
window.removeEventListener("message",
|
|
4373
|
+
lr(() => (f(), window.addEventListener("message", y, !1), Bi(a) && r(2, u = !0), () => {
|
|
4374
|
+
window.removeEventListener("message", y);
|
|
4369
4375
|
}));
|
|
4370
|
-
const
|
|
4371
|
-
function
|
|
4372
|
-
Ae[
|
|
4373
|
-
s =
|
|
4376
|
+
const m = (v) => p("betslipClick", {});
|
|
4377
|
+
function x(v) {
|
|
4378
|
+
Ae[v ? "unshift" : "push"](() => {
|
|
4379
|
+
s = v, r(0, s);
|
|
4374
4380
|
});
|
|
4375
4381
|
}
|
|
4376
|
-
return e.$$set = (
|
|
4377
|
-
"clientstyling" in
|
|
4382
|
+
return e.$$set = (v) => {
|
|
4383
|
+
"clientstyling" in v && r(6, n = v.clientstyling), "clientstylingurl" in v && r(7, i = v.clientstylingurl), "mbsource" in v && r(8, o = v.mbsource);
|
|
4378
4384
|
}, e.$$.update = () => {
|
|
4379
4385
|
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4386
|
+
65 && n && s && Ai(s, n), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4387
|
+
129 && i && s && Pi(s, i), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4388
|
+
257 && o && s && Oi(s, `${o}.Style`);
|
|
4383
4389
|
}, [
|
|
4384
4390
|
s,
|
|
4385
4391
|
h,
|
|
4386
4392
|
u,
|
|
4387
4393
|
l,
|
|
4388
4394
|
c,
|
|
4395
|
+
p,
|
|
4389
4396
|
n,
|
|
4390
4397
|
i,
|
|
4391
4398
|
o,
|
|
4392
|
-
|
|
4393
|
-
|
|
4399
|
+
m,
|
|
4400
|
+
x
|
|
4394
4401
|
];
|
|
4395
4402
|
}
|
|
4396
|
-
class
|
|
4403
|
+
class $i extends Er {
|
|
4397
4404
|
constructor(t) {
|
|
4398
4405
|
super(), _r(
|
|
4399
4406
|
this,
|
|
4400
4407
|
t,
|
|
4401
|
-
|
|
4408
|
+
Mi,
|
|
4402
4409
|
Li,
|
|
4403
4410
|
_t,
|
|
4404
4411
|
{
|
|
4405
|
-
clientstyling:
|
|
4406
|
-
clientstylingurl:
|
|
4407
|
-
mbsource:
|
|
4412
|
+
clientstyling: 6,
|
|
4413
|
+
clientstylingurl: 7,
|
|
4414
|
+
mbsource: 8
|
|
4408
4415
|
},
|
|
4409
4416
|
Ii
|
|
4410
4417
|
);
|
|
4411
4418
|
}
|
|
4412
4419
|
get clientstyling() {
|
|
4413
|
-
return this.$$.ctx[
|
|
4420
|
+
return this.$$.ctx[6];
|
|
4414
4421
|
}
|
|
4415
4422
|
set clientstyling(t) {
|
|
4416
4423
|
this.$$set({ clientstyling: t }), Q();
|
|
4417
4424
|
}
|
|
4418
4425
|
get clientstylingurl() {
|
|
4419
|
-
return this.$$.ctx[
|
|
4426
|
+
return this.$$.ctx[7];
|
|
4420
4427
|
}
|
|
4421
4428
|
set clientstylingurl(t) {
|
|
4422
4429
|
this.$$set({ clientstylingurl: t }), Q();
|
|
4423
4430
|
}
|
|
4424
4431
|
get mbsource() {
|
|
4425
|
-
return this.$$.ctx[
|
|
4432
|
+
return this.$$.ctx[8];
|
|
4426
4433
|
}
|
|
4427
4434
|
set mbsource(t) {
|
|
4428
4435
|
this.$$set({ mbsource: t }), Q();
|
|
4429
4436
|
}
|
|
4430
4437
|
}
|
|
4431
|
-
xr(
|
|
4438
|
+
xr($i, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
|
|
4432
4439
|
export {
|
|
4433
|
-
|
|
4440
|
+
$i as C
|
|
4434
4441
|
};
|