@everymatrix/casino-jackpot-banner 1.58.1 → 1.59.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoJackpotBanner-DKh0dUwc.js → CasinoJackpotBanner-DG0Gqyq0.js} +368 -363
- package/components/{CasinoJackpotBanner-DSiTl5VR.js → CasinoJackpotBanner-DvgIIMt9.js} +355 -350
- package/components/{CasinoJackpotBanner-B8bsa1xZ.cjs → CasinoJackpotBanner-NWh7LI52.cjs} +4 -4
- package/es2015/casino-jackpot-banner.cjs +1 -1
- package/es2015/casino-jackpot-banner.js +1 -1
- package/esnext/casino-jackpot-banner.js +1 -1
- package/package.json +1 -1
|
@@ -35,7 +35,7 @@ function mr(e) {
|
|
|
35
35
|
function kt() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function Fe(e) {
|
|
39
39
|
e.forEach(mr);
|
|
40
40
|
}
|
|
41
41
|
function Nt(e) {
|
|
@@ -44,9 +44,9 @@ function Nt(e) {
|
|
|
44
44
|
function br(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
let
|
|
47
|
+
let Je;
|
|
48
48
|
function $(e, t) {
|
|
49
|
-
return e === t ? !0 : (
|
|
49
|
+
return e === t ? !0 : (Je || (Je = document.createElement("a")), Je.href = t, e === Je.href);
|
|
50
50
|
}
|
|
51
51
|
function en(e) {
|
|
52
52
|
return Object.keys(e).length === 0;
|
|
@@ -90,7 +90,7 @@ function on(e, t) {
|
|
|
90
90
|
function K(e, t, r) {
|
|
91
91
|
e.insertBefore(t, r || null);
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function W(e) {
|
|
94
94
|
e.parentNode && e.parentNode.removeChild(e);
|
|
95
95
|
}
|
|
96
96
|
function sn(e, t) {
|
|
@@ -122,7 +122,7 @@ function U(e, t) {
|
|
|
122
122
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
123
123
|
t);
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function Ze(e, t, r, n) {
|
|
126
126
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
127
127
|
}
|
|
128
128
|
function hn(e) {
|
|
@@ -134,14 +134,14 @@ function hn(e) {
|
|
|
134
134
|
}
|
|
135
135
|
), t;
|
|
136
136
|
}
|
|
137
|
-
let
|
|
138
|
-
function
|
|
139
|
-
|
|
137
|
+
let je;
|
|
138
|
+
function Ge(e) {
|
|
139
|
+
je = e;
|
|
140
140
|
}
|
|
141
141
|
function gr() {
|
|
142
|
-
if (!
|
|
142
|
+
if (!je)
|
|
143
143
|
throw new Error("Function called outside component initialization");
|
|
144
|
-
return
|
|
144
|
+
return je;
|
|
145
145
|
}
|
|
146
146
|
function cn(e) {
|
|
147
147
|
gr().$$.on_mount.push(e);
|
|
@@ -160,21 +160,21 @@ function _t(e) {
|
|
|
160
160
|
Te.push(e);
|
|
161
161
|
}
|
|
162
162
|
const ct = /* @__PURE__ */ new Set();
|
|
163
|
-
let
|
|
163
|
+
let Ee = 0;
|
|
164
164
|
function O() {
|
|
165
|
-
if (
|
|
165
|
+
if (Ee !== 0)
|
|
166
166
|
return;
|
|
167
|
-
const e =
|
|
167
|
+
const e = je;
|
|
168
168
|
do {
|
|
169
169
|
try {
|
|
170
|
-
for (;
|
|
171
|
-
const t = Se[
|
|
172
|
-
|
|
170
|
+
for (; Ee < Se.length; ) {
|
|
171
|
+
const t = Se[Ee];
|
|
172
|
+
Ee++, Ge(t), mn(t.$$);
|
|
173
173
|
}
|
|
174
174
|
} catch (t) {
|
|
175
|
-
throw Se.length = 0,
|
|
175
|
+
throw Se.length = 0, Ee = 0, t;
|
|
176
176
|
}
|
|
177
|
-
for (
|
|
177
|
+
for (Ge(null), Se.length = 0, Ee = 0; yt.length; )
|
|
178
178
|
yt.pop()();
|
|
179
179
|
for (let t = 0; t < Te.length; t += 1) {
|
|
180
180
|
const r = Te[t];
|
|
@@ -184,11 +184,11 @@ function O() {
|
|
|
184
184
|
} while (Se.length);
|
|
185
185
|
for (; Ft.length; )
|
|
186
186
|
Ft.pop()();
|
|
187
|
-
vt = !1, ct.clear(),
|
|
187
|
+
vt = !1, ct.clear(), Ge(e);
|
|
188
188
|
}
|
|
189
189
|
function mn(e) {
|
|
190
190
|
if (e.fragment !== null) {
|
|
191
|
-
e.update(),
|
|
191
|
+
e.update(), Fe(e.before_update);
|
|
192
192
|
const t = e.dirty;
|
|
193
193
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(_t);
|
|
194
194
|
}
|
|
@@ -208,19 +208,19 @@ function vn(e, t, r) {
|
|
|
208
208
|
const { fragment: n, after_update: i } = e.$$;
|
|
209
209
|
n && n.m(t, r), _t(() => {
|
|
210
210
|
const o = e.$$.on_mount.map(mr).filter(Nt);
|
|
211
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
211
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Fe(o), e.$$.on_mount = [];
|
|
212
212
|
}), i.forEach(_t);
|
|
213
213
|
}
|
|
214
214
|
function _n(e, t) {
|
|
215
215
|
const r = e.$$;
|
|
216
|
-
r.fragment !== null && (bn(r.after_update),
|
|
216
|
+
r.fragment !== null && (bn(r.after_update), Fe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function En(e, t) {
|
|
219
219
|
e.$$.dirty[0] === -1 && (Se.push(e), dn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
220
220
|
}
|
|
221
|
-
function
|
|
222
|
-
const l =
|
|
223
|
-
|
|
221
|
+
function xn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
222
|
+
const l = je;
|
|
223
|
+
Ge(e);
|
|
224
224
|
const u = e.$$ = {
|
|
225
225
|
fragment: null,
|
|
226
226
|
ctx: [],
|
|
@@ -244,18 +244,18 @@ function En(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
244
244
|
};
|
|
245
245
|
s && s(u.root);
|
|
246
246
|
let h = !1;
|
|
247
|
-
if (u.ctx = r ? r(e, t.props || {}, (
|
|
247
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, p, ...g) => {
|
|
248
248
|
const y = g.length ? g[0] : p;
|
|
249
|
-
return u.ctx && i(u.ctx[
|
|
250
|
-
}) : [], u.update(), h = !0,
|
|
249
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = y) && (!u.skip_bound && u.bound[f] && u.bound[f](y), h && En(e, f)), p;
|
|
250
|
+
}) : [], u.update(), h = !0, Fe(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
251
251
|
if (t.hydrate) {
|
|
252
|
-
const
|
|
253
|
-
u.fragment && u.fragment.l(
|
|
252
|
+
const f = ln(t.target);
|
|
253
|
+
u.fragment && u.fragment.l(f), f.forEach(W);
|
|
254
254
|
} else
|
|
255
255
|
u.fragment && u.fragment.c();
|
|
256
256
|
t.intro && yn(e.$$.fragment), vn(e, t.target, t.anchor), O();
|
|
257
257
|
}
|
|
258
|
-
|
|
258
|
+
Ge(l);
|
|
259
259
|
}
|
|
260
260
|
let yr;
|
|
261
261
|
typeof HTMLElement == "function" && (yr = class extends HTMLElement {
|
|
@@ -312,7 +312,7 @@ typeof HTMLElement == "function" && (yr = class extends HTMLElement {
|
|
|
312
312
|
K(u, s, h);
|
|
313
313
|
},
|
|
314
314
|
d: function(u) {
|
|
315
|
-
u &&
|
|
315
|
+
u && W(s);
|
|
316
316
|
}
|
|
317
317
|
};
|
|
318
318
|
};
|
|
@@ -324,7 +324,7 @@ typeof HTMLElement == "function" && (yr = class extends HTMLElement {
|
|
|
324
324
|
o in n && (r[o] = [t(o)]);
|
|
325
325
|
for (const o of this.attributes) {
|
|
326
326
|
const s = this.$$g_p(o.name);
|
|
327
|
-
s in this.$$d || (this.$$d[s] =
|
|
327
|
+
s in this.$$d || (this.$$d[s] = qe(s, o.value, this.$$p_d, "toProp"));
|
|
328
328
|
}
|
|
329
329
|
for (const o in this.$$p_d)
|
|
330
330
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
@@ -341,7 +341,7 @@ typeof HTMLElement == "function" && (yr = class extends HTMLElement {
|
|
|
341
341
|
this.$$r = !0;
|
|
342
342
|
for (const o in this.$$p_d)
|
|
343
343
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
344
|
-
const s =
|
|
344
|
+
const s = qe(
|
|
345
345
|
o,
|
|
346
346
|
this.$$d[o],
|
|
347
347
|
this.$$p_d,
|
|
@@ -365,7 +365,7 @@ typeof HTMLElement == "function" && (yr = class extends HTMLElement {
|
|
|
365
365
|
// and setting attributes through setAttribute etc, this is helpful
|
|
366
366
|
attributeChangedCallback(t, r, n) {
|
|
367
367
|
var i;
|
|
368
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
368
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = qe(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
369
369
|
}
|
|
370
370
|
disconnectedCallback() {
|
|
371
371
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -378,7 +378,7 @@ typeof HTMLElement == "function" && (yr = class extends HTMLElement {
|
|
|
378
378
|
) || t;
|
|
379
379
|
}
|
|
380
380
|
});
|
|
381
|
-
function
|
|
381
|
+
function qe(e, t, r, n) {
|
|
382
382
|
var o;
|
|
383
383
|
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
384
384
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -426,7 +426,7 @@ function Sn(e, t, r, n, i, o) {
|
|
|
426
426
|
},
|
|
427
427
|
set(l) {
|
|
428
428
|
var u;
|
|
429
|
-
l =
|
|
429
|
+
l = qe(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
|
|
430
430
|
}
|
|
431
431
|
});
|
|
432
432
|
}), n.forEach((a) => {
|
|
@@ -501,32 +501,32 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
501
501
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
502
502
|
PERFORMANCE OF THIS SOFTWARE.
|
|
503
503
|
***************************************************************************** */
|
|
504
|
-
var
|
|
505
|
-
return
|
|
504
|
+
var Et = function(e, t) {
|
|
505
|
+
return Et = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
506
506
|
r.__proto__ = n;
|
|
507
507
|
} || function(r, n) {
|
|
508
508
|
for (var i in n)
|
|
509
509
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
510
|
-
},
|
|
510
|
+
}, Et(e, t);
|
|
511
511
|
};
|
|
512
512
|
function re(e, t) {
|
|
513
513
|
if (typeof t != "function" && t !== null)
|
|
514
514
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
515
|
-
|
|
515
|
+
Et(e, t);
|
|
516
516
|
function r() {
|
|
517
517
|
this.constructor = e;
|
|
518
518
|
}
|
|
519
519
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
520
520
|
}
|
|
521
|
-
var
|
|
522
|
-
return
|
|
521
|
+
var w = function() {
|
|
522
|
+
return w = Object.assign || function(t) {
|
|
523
523
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
524
524
|
r = arguments[n];
|
|
525
525
|
for (var o in r)
|
|
526
526
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
527
527
|
}
|
|
528
528
|
return t;
|
|
529
|
-
},
|
|
529
|
+
}, w.apply(this, arguments);
|
|
530
530
|
};
|
|
531
531
|
function Hn(e, t) {
|
|
532
532
|
var r = {};
|
|
@@ -537,7 +537,7 @@ function Hn(e, t) {
|
|
|
537
537
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
538
538
|
return r;
|
|
539
539
|
}
|
|
540
|
-
function
|
|
540
|
+
function xt(e) {
|
|
541
541
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
542
542
|
if (r)
|
|
543
543
|
return r.call(e);
|
|
@@ -599,7 +599,7 @@ function Tt(e, t) {
|
|
|
599
599
|
0 <= r && e.splice(r, 1);
|
|
600
600
|
}
|
|
601
601
|
}
|
|
602
|
-
var
|
|
602
|
+
var it = function() {
|
|
603
603
|
function e(t) {
|
|
604
604
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
605
605
|
}
|
|
@@ -611,7 +611,7 @@ var nt = function() {
|
|
|
611
611
|
if (s)
|
|
612
612
|
if (this._parentage = null, Array.isArray(s))
|
|
613
613
|
try {
|
|
614
|
-
for (var a =
|
|
614
|
+
for (var a = xt(s), l = a.next(); !l.done; l = a.next()) {
|
|
615
615
|
var u = l.value;
|
|
616
616
|
u.remove(this);
|
|
617
617
|
}
|
|
@@ -634,11 +634,11 @@ var nt = function() {
|
|
|
634
634
|
} catch (v) {
|
|
635
635
|
o = v instanceof ft ? v.errors : [v];
|
|
636
636
|
}
|
|
637
|
-
var
|
|
638
|
-
if (
|
|
637
|
+
var f = this._finalizers;
|
|
638
|
+
if (f) {
|
|
639
639
|
this._finalizers = null;
|
|
640
640
|
try {
|
|
641
|
-
for (var p =
|
|
641
|
+
for (var p = xt(f), g = p.next(); !g.done; g = p.next()) {
|
|
642
642
|
var y = g.value;
|
|
643
643
|
try {
|
|
644
644
|
Wt(y);
|
|
@@ -689,9 +689,9 @@ var nt = function() {
|
|
|
689
689
|
var t = new e();
|
|
690
690
|
return t.closed = !0, t;
|
|
691
691
|
}(), e;
|
|
692
|
-
}(), _r =
|
|
693
|
-
function
|
|
694
|
-
return e instanceof
|
|
692
|
+
}(), _r = it.EMPTY;
|
|
693
|
+
function Er(e) {
|
|
694
|
+
return e instanceof it || e && "closed" in e && te(e.remove) && te(e.add) && te(e.unsubscribe);
|
|
695
695
|
}
|
|
696
696
|
function Wt(e) {
|
|
697
697
|
te(e) ? e() : e.unsubscribe();
|
|
@@ -716,14 +716,14 @@ function Pn(e) {
|
|
|
716
716
|
}
|
|
717
717
|
function Xt() {
|
|
718
718
|
}
|
|
719
|
-
function
|
|
719
|
+
function Ke(e) {
|
|
720
720
|
e();
|
|
721
721
|
}
|
|
722
|
-
var
|
|
722
|
+
var xr = function(e) {
|
|
723
723
|
re(t, e);
|
|
724
724
|
function t(r) {
|
|
725
725
|
var n = e.call(this) || this;
|
|
726
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
726
|
+
return n.isStopped = !1, r ? (n.destination = r, Er(r) && r.add(n)) : n.destination = Ln, n;
|
|
727
727
|
}
|
|
728
728
|
return t.create = function(r, n, i) {
|
|
729
729
|
return new wt(r, n, i);
|
|
@@ -750,7 +750,7 @@ var Er = function(e) {
|
|
|
750
750
|
this.unsubscribe();
|
|
751
751
|
}
|
|
752
752
|
}, t;
|
|
753
|
-
}(
|
|
753
|
+
}(it), On = function() {
|
|
754
754
|
function e(t) {
|
|
755
755
|
this.partialObserver = t;
|
|
756
756
|
}
|
|
@@ -760,7 +760,7 @@ var Er = function(e) {
|
|
|
760
760
|
try {
|
|
761
761
|
r.next(t);
|
|
762
762
|
} catch (n) {
|
|
763
|
-
|
|
763
|
+
Qe(n);
|
|
764
764
|
}
|
|
765
765
|
}, e.prototype.error = function(t) {
|
|
766
766
|
var r = this.partialObserver;
|
|
@@ -768,17 +768,17 @@ var Er = function(e) {
|
|
|
768
768
|
try {
|
|
769
769
|
r.error(t);
|
|
770
770
|
} catch (n) {
|
|
771
|
-
|
|
771
|
+
Qe(n);
|
|
772
772
|
}
|
|
773
773
|
else
|
|
774
|
-
|
|
774
|
+
Qe(t);
|
|
775
775
|
}, e.prototype.complete = function() {
|
|
776
776
|
var t = this.partialObserver;
|
|
777
777
|
if (t.complete)
|
|
778
778
|
try {
|
|
779
779
|
t.complete();
|
|
780
780
|
} catch (r) {
|
|
781
|
-
|
|
781
|
+
Qe(r);
|
|
782
782
|
}
|
|
783
783
|
}, e;
|
|
784
784
|
}(), wt = function(e) {
|
|
@@ -792,8 +792,8 @@ var Er = function(e) {
|
|
|
792
792
|
} : s = r, o.destination = new On(s), o;
|
|
793
793
|
}
|
|
794
794
|
return t;
|
|
795
|
-
}(
|
|
796
|
-
function
|
|
795
|
+
}(xr);
|
|
796
|
+
function Qe(e) {
|
|
797
797
|
Pn(e);
|
|
798
798
|
}
|
|
799
799
|
function Cn(e) {
|
|
@@ -826,7 +826,7 @@ var zt = function() {
|
|
|
826
826
|
return r.source = this, r.operator = t, r;
|
|
827
827
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
828
828
|
var i = this, o = Un(t) ? t : new wt(t, r, n);
|
|
829
|
-
return
|
|
829
|
+
return Ke(function() {
|
|
830
830
|
var s = i, a = s.operator, l = s.source;
|
|
831
831
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
832
832
|
}), o;
|
|
@@ -885,7 +885,7 @@ function Rn(e) {
|
|
|
885
885
|
return e && te(e.next) && te(e.error) && te(e.complete);
|
|
886
886
|
}
|
|
887
887
|
function Un(e) {
|
|
888
|
-
return e && e instanceof
|
|
888
|
+
return e && e instanceof xr || Rn(e) && Er(e);
|
|
889
889
|
}
|
|
890
890
|
var Dn = vr(function(e) {
|
|
891
891
|
return function() {
|
|
@@ -905,12 +905,12 @@ var Dn = vr(function(e) {
|
|
|
905
905
|
throw new Dn();
|
|
906
906
|
}, t.prototype.next = function(r) {
|
|
907
907
|
var n = this;
|
|
908
|
-
|
|
908
|
+
Ke(function() {
|
|
909
909
|
var i, o;
|
|
910
910
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
911
911
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
912
912
|
try {
|
|
913
|
-
for (var s =
|
|
913
|
+
for (var s = xt(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
914
914
|
var l = a.value;
|
|
915
915
|
l.next(r);
|
|
916
916
|
}
|
|
@@ -928,7 +928,7 @@ var Dn = vr(function(e) {
|
|
|
928
928
|
});
|
|
929
929
|
}, t.prototype.error = function(r) {
|
|
930
930
|
var n = this;
|
|
931
|
-
|
|
931
|
+
Ke(function() {
|
|
932
932
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
933
933
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
934
934
|
for (var i = n.observers; i.length; )
|
|
@@ -937,7 +937,7 @@ var Dn = vr(function(e) {
|
|
|
937
937
|
});
|
|
938
938
|
}, t.prototype.complete = function() {
|
|
939
939
|
var r = this;
|
|
940
|
-
|
|
940
|
+
Ke(function() {
|
|
941
941
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
942
942
|
r.isStopped = !0;
|
|
943
943
|
for (var n = r.observers; n.length; )
|
|
@@ -959,7 +959,7 @@ var Dn = vr(function(e) {
|
|
|
959
959
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
960
960
|
}, t.prototype._innerSubscribe = function(r) {
|
|
961
961
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
962
|
-
return o || s ? _r : (this.currentObservers = null, a.push(r), new
|
|
962
|
+
return o || s ? _r : (this.currentObservers = null, a.push(r), new it(function() {
|
|
963
963
|
n.currentObservers = null, Tt(a, r);
|
|
964
964
|
}));
|
|
965
965
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
@@ -1025,24 +1025,24 @@ const Qt = [], Yt = {}, jn = (e, t = 0) => {
|
|
|
1025
1025
|
Yt[e] = r, Qt.push(e);
|
|
1026
1026
|
}
|
|
1027
1027
|
return Yt[e];
|
|
1028
|
-
},
|
|
1028
|
+
}, xe = [];
|
|
1029
1029
|
function $n(e, t) {
|
|
1030
1030
|
return {
|
|
1031
|
-
subscribe:
|
|
1031
|
+
subscribe: ot(e, t).subscribe
|
|
1032
1032
|
};
|
|
1033
1033
|
}
|
|
1034
|
-
function
|
|
1034
|
+
function ot(e, t = G) {
|
|
1035
1035
|
let r;
|
|
1036
1036
|
const n = /* @__PURE__ */ new Set();
|
|
1037
1037
|
function i(a) {
|
|
1038
1038
|
if (br(e, a) && (e = a, r)) {
|
|
1039
|
-
const l = !
|
|
1039
|
+
const l = !xe.length;
|
|
1040
1040
|
for (const u of n)
|
|
1041
|
-
u[1](),
|
|
1041
|
+
u[1](), xe.push(u, e);
|
|
1042
1042
|
if (l) {
|
|
1043
|
-
for (let u = 0; u <
|
|
1044
|
-
|
|
1045
|
-
|
|
1043
|
+
for (let u = 0; u < xe.length; u += 2)
|
|
1044
|
+
xe[u][0](xe[u + 1]);
|
|
1045
|
+
xe.length = 0;
|
|
1046
1046
|
}
|
|
1047
1047
|
}
|
|
1048
1048
|
}
|
|
@@ -1065,13 +1065,13 @@ function Oe(e, t, r) {
|
|
|
1065
1065
|
return $n(r, (s, a) => {
|
|
1066
1066
|
let l = !1;
|
|
1067
1067
|
const u = [];
|
|
1068
|
-
let h = 0,
|
|
1068
|
+
let h = 0, f = G;
|
|
1069
1069
|
const p = () => {
|
|
1070
1070
|
if (h)
|
|
1071
1071
|
return;
|
|
1072
|
-
|
|
1072
|
+
f();
|
|
1073
1073
|
const y = t(n ? u[0] : u, s, a);
|
|
1074
|
-
o ? s(y) :
|
|
1074
|
+
o ? s(y) : f = Nt(y) ? y : G;
|
|
1075
1075
|
}, g = i.map(
|
|
1076
1076
|
(y, v) => tn(
|
|
1077
1077
|
y,
|
|
@@ -1084,7 +1084,7 @@ function Oe(e, t, r) {
|
|
|
1084
1084
|
)
|
|
1085
1085
|
);
|
|
1086
1086
|
return l = !0, p(), function() {
|
|
1087
|
-
|
|
1087
|
+
Fe(g), f(), l = !1;
|
|
1088
1088
|
};
|
|
1089
1089
|
});
|
|
1090
1090
|
}
|
|
@@ -1108,12 +1108,12 @@ function Jn(e) {
|
|
|
1108
1108
|
function Zn(e) {
|
|
1109
1109
|
return Array.isArray(e) ? [] : {};
|
|
1110
1110
|
}
|
|
1111
|
-
function
|
|
1111
|
+
function $e(e, t) {
|
|
1112
1112
|
return t.clone !== !1 && t.isMergeableObject(e) ? He(Zn(e), e, t) : e;
|
|
1113
1113
|
}
|
|
1114
1114
|
function Qn(e, t, r) {
|
|
1115
1115
|
return e.concat(t).map(function(n) {
|
|
1116
|
-
return
|
|
1116
|
+
return $e(n, r);
|
|
1117
1117
|
});
|
|
1118
1118
|
}
|
|
1119
1119
|
function Yn(e, t) {
|
|
@@ -1143,15 +1143,15 @@ function Kn(e, t) {
|
|
|
1143
1143
|
function ei(e, t, r) {
|
|
1144
1144
|
var n = {};
|
|
1145
1145
|
return r.isMergeableObject(e) && qt(e).forEach(function(i) {
|
|
1146
|
-
n[i] =
|
|
1146
|
+
n[i] = $e(e[i], r);
|
|
1147
1147
|
}), qt(t).forEach(function(i) {
|
|
1148
|
-
Kn(e, i) || (wr(e, i) && r.isMergeableObject(t[i]) ? n[i] = Yn(i, r)(e[i], t[i], r) : n[i] =
|
|
1148
|
+
Kn(e, i) || (wr(e, i) && r.isMergeableObject(t[i]) ? n[i] = Yn(i, r)(e[i], t[i], r) : n[i] = $e(t[i], r));
|
|
1149
1149
|
}), n;
|
|
1150
1150
|
}
|
|
1151
1151
|
function He(e, t, r) {
|
|
1152
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Qn, r.isMergeableObject = r.isMergeableObject || Fn, r.cloneUnlessOtherwiseSpecified =
|
|
1152
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Qn, r.isMergeableObject = r.isMergeableObject || Fn, r.cloneUnlessOtherwiseSpecified = $e;
|
|
1153
1153
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1154
|
-
return o ? n ? r.arrayMerge(e, t, r) : ei(e, t, r) :
|
|
1154
|
+
return o ? n ? r.arrayMerge(e, t, r) : ei(e, t, r) : $e(t, r);
|
|
1155
1155
|
}
|
|
1156
1156
|
He.all = function(t, r) {
|
|
1157
1157
|
if (!Array.isArray(t))
|
|
@@ -1210,10 +1210,10 @@ var ui = function() {
|
|
|
1210
1210
|
}
|
|
1211
1211
|
}, dt = {
|
|
1212
1212
|
variadic: ai
|
|
1213
|
-
},
|
|
1213
|
+
}, x;
|
|
1214
1214
|
(function(e) {
|
|
1215
1215
|
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";
|
|
1216
|
-
})(
|
|
1216
|
+
})(x || (x = {}));
|
|
1217
1217
|
var P;
|
|
1218
1218
|
(function(e) {
|
|
1219
1219
|
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";
|
|
@@ -1358,8 +1358,8 @@ function bi(e) {
|
|
|
1358
1358
|
if (s.length === 0)
|
|
1359
1359
|
throw new Error("Invalid number skeleton");
|
|
1360
1360
|
for (var a = s[0], l = s.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
1361
|
-
var
|
|
1362
|
-
if (
|
|
1361
|
+
var f = h[u];
|
|
1362
|
+
if (f.length === 0)
|
|
1363
1363
|
throw new Error("Invalid number skeleton");
|
|
1364
1364
|
}
|
|
1365
1365
|
r.push({ stem: a, options: l });
|
|
@@ -1469,13 +1469,13 @@ function _i(e) {
|
|
|
1469
1469
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1470
1470
|
continue;
|
|
1471
1471
|
case "scientific":
|
|
1472
|
-
t =
|
|
1473
|
-
return
|
|
1472
|
+
t = w(w(w({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1473
|
+
return w(w({}, l), rr(u));
|
|
1474
1474
|
}, {}));
|
|
1475
1475
|
continue;
|
|
1476
1476
|
case "engineering":
|
|
1477
|
-
t =
|
|
1478
|
-
return
|
|
1477
|
+
t = w(w(w({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1478
|
+
return w(w({}, l), rr(u));
|
|
1479
1479
|
}, {}));
|
|
1480
1480
|
continue;
|
|
1481
1481
|
case "notation-simple":
|
|
@@ -1520,11 +1520,11 @@ function _i(e) {
|
|
|
1520
1520
|
case "integer-width":
|
|
1521
1521
|
if (i.options.length > 1)
|
|
1522
1522
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1523
|
-
i.options[0].replace(yi, function(l, u, h,
|
|
1523
|
+
i.options[0].replace(yi, function(l, u, h, f, p, g) {
|
|
1524
1524
|
if (u)
|
|
1525
1525
|
t.minimumIntegerDigits = h.length;
|
|
1526
1526
|
else {
|
|
1527
|
-
if (
|
|
1527
|
+
if (f && p)
|
|
1528
1528
|
throw new Error("We currently do not support maximum integer digits");
|
|
1529
1529
|
if (g)
|
|
1530
1530
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1540,25 +1540,25 @@ function _i(e) {
|
|
|
1540
1540
|
if (er.test(i.stem)) {
|
|
1541
1541
|
if (i.options.length > 1)
|
|
1542
1542
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1543
|
-
i.stem.replace(er, function(l, u, h,
|
|
1544
|
-
return h === "*" ? t.minimumFractionDigits = u.length :
|
|
1543
|
+
i.stem.replace(er, function(l, u, h, f, p, g) {
|
|
1544
|
+
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : p && g ? (t.minimumFractionDigits = p.length, t.maximumFractionDigits = p.length + g.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1545
1545
|
});
|
|
1546
1546
|
var o = i.options[0];
|
|
1547
|
-
o === "w" ? t =
|
|
1547
|
+
o === "w" ? t = w(w({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = w(w({}, t), tr(o)));
|
|
1548
1548
|
continue;
|
|
1549
1549
|
}
|
|
1550
1550
|
if (Rr.test(i.stem)) {
|
|
1551
|
-
t =
|
|
1551
|
+
t = w(w({}, t), tr(i.stem));
|
|
1552
1552
|
continue;
|
|
1553
1553
|
}
|
|
1554
1554
|
var s = Dr(i.stem);
|
|
1555
|
-
s && (t =
|
|
1555
|
+
s && (t = w(w({}, t), s));
|
|
1556
1556
|
var a = vi(i.stem);
|
|
1557
|
-
a && (t =
|
|
1557
|
+
a && (t = w(w({}, t), a));
|
|
1558
1558
|
}
|
|
1559
1559
|
return t;
|
|
1560
1560
|
}
|
|
1561
|
-
var
|
|
1561
|
+
var Ye = {
|
|
1562
1562
|
"001": [
|
|
1563
1563
|
"H",
|
|
1564
1564
|
"h"
|
|
@@ -2973,13 +2973,13 @@ var Qe = {
|
|
|
2973
2973
|
"h"
|
|
2974
2974
|
]
|
|
2975
2975
|
};
|
|
2976
|
-
function
|
|
2976
|
+
function Ei(e, t) {
|
|
2977
2977
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2978
2978
|
var i = e.charAt(n);
|
|
2979
2979
|
if (i === "j") {
|
|
2980
2980
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2981
2981
|
o++, n++;
|
|
2982
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
2982
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = xi(t);
|
|
2983
2983
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2984
2984
|
r += l;
|
|
2985
2985
|
for (; s-- > 0; )
|
|
@@ -2989,7 +2989,7 @@ function xi(e, t) {
|
|
|
2989
2989
|
}
|
|
2990
2990
|
return r;
|
|
2991
2991
|
}
|
|
2992
|
-
function
|
|
2992
|
+
function xi(e) {
|
|
2993
2993
|
var t = e.hourCycle;
|
|
2994
2994
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2995
2995
|
e.hourCycles && // @ts-ignore
|
|
@@ -3008,7 +3008,7 @@ function Ei(e) {
|
|
|
3008
3008
|
}
|
|
3009
3009
|
var r = e.language, n;
|
|
3010
3010
|
r !== "root" && (n = e.maximize().region);
|
|
3011
|
-
var i =
|
|
3011
|
+
var i = Ye[n || ""] || Ye[r || ""] || Ye["".concat(r, "-001")] || Ye["001"];
|
|
3012
3012
|
return i[0];
|
|
3013
3013
|
}
|
|
3014
3014
|
var mt, Si = new RegExp("^".concat(Mr.source, "*")), Ti = new RegExp("".concat(Mr.source, "*$"));
|
|
@@ -3145,7 +3145,7 @@ var Ri = (
|
|
|
3145
3145
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3146
3146
|
if (n)
|
|
3147
3147
|
break;
|
|
3148
|
-
return this.error(
|
|
3148
|
+
return this.error(x.UNMATCHED_CLOSING_TAG, S(this.clonePosition(), this.clonePosition()));
|
|
3149
3149
|
} else if (o === 60 && !this.ignoreTag && Ot(this.peek() || 0)) {
|
|
3150
3150
|
var s = this.parseTag(t, r);
|
|
3151
3151
|
if (s.err)
|
|
@@ -3180,9 +3180,9 @@ var Ri = (
|
|
|
3180
3180
|
var s = o.val, a = this.clonePosition();
|
|
3181
3181
|
if (this.bumpIf("</")) {
|
|
3182
3182
|
if (this.isEOF() || !Ot(this.char()))
|
|
3183
|
-
return this.error(
|
|
3183
|
+
return this.error(x.INVALID_TAG, S(a, this.clonePosition()));
|
|
3184
3184
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3185
|
-
return i !== u ? this.error(
|
|
3185
|
+
return i !== u ? this.error(x.UNMATCHED_CLOSING_TAG, S(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3186
3186
|
val: {
|
|
3187
3187
|
type: P.tag,
|
|
3188
3188
|
value: i,
|
|
@@ -3190,11 +3190,11 @@ var Ri = (
|
|
|
3190
3190
|
location: S(n, this.clonePosition())
|
|
3191
3191
|
},
|
|
3192
3192
|
err: null
|
|
3193
|
-
} : this.error(
|
|
3193
|
+
} : this.error(x.INVALID_TAG, S(a, this.clonePosition())));
|
|
3194
3194
|
} else
|
|
3195
|
-
return this.error(
|
|
3195
|
+
return this.error(x.UNCLOSED_TAG, S(n, this.clonePosition()));
|
|
3196
3196
|
} else
|
|
3197
|
-
return this.error(
|
|
3197
|
+
return this.error(x.INVALID_TAG, S(n, this.clonePosition()));
|
|
3198
3198
|
}, e.prototype.parseTagName = function() {
|
|
3199
3199
|
var t = this.offset();
|
|
3200
3200
|
for (this.bump(); !this.isEOF() && Di(this.char()); )
|
|
@@ -3269,14 +3269,14 @@ var Ri = (
|
|
|
3269
3269
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3270
3270
|
var n = this.clonePosition();
|
|
3271
3271
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3272
|
-
return this.error(
|
|
3272
|
+
return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, S(n, this.clonePosition()));
|
|
3273
3273
|
if (this.char() === 125)
|
|
3274
|
-
return this.bump(), this.error(
|
|
3274
|
+
return this.bump(), this.error(x.EMPTY_ARGUMENT, S(n, this.clonePosition()));
|
|
3275
3275
|
var i = this.parseIdentifierIfPossible().value;
|
|
3276
3276
|
if (!i)
|
|
3277
|
-
return this.error(
|
|
3277
|
+
return this.error(x.MALFORMED_ARGUMENT, S(n, this.clonePosition()));
|
|
3278
3278
|
if (this.bumpSpace(), this.isEOF())
|
|
3279
|
-
return this.error(
|
|
3279
|
+
return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, S(n, this.clonePosition()));
|
|
3280
3280
|
switch (this.char()) {
|
|
3281
3281
|
case 125:
|
|
3282
3282
|
return this.bump(), {
|
|
@@ -3289,9 +3289,9 @@ var Ri = (
|
|
|
3289
3289
|
err: null
|
|
3290
3290
|
};
|
|
3291
3291
|
case 44:
|
|
3292
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3292
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, S(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3293
3293
|
default:
|
|
3294
|
-
return this.error(
|
|
3294
|
+
return this.error(x.MALFORMED_ARGUMENT, S(n, this.clonePosition()));
|
|
3295
3295
|
}
|
|
3296
3296
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3297
3297
|
var t = this.clonePosition(), r = this.offset(), n = Pt(this.message, r), i = r + n.length;
|
|
@@ -3302,7 +3302,7 @@ var Ri = (
|
|
|
3302
3302
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3303
3303
|
switch (a) {
|
|
3304
3304
|
case "":
|
|
3305
|
-
return this.error(
|
|
3305
|
+
return this.error(x.EXPECT_ARGUMENT_TYPE, S(s, l));
|
|
3306
3306
|
case "number":
|
|
3307
3307
|
case "date":
|
|
3308
3308
|
case "time": {
|
|
@@ -3310,12 +3310,12 @@ var Ri = (
|
|
|
3310
3310
|
var u = null;
|
|
3311
3311
|
if (this.bumpIf(",")) {
|
|
3312
3312
|
this.bumpSpace();
|
|
3313
|
-
var h = this.clonePosition(),
|
|
3314
|
-
if (
|
|
3315
|
-
return
|
|
3316
|
-
var p = Mi(
|
|
3313
|
+
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3314
|
+
if (f.err)
|
|
3315
|
+
return f;
|
|
3316
|
+
var p = Mi(f.val);
|
|
3317
3317
|
if (p.length === 0)
|
|
3318
|
-
return this.error(
|
|
3318
|
+
return this.error(x.EXPECT_ARGUMENT_STYLE, S(this.clonePosition(), this.clonePosition()));
|
|
3319
3319
|
var g = S(h, this.clonePosition());
|
|
3320
3320
|
u = { style: p, styleLocation: g };
|
|
3321
3321
|
}
|
|
@@ -3326,21 +3326,21 @@ var Ri = (
|
|
|
3326
3326
|
if (u && nr(u == null ? void 0 : u.style, "::", 0)) {
|
|
3327
3327
|
var _ = Ni(u.style.slice(2));
|
|
3328
3328
|
if (a === "number") {
|
|
3329
|
-
var
|
|
3330
|
-
return
|
|
3331
|
-
val: { type: P.number, value: n, location: v, style:
|
|
3329
|
+
var f = this.parseNumberSkeletonFromString(_, u.styleLocation);
|
|
3330
|
+
return f.err ? f : {
|
|
3331
|
+
val: { type: P.number, value: n, location: v, style: f.val },
|
|
3332
3332
|
err: null
|
|
3333
3333
|
};
|
|
3334
3334
|
} else {
|
|
3335
3335
|
if (_.length === 0)
|
|
3336
|
-
return this.error(
|
|
3337
|
-
var
|
|
3338
|
-
this.locale && (
|
|
3336
|
+
return this.error(x.EXPECT_DATE_TIME_SKELETON, v);
|
|
3337
|
+
var E = _;
|
|
3338
|
+
this.locale && (E = Ei(_, this.locale));
|
|
3339
3339
|
var p = {
|
|
3340
3340
|
type: Ae.dateTime,
|
|
3341
|
-
pattern:
|
|
3341
|
+
pattern: E,
|
|
3342
3342
|
location: u.styleLocation,
|
|
3343
|
-
parsedOptions: this.shouldParseSkeletons ? di(
|
|
3343
|
+
parsedOptions: this.shouldParseSkeletons ? di(E) : {}
|
|
3344
3344
|
}, T = a === "date" ? P.date : P.time;
|
|
3345
3345
|
return {
|
|
3346
3346
|
val: { type: T, value: n, location: v, style: p },
|
|
@@ -3363,31 +3363,31 @@ var Ri = (
|
|
|
3363
3363
|
case "select": {
|
|
3364
3364
|
var B = this.clonePosition();
|
|
3365
3365
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3366
|
-
return this.error(
|
|
3366
|
+
return this.error(x.EXPECT_SELECT_ARGUMENT_OPTIONS, S(B, w({}, B)));
|
|
3367
3367
|
this.bumpSpace();
|
|
3368
|
-
var
|
|
3369
|
-
if (a !== "select" &&
|
|
3368
|
+
var R = this.parseIdentifierIfPossible(), I = 0;
|
|
3369
|
+
if (a !== "select" && R.value === "offset") {
|
|
3370
3370
|
if (!this.bumpIf(":"))
|
|
3371
|
-
return this.error(
|
|
3371
|
+
return this.error(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, S(this.clonePosition(), this.clonePosition()));
|
|
3372
3372
|
this.bumpSpace();
|
|
3373
|
-
var
|
|
3374
|
-
if (
|
|
3375
|
-
return
|
|
3376
|
-
this.bumpSpace(),
|
|
3373
|
+
var f = this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, x.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3374
|
+
if (f.err)
|
|
3375
|
+
return f;
|
|
3376
|
+
this.bumpSpace(), R = this.parseIdentifierIfPossible(), I = f.val;
|
|
3377
3377
|
}
|
|
3378
|
-
var k = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
3378
|
+
var k = this.tryParsePluralOrSelectOptions(t, a, r, R);
|
|
3379
3379
|
if (k.err)
|
|
3380
3380
|
return k;
|
|
3381
3381
|
var y = this.tryParseArgumentClose(i);
|
|
3382
3382
|
if (y.err)
|
|
3383
3383
|
return y;
|
|
3384
|
-
var
|
|
3384
|
+
var X = S(i, this.clonePosition());
|
|
3385
3385
|
return a === "select" ? {
|
|
3386
3386
|
val: {
|
|
3387
3387
|
type: P.select,
|
|
3388
3388
|
value: n,
|
|
3389
3389
|
options: ir(k.val),
|
|
3390
|
-
location:
|
|
3390
|
+
location: X
|
|
3391
3391
|
},
|
|
3392
3392
|
err: null
|
|
3393
3393
|
} : {
|
|
@@ -3397,16 +3397,16 @@ var Ri = (
|
|
|
3397
3397
|
options: ir(k.val),
|
|
3398
3398
|
offset: I,
|
|
3399
3399
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3400
|
-
location:
|
|
3400
|
+
location: X
|
|
3401
3401
|
},
|
|
3402
3402
|
err: null
|
|
3403
3403
|
};
|
|
3404
3404
|
}
|
|
3405
3405
|
default:
|
|
3406
|
-
return this.error(
|
|
3406
|
+
return this.error(x.INVALID_ARGUMENT_TYPE, S(s, l));
|
|
3407
3407
|
}
|
|
3408
3408
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3409
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3409
|
+
return this.isEOF() || this.char() !== 125 ? this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, S(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3410
3410
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3411
3411
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3412
3412
|
var n = this.char();
|
|
@@ -3415,7 +3415,7 @@ var Ri = (
|
|
|
3415
3415
|
this.bump();
|
|
3416
3416
|
var i = this.clonePosition();
|
|
3417
3417
|
if (!this.bumpUntil("'"))
|
|
3418
|
-
return this.error(
|
|
3418
|
+
return this.error(x.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, S(i, this.clonePosition()));
|
|
3419
3419
|
this.bump();
|
|
3420
3420
|
break;
|
|
3421
3421
|
}
|
|
@@ -3447,7 +3447,7 @@ var Ri = (
|
|
|
3447
3447
|
try {
|
|
3448
3448
|
n = bi(t);
|
|
3449
3449
|
} catch (i) {
|
|
3450
|
-
return this.error(
|
|
3450
|
+
return this.error(x.INVALID_NUMBER_SKELETON, r);
|
|
3451
3451
|
}
|
|
3452
3452
|
return {
|
|
3453
3453
|
val: {
|
|
@@ -3461,21 +3461,21 @@ var Ri = (
|
|
|
3461
3461
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3462
3462
|
for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3463
3463
|
if (u.length === 0) {
|
|
3464
|
-
var
|
|
3464
|
+
var f = this.clonePosition();
|
|
3465
3465
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3466
|
-
var p = this.tryParseDecimalInteger(
|
|
3466
|
+
var p = this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_SELECTOR, x.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3467
3467
|
if (p.err)
|
|
3468
3468
|
return p;
|
|
3469
|
-
h = S(
|
|
3469
|
+
h = S(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
3470
3470
|
} else
|
|
3471
3471
|
break;
|
|
3472
3472
|
}
|
|
3473
3473
|
if (l.has(u))
|
|
3474
|
-
return this.error(r === "select" ?
|
|
3474
|
+
return this.error(r === "select" ? x.DUPLICATE_SELECT_ARGUMENT_SELECTOR : x.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3475
3475
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3476
3476
|
var g = this.clonePosition();
|
|
3477
3477
|
if (!this.bumpIf("{"))
|
|
3478
|
-
return this.error(r === "select" ?
|
|
3478
|
+
return this.error(r === "select" ? x.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : x.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, S(this.clonePosition(), this.clonePosition()));
|
|
3479
3479
|
var y = this.parseMessage(t + 1, r, n);
|
|
3480
3480
|
if (y.err)
|
|
3481
3481
|
return y;
|
|
@@ -3490,7 +3490,7 @@ var Ri = (
|
|
|
3490
3490
|
}
|
|
3491
3491
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3492
3492
|
}
|
|
3493
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3493
|
+
return a.length === 0 ? this.error(r === "select" ? x.EXPECT_SELECT_ARGUMENT_SELECTOR : x.EXPECT_PLURAL_ARGUMENT_SELECTOR, S(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(x.MISSING_OTHER_CLAUSE, S(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3494
3494
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3495
3495
|
var n = 1, i = this.clonePosition();
|
|
3496
3496
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3593,10 +3593,10 @@ function Ct(e) {
|
|
|
3593
3593
|
});
|
|
3594
3594
|
}
|
|
3595
3595
|
function ji(e, t) {
|
|
3596
|
-
t === void 0 && (t = {}), t =
|
|
3596
|
+
t === void 0 && (t = {}), t = w({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3597
3597
|
var r = new Ri(e, t).parse();
|
|
3598
3598
|
if (r.err) {
|
|
3599
|
-
var n = SyntaxError(
|
|
3599
|
+
var n = SyntaxError(x[r.err.kind]);
|
|
3600
3600
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3601
3601
|
}
|
|
3602
3602
|
return t != null && t.captureLocation || Ct(r.val), r.val;
|
|
@@ -3605,7 +3605,7 @@ var Be;
|
|
|
3605
3605
|
(function(e) {
|
|
3606
3606
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3607
3607
|
})(Be || (Be = {}));
|
|
3608
|
-
var
|
|
3608
|
+
var st = (
|
|
3609
3609
|
/** @class */
|
|
3610
3610
|
function(e) {
|
|
3611
3611
|
re(t, e);
|
|
@@ -3625,7 +3625,7 @@ var ot = (
|
|
|
3625
3625
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Be.INVALID_VALUE, o) || this;
|
|
3626
3626
|
}
|
|
3627
3627
|
return t;
|
|
3628
|
-
}(
|
|
3628
|
+
}(st)
|
|
3629
3629
|
), $i = (
|
|
3630
3630
|
/** @class */
|
|
3631
3631
|
function(e) {
|
|
@@ -3634,7 +3634,7 @@ var ot = (
|
|
|
3634
3634
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Be.INVALID_VALUE, i) || this;
|
|
3635
3635
|
}
|
|
3636
3636
|
return t;
|
|
3637
|
-
}(
|
|
3637
|
+
}(st)
|
|
3638
3638
|
), ki = (
|
|
3639
3639
|
/** @class */
|
|
3640
3640
|
function(e) {
|
|
@@ -3643,7 +3643,7 @@ var ot = (
|
|
|
3643
3643
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Be.MISSING_VALUE, n) || this;
|
|
3644
3644
|
}
|
|
3645
3645
|
return t;
|
|
3646
|
-
}(
|
|
3646
|
+
}(st)
|
|
3647
3647
|
), D;
|
|
3648
3648
|
(function(e) {
|
|
3649
3649
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
@@ -3657,7 +3657,7 @@ function Fi(e) {
|
|
|
3657
3657
|
function Vi(e) {
|
|
3658
3658
|
return typeof e == "function";
|
|
3659
3659
|
}
|
|
3660
|
-
function
|
|
3660
|
+
function et(e, t, r, n, i, o, s) {
|
|
3661
3661
|
if (e.length === 1 && Kt(e[0]))
|
|
3662
3662
|
return [
|
|
3663
3663
|
{
|
|
@@ -3681,10 +3681,10 @@ function Ke(e, t, r, n, i, o, s) {
|
|
|
3681
3681
|
});
|
|
3682
3682
|
continue;
|
|
3683
3683
|
}
|
|
3684
|
-
var
|
|
3685
|
-
if (!(i &&
|
|
3686
|
-
throw new ki(
|
|
3687
|
-
var p = i[
|
|
3684
|
+
var f = h.value;
|
|
3685
|
+
if (!(i && f in i))
|
|
3686
|
+
throw new ki(f, s);
|
|
3687
|
+
var p = i[f];
|
|
3688
3688
|
if (ci(h)) {
|
|
3689
3689
|
(!p || typeof p == "string" || typeof p == "number") && (p = typeof p == "string" || typeof p == "number" ? String(p) : ""), a.push({
|
|
3690
3690
|
type: typeof p == "string" ? D.literal : D.object,
|
|
@@ -3720,7 +3720,7 @@ function Ke(e, t, r, n, i, o, s) {
|
|
|
3720
3720
|
var y = h.children, v = h.value, _ = i[v];
|
|
3721
3721
|
if (!Vi(_))
|
|
3722
3722
|
throw new $i(v, "function", s);
|
|
3723
|
-
var
|
|
3723
|
+
var E = et(y, t, r, n, i, o), T = _(E.map(function(I) {
|
|
3724
3724
|
return I.value;
|
|
3725
3725
|
}));
|
|
3726
3726
|
Array.isArray(T) || (T = [T]), a.push.apply(a, T.map(function(I) {
|
|
@@ -3734,36 +3734,36 @@ function Ke(e, t, r, n, i, o, s) {
|
|
|
3734
3734
|
var B = h.options[p] || h.options.other;
|
|
3735
3735
|
if (!B)
|
|
3736
3736
|
throw new sr(h.value, p, Object.keys(h.options), s);
|
|
3737
|
-
a.push.apply(a,
|
|
3737
|
+
a.push.apply(a, et(B.value, t, r, n, i));
|
|
3738
3738
|
continue;
|
|
3739
3739
|
}
|
|
3740
3740
|
if (Lr(h)) {
|
|
3741
3741
|
var B = h.options["=".concat(p)];
|
|
3742
3742
|
if (!B) {
|
|
3743
3743
|
if (!Intl.PluralRules)
|
|
3744
|
-
throw new
|
|
3744
|
+
throw new st(`Intl.PluralRules is not available in this environment.
|
|
3745
3745
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3746
3746
|
`, Be.MISSING_INTL_API, s);
|
|
3747
|
-
var
|
|
3748
|
-
B = h.options[
|
|
3747
|
+
var R = r.getPluralRules(t, { type: h.pluralType }).select(p - (h.offset || 0));
|
|
3748
|
+
B = h.options[R] || h.options.other;
|
|
3749
3749
|
}
|
|
3750
3750
|
if (!B)
|
|
3751
3751
|
throw new sr(h.value, p, Object.keys(h.options), s);
|
|
3752
|
-
a.push.apply(a,
|
|
3752
|
+
a.push.apply(a, et(B.value, t, r, n, i, p - (h.offset || 0)));
|
|
3753
3753
|
continue;
|
|
3754
3754
|
}
|
|
3755
3755
|
}
|
|
3756
3756
|
return Fi(a);
|
|
3757
3757
|
}
|
|
3758
3758
|
function Wi(e, t) {
|
|
3759
|
-
return t ?
|
|
3760
|
-
return r[n] =
|
|
3759
|
+
return t ? w(w(w({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3760
|
+
return r[n] = w(w({}, e[n]), t[n] || {}), r;
|
|
3761
3761
|
}, {})) : e;
|
|
3762
3762
|
}
|
|
3763
3763
|
function Xi(e, t) {
|
|
3764
3764
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3765
3765
|
return r[n] = Wi(e[n], t[n]), r;
|
|
3766
|
-
},
|
|
3766
|
+
}, w({}, e)) : e;
|
|
3767
3767
|
}
|
|
3768
3768
|
function bt(e) {
|
|
3769
3769
|
return {
|
|
@@ -3825,12 +3825,12 @@ var Ji = (
|
|
|
3825
3825
|
var u = o.formatToParts(l);
|
|
3826
3826
|
if (u.length === 1)
|
|
3827
3827
|
return u[0].value;
|
|
3828
|
-
var h = u.reduce(function(
|
|
3829
|
-
return !
|
|
3828
|
+
var h = u.reduce(function(f, p) {
|
|
3829
|
+
return !f.length || p.type !== D.literal || typeof f[f.length - 1] != "string" ? f.push(p.value) : f[f.length - 1] += p.value, f;
|
|
3830
3830
|
}, []);
|
|
3831
3831
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3832
3832
|
}, this.formatToParts = function(l) {
|
|
3833
|
-
return
|
|
3833
|
+
return et(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3834
3834
|
}, this.resolvedOptions = function() {
|
|
3835
3835
|
var l;
|
|
3836
3836
|
return {
|
|
@@ -3844,7 +3844,7 @@ var Ji = (
|
|
|
3844
3844
|
var s = i || {};
|
|
3845
3845
|
s.formatters;
|
|
3846
3846
|
var a = Hn(s, ["formatters"]);
|
|
3847
|
-
this.ast = e.__parse(t,
|
|
3847
|
+
this.ast = e.__parse(t, w(w({}, a), { locale: this.resolvedLocale }));
|
|
3848
3848
|
} else
|
|
3849
3849
|
this.ast = t;
|
|
3850
3850
|
if (!Array.isArray(this.ast))
|
|
@@ -3949,7 +3949,7 @@ const ae = {}, Qi = (e, t, r) => r && (t in ae || (ae[t] = {}), e in ae[t] || (a
|
|
|
3949
3949
|
return;
|
|
3950
3950
|
if (t in ae && e in ae[t])
|
|
3951
3951
|
return ae[t][e];
|
|
3952
|
-
const r =
|
|
3952
|
+
const r = at(t);
|
|
3953
3953
|
for (let n = 0; n < r.length; n++) {
|
|
3954
3954
|
const i = r[n], o = qi(i, e);
|
|
3955
3955
|
if (o)
|
|
@@ -3957,7 +3957,7 @@ const ae = {}, Qi = (e, t, r) => r && (t in ae || (ae[t] = {}), e in ae[t] || (a
|
|
|
3957
3957
|
}
|
|
3958
3958
|
};
|
|
3959
3959
|
let Mt;
|
|
3960
|
-
const
|
|
3960
|
+
const Ve = ot({});
|
|
3961
3961
|
function Yi(e) {
|
|
3962
3962
|
return Mt[e] || null;
|
|
3963
3963
|
}
|
|
@@ -3973,7 +3973,7 @@ function qi(e, t) {
|
|
|
3973
3973
|
function Ki(e) {
|
|
3974
3974
|
if (e == null)
|
|
3975
3975
|
return;
|
|
3976
|
-
const t =
|
|
3976
|
+
const t = at(e);
|
|
3977
3977
|
for (let r = 0; r < t.length; r++) {
|
|
3978
3978
|
const n = t[r];
|
|
3979
3979
|
if (Fr(n))
|
|
@@ -3981,28 +3981,28 @@ function Ki(e) {
|
|
|
3981
3981
|
}
|
|
3982
3982
|
}
|
|
3983
3983
|
function Vr(e, ...t) {
|
|
3984
|
-
delete ae[e],
|
|
3984
|
+
delete ae[e], Ve.update((r) => (r[e] = ni.all([r[e] || {}, ...t]), r));
|
|
3985
3985
|
}
|
|
3986
3986
|
Oe(
|
|
3987
|
-
[
|
|
3987
|
+
[Ve],
|
|
3988
3988
|
([e]) => Object.keys(e)
|
|
3989
3989
|
);
|
|
3990
|
-
|
|
3991
|
-
const
|
|
3990
|
+
Ve.subscribe((e) => Mt = e);
|
|
3991
|
+
const tt = {};
|
|
3992
3992
|
function eo(e, t) {
|
|
3993
|
-
|
|
3993
|
+
tt[e].delete(t), tt[e].size === 0 && delete tt[e];
|
|
3994
3994
|
}
|
|
3995
3995
|
function Wr(e) {
|
|
3996
|
-
return
|
|
3996
|
+
return tt[e];
|
|
3997
3997
|
}
|
|
3998
3998
|
function to(e) {
|
|
3999
|
-
return
|
|
3999
|
+
return at(e).map((t) => {
|
|
4000
4000
|
const r = Wr(t);
|
|
4001
4001
|
return [t, r ? [...r] : []];
|
|
4002
4002
|
}).filter(([, t]) => t.length > 0);
|
|
4003
4003
|
}
|
|
4004
4004
|
function Lt(e) {
|
|
4005
|
-
return e == null ? !1 :
|
|
4005
|
+
return e == null ? !1 : at(e).some(
|
|
4006
4006
|
(t) => {
|
|
4007
4007
|
var r;
|
|
4008
4008
|
return (r = Wr(t)) == null ? void 0 : r.size;
|
|
@@ -4014,20 +4014,20 @@ function ro(e, t) {
|
|
|
4014
4014
|
t.map((n) => (eo(e, n), n().then((i) => i.default || i)))
|
|
4015
4015
|
).then((n) => Vr(e, ...n));
|
|
4016
4016
|
}
|
|
4017
|
-
const
|
|
4017
|
+
const De = {};
|
|
4018
4018
|
function Xr(e) {
|
|
4019
4019
|
if (!Lt(e))
|
|
4020
|
-
return e in
|
|
4020
|
+
return e in De ? De[e] : Promise.resolve();
|
|
4021
4021
|
const t = to(e);
|
|
4022
|
-
return
|
|
4022
|
+
return De[e] = Promise.all(
|
|
4023
4023
|
t.map(
|
|
4024
4024
|
([r, n]) => ro(r, n)
|
|
4025
4025
|
)
|
|
4026
4026
|
).then(() => {
|
|
4027
4027
|
if (Lt(e))
|
|
4028
4028
|
return Xr(e);
|
|
4029
|
-
delete
|
|
4030
|
-
}),
|
|
4029
|
+
delete De[e];
|
|
4030
|
+
}), De[e];
|
|
4031
4031
|
}
|
|
4032
4032
|
const no = {
|
|
4033
4033
|
number: {
|
|
@@ -4069,7 +4069,7 @@ const no = {
|
|
|
4069
4069
|
function Pe() {
|
|
4070
4070
|
return oo;
|
|
4071
4071
|
}
|
|
4072
|
-
const gt =
|
|
4072
|
+
const gt = ot(!1);
|
|
4073
4073
|
var so = Object.defineProperty, ao = Object.defineProperties, uo = Object.getOwnPropertyDescriptors, ar = Object.getOwnPropertySymbols, lo = Object.prototype.hasOwnProperty, ho = Object.prototype.propertyIsEnumerable, ur = (e, t, r) => t in e ? so(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, co = (e, t) => {
|
|
4074
4074
|
for (var r in t || (t = {}))
|
|
4075
4075
|
lo.call(t, r) && ur(e, r, t[r]);
|
|
@@ -4079,18 +4079,18 @@ var so = Object.defineProperty, ao = Object.defineProperties, uo = Object.getOwn
|
|
|
4079
4079
|
return e;
|
|
4080
4080
|
}, fo = (e, t) => ao(e, uo(t));
|
|
4081
4081
|
let It;
|
|
4082
|
-
const
|
|
4082
|
+
const rt = ot(null);
|
|
4083
4083
|
function lr(e) {
|
|
4084
4084
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4085
4085
|
}
|
|
4086
|
-
function
|
|
4086
|
+
function at(e, t = Pe().fallbackLocale) {
|
|
4087
4087
|
const r = lr(e);
|
|
4088
4088
|
return t ? [.../* @__PURE__ */ new Set([...r, ...lr(t)])] : r;
|
|
4089
4089
|
}
|
|
4090
4090
|
function fe() {
|
|
4091
4091
|
return It != null ? It : void 0;
|
|
4092
4092
|
}
|
|
4093
|
-
|
|
4093
|
+
rt.subscribe((e) => {
|
|
4094
4094
|
It = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4095
4095
|
});
|
|
4096
4096
|
const po = (e) => {
|
|
@@ -4101,64 +4101,64 @@ const po = (e) => {
|
|
|
4101
4101
|
() => gt.set(!0),
|
|
4102
4102
|
t
|
|
4103
4103
|
) : gt.set(!0), Xr(e).then(() => {
|
|
4104
|
-
|
|
4104
|
+
rt.set(e);
|
|
4105
4105
|
}).finally(() => {
|
|
4106
4106
|
clearTimeout(r), gt.set(!1);
|
|
4107
4107
|
});
|
|
4108
4108
|
}
|
|
4109
|
-
return
|
|
4110
|
-
}, Ce = fo(co({},
|
|
4109
|
+
return rt.set(e);
|
|
4110
|
+
}, Ce = fo(co({}, rt), {
|
|
4111
4111
|
set: po
|
|
4112
|
-
}),
|
|
4112
|
+
}), ut = (e) => {
|
|
4113
4113
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4114
4114
|
return (n) => {
|
|
4115
4115
|
const i = JSON.stringify(n);
|
|
4116
4116
|
return i in t ? t[i] : t[i] = e(n);
|
|
4117
4117
|
};
|
|
4118
4118
|
};
|
|
4119
|
-
var mo = Object.defineProperty,
|
|
4119
|
+
var mo = Object.defineProperty, nt = Object.getOwnPropertySymbols, zr = Object.prototype.hasOwnProperty, Jr = Object.prototype.propertyIsEnumerable, hr = (e, t, r) => t in e ? mo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Rt = (e, t) => {
|
|
4120
4120
|
for (var r in t || (t = {}))
|
|
4121
4121
|
zr.call(t, r) && hr(e, r, t[r]);
|
|
4122
|
-
if (
|
|
4123
|
-
for (var r of
|
|
4122
|
+
if (nt)
|
|
4123
|
+
for (var r of nt(t))
|
|
4124
4124
|
Jr.call(t, r) && hr(e, r, t[r]);
|
|
4125
4125
|
return e;
|
|
4126
4126
|
}, Le = (e, t) => {
|
|
4127
4127
|
var r = {};
|
|
4128
4128
|
for (var n in e)
|
|
4129
4129
|
zr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4130
|
-
if (e != null &&
|
|
4131
|
-
for (var n of
|
|
4130
|
+
if (e != null && nt)
|
|
4131
|
+
for (var n of nt(e))
|
|
4132
4132
|
t.indexOf(n) < 0 && Jr.call(e, n) && (r[n] = e[n]);
|
|
4133
4133
|
return r;
|
|
4134
4134
|
};
|
|
4135
|
-
const
|
|
4135
|
+
const ke = (e, t) => {
|
|
4136
4136
|
const { formats: r } = Pe();
|
|
4137
4137
|
if (e in r && t in r[e])
|
|
4138
4138
|
return r[e][t];
|
|
4139
4139
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4140
|
-
}, bo =
|
|
4140
|
+
}, bo = ut(
|
|
4141
4141
|
(e) => {
|
|
4142
4142
|
var t = e, { locale: r, format: n } = t, i = Le(t, ["locale", "format"]);
|
|
4143
4143
|
if (r == null)
|
|
4144
4144
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4145
|
-
return n && (i =
|
|
4145
|
+
return n && (i = ke("number", n)), new Intl.NumberFormat(r, i);
|
|
4146
4146
|
}
|
|
4147
|
-
), go =
|
|
4147
|
+
), go = ut(
|
|
4148
4148
|
(e) => {
|
|
4149
4149
|
var t = e, { locale: r, format: n } = t, i = Le(t, ["locale", "format"]);
|
|
4150
4150
|
if (r == null)
|
|
4151
4151
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4152
|
-
return n ? i =
|
|
4152
|
+
return n ? i = ke("date", n) : Object.keys(i).length === 0 && (i = ke("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4153
4153
|
}
|
|
4154
|
-
), yo =
|
|
4154
|
+
), yo = ut(
|
|
4155
4155
|
(e) => {
|
|
4156
4156
|
var t = e, { locale: r, format: n } = t, i = Le(t, ["locale", "format"]);
|
|
4157
4157
|
if (r == null)
|
|
4158
4158
|
throw new Error(
|
|
4159
4159
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4160
4160
|
);
|
|
4161
|
-
return n ? i =
|
|
4161
|
+
return n ? i = ke("time", n) : Object.keys(i).length === 0 && (i = ke("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4162
4162
|
}
|
|
4163
4163
|
), vo = (e = {}) => {
|
|
4164
4164
|
var t = e, {
|
|
@@ -4174,14 +4174,14 @@ const $e = (e, t) => {
|
|
|
4174
4174
|
"locale"
|
|
4175
4175
|
]);
|
|
4176
4176
|
return go(Rt({ locale: r }, n));
|
|
4177
|
-
},
|
|
4177
|
+
}, Eo = (e = {}) => {
|
|
4178
4178
|
var t = e, {
|
|
4179
4179
|
locale: r = fe()
|
|
4180
4180
|
} = t, n = Le(t, [
|
|
4181
4181
|
"locale"
|
|
4182
4182
|
]);
|
|
4183
4183
|
return yo(Rt({ locale: r }, n));
|
|
4184
|
-
},
|
|
4184
|
+
}, xo = ut(
|
|
4185
4185
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4186
4186
|
(e, t = fe()) => new Ji(e, t, Pe().formats, {
|
|
4187
4187
|
ignoreTag: Pe().ignoreTag
|
|
@@ -4208,22 +4208,22 @@ const $e = (e, t) => {
|
|
|
4208
4208
|
), h;
|
|
4209
4209
|
if (!a)
|
|
4210
4210
|
return h;
|
|
4211
|
-
let
|
|
4211
|
+
let f = h;
|
|
4212
4212
|
try {
|
|
4213
|
-
|
|
4213
|
+
f = xo(h, l).format(a);
|
|
4214
4214
|
} catch (p) {
|
|
4215
4215
|
p instanceof Error && console.warn(
|
|
4216
4216
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4217
4217
|
p.message
|
|
4218
4218
|
);
|
|
4219
4219
|
}
|
|
4220
|
-
return
|
|
4221
|
-
}, To = (e, t) =>
|
|
4222
|
-
Oe([Ce,
|
|
4220
|
+
return f;
|
|
4221
|
+
}, To = (e, t) => Eo(t).format(e), wo = (e, t) => _o(t).format(e), Ho = (e, t) => vo(t).format(e), Ao = (e, t = fe()) => kr(e, t);
|
|
4222
|
+
Oe([Ce, Ve], () => So);
|
|
4223
4223
|
Oe([Ce], () => To);
|
|
4224
4224
|
Oe([Ce], () => wo);
|
|
4225
4225
|
Oe([Ce], () => Ho);
|
|
4226
|
-
Oe([Ce,
|
|
4226
|
+
Oe([Ce, Ve], () => Ao);
|
|
4227
4227
|
window.emWidgets = { topic: jn };
|
|
4228
4228
|
const Bo = (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));
|
|
4229
4229
|
function Po(e, t) {
|
|
@@ -4298,56 +4298,56 @@ function Io(e) {
|
|
|
4298
4298
|
}
|
|
4299
4299
|
function pr(e, t, r) {
|
|
4300
4300
|
const n = e.slice();
|
|
4301
|
-
return n[
|
|
4301
|
+
return n[53] = t[r], n[55] = r, n;
|
|
4302
4302
|
}
|
|
4303
4303
|
function No(e) {
|
|
4304
|
-
let t, r, n, i, o, s, a, l, u, h,
|
|
4305
|
-
function y(
|
|
4304
|
+
let t, r, n, i, o, s, a, l, u, h, f, p, g;
|
|
4305
|
+
function y(E, T) {
|
|
4306
4306
|
return (
|
|
4307
4307
|
/*tabletView*/
|
|
4308
|
-
|
|
4308
|
+
E[6] ? Uo : Do
|
|
4309
4309
|
);
|
|
4310
4310
|
}
|
|
4311
4311
|
let v = y(e), _ = v(e);
|
|
4312
4312
|
return {
|
|
4313
4313
|
c() {
|
|
4314
|
-
t = b("div"), r = b("div"), n = b("div"), i = b("div"), o = q(), s = b("div"), _.c(), a = q(), l = b("div"), u = b("img"), m(i, "class", "vendorLogo"),
|
|
4314
|
+
t = b("div"), r = b("div"), n = b("div"), i = b("div"), o = q(), s = b("div"), _.c(), a = q(), l = b("div"), u = b("img"), m(i, "class", "vendorLogo"), Ze(i, "background-image", "url(" + /*vendorIcon*/
|
|
4315
4315
|
e[7] + ")"), m(s, "class", "displayContainer"), $(u.src, h = /*titleLogoImg*/
|
|
4316
|
-
e[12]) || m(u, "src", h), m(u, "alt", ""), m(l, "class", "title"), m(n, "class",
|
|
4316
|
+
e[12]) || m(u, "src", h), m(u, "alt", ""), m(l, "class", "title"), m(n, "class", f = "mainWrapper " + /*visualstructure*/
|
|
4317
4317
|
e[0] + " " + /*mobileView*/
|
|
4318
4318
|
(e[5] && !/*tabletView*/
|
|
4319
4319
|
e[6] ? "mobile" : (
|
|
4320
4320
|
/*tabletView*/
|
|
4321
4321
|
e[6] ? "tablet" : ""
|
|
4322
|
-
))),
|
|
4322
|
+
))), Ze(n, "background", "url(" + /*backgroundImg*/
|
|
4323
4323
|
e[11] + ")"), m(r, "class", "jackpotBanner"), m(t, "class", "");
|
|
4324
4324
|
},
|
|
4325
|
-
m(
|
|
4326
|
-
K(
|
|
4325
|
+
m(E, T) {
|
|
4326
|
+
K(E, t, T), d(t, r), d(r, n), d(n, i), d(n, o), d(n, s), _.m(s, null), d(n, a), d(n, l), d(l, u), p || (g = un(
|
|
4327
4327
|
r,
|
|
4328
4328
|
"click",
|
|
4329
4329
|
/*click_handler*/
|
|
4330
4330
|
e[33]
|
|
4331
4331
|
), p = !0);
|
|
4332
4332
|
},
|
|
4333
|
-
p(
|
|
4333
|
+
p(E, T) {
|
|
4334
4334
|
T[0] & /*vendorIcon*/
|
|
4335
|
-
128 &&
|
|
4336
|
-
|
|
4335
|
+
128 && Ze(i, "background-image", "url(" + /*vendorIcon*/
|
|
4336
|
+
E[7] + ")"), v === (v = y(E)) && _ ? _.p(E, T) : (_.d(1), _ = v(E), _ && (_.c(), _.m(s, null))), T[0] & /*titleLogoImg*/
|
|
4337
4337
|
4096 && !$(u.src, h = /*titleLogoImg*/
|
|
4338
|
-
|
|
4339
|
-
97 &&
|
|
4340
|
-
|
|
4341
|
-
(
|
|
4342
|
-
|
|
4338
|
+
E[12]) && m(u, "src", h), T[0] & /*visualstructure, mobileView, tabletView*/
|
|
4339
|
+
97 && f !== (f = "mainWrapper " + /*visualstructure*/
|
|
4340
|
+
E[0] + " " + /*mobileView*/
|
|
4341
|
+
(E[5] && !/*tabletView*/
|
|
4342
|
+
E[6] ? "mobile" : (
|
|
4343
4343
|
/*tabletView*/
|
|
4344
|
-
|
|
4345
|
-
))) && m(n, "class",
|
|
4346
|
-
2048 &&
|
|
4347
|
-
|
|
4344
|
+
E[6] ? "tablet" : ""
|
|
4345
|
+
))) && m(n, "class", f), T[0] & /*backgroundImg*/
|
|
4346
|
+
2048 && Ze(n, "background", "url(" + /*backgroundImg*/
|
|
4347
|
+
E[11] + ")");
|
|
4348
4348
|
},
|
|
4349
|
-
d(
|
|
4350
|
-
|
|
4349
|
+
d(E) {
|
|
4350
|
+
E && W(t), _.d(), p = !1, g();
|
|
4351
4351
|
}
|
|
4352
4352
|
};
|
|
4353
4353
|
}
|
|
@@ -4362,7 +4362,7 @@ function Mo(e) {
|
|
|
4362
4362
|
},
|
|
4363
4363
|
p: G,
|
|
4364
4364
|
d(r) {
|
|
4365
|
-
r &&
|
|
4365
|
+
r && W(t);
|
|
4366
4366
|
}
|
|
4367
4367
|
};
|
|
4368
4368
|
}
|
|
@@ -4377,7 +4377,7 @@ function Ro(e) {
|
|
|
4377
4377
|
},
|
|
4378
4378
|
p: G,
|
|
4379
4379
|
d(r) {
|
|
4380
|
-
r &&
|
|
4380
|
+
r && W(t);
|
|
4381
4381
|
}
|
|
4382
4382
|
};
|
|
4383
4383
|
}
|
|
@@ -4385,7 +4385,7 @@ function Uo(e) {
|
|
|
4385
4385
|
let t, r, n, i, o, s, a = (
|
|
4386
4386
|
/*formattedLabels*/
|
|
4387
4387
|
e[9][0] + ""
|
|
4388
|
-
), l, u, h,
|
|
4388
|
+
), l, u, h, f = (
|
|
4389
4389
|
/*realtimeupdate*/
|
|
4390
4390
|
(e[2] === "true" ? (
|
|
4391
4391
|
/*updatedJackpotValues*/
|
|
@@ -4394,10 +4394,10 @@ function Uo(e) {
|
|
|
4394
4394
|
/*formattedJackpotValues*/
|
|
4395
4395
|
e[8][0]
|
|
4396
4396
|
)) + ""
|
|
4397
|
-
), p, g, y, v, _,
|
|
4397
|
+
), p, g, y, v, _, E, T, B, R, I, k = (
|
|
4398
4398
|
/*formattedLabels*/
|
|
4399
4399
|
e[9][1] + ""
|
|
4400
|
-
),
|
|
4400
|
+
), X, z, ue, ne = (
|
|
4401
4401
|
/*realtimeupdate*/
|
|
4402
4402
|
(e[2] === "true" ? (
|
|
4403
4403
|
/*updatedJackpotValues*/
|
|
@@ -4406,10 +4406,10 @@ function Uo(e) {
|
|
|
4406
4406
|
/*formattedJackpotValues*/
|
|
4407
4407
|
e[8][1]
|
|
4408
4408
|
)) + ""
|
|
4409
|
-
), ie, Ie, le, pe, de,
|
|
4409
|
+
), ie, Ie, le, pe, de, J, M, Z, F, oe, V, ee = (
|
|
4410
4410
|
/*formattedLabels*/
|
|
4411
4411
|
e[9][2] + ""
|
|
4412
|
-
), Ne,
|
|
4412
|
+
), Ne, Q, me, be = (
|
|
4413
4413
|
/*realtimeupdate*/
|
|
4414
4414
|
(e[2] === "true" ? (
|
|
4415
4415
|
/*updatedJackpotValues*/
|
|
@@ -4418,10 +4418,10 @@ function Uo(e) {
|
|
|
4418
4418
|
/*formattedJackpotValues*/
|
|
4419
4419
|
e[8][2]
|
|
4420
4420
|
)) + ""
|
|
4421
|
-
), Me,
|
|
4421
|
+
), Me, We, ge, ye, Xe, he, se, Y, ce, ve, _e = (
|
|
4422
4422
|
/*formattedLabels*/
|
|
4423
4423
|
e[9][3] + ""
|
|
4424
|
-
),
|
|
4424
|
+
), Re, c, H, L = (
|
|
4425
4425
|
/*realtimeupdate*/
|
|
4426
4426
|
(e[2] === "true" ? (
|
|
4427
4427
|
/*updatedJackpotValues*/
|
|
@@ -4430,29 +4430,29 @@ function Uo(e) {
|
|
|
4430
4430
|
/*formattedJackpotValues*/
|
|
4431
4431
|
e[8][3]
|
|
4432
4432
|
)) + ""
|
|
4433
|
-
),
|
|
4433
|
+
), Ue, Ut, ze, lt;
|
|
4434
4434
|
return {
|
|
4435
4435
|
c() {
|
|
4436
|
-
t = b("div"), r = b("div"), n = b("div"), i = b("img"), s = b("span"), l = N(a), u = b("span"), h = b("span"), p = N(
|
|
4436
|
+
t = b("div"), r = b("div"), n = b("div"), i = b("img"), s = b("span"), l = N(a), u = b("span"), h = b("span"), p = N(f), g = q(), y = b("span"), v = N(
|
|
4437
4437
|
/*currency*/
|
|
4438
4438
|
e[1]
|
|
4439
|
-
), _ = q(),
|
|
4439
|
+
), _ = q(), E = b("div"), T = b("div"), B = b("img"), I = b("span"), X = N(k), z = b("span"), ue = b("span"), ie = N(ne), Ie = q(), le = b("span"), pe = N(
|
|
4440
4440
|
/*currency*/
|
|
4441
4441
|
e[1]
|
|
4442
|
-
), de = q(),
|
|
4442
|
+
), de = q(), J = b("div"), M = b("div"), Z = b("div"), F = b("img"), V = b("span"), Ne = N(ee), Q = b("span"), me = b("span"), Me = N(be), We = q(), ge = b("span"), ye = N(
|
|
4443
4443
|
/*currency*/
|
|
4444
4444
|
e[1]
|
|
4445
|
-
),
|
|
4445
|
+
), Xe = q(), he = b("div"), se = b("div"), Y = b("img"), ve = b("span"), Re = N(_e), c = b("span"), H = b("span"), Ue = N(L), Ut = q(), ze = b("span"), lt = N(
|
|
4446
4446
|
/*currency*/
|
|
4447
4447
|
e[1]
|
|
4448
4448
|
), m(i, "class", "displayCardIcon"), $(i.src, o = /*caticons*/
|
|
4449
|
-
e[10][0]) || m(i, "src", o), m(i, "alt", ""), m(s, "class", "cardLabel"), m(n, "class", "iconWrapper"), m(h, "class", "jackpotValue"), m(y, "class", "jackpot-currency"), m(u, "class", "cardTextWrapper"), m(r, "class", "displayCard"), m(B, "class", "displayCardIcon"), $(B.src,
|
|
4450
|
-
e[10][1]) || m(B, "src",
|
|
4451
|
-
e[10][2]) || m(F, "src", oe), m(F, "alt", ""), m(V, "class", "cardLabel"), m(
|
|
4452
|
-
e[10][3]) || m(
|
|
4449
|
+
e[10][0]) || m(i, "src", o), m(i, "alt", ""), m(s, "class", "cardLabel"), m(n, "class", "iconWrapper"), m(h, "class", "jackpotValue"), m(y, "class", "jackpot-currency"), m(u, "class", "cardTextWrapper"), m(r, "class", "displayCard"), m(B, "class", "displayCardIcon"), $(B.src, R = /*caticons*/
|
|
4450
|
+
e[10][1]) || m(B, "src", R), m(B, "alt", ""), m(I, "class", "cardLabel"), m(T, "class", "iconWrapper"), m(ue, "class", "jackpotValue"), m(le, "class", "jackpot-currency"), m(z, "class", "cardTextWrapper"), m(E, "class", "displayCard"), m(t, "class", "pairWrapper"), m(F, "class", "displayCardIcon"), $(F.src, oe = /*caticons*/
|
|
4451
|
+
e[10][2]) || m(F, "src", oe), m(F, "alt", ""), m(V, "class", "cardLabel"), m(Z, "class", "iconWrapper"), m(me, "class", "jackpotValue"), m(ge, "class", "jackpot-currency"), m(Q, "class", "cardTextWrapper"), m(M, "class", "displayCard"), m(Y, "class", "displayCardIcon"), $(Y.src, ce = /*caticons*/
|
|
4452
|
+
e[10][3]) || m(Y, "src", ce), m(Y, "alt", ""), m(ve, "class", "cardLabel"), m(se, "class", "iconWrapper"), m(H, "class", "jackpotValue"), m(ze, "class", "jackpot-currency"), m(c, "class", "cardTextWrapper"), m(he, "class", "displayCard"), m(J, "class", "pairWrapper");
|
|
4453
4453
|
},
|
|
4454
4454
|
m(A, C) {
|
|
4455
|
-
K(A, t, C), d(t, r), d(r, n), d(n, i), d(n, s), d(s, l), d(r, u), d(u, h), d(h, p), d(u, g), d(u, y), d(y, v), d(t, _), d(t,
|
|
4455
|
+
K(A, t, C), d(t, r), d(r, n), d(n, i), d(n, s), d(s, l), d(r, u), d(u, h), d(h, p), d(u, g), d(u, y), d(y, v), d(t, _), d(t, E), d(E, T), d(T, B), d(T, I), d(I, X), d(E, z), d(z, ue), d(ue, ie), d(z, Ie), d(z, le), d(le, pe), K(A, de, C), K(A, J, C), d(J, M), d(M, Z), d(Z, F), d(Z, V), d(V, Ne), d(M, Q), d(Q, me), d(me, Me), d(Q, We), d(Q, ge), d(ge, ye), d(J, Xe), d(J, he), d(he, se), d(se, Y), d(se, ve), d(ve, Re), d(he, c), d(c, H), d(H, Ue), d(c, Ut), d(c, ze), d(ze, lt);
|
|
4456
4456
|
},
|
|
4457
4457
|
p(A, C) {
|
|
4458
4458
|
C[0] & /*caticons*/
|
|
@@ -4460,23 +4460,23 @@ function Uo(e) {
|
|
|
4460
4460
|
A[10][0]) && m(i, "src", o), C[0] & /*formattedLabels*/
|
|
4461
4461
|
512 && a !== (a = /*formattedLabels*/
|
|
4462
4462
|
A[9][0] + "") && U(l, a), C[0] & /*realtimeupdate, updatedJackpotValues, formattedJackpotValues*/
|
|
4463
|
-
16644 &&
|
|
4463
|
+
16644 && f !== (f = /*realtimeupdate*/
|
|
4464
4464
|
(A[2] === "true" ? (
|
|
4465
4465
|
/*updatedJackpotValues*/
|
|
4466
4466
|
A[14][0]
|
|
4467
4467
|
) : (
|
|
4468
4468
|
/*formattedJackpotValues*/
|
|
4469
4469
|
A[8][0]
|
|
4470
|
-
)) + "") && U(p,
|
|
4470
|
+
)) + "") && U(p, f), C[0] & /*currency*/
|
|
4471
4471
|
2 && U(
|
|
4472
4472
|
v,
|
|
4473
4473
|
/*currency*/
|
|
4474
4474
|
A[1]
|
|
4475
4475
|
), C[0] & /*caticons*/
|
|
4476
|
-
1024 && !$(B.src,
|
|
4477
|
-
A[10][1]) && m(B, "src",
|
|
4476
|
+
1024 && !$(B.src, R = /*caticons*/
|
|
4477
|
+
A[10][1]) && m(B, "src", R), C[0] & /*formattedLabels*/
|
|
4478
4478
|
512 && k !== (k = /*formattedLabels*/
|
|
4479
|
-
A[9][1] + "") && U(
|
|
4479
|
+
A[9][1] + "") && U(X, k), C[0] & /*realtimeupdate, updatedJackpotValues, formattedJackpotValues*/
|
|
4480
4480
|
16644 && ne !== (ne = /*realtimeupdate*/
|
|
4481
4481
|
(A[2] === "true" ? (
|
|
4482
4482
|
/*updatedJackpotValues*/
|
|
@@ -4503,22 +4503,22 @@ function Uo(e) {
|
|
|
4503
4503
|
A[8][2]
|
|
4504
4504
|
)) + "") && U(Me, be), C[0] & /*currency*/
|
|
4505
4505
|
2 && U(
|
|
4506
|
-
|
|
4506
|
+
ye,
|
|
4507
4507
|
/*currency*/
|
|
4508
4508
|
A[1]
|
|
4509
4509
|
), C[0] & /*caticons*/
|
|
4510
|
-
1024 && !$(
|
|
4511
|
-
A[10][3]) && m(
|
|
4512
|
-
512 &&
|
|
4513
|
-
A[9][3] + "") && U(
|
|
4514
|
-
16644 &&
|
|
4510
|
+
1024 && !$(Y.src, ce = /*caticons*/
|
|
4511
|
+
A[10][3]) && m(Y, "src", ce), C[0] & /*formattedLabels*/
|
|
4512
|
+
512 && _e !== (_e = /*formattedLabels*/
|
|
4513
|
+
A[9][3] + "") && U(Re, _e), C[0] & /*realtimeupdate, updatedJackpotValues, formattedJackpotValues*/
|
|
4514
|
+
16644 && L !== (L = /*realtimeupdate*/
|
|
4515
4515
|
(A[2] === "true" ? (
|
|
4516
4516
|
/*updatedJackpotValues*/
|
|
4517
4517
|
A[14][3]
|
|
4518
4518
|
) : (
|
|
4519
4519
|
/*formattedJackpotValues*/
|
|
4520
4520
|
A[8][3]
|
|
4521
|
-
)) + "") && U(
|
|
4521
|
+
)) + "") && U(Ue, L), C[0] & /*currency*/
|
|
4522
4522
|
2 && U(
|
|
4523
4523
|
lt,
|
|
4524
4524
|
/*currency*/
|
|
@@ -4526,7 +4526,7 @@ function Uo(e) {
|
|
|
4526
4526
|
);
|
|
4527
4527
|
},
|
|
4528
4528
|
d(A) {
|
|
4529
|
-
A && (
|
|
4529
|
+
A && (W(t), W(de), W(J));
|
|
4530
4530
|
}
|
|
4531
4531
|
};
|
|
4532
4532
|
}
|
|
@@ -4560,7 +4560,7 @@ function Do(e) {
|
|
|
4560
4560
|
}
|
|
4561
4561
|
},
|
|
4562
4562
|
d(i) {
|
|
4563
|
-
i &&
|
|
4563
|
+
i && W(t), sn(n, i);
|
|
4564
4564
|
}
|
|
4565
4565
|
};
|
|
4566
4566
|
}
|
|
@@ -4570,7 +4570,7 @@ function dr(e) {
|
|
|
4570
4570
|
/*formattedLabels*/
|
|
4571
4571
|
e[9][
|
|
4572
4572
|
/*i*/
|
|
4573
|
-
e[
|
|
4573
|
+
e[55]
|
|
4574
4574
|
] + ""
|
|
4575
4575
|
), a, l, u, h = (
|
|
4576
4576
|
/*realtimeupdate*/
|
|
@@ -4578,57 +4578,57 @@ function dr(e) {
|
|
|
4578
4578
|
/*updatedJackpotValues*/
|
|
4579
4579
|
e[14][
|
|
4580
4580
|
/*i*/
|
|
4581
|
-
e[
|
|
4581
|
+
e[55]
|
|
4582
4582
|
]
|
|
4583
4583
|
) : (
|
|
4584
4584
|
/*formattedJackpotValues*/
|
|
4585
4585
|
(v = e[8][
|
|
4586
4586
|
/*i*/
|
|
4587
|
-
e[
|
|
4587
|
+
e[55]
|
|
4588
4588
|
]) != null ? v : ""
|
|
4589
4589
|
)) + ""
|
|
4590
|
-
),
|
|
4590
|
+
), f, p, g, y;
|
|
4591
4591
|
return {
|
|
4592
4592
|
c() {
|
|
4593
|
-
t = b("div"), r = b("div"), n = b("img"), o = b("span"), a = N(s), l = b("span"), u = b("span"),
|
|
4593
|
+
t = b("div"), r = b("div"), n = b("img"), o = b("span"), a = N(s), l = b("span"), u = b("span"), f = N(h), p = q(), g = b("span"), y = N(
|
|
4594
4594
|
/*currency*/
|
|
4595
4595
|
e[1]
|
|
4596
4596
|
), m(n, "class", "displayCardIcon"), $(n.src, i = /*caticons*/
|
|
4597
4597
|
e[10][
|
|
4598
4598
|
/*i*/
|
|
4599
|
-
e[
|
|
4599
|
+
e[55]
|
|
4600
4600
|
]) || m(n, "src", i), m(n, "alt", ""), m(o, "class", "cardLabel"), m(r, "class", "iconWrapper"), m(u, "class", "jackpotValue"), m(g, "class", "jackpot-currency"), m(l, "class", "cardTextWrapper"), m(t, "class", "displayCard");
|
|
4601
4601
|
},
|
|
4602
|
-
m(_,
|
|
4603
|
-
K(_, t,
|
|
4602
|
+
m(_, E) {
|
|
4603
|
+
K(_, t, E), d(t, r), d(r, n), d(r, o), d(o, a), d(t, l), d(l, u), d(u, f), d(l, p), d(l, g), d(g, y);
|
|
4604
4604
|
},
|
|
4605
|
-
p(_,
|
|
4605
|
+
p(_, E) {
|
|
4606
4606
|
var T;
|
|
4607
|
-
|
|
4607
|
+
E[0] & /*caticons*/
|
|
4608
4608
|
1024 && !$(n.src, i = /*caticons*/
|
|
4609
4609
|
_[10][
|
|
4610
4610
|
/*i*/
|
|
4611
|
-
_[
|
|
4612
|
-
]) && m(n, "src", i),
|
|
4611
|
+
_[55]
|
|
4612
|
+
]) && m(n, "src", i), E[0] & /*formattedLabels*/
|
|
4613
4613
|
512 && s !== (s = /*formattedLabels*/
|
|
4614
4614
|
_[9][
|
|
4615
4615
|
/*i*/
|
|
4616
|
-
_[
|
|
4617
|
-
] + "") && U(a, s),
|
|
4616
|
+
_[55]
|
|
4617
|
+
] + "") && U(a, s), E[0] & /*realtimeupdate, updatedJackpotValues, formattedJackpotValues*/
|
|
4618
4618
|
16644 && h !== (h = /*realtimeupdate*/
|
|
4619
4619
|
(_[2] === "true" ? (
|
|
4620
4620
|
/*updatedJackpotValues*/
|
|
4621
4621
|
_[14][
|
|
4622
4622
|
/*i*/
|
|
4623
|
-
_[
|
|
4623
|
+
_[55]
|
|
4624
4624
|
]
|
|
4625
4625
|
) : (
|
|
4626
4626
|
/*formattedJackpotValues*/
|
|
4627
4627
|
(T = _[8][
|
|
4628
4628
|
/*i*/
|
|
4629
|
-
_[
|
|
4629
|
+
_[55]
|
|
4630
4630
|
]) != null ? T : ""
|
|
4631
|
-
)) + "") && U(
|
|
4631
|
+
)) + "") && U(f, h), E[0] & /*currency*/
|
|
4632
4632
|
2 && U(
|
|
4633
4633
|
y,
|
|
4634
4634
|
/*currency*/
|
|
@@ -4636,7 +4636,7 @@ function dr(e) {
|
|
|
4636
4636
|
);
|
|
4637
4637
|
},
|
|
4638
4638
|
d(_) {
|
|
4639
|
-
_ &&
|
|
4639
|
+
_ && W(t);
|
|
4640
4640
|
}
|
|
4641
4641
|
};
|
|
4642
4642
|
}
|
|
@@ -4665,105 +4665,110 @@ function Go(e) {
|
|
|
4665
4665
|
i: G,
|
|
4666
4666
|
o: G,
|
|
4667
4667
|
d(o) {
|
|
4668
|
-
o &&
|
|
4668
|
+
o && W(t), i.d(), e[34](null);
|
|
4669
4669
|
}
|
|
4670
4670
|
};
|
|
4671
4671
|
}
|
|
4672
4672
|
function jo(e, t, r) {
|
|
4673
|
-
let { visualstructure: n = "" } = t, { title: i = "" } = t, { caticon0: o = "" } = t, { caticon1: s = "" } = t, { caticon2: a = "" } = t, { caticon3: l = "" } = t, { iconlabels: u = "" } = t, { backgroundsrc: h = "" } = t, { currency:
|
|
4673
|
+
let { visualstructure: n = "" } = t, { title: i = "" } = t, { caticon0: o = "" } = t, { caticon1: s = "" } = t, { caticon2: a = "" } = t, { caticon3: l = "" } = t, { iconlabels: u = "" } = t, { backgroundsrc: h = "" } = t, { currency: f = "" } = t, { backgroundsrcmobile: p = "" } = t, { titlelogopath: g = "" } = t, { lang: y = "en" } = t, { clientstyling: v = "" } = t, { clientstylingurl: _ = "" } = t, { translationurl: E = "" } = t, { endpoint: T = "" } = t, { gameid: B = "" } = t, { mbsource: R } = t, { realtimeupdate: I = "false" } = t, k = window.navigator.userAgent, X = !1, z = !1, ue = "", ne = [], ie = [], Ie = [], le = [], pe = [], de = "", J = "", M, Z = !0, F = !1, oe, V = null, ee = [];
|
|
4674
4674
|
const Ne = () => {
|
|
4675
|
-
fetch(
|
|
4676
|
-
Object.keys(
|
|
4677
|
-
cr(L,
|
|
4675
|
+
fetch(E).then((H) => H.json()).then((H) => {
|
|
4676
|
+
Object.keys(H).forEach((L) => {
|
|
4677
|
+
cr(L, H[L]);
|
|
4678
4678
|
});
|
|
4679
|
-
}).catch((
|
|
4680
|
-
console.log(
|
|
4679
|
+
}).catch((H) => {
|
|
4680
|
+
console.log(H);
|
|
4681
4681
|
});
|
|
4682
4682
|
};
|
|
4683
|
-
Object.keys(fr).forEach((
|
|
4684
|
-
cr(
|
|
4683
|
+
Object.keys(fr).forEach((c) => {
|
|
4684
|
+
cr(c, fr[c]);
|
|
4685
4685
|
});
|
|
4686
|
-
const
|
|
4686
|
+
const Q = ["typeSpread", "typeLeft"], me = (c) => {
|
|
4687
4687
|
var L;
|
|
4688
|
-
const
|
|
4689
|
-
|
|
4690
|
-
}, be = (
|
|
4691
|
-
var
|
|
4692
|
-
r(7, ue = ((
|
|
4688
|
+
const H = (L = c == null ? void 0 : c.items[0]) == null ? void 0 : L.additionalData;
|
|
4689
|
+
H && Object.values(H).forEach((Ue) => ne.push(+Ue));
|
|
4690
|
+
}, be = (c) => {
|
|
4691
|
+
var H;
|
|
4692
|
+
r(7, ue = ((H = c == null ? void 0 : c.items[0]) == null ? void 0 : H.vendorLogo) || "");
|
|
4693
4693
|
}, Me = () => {
|
|
4694
|
-
if (T && y &&
|
|
4695
|
-
let
|
|
4696
|
-
|
|
4697
|
-
r(4,
|
|
4694
|
+
if (T && y && f) {
|
|
4695
|
+
let c = new URL(`${T}/v1/casino/jackpots`);
|
|
4696
|
+
c.searchParams.append("filter", `id=${B}`), c.searchParams.append("language", y), c.searchParams.append("additionalDataCurrency", f), fetch(c.href).then((H) => H.json().then((L) => {
|
|
4697
|
+
r(4, Z = !1), oe = L, ie.includes(B) && (me(oe), be(oe));
|
|
4698
4698
|
}).catch((L) => {
|
|
4699
|
-
r(13, F = !0), r(4,
|
|
4699
|
+
r(13, F = !0), r(4, Z = !1), console.error(L);
|
|
4700
|
+
}).finally(() => {
|
|
4701
|
+
We();
|
|
4700
4702
|
}));
|
|
4701
4703
|
}
|
|
4702
|
-
},
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4704
|
+
}, We = () => {
|
|
4705
|
+
const c = M.getRootNode().host;
|
|
4706
|
+
c.dispatchEvent(new CustomEvent("data-loaded", { bubbles: !0, detail: { target: c } }));
|
|
4707
|
+
}, ge = () => {
|
|
4708
|
+
let c = new URL(`${T}/v1/casino/jackpots/config`);
|
|
4709
|
+
fetch(c.href).then((H) => H.json()).then((H) => {
|
|
4710
|
+
r(32, ie = H.egtJackpotIds.map((L) => L));
|
|
4706
4711
|
});
|
|
4707
|
-
},
|
|
4708
|
-
r(5,
|
|
4709
|
-
},
|
|
4710
|
-
const
|
|
4711
|
-
return 0.75 <
|
|
4712
|
+
}, ye = () => {
|
|
4713
|
+
r(5, X = Bo(k) && window.innerHeight / window.innerWidth > 1), r(6, z = he()), ne.length !== 0 && r(8, Ie = Xe(ne)), r(9, le = u ? u.split(",").map((c) => c.trim().toUpperCase()) : new Array(4).fill("")), Q.includes(n.trim()) ? r(0, n = n.trim()) : (console.warn(`Invalid Attribute Value: "${n}" is not a valid value for the "visualstructure" attribute. Defaulting to "${Q[0]}"`), r(0, n = Q[0])), r(11, de = p && X && !z ? p : h), r(12, J = g), r(10, pe = [o, s, a, l]);
|
|
4714
|
+
}, Xe = (c) => c.map((H) => Intl.NumberFormat("en-US", { maximumFractionDigits: 2 }).format(H)), he = () => {
|
|
4715
|
+
const c = window.innerHeight / window.innerWidth;
|
|
4716
|
+
return 0.75 < c && c < 1.6;
|
|
4712
4717
|
}, se = () => {
|
|
4713
4718
|
window.postMessage({ type: "JackpotBannerClicked", gameid: B }, window.location.href), typeof gtag == "function" && gtag("event", "JackpotBannerClicked", {
|
|
4714
4719
|
context: "JackpotBanner",
|
|
4715
4720
|
gameId: `${B}`
|
|
4716
4721
|
});
|
|
4717
|
-
},
|
|
4722
|
+
}, Y = () => {
|
|
4718
4723
|
Lo(y);
|
|
4719
|
-
},
|
|
4720
|
-
const
|
|
4721
|
-
if (
|
|
4722
|
-
const L = Number(
|
|
4723
|
-
r(14, ee[L] =
|
|
4724
|
+
}, ce = (c) => {
|
|
4725
|
+
const H = JSON.parse(c.data);
|
|
4726
|
+
if (H.success && H.data.messageType === "UpdateEgtJackpotBalance" && H.data.jackpotAlias.split("_")[0] === B) {
|
|
4727
|
+
const L = Number(H.data.jackpotAlias.split("_")[1]) - 1;
|
|
4728
|
+
r(14, ee[L] = H.data.data[`${f}`].balance.toString(), ee);
|
|
4724
4729
|
}
|
|
4725
|
-
},
|
|
4726
|
-
I === "true" && (
|
|
4730
|
+
}, ve = () => {
|
|
4731
|
+
I === "true" && (ye(), r(14, ee = ["", "", "", ""]), V = new EventSource(`${T}/v1/encoder/jackpot/*/update`), V.addEventListener("message", ce));
|
|
4727
4732
|
};
|
|
4728
4733
|
cn(() => () => {
|
|
4729
4734
|
}), fn(() => {
|
|
4730
|
-
V && (V.removeEventListener("message",
|
|
4735
|
+
V && (V.removeEventListener("message", ce), V.close(), V = null);
|
|
4731
4736
|
});
|
|
4732
|
-
const
|
|
4733
|
-
function
|
|
4734
|
-
yt[
|
|
4735
|
-
|
|
4737
|
+
const _e = () => se();
|
|
4738
|
+
function Re(c) {
|
|
4739
|
+
yt[c ? "unshift" : "push"](() => {
|
|
4740
|
+
M = c, r(3, M);
|
|
4736
4741
|
});
|
|
4737
4742
|
}
|
|
4738
|
-
return e.$$set = (
|
|
4739
|
-
"visualstructure" in
|
|
4743
|
+
return e.$$set = (c) => {
|
|
4744
|
+
"visualstructure" in c && r(0, n = c.visualstructure), "title" in c && r(16, i = c.title), "caticon0" in c && r(17, o = c.caticon0), "caticon1" in c && r(18, s = c.caticon1), "caticon2" in c && r(19, a = c.caticon2), "caticon3" in c && r(20, l = c.caticon3), "iconlabels" in c && r(21, u = c.iconlabels), "backgroundsrc" in c && r(22, h = c.backgroundsrc), "currency" in c && r(1, f = c.currency), "backgroundsrcmobile" in c && r(23, p = c.backgroundsrcmobile), "titlelogopath" in c && r(24, g = c.titlelogopath), "lang" in c && r(25, y = c.lang), "clientstyling" in c && r(26, v = c.clientstyling), "clientstylingurl" in c && r(27, _ = c.clientstylingurl), "translationurl" in c && r(28, E = c.translationurl), "endpoint" in c && r(29, T = c.endpoint), "gameid" in c && r(30, B = c.gameid), "mbsource" in c && r(31, R = c.mbsource), "realtimeupdate" in c && r(2, I = c.realtimeupdate);
|
|
4740
4745
|
}, e.$$.update = () => {
|
|
4741
4746
|
e.$$.dirty[0] & /*endpoint*/
|
|
4742
|
-
536870912 && T &&
|
|
4743
|
-
67108872 && v &&
|
|
4744
|
-
134217736 && _ &&
|
|
4747
|
+
536870912 && T && ge(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4748
|
+
67108872 && v && M && Po(M, v), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4749
|
+
134217736 && _ && M && Oo(M, _), e.$$.dirty[0] & /*customStylingContainer*/
|
|
4745
4750
|
8 | e.$$.dirty[1] & /*mbsource*/
|
|
4746
|
-
1 &&
|
|
4751
|
+
1 && R && M && Co(M, `${R}.Style`), e.$$.dirty[0] & /*endpoint, lang, currency*/
|
|
4747
4752
|
570425346 | e.$$.dirty[1] & /*validGameIds*/
|
|
4748
|
-
2 && T && y &&
|
|
4749
|
-
33554450 &&
|
|
4750
|
-
33554432 && y &&
|
|
4751
|
-
268435456 &&
|
|
4752
|
-
4 && I &&
|
|
4753
|
+
2 && T && y && f && ie.length > 0 && Me(), e.$$.dirty[0] & /*currency, lang, isLoading*/
|
|
4754
|
+
33554450 && f && y && !Z && ye(), e.$$.dirty[0] & /*lang*/
|
|
4755
|
+
33554432 && y && Y(), e.$$.dirty[0] & /*translationurl*/
|
|
4756
|
+
268435456 && E && Ne(), e.$$.dirty[0] & /*realtimeupdate*/
|
|
4757
|
+
4 && I && ve();
|
|
4753
4758
|
}, [
|
|
4754
4759
|
n,
|
|
4755
|
-
|
|
4760
|
+
f,
|
|
4756
4761
|
I,
|
|
4757
|
-
|
|
4758
|
-
|
|
4762
|
+
M,
|
|
4763
|
+
Z,
|
|
4764
|
+
X,
|
|
4759
4765
|
z,
|
|
4760
|
-
J,
|
|
4761
4766
|
ue,
|
|
4762
4767
|
Ie,
|
|
4763
4768
|
le,
|
|
4764
4769
|
pe,
|
|
4765
4770
|
de,
|
|
4766
|
-
|
|
4771
|
+
J,
|
|
4767
4772
|
F,
|
|
4768
4773
|
ee,
|
|
4769
4774
|
se,
|
|
@@ -4779,18 +4784,18 @@ function jo(e, t, r) {
|
|
|
4779
4784
|
y,
|
|
4780
4785
|
v,
|
|
4781
4786
|
_,
|
|
4782
|
-
|
|
4787
|
+
E,
|
|
4783
4788
|
T,
|
|
4784
4789
|
B,
|
|
4785
|
-
|
|
4790
|
+
R,
|
|
4786
4791
|
ie,
|
|
4787
|
-
|
|
4788
|
-
|
|
4792
|
+
_e,
|
|
4793
|
+
Re
|
|
4789
4794
|
];
|
|
4790
4795
|
}
|
|
4791
4796
|
class $o extends Tn {
|
|
4792
4797
|
constructor(t) {
|
|
4793
|
-
super(),
|
|
4798
|
+
super(), xn(
|
|
4794
4799
|
this,
|
|
4795
4800
|
t,
|
|
4796
4801
|
jo,
|