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