@everymatrix/casino-hamburger-menu-nd 1.77.25 → 1.77.26
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/{CasinoHamburgerMenuNd-CPZ5lZj_.js → CasinoHamburgerMenuNd-Ds0Y8-8w.js} +984 -1005
- package/components/CasinoHamburgerMenuNd-Dxnklwew.cjs +18 -0
- package/components/{CasinoHamburgerMenuNd-CpJQIB4x.js → CasinoHamburgerMenuNd-bMbRGmyj.js} +947 -968
- package/es2015/casino-hamburger-menu-nd.cjs +1 -1
- package/es2015/casino-hamburger-menu-nd.js +1 -1
- package/esnext/casino-hamburger-menu-nd.js +1 -1
- package/package.json +1 -1
- package/components/CasinoHamburgerMenuNd-BoTLiybF.cjs +0 -18
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function $() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Tn(e, t) {
|
|
4
4
|
for (const r in t)
|
|
5
5
|
e[r] = t[r];
|
|
6
6
|
return (
|
|
@@ -8,29 +8,29 @@ function On(e, t) {
|
|
|
8
8
|
e
|
|
9
9
|
);
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function Mr(e) {
|
|
12
12
|
return e();
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function kt() {
|
|
15
15
|
return /* @__PURE__ */ Object.create(null);
|
|
16
16
|
}
|
|
17
17
|
function ce(e) {
|
|
18
|
-
e.forEach(
|
|
18
|
+
e.forEach(Mr);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function Tt(e) {
|
|
21
21
|
return typeof e == "function";
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Ar(e, t) {
|
|
24
24
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
25
25
|
}
|
|
26
26
|
let ke;
|
|
27
|
-
function
|
|
27
|
+
function J(e, t) {
|
|
28
28
|
return e === t ? !0 : (ke || (ke = document.createElement("a")), ke.href = t, e === ke.href);
|
|
29
29
|
}
|
|
30
30
|
function Mn(e) {
|
|
31
31
|
return Object.keys(e).length === 0;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Lr(e, ...t) {
|
|
34
34
|
if (e == null) {
|
|
35
35
|
for (const n of t)
|
|
36
36
|
n(void 0);
|
|
@@ -40,18 +40,18 @@ function Pr(e, ...t) {
|
|
|
40
40
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
41
41
|
}
|
|
42
42
|
function An(e, t, r) {
|
|
43
|
-
e.$$.on_destroy.push(
|
|
43
|
+
e.$$.on_destroy.push(Lr(t, r));
|
|
44
44
|
}
|
|
45
45
|
function Ln(e, t, r, n) {
|
|
46
46
|
if (e) {
|
|
47
|
-
const i =
|
|
47
|
+
const i = Or(e, t, r, n);
|
|
48
48
|
return e[0](i);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
return e[1] && n ?
|
|
51
|
+
function Or(e, t, r, n) {
|
|
52
|
+
return e[1] && n ? Tn(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function On(e, t, r, n) {
|
|
55
55
|
if (e[2] && n) {
|
|
56
56
|
const i = e[2](n(r));
|
|
57
57
|
if (t.dirty === void 0)
|
|
@@ -68,11 +68,11 @@ function Pn(e, t, r, n) {
|
|
|
68
68
|
}
|
|
69
69
|
function Bn(e, t, r, n, i, o) {
|
|
70
70
|
if (i) {
|
|
71
|
-
const a =
|
|
71
|
+
const a = Or(t, r, n, o);
|
|
72
72
|
e.p(a, i);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function Pn(e) {
|
|
76
76
|
if (e.ctx.length > 32) {
|
|
77
77
|
const t = [], r = e.ctx.length / 32;
|
|
78
78
|
for (let n = 0; n < r; n++)
|
|
@@ -84,14 +84,14 @@ function In(e) {
|
|
|
84
84
|
function b(e, t) {
|
|
85
85
|
e.appendChild(t);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
const n =
|
|
87
|
+
function In(e, t, r) {
|
|
88
|
+
const n = Cn(e);
|
|
89
89
|
if (!n.getElementById(t)) {
|
|
90
90
|
const i = y("style");
|
|
91
|
-
i.id = t, i.textContent = r,
|
|
91
|
+
i.id = t, i.textContent = r, Nn(n, i);
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function Cn(e) {
|
|
95
95
|
if (!e)
|
|
96
96
|
return document;
|
|
97
97
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -101,27 +101,27 @@ function Nn(e) {
|
|
|
101
101
|
t
|
|
102
102
|
) : e.ownerDocument;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function Nn(e, t) {
|
|
105
105
|
return b(
|
|
106
106
|
/** @type {Document} */
|
|
107
107
|
e.head || e,
|
|
108
108
|
t
|
|
109
109
|
), t.sheet;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function P(e, t, r) {
|
|
112
112
|
e.insertBefore(t, r || null);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function B(e) {
|
|
115
115
|
e.parentNode && e.parentNode.removeChild(e);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function Ne(e, t) {
|
|
118
118
|
for (let r = 0; r < e.length; r += 1)
|
|
119
119
|
e[r] && e[r].d(t);
|
|
120
120
|
}
|
|
121
121
|
function y(e) {
|
|
122
122
|
return document.createElement(e);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function Ut(e) {
|
|
125
125
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
126
126
|
}
|
|
127
127
|
function Q(e) {
|
|
@@ -130,26 +130,26 @@ function Q(e) {
|
|
|
130
130
|
function N() {
|
|
131
131
|
return Q(" ");
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function Br() {
|
|
134
134
|
return Q("");
|
|
135
135
|
}
|
|
136
136
|
function oe(e, t, r, n) {
|
|
137
137
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function g(e, t, r) {
|
|
140
140
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function Rn(e) {
|
|
143
143
|
return Array.from(e.childNodes);
|
|
144
144
|
}
|
|
145
145
|
function ae(e, t) {
|
|
146
146
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
147
147
|
t);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function Ft(e, t) {
|
|
150
150
|
e.value = t ?? "";
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function Dt(e, t, r) {
|
|
153
153
|
for (let n = 0; n < e.options.length; n += 1) {
|
|
154
154
|
const i = e.options[n];
|
|
155
155
|
if (i.__value === t) {
|
|
@@ -159,14 +159,14 @@ function jt(e, t, r) {
|
|
|
159
159
|
}
|
|
160
160
|
(!r || t !== void 0) && (e.selectedIndex = -1);
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function kn(e) {
|
|
163
163
|
const t = e.querySelector(":checked");
|
|
164
164
|
return t && t.__value;
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function Gt(e, t, r) {
|
|
167
167
|
e.classList.toggle(t, !!r);
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function Un(e) {
|
|
170
170
|
const t = {};
|
|
171
171
|
return e.childNodes.forEach(
|
|
172
172
|
/** @param {Element} node */
|
|
@@ -175,69 +175,69 @@ function Fn(e) {
|
|
|
175
175
|
}
|
|
176
176
|
), t;
|
|
177
177
|
}
|
|
178
|
-
let
|
|
179
|
-
function
|
|
180
|
-
|
|
178
|
+
let Be;
|
|
179
|
+
function Oe(e) {
|
|
180
|
+
Be = e;
|
|
181
181
|
}
|
|
182
|
-
function
|
|
183
|
-
if (!
|
|
182
|
+
function Fn() {
|
|
183
|
+
if (!Be)
|
|
184
184
|
throw new Error("Function called outside component initialization");
|
|
185
|
-
return
|
|
185
|
+
return Be;
|
|
186
186
|
}
|
|
187
|
-
function
|
|
188
|
-
|
|
187
|
+
function Dn(e) {
|
|
188
|
+
Fn().$$.on_mount.push(e);
|
|
189
189
|
}
|
|
190
|
-
const
|
|
190
|
+
const _e = [], Ve = [];
|
|
191
191
|
let ye = [];
|
|
192
|
-
const
|
|
193
|
-
let
|
|
194
|
-
function
|
|
195
|
-
|
|
192
|
+
const jt = [], Gn = /* @__PURE__ */ Promise.resolve();
|
|
193
|
+
let ft = !1;
|
|
194
|
+
function jn() {
|
|
195
|
+
ft || (ft = !0, Gn.then(k));
|
|
196
196
|
}
|
|
197
197
|
function Xe(e) {
|
|
198
198
|
ye.push(e);
|
|
199
199
|
}
|
|
200
|
-
const
|
|
200
|
+
const it = /* @__PURE__ */ new Set();
|
|
201
201
|
let be = 0;
|
|
202
202
|
function k() {
|
|
203
203
|
if (be !== 0)
|
|
204
204
|
return;
|
|
205
|
-
const e =
|
|
205
|
+
const e = Be;
|
|
206
206
|
do {
|
|
207
207
|
try {
|
|
208
|
-
for (; be <
|
|
209
|
-
const t =
|
|
210
|
-
be++,
|
|
208
|
+
for (; be < _e.length; ) {
|
|
209
|
+
const t = _e[be];
|
|
210
|
+
be++, Oe(t), $n(t.$$);
|
|
211
211
|
}
|
|
212
212
|
} catch (t) {
|
|
213
|
-
throw
|
|
213
|
+
throw _e.length = 0, be = 0, t;
|
|
214
214
|
}
|
|
215
|
-
for (
|
|
215
|
+
for (Oe(null), _e.length = 0, be = 0; Ve.length; )
|
|
216
216
|
Ve.pop()();
|
|
217
217
|
for (let t = 0; t < ye.length; t += 1) {
|
|
218
218
|
const r = ye[t];
|
|
219
|
-
|
|
219
|
+
it.has(r) || (it.add(r), r());
|
|
220
220
|
}
|
|
221
221
|
ye.length = 0;
|
|
222
|
-
} while (
|
|
223
|
-
for (;
|
|
224
|
-
|
|
225
|
-
|
|
222
|
+
} while (_e.length);
|
|
223
|
+
for (; jt.length; )
|
|
224
|
+
jt.pop()();
|
|
225
|
+
ft = !1, it.clear(), Oe(e);
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function $n(e) {
|
|
228
228
|
if (e.fragment !== null) {
|
|
229
229
|
e.update(), ce(e.before_update);
|
|
230
230
|
const t = e.dirty;
|
|
231
231
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Xe);
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function Wn(e) {
|
|
235
235
|
const t = [], r = [];
|
|
236
236
|
ye.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ye = t;
|
|
237
237
|
}
|
|
238
238
|
const De = /* @__PURE__ */ new Set();
|
|
239
239
|
let le;
|
|
240
|
-
function
|
|
240
|
+
function Pr() {
|
|
241
241
|
le = {
|
|
242
242
|
r: 0,
|
|
243
243
|
c: [],
|
|
@@ -245,7 +245,7 @@ function Cr() {
|
|
|
245
245
|
// parent group
|
|
246
246
|
};
|
|
247
247
|
}
|
|
248
|
-
function
|
|
248
|
+
function Ir() {
|
|
249
249
|
le.r || ce(le.c), le = le.p;
|
|
250
250
|
}
|
|
251
251
|
function ue(e, t) {
|
|
@@ -261,26 +261,26 @@ function Pe(e, t, r, n) {
|
|
|
261
261
|
} else
|
|
262
262
|
n && n();
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function ee(e) {
|
|
265
265
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
266
266
|
}
|
|
267
|
-
function
|
|
267
|
+
function Vn(e, t, r) {
|
|
268
268
|
const { fragment: n, after_update: i } = e.$$;
|
|
269
269
|
n && n.m(t, r), Xe(() => {
|
|
270
|
-
const o = e.$$.on_mount.map(
|
|
270
|
+
const o = e.$$.on_mount.map(Mr).filter(Tt);
|
|
271
271
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ce(o), e.$$.on_mount = [];
|
|
272
272
|
}), i.forEach(Xe);
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function Xn(e, t) {
|
|
275
275
|
const r = e.$$;
|
|
276
|
-
r.fragment !== null && (
|
|
276
|
+
r.fragment !== null && (Wn(r.after_update), ce(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
277
277
|
}
|
|
278
|
-
function
|
|
279
|
-
e.$$.dirty[0] === -1 && (
|
|
278
|
+
function zn(e, t) {
|
|
279
|
+
e.$$.dirty[0] === -1 && (_e.push(e), jn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
280
280
|
}
|
|
281
|
-
function
|
|
282
|
-
const u =
|
|
283
|
-
|
|
281
|
+
function Zn(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
282
|
+
const u = Be;
|
|
283
|
+
Oe(e);
|
|
284
284
|
const l = e.$$ = {
|
|
285
285
|
fragment: null,
|
|
286
286
|
ctx: [],
|
|
@@ -288,7 +288,7 @@ function Qn(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
288
288
|
props: o,
|
|
289
289
|
update: $,
|
|
290
290
|
not_equal: i,
|
|
291
|
-
bound:
|
|
291
|
+
bound: kt(),
|
|
292
292
|
// lifecycle
|
|
293
293
|
on_mount: [],
|
|
294
294
|
on_destroy: [],
|
|
@@ -297,28 +297,28 @@ function Qn(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
297
297
|
after_update: [],
|
|
298
298
|
context: new Map(t.context || (u ? u.$$.context : [])),
|
|
299
299
|
// everything else
|
|
300
|
-
callbacks:
|
|
300
|
+
callbacks: kt(),
|
|
301
301
|
dirty: s,
|
|
302
302
|
skip_bound: !1,
|
|
303
303
|
root: t.target || u.$$.root
|
|
304
304
|
};
|
|
305
305
|
a && a(l.root);
|
|
306
306
|
let c = !1;
|
|
307
|
-
if (l.ctx = r ? r(e, t.props || {}, (h,
|
|
308
|
-
const
|
|
309
|
-
return l.ctx && i(l.ctx[h], l.ctx[h] =
|
|
307
|
+
if (l.ctx = r ? r(e, t.props || {}, (h, d, ...m) => {
|
|
308
|
+
const p = m.length ? m[0] : d;
|
|
309
|
+
return l.ctx && i(l.ctx[h], l.ctx[h] = p) && (!l.skip_bound && l.bound[h] && l.bound[h](p), c && zn(e, h)), d;
|
|
310
310
|
}) : [], l.update(), c = !0, ce(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
311
311
|
if (t.hydrate) {
|
|
312
|
-
const h =
|
|
313
|
-
l.fragment && l.fragment.l(h), h.forEach(
|
|
312
|
+
const h = Rn(t.target);
|
|
313
|
+
l.fragment && l.fragment.l(h), h.forEach(B);
|
|
314
314
|
} else
|
|
315
315
|
l.fragment && l.fragment.c();
|
|
316
|
-
t.intro && ue(e.$$.fragment),
|
|
316
|
+
t.intro && ue(e.$$.fragment), Vn(e, t.target, t.anchor), k();
|
|
317
317
|
}
|
|
318
|
-
|
|
318
|
+
Oe(u);
|
|
319
319
|
}
|
|
320
|
-
let
|
|
321
|
-
typeof HTMLElement == "function" && (
|
|
320
|
+
let Cr;
|
|
321
|
+
typeof HTMLElement == "function" && (Cr = class extends HTMLElement {
|
|
322
322
|
/** The Svelte component constructor */
|
|
323
323
|
$$ctor;
|
|
324
324
|
/** Slots */
|
|
@@ -360,24 +360,24 @@ typeof HTMLElement == "function" && (Rr = class extends HTMLElement {
|
|
|
360
360
|
let o;
|
|
361
361
|
return {
|
|
362
362
|
c: function() {
|
|
363
|
-
o = y("slot"), i !== "default" &&
|
|
363
|
+
o = y("slot"), i !== "default" && g(o, "name", i);
|
|
364
364
|
},
|
|
365
365
|
/**
|
|
366
366
|
* @param {HTMLElement} target
|
|
367
367
|
* @param {HTMLElement} [anchor]
|
|
368
368
|
*/
|
|
369
369
|
m: function(u, l) {
|
|
370
|
-
|
|
370
|
+
P(u, o, l);
|
|
371
371
|
},
|
|
372
372
|
d: function(u) {
|
|
373
|
-
u &&
|
|
373
|
+
u && B(o);
|
|
374
374
|
}
|
|
375
375
|
};
|
|
376
376
|
};
|
|
377
377
|
};
|
|
378
378
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
379
379
|
return;
|
|
380
|
-
const t = {}, r =
|
|
380
|
+
const t = {}, r = Un(this);
|
|
381
381
|
for (const i of this.$$s)
|
|
382
382
|
i in r && (t[i] = [e(i)]);
|
|
383
383
|
for (const i of this.attributes) {
|
|
@@ -464,8 +464,8 @@ function Ge(e, t, r, n) {
|
|
|
464
464
|
return t;
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
|
-
function
|
|
468
|
-
let a = class extends
|
|
467
|
+
function Qn(e, t, r, n, i, o) {
|
|
468
|
+
let a = class extends Cr {
|
|
469
469
|
constructor() {
|
|
470
470
|
super(e, r, i), this.$$p_d = t;
|
|
471
471
|
}
|
|
@@ -493,7 +493,7 @@ function qn(e, t, r, n, i, o) {
|
|
|
493
493
|
}), e.element = /** @type {any} */
|
|
494
494
|
a, a;
|
|
495
495
|
}
|
|
496
|
-
class
|
|
496
|
+
class qn {
|
|
497
497
|
/**
|
|
498
498
|
* ### PRIVATE API
|
|
499
499
|
*
|
|
@@ -512,7 +512,7 @@ class Yn {
|
|
|
512
512
|
$$set = void 0;
|
|
513
513
|
/** @returns {void} */
|
|
514
514
|
$destroy() {
|
|
515
|
-
|
|
515
|
+
Xn(this, 1), this.$destroy = $;
|
|
516
516
|
}
|
|
517
517
|
/**
|
|
518
518
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -521,7 +521,7 @@ class Yn {
|
|
|
521
521
|
* @returns {() => void}
|
|
522
522
|
*/
|
|
523
523
|
$on(t, r) {
|
|
524
|
-
if (!
|
|
524
|
+
if (!Tt(r))
|
|
525
525
|
return $;
|
|
526
526
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
527
527
|
return n.push(r), () => {
|
|
@@ -537,8 +537,8 @@ class Yn {
|
|
|
537
537
|
this.$$set && !Mn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
538
538
|
}
|
|
539
539
|
}
|
|
540
|
-
const
|
|
541
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
540
|
+
const Yn = "4";
|
|
541
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Yn);
|
|
542
542
|
/*! *****************************************************************************
|
|
543
543
|
Copyright (c) Microsoft Corporation.
|
|
544
544
|
|
|
@@ -553,24 +553,43 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
553
553
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
554
554
|
PERFORMANCE OF THIS SOFTWARE.
|
|
555
555
|
***************************************************************************** */
|
|
556
|
-
var
|
|
557
|
-
return
|
|
556
|
+
var dt = function(e, t) {
|
|
557
|
+
return dt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
558
558
|
r.__proto__ = n;
|
|
559
559
|
} || function(r, n) {
|
|
560
560
|
for (var i in n)
|
|
561
561
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
562
|
-
},
|
|
562
|
+
}, dt(e, t);
|
|
563
563
|
};
|
|
564
|
-
function
|
|
564
|
+
function te(e, t) {
|
|
565
565
|
if (typeof t != "function" && t !== null)
|
|
566
566
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
567
|
-
|
|
567
|
+
dt(e, t);
|
|
568
568
|
function r() {
|
|
569
569
|
this.constructor = e;
|
|
570
570
|
}
|
|
571
571
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
572
572
|
}
|
|
573
|
-
function
|
|
573
|
+
var S = function() {
|
|
574
|
+
return S = Object.assign || function(t) {
|
|
575
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
576
|
+
r = arguments[n];
|
|
577
|
+
for (var o in r)
|
|
578
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
579
|
+
}
|
|
580
|
+
return t;
|
|
581
|
+
}, S.apply(this, arguments);
|
|
582
|
+
};
|
|
583
|
+
function Jn(e, t) {
|
|
584
|
+
var r = {};
|
|
585
|
+
for (var n in e)
|
|
586
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
587
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
588
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
589
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
590
|
+
return r;
|
|
591
|
+
}
|
|
592
|
+
function gt(e) {
|
|
574
593
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
575
594
|
if (r)
|
|
576
595
|
return r.call(e);
|
|
@@ -582,7 +601,7 @@ function mt(e) {
|
|
|
582
601
|
};
|
|
583
602
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
584
603
|
}
|
|
585
|
-
function
|
|
604
|
+
function mt(e, t) {
|
|
586
605
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
587
606
|
if (!r)
|
|
588
607
|
return e;
|
|
@@ -602,22 +621,22 @@ function bt(e, t) {
|
|
|
602
621
|
}
|
|
603
622
|
return o;
|
|
604
623
|
}
|
|
605
|
-
function
|
|
606
|
-
if (arguments.length === 2)
|
|
624
|
+
function xe(e, t, r) {
|
|
625
|
+
if (r || arguments.length === 2)
|
|
607
626
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
608
627
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
609
628
|
return e.concat(o || t);
|
|
610
629
|
}
|
|
611
|
-
function
|
|
630
|
+
function K(e) {
|
|
612
631
|
return typeof e == "function";
|
|
613
632
|
}
|
|
614
|
-
function
|
|
633
|
+
function Nr(e) {
|
|
615
634
|
var t = function(n) {
|
|
616
635
|
Error.call(n), n.stack = new Error().stack;
|
|
617
636
|
}, r = e(t);
|
|
618
637
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
619
638
|
}
|
|
620
|
-
var
|
|
639
|
+
var ot = Nr(function(e) {
|
|
621
640
|
return function(r) {
|
|
622
641
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
623
642
|
` + r.map(function(n, i) {
|
|
@@ -626,13 +645,13 @@ var st = kr(function(e) {
|
|
|
626
645
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
627
646
|
};
|
|
628
647
|
});
|
|
629
|
-
function
|
|
648
|
+
function pt(e, t) {
|
|
630
649
|
if (e) {
|
|
631
650
|
var r = e.indexOf(t);
|
|
632
651
|
0 <= r && e.splice(r, 1);
|
|
633
652
|
}
|
|
634
653
|
}
|
|
635
|
-
var
|
|
654
|
+
var Qe = function() {
|
|
636
655
|
function e(t) {
|
|
637
656
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
638
657
|
}
|
|
@@ -644,12 +663,12 @@ var qe = function() {
|
|
|
644
663
|
if (a)
|
|
645
664
|
if (this._parentage = null, Array.isArray(a))
|
|
646
665
|
try {
|
|
647
|
-
for (var s =
|
|
666
|
+
for (var s = gt(a), u = s.next(); !u.done; u = s.next()) {
|
|
648
667
|
var l = u.value;
|
|
649
668
|
l.remove(this);
|
|
650
669
|
}
|
|
651
|
-
} catch (
|
|
652
|
-
t = { error:
|
|
670
|
+
} catch (v) {
|
|
671
|
+
t = { error: v };
|
|
653
672
|
} finally {
|
|
654
673
|
try {
|
|
655
674
|
u && !u.done && (r = s.return) && r.call(s);
|
|
@@ -661,29 +680,29 @@ var qe = function() {
|
|
|
661
680
|
else
|
|
662
681
|
a.remove(this);
|
|
663
682
|
var c = this.initialTeardown;
|
|
664
|
-
if (
|
|
683
|
+
if (K(c))
|
|
665
684
|
try {
|
|
666
685
|
c();
|
|
667
|
-
} catch (
|
|
668
|
-
o =
|
|
686
|
+
} catch (v) {
|
|
687
|
+
o = v instanceof ot ? v.errors : [v];
|
|
669
688
|
}
|
|
670
689
|
var h = this._finalizers;
|
|
671
690
|
if (h) {
|
|
672
691
|
this._finalizers = null;
|
|
673
692
|
try {
|
|
674
|
-
for (var
|
|
675
|
-
var
|
|
693
|
+
for (var d = gt(h), m = d.next(); !m.done; m = d.next()) {
|
|
694
|
+
var p = m.value;
|
|
676
695
|
try {
|
|
677
|
-
|
|
678
|
-
} catch (
|
|
679
|
-
o = o ?? [],
|
|
696
|
+
$t(p);
|
|
697
|
+
} catch (v) {
|
|
698
|
+
o = o ?? [], v instanceof ot ? o = xe(xe([], mt(o)), mt(v.errors)) : o.push(v);
|
|
680
699
|
}
|
|
681
700
|
}
|
|
682
|
-
} catch (
|
|
683
|
-
n = { error:
|
|
701
|
+
} catch (v) {
|
|
702
|
+
n = { error: v };
|
|
684
703
|
} finally {
|
|
685
704
|
try {
|
|
686
|
-
|
|
705
|
+
m && !m.done && (i = d.return) && i.call(d);
|
|
687
706
|
} finally {
|
|
688
707
|
if (n)
|
|
689
708
|
throw n.error;
|
|
@@ -691,13 +710,13 @@ var qe = function() {
|
|
|
691
710
|
}
|
|
692
711
|
}
|
|
693
712
|
if (o)
|
|
694
|
-
throw new
|
|
713
|
+
throw new ot(o);
|
|
695
714
|
}
|
|
696
715
|
}, e.prototype.add = function(t) {
|
|
697
716
|
var r;
|
|
698
717
|
if (t && t !== this)
|
|
699
718
|
if (this.closed)
|
|
700
|
-
|
|
719
|
+
$t(t);
|
|
701
720
|
else {
|
|
702
721
|
if (t instanceof e) {
|
|
703
722
|
if (t.closed || t._hasParent(this))
|
|
@@ -714,52 +733,56 @@ var qe = function() {
|
|
|
714
733
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
715
734
|
}, e.prototype._removeParent = function(t) {
|
|
716
735
|
var r = this._parentage;
|
|
717
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
736
|
+
r === t ? this._parentage = null : Array.isArray(r) && pt(r, t);
|
|
718
737
|
}, e.prototype.remove = function(t) {
|
|
719
738
|
var r = this._finalizers;
|
|
720
|
-
r &&
|
|
739
|
+
r && pt(r, t), t instanceof e && t._removeParent(this);
|
|
721
740
|
}, e.EMPTY = function() {
|
|
722
741
|
var t = new e();
|
|
723
742
|
return t.closed = !0, t;
|
|
724
743
|
}(), e;
|
|
725
|
-
}(),
|
|
726
|
-
function
|
|
727
|
-
return e instanceof
|
|
728
|
-
}
|
|
729
|
-
function
|
|
730
|
-
|
|
731
|
-
}
|
|
732
|
-
var
|
|
733
|
-
|
|
734
|
-
|
|
744
|
+
}(), Rr = Qe.EMPTY;
|
|
745
|
+
function kr(e) {
|
|
746
|
+
return e instanceof Qe || e && "closed" in e && K(e.remove) && K(e.add) && K(e.unsubscribe);
|
|
747
|
+
}
|
|
748
|
+
function $t(e) {
|
|
749
|
+
K(e) ? e() : e.unsubscribe();
|
|
750
|
+
}
|
|
751
|
+
var Ur = {
|
|
752
|
+
onUnhandledError: null,
|
|
753
|
+
onStoppedNotification: null,
|
|
754
|
+
Promise: void 0,
|
|
755
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
756
|
+
useDeprecatedNextContext: !1
|
|
757
|
+
}, Kn = {
|
|
735
758
|
setTimeout: function(e, t) {
|
|
736
759
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
737
760
|
r[n - 2] = arguments[n];
|
|
738
|
-
return setTimeout.apply(void 0,
|
|
761
|
+
return setTimeout.apply(void 0, xe([e, t], mt(r)));
|
|
739
762
|
},
|
|
740
763
|
clearTimeout: function(e) {
|
|
741
764
|
return clearTimeout(e);
|
|
742
765
|
},
|
|
743
766
|
delegate: void 0
|
|
744
767
|
};
|
|
745
|
-
function
|
|
746
|
-
|
|
768
|
+
function ei(e) {
|
|
769
|
+
Kn.setTimeout(function() {
|
|
747
770
|
throw e;
|
|
748
771
|
});
|
|
749
772
|
}
|
|
750
|
-
function
|
|
773
|
+
function Wt() {
|
|
751
774
|
}
|
|
752
775
|
function je(e) {
|
|
753
776
|
e();
|
|
754
777
|
}
|
|
755
|
-
var
|
|
756
|
-
|
|
778
|
+
var Fr = function(e) {
|
|
779
|
+
te(t, e);
|
|
757
780
|
function t(r) {
|
|
758
781
|
var n = e.call(this) || this;
|
|
759
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
782
|
+
return n.isStopped = !1, r ? (n.destination = r, kr(r) && r.add(n)) : n.destination = ii, n;
|
|
760
783
|
}
|
|
761
784
|
return t.create = function(r, n, i) {
|
|
762
|
-
return new
|
|
785
|
+
return new bt(r, n, i);
|
|
763
786
|
}, t.prototype.next = function(r) {
|
|
764
787
|
this.isStopped || this._next(r);
|
|
765
788
|
}, t.prototype.error = function(r) {
|
|
@@ -783,7 +806,11 @@ var Dr = function(e) {
|
|
|
783
806
|
this.unsubscribe();
|
|
784
807
|
}
|
|
785
808
|
}, t;
|
|
786
|
-
}(
|
|
809
|
+
}(Qe), ti = Function.prototype.bind;
|
|
810
|
+
function at(e, t) {
|
|
811
|
+
return ti.call(e, t);
|
|
812
|
+
}
|
|
813
|
+
var ri = function() {
|
|
787
814
|
function e(t) {
|
|
788
815
|
this.partialObserver = t;
|
|
789
816
|
}
|
|
@@ -814,29 +841,41 @@ var Dr = function(e) {
|
|
|
814
841
|
Ue(r);
|
|
815
842
|
}
|
|
816
843
|
}, e;
|
|
817
|
-
}(),
|
|
818
|
-
|
|
844
|
+
}(), bt = function(e) {
|
|
845
|
+
te(t, e);
|
|
819
846
|
function t(r, n, i) {
|
|
820
847
|
var o = e.call(this) || this, a;
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
848
|
+
if (K(r) || !r)
|
|
849
|
+
a = {
|
|
850
|
+
next: r ?? void 0,
|
|
851
|
+
error: n ?? void 0,
|
|
852
|
+
complete: i ?? void 0
|
|
853
|
+
};
|
|
854
|
+
else {
|
|
855
|
+
var s;
|
|
856
|
+
o && Ur.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
|
|
857
|
+
return o.unsubscribe();
|
|
858
|
+
}, a = {
|
|
859
|
+
next: r.next && at(r.next, s),
|
|
860
|
+
error: r.error && at(r.error, s),
|
|
861
|
+
complete: r.complete && at(r.complete, s)
|
|
862
|
+
}) : a = r;
|
|
863
|
+
}
|
|
864
|
+
return o.destination = new ri(a), o;
|
|
826
865
|
}
|
|
827
866
|
return t;
|
|
828
|
-
}(
|
|
867
|
+
}(Fr);
|
|
829
868
|
function Ue(e) {
|
|
830
|
-
|
|
869
|
+
ei(e);
|
|
831
870
|
}
|
|
832
871
|
function ni(e) {
|
|
833
872
|
throw e;
|
|
834
873
|
}
|
|
835
874
|
var ii = {
|
|
836
875
|
closed: !0,
|
|
837
|
-
next:
|
|
876
|
+
next: Wt,
|
|
838
877
|
error: ni,
|
|
839
|
-
complete:
|
|
878
|
+
complete: Wt
|
|
840
879
|
}, oi = function() {
|
|
841
880
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
842
881
|
}();
|
|
@@ -850,7 +889,7 @@ function si(e) {
|
|
|
850
889
|
}, r);
|
|
851
890
|
};
|
|
852
891
|
}
|
|
853
|
-
var
|
|
892
|
+
var Vt = function() {
|
|
854
893
|
function e(t) {
|
|
855
894
|
t && (this._subscribe = t);
|
|
856
895
|
}
|
|
@@ -858,7 +897,7 @@ var zt = function() {
|
|
|
858
897
|
var r = new e();
|
|
859
898
|
return r.source = this, r.operator = t, r;
|
|
860
899
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
861
|
-
var i = this, o = ui(t) ? t : new
|
|
900
|
+
var i = this, o = ui(t) ? t : new bt(t, r, n);
|
|
862
901
|
return je(function() {
|
|
863
902
|
var a = i, s = a.operator, u = a.source;
|
|
864
903
|
o.add(s ? s.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -871,8 +910,8 @@ var zt = function() {
|
|
|
871
910
|
}
|
|
872
911
|
}, e.prototype.forEach = function(t, r) {
|
|
873
912
|
var n = this;
|
|
874
|
-
return r =
|
|
875
|
-
var a = new
|
|
913
|
+
return r = Xt(r), new r(function(i, o) {
|
|
914
|
+
var a = new bt({
|
|
876
915
|
next: function(s) {
|
|
877
916
|
try {
|
|
878
917
|
t(s);
|
|
@@ -896,7 +935,7 @@ var zt = function() {
|
|
|
896
935
|
return si(t)(this);
|
|
897
936
|
}, e.prototype.toPromise = function(t) {
|
|
898
937
|
var r = this;
|
|
899
|
-
return t =
|
|
938
|
+
return t = Xt(t), new t(function(n, i) {
|
|
900
939
|
var o;
|
|
901
940
|
r.subscribe(function(a) {
|
|
902
941
|
return o = a;
|
|
@@ -910,28 +949,28 @@ var zt = function() {
|
|
|
910
949
|
return new e(t);
|
|
911
950
|
}, e;
|
|
912
951
|
}();
|
|
913
|
-
function
|
|
952
|
+
function Xt(e) {
|
|
914
953
|
var t;
|
|
915
|
-
return (t = e ??
|
|
954
|
+
return (t = e ?? Ur.Promise) !== null && t !== void 0 ? t : Promise;
|
|
916
955
|
}
|
|
917
956
|
function li(e) {
|
|
918
|
-
return e &&
|
|
957
|
+
return e && K(e.next) && K(e.error) && K(e.complete);
|
|
919
958
|
}
|
|
920
959
|
function ui(e) {
|
|
921
|
-
return e && e instanceof
|
|
960
|
+
return e && e instanceof Fr || li(e) && kr(e);
|
|
922
961
|
}
|
|
923
|
-
var ci =
|
|
962
|
+
var ci = Nr(function(e) {
|
|
924
963
|
return function() {
|
|
925
964
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
926
965
|
};
|
|
927
|
-
}),
|
|
928
|
-
|
|
966
|
+
}), Dr = function(e) {
|
|
967
|
+
te(t, e);
|
|
929
968
|
function t() {
|
|
930
969
|
var r = e.call(this) || this;
|
|
931
970
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
932
971
|
}
|
|
933
972
|
return t.prototype.lift = function(r) {
|
|
934
|
-
var n = new
|
|
973
|
+
var n = new zt(this, this);
|
|
935
974
|
return n.operator = r, n;
|
|
936
975
|
}, t.prototype._throwIfClosed = function() {
|
|
937
976
|
if (this.closed)
|
|
@@ -943,7 +982,7 @@ var ci = kr(function(e) {
|
|
|
943
982
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
944
983
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
945
984
|
try {
|
|
946
|
-
for (var a =
|
|
985
|
+
for (var a = gt(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
947
986
|
var u = s.value;
|
|
948
987
|
u.next(r);
|
|
949
988
|
}
|
|
@@ -992,20 +1031,20 @@ var ci = kr(function(e) {
|
|
|
992
1031
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
993
1032
|
}, t.prototype._innerSubscribe = function(r) {
|
|
994
1033
|
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
995
|
-
return o || a ?
|
|
996
|
-
n.currentObservers = null,
|
|
1034
|
+
return o || a ? Rr : (this.currentObservers = null, s.push(r), new Qe(function() {
|
|
1035
|
+
n.currentObservers = null, pt(s, r);
|
|
997
1036
|
}));
|
|
998
1037
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
999
1038
|
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
1000
1039
|
i ? r.error(o) : a && r.complete();
|
|
1001
1040
|
}, t.prototype.asObservable = function() {
|
|
1002
|
-
var r = new
|
|
1041
|
+
var r = new Vt();
|
|
1003
1042
|
return r.source = this, r;
|
|
1004
1043
|
}, t.create = function(r, n) {
|
|
1005
|
-
return new
|
|
1044
|
+
return new zt(r, n);
|
|
1006
1045
|
}, t;
|
|
1007
|
-
}(
|
|
1008
|
-
|
|
1046
|
+
}(Vt), zt = function(e) {
|
|
1047
|
+
te(t, e);
|
|
1009
1048
|
function t(r, n) {
|
|
1010
1049
|
var i = e.call(this) || this;
|
|
1011
1050
|
return i.destination = r, i.source = n, i;
|
|
@@ -1021,17 +1060,17 @@ var ci = kr(function(e) {
|
|
|
1021
1060
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1022
1061
|
}, t.prototype._subscribe = function(r) {
|
|
1023
1062
|
var n, i;
|
|
1024
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1063
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Rr;
|
|
1025
1064
|
}, t;
|
|
1026
|
-
}(
|
|
1065
|
+
}(Dr), Gr = {
|
|
1027
1066
|
now: function() {
|
|
1028
|
-
return (
|
|
1067
|
+
return (Gr.delegate || Date).now();
|
|
1029
1068
|
},
|
|
1030
1069
|
delegate: void 0
|
|
1031
1070
|
}, hi = function(e) {
|
|
1032
|
-
|
|
1071
|
+
te(t, e);
|
|
1033
1072
|
function t(r, n, i) {
|
|
1034
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1073
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Gr);
|
|
1035
1074
|
var o = e.call(this) || this;
|
|
1036
1075
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
1037
1076
|
}
|
|
@@ -1051,31 +1090,31 @@ var ci = kr(function(e) {
|
|
|
1051
1090
|
l && o.splice(0, l + 1);
|
|
1052
1091
|
}
|
|
1053
1092
|
}, t;
|
|
1054
|
-
}(
|
|
1055
|
-
const
|
|
1056
|
-
if (
|
|
1093
|
+
}(Dr);
|
|
1094
|
+
const Zt = [], Qt = {}, fi = (e, t = 0) => {
|
|
1095
|
+
if (Zt.indexOf(e) == -1) {
|
|
1057
1096
|
const r = new hi(t);
|
|
1058
|
-
|
|
1097
|
+
Qt[e] = r, Zt.push(e);
|
|
1059
1098
|
}
|
|
1060
|
-
return
|
|
1061
|
-
},
|
|
1062
|
-
function
|
|
1099
|
+
return Qt[e];
|
|
1100
|
+
}, ve = [];
|
|
1101
|
+
function di(e, t) {
|
|
1063
1102
|
return {
|
|
1064
|
-
subscribe:
|
|
1103
|
+
subscribe: qe(e, t).subscribe
|
|
1065
1104
|
};
|
|
1066
1105
|
}
|
|
1067
|
-
function
|
|
1106
|
+
function qe(e, t = $) {
|
|
1068
1107
|
let r;
|
|
1069
1108
|
const n = /* @__PURE__ */ new Set();
|
|
1070
1109
|
function i(s) {
|
|
1071
|
-
if (
|
|
1072
|
-
const u = !
|
|
1110
|
+
if (Ar(e, s) && (e = s, r)) {
|
|
1111
|
+
const u = !ve.length;
|
|
1073
1112
|
for (const l of n)
|
|
1074
|
-
l[1](),
|
|
1113
|
+
l[1](), ve.push(l, e);
|
|
1075
1114
|
if (u) {
|
|
1076
|
-
for (let l = 0; l <
|
|
1077
|
-
|
|
1078
|
-
|
|
1115
|
+
for (let l = 0; l < ve.length; l += 2)
|
|
1116
|
+
ve[l][0](ve[l + 1]);
|
|
1117
|
+
ve.length = 0;
|
|
1079
1118
|
}
|
|
1080
1119
|
}
|
|
1081
1120
|
}
|
|
@@ -1090,80 +1129,80 @@ function Ye(e, t = $) {
|
|
|
1090
1129
|
}
|
|
1091
1130
|
return { set: i, update: o, subscribe: a };
|
|
1092
1131
|
}
|
|
1093
|
-
function
|
|
1132
|
+
function Te(e, t, r) {
|
|
1094
1133
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1095
1134
|
if (!i.every(Boolean))
|
|
1096
1135
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1097
1136
|
const o = t.length < 2;
|
|
1098
|
-
return
|
|
1137
|
+
return di(r, (a, s) => {
|
|
1099
1138
|
let u = !1;
|
|
1100
1139
|
const l = [];
|
|
1101
1140
|
let c = 0, h = $;
|
|
1102
|
-
const
|
|
1141
|
+
const d = () => {
|
|
1103
1142
|
if (c)
|
|
1104
1143
|
return;
|
|
1105
1144
|
h();
|
|
1106
|
-
const
|
|
1107
|
-
o ? a(
|
|
1108
|
-
},
|
|
1109
|
-
(
|
|
1110
|
-
|
|
1145
|
+
const p = t(n ? l[0] : l, a, s);
|
|
1146
|
+
o ? a(p) : h = Tt(p) ? p : $;
|
|
1147
|
+
}, m = i.map(
|
|
1148
|
+
(p, v) => Lr(
|
|
1149
|
+
p,
|
|
1111
1150
|
(x) => {
|
|
1112
|
-
l[
|
|
1151
|
+
l[v] = x, c &= ~(1 << v), u && d();
|
|
1113
1152
|
},
|
|
1114
1153
|
() => {
|
|
1115
|
-
c |= 1 <<
|
|
1154
|
+
c |= 1 << v;
|
|
1116
1155
|
}
|
|
1117
1156
|
)
|
|
1118
1157
|
);
|
|
1119
|
-
return u = !0,
|
|
1120
|
-
ce(
|
|
1158
|
+
return u = !0, d(), function() {
|
|
1159
|
+
ce(m), h(), u = !1;
|
|
1121
1160
|
};
|
|
1122
1161
|
});
|
|
1123
1162
|
}
|
|
1124
|
-
function
|
|
1163
|
+
function gi(e) {
|
|
1125
1164
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1126
1165
|
}
|
|
1127
|
-
var
|
|
1128
|
-
return
|
|
1166
|
+
var mi = function(t) {
|
|
1167
|
+
return pi(t) && !bi(t);
|
|
1129
1168
|
};
|
|
1130
|
-
function
|
|
1169
|
+
function pi(e) {
|
|
1131
1170
|
return !!e && typeof e == "object";
|
|
1132
1171
|
}
|
|
1133
1172
|
function bi(e) {
|
|
1134
1173
|
var t = Object.prototype.toString.call(e);
|
|
1135
1174
|
return t === "[object RegExp]" || t === "[object Date]" || yi(e);
|
|
1136
1175
|
}
|
|
1137
|
-
var
|
|
1176
|
+
var vi = typeof Symbol == "function" && Symbol.for, _i = vi ? Symbol.for("react.element") : 60103;
|
|
1138
1177
|
function yi(e) {
|
|
1139
|
-
return e.$$typeof ===
|
|
1178
|
+
return e.$$typeof === _i;
|
|
1140
1179
|
}
|
|
1141
1180
|
function xi(e) {
|
|
1142
1181
|
return Array.isArray(e) ? [] : {};
|
|
1143
1182
|
}
|
|
1144
|
-
function
|
|
1145
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1183
|
+
function Ie(e, t) {
|
|
1184
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Ee(xi(e), e, t) : e;
|
|
1146
1185
|
}
|
|
1147
1186
|
function Ei(e, t, r) {
|
|
1148
1187
|
return e.concat(t).map(function(n) {
|
|
1149
|
-
return
|
|
1188
|
+
return Ie(n, r);
|
|
1150
1189
|
});
|
|
1151
1190
|
}
|
|
1152
1191
|
function wi(e, t) {
|
|
1153
1192
|
if (!t.customMerge)
|
|
1154
|
-
return
|
|
1193
|
+
return Ee;
|
|
1155
1194
|
var r = t.customMerge(e);
|
|
1156
|
-
return typeof r == "function" ? r :
|
|
1195
|
+
return typeof r == "function" ? r : Ee;
|
|
1157
1196
|
}
|
|
1158
1197
|
function Hi(e) {
|
|
1159
1198
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1160
1199
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1161
1200
|
}) : [];
|
|
1162
1201
|
}
|
|
1163
|
-
function
|
|
1202
|
+
function qt(e) {
|
|
1164
1203
|
return Object.keys(e).concat(Hi(e));
|
|
1165
1204
|
}
|
|
1166
|
-
function
|
|
1205
|
+
function jr(e, t) {
|
|
1167
1206
|
try {
|
|
1168
1207
|
return t in e;
|
|
1169
1208
|
} catch {
|
|
@@ -1171,179 +1210,129 @@ function $r(e, t) {
|
|
|
1171
1210
|
}
|
|
1172
1211
|
}
|
|
1173
1212
|
function Si(e, t) {
|
|
1174
|
-
return
|
|
1213
|
+
return jr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1175
1214
|
}
|
|
1176
1215
|
function Ti(e, t, r) {
|
|
1177
1216
|
var n = {};
|
|
1178
|
-
return r.isMergeableObject(e) &&
|
|
1179
|
-
n[i] =
|
|
1180
|
-
}),
|
|
1181
|
-
Si(e, i) || (
|
|
1217
|
+
return r.isMergeableObject(e) && qt(e).forEach(function(i) {
|
|
1218
|
+
n[i] = Ie(e[i], r);
|
|
1219
|
+
}), qt(t).forEach(function(i) {
|
|
1220
|
+
Si(e, i) || (jr(e, i) && r.isMergeableObject(t[i]) ? n[i] = wi(i, r)(e[i], t[i], r) : n[i] = Ie(t[i], r));
|
|
1182
1221
|
}), n;
|
|
1183
1222
|
}
|
|
1184
|
-
function
|
|
1185
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Ei, r.isMergeableObject = r.isMergeableObject ||
|
|
1223
|
+
function Ee(e, t, r) {
|
|
1224
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Ei, r.isMergeableObject = r.isMergeableObject || mi, r.cloneUnlessOtherwiseSpecified = Ie;
|
|
1186
1225
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1187
|
-
return o ? n ? r.arrayMerge(e, t, r) : Ti(e, t, r) :
|
|
1226
|
+
return o ? n ? r.arrayMerge(e, t, r) : Ti(e, t, r) : Ie(t, r);
|
|
1188
1227
|
}
|
|
1189
|
-
|
|
1228
|
+
Ee.all = function(t, r) {
|
|
1190
1229
|
if (!Array.isArray(t))
|
|
1191
1230
|
throw new Error("first argument should be an array");
|
|
1192
1231
|
return t.reduce(function(n, i) {
|
|
1193
|
-
return
|
|
1232
|
+
return Ee(n, i, r);
|
|
1194
1233
|
}, {});
|
|
1195
1234
|
};
|
|
1196
|
-
var
|
|
1197
|
-
const
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
r.__proto__ = n;
|
|
1201
|
-
} || function(r, n) {
|
|
1202
|
-
for (var i in n)
|
|
1203
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1204
|
-
}, xt(e, t);
|
|
1205
|
-
};
|
|
1206
|
-
function Je(e, t) {
|
|
1207
|
-
if (typeof t != "function" && t !== null)
|
|
1208
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1209
|
-
xt(e, t);
|
|
1210
|
-
function r() {
|
|
1211
|
-
this.constructor = e;
|
|
1212
|
-
}
|
|
1213
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1214
|
-
}
|
|
1215
|
-
var J = function() {
|
|
1216
|
-
return J = Object.assign || function(t) {
|
|
1217
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1218
|
-
r = arguments[n];
|
|
1219
|
-
for (var o in r)
|
|
1220
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1221
|
-
}
|
|
1222
|
-
return t;
|
|
1223
|
-
}, J.apply(this, arguments);
|
|
1224
|
-
};
|
|
1225
|
-
function Li(e, t) {
|
|
1226
|
-
var r = {};
|
|
1227
|
-
for (var n in e)
|
|
1228
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1229
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1230
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1231
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1232
|
-
return r;
|
|
1233
|
-
}
|
|
1234
|
-
function lt(e, t, r) {
|
|
1235
|
-
if (r || arguments.length === 2)
|
|
1236
|
-
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1237
|
-
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1238
|
-
return e.concat(o || Array.prototype.slice.call(t));
|
|
1239
|
-
}
|
|
1240
|
-
function ut(e, t) {
|
|
1241
|
-
var r = t && t.cache ? t.cache : ki, n = t && t.serializer ? t.serializer : Ni, i = t && t.strategy ? t.strategy : Ii;
|
|
1235
|
+
var Mi = Ee, Ai = Mi;
|
|
1236
|
+
const Li = /* @__PURE__ */ gi(Ai);
|
|
1237
|
+
function st(e, t) {
|
|
1238
|
+
var r = t && t.cache ? t.cache : Ni, n = t && t.serializer ? t.serializer : Ci, i = t && t.strategy ? t.strategy : Bi;
|
|
1242
1239
|
return i(e, {
|
|
1243
1240
|
cache: r,
|
|
1244
1241
|
serializer: n
|
|
1245
1242
|
});
|
|
1246
1243
|
}
|
|
1247
|
-
function
|
|
1244
|
+
function Oi(e) {
|
|
1248
1245
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1249
1246
|
}
|
|
1250
|
-
function
|
|
1251
|
-
var i =
|
|
1247
|
+
function $r(e, t, r, n) {
|
|
1248
|
+
var i = Oi(n) ? n : r(n), o = t.get(i);
|
|
1252
1249
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1253
1250
|
}
|
|
1254
1251
|
function Wr(e, t, r) {
|
|
1255
1252
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1256
1253
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1257
1254
|
}
|
|
1258
|
-
function
|
|
1255
|
+
function Mt(e, t, r, n, i) {
|
|
1259
1256
|
return r.bind(t, e, n, i);
|
|
1260
1257
|
}
|
|
1261
|
-
function
|
|
1262
|
-
var r = e.length === 1 ?
|
|
1263
|
-
return
|
|
1258
|
+
function Bi(e, t) {
|
|
1259
|
+
var r = e.length === 1 ? $r : Wr;
|
|
1260
|
+
return Mt(e, this, r, t.cache.create(), t.serializer);
|
|
1261
|
+
}
|
|
1262
|
+
function Pi(e, t) {
|
|
1263
|
+
return Mt(e, this, Wr, t.cache.create(), t.serializer);
|
|
1264
1264
|
}
|
|
1265
|
-
function
|
|
1266
|
-
return
|
|
1265
|
+
function Ii(e, t) {
|
|
1266
|
+
return Mt(e, this, $r, t.cache.create(), t.serializer);
|
|
1267
1267
|
}
|
|
1268
|
-
var
|
|
1268
|
+
var Ci = function() {
|
|
1269
1269
|
return JSON.stringify(arguments);
|
|
1270
|
-
}
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
}()
|
|
1282
|
-
), ki = {
|
|
1270
|
+
};
|
|
1271
|
+
function At() {
|
|
1272
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1273
|
+
}
|
|
1274
|
+
At.prototype.get = function(e) {
|
|
1275
|
+
return this.cache[e];
|
|
1276
|
+
};
|
|
1277
|
+
At.prototype.set = function(e, t) {
|
|
1278
|
+
this.cache[e] = t;
|
|
1279
|
+
};
|
|
1280
|
+
var Ni = {
|
|
1283
1281
|
create: function() {
|
|
1284
|
-
return new
|
|
1282
|
+
return new At();
|
|
1285
1283
|
}
|
|
1286
|
-
},
|
|
1287
|
-
variadic:
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1291
|
-
r = arguments[n];
|
|
1292
|
-
for (var o in r)
|
|
1293
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1294
|
-
}
|
|
1295
|
-
return t;
|
|
1296
|
-
}, ze.apply(this, arguments);
|
|
1297
|
-
};
|
|
1298
|
-
var w;
|
|
1284
|
+
}, lt = {
|
|
1285
|
+
variadic: Pi,
|
|
1286
|
+
monadic: Ii
|
|
1287
|
+
}, w;
|
|
1299
1288
|
(function(e) {
|
|
1300
1289
|
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";
|
|
1301
1290
|
})(w || (w = {}));
|
|
1302
|
-
var
|
|
1291
|
+
var L;
|
|
1303
1292
|
(function(e) {
|
|
1304
1293
|
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";
|
|
1305
|
-
})(
|
|
1306
|
-
var
|
|
1294
|
+
})(L || (L = {}));
|
|
1295
|
+
var we;
|
|
1307
1296
|
(function(e) {
|
|
1308
1297
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1309
|
-
})(
|
|
1310
|
-
function
|
|
1311
|
-
return e.type ===
|
|
1298
|
+
})(we || (we = {}));
|
|
1299
|
+
function Yt(e) {
|
|
1300
|
+
return e.type === L.literal;
|
|
1301
|
+
}
|
|
1302
|
+
function Ri(e) {
|
|
1303
|
+
return e.type === L.argument;
|
|
1312
1304
|
}
|
|
1313
|
-
function
|
|
1314
|
-
return e.type ===
|
|
1305
|
+
function Vr(e) {
|
|
1306
|
+
return e.type === L.number;
|
|
1315
1307
|
}
|
|
1316
1308
|
function Xr(e) {
|
|
1317
|
-
return e.type ===
|
|
1309
|
+
return e.type === L.date;
|
|
1318
1310
|
}
|
|
1319
1311
|
function zr(e) {
|
|
1320
|
-
return e.type ===
|
|
1312
|
+
return e.type === L.time;
|
|
1321
1313
|
}
|
|
1322
1314
|
function Zr(e) {
|
|
1323
|
-
return e.type ===
|
|
1315
|
+
return e.type === L.select;
|
|
1324
1316
|
}
|
|
1325
1317
|
function Qr(e) {
|
|
1326
|
-
return e.type ===
|
|
1318
|
+
return e.type === L.plural;
|
|
1327
1319
|
}
|
|
1328
|
-
function
|
|
1329
|
-
return e.type ===
|
|
1320
|
+
function ki(e) {
|
|
1321
|
+
return e.type === L.pound;
|
|
1330
1322
|
}
|
|
1331
|
-
function
|
|
1332
|
-
return e.type ===
|
|
1323
|
+
function qr(e) {
|
|
1324
|
+
return e.type === L.tag;
|
|
1333
1325
|
}
|
|
1334
1326
|
function Yr(e) {
|
|
1335
|
-
return e.type ===
|
|
1327
|
+
return !!(e && typeof e == "object" && e.type === we.number);
|
|
1336
1328
|
}
|
|
1337
|
-
function
|
|
1338
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1329
|
+
function vt(e) {
|
|
1330
|
+
return !!(e && typeof e == "object" && e.type === we.dateTime);
|
|
1339
1331
|
}
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
}
|
|
1343
|
-
var Kr = /[ \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;
|
|
1344
|
-
function Gi(e) {
|
|
1332
|
+
var Jr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ui = /(?:[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;
|
|
1333
|
+
function Fi(e) {
|
|
1345
1334
|
var t = {};
|
|
1346
|
-
return e.replace(
|
|
1335
|
+
return e.replace(Ui, function(r) {
|
|
1347
1336
|
var n = r.length;
|
|
1348
1337
|
switch (r[0]) {
|
|
1349
1338
|
case "G":
|
|
@@ -1432,22 +1421,12 @@ function Gi(e) {
|
|
|
1432
1421
|
return "";
|
|
1433
1422
|
}), t;
|
|
1434
1423
|
}
|
|
1435
|
-
var
|
|
1436
|
-
|
|
1437
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1438
|
-
r = arguments[n];
|
|
1439
|
-
for (var o in r)
|
|
1440
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1441
|
-
}
|
|
1442
|
-
return t;
|
|
1443
|
-
}, A.apply(this, arguments);
|
|
1444
|
-
};
|
|
1445
|
-
var ji = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1446
|
-
function $i(e) {
|
|
1424
|
+
var Di = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1425
|
+
function Gi(e) {
|
|
1447
1426
|
if (e.length === 0)
|
|
1448
1427
|
throw new Error("Number skeleton cannot be empty");
|
|
1449
|
-
for (var t = e.split(
|
|
1450
|
-
return
|
|
1428
|
+
for (var t = e.split(Di).filter(function(d) {
|
|
1429
|
+
return d.length > 0;
|
|
1451
1430
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1452
1431
|
var o = i[n], a = o.split("/");
|
|
1453
1432
|
if (a.length === 0)
|
|
@@ -1461,17 +1440,17 @@ function $i(e) {
|
|
|
1461
1440
|
}
|
|
1462
1441
|
return r;
|
|
1463
1442
|
}
|
|
1464
|
-
function
|
|
1443
|
+
function ji(e) {
|
|
1465
1444
|
return e.replace(/^(.*?)-/, "");
|
|
1466
1445
|
}
|
|
1467
|
-
var
|
|
1468
|
-
function
|
|
1446
|
+
var Jt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Kr = /^(@+)?(\+|#+)?[rs]?$/g, $i = /(\*)(0+)|(#+)(0+)|(0+)/g, en = /^(0+)$/;
|
|
1447
|
+
function Kt(e) {
|
|
1469
1448
|
var t = {};
|
|
1470
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1449
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Kr, function(r, n, i) {
|
|
1471
1450
|
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)), "";
|
|
1472
1451
|
}), t;
|
|
1473
1452
|
}
|
|
1474
|
-
function
|
|
1453
|
+
function tn(e) {
|
|
1475
1454
|
switch (e) {
|
|
1476
1455
|
case "sign-auto":
|
|
1477
1456
|
return {
|
|
@@ -1511,7 +1490,7 @@ function rn(e) {
|
|
|
1511
1490
|
};
|
|
1512
1491
|
}
|
|
1513
1492
|
}
|
|
1514
|
-
function
|
|
1493
|
+
function Wi(e) {
|
|
1515
1494
|
var t;
|
|
1516
1495
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1517
1496
|
notation: "engineering"
|
|
@@ -1519,17 +1498,17 @@ function Xi(e) {
|
|
|
1519
1498
|
notation: "scientific"
|
|
1520
1499
|
}, e = e.slice(1)), t) {
|
|
1521
1500
|
var r = e.slice(0, 2);
|
|
1522
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1501
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !en.test(e))
|
|
1523
1502
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1524
1503
|
t.minimumIntegerDigits = e.length;
|
|
1525
1504
|
}
|
|
1526
1505
|
return t;
|
|
1527
1506
|
}
|
|
1528
|
-
function
|
|
1529
|
-
var t = {}, r =
|
|
1507
|
+
function er(e) {
|
|
1508
|
+
var t = {}, r = tn(e);
|
|
1530
1509
|
return r || t;
|
|
1531
1510
|
}
|
|
1532
|
-
function
|
|
1511
|
+
function Vi(e) {
|
|
1533
1512
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1534
1513
|
var i = n[r];
|
|
1535
1514
|
switch (i.stem) {
|
|
@@ -1553,7 +1532,7 @@ function zi(e) {
|
|
|
1553
1532
|
continue;
|
|
1554
1533
|
case "measure-unit":
|
|
1555
1534
|
case "unit":
|
|
1556
|
-
t.style = "unit", t.unit =
|
|
1535
|
+
t.style = "unit", t.unit = ji(i.options[0]);
|
|
1557
1536
|
continue;
|
|
1558
1537
|
case "compact-short":
|
|
1559
1538
|
case "K":
|
|
@@ -1564,13 +1543,13 @@ function zi(e) {
|
|
|
1564
1543
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1565
1544
|
continue;
|
|
1566
1545
|
case "scientific":
|
|
1567
|
-
t =
|
|
1568
|
-
return
|
|
1546
|
+
t = S(S(S({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
|
|
1547
|
+
return S(S({}, u), er(l));
|
|
1569
1548
|
}, {}));
|
|
1570
1549
|
continue;
|
|
1571
1550
|
case "engineering":
|
|
1572
|
-
t =
|
|
1573
|
-
return
|
|
1551
|
+
t = S(S(S({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
|
|
1552
|
+
return S(S({}, u), er(l));
|
|
1574
1553
|
}, {}));
|
|
1575
1554
|
continue;
|
|
1576
1555
|
case "notation-simple":
|
|
@@ -1615,41 +1594,41 @@ function zi(e) {
|
|
|
1615
1594
|
case "integer-width":
|
|
1616
1595
|
if (i.options.length > 1)
|
|
1617
1596
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1618
|
-
i.options[0].replace(
|
|
1597
|
+
i.options[0].replace($i, function(u, l, c, h, d, m) {
|
|
1619
1598
|
if (l)
|
|
1620
1599
|
t.minimumIntegerDigits = c.length;
|
|
1621
1600
|
else {
|
|
1622
|
-
if (h &&
|
|
1601
|
+
if (h && d)
|
|
1623
1602
|
throw new Error("We currently do not support maximum integer digits");
|
|
1624
|
-
if (
|
|
1603
|
+
if (m)
|
|
1625
1604
|
throw new Error("We currently do not support exact integer digits");
|
|
1626
1605
|
}
|
|
1627
1606
|
return "";
|
|
1628
1607
|
});
|
|
1629
1608
|
continue;
|
|
1630
1609
|
}
|
|
1631
|
-
if (
|
|
1610
|
+
if (en.test(i.stem)) {
|
|
1632
1611
|
t.minimumIntegerDigits = i.stem.length;
|
|
1633
1612
|
continue;
|
|
1634
1613
|
}
|
|
1635
|
-
if (
|
|
1614
|
+
if (Jt.test(i.stem)) {
|
|
1636
1615
|
if (i.options.length > 1)
|
|
1637
1616
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1638
|
-
i.stem.replace(
|
|
1639
|
-
return c === "*" ? t.minimumFractionDigits = l.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length :
|
|
1617
|
+
i.stem.replace(Jt, function(u, l, c, h, d, m) {
|
|
1618
|
+
return c === "*" ? t.minimumFractionDigits = l.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length : d && m ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + m.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1640
1619
|
});
|
|
1641
1620
|
var o = i.options[0];
|
|
1642
|
-
o === "w" ? t =
|
|
1621
|
+
o === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = S(S({}, t), Kt(o)));
|
|
1643
1622
|
continue;
|
|
1644
1623
|
}
|
|
1645
|
-
if (
|
|
1646
|
-
t =
|
|
1624
|
+
if (Kr.test(i.stem)) {
|
|
1625
|
+
t = S(S({}, t), Kt(i.stem));
|
|
1647
1626
|
continue;
|
|
1648
1627
|
}
|
|
1649
|
-
var a =
|
|
1650
|
-
a && (t =
|
|
1651
|
-
var s =
|
|
1652
|
-
s && (t =
|
|
1628
|
+
var a = tn(i.stem);
|
|
1629
|
+
a && (t = S(S({}, t), a));
|
|
1630
|
+
var s = Wi(i.stem);
|
|
1631
|
+
s && (t = S(S({}, t), s));
|
|
1653
1632
|
}
|
|
1654
1633
|
return t;
|
|
1655
1634
|
}
|
|
@@ -3068,13 +3047,13 @@ var Fe = {
|
|
|
3068
3047
|
"h"
|
|
3069
3048
|
]
|
|
3070
3049
|
};
|
|
3071
|
-
function
|
|
3050
|
+
function Xi(e, t) {
|
|
3072
3051
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3073
3052
|
var i = e.charAt(n);
|
|
3074
3053
|
if (i === "j") {
|
|
3075
3054
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3076
3055
|
o++, n++;
|
|
3077
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), u = "a", l =
|
|
3056
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = zi(t);
|
|
3078
3057
|
for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
|
|
3079
3058
|
r += u;
|
|
3080
3059
|
for (; a-- > 0; )
|
|
@@ -3084,7 +3063,7 @@ function Zi(e, t) {
|
|
|
3084
3063
|
}
|
|
3085
3064
|
return r;
|
|
3086
3065
|
}
|
|
3087
|
-
function
|
|
3066
|
+
function zi(e) {
|
|
3088
3067
|
var t = e.hourCycle;
|
|
3089
3068
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3090
3069
|
e.hourCycles && // @ts-ignore
|
|
@@ -3106,20 +3085,20 @@ function Qi(e) {
|
|
|
3106
3085
|
var i = Fe[n || ""] || Fe[r || ""] || Fe["".concat(r, "-001")] || Fe["001"];
|
|
3107
3086
|
return i[0];
|
|
3108
3087
|
}
|
|
3109
|
-
var
|
|
3088
|
+
var ut, Zi = new RegExp("^".concat(Jr.source, "*")), Qi = new RegExp("".concat(Jr.source, "*$"));
|
|
3110
3089
|
function H(e, t) {
|
|
3111
3090
|
return { start: e, end: t };
|
|
3112
3091
|
}
|
|
3113
|
-
var
|
|
3092
|
+
var qi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Yi = !!String.fromCodePoint, Ji = !!Object.fromEntries, Ki = !!String.prototype.codePointAt, eo = !!String.prototype.trimStart, to = !!String.prototype.trimEnd, ro = !!Number.isSafeInteger, no = ro ? Number.isSafeInteger : function(e) {
|
|
3114
3093
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3115
|
-
},
|
|
3094
|
+
}, _t = !0;
|
|
3116
3095
|
try {
|
|
3117
|
-
var
|
|
3118
|
-
|
|
3096
|
+
var io = nn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3097
|
+
_t = ((ut = io.exec("a")) === null || ut === void 0 ? void 0 : ut[0]) === "a";
|
|
3119
3098
|
} catch {
|
|
3120
|
-
|
|
3099
|
+
_t = !1;
|
|
3121
3100
|
}
|
|
3122
|
-
var
|
|
3101
|
+
var tr = qi ? (
|
|
3123
3102
|
// Native
|
|
3124
3103
|
function(t, r, n) {
|
|
3125
3104
|
return t.startsWith(r, n);
|
|
@@ -3129,7 +3108,7 @@ var nr = Ji ? (
|
|
|
3129
3108
|
function(t, r, n) {
|
|
3130
3109
|
return t.slice(n, n + r.length) === r;
|
|
3131
3110
|
}
|
|
3132
|
-
),
|
|
3111
|
+
), yt = Yi ? String.fromCodePoint : (
|
|
3133
3112
|
// IE11
|
|
3134
3113
|
function() {
|
|
3135
3114
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3141,9 +3120,9 @@ var nr = Ji ? (
|
|
|
3141
3120
|
}
|
|
3142
3121
|
return n;
|
|
3143
3122
|
}
|
|
3144
|
-
),
|
|
3123
|
+
), rr = (
|
|
3145
3124
|
// native
|
|
3146
|
-
|
|
3125
|
+
Ji ? Object.fromEntries : (
|
|
3147
3126
|
// Ponyfill
|
|
3148
3127
|
function(t) {
|
|
3149
3128
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3153,7 +3132,7 @@ var nr = Ji ? (
|
|
|
3153
3132
|
return r;
|
|
3154
3133
|
}
|
|
3155
3134
|
)
|
|
3156
|
-
),
|
|
3135
|
+
), rn = Ki ? (
|
|
3157
3136
|
// Native
|
|
3158
3137
|
function(t, r) {
|
|
3159
3138
|
return t.codePointAt(r);
|
|
@@ -3167,7 +3146,7 @@ var nr = Ji ? (
|
|
|
3167
3146
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3168
3147
|
}
|
|
3169
3148
|
}
|
|
3170
|
-
),
|
|
3149
|
+
), oo = eo ? (
|
|
3171
3150
|
// Native
|
|
3172
3151
|
function(t) {
|
|
3173
3152
|
return t.trimStart();
|
|
@@ -3175,9 +3154,9 @@ var nr = Ji ? (
|
|
|
3175
3154
|
) : (
|
|
3176
3155
|
// Ponyfill
|
|
3177
3156
|
function(t) {
|
|
3178
|
-
return t.replace(
|
|
3157
|
+
return t.replace(Zi, "");
|
|
3179
3158
|
}
|
|
3180
|
-
),
|
|
3159
|
+
), ao = to ? (
|
|
3181
3160
|
// Native
|
|
3182
3161
|
function(t) {
|
|
3183
3162
|
return t.trimEnd();
|
|
@@ -3185,32 +3164,32 @@ var nr = Ji ? (
|
|
|
3185
3164
|
) : (
|
|
3186
3165
|
// Ponyfill
|
|
3187
3166
|
function(t) {
|
|
3188
|
-
return t.replace(
|
|
3167
|
+
return t.replace(Qi, "");
|
|
3189
3168
|
}
|
|
3190
3169
|
);
|
|
3191
|
-
function
|
|
3170
|
+
function nn(e, t) {
|
|
3192
3171
|
return new RegExp(e, t);
|
|
3193
3172
|
}
|
|
3194
|
-
var
|
|
3195
|
-
if (
|
|
3196
|
-
var
|
|
3197
|
-
|
|
3173
|
+
var xt;
|
|
3174
|
+
if (_t) {
|
|
3175
|
+
var nr = nn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3176
|
+
xt = function(t, r) {
|
|
3198
3177
|
var n;
|
|
3199
|
-
|
|
3200
|
-
var i =
|
|
3178
|
+
nr.lastIndex = r;
|
|
3179
|
+
var i = nr.exec(t);
|
|
3201
3180
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3202
3181
|
};
|
|
3203
3182
|
} else
|
|
3204
|
-
|
|
3183
|
+
xt = function(t, r) {
|
|
3205
3184
|
for (var n = []; ; ) {
|
|
3206
|
-
var i =
|
|
3207
|
-
if (i === void 0 ||
|
|
3185
|
+
var i = rn(t, r);
|
|
3186
|
+
if (i === void 0 || on(i) || co(i))
|
|
3208
3187
|
break;
|
|
3209
3188
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3210
3189
|
}
|
|
3211
|
-
return
|
|
3190
|
+
return yt.apply(void 0, n);
|
|
3212
3191
|
};
|
|
3213
|
-
var
|
|
3192
|
+
var so = (
|
|
3214
3193
|
/** @class */
|
|
3215
3194
|
function() {
|
|
3216
3195
|
function e(t, r) {
|
|
@@ -3234,14 +3213,14 @@ var uo = (
|
|
|
3234
3213
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3235
3214
|
var s = this.clonePosition();
|
|
3236
3215
|
this.bump(), i.push({
|
|
3237
|
-
type:
|
|
3216
|
+
type: L.pound,
|
|
3238
3217
|
location: H(s, this.clonePosition())
|
|
3239
3218
|
});
|
|
3240
3219
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3241
3220
|
if (n)
|
|
3242
3221
|
break;
|
|
3243
3222
|
return this.error(w.UNMATCHED_CLOSING_TAG, H(this.clonePosition(), this.clonePosition()));
|
|
3244
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3223
|
+
} else if (o === 60 && !this.ignoreTag && Et(this.peek() || 0)) {
|
|
3245
3224
|
var a = this.parseTag(t, r);
|
|
3246
3225
|
if (a.err)
|
|
3247
3226
|
return a;
|
|
@@ -3262,7 +3241,7 @@ var uo = (
|
|
|
3262
3241
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3263
3242
|
return {
|
|
3264
3243
|
val: {
|
|
3265
|
-
type:
|
|
3244
|
+
type: L.literal,
|
|
3266
3245
|
value: "<".concat(i, "/>"),
|
|
3267
3246
|
location: H(n, this.clonePosition())
|
|
3268
3247
|
},
|
|
@@ -3274,12 +3253,12 @@ var uo = (
|
|
|
3274
3253
|
return o;
|
|
3275
3254
|
var a = o.val, s = this.clonePosition();
|
|
3276
3255
|
if (this.bumpIf("</")) {
|
|
3277
|
-
if (this.isEOF() || !
|
|
3256
|
+
if (this.isEOF() || !Et(this.char()))
|
|
3278
3257
|
return this.error(w.INVALID_TAG, H(s, this.clonePosition()));
|
|
3279
3258
|
var u = this.clonePosition(), l = this.parseTagName();
|
|
3280
3259
|
return i !== l ? this.error(w.UNMATCHED_CLOSING_TAG, H(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3281
3260
|
val: {
|
|
3282
|
-
type:
|
|
3261
|
+
type: L.tag,
|
|
3283
3262
|
value: i,
|
|
3284
3263
|
children: a,
|
|
3285
3264
|
location: H(n, this.clonePosition())
|
|
@@ -3292,7 +3271,7 @@ var uo = (
|
|
|
3292
3271
|
return this.error(w.INVALID_TAG, H(n, this.clonePosition()));
|
|
3293
3272
|
}, e.prototype.parseTagName = function() {
|
|
3294
3273
|
var t = this.offset();
|
|
3295
|
-
for (this.bump(); !this.isEOF() &&
|
|
3274
|
+
for (this.bump(); !this.isEOF() && uo(this.char()); )
|
|
3296
3275
|
this.bump();
|
|
3297
3276
|
return this.message.slice(t, this.offset());
|
|
3298
3277
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3316,12 +3295,12 @@ var uo = (
|
|
|
3316
3295
|
}
|
|
3317
3296
|
var u = H(n, this.clonePosition());
|
|
3318
3297
|
return {
|
|
3319
|
-
val: { type:
|
|
3298
|
+
val: { type: L.literal, value: i, location: u },
|
|
3320
3299
|
err: null
|
|
3321
3300
|
};
|
|
3322
3301
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3323
3302
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3324
|
-
!
|
|
3303
|
+
!lo(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3325
3304
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3326
3305
|
if (this.isEOF() || this.char() !== 39)
|
|
3327
3306
|
return null;
|
|
@@ -3355,12 +3334,12 @@ var uo = (
|
|
|
3355
3334
|
r.push(n);
|
|
3356
3335
|
this.bump();
|
|
3357
3336
|
}
|
|
3358
|
-
return
|
|
3337
|
+
return yt.apply(void 0, r);
|
|
3359
3338
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3360
3339
|
if (this.isEOF())
|
|
3361
3340
|
return null;
|
|
3362
3341
|
var n = this.char();
|
|
3363
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3342
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), yt(n));
|
|
3364
3343
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3365
3344
|
var n = this.clonePosition();
|
|
3366
3345
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3376,7 +3355,7 @@ var uo = (
|
|
|
3376
3355
|
case 125:
|
|
3377
3356
|
return this.bump(), {
|
|
3378
3357
|
val: {
|
|
3379
|
-
type:
|
|
3358
|
+
type: L.argument,
|
|
3380
3359
|
// value does not include the opening and closing braces.
|
|
3381
3360
|
value: i,
|
|
3382
3361
|
location: H(n, this.clonePosition())
|
|
@@ -3389,7 +3368,7 @@ var uo = (
|
|
|
3389
3368
|
return this.error(w.MALFORMED_ARGUMENT, H(n, this.clonePosition()));
|
|
3390
3369
|
}
|
|
3391
3370
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3392
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3371
|
+
var t = this.clonePosition(), r = this.offset(), n = xt(this.message, r), i = r + n.length;
|
|
3393
3372
|
this.bumpTo(i);
|
|
3394
3373
|
var o = this.clonePosition(), a = H(t, o);
|
|
3395
3374
|
return { value: n, location: a };
|
|
@@ -3408,46 +3387,46 @@ var uo = (
|
|
|
3408
3387
|
var c = this.clonePosition(), h = this.parseSimpleArgStyleIfPossible();
|
|
3409
3388
|
if (h.err)
|
|
3410
3389
|
return h;
|
|
3411
|
-
var
|
|
3412
|
-
if (
|
|
3390
|
+
var d = ao(h.val);
|
|
3391
|
+
if (d.length === 0)
|
|
3413
3392
|
return this.error(w.EXPECT_ARGUMENT_STYLE, H(this.clonePosition(), this.clonePosition()));
|
|
3414
|
-
var
|
|
3415
|
-
l = { style:
|
|
3393
|
+
var m = H(c, this.clonePosition());
|
|
3394
|
+
l = { style: d, styleLocation: m };
|
|
3416
3395
|
}
|
|
3417
|
-
var
|
|
3418
|
-
if (
|
|
3419
|
-
return
|
|
3420
|
-
var
|
|
3421
|
-
if (l &&
|
|
3422
|
-
var x =
|
|
3396
|
+
var p = this.tryParseArgumentClose(i);
|
|
3397
|
+
if (p.err)
|
|
3398
|
+
return p;
|
|
3399
|
+
var v = H(i, this.clonePosition());
|
|
3400
|
+
if (l && tr(l?.style, "::", 0)) {
|
|
3401
|
+
var x = oo(l.style.slice(2));
|
|
3423
3402
|
if (s === "number") {
|
|
3424
3403
|
var h = this.parseNumberSkeletonFromString(x, l.styleLocation);
|
|
3425
3404
|
return h.err ? h : {
|
|
3426
|
-
val: { type:
|
|
3405
|
+
val: { type: L.number, value: n, location: v, style: h.val },
|
|
3427
3406
|
err: null
|
|
3428
3407
|
};
|
|
3429
3408
|
} else {
|
|
3430
3409
|
if (x.length === 0)
|
|
3431
|
-
return this.error(w.EXPECT_DATE_TIME_SKELETON,
|
|
3410
|
+
return this.error(w.EXPECT_DATE_TIME_SKELETON, v);
|
|
3432
3411
|
var E = x;
|
|
3433
|
-
this.locale && (E =
|
|
3434
|
-
var
|
|
3435
|
-
type:
|
|
3412
|
+
this.locale && (E = Xi(x, this.locale));
|
|
3413
|
+
var d = {
|
|
3414
|
+
type: we.dateTime,
|
|
3436
3415
|
pattern: E,
|
|
3437
3416
|
location: l.styleLocation,
|
|
3438
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3439
|
-
},
|
|
3417
|
+
parsedOptions: this.shouldParseSkeletons ? Fi(E) : {}
|
|
3418
|
+
}, O = s === "date" ? L.date : L.time;
|
|
3440
3419
|
return {
|
|
3441
|
-
val: { type:
|
|
3420
|
+
val: { type: O, value: n, location: v, style: d },
|
|
3442
3421
|
err: null
|
|
3443
3422
|
};
|
|
3444
3423
|
}
|
|
3445
3424
|
}
|
|
3446
3425
|
return {
|
|
3447
3426
|
val: {
|
|
3448
|
-
type: s === "number" ?
|
|
3427
|
+
type: s === "number" ? L.number : s === "date" ? L.date : L.time,
|
|
3449
3428
|
value: n,
|
|
3450
|
-
location:
|
|
3429
|
+
location: v,
|
|
3451
3430
|
style: (o = l?.style) !== null && o !== void 0 ? o : null
|
|
3452
3431
|
},
|
|
3453
3432
|
err: null
|
|
@@ -3458,7 +3437,7 @@ var uo = (
|
|
|
3458
3437
|
case "select": {
|
|
3459
3438
|
var I = this.clonePosition();
|
|
3460
3439
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3461
|
-
return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS, H(I,
|
|
3440
|
+
return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS, H(I, S({}, I)));
|
|
3462
3441
|
this.bumpSpace();
|
|
3463
3442
|
var V = this.parseIdentifierIfPossible(), j = 0;
|
|
3464
3443
|
if (s !== "select" && V.value === "offset") {
|
|
@@ -3473,23 +3452,23 @@ var uo = (
|
|
|
3473
3452
|
var X = this.tryParsePluralOrSelectOptions(t, s, r, V);
|
|
3474
3453
|
if (X.err)
|
|
3475
3454
|
return X;
|
|
3476
|
-
var
|
|
3477
|
-
if (
|
|
3478
|
-
return
|
|
3455
|
+
var p = this.tryParseArgumentClose(i);
|
|
3456
|
+
if (p.err)
|
|
3457
|
+
return p;
|
|
3479
3458
|
var z = H(i, this.clonePosition());
|
|
3480
3459
|
return s === "select" ? {
|
|
3481
3460
|
val: {
|
|
3482
|
-
type:
|
|
3461
|
+
type: L.select,
|
|
3483
3462
|
value: n,
|
|
3484
|
-
options:
|
|
3463
|
+
options: rr(X.val),
|
|
3485
3464
|
location: z
|
|
3486
3465
|
},
|
|
3487
3466
|
err: null
|
|
3488
3467
|
} : {
|
|
3489
3468
|
val: {
|
|
3490
|
-
type:
|
|
3469
|
+
type: L.plural,
|
|
3491
3470
|
value: n,
|
|
3492
|
-
options:
|
|
3471
|
+
options: rr(X.val),
|
|
3493
3472
|
offset: j,
|
|
3494
3473
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3495
3474
|
location: z
|
|
@@ -3540,16 +3519,16 @@ var uo = (
|
|
|
3540
3519
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3541
3520
|
var n = [];
|
|
3542
3521
|
try {
|
|
3543
|
-
n =
|
|
3522
|
+
n = Gi(t);
|
|
3544
3523
|
} catch {
|
|
3545
3524
|
return this.error(w.INVALID_NUMBER_SKELETON, r);
|
|
3546
3525
|
}
|
|
3547
3526
|
return {
|
|
3548
3527
|
val: {
|
|
3549
|
-
type:
|
|
3528
|
+
type: we.number,
|
|
3550
3529
|
tokens: n,
|
|
3551
3530
|
location: r,
|
|
3552
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3531
|
+
parsedOptions: this.shouldParseSkeletons ? Vi(n) : {}
|
|
3553
3532
|
},
|
|
3554
3533
|
err: null
|
|
3555
3534
|
};
|
|
@@ -3558,9 +3537,9 @@ var uo = (
|
|
|
3558
3537
|
if (l.length === 0) {
|
|
3559
3538
|
var h = this.clonePosition();
|
|
3560
3539
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3561
|
-
var
|
|
3562
|
-
if (
|
|
3563
|
-
return
|
|
3540
|
+
var d = this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_SELECTOR, w.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3541
|
+
if (d.err)
|
|
3542
|
+
return d;
|
|
3564
3543
|
c = H(h, this.clonePosition()), l = this.message.slice(h.offset, this.offset());
|
|
3565
3544
|
} else
|
|
3566
3545
|
break;
|
|
@@ -3568,20 +3547,20 @@ var uo = (
|
|
|
3568
3547
|
if (u.has(l))
|
|
3569
3548
|
return this.error(r === "select" ? w.DUPLICATE_SELECT_ARGUMENT_SELECTOR : w.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
|
|
3570
3549
|
l === "other" && (a = !0), this.bumpSpace();
|
|
3571
|
-
var
|
|
3550
|
+
var m = this.clonePosition();
|
|
3572
3551
|
if (!this.bumpIf("{"))
|
|
3573
3552
|
return this.error(r === "select" ? w.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : w.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, H(this.clonePosition(), this.clonePosition()));
|
|
3574
|
-
var
|
|
3575
|
-
if (
|
|
3576
|
-
return
|
|
3577
|
-
var
|
|
3578
|
-
if (
|
|
3579
|
-
return
|
|
3553
|
+
var p = this.parseMessage(t + 1, r, n);
|
|
3554
|
+
if (p.err)
|
|
3555
|
+
return p;
|
|
3556
|
+
var v = this.tryParseArgumentClose(m);
|
|
3557
|
+
if (v.err)
|
|
3558
|
+
return v;
|
|
3580
3559
|
s.push([
|
|
3581
3560
|
l,
|
|
3582
3561
|
{
|
|
3583
|
-
value:
|
|
3584
|
-
location: H(
|
|
3562
|
+
value: p.val,
|
|
3563
|
+
location: H(m, this.clonePosition())
|
|
3585
3564
|
}
|
|
3586
3565
|
]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, c = o.location;
|
|
3587
3566
|
}
|
|
@@ -3597,7 +3576,7 @@ var uo = (
|
|
|
3597
3576
|
break;
|
|
3598
3577
|
}
|
|
3599
3578
|
var u = H(i, this.clonePosition());
|
|
3600
|
-
return o ? (a *= n,
|
|
3579
|
+
return o ? (a *= n, no(a) ? { val: a, err: null } : this.error(r, u)) : this.error(t, u);
|
|
3601
3580
|
}, e.prototype.offset = function() {
|
|
3602
3581
|
return this.position.offset;
|
|
3603
3582
|
}, e.prototype.isEOF = function() {
|
|
@@ -3612,7 +3591,7 @@ var uo = (
|
|
|
3612
3591
|
var t = this.position.offset;
|
|
3613
3592
|
if (t >= this.message.length)
|
|
3614
3593
|
throw Error("out of bound");
|
|
3615
|
-
var r =
|
|
3594
|
+
var r = rn(this.message, t);
|
|
3616
3595
|
if (r === void 0)
|
|
3617
3596
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3618
3597
|
return r;
|
|
@@ -3631,7 +3610,7 @@ var uo = (
|
|
|
3631
3610
|
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);
|
|
3632
3611
|
}
|
|
3633
3612
|
}, e.prototype.bumpIf = function(t) {
|
|
3634
|
-
if (
|
|
3613
|
+
if (tr(this.message, t, this.offset())) {
|
|
3635
3614
|
for (var r = 0; r < t.length; r++)
|
|
3636
3615
|
this.bump();
|
|
3637
3616
|
return !0;
|
|
@@ -3653,7 +3632,7 @@ var uo = (
|
|
|
3653
3632
|
break;
|
|
3654
3633
|
}
|
|
3655
3634
|
}, e.prototype.bumpSpace = function() {
|
|
3656
|
-
for (; !this.isEOF() &&
|
|
3635
|
+
for (; !this.isEOF() && on(this.char()); )
|
|
3657
3636
|
this.bump();
|
|
3658
3637
|
}, e.prototype.peek = function() {
|
|
3659
3638
|
if (this.isEOF())
|
|
@@ -3663,47 +3642,47 @@ var uo = (
|
|
|
3663
3642
|
}, e;
|
|
3664
3643
|
}()
|
|
3665
3644
|
);
|
|
3666
|
-
function
|
|
3645
|
+
function Et(e) {
|
|
3667
3646
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3668
3647
|
}
|
|
3669
|
-
function
|
|
3670
|
-
return
|
|
3648
|
+
function lo(e) {
|
|
3649
|
+
return Et(e) || e === 47;
|
|
3671
3650
|
}
|
|
3672
|
-
function
|
|
3651
|
+
function uo(e) {
|
|
3673
3652
|
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;
|
|
3674
3653
|
}
|
|
3675
|
-
function
|
|
3654
|
+
function on(e) {
|
|
3676
3655
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3677
3656
|
}
|
|
3678
|
-
function
|
|
3657
|
+
function co(e) {
|
|
3679
3658
|
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;
|
|
3680
3659
|
}
|
|
3681
|
-
function
|
|
3660
|
+
function wt(e) {
|
|
3682
3661
|
e.forEach(function(t) {
|
|
3683
|
-
if (delete t.location,
|
|
3662
|
+
if (delete t.location, Zr(t) || Qr(t))
|
|
3684
3663
|
for (var r in t.options)
|
|
3685
|
-
delete t.options[r].location,
|
|
3664
|
+
delete t.options[r].location, wt(t.options[r].value);
|
|
3686
3665
|
else
|
|
3687
|
-
|
|
3666
|
+
Vr(t) && Yr(t.style) || (Xr(t) || zr(t)) && vt(t.style) ? delete t.style.location : qr(t) && wt(t.children);
|
|
3688
3667
|
});
|
|
3689
3668
|
}
|
|
3690
|
-
function
|
|
3691
|
-
t === void 0 && (t = {}), t =
|
|
3692
|
-
var r = new
|
|
3669
|
+
function ho(e, t) {
|
|
3670
|
+
t === void 0 && (t = {}), t = S({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3671
|
+
var r = new so(e, t).parse();
|
|
3693
3672
|
if (r.err) {
|
|
3694
3673
|
var n = SyntaxError(w[r.err.kind]);
|
|
3695
3674
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3696
3675
|
}
|
|
3697
|
-
return t?.captureLocation ||
|
|
3676
|
+
return t?.captureLocation || wt(r.val), r.val;
|
|
3698
3677
|
}
|
|
3699
|
-
var
|
|
3678
|
+
var He;
|
|
3700
3679
|
(function(e) {
|
|
3701
3680
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3702
|
-
})(
|
|
3703
|
-
var
|
|
3681
|
+
})(He || (He = {}));
|
|
3682
|
+
var Ye = (
|
|
3704
3683
|
/** @class */
|
|
3705
3684
|
function(e) {
|
|
3706
|
-
|
|
3685
|
+
te(t, e);
|
|
3707
3686
|
function t(r, n, i) {
|
|
3708
3687
|
var o = e.call(this, r) || this;
|
|
3709
3688
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3712,48 +3691,48 @@ var Ke = (
|
|
|
3712
3691
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3713
3692
|
}, t;
|
|
3714
3693
|
}(Error)
|
|
3715
|
-
),
|
|
3694
|
+
), ir = (
|
|
3716
3695
|
/** @class */
|
|
3717
3696
|
function(e) {
|
|
3718
|
-
|
|
3697
|
+
te(t, e);
|
|
3719
3698
|
function t(r, n, i, o) {
|
|
3720
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3699
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), He.INVALID_VALUE, o) || this;
|
|
3721
3700
|
}
|
|
3722
3701
|
return t;
|
|
3723
|
-
}(
|
|
3724
|
-
),
|
|
3702
|
+
}(Ye)
|
|
3703
|
+
), fo = (
|
|
3725
3704
|
/** @class */
|
|
3726
3705
|
function(e) {
|
|
3727
|
-
|
|
3706
|
+
te(t, e);
|
|
3728
3707
|
function t(r, n, i) {
|
|
3729
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3708
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), He.INVALID_VALUE, i) || this;
|
|
3730
3709
|
}
|
|
3731
3710
|
return t;
|
|
3732
|
-
}(
|
|
3733
|
-
),
|
|
3711
|
+
}(Ye)
|
|
3712
|
+
), go = (
|
|
3734
3713
|
/** @class */
|
|
3735
3714
|
function(e) {
|
|
3736
|
-
|
|
3715
|
+
te(t, e);
|
|
3737
3716
|
function t(r, n) {
|
|
3738
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3717
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), He.MISSING_VALUE, n) || this;
|
|
3739
3718
|
}
|
|
3740
3719
|
return t;
|
|
3741
|
-
}(
|
|
3720
|
+
}(Ye)
|
|
3742
3721
|
), F;
|
|
3743
3722
|
(function(e) {
|
|
3744
3723
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3745
3724
|
})(F || (F = {}));
|
|
3746
|
-
function
|
|
3725
|
+
function mo(e) {
|
|
3747
3726
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3748
3727
|
var n = t[t.length - 1];
|
|
3749
3728
|
return !n || n.type !== F.literal || r.type !== F.literal ? t.push(r) : n.value += r.value, t;
|
|
3750
3729
|
}, []);
|
|
3751
3730
|
}
|
|
3752
|
-
function
|
|
3731
|
+
function po(e) {
|
|
3753
3732
|
return typeof e == "function";
|
|
3754
3733
|
}
|
|
3755
3734
|
function $e(e, t, r, n, i, o, a) {
|
|
3756
|
-
if (e.length === 1 &&
|
|
3735
|
+
if (e.length === 1 && Yt(e[0]))
|
|
3757
3736
|
return [
|
|
3758
3737
|
{
|
|
3759
3738
|
type: F.literal,
|
|
@@ -3762,14 +3741,14 @@ function $e(e, t, r, n, i, o, a) {
|
|
|
3762
3741
|
];
|
|
3763
3742
|
for (var s = [], u = 0, l = e; u < l.length; u++) {
|
|
3764
3743
|
var c = l[u];
|
|
3765
|
-
if (
|
|
3744
|
+
if (Yt(c)) {
|
|
3766
3745
|
s.push({
|
|
3767
3746
|
type: F.literal,
|
|
3768
3747
|
value: c.value
|
|
3769
3748
|
});
|
|
3770
3749
|
continue;
|
|
3771
3750
|
}
|
|
3772
|
-
if (
|
|
3751
|
+
if (ki(c)) {
|
|
3773
3752
|
typeof o == "number" && s.push({
|
|
3774
3753
|
type: F.literal,
|
|
3775
3754
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3778,89 +3757,89 @@ function $e(e, t, r, n, i, o, a) {
|
|
|
3778
3757
|
}
|
|
3779
3758
|
var h = c.value;
|
|
3780
3759
|
if (!(i && h in i))
|
|
3781
|
-
throw new
|
|
3782
|
-
var
|
|
3783
|
-
if (
|
|
3784
|
-
(!
|
|
3785
|
-
type: typeof
|
|
3786
|
-
value:
|
|
3760
|
+
throw new go(h, a);
|
|
3761
|
+
var d = i[h];
|
|
3762
|
+
if (Ri(c)) {
|
|
3763
|
+
(!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), s.push({
|
|
3764
|
+
type: typeof d == "string" ? F.literal : F.object,
|
|
3765
|
+
value: d
|
|
3787
3766
|
});
|
|
3788
3767
|
continue;
|
|
3789
3768
|
}
|
|
3790
|
-
if (
|
|
3791
|
-
var
|
|
3769
|
+
if (Xr(c)) {
|
|
3770
|
+
var m = typeof c.style == "string" ? n.date[c.style] : vt(c.style) ? c.style.parsedOptions : void 0;
|
|
3792
3771
|
s.push({
|
|
3793
3772
|
type: F.literal,
|
|
3794
|
-
value: r.getDateTimeFormat(t,
|
|
3773
|
+
value: r.getDateTimeFormat(t, m).format(d)
|
|
3795
3774
|
});
|
|
3796
3775
|
continue;
|
|
3797
3776
|
}
|
|
3798
|
-
if (
|
|
3799
|
-
var
|
|
3777
|
+
if (zr(c)) {
|
|
3778
|
+
var m = typeof c.style == "string" ? n.time[c.style] : vt(c.style) ? c.style.parsedOptions : n.time.medium;
|
|
3800
3779
|
s.push({
|
|
3801
3780
|
type: F.literal,
|
|
3802
|
-
value: r.getDateTimeFormat(t,
|
|
3781
|
+
value: r.getDateTimeFormat(t, m).format(d)
|
|
3803
3782
|
});
|
|
3804
3783
|
continue;
|
|
3805
3784
|
}
|
|
3806
|
-
if (
|
|
3807
|
-
var
|
|
3808
|
-
|
|
3785
|
+
if (Vr(c)) {
|
|
3786
|
+
var m = typeof c.style == "string" ? n.number[c.style] : Yr(c.style) ? c.style.parsedOptions : void 0;
|
|
3787
|
+
m && m.scale && (d = d * (m.scale || 1)), s.push({
|
|
3809
3788
|
type: F.literal,
|
|
3810
|
-
value: r.getNumberFormat(t,
|
|
3789
|
+
value: r.getNumberFormat(t, m).format(d)
|
|
3811
3790
|
});
|
|
3812
3791
|
continue;
|
|
3813
3792
|
}
|
|
3814
|
-
if (
|
|
3815
|
-
var
|
|
3816
|
-
if (!
|
|
3817
|
-
throw new
|
|
3818
|
-
var E = $e(
|
|
3793
|
+
if (qr(c)) {
|
|
3794
|
+
var p = c.children, v = c.value, x = i[v];
|
|
3795
|
+
if (!po(x))
|
|
3796
|
+
throw new fo(v, "function", a);
|
|
3797
|
+
var E = $e(p, t, r, n, i, o), O = x(E.map(function(j) {
|
|
3819
3798
|
return j.value;
|
|
3820
3799
|
}));
|
|
3821
|
-
Array.isArray(
|
|
3800
|
+
Array.isArray(O) || (O = [O]), s.push.apply(s, O.map(function(j) {
|
|
3822
3801
|
return {
|
|
3823
3802
|
type: typeof j == "string" ? F.literal : F.object,
|
|
3824
3803
|
value: j
|
|
3825
3804
|
};
|
|
3826
3805
|
}));
|
|
3827
3806
|
}
|
|
3828
|
-
if (
|
|
3829
|
-
var I = c.options[
|
|
3807
|
+
if (Zr(c)) {
|
|
3808
|
+
var I = c.options[d] || c.options.other;
|
|
3830
3809
|
if (!I)
|
|
3831
|
-
throw new
|
|
3810
|
+
throw new ir(c.value, d, Object.keys(c.options), a);
|
|
3832
3811
|
s.push.apply(s, $e(I.value, t, r, n, i));
|
|
3833
3812
|
continue;
|
|
3834
3813
|
}
|
|
3835
|
-
if (
|
|
3836
|
-
var I = c.options["=".concat(
|
|
3814
|
+
if (Qr(c)) {
|
|
3815
|
+
var I = c.options["=".concat(d)];
|
|
3837
3816
|
if (!I) {
|
|
3838
3817
|
if (!Intl.PluralRules)
|
|
3839
|
-
throw new
|
|
3818
|
+
throw new Ye(`Intl.PluralRules is not available in this environment.
|
|
3840
3819
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3841
|
-
`,
|
|
3842
|
-
var V = r.getPluralRules(t, { type: c.pluralType }).select(
|
|
3820
|
+
`, He.MISSING_INTL_API, a);
|
|
3821
|
+
var V = r.getPluralRules(t, { type: c.pluralType }).select(d - (c.offset || 0));
|
|
3843
3822
|
I = c.options[V] || c.options.other;
|
|
3844
3823
|
}
|
|
3845
3824
|
if (!I)
|
|
3846
|
-
throw new
|
|
3847
|
-
s.push.apply(s, $e(I.value, t, r, n, i,
|
|
3825
|
+
throw new ir(c.value, d, Object.keys(c.options), a);
|
|
3826
|
+
s.push.apply(s, $e(I.value, t, r, n, i, d - (c.offset || 0)));
|
|
3848
3827
|
continue;
|
|
3849
3828
|
}
|
|
3850
3829
|
}
|
|
3851
|
-
return
|
|
3830
|
+
return mo(s);
|
|
3852
3831
|
}
|
|
3853
|
-
function
|
|
3854
|
-
return t ?
|
|
3855
|
-
return r[n] =
|
|
3832
|
+
function bo(e, t) {
|
|
3833
|
+
return t ? S(S(S({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3834
|
+
return r[n] = S(S({}, e[n]), t[n] || {}), r;
|
|
3856
3835
|
}, {})) : e;
|
|
3857
3836
|
}
|
|
3858
|
-
function
|
|
3837
|
+
function vo(e, t) {
|
|
3859
3838
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3860
|
-
return r[n] =
|
|
3861
|
-
},
|
|
3839
|
+
return r[n] = bo(e[n], t[n]), r;
|
|
3840
|
+
}, S({}, e)) : e;
|
|
3862
3841
|
}
|
|
3863
|
-
function
|
|
3842
|
+
function ct(e) {
|
|
3864
3843
|
return {
|
|
3865
3844
|
create: function() {
|
|
3866
3845
|
return {
|
|
@@ -3874,39 +3853,39 @@ function ft(e) {
|
|
|
3874
3853
|
}
|
|
3875
3854
|
};
|
|
3876
3855
|
}
|
|
3877
|
-
function
|
|
3856
|
+
function _o(e) {
|
|
3878
3857
|
return e === void 0 && (e = {
|
|
3879
3858
|
number: {},
|
|
3880
3859
|
dateTime: {},
|
|
3881
3860
|
pluralRules: {}
|
|
3882
3861
|
}), {
|
|
3883
|
-
getNumberFormat:
|
|
3862
|
+
getNumberFormat: st(function() {
|
|
3884
3863
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3885
3864
|
r[n] = arguments[n];
|
|
3886
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3865
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, xe([void 0], r, !1)))();
|
|
3887
3866
|
}, {
|
|
3888
|
-
cache:
|
|
3889
|
-
strategy:
|
|
3867
|
+
cache: ct(e.number),
|
|
3868
|
+
strategy: lt.variadic
|
|
3890
3869
|
}),
|
|
3891
|
-
getDateTimeFormat:
|
|
3870
|
+
getDateTimeFormat: st(function() {
|
|
3892
3871
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3893
3872
|
r[n] = arguments[n];
|
|
3894
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3873
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, xe([void 0], r, !1)))();
|
|
3895
3874
|
}, {
|
|
3896
|
-
cache:
|
|
3897
|
-
strategy:
|
|
3875
|
+
cache: ct(e.dateTime),
|
|
3876
|
+
strategy: lt.variadic
|
|
3898
3877
|
}),
|
|
3899
|
-
getPluralRules:
|
|
3878
|
+
getPluralRules: st(function() {
|
|
3900
3879
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3901
3880
|
r[n] = arguments[n];
|
|
3902
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3881
|
+
return new ((t = Intl.PluralRules).bind.apply(t, xe([void 0], r, !1)))();
|
|
3903
3882
|
}, {
|
|
3904
|
-
cache:
|
|
3905
|
-
strategy:
|
|
3883
|
+
cache: ct(e.pluralRules),
|
|
3884
|
+
strategy: lt.variadic
|
|
3906
3885
|
})
|
|
3907
3886
|
};
|
|
3908
3887
|
}
|
|
3909
|
-
var
|
|
3888
|
+
var yo = (
|
|
3910
3889
|
/** @class */
|
|
3911
3890
|
function() {
|
|
3912
3891
|
function e(t, r, n, i) {
|
|
@@ -3920,8 +3899,8 @@ var Eo = (
|
|
|
3920
3899
|
var l = o.formatToParts(u);
|
|
3921
3900
|
if (l.length === 1)
|
|
3922
3901
|
return l[0].value;
|
|
3923
|
-
var c = l.reduce(function(h,
|
|
3924
|
-
return !h.length ||
|
|
3902
|
+
var c = l.reduce(function(h, d) {
|
|
3903
|
+
return !h.length || d.type !== F.literal || typeof h[h.length - 1] != "string" ? h.push(d.value) : h[h.length - 1] += d.value, h;
|
|
3925
3904
|
}, []);
|
|
3926
3905
|
return c.length <= 1 ? c[0] || "" : c;
|
|
3927
3906
|
}, this.formatToParts = function(u) {
|
|
@@ -3938,13 +3917,13 @@ var Eo = (
|
|
|
3938
3917
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3939
3918
|
var a = i || {};
|
|
3940
3919
|
a.formatters;
|
|
3941
|
-
var s =
|
|
3942
|
-
this.ast = e.__parse(t,
|
|
3920
|
+
var s = Jn(a, ["formatters"]);
|
|
3921
|
+
this.ast = e.__parse(t, S(S({}, s), { locale: this.resolvedLocale }));
|
|
3943
3922
|
} else
|
|
3944
3923
|
this.ast = t;
|
|
3945
3924
|
if (!Array.isArray(this.ast))
|
|
3946
3925
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3947
|
-
this.formats =
|
|
3926
|
+
this.formats = vo(e.formats, n), this.formatters = i && i.formatters || _o(this.formatterCache);
|
|
3948
3927
|
}
|
|
3949
3928
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3950
3929
|
get: function() {
|
|
@@ -3957,7 +3936,7 @@ var Eo = (
|
|
|
3957
3936
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3958
3937
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3959
3938
|
}
|
|
3960
|
-
}, e.__parse =
|
|
3939
|
+
}, e.__parse = ho, e.formats = {
|
|
3961
3940
|
number: {
|
|
3962
3941
|
integer: {
|
|
3963
3942
|
maximumFractionDigits: 0
|
|
@@ -4018,7 +3997,7 @@ var Eo = (
|
|
|
4018
3997
|
}, e;
|
|
4019
3998
|
}()
|
|
4020
3999
|
);
|
|
4021
|
-
function
|
|
4000
|
+
function xo(e, t) {
|
|
4022
4001
|
if (t == null)
|
|
4023
4002
|
return;
|
|
4024
4003
|
if (t in e)
|
|
@@ -4039,92 +4018,92 @@ function wo(e, t) {
|
|
|
4039
4018
|
n = void 0;
|
|
4040
4019
|
return n;
|
|
4041
4020
|
}
|
|
4042
|
-
const ie = {},
|
|
4021
|
+
const ie = {}, Eo = (e, t, r) => r && (t in ie || (ie[t] = {}), e in ie[t] || (ie[t][e] = r), r), an = (e, t) => {
|
|
4043
4022
|
if (t == null)
|
|
4044
4023
|
return;
|
|
4045
4024
|
if (t in ie && e in ie[t])
|
|
4046
4025
|
return ie[t][e];
|
|
4047
|
-
const r =
|
|
4026
|
+
const r = Je(t);
|
|
4048
4027
|
for (let n = 0; n < r.length; n++) {
|
|
4049
|
-
const i = r[n], o =
|
|
4028
|
+
const i = r[n], o = Ho(i, e);
|
|
4050
4029
|
if (o)
|
|
4051
|
-
return
|
|
4030
|
+
return Eo(e, t, o);
|
|
4052
4031
|
}
|
|
4053
4032
|
};
|
|
4054
|
-
let
|
|
4055
|
-
const Re =
|
|
4056
|
-
function
|
|
4057
|
-
return
|
|
4033
|
+
let Lt;
|
|
4034
|
+
const Re = qe({});
|
|
4035
|
+
function wo(e) {
|
|
4036
|
+
return Lt[e] || null;
|
|
4058
4037
|
}
|
|
4059
|
-
function
|
|
4060
|
-
return e in
|
|
4038
|
+
function sn(e) {
|
|
4039
|
+
return e in Lt;
|
|
4061
4040
|
}
|
|
4062
|
-
function
|
|
4063
|
-
if (!
|
|
4041
|
+
function Ho(e, t) {
|
|
4042
|
+
if (!sn(e))
|
|
4064
4043
|
return null;
|
|
4065
|
-
const r =
|
|
4066
|
-
return
|
|
4044
|
+
const r = wo(e);
|
|
4045
|
+
return xo(r, t);
|
|
4067
4046
|
}
|
|
4068
|
-
function
|
|
4047
|
+
function So(e) {
|
|
4069
4048
|
if (e == null)
|
|
4070
4049
|
return;
|
|
4071
|
-
const t =
|
|
4050
|
+
const t = Je(e);
|
|
4072
4051
|
for (let r = 0; r < t.length; r++) {
|
|
4073
4052
|
const n = t[r];
|
|
4074
|
-
if (
|
|
4053
|
+
if (sn(n))
|
|
4075
4054
|
return n;
|
|
4076
4055
|
}
|
|
4077
4056
|
}
|
|
4078
|
-
function
|
|
4079
|
-
delete ie[e], Re.update((r) => (r[e] =
|
|
4057
|
+
function ln(e, ...t) {
|
|
4058
|
+
delete ie[e], Re.update((r) => (r[e] = Li.all([r[e] || {}, ...t]), r));
|
|
4080
4059
|
}
|
|
4081
|
-
|
|
4060
|
+
Te(
|
|
4082
4061
|
[Re],
|
|
4083
4062
|
([e]) => Object.keys(e)
|
|
4084
4063
|
);
|
|
4085
|
-
Re.subscribe((e) =>
|
|
4064
|
+
Re.subscribe((e) => Lt = e);
|
|
4086
4065
|
const We = {};
|
|
4087
|
-
function
|
|
4066
|
+
function To(e, t) {
|
|
4088
4067
|
We[e].delete(t), We[e].size === 0 && delete We[e];
|
|
4089
4068
|
}
|
|
4090
|
-
function
|
|
4069
|
+
function un(e) {
|
|
4091
4070
|
return We[e];
|
|
4092
4071
|
}
|
|
4093
|
-
function
|
|
4094
|
-
return
|
|
4095
|
-
const r =
|
|
4072
|
+
function Mo(e) {
|
|
4073
|
+
return Je(e).map((t) => {
|
|
4074
|
+
const r = un(t);
|
|
4096
4075
|
return [t, r ? [...r] : []];
|
|
4097
4076
|
}).filter(([, t]) => t.length > 0);
|
|
4098
4077
|
}
|
|
4099
|
-
function
|
|
4100
|
-
return e == null ? !1 :
|
|
4078
|
+
function Ht(e) {
|
|
4079
|
+
return e == null ? !1 : Je(e).some(
|
|
4101
4080
|
(t) => {
|
|
4102
4081
|
var r;
|
|
4103
|
-
return (r =
|
|
4082
|
+
return (r = un(t)) == null ? void 0 : r.size;
|
|
4104
4083
|
}
|
|
4105
4084
|
);
|
|
4106
4085
|
}
|
|
4107
|
-
function
|
|
4086
|
+
function Ao(e, t) {
|
|
4108
4087
|
return Promise.all(
|
|
4109
|
-
t.map((n) => (
|
|
4110
|
-
).then((n) =>
|
|
4111
|
-
}
|
|
4112
|
-
const
|
|
4113
|
-
function
|
|
4114
|
-
if (!
|
|
4115
|
-
return e in
|
|
4116
|
-
const t =
|
|
4117
|
-
return
|
|
4088
|
+
t.map((n) => (To(e, n), n().then((i) => i.default || i)))
|
|
4089
|
+
).then((n) => ln(e, ...n));
|
|
4090
|
+
}
|
|
4091
|
+
const Le = {};
|
|
4092
|
+
function cn(e) {
|
|
4093
|
+
if (!Ht(e))
|
|
4094
|
+
return e in Le ? Le[e] : Promise.resolve();
|
|
4095
|
+
const t = Mo(e);
|
|
4096
|
+
return Le[e] = Promise.all(
|
|
4118
4097
|
t.map(
|
|
4119
|
-
([r, n]) =>
|
|
4098
|
+
([r, n]) => Ao(r, n)
|
|
4120
4099
|
)
|
|
4121
4100
|
).then(() => {
|
|
4122
|
-
if (
|
|
4123
|
-
return
|
|
4124
|
-
delete
|
|
4125
|
-
}),
|
|
4101
|
+
if (Ht(e))
|
|
4102
|
+
return cn(e);
|
|
4103
|
+
delete Le[e];
|
|
4104
|
+
}), Le[e];
|
|
4126
4105
|
}
|
|
4127
|
-
const
|
|
4106
|
+
const Lo = {
|
|
4128
4107
|
number: {
|
|
4129
4108
|
scientific: { notation: "scientific" },
|
|
4130
4109
|
engineering: { notation: "engineering" },
|
|
@@ -4153,135 +4132,135 @@ const Po = {
|
|
|
4153
4132
|
timeZoneName: "short"
|
|
4154
4133
|
}
|
|
4155
4134
|
}
|
|
4156
|
-
},
|
|
4135
|
+
}, Oo = {
|
|
4157
4136
|
fallbackLocale: null,
|
|
4158
4137
|
loadingDelay: 200,
|
|
4159
|
-
formats:
|
|
4138
|
+
formats: Lo,
|
|
4160
4139
|
warnOnMissingMessages: !0,
|
|
4161
4140
|
handleMissingMessage: void 0,
|
|
4162
4141
|
ignoreTag: !0
|
|
4163
|
-
},
|
|
4164
|
-
function
|
|
4165
|
-
return
|
|
4142
|
+
}, Bo = Oo;
|
|
4143
|
+
function Se() {
|
|
4144
|
+
return Bo;
|
|
4166
4145
|
}
|
|
4167
|
-
const
|
|
4168
|
-
var
|
|
4146
|
+
const ht = qe(!1);
|
|
4147
|
+
var Po = Object.defineProperty, Io = Object.defineProperties, Co = Object.getOwnPropertyDescriptors, or = Object.getOwnPropertySymbols, No = Object.prototype.hasOwnProperty, Ro = Object.prototype.propertyIsEnumerable, ar = (e, t, r) => t in e ? Po(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ko = (e, t) => {
|
|
4169
4148
|
for (var r in t || (t = {}))
|
|
4170
|
-
|
|
4171
|
-
if (
|
|
4172
|
-
for (var r of
|
|
4173
|
-
|
|
4149
|
+
No.call(t, r) && ar(e, r, t[r]);
|
|
4150
|
+
if (or)
|
|
4151
|
+
for (var r of or(t))
|
|
4152
|
+
Ro.call(t, r) && ar(e, r, t[r]);
|
|
4174
4153
|
return e;
|
|
4175
|
-
},
|
|
4176
|
-
let
|
|
4177
|
-
const
|
|
4178
|
-
function
|
|
4154
|
+
}, Uo = (e, t) => Io(e, Co(t));
|
|
4155
|
+
let St;
|
|
4156
|
+
const ze = qe(null);
|
|
4157
|
+
function sr(e) {
|
|
4179
4158
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4180
4159
|
}
|
|
4181
|
-
function
|
|
4182
|
-
const r =
|
|
4183
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4160
|
+
function Je(e, t = Se().fallbackLocale) {
|
|
4161
|
+
const r = sr(e);
|
|
4162
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...sr(t)])] : r;
|
|
4184
4163
|
}
|
|
4185
4164
|
function he() {
|
|
4186
|
-
return
|
|
4165
|
+
return St ?? void 0;
|
|
4187
4166
|
}
|
|
4188
|
-
|
|
4189
|
-
|
|
4167
|
+
ze.subscribe((e) => {
|
|
4168
|
+
St = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4190
4169
|
});
|
|
4191
|
-
const
|
|
4192
|
-
if (e &&
|
|
4193
|
-
const { loadingDelay: t } =
|
|
4170
|
+
const Fo = (e) => {
|
|
4171
|
+
if (e && So(e) && Ht(e)) {
|
|
4172
|
+
const { loadingDelay: t } = Se();
|
|
4194
4173
|
let r;
|
|
4195
4174
|
return typeof window < "u" && he() != null && t ? r = window.setTimeout(
|
|
4196
|
-
() =>
|
|
4175
|
+
() => ht.set(!0),
|
|
4197
4176
|
t
|
|
4198
|
-
) :
|
|
4199
|
-
|
|
4177
|
+
) : ht.set(!0), cn(e).then(() => {
|
|
4178
|
+
ze.set(e);
|
|
4200
4179
|
}).finally(() => {
|
|
4201
|
-
clearTimeout(r),
|
|
4180
|
+
clearTimeout(r), ht.set(!1);
|
|
4202
4181
|
});
|
|
4203
4182
|
}
|
|
4204
|
-
return
|
|
4205
|
-
},
|
|
4206
|
-
set:
|
|
4207
|
-
}),
|
|
4183
|
+
return ze.set(e);
|
|
4184
|
+
}, Me = Uo(ko({}, ze), {
|
|
4185
|
+
set: Fo
|
|
4186
|
+
}), Ke = (e) => {
|
|
4208
4187
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4209
4188
|
return (n) => {
|
|
4210
4189
|
const i = JSON.stringify(n);
|
|
4211
4190
|
return i in t ? t[i] : t[i] = e(n);
|
|
4212
4191
|
};
|
|
4213
4192
|
};
|
|
4214
|
-
var
|
|
4193
|
+
var Do = Object.defineProperty, Ze = Object.getOwnPropertySymbols, hn = Object.prototype.hasOwnProperty, fn = Object.prototype.propertyIsEnumerable, lr = (e, t, r) => t in e ? Do(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ot = (e, t) => {
|
|
4215
4194
|
for (var r in t || (t = {}))
|
|
4216
|
-
|
|
4217
|
-
if (
|
|
4218
|
-
for (var r of
|
|
4219
|
-
|
|
4195
|
+
hn.call(t, r) && lr(e, r, t[r]);
|
|
4196
|
+
if (Ze)
|
|
4197
|
+
for (var r of Ze(t))
|
|
4198
|
+
fn.call(t, r) && lr(e, r, t[r]);
|
|
4220
4199
|
return e;
|
|
4221
|
-
},
|
|
4200
|
+
}, Ae = (e, t) => {
|
|
4222
4201
|
var r = {};
|
|
4223
4202
|
for (var n in e)
|
|
4224
|
-
|
|
4225
|
-
if (e != null &&
|
|
4226
|
-
for (var n of
|
|
4227
|
-
t.indexOf(n) < 0 &&
|
|
4203
|
+
hn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4204
|
+
if (e != null && Ze)
|
|
4205
|
+
for (var n of Ze(e))
|
|
4206
|
+
t.indexOf(n) < 0 && fn.call(e, n) && (r[n] = e[n]);
|
|
4228
4207
|
return r;
|
|
4229
4208
|
};
|
|
4230
|
-
const
|
|
4231
|
-
const { formats: r } =
|
|
4209
|
+
const Ce = (e, t) => {
|
|
4210
|
+
const { formats: r } = Se();
|
|
4232
4211
|
if (e in r && t in r[e])
|
|
4233
4212
|
return r[e][t];
|
|
4234
4213
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4235
|
-
},
|
|
4214
|
+
}, Go = Ke(
|
|
4236
4215
|
(e) => {
|
|
4237
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4216
|
+
var t = e, { locale: r, format: n } = t, i = Ae(t, ["locale", "format"]);
|
|
4238
4217
|
if (r == null)
|
|
4239
4218
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4240
|
-
return n && (i =
|
|
4219
|
+
return n && (i = Ce("number", n)), new Intl.NumberFormat(r, i);
|
|
4241
4220
|
}
|
|
4242
|
-
),
|
|
4221
|
+
), jo = Ke(
|
|
4243
4222
|
(e) => {
|
|
4244
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4223
|
+
var t = e, { locale: r, format: n } = t, i = Ae(t, ["locale", "format"]);
|
|
4245
4224
|
if (r == null)
|
|
4246
4225
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4247
|
-
return n ? i =
|
|
4226
|
+
return n ? i = Ce("date", n) : Object.keys(i).length === 0 && (i = Ce("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4248
4227
|
}
|
|
4249
|
-
),
|
|
4228
|
+
), $o = Ke(
|
|
4250
4229
|
(e) => {
|
|
4251
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4230
|
+
var t = e, { locale: r, format: n } = t, i = Ae(t, ["locale", "format"]);
|
|
4252
4231
|
if (r == null)
|
|
4253
4232
|
throw new Error(
|
|
4254
4233
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4255
4234
|
);
|
|
4256
|
-
return n ? i =
|
|
4235
|
+
return n ? i = Ce("time", n) : Object.keys(i).length === 0 && (i = Ce("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4257
4236
|
}
|
|
4258
|
-
),
|
|
4237
|
+
), Wo = (e = {}) => {
|
|
4259
4238
|
var t = e, {
|
|
4260
4239
|
locale: r = he()
|
|
4261
|
-
} = t, n =
|
|
4240
|
+
} = t, n = Ae(t, [
|
|
4262
4241
|
"locale"
|
|
4263
4242
|
]);
|
|
4264
|
-
return
|
|
4265
|
-
},
|
|
4243
|
+
return Go(Ot({ locale: r }, n));
|
|
4244
|
+
}, Vo = (e = {}) => {
|
|
4266
4245
|
var t = e, {
|
|
4267
4246
|
locale: r = he()
|
|
4268
|
-
} = t, n =
|
|
4247
|
+
} = t, n = Ae(t, [
|
|
4269
4248
|
"locale"
|
|
4270
4249
|
]);
|
|
4271
|
-
return
|
|
4272
|
-
},
|
|
4250
|
+
return jo(Ot({ locale: r }, n));
|
|
4251
|
+
}, Xo = (e = {}) => {
|
|
4273
4252
|
var t = e, {
|
|
4274
4253
|
locale: r = he()
|
|
4275
|
-
} = t, n =
|
|
4254
|
+
} = t, n = Ae(t, [
|
|
4276
4255
|
"locale"
|
|
4277
4256
|
]);
|
|
4278
|
-
return
|
|
4279
|
-
},
|
|
4257
|
+
return $o(Ot({ locale: r }, n));
|
|
4258
|
+
}, zo = Ke(
|
|
4280
4259
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4281
|
-
(e, t = he()) => new
|
|
4282
|
-
ignoreTag:
|
|
4260
|
+
(e, t = he()) => new yo(e, t, Se().formats, {
|
|
4261
|
+
ignoreTag: Se().ignoreTag
|
|
4283
4262
|
})
|
|
4284
|
-
),
|
|
4263
|
+
), Zo = (e, t = {}) => {
|
|
4285
4264
|
var r, n, i, o;
|
|
4286
4265
|
let a = t;
|
|
4287
4266
|
typeof e == "object" && (a = e, e = a.id);
|
|
@@ -4294,9 +4273,9 @@ const Ie = (e, t) => {
|
|
|
4294
4273
|
throw new Error(
|
|
4295
4274
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4296
4275
|
);
|
|
4297
|
-
let c =
|
|
4276
|
+
let c = an(e, u);
|
|
4298
4277
|
if (!c)
|
|
4299
|
-
c = (o = (i = (n = (r =
|
|
4278
|
+
c = (o = (i = (n = (r = Se()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
4300
4279
|
else if (typeof c != "string")
|
|
4301
4280
|
return console.warn(
|
|
4302
4281
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4305,28 +4284,28 @@ const Ie = (e, t) => {
|
|
|
4305
4284
|
return c;
|
|
4306
4285
|
let h = c;
|
|
4307
4286
|
try {
|
|
4308
|
-
h =
|
|
4309
|
-
} catch (
|
|
4310
|
-
|
|
4287
|
+
h = zo(c, u).format(s);
|
|
4288
|
+
} catch (d) {
|
|
4289
|
+
d instanceof Error && console.warn(
|
|
4311
4290
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4312
|
-
|
|
4291
|
+
d.message
|
|
4313
4292
|
);
|
|
4314
4293
|
}
|
|
4315
4294
|
return h;
|
|
4316
|
-
},
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4295
|
+
}, Qo = (e, t) => Xo(t).format(e), qo = (e, t) => Vo(t).format(e), Yo = (e, t) => Wo(t).format(e), Jo = (e, t = he()) => an(e, t), Ko = Te([Me, Re], () => Zo);
|
|
4296
|
+
Te([Me], () => Qo);
|
|
4297
|
+
Te([Me], () => qo);
|
|
4298
|
+
Te([Me], () => Yo);
|
|
4299
|
+
Te([Me, Re], () => Jo);
|
|
4321
4300
|
window.emWidgets = { topic: fi };
|
|
4322
|
-
const
|
|
4323
|
-
function
|
|
4301
|
+
const ur = (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)), ea = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4302
|
+
function ta(e, t) {
|
|
4324
4303
|
if (e) {
|
|
4325
4304
|
const r = document.createElement("style");
|
|
4326
4305
|
r.innerHTML = t, e.appendChild(r);
|
|
4327
4306
|
}
|
|
4328
4307
|
}
|
|
4329
|
-
function
|
|
4308
|
+
function ra(e, t) {
|
|
4330
4309
|
const r = new URL(t);
|
|
4331
4310
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4332
4311
|
const i = document.createElement("style");
|
|
@@ -4335,7 +4314,7 @@ function ia(e, t) {
|
|
|
4335
4314
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4336
4315
|
});
|
|
4337
4316
|
}
|
|
4338
|
-
function
|
|
4317
|
+
function na(e, t, r) {
|
|
4339
4318
|
if (window.emMessageBus) {
|
|
4340
4319
|
const n = document.createElement("style");
|
|
4341
4320
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4343,13 +4322,13 @@ function oa(e, t, r) {
|
|
|
4343
4322
|
});
|
|
4344
4323
|
}
|
|
4345
4324
|
}
|
|
4346
|
-
function
|
|
4347
|
-
|
|
4325
|
+
function cr(e, t) {
|
|
4326
|
+
ln(e, t);
|
|
4348
4327
|
}
|
|
4349
|
-
function
|
|
4350
|
-
|
|
4328
|
+
function ia(e) {
|
|
4329
|
+
Me.set(e);
|
|
4351
4330
|
}
|
|
4352
|
-
const
|
|
4331
|
+
const hr = {
|
|
4353
4332
|
en: {
|
|
4354
4333
|
language: "Select Language"
|
|
4355
4334
|
},
|
|
@@ -4384,136 +4363,136 @@ const gr = {
|
|
|
4384
4363
|
language: "Select Language"
|
|
4385
4364
|
}
|
|
4386
4365
|
};
|
|
4387
|
-
function
|
|
4388
|
-
|
|
4366
|
+
function oa(e) {
|
|
4367
|
+
In(e, "svelte-oktqut", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.Skeleton{animation:skeleton-loading 0.6s linear infinite alternate}@keyframes skeleton-loading{0%{background:linear-gradient(0deg, rgba(35, 178, 78, 0.2) 0%, rgba(0, 61, 93, 0.2) 100%)}12%{background:linear-gradient(0deg, rgba(35, 178, 78, 0.225) 0%, rgba(0, 61, 93, 0.225) 100%)}25%{background:linear-gradient(0deg, rgba(35, 178, 78, 0.25) 0%, rgba(0, 61, 93, 0.25) 100%)}33%{background:linear-gradient(0deg, rgba(35, 178, 78, 0.275) 0%, rgba(0, 61, 93, 0.275) 100%)}50%{background:linear-gradient(0deg, rgba(35, 178, 78, 0.3) 0%, rgba(0, 61, 93, 0.3) 100%)}63%{background:linear-gradient(0deg, rgba(35, 178, 78, 0.325) 0%, rgba(0, 61, 93, 0.325) 100%)}75%{background:linear-gradient(0deg, rgba(35, 178, 78, 0.35) 0%, rgba(0, 61, 93, 0.35) 100%)}88%{background:linear-gradient(0deg, rgba(35, 178, 78, 0.375) 0%, rgba(0, 61, 93, 0.375) 100%)}100%{background:linear-gradient(0deg, rgba(35, 178, 78, 0.4) 0%, rgba(0, 61, 93, 0.4) 100%)}}@keyframes increaseTransparency{0%{opacity:0}25%{opacity:0.25}75%{opacity:0.75}100%{opacity:1}}@keyframes decreaseTransparency{100%{opacity:1}75%{opacity:0.75}25%{opacity:0.25}0%{opacity:0}}@keyframes growWidthPercent{from{transform:scaleX(0)}to{transform:scaleX(1)}}@keyframes growWidth{from{transform:translateY(0)}to{transform:translateY(0)}}@keyframes decreaseWidth{from{transform:translateX(1)}to{transform:translateX(0)}}.NavIcon{width:30px;height:28px;position:relative;margin:3px auto;transform:rotate(0deg);transition:transform 0.2s ease-in-out;cursor:pointer}.NavIcon span{display:block;position:absolute;height:3px;width:100%;background:#ffffff;border-radius:9px;opacity:1;left:0;transform:rotate(0deg);transition:transform 0.2s ease-in-out, opacity 0.2s ease-in-out}.NavIcon span:nth-child(1){top:0px;width:80%}.NavIcon span:nth-child(2){top:9px}.NavIcon span:nth-child(3){top:18px}.NavIcon.Open span:nth-child(1){top:9px;width:100%;transform:rotate(135deg);transition:transform 0.3s ease-in-out}.NavIcon.Open span:nth-child(2){opacity:0;left:-60px}.NavIcon.Open span:nth-child(3){top:9px;transform:rotate(-135deg);transition:transform 0.3s ease-in-out}.SelectedOption{display:flex;align-items:center;justify-content:center}.SelectedOption .TriangleActive,.SelectedOption .TriangleInactive{display:block;margin:0 0 0 10px;transform:rotateX(0deg);transition:transform 0.2s ease-in-out}.SelectedOption .TriangleActive svg,.SelectedOption .TriangleInactive svg{margin:-2px 0px;fill:white}.SelectedOption .TriangleActive{transform:rotateX(180deg);transition:transform 0.2s ease-in-out}.SelectedOption .TriangleActive:hover{transform:rotateX(180deg);transition:transform 0.2s ease-in-out}.FlagIcon>img{width:20px;height:14px;margin-right:8px;border-radius:2px}.LanguageSelector{padding:5px 0;margin-bottom:0;display:flex;justify-content:space-between;background:linear-gradient(90deg, rgba(35, 178, 78, 0.9) 0%, rgba(0, 61, 93, 0.9) 100%);transition:transform 0.2s linear;height:44px}.LanguageSelector span{display:inline;color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));opacity:0.8;padding:5px 0;display:flex;align-items:center;gap:15px;font-size:14px}.LanguageSelector:active{transition:all 0.2s ease}.LanguageSelector:active span{transition:all 0.1s linear;opacity:1}.LanguageSelector.Open{box-shadow:inset 0 -3.25em 0 0 var(--emw--color-primary)}.LanguageSelector .LanguageSelectorTitle{margin:0 20px}.LanguageSelector .LanguageDropdown{margin-right:16px;display:inline-block}.LanguageSelector .OptionList{position:absolute;background:linear-gradient(90deg, rgba(35, 178, 78, 0.1) 0%, rgba(0, 61, 93, 0.1) 100%);min-width:180px;z-index:1;overflow-y:auto;display:flex;flex-direction:column-reverse;bottom:44px;left:0;gap:5px;padding-bottom:5px;width:100%;height:0px;transition:transform 0.2s linear}.LanguageSelector .OptionList.Open{transition:transform 0.2s linear;height:auto;background-color:var(--emw--color-background-secondary, #000000);overflow:auto}.LanguageSelector .OptionList .LanguageOption{display:flex;border:2px solid #22B04E;border-radius:13px;align-items:center;opacity:0.2;height:0px;background:linear-gradient(90deg, rgba(35, 178, 78, 0.2) 0%, rgba(0, 61, 93, 0.2) 100%);margin:0 5px;transition:transform 0.3s linear}.LanguageSelector .OptionList .LanguageOption.Open{height:50px;opacity:1;padding:10px 5px}.LanguageSelector .OptionList .LanguageOption:active,.LanguageSelector .OptionList .LanguageOption:hover{background:linear-gradient(90deg, rgb(35, 178, 78) 0%, rgb(0, 61, 93) 100%);transform:scale(1.03);transition:transform 0.2s ease-in-out}.LanguageSelector .OptionList .LanguageOption:active span,.LanguageSelector .OptionList .LanguageOption:hover span{color:black}.ItemLanguage{height:34px;width:100%;text-align:left;line-height:34px;background:transparent;color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));border:none}.ItemLanguage option{color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.HamburgerModalWindow{display:flex;align-items:flex-start;position:fixed;width:100%;height:100%;z-index:100;z-index:999999;top:0;left:0;background-color:rgba(0, 0, 0, 0.85);animation:increaseTransparency 0.2s ease-in forwards}.HamburgerModalWindow>span{opacity:0}.HamburgerModalWindow .HamburgerModalContainer{max-width:992px;position:relative;background:var(--emw--color-primary);display:flex;flex-direction:column;justify-content:space-between;height:100%;padding:0;border-top:0;border-radius:0;overflow-x:hidden;overflow-y:scroll}.HamburgerModalWindow .HamburgerModalContainer.ActiveHamburgerMenu{animation:growWidth 0.2s forwards;transform-origin:left;will-change:transform}.HamburgerModalWindow .HamburgerModalContainer.Closing{animation:decreaseWidth 0.2s backwards;transform-origin:right;animation-fill-mode:backwards;will-change:transform}.HamburgerModalWindow .HamburgerModalContainer .Separator{width:100%;height:5px;background:rgb(0, 0, 0);background:linear-gradient(90deg, rgb(13, 78, 2) 0%, rgb(35, 172, 77) 50%, rgb(13, 78, 2) 100%);z-index:3}.HamburgerModalWindow .HamburgerModalContainer .HamburgerHeader{display:none}.HamburgerModalWindow .HamburgerModalContainer .HamburgerHeader .Logo{max-width:90%}.HamburgerModalWindow .HamburgerModalContainer .HamburgerHeader .UserProfileWrapper{appearance:none;-webkit-appearance:none;background:none;border:0;padding:0;margin:0;font:inherit;color:inherit;text-align:inherit;display:flex;align-items:center;gap:0.5rem;cursor:pointer;text-decoration:none;width:100%}.HamburgerModalWindow .ModalCloseBtn{position:relative;top:25px;width:30px;height:30px;opacity:1;margin-left:7px;margin-right:9px;cursor:pointer}.HamburgerModalWindow .ModalCloseBtn .NavIcon .Open{width:90vw}.HamburgerModalWindow .ModalCloseBtn svg{width:20px;height:20px;padding:2px}.HamburgerModalWindow .HamburgerPrimaryMenu,.HamburgerModalWindow .HamburgerSecondaryMenu{font-size:12px;display:flex;color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));transform-origin:left;transform:scaleX(0);animation:growWidthPercent 0.2s both;animation-delay:0.1s}.HamburgerModalWindow .HamburgerPrimaryMenu li,.HamburgerModalWindow .HamburgerSecondaryMenu li{transition:transform 150ms ease-in-out, opacity 150ms ease-in-out}.HamburgerModalWindow .HamburgerPrimaryMenu img,.HamburgerModalWindow .HamburgerSecondaryMenu img{max-width:40px}.HamburgerModalWindow .HamburgerPrimaryMenu{background:var(--emw--header-color-menu-bg, var(--emw--color-background-secondary, #000000));white-space:nowrap;overflow-x:scroll;list-style:none;width:90vw;text-transform:uppercase;font-size:11px;transition:all 0.2s;height:80px}.HamburgerModalWindow .HamburgerPrimaryMenu>li{max-width:125px;padding:14px 25px;display:inline-block}.HamburgerModalWindow .HamburgerPrimaryMenu>li .ItemButton{appearance:none;-webkit-appearance:none;background:none;border:0;padding:0;margin:0;font:inherit;color:inherit;text-align:inherit;display:block;width:100%;cursor:pointer}.HamburgerModalWindow .HamburgerPrimaryMenu>li:active{transform:scale(1.1)}.HamburgerModalWindow .HamburgerPrimaryMenu>li.ActiveItem{background:var(--emw--header-color-primary, var(--emw--color-primary, #22B04F));color:black}.HamburgerModalWindow .HamburgerPrimaryMenu .Loading{width:150px;height:86px;margin:0 2px}.HamburgerModalWindow .HamburgerPrimaryMenu .HamburgerItemContainer{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:14px}.HamburgerModalWindow .HamburgerPrimaryMenu .HamburgerItemContainer .HamburgerItemTag{display:none;font-size:10px;padding:2px 4px}.HamburgerModalWindow .HamburgerSecondaryMenu{margin-top:10px;list-style:none;height:calc(100% - 124px);overflow:auto;width:90vw;display:flex;flex-direction:column}.HamburgerModalWindow .HamburgerSecondaryMenu.Overlay{opacity:0.5;transition:opacity 0.2s ease-in-out}.HamburgerModalWindow .HamburgerSecondaryMenu li{padding:10px;display:flex;align-items:center;gap:15px;transition:transform 0.2s linear}.HamburgerModalWindow .HamburgerSecondaryMenu li:active{background-color:var(--emw--color-primary);transform:scale(1.1)}.HamburgerModalWindow .HamburgerSecondaryMenu li a{text-decoration:none;display:flex;align-items:center;gap:15px;color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));font-size:14px}.HamburgerModalWindow .HamburgerSecondaryMenu li:not(:last-child){border-bottom:1px solid var(--emw--color-gray-300, #58586B)}.HamburgerModalWindow .HamburgerSecondaryMenu li:active a{color:var(--emw--color-primary, #22B04F)}.FlagIcon{margin-left:12px}.NoFlag{width:88%;margin:0 20px}");
|
|
4389
4368
|
}
|
|
4390
|
-
function
|
|
4369
|
+
function fr(e, t, r) {
|
|
4391
4370
|
const n = e.slice();
|
|
4392
4371
|
return n[68] = t[r], n;
|
|
4393
4372
|
}
|
|
4394
|
-
function
|
|
4373
|
+
function dr(e, t, r) {
|
|
4395
4374
|
const n = e.slice();
|
|
4396
4375
|
return n[3] = t[r], n;
|
|
4397
4376
|
}
|
|
4398
|
-
function
|
|
4377
|
+
function gr(e, t, r) {
|
|
4399
4378
|
const n = e.slice();
|
|
4400
4379
|
return n[71] = t[r], n;
|
|
4401
4380
|
}
|
|
4402
|
-
function
|
|
4381
|
+
function aa(e, t, r) {
|
|
4403
4382
|
const n = e.slice();
|
|
4404
4383
|
return n[77] = t[r], n;
|
|
4405
4384
|
}
|
|
4406
|
-
function
|
|
4385
|
+
function mr(e, t, r) {
|
|
4407
4386
|
const n = e.slice();
|
|
4408
4387
|
return n[74] = t[r], n;
|
|
4409
4388
|
}
|
|
4410
|
-
const
|
|
4411
|
-
function
|
|
4412
|
-
let t, r, n, i, o, a, s, u, l, c, h,
|
|
4413
|
-
const
|
|
4414
|
-
function re(
|
|
4389
|
+
const sa = (e) => ({}), pr = (e) => ({});
|
|
4390
|
+
function br(e) {
|
|
4391
|
+
let t, r, n, i, o, a, s, u, l, c, h, d, m, p, v, x, E, O, I, V, j, X, z, q, se, D, fe, de;
|
|
4392
|
+
const ge = [ua, la], W = [];
|
|
4393
|
+
function re(_, T) {
|
|
4415
4394
|
return (
|
|
4416
4395
|
/*isLoggedIn*/
|
|
4417
|
-
|
|
4396
|
+
_[16] ? 0 : 1
|
|
4418
4397
|
);
|
|
4419
4398
|
}
|
|
4420
|
-
i = re(e), o = W[i] =
|
|
4421
|
-
function ne(
|
|
4399
|
+
i = re(e), o = W[i] = ge[i](e);
|
|
4400
|
+
function ne(_, T) {
|
|
4422
4401
|
return (
|
|
4423
4402
|
/*HamburgerMenuItems*/
|
|
4424
|
-
|
|
4403
|
+
_[6].length > 0 ? fa : ha
|
|
4425
4404
|
);
|
|
4426
4405
|
}
|
|
4427
|
-
let Z = ne(e), U = Z(e), Y =
|
|
4406
|
+
let Z = ne(e), U = Z(e), Y = ee(
|
|
4428
4407
|
/*activeMenuItemChildren*/
|
|
4429
4408
|
e[8]
|
|
4430
4409
|
), C = [];
|
|
4431
|
-
for (let
|
|
4432
|
-
C[
|
|
4433
|
-
let
|
|
4410
|
+
for (let _ = 0; _ < Y.length; _ += 1)
|
|
4411
|
+
C[_] = Er(gr(e, Y, _));
|
|
4412
|
+
let M = (
|
|
4434
4413
|
/*languagesArray*/
|
|
4435
|
-
e[11].length > 1 &&
|
|
4414
|
+
e[11].length > 1 && wr(e)
|
|
4436
4415
|
);
|
|
4437
4416
|
return {
|
|
4438
4417
|
c() {
|
|
4439
4418
|
t = y("div"), r = y("div"), n = y("div"), o.c(), a = N(), s = y("ul"), U.c(), u = N(), l = y("div"), c = N(), h = y("ul");
|
|
4440
|
-
for (let
|
|
4441
|
-
C[
|
|
4442
|
-
|
|
4419
|
+
for (let _ = 0; _ < C.length; _ += 1)
|
|
4420
|
+
C[_].c();
|
|
4421
|
+
m = N(), M && M.c(), v = N(), x = y("span"), E = y("div"), O = y("span"), I = N(), V = y("span"), j = N(), X = y("span"), g(n, "class", "HamburgerHeader"), Gt(
|
|
4443
4422
|
n,
|
|
4444
4423
|
"LoggedIn",
|
|
4445
4424
|
/*isLoggedIn*/
|
|
4446
4425
|
e[16]
|
|
4447
|
-
),
|
|
4448
|
-
(e[12] ? "Overlay" : "")),
|
|
4426
|
+
), g(s, "class", "HamburgerPrimaryMenu"), g(l, "class", "Separator"), g(h, "class", d = "HamburgerSecondaryMenu " + /*isOptionsListVisible*/
|
|
4427
|
+
(e[12] ? "Overlay" : "")), g(r, "class", p = "HamburgerModalContainer " + /*modalIsOpen*/
|
|
4449
4428
|
(e[9] ? "ActiveHamburgerMenu" : "") + " " + /*isClosing*/
|
|
4450
|
-
(e[14] ? "Closing" : "")),
|
|
4451
|
-
e[15] ? "" : "Open")),
|
|
4452
|
-
e[9] ? "ModalCloseBtn" : ""),
|
|
4429
|
+
(e[14] ? "Closing" : "")), g(E, "class", z = "NavIcon " + (/*navIconClosing*/
|
|
4430
|
+
e[15] ? "" : "Open")), g(x, "class", q = /*modalIsOpen*/
|
|
4431
|
+
e[9] ? "ModalCloseBtn" : ""), g(x, "role", "button"), g(t, "class", se = "HamburgerModalWindow " + /*isClosing*/
|
|
4453
4432
|
(e[14] ? " Closing" : ""));
|
|
4454
4433
|
},
|
|
4455
|
-
m(
|
|
4456
|
-
|
|
4434
|
+
m(_, T) {
|
|
4435
|
+
P(_, t, T), b(t, r), b(r, n), W[i].m(n, null), b(r, a), b(r, s), U.m(s, null), b(r, u), b(r, l), b(r, c), b(r, h);
|
|
4457
4436
|
for (let R = 0; R < C.length; R += 1)
|
|
4458
4437
|
C[R] && C[R].m(h, null);
|
|
4459
|
-
b(r,
|
|
4438
|
+
b(r, m), M && M.m(r, null), b(t, v), b(t, x), b(x, E), b(E, O), b(E, I), b(E, V), b(E, j), b(E, X), e[47](t), D = !0, fe || (de = oe(
|
|
4460
4439
|
x,
|
|
4461
4440
|
"click",
|
|
4462
4441
|
/*close*/
|
|
4463
4442
|
e[19]
|
|
4464
4443
|
), fe = !0);
|
|
4465
4444
|
},
|
|
4466
|
-
p(
|
|
4445
|
+
p(_, T) {
|
|
4467
4446
|
let R = i;
|
|
4468
|
-
if (i = re(
|
|
4447
|
+
if (i = re(_), i === R ? W[i].p(_, T) : (Pr(), Pe(W[R], 1, 1, () => {
|
|
4469
4448
|
W[R] = null;
|
|
4470
|
-
}),
|
|
4471
|
-
65536) &&
|
|
4449
|
+
}), Ir(), o = W[i], o ? o.p(_, T) : (o = W[i] = ge[i](_), o.c()), ue(o, 1), o.m(n, null)), (!D || T[0] & /*isLoggedIn*/
|
|
4450
|
+
65536) && Gt(
|
|
4472
4451
|
n,
|
|
4473
4452
|
"LoggedIn",
|
|
4474
4453
|
/*isLoggedIn*/
|
|
4475
|
-
|
|
4476
|
-
), Z === (Z = ne(
|
|
4454
|
+
_[16]
|
|
4455
|
+
), Z === (Z = ne(_)) && U ? U.p(_, T) : (U.d(1), U = Z(_), U && (U.c(), U.m(s, null))), T[0] & /*handleClick, activeMenuItemChildren*/
|
|
4477
4456
|
2097408) {
|
|
4478
|
-
Y =
|
|
4457
|
+
Y = ee(
|
|
4479
4458
|
/*activeMenuItemChildren*/
|
|
4480
|
-
|
|
4459
|
+
_[8]
|
|
4481
4460
|
);
|
|
4482
4461
|
let G;
|
|
4483
4462
|
for (G = 0; G < Y.length; G += 1) {
|
|
4484
|
-
const
|
|
4485
|
-
C[G] ? C[G].p(
|
|
4463
|
+
const me = gr(_, Y, G);
|
|
4464
|
+
C[G] ? C[G].p(me, T) : (C[G] = Er(me), C[G].c(), C[G].m(h, null));
|
|
4486
4465
|
}
|
|
4487
4466
|
for (; G < C.length; G += 1)
|
|
4488
4467
|
C[G].d(1);
|
|
4489
4468
|
C.length = Y.length;
|
|
4490
4469
|
}
|
|
4491
|
-
(!D ||
|
|
4492
|
-
4096 &&
|
|
4493
|
-
(
|
|
4494
|
-
|
|
4495
|
-
16896 &&
|
|
4496
|
-
(
|
|
4497
|
-
(
|
|
4470
|
+
(!D || T[0] & /*isOptionsListVisible*/
|
|
4471
|
+
4096 && d !== (d = "HamburgerSecondaryMenu " + /*isOptionsListVisible*/
|
|
4472
|
+
(_[12] ? "Overlay" : ""))) && g(h, "class", d), /*languagesArray*/
|
|
4473
|
+
_[11].length > 1 ? M ? M.p(_, T) : (M = wr(_), M.c(), M.m(r, null)) : M && (M.d(1), M = null), (!D || T[0] & /*modalIsOpen, isClosing*/
|
|
4474
|
+
16896 && p !== (p = "HamburgerModalContainer " + /*modalIsOpen*/
|
|
4475
|
+
(_[9] ? "ActiveHamburgerMenu" : "") + " " + /*isClosing*/
|
|
4476
|
+
(_[14] ? "Closing" : ""))) && g(r, "class", p), (!D || T[0] & /*navIconClosing*/
|
|
4498
4477
|
32768 && z !== (z = "NavIcon " + (/*navIconClosing*/
|
|
4499
|
-
|
|
4478
|
+
_[15] ? "" : "Open"))) && g(E, "class", z), (!D || T[0] & /*modalIsOpen*/
|
|
4500
4479
|
512 && q !== (q = /*modalIsOpen*/
|
|
4501
|
-
|
|
4480
|
+
_[9] ? "ModalCloseBtn" : "")) && g(x, "class", q), (!D || T[0] & /*isClosing*/
|
|
4502
4481
|
16384 && se !== (se = "HamburgerModalWindow " + /*isClosing*/
|
|
4503
|
-
(
|
|
4482
|
+
(_[14] ? " Closing" : ""))) && g(t, "class", se);
|
|
4504
4483
|
},
|
|
4505
|
-
i(
|
|
4484
|
+
i(_) {
|
|
4506
4485
|
D || (ue(o), D = !0);
|
|
4507
4486
|
},
|
|
4508
|
-
o(
|
|
4487
|
+
o(_) {
|
|
4509
4488
|
Pe(o), D = !1;
|
|
4510
4489
|
},
|
|
4511
|
-
d(
|
|
4512
|
-
|
|
4490
|
+
d(_) {
|
|
4491
|
+
_ && B(t), W[i].d(), U.d(), Ne(C, _), M && M.d(), e[47](null), fe = !1, de();
|
|
4513
4492
|
}
|
|
4514
4493
|
};
|
|
4515
4494
|
}
|
|
4516
|
-
function
|
|
4495
|
+
function la(e) {
|
|
4517
4496
|
let t, r;
|
|
4518
4497
|
const n = (
|
|
4519
4498
|
/*#slots*/
|
|
@@ -4523,14 +4502,14 @@ function ca(e) {
|
|
|
4523
4502
|
e,
|
|
4524
4503
|
/*$$scope*/
|
|
4525
4504
|
e[40],
|
|
4526
|
-
|
|
4527
|
-
), o = i ||
|
|
4505
|
+
pr
|
|
4506
|
+
), o = i || ca(e);
|
|
4528
4507
|
return {
|
|
4529
4508
|
c() {
|
|
4530
|
-
t = y("div"), o && o.c(),
|
|
4509
|
+
t = y("div"), o && o.c(), g(t, "class", "Logo");
|
|
4531
4510
|
},
|
|
4532
4511
|
m(a, s) {
|
|
4533
|
-
|
|
4512
|
+
P(a, t, s), o && o.m(t, null), r = !0;
|
|
4534
4513
|
},
|
|
4535
4514
|
p(a, s) {
|
|
4536
4515
|
i ? i.p && (!r || s[1] & /*$$scope*/
|
|
@@ -4540,17 +4519,17 @@ function ca(e) {
|
|
|
4540
4519
|
a,
|
|
4541
4520
|
/*$$scope*/
|
|
4542
4521
|
a[40],
|
|
4543
|
-
r ?
|
|
4522
|
+
r ? On(
|
|
4544
4523
|
n,
|
|
4545
4524
|
/*$$scope*/
|
|
4546
4525
|
a[40],
|
|
4547
4526
|
s,
|
|
4548
|
-
|
|
4549
|
-
) :
|
|
4527
|
+
sa
|
|
4528
|
+
) : Pn(
|
|
4550
4529
|
/*$$scope*/
|
|
4551
4530
|
a[40]
|
|
4552
4531
|
),
|
|
4553
|
-
|
|
4532
|
+
pr
|
|
4554
4533
|
) : o && o.p && (!r || s[0] & /*customlogourl*/
|
|
4555
4534
|
4) && o.p(a, r ? s : [-1, -1, -1]);
|
|
4556
4535
|
},
|
|
@@ -4561,22 +4540,22 @@ function ca(e) {
|
|
|
4561
4540
|
Pe(o, a), r = !1;
|
|
4562
4541
|
},
|
|
4563
4542
|
d(a) {
|
|
4564
|
-
a &&
|
|
4543
|
+
a && B(t), o && o.d(a);
|
|
4565
4544
|
}
|
|
4566
4545
|
};
|
|
4567
4546
|
}
|
|
4568
|
-
function
|
|
4547
|
+
function ua(e) {
|
|
4569
4548
|
let t, r, n, i, o, a, s, u, l;
|
|
4570
4549
|
return {
|
|
4571
4550
|
c() {
|
|
4572
4551
|
t = y("button"), r = y("span"), r.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15 16.429"><g transform="translate(-8 -4)"><path class="a" d="M15.5,4a3.75,3.75,0,1,0,3.75,3.75A3.761,3.761,0,0,0,15.5,4Zm0,1.429A2.321,2.321,0,1,1,13.179,7.75,2.311,2.311,0,0,1,15.5,5.429Zm0,6.429A7.7,7.7,0,0,0,8,19.714a.714.714,0,0,0,.714.714H22.286A.714.714,0,0,0,23,19.714,7.7,7.7,0,0,0,15.5,11.857Zm0,1.429A6.18,6.18,0,0,1,21.5,19H9.5A6.18,6.18,0,0,1,15.5,13.286Z" transform="translate(0 0)"></path></g></svg>', n = N(), i = y("span"), o = Q("Hello, player "), a = Q(
|
|
4573
4552
|
/*userid*/
|
|
4574
4553
|
e[0]
|
|
4575
|
-
),
|
|
4576
|
-
e[0]}`),
|
|
4554
|
+
), g(r, "class", "UserIcon"), g(r, "aria-hidden", "true"), g(i, "class", "UserFullName"), g(i, "title", s = `Hello, player ${/*userid*/
|
|
4555
|
+
e[0]}`), g(t, "type", "button"), g(t, "class", "UserProfileWrapper");
|
|
4577
4556
|
},
|
|
4578
4557
|
m(c, h) {
|
|
4579
|
-
|
|
4558
|
+
P(c, t, h), b(t, r), b(t, n), b(t, i), b(i, o), b(i, a), u || (l = oe(
|
|
4580
4559
|
t,
|
|
4581
4560
|
"click",
|
|
4582
4561
|
/*goToMyAccount*/
|
|
@@ -4591,88 +4570,88 @@ function ha(e) {
|
|
|
4591
4570
|
c[0]
|
|
4592
4571
|
), h[0] & /*userid*/
|
|
4593
4572
|
1 && s !== (s = `Hello, player ${/*userid*/
|
|
4594
|
-
c[0]}`) &&
|
|
4573
|
+
c[0]}`) && g(i, "title", s);
|
|
4595
4574
|
},
|
|
4596
4575
|
i: $,
|
|
4597
4576
|
o: $,
|
|
4598
4577
|
d(c) {
|
|
4599
|
-
c &&
|
|
4578
|
+
c && B(t), u = !1, l();
|
|
4600
4579
|
}
|
|
4601
4580
|
};
|
|
4602
4581
|
}
|
|
4603
|
-
function
|
|
4582
|
+
function ca(e) {
|
|
4604
4583
|
let t, r, n;
|
|
4605
4584
|
return {
|
|
4606
4585
|
c() {
|
|
4607
|
-
t = y("img"),
|
|
4608
|
-
e[2]) ||
|
|
4586
|
+
t = y("img"), J(t.src, r = /*customlogourl*/
|
|
4587
|
+
e[2]) || g(t, "src", r), g(t, "alt", n = `Logo ${/*customlogourl*/
|
|
4609
4588
|
e[2]}`);
|
|
4610
4589
|
},
|
|
4611
4590
|
m(i, o) {
|
|
4612
|
-
|
|
4591
|
+
P(i, t, o);
|
|
4613
4592
|
},
|
|
4614
4593
|
p(i, o) {
|
|
4615
4594
|
o[0] & /*customlogourl*/
|
|
4616
|
-
4 && !
|
|
4617
|
-
i[2]) &&
|
|
4595
|
+
4 && !J(t.src, r = /*customlogourl*/
|
|
4596
|
+
i[2]) && g(t, "src", r), o[0] & /*customlogourl*/
|
|
4618
4597
|
4 && n !== (n = `Logo ${/*customlogourl*/
|
|
4619
|
-
i[2]}`) &&
|
|
4598
|
+
i[2]}`) && g(t, "alt", n);
|
|
4620
4599
|
},
|
|
4621
4600
|
d(i) {
|
|
4622
|
-
i &&
|
|
4601
|
+
i && B(t);
|
|
4623
4602
|
}
|
|
4624
4603
|
};
|
|
4625
4604
|
}
|
|
4626
|
-
function
|
|
4627
|
-
let t, r =
|
|
4605
|
+
function ha(e) {
|
|
4606
|
+
let t, r = ee(new Array(5)), n = [];
|
|
4628
4607
|
for (let i = 0; i < r.length; i += 1)
|
|
4629
|
-
n[i] =
|
|
4608
|
+
n[i] = da(aa(e, r, i));
|
|
4630
4609
|
return {
|
|
4631
4610
|
c() {
|
|
4632
4611
|
for (let i = 0; i < n.length; i += 1)
|
|
4633
4612
|
n[i].c();
|
|
4634
|
-
t =
|
|
4613
|
+
t = Br();
|
|
4635
4614
|
},
|
|
4636
4615
|
m(i, o) {
|
|
4637
4616
|
for (let a = 0; a < n.length; a += 1)
|
|
4638
4617
|
n[a] && n[a].m(i, o);
|
|
4639
|
-
|
|
4618
|
+
P(i, t, o);
|
|
4640
4619
|
},
|
|
4641
4620
|
p: $,
|
|
4642
4621
|
d(i) {
|
|
4643
|
-
i &&
|
|
4622
|
+
i && B(t), Ne(n, i);
|
|
4644
4623
|
}
|
|
4645
4624
|
};
|
|
4646
4625
|
}
|
|
4647
|
-
function
|
|
4648
|
-
let t, r =
|
|
4626
|
+
function fa(e) {
|
|
4627
|
+
let t, r = ee(
|
|
4649
4628
|
/*HamburgerMenuItems*/
|
|
4650
4629
|
e[6]
|
|
4651
4630
|
), n = [];
|
|
4652
4631
|
for (let i = 0; i < r.length; i += 1)
|
|
4653
|
-
n[i] =
|
|
4632
|
+
n[i] = yr(mr(e, r, i));
|
|
4654
4633
|
return {
|
|
4655
4634
|
c() {
|
|
4656
4635
|
for (let i = 0; i < n.length; i += 1)
|
|
4657
4636
|
n[i].c();
|
|
4658
|
-
t =
|
|
4637
|
+
t = Br();
|
|
4659
4638
|
},
|
|
4660
4639
|
m(i, o) {
|
|
4661
4640
|
for (let a = 0; a < n.length; a += 1)
|
|
4662
4641
|
n[a] && n[a].m(i, o);
|
|
4663
|
-
|
|
4642
|
+
P(i, t, o);
|
|
4664
4643
|
},
|
|
4665
4644
|
p(i, o) {
|
|
4666
4645
|
if (o[0] & /*activeMenuItemId, HamburgerMenuItems, handlePrimaryMenuClick*/
|
|
4667
4646
|
1048768) {
|
|
4668
|
-
r =
|
|
4647
|
+
r = ee(
|
|
4669
4648
|
/*HamburgerMenuItems*/
|
|
4670
4649
|
i[6]
|
|
4671
4650
|
);
|
|
4672
4651
|
let a;
|
|
4673
4652
|
for (a = 0; a < r.length; a += 1) {
|
|
4674
|
-
const s =
|
|
4675
|
-
n[a] ? n[a].p(s, o) : (n[a] =
|
|
4653
|
+
const s = mr(i, r, a);
|
|
4654
|
+
n[a] ? n[a].p(s, o) : (n[a] = yr(s), n[a].c(), n[a].m(t.parentNode, t));
|
|
4676
4655
|
}
|
|
4677
4656
|
for (; a < n.length; a += 1)
|
|
4678
4657
|
n[a].d(1);
|
|
@@ -4680,82 +4659,82 @@ function da(e) {
|
|
|
4680
4659
|
}
|
|
4681
4660
|
},
|
|
4682
4661
|
d(i) {
|
|
4683
|
-
i &&
|
|
4662
|
+
i && B(t), Ne(n, i);
|
|
4684
4663
|
}
|
|
4685
4664
|
};
|
|
4686
4665
|
}
|
|
4687
|
-
function
|
|
4666
|
+
function da(e) {
|
|
4688
4667
|
let t;
|
|
4689
4668
|
return {
|
|
4690
4669
|
c() {
|
|
4691
|
-
t = y("div"), t.innerHTML = "",
|
|
4670
|
+
t = y("div"), t.innerHTML = "", g(t, "class", "Loading Skeleton");
|
|
4692
4671
|
},
|
|
4693
4672
|
m(r, n) {
|
|
4694
|
-
|
|
4673
|
+
P(r, t, n);
|
|
4695
4674
|
},
|
|
4696
4675
|
p: $,
|
|
4697
4676
|
d(r) {
|
|
4698
|
-
r &&
|
|
4677
|
+
r && B(t);
|
|
4699
4678
|
}
|
|
4700
4679
|
};
|
|
4701
4680
|
}
|
|
4702
|
-
function
|
|
4681
|
+
function vr(e) {
|
|
4703
4682
|
let t, r;
|
|
4704
4683
|
return {
|
|
4705
4684
|
c() {
|
|
4706
|
-
t = y("img"),
|
|
4707
|
-
e[74].img) ||
|
|
4685
|
+
t = y("img"), J(t.src, r = /*mainItem*/
|
|
4686
|
+
e[74].img) || g(t, "src", r), g(t, "alt", "menu icon");
|
|
4708
4687
|
},
|
|
4709
4688
|
m(n, i) {
|
|
4710
|
-
|
|
4689
|
+
P(n, t, i);
|
|
4711
4690
|
},
|
|
4712
4691
|
p(n, i) {
|
|
4713
4692
|
i[0] & /*HamburgerMenuItems*/
|
|
4714
|
-
64 && !
|
|
4715
|
-
n[74].img) &&
|
|
4693
|
+
64 && !J(t.src, r = /*mainItem*/
|
|
4694
|
+
n[74].img) && g(t, "src", r);
|
|
4716
4695
|
},
|
|
4717
4696
|
d(n) {
|
|
4718
|
-
n &&
|
|
4697
|
+
n && B(t);
|
|
4719
4698
|
}
|
|
4720
4699
|
};
|
|
4721
4700
|
}
|
|
4722
|
-
function
|
|
4701
|
+
function _r(e) {
|
|
4723
4702
|
let t, r = (
|
|
4724
4703
|
/*mainItem*/
|
|
4725
4704
|
e[74].tag + ""
|
|
4726
4705
|
), n, i;
|
|
4727
4706
|
return {
|
|
4728
4707
|
c() {
|
|
4729
|
-
t = y("span"), n = Q(r),
|
|
4730
|
-
e[74].tag),
|
|
4708
|
+
t = y("span"), n = Q(r), g(t, "title", i = /*mainItem*/
|
|
4709
|
+
e[74].tag), g(t, "class", "HamburgerItemTag");
|
|
4731
4710
|
},
|
|
4732
4711
|
m(o, a) {
|
|
4733
|
-
|
|
4712
|
+
P(o, t, a), b(t, n);
|
|
4734
4713
|
},
|
|
4735
4714
|
p(o, a) {
|
|
4736
4715
|
a[0] & /*HamburgerMenuItems*/
|
|
4737
4716
|
64 && r !== (r = /*mainItem*/
|
|
4738
4717
|
o[74].tag + "") && ae(n, r), a[0] & /*HamburgerMenuItems*/
|
|
4739
4718
|
64 && i !== (i = /*mainItem*/
|
|
4740
|
-
o[74].tag) &&
|
|
4719
|
+
o[74].tag) && g(t, "title", i);
|
|
4741
4720
|
},
|
|
4742
4721
|
d(o) {
|
|
4743
|
-
o &&
|
|
4722
|
+
o && B(t);
|
|
4744
4723
|
}
|
|
4745
4724
|
};
|
|
4746
4725
|
}
|
|
4747
|
-
function
|
|
4726
|
+
function yr(e) {
|
|
4748
4727
|
let t, r, n, i, o, a = (
|
|
4749
4728
|
/*mainItem*/
|
|
4750
4729
|
e[74].label + ""
|
|
4751
|
-
), s, u, l, c, h,
|
|
4730
|
+
), s, u, l, c, h, d, m = (
|
|
4752
4731
|
/*mainItem*/
|
|
4753
|
-
e[74]?.img &&
|
|
4754
|
-
),
|
|
4732
|
+
e[74]?.img && vr(e)
|
|
4733
|
+
), p = (
|
|
4755
4734
|
/*mainItem*/
|
|
4756
|
-
e[74]?.tag &&
|
|
4735
|
+
e[74]?.tag && _r(e)
|
|
4757
4736
|
);
|
|
4758
|
-
function
|
|
4737
|
+
function v() {
|
|
4759
4738
|
return (
|
|
4760
4739
|
/*click_handler*/
|
|
4761
4740
|
e[42](
|
|
@@ -4766,55 +4745,55 @@ function Er(e) {
|
|
|
4766
4745
|
}
|
|
4767
4746
|
return {
|
|
4768
4747
|
c() {
|
|
4769
|
-
t = y("li"), r = y("button"), n = y("div"),
|
|
4748
|
+
t = y("li"), r = y("button"), n = y("div"), m && m.c(), i = N(), o = y("p"), s = Q(a), u = N(), p && p.c(), l = N(), g(n, "class", "HamburgerItemContainer"), g(r, "type", "button"), g(r, "class", "ItemButton"), g(t, "class", c = /*activeMenuItemId*/
|
|
4770
4749
|
e[7] === /*mainItem*/
|
|
4771
4750
|
e[74].id ? "ActiveItem" : "");
|
|
4772
4751
|
},
|
|
4773
4752
|
m(x, E) {
|
|
4774
|
-
|
|
4753
|
+
P(x, t, E), b(t, r), b(r, n), m && m.m(n, null), b(n, i), b(n, o), b(o, s), b(n, u), p && p.m(n, null), b(t, l), h || (d = oe(r, "click", v), h = !0);
|
|
4775
4754
|
},
|
|
4776
4755
|
p(x, E) {
|
|
4777
4756
|
e = x, /*mainItem*/
|
|
4778
|
-
e[74]?.img ?
|
|
4757
|
+
e[74]?.img ? m ? m.p(e, E) : (m = vr(e), m.c(), m.m(n, i)) : m && (m.d(1), m = null), E[0] & /*HamburgerMenuItems*/
|
|
4779
4758
|
64 && a !== (a = /*mainItem*/
|
|
4780
4759
|
e[74].label + "") && ae(s, a), /*mainItem*/
|
|
4781
|
-
e[74]?.tag ?
|
|
4760
|
+
e[74]?.tag ? p ? p.p(e, E) : (p = _r(e), p.c(), p.m(n, null)) : p && (p.d(1), p = null), E[0] & /*activeMenuItemId, HamburgerMenuItems*/
|
|
4782
4761
|
192 && c !== (c = /*activeMenuItemId*/
|
|
4783
4762
|
e[7] === /*mainItem*/
|
|
4784
|
-
e[74].id ? "ActiveItem" : "") &&
|
|
4763
|
+
e[74].id ? "ActiveItem" : "") && g(t, "class", c);
|
|
4785
4764
|
},
|
|
4786
4765
|
d(x) {
|
|
4787
|
-
x &&
|
|
4766
|
+
x && B(t), m && m.d(), p && p.d(), h = !1, d();
|
|
4788
4767
|
}
|
|
4789
4768
|
};
|
|
4790
4769
|
}
|
|
4791
|
-
function
|
|
4770
|
+
function xr(e) {
|
|
4792
4771
|
let t, r;
|
|
4793
4772
|
return {
|
|
4794
4773
|
c() {
|
|
4795
|
-
t = y("img"),
|
|
4796
|
-
e[71].img) ||
|
|
4774
|
+
t = y("img"), J(t.src, r = /*secondaryItem*/
|
|
4775
|
+
e[71].img) || g(t, "src", r), g(t, "alt", "menu icon");
|
|
4797
4776
|
},
|
|
4798
4777
|
m(n, i) {
|
|
4799
|
-
|
|
4778
|
+
P(n, t, i);
|
|
4800
4779
|
},
|
|
4801
4780
|
p(n, i) {
|
|
4802
4781
|
i[0] & /*activeMenuItemChildren*/
|
|
4803
|
-
256 && !
|
|
4804
|
-
n[71].img) &&
|
|
4782
|
+
256 && !J(t.src, r = /*secondaryItem*/
|
|
4783
|
+
n[71].img) && g(t, "src", r);
|
|
4805
4784
|
},
|
|
4806
4785
|
d(n) {
|
|
4807
|
-
n &&
|
|
4786
|
+
n && B(t);
|
|
4808
4787
|
}
|
|
4809
4788
|
};
|
|
4810
4789
|
}
|
|
4811
|
-
function
|
|
4790
|
+
function Er(e) {
|
|
4812
4791
|
let t, r, n, i = (
|
|
4813
4792
|
/*secondaryItem*/
|
|
4814
4793
|
e[71].label + ""
|
|
4815
4794
|
), o, a, s, u, l = (
|
|
4816
4795
|
/*secondaryItem*/
|
|
4817
|
-
e[71]?.img &&
|
|
4796
|
+
e[71]?.img && xr(e)
|
|
4818
4797
|
);
|
|
4819
4798
|
function c(...h) {
|
|
4820
4799
|
return (
|
|
@@ -4830,118 +4809,118 @@ function Hr(e) {
|
|
|
4830
4809
|
c() {
|
|
4831
4810
|
t = y("li"), l && l.c(), r = N(), n = y("p"), o = Q(i), a = N();
|
|
4832
4811
|
},
|
|
4833
|
-
m(h,
|
|
4834
|
-
|
|
4812
|
+
m(h, d) {
|
|
4813
|
+
P(h, t, d), l && l.m(t, null), b(t, r), b(t, n), b(n, o), b(t, a), s || (u = oe(t, "click", c), s = !0);
|
|
4835
4814
|
},
|
|
4836
|
-
p(h,
|
|
4815
|
+
p(h, d) {
|
|
4837
4816
|
e = h, /*secondaryItem*/
|
|
4838
|
-
e[71]?.img ? l ? l.p(e,
|
|
4817
|
+
e[71]?.img ? l ? l.p(e, d) : (l = xr(e), l.c(), l.m(t, r)) : l && (l.d(1), l = null), d[0] & /*activeMenuItemChildren*/
|
|
4839
4818
|
256 && i !== (i = /*secondaryItem*/
|
|
4840
4819
|
e[71].label + "") && ae(o, i);
|
|
4841
4820
|
},
|
|
4842
4821
|
d(h) {
|
|
4843
|
-
h &&
|
|
4822
|
+
h && B(t), l && l.d(), s = !1, u();
|
|
4844
4823
|
}
|
|
4845
4824
|
};
|
|
4846
4825
|
}
|
|
4847
|
-
function
|
|
4826
|
+
function wr(e) {
|
|
4848
4827
|
let t, r, n = (
|
|
4849
4828
|
/*$_*/
|
|
4850
4829
|
e[18]("language") + ""
|
|
4851
4830
|
), i, o, a, s, u;
|
|
4852
|
-
function l(
|
|
4831
|
+
function l(d, m) {
|
|
4853
4832
|
return (
|
|
4854
4833
|
/*countryflaghamburger*/
|
|
4855
|
-
|
|
4834
|
+
d[1] !== "true" ? ma : ga
|
|
4856
4835
|
);
|
|
4857
4836
|
}
|
|
4858
4837
|
let c = l(e), h = c(e);
|
|
4859
4838
|
return {
|
|
4860
4839
|
c() {
|
|
4861
|
-
t = y("div"), r = y("span"), i = Q(n), o = N(), h.c(),
|
|
4840
|
+
t = y("div"), r = y("span"), i = Q(n), o = N(), h.c(), g(r, "class", "LanguageSelectorTitle"), g(t, "class", a = "LanguageSelector " + /*isOptionsListVisible*/
|
|
4862
4841
|
(e[12] ? "Open" : ""));
|
|
4863
4842
|
},
|
|
4864
|
-
m(
|
|
4865
|
-
|
|
4843
|
+
m(d, m) {
|
|
4844
|
+
P(d, t, m), b(t, r), b(r, i), b(t, o), h.m(t, null), s || (u = oe(
|
|
4866
4845
|
t,
|
|
4867
4846
|
"click",
|
|
4868
4847
|
/*toggleLanguageDropdown*/
|
|
4869
4848
|
e[24]
|
|
4870
4849
|
), s = !0);
|
|
4871
4850
|
},
|
|
4872
|
-
p(
|
|
4873
|
-
|
|
4851
|
+
p(d, m) {
|
|
4852
|
+
m[0] & /*$_*/
|
|
4874
4853
|
262144 && n !== (n = /*$_*/
|
|
4875
|
-
|
|
4854
|
+
d[18]("language") + "") && ae(i, n), c === (c = l(d)) && h ? h.p(d, m) : (h.d(1), h = c(d), h && (h.c(), h.m(t, null))), m[0] & /*isOptionsListVisible*/
|
|
4876
4855
|
4096 && a !== (a = "LanguageSelector " + /*isOptionsListVisible*/
|
|
4877
|
-
(
|
|
4856
|
+
(d[12] ? "Open" : "")) && g(t, "class", a);
|
|
4878
4857
|
},
|
|
4879
|
-
d(
|
|
4880
|
-
|
|
4858
|
+
d(d) {
|
|
4859
|
+
d && B(t), h.d(), s = !1, u();
|
|
4881
4860
|
}
|
|
4882
4861
|
};
|
|
4883
4862
|
}
|
|
4884
|
-
function
|
|
4863
|
+
function ga(e) {
|
|
4885
4864
|
let t, r, n, i, o, a, s, u = (
|
|
4886
4865
|
/*selectedLanguage*/
|
|
4887
4866
|
e[17].slice(-2) + ""
|
|
4888
|
-
), l, c, h,
|
|
4867
|
+
), l, c, h, d, m, p, v, x = (
|
|
4889
4868
|
/*isOptionsListVisible*/
|
|
4890
|
-
e[12] &&
|
|
4869
|
+
e[12] && Hr(e)
|
|
4891
4870
|
);
|
|
4892
4871
|
return {
|
|
4893
4872
|
c() {
|
|
4894
|
-
t = y("div"), r = y("div"), n = y("span"), i = y("img"), a = N(), s = y("span"), l = Q(u), c = N(), h = y("span"),
|
|
4873
|
+
t = y("div"), r = y("div"), n = y("span"), i = y("img"), a = N(), s = y("span"), l = Q(u), c = N(), h = y("span"), d = Ut("svg"), m = Ut("path"), v = N(), x && x.c(), J(i.src, o = `http://purecatamphetamine.github.io/country-flag-icons/3x2/${/*determineFlag*/
|
|
4895
4874
|
e[25](
|
|
4896
4875
|
/*selectedLanguage*/
|
|
4897
4876
|
e[17]
|
|
4898
|
-
)}.svg`) ||
|
|
4899
|
-
(e[12] ? "TriangleActive" : "")),
|
|
4877
|
+
)}.svg`) || g(i, "src", o), g(n, "class", "FlagIcon"), g(s, "class", "LanguageName"), g(m, "id", "arrow"), g(m, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), g(m, "transform", "translate(-274.511 -441.088)"), g(m, "fill", "#d1d1d1"), g(d, "xmlns", "http://www.w3.org/2000/svg"), g(d, "width", "14"), g(d, "height", "6.835"), g(d, "viewBox", "0 0 14 6.835"), g(h, "class", p = "TriangleInactive " + /*isOptionsListVisible*/
|
|
4878
|
+
(e[12] ? "TriangleActive" : "")), g(r, "class", "SelectedOption Item ItemLanguage"), g(t, "class", "LanguageDropdown");
|
|
4900
4879
|
},
|
|
4901
|
-
m(E,
|
|
4902
|
-
|
|
4880
|
+
m(E, O) {
|
|
4881
|
+
P(E, t, O), b(t, r), b(r, n), b(n, i), b(r, a), b(r, s), b(s, l), b(r, c), b(r, h), b(h, d), b(d, m), b(t, v), x && x.m(t, null);
|
|
4903
4882
|
},
|
|
4904
|
-
p(E,
|
|
4905
|
-
|
|
4906
|
-
133120 && !
|
|
4883
|
+
p(E, O) {
|
|
4884
|
+
O[0] & /*selectedLanguage, languagesArray*/
|
|
4885
|
+
133120 && !J(i.src, o = `http://purecatamphetamine.github.io/country-flag-icons/3x2/${/*determineFlag*/
|
|
4907
4886
|
E[25](
|
|
4908
4887
|
/*selectedLanguage*/
|
|
4909
4888
|
E[17]
|
|
4910
|
-
)}.svg`) &&
|
|
4889
|
+
)}.svg`) && g(i, "src", o), O[0] & /*selectedLanguage*/
|
|
4911
4890
|
131072 && u !== (u = /*selectedLanguage*/
|
|
4912
|
-
E[17].slice(-2) + "") && ae(l, u),
|
|
4913
|
-
4096 &&
|
|
4914
|
-
(E[12] ? "TriangleActive" : "")) &&
|
|
4915
|
-
E[12] ? x ? x.p(E,
|
|
4891
|
+
E[17].slice(-2) + "") && ae(l, u), O[0] & /*isOptionsListVisible*/
|
|
4892
|
+
4096 && p !== (p = "TriangleInactive " + /*isOptionsListVisible*/
|
|
4893
|
+
(E[12] ? "TriangleActive" : "")) && g(h, "class", p), /*isOptionsListVisible*/
|
|
4894
|
+
E[12] ? x ? x.p(E, O) : (x = Hr(E), x.c(), x.m(t, null)) : x && (x.d(1), x = null);
|
|
4916
4895
|
},
|
|
4917
4896
|
d(E) {
|
|
4918
|
-
E &&
|
|
4897
|
+
E && B(t), x && x.d();
|
|
4919
4898
|
}
|
|
4920
4899
|
};
|
|
4921
4900
|
}
|
|
4922
|
-
function
|
|
4923
|
-
let t, r, n, i =
|
|
4901
|
+
function ma(e) {
|
|
4902
|
+
let t, r, n, i = ee(
|
|
4924
4903
|
/*languagesArray*/
|
|
4925
4904
|
e[11]
|
|
4926
4905
|
), o = [];
|
|
4927
4906
|
for (let a = 0; a < i.length; a += 1)
|
|
4928
|
-
o[a] =
|
|
4907
|
+
o[a] = Tr(dr(e, i, a));
|
|
4929
4908
|
return {
|
|
4930
4909
|
c() {
|
|
4931
4910
|
t = y("select");
|
|
4932
4911
|
for (let a = 0; a < o.length; a += 1)
|
|
4933
4912
|
o[a].c();
|
|
4934
|
-
|
|
4913
|
+
g(t, "class", "Item ItemLanguage NoFlag"), /*selectedLanguage*/
|
|
4935
4914
|
e[17] === void 0 && Xe(() => (
|
|
4936
4915
|
/*select_change_handler*/
|
|
4937
4916
|
e[44].call(t)
|
|
4938
4917
|
));
|
|
4939
4918
|
},
|
|
4940
4919
|
m(a, s) {
|
|
4941
|
-
|
|
4920
|
+
P(a, t, s);
|
|
4942
4921
|
for (let u = 0; u < o.length; u += 1)
|
|
4943
4922
|
o[u] && o[u].m(t, null);
|
|
4944
|
-
|
|
4923
|
+
Dt(
|
|
4945
4924
|
t,
|
|
4946
4925
|
/*selectedLanguage*/
|
|
4947
4926
|
e[17],
|
|
@@ -4964,62 +4943,62 @@ function ba(e) {
|
|
|
4964
4943
|
p(a, s) {
|
|
4965
4944
|
if (s[0] & /*languagesArray*/
|
|
4966
4945
|
2048) {
|
|
4967
|
-
i =
|
|
4946
|
+
i = ee(
|
|
4968
4947
|
/*languagesArray*/
|
|
4969
4948
|
a[11]
|
|
4970
4949
|
);
|
|
4971
4950
|
let u;
|
|
4972
4951
|
for (u = 0; u < i.length; u += 1) {
|
|
4973
|
-
const l =
|
|
4974
|
-
o[u] ? o[u].p(l, s) : (o[u] =
|
|
4952
|
+
const l = dr(a, i, u);
|
|
4953
|
+
o[u] ? o[u].p(l, s) : (o[u] = Tr(l), o[u].c(), o[u].m(t, null));
|
|
4975
4954
|
}
|
|
4976
4955
|
for (; u < o.length; u += 1)
|
|
4977
4956
|
o[u].d(1);
|
|
4978
4957
|
o.length = i.length;
|
|
4979
4958
|
}
|
|
4980
4959
|
s[0] & /*selectedLanguage, languagesArray*/
|
|
4981
|
-
133120 &&
|
|
4960
|
+
133120 && Dt(
|
|
4982
4961
|
t,
|
|
4983
4962
|
/*selectedLanguage*/
|
|
4984
4963
|
a[17]
|
|
4985
4964
|
);
|
|
4986
4965
|
},
|
|
4987
4966
|
d(a) {
|
|
4988
|
-
a &&
|
|
4967
|
+
a && B(t), Ne(o, a), r = !1, ce(n);
|
|
4989
4968
|
}
|
|
4990
4969
|
};
|
|
4991
4970
|
}
|
|
4992
|
-
function
|
|
4993
|
-
let t, r, n =
|
|
4971
|
+
function Hr(e) {
|
|
4972
|
+
let t, r, n = ee(
|
|
4994
4973
|
/*languagesArray*/
|
|
4995
4974
|
e[11]
|
|
4996
4975
|
), i = [];
|
|
4997
4976
|
for (let o = 0; o < n.length; o += 1)
|
|
4998
|
-
i[o] =
|
|
4977
|
+
i[o] = Sr(fr(e, n, o));
|
|
4999
4978
|
return {
|
|
5000
4979
|
c() {
|
|
5001
4980
|
t = y("div");
|
|
5002
4981
|
for (let o = 0; o < i.length; o += 1)
|
|
5003
4982
|
i[o].c();
|
|
5004
|
-
|
|
4983
|
+
g(t, "class", r = "OptionList " + /*languageListOpen*/
|
|
5005
4984
|
(e[13] ? "Open" : ""));
|
|
5006
4985
|
},
|
|
5007
4986
|
m(o, a) {
|
|
5008
|
-
|
|
4987
|
+
P(o, t, a);
|
|
5009
4988
|
for (let s = 0; s < i.length; s += 1)
|
|
5010
4989
|
i[s] && i[s].m(t, null);
|
|
5011
4990
|
},
|
|
5012
4991
|
p(o, a) {
|
|
5013
4992
|
if (a[0] & /*languageListOpen, selectLanguage, languagesArray, determineFlag*/
|
|
5014
4993
|
41953280) {
|
|
5015
|
-
n =
|
|
4994
|
+
n = ee(
|
|
5016
4995
|
/*languagesArray*/
|
|
5017
4996
|
o[11]
|
|
5018
4997
|
);
|
|
5019
4998
|
let s;
|
|
5020
4999
|
for (s = 0; s < n.length; s += 1) {
|
|
5021
|
-
const u =
|
|
5022
|
-
i[s] ? i[s].p(u, a) : (i[s] =
|
|
5000
|
+
const u = fr(o, n, s);
|
|
5001
|
+
i[s] ? i[s].p(u, a) : (i[s] = Sr(u), i[s].c(), i[s].m(t, null));
|
|
5023
5002
|
}
|
|
5024
5003
|
for (; s < i.length; s += 1)
|
|
5025
5004
|
i[s].d(1);
|
|
@@ -5027,19 +5006,19 @@ function Tr(e) {
|
|
|
5027
5006
|
}
|
|
5028
5007
|
a[0] & /*languageListOpen*/
|
|
5029
5008
|
8192 && r !== (r = "OptionList " + /*languageListOpen*/
|
|
5030
|
-
(o[13] ? "Open" : "")) &&
|
|
5009
|
+
(o[13] ? "Open" : "")) && g(t, "class", r);
|
|
5031
5010
|
},
|
|
5032
5011
|
d(o) {
|
|
5033
|
-
o &&
|
|
5012
|
+
o && B(t), Ne(i, o);
|
|
5034
5013
|
}
|
|
5035
5014
|
};
|
|
5036
5015
|
}
|
|
5037
|
-
function
|
|
5016
|
+
function Sr(e) {
|
|
5038
5017
|
let t, r, n, i, o, a, s = (
|
|
5039
5018
|
/*operatorLanguage*/
|
|
5040
5019
|
e[68] + ""
|
|
5041
|
-
), u, l, c, h,
|
|
5042
|
-
function
|
|
5020
|
+
), u, l, c, h, d;
|
|
5021
|
+
function m() {
|
|
5043
5022
|
return (
|
|
5044
5023
|
/*click_handler_2*/
|
|
5045
5024
|
e[46](
|
|
@@ -5050,34 +5029,34 @@ function Or(e) {
|
|
|
5050
5029
|
}
|
|
5051
5030
|
return {
|
|
5052
5031
|
c() {
|
|
5053
|
-
t = y("div"), r = y("span"), n = y("img"), o = N(), a = y("span"), u = Q(s), l = N(),
|
|
5032
|
+
t = y("div"), r = y("span"), n = y("img"), o = N(), a = y("span"), u = Q(s), l = N(), J(n.src, i = `http://purecatamphetamine.github.io/country-flag-icons/3x2/${/*determineFlag*/
|
|
5054
5033
|
e[25](
|
|
5055
5034
|
/*operatorLanguage*/
|
|
5056
5035
|
e[68]
|
|
5057
|
-
)}.svg`) ||
|
|
5036
|
+
)}.svg`) || g(n, "src", i), g(r, "class", "FlagIcon"), g(a, "class", "LanguageName"), g(t, "class", c = "LanguageOption " + /*languageListOpen*/
|
|
5058
5037
|
(e[13] ? "Open" : ""));
|
|
5059
5038
|
},
|
|
5060
|
-
m(
|
|
5061
|
-
|
|
5039
|
+
m(p, v) {
|
|
5040
|
+
P(p, t, v), b(t, r), b(r, n), b(t, o), b(t, a), b(a, u), b(t, l), h || (d = oe(t, "click", m), h = !0);
|
|
5062
5041
|
},
|
|
5063
|
-
p(
|
|
5064
|
-
e =
|
|
5065
|
-
2048 && !
|
|
5042
|
+
p(p, v) {
|
|
5043
|
+
e = p, v[0] & /*languagesArray*/
|
|
5044
|
+
2048 && !J(n.src, i = `http://purecatamphetamine.github.io/country-flag-icons/3x2/${/*determineFlag*/
|
|
5066
5045
|
e[25](
|
|
5067
5046
|
/*operatorLanguage*/
|
|
5068
5047
|
e[68]
|
|
5069
|
-
)}.svg`) &&
|
|
5048
|
+
)}.svg`) && g(n, "src", i), v[0] & /*languagesArray*/
|
|
5070
5049
|
2048 && s !== (s = /*operatorLanguage*/
|
|
5071
|
-
e[68] + "") && ae(u, s),
|
|
5050
|
+
e[68] + "") && ae(u, s), v[0] & /*languageListOpen*/
|
|
5072
5051
|
8192 && c !== (c = "LanguageOption " + /*languageListOpen*/
|
|
5073
|
-
(e[13] ? "Open" : "")) &&
|
|
5052
|
+
(e[13] ? "Open" : "")) && g(t, "class", c);
|
|
5074
5053
|
},
|
|
5075
|
-
d(
|
|
5076
|
-
|
|
5054
|
+
d(p) {
|
|
5055
|
+
p && B(t), h = !1, d();
|
|
5077
5056
|
}
|
|
5078
5057
|
};
|
|
5079
5058
|
}
|
|
5080
|
-
function
|
|
5059
|
+
function Tr(e) {
|
|
5081
5060
|
let t, r = (
|
|
5082
5061
|
/*lang*/
|
|
5083
5062
|
e[3].slice(-2) + ""
|
|
@@ -5085,41 +5064,41 @@ function Mr(e) {
|
|
|
5085
5064
|
return {
|
|
5086
5065
|
c() {
|
|
5087
5066
|
t = y("option"), n = Q(r), t.__value = i = /*lang*/
|
|
5088
|
-
e[3],
|
|
5067
|
+
e[3], Ft(t, t.__value), t.selected = !0;
|
|
5089
5068
|
},
|
|
5090
5069
|
m(o, a) {
|
|
5091
|
-
|
|
5070
|
+
P(o, t, a), b(t, n);
|
|
5092
5071
|
},
|
|
5093
5072
|
p(o, a) {
|
|
5094
5073
|
a[0] & /*languagesArray*/
|
|
5095
5074
|
2048 && r !== (r = /*lang*/
|
|
5096
5075
|
o[3].slice(-2) + "") && ae(n, r), a[0] & /*languagesArray*/
|
|
5097
5076
|
2048 && i !== (i = /*lang*/
|
|
5098
|
-
o[3]) && (t.__value = i,
|
|
5077
|
+
o[3]) && (t.__value = i, Ft(t, t.__value));
|
|
5099
5078
|
},
|
|
5100
5079
|
d(o) {
|
|
5101
|
-
o &&
|
|
5080
|
+
o && B(t);
|
|
5102
5081
|
}
|
|
5103
5082
|
};
|
|
5104
5083
|
}
|
|
5105
|
-
function
|
|
5084
|
+
function pa(e) {
|
|
5106
5085
|
let t, r, n = (
|
|
5107
5086
|
/*show*/
|
|
5108
|
-
e[10] === !0 &&
|
|
5087
|
+
e[10] === !0 && br(e)
|
|
5109
5088
|
);
|
|
5110
5089
|
return {
|
|
5111
5090
|
c() {
|
|
5112
5091
|
t = y("div"), n && n.c();
|
|
5113
5092
|
},
|
|
5114
5093
|
m(i, o) {
|
|
5115
|
-
|
|
5094
|
+
P(i, t, o), n && n.m(t, null), e[48](t), r = !0;
|
|
5116
5095
|
},
|
|
5117
5096
|
p(i, o) {
|
|
5118
5097
|
/*show*/
|
|
5119
5098
|
i[10] === !0 ? n ? (n.p(i, o), o[0] & /*show*/
|
|
5120
|
-
1024 && ue(n, 1)) : (n =
|
|
5099
|
+
1024 && ue(n, 1)) : (n = br(i), n.c(), ue(n, 1), n.m(t, null)) : n && (Pr(), Pe(n, 1, 1, () => {
|
|
5121
5100
|
n = null;
|
|
5122
|
-
}),
|
|
5101
|
+
}), Ir());
|
|
5123
5102
|
},
|
|
5124
5103
|
i(i) {
|
|
5125
5104
|
r || (ue(n), r = !0);
|
|
@@ -5128,34 +5107,34 @@ function _a(e) {
|
|
|
5128
5107
|
Pe(n), r = !1;
|
|
5129
5108
|
},
|
|
5130
5109
|
d(i) {
|
|
5131
|
-
i &&
|
|
5110
|
+
i && B(t), n && n.d(), e[48](null);
|
|
5132
5111
|
}
|
|
5133
5112
|
};
|
|
5134
5113
|
}
|
|
5135
|
-
function
|
|
5114
|
+
function ba(e, t, r) {
|
|
5136
5115
|
let n;
|
|
5137
|
-
An(e,
|
|
5138
|
-
let { $$slots: i = {}, $$scope: o } = t, { menuitemsurl: a = "" } = t, { session: s = "" } = t, { userid: u = "" } = t, { cmsendpoint: l } = t, { cmsenv: c = "stage" } = t, { userroles: h } = t, { lang:
|
|
5116
|
+
An(e, Ko, (f) => r(18, n = f));
|
|
5117
|
+
let { $$slots: i = {}, $$scope: o } = t, { menuitemsurl: a = "" } = t, { session: s = "" } = t, { userid: u = "" } = t, { cmsendpoint: l } = t, { cmsenv: c = "stage" } = t, { userroles: h } = t, { lang: d = "en" } = t, { activecategory: m = "" } = t, { languageslist: p = "" } = t, { translationurl: v = "" } = t, { mbsource: x } = t, { clientstyling: E = "" } = t, { clientstylingurl: O = "" } = t, { customlocaleidentifier: I = "" } = t, { countryflaghamburger: V = "" } = t, { customlogourl: j } = t, X, z = window.navigator.userAgent, q = [], se, D = "", fe = [], de = !1, ge = !1, W = !0, re = [], ne = !1, Z = !1, U = !1, Y = !1, C = !0, M, _ = !1, T = "", R;
|
|
5139
5118
|
const G = () => {
|
|
5140
|
-
fetch(
|
|
5141
|
-
Object.keys(f).forEach((
|
|
5142
|
-
|
|
5119
|
+
fetch(v).then((f) => f.json()).then((f) => {
|
|
5120
|
+
Object.keys(f).forEach((A) => {
|
|
5121
|
+
cr(A, f[A]);
|
|
5143
5122
|
});
|
|
5144
5123
|
}).catch((f) => {
|
|
5145
5124
|
console.log(f);
|
|
5146
5125
|
});
|
|
5147
5126
|
};
|
|
5148
|
-
Object.keys(
|
|
5149
|
-
|
|
5127
|
+
Object.keys(hr).forEach((f) => {
|
|
5128
|
+
cr(f, hr[f]);
|
|
5150
5129
|
});
|
|
5151
|
-
const
|
|
5152
|
-
|
|
5153
|
-
let f =
|
|
5154
|
-
f && (f === "PC" ?
|
|
5155
|
-
},
|
|
5130
|
+
const me = () => {
|
|
5131
|
+
M = new URL(`${l}/${T.toLowerCase()}/hamburger-menu`);
|
|
5132
|
+
let f = ea(z);
|
|
5133
|
+
f && (f === "PC" ? M.searchParams.append("device", "dk") : M.searchParams.append("device", "mtWeb")), M.searchParams.append("env", c), M.searchParams.append("language", T.toLowerCase()), M.searchParams.append("userRoles", h);
|
|
5134
|
+
}, et = () => {
|
|
5156
5135
|
r(14, Y = !0), r(15, C = !0), r(12, Z = !1), r(13, U = !1), setTimeout(
|
|
5157
5136
|
() => {
|
|
5158
|
-
r(10,
|
|
5137
|
+
r(10, ge = !1), r(9, de = !1);
|
|
5159
5138
|
},
|
|
5160
5139
|
200
|
|
5161
5140
|
), window.postMessage(
|
|
@@ -5165,7 +5144,7 @@ function va(e, t, r) {
|
|
|
5165
5144
|
},
|
|
5166
5145
|
window.location.href
|
|
5167
5146
|
);
|
|
5168
|
-
},
|
|
5147
|
+
}, Bt = (f) => {
|
|
5169
5148
|
if (!(!f || !f.data || typeof f.data != "object" || !("type" in f.data)))
|
|
5170
5149
|
switch (f.data.type) {
|
|
5171
5150
|
case "OpenHamburgerMenuModal": {
|
|
@@ -5174,49 +5153,49 @@ function va(e, t, r) {
|
|
|
5174
5153
|
r(15, C = !1);
|
|
5175
5154
|
},
|
|
5176
5155
|
125
|
|
5177
|
-
), r(10,
|
|
5156
|
+
), r(10, ge = !0), r(9, de = !0), me(), Ct(M);
|
|
5178
5157
|
break;
|
|
5179
5158
|
}
|
|
5180
5159
|
case "LanguageChanged": {
|
|
5181
|
-
ne = !0,
|
|
5160
|
+
ne = !0, me(), Ct(M);
|
|
5182
5161
|
break;
|
|
5183
5162
|
}
|
|
5184
5163
|
case "UserSessionID":
|
|
5185
|
-
f.data.userid, f.data.session, r(16,
|
|
5164
|
+
f.data.userid, f.data.session, r(16, _ = !0);
|
|
5186
5165
|
break;
|
|
5187
5166
|
case "LogoutSuccessfull":
|
|
5188
|
-
r(16,
|
|
5167
|
+
r(16, _ = !1);
|
|
5189
5168
|
break;
|
|
5190
5169
|
}
|
|
5191
|
-
},
|
|
5192
|
-
r(7, D = f), r(8, fe =
|
|
5170
|
+
}, tt = (f, A) => {
|
|
5171
|
+
r(7, D = f), r(8, fe = A || []), typeof gtag == "function" && gtag("event", "ChangeMenu", {
|
|
5193
5172
|
context: "HamburgerMenu",
|
|
5194
5173
|
menuItem: `${D}`
|
|
5195
5174
|
});
|
|
5196
|
-
},
|
|
5197
|
-
const
|
|
5198
|
-
!
|
|
5199
|
-
},
|
|
5200
|
-
let f = q.filter((
|
|
5201
|
-
let
|
|
5202
|
-
return
|
|
5203
|
-
|
|
5204
|
-
}),
|
|
5175
|
+
}, Pt = (f) => {
|
|
5176
|
+
const A = f?.children?.length > 0, pe = f?.path && f?.keyword?.includes("InternalLink");
|
|
5177
|
+
!A && pe && rt(f), tt(f.id, f.children);
|
|
5178
|
+
}, It = () => {
|
|
5179
|
+
let f = q.filter((A) => {
|
|
5180
|
+
let pe = !1;
|
|
5181
|
+
return A.children?.forEach((Sn) => {
|
|
5182
|
+
Sn.path.includes(m) && (pe = !0);
|
|
5183
|
+
}), pe;
|
|
5205
5184
|
});
|
|
5206
|
-
f.length > 0 ?
|
|
5207
|
-
},
|
|
5208
|
-
se && !ne ||
|
|
5209
|
-
},
|
|
5210
|
-
fetch(f).then((
|
|
5211
|
-
(
|
|
5212
|
-
r(6, q =
|
|
5185
|
+
f.length > 0 ? tt(f[0].id, f[0].children) : tt(q[0].id, q[0].children);
|
|
5186
|
+
}, Ct = (f) => {
|
|
5187
|
+
se && !ne || Nt(f);
|
|
5188
|
+
}, Nt = (f) => {
|
|
5189
|
+
fetch(f).then((A) => A.json()).then(
|
|
5190
|
+
(A) => {
|
|
5191
|
+
r(6, q = A.filter((pe) => pe?.type !== "banner")), It(), r(39, W = !1), se = A, ne = !1;
|
|
5213
5192
|
},
|
|
5214
|
-
(
|
|
5215
|
-
console.error(
|
|
5193
|
+
(A) => {
|
|
5194
|
+
console.error(A);
|
|
5216
5195
|
}
|
|
5217
5196
|
);
|
|
5218
5197
|
};
|
|
5219
|
-
let
|
|
5198
|
+
let rt = (f) => {
|
|
5220
5199
|
window.postMessage(
|
|
5221
5200
|
{
|
|
5222
5201
|
type: "NavigateTo",
|
|
@@ -5225,20 +5204,20 @@ function va(e, t, r) {
|
|
|
5225
5204
|
target: f.attrs.target || null
|
|
5226
5205
|
},
|
|
5227
5206
|
window.location.href
|
|
5228
|
-
),
|
|
5207
|
+
), et();
|
|
5229
5208
|
};
|
|
5230
|
-
const
|
|
5209
|
+
const nt = () => {
|
|
5231
5210
|
ne = !0, window.postMessage(
|
|
5232
5211
|
{
|
|
5233
5212
|
type: "LanguageChanged",
|
|
5234
|
-
selectedLanguage:
|
|
5213
|
+
selectedLanguage: T
|
|
5235
5214
|
},
|
|
5236
5215
|
window.location.href
|
|
5237
5216
|
);
|
|
5238
5217
|
}, dn = () => {
|
|
5239
|
-
|
|
5240
|
-
},
|
|
5241
|
-
r(17,
|
|
5218
|
+
ia(d), me(), ne && Nt(M), r(11, re = p.replace(/ /g, "").split(",")), r(11, re = re.map((f) => f.toUpperCase())), r(17, T = d.toUpperCase());
|
|
5219
|
+
}, Rt = (f) => {
|
|
5220
|
+
r(17, T = f), setTimeout(
|
|
5242
5221
|
() => {
|
|
5243
5222
|
r(13, U = !1);
|
|
5244
5223
|
},
|
|
@@ -5248,8 +5227,8 @@ function va(e, t, r) {
|
|
|
5248
5227
|
r(12, Z = !1);
|
|
5249
5228
|
},
|
|
5250
5229
|
500
|
|
5251
|
-
),
|
|
5252
|
-
},
|
|
5230
|
+
), nt();
|
|
5231
|
+
}, gn = () => {
|
|
5253
5232
|
Z ? (setTimeout(
|
|
5254
5233
|
() => {
|
|
5255
5234
|
r(12, Z = !1);
|
|
@@ -5262,114 +5241,114 @@ function va(e, t, r) {
|
|
|
5262
5241
|
300
|
|
5263
5242
|
));
|
|
5264
5243
|
}, mn = (f) => {
|
|
5265
|
-
let
|
|
5266
|
-
return I && (
|
|
5244
|
+
let A = f ? f.slice(-2) : T.slice(-2);
|
|
5245
|
+
return I && (A = I.includes(A.toLowerCase()) ? I.slice(-2) : A), A == "EN" ? "GB" : A.toUpperCase();
|
|
5246
|
+
}, pn = () => {
|
|
5247
|
+
r(16, _ = !0);
|
|
5267
5248
|
}, bn = () => {
|
|
5268
|
-
r(16, v = !0);
|
|
5269
|
-
}, _n = () => {
|
|
5270
5249
|
window.postMessage(
|
|
5271
5250
|
{
|
|
5272
5251
|
type: "PlayerAccountMenuActive",
|
|
5273
|
-
isMobile:
|
|
5252
|
+
isMobile: ur(z)
|
|
5274
5253
|
},
|
|
5275
5254
|
window.location.href
|
|
5276
|
-
),
|
|
5255
|
+
), et(), typeof gtag == "function" && gtag("event", "GoToMyAccount", { context: "HamburgerMenu" });
|
|
5277
5256
|
};
|
|
5278
|
-
|
|
5279
|
-
window.removeEventListener("message",
|
|
5257
|
+
Dn(() => (window.addEventListener("message", Bt, !1), ur(z), () => {
|
|
5258
|
+
window.removeEventListener("message", Bt);
|
|
5280
5259
|
}));
|
|
5281
|
-
const vn = (f) =>
|
|
5282
|
-
|
|
5260
|
+
const vn = (f) => Pt(f), _n = (f, A) => {
|
|
5261
|
+
rt(f), A.preventDefault();
|
|
5283
5262
|
};
|
|
5284
|
-
function
|
|
5285
|
-
|
|
5263
|
+
function yn() {
|
|
5264
|
+
T = kn(this), r(17, T), r(11, re);
|
|
5286
5265
|
}
|
|
5287
|
-
const
|
|
5288
|
-
function
|
|
5266
|
+
const xn = () => nt(), En = (f) => Rt(f);
|
|
5267
|
+
function wn(f) {
|
|
5289
5268
|
Ve[f ? "unshift" : "push"](() => {
|
|
5290
5269
|
X = f, r(5, X);
|
|
5291
5270
|
});
|
|
5292
5271
|
}
|
|
5293
|
-
function
|
|
5272
|
+
function Hn(f) {
|
|
5294
5273
|
Ve[f ? "unshift" : "push"](() => {
|
|
5295
5274
|
R = f, r(4, R);
|
|
5296
5275
|
});
|
|
5297
5276
|
}
|
|
5298
5277
|
return e.$$set = (f) => {
|
|
5299
|
-
"menuitemsurl" in f && r(27, a = f.menuitemsurl), "session" in f && r(28, s = f.session), "userid" in f && r(0, u = f.userid), "cmsendpoint" in f && r(29, l = f.cmsendpoint), "cmsenv" in f && r(30, c = f.cmsenv), "userroles" in f && r(31, h = f.userroles), "lang" in f && r(3,
|
|
5278
|
+
"menuitemsurl" in f && r(27, a = f.menuitemsurl), "session" in f && r(28, s = f.session), "userid" in f && r(0, u = f.userid), "cmsendpoint" in f && r(29, l = f.cmsendpoint), "cmsenv" in f && r(30, c = f.cmsenv), "userroles" in f && r(31, h = f.userroles), "lang" in f && r(3, d = f.lang), "activecategory" in f && r(32, m = f.activecategory), "languageslist" in f && r(33, p = f.languageslist), "translationurl" in f && r(34, v = f.translationurl), "mbsource" in f && r(35, x = f.mbsource), "clientstyling" in f && r(36, E = f.clientstyling), "clientstylingurl" in f && r(37, O = f.clientstylingurl), "customlocaleidentifier" in f && r(38, I = f.customlocaleidentifier), "countryflaghamburger" in f && r(1, V = f.countryflaghamburger), "customlogourl" in f && r(2, j = f.customlogourl), "$$scope" in f && r(40, o = f.$$scope);
|
|
5300
5279
|
}, e.$$.update = () => {
|
|
5301
5280
|
e.$$.dirty[0] & /*cmsendpoint, cmsenv, lang*/
|
|
5302
5281
|
1610612744 | e.$$.dirty[1] & /*languageslist*/
|
|
5303
|
-
4 && l && c &&
|
|
5304
|
-
258 &&
|
|
5305
|
-
8 &&
|
|
5306
|
-
268435456 && s &&
|
|
5282
|
+
4 && l && c && d && p && dn(), e.$$.dirty[1] & /*activecategory, isLoading*/
|
|
5283
|
+
258 && m && !W && It(), e.$$.dirty[1] & /*translationurl*/
|
|
5284
|
+
8 && v && G(), e.$$.dirty[0] & /*session*/
|
|
5285
|
+
268435456 && s && pn(), e.$$.dirty[0] & /*customStylingContainer*/
|
|
5307
5286
|
16 | e.$$.dirty[1] & /*clientstyling*/
|
|
5308
|
-
32 && E && R &&
|
|
5287
|
+
32 && E && R && ta(R, E), e.$$.dirty[0] & /*customStylingContainer*/
|
|
5309
5288
|
16 | e.$$.dirty[1] & /*clientstylingurl*/
|
|
5310
|
-
64 &&
|
|
5289
|
+
64 && O && R && ra(R, O), e.$$.dirty[0] & /*customStylingContainer*/
|
|
5311
5290
|
16 | e.$$.dirty[1] & /*mbsource*/
|
|
5312
|
-
16 && x && R &&
|
|
5291
|
+
16 && x && R && na(R, `${x}.Style`);
|
|
5313
5292
|
}, [
|
|
5314
5293
|
u,
|
|
5315
5294
|
V,
|
|
5316
5295
|
j,
|
|
5317
|
-
|
|
5296
|
+
d,
|
|
5318
5297
|
R,
|
|
5319
5298
|
X,
|
|
5320
5299
|
q,
|
|
5321
5300
|
D,
|
|
5322
5301
|
fe,
|
|
5323
|
-
ge,
|
|
5324
5302
|
de,
|
|
5303
|
+
ge,
|
|
5325
5304
|
re,
|
|
5326
5305
|
Z,
|
|
5327
5306
|
U,
|
|
5328
5307
|
Y,
|
|
5329
5308
|
C,
|
|
5330
|
-
|
|
5331
|
-
|
|
5309
|
+
_,
|
|
5310
|
+
T,
|
|
5332
5311
|
n,
|
|
5312
|
+
et,
|
|
5313
|
+
Pt,
|
|
5333
5314
|
rt,
|
|
5334
|
-
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
Ut,
|
|
5338
|
-
pn,
|
|
5315
|
+
nt,
|
|
5316
|
+
Rt,
|
|
5317
|
+
gn,
|
|
5339
5318
|
mn,
|
|
5340
|
-
|
|
5319
|
+
bn,
|
|
5341
5320
|
a,
|
|
5342
5321
|
s,
|
|
5343
5322
|
l,
|
|
5344
5323
|
c,
|
|
5345
5324
|
h,
|
|
5346
|
-
p,
|
|
5347
5325
|
m,
|
|
5348
|
-
|
|
5326
|
+
p,
|
|
5327
|
+
v,
|
|
5349
5328
|
x,
|
|
5350
5329
|
E,
|
|
5351
|
-
|
|
5330
|
+
O,
|
|
5352
5331
|
I,
|
|
5353
5332
|
W,
|
|
5354
5333
|
o,
|
|
5355
5334
|
i,
|
|
5356
5335
|
vn,
|
|
5336
|
+
_n,
|
|
5357
5337
|
yn,
|
|
5358
5338
|
xn,
|
|
5359
5339
|
En,
|
|
5360
5340
|
wn,
|
|
5361
|
-
Hn
|
|
5362
|
-
Sn
|
|
5341
|
+
Hn
|
|
5363
5342
|
];
|
|
5364
5343
|
}
|
|
5365
|
-
class
|
|
5344
|
+
class va extends qn {
|
|
5366
5345
|
constructor(t) {
|
|
5367
|
-
super(),
|
|
5346
|
+
super(), Zn(
|
|
5368
5347
|
this,
|
|
5369
5348
|
t,
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5349
|
+
ba,
|
|
5350
|
+
pa,
|
|
5351
|
+
Ar,
|
|
5373
5352
|
{
|
|
5374
5353
|
menuitemsurl: 27,
|
|
5375
5354
|
session: 28,
|
|
@@ -5388,7 +5367,7 @@ class ya extends Yn {
|
|
|
5388
5367
|
countryflaghamburger: 1,
|
|
5389
5368
|
customlogourl: 2
|
|
5390
5369
|
},
|
|
5391
|
-
|
|
5370
|
+
oa,
|
|
5392
5371
|
[-1, -1, -1]
|
|
5393
5372
|
);
|
|
5394
5373
|
}
|
|
@@ -5489,7 +5468,7 @@ class ya extends Yn {
|
|
|
5489
5468
|
this.$$set({ customlogourl: t }), k();
|
|
5490
5469
|
}
|
|
5491
5470
|
}
|
|
5492
|
-
|
|
5471
|
+
Qn(va, { menuitemsurl: {}, session: {}, userid: {}, cmsendpoint: {}, cmsenv: {}, userroles: {}, lang: {}, activecategory: {}, languageslist: {}, translationurl: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, customlocaleidentifier: {}, countryflaghamburger: {}, customlogourl: {} }, ["logo"], [], !0);
|
|
5493
5472
|
export {
|
|
5494
|
-
|
|
5473
|
+
va as C
|
|
5495
5474
|
};
|