@everymatrix/casino-jackpot-banner 1.60.2 → 1.61.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-DG0Gqyq0.js → CasinoJackpotBanner-B_oK6P71.js} +1108 -1103
- package/components/CasinoJackpotBanner-BfaEAZVA.cjs +18 -0
- package/components/{CasinoJackpotBanner-DvgIIMt9.js → CasinoJackpotBanner-Cl10qz21.js} +883 -878
- 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
- package/stencil/app-globals-0f993ce5-D-kw1sls.js +5 -0
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
- package/stencil/index-b7bbd57e-BBUBsGhp.js +550 -0
- package/stencil/index-b7bbd57e-SuDXAV6_.cjs +1 -0
- package/stencil/index-b7bbd57e-wJC_uAuk.js +534 -0
- package/stencil/ui-image-38c3c15f-ByZECnci.js +39 -0
- package/stencil/ui-image-38c3c15f-D_V48h1L.js +39 -0
- package/stencil/ui-image-38c3c15f-VguNkCIq.cjs +1 -0
- package/stencil/ui-image-BNrzgSpe.js +11 -0
- package/stencil/ui-image-CLghOqUz.cjs +1 -0
- package/stencil/ui-image-CPH6BqjQ.js +29 -0
- package/components/CasinoJackpotBanner-NWh7LI52.cjs +0 -18
|
@@ -1,61 +1,62 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var Qr = Object.defineProperty, Yr = Object.defineProperties;
|
|
2
|
+
var qr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Gt = Object.getOwnPropertySymbols;
|
|
4
|
+
var Kr = Object.prototype.hasOwnProperty, en = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var ct = (e, t, r) => t in e ? Qr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, jt = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
Kr.call(t, r) && ct(e, r, t[r]);
|
|
8
|
+
if (Gt)
|
|
9
|
+
for (var r of Gt(t))
|
|
10
|
+
en.call(t, r) && ct(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
12
|
+
}, $t = (e, t) => Yr(e, qr(t));
|
|
13
|
+
var $ = (e, t, r) => (ct(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var kt = (e, t, r) => new Promise((n, i) => {
|
|
15
|
+
var s = (l) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(l));
|
|
18
18
|
} catch (u) {
|
|
19
19
|
i(u);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, o = (l) => {
|
|
22
22
|
try {
|
|
23
23
|
a(r.throw(l));
|
|
24
24
|
} catch (u) {
|
|
25
25
|
i(u);
|
|
26
26
|
}
|
|
27
|
-
}, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(
|
|
27
|
+
}, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(s, o);
|
|
28
28
|
a((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
|
|
30
|
+
import "../stencil/ui-image-CPH6BqjQ.js";
|
|
31
|
+
function j() {
|
|
31
32
|
}
|
|
32
|
-
function
|
|
33
|
+
function br(e) {
|
|
33
34
|
return e();
|
|
34
35
|
}
|
|
35
|
-
function
|
|
36
|
+
function Ft() {
|
|
36
37
|
return /* @__PURE__ */ Object.create(null);
|
|
37
38
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
39
|
+
function Ve(e) {
|
|
40
|
+
e.forEach(br);
|
|
40
41
|
}
|
|
41
|
-
function
|
|
42
|
+
function Mt(e) {
|
|
42
43
|
return typeof e == "function";
|
|
43
44
|
}
|
|
44
|
-
function
|
|
45
|
+
function gr(e, t) {
|
|
45
46
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
47
|
}
|
|
47
|
-
let
|
|
48
|
-
function
|
|
49
|
-
return e === t ? !0 : (
|
|
48
|
+
let Ze;
|
|
49
|
+
function k(e, t) {
|
|
50
|
+
return e === t ? !0 : (Ze || (Ze = document.createElement("a")), Ze.href = t, e === Ze.href);
|
|
50
51
|
}
|
|
51
|
-
function
|
|
52
|
+
function tn(e) {
|
|
52
53
|
return Object.keys(e).length === 0;
|
|
53
54
|
}
|
|
54
|
-
function
|
|
55
|
+
function rn(e, ...t) {
|
|
55
56
|
if (e == null) {
|
|
56
57
|
for (const n of t)
|
|
57
58
|
n(void 0);
|
|
58
|
-
return
|
|
59
|
+
return j;
|
|
59
60
|
}
|
|
60
61
|
const r = e.subscribe(...t);
|
|
61
62
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
@@ -63,14 +64,14 @@ function tn(e, ...t) {
|
|
|
63
64
|
function d(e, t) {
|
|
64
65
|
e.appendChild(t);
|
|
65
66
|
}
|
|
66
|
-
function
|
|
67
|
-
const n =
|
|
67
|
+
function nn(e, t, r) {
|
|
68
|
+
const n = sn(e);
|
|
68
69
|
if (!n.getElementById(t)) {
|
|
69
|
-
const i =
|
|
70
|
+
const i = m("style");
|
|
70
71
|
i.id = t, i.textContent = r, on(n, i);
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
|
-
function
|
|
74
|
+
function sn(e) {
|
|
74
75
|
if (!e)
|
|
75
76
|
return document;
|
|
76
77
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -87,45 +88,49 @@ function on(e, t) {
|
|
|
87
88
|
t
|
|
88
89
|
), t.sheet;
|
|
89
90
|
}
|
|
90
|
-
function
|
|
91
|
+
function ee(e, t, r) {
|
|
91
92
|
e.insertBefore(t, r || null);
|
|
92
93
|
}
|
|
93
|
-
function
|
|
94
|
+
function X(e) {
|
|
94
95
|
e.parentNode && e.parentNode.removeChild(e);
|
|
95
96
|
}
|
|
96
|
-
function
|
|
97
|
+
function an(e, t) {
|
|
97
98
|
for (let r = 0; r < e.length; r += 1)
|
|
98
99
|
e[r] && e[r].d(t);
|
|
99
100
|
}
|
|
100
|
-
function
|
|
101
|
+
function m(e) {
|
|
101
102
|
return document.createElement(e);
|
|
102
103
|
}
|
|
103
|
-
function
|
|
104
|
+
function M(e) {
|
|
104
105
|
return document.createTextNode(e);
|
|
105
106
|
}
|
|
106
|
-
function
|
|
107
|
-
return
|
|
107
|
+
function K() {
|
|
108
|
+
return M(" ");
|
|
108
109
|
}
|
|
109
|
-
function
|
|
110
|
-
return
|
|
110
|
+
function un() {
|
|
111
|
+
return M("");
|
|
111
112
|
}
|
|
112
|
-
function
|
|
113
|
+
function ln(e, t, r, n) {
|
|
113
114
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
114
115
|
}
|
|
115
|
-
function
|
|
116
|
+
function _(e, t, r) {
|
|
116
117
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
117
118
|
}
|
|
118
|
-
function
|
|
119
|
+
function C(e, t, r) {
|
|
120
|
+
const n = t.toLowerCase();
|
|
121
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : _(e, t, r);
|
|
122
|
+
}
|
|
123
|
+
function hn(e) {
|
|
119
124
|
return Array.from(e.childNodes);
|
|
120
125
|
}
|
|
121
|
-
function
|
|
126
|
+
function D(e, t) {
|
|
122
127
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
123
128
|
t);
|
|
124
129
|
}
|
|
125
|
-
function
|
|
130
|
+
function Qe(e, t, r, n) {
|
|
126
131
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
127
132
|
}
|
|
128
|
-
function
|
|
133
|
+
function cn(e) {
|
|
129
134
|
const t = {};
|
|
130
135
|
return e.childNodes.forEach(
|
|
131
136
|
/** @param {Element} node */
|
|
@@ -134,101 +139,101 @@ function hn(e) {
|
|
|
134
139
|
}
|
|
135
140
|
), t;
|
|
136
141
|
}
|
|
137
|
-
let
|
|
138
|
-
function
|
|
139
|
-
|
|
142
|
+
let $e;
|
|
143
|
+
function je(e) {
|
|
144
|
+
$e = e;
|
|
140
145
|
}
|
|
141
|
-
function
|
|
142
|
-
if (
|
|
146
|
+
function yr() {
|
|
147
|
+
if (!$e)
|
|
143
148
|
throw new Error("Function called outside component initialization");
|
|
144
|
-
return
|
|
145
|
-
}
|
|
146
|
-
function cn(e) {
|
|
147
|
-
gr().$$.on_mount.push(e);
|
|
149
|
+
return $e;
|
|
148
150
|
}
|
|
149
151
|
function fn(e) {
|
|
150
|
-
|
|
152
|
+
yr().$$.on_mount.push(e);
|
|
153
|
+
}
|
|
154
|
+
function pn(e) {
|
|
155
|
+
yr().$$.on_destroy.push(e);
|
|
151
156
|
}
|
|
152
|
-
const
|
|
153
|
-
let
|
|
154
|
-
const
|
|
155
|
-
let
|
|
156
|
-
function
|
|
157
|
-
|
|
157
|
+
const Te = [], vt = [];
|
|
158
|
+
let we = [];
|
|
159
|
+
const Vt = [], dn = /* @__PURE__ */ Promise.resolve();
|
|
160
|
+
let _t = !1;
|
|
161
|
+
function mn() {
|
|
162
|
+
_t || (_t = !0, dn.then(O));
|
|
158
163
|
}
|
|
159
|
-
function
|
|
160
|
-
|
|
164
|
+
function xt(e) {
|
|
165
|
+
we.push(e);
|
|
161
166
|
}
|
|
162
|
-
const
|
|
167
|
+
const ft = /* @__PURE__ */ new Set();
|
|
163
168
|
let Ee = 0;
|
|
164
169
|
function O() {
|
|
165
170
|
if (Ee !== 0)
|
|
166
171
|
return;
|
|
167
|
-
const e =
|
|
172
|
+
const e = $e;
|
|
168
173
|
do {
|
|
169
174
|
try {
|
|
170
|
-
for (; Ee <
|
|
171
|
-
const t =
|
|
172
|
-
Ee++,
|
|
175
|
+
for (; Ee < Te.length; ) {
|
|
176
|
+
const t = Te[Ee];
|
|
177
|
+
Ee++, je(t), bn(t.$$);
|
|
173
178
|
}
|
|
174
179
|
} catch (t) {
|
|
175
|
-
throw
|
|
180
|
+
throw Te.length = 0, Ee = 0, t;
|
|
176
181
|
}
|
|
177
|
-
for (
|
|
178
|
-
|
|
179
|
-
for (let t = 0; t <
|
|
180
|
-
const r =
|
|
181
|
-
|
|
182
|
+
for (je(null), Te.length = 0, Ee = 0; vt.length; )
|
|
183
|
+
vt.pop()();
|
|
184
|
+
for (let t = 0; t < we.length; t += 1) {
|
|
185
|
+
const r = we[t];
|
|
186
|
+
ft.has(r) || (ft.add(r), r());
|
|
182
187
|
}
|
|
183
|
-
|
|
184
|
-
} while (
|
|
185
|
-
for (;
|
|
186
|
-
|
|
187
|
-
|
|
188
|
+
we.length = 0;
|
|
189
|
+
} while (Te.length);
|
|
190
|
+
for (; Vt.length; )
|
|
191
|
+
Vt.pop()();
|
|
192
|
+
_t = !1, ft.clear(), je(e);
|
|
188
193
|
}
|
|
189
|
-
function
|
|
194
|
+
function bn(e) {
|
|
190
195
|
if (e.fragment !== null) {
|
|
191
|
-
e.update(),
|
|
196
|
+
e.update(), Ve(e.before_update);
|
|
192
197
|
const t = e.dirty;
|
|
193
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
198
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(xt);
|
|
194
199
|
}
|
|
195
200
|
}
|
|
196
|
-
function
|
|
201
|
+
function gn(e) {
|
|
197
202
|
const t = [], r = [];
|
|
198
|
-
|
|
203
|
+
we.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), we = t;
|
|
199
204
|
}
|
|
200
|
-
const
|
|
201
|
-
function
|
|
202
|
-
e && e.i && (
|
|
205
|
+
const yn = /* @__PURE__ */ new Set();
|
|
206
|
+
function vn(e, t) {
|
|
207
|
+
e && e.i && (yn.delete(e), e.i(t));
|
|
203
208
|
}
|
|
204
|
-
function
|
|
209
|
+
function Wt(e) {
|
|
205
210
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
206
211
|
}
|
|
207
|
-
function
|
|
212
|
+
function _n(e, t, r) {
|
|
208
213
|
const { fragment: n, after_update: i } = e.$$;
|
|
209
|
-
n && n.m(t, r),
|
|
210
|
-
const
|
|
211
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...
|
|
212
|
-
}), i.forEach(
|
|
214
|
+
n && n.m(t, r), xt(() => {
|
|
215
|
+
const s = e.$$.on_mount.map(br).filter(Mt);
|
|
216
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : Ve(s), e.$$.on_mount = [];
|
|
217
|
+
}), i.forEach(xt);
|
|
213
218
|
}
|
|
214
|
-
function
|
|
219
|
+
function xn(e, t) {
|
|
215
220
|
const r = e.$$;
|
|
216
|
-
r.fragment !== null && (
|
|
221
|
+
r.fragment !== null && (gn(r.after_update), Ve(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
217
222
|
}
|
|
218
223
|
function En(e, t) {
|
|
219
|
-
e.$$.dirty[0] === -1 && (
|
|
224
|
+
e.$$.dirty[0] === -1 && (Te.push(e), mn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
220
225
|
}
|
|
221
|
-
function
|
|
222
|
-
const l =
|
|
223
|
-
|
|
226
|
+
function Sn(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
227
|
+
const l = $e;
|
|
228
|
+
je(e);
|
|
224
229
|
const u = e.$$ = {
|
|
225
230
|
fragment: null,
|
|
226
231
|
ctx: [],
|
|
227
232
|
// state
|
|
228
|
-
props:
|
|
229
|
-
update:
|
|
233
|
+
props: s,
|
|
234
|
+
update: j,
|
|
230
235
|
not_equal: i,
|
|
231
|
-
bound:
|
|
236
|
+
bound: Ft(),
|
|
232
237
|
// lifecycle
|
|
233
238
|
on_mount: [],
|
|
234
239
|
on_destroy: [],
|
|
@@ -237,48 +242,48 @@ function xn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
237
242
|
after_update: [],
|
|
238
243
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
239
244
|
// everything else
|
|
240
|
-
callbacks:
|
|
245
|
+
callbacks: Ft(),
|
|
241
246
|
dirty: a,
|
|
242
247
|
skip_bound: !1,
|
|
243
248
|
root: t.target || l.$$.root
|
|
244
249
|
};
|
|
245
|
-
|
|
250
|
+
o && o(u.root);
|
|
246
251
|
let h = !1;
|
|
247
|
-
if (u.ctx = r ? r(e, t.props || {}, (f, p, ...
|
|
248
|
-
const
|
|
249
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] =
|
|
250
|
-
}) : [], u.update(), h = !0,
|
|
252
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, p, ...b) => {
|
|
253
|
+
const g = b.length ? b[0] : p;
|
|
254
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = g) && (!u.skip_bound && u.bound[f] && u.bound[f](g), h && En(e, f)), p;
|
|
255
|
+
}) : [], u.update(), h = !0, Ve(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
251
256
|
if (t.hydrate) {
|
|
252
|
-
const f =
|
|
253
|
-
u.fragment && u.fragment.l(f), f.forEach(
|
|
257
|
+
const f = hn(t.target);
|
|
258
|
+
u.fragment && u.fragment.l(f), f.forEach(X);
|
|
254
259
|
} else
|
|
255
260
|
u.fragment && u.fragment.c();
|
|
256
|
-
t.intro &&
|
|
261
|
+
t.intro && vn(e.$$.fragment), _n(e, t.target, t.anchor), O();
|
|
257
262
|
}
|
|
258
|
-
|
|
263
|
+
je(l);
|
|
259
264
|
}
|
|
260
|
-
let
|
|
261
|
-
typeof HTMLElement == "function" && (
|
|
265
|
+
let vr;
|
|
266
|
+
typeof HTMLElement == "function" && (vr = class extends HTMLElement {
|
|
262
267
|
constructor(t, r, n) {
|
|
263
268
|
super();
|
|
264
269
|
/** The Svelte component constructor */
|
|
265
|
-
|
|
270
|
+
$(this, "$$ctor");
|
|
266
271
|
/** Slots */
|
|
267
|
-
|
|
272
|
+
$(this, "$$s");
|
|
268
273
|
/** The Svelte component instance */
|
|
269
|
-
|
|
274
|
+
$(this, "$$c");
|
|
270
275
|
/** Whether or not the custom element is connected */
|
|
271
|
-
|
|
276
|
+
$(this, "$$cn", !1);
|
|
272
277
|
/** Component props data */
|
|
273
|
-
|
|
278
|
+
$(this, "$$d", {});
|
|
274
279
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
275
|
-
|
|
280
|
+
$(this, "$$r", !1);
|
|
276
281
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
277
|
-
|
|
282
|
+
$(this, "$$p_d", {});
|
|
278
283
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
279
|
-
|
|
284
|
+
$(this, "$$l", {});
|
|
280
285
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
281
|
-
|
|
286
|
+
$(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
282
287
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
283
288
|
}
|
|
284
289
|
addEventListener(t, r, n) {
|
|
@@ -295,42 +300,42 @@ typeof HTMLElement == "function" && (yr = class extends HTMLElement {
|
|
|
295
300
|
}
|
|
296
301
|
}
|
|
297
302
|
connectedCallback() {
|
|
298
|
-
return
|
|
303
|
+
return kt(this, null, function* () {
|
|
299
304
|
if (this.$$cn = !0, !this.$$c) {
|
|
300
|
-
let t = function(
|
|
305
|
+
let t = function(s) {
|
|
301
306
|
return () => {
|
|
302
|
-
let
|
|
307
|
+
let o;
|
|
303
308
|
return {
|
|
304
309
|
c: function() {
|
|
305
|
-
|
|
310
|
+
o = m("slot"), s !== "default" && _(o, "name", s);
|
|
306
311
|
},
|
|
307
312
|
/**
|
|
308
313
|
* @param {HTMLElement} target
|
|
309
314
|
* @param {HTMLElement} [anchor]
|
|
310
315
|
*/
|
|
311
316
|
m: function(u, h) {
|
|
312
|
-
|
|
317
|
+
ee(u, o, h);
|
|
313
318
|
},
|
|
314
319
|
d: function(u) {
|
|
315
|
-
u &&
|
|
320
|
+
u && X(o);
|
|
316
321
|
}
|
|
317
322
|
};
|
|
318
323
|
};
|
|
319
324
|
};
|
|
320
325
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
321
326
|
return;
|
|
322
|
-
const r = {}, n =
|
|
323
|
-
for (const
|
|
324
|
-
|
|
325
|
-
for (const
|
|
326
|
-
const
|
|
327
|
-
|
|
327
|
+
const r = {}, n = cn(this);
|
|
328
|
+
for (const s of this.$$s)
|
|
329
|
+
s in n && (r[s] = [t(s)]);
|
|
330
|
+
for (const s of this.attributes) {
|
|
331
|
+
const o = this.$$g_p(s.name);
|
|
332
|
+
o in this.$$d || (this.$$d[o] = Ke(o, s.value, this.$$p_d, "toProp"));
|
|
328
333
|
}
|
|
329
|
-
for (const
|
|
330
|
-
!(
|
|
334
|
+
for (const s in this.$$p_d)
|
|
335
|
+
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
331
336
|
this.$$c = new this.$$ctor({
|
|
332
337
|
target: this.shadowRoot || this,
|
|
333
|
-
props: jt(
|
|
338
|
+
props: $t(jt({}, this.$$d), {
|
|
334
339
|
$$slots: r,
|
|
335
340
|
$$scope: {
|
|
336
341
|
ctx: []
|
|
@@ -339,23 +344,23 @@ typeof HTMLElement == "function" && (yr = class extends HTMLElement {
|
|
|
339
344
|
});
|
|
340
345
|
const i = () => {
|
|
341
346
|
this.$$r = !0;
|
|
342
|
-
for (const
|
|
343
|
-
if (this.$$d[
|
|
344
|
-
const
|
|
345
|
-
|
|
346
|
-
this.$$d[
|
|
347
|
+
for (const s in this.$$p_d)
|
|
348
|
+
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
349
|
+
const o = Ke(
|
|
350
|
+
s,
|
|
351
|
+
this.$$d[s],
|
|
347
352
|
this.$$p_d,
|
|
348
353
|
"toAttribute"
|
|
349
354
|
);
|
|
350
|
-
|
|
355
|
+
o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
|
|
351
356
|
}
|
|
352
357
|
this.$$r = !1;
|
|
353
358
|
};
|
|
354
359
|
this.$$c.$$.after_update.push(i), i();
|
|
355
|
-
for (const
|
|
356
|
-
for (const
|
|
357
|
-
const a = this.$$c.$on(
|
|
358
|
-
this.$$l_u.set(
|
|
360
|
+
for (const s in this.$$l)
|
|
361
|
+
for (const o of this.$$l[s]) {
|
|
362
|
+
const a = this.$$c.$on(s, o);
|
|
363
|
+
this.$$l_u.set(o, a);
|
|
359
364
|
}
|
|
360
365
|
this.$$l = {};
|
|
361
366
|
}
|
|
@@ -365,7 +370,7 @@ typeof HTMLElement == "function" && (yr = class extends HTMLElement {
|
|
|
365
370
|
// and setting attributes through setAttribute etc, this is helpful
|
|
366
371
|
attributeChangedCallback(t, r, n) {
|
|
367
372
|
var i;
|
|
368
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
373
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = Ke(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
369
374
|
}
|
|
370
375
|
disconnectedCallback() {
|
|
371
376
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -378,9 +383,9 @@ typeof HTMLElement == "function" && (yr = class extends HTMLElement {
|
|
|
378
383
|
) || t;
|
|
379
384
|
}
|
|
380
385
|
});
|
|
381
|
-
function
|
|
382
|
-
var
|
|
383
|
-
const i = (
|
|
386
|
+
function Ke(e, t, r, n) {
|
|
387
|
+
var s;
|
|
388
|
+
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
384
389
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
385
390
|
return t;
|
|
386
391
|
if (n === "toAttribute")
|
|
@@ -408,8 +413,8 @@ function qe(e, t, r, n) {
|
|
|
408
413
|
return t;
|
|
409
414
|
}
|
|
410
415
|
}
|
|
411
|
-
function
|
|
412
|
-
let
|
|
416
|
+
function Tn(e, t, r, n, i, s) {
|
|
417
|
+
let o = class extends vr {
|
|
413
418
|
constructor() {
|
|
414
419
|
super(e, r, i), this.$$p_d = t;
|
|
415
420
|
}
|
|
@@ -420,26 +425,26 @@ function Sn(e, t, r, n, i, o) {
|
|
|
420
425
|
}
|
|
421
426
|
};
|
|
422
427
|
return Object.keys(t).forEach((a) => {
|
|
423
|
-
Object.defineProperty(
|
|
428
|
+
Object.defineProperty(o.prototype, a, {
|
|
424
429
|
get() {
|
|
425
430
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
426
431
|
},
|
|
427
432
|
set(l) {
|
|
428
433
|
var u;
|
|
429
|
-
l =
|
|
434
|
+
l = Ke(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
|
|
430
435
|
}
|
|
431
436
|
});
|
|
432
437
|
}), n.forEach((a) => {
|
|
433
|
-
Object.defineProperty(
|
|
438
|
+
Object.defineProperty(o.prototype, a, {
|
|
434
439
|
get() {
|
|
435
440
|
var l;
|
|
436
441
|
return (l = this.$$c) == null ? void 0 : l[a];
|
|
437
442
|
}
|
|
438
443
|
});
|
|
439
444
|
}), e.element = /** @type {any} */
|
|
440
|
-
|
|
445
|
+
o, o;
|
|
441
446
|
}
|
|
442
|
-
class
|
|
447
|
+
class wn {
|
|
443
448
|
constructor() {
|
|
444
449
|
/**
|
|
445
450
|
* ### PRIVATE API
|
|
@@ -448,7 +453,7 @@ class Tn {
|
|
|
448
453
|
*
|
|
449
454
|
* @type {any}
|
|
450
455
|
*/
|
|
451
|
-
|
|
456
|
+
$(this, "$$");
|
|
452
457
|
/**
|
|
453
458
|
* ### PRIVATE API
|
|
454
459
|
*
|
|
@@ -456,11 +461,11 @@ class Tn {
|
|
|
456
461
|
*
|
|
457
462
|
* @type {any}
|
|
458
463
|
*/
|
|
459
|
-
|
|
464
|
+
$(this, "$$set");
|
|
460
465
|
}
|
|
461
466
|
/** @returns {void} */
|
|
462
467
|
$destroy() {
|
|
463
|
-
|
|
468
|
+
xn(this, 1), this.$destroy = j;
|
|
464
469
|
}
|
|
465
470
|
/**
|
|
466
471
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -469,8 +474,8 @@ class Tn {
|
|
|
469
474
|
* @returns {() => void}
|
|
470
475
|
*/
|
|
471
476
|
$on(t, r) {
|
|
472
|
-
if (!
|
|
473
|
-
return
|
|
477
|
+
if (!Mt(r))
|
|
478
|
+
return j;
|
|
474
479
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
475
480
|
return n.push(r), () => {
|
|
476
481
|
const i = n.indexOf(r);
|
|
@@ -482,11 +487,11 @@ class Tn {
|
|
|
482
487
|
* @returns {void}
|
|
483
488
|
*/
|
|
484
489
|
$set(t) {
|
|
485
|
-
this.$$set && !
|
|
490
|
+
this.$$set && !tn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
486
491
|
}
|
|
487
492
|
}
|
|
488
|
-
const
|
|
489
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
493
|
+
const Hn = "4";
|
|
494
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Hn);
|
|
490
495
|
/*! *****************************************************************************
|
|
491
496
|
Copyright (c) Microsoft Corporation.
|
|
492
497
|
|
|
@@ -509,7 +514,7 @@ var Et = function(e, t) {
|
|
|
509
514
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
510
515
|
}, Et(e, t);
|
|
511
516
|
};
|
|
512
|
-
function
|
|
517
|
+
function ne(e, t) {
|
|
513
518
|
if (typeof t != "function" && t !== null)
|
|
514
519
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
515
520
|
Et(e, t);
|
|
@@ -522,13 +527,13 @@ var w = function() {
|
|
|
522
527
|
return w = Object.assign || function(t) {
|
|
523
528
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
524
529
|
r = arguments[n];
|
|
525
|
-
for (var
|
|
526
|
-
Object.prototype.hasOwnProperty.call(r,
|
|
530
|
+
for (var s in r)
|
|
531
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
527
532
|
}
|
|
528
533
|
return t;
|
|
529
534
|
}, w.apply(this, arguments);
|
|
530
535
|
};
|
|
531
|
-
function
|
|
536
|
+
function An(e, t) {
|
|
532
537
|
var r = {};
|
|
533
538
|
for (var n in e)
|
|
534
539
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -537,7 +542,7 @@ function Hn(e, t) {
|
|
|
537
542
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
538
543
|
return r;
|
|
539
544
|
}
|
|
540
|
-
function
|
|
545
|
+
function St(e) {
|
|
541
546
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
542
547
|
if (r)
|
|
543
548
|
return r.call(e);
|
|
@@ -549,42 +554,42 @@ function xt(e) {
|
|
|
549
554
|
};
|
|
550
555
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
551
556
|
}
|
|
552
|
-
function
|
|
557
|
+
function Tt(e, t) {
|
|
553
558
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
554
559
|
if (!r)
|
|
555
560
|
return e;
|
|
556
|
-
var n = r.call(e), i,
|
|
561
|
+
var n = r.call(e), i, s = [], o;
|
|
557
562
|
try {
|
|
558
563
|
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
559
|
-
|
|
564
|
+
s.push(i.value);
|
|
560
565
|
} catch (a) {
|
|
561
|
-
|
|
566
|
+
o = { error: a };
|
|
562
567
|
} finally {
|
|
563
568
|
try {
|
|
564
569
|
i && !i.done && (r = n.return) && r.call(n);
|
|
565
570
|
} finally {
|
|
566
|
-
if (
|
|
567
|
-
throw
|
|
571
|
+
if (o)
|
|
572
|
+
throw o.error;
|
|
568
573
|
}
|
|
569
574
|
}
|
|
570
|
-
return
|
|
575
|
+
return s;
|
|
571
576
|
}
|
|
572
|
-
function
|
|
577
|
+
function He(e, t, r) {
|
|
573
578
|
if (r || arguments.length === 2)
|
|
574
|
-
for (var n = 0, i = t.length,
|
|
575
|
-
(
|
|
576
|
-
return e.concat(
|
|
579
|
+
for (var n = 0, i = t.length, s; n < i; n++)
|
|
580
|
+
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
581
|
+
return e.concat(s || t);
|
|
577
582
|
}
|
|
578
|
-
function
|
|
583
|
+
function re(e) {
|
|
579
584
|
return typeof e == "function";
|
|
580
585
|
}
|
|
581
|
-
function
|
|
586
|
+
function _r(e) {
|
|
582
587
|
var t = function(n) {
|
|
583
588
|
Error.call(n), n.stack = new Error().stack;
|
|
584
589
|
}, r = e(t);
|
|
585
590
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
586
591
|
}
|
|
587
|
-
var
|
|
592
|
+
var pt = _r(function(e) {
|
|
588
593
|
return function(r) {
|
|
589
594
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
590
595
|
` + r.map(function(n, i) {
|
|
@@ -593,30 +598,30 @@ var ft = vr(function(e) {
|
|
|
593
598
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
594
599
|
};
|
|
595
600
|
});
|
|
596
|
-
function
|
|
601
|
+
function wt(e, t) {
|
|
597
602
|
if (e) {
|
|
598
603
|
var r = e.indexOf(t);
|
|
599
604
|
0 <= r && e.splice(r, 1);
|
|
600
605
|
}
|
|
601
606
|
}
|
|
602
|
-
var
|
|
607
|
+
var st = function() {
|
|
603
608
|
function e(t) {
|
|
604
609
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
605
610
|
}
|
|
606
611
|
return e.prototype.unsubscribe = function() {
|
|
607
|
-
var t, r, n, i,
|
|
612
|
+
var t, r, n, i, s;
|
|
608
613
|
if (!this.closed) {
|
|
609
614
|
this.closed = !0;
|
|
610
|
-
var
|
|
611
|
-
if (
|
|
612
|
-
if (this._parentage = null, Array.isArray(
|
|
615
|
+
var o = this._parentage;
|
|
616
|
+
if (o)
|
|
617
|
+
if (this._parentage = null, Array.isArray(o))
|
|
613
618
|
try {
|
|
614
|
-
for (var a =
|
|
619
|
+
for (var a = St(o), l = a.next(); !l.done; l = a.next()) {
|
|
615
620
|
var u = l.value;
|
|
616
621
|
u.remove(this);
|
|
617
622
|
}
|
|
618
|
-
} catch (
|
|
619
|
-
t = { error:
|
|
623
|
+
} catch (y) {
|
|
624
|
+
t = { error: y };
|
|
620
625
|
} finally {
|
|
621
626
|
try {
|
|
622
627
|
l && !l.done && (r = a.return) && r.call(a);
|
|
@@ -626,45 +631,45 @@ var it = function() {
|
|
|
626
631
|
}
|
|
627
632
|
}
|
|
628
633
|
else
|
|
629
|
-
|
|
634
|
+
o.remove(this);
|
|
630
635
|
var h = this.initialTeardown;
|
|
631
|
-
if (
|
|
636
|
+
if (re(h))
|
|
632
637
|
try {
|
|
633
638
|
h();
|
|
634
|
-
} catch (
|
|
635
|
-
|
|
639
|
+
} catch (y) {
|
|
640
|
+
s = y instanceof pt ? y.errors : [y];
|
|
636
641
|
}
|
|
637
642
|
var f = this._finalizers;
|
|
638
643
|
if (f) {
|
|
639
644
|
this._finalizers = null;
|
|
640
645
|
try {
|
|
641
|
-
for (var p =
|
|
642
|
-
var
|
|
646
|
+
for (var p = St(f), b = p.next(); !b.done; b = p.next()) {
|
|
647
|
+
var g = b.value;
|
|
643
648
|
try {
|
|
644
|
-
|
|
645
|
-
} catch (
|
|
646
|
-
|
|
649
|
+
Xt(g);
|
|
650
|
+
} catch (y) {
|
|
651
|
+
s = s != null ? s : [], y instanceof pt ? s = He(He([], Tt(s)), Tt(y.errors)) : s.push(y);
|
|
647
652
|
}
|
|
648
653
|
}
|
|
649
|
-
} catch (
|
|
650
|
-
n = { error:
|
|
654
|
+
} catch (y) {
|
|
655
|
+
n = { error: y };
|
|
651
656
|
} finally {
|
|
652
657
|
try {
|
|
653
|
-
|
|
658
|
+
b && !b.done && (i = p.return) && i.call(p);
|
|
654
659
|
} finally {
|
|
655
660
|
if (n)
|
|
656
661
|
throw n.error;
|
|
657
662
|
}
|
|
658
663
|
}
|
|
659
664
|
}
|
|
660
|
-
if (
|
|
661
|
-
throw new
|
|
665
|
+
if (s)
|
|
666
|
+
throw new pt(s);
|
|
662
667
|
}
|
|
663
668
|
}, e.prototype.add = function(t) {
|
|
664
669
|
var r;
|
|
665
670
|
if (t && t !== this)
|
|
666
671
|
if (this.closed)
|
|
667
|
-
|
|
672
|
+
Xt(t);
|
|
668
673
|
else {
|
|
669
674
|
if (t instanceof e) {
|
|
670
675
|
if (t.closed || t._hasParent(this))
|
|
@@ -681,52 +686,52 @@ var it = function() {
|
|
|
681
686
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
682
687
|
}, e.prototype._removeParent = function(t) {
|
|
683
688
|
var r = this._parentage;
|
|
684
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
689
|
+
r === t ? this._parentage = null : Array.isArray(r) && wt(r, t);
|
|
685
690
|
}, e.prototype.remove = function(t) {
|
|
686
691
|
var r = this._finalizers;
|
|
687
|
-
r &&
|
|
692
|
+
r && wt(r, t), t instanceof e && t._removeParent(this);
|
|
688
693
|
}, e.EMPTY = function() {
|
|
689
694
|
var t = new e();
|
|
690
695
|
return t.closed = !0, t;
|
|
691
696
|
}(), e;
|
|
692
|
-
}(),
|
|
697
|
+
}(), xr = st.EMPTY;
|
|
693
698
|
function Er(e) {
|
|
694
|
-
return e instanceof
|
|
699
|
+
return e instanceof st || e && "closed" in e && re(e.remove) && re(e.add) && re(e.unsubscribe);
|
|
695
700
|
}
|
|
696
|
-
function
|
|
697
|
-
|
|
701
|
+
function Xt(e) {
|
|
702
|
+
re(e) ? e() : e.unsubscribe();
|
|
698
703
|
}
|
|
699
|
-
var
|
|
704
|
+
var Bn = {
|
|
700
705
|
Promise: void 0
|
|
701
|
-
},
|
|
706
|
+
}, Pn = {
|
|
702
707
|
setTimeout: function(e, t) {
|
|
703
708
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
704
709
|
r[n - 2] = arguments[n];
|
|
705
|
-
return setTimeout.apply(void 0,
|
|
710
|
+
return setTimeout.apply(void 0, He([e, t], Tt(r)));
|
|
706
711
|
},
|
|
707
712
|
clearTimeout: function(e) {
|
|
708
713
|
return clearTimeout(e);
|
|
709
714
|
},
|
|
710
715
|
delegate: void 0
|
|
711
716
|
};
|
|
712
|
-
function
|
|
713
|
-
|
|
717
|
+
function Cn(e) {
|
|
718
|
+
Pn.setTimeout(function() {
|
|
714
719
|
throw e;
|
|
715
720
|
});
|
|
716
721
|
}
|
|
717
|
-
function
|
|
722
|
+
function zt() {
|
|
718
723
|
}
|
|
719
|
-
function
|
|
724
|
+
function et(e) {
|
|
720
725
|
e();
|
|
721
726
|
}
|
|
722
|
-
var
|
|
723
|
-
|
|
727
|
+
var Sr = function(e) {
|
|
728
|
+
ne(t, e);
|
|
724
729
|
function t(r) {
|
|
725
730
|
var n = e.call(this) || this;
|
|
726
|
-
return n.isStopped = !1, r ? (n.destination = r, Er(r) && r.add(n)) : n.destination =
|
|
731
|
+
return n.isStopped = !1, r ? (n.destination = r, Er(r) && r.add(n)) : n.destination = In, n;
|
|
727
732
|
}
|
|
728
733
|
return t.create = function(r, n, i) {
|
|
729
|
-
return new
|
|
734
|
+
return new Ht(r, n, i);
|
|
730
735
|
}, t.prototype.next = function(r) {
|
|
731
736
|
this.isStopped || this._next(r);
|
|
732
737
|
}, t.prototype.error = function(r) {
|
|
@@ -750,7 +755,7 @@ var xr = function(e) {
|
|
|
750
755
|
this.unsubscribe();
|
|
751
756
|
}
|
|
752
757
|
}, t;
|
|
753
|
-
}(
|
|
758
|
+
}(st), On = function() {
|
|
754
759
|
function e(t) {
|
|
755
760
|
this.partialObserver = t;
|
|
756
761
|
}
|
|
@@ -760,7 +765,7 @@ var xr = function(e) {
|
|
|
760
765
|
try {
|
|
761
766
|
r.next(t);
|
|
762
767
|
} catch (n) {
|
|
763
|
-
|
|
768
|
+
Ye(n);
|
|
764
769
|
}
|
|
765
770
|
}, e.prototype.error = function(t) {
|
|
766
771
|
var r = this.partialObserver;
|
|
@@ -768,56 +773,56 @@ var xr = function(e) {
|
|
|
768
773
|
try {
|
|
769
774
|
r.error(t);
|
|
770
775
|
} catch (n) {
|
|
771
|
-
|
|
776
|
+
Ye(n);
|
|
772
777
|
}
|
|
773
778
|
else
|
|
774
|
-
|
|
779
|
+
Ye(t);
|
|
775
780
|
}, e.prototype.complete = function() {
|
|
776
781
|
var t = this.partialObserver;
|
|
777
782
|
if (t.complete)
|
|
778
783
|
try {
|
|
779
784
|
t.complete();
|
|
780
785
|
} catch (r) {
|
|
781
|
-
|
|
786
|
+
Ye(r);
|
|
782
787
|
}
|
|
783
788
|
}, e;
|
|
784
|
-
}(),
|
|
785
|
-
|
|
789
|
+
}(), Ht = function(e) {
|
|
790
|
+
ne(t, e);
|
|
786
791
|
function t(r, n, i) {
|
|
787
|
-
var
|
|
788
|
-
return
|
|
792
|
+
var s = e.call(this) || this, o;
|
|
793
|
+
return re(r) || !r ? o = {
|
|
789
794
|
next: r != null ? r : void 0,
|
|
790
795
|
error: n != null ? n : void 0,
|
|
791
796
|
complete: i != null ? i : void 0
|
|
792
|
-
} :
|
|
797
|
+
} : o = r, s.destination = new On(o), s;
|
|
793
798
|
}
|
|
794
799
|
return t;
|
|
795
|
-
}(
|
|
796
|
-
function
|
|
797
|
-
|
|
800
|
+
}(Sr);
|
|
801
|
+
function Ye(e) {
|
|
802
|
+
Cn(e);
|
|
798
803
|
}
|
|
799
|
-
function
|
|
804
|
+
function Ln(e) {
|
|
800
805
|
throw e;
|
|
801
806
|
}
|
|
802
|
-
var
|
|
807
|
+
var In = {
|
|
803
808
|
closed: !0,
|
|
804
|
-
next:
|
|
805
|
-
error:
|
|
806
|
-
complete:
|
|
807
|
-
},
|
|
809
|
+
next: zt,
|
|
810
|
+
error: Ln,
|
|
811
|
+
complete: zt
|
|
812
|
+
}, Nn = function() {
|
|
808
813
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
809
814
|
}();
|
|
810
|
-
function
|
|
815
|
+
function Mn(e) {
|
|
811
816
|
return e;
|
|
812
817
|
}
|
|
813
|
-
function
|
|
814
|
-
return e.length === 0 ?
|
|
818
|
+
function Rn(e) {
|
|
819
|
+
return e.length === 0 ? Mn : e.length === 1 ? e[0] : function(r) {
|
|
815
820
|
return e.reduce(function(n, i) {
|
|
816
821
|
return i(n);
|
|
817
822
|
}, r);
|
|
818
823
|
};
|
|
819
824
|
}
|
|
820
|
-
var
|
|
825
|
+
var Jt = function() {
|
|
821
826
|
function e(t) {
|
|
822
827
|
t && (this._subscribe = t);
|
|
823
828
|
}
|
|
@@ -825,11 +830,11 @@ var zt = function() {
|
|
|
825
830
|
var r = new e();
|
|
826
831
|
return r.source = this, r.operator = t, r;
|
|
827
832
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
828
|
-
var i = this,
|
|
829
|
-
return
|
|
830
|
-
var
|
|
831
|
-
|
|
832
|
-
}),
|
|
833
|
+
var i = this, s = Dn(t) ? t : new Ht(t, r, n);
|
|
834
|
+
return et(function() {
|
|
835
|
+
var o = i, a = o.operator, l = o.source;
|
|
836
|
+
s.add(a ? a.call(s, l) : l ? i._subscribe(s) : i._trySubscribe(s));
|
|
837
|
+
}), s;
|
|
833
838
|
}, e.prototype._trySubscribe = function(t) {
|
|
834
839
|
try {
|
|
835
840
|
return this._subscribe(t);
|
|
@@ -838,79 +843,79 @@ var zt = function() {
|
|
|
838
843
|
}
|
|
839
844
|
}, e.prototype.forEach = function(t, r) {
|
|
840
845
|
var n = this;
|
|
841
|
-
return r =
|
|
842
|
-
var
|
|
846
|
+
return r = Zt(r), new r(function(i, s) {
|
|
847
|
+
var o = new Ht({
|
|
843
848
|
next: function(a) {
|
|
844
849
|
try {
|
|
845
850
|
t(a);
|
|
846
851
|
} catch (l) {
|
|
847
|
-
|
|
852
|
+
s(l), o.unsubscribe();
|
|
848
853
|
}
|
|
849
854
|
},
|
|
850
|
-
error:
|
|
855
|
+
error: s,
|
|
851
856
|
complete: i
|
|
852
857
|
});
|
|
853
|
-
n.subscribe(
|
|
858
|
+
n.subscribe(o);
|
|
854
859
|
});
|
|
855
860
|
}, e.prototype._subscribe = function(t) {
|
|
856
861
|
var r;
|
|
857
862
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
858
|
-
}, e.prototype[
|
|
863
|
+
}, e.prototype[Nn] = function() {
|
|
859
864
|
return this;
|
|
860
865
|
}, e.prototype.pipe = function() {
|
|
861
866
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
862
867
|
t[r] = arguments[r];
|
|
863
|
-
return
|
|
868
|
+
return Rn(t)(this);
|
|
864
869
|
}, e.prototype.toPromise = function(t) {
|
|
865
870
|
var r = this;
|
|
866
|
-
return t =
|
|
867
|
-
var
|
|
868
|
-
r.subscribe(function(
|
|
869
|
-
return
|
|
870
|
-
}, function(
|
|
871
|
-
return i(
|
|
871
|
+
return t = Zt(t), new t(function(n, i) {
|
|
872
|
+
var s;
|
|
873
|
+
r.subscribe(function(o) {
|
|
874
|
+
return s = o;
|
|
875
|
+
}, function(o) {
|
|
876
|
+
return i(o);
|
|
872
877
|
}, function() {
|
|
873
|
-
return n(
|
|
878
|
+
return n(s);
|
|
874
879
|
});
|
|
875
880
|
});
|
|
876
881
|
}, e.create = function(t) {
|
|
877
882
|
return new e(t);
|
|
878
883
|
}, e;
|
|
879
884
|
}();
|
|
880
|
-
function
|
|
885
|
+
function Zt(e) {
|
|
881
886
|
var t;
|
|
882
|
-
return (t = e != null ? e :
|
|
883
|
-
}
|
|
884
|
-
function Rn(e) {
|
|
885
|
-
return e && te(e.next) && te(e.error) && te(e.complete);
|
|
887
|
+
return (t = e != null ? e : Bn.Promise) !== null && t !== void 0 ? t : Promise;
|
|
886
888
|
}
|
|
887
889
|
function Un(e) {
|
|
888
|
-
return e && e
|
|
890
|
+
return e && re(e.next) && re(e.error) && re(e.complete);
|
|
889
891
|
}
|
|
890
|
-
|
|
892
|
+
function Dn(e) {
|
|
893
|
+
return e && e instanceof Sr || Un(e) && Er(e);
|
|
894
|
+
}
|
|
895
|
+
var Gn = _r(function(e) {
|
|
891
896
|
return function() {
|
|
892
897
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
893
898
|
};
|
|
894
|
-
}),
|
|
895
|
-
|
|
899
|
+
}), Tr = function(e) {
|
|
900
|
+
ne(t, e);
|
|
896
901
|
function t() {
|
|
897
902
|
var r = e.call(this) || this;
|
|
898
903
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
899
904
|
}
|
|
900
905
|
return t.prototype.lift = function(r) {
|
|
901
|
-
var n = new
|
|
906
|
+
var n = new Qt(this, this);
|
|
902
907
|
return n.operator = r, n;
|
|
903
908
|
}, t.prototype._throwIfClosed = function() {
|
|
904
909
|
if (this.closed)
|
|
905
|
-
throw new
|
|
910
|
+
throw new Gn();
|
|
906
911
|
}, t.prototype.next = function(r) {
|
|
907
912
|
var n = this;
|
|
908
|
-
|
|
909
|
-
var i,
|
|
913
|
+
et(function() {
|
|
914
|
+
var i, s;
|
|
910
915
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
911
916
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
912
917
|
try {
|
|
913
|
-
for (var
|
|
918
|
+
for (var o = St(n.currentObservers), a = o.next(); !a.done; a = o.next()) {
|
|
914
919
|
var l = a.value;
|
|
915
920
|
l.next(r);
|
|
916
921
|
}
|
|
@@ -918,7 +923,7 @@ var Dn = vr(function(e) {
|
|
|
918
923
|
i = { error: u };
|
|
919
924
|
} finally {
|
|
920
925
|
try {
|
|
921
|
-
a && !a.done && (
|
|
926
|
+
a && !a.done && (s = o.return) && s.call(o);
|
|
922
927
|
} finally {
|
|
923
928
|
if (i)
|
|
924
929
|
throw i.error;
|
|
@@ -928,7 +933,7 @@ var Dn = vr(function(e) {
|
|
|
928
933
|
});
|
|
929
934
|
}, t.prototype.error = function(r) {
|
|
930
935
|
var n = this;
|
|
931
|
-
|
|
936
|
+
et(function() {
|
|
932
937
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
933
938
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
934
939
|
for (var i = n.observers; i.length; )
|
|
@@ -937,7 +942,7 @@ var Dn = vr(function(e) {
|
|
|
937
942
|
});
|
|
938
943
|
}, t.prototype.complete = function() {
|
|
939
944
|
var r = this;
|
|
940
|
-
|
|
945
|
+
et(function() {
|
|
941
946
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
942
947
|
r.isStopped = !0;
|
|
943
948
|
for (var n = r.observers; n.length; )
|
|
@@ -958,21 +963,21 @@ var Dn = vr(function(e) {
|
|
|
958
963
|
}, t.prototype._subscribe = function(r) {
|
|
959
964
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
960
965
|
}, t.prototype._innerSubscribe = function(r) {
|
|
961
|
-
var n = this, i = this,
|
|
962
|
-
return
|
|
963
|
-
n.currentObservers = null,
|
|
966
|
+
var n = this, i = this, s = i.hasError, o = i.isStopped, a = i.observers;
|
|
967
|
+
return s || o ? xr : (this.currentObservers = null, a.push(r), new st(function() {
|
|
968
|
+
n.currentObservers = null, wt(a, r);
|
|
964
969
|
}));
|
|
965
970
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
966
|
-
var n = this, i = n.hasError,
|
|
967
|
-
i ? r.error(
|
|
971
|
+
var n = this, i = n.hasError, s = n.thrownError, o = n.isStopped;
|
|
972
|
+
i ? r.error(s) : o && r.complete();
|
|
968
973
|
}, t.prototype.asObservable = function() {
|
|
969
|
-
var r = new
|
|
974
|
+
var r = new Jt();
|
|
970
975
|
return r.source = this, r;
|
|
971
976
|
}, t.create = function(r, n) {
|
|
972
|
-
return new
|
|
977
|
+
return new Qt(r, n);
|
|
973
978
|
}, t;
|
|
974
|
-
}(
|
|
975
|
-
|
|
979
|
+
}(Jt), Qt = function(e) {
|
|
980
|
+
ne(t, e);
|
|
976
981
|
function t(r, n) {
|
|
977
982
|
var i = e.call(this) || this;
|
|
978
983
|
return i.destination = r, i.source = n, i;
|
|
@@ -988,211 +993,211 @@ var Dn = vr(function(e) {
|
|
|
988
993
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
989
994
|
}, t.prototype._subscribe = function(r) {
|
|
990
995
|
var n, i;
|
|
991
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
996
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : xr;
|
|
992
997
|
}, t;
|
|
993
|
-
}(
|
|
998
|
+
}(Tr), wr = {
|
|
994
999
|
now: function() {
|
|
995
|
-
return (
|
|
1000
|
+
return (wr.delegate || Date).now();
|
|
996
1001
|
},
|
|
997
1002
|
delegate: void 0
|
|
998
|
-
},
|
|
999
|
-
|
|
1003
|
+
}, jn = function(e) {
|
|
1004
|
+
ne(t, e);
|
|
1000
1005
|
function t(r, n, i) {
|
|
1001
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1002
|
-
var
|
|
1003
|
-
return
|
|
1006
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = wr);
|
|
1007
|
+
var s = e.call(this) || this;
|
|
1008
|
+
return s._bufferSize = r, s._windowTime = n, s._timestampProvider = i, s._buffer = [], s._infiniteTimeWindow = !0, s._infiniteTimeWindow = n === 1 / 0, s._bufferSize = Math.max(1, r), s._windowTime = Math.max(1, n), s;
|
|
1004
1009
|
}
|
|
1005
1010
|
return t.prototype.next = function(r) {
|
|
1006
|
-
var n = this, i = n.isStopped,
|
|
1007
|
-
i || (
|
|
1011
|
+
var n = this, i = n.isStopped, s = n._buffer, o = n._infiniteTimeWindow, a = n._timestampProvider, l = n._windowTime;
|
|
1012
|
+
i || (s.push(r), !o && s.push(a.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
1008
1013
|
}, t.prototype._subscribe = function(r) {
|
|
1009
1014
|
this._throwIfClosed(), this._trimBuffer();
|
|
1010
|
-
for (var n = this._innerSubscribe(r), i = this,
|
|
1015
|
+
for (var n = this._innerSubscribe(r), i = this, s = i._infiniteTimeWindow, o = i._buffer, a = o.slice(), l = 0; l < a.length && !r.closed; l += s ? 1 : 2)
|
|
1011
1016
|
r.next(a[l]);
|
|
1012
1017
|
return this._checkFinalizedStatuses(r), n;
|
|
1013
1018
|
}, t.prototype._trimBuffer = function() {
|
|
1014
|
-
var r = this, n = r._bufferSize, i = r._timestampProvider,
|
|
1015
|
-
if (n < 1 / 0 && a <
|
|
1016
|
-
for (var l = i.now(), u = 0, h = 1; h <
|
|
1019
|
+
var r = this, n = r._bufferSize, i = r._timestampProvider, s = r._buffer, o = r._infiniteTimeWindow, a = (o ? 1 : 2) * n;
|
|
1020
|
+
if (n < 1 / 0 && a < s.length && s.splice(0, s.length - a), !o) {
|
|
1021
|
+
for (var l = i.now(), u = 0, h = 1; h < s.length && s[h] <= l; h += 2)
|
|
1017
1022
|
u = h;
|
|
1018
|
-
u &&
|
|
1023
|
+
u && s.splice(0, u + 1);
|
|
1019
1024
|
}
|
|
1020
1025
|
}, t;
|
|
1021
|
-
}(
|
|
1022
|
-
const
|
|
1023
|
-
if (
|
|
1024
|
-
const r = new
|
|
1025
|
-
|
|
1026
|
+
}(Tr);
|
|
1027
|
+
const Yt = [], qt = {}, $n = (e, t = 0) => {
|
|
1028
|
+
if (Yt.indexOf(e) == -1) {
|
|
1029
|
+
const r = new jn(t);
|
|
1030
|
+
qt[e] = r, Yt.push(e);
|
|
1026
1031
|
}
|
|
1027
|
-
return
|
|
1028
|
-
},
|
|
1029
|
-
function
|
|
1032
|
+
return qt[e];
|
|
1033
|
+
}, Se = [];
|
|
1034
|
+
function kn(e, t) {
|
|
1030
1035
|
return {
|
|
1031
1036
|
subscribe: ot(e, t).subscribe
|
|
1032
1037
|
};
|
|
1033
1038
|
}
|
|
1034
|
-
function ot(e, t =
|
|
1039
|
+
function ot(e, t = j) {
|
|
1035
1040
|
let r;
|
|
1036
1041
|
const n = /* @__PURE__ */ new Set();
|
|
1037
1042
|
function i(a) {
|
|
1038
|
-
if (
|
|
1039
|
-
const l = !
|
|
1043
|
+
if (gr(e, a) && (e = a, r)) {
|
|
1044
|
+
const l = !Se.length;
|
|
1040
1045
|
for (const u of n)
|
|
1041
|
-
u[1](),
|
|
1046
|
+
u[1](), Se.push(u, e);
|
|
1042
1047
|
if (l) {
|
|
1043
|
-
for (let u = 0; u <
|
|
1044
|
-
|
|
1045
|
-
|
|
1048
|
+
for (let u = 0; u < Se.length; u += 2)
|
|
1049
|
+
Se[u][0](Se[u + 1]);
|
|
1050
|
+
Se.length = 0;
|
|
1046
1051
|
}
|
|
1047
1052
|
}
|
|
1048
1053
|
}
|
|
1049
|
-
function
|
|
1054
|
+
function s(a) {
|
|
1050
1055
|
i(a(e));
|
|
1051
1056
|
}
|
|
1052
|
-
function
|
|
1057
|
+
function o(a, l = j) {
|
|
1053
1058
|
const u = [a, l];
|
|
1054
|
-
return n.add(u), n.size === 1 && (r = t(i,
|
|
1059
|
+
return n.add(u), n.size === 1 && (r = t(i, s) || j), a(e), () => {
|
|
1055
1060
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1056
1061
|
};
|
|
1057
1062
|
}
|
|
1058
|
-
return { set: i, update:
|
|
1063
|
+
return { set: i, update: s, subscribe: o };
|
|
1059
1064
|
}
|
|
1060
1065
|
function Oe(e, t, r) {
|
|
1061
1066
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1062
1067
|
if (!i.every(Boolean))
|
|
1063
1068
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1064
|
-
const
|
|
1065
|
-
return
|
|
1069
|
+
const s = t.length < 2;
|
|
1070
|
+
return kn(r, (o, a) => {
|
|
1066
1071
|
let l = !1;
|
|
1067
1072
|
const u = [];
|
|
1068
|
-
let h = 0, f =
|
|
1073
|
+
let h = 0, f = j;
|
|
1069
1074
|
const p = () => {
|
|
1070
1075
|
if (h)
|
|
1071
1076
|
return;
|
|
1072
1077
|
f();
|
|
1073
|
-
const
|
|
1074
|
-
|
|
1075
|
-
},
|
|
1076
|
-
(
|
|
1077
|
-
|
|
1078
|
-
(
|
|
1079
|
-
u[
|
|
1078
|
+
const g = t(n ? u[0] : u, o, a);
|
|
1079
|
+
s ? o(g) : f = Mt(g) ? g : j;
|
|
1080
|
+
}, b = i.map(
|
|
1081
|
+
(g, y) => rn(
|
|
1082
|
+
g,
|
|
1083
|
+
(v) => {
|
|
1084
|
+
u[y] = v, h &= ~(1 << y), l && p();
|
|
1080
1085
|
},
|
|
1081
1086
|
() => {
|
|
1082
|
-
h |= 1 <<
|
|
1087
|
+
h |= 1 << y;
|
|
1083
1088
|
}
|
|
1084
1089
|
)
|
|
1085
1090
|
);
|
|
1086
1091
|
return l = !0, p(), function() {
|
|
1087
|
-
|
|
1092
|
+
Ve(b), f(), l = !1;
|
|
1088
1093
|
};
|
|
1089
1094
|
});
|
|
1090
1095
|
}
|
|
1091
|
-
function
|
|
1096
|
+
function Fn(e) {
|
|
1092
1097
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1093
1098
|
}
|
|
1094
|
-
var
|
|
1095
|
-
return
|
|
1099
|
+
var Vn = function(t) {
|
|
1100
|
+
return Wn(t) && !Xn(t);
|
|
1096
1101
|
};
|
|
1097
|
-
function
|
|
1102
|
+
function Wn(e) {
|
|
1098
1103
|
return !!e && typeof e == "object";
|
|
1099
1104
|
}
|
|
1100
|
-
function
|
|
1105
|
+
function Xn(e) {
|
|
1101
1106
|
var t = Object.prototype.toString.call(e);
|
|
1102
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1103
|
-
}
|
|
1104
|
-
var Xn = typeof Symbol == "function" && Symbol.for, zn = Xn ? Symbol.for("react.element") : 60103;
|
|
1105
|
-
function Jn(e) {
|
|
1106
|
-
return e.$$typeof === zn;
|
|
1107
|
+
return t === "[object RegExp]" || t === "[object Date]" || Zn(e);
|
|
1107
1108
|
}
|
|
1109
|
+
var zn = typeof Symbol == "function" && Symbol.for, Jn = zn ? Symbol.for("react.element") : 60103;
|
|
1108
1110
|
function Zn(e) {
|
|
1111
|
+
return e.$$typeof === Jn;
|
|
1112
|
+
}
|
|
1113
|
+
function Qn(e) {
|
|
1109
1114
|
return Array.isArray(e) ? [] : {};
|
|
1110
1115
|
}
|
|
1111
|
-
function
|
|
1112
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1116
|
+
function ke(e, t) {
|
|
1117
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Ae(Qn(e), e, t) : e;
|
|
1113
1118
|
}
|
|
1114
|
-
function
|
|
1119
|
+
function Yn(e, t, r) {
|
|
1115
1120
|
return e.concat(t).map(function(n) {
|
|
1116
|
-
return
|
|
1121
|
+
return ke(n, r);
|
|
1117
1122
|
});
|
|
1118
1123
|
}
|
|
1119
|
-
function
|
|
1124
|
+
function qn(e, t) {
|
|
1120
1125
|
if (!t.customMerge)
|
|
1121
|
-
return
|
|
1126
|
+
return Ae;
|
|
1122
1127
|
var r = t.customMerge(e);
|
|
1123
|
-
return typeof r == "function" ? r :
|
|
1128
|
+
return typeof r == "function" ? r : Ae;
|
|
1124
1129
|
}
|
|
1125
|
-
function
|
|
1130
|
+
function Kn(e) {
|
|
1126
1131
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1127
1132
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1128
1133
|
}) : [];
|
|
1129
1134
|
}
|
|
1130
|
-
function
|
|
1131
|
-
return Object.keys(e).concat(
|
|
1135
|
+
function Kt(e) {
|
|
1136
|
+
return Object.keys(e).concat(Kn(e));
|
|
1132
1137
|
}
|
|
1133
|
-
function
|
|
1138
|
+
function Hr(e, t) {
|
|
1134
1139
|
try {
|
|
1135
1140
|
return t in e;
|
|
1136
1141
|
} catch (r) {
|
|
1137
1142
|
return !1;
|
|
1138
1143
|
}
|
|
1139
1144
|
}
|
|
1140
|
-
function
|
|
1141
|
-
return
|
|
1145
|
+
function ei(e, t) {
|
|
1146
|
+
return Hr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1142
1147
|
}
|
|
1143
|
-
function
|
|
1148
|
+
function ti(e, t, r) {
|
|
1144
1149
|
var n = {};
|
|
1145
|
-
return r.isMergeableObject(e) &&
|
|
1146
|
-
n[i] =
|
|
1147
|
-
}),
|
|
1148
|
-
|
|
1150
|
+
return r.isMergeableObject(e) && Kt(e).forEach(function(i) {
|
|
1151
|
+
n[i] = ke(e[i], r);
|
|
1152
|
+
}), Kt(t).forEach(function(i) {
|
|
1153
|
+
ei(e, i) || (Hr(e, i) && r.isMergeableObject(t[i]) ? n[i] = qn(i, r)(e[i], t[i], r) : n[i] = ke(t[i], r));
|
|
1149
1154
|
}), n;
|
|
1150
1155
|
}
|
|
1151
|
-
function
|
|
1152
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1153
|
-
var n = Array.isArray(t), i = Array.isArray(e),
|
|
1154
|
-
return
|
|
1156
|
+
function Ae(e, t, r) {
|
|
1157
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Yn, r.isMergeableObject = r.isMergeableObject || Vn, r.cloneUnlessOtherwiseSpecified = ke;
|
|
1158
|
+
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
1159
|
+
return s ? n ? r.arrayMerge(e, t, r) : ti(e, t, r) : ke(t, r);
|
|
1155
1160
|
}
|
|
1156
|
-
|
|
1161
|
+
Ae.all = function(t, r) {
|
|
1157
1162
|
if (!Array.isArray(t))
|
|
1158
1163
|
throw new Error("first argument should be an array");
|
|
1159
1164
|
return t.reduce(function(n, i) {
|
|
1160
|
-
return
|
|
1165
|
+
return Ae(n, i, r);
|
|
1161
1166
|
}, {});
|
|
1162
1167
|
};
|
|
1163
|
-
var
|
|
1164
|
-
const
|
|
1165
|
-
function
|
|
1166
|
-
var r = t && t.cache ? t.cache :
|
|
1168
|
+
var ri = Ae, ni = ri;
|
|
1169
|
+
const ii = /* @__PURE__ */ Fn(ni);
|
|
1170
|
+
function dt(e, t) {
|
|
1171
|
+
var r = t && t.cache ? t.cache : ci, n = t && t.serializer ? t.serializer : li, i = t && t.strategy ? t.strategy : ai;
|
|
1167
1172
|
return i(e, {
|
|
1168
1173
|
cache: r,
|
|
1169
1174
|
serializer: n
|
|
1170
1175
|
});
|
|
1171
1176
|
}
|
|
1172
|
-
function
|
|
1177
|
+
function si(e) {
|
|
1173
1178
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1174
1179
|
}
|
|
1175
1180
|
function oi(e, t, r, n) {
|
|
1176
|
-
var i =
|
|
1177
|
-
return typeof
|
|
1181
|
+
var i = si(n) ? n : r(n), s = t.get(i);
|
|
1182
|
+
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
1178
1183
|
}
|
|
1179
|
-
function
|
|
1180
|
-
var n = Array.prototype.slice.call(arguments, 3), i = r(n),
|
|
1181
|
-
return typeof
|
|
1184
|
+
function Ar(e, t, r) {
|
|
1185
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
1186
|
+
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
1182
1187
|
}
|
|
1183
|
-
function
|
|
1188
|
+
function Br(e, t, r, n, i) {
|
|
1184
1189
|
return r.bind(t, e, n, i);
|
|
1185
1190
|
}
|
|
1186
|
-
function si(e, t) {
|
|
1187
|
-
var r = e.length === 1 ? oi : Hr;
|
|
1188
|
-
return Ar(e, this, r, t.cache.create(), t.serializer);
|
|
1189
|
-
}
|
|
1190
1191
|
function ai(e, t) {
|
|
1191
|
-
|
|
1192
|
+
var r = e.length === 1 ? oi : Ar;
|
|
1193
|
+
return Br(e, this, r, t.cache.create(), t.serializer);
|
|
1192
1194
|
}
|
|
1193
|
-
|
|
1195
|
+
function ui(e, t) {
|
|
1196
|
+
return Br(e, this, Ar, t.cache.create(), t.serializer);
|
|
1197
|
+
}
|
|
1198
|
+
var li = function() {
|
|
1194
1199
|
return JSON.stringify(arguments);
|
|
1195
|
-
},
|
|
1200
|
+
}, hi = (
|
|
1196
1201
|
/** @class */
|
|
1197
1202
|
function() {
|
|
1198
1203
|
function e() {
|
|
@@ -1204,61 +1209,61 @@ var ui = function() {
|
|
|
1204
1209
|
this.cache[t] = r;
|
|
1205
1210
|
}, e;
|
|
1206
1211
|
}()
|
|
1207
|
-
),
|
|
1212
|
+
), ci = {
|
|
1208
1213
|
create: function() {
|
|
1209
|
-
return new
|
|
1214
|
+
return new hi();
|
|
1210
1215
|
}
|
|
1211
|
-
},
|
|
1212
|
-
variadic:
|
|
1213
|
-
},
|
|
1216
|
+
}, mt = {
|
|
1217
|
+
variadic: ui
|
|
1218
|
+
}, E;
|
|
1214
1219
|
(function(e) {
|
|
1215
1220
|
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
|
-
})(
|
|
1221
|
+
})(E || (E = {}));
|
|
1217
1222
|
var P;
|
|
1218
1223
|
(function(e) {
|
|
1219
1224
|
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";
|
|
1220
1225
|
})(P || (P = {}));
|
|
1221
|
-
var
|
|
1226
|
+
var Be;
|
|
1222
1227
|
(function(e) {
|
|
1223
1228
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1224
|
-
})(
|
|
1225
|
-
function
|
|
1229
|
+
})(Be || (Be = {}));
|
|
1230
|
+
function er(e) {
|
|
1226
1231
|
return e.type === P.literal;
|
|
1227
1232
|
}
|
|
1228
|
-
function
|
|
1233
|
+
function fi(e) {
|
|
1229
1234
|
return e.type === P.argument;
|
|
1230
1235
|
}
|
|
1231
|
-
function
|
|
1236
|
+
function Pr(e) {
|
|
1232
1237
|
return e.type === P.number;
|
|
1233
1238
|
}
|
|
1234
|
-
function
|
|
1239
|
+
function Cr(e) {
|
|
1235
1240
|
return e.type === P.date;
|
|
1236
1241
|
}
|
|
1237
1242
|
function Or(e) {
|
|
1238
1243
|
return e.type === P.time;
|
|
1239
1244
|
}
|
|
1240
|
-
function
|
|
1245
|
+
function Lr(e) {
|
|
1241
1246
|
return e.type === P.select;
|
|
1242
1247
|
}
|
|
1243
|
-
function
|
|
1248
|
+
function Ir(e) {
|
|
1244
1249
|
return e.type === P.plural;
|
|
1245
1250
|
}
|
|
1246
|
-
function
|
|
1251
|
+
function pi(e) {
|
|
1247
1252
|
return e.type === P.pound;
|
|
1248
1253
|
}
|
|
1249
|
-
function
|
|
1254
|
+
function Nr(e) {
|
|
1250
1255
|
return e.type === P.tag;
|
|
1251
1256
|
}
|
|
1252
|
-
function
|
|
1253
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1257
|
+
function Mr(e) {
|
|
1258
|
+
return !!(e && typeof e == "object" && e.type === Be.number);
|
|
1254
1259
|
}
|
|
1255
|
-
function
|
|
1256
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1260
|
+
function At(e) {
|
|
1261
|
+
return !!(e && typeof e == "object" && e.type === Be.dateTime);
|
|
1257
1262
|
}
|
|
1258
|
-
var
|
|
1259
|
-
function
|
|
1263
|
+
var Rr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, di = /(?:[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;
|
|
1264
|
+
function mi(e) {
|
|
1260
1265
|
var t = {};
|
|
1261
|
-
return e.replace(
|
|
1266
|
+
return e.replace(di, function(r) {
|
|
1262
1267
|
var n = r.length;
|
|
1263
1268
|
switch (r[0]) {
|
|
1264
1269
|
case "G":
|
|
@@ -1347,17 +1352,17 @@ function di(e) {
|
|
|
1347
1352
|
return "";
|
|
1348
1353
|
}), t;
|
|
1349
1354
|
}
|
|
1350
|
-
var
|
|
1351
|
-
function
|
|
1355
|
+
var bi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1356
|
+
function gi(e) {
|
|
1352
1357
|
if (e.length === 0)
|
|
1353
1358
|
throw new Error("Number skeleton cannot be empty");
|
|
1354
|
-
for (var t = e.split(
|
|
1359
|
+
for (var t = e.split(bi).filter(function(p) {
|
|
1355
1360
|
return p.length > 0;
|
|
1356
1361
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1357
|
-
var
|
|
1358
|
-
if (
|
|
1362
|
+
var s = i[n], o = s.split("/");
|
|
1363
|
+
if (o.length === 0)
|
|
1359
1364
|
throw new Error("Invalid number skeleton");
|
|
1360
|
-
for (var a =
|
|
1365
|
+
for (var a = o[0], l = o.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
1361
1366
|
var f = h[u];
|
|
1362
1367
|
if (f.length === 0)
|
|
1363
1368
|
throw new Error("Invalid number skeleton");
|
|
@@ -1366,17 +1371,17 @@ function bi(e) {
|
|
|
1366
1371
|
}
|
|
1367
1372
|
return r;
|
|
1368
1373
|
}
|
|
1369
|
-
function
|
|
1374
|
+
function yi(e) {
|
|
1370
1375
|
return e.replace(/^(.*?)-/, "");
|
|
1371
1376
|
}
|
|
1372
|
-
var
|
|
1373
|
-
function
|
|
1377
|
+
var tr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ur = /^(@+)?(\+|#+)?[rs]?$/g, vi = /(\*)(0+)|(#+)(0+)|(0+)/g, Dr = /^(0+)$/;
|
|
1378
|
+
function rr(e) {
|
|
1374
1379
|
var t = {};
|
|
1375
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1380
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ur, function(r, n, i) {
|
|
1376
1381
|
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)), "";
|
|
1377
1382
|
}), t;
|
|
1378
1383
|
}
|
|
1379
|
-
function
|
|
1384
|
+
function Gr(e) {
|
|
1380
1385
|
switch (e) {
|
|
1381
1386
|
case "sign-auto":
|
|
1382
1387
|
return {
|
|
@@ -1416,7 +1421,7 @@ function Dr(e) {
|
|
|
1416
1421
|
};
|
|
1417
1422
|
}
|
|
1418
1423
|
}
|
|
1419
|
-
function
|
|
1424
|
+
function _i(e) {
|
|
1420
1425
|
var t;
|
|
1421
1426
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1422
1427
|
notation: "engineering"
|
|
@@ -1424,17 +1429,17 @@ function vi(e) {
|
|
|
1424
1429
|
notation: "scientific"
|
|
1425
1430
|
}, e = e.slice(1)), t) {
|
|
1426
1431
|
var r = e.slice(0, 2);
|
|
1427
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1432
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Dr.test(e))
|
|
1428
1433
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1429
1434
|
t.minimumIntegerDigits = e.length;
|
|
1430
1435
|
}
|
|
1431
1436
|
return t;
|
|
1432
1437
|
}
|
|
1433
|
-
function
|
|
1434
|
-
var t = {}, r =
|
|
1438
|
+
function nr(e) {
|
|
1439
|
+
var t = {}, r = Gr(e);
|
|
1435
1440
|
return r || t;
|
|
1436
1441
|
}
|
|
1437
|
-
function
|
|
1442
|
+
function xi(e) {
|
|
1438
1443
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1439
1444
|
var i = n[r];
|
|
1440
1445
|
switch (i.stem) {
|
|
@@ -1458,7 +1463,7 @@ function _i(e) {
|
|
|
1458
1463
|
continue;
|
|
1459
1464
|
case "measure-unit":
|
|
1460
1465
|
case "unit":
|
|
1461
|
-
t.style = "unit", t.unit =
|
|
1466
|
+
t.style = "unit", t.unit = yi(i.options[0]);
|
|
1462
1467
|
continue;
|
|
1463
1468
|
case "compact-short":
|
|
1464
1469
|
case "K":
|
|
@@ -1470,12 +1475,12 @@ function _i(e) {
|
|
|
1470
1475
|
continue;
|
|
1471
1476
|
case "scientific":
|
|
1472
1477
|
t = w(w(w({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1473
|
-
return w(w({}, l),
|
|
1478
|
+
return w(w({}, l), nr(u));
|
|
1474
1479
|
}, {}));
|
|
1475
1480
|
continue;
|
|
1476
1481
|
case "engineering":
|
|
1477
1482
|
t = w(w(w({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1478
|
-
return w(w({}, l),
|
|
1483
|
+
return w(w({}, l), nr(u));
|
|
1479
1484
|
}, {}));
|
|
1480
1485
|
continue;
|
|
1481
1486
|
case "notation-simple":
|
|
@@ -1520,45 +1525,45 @@ function _i(e) {
|
|
|
1520
1525
|
case "integer-width":
|
|
1521
1526
|
if (i.options.length > 1)
|
|
1522
1527
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1523
|
-
i.options[0].replace(
|
|
1528
|
+
i.options[0].replace(vi, function(l, u, h, f, p, b) {
|
|
1524
1529
|
if (u)
|
|
1525
1530
|
t.minimumIntegerDigits = h.length;
|
|
1526
1531
|
else {
|
|
1527
1532
|
if (f && p)
|
|
1528
1533
|
throw new Error("We currently do not support maximum integer digits");
|
|
1529
|
-
if (
|
|
1534
|
+
if (b)
|
|
1530
1535
|
throw new Error("We currently do not support exact integer digits");
|
|
1531
1536
|
}
|
|
1532
1537
|
return "";
|
|
1533
1538
|
});
|
|
1534
1539
|
continue;
|
|
1535
1540
|
}
|
|
1536
|
-
if (
|
|
1541
|
+
if (Dr.test(i.stem)) {
|
|
1537
1542
|
t.minimumIntegerDigits = i.stem.length;
|
|
1538
1543
|
continue;
|
|
1539
1544
|
}
|
|
1540
|
-
if (
|
|
1545
|
+
if (tr.test(i.stem)) {
|
|
1541
1546
|
if (i.options.length > 1)
|
|
1542
1547
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1543
|
-
i.stem.replace(
|
|
1544
|
-
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : p &&
|
|
1548
|
+
i.stem.replace(tr, function(l, u, h, f, p, b) {
|
|
1549
|
+
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : p && b ? (t.minimumFractionDigits = p.length, t.maximumFractionDigits = p.length + b.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1545
1550
|
});
|
|
1546
|
-
var
|
|
1547
|
-
|
|
1551
|
+
var s = i.options[0];
|
|
1552
|
+
s === "w" ? t = w(w({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = w(w({}, t), rr(s)));
|
|
1548
1553
|
continue;
|
|
1549
1554
|
}
|
|
1550
|
-
if (
|
|
1551
|
-
t = w(w({}, t),
|
|
1555
|
+
if (Ur.test(i.stem)) {
|
|
1556
|
+
t = w(w({}, t), rr(i.stem));
|
|
1552
1557
|
continue;
|
|
1553
1558
|
}
|
|
1554
|
-
var
|
|
1555
|
-
|
|
1556
|
-
var a =
|
|
1559
|
+
var o = Gr(i.stem);
|
|
1560
|
+
o && (t = w(w({}, t), o));
|
|
1561
|
+
var a = _i(i.stem);
|
|
1557
1562
|
a && (t = w(w({}, t), a));
|
|
1558
1563
|
}
|
|
1559
1564
|
return t;
|
|
1560
1565
|
}
|
|
1561
|
-
var
|
|
1566
|
+
var qe = {
|
|
1562
1567
|
"001": [
|
|
1563
1568
|
"H",
|
|
1564
1569
|
"h"
|
|
@@ -2977,19 +2982,19 @@ function Ei(e, t) {
|
|
|
2977
2982
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2978
2983
|
var i = e.charAt(n);
|
|
2979
2984
|
if (i === "j") {
|
|
2980
|
-
for (var
|
|
2981
|
-
|
|
2982
|
-
var
|
|
2985
|
+
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2986
|
+
s++, n++;
|
|
2987
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = Si(t);
|
|
2983
2988
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2984
2989
|
r += l;
|
|
2985
|
-
for (;
|
|
2990
|
+
for (; o-- > 0; )
|
|
2986
2991
|
r = u + r;
|
|
2987
2992
|
} else
|
|
2988
2993
|
i === "J" ? r += "H" : r += i;
|
|
2989
2994
|
}
|
|
2990
2995
|
return r;
|
|
2991
2996
|
}
|
|
2992
|
-
function
|
|
2997
|
+
function Si(e) {
|
|
2993
2998
|
var t = e.hourCycle;
|
|
2994
2999
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2995
3000
|
e.hourCycles && // @ts-ignore
|
|
@@ -3008,23 +3013,23 @@ function xi(e) {
|
|
|
3008
3013
|
}
|
|
3009
3014
|
var r = e.language, n;
|
|
3010
3015
|
r !== "root" && (n = e.maximize().region);
|
|
3011
|
-
var i =
|
|
3016
|
+
var i = qe[n || ""] || qe[r || ""] || qe["".concat(r, "-001")] || qe["001"];
|
|
3012
3017
|
return i[0];
|
|
3013
3018
|
}
|
|
3014
|
-
var
|
|
3019
|
+
var bt, Ti = new RegExp("^".concat(Rr.source, "*")), wi = new RegExp("".concat(Rr.source, "*$"));
|
|
3015
3020
|
function S(e, t) {
|
|
3016
3021
|
return { start: e, end: t };
|
|
3017
3022
|
}
|
|
3018
|
-
var
|
|
3023
|
+
var Hi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ai = !!String.fromCodePoint, Bi = !!Object.fromEntries, Pi = !!String.prototype.codePointAt, Ci = !!String.prototype.trimStart, Oi = !!String.prototype.trimEnd, Li = !!Number.isSafeInteger, Ii = Li ? Number.isSafeInteger : function(e) {
|
|
3019
3024
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3020
|
-
},
|
|
3025
|
+
}, Bt = !0;
|
|
3021
3026
|
try {
|
|
3022
|
-
var
|
|
3023
|
-
|
|
3027
|
+
var Ni = $r("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3028
|
+
Bt = ((bt = Ni.exec("a")) === null || bt === void 0 ? void 0 : bt[0]) === "a";
|
|
3024
3029
|
} catch (e) {
|
|
3025
|
-
|
|
3030
|
+
Bt = !1;
|
|
3026
3031
|
}
|
|
3027
|
-
var
|
|
3032
|
+
var ir = Hi ? (
|
|
3028
3033
|
// Native
|
|
3029
3034
|
function(t, r, n) {
|
|
3030
3035
|
return t.startsWith(r, n);
|
|
@@ -3034,31 +3039,31 @@ var nr = wi ? (
|
|
|
3034
3039
|
function(t, r, n) {
|
|
3035
3040
|
return t.slice(n, n + r.length) === r;
|
|
3036
3041
|
}
|
|
3037
|
-
),
|
|
3042
|
+
), Pt = Ai ? String.fromCodePoint : (
|
|
3038
3043
|
// IE11
|
|
3039
3044
|
function() {
|
|
3040
3045
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
3041
3046
|
t[r] = arguments[r];
|
|
3042
|
-
for (var n = "", i = t.length,
|
|
3043
|
-
if (
|
|
3044
|
-
throw RangeError(
|
|
3045
|
-
n +=
|
|
3047
|
+
for (var n = "", i = t.length, s = 0, o; i > s; ) {
|
|
3048
|
+
if (o = t[s++], o > 1114111)
|
|
3049
|
+
throw RangeError(o + " is not a valid code point");
|
|
3050
|
+
n += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
|
|
3046
3051
|
}
|
|
3047
3052
|
return n;
|
|
3048
3053
|
}
|
|
3049
|
-
),
|
|
3054
|
+
), sr = (
|
|
3050
3055
|
// native
|
|
3051
|
-
|
|
3056
|
+
Bi ? Object.fromEntries : (
|
|
3052
3057
|
// Ponyfill
|
|
3053
3058
|
function(t) {
|
|
3054
3059
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
3055
|
-
var
|
|
3056
|
-
r[
|
|
3060
|
+
var s = i[n], o = s[0], a = s[1];
|
|
3061
|
+
r[o] = a;
|
|
3057
3062
|
}
|
|
3058
3063
|
return r;
|
|
3059
3064
|
}
|
|
3060
3065
|
)
|
|
3061
|
-
),
|
|
3066
|
+
), jr = Pi ? (
|
|
3062
3067
|
// Native
|
|
3063
3068
|
function(t, r) {
|
|
3064
3069
|
return t.codePointAt(r);
|
|
@@ -3068,11 +3073,11 @@ var nr = wi ? (
|
|
|
3068
3073
|
function(t, r) {
|
|
3069
3074
|
var n = t.length;
|
|
3070
3075
|
if (!(r < 0 || r >= n)) {
|
|
3071
|
-
var i = t.charCodeAt(r),
|
|
3072
|
-
return i < 55296 || i > 56319 || r + 1 === n || (
|
|
3076
|
+
var i = t.charCodeAt(r), s;
|
|
3077
|
+
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
3073
3078
|
}
|
|
3074
3079
|
}
|
|
3075
|
-
),
|
|
3080
|
+
), Mi = Ci ? (
|
|
3076
3081
|
// Native
|
|
3077
3082
|
function(t) {
|
|
3078
3083
|
return t.trimStart();
|
|
@@ -3080,9 +3085,9 @@ var nr = wi ? (
|
|
|
3080
3085
|
) : (
|
|
3081
3086
|
// Ponyfill
|
|
3082
3087
|
function(t) {
|
|
3083
|
-
return t.replace(
|
|
3088
|
+
return t.replace(Ti, "");
|
|
3084
3089
|
}
|
|
3085
|
-
),
|
|
3090
|
+
), Ri = Oi ? (
|
|
3086
3091
|
// Native
|
|
3087
3092
|
function(t) {
|
|
3088
3093
|
return t.trimEnd();
|
|
@@ -3090,32 +3095,32 @@ var nr = wi ? (
|
|
|
3090
3095
|
) : (
|
|
3091
3096
|
// Ponyfill
|
|
3092
3097
|
function(t) {
|
|
3093
|
-
return t.replace(
|
|
3098
|
+
return t.replace(wi, "");
|
|
3094
3099
|
}
|
|
3095
3100
|
);
|
|
3096
|
-
function
|
|
3101
|
+
function $r(e, t) {
|
|
3097
3102
|
return new RegExp(e, t);
|
|
3098
3103
|
}
|
|
3099
|
-
var
|
|
3100
|
-
if (
|
|
3101
|
-
var or =
|
|
3102
|
-
|
|
3104
|
+
var Ct;
|
|
3105
|
+
if (Bt) {
|
|
3106
|
+
var or = $r("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3107
|
+
Ct = function(t, r) {
|
|
3103
3108
|
var n;
|
|
3104
3109
|
or.lastIndex = r;
|
|
3105
3110
|
var i = or.exec(t);
|
|
3106
3111
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3107
3112
|
};
|
|
3108
3113
|
} else
|
|
3109
|
-
|
|
3114
|
+
Ct = function(t, r) {
|
|
3110
3115
|
for (var n = []; ; ) {
|
|
3111
|
-
var i =
|
|
3112
|
-
if (i === void 0 ||
|
|
3116
|
+
var i = jr(t, r);
|
|
3117
|
+
if (i === void 0 || kr(i) || ji(i))
|
|
3113
3118
|
break;
|
|
3114
3119
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3115
3120
|
}
|
|
3116
|
-
return
|
|
3121
|
+
return Pt.apply(void 0, n);
|
|
3117
3122
|
};
|
|
3118
|
-
var
|
|
3123
|
+
var Ui = (
|
|
3119
3124
|
/** @class */
|
|
3120
3125
|
function() {
|
|
3121
3126
|
function e(t, r) {
|
|
@@ -3127,35 +3132,35 @@ var Ri = (
|
|
|
3127
3132
|
return this.parseMessage(0, "", !1);
|
|
3128
3133
|
}, e.prototype.parseMessage = function(t, r, n) {
|
|
3129
3134
|
for (var i = []; !this.isEOF(); ) {
|
|
3130
|
-
var
|
|
3131
|
-
if (
|
|
3132
|
-
var
|
|
3133
|
-
if (
|
|
3134
|
-
return
|
|
3135
|
-
i.push(
|
|
3135
|
+
var s = this.char();
|
|
3136
|
+
if (s === 123) {
|
|
3137
|
+
var o = this.parseArgument(t, n);
|
|
3138
|
+
if (o.err)
|
|
3139
|
+
return o;
|
|
3140
|
+
i.push(o.val);
|
|
3136
3141
|
} else {
|
|
3137
|
-
if (
|
|
3142
|
+
if (s === 125 && t > 0)
|
|
3138
3143
|
break;
|
|
3139
|
-
if (
|
|
3144
|
+
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3140
3145
|
var a = this.clonePosition();
|
|
3141
3146
|
this.bump(), i.push({
|
|
3142
3147
|
type: P.pound,
|
|
3143
3148
|
location: S(a, this.clonePosition())
|
|
3144
3149
|
});
|
|
3145
|
-
} else if (
|
|
3150
|
+
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3146
3151
|
if (n)
|
|
3147
3152
|
break;
|
|
3148
|
-
return this.error(
|
|
3149
|
-
} else if (
|
|
3150
|
-
var
|
|
3151
|
-
if (
|
|
3152
|
-
return
|
|
3153
|
-
i.push(
|
|
3153
|
+
return this.error(E.UNMATCHED_CLOSING_TAG, S(this.clonePosition(), this.clonePosition()));
|
|
3154
|
+
} else if (s === 60 && !this.ignoreTag && Ot(this.peek() || 0)) {
|
|
3155
|
+
var o = this.parseTag(t, r);
|
|
3156
|
+
if (o.err)
|
|
3157
|
+
return o;
|
|
3158
|
+
i.push(o.val);
|
|
3154
3159
|
} else {
|
|
3155
|
-
var
|
|
3156
|
-
if (
|
|
3157
|
-
return
|
|
3158
|
-
i.push(
|
|
3160
|
+
var o = this.parseLiteral(t, r);
|
|
3161
|
+
if (o.err)
|
|
3162
|
+
return o;
|
|
3163
|
+
i.push(o.val);
|
|
3159
3164
|
}
|
|
3160
3165
|
}
|
|
3161
3166
|
}
|
|
@@ -3174,44 +3179,44 @@ var Ri = (
|
|
|
3174
3179
|
err: null
|
|
3175
3180
|
};
|
|
3176
3181
|
if (this.bumpIf(">")) {
|
|
3177
|
-
var
|
|
3178
|
-
if (
|
|
3179
|
-
return
|
|
3180
|
-
var
|
|
3182
|
+
var s = this.parseMessage(t + 1, r, !0);
|
|
3183
|
+
if (s.err)
|
|
3184
|
+
return s;
|
|
3185
|
+
var o = s.val, a = this.clonePosition();
|
|
3181
3186
|
if (this.bumpIf("</")) {
|
|
3182
3187
|
if (this.isEOF() || !Ot(this.char()))
|
|
3183
|
-
return this.error(
|
|
3188
|
+
return this.error(E.INVALID_TAG, S(a, this.clonePosition()));
|
|
3184
3189
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3185
|
-
return i !== u ? this.error(
|
|
3190
|
+
return i !== u ? this.error(E.UNMATCHED_CLOSING_TAG, S(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3186
3191
|
val: {
|
|
3187
3192
|
type: P.tag,
|
|
3188
3193
|
value: i,
|
|
3189
|
-
children:
|
|
3194
|
+
children: o,
|
|
3190
3195
|
location: S(n, this.clonePosition())
|
|
3191
3196
|
},
|
|
3192
3197
|
err: null
|
|
3193
|
-
} : this.error(
|
|
3198
|
+
} : this.error(E.INVALID_TAG, S(a, this.clonePosition())));
|
|
3194
3199
|
} else
|
|
3195
|
-
return this.error(
|
|
3200
|
+
return this.error(E.UNCLOSED_TAG, S(n, this.clonePosition()));
|
|
3196
3201
|
} else
|
|
3197
|
-
return this.error(
|
|
3202
|
+
return this.error(E.INVALID_TAG, S(n, this.clonePosition()));
|
|
3198
3203
|
}, e.prototype.parseTagName = function() {
|
|
3199
3204
|
var t = this.offset();
|
|
3200
|
-
for (this.bump(); !this.isEOF() &&
|
|
3205
|
+
for (this.bump(); !this.isEOF() && Gi(this.char()); )
|
|
3201
3206
|
this.bump();
|
|
3202
3207
|
return this.message.slice(t, this.offset());
|
|
3203
3208
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
3204
3209
|
for (var n = this.clonePosition(), i = ""; ; ) {
|
|
3205
|
-
var
|
|
3206
|
-
if (o) {
|
|
3207
|
-
i += o;
|
|
3208
|
-
continue;
|
|
3209
|
-
}
|
|
3210
|
-
var s = this.tryParseUnquoted(t, r);
|
|
3210
|
+
var s = this.tryParseQuote(r);
|
|
3211
3211
|
if (s) {
|
|
3212
3212
|
i += s;
|
|
3213
3213
|
continue;
|
|
3214
3214
|
}
|
|
3215
|
+
var o = this.tryParseUnquoted(t, r);
|
|
3216
|
+
if (o) {
|
|
3217
|
+
i += o;
|
|
3218
|
+
continue;
|
|
3219
|
+
}
|
|
3215
3220
|
var a = this.tryParseLeftAngleBracket();
|
|
3216
3221
|
if (a) {
|
|
3217
3222
|
i += a;
|
|
@@ -3226,7 +3231,7 @@ var Ri = (
|
|
|
3226
3231
|
};
|
|
3227
3232
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3228
3233
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3229
|
-
!
|
|
3234
|
+
!Di(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3230
3235
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3231
3236
|
if (this.isEOF() || this.char() !== 39)
|
|
3232
3237
|
return null;
|
|
@@ -3260,23 +3265,23 @@ var Ri = (
|
|
|
3260
3265
|
r.push(n);
|
|
3261
3266
|
this.bump();
|
|
3262
3267
|
}
|
|
3263
|
-
return
|
|
3268
|
+
return Pt.apply(void 0, r);
|
|
3264
3269
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3265
3270
|
if (this.isEOF())
|
|
3266
3271
|
return null;
|
|
3267
3272
|
var n = this.char();
|
|
3268
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3273
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Pt(n));
|
|
3269
3274
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3270
3275
|
var n = this.clonePosition();
|
|
3271
3276
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3272
|
-
return this.error(
|
|
3277
|
+
return this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE, S(n, this.clonePosition()));
|
|
3273
3278
|
if (this.char() === 125)
|
|
3274
|
-
return this.bump(), this.error(
|
|
3279
|
+
return this.bump(), this.error(E.EMPTY_ARGUMENT, S(n, this.clonePosition()));
|
|
3275
3280
|
var i = this.parseIdentifierIfPossible().value;
|
|
3276
3281
|
if (!i)
|
|
3277
|
-
return this.error(
|
|
3282
|
+
return this.error(E.MALFORMED_ARGUMENT, S(n, this.clonePosition()));
|
|
3278
3283
|
if (this.bumpSpace(), this.isEOF())
|
|
3279
|
-
return this.error(
|
|
3284
|
+
return this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE, S(n, this.clonePosition()));
|
|
3280
3285
|
switch (this.char()) {
|
|
3281
3286
|
case 125:
|
|
3282
3287
|
return this.bump(), {
|
|
@@ -3289,20 +3294,20 @@ var Ri = (
|
|
|
3289
3294
|
err: null
|
|
3290
3295
|
};
|
|
3291
3296
|
case 44:
|
|
3292
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3297
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE, S(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3293
3298
|
default:
|
|
3294
|
-
return this.error(
|
|
3299
|
+
return this.error(E.MALFORMED_ARGUMENT, S(n, this.clonePosition()));
|
|
3295
3300
|
}
|
|
3296
3301
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3297
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3302
|
+
var t = this.clonePosition(), r = this.offset(), n = Ct(this.message, r), i = r + n.length;
|
|
3298
3303
|
this.bumpTo(i);
|
|
3299
|
-
var
|
|
3300
|
-
return { value: n, location:
|
|
3304
|
+
var s = this.clonePosition(), o = S(t, s);
|
|
3305
|
+
return { value: n, location: o };
|
|
3301
3306
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3302
|
-
var
|
|
3307
|
+
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3303
3308
|
switch (a) {
|
|
3304
3309
|
case "":
|
|
3305
|
-
return this.error(
|
|
3310
|
+
return this.error(E.EXPECT_ARGUMENT_TYPE, S(o, l));
|
|
3306
3311
|
case "number":
|
|
3307
3312
|
case "date":
|
|
3308
3313
|
case "time": {
|
|
@@ -3313,37 +3318,37 @@ var Ri = (
|
|
|
3313
3318
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3314
3319
|
if (f.err)
|
|
3315
3320
|
return f;
|
|
3316
|
-
var p =
|
|
3321
|
+
var p = Ri(f.val);
|
|
3317
3322
|
if (p.length === 0)
|
|
3318
|
-
return this.error(
|
|
3319
|
-
var
|
|
3320
|
-
u = { style: p, styleLocation:
|
|
3323
|
+
return this.error(E.EXPECT_ARGUMENT_STYLE, S(this.clonePosition(), this.clonePosition()));
|
|
3324
|
+
var b = S(h, this.clonePosition());
|
|
3325
|
+
u = { style: p, styleLocation: b };
|
|
3321
3326
|
}
|
|
3322
|
-
var
|
|
3323
|
-
if (
|
|
3324
|
-
return
|
|
3325
|
-
var
|
|
3326
|
-
if (u &&
|
|
3327
|
-
var
|
|
3327
|
+
var g = this.tryParseArgumentClose(i);
|
|
3328
|
+
if (g.err)
|
|
3329
|
+
return g;
|
|
3330
|
+
var y = S(i, this.clonePosition());
|
|
3331
|
+
if (u && ir(u == null ? void 0 : u.style, "::", 0)) {
|
|
3332
|
+
var v = Mi(u.style.slice(2));
|
|
3328
3333
|
if (a === "number") {
|
|
3329
|
-
var f = this.parseNumberSkeletonFromString(
|
|
3334
|
+
var f = this.parseNumberSkeletonFromString(v, u.styleLocation);
|
|
3330
3335
|
return f.err ? f : {
|
|
3331
|
-
val: { type: P.number, value: n, location:
|
|
3336
|
+
val: { type: P.number, value: n, location: y, style: f.val },
|
|
3332
3337
|
err: null
|
|
3333
3338
|
};
|
|
3334
3339
|
} else {
|
|
3335
|
-
if (
|
|
3336
|
-
return this.error(
|
|
3337
|
-
var
|
|
3338
|
-
this.locale && (
|
|
3340
|
+
if (v.length === 0)
|
|
3341
|
+
return this.error(E.EXPECT_DATE_TIME_SKELETON, y);
|
|
3342
|
+
var x = v;
|
|
3343
|
+
this.locale && (x = Ei(v, this.locale));
|
|
3339
3344
|
var p = {
|
|
3340
|
-
type:
|
|
3341
|
-
pattern:
|
|
3345
|
+
type: Be.dateTime,
|
|
3346
|
+
pattern: x,
|
|
3342
3347
|
location: u.styleLocation,
|
|
3343
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3348
|
+
parsedOptions: this.shouldParseSkeletons ? mi(x) : {}
|
|
3344
3349
|
}, T = a === "date" ? P.date : P.time;
|
|
3345
3350
|
return {
|
|
3346
|
-
val: { type: T, value: n, location:
|
|
3351
|
+
val: { type: T, value: n, location: y, style: p },
|
|
3347
3352
|
err: null
|
|
3348
3353
|
};
|
|
3349
3354
|
}
|
|
@@ -3352,8 +3357,8 @@ var Ri = (
|
|
|
3352
3357
|
val: {
|
|
3353
3358
|
type: a === "number" ? P.number : a === "date" ? P.date : P.time,
|
|
3354
3359
|
value: n,
|
|
3355
|
-
location:
|
|
3356
|
-
style: (
|
|
3360
|
+
location: y,
|
|
3361
|
+
style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
|
|
3357
3362
|
},
|
|
3358
3363
|
err: null
|
|
3359
3364
|
};
|
|
@@ -3363,50 +3368,50 @@ var Ri = (
|
|
|
3363
3368
|
case "select": {
|
|
3364
3369
|
var B = this.clonePosition();
|
|
3365
3370
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3366
|
-
return this.error(
|
|
3371
|
+
return this.error(E.EXPECT_SELECT_ARGUMENT_OPTIONS, S(B, w({}, B)));
|
|
3367
3372
|
this.bumpSpace();
|
|
3368
|
-
var
|
|
3369
|
-
if (a !== "select" &&
|
|
3373
|
+
var U = this.parseIdentifierIfPossible(), N = 0;
|
|
3374
|
+
if (a !== "select" && U.value === "offset") {
|
|
3370
3375
|
if (!this.bumpIf(":"))
|
|
3371
|
-
return this.error(
|
|
3376
|
+
return this.error(E.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, S(this.clonePosition(), this.clonePosition()));
|
|
3372
3377
|
this.bumpSpace();
|
|
3373
|
-
var f = this.tryParseDecimalInteger(
|
|
3378
|
+
var f = this.tryParseDecimalInteger(E.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3374
3379
|
if (f.err)
|
|
3375
3380
|
return f;
|
|
3376
|
-
this.bumpSpace(),
|
|
3381
|
+
this.bumpSpace(), U = this.parseIdentifierIfPossible(), N = f.val;
|
|
3377
3382
|
}
|
|
3378
|
-
var
|
|
3379
|
-
if (
|
|
3380
|
-
return
|
|
3381
|
-
var
|
|
3382
|
-
if (
|
|
3383
|
-
return
|
|
3384
|
-
var
|
|
3383
|
+
var F = this.tryParsePluralOrSelectOptions(t, a, r, U);
|
|
3384
|
+
if (F.err)
|
|
3385
|
+
return F;
|
|
3386
|
+
var g = this.tryParseArgumentClose(i);
|
|
3387
|
+
if (g.err)
|
|
3388
|
+
return g;
|
|
3389
|
+
var z = S(i, this.clonePosition());
|
|
3385
3390
|
return a === "select" ? {
|
|
3386
3391
|
val: {
|
|
3387
3392
|
type: P.select,
|
|
3388
3393
|
value: n,
|
|
3389
|
-
options:
|
|
3390
|
-
location:
|
|
3394
|
+
options: sr(F.val),
|
|
3395
|
+
location: z
|
|
3391
3396
|
},
|
|
3392
3397
|
err: null
|
|
3393
3398
|
} : {
|
|
3394
3399
|
val: {
|
|
3395
3400
|
type: P.plural,
|
|
3396
3401
|
value: n,
|
|
3397
|
-
options:
|
|
3398
|
-
offset:
|
|
3402
|
+
options: sr(F.val),
|
|
3403
|
+
offset: N,
|
|
3399
3404
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3400
|
-
location:
|
|
3405
|
+
location: z
|
|
3401
3406
|
},
|
|
3402
3407
|
err: null
|
|
3403
3408
|
};
|
|
3404
3409
|
}
|
|
3405
3410
|
default:
|
|
3406
|
-
return this.error(
|
|
3411
|
+
return this.error(E.INVALID_ARGUMENT_TYPE, S(o, l));
|
|
3407
3412
|
}
|
|
3408
3413
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3409
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3414
|
+
return this.isEOF() || this.char() !== 125 ? this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE, S(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3410
3415
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3411
3416
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3412
3417
|
var n = this.char();
|
|
@@ -3415,7 +3420,7 @@ var Ri = (
|
|
|
3415
3420
|
this.bump();
|
|
3416
3421
|
var i = this.clonePosition();
|
|
3417
3422
|
if (!this.bumpUntil("'"))
|
|
3418
|
-
return this.error(
|
|
3423
|
+
return this.error(E.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, S(i, this.clonePosition()));
|
|
3419
3424
|
this.bump();
|
|
3420
3425
|
break;
|
|
3421
3426
|
}
|
|
@@ -3445,25 +3450,25 @@ var Ri = (
|
|
|
3445
3450
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3446
3451
|
var n = [];
|
|
3447
3452
|
try {
|
|
3448
|
-
n =
|
|
3453
|
+
n = gi(t);
|
|
3449
3454
|
} catch (i) {
|
|
3450
|
-
return this.error(
|
|
3455
|
+
return this.error(E.INVALID_NUMBER_SKELETON, r);
|
|
3451
3456
|
}
|
|
3452
3457
|
return {
|
|
3453
3458
|
val: {
|
|
3454
|
-
type:
|
|
3459
|
+
type: Be.number,
|
|
3455
3460
|
tokens: n,
|
|
3456
3461
|
location: r,
|
|
3457
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3462
|
+
parsedOptions: this.shouldParseSkeletons ? xi(n) : {}
|
|
3458
3463
|
},
|
|
3459
3464
|
err: null
|
|
3460
3465
|
};
|
|
3461
3466
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3462
|
-
for (var
|
|
3467
|
+
for (var s, o = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3463
3468
|
if (u.length === 0) {
|
|
3464
3469
|
var f = this.clonePosition();
|
|
3465
3470
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3466
|
-
var p = this.tryParseDecimalInteger(
|
|
3471
|
+
var p = this.tryParseDecimalInteger(E.EXPECT_PLURAL_ARGUMENT_SELECTOR, E.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3467
3472
|
if (p.err)
|
|
3468
3473
|
return p;
|
|
3469
3474
|
h = S(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
@@ -3471,38 +3476,38 @@ var Ri = (
|
|
|
3471
3476
|
break;
|
|
3472
3477
|
}
|
|
3473
3478
|
if (l.has(u))
|
|
3474
|
-
return this.error(r === "select" ?
|
|
3475
|
-
u === "other" && (
|
|
3476
|
-
var
|
|
3479
|
+
return this.error(r === "select" ? E.DUPLICATE_SELECT_ARGUMENT_SELECTOR : E.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3480
|
+
u === "other" && (o = !0), this.bumpSpace();
|
|
3481
|
+
var b = this.clonePosition();
|
|
3477
3482
|
if (!this.bumpIf("{"))
|
|
3478
|
-
return this.error(r === "select" ?
|
|
3479
|
-
var
|
|
3483
|
+
return this.error(r === "select" ? E.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : E.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, S(this.clonePosition(), this.clonePosition()));
|
|
3484
|
+
var g = this.parseMessage(t + 1, r, n);
|
|
3485
|
+
if (g.err)
|
|
3486
|
+
return g;
|
|
3487
|
+
var y = this.tryParseArgumentClose(b);
|
|
3480
3488
|
if (y.err)
|
|
3481
3489
|
return y;
|
|
3482
|
-
var v = this.tryParseArgumentClose(g);
|
|
3483
|
-
if (v.err)
|
|
3484
|
-
return v;
|
|
3485
3490
|
a.push([
|
|
3486
3491
|
u,
|
|
3487
3492
|
{
|
|
3488
|
-
value:
|
|
3489
|
-
location: S(
|
|
3493
|
+
value: g.val,
|
|
3494
|
+
location: S(b, this.clonePosition())
|
|
3490
3495
|
}
|
|
3491
|
-
]), l.add(u), this.bumpSpace(),
|
|
3496
|
+
]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
3492
3497
|
}
|
|
3493
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3498
|
+
return a.length === 0 ? this.error(r === "select" ? E.EXPECT_SELECT_ARGUMENT_SELECTOR : E.EXPECT_PLURAL_ARGUMENT_SELECTOR, S(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(E.MISSING_OTHER_CLAUSE, S(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3494
3499
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3495
3500
|
var n = 1, i = this.clonePosition();
|
|
3496
3501
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3497
|
-
for (var
|
|
3502
|
+
for (var s = !1, o = 0; !this.isEOF(); ) {
|
|
3498
3503
|
var a = this.char();
|
|
3499
3504
|
if (a >= 48 && a <= 57)
|
|
3500
|
-
|
|
3505
|
+
s = !0, o = o * 10 + (a - 48), this.bump();
|
|
3501
3506
|
else
|
|
3502
3507
|
break;
|
|
3503
3508
|
}
|
|
3504
3509
|
var l = S(i, this.clonePosition());
|
|
3505
|
-
return
|
|
3510
|
+
return s ? (o *= n, Ii(o) ? { val: o, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3506
3511
|
}, e.prototype.offset = function() {
|
|
3507
3512
|
return this.position.offset;
|
|
3508
3513
|
}, e.prototype.isEOF = function() {
|
|
@@ -3517,7 +3522,7 @@ var Ri = (
|
|
|
3517
3522
|
var t = this.position.offset;
|
|
3518
3523
|
if (t >= this.message.length)
|
|
3519
3524
|
throw Error("out of bound");
|
|
3520
|
-
var r =
|
|
3525
|
+
var r = jr(this.message, t);
|
|
3521
3526
|
if (r === void 0)
|
|
3522
3527
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3523
3528
|
return r;
|
|
@@ -3536,7 +3541,7 @@ var Ri = (
|
|
|
3536
3541
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3537
3542
|
}
|
|
3538
3543
|
}, e.prototype.bumpIf = function(t) {
|
|
3539
|
-
if (
|
|
3544
|
+
if (ir(this.message, t, this.offset())) {
|
|
3540
3545
|
for (var r = 0; r < t.length; r++)
|
|
3541
3546
|
this.bump();
|
|
3542
3547
|
return !0;
|
|
@@ -3558,7 +3563,7 @@ var Ri = (
|
|
|
3558
3563
|
break;
|
|
3559
3564
|
}
|
|
3560
3565
|
}, e.prototype.bumpSpace = function() {
|
|
3561
|
-
for (; !this.isEOF() &&
|
|
3566
|
+
for (; !this.isEOF() && kr(this.char()); )
|
|
3562
3567
|
this.bump();
|
|
3563
3568
|
}, e.prototype.peek = function() {
|
|
3564
3569
|
if (this.isEOF())
|
|
@@ -3571,201 +3576,201 @@ var Ri = (
|
|
|
3571
3576
|
function Ot(e) {
|
|
3572
3577
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3573
3578
|
}
|
|
3574
|
-
function
|
|
3579
|
+
function Di(e) {
|
|
3575
3580
|
return Ot(e) || e === 47;
|
|
3576
3581
|
}
|
|
3577
|
-
function
|
|
3582
|
+
function Gi(e) {
|
|
3578
3583
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
3579
3584
|
}
|
|
3580
|
-
function
|
|
3585
|
+
function kr(e) {
|
|
3581
3586
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3582
3587
|
}
|
|
3583
|
-
function
|
|
3588
|
+
function ji(e) {
|
|
3584
3589
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3585
3590
|
}
|
|
3586
|
-
function
|
|
3591
|
+
function Lt(e) {
|
|
3587
3592
|
e.forEach(function(t) {
|
|
3588
|
-
if (delete t.location,
|
|
3593
|
+
if (delete t.location, Lr(t) || Ir(t))
|
|
3589
3594
|
for (var r in t.options)
|
|
3590
|
-
delete t.options[r].location,
|
|
3595
|
+
delete t.options[r].location, Lt(t.options[r].value);
|
|
3591
3596
|
else
|
|
3592
|
-
|
|
3597
|
+
Pr(t) && Mr(t.style) || (Cr(t) || Or(t)) && At(t.style) ? delete t.style.location : Nr(t) && Lt(t.children);
|
|
3593
3598
|
});
|
|
3594
3599
|
}
|
|
3595
|
-
function
|
|
3600
|
+
function $i(e, t) {
|
|
3596
3601
|
t === void 0 && (t = {}), t = w({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3597
|
-
var r = new
|
|
3602
|
+
var r = new Ui(e, t).parse();
|
|
3598
3603
|
if (r.err) {
|
|
3599
|
-
var n = SyntaxError(
|
|
3604
|
+
var n = SyntaxError(E[r.err.kind]);
|
|
3600
3605
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3601
3606
|
}
|
|
3602
|
-
return t != null && t.captureLocation ||
|
|
3607
|
+
return t != null && t.captureLocation || Lt(r.val), r.val;
|
|
3603
3608
|
}
|
|
3604
|
-
var
|
|
3609
|
+
var Pe;
|
|
3605
3610
|
(function(e) {
|
|
3606
3611
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3607
|
-
})(
|
|
3608
|
-
var
|
|
3612
|
+
})(Pe || (Pe = {}));
|
|
3613
|
+
var at = (
|
|
3609
3614
|
/** @class */
|
|
3610
3615
|
function(e) {
|
|
3611
|
-
|
|
3616
|
+
ne(t, e);
|
|
3612
3617
|
function t(r, n, i) {
|
|
3613
|
-
var
|
|
3614
|
-
return
|
|
3618
|
+
var s = e.call(this, r) || this;
|
|
3619
|
+
return s.code = n, s.originalMessage = i, s;
|
|
3615
3620
|
}
|
|
3616
3621
|
return t.prototype.toString = function() {
|
|
3617
3622
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3618
3623
|
}, t;
|
|
3619
3624
|
}(Error)
|
|
3620
|
-
),
|
|
3625
|
+
), ar = (
|
|
3621
3626
|
/** @class */
|
|
3622
3627
|
function(e) {
|
|
3623
|
-
|
|
3624
|
-
function t(r, n, i,
|
|
3625
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3628
|
+
ne(t, e);
|
|
3629
|
+
function t(r, n, i, s) {
|
|
3630
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Pe.INVALID_VALUE, s) || this;
|
|
3626
3631
|
}
|
|
3627
3632
|
return t;
|
|
3628
|
-
}(
|
|
3629
|
-
),
|
|
3633
|
+
}(at)
|
|
3634
|
+
), ki = (
|
|
3630
3635
|
/** @class */
|
|
3631
3636
|
function(e) {
|
|
3632
|
-
|
|
3637
|
+
ne(t, e);
|
|
3633
3638
|
function t(r, n, i) {
|
|
3634
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3639
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Pe.INVALID_VALUE, i) || this;
|
|
3635
3640
|
}
|
|
3636
3641
|
return t;
|
|
3637
|
-
}(
|
|
3638
|
-
),
|
|
3642
|
+
}(at)
|
|
3643
|
+
), Fi = (
|
|
3639
3644
|
/** @class */
|
|
3640
3645
|
function(e) {
|
|
3641
|
-
|
|
3646
|
+
ne(t, e);
|
|
3642
3647
|
function t(r, n) {
|
|
3643
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3648
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Pe.MISSING_VALUE, n) || this;
|
|
3644
3649
|
}
|
|
3645
3650
|
return t;
|
|
3646
|
-
}(
|
|
3647
|
-
),
|
|
3651
|
+
}(at)
|
|
3652
|
+
), G;
|
|
3648
3653
|
(function(e) {
|
|
3649
3654
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3650
|
-
})(
|
|
3651
|
-
function
|
|
3655
|
+
})(G || (G = {}));
|
|
3656
|
+
function Vi(e) {
|
|
3652
3657
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3653
3658
|
var n = t[t.length - 1];
|
|
3654
|
-
return !n || n.type !==
|
|
3659
|
+
return !n || n.type !== G.literal || r.type !== G.literal ? t.push(r) : n.value += r.value, t;
|
|
3655
3660
|
}, []);
|
|
3656
3661
|
}
|
|
3657
|
-
function
|
|
3662
|
+
function Wi(e) {
|
|
3658
3663
|
return typeof e == "function";
|
|
3659
3664
|
}
|
|
3660
|
-
function
|
|
3661
|
-
if (e.length === 1 &&
|
|
3665
|
+
function tt(e, t, r, n, i, s, o) {
|
|
3666
|
+
if (e.length === 1 && er(e[0]))
|
|
3662
3667
|
return [
|
|
3663
3668
|
{
|
|
3664
|
-
type:
|
|
3669
|
+
type: G.literal,
|
|
3665
3670
|
value: e[0].value
|
|
3666
3671
|
}
|
|
3667
3672
|
];
|
|
3668
3673
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3669
3674
|
var h = u[l];
|
|
3670
|
-
if (
|
|
3675
|
+
if (er(h)) {
|
|
3671
3676
|
a.push({
|
|
3672
|
-
type:
|
|
3677
|
+
type: G.literal,
|
|
3673
3678
|
value: h.value
|
|
3674
3679
|
});
|
|
3675
3680
|
continue;
|
|
3676
3681
|
}
|
|
3677
|
-
if (
|
|
3678
|
-
typeof
|
|
3679
|
-
type:
|
|
3680
|
-
value: r.getNumberFormat(t).format(
|
|
3682
|
+
if (pi(h)) {
|
|
3683
|
+
typeof s == "number" && a.push({
|
|
3684
|
+
type: G.literal,
|
|
3685
|
+
value: r.getNumberFormat(t).format(s)
|
|
3681
3686
|
});
|
|
3682
3687
|
continue;
|
|
3683
3688
|
}
|
|
3684
3689
|
var f = h.value;
|
|
3685
3690
|
if (!(i && f in i))
|
|
3686
|
-
throw new
|
|
3691
|
+
throw new Fi(f, o);
|
|
3687
3692
|
var p = i[f];
|
|
3688
|
-
if (
|
|
3693
|
+
if (fi(h)) {
|
|
3689
3694
|
(!p || typeof p == "string" || typeof p == "number") && (p = typeof p == "string" || typeof p == "number" ? String(p) : ""), a.push({
|
|
3690
|
-
type: typeof p == "string" ?
|
|
3695
|
+
type: typeof p == "string" ? G.literal : G.object,
|
|
3691
3696
|
value: p
|
|
3692
3697
|
});
|
|
3693
3698
|
continue;
|
|
3694
3699
|
}
|
|
3695
|
-
if (
|
|
3696
|
-
var
|
|
3700
|
+
if (Cr(h)) {
|
|
3701
|
+
var b = typeof h.style == "string" ? n.date[h.style] : At(h.style) ? h.style.parsedOptions : void 0;
|
|
3697
3702
|
a.push({
|
|
3698
|
-
type:
|
|
3699
|
-
value: r.getDateTimeFormat(t,
|
|
3703
|
+
type: G.literal,
|
|
3704
|
+
value: r.getDateTimeFormat(t, b).format(p)
|
|
3700
3705
|
});
|
|
3701
3706
|
continue;
|
|
3702
3707
|
}
|
|
3703
3708
|
if (Or(h)) {
|
|
3704
|
-
var
|
|
3709
|
+
var b = typeof h.style == "string" ? n.time[h.style] : At(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3705
3710
|
a.push({
|
|
3706
|
-
type:
|
|
3707
|
-
value: r.getDateTimeFormat(t,
|
|
3711
|
+
type: G.literal,
|
|
3712
|
+
value: r.getDateTimeFormat(t, b).format(p)
|
|
3708
3713
|
});
|
|
3709
3714
|
continue;
|
|
3710
3715
|
}
|
|
3711
|
-
if (
|
|
3712
|
-
var
|
|
3713
|
-
|
|
3714
|
-
type:
|
|
3715
|
-
value: r.getNumberFormat(t,
|
|
3716
|
+
if (Pr(h)) {
|
|
3717
|
+
var b = typeof h.style == "string" ? n.number[h.style] : Mr(h.style) ? h.style.parsedOptions : void 0;
|
|
3718
|
+
b && b.scale && (p = p * (b.scale || 1)), a.push({
|
|
3719
|
+
type: G.literal,
|
|
3720
|
+
value: r.getNumberFormat(t, b).format(p)
|
|
3716
3721
|
});
|
|
3717
3722
|
continue;
|
|
3718
3723
|
}
|
|
3719
|
-
if (
|
|
3720
|
-
var
|
|
3721
|
-
if (!
|
|
3722
|
-
throw new
|
|
3723
|
-
var
|
|
3724
|
-
return
|
|
3724
|
+
if (Nr(h)) {
|
|
3725
|
+
var g = h.children, y = h.value, v = i[y];
|
|
3726
|
+
if (!Wi(v))
|
|
3727
|
+
throw new ki(y, "function", o);
|
|
3728
|
+
var x = tt(g, t, r, n, i, s), T = v(x.map(function(N) {
|
|
3729
|
+
return N.value;
|
|
3725
3730
|
}));
|
|
3726
|
-
Array.isArray(T) || (T = [T]), a.push.apply(a, T.map(function(
|
|
3731
|
+
Array.isArray(T) || (T = [T]), a.push.apply(a, T.map(function(N) {
|
|
3727
3732
|
return {
|
|
3728
|
-
type: typeof
|
|
3729
|
-
value:
|
|
3733
|
+
type: typeof N == "string" ? G.literal : G.object,
|
|
3734
|
+
value: N
|
|
3730
3735
|
};
|
|
3731
3736
|
}));
|
|
3732
3737
|
}
|
|
3733
|
-
if (
|
|
3738
|
+
if (Lr(h)) {
|
|
3734
3739
|
var B = h.options[p] || h.options.other;
|
|
3735
3740
|
if (!B)
|
|
3736
|
-
throw new
|
|
3737
|
-
a.push.apply(a,
|
|
3741
|
+
throw new ar(h.value, p, Object.keys(h.options), o);
|
|
3742
|
+
a.push.apply(a, tt(B.value, t, r, n, i));
|
|
3738
3743
|
continue;
|
|
3739
3744
|
}
|
|
3740
|
-
if (
|
|
3745
|
+
if (Ir(h)) {
|
|
3741
3746
|
var B = h.options["=".concat(p)];
|
|
3742
3747
|
if (!B) {
|
|
3743
3748
|
if (!Intl.PluralRules)
|
|
3744
|
-
throw new
|
|
3749
|
+
throw new at(`Intl.PluralRules is not available in this environment.
|
|
3745
3750
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3746
|
-
`,
|
|
3747
|
-
var
|
|
3748
|
-
B = h.options[
|
|
3751
|
+
`, Pe.MISSING_INTL_API, o);
|
|
3752
|
+
var U = r.getPluralRules(t, { type: h.pluralType }).select(p - (h.offset || 0));
|
|
3753
|
+
B = h.options[U] || h.options.other;
|
|
3749
3754
|
}
|
|
3750
3755
|
if (!B)
|
|
3751
|
-
throw new
|
|
3752
|
-
a.push.apply(a,
|
|
3756
|
+
throw new ar(h.value, p, Object.keys(h.options), o);
|
|
3757
|
+
a.push.apply(a, tt(B.value, t, r, n, i, p - (h.offset || 0)));
|
|
3753
3758
|
continue;
|
|
3754
3759
|
}
|
|
3755
3760
|
}
|
|
3756
|
-
return
|
|
3761
|
+
return Vi(a);
|
|
3757
3762
|
}
|
|
3758
|
-
function
|
|
3763
|
+
function Xi(e, t) {
|
|
3759
3764
|
return t ? w(w(w({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3760
3765
|
return r[n] = w(w({}, e[n]), t[n] || {}), r;
|
|
3761
3766
|
}, {})) : e;
|
|
3762
3767
|
}
|
|
3763
|
-
function
|
|
3768
|
+
function zi(e, t) {
|
|
3764
3769
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3765
|
-
return r[n] =
|
|
3770
|
+
return r[n] = Xi(e[n], t[n]), r;
|
|
3766
3771
|
}, w({}, e)) : e;
|
|
3767
3772
|
}
|
|
3768
|
-
function
|
|
3773
|
+
function gt(e) {
|
|
3769
3774
|
return {
|
|
3770
3775
|
create: function() {
|
|
3771
3776
|
return {
|
|
@@ -3779,77 +3784,77 @@ function bt(e) {
|
|
|
3779
3784
|
}
|
|
3780
3785
|
};
|
|
3781
3786
|
}
|
|
3782
|
-
function
|
|
3787
|
+
function Ji(e) {
|
|
3783
3788
|
return e === void 0 && (e = {
|
|
3784
3789
|
number: {},
|
|
3785
3790
|
dateTime: {},
|
|
3786
3791
|
pluralRules: {}
|
|
3787
3792
|
}), {
|
|
3788
|
-
getNumberFormat:
|
|
3793
|
+
getNumberFormat: dt(function() {
|
|
3789
3794
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3790
3795
|
r[n] = arguments[n];
|
|
3791
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3796
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, He([void 0], r, !1)))();
|
|
3792
3797
|
}, {
|
|
3793
|
-
cache:
|
|
3794
|
-
strategy:
|
|
3798
|
+
cache: gt(e.number),
|
|
3799
|
+
strategy: mt.variadic
|
|
3795
3800
|
}),
|
|
3796
|
-
getDateTimeFormat:
|
|
3801
|
+
getDateTimeFormat: dt(function() {
|
|
3797
3802
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3798
3803
|
r[n] = arguments[n];
|
|
3799
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3804
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, He([void 0], r, !1)))();
|
|
3800
3805
|
}, {
|
|
3801
|
-
cache:
|
|
3802
|
-
strategy:
|
|
3806
|
+
cache: gt(e.dateTime),
|
|
3807
|
+
strategy: mt.variadic
|
|
3803
3808
|
}),
|
|
3804
|
-
getPluralRules:
|
|
3809
|
+
getPluralRules: dt(function() {
|
|
3805
3810
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3806
3811
|
r[n] = arguments[n];
|
|
3807
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3812
|
+
return new ((t = Intl.PluralRules).bind.apply(t, He([void 0], r, !1)))();
|
|
3808
3813
|
}, {
|
|
3809
|
-
cache:
|
|
3810
|
-
strategy:
|
|
3814
|
+
cache: gt(e.pluralRules),
|
|
3815
|
+
strategy: mt.variadic
|
|
3811
3816
|
})
|
|
3812
3817
|
};
|
|
3813
3818
|
}
|
|
3814
|
-
var
|
|
3819
|
+
var Zi = (
|
|
3815
3820
|
/** @class */
|
|
3816
3821
|
function() {
|
|
3817
3822
|
function e(t, r, n, i) {
|
|
3818
3823
|
r === void 0 && (r = e.defaultLocale);
|
|
3819
|
-
var
|
|
3824
|
+
var s = this;
|
|
3820
3825
|
if (this.formatterCache = {
|
|
3821
3826
|
number: {},
|
|
3822
3827
|
dateTime: {},
|
|
3823
3828
|
pluralRules: {}
|
|
3824
3829
|
}, this.format = function(l) {
|
|
3825
|
-
var u =
|
|
3830
|
+
var u = s.formatToParts(l);
|
|
3826
3831
|
if (u.length === 1)
|
|
3827
3832
|
return u[0].value;
|
|
3828
3833
|
var h = u.reduce(function(f, p) {
|
|
3829
|
-
return !f.length || p.type !==
|
|
3834
|
+
return !f.length || p.type !== G.literal || typeof f[f.length - 1] != "string" ? f.push(p.value) : f[f.length - 1] += p.value, f;
|
|
3830
3835
|
}, []);
|
|
3831
3836
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3832
3837
|
}, this.formatToParts = function(l) {
|
|
3833
|
-
return
|
|
3838
|
+
return tt(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3834
3839
|
}, this.resolvedOptions = function() {
|
|
3835
3840
|
var l;
|
|
3836
3841
|
return {
|
|
3837
|
-
locale: ((l =
|
|
3842
|
+
locale: ((l = s.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
|
|
3838
3843
|
};
|
|
3839
3844
|
}, this.getAst = function() {
|
|
3840
|
-
return
|
|
3845
|
+
return s.ast;
|
|
3841
3846
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3842
3847
|
if (this.message = t, !e.__parse)
|
|
3843
3848
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3844
|
-
var
|
|
3845
|
-
|
|
3846
|
-
var a =
|
|
3849
|
+
var o = i || {};
|
|
3850
|
+
o.formatters;
|
|
3851
|
+
var a = An(o, ["formatters"]);
|
|
3847
3852
|
this.ast = e.__parse(t, w(w({}, a), { locale: this.resolvedLocale }));
|
|
3848
3853
|
} else
|
|
3849
3854
|
this.ast = t;
|
|
3850
3855
|
if (!Array.isArray(this.ast))
|
|
3851
3856
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3852
|
-
this.formats =
|
|
3857
|
+
this.formats = zi(e.formats, n), this.formatters = i && i.formatters || Ji(this.formatterCache);
|
|
3853
3858
|
}
|
|
3854
3859
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3855
3860
|
get: function() {
|
|
@@ -3862,7 +3867,7 @@ var Ji = (
|
|
|
3862
3867
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3863
3868
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3864
3869
|
}
|
|
3865
|
-
}, e.__parse =
|
|
3870
|
+
}, e.__parse = $i, e.formats = {
|
|
3866
3871
|
number: {
|
|
3867
3872
|
integer: {
|
|
3868
3873
|
maximumFractionDigits: 0
|
|
@@ -3923,7 +3928,7 @@ var Ji = (
|
|
|
3923
3928
|
}, e;
|
|
3924
3929
|
}()
|
|
3925
3930
|
);
|
|
3926
|
-
function
|
|
3931
|
+
function Qi(e, t) {
|
|
3927
3932
|
if (t == null)
|
|
3928
3933
|
return;
|
|
3929
3934
|
if (t in e)
|
|
@@ -3933,9 +3938,9 @@ function Zi(e, t) {
|
|
|
3933
3938
|
for (let i = 0; i < r.length; i++)
|
|
3934
3939
|
if (typeof n == "object") {
|
|
3935
3940
|
if (i > 0) {
|
|
3936
|
-
const
|
|
3937
|
-
if (
|
|
3938
|
-
n = n[
|
|
3941
|
+
const s = r.slice(i, r.length).join(".");
|
|
3942
|
+
if (s in n) {
|
|
3943
|
+
n = n[s];
|
|
3939
3944
|
break;
|
|
3940
3945
|
}
|
|
3941
3946
|
}
|
|
@@ -3944,92 +3949,92 @@ function Zi(e, t) {
|
|
|
3944
3949
|
n = void 0;
|
|
3945
3950
|
return n;
|
|
3946
3951
|
}
|
|
3947
|
-
const
|
|
3952
|
+
const ue = {}, Yi = (e, t, r) => r && (t in ue || (ue[t] = {}), e in ue[t] || (ue[t][e] = r), r), Fr = (e, t) => {
|
|
3948
3953
|
if (t == null)
|
|
3949
3954
|
return;
|
|
3950
|
-
if (t in
|
|
3951
|
-
return
|
|
3952
|
-
const r =
|
|
3955
|
+
if (t in ue && e in ue[t])
|
|
3956
|
+
return ue[t][e];
|
|
3957
|
+
const r = ut(t);
|
|
3953
3958
|
for (let n = 0; n < r.length; n++) {
|
|
3954
|
-
const i = r[n],
|
|
3955
|
-
if (
|
|
3956
|
-
return
|
|
3959
|
+
const i = r[n], s = Ki(i, e);
|
|
3960
|
+
if (s)
|
|
3961
|
+
return Yi(e, t, s);
|
|
3957
3962
|
}
|
|
3958
3963
|
};
|
|
3959
|
-
let
|
|
3960
|
-
const
|
|
3961
|
-
function
|
|
3962
|
-
return
|
|
3964
|
+
let Rt;
|
|
3965
|
+
const We = ot({});
|
|
3966
|
+
function qi(e) {
|
|
3967
|
+
return Rt[e] || null;
|
|
3963
3968
|
}
|
|
3964
|
-
function
|
|
3965
|
-
return e in
|
|
3969
|
+
function Vr(e) {
|
|
3970
|
+
return e in Rt;
|
|
3966
3971
|
}
|
|
3967
|
-
function
|
|
3968
|
-
if (!
|
|
3972
|
+
function Ki(e, t) {
|
|
3973
|
+
if (!Vr(e))
|
|
3969
3974
|
return null;
|
|
3970
|
-
const r =
|
|
3971
|
-
return
|
|
3975
|
+
const r = qi(e);
|
|
3976
|
+
return Qi(r, t);
|
|
3972
3977
|
}
|
|
3973
|
-
function
|
|
3978
|
+
function es(e) {
|
|
3974
3979
|
if (e == null)
|
|
3975
3980
|
return;
|
|
3976
|
-
const t =
|
|
3981
|
+
const t = ut(e);
|
|
3977
3982
|
for (let r = 0; r < t.length; r++) {
|
|
3978
3983
|
const n = t[r];
|
|
3979
|
-
if (
|
|
3984
|
+
if (Vr(n))
|
|
3980
3985
|
return n;
|
|
3981
3986
|
}
|
|
3982
3987
|
}
|
|
3983
|
-
function
|
|
3984
|
-
delete
|
|
3988
|
+
function Wr(e, ...t) {
|
|
3989
|
+
delete ue[e], We.update((r) => (r[e] = ii.all([r[e] || {}, ...t]), r));
|
|
3985
3990
|
}
|
|
3986
3991
|
Oe(
|
|
3987
|
-
[
|
|
3992
|
+
[We],
|
|
3988
3993
|
([e]) => Object.keys(e)
|
|
3989
3994
|
);
|
|
3990
|
-
|
|
3991
|
-
const
|
|
3992
|
-
function
|
|
3993
|
-
|
|
3995
|
+
We.subscribe((e) => Rt = e);
|
|
3996
|
+
const rt = {};
|
|
3997
|
+
function ts(e, t) {
|
|
3998
|
+
rt[e].delete(t), rt[e].size === 0 && delete rt[e];
|
|
3994
3999
|
}
|
|
3995
|
-
function
|
|
3996
|
-
return
|
|
4000
|
+
function Xr(e) {
|
|
4001
|
+
return rt[e];
|
|
3997
4002
|
}
|
|
3998
|
-
function
|
|
3999
|
-
return
|
|
4000
|
-
const r =
|
|
4003
|
+
function rs(e) {
|
|
4004
|
+
return ut(e).map((t) => {
|
|
4005
|
+
const r = Xr(t);
|
|
4001
4006
|
return [t, r ? [...r] : []];
|
|
4002
4007
|
}).filter(([, t]) => t.length > 0);
|
|
4003
4008
|
}
|
|
4004
|
-
function
|
|
4005
|
-
return e == null ? !1 :
|
|
4009
|
+
function It(e) {
|
|
4010
|
+
return e == null ? !1 : ut(e).some(
|
|
4006
4011
|
(t) => {
|
|
4007
4012
|
var r;
|
|
4008
|
-
return (r =
|
|
4013
|
+
return (r = Xr(t)) == null ? void 0 : r.size;
|
|
4009
4014
|
}
|
|
4010
4015
|
);
|
|
4011
4016
|
}
|
|
4012
|
-
function
|
|
4017
|
+
function ns(e, t) {
|
|
4013
4018
|
return Promise.all(
|
|
4014
|
-
t.map((n) => (
|
|
4015
|
-
).then((n) =>
|
|
4016
|
-
}
|
|
4017
|
-
const
|
|
4018
|
-
function
|
|
4019
|
-
if (!
|
|
4020
|
-
return e in
|
|
4021
|
-
const t =
|
|
4022
|
-
return
|
|
4019
|
+
t.map((n) => (ts(e, n), n().then((i) => i.default || i)))
|
|
4020
|
+
).then((n) => Wr(e, ...n));
|
|
4021
|
+
}
|
|
4022
|
+
const Ge = {};
|
|
4023
|
+
function zr(e) {
|
|
4024
|
+
if (!It(e))
|
|
4025
|
+
return e in Ge ? Ge[e] : Promise.resolve();
|
|
4026
|
+
const t = rs(e);
|
|
4027
|
+
return Ge[e] = Promise.all(
|
|
4023
4028
|
t.map(
|
|
4024
|
-
([r, n]) =>
|
|
4029
|
+
([r, n]) => ns(r, n)
|
|
4025
4030
|
)
|
|
4026
4031
|
).then(() => {
|
|
4027
|
-
if (
|
|
4028
|
-
return
|
|
4029
|
-
delete
|
|
4030
|
-
}),
|
|
4032
|
+
if (It(e))
|
|
4033
|
+
return zr(e);
|
|
4034
|
+
delete Ge[e];
|
|
4035
|
+
}), Ge[e];
|
|
4031
4036
|
}
|
|
4032
|
-
const
|
|
4037
|
+
const is = {
|
|
4033
4038
|
number: {
|
|
4034
4039
|
scientific: { notation: "scientific" },
|
|
4035
4040
|
engineering: { notation: "engineering" },
|
|
@@ -4058,150 +4063,150 @@ const no = {
|
|
|
4058
4063
|
timeZoneName: "short"
|
|
4059
4064
|
}
|
|
4060
4065
|
}
|
|
4061
|
-
},
|
|
4066
|
+
}, ss = {
|
|
4062
4067
|
fallbackLocale: null,
|
|
4063
4068
|
loadingDelay: 200,
|
|
4064
|
-
formats:
|
|
4069
|
+
formats: is,
|
|
4065
4070
|
warnOnMissingMessages: !0,
|
|
4066
4071
|
handleMissingMessage: void 0,
|
|
4067
4072
|
ignoreTag: !0
|
|
4068
|
-
},
|
|
4069
|
-
function
|
|
4070
|
-
return
|
|
4073
|
+
}, os = ss;
|
|
4074
|
+
function Ce() {
|
|
4075
|
+
return os;
|
|
4071
4076
|
}
|
|
4072
|
-
const
|
|
4073
|
-
var
|
|
4077
|
+
const yt = ot(!1);
|
|
4078
|
+
var as = Object.defineProperty, us = Object.defineProperties, ls = Object.getOwnPropertyDescriptors, ur = Object.getOwnPropertySymbols, hs = Object.prototype.hasOwnProperty, cs = Object.prototype.propertyIsEnumerable, lr = (e, t, r) => t in e ? as(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, fs = (e, t) => {
|
|
4074
4079
|
for (var r in t || (t = {}))
|
|
4075
|
-
|
|
4076
|
-
if (
|
|
4077
|
-
for (var r of
|
|
4078
|
-
|
|
4080
|
+
hs.call(t, r) && lr(e, r, t[r]);
|
|
4081
|
+
if (ur)
|
|
4082
|
+
for (var r of ur(t))
|
|
4083
|
+
cs.call(t, r) && lr(e, r, t[r]);
|
|
4079
4084
|
return e;
|
|
4080
|
-
},
|
|
4081
|
-
let
|
|
4082
|
-
const
|
|
4083
|
-
function
|
|
4085
|
+
}, ps = (e, t) => us(e, ls(t));
|
|
4086
|
+
let Nt;
|
|
4087
|
+
const nt = ot(null);
|
|
4088
|
+
function hr(e) {
|
|
4084
4089
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4085
4090
|
}
|
|
4086
|
-
function
|
|
4087
|
-
const r =
|
|
4088
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4091
|
+
function ut(e, t = Ce().fallbackLocale) {
|
|
4092
|
+
const r = hr(e);
|
|
4093
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...hr(t)])] : r;
|
|
4089
4094
|
}
|
|
4090
|
-
function
|
|
4091
|
-
return
|
|
4095
|
+
function pe() {
|
|
4096
|
+
return Nt != null ? Nt : void 0;
|
|
4092
4097
|
}
|
|
4093
|
-
|
|
4094
|
-
|
|
4098
|
+
nt.subscribe((e) => {
|
|
4099
|
+
Nt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4095
4100
|
});
|
|
4096
|
-
const
|
|
4097
|
-
if (e &&
|
|
4098
|
-
const { loadingDelay: t } =
|
|
4101
|
+
const ds = (e) => {
|
|
4102
|
+
if (e && es(e) && It(e)) {
|
|
4103
|
+
const { loadingDelay: t } = Ce();
|
|
4099
4104
|
let r;
|
|
4100
|
-
return typeof window != "undefined" &&
|
|
4101
|
-
() =>
|
|
4105
|
+
return typeof window != "undefined" && pe() != null && t ? r = window.setTimeout(
|
|
4106
|
+
() => yt.set(!0),
|
|
4102
4107
|
t
|
|
4103
|
-
) :
|
|
4104
|
-
|
|
4108
|
+
) : yt.set(!0), zr(e).then(() => {
|
|
4109
|
+
nt.set(e);
|
|
4105
4110
|
}).finally(() => {
|
|
4106
|
-
clearTimeout(r),
|
|
4111
|
+
clearTimeout(r), yt.set(!1);
|
|
4107
4112
|
});
|
|
4108
4113
|
}
|
|
4109
|
-
return
|
|
4110
|
-
},
|
|
4111
|
-
set:
|
|
4112
|
-
}),
|
|
4114
|
+
return nt.set(e);
|
|
4115
|
+
}, Le = ps(fs({}, nt), {
|
|
4116
|
+
set: ds
|
|
4117
|
+
}), lt = (e) => {
|
|
4113
4118
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4114
4119
|
return (n) => {
|
|
4115
4120
|
const i = JSON.stringify(n);
|
|
4116
4121
|
return i in t ? t[i] : t[i] = e(n);
|
|
4117
4122
|
};
|
|
4118
4123
|
};
|
|
4119
|
-
var
|
|
4124
|
+
var ms = Object.defineProperty, it = Object.getOwnPropertySymbols, Jr = Object.prototype.hasOwnProperty, Zr = Object.prototype.propertyIsEnumerable, cr = (e, t, r) => t in e ? ms(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ut = (e, t) => {
|
|
4120
4125
|
for (var r in t || (t = {}))
|
|
4121
|
-
|
|
4122
|
-
if (
|
|
4123
|
-
for (var r of
|
|
4124
|
-
|
|
4126
|
+
Jr.call(t, r) && cr(e, r, t[r]);
|
|
4127
|
+
if (it)
|
|
4128
|
+
for (var r of it(t))
|
|
4129
|
+
Zr.call(t, r) && cr(e, r, t[r]);
|
|
4125
4130
|
return e;
|
|
4126
|
-
},
|
|
4131
|
+
}, Ie = (e, t) => {
|
|
4127
4132
|
var r = {};
|
|
4128
4133
|
for (var n in e)
|
|
4129
|
-
|
|
4130
|
-
if (e != null &&
|
|
4131
|
-
for (var n of
|
|
4132
|
-
t.indexOf(n) < 0 &&
|
|
4134
|
+
Jr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4135
|
+
if (e != null && it)
|
|
4136
|
+
for (var n of it(e))
|
|
4137
|
+
t.indexOf(n) < 0 && Zr.call(e, n) && (r[n] = e[n]);
|
|
4133
4138
|
return r;
|
|
4134
4139
|
};
|
|
4135
|
-
const
|
|
4136
|
-
const { formats: r } =
|
|
4140
|
+
const Fe = (e, t) => {
|
|
4141
|
+
const { formats: r } = Ce();
|
|
4137
4142
|
if (e in r && t in r[e])
|
|
4138
4143
|
return r[e][t];
|
|
4139
4144
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4140
|
-
},
|
|
4145
|
+
}, bs = lt(
|
|
4141
4146
|
(e) => {
|
|
4142
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4147
|
+
var t = e, { locale: r, format: n } = t, i = Ie(t, ["locale", "format"]);
|
|
4143
4148
|
if (r == null)
|
|
4144
4149
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4145
|
-
return n && (i =
|
|
4150
|
+
return n && (i = Fe("number", n)), new Intl.NumberFormat(r, i);
|
|
4146
4151
|
}
|
|
4147
|
-
),
|
|
4152
|
+
), gs = lt(
|
|
4148
4153
|
(e) => {
|
|
4149
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4154
|
+
var t = e, { locale: r, format: n } = t, i = Ie(t, ["locale", "format"]);
|
|
4150
4155
|
if (r == null)
|
|
4151
4156
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4152
|
-
return n ? i =
|
|
4157
|
+
return n ? i = Fe("date", n) : Object.keys(i).length === 0 && (i = Fe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4153
4158
|
}
|
|
4154
|
-
),
|
|
4159
|
+
), ys = lt(
|
|
4155
4160
|
(e) => {
|
|
4156
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4161
|
+
var t = e, { locale: r, format: n } = t, i = Ie(t, ["locale", "format"]);
|
|
4157
4162
|
if (r == null)
|
|
4158
4163
|
throw new Error(
|
|
4159
4164
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4160
4165
|
);
|
|
4161
|
-
return n ? i =
|
|
4166
|
+
return n ? i = Fe("time", n) : Object.keys(i).length === 0 && (i = Fe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4162
4167
|
}
|
|
4163
|
-
),
|
|
4168
|
+
), vs = (e = {}) => {
|
|
4164
4169
|
var t = e, {
|
|
4165
|
-
locale: r =
|
|
4166
|
-
} = t, n =
|
|
4170
|
+
locale: r = pe()
|
|
4171
|
+
} = t, n = Ie(t, [
|
|
4167
4172
|
"locale"
|
|
4168
4173
|
]);
|
|
4169
|
-
return
|
|
4170
|
-
},
|
|
4174
|
+
return bs(Ut({ locale: r }, n));
|
|
4175
|
+
}, _s = (e = {}) => {
|
|
4171
4176
|
var t = e, {
|
|
4172
|
-
locale: r =
|
|
4173
|
-
} = t, n =
|
|
4177
|
+
locale: r = pe()
|
|
4178
|
+
} = t, n = Ie(t, [
|
|
4174
4179
|
"locale"
|
|
4175
4180
|
]);
|
|
4176
|
-
return
|
|
4177
|
-
},
|
|
4181
|
+
return gs(Ut({ locale: r }, n));
|
|
4182
|
+
}, xs = (e = {}) => {
|
|
4178
4183
|
var t = e, {
|
|
4179
|
-
locale: r =
|
|
4180
|
-
} = t, n =
|
|
4184
|
+
locale: r = pe()
|
|
4185
|
+
} = t, n = Ie(t, [
|
|
4181
4186
|
"locale"
|
|
4182
4187
|
]);
|
|
4183
|
-
return
|
|
4184
|
-
},
|
|
4188
|
+
return ys(Ut({ locale: r }, n));
|
|
4189
|
+
}, Es = lt(
|
|
4185
4190
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4186
|
-
(e, t =
|
|
4187
|
-
ignoreTag:
|
|
4191
|
+
(e, t = pe()) => new Zi(e, t, Ce().formats, {
|
|
4192
|
+
ignoreTag: Ce().ignoreTag
|
|
4188
4193
|
})
|
|
4189
|
-
),
|
|
4190
|
-
var r, n, i,
|
|
4191
|
-
let
|
|
4192
|
-
typeof e == "object" && (
|
|
4194
|
+
), Ss = (e, t = {}) => {
|
|
4195
|
+
var r, n, i, s;
|
|
4196
|
+
let o = t;
|
|
4197
|
+
typeof e == "object" && (o = e, e = o.id);
|
|
4193
4198
|
const {
|
|
4194
4199
|
values: a,
|
|
4195
|
-
locale: l =
|
|
4200
|
+
locale: l = pe(),
|
|
4196
4201
|
default: u
|
|
4197
|
-
} =
|
|
4202
|
+
} = o;
|
|
4198
4203
|
if (l == null)
|
|
4199
4204
|
throw new Error(
|
|
4200
4205
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4201
4206
|
);
|
|
4202
|
-
let h =
|
|
4207
|
+
let h = Fr(e, l);
|
|
4203
4208
|
if (!h)
|
|
4204
|
-
h = (
|
|
4209
|
+
h = (s = (i = (n = (r = Ce()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
4205
4210
|
else if (typeof h != "string")
|
|
4206
4211
|
return console.warn(
|
|
4207
4212
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4210,7 +4215,7 @@ const ke = (e, t) => {
|
|
|
4210
4215
|
return h;
|
|
4211
4216
|
let f = h;
|
|
4212
4217
|
try {
|
|
4213
|
-
f =
|
|
4218
|
+
f = Es(h, l).format(a);
|
|
4214
4219
|
} catch (p) {
|
|
4215
4220
|
p instanceof Error && console.warn(
|
|
4216
4221
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4218,21 +4223,21 @@ const ke = (e, t) => {
|
|
|
4218
4223
|
);
|
|
4219
4224
|
}
|
|
4220
4225
|
return f;
|
|
4221
|
-
},
|
|
4222
|
-
Oe([
|
|
4223
|
-
Oe([
|
|
4224
|
-
Oe([
|
|
4225
|
-
Oe([
|
|
4226
|
-
Oe([
|
|
4227
|
-
window.emWidgets = { topic:
|
|
4228
|
-
const
|
|
4229
|
-
function
|
|
4226
|
+
}, Ts = (e, t) => xs(t).format(e), ws = (e, t) => _s(t).format(e), Hs = (e, t) => vs(t).format(e), As = (e, t = pe()) => Fr(e, t);
|
|
4227
|
+
Oe([Le, We], () => Ss);
|
|
4228
|
+
Oe([Le], () => Ts);
|
|
4229
|
+
Oe([Le], () => ws);
|
|
4230
|
+
Oe([Le], () => Hs);
|
|
4231
|
+
Oe([Le, We], () => As);
|
|
4232
|
+
window.emWidgets = { topic: $n };
|
|
4233
|
+
const Bs = (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));
|
|
4234
|
+
function Ps(e, t) {
|
|
4230
4235
|
if (e) {
|
|
4231
4236
|
const r = document.createElement("style");
|
|
4232
4237
|
r.innerHTML = t, e.appendChild(r);
|
|
4233
4238
|
}
|
|
4234
4239
|
}
|
|
4235
|
-
function
|
|
4240
|
+
function Cs(e, t) {
|
|
4236
4241
|
const r = new URL(t);
|
|
4237
4242
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4238
4243
|
const i = document.createElement("style");
|
|
@@ -4241,7 +4246,7 @@ function Oo(e, t) {
|
|
|
4241
4246
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4242
4247
|
});
|
|
4243
4248
|
}
|
|
4244
|
-
function
|
|
4249
|
+
function Os(e, t, r) {
|
|
4245
4250
|
if (window.emMessageBus) {
|
|
4246
4251
|
const n = document.createElement("style");
|
|
4247
4252
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4249,13 +4254,13 @@ function Co(e, t, r) {
|
|
|
4249
4254
|
});
|
|
4250
4255
|
}
|
|
4251
4256
|
}
|
|
4252
|
-
function
|
|
4253
|
-
|
|
4257
|
+
function fr(e, t) {
|
|
4258
|
+
Wr(e, t);
|
|
4254
4259
|
}
|
|
4255
|
-
function
|
|
4256
|
-
|
|
4260
|
+
function Ls(e) {
|
|
4261
|
+
Le.set(e);
|
|
4257
4262
|
}
|
|
4258
|
-
const
|
|
4263
|
+
const pr = {
|
|
4259
4264
|
en: {
|
|
4260
4265
|
loadingText: "Loading, please wait..."
|
|
4261
4266
|
},
|
|
@@ -4293,96 +4298,96 @@ const fr = {
|
|
|
4293
4298
|
loadingText: "Loading, please wait..."
|
|
4294
4299
|
}
|
|
4295
4300
|
};
|
|
4296
|
-
function
|
|
4297
|
-
|
|
4301
|
+
function Is(e) {
|
|
4302
|
+
nn(e, "svelte-hxpfl0", ':host{font-family:"Roboto", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";color:#fff}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.mainWrapper{padding:33px 3vw;background-repeat:no-repeat !important;background-size:cover !important;border-radius:7px;display:grid;grid-gap:0.5rem;z-index:0}.vendorLogo{grid-area:vendorLogo;height:44px;width:auto;min-width:130px;background-repeat:no-repeat;background-position:right center}.displayCard{position:relative;background:#1c2136;height:max(0.5vw, 1rem);padding:10px 20px 10px 24px;margin:0 8px;box-sizing:content-box;border-radius:7px;display:flex;justify-content:center;align-items:center;border:1px solid #ffc052}.displayCard .iconWrapper{width:44px;height:44px;position:absolute;left:-24px;display:flex;flex-direction:column;justify-content:flex-start;align-items:center}.displayCard .displayCardIcon{height:100%;width:auto}.displayCard .cardLabel{font-size:0.8rem;font-style:italic}.displayCard .cardTextWrapper{display:flex;justify-content:center;flex-wrap:nowrap;align-items:flex-end}.title{grid-area:title;display:flex;align-items:center}.title ui-image img{height:50px}.displayContainer{grid-area:displayArea;padding:0 0 0 20px;display:flex;gap:40px;justify-content:space-between;align-items:center}.displayContainer .jackpotValue{font-size:1.2rem;font-weight:400;display:flex;align-items:flex-end}.displayContainer .jackpot-currency{font-weight:400;font-style:italic;font-size:8px;padding-left:2px;display:flex;align-items:flex-end}.pairWrapper{width:100%;padding-left:4%;display:flex;justify-content:flex-start;gap:30px}.typeSpread{grid-template-columns:1fr 2.5fr 1fr;grid-template-areas:"title displayArea vendorLogo";align-items:center}.typeSpread.mobile{grid-template-areas:"title" "vendorLogo" "displayArea";margin-top:25px}.typeSpread .pairWrapper{justify-content:center}.typeSpread .vendorLogo{justify-content:flex-end}.typeSpread .title{justify-content:flex-start}.typeSpread .displayContainer{justify-content:space-evenly}.typeLeft{grid-template-columns:1fr 4fr;grid-template-areas:"title displayArea" "vendorLogo displayArea";padding:44px 33px}.typeLeft.mobile{grid-template-areas:"title" "vendorLogo" "displayArea";padding:33px}.typeLeft.mobile .displayContainer{margin-top:50px;gap:2.6rem}.typeLeft .displayContainer{padding-left:2rem;width:auto;gap:2rem}.typeLeft .pairWrapper{justify-content:space-evenly}.typeLeft .title{align-items:flex-end}.typeLeft .vendorLogo{height:44px;width:auto}.mobile{grid-template-columns:1fr;grid-gap:1rem}.mobile .title{justify-content:center;align-items:center}.mobile .title ui-image img{height:80px}.mobile .displayContainer{padding-left:26px;flex-direction:column;flex-wrap:nowrap;justify-content:center;align-items:center}.mobile .vendorLogo{justify-content:center;align-items:center}.mobile .displayCard{width:40vw}.tablet .displayContainer{flex-wrap:wrap}.DisplayNone{display:none}.loadingPrompt{color:#333}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--color-primary, #D0046C);border-color:var(--emw--color-primary, #D0046C) transparent var(--emw--color-primary, #D0046C) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}');
|
|
4298
4303
|
}
|
|
4299
|
-
function
|
|
4304
|
+
function dr(e, t, r) {
|
|
4300
4305
|
const n = e.slice();
|
|
4301
4306
|
return n[53] = t[r], n[55] = r, n;
|
|
4302
4307
|
}
|
|
4303
|
-
function
|
|
4304
|
-
let t, r, n, i,
|
|
4305
|
-
function
|
|
4308
|
+
function Ns(e) {
|
|
4309
|
+
let t, r, n, i, s, o, a, l, u, h, f, p, b;
|
|
4310
|
+
function g(x, T) {
|
|
4306
4311
|
return (
|
|
4307
4312
|
/*tabletView*/
|
|
4308
|
-
|
|
4313
|
+
x[6] ? Us : Ds
|
|
4309
4314
|
);
|
|
4310
4315
|
}
|
|
4311
|
-
let
|
|
4316
|
+
let y = g(e), v = y(e);
|
|
4312
4317
|
return {
|
|
4313
4318
|
c() {
|
|
4314
|
-
t =
|
|
4315
|
-
e[7] + ")"),
|
|
4316
|
-
e[12]) ||
|
|
4319
|
+
t = m("div"), r = m("div"), n = m("div"), i = m("div"), s = K(), o = m("div"), v.c(), a = K(), l = m("div"), u = m("ui-image"), _(i, "class", "vendorLogo"), Qe(i, "background-image", "url(" + /*vendorIcon*/
|
|
4320
|
+
e[7] + ")"), _(o, "class", "displayContainer"), k(u.src, h = /*titleLogoImg*/
|
|
4321
|
+
e[12]) || C(u, "src", h), C(u, "alt", ""), _(l, "class", "title"), _(n, "class", f = "mainWrapper " + /*visualstructure*/
|
|
4317
4322
|
e[0] + " " + /*mobileView*/
|
|
4318
4323
|
(e[5] && !/*tabletView*/
|
|
4319
4324
|
e[6] ? "mobile" : (
|
|
4320
4325
|
/*tabletView*/
|
|
4321
4326
|
e[6] ? "tablet" : ""
|
|
4322
|
-
))),
|
|
4323
|
-
e[11] + ")"),
|
|
4327
|
+
))), Qe(n, "background", "url(" + /*backgroundImg*/
|
|
4328
|
+
e[11] + ")"), _(r, "class", "jackpotBanner"), _(t, "class", "");
|
|
4324
4329
|
},
|
|
4325
|
-
m(
|
|
4326
|
-
|
|
4330
|
+
m(x, T) {
|
|
4331
|
+
ee(x, t, T), d(t, r), d(r, n), d(n, i), d(n, s), d(n, o), v.m(o, null), d(n, a), d(n, l), d(l, u), p || (b = ln(
|
|
4327
4332
|
r,
|
|
4328
4333
|
"click",
|
|
4329
4334
|
/*click_handler*/
|
|
4330
4335
|
e[33]
|
|
4331
4336
|
), p = !0);
|
|
4332
4337
|
},
|
|
4333
|
-
p(
|
|
4338
|
+
p(x, T) {
|
|
4334
4339
|
T[0] & /*vendorIcon*/
|
|
4335
|
-
128 &&
|
|
4336
|
-
|
|
4337
|
-
4096 &&
|
|
4338
|
-
|
|
4340
|
+
128 && Qe(i, "background-image", "url(" + /*vendorIcon*/
|
|
4341
|
+
x[7] + ")"), y === (y = g(x)) && v ? v.p(x, T) : (v.d(1), v = y(x), v && (v.c(), v.m(o, null))), T[0] & /*titleLogoImg*/
|
|
4342
|
+
4096 && !k(u.src, h = /*titleLogoImg*/
|
|
4343
|
+
x[12]) && C(u, "src", h), T[0] & /*visualstructure, mobileView, tabletView*/
|
|
4339
4344
|
97 && f !== (f = "mainWrapper " + /*visualstructure*/
|
|
4340
|
-
|
|
4341
|
-
(
|
|
4342
|
-
|
|
4345
|
+
x[0] + " " + /*mobileView*/
|
|
4346
|
+
(x[5] && !/*tabletView*/
|
|
4347
|
+
x[6] ? "mobile" : (
|
|
4343
4348
|
/*tabletView*/
|
|
4344
|
-
|
|
4345
|
-
))) &&
|
|
4346
|
-
2048 &&
|
|
4347
|
-
|
|
4349
|
+
x[6] ? "tablet" : ""
|
|
4350
|
+
))) && _(n, "class", f), T[0] & /*backgroundImg*/
|
|
4351
|
+
2048 && Qe(n, "background", "url(" + /*backgroundImg*/
|
|
4352
|
+
x[11] + ")");
|
|
4348
4353
|
},
|
|
4349
|
-
d(
|
|
4350
|
-
|
|
4354
|
+
d(x) {
|
|
4355
|
+
x && X(t), v.d(), p = !1, b();
|
|
4351
4356
|
}
|
|
4352
4357
|
};
|
|
4353
4358
|
}
|
|
4354
|
-
function
|
|
4359
|
+
function Ms(e) {
|
|
4355
4360
|
let t;
|
|
4356
4361
|
return {
|
|
4357
4362
|
c() {
|
|
4358
|
-
t =
|
|
4363
|
+
t = m("div"), _(t, "class", "LoadingSpinner");
|
|
4359
4364
|
},
|
|
4360
4365
|
m(r, n) {
|
|
4361
|
-
|
|
4366
|
+
ee(r, t, n);
|
|
4362
4367
|
},
|
|
4363
|
-
p:
|
|
4368
|
+
p: j,
|
|
4364
4369
|
d(r) {
|
|
4365
|
-
r &&
|
|
4370
|
+
r && X(t);
|
|
4366
4371
|
}
|
|
4367
4372
|
};
|
|
4368
4373
|
}
|
|
4369
|
-
function
|
|
4374
|
+
function Rs(e) {
|
|
4370
4375
|
let t;
|
|
4371
4376
|
return {
|
|
4372
4377
|
c() {
|
|
4373
|
-
t =
|
|
4378
|
+
t = m("p"), t.textContent = "500 Server error";
|
|
4374
4379
|
},
|
|
4375
4380
|
m(r, n) {
|
|
4376
|
-
|
|
4381
|
+
ee(r, t, n);
|
|
4377
4382
|
},
|
|
4378
|
-
p:
|
|
4383
|
+
p: j,
|
|
4379
4384
|
d(r) {
|
|
4380
|
-
r &&
|
|
4385
|
+
r && X(t);
|
|
4381
4386
|
}
|
|
4382
4387
|
};
|
|
4383
4388
|
}
|
|
4384
|
-
function
|
|
4385
|
-
let t, r, n, i,
|
|
4389
|
+
function Us(e) {
|
|
4390
|
+
let t, r, n, i, s, o, a = (
|
|
4386
4391
|
/*formattedLabels*/
|
|
4387
4392
|
e[9][0] + ""
|
|
4388
4393
|
), l, u, h, f = (
|
|
@@ -4394,10 +4399,10 @@ function Uo(e) {
|
|
|
4394
4399
|
/*formattedJackpotValues*/
|
|
4395
4400
|
e[8][0]
|
|
4396
4401
|
)) + ""
|
|
4397
|
-
), p, g, y, v,
|
|
4402
|
+
), p, b, g, y, v, x, T, B, U, N, F = (
|
|
4398
4403
|
/*formattedLabels*/
|
|
4399
4404
|
e[9][1] + ""
|
|
4400
|
-
),
|
|
4405
|
+
), z, J, le, ie = (
|
|
4401
4406
|
/*realtimeupdate*/
|
|
4402
4407
|
(e[2] === "true" ? (
|
|
4403
4408
|
/*updatedJackpotValues*/
|
|
@@ -4406,10 +4411,10 @@ function Uo(e) {
|
|
|
4406
4411
|
/*formattedJackpotValues*/
|
|
4407
4412
|
e[8][1]
|
|
4408
4413
|
)) + ""
|
|
4409
|
-
),
|
|
4414
|
+
), se, Ne, he, de, me, Z, R, Q, V, oe, W, te = (
|
|
4410
4415
|
/*formattedLabels*/
|
|
4411
4416
|
e[9][2] + ""
|
|
4412
|
-
),
|
|
4417
|
+
), Me, Y, be, ge = (
|
|
4413
4418
|
/*realtimeupdate*/
|
|
4414
4419
|
(e[2] === "true" ? (
|
|
4415
4420
|
/*updatedJackpotValues*/
|
|
@@ -4418,10 +4423,10 @@ function Uo(e) {
|
|
|
4418
4423
|
/*formattedJackpotValues*/
|
|
4419
4424
|
e[8][2]
|
|
4420
4425
|
)) + ""
|
|
4421
|
-
),
|
|
4426
|
+
), Re, Xe, ye, ve, ze, ce, ae, q, fe, _e, xe = (
|
|
4422
4427
|
/*formattedLabels*/
|
|
4423
4428
|
e[9][3] + ""
|
|
4424
|
-
),
|
|
4429
|
+
), Ue, c, H, I = (
|
|
4425
4430
|
/*realtimeupdate*/
|
|
4426
4431
|
(e[2] === "true" ? (
|
|
4427
4432
|
/*updatedJackpotValues*/
|
|
@@ -4430,36 +4435,36 @@ function Uo(e) {
|
|
|
4430
4435
|
/*formattedJackpotValues*/
|
|
4431
4436
|
e[8][3]
|
|
4432
4437
|
)) + ""
|
|
4433
|
-
),
|
|
4438
|
+
), De, Dt, Je, ht;
|
|
4434
4439
|
return {
|
|
4435
4440
|
c() {
|
|
4436
|
-
t =
|
|
4441
|
+
t = m("div"), r = m("div"), n = m("div"), i = m("ui-image"), o = m("span"), l = M(a), u = m("span"), h = m("span"), p = M(f), b = K(), g = m("span"), y = M(
|
|
4437
4442
|
/*currency*/
|
|
4438
4443
|
e[1]
|
|
4439
|
-
),
|
|
4444
|
+
), v = K(), x = m("div"), T = m("div"), B = m("ui-image"), N = m("span"), z = M(F), J = m("span"), le = m("span"), se = M(ie), Ne = K(), he = m("span"), de = M(
|
|
4440
4445
|
/*currency*/
|
|
4441
4446
|
e[1]
|
|
4442
|
-
),
|
|
4447
|
+
), me = K(), Z = m("div"), R = m("div"), Q = m("div"), V = m("ui-image"), W = m("span"), Me = M(te), Y = m("span"), be = m("span"), Re = M(ge), Xe = K(), ye = m("span"), ve = M(
|
|
4443
4448
|
/*currency*/
|
|
4444
4449
|
e[1]
|
|
4445
|
-
),
|
|
4450
|
+
), ze = K(), ce = m("div"), ae = m("div"), q = m("ui-image"), _e = m("span"), Ue = M(xe), c = m("span"), H = m("span"), De = M(I), Dt = K(), Je = m("span"), ht = M(
|
|
4446
4451
|
/*currency*/
|
|
4447
4452
|
e[1]
|
|
4448
|
-
),
|
|
4449
|
-
e[10][0]) ||
|
|
4450
|
-
e[10][1]) ||
|
|
4451
|
-
e[10][2]) ||
|
|
4452
|
-
e[10][3]) ||
|
|
4453
|
+
), C(i, "imgClass", "displayCardIcon"), k(i.src, s = /*caticons*/
|
|
4454
|
+
e[10][0]) || C(i, "src", s), C(i, "alt", ""), _(o, "class", "cardLabel"), _(n, "class", "iconWrapper"), _(h, "class", "jackpotValue"), _(g, "class", "jackpot-currency"), _(u, "class", "cardTextWrapper"), _(r, "class", "displayCard"), C(B, "imgClass", "displayCardIcon"), k(B.src, U = /*caticons*/
|
|
4455
|
+
e[10][1]) || C(B, "src", U), C(B, "alt", ""), _(N, "class", "cardLabel"), _(T, "class", "iconWrapper"), _(le, "class", "jackpotValue"), _(he, "class", "jackpot-currency"), _(J, "class", "cardTextWrapper"), _(x, "class", "displayCard"), _(t, "class", "pairWrapper"), C(V, "imgClass", "displayCardIcon"), k(V.src, oe = /*caticons*/
|
|
4456
|
+
e[10][2]) || C(V, "src", oe), C(V, "alt", ""), _(W, "class", "cardLabel"), _(Q, "class", "iconWrapper"), _(be, "class", "jackpotValue"), _(ye, "class", "jackpot-currency"), _(Y, "class", "cardTextWrapper"), _(R, "class", "displayCard"), C(q, "imgClass", "displayCardIcon"), k(q.src, fe = /*caticons*/
|
|
4457
|
+
e[10][3]) || C(q, "src", fe), C(q, "alt", ""), _(_e, "class", "cardLabel"), _(ae, "class", "iconWrapper"), _(H, "class", "jackpotValue"), _(Je, "class", "jackpot-currency"), _(c, "class", "cardTextWrapper"), _(ce, "class", "displayCard"), _(Z, "class", "pairWrapper");
|
|
4453
4458
|
},
|
|
4454
|
-
m(A,
|
|
4455
|
-
|
|
4459
|
+
m(A, L) {
|
|
4460
|
+
ee(A, t, L), d(t, r), d(r, n), d(n, i), d(n, o), d(o, l), d(r, u), d(u, h), d(h, p), d(u, b), d(u, g), d(g, y), d(t, v), d(t, x), d(x, T), d(T, B), d(T, N), d(N, z), d(x, J), d(J, le), d(le, se), d(J, Ne), d(J, he), d(he, de), ee(A, me, L), ee(A, Z, L), d(Z, R), d(R, Q), d(Q, V), d(Q, W), d(W, Me), d(R, Y), d(Y, be), d(be, Re), d(Y, Xe), d(Y, ye), d(ye, ve), d(Z, ze), d(Z, ce), d(ce, ae), d(ae, q), d(ae, _e), d(_e, Ue), d(ce, c), d(c, H), d(H, De), d(c, Dt), d(c, Je), d(Je, ht);
|
|
4456
4461
|
},
|
|
4457
|
-
p(A,
|
|
4458
|
-
|
|
4459
|
-
1024 &&
|
|
4460
|
-
A[10][0]) &&
|
|
4462
|
+
p(A, L) {
|
|
4463
|
+
L[0] & /*caticons*/
|
|
4464
|
+
1024 && !k(i.src, s = /*caticons*/
|
|
4465
|
+
A[10][0]) && C(i, "src", s), L[0] & /*formattedLabels*/
|
|
4461
4466
|
512 && a !== (a = /*formattedLabels*/
|
|
4462
|
-
A[9][0] + "") &&
|
|
4467
|
+
A[9][0] + "") && D(l, a), L[0] & /*realtimeupdate, updatedJackpotValues, formattedJackpotValues*/
|
|
4463
4468
|
16644 && f !== (f = /*realtimeupdate*/
|
|
4464
4469
|
(A[2] === "true" ? (
|
|
4465
4470
|
/*updatedJackpotValues*/
|
|
@@ -4467,106 +4472,106 @@ function Uo(e) {
|
|
|
4467
4472
|
) : (
|
|
4468
4473
|
/*formattedJackpotValues*/
|
|
4469
4474
|
A[8][0]
|
|
4470
|
-
)) + "") &&
|
|
4471
|
-
2 &&
|
|
4472
|
-
|
|
4475
|
+
)) + "") && D(p, f), L[0] & /*currency*/
|
|
4476
|
+
2 && D(
|
|
4477
|
+
y,
|
|
4473
4478
|
/*currency*/
|
|
4474
4479
|
A[1]
|
|
4475
|
-
),
|
|
4476
|
-
1024 &&
|
|
4477
|
-
A[10][1]) &&
|
|
4478
|
-
512 &&
|
|
4479
|
-
A[9][1] + "") &&
|
|
4480
|
-
16644 &&
|
|
4480
|
+
), L[0] & /*caticons*/
|
|
4481
|
+
1024 && !k(B.src, U = /*caticons*/
|
|
4482
|
+
A[10][1]) && C(B, "src", U), L[0] & /*formattedLabels*/
|
|
4483
|
+
512 && F !== (F = /*formattedLabels*/
|
|
4484
|
+
A[9][1] + "") && D(z, F), L[0] & /*realtimeupdate, updatedJackpotValues, formattedJackpotValues*/
|
|
4485
|
+
16644 && ie !== (ie = /*realtimeupdate*/
|
|
4481
4486
|
(A[2] === "true" ? (
|
|
4482
4487
|
/*updatedJackpotValues*/
|
|
4483
4488
|
A[14][1]
|
|
4484
4489
|
) : (
|
|
4485
4490
|
/*formattedJackpotValues*/
|
|
4486
4491
|
A[8][1]
|
|
4487
|
-
)) + "") &&
|
|
4488
|
-
2 &&
|
|
4489
|
-
|
|
4492
|
+
)) + "") && D(se, ie), L[0] & /*currency*/
|
|
4493
|
+
2 && D(
|
|
4494
|
+
de,
|
|
4490
4495
|
/*currency*/
|
|
4491
4496
|
A[1]
|
|
4492
|
-
),
|
|
4493
|
-
1024 &&
|
|
4494
|
-
A[10][2]) &&
|
|
4495
|
-
512 &&
|
|
4496
|
-
A[9][2] + "") &&
|
|
4497
|
-
16644 &&
|
|
4497
|
+
), L[0] & /*caticons*/
|
|
4498
|
+
1024 && !k(V.src, oe = /*caticons*/
|
|
4499
|
+
A[10][2]) && C(V, "src", oe), L[0] & /*formattedLabels*/
|
|
4500
|
+
512 && te !== (te = /*formattedLabels*/
|
|
4501
|
+
A[9][2] + "") && D(Me, te), L[0] & /*realtimeupdate, updatedJackpotValues, formattedJackpotValues*/
|
|
4502
|
+
16644 && ge !== (ge = /*realtimeupdate*/
|
|
4498
4503
|
(A[2] === "true" ? (
|
|
4499
4504
|
/*updatedJackpotValues*/
|
|
4500
4505
|
A[14][2]
|
|
4501
4506
|
) : (
|
|
4502
4507
|
/*formattedJackpotValues*/
|
|
4503
4508
|
A[8][2]
|
|
4504
|
-
)) + "") &&
|
|
4505
|
-
2 &&
|
|
4506
|
-
|
|
4509
|
+
)) + "") && D(Re, ge), L[0] & /*currency*/
|
|
4510
|
+
2 && D(
|
|
4511
|
+
ve,
|
|
4507
4512
|
/*currency*/
|
|
4508
4513
|
A[1]
|
|
4509
|
-
),
|
|
4510
|
-
1024 &&
|
|
4511
|
-
A[10][3]) &&
|
|
4512
|
-
512 &&
|
|
4513
|
-
A[9][3] + "") &&
|
|
4514
|
-
16644 &&
|
|
4514
|
+
), L[0] & /*caticons*/
|
|
4515
|
+
1024 && !k(q.src, fe = /*caticons*/
|
|
4516
|
+
A[10][3]) && C(q, "src", fe), L[0] & /*formattedLabels*/
|
|
4517
|
+
512 && xe !== (xe = /*formattedLabels*/
|
|
4518
|
+
A[9][3] + "") && D(Ue, xe), L[0] & /*realtimeupdate, updatedJackpotValues, formattedJackpotValues*/
|
|
4519
|
+
16644 && I !== (I = /*realtimeupdate*/
|
|
4515
4520
|
(A[2] === "true" ? (
|
|
4516
4521
|
/*updatedJackpotValues*/
|
|
4517
4522
|
A[14][3]
|
|
4518
4523
|
) : (
|
|
4519
4524
|
/*formattedJackpotValues*/
|
|
4520
4525
|
A[8][3]
|
|
4521
|
-
)) + "") &&
|
|
4522
|
-
2 &&
|
|
4523
|
-
|
|
4526
|
+
)) + "") && D(De, I), L[0] & /*currency*/
|
|
4527
|
+
2 && D(
|
|
4528
|
+
ht,
|
|
4524
4529
|
/*currency*/
|
|
4525
4530
|
A[1]
|
|
4526
4531
|
);
|
|
4527
4532
|
},
|
|
4528
4533
|
d(A) {
|
|
4529
|
-
A && (
|
|
4534
|
+
A && (X(t), X(me), X(Z));
|
|
4530
4535
|
}
|
|
4531
4536
|
};
|
|
4532
4537
|
}
|
|
4533
|
-
function
|
|
4534
|
-
let t, r =
|
|
4538
|
+
function Ds(e) {
|
|
4539
|
+
let t, r = Wt(Array(4)), n = [];
|
|
4535
4540
|
for (let i = 0; i < r.length; i += 1)
|
|
4536
|
-
n[i] = dr(
|
|
4541
|
+
n[i] = mr(dr(e, r, i));
|
|
4537
4542
|
return {
|
|
4538
4543
|
c() {
|
|
4539
4544
|
for (let i = 0; i < n.length; i += 1)
|
|
4540
4545
|
n[i].c();
|
|
4541
|
-
t =
|
|
4546
|
+
t = un();
|
|
4542
4547
|
},
|
|
4543
|
-
m(i,
|
|
4544
|
-
for (let
|
|
4545
|
-
n[
|
|
4546
|
-
|
|
4548
|
+
m(i, s) {
|
|
4549
|
+
for (let o = 0; o < n.length; o += 1)
|
|
4550
|
+
n[o] && n[o].m(i, s);
|
|
4551
|
+
ee(i, t, s);
|
|
4547
4552
|
},
|
|
4548
|
-
p(i,
|
|
4549
|
-
if (
|
|
4553
|
+
p(i, s) {
|
|
4554
|
+
if (s[0] & /*currency, realtimeupdate, updatedJackpotValues, formattedJackpotValues, formattedLabels, caticons*/
|
|
4550
4555
|
18182) {
|
|
4551
|
-
r =
|
|
4552
|
-
let
|
|
4553
|
-
for (
|
|
4554
|
-
const a =
|
|
4555
|
-
n[
|
|
4556
|
+
r = Wt(Array(4));
|
|
4557
|
+
let o;
|
|
4558
|
+
for (o = 0; o < r.length; o += 1) {
|
|
4559
|
+
const a = dr(i, r, o);
|
|
4560
|
+
n[o] ? n[o].p(a, s) : (n[o] = mr(a), n[o].c(), n[o].m(t.parentNode, t));
|
|
4556
4561
|
}
|
|
4557
|
-
for (;
|
|
4558
|
-
n[
|
|
4562
|
+
for (; o < n.length; o += 1)
|
|
4563
|
+
n[o].d(1);
|
|
4559
4564
|
n.length = r.length;
|
|
4560
4565
|
}
|
|
4561
4566
|
},
|
|
4562
4567
|
d(i) {
|
|
4563
|
-
i &&
|
|
4568
|
+
i && X(t), an(n, i);
|
|
4564
4569
|
}
|
|
4565
4570
|
};
|
|
4566
4571
|
}
|
|
4567
|
-
function
|
|
4568
|
-
var
|
|
4569
|
-
let t, r, n, i,
|
|
4572
|
+
function mr(e) {
|
|
4573
|
+
var y;
|
|
4574
|
+
let t, r, n, i, s, o = (
|
|
4570
4575
|
/*formattedLabels*/
|
|
4571
4576
|
e[9][
|
|
4572
4577
|
/*i*/
|
|
@@ -4582,225 +4587,225 @@ function dr(e) {
|
|
|
4582
4587
|
]
|
|
4583
4588
|
) : (
|
|
4584
4589
|
/*formattedJackpotValues*/
|
|
4585
|
-
(
|
|
4590
|
+
(y = e[8][
|
|
4586
4591
|
/*i*/
|
|
4587
4592
|
e[55]
|
|
4588
|
-
]) != null ?
|
|
4593
|
+
]) != null ? y : ""
|
|
4589
4594
|
)) + ""
|
|
4590
|
-
), f, p,
|
|
4595
|
+
), f, p, b, g;
|
|
4591
4596
|
return {
|
|
4592
4597
|
c() {
|
|
4593
|
-
t =
|
|
4598
|
+
t = m("div"), r = m("div"), n = m("ui-image"), s = m("span"), a = M(o), l = m("span"), u = m("span"), f = M(h), p = K(), b = m("span"), g = M(
|
|
4594
4599
|
/*currency*/
|
|
4595
4600
|
e[1]
|
|
4596
|
-
),
|
|
4601
|
+
), C(n, "imgClass", "displayCardIcon"), k(n.src, i = /*caticons*/
|
|
4597
4602
|
e[10][
|
|
4598
4603
|
/*i*/
|
|
4599
4604
|
e[55]
|
|
4600
|
-
]) ||
|
|
4605
|
+
]) || C(n, "src", i), C(n, "alt", ""), _(s, "class", "cardLabel"), _(r, "class", "iconWrapper"), _(u, "class", "jackpotValue"), _(b, "class", "jackpot-currency"), _(l, "class", "cardTextWrapper"), _(t, "class", "displayCard");
|
|
4601
4606
|
},
|
|
4602
|
-
m(
|
|
4603
|
-
|
|
4607
|
+
m(v, x) {
|
|
4608
|
+
ee(v, t, x), d(t, r), d(r, n), d(r, s), d(s, a), d(t, l), d(l, u), d(u, f), d(l, p), d(l, b), d(b, g);
|
|
4604
4609
|
},
|
|
4605
|
-
p(
|
|
4610
|
+
p(v, x) {
|
|
4606
4611
|
var T;
|
|
4607
|
-
|
|
4608
|
-
1024 &&
|
|
4609
|
-
|
|
4612
|
+
x[0] & /*caticons*/
|
|
4613
|
+
1024 && !k(n.src, i = /*caticons*/
|
|
4614
|
+
v[10][
|
|
4610
4615
|
/*i*/
|
|
4611
|
-
|
|
4612
|
-
]) &&
|
|
4613
|
-
512 &&
|
|
4614
|
-
|
|
4616
|
+
v[55]
|
|
4617
|
+
]) && C(n, "src", i), x[0] & /*formattedLabels*/
|
|
4618
|
+
512 && o !== (o = /*formattedLabels*/
|
|
4619
|
+
v[9][
|
|
4615
4620
|
/*i*/
|
|
4616
|
-
|
|
4617
|
-
] + "") &&
|
|
4621
|
+
v[55]
|
|
4622
|
+
] + "") && D(a, o), x[0] & /*realtimeupdate, updatedJackpotValues, formattedJackpotValues*/
|
|
4618
4623
|
16644 && h !== (h = /*realtimeupdate*/
|
|
4619
|
-
(
|
|
4624
|
+
(v[2] === "true" ? (
|
|
4620
4625
|
/*updatedJackpotValues*/
|
|
4621
|
-
|
|
4626
|
+
v[14][
|
|
4622
4627
|
/*i*/
|
|
4623
|
-
|
|
4628
|
+
v[55]
|
|
4624
4629
|
]
|
|
4625
4630
|
) : (
|
|
4626
4631
|
/*formattedJackpotValues*/
|
|
4627
|
-
(T =
|
|
4632
|
+
(T = v[8][
|
|
4628
4633
|
/*i*/
|
|
4629
|
-
|
|
4634
|
+
v[55]
|
|
4630
4635
|
]) != null ? T : ""
|
|
4631
|
-
)) + "") &&
|
|
4632
|
-
2 &&
|
|
4633
|
-
|
|
4636
|
+
)) + "") && D(f, h), x[0] & /*currency*/
|
|
4637
|
+
2 && D(
|
|
4638
|
+
g,
|
|
4634
4639
|
/*currency*/
|
|
4635
|
-
|
|
4640
|
+
v[1]
|
|
4636
4641
|
);
|
|
4637
4642
|
},
|
|
4638
|
-
d(
|
|
4639
|
-
|
|
4643
|
+
d(v) {
|
|
4644
|
+
v && X(t);
|
|
4640
4645
|
}
|
|
4641
4646
|
};
|
|
4642
4647
|
}
|
|
4643
|
-
function
|
|
4648
|
+
function Gs(e) {
|
|
4644
4649
|
let t;
|
|
4645
|
-
function r(
|
|
4650
|
+
function r(s, o) {
|
|
4646
4651
|
return (
|
|
4647
4652
|
/*hasErrors*/
|
|
4648
|
-
|
|
4653
|
+
s[13] ? Rs : (
|
|
4649
4654
|
/*isLoading*/
|
|
4650
|
-
|
|
4655
|
+
s[4] ? Ms : Ns
|
|
4651
4656
|
)
|
|
4652
4657
|
);
|
|
4653
4658
|
}
|
|
4654
4659
|
let n = r(e), i = n(e);
|
|
4655
4660
|
return {
|
|
4656
4661
|
c() {
|
|
4657
|
-
t =
|
|
4662
|
+
t = m("div"), i.c();
|
|
4658
4663
|
},
|
|
4659
|
-
m(
|
|
4660
|
-
|
|
4664
|
+
m(s, o) {
|
|
4665
|
+
ee(s, t, o), i.m(t, null), e[34](t);
|
|
4661
4666
|
},
|
|
4662
|
-
p(
|
|
4663
|
-
n === (n = r(
|
|
4667
|
+
p(s, o) {
|
|
4668
|
+
n === (n = r(s)) && i ? i.p(s, o) : (i.d(1), i = n(s), i && (i.c(), i.m(t, null)));
|
|
4664
4669
|
},
|
|
4665
|
-
i:
|
|
4666
|
-
o:
|
|
4667
|
-
d(
|
|
4668
|
-
|
|
4670
|
+
i: j,
|
|
4671
|
+
o: j,
|
|
4672
|
+
d(s) {
|
|
4673
|
+
s && X(t), i.d(), e[34](null);
|
|
4669
4674
|
}
|
|
4670
4675
|
};
|
|
4671
4676
|
}
|
|
4672
|
-
function
|
|
4673
|
-
let { visualstructure: n = "" } = t, { title: i = "" } = t, { caticon0:
|
|
4674
|
-
const
|
|
4675
|
-
fetch(
|
|
4676
|
-
Object.keys(H).forEach((
|
|
4677
|
-
|
|
4677
|
+
function js(e, t, r) {
|
|
4678
|
+
let { visualstructure: n = "" } = t, { title: i = "" } = t, { caticon0: s = "" } = t, { caticon1: o = "" } = t, { caticon2: a = "" } = t, { caticon3: l = "" } = t, { iconlabels: u = "" } = t, { backgroundsrc: h = "" } = t, { currency: f = "" } = t, { backgroundsrcmobile: p = "" } = t, { titlelogopath: b = "" } = t, { lang: g = "en" } = t, { clientstyling: y = "" } = t, { clientstylingurl: v = "" } = t, { translationurl: x = "" } = t, { endpoint: T = "" } = t, { gameid: B = "" } = t, { mbsource: U } = t, { realtimeupdate: N = "false" } = t, F = window.navigator.userAgent, z = !1, J = !1, le = "", ie = [], se = [], Ne = [], he = [], de = [], me = "", Z = "", R, Q = !0, V = !1, oe, W = null, te = [];
|
|
4679
|
+
const Me = () => {
|
|
4680
|
+
fetch(x).then((H) => H.json()).then((H) => {
|
|
4681
|
+
Object.keys(H).forEach((I) => {
|
|
4682
|
+
fr(I, H[I]);
|
|
4678
4683
|
});
|
|
4679
4684
|
}).catch((H) => {
|
|
4680
4685
|
console.log(H);
|
|
4681
4686
|
});
|
|
4682
4687
|
};
|
|
4683
|
-
Object.keys(
|
|
4684
|
-
|
|
4688
|
+
Object.keys(pr).forEach((c) => {
|
|
4689
|
+
fr(c, pr[c]);
|
|
4685
4690
|
});
|
|
4686
|
-
const
|
|
4687
|
-
var
|
|
4688
|
-
const H = (
|
|
4689
|
-
H && Object.values(H).forEach((
|
|
4690
|
-
},
|
|
4691
|
+
const Y = ["typeSpread", "typeLeft"], be = (c) => {
|
|
4692
|
+
var I;
|
|
4693
|
+
const H = (I = c == null ? void 0 : c.items[0]) == null ? void 0 : I.additionalData;
|
|
4694
|
+
H && Object.values(H).forEach((De) => ie.push(+De));
|
|
4695
|
+
}, ge = (c) => {
|
|
4691
4696
|
var H;
|
|
4692
|
-
r(7,
|
|
4693
|
-
},
|
|
4694
|
-
if (T &&
|
|
4697
|
+
r(7, le = ((H = c == null ? void 0 : c.items[0]) == null ? void 0 : H.vendorLogo) || "");
|
|
4698
|
+
}, Re = () => {
|
|
4699
|
+
if (T && g && f) {
|
|
4695
4700
|
let c = new URL(`${T}/v1/casino/jackpots`);
|
|
4696
|
-
c.searchParams.append("filter", `id=${B}`), c.searchParams.append("language",
|
|
4697
|
-
r(4,
|
|
4698
|
-
}).catch((
|
|
4699
|
-
r(13,
|
|
4701
|
+
c.searchParams.append("filter", `id=${B}`), c.searchParams.append("language", g), c.searchParams.append("additionalDataCurrency", f), fetch(c.href).then((H) => H.json().then((I) => {
|
|
4702
|
+
r(4, Q = !1), oe = I, se.includes(B) && (be(oe), ge(oe));
|
|
4703
|
+
}).catch((I) => {
|
|
4704
|
+
r(13, V = !0), r(4, Q = !1), console.error(I);
|
|
4700
4705
|
}).finally(() => {
|
|
4701
|
-
|
|
4706
|
+
Xe();
|
|
4702
4707
|
}));
|
|
4703
4708
|
}
|
|
4704
|
-
},
|
|
4705
|
-
const c =
|
|
4709
|
+
}, Xe = () => {
|
|
4710
|
+
const c = R.getRootNode().host;
|
|
4706
4711
|
c.dispatchEvent(new CustomEvent("data-loaded", { bubbles: !0, detail: { target: c } }));
|
|
4707
|
-
},
|
|
4712
|
+
}, ye = () => {
|
|
4708
4713
|
let c = new URL(`${T}/v1/casino/jackpots/config`);
|
|
4709
4714
|
fetch(c.href).then((H) => H.json()).then((H) => {
|
|
4710
|
-
r(32,
|
|
4715
|
+
r(32, se = H.egtJackpotIds.map((I) => I));
|
|
4711
4716
|
});
|
|
4712
|
-
},
|
|
4713
|
-
r(5,
|
|
4714
|
-
},
|
|
4717
|
+
}, ve = () => {
|
|
4718
|
+
r(5, z = Bs(F) && window.innerHeight / window.innerWidth > 1), r(6, J = ce()), ie.length !== 0 && r(8, Ne = ze(ie)), r(9, he = u ? u.split(",").map((c) => c.trim().toUpperCase()) : new Array(4).fill("")), Y.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 "${Y[0]}"`), r(0, n = Y[0])), r(11, me = p && z && !J ? p : h), r(12, Z = b), r(10, de = [s, o, a, l]);
|
|
4719
|
+
}, ze = (c) => c.map((H) => Intl.NumberFormat("en-US", { maximumFractionDigits: 2 }).format(H)), ce = () => {
|
|
4715
4720
|
const c = window.innerHeight / window.innerWidth;
|
|
4716
4721
|
return 0.75 < c && c < 1.6;
|
|
4717
|
-
},
|
|
4722
|
+
}, ae = () => {
|
|
4718
4723
|
window.postMessage({ type: "JackpotBannerClicked", gameid: B }, window.location.href), typeof gtag == "function" && gtag("event", "JackpotBannerClicked", {
|
|
4719
4724
|
context: "JackpotBanner",
|
|
4720
4725
|
gameId: `${B}`
|
|
4721
4726
|
});
|
|
4722
|
-
},
|
|
4723
|
-
|
|
4724
|
-
},
|
|
4727
|
+
}, q = () => {
|
|
4728
|
+
Ls(g);
|
|
4729
|
+
}, fe = (c) => {
|
|
4725
4730
|
const H = JSON.parse(c.data);
|
|
4726
4731
|
if (H.success && H.data.messageType === "UpdateEgtJackpotBalance" && H.data.jackpotAlias.split("_")[0] === B) {
|
|
4727
|
-
const
|
|
4728
|
-
r(14,
|
|
4732
|
+
const I = Number(H.data.jackpotAlias.split("_")[1]) - 1;
|
|
4733
|
+
r(14, te[I] = H.data.data[`${f}`].balance.toString(), te);
|
|
4729
4734
|
}
|
|
4730
|
-
},
|
|
4731
|
-
|
|
4735
|
+
}, _e = () => {
|
|
4736
|
+
N === "true" && (ve(), r(14, te = ["", "", "", ""]), W = new EventSource(`${T}/v1/encoder/jackpot/*/update`), W.addEventListener("message", fe));
|
|
4732
4737
|
};
|
|
4733
|
-
|
|
4734
|
-
}),
|
|
4735
|
-
|
|
4738
|
+
fn(() => () => {
|
|
4739
|
+
}), pn(() => {
|
|
4740
|
+
W && (W.removeEventListener("message", fe), W.close(), W = null);
|
|
4736
4741
|
});
|
|
4737
|
-
const
|
|
4738
|
-
function
|
|
4739
|
-
|
|
4740
|
-
|
|
4742
|
+
const xe = () => ae();
|
|
4743
|
+
function Ue(c) {
|
|
4744
|
+
vt[c ? "unshift" : "push"](() => {
|
|
4745
|
+
R = c, r(3, R);
|
|
4741
4746
|
});
|
|
4742
4747
|
}
|
|
4743
4748
|
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,
|
|
4749
|
+
"visualstructure" in c && r(0, n = c.visualstructure), "title" in c && r(16, i = c.title), "caticon0" in c && r(17, s = c.caticon0), "caticon1" in c && r(18, o = 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, b = c.titlelogopath), "lang" in c && r(25, g = c.lang), "clientstyling" in c && r(26, y = c.clientstyling), "clientstylingurl" in c && r(27, v = c.clientstylingurl), "translationurl" in c && r(28, x = c.translationurl), "endpoint" in c && r(29, T = c.endpoint), "gameid" in c && r(30, B = c.gameid), "mbsource" in c && r(31, U = c.mbsource), "realtimeupdate" in c && r(2, N = c.realtimeupdate);
|
|
4745
4750
|
}, e.$$.update = () => {
|
|
4746
4751
|
e.$$.dirty[0] & /*endpoint*/
|
|
4747
|
-
536870912 && T &&
|
|
4748
|
-
67108872 &&
|
|
4749
|
-
134217736 &&
|
|
4752
|
+
536870912 && T && ye(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4753
|
+
67108872 && y && R && Ps(R, y), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4754
|
+
134217736 && v && R && Cs(R, v), e.$$.dirty[0] & /*customStylingContainer*/
|
|
4750
4755
|
8 | e.$$.dirty[1] & /*mbsource*/
|
|
4751
|
-
1 &&
|
|
4756
|
+
1 && U && R && Os(R, `${U}.Style`), e.$$.dirty[0] & /*endpoint, lang, currency*/
|
|
4752
4757
|
570425346 | e.$$.dirty[1] & /*validGameIds*/
|
|
4753
|
-
2 && T &&
|
|
4754
|
-
33554450 && f &&
|
|
4755
|
-
33554432 &&
|
|
4756
|
-
268435456 &&
|
|
4757
|
-
4 &&
|
|
4758
|
+
2 && T && g && f && se.length > 0 && Re(), e.$$.dirty[0] & /*currency, lang, isLoading*/
|
|
4759
|
+
33554450 && f && g && !Q && ve(), e.$$.dirty[0] & /*lang*/
|
|
4760
|
+
33554432 && g && q(), e.$$.dirty[0] & /*translationurl*/
|
|
4761
|
+
268435456 && x && Me(), e.$$.dirty[0] & /*realtimeupdate*/
|
|
4762
|
+
4 && N && _e();
|
|
4758
4763
|
}, [
|
|
4759
4764
|
n,
|
|
4760
4765
|
f,
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
X,
|
|
4766
|
+
N,
|
|
4767
|
+
R,
|
|
4768
|
+
Q,
|
|
4765
4769
|
z,
|
|
4766
|
-
|
|
4767
|
-
Ie,
|
|
4770
|
+
J,
|
|
4768
4771
|
le,
|
|
4769
|
-
|
|
4772
|
+
Ne,
|
|
4773
|
+
he,
|
|
4770
4774
|
de,
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
+
me,
|
|
4776
|
+
Z,
|
|
4777
|
+
V,
|
|
4778
|
+
te,
|
|
4779
|
+
ae,
|
|
4775
4780
|
i,
|
|
4776
|
-
o,
|
|
4777
4781
|
s,
|
|
4782
|
+
o,
|
|
4778
4783
|
a,
|
|
4779
4784
|
l,
|
|
4780
4785
|
u,
|
|
4781
4786
|
h,
|
|
4782
4787
|
p,
|
|
4788
|
+
b,
|
|
4783
4789
|
g,
|
|
4784
4790
|
y,
|
|
4785
4791
|
v,
|
|
4786
|
-
|
|
4787
|
-
E,
|
|
4792
|
+
x,
|
|
4788
4793
|
T,
|
|
4789
4794
|
B,
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4795
|
+
U,
|
|
4796
|
+
se,
|
|
4797
|
+
xe,
|
|
4798
|
+
Ue
|
|
4794
4799
|
];
|
|
4795
4800
|
}
|
|
4796
|
-
class $
|
|
4801
|
+
class $s extends wn {
|
|
4797
4802
|
constructor(t) {
|
|
4798
|
-
super(),
|
|
4803
|
+
super(), Sn(
|
|
4799
4804
|
this,
|
|
4800
4805
|
t,
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4806
|
+
js,
|
|
4807
|
+
Gs,
|
|
4808
|
+
gr,
|
|
4804
4809
|
{
|
|
4805
4810
|
visualstructure: 0,
|
|
4806
4811
|
title: 16,
|
|
@@ -4822,7 +4827,7 @@ class $o extends Tn {
|
|
|
4822
4827
|
mbsource: 31,
|
|
4823
4828
|
realtimeupdate: 2
|
|
4824
4829
|
},
|
|
4825
|
-
|
|
4830
|
+
Is,
|
|
4826
4831
|
[-1, -1]
|
|
4827
4832
|
);
|
|
4828
4833
|
}
|
|
@@ -4941,7 +4946,7 @@ class $o extends Tn {
|
|
|
4941
4946
|
this.$$set({ realtimeupdate: t }), O();
|
|
4942
4947
|
}
|
|
4943
4948
|
}
|
|
4944
|
-
|
|
4949
|
+
Tn($s, { visualstructure: {}, title: {}, caticon0: {}, caticon1: {}, caticon2: {}, caticon3: {}, iconlabels: {}, backgroundsrc: {}, currency: {}, backgroundsrcmobile: {}, titlelogopath: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, endpoint: {}, gameid: {}, mbsource: {}, realtimeupdate: {} }, [], [], !0);
|
|
4945
4950
|
export {
|
|
4946
|
-
$
|
|
4951
|
+
$s as default
|
|
4947
4952
|
};
|