@everymatrix/casino-hamburger-menu-nd 1.77.19 → 1.77.20
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-6r-wOCfd.cjs +18 -0
- package/components/{CasinoHamburgerMenuNd-9xwciIXj.js → CasinoHamburgerMenuNd-BWLwLatL.js} +980 -1023
- package/components/{CasinoHamburgerMenuNd-CABvz3j9.js → CasinoHamburgerMenuNd-Bw4JInzs.js} +991 -1034
- 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-CuuWvQ3p.cjs +0 -18
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
function $() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function ur(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function wt() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function de(e) {
|
|
10
|
+
e.forEach(ur);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function dt(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function hr(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
18
|
let Te;
|
|
19
19
|
function K(e, t) {
|
|
20
20
|
return e === t ? !0 : (Te || (Te = document.createElement("a")), Te.href = t, e === Te.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function rn(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function cr(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const n of t)
|
|
28
28
|
n(void 0);
|
|
@@ -31,20 +31,20 @@ function gr(e, ...t) {
|
|
|
31
31
|
const r = e.subscribe(...t);
|
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
e.$$.on_destroy.push(
|
|
34
|
+
function nn(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(cr(t, r));
|
|
36
36
|
}
|
|
37
37
|
function b(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const n =
|
|
40
|
+
function on(e, t, r) {
|
|
41
|
+
const n = an(e);
|
|
42
42
|
if (!n.getElementById(t)) {
|
|
43
43
|
const i = y("style");
|
|
44
|
-
i.id = t, i.textContent = r,
|
|
44
|
+
i.id = t, i.textContent = r, sn(n, i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function an(e) {
|
|
48
48
|
if (!e)
|
|
49
49
|
return document;
|
|
50
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -54,7 +54,7 @@ function cn(e) {
|
|
|
54
54
|
t
|
|
55
55
|
) : e.ownerDocument;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function sn(e, t) {
|
|
58
58
|
return b(
|
|
59
59
|
/** @type {Document} */
|
|
60
60
|
e.head || e,
|
|
@@ -67,14 +67,14 @@ function k(e, t, r) {
|
|
|
67
67
|
function I(e) {
|
|
68
68
|
e.parentNode && e.parentNode.removeChild(e);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function we(e, t) {
|
|
71
71
|
for (let r = 0; r < e.length; r += 1)
|
|
72
72
|
e[r] && e[r].d(t);
|
|
73
73
|
}
|
|
74
74
|
function y(e) {
|
|
75
75
|
return document.createElement(e);
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function St(e) {
|
|
78
78
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
79
79
|
}
|
|
80
80
|
function ee(e) {
|
|
@@ -83,26 +83,26 @@ function ee(e) {
|
|
|
83
83
|
function U() {
|
|
84
84
|
return ee(" ");
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function fr() {
|
|
87
87
|
return ee("");
|
|
88
88
|
}
|
|
89
89
|
function te(e, t, r, n) {
|
|
90
90
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function p(e, t, r) {
|
|
93
93
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function ln(e) {
|
|
96
96
|
return Array.from(e.childNodes);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function me(e, t) {
|
|
99
99
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
100
100
|
t);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function Ht(e, t) {
|
|
103
103
|
e.value = t ?? "";
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function Tt(e, t, r) {
|
|
106
106
|
for (let n = 0; n < e.options.length; n += 1) {
|
|
107
107
|
const i = e.options[n];
|
|
108
108
|
if (i.__value === t) {
|
|
@@ -112,11 +112,11 @@ function Lt(e, t, r) {
|
|
|
112
112
|
}
|
|
113
113
|
(!r || t !== void 0) && (e.selectedIndex = -1);
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function un(e) {
|
|
116
116
|
const t = e.querySelector(":checked");
|
|
117
117
|
return t && t.__value;
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function hn(e) {
|
|
120
120
|
const t = {};
|
|
121
121
|
return e.childNodes.forEach(
|
|
122
122
|
/** @param {Element} node */
|
|
@@ -125,128 +125,128 @@ function mn(e) {
|
|
|
125
125
|
}
|
|
126
126
|
), t;
|
|
127
127
|
}
|
|
128
|
-
let
|
|
129
|
-
function
|
|
130
|
-
|
|
128
|
+
let _e;
|
|
129
|
+
function ye(e) {
|
|
130
|
+
_e = e;
|
|
131
131
|
}
|
|
132
|
-
function
|
|
133
|
-
if (!
|
|
132
|
+
function cn() {
|
|
133
|
+
if (!_e)
|
|
134
134
|
throw new Error("Function called outside component initialization");
|
|
135
|
-
return
|
|
135
|
+
return _e;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
138
|
-
|
|
137
|
+
function fn(e) {
|
|
138
|
+
cn().$$.on_mount.push(e);
|
|
139
139
|
}
|
|
140
140
|
const ae = [], Ie = [];
|
|
141
141
|
let se = [];
|
|
142
|
-
const
|
|
143
|
-
let
|
|
144
|
-
function
|
|
145
|
-
|
|
142
|
+
const Ot = [], dn = /* @__PURE__ */ Promise.resolve();
|
|
143
|
+
let Ke = !1;
|
|
144
|
+
function mn() {
|
|
145
|
+
Ke || (Ke = !0, dn.then(F));
|
|
146
146
|
}
|
|
147
147
|
function Ce(e) {
|
|
148
148
|
se.push(e);
|
|
149
149
|
}
|
|
150
|
-
const
|
|
150
|
+
const Xe = /* @__PURE__ */ new Set();
|
|
151
151
|
let ie = 0;
|
|
152
152
|
function F() {
|
|
153
153
|
if (ie !== 0)
|
|
154
154
|
return;
|
|
155
|
-
const e =
|
|
155
|
+
const e = _e;
|
|
156
156
|
do {
|
|
157
157
|
try {
|
|
158
158
|
for (; ie < ae.length; ) {
|
|
159
159
|
const t = ae[ie];
|
|
160
|
-
ie++,
|
|
160
|
+
ie++, ye(t), pn(t.$$);
|
|
161
161
|
}
|
|
162
162
|
} catch (t) {
|
|
163
163
|
throw ae.length = 0, ie = 0, t;
|
|
164
164
|
}
|
|
165
|
-
for (
|
|
165
|
+
for (ye(null), ae.length = 0, ie = 0; Ie.length; )
|
|
166
166
|
Ie.pop()();
|
|
167
167
|
for (let t = 0; t < se.length; t += 1) {
|
|
168
168
|
const r = se[t];
|
|
169
|
-
|
|
169
|
+
Xe.has(r) || (Xe.add(r), r());
|
|
170
170
|
}
|
|
171
171
|
se.length = 0;
|
|
172
172
|
} while (ae.length);
|
|
173
|
-
for (;
|
|
174
|
-
|
|
175
|
-
|
|
173
|
+
for (; Ot.length; )
|
|
174
|
+
Ot.pop()();
|
|
175
|
+
Ke = !1, Xe.clear(), ye(e);
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function pn(e) {
|
|
178
178
|
if (e.fragment !== null) {
|
|
179
|
-
e.update(),
|
|
179
|
+
e.update(), de(e.before_update);
|
|
180
180
|
const t = e.dirty;
|
|
181
181
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ce);
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function gn(e) {
|
|
185
185
|
const t = [], r = [];
|
|
186
186
|
se.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), se = t;
|
|
187
187
|
}
|
|
188
|
-
const
|
|
189
|
-
function
|
|
190
|
-
e && e.i && (
|
|
188
|
+
const bn = /* @__PURE__ */ new Set();
|
|
189
|
+
function vn(e, t) {
|
|
190
|
+
e && e.i && (bn.delete(e), e.i(t));
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function Q(e) {
|
|
193
193
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function yn(e, t, r) {
|
|
196
196
|
const { fragment: n, after_update: i } = e.$$;
|
|
197
197
|
n && n.m(t, r), Ce(() => {
|
|
198
|
-
const o = e.$$.on_mount.map(
|
|
199
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
198
|
+
const o = e.$$.on_mount.map(ur).filter(dt);
|
|
199
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : de(o), e.$$.on_mount = [];
|
|
200
200
|
}), i.forEach(Ce);
|
|
201
201
|
}
|
|
202
|
-
function
|
|
202
|
+
function _n(e, t) {
|
|
203
203
|
const r = e.$$;
|
|
204
|
-
r.fragment !== null && (
|
|
204
|
+
r.fragment !== null && (gn(r.after_update), de(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
205
205
|
}
|
|
206
|
-
function
|
|
207
|
-
e.$$.dirty[0] === -1 && (ae.push(e),
|
|
206
|
+
function xn(e, t) {
|
|
207
|
+
e.$$.dirty[0] === -1 && (ae.push(e), mn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
208
208
|
}
|
|
209
|
-
function
|
|
210
|
-
const
|
|
211
|
-
|
|
212
|
-
const
|
|
209
|
+
function En(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
210
|
+
const l = _e;
|
|
211
|
+
ye(e);
|
|
212
|
+
const u = e.$$ = {
|
|
213
213
|
fragment: null,
|
|
214
214
|
ctx: [],
|
|
215
215
|
// state
|
|
216
216
|
props: o,
|
|
217
217
|
update: $,
|
|
218
218
|
not_equal: i,
|
|
219
|
-
bound:
|
|
219
|
+
bound: wt(),
|
|
220
220
|
// lifecycle
|
|
221
221
|
on_mount: [],
|
|
222
222
|
on_destroy: [],
|
|
223
223
|
on_disconnect: [],
|
|
224
224
|
before_update: [],
|
|
225
225
|
after_update: [],
|
|
226
|
-
context: new Map(t.context || (
|
|
226
|
+
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
227
227
|
// everything else
|
|
228
|
-
callbacks:
|
|
228
|
+
callbacks: wt(),
|
|
229
229
|
dirty: s,
|
|
230
230
|
skip_bound: !1,
|
|
231
|
-
root: t.target ||
|
|
231
|
+
root: t.target || l.$$.root
|
|
232
232
|
};
|
|
233
|
-
a && a(
|
|
233
|
+
a && a(u.root);
|
|
234
234
|
let h = !1;
|
|
235
|
-
if (
|
|
236
|
-
const g =
|
|
237
|
-
return
|
|
238
|
-
}) : [],
|
|
235
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...m) => {
|
|
236
|
+
const g = m.length ? m[0] : f;
|
|
237
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = g) && (!u.skip_bound && u.bound[c] && u.bound[c](g), h && xn(e, c)), f;
|
|
238
|
+
}) : [], u.update(), h = !0, de(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
239
239
|
if (t.hydrate) {
|
|
240
|
-
const c =
|
|
241
|
-
|
|
240
|
+
const c = ln(t.target);
|
|
241
|
+
u.fragment && u.fragment.l(c), c.forEach(I);
|
|
242
242
|
} else
|
|
243
|
-
|
|
244
|
-
t.intro &&
|
|
243
|
+
u.fragment && u.fragment.c();
|
|
244
|
+
t.intro && vn(e.$$.fragment), yn(e, t.target, t.anchor), F();
|
|
245
245
|
}
|
|
246
|
-
|
|
246
|
+
ye(l);
|
|
247
247
|
}
|
|
248
|
-
let
|
|
249
|
-
typeof HTMLElement == "function" && (
|
|
248
|
+
let dr;
|
|
249
|
+
typeof HTMLElement == "function" && (dr = class extends HTMLElement {
|
|
250
250
|
/** The Svelte component constructor */
|
|
251
251
|
$$ctor;
|
|
252
252
|
/** Slots */
|
|
@@ -288,29 +288,29 @@ typeof HTMLElement == "function" && (vr = class extends HTMLElement {
|
|
|
288
288
|
let o;
|
|
289
289
|
return {
|
|
290
290
|
c: function() {
|
|
291
|
-
o = y("slot"), i !== "default" &&
|
|
291
|
+
o = y("slot"), i !== "default" && p(o, "name", i);
|
|
292
292
|
},
|
|
293
293
|
/**
|
|
294
294
|
* @param {HTMLElement} target
|
|
295
295
|
* @param {HTMLElement} [anchor]
|
|
296
296
|
*/
|
|
297
|
-
m: function(
|
|
298
|
-
k(
|
|
297
|
+
m: function(l, u) {
|
|
298
|
+
k(l, o, u);
|
|
299
299
|
},
|
|
300
|
-
d: function(
|
|
301
|
-
|
|
300
|
+
d: function(l) {
|
|
301
|
+
l && I(o);
|
|
302
302
|
}
|
|
303
303
|
};
|
|
304
304
|
};
|
|
305
305
|
};
|
|
306
306
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
307
307
|
return;
|
|
308
|
-
const t = {}, r =
|
|
308
|
+
const t = {}, r = hn(this);
|
|
309
309
|
for (const i of this.$$s)
|
|
310
310
|
i in r && (t[i] = [e(i)]);
|
|
311
311
|
for (const i of this.attributes) {
|
|
312
312
|
const o = this.$$g_p(i.name);
|
|
313
|
-
o in this.$$d || (this.$$d[o] =
|
|
313
|
+
o in this.$$d || (this.$$d[o] = Ae(o, i.value, this.$$p_d, "toProp"));
|
|
314
314
|
}
|
|
315
315
|
for (const i in this.$$p_d)
|
|
316
316
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -328,7 +328,7 @@ typeof HTMLElement == "function" && (vr = class extends HTMLElement {
|
|
|
328
328
|
this.$$r = !0;
|
|
329
329
|
for (const i in this.$$p_d)
|
|
330
330
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
331
|
-
const o =
|
|
331
|
+
const o = Ae(
|
|
332
332
|
i,
|
|
333
333
|
this.$$d[i],
|
|
334
334
|
this.$$p_d,
|
|
@@ -350,7 +350,7 @@ typeof HTMLElement == "function" && (vr = class extends HTMLElement {
|
|
|
350
350
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
351
351
|
// and setting attributes through setAttribute etc, this is helpful
|
|
352
352
|
attributeChangedCallback(e, t, r) {
|
|
353
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
353
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Ae(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
354
354
|
}
|
|
355
355
|
disconnectedCallback() {
|
|
356
356
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -363,7 +363,7 @@ typeof HTMLElement == "function" && (vr = class extends HTMLElement {
|
|
|
363
363
|
) || e;
|
|
364
364
|
}
|
|
365
365
|
});
|
|
366
|
-
function
|
|
366
|
+
function Ae(e, t, r, n) {
|
|
367
367
|
const i = r[e]?.type;
|
|
368
368
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
369
369
|
return t;
|
|
@@ -392,8 +392,8 @@ function Me(e, t, r, n) {
|
|
|
392
392
|
return t;
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
|
-
function
|
|
396
|
-
let a = class extends
|
|
395
|
+
function wn(e, t, r, n, i, o) {
|
|
396
|
+
let a = class extends dr {
|
|
397
397
|
constructor() {
|
|
398
398
|
super(e, r, i), this.$$p_d = t;
|
|
399
399
|
}
|
|
@@ -408,8 +408,8 @@ function An(e, t, r, n, i, o) {
|
|
|
408
408
|
get() {
|
|
409
409
|
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
410
410
|
},
|
|
411
|
-
set(
|
|
412
|
-
|
|
411
|
+
set(l) {
|
|
412
|
+
l = Ae(s, l, t), this.$$d[s] = l, this.$$c?.$set({ [s]: l });
|
|
413
413
|
}
|
|
414
414
|
});
|
|
415
415
|
}), n.forEach((s) => {
|
|
@@ -421,7 +421,7 @@ function An(e, t, r, n, i, o) {
|
|
|
421
421
|
}), e.element = /** @type {any} */
|
|
422
422
|
a, a;
|
|
423
423
|
}
|
|
424
|
-
class
|
|
424
|
+
class Sn {
|
|
425
425
|
/**
|
|
426
426
|
* ### PRIVATE API
|
|
427
427
|
*
|
|
@@ -440,7 +440,7 @@ class Mn {
|
|
|
440
440
|
$$set = void 0;
|
|
441
441
|
/** @returns {void} */
|
|
442
442
|
$destroy() {
|
|
443
|
-
|
|
443
|
+
_n(this, 1), this.$destroy = $;
|
|
444
444
|
}
|
|
445
445
|
/**
|
|
446
446
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -449,7 +449,7 @@ class Mn {
|
|
|
449
449
|
* @returns {() => void}
|
|
450
450
|
*/
|
|
451
451
|
$on(t, r) {
|
|
452
|
-
if (!
|
|
452
|
+
if (!dt(r))
|
|
453
453
|
return $;
|
|
454
454
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
455
455
|
return n.push(r), () => {
|
|
@@ -462,11 +462,11 @@ class Mn {
|
|
|
462
462
|
* @returns {void}
|
|
463
463
|
*/
|
|
464
464
|
$set(t) {
|
|
465
|
-
this.$$set && !
|
|
465
|
+
this.$$set && !rn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
|
-
const
|
|
469
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
468
|
+
const Hn = "4";
|
|
469
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Hn);
|
|
470
470
|
/*! *****************************************************************************
|
|
471
471
|
Copyright (c) Microsoft Corporation.
|
|
472
472
|
|
|
@@ -481,24 +481,43 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
481
481
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
482
482
|
PERFORMANCE OF THIS SOFTWARE.
|
|
483
483
|
***************************************************************************** */
|
|
484
|
-
var
|
|
485
|
-
return
|
|
484
|
+
var et = function(e, t) {
|
|
485
|
+
return et = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
486
486
|
r.__proto__ = n;
|
|
487
487
|
} || function(r, n) {
|
|
488
488
|
for (var i in n)
|
|
489
489
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
490
|
-
},
|
|
490
|
+
}, et(e, t);
|
|
491
491
|
};
|
|
492
|
-
function
|
|
492
|
+
function Y(e, t) {
|
|
493
493
|
if (typeof t != "function" && t !== null)
|
|
494
494
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
495
|
-
|
|
495
|
+
et(e, t);
|
|
496
496
|
function r() {
|
|
497
497
|
this.constructor = e;
|
|
498
498
|
}
|
|
499
499
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
500
500
|
}
|
|
501
|
-
function
|
|
501
|
+
var w = function() {
|
|
502
|
+
return w = Object.assign || function(t) {
|
|
503
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
504
|
+
r = arguments[n];
|
|
505
|
+
for (var o in r)
|
|
506
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
507
|
+
}
|
|
508
|
+
return t;
|
|
509
|
+
}, w.apply(this, arguments);
|
|
510
|
+
};
|
|
511
|
+
function Tn(e, t) {
|
|
512
|
+
var r = {};
|
|
513
|
+
for (var n in e)
|
|
514
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
515
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
516
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
517
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
518
|
+
return r;
|
|
519
|
+
}
|
|
520
|
+
function tt(e) {
|
|
502
521
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
503
522
|
if (r)
|
|
504
523
|
return r.call(e);
|
|
@@ -510,7 +529,7 @@ function it(e) {
|
|
|
510
529
|
};
|
|
511
530
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
512
531
|
}
|
|
513
|
-
function
|
|
532
|
+
function rt(e, t) {
|
|
514
533
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
515
534
|
if (!r)
|
|
516
535
|
return e;
|
|
@@ -530,22 +549,22 @@ function ot(e, t) {
|
|
|
530
549
|
}
|
|
531
550
|
return o;
|
|
532
551
|
}
|
|
533
|
-
function
|
|
534
|
-
if (arguments.length === 2)
|
|
552
|
+
function le(e, t, r) {
|
|
553
|
+
if (r || arguments.length === 2)
|
|
535
554
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
536
555
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
537
556
|
return e.concat(o || t);
|
|
538
557
|
}
|
|
539
|
-
function
|
|
558
|
+
function Z(e) {
|
|
540
559
|
return typeof e == "function";
|
|
541
560
|
}
|
|
542
|
-
function
|
|
561
|
+
function mr(e) {
|
|
543
562
|
var t = function(n) {
|
|
544
563
|
Error.call(n), n.stack = new Error().stack;
|
|
545
564
|
}, r = e(t);
|
|
546
565
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
547
566
|
}
|
|
548
|
-
var
|
|
567
|
+
var ze = mr(function(e) {
|
|
549
568
|
return function(r) {
|
|
550
569
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
551
570
|
` + r.map(function(n, i) {
|
|
@@ -554,13 +573,13 @@ var Qe = yr(function(e) {
|
|
|
554
573
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
555
574
|
};
|
|
556
575
|
});
|
|
557
|
-
function
|
|
576
|
+
function nt(e, t) {
|
|
558
577
|
if (e) {
|
|
559
578
|
var r = e.indexOf(t);
|
|
560
579
|
0 <= r && e.splice(r, 1);
|
|
561
580
|
}
|
|
562
581
|
}
|
|
563
|
-
var
|
|
582
|
+
var Ue = function() {
|
|
564
583
|
function e(t) {
|
|
565
584
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
566
585
|
}
|
|
@@ -572,15 +591,15 @@ var ke = function() {
|
|
|
572
591
|
if (a)
|
|
573
592
|
if (this._parentage = null, Array.isArray(a))
|
|
574
593
|
try {
|
|
575
|
-
for (var s =
|
|
576
|
-
var
|
|
577
|
-
|
|
594
|
+
for (var s = tt(a), l = s.next(); !l.done; l = s.next()) {
|
|
595
|
+
var u = l.value;
|
|
596
|
+
u.remove(this);
|
|
578
597
|
}
|
|
579
598
|
} catch (v) {
|
|
580
599
|
t = { error: v };
|
|
581
600
|
} finally {
|
|
582
601
|
try {
|
|
583
|
-
|
|
602
|
+
l && !l.done && (r = s.return) && r.call(s);
|
|
584
603
|
} finally {
|
|
585
604
|
if (t)
|
|
586
605
|
throw t.error;
|
|
@@ -589,29 +608,29 @@ var ke = function() {
|
|
|
589
608
|
else
|
|
590
609
|
a.remove(this);
|
|
591
610
|
var h = this.initialTeardown;
|
|
592
|
-
if (
|
|
611
|
+
if (Z(h))
|
|
593
612
|
try {
|
|
594
613
|
h();
|
|
595
614
|
} catch (v) {
|
|
596
|
-
o = v instanceof
|
|
615
|
+
o = v instanceof ze ? v.errors : [v];
|
|
597
616
|
}
|
|
598
617
|
var c = this._finalizers;
|
|
599
618
|
if (c) {
|
|
600
619
|
this._finalizers = null;
|
|
601
620
|
try {
|
|
602
|
-
for (var f =
|
|
603
|
-
var g =
|
|
621
|
+
for (var f = tt(c), m = f.next(); !m.done; m = f.next()) {
|
|
622
|
+
var g = m.value;
|
|
604
623
|
try {
|
|
605
|
-
|
|
624
|
+
Mt(g);
|
|
606
625
|
} catch (v) {
|
|
607
|
-
o = o ?? [], v instanceof
|
|
626
|
+
o = o ?? [], v instanceof ze ? o = le(le([], rt(o)), rt(v.errors)) : o.push(v);
|
|
608
627
|
}
|
|
609
628
|
}
|
|
610
629
|
} catch (v) {
|
|
611
630
|
n = { error: v };
|
|
612
631
|
} finally {
|
|
613
632
|
try {
|
|
614
|
-
|
|
633
|
+
m && !m.done && (i = f.return) && i.call(f);
|
|
615
634
|
} finally {
|
|
616
635
|
if (n)
|
|
617
636
|
throw n.error;
|
|
@@ -619,13 +638,13 @@ var ke = function() {
|
|
|
619
638
|
}
|
|
620
639
|
}
|
|
621
640
|
if (o)
|
|
622
|
-
throw new
|
|
641
|
+
throw new ze(o);
|
|
623
642
|
}
|
|
624
643
|
}, e.prototype.add = function(t) {
|
|
625
644
|
var r;
|
|
626
645
|
if (t && t !== this)
|
|
627
646
|
if (this.closed)
|
|
628
|
-
|
|
647
|
+
Mt(t);
|
|
629
648
|
else {
|
|
630
649
|
if (t instanceof e) {
|
|
631
650
|
if (t.closed || t._hasParent(this))
|
|
@@ -642,52 +661,52 @@ var ke = function() {
|
|
|
642
661
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
643
662
|
}, e.prototype._removeParent = function(t) {
|
|
644
663
|
var r = this._parentage;
|
|
645
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
664
|
+
r === t ? this._parentage = null : Array.isArray(r) && nt(r, t);
|
|
646
665
|
}, e.prototype.remove = function(t) {
|
|
647
666
|
var r = this._finalizers;
|
|
648
|
-
r &&
|
|
667
|
+
r && nt(r, t), t instanceof e && t._removeParent(this);
|
|
649
668
|
}, e.EMPTY = function() {
|
|
650
669
|
var t = new e();
|
|
651
670
|
return t.closed = !0, t;
|
|
652
671
|
}(), e;
|
|
653
|
-
}(),
|
|
654
|
-
function
|
|
655
|
-
return e instanceof
|
|
672
|
+
}(), pr = Ue.EMPTY;
|
|
673
|
+
function gr(e) {
|
|
674
|
+
return e instanceof Ue || e && "closed" in e && Z(e.remove) && Z(e.add) && Z(e.unsubscribe);
|
|
656
675
|
}
|
|
657
|
-
function
|
|
658
|
-
|
|
676
|
+
function Mt(e) {
|
|
677
|
+
Z(e) ? e() : e.unsubscribe();
|
|
659
678
|
}
|
|
660
|
-
var
|
|
679
|
+
var On = {
|
|
661
680
|
Promise: void 0
|
|
662
|
-
},
|
|
681
|
+
}, Mn = {
|
|
663
682
|
setTimeout: function(e, t) {
|
|
664
683
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
665
684
|
r[n - 2] = arguments[n];
|
|
666
|
-
return setTimeout.apply(void 0,
|
|
685
|
+
return setTimeout.apply(void 0, le([e, t], rt(r)));
|
|
667
686
|
},
|
|
668
687
|
clearTimeout: function(e) {
|
|
669
688
|
return clearTimeout(e);
|
|
670
689
|
},
|
|
671
690
|
delegate: void 0
|
|
672
691
|
};
|
|
673
|
-
function
|
|
674
|
-
|
|
692
|
+
function An(e) {
|
|
693
|
+
Mn.setTimeout(function() {
|
|
675
694
|
throw e;
|
|
676
695
|
});
|
|
677
696
|
}
|
|
678
|
-
function
|
|
697
|
+
function At() {
|
|
679
698
|
}
|
|
680
|
-
function
|
|
699
|
+
function Le(e) {
|
|
681
700
|
e();
|
|
682
701
|
}
|
|
683
|
-
var
|
|
684
|
-
|
|
702
|
+
var br = function(e) {
|
|
703
|
+
Y(t, e);
|
|
685
704
|
function t(r) {
|
|
686
705
|
var n = e.call(this) || this;
|
|
687
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
706
|
+
return n.isStopped = !1, r ? (n.destination = r, gr(r) && r.add(n)) : n.destination = Pn, n;
|
|
688
707
|
}
|
|
689
708
|
return t.create = function(r, n, i) {
|
|
690
|
-
return new
|
|
709
|
+
return new it(r, n, i);
|
|
691
710
|
}, t.prototype.next = function(r) {
|
|
692
711
|
this.isStopped || this._next(r);
|
|
693
712
|
}, t.prototype.error = function(r) {
|
|
@@ -711,7 +730,7 @@ var Er = function(e) {
|
|
|
711
730
|
this.unsubscribe();
|
|
712
731
|
}
|
|
713
732
|
}, t;
|
|
714
|
-
}(
|
|
733
|
+
}(Ue), Ln = function() {
|
|
715
734
|
function e(t) {
|
|
716
735
|
this.partialObserver = t;
|
|
717
736
|
}
|
|
@@ -742,43 +761,43 @@ var Er = function(e) {
|
|
|
742
761
|
Oe(r);
|
|
743
762
|
}
|
|
744
763
|
}, e;
|
|
745
|
-
}(),
|
|
746
|
-
|
|
764
|
+
}(), it = function(e) {
|
|
765
|
+
Y(t, e);
|
|
747
766
|
function t(r, n, i) {
|
|
748
767
|
var o = e.call(this) || this, a;
|
|
749
|
-
return
|
|
768
|
+
return Z(r) || !r ? a = {
|
|
750
769
|
next: r ?? void 0,
|
|
751
770
|
error: n ?? void 0,
|
|
752
771
|
complete: i ?? void 0
|
|
753
|
-
} : a = r, o.destination = new
|
|
772
|
+
} : a = r, o.destination = new Ln(a), o;
|
|
754
773
|
}
|
|
755
774
|
return t;
|
|
756
|
-
}(
|
|
775
|
+
}(br);
|
|
757
776
|
function Oe(e) {
|
|
758
|
-
|
|
777
|
+
An(e);
|
|
759
778
|
}
|
|
760
|
-
function
|
|
779
|
+
function Bn(e) {
|
|
761
780
|
throw e;
|
|
762
781
|
}
|
|
763
|
-
var
|
|
782
|
+
var Pn = {
|
|
764
783
|
closed: !0,
|
|
765
|
-
next:
|
|
766
|
-
error:
|
|
767
|
-
complete:
|
|
768
|
-
},
|
|
784
|
+
next: At,
|
|
785
|
+
error: Bn,
|
|
786
|
+
complete: At
|
|
787
|
+
}, In = function() {
|
|
769
788
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
770
789
|
}();
|
|
771
|
-
function
|
|
790
|
+
function Cn(e) {
|
|
772
791
|
return e;
|
|
773
792
|
}
|
|
774
|
-
function
|
|
775
|
-
return e.length === 0 ?
|
|
793
|
+
function Nn(e) {
|
|
794
|
+
return e.length === 0 ? Cn : e.length === 1 ? e[0] : function(r) {
|
|
776
795
|
return e.reduce(function(n, i) {
|
|
777
796
|
return i(n);
|
|
778
797
|
}, r);
|
|
779
798
|
};
|
|
780
799
|
}
|
|
781
|
-
var
|
|
800
|
+
var Lt = function() {
|
|
782
801
|
function e(t) {
|
|
783
802
|
t && (this._subscribe = t);
|
|
784
803
|
}
|
|
@@ -786,10 +805,10 @@ var Nt = function() {
|
|
|
786
805
|
var r = new e();
|
|
787
806
|
return r.source = this, r.operator = t, r;
|
|
788
807
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
789
|
-
var i = this, o =
|
|
790
|
-
return
|
|
791
|
-
var a = i, s = a.operator,
|
|
792
|
-
o.add(s ? s.call(o,
|
|
808
|
+
var i = this, o = Un(t) ? t : new it(t, r, n);
|
|
809
|
+
return Le(function() {
|
|
810
|
+
var a = i, s = a.operator, l = a.source;
|
|
811
|
+
o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
793
812
|
}), o;
|
|
794
813
|
}, e.prototype._trySubscribe = function(t) {
|
|
795
814
|
try {
|
|
@@ -799,13 +818,13 @@ var Nt = function() {
|
|
|
799
818
|
}
|
|
800
819
|
}, e.prototype.forEach = function(t, r) {
|
|
801
820
|
var n = this;
|
|
802
|
-
return r =
|
|
803
|
-
var a = new
|
|
821
|
+
return r = Bt(r), new r(function(i, o) {
|
|
822
|
+
var a = new it({
|
|
804
823
|
next: function(s) {
|
|
805
824
|
try {
|
|
806
825
|
t(s);
|
|
807
|
-
} catch (
|
|
808
|
-
o(
|
|
826
|
+
} catch (l) {
|
|
827
|
+
o(l), a.unsubscribe();
|
|
809
828
|
}
|
|
810
829
|
},
|
|
811
830
|
error: o,
|
|
@@ -816,15 +835,15 @@ var Nt = function() {
|
|
|
816
835
|
}, e.prototype._subscribe = function(t) {
|
|
817
836
|
var r;
|
|
818
837
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
819
|
-
}, e.prototype[
|
|
838
|
+
}, e.prototype[In] = function() {
|
|
820
839
|
return this;
|
|
821
840
|
}, e.prototype.pipe = function() {
|
|
822
841
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
823
842
|
t[r] = arguments[r];
|
|
824
|
-
return
|
|
843
|
+
return Nn(t)(this);
|
|
825
844
|
}, e.prototype.toPromise = function(t) {
|
|
826
845
|
var r = this;
|
|
827
|
-
return t =
|
|
846
|
+
return t = Bt(t), new t(function(n, i) {
|
|
828
847
|
var o;
|
|
829
848
|
r.subscribe(function(a) {
|
|
830
849
|
return o = a;
|
|
@@ -838,45 +857,45 @@ var Nt = function() {
|
|
|
838
857
|
return new e(t);
|
|
839
858
|
}, e;
|
|
840
859
|
}();
|
|
841
|
-
function
|
|
860
|
+
function Bt(e) {
|
|
842
861
|
var t;
|
|
843
|
-
return (t = e ??
|
|
862
|
+
return (t = e ?? On.Promise) !== null && t !== void 0 ? t : Promise;
|
|
844
863
|
}
|
|
845
|
-
function
|
|
846
|
-
return e &&
|
|
864
|
+
function Rn(e) {
|
|
865
|
+
return e && Z(e.next) && Z(e.error) && Z(e.complete);
|
|
847
866
|
}
|
|
848
|
-
function
|
|
849
|
-
return e && e instanceof
|
|
867
|
+
function Un(e) {
|
|
868
|
+
return e && e instanceof br || Rn(e) && gr(e);
|
|
850
869
|
}
|
|
851
|
-
var
|
|
870
|
+
var kn = mr(function(e) {
|
|
852
871
|
return function() {
|
|
853
872
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
854
873
|
};
|
|
855
|
-
}),
|
|
856
|
-
|
|
874
|
+
}), vr = function(e) {
|
|
875
|
+
Y(t, e);
|
|
857
876
|
function t() {
|
|
858
877
|
var r = e.call(this) || this;
|
|
859
878
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
860
879
|
}
|
|
861
880
|
return t.prototype.lift = function(r) {
|
|
862
|
-
var n = new
|
|
881
|
+
var n = new Pt(this, this);
|
|
863
882
|
return n.operator = r, n;
|
|
864
883
|
}, t.prototype._throwIfClosed = function() {
|
|
865
884
|
if (this.closed)
|
|
866
|
-
throw new
|
|
885
|
+
throw new kn();
|
|
867
886
|
}, t.prototype.next = function(r) {
|
|
868
887
|
var n = this;
|
|
869
|
-
|
|
888
|
+
Le(function() {
|
|
870
889
|
var i, o;
|
|
871
890
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
872
891
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
873
892
|
try {
|
|
874
|
-
for (var a =
|
|
875
|
-
var
|
|
876
|
-
|
|
893
|
+
for (var a = tt(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
894
|
+
var l = s.value;
|
|
895
|
+
l.next(r);
|
|
877
896
|
}
|
|
878
|
-
} catch (
|
|
879
|
-
i = { error:
|
|
897
|
+
} catch (u) {
|
|
898
|
+
i = { error: u };
|
|
880
899
|
} finally {
|
|
881
900
|
try {
|
|
882
901
|
s && !s.done && (o = a.return) && o.call(a);
|
|
@@ -889,7 +908,7 @@ var $n = yr(function(e) {
|
|
|
889
908
|
});
|
|
890
909
|
}, t.prototype.error = function(r) {
|
|
891
910
|
var n = this;
|
|
892
|
-
|
|
911
|
+
Le(function() {
|
|
893
912
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
894
913
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
895
914
|
for (var i = n.observers; i.length; )
|
|
@@ -898,7 +917,7 @@ var $n = yr(function(e) {
|
|
|
898
917
|
});
|
|
899
918
|
}, t.prototype.complete = function() {
|
|
900
919
|
var r = this;
|
|
901
|
-
|
|
920
|
+
Le(function() {
|
|
902
921
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
903
922
|
r.isStopped = !0;
|
|
904
923
|
for (var n = r.observers; n.length; )
|
|
@@ -920,20 +939,20 @@ var $n = yr(function(e) {
|
|
|
920
939
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
921
940
|
}, t.prototype._innerSubscribe = function(r) {
|
|
922
941
|
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
923
|
-
return o || a ?
|
|
924
|
-
n.currentObservers = null,
|
|
942
|
+
return o || a ? pr : (this.currentObservers = null, s.push(r), new Ue(function() {
|
|
943
|
+
n.currentObservers = null, nt(s, r);
|
|
925
944
|
}));
|
|
926
945
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
927
946
|
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
928
947
|
i ? r.error(o) : a && r.complete();
|
|
929
948
|
}, t.prototype.asObservable = function() {
|
|
930
|
-
var r = new
|
|
949
|
+
var r = new Lt();
|
|
931
950
|
return r.source = this, r;
|
|
932
951
|
}, t.create = function(r, n) {
|
|
933
|
-
return new
|
|
952
|
+
return new Pt(r, n);
|
|
934
953
|
}, t;
|
|
935
|
-
}(
|
|
936
|
-
|
|
954
|
+
}(Lt), Pt = function(e) {
|
|
955
|
+
Y(t, e);
|
|
937
956
|
function t(r, n) {
|
|
938
957
|
var i = e.call(this) || this;
|
|
939
958
|
return i.destination = r, i.source = n, i;
|
|
@@ -949,60 +968,60 @@ var $n = yr(function(e) {
|
|
|
949
968
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
950
969
|
}, t.prototype._subscribe = function(r) {
|
|
951
970
|
var n, i;
|
|
952
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
971
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : pr;
|
|
953
972
|
}, t;
|
|
954
|
-
}(
|
|
973
|
+
}(vr), yr = {
|
|
955
974
|
now: function() {
|
|
956
|
-
return (
|
|
975
|
+
return (yr.delegate || Date).now();
|
|
957
976
|
},
|
|
958
977
|
delegate: void 0
|
|
959
|
-
},
|
|
960
|
-
|
|
978
|
+
}, Fn = function(e) {
|
|
979
|
+
Y(t, e);
|
|
961
980
|
function t(r, n, i) {
|
|
962
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
981
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = yr);
|
|
963
982
|
var o = e.call(this) || this;
|
|
964
983
|
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;
|
|
965
984
|
}
|
|
966
985
|
return t.prototype.next = function(r) {
|
|
967
|
-
var n = this, i = n.isStopped, o = n._buffer, a = n._infiniteTimeWindow, s = n._timestampProvider,
|
|
968
|
-
i || (o.push(r), !a && o.push(s.now() +
|
|
986
|
+
var n = this, i = n.isStopped, o = n._buffer, a = n._infiniteTimeWindow, s = n._timestampProvider, l = n._windowTime;
|
|
987
|
+
i || (o.push(r), !a && o.push(s.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
969
988
|
}, t.prototype._subscribe = function(r) {
|
|
970
989
|
this._throwIfClosed(), this._trimBuffer();
|
|
971
|
-
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(),
|
|
972
|
-
r.next(s[
|
|
990
|
+
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(), l = 0; l < s.length && !r.closed; l += o ? 1 : 2)
|
|
991
|
+
r.next(s[l]);
|
|
973
992
|
return this._checkFinalizedStatuses(r), n;
|
|
974
993
|
}, t.prototype._trimBuffer = function() {
|
|
975
994
|
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, a = r._infiniteTimeWindow, s = (a ? 1 : 2) * n;
|
|
976
995
|
if (n < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
|
|
977
|
-
for (var
|
|
978
|
-
|
|
979
|
-
|
|
996
|
+
for (var l = i.now(), u = 0, h = 1; h < o.length && o[h] <= l; h += 2)
|
|
997
|
+
u = h;
|
|
998
|
+
u && o.splice(0, u + 1);
|
|
980
999
|
}
|
|
981
1000
|
}, t;
|
|
982
|
-
}(
|
|
983
|
-
const
|
|
984
|
-
if (
|
|
985
|
-
const r = new
|
|
986
|
-
|
|
1001
|
+
}(vr);
|
|
1002
|
+
const It = [], Ct = {}, Dn = (e, t = 0) => {
|
|
1003
|
+
if (It.indexOf(e) == -1) {
|
|
1004
|
+
const r = new Fn(t);
|
|
1005
|
+
Ct[e] = r, It.push(e);
|
|
987
1006
|
}
|
|
988
|
-
return
|
|
1007
|
+
return Ct[e];
|
|
989
1008
|
}, oe = [];
|
|
990
|
-
function
|
|
1009
|
+
function Gn(e, t) {
|
|
991
1010
|
return {
|
|
992
|
-
subscribe:
|
|
1011
|
+
subscribe: ke(e, t).subscribe
|
|
993
1012
|
};
|
|
994
1013
|
}
|
|
995
|
-
function
|
|
1014
|
+
function ke(e, t = $) {
|
|
996
1015
|
let r;
|
|
997
1016
|
const n = /* @__PURE__ */ new Set();
|
|
998
1017
|
function i(s) {
|
|
999
|
-
if (
|
|
1000
|
-
const
|
|
1001
|
-
for (const
|
|
1002
|
-
|
|
1003
|
-
if (
|
|
1004
|
-
for (let
|
|
1005
|
-
oe[
|
|
1018
|
+
if (hr(e, s) && (e = s, r)) {
|
|
1019
|
+
const l = !oe.length;
|
|
1020
|
+
for (const u of n)
|
|
1021
|
+
u[1](), oe.push(u, e);
|
|
1022
|
+
if (l) {
|
|
1023
|
+
for (let u = 0; u < oe.length; u += 2)
|
|
1024
|
+
oe[u][0](oe[u + 1]);
|
|
1006
1025
|
oe.length = 0;
|
|
1007
1026
|
}
|
|
1008
1027
|
}
|
|
@@ -1010,109 +1029,109 @@ function Fe(e, t = $) {
|
|
|
1010
1029
|
function o(s) {
|
|
1011
1030
|
i(s(e));
|
|
1012
1031
|
}
|
|
1013
|
-
function a(s,
|
|
1014
|
-
const
|
|
1015
|
-
return n.add(
|
|
1016
|
-
n.delete(
|
|
1032
|
+
function a(s, l = $) {
|
|
1033
|
+
const u = [s, l];
|
|
1034
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || $), s(e), () => {
|
|
1035
|
+
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1017
1036
|
};
|
|
1018
1037
|
}
|
|
1019
1038
|
return { set: i, update: o, subscribe: a };
|
|
1020
1039
|
}
|
|
1021
|
-
function
|
|
1040
|
+
function pe(e, t, r) {
|
|
1022
1041
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1023
1042
|
if (!i.every(Boolean))
|
|
1024
1043
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1025
1044
|
const o = t.length < 2;
|
|
1026
|
-
return
|
|
1027
|
-
let
|
|
1028
|
-
const
|
|
1045
|
+
return Gn(r, (a, s) => {
|
|
1046
|
+
let l = !1;
|
|
1047
|
+
const u = [];
|
|
1029
1048
|
let h = 0, c = $;
|
|
1030
1049
|
const f = () => {
|
|
1031
1050
|
if (h)
|
|
1032
1051
|
return;
|
|
1033
1052
|
c();
|
|
1034
|
-
const g = t(n ?
|
|
1035
|
-
o ? a(g) : c =
|
|
1036
|
-
},
|
|
1037
|
-
(g, v) =>
|
|
1053
|
+
const g = t(n ? u[0] : u, a, s);
|
|
1054
|
+
o ? a(g) : c = dt(g) ? g : $;
|
|
1055
|
+
}, m = i.map(
|
|
1056
|
+
(g, v) => cr(
|
|
1038
1057
|
g,
|
|
1039
|
-
(
|
|
1040
|
-
|
|
1058
|
+
(S) => {
|
|
1059
|
+
u[v] = S, h &= ~(1 << v), l && f();
|
|
1041
1060
|
},
|
|
1042
1061
|
() => {
|
|
1043
1062
|
h |= 1 << v;
|
|
1044
1063
|
}
|
|
1045
1064
|
)
|
|
1046
1065
|
);
|
|
1047
|
-
return
|
|
1048
|
-
|
|
1066
|
+
return l = !0, f(), function() {
|
|
1067
|
+
de(m), c(), l = !1;
|
|
1049
1068
|
};
|
|
1050
1069
|
});
|
|
1051
1070
|
}
|
|
1052
|
-
function
|
|
1071
|
+
function $n(e) {
|
|
1053
1072
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1054
1073
|
}
|
|
1055
|
-
var
|
|
1056
|
-
return
|
|
1074
|
+
var jn = function(t) {
|
|
1075
|
+
return Wn(t) && !Vn(t);
|
|
1057
1076
|
};
|
|
1058
|
-
function
|
|
1077
|
+
function Wn(e) {
|
|
1059
1078
|
return !!e && typeof e == "object";
|
|
1060
1079
|
}
|
|
1061
|
-
function
|
|
1080
|
+
function Vn(e) {
|
|
1062
1081
|
var t = Object.prototype.toString.call(e);
|
|
1063
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1082
|
+
return t === "[object RegExp]" || t === "[object Date]" || Zn(e);
|
|
1064
1083
|
}
|
|
1065
|
-
var
|
|
1066
|
-
function
|
|
1067
|
-
return e.$$typeof ===
|
|
1084
|
+
var Xn = typeof Symbol == "function" && Symbol.for, zn = Xn ? Symbol.for("react.element") : 60103;
|
|
1085
|
+
function Zn(e) {
|
|
1086
|
+
return e.$$typeof === zn;
|
|
1068
1087
|
}
|
|
1069
|
-
function
|
|
1088
|
+
function Qn(e) {
|
|
1070
1089
|
return Array.isArray(e) ? [] : {};
|
|
1071
1090
|
}
|
|
1072
|
-
function
|
|
1073
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? ue(
|
|
1091
|
+
function xe(e, t) {
|
|
1092
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ue(Qn(e), e, t) : e;
|
|
1074
1093
|
}
|
|
1075
|
-
function
|
|
1094
|
+
function Yn(e, t, r) {
|
|
1076
1095
|
return e.concat(t).map(function(n) {
|
|
1077
|
-
return
|
|
1096
|
+
return xe(n, r);
|
|
1078
1097
|
});
|
|
1079
1098
|
}
|
|
1080
|
-
function
|
|
1099
|
+
function qn(e, t) {
|
|
1081
1100
|
if (!t.customMerge)
|
|
1082
1101
|
return ue;
|
|
1083
1102
|
var r = t.customMerge(e);
|
|
1084
1103
|
return typeof r == "function" ? r : ue;
|
|
1085
1104
|
}
|
|
1086
|
-
function
|
|
1105
|
+
function Jn(e) {
|
|
1087
1106
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1088
1107
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1089
1108
|
}) : [];
|
|
1090
1109
|
}
|
|
1091
|
-
function
|
|
1092
|
-
return Object.keys(e).concat(
|
|
1110
|
+
function Nt(e) {
|
|
1111
|
+
return Object.keys(e).concat(Jn(e));
|
|
1093
1112
|
}
|
|
1094
|
-
function
|
|
1113
|
+
function _r(e, t) {
|
|
1095
1114
|
try {
|
|
1096
1115
|
return t in e;
|
|
1097
1116
|
} catch {
|
|
1098
1117
|
return !1;
|
|
1099
1118
|
}
|
|
1100
1119
|
}
|
|
1101
|
-
function
|
|
1102
|
-
return
|
|
1120
|
+
function Kn(e, t) {
|
|
1121
|
+
return _r(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1103
1122
|
}
|
|
1104
|
-
function
|
|
1123
|
+
function ei(e, t, r) {
|
|
1105
1124
|
var n = {};
|
|
1106
|
-
return r.isMergeableObject(e) &&
|
|
1107
|
-
n[i] =
|
|
1108
|
-
}),
|
|
1109
|
-
|
|
1125
|
+
return r.isMergeableObject(e) && Nt(e).forEach(function(i) {
|
|
1126
|
+
n[i] = xe(e[i], r);
|
|
1127
|
+
}), Nt(t).forEach(function(i) {
|
|
1128
|
+
Kn(e, i) || (_r(e, i) && r.isMergeableObject(t[i]) ? n[i] = qn(i, r)(e[i], t[i], r) : n[i] = xe(t[i], r));
|
|
1110
1129
|
}), n;
|
|
1111
1130
|
}
|
|
1112
1131
|
function ue(e, t, r) {
|
|
1113
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1132
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Yn, r.isMergeableObject = r.isMergeableObject || jn, r.cloneUnlessOtherwiseSpecified = xe;
|
|
1114
1133
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1115
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1134
|
+
return o ? n ? r.arrayMerge(e, t, r) : ei(e, t, r) : xe(t, r);
|
|
1116
1135
|
}
|
|
1117
1136
|
ue.all = function(t, r) {
|
|
1118
1137
|
if (!Array.isArray(t))
|
|
@@ -1121,81 +1140,39 @@ ue.all = function(t, r) {
|
|
|
1121
1140
|
return ue(n, i, r);
|
|
1122
1141
|
}, {});
|
|
1123
1142
|
};
|
|
1124
|
-
var
|
|
1125
|
-
const
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
r.__proto__ = n;
|
|
1129
|
-
} || function(r, n) {
|
|
1130
|
-
for (var i in n)
|
|
1131
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1132
|
-
}, lt(e, t);
|
|
1133
|
-
};
|
|
1134
|
-
function De(e, t) {
|
|
1135
|
-
if (typeof t != "function" && t !== null)
|
|
1136
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1137
|
-
lt(e, t);
|
|
1138
|
-
function r() {
|
|
1139
|
-
this.constructor = e;
|
|
1140
|
-
}
|
|
1141
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1142
|
-
}
|
|
1143
|
-
var X = function() {
|
|
1144
|
-
return X = Object.assign || function(t) {
|
|
1145
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1146
|
-
r = arguments[n];
|
|
1147
|
-
for (var o in r)
|
|
1148
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1149
|
-
}
|
|
1150
|
-
return t;
|
|
1151
|
-
}, X.apply(this, arguments);
|
|
1152
|
-
};
|
|
1153
|
-
function ui(e, t) {
|
|
1154
|
-
var r = {};
|
|
1155
|
-
for (var n in e)
|
|
1156
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1157
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1158
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1159
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1160
|
-
return r;
|
|
1161
|
-
}
|
|
1162
|
-
function Ye(e, t, r) {
|
|
1163
|
-
if (r || arguments.length === 2)
|
|
1164
|
-
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1165
|
-
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1166
|
-
return e.concat(o || Array.prototype.slice.call(t));
|
|
1167
|
-
}
|
|
1168
|
-
function qe(e, t) {
|
|
1169
|
-
var r = t && t.cache ? t.cache : mi, n = t && t.serializer ? t.serializer : pi, i = t && t.strategy ? t.strategy : ci;
|
|
1143
|
+
var ti = ue, ri = ti;
|
|
1144
|
+
const ni = /* @__PURE__ */ $n(ri);
|
|
1145
|
+
function Ze(e, t) {
|
|
1146
|
+
var r = t && t.cache ? t.cache : hi, n = t && t.serializer ? t.serializer : li, i = t && t.strategy ? t.strategy : ai;
|
|
1170
1147
|
return i(e, {
|
|
1171
1148
|
cache: r,
|
|
1172
1149
|
serializer: n
|
|
1173
1150
|
});
|
|
1174
1151
|
}
|
|
1175
|
-
function
|
|
1152
|
+
function ii(e) {
|
|
1176
1153
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1177
1154
|
}
|
|
1178
|
-
function
|
|
1179
|
-
var i =
|
|
1155
|
+
function oi(e, t, r, n) {
|
|
1156
|
+
var i = ii(n) ? n : r(n), o = t.get(i);
|
|
1180
1157
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1181
1158
|
}
|
|
1182
|
-
function
|
|
1159
|
+
function xr(e, t, r) {
|
|
1183
1160
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1184
1161
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1185
1162
|
}
|
|
1186
|
-
function
|
|
1163
|
+
function Er(e, t, r, n, i) {
|
|
1187
1164
|
return r.bind(t, e, n, i);
|
|
1188
1165
|
}
|
|
1189
|
-
function
|
|
1190
|
-
var r = e.length === 1 ?
|
|
1191
|
-
return
|
|
1166
|
+
function ai(e, t) {
|
|
1167
|
+
var r = e.length === 1 ? oi : xr;
|
|
1168
|
+
return Er(e, this, r, t.cache.create(), t.serializer);
|
|
1192
1169
|
}
|
|
1193
|
-
function
|
|
1194
|
-
return
|
|
1170
|
+
function si(e, t) {
|
|
1171
|
+
return Er(e, this, xr, t.cache.create(), t.serializer);
|
|
1195
1172
|
}
|
|
1196
|
-
var
|
|
1173
|
+
var li = function() {
|
|
1197
1174
|
return JSON.stringify(arguments);
|
|
1198
|
-
},
|
|
1175
|
+
}, ui = (
|
|
1199
1176
|
/** @class */
|
|
1200
1177
|
function() {
|
|
1201
1178
|
function e() {
|
|
@@ -1207,71 +1184,61 @@ var pi = function() {
|
|
|
1207
1184
|
this.cache[t] = r;
|
|
1208
1185
|
}, e;
|
|
1209
1186
|
}()
|
|
1210
|
-
),
|
|
1187
|
+
), hi = {
|
|
1211
1188
|
create: function() {
|
|
1212
|
-
return new
|
|
1189
|
+
return new ui();
|
|
1213
1190
|
}
|
|
1214
|
-
},
|
|
1215
|
-
variadic:
|
|
1216
|
-
},
|
|
1217
|
-
return Ne = Object.assign || function(t) {
|
|
1218
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1219
|
-
r = arguments[n];
|
|
1220
|
-
for (var o in r)
|
|
1221
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1222
|
-
}
|
|
1223
|
-
return t;
|
|
1224
|
-
}, Ne.apply(this, arguments);
|
|
1225
|
-
};
|
|
1226
|
-
var _;
|
|
1191
|
+
}, Qe = {
|
|
1192
|
+
variadic: si
|
|
1193
|
+
}, _;
|
|
1227
1194
|
(function(e) {
|
|
1228
1195
|
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";
|
|
1229
1196
|
})(_ || (_ = {}));
|
|
1230
|
-
var
|
|
1197
|
+
var O;
|
|
1231
1198
|
(function(e) {
|
|
1232
1199
|
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";
|
|
1233
|
-
})(
|
|
1234
|
-
var
|
|
1200
|
+
})(O || (O = {}));
|
|
1201
|
+
var he;
|
|
1235
1202
|
(function(e) {
|
|
1236
1203
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1237
|
-
})(
|
|
1238
|
-
function
|
|
1239
|
-
return e.type ===
|
|
1204
|
+
})(he || (he = {}));
|
|
1205
|
+
function Rt(e) {
|
|
1206
|
+
return e.type === O.literal;
|
|
1240
1207
|
}
|
|
1241
|
-
function
|
|
1242
|
-
return e.type ===
|
|
1208
|
+
function ci(e) {
|
|
1209
|
+
return e.type === O.argument;
|
|
1243
1210
|
}
|
|
1244
|
-
function
|
|
1245
|
-
return e.type ===
|
|
1211
|
+
function wr(e) {
|
|
1212
|
+
return e.type === O.number;
|
|
1246
1213
|
}
|
|
1247
|
-
function
|
|
1248
|
-
return e.type ===
|
|
1214
|
+
function Sr(e) {
|
|
1215
|
+
return e.type === O.date;
|
|
1249
1216
|
}
|
|
1250
|
-
function
|
|
1251
|
-
return e.type ===
|
|
1217
|
+
function Hr(e) {
|
|
1218
|
+
return e.type === O.time;
|
|
1252
1219
|
}
|
|
1253
|
-
function
|
|
1254
|
-
return e.type ===
|
|
1220
|
+
function Tr(e) {
|
|
1221
|
+
return e.type === O.select;
|
|
1255
1222
|
}
|
|
1256
|
-
function
|
|
1257
|
-
return e.type ===
|
|
1223
|
+
function Or(e) {
|
|
1224
|
+
return e.type === O.plural;
|
|
1258
1225
|
}
|
|
1259
|
-
function
|
|
1260
|
-
return e.type ===
|
|
1226
|
+
function fi(e) {
|
|
1227
|
+
return e.type === O.pound;
|
|
1261
1228
|
}
|
|
1262
|
-
function
|
|
1263
|
-
return e.type ===
|
|
1229
|
+
function Mr(e) {
|
|
1230
|
+
return e.type === O.tag;
|
|
1264
1231
|
}
|
|
1265
|
-
function
|
|
1266
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1232
|
+
function Ar(e) {
|
|
1233
|
+
return !!(e && typeof e == "object" && e.type === he.number);
|
|
1267
1234
|
}
|
|
1268
|
-
function
|
|
1269
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1235
|
+
function ot(e) {
|
|
1236
|
+
return !!(e && typeof e == "object" && e.type === he.dateTime);
|
|
1270
1237
|
}
|
|
1271
|
-
var
|
|
1272
|
-
function
|
|
1238
|
+
var Lr = /[ \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;
|
|
1239
|
+
function mi(e) {
|
|
1273
1240
|
var t = {};
|
|
1274
|
-
return e.replace(
|
|
1241
|
+
return e.replace(di, function(r) {
|
|
1275
1242
|
var n = r.length;
|
|
1276
1243
|
switch (r[0]) {
|
|
1277
1244
|
case "G":
|
|
@@ -1360,46 +1327,36 @@ function yi(e) {
|
|
|
1360
1327
|
return "";
|
|
1361
1328
|
}), t;
|
|
1362
1329
|
}
|
|
1363
|
-
var
|
|
1364
|
-
|
|
1365
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1366
|
-
r = arguments[n];
|
|
1367
|
-
for (var o in r)
|
|
1368
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1369
|
-
}
|
|
1370
|
-
return t;
|
|
1371
|
-
}, M.apply(this, arguments);
|
|
1372
|
-
};
|
|
1373
|
-
var _i = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1374
|
-
function xi(e) {
|
|
1330
|
+
var pi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1331
|
+
function gi(e) {
|
|
1375
1332
|
if (e.length === 0)
|
|
1376
1333
|
throw new Error("Number skeleton cannot be empty");
|
|
1377
|
-
for (var t = e.split(
|
|
1334
|
+
for (var t = e.split(pi).filter(function(f) {
|
|
1378
1335
|
return f.length > 0;
|
|
1379
1336
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1380
1337
|
var o = i[n], a = o.split("/");
|
|
1381
1338
|
if (a.length === 0)
|
|
1382
1339
|
throw new Error("Invalid number skeleton");
|
|
1383
|
-
for (var s = a[0],
|
|
1384
|
-
var c = h[
|
|
1340
|
+
for (var s = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
1341
|
+
var c = h[u];
|
|
1385
1342
|
if (c.length === 0)
|
|
1386
1343
|
throw new Error("Invalid number skeleton");
|
|
1387
1344
|
}
|
|
1388
|
-
r.push({ stem: s, options:
|
|
1345
|
+
r.push({ stem: s, options: l });
|
|
1389
1346
|
}
|
|
1390
1347
|
return r;
|
|
1391
1348
|
}
|
|
1392
|
-
function
|
|
1349
|
+
function bi(e) {
|
|
1393
1350
|
return e.replace(/^(.*?)-/, "");
|
|
1394
1351
|
}
|
|
1395
|
-
var
|
|
1396
|
-
function
|
|
1352
|
+
var Ut = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Br = /^(@+)?(\+|#+)?[rs]?$/g, vi = /(\*)(0+)|(#+)(0+)|(0+)/g, Pr = /^(0+)$/;
|
|
1353
|
+
function kt(e) {
|
|
1397
1354
|
var t = {};
|
|
1398
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1355
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Br, function(r, n, i) {
|
|
1399
1356
|
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)), "";
|
|
1400
1357
|
}), t;
|
|
1401
1358
|
}
|
|
1402
|
-
function
|
|
1359
|
+
function Ir(e) {
|
|
1403
1360
|
switch (e) {
|
|
1404
1361
|
case "sign-auto":
|
|
1405
1362
|
return {
|
|
@@ -1439,7 +1396,7 @@ function kr(e) {
|
|
|
1439
1396
|
};
|
|
1440
1397
|
}
|
|
1441
1398
|
}
|
|
1442
|
-
function
|
|
1399
|
+
function yi(e) {
|
|
1443
1400
|
var t;
|
|
1444
1401
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1445
1402
|
notation: "engineering"
|
|
@@ -1447,17 +1404,17 @@ function Si(e) {
|
|
|
1447
1404
|
notation: "scientific"
|
|
1448
1405
|
}, e = e.slice(1)), t) {
|
|
1449
1406
|
var r = e.slice(0, 2);
|
|
1450
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1407
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Pr.test(e))
|
|
1451
1408
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1452
1409
|
t.minimumIntegerDigits = e.length;
|
|
1453
1410
|
}
|
|
1454
1411
|
return t;
|
|
1455
1412
|
}
|
|
1456
|
-
function
|
|
1457
|
-
var t = {}, r =
|
|
1413
|
+
function Ft(e) {
|
|
1414
|
+
var t = {}, r = Ir(e);
|
|
1458
1415
|
return r || t;
|
|
1459
1416
|
}
|
|
1460
|
-
function
|
|
1417
|
+
function _i(e) {
|
|
1461
1418
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1462
1419
|
var i = n[r];
|
|
1463
1420
|
switch (i.stem) {
|
|
@@ -1481,7 +1438,7 @@ function Hi(e) {
|
|
|
1481
1438
|
continue;
|
|
1482
1439
|
case "measure-unit":
|
|
1483
1440
|
case "unit":
|
|
1484
|
-
t.style = "unit", t.unit =
|
|
1441
|
+
t.style = "unit", t.unit = bi(i.options[0]);
|
|
1485
1442
|
continue;
|
|
1486
1443
|
case "compact-short":
|
|
1487
1444
|
case "K":
|
|
@@ -1492,13 +1449,13 @@ function Hi(e) {
|
|
|
1492
1449
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1493
1450
|
continue;
|
|
1494
1451
|
case "scientific":
|
|
1495
|
-
t =
|
|
1496
|
-
return
|
|
1452
|
+
t = w(w(w({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1453
|
+
return w(w({}, l), Ft(u));
|
|
1497
1454
|
}, {}));
|
|
1498
1455
|
continue;
|
|
1499
1456
|
case "engineering":
|
|
1500
|
-
t =
|
|
1501
|
-
return
|
|
1457
|
+
t = w(w(w({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1458
|
+
return w(w({}, l), Ft(u));
|
|
1502
1459
|
}, {}));
|
|
1503
1460
|
continue;
|
|
1504
1461
|
case "notation-simple":
|
|
@@ -1543,45 +1500,45 @@ function Hi(e) {
|
|
|
1543
1500
|
case "integer-width":
|
|
1544
1501
|
if (i.options.length > 1)
|
|
1545
1502
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1546
|
-
i.options[0].replace(
|
|
1547
|
-
if (
|
|
1503
|
+
i.options[0].replace(vi, function(l, u, h, c, f, m) {
|
|
1504
|
+
if (u)
|
|
1548
1505
|
t.minimumIntegerDigits = h.length;
|
|
1549
1506
|
else {
|
|
1550
1507
|
if (c && f)
|
|
1551
1508
|
throw new Error("We currently do not support maximum integer digits");
|
|
1552
|
-
if (
|
|
1509
|
+
if (m)
|
|
1553
1510
|
throw new Error("We currently do not support exact integer digits");
|
|
1554
1511
|
}
|
|
1555
1512
|
return "";
|
|
1556
1513
|
});
|
|
1557
1514
|
continue;
|
|
1558
1515
|
}
|
|
1559
|
-
if (
|
|
1516
|
+
if (Pr.test(i.stem)) {
|
|
1560
1517
|
t.minimumIntegerDigits = i.stem.length;
|
|
1561
1518
|
continue;
|
|
1562
1519
|
}
|
|
1563
|
-
if (
|
|
1520
|
+
if (Ut.test(i.stem)) {
|
|
1564
1521
|
if (i.options.length > 1)
|
|
1565
1522
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1566
|
-
i.stem.replace(
|
|
1567
|
-
return h === "*" ? t.minimumFractionDigits =
|
|
1523
|
+
i.stem.replace(Ut, function(l, u, h, c, f, m) {
|
|
1524
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && m ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + m.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1568
1525
|
});
|
|
1569
1526
|
var o = i.options[0];
|
|
1570
|
-
o === "w" ? t =
|
|
1527
|
+
o === "w" ? t = w(w({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = w(w({}, t), kt(o)));
|
|
1571
1528
|
continue;
|
|
1572
1529
|
}
|
|
1573
|
-
if (
|
|
1574
|
-
t =
|
|
1530
|
+
if (Br.test(i.stem)) {
|
|
1531
|
+
t = w(w({}, t), kt(i.stem));
|
|
1575
1532
|
continue;
|
|
1576
1533
|
}
|
|
1577
|
-
var a =
|
|
1578
|
-
a && (t =
|
|
1579
|
-
var s =
|
|
1580
|
-
s && (t =
|
|
1534
|
+
var a = Ir(i.stem);
|
|
1535
|
+
a && (t = w(w({}, t), a));
|
|
1536
|
+
var s = yi(i.stem);
|
|
1537
|
+
s && (t = w(w({}, t), s));
|
|
1581
1538
|
}
|
|
1582
1539
|
return t;
|
|
1583
1540
|
}
|
|
1584
|
-
var
|
|
1541
|
+
var Me = {
|
|
1585
1542
|
"001": [
|
|
1586
1543
|
"H",
|
|
1587
1544
|
"h"
|
|
@@ -2996,23 +2953,23 @@ var Ae = {
|
|
|
2996
2953
|
"h"
|
|
2997
2954
|
]
|
|
2998
2955
|
};
|
|
2999
|
-
function
|
|
2956
|
+
function xi(e, t) {
|
|
3000
2957
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3001
2958
|
var i = e.charAt(n);
|
|
3002
2959
|
if (i === "j") {
|
|
3003
2960
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3004
2961
|
o++, n++;
|
|
3005
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1),
|
|
3006
|
-
for ((
|
|
3007
|
-
r +=
|
|
2962
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Ei(t);
|
|
2963
|
+
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2964
|
+
r += l;
|
|
3008
2965
|
for (; a-- > 0; )
|
|
3009
|
-
r =
|
|
2966
|
+
r = u + r;
|
|
3010
2967
|
} else
|
|
3011
2968
|
i === "J" ? r += "H" : r += i;
|
|
3012
2969
|
}
|
|
3013
2970
|
return r;
|
|
3014
2971
|
}
|
|
3015
|
-
function
|
|
2972
|
+
function Ei(e) {
|
|
3016
2973
|
var t = e.hourCycle;
|
|
3017
2974
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3018
2975
|
e.hourCycles && // @ts-ignore
|
|
@@ -3031,23 +2988,23 @@ function Oi(e) {
|
|
|
3031
2988
|
}
|
|
3032
2989
|
var r = e.language, n;
|
|
3033
2990
|
r !== "root" && (n = e.maximize().region);
|
|
3034
|
-
var i =
|
|
2991
|
+
var i = Me[n || ""] || Me[r || ""] || Me["".concat(r, "-001")] || Me["001"];
|
|
3035
2992
|
return i[0];
|
|
3036
2993
|
}
|
|
3037
|
-
var
|
|
2994
|
+
var Ye, wi = new RegExp("^".concat(Lr.source, "*")), Si = new RegExp("".concat(Lr.source, "*$"));
|
|
3038
2995
|
function E(e, t) {
|
|
3039
2996
|
return { start: e, end: t };
|
|
3040
2997
|
}
|
|
3041
|
-
var
|
|
2998
|
+
var Hi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ti = !!String.fromCodePoint, Oi = !!Object.fromEntries, Mi = !!String.prototype.codePointAt, Ai = !!String.prototype.trimStart, Li = !!String.prototype.trimEnd, Bi = !!Number.isSafeInteger, Pi = Bi ? Number.isSafeInteger : function(e) {
|
|
3042
2999
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3043
|
-
},
|
|
3000
|
+
}, at = !0;
|
|
3044
3001
|
try {
|
|
3045
|
-
var
|
|
3046
|
-
|
|
3002
|
+
var Ii = Nr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3003
|
+
at = ((Ye = Ii.exec("a")) === null || Ye === void 0 ? void 0 : Ye[0]) === "a";
|
|
3047
3004
|
} catch {
|
|
3048
|
-
|
|
3005
|
+
at = !1;
|
|
3049
3006
|
}
|
|
3050
|
-
var
|
|
3007
|
+
var Dt = Hi ? (
|
|
3051
3008
|
// Native
|
|
3052
3009
|
function(t, r, n) {
|
|
3053
3010
|
return t.startsWith(r, n);
|
|
@@ -3057,7 +3014,7 @@ var Vt = Pi ? (
|
|
|
3057
3014
|
function(t, r, n) {
|
|
3058
3015
|
return t.slice(n, n + r.length) === r;
|
|
3059
3016
|
}
|
|
3060
|
-
),
|
|
3017
|
+
), st = Ti ? String.fromCodePoint : (
|
|
3061
3018
|
// IE11
|
|
3062
3019
|
function() {
|
|
3063
3020
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3069,9 +3026,9 @@ var Vt = Pi ? (
|
|
|
3069
3026
|
}
|
|
3070
3027
|
return n;
|
|
3071
3028
|
}
|
|
3072
|
-
),
|
|
3029
|
+
), Gt = (
|
|
3073
3030
|
// native
|
|
3074
|
-
|
|
3031
|
+
Oi ? Object.fromEntries : (
|
|
3075
3032
|
// Ponyfill
|
|
3076
3033
|
function(t) {
|
|
3077
3034
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3081,7 +3038,7 @@ var Vt = Pi ? (
|
|
|
3081
3038
|
return r;
|
|
3082
3039
|
}
|
|
3083
3040
|
)
|
|
3084
|
-
),
|
|
3041
|
+
), Cr = Mi ? (
|
|
3085
3042
|
// Native
|
|
3086
3043
|
function(t, r) {
|
|
3087
3044
|
return t.codePointAt(r);
|
|
@@ -3095,7 +3052,7 @@ var Vt = Pi ? (
|
|
|
3095
3052
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3096
3053
|
}
|
|
3097
3054
|
}
|
|
3098
|
-
),
|
|
3055
|
+
), Ci = Ai ? (
|
|
3099
3056
|
// Native
|
|
3100
3057
|
function(t) {
|
|
3101
3058
|
return t.trimStart();
|
|
@@ -3103,9 +3060,9 @@ var Vt = Pi ? (
|
|
|
3103
3060
|
) : (
|
|
3104
3061
|
// Ponyfill
|
|
3105
3062
|
function(t) {
|
|
3106
|
-
return t.replace(
|
|
3063
|
+
return t.replace(wi, "");
|
|
3107
3064
|
}
|
|
3108
|
-
),
|
|
3065
|
+
), Ni = Li ? (
|
|
3109
3066
|
// Native
|
|
3110
3067
|
function(t) {
|
|
3111
3068
|
return t.trimEnd();
|
|
@@ -3113,32 +3070,32 @@ var Vt = Pi ? (
|
|
|
3113
3070
|
) : (
|
|
3114
3071
|
// Ponyfill
|
|
3115
3072
|
function(t) {
|
|
3116
|
-
return t.replace(
|
|
3073
|
+
return t.replace(Si, "");
|
|
3117
3074
|
}
|
|
3118
3075
|
);
|
|
3119
|
-
function
|
|
3076
|
+
function Nr(e, t) {
|
|
3120
3077
|
return new RegExp(e, t);
|
|
3121
3078
|
}
|
|
3122
|
-
var
|
|
3123
|
-
if (
|
|
3124
|
-
var
|
|
3125
|
-
|
|
3079
|
+
var lt;
|
|
3080
|
+
if (at) {
|
|
3081
|
+
var $t = Nr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3082
|
+
lt = function(t, r) {
|
|
3126
3083
|
var n;
|
|
3127
|
-
|
|
3128
|
-
var i =
|
|
3084
|
+
$t.lastIndex = r;
|
|
3085
|
+
var i = $t.exec(t);
|
|
3129
3086
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3130
3087
|
};
|
|
3131
3088
|
} else
|
|
3132
|
-
|
|
3089
|
+
lt = function(t, r) {
|
|
3133
3090
|
for (var n = []; ; ) {
|
|
3134
|
-
var i =
|
|
3135
|
-
if (i === void 0 ||
|
|
3091
|
+
var i = Cr(t, r);
|
|
3092
|
+
if (i === void 0 || Rr(i) || Fi(i))
|
|
3136
3093
|
break;
|
|
3137
3094
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3138
3095
|
}
|
|
3139
|
-
return
|
|
3096
|
+
return st.apply(void 0, n);
|
|
3140
3097
|
};
|
|
3141
|
-
var
|
|
3098
|
+
var Ri = (
|
|
3142
3099
|
/** @class */
|
|
3143
3100
|
function() {
|
|
3144
3101
|
function e(t, r) {
|
|
@@ -3162,14 +3119,14 @@ var Gi = (
|
|
|
3162
3119
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3163
3120
|
var s = this.clonePosition();
|
|
3164
3121
|
this.bump(), i.push({
|
|
3165
|
-
type:
|
|
3122
|
+
type: O.pound,
|
|
3166
3123
|
location: E(s, this.clonePosition())
|
|
3167
3124
|
});
|
|
3168
3125
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3169
3126
|
if (n)
|
|
3170
3127
|
break;
|
|
3171
3128
|
return this.error(_.UNMATCHED_CLOSING_TAG, E(this.clonePosition(), this.clonePosition()));
|
|
3172
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3129
|
+
} else if (o === 60 && !this.ignoreTag && ut(this.peek() || 0)) {
|
|
3173
3130
|
var a = this.parseTag(t, r);
|
|
3174
3131
|
if (a.err)
|
|
3175
3132
|
return a;
|
|
@@ -3190,7 +3147,7 @@ var Gi = (
|
|
|
3190
3147
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3191
3148
|
return {
|
|
3192
3149
|
val: {
|
|
3193
|
-
type:
|
|
3150
|
+
type: O.literal,
|
|
3194
3151
|
value: "<".concat(i, "/>"),
|
|
3195
3152
|
location: E(n, this.clonePosition())
|
|
3196
3153
|
},
|
|
@@ -3202,12 +3159,12 @@ var Gi = (
|
|
|
3202
3159
|
return o;
|
|
3203
3160
|
var a = o.val, s = this.clonePosition();
|
|
3204
3161
|
if (this.bumpIf("</")) {
|
|
3205
|
-
if (this.isEOF() || !
|
|
3162
|
+
if (this.isEOF() || !ut(this.char()))
|
|
3206
3163
|
return this.error(_.INVALID_TAG, E(s, this.clonePosition()));
|
|
3207
|
-
var
|
|
3208
|
-
return i !==
|
|
3164
|
+
var l = this.clonePosition(), u = this.parseTagName();
|
|
3165
|
+
return i !== u ? this.error(_.UNMATCHED_CLOSING_TAG, E(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3209
3166
|
val: {
|
|
3210
|
-
type:
|
|
3167
|
+
type: O.tag,
|
|
3211
3168
|
value: i,
|
|
3212
3169
|
children: a,
|
|
3213
3170
|
location: E(n, this.clonePosition())
|
|
@@ -3220,7 +3177,7 @@ var Gi = (
|
|
|
3220
3177
|
return this.error(_.INVALID_TAG, E(n, this.clonePosition()));
|
|
3221
3178
|
}, e.prototype.parseTagName = function() {
|
|
3222
3179
|
var t = this.offset();
|
|
3223
|
-
for (this.bump(); !this.isEOF() &&
|
|
3180
|
+
for (this.bump(); !this.isEOF() && ki(this.char()); )
|
|
3224
3181
|
this.bump();
|
|
3225
3182
|
return this.message.slice(t, this.offset());
|
|
3226
3183
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3242,14 +3199,14 @@ var Gi = (
|
|
|
3242
3199
|
}
|
|
3243
3200
|
break;
|
|
3244
3201
|
}
|
|
3245
|
-
var
|
|
3202
|
+
var l = E(n, this.clonePosition());
|
|
3246
3203
|
return {
|
|
3247
|
-
val: { type:
|
|
3204
|
+
val: { type: O.literal, value: i, location: l },
|
|
3248
3205
|
err: null
|
|
3249
3206
|
};
|
|
3250
3207
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3251
3208
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3252
|
-
|
|
3209
|
+
!Ui(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3253
3210
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3254
3211
|
if (this.isEOF() || this.char() !== 39)
|
|
3255
3212
|
return null;
|
|
@@ -3283,12 +3240,12 @@ var Gi = (
|
|
|
3283
3240
|
r.push(n);
|
|
3284
3241
|
this.bump();
|
|
3285
3242
|
}
|
|
3286
|
-
return
|
|
3243
|
+
return st.apply(void 0, r);
|
|
3287
3244
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3288
3245
|
if (this.isEOF())
|
|
3289
3246
|
return null;
|
|
3290
3247
|
var n = this.char();
|
|
3291
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3248
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), st(n));
|
|
3292
3249
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3293
3250
|
var n = this.clonePosition();
|
|
3294
3251
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3304,7 +3261,7 @@ var Gi = (
|
|
|
3304
3261
|
case 125:
|
|
3305
3262
|
return this.bump(), {
|
|
3306
3263
|
val: {
|
|
3307
|
-
type:
|
|
3264
|
+
type: O.argument,
|
|
3308
3265
|
// value does not include the opening and closing braces.
|
|
3309
3266
|
value: i,
|
|
3310
3267
|
location: E(n, this.clonePosition())
|
|
@@ -3317,66 +3274,66 @@ var Gi = (
|
|
|
3317
3274
|
return this.error(_.MALFORMED_ARGUMENT, E(n, this.clonePosition()));
|
|
3318
3275
|
}
|
|
3319
3276
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3320
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3277
|
+
var t = this.clonePosition(), r = this.offset(), n = lt(this.message, r), i = r + n.length;
|
|
3321
3278
|
this.bumpTo(i);
|
|
3322
3279
|
var o = this.clonePosition(), a = E(t, o);
|
|
3323
3280
|
return { value: n, location: a };
|
|
3324
3281
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3325
|
-
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value,
|
|
3282
|
+
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3326
3283
|
switch (s) {
|
|
3327
3284
|
case "":
|
|
3328
|
-
return this.error(_.EXPECT_ARGUMENT_TYPE, E(a,
|
|
3285
|
+
return this.error(_.EXPECT_ARGUMENT_TYPE, E(a, l));
|
|
3329
3286
|
case "number":
|
|
3330
3287
|
case "date":
|
|
3331
3288
|
case "time": {
|
|
3332
3289
|
this.bumpSpace();
|
|
3333
|
-
var
|
|
3290
|
+
var u = null;
|
|
3334
3291
|
if (this.bumpIf(",")) {
|
|
3335
3292
|
this.bumpSpace();
|
|
3336
3293
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3337
3294
|
if (c.err)
|
|
3338
3295
|
return c;
|
|
3339
|
-
var f =
|
|
3296
|
+
var f = Ni(c.val);
|
|
3340
3297
|
if (f.length === 0)
|
|
3341
3298
|
return this.error(_.EXPECT_ARGUMENT_STYLE, E(this.clonePosition(), this.clonePosition()));
|
|
3342
|
-
var
|
|
3343
|
-
|
|
3299
|
+
var m = E(h, this.clonePosition());
|
|
3300
|
+
u = { style: f, styleLocation: m };
|
|
3344
3301
|
}
|
|
3345
3302
|
var g = this.tryParseArgumentClose(i);
|
|
3346
3303
|
if (g.err)
|
|
3347
3304
|
return g;
|
|
3348
3305
|
var v = E(i, this.clonePosition());
|
|
3349
|
-
if (
|
|
3350
|
-
var
|
|
3306
|
+
if (u && Dt(u?.style, "::", 0)) {
|
|
3307
|
+
var S = Ci(u.style.slice(2));
|
|
3351
3308
|
if (s === "number") {
|
|
3352
|
-
var c = this.parseNumberSkeletonFromString(
|
|
3309
|
+
var c = this.parseNumberSkeletonFromString(S, u.styleLocation);
|
|
3353
3310
|
return c.err ? c : {
|
|
3354
|
-
val: { type:
|
|
3311
|
+
val: { type: O.number, value: n, location: v, style: c.val },
|
|
3355
3312
|
err: null
|
|
3356
3313
|
};
|
|
3357
3314
|
} else {
|
|
3358
|
-
if (
|
|
3315
|
+
if (S.length === 0)
|
|
3359
3316
|
return this.error(_.EXPECT_DATE_TIME_SKELETON, v);
|
|
3360
|
-
var
|
|
3361
|
-
this.locale && (
|
|
3317
|
+
var T = S;
|
|
3318
|
+
this.locale && (T = xi(S, this.locale));
|
|
3362
3319
|
var f = {
|
|
3363
|
-
type:
|
|
3364
|
-
pattern:
|
|
3365
|
-
location:
|
|
3366
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3367
|
-
},
|
|
3320
|
+
type: he.dateTime,
|
|
3321
|
+
pattern: T,
|
|
3322
|
+
location: u.styleLocation,
|
|
3323
|
+
parsedOptions: this.shouldParseSkeletons ? mi(T) : {}
|
|
3324
|
+
}, P = s === "date" ? O.date : O.time;
|
|
3368
3325
|
return {
|
|
3369
|
-
val: { type:
|
|
3326
|
+
val: { type: P, value: n, location: v, style: f },
|
|
3370
3327
|
err: null
|
|
3371
3328
|
};
|
|
3372
3329
|
}
|
|
3373
3330
|
}
|
|
3374
3331
|
return {
|
|
3375
3332
|
val: {
|
|
3376
|
-
type: s === "number" ?
|
|
3333
|
+
type: s === "number" ? O.number : s === "date" ? O.date : O.time,
|
|
3377
3334
|
value: n,
|
|
3378
3335
|
location: v,
|
|
3379
|
-
style: (o =
|
|
3336
|
+
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3380
3337
|
},
|
|
3381
3338
|
err: null
|
|
3382
3339
|
};
|
|
@@ -3384,9 +3341,9 @@ var Gi = (
|
|
|
3384
3341
|
case "plural":
|
|
3385
3342
|
case "selectordinal":
|
|
3386
3343
|
case "select": {
|
|
3387
|
-
var
|
|
3344
|
+
var L = this.clonePosition();
|
|
3388
3345
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3389
|
-
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, E(
|
|
3346
|
+
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, E(L, w({}, L)));
|
|
3390
3347
|
this.bumpSpace();
|
|
3391
3348
|
var G = this.parseIdentifierIfPossible(), C = 0;
|
|
3392
3349
|
if (s !== "select" && G.value === "offset") {
|
|
@@ -3404,29 +3361,29 @@ var Gi = (
|
|
|
3404
3361
|
var g = this.tryParseArgumentClose(i);
|
|
3405
3362
|
if (g.err)
|
|
3406
3363
|
return g;
|
|
3407
|
-
var
|
|
3364
|
+
var X = E(i, this.clonePosition());
|
|
3408
3365
|
return s === "select" ? {
|
|
3409
3366
|
val: {
|
|
3410
|
-
type:
|
|
3367
|
+
type: O.select,
|
|
3411
3368
|
value: n,
|
|
3412
|
-
options:
|
|
3413
|
-
location:
|
|
3369
|
+
options: Gt(V.val),
|
|
3370
|
+
location: X
|
|
3414
3371
|
},
|
|
3415
3372
|
err: null
|
|
3416
3373
|
} : {
|
|
3417
3374
|
val: {
|
|
3418
|
-
type:
|
|
3375
|
+
type: O.plural,
|
|
3419
3376
|
value: n,
|
|
3420
|
-
options:
|
|
3377
|
+
options: Gt(V.val),
|
|
3421
3378
|
offset: C,
|
|
3422
3379
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3423
|
-
location:
|
|
3380
|
+
location: X
|
|
3424
3381
|
},
|
|
3425
3382
|
err: null
|
|
3426
3383
|
};
|
|
3427
3384
|
}
|
|
3428
3385
|
default:
|
|
3429
|
-
return this.error(_.INVALID_ARGUMENT_TYPE, E(a,
|
|
3386
|
+
return this.error(_.INVALID_ARGUMENT_TYPE, E(a, l));
|
|
3430
3387
|
}
|
|
3431
3388
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3432
3389
|
return this.isEOF() || this.char() !== 125 ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, E(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -3468,50 +3425,50 @@ var Gi = (
|
|
|
3468
3425
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3469
3426
|
var n = [];
|
|
3470
3427
|
try {
|
|
3471
|
-
n =
|
|
3428
|
+
n = gi(t);
|
|
3472
3429
|
} catch {
|
|
3473
3430
|
return this.error(_.INVALID_NUMBER_SKELETON, r);
|
|
3474
3431
|
}
|
|
3475
3432
|
return {
|
|
3476
3433
|
val: {
|
|
3477
|
-
type:
|
|
3434
|
+
type: he.number,
|
|
3478
3435
|
tokens: n,
|
|
3479
3436
|
location: r,
|
|
3480
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3437
|
+
parsedOptions: this.shouldParseSkeletons ? _i(n) : {}
|
|
3481
3438
|
},
|
|
3482
3439
|
err: null
|
|
3483
3440
|
};
|
|
3484
3441
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3485
|
-
for (var o, a = !1, s = [],
|
|
3486
|
-
if (
|
|
3442
|
+
for (var o, a = !1, s = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3443
|
+
if (u.length === 0) {
|
|
3487
3444
|
var c = this.clonePosition();
|
|
3488
3445
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3489
3446
|
var f = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_SELECTOR, _.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3490
3447
|
if (f.err)
|
|
3491
3448
|
return f;
|
|
3492
|
-
h = E(c, this.clonePosition()),
|
|
3449
|
+
h = E(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3493
3450
|
} else
|
|
3494
3451
|
break;
|
|
3495
3452
|
}
|
|
3496
|
-
if (
|
|
3453
|
+
if (l.has(u))
|
|
3497
3454
|
return this.error(r === "select" ? _.DUPLICATE_SELECT_ARGUMENT_SELECTOR : _.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3498
|
-
|
|
3499
|
-
var
|
|
3455
|
+
u === "other" && (a = !0), this.bumpSpace();
|
|
3456
|
+
var m = this.clonePosition();
|
|
3500
3457
|
if (!this.bumpIf("{"))
|
|
3501
3458
|
return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, E(this.clonePosition(), this.clonePosition()));
|
|
3502
3459
|
var g = this.parseMessage(t + 1, r, n);
|
|
3503
3460
|
if (g.err)
|
|
3504
3461
|
return g;
|
|
3505
|
-
var v = this.tryParseArgumentClose(
|
|
3462
|
+
var v = this.tryParseArgumentClose(m);
|
|
3506
3463
|
if (v.err)
|
|
3507
3464
|
return v;
|
|
3508
3465
|
s.push([
|
|
3509
|
-
|
|
3466
|
+
u,
|
|
3510
3467
|
{
|
|
3511
3468
|
value: g.val,
|
|
3512
|
-
location: E(
|
|
3469
|
+
location: E(m, this.clonePosition())
|
|
3513
3470
|
}
|
|
3514
|
-
]),
|
|
3471
|
+
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3515
3472
|
}
|
|
3516
3473
|
return s.length === 0 ? this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR : _.EXPECT_PLURAL_ARGUMENT_SELECTOR, E(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(_.MISSING_OTHER_CLAUSE, E(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3517
3474
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
@@ -3524,8 +3481,8 @@ var Gi = (
|
|
|
3524
3481
|
else
|
|
3525
3482
|
break;
|
|
3526
3483
|
}
|
|
3527
|
-
var
|
|
3528
|
-
return o ? (a *= n,
|
|
3484
|
+
var l = E(i, this.clonePosition());
|
|
3485
|
+
return o ? (a *= n, Pi(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3529
3486
|
}, e.prototype.offset = function() {
|
|
3530
3487
|
return this.position.offset;
|
|
3531
3488
|
}, e.prototype.isEOF = function() {
|
|
@@ -3540,7 +3497,7 @@ var Gi = (
|
|
|
3540
3497
|
var t = this.position.offset;
|
|
3541
3498
|
if (t >= this.message.length)
|
|
3542
3499
|
throw Error("out of bound");
|
|
3543
|
-
var r =
|
|
3500
|
+
var r = Cr(this.message, t);
|
|
3544
3501
|
if (r === void 0)
|
|
3545
3502
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3546
3503
|
return r;
|
|
@@ -3559,7 +3516,7 @@ var Gi = (
|
|
|
3559
3516
|
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);
|
|
3560
3517
|
}
|
|
3561
3518
|
}, e.prototype.bumpIf = function(t) {
|
|
3562
|
-
if (
|
|
3519
|
+
if (Dt(this.message, t, this.offset())) {
|
|
3563
3520
|
for (var r = 0; r < t.length; r++)
|
|
3564
3521
|
this.bump();
|
|
3565
3522
|
return !0;
|
|
@@ -3581,7 +3538,7 @@ var Gi = (
|
|
|
3581
3538
|
break;
|
|
3582
3539
|
}
|
|
3583
3540
|
}, e.prototype.bumpSpace = function() {
|
|
3584
|
-
for (; !this.isEOF() &&
|
|
3541
|
+
for (; !this.isEOF() && Rr(this.char()); )
|
|
3585
3542
|
this.bump();
|
|
3586
3543
|
}, e.prototype.peek = function() {
|
|
3587
3544
|
if (this.isEOF())
|
|
@@ -3591,47 +3548,47 @@ var Gi = (
|
|
|
3591
3548
|
}, e;
|
|
3592
3549
|
}()
|
|
3593
3550
|
);
|
|
3594
|
-
function
|
|
3551
|
+
function ut(e) {
|
|
3595
3552
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3596
3553
|
}
|
|
3597
|
-
function
|
|
3598
|
-
return
|
|
3554
|
+
function Ui(e) {
|
|
3555
|
+
return ut(e) || e === 47;
|
|
3599
3556
|
}
|
|
3600
|
-
function
|
|
3557
|
+
function ki(e) {
|
|
3601
3558
|
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;
|
|
3602
3559
|
}
|
|
3603
|
-
function
|
|
3560
|
+
function Rr(e) {
|
|
3604
3561
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3605
3562
|
}
|
|
3606
|
-
function
|
|
3563
|
+
function Fi(e) {
|
|
3607
3564
|
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;
|
|
3608
3565
|
}
|
|
3609
|
-
function
|
|
3566
|
+
function ht(e) {
|
|
3610
3567
|
e.forEach(function(t) {
|
|
3611
|
-
if (delete t.location,
|
|
3568
|
+
if (delete t.location, Tr(t) || Or(t))
|
|
3612
3569
|
for (var r in t.options)
|
|
3613
|
-
delete t.options[r].location,
|
|
3570
|
+
delete t.options[r].location, ht(t.options[r].value);
|
|
3614
3571
|
else
|
|
3615
|
-
|
|
3572
|
+
wr(t) && Ar(t.style) || (Sr(t) || Hr(t)) && ot(t.style) ? delete t.style.location : Mr(t) && ht(t.children);
|
|
3616
3573
|
});
|
|
3617
3574
|
}
|
|
3618
|
-
function
|
|
3619
|
-
t === void 0 && (t = {}), t =
|
|
3620
|
-
var r = new
|
|
3575
|
+
function Di(e, t) {
|
|
3576
|
+
t === void 0 && (t = {}), t = w({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3577
|
+
var r = new Ri(e, t).parse();
|
|
3621
3578
|
if (r.err) {
|
|
3622
3579
|
var n = SyntaxError(_[r.err.kind]);
|
|
3623
3580
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3624
3581
|
}
|
|
3625
|
-
return t?.captureLocation ||
|
|
3582
|
+
return t?.captureLocation || ht(r.val), r.val;
|
|
3626
3583
|
}
|
|
3627
|
-
var
|
|
3584
|
+
var ce;
|
|
3628
3585
|
(function(e) {
|
|
3629
3586
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3630
|
-
})(
|
|
3631
|
-
var
|
|
3587
|
+
})(ce || (ce = {}));
|
|
3588
|
+
var Fe = (
|
|
3632
3589
|
/** @class */
|
|
3633
3590
|
function(e) {
|
|
3634
|
-
|
|
3591
|
+
Y(t, e);
|
|
3635
3592
|
function t(r, n, i) {
|
|
3636
3593
|
var o = e.call(this, r) || this;
|
|
3637
3594
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3640,64 +3597,64 @@ var Ge = (
|
|
|
3640
3597
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3641
3598
|
}, t;
|
|
3642
3599
|
}(Error)
|
|
3643
|
-
),
|
|
3600
|
+
), jt = (
|
|
3644
3601
|
/** @class */
|
|
3645
3602
|
function(e) {
|
|
3646
|
-
|
|
3603
|
+
Y(t, e);
|
|
3647
3604
|
function t(r, n, i, o) {
|
|
3648
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3605
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ce.INVALID_VALUE, o) || this;
|
|
3649
3606
|
}
|
|
3650
3607
|
return t;
|
|
3651
|
-
}(
|
|
3652
|
-
),
|
|
3608
|
+
}(Fe)
|
|
3609
|
+
), Gi = (
|
|
3653
3610
|
/** @class */
|
|
3654
3611
|
function(e) {
|
|
3655
|
-
|
|
3612
|
+
Y(t, e);
|
|
3656
3613
|
function t(r, n, i) {
|
|
3657
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3614
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ce.INVALID_VALUE, i) || this;
|
|
3658
3615
|
}
|
|
3659
3616
|
return t;
|
|
3660
|
-
}(
|
|
3661
|
-
),
|
|
3617
|
+
}(Fe)
|
|
3618
|
+
), $i = (
|
|
3662
3619
|
/** @class */
|
|
3663
3620
|
function(e) {
|
|
3664
|
-
|
|
3621
|
+
Y(t, e);
|
|
3665
3622
|
function t(r, n) {
|
|
3666
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3623
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ce.MISSING_VALUE, n) || this;
|
|
3667
3624
|
}
|
|
3668
3625
|
return t;
|
|
3669
|
-
}(
|
|
3626
|
+
}(Fe)
|
|
3670
3627
|
), D;
|
|
3671
3628
|
(function(e) {
|
|
3672
3629
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3673
3630
|
})(D || (D = {}));
|
|
3674
|
-
function
|
|
3631
|
+
function ji(e) {
|
|
3675
3632
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3676
3633
|
var n = t[t.length - 1];
|
|
3677
3634
|
return !n || n.type !== D.literal || r.type !== D.literal ? t.push(r) : n.value += r.value, t;
|
|
3678
3635
|
}, []);
|
|
3679
3636
|
}
|
|
3680
|
-
function
|
|
3637
|
+
function Wi(e) {
|
|
3681
3638
|
return typeof e == "function";
|
|
3682
3639
|
}
|
|
3683
|
-
function
|
|
3684
|
-
if (e.length === 1 &&
|
|
3640
|
+
function Be(e, t, r, n, i, o, a) {
|
|
3641
|
+
if (e.length === 1 && Rt(e[0]))
|
|
3685
3642
|
return [
|
|
3686
3643
|
{
|
|
3687
3644
|
type: D.literal,
|
|
3688
3645
|
value: e[0].value
|
|
3689
3646
|
}
|
|
3690
3647
|
];
|
|
3691
|
-
for (var s = [],
|
|
3692
|
-
var h = l
|
|
3693
|
-
if (
|
|
3648
|
+
for (var s = [], l = 0, u = e; l < u.length; l++) {
|
|
3649
|
+
var h = u[l];
|
|
3650
|
+
if (Rt(h)) {
|
|
3694
3651
|
s.push({
|
|
3695
3652
|
type: D.literal,
|
|
3696
3653
|
value: h.value
|
|
3697
3654
|
});
|
|
3698
3655
|
continue;
|
|
3699
3656
|
}
|
|
3700
|
-
if (
|
|
3657
|
+
if (fi(h)) {
|
|
3701
3658
|
typeof o == "number" && s.push({
|
|
3702
3659
|
type: D.literal,
|
|
3703
3660
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3706,89 +3663,89 @@ function Le(e, t, r, n, i, o, a) {
|
|
|
3706
3663
|
}
|
|
3707
3664
|
var c = h.value;
|
|
3708
3665
|
if (!(i && c in i))
|
|
3709
|
-
throw new
|
|
3666
|
+
throw new $i(c, a);
|
|
3710
3667
|
var f = i[c];
|
|
3711
|
-
if (
|
|
3668
|
+
if (ci(h)) {
|
|
3712
3669
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
|
|
3713
3670
|
type: typeof f == "string" ? D.literal : D.object,
|
|
3714
3671
|
value: f
|
|
3715
3672
|
});
|
|
3716
3673
|
continue;
|
|
3717
3674
|
}
|
|
3718
|
-
if (
|
|
3719
|
-
var
|
|
3675
|
+
if (Sr(h)) {
|
|
3676
|
+
var m = typeof h.style == "string" ? n.date[h.style] : ot(h.style) ? h.style.parsedOptions : void 0;
|
|
3720
3677
|
s.push({
|
|
3721
3678
|
type: D.literal,
|
|
3722
|
-
value: r.getDateTimeFormat(t,
|
|
3679
|
+
value: r.getDateTimeFormat(t, m).format(f)
|
|
3723
3680
|
});
|
|
3724
3681
|
continue;
|
|
3725
3682
|
}
|
|
3726
|
-
if (
|
|
3727
|
-
var
|
|
3683
|
+
if (Hr(h)) {
|
|
3684
|
+
var m = typeof h.style == "string" ? n.time[h.style] : ot(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3728
3685
|
s.push({
|
|
3729
3686
|
type: D.literal,
|
|
3730
|
-
value: r.getDateTimeFormat(t,
|
|
3687
|
+
value: r.getDateTimeFormat(t, m).format(f)
|
|
3731
3688
|
});
|
|
3732
3689
|
continue;
|
|
3733
3690
|
}
|
|
3734
|
-
if (
|
|
3735
|
-
var
|
|
3736
|
-
|
|
3691
|
+
if (wr(h)) {
|
|
3692
|
+
var m = typeof h.style == "string" ? n.number[h.style] : Ar(h.style) ? h.style.parsedOptions : void 0;
|
|
3693
|
+
m && m.scale && (f = f * (m.scale || 1)), s.push({
|
|
3737
3694
|
type: D.literal,
|
|
3738
|
-
value: r.getNumberFormat(t,
|
|
3695
|
+
value: r.getNumberFormat(t, m).format(f)
|
|
3739
3696
|
});
|
|
3740
3697
|
continue;
|
|
3741
3698
|
}
|
|
3742
|
-
if (
|
|
3743
|
-
var g = h.children, v = h.value,
|
|
3744
|
-
if (!
|
|
3745
|
-
throw new
|
|
3746
|
-
var
|
|
3699
|
+
if (Mr(h)) {
|
|
3700
|
+
var g = h.children, v = h.value, S = i[v];
|
|
3701
|
+
if (!Wi(S))
|
|
3702
|
+
throw new Gi(v, "function", a);
|
|
3703
|
+
var T = Be(g, t, r, n, i, o), P = S(T.map(function(C) {
|
|
3747
3704
|
return C.value;
|
|
3748
3705
|
}));
|
|
3749
|
-
Array.isArray(
|
|
3706
|
+
Array.isArray(P) || (P = [P]), s.push.apply(s, P.map(function(C) {
|
|
3750
3707
|
return {
|
|
3751
3708
|
type: typeof C == "string" ? D.literal : D.object,
|
|
3752
3709
|
value: C
|
|
3753
3710
|
};
|
|
3754
3711
|
}));
|
|
3755
3712
|
}
|
|
3756
|
-
if (
|
|
3757
|
-
var
|
|
3758
|
-
if (!
|
|
3759
|
-
throw new
|
|
3760
|
-
s.push.apply(s,
|
|
3713
|
+
if (Tr(h)) {
|
|
3714
|
+
var L = h.options[f] || h.options.other;
|
|
3715
|
+
if (!L)
|
|
3716
|
+
throw new jt(h.value, f, Object.keys(h.options), a);
|
|
3717
|
+
s.push.apply(s, Be(L.value, t, r, n, i));
|
|
3761
3718
|
continue;
|
|
3762
3719
|
}
|
|
3763
|
-
if (
|
|
3764
|
-
var
|
|
3765
|
-
if (!
|
|
3720
|
+
if (Or(h)) {
|
|
3721
|
+
var L = h.options["=".concat(f)];
|
|
3722
|
+
if (!L) {
|
|
3766
3723
|
if (!Intl.PluralRules)
|
|
3767
|
-
throw new
|
|
3724
|
+
throw new Fe(`Intl.PluralRules is not available in this environment.
|
|
3768
3725
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3769
|
-
`,
|
|
3726
|
+
`, ce.MISSING_INTL_API, a);
|
|
3770
3727
|
var G = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3771
|
-
|
|
3728
|
+
L = h.options[G] || h.options.other;
|
|
3772
3729
|
}
|
|
3773
|
-
if (!
|
|
3774
|
-
throw new
|
|
3775
|
-
s.push.apply(s,
|
|
3730
|
+
if (!L)
|
|
3731
|
+
throw new jt(h.value, f, Object.keys(h.options), a);
|
|
3732
|
+
s.push.apply(s, Be(L.value, t, r, n, i, f - (h.offset || 0)));
|
|
3776
3733
|
continue;
|
|
3777
3734
|
}
|
|
3778
3735
|
}
|
|
3779
|
-
return
|
|
3736
|
+
return ji(s);
|
|
3780
3737
|
}
|
|
3781
|
-
function
|
|
3782
|
-
return t ?
|
|
3783
|
-
return r[n] =
|
|
3738
|
+
function Vi(e, t) {
|
|
3739
|
+
return t ? w(w(w({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3740
|
+
return r[n] = w(w({}, e[n]), t[n] || {}), r;
|
|
3784
3741
|
}, {})) : e;
|
|
3785
3742
|
}
|
|
3786
|
-
function
|
|
3743
|
+
function Xi(e, t) {
|
|
3787
3744
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3788
|
-
return r[n] =
|
|
3789
|
-
},
|
|
3745
|
+
return r[n] = Vi(e[n], t[n]), r;
|
|
3746
|
+
}, w({}, e)) : e;
|
|
3790
3747
|
}
|
|
3791
|
-
function
|
|
3748
|
+
function qe(e) {
|
|
3792
3749
|
return {
|
|
3793
3750
|
create: function() {
|
|
3794
3751
|
return {
|
|
@@ -3802,39 +3759,39 @@ function et(e) {
|
|
|
3802
3759
|
}
|
|
3803
3760
|
};
|
|
3804
3761
|
}
|
|
3805
|
-
function
|
|
3762
|
+
function zi(e) {
|
|
3806
3763
|
return e === void 0 && (e = {
|
|
3807
3764
|
number: {},
|
|
3808
3765
|
dateTime: {},
|
|
3809
3766
|
pluralRules: {}
|
|
3810
3767
|
}), {
|
|
3811
|
-
getNumberFormat:
|
|
3768
|
+
getNumberFormat: Ze(function() {
|
|
3812
3769
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3813
3770
|
r[n] = arguments[n];
|
|
3814
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3771
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, le([void 0], r, !1)))();
|
|
3815
3772
|
}, {
|
|
3816
|
-
cache:
|
|
3817
|
-
strategy:
|
|
3773
|
+
cache: qe(e.number),
|
|
3774
|
+
strategy: Qe.variadic
|
|
3818
3775
|
}),
|
|
3819
|
-
getDateTimeFormat:
|
|
3776
|
+
getDateTimeFormat: Ze(function() {
|
|
3820
3777
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3821
3778
|
r[n] = arguments[n];
|
|
3822
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3779
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, le([void 0], r, !1)))();
|
|
3823
3780
|
}, {
|
|
3824
|
-
cache:
|
|
3825
|
-
strategy:
|
|
3781
|
+
cache: qe(e.dateTime),
|
|
3782
|
+
strategy: Qe.variadic
|
|
3826
3783
|
}),
|
|
3827
|
-
getPluralRules:
|
|
3784
|
+
getPluralRules: Ze(function() {
|
|
3828
3785
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3829
3786
|
r[n] = arguments[n];
|
|
3830
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3787
|
+
return new ((t = Intl.PluralRules).bind.apply(t, le([void 0], r, !1)))();
|
|
3831
3788
|
}, {
|
|
3832
|
-
cache:
|
|
3833
|
-
strategy:
|
|
3789
|
+
cache: qe(e.pluralRules),
|
|
3790
|
+
strategy: Qe.variadic
|
|
3834
3791
|
})
|
|
3835
3792
|
};
|
|
3836
3793
|
}
|
|
3837
|
-
var
|
|
3794
|
+
var Zi = (
|
|
3838
3795
|
/** @class */
|
|
3839
3796
|
function() {
|
|
3840
3797
|
function e(t, r, n, i) {
|
|
@@ -3844,20 +3801,20 @@ var Ki = (
|
|
|
3844
3801
|
number: {},
|
|
3845
3802
|
dateTime: {},
|
|
3846
3803
|
pluralRules: {}
|
|
3847
|
-
}, this.format = function(
|
|
3848
|
-
var
|
|
3849
|
-
if (
|
|
3850
|
-
return
|
|
3851
|
-
var h =
|
|
3804
|
+
}, this.format = function(l) {
|
|
3805
|
+
var u = o.formatToParts(l);
|
|
3806
|
+
if (u.length === 1)
|
|
3807
|
+
return u[0].value;
|
|
3808
|
+
var h = u.reduce(function(c, f) {
|
|
3852
3809
|
return !c.length || f.type !== D.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3853
3810
|
}, []);
|
|
3854
3811
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3855
|
-
}, this.formatToParts = function(
|
|
3856
|
-
return
|
|
3812
|
+
}, this.formatToParts = function(l) {
|
|
3813
|
+
return Be(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3857
3814
|
}, this.resolvedOptions = function() {
|
|
3858
|
-
var
|
|
3815
|
+
var l;
|
|
3859
3816
|
return {
|
|
3860
|
-
locale: ((
|
|
3817
|
+
locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
3861
3818
|
};
|
|
3862
3819
|
}, this.getAst = function() {
|
|
3863
3820
|
return o.ast;
|
|
@@ -3866,13 +3823,13 @@ var Ki = (
|
|
|
3866
3823
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3867
3824
|
var a = i || {};
|
|
3868
3825
|
a.formatters;
|
|
3869
|
-
var s =
|
|
3870
|
-
this.ast = e.__parse(t,
|
|
3826
|
+
var s = Tn(a, ["formatters"]);
|
|
3827
|
+
this.ast = e.__parse(t, w(w({}, s), { locale: this.resolvedLocale }));
|
|
3871
3828
|
} else
|
|
3872
3829
|
this.ast = t;
|
|
3873
3830
|
if (!Array.isArray(this.ast))
|
|
3874
3831
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3875
|
-
this.formats =
|
|
3832
|
+
this.formats = Xi(e.formats, n), this.formatters = i && i.formatters || zi(this.formatterCache);
|
|
3876
3833
|
}
|
|
3877
3834
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3878
3835
|
get: function() {
|
|
@@ -3885,7 +3842,7 @@ var Ki = (
|
|
|
3885
3842
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3886
3843
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3887
3844
|
}
|
|
3888
|
-
}, e.__parse =
|
|
3845
|
+
}, e.__parse = Di, e.formats = {
|
|
3889
3846
|
number: {
|
|
3890
3847
|
integer: {
|
|
3891
3848
|
maximumFractionDigits: 0
|
|
@@ -3946,7 +3903,7 @@ var Ki = (
|
|
|
3946
3903
|
}, e;
|
|
3947
3904
|
}()
|
|
3948
3905
|
);
|
|
3949
|
-
function
|
|
3906
|
+
function Qi(e, t) {
|
|
3950
3907
|
if (t == null)
|
|
3951
3908
|
return;
|
|
3952
3909
|
if (t in e)
|
|
@@ -3967,92 +3924,92 @@ function eo(e, t) {
|
|
|
3967
3924
|
n = void 0;
|
|
3968
3925
|
return n;
|
|
3969
3926
|
}
|
|
3970
|
-
const J = {},
|
|
3927
|
+
const J = {}, Yi = (e, t, r) => r && (t in J || (J[t] = {}), e in J[t] || (J[t][e] = r), r), Ur = (e, t) => {
|
|
3971
3928
|
if (t == null)
|
|
3972
3929
|
return;
|
|
3973
3930
|
if (t in J && e in J[t])
|
|
3974
3931
|
return J[t][e];
|
|
3975
|
-
const r =
|
|
3932
|
+
const r = De(t);
|
|
3976
3933
|
for (let n = 0; n < r.length; n++) {
|
|
3977
|
-
const i = r[n], o =
|
|
3934
|
+
const i = r[n], o = Ji(i, e);
|
|
3978
3935
|
if (o)
|
|
3979
|
-
return
|
|
3936
|
+
return Yi(e, t, o);
|
|
3980
3937
|
}
|
|
3981
3938
|
};
|
|
3982
|
-
let
|
|
3983
|
-
const Se =
|
|
3984
|
-
function
|
|
3985
|
-
return
|
|
3939
|
+
let mt;
|
|
3940
|
+
const Se = ke({});
|
|
3941
|
+
function qi(e) {
|
|
3942
|
+
return mt[e] || null;
|
|
3986
3943
|
}
|
|
3987
|
-
function
|
|
3988
|
-
return e in
|
|
3944
|
+
function kr(e) {
|
|
3945
|
+
return e in mt;
|
|
3989
3946
|
}
|
|
3990
|
-
function
|
|
3991
|
-
if (!
|
|
3947
|
+
function Ji(e, t) {
|
|
3948
|
+
if (!kr(e))
|
|
3992
3949
|
return null;
|
|
3993
|
-
const r =
|
|
3994
|
-
return
|
|
3950
|
+
const r = qi(e);
|
|
3951
|
+
return Qi(r, t);
|
|
3995
3952
|
}
|
|
3996
|
-
function
|
|
3953
|
+
function Ki(e) {
|
|
3997
3954
|
if (e == null)
|
|
3998
3955
|
return;
|
|
3999
|
-
const t =
|
|
3956
|
+
const t = De(e);
|
|
4000
3957
|
for (let r = 0; r < t.length; r++) {
|
|
4001
3958
|
const n = t[r];
|
|
4002
|
-
if (
|
|
3959
|
+
if (kr(n))
|
|
4003
3960
|
return n;
|
|
4004
3961
|
}
|
|
4005
3962
|
}
|
|
4006
|
-
function
|
|
4007
|
-
delete J[e], Se.update((r) => (r[e] =
|
|
3963
|
+
function Fr(e, ...t) {
|
|
3964
|
+
delete J[e], Se.update((r) => (r[e] = ni.all([r[e] || {}, ...t]), r));
|
|
4008
3965
|
}
|
|
4009
|
-
|
|
3966
|
+
pe(
|
|
4010
3967
|
[Se],
|
|
4011
3968
|
([e]) => Object.keys(e)
|
|
4012
3969
|
);
|
|
4013
|
-
Se.subscribe((e) =>
|
|
4014
|
-
const
|
|
4015
|
-
function
|
|
4016
|
-
|
|
3970
|
+
Se.subscribe((e) => mt = e);
|
|
3971
|
+
const Pe = {};
|
|
3972
|
+
function eo(e, t) {
|
|
3973
|
+
Pe[e].delete(t), Pe[e].size === 0 && delete Pe[e];
|
|
4017
3974
|
}
|
|
4018
|
-
function
|
|
4019
|
-
return
|
|
3975
|
+
function Dr(e) {
|
|
3976
|
+
return Pe[e];
|
|
4020
3977
|
}
|
|
4021
|
-
function
|
|
4022
|
-
return
|
|
4023
|
-
const r =
|
|
3978
|
+
function to(e) {
|
|
3979
|
+
return De(e).map((t) => {
|
|
3980
|
+
const r = Dr(t);
|
|
4024
3981
|
return [t, r ? [...r] : []];
|
|
4025
3982
|
}).filter(([, t]) => t.length > 0);
|
|
4026
3983
|
}
|
|
4027
|
-
function
|
|
4028
|
-
return e == null ? !1 :
|
|
3984
|
+
function ct(e) {
|
|
3985
|
+
return e == null ? !1 : De(e).some(
|
|
4029
3986
|
(t) => {
|
|
4030
3987
|
var r;
|
|
4031
|
-
return (r =
|
|
3988
|
+
return (r = Dr(t)) == null ? void 0 : r.size;
|
|
4032
3989
|
}
|
|
4033
3990
|
);
|
|
4034
3991
|
}
|
|
4035
|
-
function
|
|
3992
|
+
function ro(e, t) {
|
|
4036
3993
|
return Promise.all(
|
|
4037
|
-
t.map((n) => (
|
|
4038
|
-
).then((n) =>
|
|
4039
|
-
}
|
|
4040
|
-
const
|
|
4041
|
-
function
|
|
4042
|
-
if (!
|
|
4043
|
-
return e in
|
|
4044
|
-
const t =
|
|
4045
|
-
return
|
|
3994
|
+
t.map((n) => (eo(e, n), n().then((i) => i.default || i)))
|
|
3995
|
+
).then((n) => Fr(e, ...n));
|
|
3996
|
+
}
|
|
3997
|
+
const ve = {};
|
|
3998
|
+
function Gr(e) {
|
|
3999
|
+
if (!ct(e))
|
|
4000
|
+
return e in ve ? ve[e] : Promise.resolve();
|
|
4001
|
+
const t = to(e);
|
|
4002
|
+
return ve[e] = Promise.all(
|
|
4046
4003
|
t.map(
|
|
4047
|
-
([r, n]) =>
|
|
4004
|
+
([r, n]) => ro(r, n)
|
|
4048
4005
|
)
|
|
4049
4006
|
).then(() => {
|
|
4050
|
-
if (
|
|
4051
|
-
return
|
|
4052
|
-
delete
|
|
4053
|
-
}),
|
|
4007
|
+
if (ct(e))
|
|
4008
|
+
return Gr(e);
|
|
4009
|
+
delete ve[e];
|
|
4010
|
+
}), ve[e];
|
|
4054
4011
|
}
|
|
4055
|
-
const
|
|
4012
|
+
const no = {
|
|
4056
4013
|
number: {
|
|
4057
4014
|
scientific: { notation: "scientific" },
|
|
4058
4015
|
engineering: { notation: "engineering" },
|
|
@@ -4081,150 +4038,150 @@ const uo = {
|
|
|
4081
4038
|
timeZoneName: "short"
|
|
4082
4039
|
}
|
|
4083
4040
|
}
|
|
4084
|
-
},
|
|
4041
|
+
}, io = {
|
|
4085
4042
|
fallbackLocale: null,
|
|
4086
4043
|
loadingDelay: 200,
|
|
4087
|
-
formats:
|
|
4044
|
+
formats: no,
|
|
4088
4045
|
warnOnMissingMessages: !0,
|
|
4089
4046
|
handleMissingMessage: void 0,
|
|
4090
4047
|
ignoreTag: !0
|
|
4091
|
-
},
|
|
4092
|
-
function
|
|
4093
|
-
return
|
|
4048
|
+
}, oo = io;
|
|
4049
|
+
function fe() {
|
|
4050
|
+
return oo;
|
|
4094
4051
|
}
|
|
4095
|
-
const
|
|
4096
|
-
var
|
|
4052
|
+
const Je = ke(!1);
|
|
4053
|
+
var ao = Object.defineProperty, so = Object.defineProperties, lo = Object.getOwnPropertyDescriptors, Wt = Object.getOwnPropertySymbols, uo = Object.prototype.hasOwnProperty, ho = Object.prototype.propertyIsEnumerable, Vt = (e, t, r) => t in e ? ao(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, co = (e, t) => {
|
|
4097
4054
|
for (var r in t || (t = {}))
|
|
4098
|
-
|
|
4099
|
-
if (
|
|
4100
|
-
for (var r of
|
|
4101
|
-
|
|
4055
|
+
uo.call(t, r) && Vt(e, r, t[r]);
|
|
4056
|
+
if (Wt)
|
|
4057
|
+
for (var r of Wt(t))
|
|
4058
|
+
ho.call(t, r) && Vt(e, r, t[r]);
|
|
4102
4059
|
return e;
|
|
4103
|
-
},
|
|
4104
|
-
let
|
|
4105
|
-
const
|
|
4106
|
-
function
|
|
4060
|
+
}, fo = (e, t) => so(e, lo(t));
|
|
4061
|
+
let ft;
|
|
4062
|
+
const Ne = ke(null);
|
|
4063
|
+
function Xt(e) {
|
|
4107
4064
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4108
4065
|
}
|
|
4109
|
-
function
|
|
4110
|
-
const r =
|
|
4111
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4066
|
+
function De(e, t = fe().fallbackLocale) {
|
|
4067
|
+
const r = Xt(e);
|
|
4068
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Xt(t)])] : r;
|
|
4112
4069
|
}
|
|
4113
4070
|
function re() {
|
|
4114
|
-
return
|
|
4071
|
+
return ft ?? void 0;
|
|
4115
4072
|
}
|
|
4116
|
-
|
|
4117
|
-
|
|
4073
|
+
Ne.subscribe((e) => {
|
|
4074
|
+
ft = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4118
4075
|
});
|
|
4119
|
-
const
|
|
4120
|
-
if (e &&
|
|
4121
|
-
const { loadingDelay: t } =
|
|
4076
|
+
const mo = (e) => {
|
|
4077
|
+
if (e && Ki(e) && ct(e)) {
|
|
4078
|
+
const { loadingDelay: t } = fe();
|
|
4122
4079
|
let r;
|
|
4123
4080
|
return typeof window < "u" && re() != null && t ? r = window.setTimeout(
|
|
4124
|
-
() =>
|
|
4081
|
+
() => Je.set(!0),
|
|
4125
4082
|
t
|
|
4126
|
-
) :
|
|
4127
|
-
|
|
4083
|
+
) : Je.set(!0), Gr(e).then(() => {
|
|
4084
|
+
Ne.set(e);
|
|
4128
4085
|
}).finally(() => {
|
|
4129
|
-
clearTimeout(r),
|
|
4086
|
+
clearTimeout(r), Je.set(!1);
|
|
4130
4087
|
});
|
|
4131
4088
|
}
|
|
4132
|
-
return
|
|
4133
|
-
},
|
|
4134
|
-
set:
|
|
4135
|
-
}),
|
|
4089
|
+
return Ne.set(e);
|
|
4090
|
+
}, ge = fo(co({}, Ne), {
|
|
4091
|
+
set: mo
|
|
4092
|
+
}), Ge = (e) => {
|
|
4136
4093
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4137
4094
|
return (n) => {
|
|
4138
4095
|
const i = JSON.stringify(n);
|
|
4139
4096
|
return i in t ? t[i] : t[i] = e(n);
|
|
4140
4097
|
};
|
|
4141
4098
|
};
|
|
4142
|
-
var
|
|
4099
|
+
var po = Object.defineProperty, Re = Object.getOwnPropertySymbols, $r = Object.prototype.hasOwnProperty, jr = Object.prototype.propertyIsEnumerable, zt = (e, t, r) => t in e ? po(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, pt = (e, t) => {
|
|
4143
4100
|
for (var r in t || (t = {}))
|
|
4144
|
-
|
|
4145
|
-
if (
|
|
4146
|
-
for (var r of
|
|
4147
|
-
|
|
4101
|
+
$r.call(t, r) && zt(e, r, t[r]);
|
|
4102
|
+
if (Re)
|
|
4103
|
+
for (var r of Re(t))
|
|
4104
|
+
jr.call(t, r) && zt(e, r, t[r]);
|
|
4148
4105
|
return e;
|
|
4149
|
-
},
|
|
4106
|
+
}, be = (e, t) => {
|
|
4150
4107
|
var r = {};
|
|
4151
4108
|
for (var n in e)
|
|
4152
|
-
|
|
4153
|
-
if (e != null &&
|
|
4154
|
-
for (var n of
|
|
4155
|
-
t.indexOf(n) < 0 &&
|
|
4109
|
+
$r.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4110
|
+
if (e != null && Re)
|
|
4111
|
+
for (var n of Re(e))
|
|
4112
|
+
t.indexOf(n) < 0 && jr.call(e, n) && (r[n] = e[n]);
|
|
4156
4113
|
return r;
|
|
4157
4114
|
};
|
|
4158
|
-
const
|
|
4159
|
-
const { formats: r } =
|
|
4115
|
+
const Ee = (e, t) => {
|
|
4116
|
+
const { formats: r } = fe();
|
|
4160
4117
|
if (e in r && t in r[e])
|
|
4161
4118
|
return r[e][t];
|
|
4162
4119
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4163
|
-
},
|
|
4120
|
+
}, go = Ge(
|
|
4164
4121
|
(e) => {
|
|
4165
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4122
|
+
var t = e, { locale: r, format: n } = t, i = be(t, ["locale", "format"]);
|
|
4166
4123
|
if (r == null)
|
|
4167
4124
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4168
|
-
return n && (i =
|
|
4125
|
+
return n && (i = Ee("number", n)), new Intl.NumberFormat(r, i);
|
|
4169
4126
|
}
|
|
4170
|
-
),
|
|
4127
|
+
), bo = Ge(
|
|
4171
4128
|
(e) => {
|
|
4172
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4129
|
+
var t = e, { locale: r, format: n } = t, i = be(t, ["locale", "format"]);
|
|
4173
4130
|
if (r == null)
|
|
4174
4131
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4175
|
-
return n ? i =
|
|
4132
|
+
return n ? i = Ee("date", n) : Object.keys(i).length === 0 && (i = Ee("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4176
4133
|
}
|
|
4177
|
-
),
|
|
4134
|
+
), vo = Ge(
|
|
4178
4135
|
(e) => {
|
|
4179
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4136
|
+
var t = e, { locale: r, format: n } = t, i = be(t, ["locale", "format"]);
|
|
4180
4137
|
if (r == null)
|
|
4181
4138
|
throw new Error(
|
|
4182
4139
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4183
4140
|
);
|
|
4184
|
-
return n ? i =
|
|
4141
|
+
return n ? i = Ee("time", n) : Object.keys(i).length === 0 && (i = Ee("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4185
4142
|
}
|
|
4186
|
-
),
|
|
4143
|
+
), yo = (e = {}) => {
|
|
4187
4144
|
var t = e, {
|
|
4188
4145
|
locale: r = re()
|
|
4189
|
-
} = t, n =
|
|
4146
|
+
} = t, n = be(t, [
|
|
4190
4147
|
"locale"
|
|
4191
4148
|
]);
|
|
4192
|
-
return
|
|
4193
|
-
},
|
|
4149
|
+
return go(pt({ locale: r }, n));
|
|
4150
|
+
}, _o = (e = {}) => {
|
|
4194
4151
|
var t = e, {
|
|
4195
4152
|
locale: r = re()
|
|
4196
|
-
} = t, n =
|
|
4153
|
+
} = t, n = be(t, [
|
|
4197
4154
|
"locale"
|
|
4198
4155
|
]);
|
|
4199
|
-
return
|
|
4200
|
-
},
|
|
4156
|
+
return bo(pt({ locale: r }, n));
|
|
4157
|
+
}, xo = (e = {}) => {
|
|
4201
4158
|
var t = e, {
|
|
4202
4159
|
locale: r = re()
|
|
4203
|
-
} = t, n =
|
|
4160
|
+
} = t, n = be(t, [
|
|
4204
4161
|
"locale"
|
|
4205
4162
|
]);
|
|
4206
|
-
return
|
|
4207
|
-
},
|
|
4163
|
+
return vo(pt({ locale: r }, n));
|
|
4164
|
+
}, Eo = Ge(
|
|
4208
4165
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4209
|
-
(e, t = re()) => new
|
|
4210
|
-
ignoreTag:
|
|
4166
|
+
(e, t = re()) => new Zi(e, t, fe().formats, {
|
|
4167
|
+
ignoreTag: fe().ignoreTag
|
|
4211
4168
|
})
|
|
4212
|
-
),
|
|
4169
|
+
), wo = (e, t = {}) => {
|
|
4213
4170
|
var r, n, i, o;
|
|
4214
4171
|
let a = t;
|
|
4215
4172
|
typeof e == "object" && (a = e, e = a.id);
|
|
4216
4173
|
const {
|
|
4217
4174
|
values: s,
|
|
4218
|
-
locale:
|
|
4219
|
-
default:
|
|
4175
|
+
locale: l = re(),
|
|
4176
|
+
default: u
|
|
4220
4177
|
} = a;
|
|
4221
|
-
if (
|
|
4178
|
+
if (l == null)
|
|
4222
4179
|
throw new Error(
|
|
4223
4180
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4224
4181
|
);
|
|
4225
|
-
let h =
|
|
4182
|
+
let h = Ur(e, l);
|
|
4226
4183
|
if (!h)
|
|
4227
|
-
h = (o = (i = (n = (r =
|
|
4184
|
+
h = (o = (i = (n = (r = fe()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4228
4185
|
else if (typeof h != "string")
|
|
4229
4186
|
return console.warn(
|
|
4230
4187
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4233,7 +4190,7 @@ const xe = (e, t) => {
|
|
|
4233
4190
|
return h;
|
|
4234
4191
|
let c = h;
|
|
4235
4192
|
try {
|
|
4236
|
-
c =
|
|
4193
|
+
c = Eo(h, l).format(s);
|
|
4237
4194
|
} catch (f) {
|
|
4238
4195
|
f instanceof Error && console.warn(
|
|
4239
4196
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4241,20 +4198,20 @@ const xe = (e, t) => {
|
|
|
4241
4198
|
);
|
|
4242
4199
|
}
|
|
4243
4200
|
return c;
|
|
4244
|
-
},
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
window.emWidgets = { topic:
|
|
4250
|
-
const
|
|
4251
|
-
function
|
|
4201
|
+
}, So = (e, t) => xo(t).format(e), Ho = (e, t) => _o(t).format(e), To = (e, t) => yo(t).format(e), Oo = (e, t = re()) => Ur(e, t), Mo = pe([ge, Se], () => wo);
|
|
4202
|
+
pe([ge], () => So);
|
|
4203
|
+
pe([ge], () => Ho);
|
|
4204
|
+
pe([ge], () => To);
|
|
4205
|
+
pe([ge, Se], () => Oo);
|
|
4206
|
+
window.emWidgets = { topic: Dn };
|
|
4207
|
+
const Ao = (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)), Lo = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4208
|
+
function Bo(e, t) {
|
|
4252
4209
|
if (e) {
|
|
4253
4210
|
const r = document.createElement("style");
|
|
4254
4211
|
r.innerHTML = t, e.appendChild(r);
|
|
4255
4212
|
}
|
|
4256
4213
|
}
|
|
4257
|
-
function
|
|
4214
|
+
function Po(e, t) {
|
|
4258
4215
|
const r = new URL(t);
|
|
4259
4216
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4260
4217
|
const i = document.createElement("style");
|
|
@@ -4263,7 +4220,7 @@ function Uo(e, t) {
|
|
|
4263
4220
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4264
4221
|
});
|
|
4265
4222
|
}
|
|
4266
|
-
function
|
|
4223
|
+
function Io(e, t, r) {
|
|
4267
4224
|
if (window.emMessageBus) {
|
|
4268
4225
|
const n = document.createElement("style");
|
|
4269
4226
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4271,13 +4228,13 @@ function ko(e, t, r) {
|
|
|
4271
4228
|
});
|
|
4272
4229
|
}
|
|
4273
4230
|
}
|
|
4274
|
-
function
|
|
4275
|
-
|
|
4231
|
+
function Zt(e, t) {
|
|
4232
|
+
Fr(e, t);
|
|
4276
4233
|
}
|
|
4277
|
-
function
|
|
4278
|
-
|
|
4234
|
+
function Co(e) {
|
|
4235
|
+
ge.set(e);
|
|
4279
4236
|
}
|
|
4280
|
-
const
|
|
4237
|
+
const Qt = {
|
|
4281
4238
|
en: {
|
|
4282
4239
|
language: "Select Language"
|
|
4283
4240
|
},
|
|
@@ -4312,65 +4269,65 @@ const er = {
|
|
|
4312
4269
|
language: "Select Language"
|
|
4313
4270
|
}
|
|
4314
4271
|
};
|
|
4315
|
-
function
|
|
4316
|
-
|
|
4272
|
+
function No(e) {
|
|
4273
|
+
on(e, "svelte-1kfw037", "*,*::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 .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: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 .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}");
|
|
4317
4274
|
}
|
|
4318
|
-
function
|
|
4275
|
+
function Yt(e, t, r) {
|
|
4319
4276
|
const n = e.slice();
|
|
4320
4277
|
return n[58] = t[r], n;
|
|
4321
4278
|
}
|
|
4322
|
-
function
|
|
4279
|
+
function qt(e, t, r) {
|
|
4323
4280
|
const n = e.slice();
|
|
4324
4281
|
return n[1] = t[r], n;
|
|
4325
4282
|
}
|
|
4326
|
-
function
|
|
4283
|
+
function Jt(e, t, r) {
|
|
4327
4284
|
const n = e.slice();
|
|
4328
4285
|
return n[61] = t[r], n;
|
|
4329
4286
|
}
|
|
4330
|
-
function
|
|
4287
|
+
function Ro(e, t, r) {
|
|
4331
4288
|
const n = e.slice();
|
|
4332
4289
|
return n[67] = t[r], n;
|
|
4333
4290
|
}
|
|
4334
|
-
function
|
|
4291
|
+
function Kt(e, t, r) {
|
|
4335
4292
|
const n = e.slice();
|
|
4336
4293
|
return n[64] = t[r], n;
|
|
4337
4294
|
}
|
|
4338
|
-
function
|
|
4339
|
-
let t, r, n, i, o, a, s,
|
|
4295
|
+
function er(e) {
|
|
4296
|
+
let t, r, n, i, o, a, s, l, u, h, c, f, m, g, v, S, T, P, L, G, C, V, X;
|
|
4340
4297
|
function ne(x, R) {
|
|
4341
4298
|
return (
|
|
4342
4299
|
/*HamburgerMenuItems*/
|
|
4343
|
-
x[4].length > 0 ?
|
|
4300
|
+
x[4].length > 0 ? ko : Uo
|
|
4344
4301
|
);
|
|
4345
4302
|
}
|
|
4346
|
-
let q = ne(e), N = q(e), j =
|
|
4303
|
+
let q = ne(e), N = q(e), j = Q(
|
|
4347
4304
|
/*activeMenuItemChildren*/
|
|
4348
4305
|
e[6]
|
|
4349
|
-
),
|
|
4306
|
+
), M = [];
|
|
4350
4307
|
for (let x = 0; x < j.length; x += 1)
|
|
4351
|
-
|
|
4352
|
-
let
|
|
4308
|
+
M[x] = ir(Jt(e, j, x));
|
|
4309
|
+
let B = (
|
|
4353
4310
|
/*languagesArray*/
|
|
4354
|
-
e[9].length > 1 &&
|
|
4311
|
+
e[9].length > 1 && or(e)
|
|
4355
4312
|
);
|
|
4356
4313
|
return {
|
|
4357
4314
|
c() {
|
|
4358
4315
|
t = y("div"), r = y("div"), n = y("ul"), N.c(), i = U(), o = y("div"), a = U(), s = y("ul");
|
|
4359
|
-
for (let x = 0; x <
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
(e[10] ? "Overlay" : "")),
|
|
4316
|
+
for (let x = 0; x < M.length; x += 1)
|
|
4317
|
+
M[x].c();
|
|
4318
|
+
u = U(), B && B.c(), c = U(), f = y("span"), m = y("div"), g = y("span"), v = U(), S = y("span"), T = U(), P = y("span"), p(n, "class", "HamburgerPrimaryMenu"), p(o, "class", "Separator"), p(s, "class", l = "HamburgerSecondaryMenu " + /*isOptionsListVisible*/
|
|
4319
|
+
(e[10] ? "Overlay" : "")), p(r, "class", h = "HamburgerModalContainer " + /*modalIsOpen*/
|
|
4363
4320
|
(e[7] ? "ActiveHamburgerMenu" : "") + " " + /*isClosing*/
|
|
4364
|
-
(e[12] ? "Closing" : "")), m
|
|
4365
|
-
e[13] ? "" : "Open")),
|
|
4366
|
-
e[7] ? "ModalCloseBtn" : ""),
|
|
4321
|
+
(e[12] ? "Closing" : "")), p(m, "class", L = "NavIcon " + (/*navIconClosing*/
|
|
4322
|
+
e[13] ? "" : "Open")), p(f, "class", G = /*modalIsOpen*/
|
|
4323
|
+
e[7] ? "ModalCloseBtn" : ""), p(f, "role", "button"), p(t, "class", C = "HamburgerModalWindow " + /*isClosing*/
|
|
4367
4324
|
(e[12] ? " Closing" : ""));
|
|
4368
4325
|
},
|
|
4369
4326
|
m(x, R) {
|
|
4370
4327
|
k(x, t, R), b(t, r), b(r, n), N.m(n, null), b(r, i), b(r, o), b(r, a), b(r, s);
|
|
4371
|
-
for (let
|
|
4372
|
-
|
|
4373
|
-
b(r,
|
|
4328
|
+
for (let H = 0; H < M.length; H += 1)
|
|
4329
|
+
M[H] && M[H].m(s, null);
|
|
4330
|
+
b(r, u), B && B.m(r, null), b(t, c), b(t, f), b(f, m), b(m, g), b(m, v), b(m, S), b(m, T), b(m, P), e[40](t), V || (X = te(
|
|
4374
4331
|
f,
|
|
4375
4332
|
"click",
|
|
4376
4333
|
/*close*/
|
|
@@ -4380,47 +4337,47 @@ function or(e) {
|
|
|
4380
4337
|
p(x, R) {
|
|
4381
4338
|
if (q === (q = ne(x)) && N ? N.p(x, R) : (N.d(1), N = q(x), N && (N.c(), N.m(n, null))), R[0] & /*handleClick, activeMenuItemChildren*/
|
|
4382
4339
|
262208) {
|
|
4383
|
-
j =
|
|
4340
|
+
j = Q(
|
|
4384
4341
|
/*activeMenuItemChildren*/
|
|
4385
4342
|
x[6]
|
|
4386
4343
|
);
|
|
4387
|
-
let
|
|
4388
|
-
for (
|
|
4389
|
-
const W =
|
|
4390
|
-
|
|
4344
|
+
let H;
|
|
4345
|
+
for (H = 0; H < j.length; H += 1) {
|
|
4346
|
+
const W = Jt(x, j, H);
|
|
4347
|
+
M[H] ? M[H].p(W, R) : (M[H] = ir(W), M[H].c(), M[H].m(s, null));
|
|
4391
4348
|
}
|
|
4392
|
-
for (;
|
|
4393
|
-
|
|
4394
|
-
|
|
4349
|
+
for (; H < M.length; H += 1)
|
|
4350
|
+
M[H].d(1);
|
|
4351
|
+
M.length = j.length;
|
|
4395
4352
|
}
|
|
4396
4353
|
R[0] & /*isOptionsListVisible*/
|
|
4397
|
-
1024 &&
|
|
4398
|
-
(x[10] ? "Overlay" : "")) &&
|
|
4399
|
-
x[9].length > 1 ?
|
|
4354
|
+
1024 && l !== (l = "HamburgerSecondaryMenu " + /*isOptionsListVisible*/
|
|
4355
|
+
(x[10] ? "Overlay" : "")) && p(s, "class", l), /*languagesArray*/
|
|
4356
|
+
x[9].length > 1 ? B ? B.p(x, R) : (B = or(x), B.c(), B.m(r, null)) : B && (B.d(1), B = null), R[0] & /*modalIsOpen, isClosing*/
|
|
4400
4357
|
4224 && h !== (h = "HamburgerModalContainer " + /*modalIsOpen*/
|
|
4401
4358
|
(x[7] ? "ActiveHamburgerMenu" : "") + " " + /*isClosing*/
|
|
4402
|
-
(x[12] ? "Closing" : "")) &&
|
|
4403
|
-
8192 &&
|
|
4404
|
-
x[13] ? "" : "Open")) && m
|
|
4359
|
+
(x[12] ? "Closing" : "")) && p(r, "class", h), R[0] & /*navIconClosing*/
|
|
4360
|
+
8192 && L !== (L = "NavIcon " + (/*navIconClosing*/
|
|
4361
|
+
x[13] ? "" : "Open")) && p(m, "class", L), R[0] & /*modalIsOpen*/
|
|
4405
4362
|
128 && G !== (G = /*modalIsOpen*/
|
|
4406
|
-
x[7] ? "ModalCloseBtn" : "") &&
|
|
4363
|
+
x[7] ? "ModalCloseBtn" : "") && p(f, "class", G), R[0] & /*isClosing*/
|
|
4407
4364
|
4096 && C !== (C = "HamburgerModalWindow " + /*isClosing*/
|
|
4408
|
-
(x[12] ? " Closing" : "")) &&
|
|
4365
|
+
(x[12] ? " Closing" : "")) && p(t, "class", C);
|
|
4409
4366
|
},
|
|
4410
4367
|
d(x) {
|
|
4411
|
-
x && I(t), N.d(),
|
|
4368
|
+
x && I(t), N.d(), we(M, x), B && B.d(), e[40](null), V = !1, X();
|
|
4412
4369
|
}
|
|
4413
4370
|
};
|
|
4414
4371
|
}
|
|
4415
|
-
function
|
|
4416
|
-
let t, r =
|
|
4372
|
+
function Uo(e) {
|
|
4373
|
+
let t, r = Q(new Array(5)), n = [];
|
|
4417
4374
|
for (let i = 0; i < r.length; i += 1)
|
|
4418
|
-
n[i] =
|
|
4375
|
+
n[i] = Fo(Ro(e, r, i));
|
|
4419
4376
|
return {
|
|
4420
4377
|
c() {
|
|
4421
4378
|
for (let i = 0; i < n.length; i += 1)
|
|
4422
4379
|
n[i].c();
|
|
4423
|
-
t =
|
|
4380
|
+
t = fr();
|
|
4424
4381
|
},
|
|
4425
4382
|
m(i, o) {
|
|
4426
4383
|
for (let a = 0; a < n.length; a += 1)
|
|
@@ -4429,22 +4386,22 @@ function $o(e) {
|
|
|
4429
4386
|
},
|
|
4430
4387
|
p: $,
|
|
4431
4388
|
d(i) {
|
|
4432
|
-
i && I(t),
|
|
4389
|
+
i && I(t), we(n, i);
|
|
4433
4390
|
}
|
|
4434
4391
|
};
|
|
4435
4392
|
}
|
|
4436
|
-
function
|
|
4437
|
-
let t, r =
|
|
4393
|
+
function ko(e) {
|
|
4394
|
+
let t, r = Q(
|
|
4438
4395
|
/*HamburgerMenuItems*/
|
|
4439
4396
|
e[4]
|
|
4440
4397
|
), n = [];
|
|
4441
4398
|
for (let i = 0; i < r.length; i += 1)
|
|
4442
|
-
n[i] =
|
|
4399
|
+
n[i] = rr(Kt(e, r, i));
|
|
4443
4400
|
return {
|
|
4444
4401
|
c() {
|
|
4445
4402
|
for (let i = 0; i < n.length; i += 1)
|
|
4446
4403
|
n[i].c();
|
|
4447
|
-
t =
|
|
4404
|
+
t = fr();
|
|
4448
4405
|
},
|
|
4449
4406
|
m(i, o) {
|
|
4450
4407
|
for (let a = 0; a < n.length; a += 1)
|
|
@@ -4454,14 +4411,14 @@ function jo(e) {
|
|
|
4454
4411
|
p(i, o) {
|
|
4455
4412
|
if (o[0] & /*activeMenuItemId, HamburgerMenuItems, handlePrimaryMenuClick*/
|
|
4456
4413
|
131120) {
|
|
4457
|
-
r =
|
|
4414
|
+
r = Q(
|
|
4458
4415
|
/*HamburgerMenuItems*/
|
|
4459
4416
|
i[4]
|
|
4460
4417
|
);
|
|
4461
4418
|
let a;
|
|
4462
4419
|
for (a = 0; a < r.length; a += 1) {
|
|
4463
|
-
const s =
|
|
4464
|
-
n[a] ? n[a].p(s, o) : (n[a] =
|
|
4420
|
+
const s = Kt(i, r, a);
|
|
4421
|
+
n[a] ? n[a].p(s, o) : (n[a] = rr(s), n[a].c(), n[a].m(t.parentNode, t));
|
|
4465
4422
|
}
|
|
4466
4423
|
for (; a < n.length; a += 1)
|
|
4467
4424
|
n[a].d(1);
|
|
@@ -4469,15 +4426,15 @@ function jo(e) {
|
|
|
4469
4426
|
}
|
|
4470
4427
|
},
|
|
4471
4428
|
d(i) {
|
|
4472
|
-
i && I(t),
|
|
4429
|
+
i && I(t), we(n, i);
|
|
4473
4430
|
}
|
|
4474
4431
|
};
|
|
4475
4432
|
}
|
|
4476
|
-
function
|
|
4433
|
+
function Fo(e) {
|
|
4477
4434
|
let t;
|
|
4478
4435
|
return {
|
|
4479
4436
|
c() {
|
|
4480
|
-
t = y("div"), t.innerHTML = "",
|
|
4437
|
+
t = y("div"), t.innerHTML = "", p(t, "class", "Loading Skeleton");
|
|
4481
4438
|
},
|
|
4482
4439
|
m(r, n) {
|
|
4483
4440
|
k(r, t, n);
|
|
@@ -4488,12 +4445,12 @@ function Wo(e) {
|
|
|
4488
4445
|
}
|
|
4489
4446
|
};
|
|
4490
4447
|
}
|
|
4491
|
-
function
|
|
4448
|
+
function tr(e) {
|
|
4492
4449
|
let t, r;
|
|
4493
4450
|
return {
|
|
4494
4451
|
c() {
|
|
4495
4452
|
t = y("img"), K(t.src, r = /*mainItem*/
|
|
4496
|
-
e[64].img) ||
|
|
4453
|
+
e[64].img) || p(t, "src", r), p(t, "alt", "menu icon");
|
|
4497
4454
|
},
|
|
4498
4455
|
m(n, i) {
|
|
4499
4456
|
k(n, t, i);
|
|
@@ -4501,20 +4458,20 @@ function ar(e) {
|
|
|
4501
4458
|
p(n, i) {
|
|
4502
4459
|
i[0] & /*HamburgerMenuItems*/
|
|
4503
4460
|
16 && !K(t.src, r = /*mainItem*/
|
|
4504
|
-
n[64].img) &&
|
|
4461
|
+
n[64].img) && p(t, "src", r);
|
|
4505
4462
|
},
|
|
4506
4463
|
d(n) {
|
|
4507
4464
|
n && I(t);
|
|
4508
4465
|
}
|
|
4509
4466
|
};
|
|
4510
4467
|
}
|
|
4511
|
-
function
|
|
4468
|
+
function rr(e) {
|
|
4512
4469
|
let t, r, n, i, o = (
|
|
4513
4470
|
/*mainItem*/
|
|
4514
4471
|
e[64].label + ""
|
|
4515
|
-
), a, s,
|
|
4472
|
+
), a, s, l, u, h, c = (
|
|
4516
4473
|
/*mainItem*/
|
|
4517
|
-
e[64]?.img &&
|
|
4474
|
+
e[64]?.img && tr(e)
|
|
4518
4475
|
);
|
|
4519
4476
|
function f() {
|
|
4520
4477
|
return (
|
|
@@ -4527,33 +4484,33 @@ function sr(e) {
|
|
|
4527
4484
|
}
|
|
4528
4485
|
return {
|
|
4529
4486
|
c() {
|
|
4530
|
-
t = y("li"), r = y("div"), c && c.c(), n = U(), i = y("p"), a = ee(o), s = U(),
|
|
4487
|
+
t = y("li"), r = y("div"), c && c.c(), n = U(), i = y("p"), a = ee(o), s = U(), p(r, "class", "HamburgerItemContainer"), p(t, "class", l = /*activeMenuItemId*/
|
|
4531
4488
|
e[5] === /*mainItem*/
|
|
4532
4489
|
e[64].id ? "ActiveItem" : "");
|
|
4533
4490
|
},
|
|
4534
|
-
m(
|
|
4535
|
-
k(
|
|
4491
|
+
m(m, g) {
|
|
4492
|
+
k(m, t, g), b(t, r), c && c.m(r, null), b(r, n), b(r, i), b(i, a), b(t, s), u || (h = te(t, "click", f), u = !0);
|
|
4536
4493
|
},
|
|
4537
|
-
p(
|
|
4538
|
-
e =
|
|
4539
|
-
e[64]?.img ? c ? c.p(e, g) : (c =
|
|
4494
|
+
p(m, g) {
|
|
4495
|
+
e = m, /*mainItem*/
|
|
4496
|
+
e[64]?.img ? c ? c.p(e, g) : (c = tr(e), c.c(), c.m(r, n)) : c && (c.d(1), c = null), g[0] & /*HamburgerMenuItems*/
|
|
4540
4497
|
16 && o !== (o = /*mainItem*/
|
|
4541
|
-
e[64].label + "") &&
|
|
4542
|
-
48 &&
|
|
4498
|
+
e[64].label + "") && me(a, o), g[0] & /*activeMenuItemId, HamburgerMenuItems*/
|
|
4499
|
+
48 && l !== (l = /*activeMenuItemId*/
|
|
4543
4500
|
e[5] === /*mainItem*/
|
|
4544
|
-
e[64].id ? "ActiveItem" : "") &&
|
|
4501
|
+
e[64].id ? "ActiveItem" : "") && p(t, "class", l);
|
|
4545
4502
|
},
|
|
4546
|
-
d(
|
|
4547
|
-
|
|
4503
|
+
d(m) {
|
|
4504
|
+
m && I(t), c && c.d(), u = !1, h();
|
|
4548
4505
|
}
|
|
4549
4506
|
};
|
|
4550
4507
|
}
|
|
4551
|
-
function
|
|
4508
|
+
function nr(e) {
|
|
4552
4509
|
let t, r;
|
|
4553
4510
|
return {
|
|
4554
4511
|
c() {
|
|
4555
4512
|
t = y("img"), K(t.src, r = /*secondaryItem*/
|
|
4556
|
-
e[61].img) ||
|
|
4513
|
+
e[61].img) || p(t, "src", r), p(t, "alt", "menu icon");
|
|
4557
4514
|
},
|
|
4558
4515
|
m(n, i) {
|
|
4559
4516
|
k(n, t, i);
|
|
@@ -4561,20 +4518,20 @@ function ur(e) {
|
|
|
4561
4518
|
p(n, i) {
|
|
4562
4519
|
i[0] & /*activeMenuItemChildren*/
|
|
4563
4520
|
64 && !K(t.src, r = /*secondaryItem*/
|
|
4564
|
-
n[61].img) &&
|
|
4521
|
+
n[61].img) && p(t, "src", r);
|
|
4565
4522
|
},
|
|
4566
4523
|
d(n) {
|
|
4567
4524
|
n && I(t);
|
|
4568
4525
|
}
|
|
4569
4526
|
};
|
|
4570
4527
|
}
|
|
4571
|
-
function
|
|
4528
|
+
function ir(e) {
|
|
4572
4529
|
let t, r, n, i = (
|
|
4573
4530
|
/*secondaryItem*/
|
|
4574
4531
|
e[61].label + ""
|
|
4575
|
-
), o, a, s,
|
|
4532
|
+
), o, a, s, l, u = (
|
|
4576
4533
|
/*secondaryItem*/
|
|
4577
|
-
e[61]?.img &&
|
|
4534
|
+
e[61]?.img && nr(e)
|
|
4578
4535
|
);
|
|
4579
4536
|
function h(...c) {
|
|
4580
4537
|
return (
|
|
@@ -4588,110 +4545,110 @@ function lr(e) {
|
|
|
4588
4545
|
}
|
|
4589
4546
|
return {
|
|
4590
4547
|
c() {
|
|
4591
|
-
t = y("li"),
|
|
4548
|
+
t = y("li"), u && u.c(), r = U(), n = y("p"), o = ee(i), a = U();
|
|
4592
4549
|
},
|
|
4593
4550
|
m(c, f) {
|
|
4594
|
-
k(c, t, f),
|
|
4551
|
+
k(c, t, f), u && u.m(t, null), b(t, r), b(t, n), b(n, o), b(t, a), s || (l = te(t, "click", h), s = !0);
|
|
4595
4552
|
},
|
|
4596
4553
|
p(c, f) {
|
|
4597
4554
|
e = c, /*secondaryItem*/
|
|
4598
|
-
e[61]?.img ?
|
|
4555
|
+
e[61]?.img ? u ? u.p(e, f) : (u = nr(e), u.c(), u.m(t, r)) : u && (u.d(1), u = null), f[0] & /*activeMenuItemChildren*/
|
|
4599
4556
|
64 && i !== (i = /*secondaryItem*/
|
|
4600
|
-
e[61].label + "") &&
|
|
4557
|
+
e[61].label + "") && me(o, i);
|
|
4601
4558
|
},
|
|
4602
4559
|
d(c) {
|
|
4603
|
-
c && I(t),
|
|
4560
|
+
c && I(t), u && u.d(), s = !1, l();
|
|
4604
4561
|
}
|
|
4605
4562
|
};
|
|
4606
4563
|
}
|
|
4607
|
-
function
|
|
4564
|
+
function or(e) {
|
|
4608
4565
|
let t, r, n = (
|
|
4609
4566
|
/*$_*/
|
|
4610
4567
|
e[15]("language") + ""
|
|
4611
|
-
), i, o, a, s,
|
|
4612
|
-
function
|
|
4568
|
+
), i, o, a, s, l;
|
|
4569
|
+
function u(f, m) {
|
|
4613
4570
|
return (
|
|
4614
4571
|
/*countryflaghamburger*/
|
|
4615
|
-
f[0] !== "true" ?
|
|
4572
|
+
f[0] !== "true" ? Go : Do
|
|
4616
4573
|
);
|
|
4617
4574
|
}
|
|
4618
|
-
let h =
|
|
4575
|
+
let h = u(e), c = h(e);
|
|
4619
4576
|
return {
|
|
4620
4577
|
c() {
|
|
4621
|
-
t = y("div"), r = y("span"), i = ee(n), o = U(), c.c(),
|
|
4578
|
+
t = y("div"), r = y("span"), i = ee(n), o = U(), c.c(), p(r, "class", "LanguageSelectorTitle"), p(t, "class", a = "LanguageSelector " + /*isOptionsListVisible*/
|
|
4622
4579
|
(e[10] ? "Open" : ""));
|
|
4623
4580
|
},
|
|
4624
|
-
m(f,
|
|
4625
|
-
k(f, t,
|
|
4581
|
+
m(f, m) {
|
|
4582
|
+
k(f, t, m), b(t, r), b(r, i), b(t, o), c.m(t, null), s || (l = te(
|
|
4626
4583
|
t,
|
|
4627
4584
|
"click",
|
|
4628
4585
|
/*toggleLanguageDropdown*/
|
|
4629
4586
|
e[21]
|
|
4630
4587
|
), s = !0);
|
|
4631
4588
|
},
|
|
4632
|
-
p(f,
|
|
4633
|
-
|
|
4589
|
+
p(f, m) {
|
|
4590
|
+
m[0] & /*$_*/
|
|
4634
4591
|
32768 && n !== (n = /*$_*/
|
|
4635
|
-
f[15]("language") + "") &&
|
|
4592
|
+
f[15]("language") + "") && me(i, n), h === (h = u(f)) && c ? c.p(f, m) : (c.d(1), c = h(f), c && (c.c(), c.m(t, null))), m[0] & /*isOptionsListVisible*/
|
|
4636
4593
|
1024 && a !== (a = "LanguageSelector " + /*isOptionsListVisible*/
|
|
4637
|
-
(f[10] ? "Open" : "")) &&
|
|
4594
|
+
(f[10] ? "Open" : "")) && p(t, "class", a);
|
|
4638
4595
|
},
|
|
4639
4596
|
d(f) {
|
|
4640
|
-
f && I(t), c.d(), s = !1,
|
|
4597
|
+
f && I(t), c.d(), s = !1, l();
|
|
4641
4598
|
}
|
|
4642
4599
|
};
|
|
4643
4600
|
}
|
|
4644
|
-
function
|
|
4645
|
-
let t, r, n, i, o, a, s,
|
|
4601
|
+
function Do(e) {
|
|
4602
|
+
let t, r, n, i, o, a, s, l = (
|
|
4646
4603
|
/*selectedLanguage*/
|
|
4647
4604
|
e[14].slice(-2) + ""
|
|
4648
|
-
),
|
|
4605
|
+
), u, h, c, f, m, g, v, S = (
|
|
4649
4606
|
/*isOptionsListVisible*/
|
|
4650
|
-
e[10] &&
|
|
4607
|
+
e[10] && ar(e)
|
|
4651
4608
|
);
|
|
4652
4609
|
return {
|
|
4653
4610
|
c() {
|
|
4654
|
-
t = y("div"), r = y("div"), n = y("span"), i = y("img"), a = U(), s = y("span"),
|
|
4611
|
+
t = y("div"), r = y("div"), n = y("span"), i = y("img"), a = U(), s = y("span"), u = ee(l), h = U(), c = y("span"), f = St("svg"), m = St("path"), v = U(), S && S.c(), K(i.src, o = `http://purecatamphetamine.github.io/country-flag-icons/3x2/${/*determineFlag*/
|
|
4655
4612
|
e[22](
|
|
4656
4613
|
/*selectedLanguage*/
|
|
4657
4614
|
e[14]
|
|
4658
|
-
)}.svg`) ||
|
|
4659
|
-
(e[10] ? "TriangleActive" : "")),
|
|
4615
|
+
)}.svg`) || p(i, "src", o), p(n, "class", "FlagIcon"), p(s, "class", "LanguageName"), p(m, "id", "arrow"), p(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"), p(m, "transform", "translate(-274.511 -441.088)"), p(m, "fill", "#d1d1d1"), p(f, "xmlns", "http://www.w3.org/2000/svg"), p(f, "width", "14"), p(f, "height", "6.835"), p(f, "viewBox", "0 0 14 6.835"), p(c, "class", g = "TriangleInactive " + /*isOptionsListVisible*/
|
|
4616
|
+
(e[10] ? "TriangleActive" : "")), p(r, "class", "SelectedOption Item ItemLanguage"), p(t, "class", "LanguageDropdown");
|
|
4660
4617
|
},
|
|
4661
|
-
m(
|
|
4662
|
-
k(
|
|
4618
|
+
m(T, P) {
|
|
4619
|
+
k(T, t, P), b(t, r), b(r, n), b(n, i), b(r, a), b(r, s), b(s, u), b(r, h), b(r, c), b(c, f), b(f, m), b(t, v), S && S.m(t, null);
|
|
4663
4620
|
},
|
|
4664
|
-
p(
|
|
4665
|
-
|
|
4621
|
+
p(T, P) {
|
|
4622
|
+
P[0] & /*selectedLanguage, languagesArray*/
|
|
4666
4623
|
16896 && !K(i.src, o = `http://purecatamphetamine.github.io/country-flag-icons/3x2/${/*determineFlag*/
|
|
4667
|
-
|
|
4624
|
+
T[22](
|
|
4668
4625
|
/*selectedLanguage*/
|
|
4669
|
-
|
|
4670
|
-
)}.svg`) &&
|
|
4671
|
-
16384 &&
|
|
4672
|
-
|
|
4626
|
+
T[14]
|
|
4627
|
+
)}.svg`) && p(i, "src", o), P[0] & /*selectedLanguage*/
|
|
4628
|
+
16384 && l !== (l = /*selectedLanguage*/
|
|
4629
|
+
T[14].slice(-2) + "") && me(u, l), P[0] & /*isOptionsListVisible*/
|
|
4673
4630
|
1024 && g !== (g = "TriangleInactive " + /*isOptionsListVisible*/
|
|
4674
|
-
(
|
|
4675
|
-
|
|
4631
|
+
(T[10] ? "TriangleActive" : "")) && p(c, "class", g), /*isOptionsListVisible*/
|
|
4632
|
+
T[10] ? S ? S.p(T, P) : (S = ar(T), S.c(), S.m(t, null)) : S && (S.d(1), S = null);
|
|
4676
4633
|
},
|
|
4677
|
-
d(
|
|
4678
|
-
|
|
4634
|
+
d(T) {
|
|
4635
|
+
T && I(t), S && S.d();
|
|
4679
4636
|
}
|
|
4680
4637
|
};
|
|
4681
4638
|
}
|
|
4682
|
-
function
|
|
4683
|
-
let t, r, n, i =
|
|
4639
|
+
function Go(e) {
|
|
4640
|
+
let t, r, n, i = Q(
|
|
4684
4641
|
/*languagesArray*/
|
|
4685
4642
|
e[9]
|
|
4686
4643
|
), o = [];
|
|
4687
4644
|
for (let a = 0; a < i.length; a += 1)
|
|
4688
|
-
o[a] =
|
|
4645
|
+
o[a] = lr(qt(e, i, a));
|
|
4689
4646
|
return {
|
|
4690
4647
|
c() {
|
|
4691
4648
|
t = y("select");
|
|
4692
4649
|
for (let a = 0; a < o.length; a += 1)
|
|
4693
4650
|
o[a].c();
|
|
4694
|
-
|
|
4651
|
+
p(t, "class", "Item ItemLanguage NoFlag"), /*selectedLanguage*/
|
|
4695
4652
|
e[14] === void 0 && Ce(() => (
|
|
4696
4653
|
/*select_change_handler*/
|
|
4697
4654
|
e[37].call(t)
|
|
@@ -4699,9 +4656,9 @@ function Xo(e) {
|
|
|
4699
4656
|
},
|
|
4700
4657
|
m(a, s) {
|
|
4701
4658
|
k(a, t, s);
|
|
4702
|
-
for (let
|
|
4703
|
-
o[
|
|
4704
|
-
|
|
4659
|
+
for (let l = 0; l < o.length; l += 1)
|
|
4660
|
+
o[l] && o[l].m(t, null);
|
|
4661
|
+
Tt(
|
|
4705
4662
|
t,
|
|
4706
4663
|
/*selectedLanguage*/
|
|
4707
4664
|
e[14],
|
|
@@ -4724,44 +4681,44 @@ function Xo(e) {
|
|
|
4724
4681
|
p(a, s) {
|
|
4725
4682
|
if (s[0] & /*languagesArray*/
|
|
4726
4683
|
512) {
|
|
4727
|
-
i =
|
|
4684
|
+
i = Q(
|
|
4728
4685
|
/*languagesArray*/
|
|
4729
4686
|
a[9]
|
|
4730
4687
|
);
|
|
4731
|
-
let
|
|
4732
|
-
for (
|
|
4733
|
-
const
|
|
4734
|
-
o[
|
|
4688
|
+
let l;
|
|
4689
|
+
for (l = 0; l < i.length; l += 1) {
|
|
4690
|
+
const u = qt(a, i, l);
|
|
4691
|
+
o[l] ? o[l].p(u, s) : (o[l] = lr(u), o[l].c(), o[l].m(t, null));
|
|
4735
4692
|
}
|
|
4736
|
-
for (;
|
|
4737
|
-
o[
|
|
4693
|
+
for (; l < o.length; l += 1)
|
|
4694
|
+
o[l].d(1);
|
|
4738
4695
|
o.length = i.length;
|
|
4739
4696
|
}
|
|
4740
4697
|
s[0] & /*selectedLanguage, languagesArray*/
|
|
4741
|
-
16896 &&
|
|
4698
|
+
16896 && Tt(
|
|
4742
4699
|
t,
|
|
4743
4700
|
/*selectedLanguage*/
|
|
4744
4701
|
a[14]
|
|
4745
4702
|
);
|
|
4746
4703
|
},
|
|
4747
4704
|
d(a) {
|
|
4748
|
-
a && I(t),
|
|
4705
|
+
a && I(t), we(o, a), r = !1, de(n);
|
|
4749
4706
|
}
|
|
4750
4707
|
};
|
|
4751
4708
|
}
|
|
4752
|
-
function
|
|
4753
|
-
let t, r, n =
|
|
4709
|
+
function ar(e) {
|
|
4710
|
+
let t, r, n = Q(
|
|
4754
4711
|
/*languagesArray*/
|
|
4755
4712
|
e[9]
|
|
4756
4713
|
), i = [];
|
|
4757
4714
|
for (let o = 0; o < n.length; o += 1)
|
|
4758
|
-
i[o] =
|
|
4715
|
+
i[o] = sr(Yt(e, n, o));
|
|
4759
4716
|
return {
|
|
4760
4717
|
c() {
|
|
4761
4718
|
t = y("div");
|
|
4762
4719
|
for (let o = 0; o < i.length; o += 1)
|
|
4763
4720
|
i[o].c();
|
|
4764
|
-
|
|
4721
|
+
p(t, "class", r = "OptionList " + /*languageListOpen*/
|
|
4765
4722
|
(e[11] ? "Open" : ""));
|
|
4766
4723
|
},
|
|
4767
4724
|
m(o, a) {
|
|
@@ -4772,14 +4729,14 @@ function cr(e) {
|
|
|
4772
4729
|
p(o, a) {
|
|
4773
4730
|
if (a[0] & /*languageListOpen, selectLanguage, languagesArray, determineFlag*/
|
|
4774
4731
|
5245440) {
|
|
4775
|
-
n =
|
|
4732
|
+
n = Q(
|
|
4776
4733
|
/*languagesArray*/
|
|
4777
4734
|
o[9]
|
|
4778
4735
|
);
|
|
4779
4736
|
let s;
|
|
4780
4737
|
for (s = 0; s < n.length; s += 1) {
|
|
4781
|
-
const
|
|
4782
|
-
i[s] ? i[s].p(
|
|
4738
|
+
const l = Yt(o, n, s);
|
|
4739
|
+
i[s] ? i[s].p(l, a) : (i[s] = sr(l), i[s].c(), i[s].m(t, null));
|
|
4783
4740
|
}
|
|
4784
4741
|
for (; s < i.length; s += 1)
|
|
4785
4742
|
i[s].d(1);
|
|
@@ -4787,19 +4744,19 @@ function cr(e) {
|
|
|
4787
4744
|
}
|
|
4788
4745
|
a[0] & /*languageListOpen*/
|
|
4789
4746
|
2048 && r !== (r = "OptionList " + /*languageListOpen*/
|
|
4790
|
-
(o[11] ? "Open" : "")) &&
|
|
4747
|
+
(o[11] ? "Open" : "")) && p(t, "class", r);
|
|
4791
4748
|
},
|
|
4792
4749
|
d(o) {
|
|
4793
|
-
o && I(t),
|
|
4750
|
+
o && I(t), we(i, o);
|
|
4794
4751
|
}
|
|
4795
4752
|
};
|
|
4796
4753
|
}
|
|
4797
|
-
function
|
|
4754
|
+
function sr(e) {
|
|
4798
4755
|
let t, r, n, i, o, a, s = (
|
|
4799
4756
|
/*operatorLanguage*/
|
|
4800
4757
|
e[58] + ""
|
|
4801
|
-
),
|
|
4802
|
-
function
|
|
4758
|
+
), l, u, h, c, f;
|
|
4759
|
+
function m() {
|
|
4803
4760
|
return (
|
|
4804
4761
|
/*click_handler_2*/
|
|
4805
4762
|
e[39](
|
|
@@ -4810,15 +4767,15 @@ function fr(e) {
|
|
|
4810
4767
|
}
|
|
4811
4768
|
return {
|
|
4812
4769
|
c() {
|
|
4813
|
-
t = y("div"), r = y("span"), n = y("img"), o = U(), a = y("span"),
|
|
4770
|
+
t = y("div"), r = y("span"), n = y("img"), o = U(), a = y("span"), l = ee(s), u = U(), K(n.src, i = `http://purecatamphetamine.github.io/country-flag-icons/3x2/${/*determineFlag*/
|
|
4814
4771
|
e[22](
|
|
4815
4772
|
/*operatorLanguage*/
|
|
4816
4773
|
e[58]
|
|
4817
|
-
)}.svg`) ||
|
|
4774
|
+
)}.svg`) || p(n, "src", i), p(r, "class", "FlagIcon"), p(a, "class", "LanguageName"), p(t, "class", h = "LanguageOption " + /*languageListOpen*/
|
|
4818
4775
|
(e[11] ? "Open" : ""));
|
|
4819
4776
|
},
|
|
4820
4777
|
m(g, v) {
|
|
4821
|
-
k(g, t, v), b(t, r), b(r, n), b(t, o), b(t, a), b(a,
|
|
4778
|
+
k(g, t, v), b(t, r), b(r, n), b(t, o), b(t, a), b(a, l), b(t, u), c || (f = te(t, "click", m), c = !0);
|
|
4822
4779
|
},
|
|
4823
4780
|
p(g, v) {
|
|
4824
4781
|
e = g, v[0] & /*languagesArray*/
|
|
@@ -4826,18 +4783,18 @@ function fr(e) {
|
|
|
4826
4783
|
e[22](
|
|
4827
4784
|
/*operatorLanguage*/
|
|
4828
4785
|
e[58]
|
|
4829
|
-
)}.svg`) &&
|
|
4786
|
+
)}.svg`) && p(n, "src", i), v[0] & /*languagesArray*/
|
|
4830
4787
|
512 && s !== (s = /*operatorLanguage*/
|
|
4831
|
-
e[58] + "") &&
|
|
4788
|
+
e[58] + "") && me(l, s), v[0] & /*languageListOpen*/
|
|
4832
4789
|
2048 && h !== (h = "LanguageOption " + /*languageListOpen*/
|
|
4833
|
-
(e[11] ? "Open" : "")) &&
|
|
4790
|
+
(e[11] ? "Open" : "")) && p(t, "class", h);
|
|
4834
4791
|
},
|
|
4835
4792
|
d(g) {
|
|
4836
4793
|
g && I(t), c = !1, f();
|
|
4837
4794
|
}
|
|
4838
4795
|
};
|
|
4839
4796
|
}
|
|
4840
|
-
function
|
|
4797
|
+
function lr(e) {
|
|
4841
4798
|
let t, r = (
|
|
4842
4799
|
/*lang*/
|
|
4843
4800
|
e[1].slice(-2) + ""
|
|
@@ -4845,7 +4802,7 @@ function pr(e) {
|
|
|
4845
4802
|
return {
|
|
4846
4803
|
c() {
|
|
4847
4804
|
t = y("option"), n = ee(r), t.__value = i = /*lang*/
|
|
4848
|
-
e[1],
|
|
4805
|
+
e[1], Ht(t, t.__value), t.selected = !0;
|
|
4849
4806
|
},
|
|
4850
4807
|
m(o, a) {
|
|
4851
4808
|
k(o, t, a), b(t, n);
|
|
@@ -4853,19 +4810,19 @@ function pr(e) {
|
|
|
4853
4810
|
p(o, a) {
|
|
4854
4811
|
a[0] & /*languagesArray*/
|
|
4855
4812
|
512 && r !== (r = /*lang*/
|
|
4856
|
-
o[1].slice(-2) + "") &&
|
|
4813
|
+
o[1].slice(-2) + "") && me(n, r), a[0] & /*languagesArray*/
|
|
4857
4814
|
512 && i !== (i = /*lang*/
|
|
4858
|
-
o[1]) && (t.__value = i,
|
|
4815
|
+
o[1]) && (t.__value = i, Ht(t, t.__value));
|
|
4859
4816
|
},
|
|
4860
4817
|
d(o) {
|
|
4861
4818
|
o && I(t);
|
|
4862
4819
|
}
|
|
4863
4820
|
};
|
|
4864
4821
|
}
|
|
4865
|
-
function
|
|
4822
|
+
function $o(e) {
|
|
4866
4823
|
let t, r = (
|
|
4867
4824
|
/*show*/
|
|
4868
|
-
e[8] === !0 &&
|
|
4825
|
+
e[8] === !0 && er(e)
|
|
4869
4826
|
);
|
|
4870
4827
|
return {
|
|
4871
4828
|
c() {
|
|
@@ -4876,7 +4833,7 @@ function zo(e) {
|
|
|
4876
4833
|
},
|
|
4877
4834
|
p(n, i) {
|
|
4878
4835
|
/*show*/
|
|
4879
|
-
n[8] === !0 ? r ? r.p(n, i) : (r =
|
|
4836
|
+
n[8] === !0 ? r ? r.p(n, i) : (r = er(n), r.c(), r.m(t, null)) : r && (r.d(1), r = null);
|
|
4880
4837
|
},
|
|
4881
4838
|
i: $,
|
|
4882
4839
|
o: $,
|
|
@@ -4885,30 +4842,30 @@ function zo(e) {
|
|
|
4885
4842
|
}
|
|
4886
4843
|
};
|
|
4887
4844
|
}
|
|
4888
|
-
function
|
|
4845
|
+
function jo(e, t, r) {
|
|
4889
4846
|
let n;
|
|
4890
|
-
|
|
4891
|
-
let { menuitemsurl: i = "" } = t, { cmsendpoint: o } = t, { cmsenv: a = "stage" } = t, { userroles: s } = t, { lang:
|
|
4892
|
-
const
|
|
4893
|
-
fetch(c).then((
|
|
4894
|
-
Object.keys(
|
|
4895
|
-
|
|
4847
|
+
nn(e, Mo, (d) => r(15, n = d));
|
|
4848
|
+
let { menuitemsurl: i = "" } = t, { cmsendpoint: o } = t, { cmsenv: a = "stage" } = t, { userroles: s } = t, { lang: l = "en" } = t, { activecategory: u = "" } = t, { languageslist: h = "" } = t, { translationurl: c = "" } = t, { mbsource: f } = t, { clientstyling: m = "" } = t, { clientstylingurl: g = "" } = t, { customlocaleidentifier: v = "" } = t, { countryflaghamburger: S = "" } = t, T, P = window.navigator.userAgent, L = [], G, C = "", V = [], X = !1, ne = !1, q = !0, N = [], j = !1, M = !1, B = !1, x = !1, R = !0, H, W = "", z;
|
|
4849
|
+
const Wr = () => {
|
|
4850
|
+
fetch(c).then((d) => d.json()).then((d) => {
|
|
4851
|
+
Object.keys(d).forEach((A) => {
|
|
4852
|
+
Zt(A, d[A]);
|
|
4896
4853
|
});
|
|
4897
|
-
}).catch((
|
|
4898
|
-
console.log(
|
|
4854
|
+
}).catch((d) => {
|
|
4855
|
+
console.log(d);
|
|
4899
4856
|
});
|
|
4900
4857
|
};
|
|
4901
|
-
Object.keys(
|
|
4902
|
-
|
|
4858
|
+
Object.keys(Qt).forEach((d) => {
|
|
4859
|
+
Zt(d, Qt[d]);
|
|
4903
4860
|
});
|
|
4904
|
-
const
|
|
4905
|
-
|
|
4906
|
-
let
|
|
4907
|
-
|
|
4908
|
-
},
|
|
4909
|
-
r(12, x = !0), r(13, R = !0), r(10,
|
|
4861
|
+
const $e = () => {
|
|
4862
|
+
H = new URL(`${o}/${W.toLowerCase()}/hamburger-menu`);
|
|
4863
|
+
let d = Lo(P);
|
|
4864
|
+
d && (d === "PC" ? H.searchParams.append("device", "dk") : H.searchParams.append("device", "mtWeb")), H.searchParams.append("env", a), H.searchParams.append("language", W.toLowerCase()), H.searchParams.append("userRoles", s);
|
|
4865
|
+
}, gt = () => {
|
|
4866
|
+
r(12, x = !0), r(13, R = !0), r(10, M = !1), r(11, B = !1), setTimeout(
|
|
4910
4867
|
() => {
|
|
4911
|
-
r(8, ne = !1), r(7,
|
|
4868
|
+
r(8, ne = !1), r(7, X = !1);
|
|
4912
4869
|
},
|
|
4913
4870
|
200
|
|
4914
4871
|
), window.postMessage(
|
|
@@ -4918,52 +4875,52 @@ function Zo(e, t, r) {
|
|
|
4918
4875
|
},
|
|
4919
4876
|
window.location.href
|
|
4920
4877
|
);
|
|
4921
|
-
},
|
|
4922
|
-
|
|
4878
|
+
}, bt = (d) => {
|
|
4879
|
+
d.data.type === "OpenHamburgerMenuModal" && (window.postMessage({ type: "DisableScroll" }, window.location.href), r(12, x = !1), setTimeout(
|
|
4923
4880
|
() => {
|
|
4924
4881
|
r(13, R = !1);
|
|
4925
4882
|
},
|
|
4926
4883
|
125
|
|
4927
|
-
), r(8, ne = !0), r(7,
|
|
4928
|
-
},
|
|
4929
|
-
r(5, C =
|
|
4884
|
+
), r(8, ne = !0), r(7, X = !0), $e(), _t(H)), d.data.type === "LanguageChanged" && (j = !0, $e(), _t(H));
|
|
4885
|
+
}, je = (d, A) => {
|
|
4886
|
+
r(5, C = d), r(6, V = A || []), typeof gtag == "function" && gtag("event", "ChangeMenu", {
|
|
4930
4887
|
context: "HamburgerMenu",
|
|
4931
4888
|
menuItem: `${C}`
|
|
4932
4889
|
});
|
|
4933
|
-
},
|
|
4934
|
-
!
|
|
4935
|
-
},
|
|
4936
|
-
let
|
|
4890
|
+
}, vt = (d) => {
|
|
4891
|
+
!d?.children && d?.path && d?.keyword?.includes("InternalLink") && We(d), je(d.id, d.children);
|
|
4892
|
+
}, yt = () => {
|
|
4893
|
+
let d = L.filter((A) => {
|
|
4937
4894
|
let He = !1;
|
|
4938
|
-
return A.children?.forEach((
|
|
4939
|
-
|
|
4895
|
+
return A.children?.forEach((tn) => {
|
|
4896
|
+
tn.path.includes(u) && (He = !0);
|
|
4940
4897
|
}), He;
|
|
4941
4898
|
});
|
|
4942
|
-
|
|
4943
|
-
},
|
|
4944
|
-
G && !j ||
|
|
4945
|
-
},
|
|
4946
|
-
fetch(
|
|
4899
|
+
d.length > 0 ? je(d[0].id, d[0].children) : je(L[0].id, L[0].children);
|
|
4900
|
+
}, _t = (d) => {
|
|
4901
|
+
G && !j || xt(d);
|
|
4902
|
+
}, xt = (d) => {
|
|
4903
|
+
fetch(d).then((A) => A.json()).then(
|
|
4947
4904
|
(A) => {
|
|
4948
|
-
r(4,
|
|
4905
|
+
r(4, L = A.filter((He) => He?.type !== "banner")), yt(), r(34, q = !1), G = A, j = !1;
|
|
4949
4906
|
},
|
|
4950
4907
|
(A) => {
|
|
4951
4908
|
console.error(A);
|
|
4952
4909
|
}
|
|
4953
4910
|
);
|
|
4954
4911
|
};
|
|
4955
|
-
let
|
|
4912
|
+
let We = (d) => {
|
|
4956
4913
|
window.postMessage(
|
|
4957
4914
|
{
|
|
4958
4915
|
type: "NavigateTo",
|
|
4959
|
-
path:
|
|
4960
|
-
externalLink:
|
|
4961
|
-
target:
|
|
4916
|
+
path: d.path,
|
|
4917
|
+
externalLink: d.externalLink || !1,
|
|
4918
|
+
target: d.attrs.target || null
|
|
4962
4919
|
},
|
|
4963
4920
|
window.location.href
|
|
4964
|
-
),
|
|
4921
|
+
), gt();
|
|
4965
4922
|
};
|
|
4966
|
-
const
|
|
4923
|
+
const Ve = () => {
|
|
4967
4924
|
j = !0, window.postMessage(
|
|
4968
4925
|
{
|
|
4969
4926
|
type: "LanguageChanged",
|
|
@@ -4971,122 +4928,122 @@ function Zo(e, t, r) {
|
|
|
4971
4928
|
},
|
|
4972
4929
|
window.location.href
|
|
4973
4930
|
);
|
|
4974
|
-
},
|
|
4975
|
-
|
|
4976
|
-
},
|
|
4977
|
-
r(14, W =
|
|
4931
|
+
}, Vr = () => {
|
|
4932
|
+
Co(l), $e(), j && xt(H), r(9, N = h.replace(/ /g, "").split(",")), r(9, N = N.map((d) => d.toUpperCase())), r(14, W = l.toUpperCase());
|
|
4933
|
+
}, Et = (d) => {
|
|
4934
|
+
r(14, W = d), setTimeout(
|
|
4978
4935
|
() => {
|
|
4979
|
-
r(11,
|
|
4936
|
+
r(11, B = !1);
|
|
4980
4937
|
},
|
|
4981
4938
|
250
|
|
4982
4939
|
), setTimeout(
|
|
4983
4940
|
() => {
|
|
4984
|
-
r(10,
|
|
4941
|
+
r(10, M = !1);
|
|
4985
4942
|
},
|
|
4986
4943
|
500
|
|
4987
|
-
),
|
|
4988
|
-
},
|
|
4989
|
-
|
|
4944
|
+
), Ve();
|
|
4945
|
+
}, Xr = () => {
|
|
4946
|
+
M ? (setTimeout(
|
|
4990
4947
|
() => {
|
|
4991
|
-
r(10,
|
|
4948
|
+
r(10, M = !1);
|
|
4992
4949
|
},
|
|
4993
4950
|
250
|
|
4994
|
-
), r(11,
|
|
4951
|
+
), r(11, B = !1)) : (r(10, M = !0), setTimeout(
|
|
4995
4952
|
() => {
|
|
4996
|
-
r(11,
|
|
4953
|
+
r(11, B = !0);
|
|
4997
4954
|
},
|
|
4998
4955
|
300
|
|
4999
4956
|
));
|
|
5000
|
-
},
|
|
5001
|
-
let A =
|
|
4957
|
+
}, zr = (d) => {
|
|
4958
|
+
let A = d ? d.slice(-2) : W.slice(-2);
|
|
5002
4959
|
return v && (A = v.includes(A.toLowerCase()) ? v.slice(-2) : A), A == "EN" ? "GB" : A.toUpperCase();
|
|
5003
4960
|
};
|
|
5004
|
-
|
|
5005
|
-
window.removeEventListener("message",
|
|
4961
|
+
fn(() => (window.addEventListener("message", bt, !1), Ao(P), () => {
|
|
4962
|
+
window.removeEventListener("message", bt);
|
|
5006
4963
|
}));
|
|
5007
|
-
const
|
|
5008
|
-
|
|
4964
|
+
const Zr = (d) => vt(d), Qr = (d, A) => {
|
|
4965
|
+
We(d), A.preventDefault();
|
|
5009
4966
|
};
|
|
5010
|
-
function
|
|
5011
|
-
W =
|
|
4967
|
+
function Yr() {
|
|
4968
|
+
W = un(this), r(14, W), r(9, N);
|
|
5012
4969
|
}
|
|
5013
|
-
const
|
|
5014
|
-
function
|
|
5015
|
-
Ie[
|
|
5016
|
-
|
|
4970
|
+
const qr = () => Ve(), Jr = (d) => Et(d);
|
|
4971
|
+
function Kr(d) {
|
|
4972
|
+
Ie[d ? "unshift" : "push"](() => {
|
|
4973
|
+
T = d, r(3, T);
|
|
5017
4974
|
});
|
|
5018
4975
|
}
|
|
5019
|
-
function
|
|
5020
|
-
Ie[
|
|
5021
|
-
|
|
4976
|
+
function en(d) {
|
|
4977
|
+
Ie[d ? "unshift" : "push"](() => {
|
|
4978
|
+
z = d, r(2, z);
|
|
5022
4979
|
});
|
|
5023
4980
|
}
|
|
5024
|
-
return e.$$set = (
|
|
5025
|
-
"menuitemsurl" in
|
|
4981
|
+
return e.$$set = (d) => {
|
|
4982
|
+
"menuitemsurl" in d && r(23, i = d.menuitemsurl), "cmsendpoint" in d && r(24, o = d.cmsendpoint), "cmsenv" in d && r(25, a = d.cmsenv), "userroles" in d && r(26, s = d.userroles), "lang" in d && r(1, l = d.lang), "activecategory" in d && r(27, u = d.activecategory), "languageslist" in d && r(28, h = d.languageslist), "translationurl" in d && r(29, c = d.translationurl), "mbsource" in d && r(30, f = d.mbsource), "clientstyling" in d && r(31, m = d.clientstyling), "clientstylingurl" in d && r(32, g = d.clientstylingurl), "customlocaleidentifier" in d && r(33, v = d.customlocaleidentifier), "countryflaghamburger" in d && r(0, S = d.countryflaghamburger);
|
|
5026
4983
|
}, e.$$.update = () => {
|
|
5027
4984
|
e.$$.dirty[0] & /*cmsendpoint, cmsenv, lang, languageslist*/
|
|
5028
|
-
318767106 && o && a &&
|
|
4985
|
+
318767106 && o && a && l && h && Vr(), e.$$.dirty[0] & /*activecategory*/
|
|
5029
4986
|
134217728 | e.$$.dirty[1] & /*isLoading*/
|
|
5030
|
-
8 &&
|
|
5031
|
-
536870912 && c &&
|
|
4987
|
+
8 && u && !q && yt(), e.$$.dirty[0] & /*translationurl*/
|
|
4988
|
+
536870912 && c && Wr(), e.$$.dirty[0] & /*customStylingContainer*/
|
|
5032
4989
|
4 | e.$$.dirty[1] & /*clientstyling*/
|
|
5033
|
-
1 &&
|
|
4990
|
+
1 && m && z && Bo(z, m), e.$$.dirty[0] & /*customStylingContainer*/
|
|
5034
4991
|
4 | e.$$.dirty[1] & /*clientstylingurl*/
|
|
5035
|
-
2 && g &&
|
|
5036
|
-
1073741828 && f &&
|
|
4992
|
+
2 && g && z && Po(z, g), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4993
|
+
1073741828 && f && z && Io(z, `${f}.Style`);
|
|
5037
4994
|
}, [
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
4995
|
+
S,
|
|
4996
|
+
l,
|
|
4997
|
+
z,
|
|
4998
|
+
T,
|
|
4999
|
+
L,
|
|
5043
5000
|
C,
|
|
5044
5001
|
V,
|
|
5045
|
-
|
|
5002
|
+
X,
|
|
5046
5003
|
ne,
|
|
5047
5004
|
N,
|
|
5048
|
-
|
|
5049
|
-
|
|
5005
|
+
M,
|
|
5006
|
+
B,
|
|
5050
5007
|
x,
|
|
5051
5008
|
R,
|
|
5052
5009
|
W,
|
|
5053
5010
|
n,
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5060
|
-
|
|
5011
|
+
gt,
|
|
5012
|
+
vt,
|
|
5013
|
+
We,
|
|
5014
|
+
Ve,
|
|
5015
|
+
Et,
|
|
5016
|
+
Xr,
|
|
5017
|
+
zr,
|
|
5061
5018
|
i,
|
|
5062
5019
|
o,
|
|
5063
5020
|
a,
|
|
5064
5021
|
s,
|
|
5065
|
-
|
|
5022
|
+
u,
|
|
5066
5023
|
h,
|
|
5067
5024
|
c,
|
|
5068
5025
|
f,
|
|
5069
|
-
|
|
5026
|
+
m,
|
|
5070
5027
|
g,
|
|
5071
5028
|
v,
|
|
5072
5029
|
q,
|
|
5030
|
+
Zr,
|
|
5031
|
+
Qr,
|
|
5032
|
+
Yr,
|
|
5033
|
+
qr,
|
|
5034
|
+
Jr,
|
|
5073
5035
|
Kr,
|
|
5074
|
-
en
|
|
5075
|
-
tn,
|
|
5076
|
-
rn,
|
|
5077
|
-
nn,
|
|
5078
|
-
on,
|
|
5079
|
-
an
|
|
5036
|
+
en
|
|
5080
5037
|
];
|
|
5081
5038
|
}
|
|
5082
|
-
class
|
|
5039
|
+
class Wo extends Sn {
|
|
5083
5040
|
constructor(t) {
|
|
5084
|
-
super(),
|
|
5041
|
+
super(), En(
|
|
5085
5042
|
this,
|
|
5086
5043
|
t,
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
|
|
5044
|
+
jo,
|
|
5045
|
+
$o,
|
|
5046
|
+
hr,
|
|
5090
5047
|
{
|
|
5091
5048
|
menuitemsurl: 23,
|
|
5092
5049
|
cmsendpoint: 24,
|
|
@@ -5102,7 +5059,7 @@ class Qo extends Mn {
|
|
|
5102
5059
|
customlocaleidentifier: 33,
|
|
5103
5060
|
countryflaghamburger: 0
|
|
5104
5061
|
},
|
|
5105
|
-
|
|
5062
|
+
No,
|
|
5106
5063
|
[-1, -1, -1]
|
|
5107
5064
|
);
|
|
5108
5065
|
}
|
|
@@ -5185,7 +5142,7 @@ class Qo extends Mn {
|
|
|
5185
5142
|
this.$$set({ countryflaghamburger: t }), F();
|
|
5186
5143
|
}
|
|
5187
5144
|
}
|
|
5188
|
-
|
|
5145
|
+
wn(Wo, { menuitemsurl: {}, cmsendpoint: {}, cmsenv: {}, userroles: {}, lang: {}, activecategory: {}, languageslist: {}, translationurl: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, customlocaleidentifier: {}, countryflaghamburger: {} }, [], [], !0);
|
|
5189
5146
|
export {
|
|
5190
|
-
|
|
5147
|
+
Wo as C
|
|
5191
5148
|
};
|