@everymatrix/casino-hamburger-menu-nd 1.76.1 → 1.76.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,57 +1,57 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var Xe = (e, t, r) => t in e ?
|
|
1
|
+
var hn = Object.defineProperty, cn = Object.defineProperties;
|
|
2
|
+
var fn = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Tt = Object.getOwnPropertySymbols;
|
|
4
|
+
var dn = Object.prototype.hasOwnProperty, mn = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Xe = (e, t, r) => t in e ? hn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ot = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
dn.call(t, r) && Xe(e, r, t[r]);
|
|
8
|
+
if (Tt)
|
|
9
|
+
for (var r of Tt(t))
|
|
10
|
+
mn.call(t, r) && Xe(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, Mt = (e, t) => cn(e, fn(t));
|
|
13
13
|
var V = (e, t, r) => (Xe(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
-
var
|
|
15
|
-
var o = (
|
|
14
|
+
var At = (e, t, r) => new Promise((n, i) => {
|
|
15
|
+
var o = (u) => {
|
|
16
16
|
try {
|
|
17
|
-
s(r.next(
|
|
18
|
-
} catch (
|
|
19
|
-
i(
|
|
17
|
+
s(r.next(u));
|
|
18
|
+
} catch (l) {
|
|
19
|
+
i(l);
|
|
20
20
|
}
|
|
21
|
-
}, a = (
|
|
21
|
+
}, a = (u) => {
|
|
22
22
|
try {
|
|
23
|
-
s(r.throw(
|
|
24
|
-
} catch (
|
|
25
|
-
i(
|
|
23
|
+
s(r.throw(u));
|
|
24
|
+
} catch (l) {
|
|
25
|
+
i(l);
|
|
26
26
|
}
|
|
27
|
-
}, s = (
|
|
27
|
+
}, s = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(o, a);
|
|
28
28
|
s((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function $() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function gr(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Bt() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
38
|
function pe(e) {
|
|
39
|
-
e.forEach(
|
|
39
|
+
e.forEach(gr);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function mt(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function br(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
47
|
let Me;
|
|
48
48
|
function ee(e, t) {
|
|
49
49
|
return e === t ? !0 : (Me || (Me = document.createElement("a")), Me.href = t, e === Me.href);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function pn(e) {
|
|
52
52
|
return Object.keys(e).length === 0;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function yr(e, ...t) {
|
|
55
55
|
if (e == null) {
|
|
56
56
|
for (const n of t)
|
|
57
57
|
n(void 0);
|
|
@@ -60,20 +60,20 @@ function _r(e, ...t) {
|
|
|
60
60
|
const r = e.subscribe(...t);
|
|
61
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
e.$$.on_destroy.push(
|
|
63
|
+
function gn(e, t, r) {
|
|
64
|
+
e.$$.on_destroy.push(yr(t, r));
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function y(e, t) {
|
|
67
67
|
e.appendChild(t);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
const n =
|
|
69
|
+
function bn(e, t, r) {
|
|
70
|
+
const n = yn(e);
|
|
71
71
|
if (!n.getElementById(t)) {
|
|
72
|
-
const i =
|
|
73
|
-
i.id = t, i.textContent = r,
|
|
72
|
+
const i = v("style");
|
|
73
|
+
i.id = t, i.textContent = r, vn(n, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function yn(e) {
|
|
77
77
|
if (!e)
|
|
78
78
|
return document;
|
|
79
79
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -83,8 +83,8 @@ function xn(e) {
|
|
|
83
83
|
t
|
|
84
84
|
) : e.ownerDocument;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
87
|
-
return
|
|
86
|
+
function vn(e, t) {
|
|
87
|
+
return y(
|
|
88
88
|
/** @type {Document} */
|
|
89
89
|
e.head || e,
|
|
90
90
|
t
|
|
@@ -100,10 +100,10 @@ function He(e, t) {
|
|
|
100
100
|
for (let r = 0; r < e.length; r += 1)
|
|
101
101
|
e[r] && e[r].d(t);
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function v(e) {
|
|
104
104
|
return document.createElement(e);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function Lt(e) {
|
|
107
107
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
108
108
|
}
|
|
109
109
|
function te(e) {
|
|
@@ -112,7 +112,7 @@ function te(e) {
|
|
|
112
112
|
function U() {
|
|
113
113
|
return te(" ");
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function vr() {
|
|
116
116
|
return te("");
|
|
117
117
|
}
|
|
118
118
|
function re(e, t, r, n) {
|
|
@@ -121,17 +121,17 @@ function re(e, t, r, n) {
|
|
|
121
121
|
function p(e, t, r) {
|
|
122
122
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function _n(e) {
|
|
125
125
|
return Array.from(e.childNodes);
|
|
126
126
|
}
|
|
127
127
|
function ge(e, t) {
|
|
128
128
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
129
129
|
t);
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function Pt(e, t) {
|
|
132
132
|
e.value = t == null ? "" : t;
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function It(e, t, r) {
|
|
135
135
|
for (let n = 0; n < e.options.length; n += 1) {
|
|
136
136
|
const i = e.options[n];
|
|
137
137
|
if (i.__value === t) {
|
|
@@ -141,11 +141,11 @@ function Nt(e, t, r) {
|
|
|
141
141
|
}
|
|
142
142
|
(!r || t !== void 0) && (e.selectedIndex = -1);
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function xn(e) {
|
|
145
145
|
const t = e.querySelector(":checked");
|
|
146
146
|
return t && t.__value;
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function En(e) {
|
|
149
149
|
const t = {};
|
|
150
150
|
return e.childNodes.forEach(
|
|
151
151
|
/** @param {Element} node */
|
|
@@ -158,23 +158,23 @@ let Ee;
|
|
|
158
158
|
function xe(e) {
|
|
159
159
|
Ee = e;
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function wn() {
|
|
162
162
|
if (!Ee)
|
|
163
163
|
throw new Error("Function called outside component initialization");
|
|
164
164
|
return Ee;
|
|
165
165
|
}
|
|
166
|
-
function
|
|
167
|
-
|
|
166
|
+
function Sn(e) {
|
|
167
|
+
wn().$$.on_mount.push(e);
|
|
168
168
|
}
|
|
169
|
-
const
|
|
170
|
-
let
|
|
171
|
-
const
|
|
172
|
-
let
|
|
173
|
-
function
|
|
174
|
-
|
|
169
|
+
const ue = [], Ne = [];
|
|
170
|
+
let le = [];
|
|
171
|
+
const Ct = [], Hn = /* @__PURE__ */ Promise.resolve();
|
|
172
|
+
let et = !1;
|
|
173
|
+
function Tn() {
|
|
174
|
+
et || (et = !0, Hn.then(D));
|
|
175
175
|
}
|
|
176
176
|
function Re(e) {
|
|
177
|
-
|
|
177
|
+
le.push(e);
|
|
178
178
|
}
|
|
179
179
|
const ze = /* @__PURE__ */ new Set();
|
|
180
180
|
let ae = 0;
|
|
@@ -184,98 +184,98 @@ function D() {
|
|
|
184
184
|
const e = Ee;
|
|
185
185
|
do {
|
|
186
186
|
try {
|
|
187
|
-
for (; ae <
|
|
188
|
-
const t =
|
|
189
|
-
ae++, xe(t),
|
|
187
|
+
for (; ae < ue.length; ) {
|
|
188
|
+
const t = ue[ae];
|
|
189
|
+
ae++, xe(t), On(t.$$);
|
|
190
190
|
}
|
|
191
191
|
} catch (t) {
|
|
192
|
-
throw
|
|
192
|
+
throw ue.length = 0, ae = 0, t;
|
|
193
193
|
}
|
|
194
|
-
for (xe(null),
|
|
194
|
+
for (xe(null), ue.length = 0, ae = 0; Ne.length; )
|
|
195
195
|
Ne.pop()();
|
|
196
|
-
for (let t = 0; t <
|
|
197
|
-
const r =
|
|
196
|
+
for (let t = 0; t < le.length; t += 1) {
|
|
197
|
+
const r = le[t];
|
|
198
198
|
ze.has(r) || (ze.add(r), r());
|
|
199
199
|
}
|
|
200
|
-
|
|
201
|
-
} while (
|
|
202
|
-
for (;
|
|
203
|
-
|
|
204
|
-
|
|
200
|
+
le.length = 0;
|
|
201
|
+
} while (ue.length);
|
|
202
|
+
for (; Ct.length; )
|
|
203
|
+
Ct.pop()();
|
|
204
|
+
et = !1, ze.clear(), xe(e);
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function On(e) {
|
|
207
207
|
if (e.fragment !== null) {
|
|
208
208
|
e.update(), pe(e.before_update);
|
|
209
209
|
const t = e.dirty;
|
|
210
210
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Re);
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function Mn(e) {
|
|
214
214
|
const t = [], r = [];
|
|
215
|
-
|
|
215
|
+
le.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), le = t;
|
|
216
216
|
}
|
|
217
|
-
const
|
|
218
|
-
function
|
|
219
|
-
e && e.i && (
|
|
217
|
+
const An = /* @__PURE__ */ new Set();
|
|
218
|
+
function Bn(e, t) {
|
|
219
|
+
e && e.i && (An.delete(e), e.i(t));
|
|
220
220
|
}
|
|
221
221
|
function Y(e) {
|
|
222
222
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function Ln(e, t, r) {
|
|
225
225
|
const { fragment: n, after_update: i } = e.$$;
|
|
226
226
|
n && n.m(t, r), Re(() => {
|
|
227
|
-
const o = e.$$.on_mount.map(
|
|
227
|
+
const o = e.$$.on_mount.map(gr).filter(mt);
|
|
228
228
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : pe(o), e.$$.on_mount = [];
|
|
229
229
|
}), i.forEach(Re);
|
|
230
230
|
}
|
|
231
|
-
function
|
|
231
|
+
function Pn(e, t) {
|
|
232
232
|
const r = e.$$;
|
|
233
|
-
r.fragment !== null && (
|
|
233
|
+
r.fragment !== null && (Mn(r.after_update), pe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
234
234
|
}
|
|
235
|
-
function
|
|
236
|
-
e.$$.dirty[0] === -1 && (
|
|
235
|
+
function In(e, t) {
|
|
236
|
+
e.$$.dirty[0] === -1 && (ue.push(e), Tn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
237
237
|
}
|
|
238
|
-
function
|
|
239
|
-
const
|
|
238
|
+
function Cn(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
239
|
+
const u = Ee;
|
|
240
240
|
xe(e);
|
|
241
|
-
const
|
|
241
|
+
const l = e.$$ = {
|
|
242
242
|
fragment: null,
|
|
243
243
|
ctx: [],
|
|
244
244
|
// state
|
|
245
245
|
props: o,
|
|
246
246
|
update: $,
|
|
247
247
|
not_equal: i,
|
|
248
|
-
bound:
|
|
248
|
+
bound: Bt(),
|
|
249
249
|
// lifecycle
|
|
250
250
|
on_mount: [],
|
|
251
251
|
on_destroy: [],
|
|
252
252
|
on_disconnect: [],
|
|
253
253
|
before_update: [],
|
|
254
254
|
after_update: [],
|
|
255
|
-
context: new Map(t.context || (
|
|
255
|
+
context: new Map(t.context || (u ? u.$$.context : [])),
|
|
256
256
|
// everything else
|
|
257
|
-
callbacks:
|
|
257
|
+
callbacks: Bt(),
|
|
258
258
|
dirty: s,
|
|
259
259
|
skip_bound: !1,
|
|
260
|
-
root: t.target ||
|
|
260
|
+
root: t.target || u.$$.root
|
|
261
261
|
};
|
|
262
|
-
a && a(
|
|
262
|
+
a && a(l.root);
|
|
263
263
|
let h = !1;
|
|
264
|
-
if (
|
|
264
|
+
if (l.ctx = r(e, t.props || {}, (c, f, ...m) => {
|
|
265
265
|
const g = m.length ? m[0] : f;
|
|
266
|
-
return
|
|
267
|
-
})
|
|
266
|
+
return l.ctx && i(l.ctx[c], l.ctx[c] = g) && (!l.skip_bound && l.bound[c] && l.bound[c](g), h && In(e, c)), f;
|
|
267
|
+
}), l.update(), h = !0, pe(l.before_update), l.fragment = n(l.ctx), t.target) {
|
|
268
268
|
if (t.hydrate) {
|
|
269
|
-
const c =
|
|
270
|
-
|
|
269
|
+
const c = _n(t.target);
|
|
270
|
+
l.fragment && l.fragment.l(c), c.forEach(I);
|
|
271
271
|
} else
|
|
272
|
-
|
|
273
|
-
t.intro &&
|
|
272
|
+
l.fragment && l.fragment.c();
|
|
273
|
+
t.intro && Bn(e.$$.fragment), Ln(e, t.target, t.anchor), D();
|
|
274
274
|
}
|
|
275
|
-
xe(
|
|
275
|
+
xe(u);
|
|
276
276
|
}
|
|
277
|
-
let
|
|
278
|
-
typeof HTMLElement == "function" && (
|
|
277
|
+
let _r;
|
|
278
|
+
typeof HTMLElement == "function" && (_r = class extends HTMLElement {
|
|
279
279
|
constructor(t, r, n) {
|
|
280
280
|
super();
|
|
281
281
|
/** The Svelte component constructor */
|
|
@@ -312,31 +312,31 @@ typeof HTMLElement == "function" && (Er = class extends HTMLElement {
|
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
connectedCallback() {
|
|
315
|
-
return
|
|
315
|
+
return At(this, null, function* () {
|
|
316
316
|
if (this.$$cn = !0, !this.$$c) {
|
|
317
317
|
let t = function(o) {
|
|
318
318
|
return () => {
|
|
319
319
|
let a;
|
|
320
320
|
return {
|
|
321
321
|
c: function() {
|
|
322
|
-
a =
|
|
322
|
+
a = v("slot"), o !== "default" && p(a, "name", o);
|
|
323
323
|
},
|
|
324
324
|
/**
|
|
325
325
|
* @param {HTMLElement} target
|
|
326
326
|
* @param {HTMLElement} [anchor]
|
|
327
327
|
*/
|
|
328
|
-
m: function(
|
|
329
|
-
F(
|
|
328
|
+
m: function(l, h) {
|
|
329
|
+
F(l, a, h);
|
|
330
330
|
},
|
|
331
|
-
d: function(
|
|
332
|
-
|
|
331
|
+
d: function(l) {
|
|
332
|
+
l && I(a);
|
|
333
333
|
}
|
|
334
334
|
};
|
|
335
335
|
};
|
|
336
336
|
};
|
|
337
337
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
338
338
|
return;
|
|
339
|
-
const r = {}, n =
|
|
339
|
+
const r = {}, n = En(this);
|
|
340
340
|
for (const o of this.$$s)
|
|
341
341
|
o in n && (r[o] = [t(o)]);
|
|
342
342
|
for (const o of this.attributes) {
|
|
@@ -347,7 +347,7 @@ typeof HTMLElement == "function" && (Er = class extends HTMLElement {
|
|
|
347
347
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
348
348
|
this.$$c = new this.$$ctor({
|
|
349
349
|
target: this.shadowRoot || this,
|
|
350
|
-
props:
|
|
350
|
+
props: Mt(Ot({}, this.$$d), {
|
|
351
351
|
$$slots: r,
|
|
352
352
|
$$scope: {
|
|
353
353
|
ctx: []
|
|
@@ -425,8 +425,8 @@ function Le(e, t, r, n) {
|
|
|
425
425
|
return t;
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
|
-
function
|
|
429
|
-
let a = class extends
|
|
428
|
+
function Nn(e, t, r, n, i, o) {
|
|
429
|
+
let a = class extends _r {
|
|
430
430
|
constructor() {
|
|
431
431
|
super(e, r, i), this.$$p_d = t;
|
|
432
432
|
}
|
|
@@ -441,22 +441,22 @@ function Fn(e, t, r, n, i, o) {
|
|
|
441
441
|
get() {
|
|
442
442
|
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
443
443
|
},
|
|
444
|
-
set(
|
|
445
|
-
var
|
|
446
|
-
|
|
444
|
+
set(u) {
|
|
445
|
+
var l;
|
|
446
|
+
u = Le(s, u, t), this.$$d[s] = u, (l = this.$$c) == null || l.$set({ [s]: u });
|
|
447
447
|
}
|
|
448
448
|
});
|
|
449
449
|
}), n.forEach((s) => {
|
|
450
450
|
Object.defineProperty(a.prototype, s, {
|
|
451
451
|
get() {
|
|
452
|
-
var
|
|
453
|
-
return (
|
|
452
|
+
var u;
|
|
453
|
+
return (u = this.$$c) == null ? void 0 : u[s];
|
|
454
454
|
}
|
|
455
455
|
});
|
|
456
456
|
}), e.element = /** @type {any} */
|
|
457
457
|
a, a;
|
|
458
458
|
}
|
|
459
|
-
class
|
|
459
|
+
class Rn {
|
|
460
460
|
constructor() {
|
|
461
461
|
/**
|
|
462
462
|
* ### PRIVATE API
|
|
@@ -477,7 +477,7 @@ class Dn {
|
|
|
477
477
|
}
|
|
478
478
|
/** @returns {void} */
|
|
479
479
|
$destroy() {
|
|
480
|
-
|
|
480
|
+
Pn(this, 1), this.$destroy = $;
|
|
481
481
|
}
|
|
482
482
|
/**
|
|
483
483
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -486,7 +486,7 @@ class Dn {
|
|
|
486
486
|
* @returns {() => void}
|
|
487
487
|
*/
|
|
488
488
|
$on(t, r) {
|
|
489
|
-
if (!
|
|
489
|
+
if (!mt(r))
|
|
490
490
|
return $;
|
|
491
491
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
492
492
|
return n.push(r), () => {
|
|
@@ -499,11 +499,11 @@ class Dn {
|
|
|
499
499
|
* @returns {void}
|
|
500
500
|
*/
|
|
501
501
|
$set(t) {
|
|
502
|
-
this.$$set && !
|
|
502
|
+
this.$$set && !pn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
|
-
const
|
|
506
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
505
|
+
const Un = "4";
|
|
506
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Un);
|
|
507
507
|
/*! *****************************************************************************
|
|
508
508
|
Copyright (c) Microsoft Corporation.
|
|
509
509
|
|
|
@@ -518,18 +518,18 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
518
518
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
519
519
|
PERFORMANCE OF THIS SOFTWARE.
|
|
520
520
|
***************************************************************************** */
|
|
521
|
-
var
|
|
522
|
-
return
|
|
521
|
+
var tt = function(e, t) {
|
|
522
|
+
return tt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
523
523
|
r.__proto__ = n;
|
|
524
524
|
} || function(r, n) {
|
|
525
525
|
for (var i in n)
|
|
526
526
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
527
|
-
},
|
|
527
|
+
}, tt(e, t);
|
|
528
528
|
};
|
|
529
529
|
function q(e, t) {
|
|
530
530
|
if (typeof t != "function" && t !== null)
|
|
531
531
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
532
|
-
|
|
532
|
+
tt(e, t);
|
|
533
533
|
function r() {
|
|
534
534
|
this.constructor = e;
|
|
535
535
|
}
|
|
@@ -545,7 +545,7 @@ var S = function() {
|
|
|
545
545
|
return t;
|
|
546
546
|
}, S.apply(this, arguments);
|
|
547
547
|
};
|
|
548
|
-
function
|
|
548
|
+
function Fn(e, t) {
|
|
549
549
|
var r = {};
|
|
550
550
|
for (var n in e)
|
|
551
551
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -554,7 +554,7 @@ function Gn(e, t) {
|
|
|
554
554
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
555
555
|
return r;
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function rt(e) {
|
|
558
558
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
559
559
|
if (r)
|
|
560
560
|
return r.call(e);
|
|
@@ -566,7 +566,7 @@ function nt(e) {
|
|
|
566
566
|
};
|
|
567
567
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
568
568
|
}
|
|
569
|
-
function
|
|
569
|
+
function nt(e, t) {
|
|
570
570
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
571
571
|
if (!r)
|
|
572
572
|
return e;
|
|
@@ -595,13 +595,13 @@ function he(e, t, r) {
|
|
|
595
595
|
function Q(e) {
|
|
596
596
|
return typeof e == "function";
|
|
597
597
|
}
|
|
598
|
-
function
|
|
598
|
+
function xr(e) {
|
|
599
599
|
var t = function(n) {
|
|
600
600
|
Error.call(n), n.stack = new Error().stack;
|
|
601
601
|
}, r = e(t);
|
|
602
602
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
603
603
|
}
|
|
604
|
-
var Ze =
|
|
604
|
+
var Ze = xr(function(e) {
|
|
605
605
|
return function(r) {
|
|
606
606
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
607
607
|
` + r.map(function(n, i) {
|
|
@@ -610,7 +610,7 @@ var Ze = wr(function(e) {
|
|
|
610
610
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
611
611
|
};
|
|
612
612
|
});
|
|
613
|
-
function
|
|
613
|
+
function it(e, t) {
|
|
614
614
|
if (e) {
|
|
615
615
|
var r = e.indexOf(t);
|
|
616
616
|
0 <= r && e.splice(r, 1);
|
|
@@ -628,15 +628,15 @@ var De = function() {
|
|
|
628
628
|
if (a)
|
|
629
629
|
if (this._parentage = null, Array.isArray(a))
|
|
630
630
|
try {
|
|
631
|
-
for (var s =
|
|
632
|
-
var
|
|
633
|
-
|
|
631
|
+
for (var s = rt(a), u = s.next(); !u.done; u = s.next()) {
|
|
632
|
+
var l = u.value;
|
|
633
|
+
l.remove(this);
|
|
634
634
|
}
|
|
635
635
|
} catch (b) {
|
|
636
636
|
t = { error: b };
|
|
637
637
|
} finally {
|
|
638
638
|
try {
|
|
639
|
-
|
|
639
|
+
u && !u.done && (r = s.return) && r.call(s);
|
|
640
640
|
} finally {
|
|
641
641
|
if (t)
|
|
642
642
|
throw t.error;
|
|
@@ -655,12 +655,12 @@ var De = function() {
|
|
|
655
655
|
if (c) {
|
|
656
656
|
this._finalizers = null;
|
|
657
657
|
try {
|
|
658
|
-
for (var f =
|
|
658
|
+
for (var f = rt(c), m = f.next(); !m.done; m = f.next()) {
|
|
659
659
|
var g = m.value;
|
|
660
660
|
try {
|
|
661
|
-
|
|
661
|
+
Nt(g);
|
|
662
662
|
} catch (b) {
|
|
663
|
-
o = o != null ? o : [], b instanceof Ze ? o = he(he([],
|
|
663
|
+
o = o != null ? o : [], b instanceof Ze ? o = he(he([], nt(o)), nt(b.errors)) : o.push(b);
|
|
664
664
|
}
|
|
665
665
|
}
|
|
666
666
|
} catch (b) {
|
|
@@ -681,7 +681,7 @@ var De = function() {
|
|
|
681
681
|
var r;
|
|
682
682
|
if (t && t !== this)
|
|
683
683
|
if (this.closed)
|
|
684
|
-
|
|
684
|
+
Nt(t);
|
|
685
685
|
else {
|
|
686
686
|
if (t instanceof e) {
|
|
687
687
|
if (t.closed || t._hasParent(this))
|
|
@@ -698,56 +698,56 @@ var De = function() {
|
|
|
698
698
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
699
699
|
}, e.prototype._removeParent = function(t) {
|
|
700
700
|
var r = this._parentage;
|
|
701
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
701
|
+
r === t ? this._parentage = null : Array.isArray(r) && it(r, t);
|
|
702
702
|
}, e.prototype.remove = function(t) {
|
|
703
703
|
var r = this._finalizers;
|
|
704
|
-
r &&
|
|
704
|
+
r && it(r, t), t instanceof e && t._removeParent(this);
|
|
705
705
|
}, e.EMPTY = function() {
|
|
706
706
|
var t = new e();
|
|
707
707
|
return t.closed = !0, t;
|
|
708
708
|
}(), e;
|
|
709
|
-
}(),
|
|
710
|
-
function
|
|
709
|
+
}(), Er = De.EMPTY;
|
|
710
|
+
function wr(e) {
|
|
711
711
|
return e instanceof De || e && "closed" in e && Q(e.remove) && Q(e.add) && Q(e.unsubscribe);
|
|
712
712
|
}
|
|
713
|
-
function
|
|
713
|
+
function Nt(e) {
|
|
714
714
|
Q(e) ? e() : e.unsubscribe();
|
|
715
715
|
}
|
|
716
|
-
var
|
|
716
|
+
var Dn = {
|
|
717
717
|
onUnhandledError: null,
|
|
718
718
|
onStoppedNotification: null,
|
|
719
719
|
Promise: void 0,
|
|
720
720
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
721
721
|
useDeprecatedNextContext: !1
|
|
722
|
-
},
|
|
722
|
+
}, kn = {
|
|
723
723
|
setTimeout: function(e, t) {
|
|
724
724
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
725
725
|
r[n - 2] = arguments[n];
|
|
726
|
-
return setTimeout.apply(void 0, he([e, t],
|
|
726
|
+
return setTimeout.apply(void 0, he([e, t], nt(r)));
|
|
727
727
|
},
|
|
728
728
|
clearTimeout: function(e) {
|
|
729
729
|
return clearTimeout(e);
|
|
730
730
|
},
|
|
731
731
|
delegate: void 0
|
|
732
732
|
};
|
|
733
|
-
function
|
|
734
|
-
|
|
733
|
+
function Gn(e) {
|
|
734
|
+
kn.setTimeout(function() {
|
|
735
735
|
throw e;
|
|
736
736
|
});
|
|
737
737
|
}
|
|
738
|
-
function
|
|
738
|
+
function Rt() {
|
|
739
739
|
}
|
|
740
740
|
function Pe(e) {
|
|
741
741
|
e();
|
|
742
742
|
}
|
|
743
|
-
var
|
|
743
|
+
var Sr = function(e) {
|
|
744
744
|
q(t, e);
|
|
745
745
|
function t(r) {
|
|
746
746
|
var n = e.call(this) || this;
|
|
747
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
747
|
+
return n.isStopped = !1, r ? (n.destination = r, wr(r) && r.add(n)) : n.destination = Wn, n;
|
|
748
748
|
}
|
|
749
749
|
return t.create = function(r, n, i) {
|
|
750
|
-
return new
|
|
750
|
+
return new ot(r, n, i);
|
|
751
751
|
}, t.prototype.next = function(r) {
|
|
752
752
|
this.isStopped || this._next(r);
|
|
753
753
|
}, t.prototype.error = function(r) {
|
|
@@ -771,11 +771,7 @@ var Or = function(e) {
|
|
|
771
771
|
this.unsubscribe();
|
|
772
772
|
}
|
|
773
773
|
}, t;
|
|
774
|
-
}(De),
|
|
775
|
-
function Qe(e, t) {
|
|
776
|
-
return Wn.call(e, t);
|
|
777
|
-
}
|
|
778
|
-
var Vn = function() {
|
|
774
|
+
}(De), $n = function() {
|
|
779
775
|
function e(t) {
|
|
780
776
|
this.partialObserver = t;
|
|
781
777
|
}
|
|
@@ -806,55 +802,43 @@ var Vn = function() {
|
|
|
806
802
|
Ae(r);
|
|
807
803
|
}
|
|
808
804
|
}, e;
|
|
809
|
-
}(),
|
|
805
|
+
}(), ot = function(e) {
|
|
810
806
|
q(t, e);
|
|
811
807
|
function t(r, n, i) {
|
|
812
808
|
var o = e.call(this) || this, a;
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
};
|
|
819
|
-
else {
|
|
820
|
-
var s;
|
|
821
|
-
o && Tr.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
|
|
822
|
-
return o.unsubscribe();
|
|
823
|
-
}, a = {
|
|
824
|
-
next: r.next && Qe(r.next, s),
|
|
825
|
-
error: r.error && Qe(r.error, s),
|
|
826
|
-
complete: r.complete && Qe(r.complete, s)
|
|
827
|
-
}) : a = r;
|
|
828
|
-
}
|
|
829
|
-
return o.destination = new Vn(a), o;
|
|
809
|
+
return Q(r) || !r ? a = {
|
|
810
|
+
next: r != null ? r : void 0,
|
|
811
|
+
error: n != null ? n : void 0,
|
|
812
|
+
complete: i != null ? i : void 0
|
|
813
|
+
} : a = r, o.destination = new $n(a), o;
|
|
830
814
|
}
|
|
831
815
|
return t;
|
|
832
|
-
}(
|
|
816
|
+
}(Sr);
|
|
833
817
|
function Ae(e) {
|
|
834
|
-
|
|
818
|
+
Gn(e);
|
|
835
819
|
}
|
|
836
|
-
function
|
|
820
|
+
function jn(e) {
|
|
837
821
|
throw e;
|
|
838
822
|
}
|
|
839
|
-
var
|
|
823
|
+
var Wn = {
|
|
840
824
|
closed: !0,
|
|
841
|
-
next:
|
|
842
|
-
error:
|
|
843
|
-
complete:
|
|
844
|
-
},
|
|
825
|
+
next: Rt,
|
|
826
|
+
error: jn,
|
|
827
|
+
complete: Rt
|
|
828
|
+
}, Vn = function() {
|
|
845
829
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
846
830
|
}();
|
|
847
|
-
function
|
|
831
|
+
function Xn(e) {
|
|
848
832
|
return e;
|
|
849
833
|
}
|
|
850
|
-
function
|
|
851
|
-
return e.length === 0 ?
|
|
834
|
+
function zn(e) {
|
|
835
|
+
return e.length === 0 ? Xn : e.length === 1 ? e[0] : function(r) {
|
|
852
836
|
return e.reduce(function(n, i) {
|
|
853
837
|
return i(n);
|
|
854
838
|
}, r);
|
|
855
839
|
};
|
|
856
840
|
}
|
|
857
|
-
var
|
|
841
|
+
var Ut = function() {
|
|
858
842
|
function e(t) {
|
|
859
843
|
t && (this._subscribe = t);
|
|
860
844
|
}
|
|
@@ -862,10 +846,10 @@ var Dt = function() {
|
|
|
862
846
|
var r = new e();
|
|
863
847
|
return r.source = this, r.operator = t, r;
|
|
864
848
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
865
|
-
var i = this, o =
|
|
849
|
+
var i = this, o = Qn(t) ? t : new ot(t, r, n);
|
|
866
850
|
return Pe(function() {
|
|
867
|
-
var a = i, s = a.operator,
|
|
868
|
-
o.add(s ? s.call(o,
|
|
851
|
+
var a = i, s = a.operator, u = a.source;
|
|
852
|
+
o.add(s ? s.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
|
|
869
853
|
}), o;
|
|
870
854
|
}, e.prototype._trySubscribe = function(t) {
|
|
871
855
|
try {
|
|
@@ -875,13 +859,13 @@ var Dt = function() {
|
|
|
875
859
|
}
|
|
876
860
|
}, e.prototype.forEach = function(t, r) {
|
|
877
861
|
var n = this;
|
|
878
|
-
return r =
|
|
879
|
-
var a = new
|
|
862
|
+
return r = Ft(r), new r(function(i, o) {
|
|
863
|
+
var a = new ot({
|
|
880
864
|
next: function(s) {
|
|
881
865
|
try {
|
|
882
866
|
t(s);
|
|
883
|
-
} catch (
|
|
884
|
-
o(
|
|
867
|
+
} catch (u) {
|
|
868
|
+
o(u), a.unsubscribe();
|
|
885
869
|
}
|
|
886
870
|
},
|
|
887
871
|
error: o,
|
|
@@ -892,15 +876,15 @@ var Dt = function() {
|
|
|
892
876
|
}, e.prototype._subscribe = function(t) {
|
|
893
877
|
var r;
|
|
894
878
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
895
|
-
}, e.prototype[
|
|
879
|
+
}, e.prototype[Vn] = function() {
|
|
896
880
|
return this;
|
|
897
881
|
}, e.prototype.pipe = function() {
|
|
898
882
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
899
883
|
t[r] = arguments[r];
|
|
900
|
-
return
|
|
884
|
+
return zn(t)(this);
|
|
901
885
|
}, e.prototype.toPromise = function(t) {
|
|
902
886
|
var r = this;
|
|
903
|
-
return t =
|
|
887
|
+
return t = Ft(t), new t(function(n, i) {
|
|
904
888
|
var o;
|
|
905
889
|
r.subscribe(function(a) {
|
|
906
890
|
return o = a;
|
|
@@ -914,32 +898,32 @@ var Dt = function() {
|
|
|
914
898
|
return new e(t);
|
|
915
899
|
}, e;
|
|
916
900
|
}();
|
|
917
|
-
function
|
|
901
|
+
function Ft(e) {
|
|
918
902
|
var t;
|
|
919
|
-
return (t = e != null ? e :
|
|
903
|
+
return (t = e != null ? e : Dn.Promise) !== null && t !== void 0 ? t : Promise;
|
|
920
904
|
}
|
|
921
|
-
function
|
|
905
|
+
function Zn(e) {
|
|
922
906
|
return e && Q(e.next) && Q(e.error) && Q(e.complete);
|
|
923
907
|
}
|
|
924
|
-
function
|
|
925
|
-
return e && e instanceof
|
|
908
|
+
function Qn(e) {
|
|
909
|
+
return e && e instanceof Sr || Zn(e) && wr(e);
|
|
926
910
|
}
|
|
927
|
-
var
|
|
911
|
+
var Yn = xr(function(e) {
|
|
928
912
|
return function() {
|
|
929
913
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
930
914
|
};
|
|
931
|
-
}),
|
|
915
|
+
}), Hr = function(e) {
|
|
932
916
|
q(t, e);
|
|
933
917
|
function t() {
|
|
934
918
|
var r = e.call(this) || this;
|
|
935
919
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
936
920
|
}
|
|
937
921
|
return t.prototype.lift = function(r) {
|
|
938
|
-
var n = new
|
|
922
|
+
var n = new Dt(this, this);
|
|
939
923
|
return n.operator = r, n;
|
|
940
924
|
}, t.prototype._throwIfClosed = function() {
|
|
941
925
|
if (this.closed)
|
|
942
|
-
throw new
|
|
926
|
+
throw new Yn();
|
|
943
927
|
}, t.prototype.next = function(r) {
|
|
944
928
|
var n = this;
|
|
945
929
|
Pe(function() {
|
|
@@ -947,12 +931,12 @@ var Kn = wr(function(e) {
|
|
|
947
931
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
948
932
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
949
933
|
try {
|
|
950
|
-
for (var a =
|
|
951
|
-
var
|
|
952
|
-
|
|
934
|
+
for (var a = rt(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
935
|
+
var u = s.value;
|
|
936
|
+
u.next(r);
|
|
953
937
|
}
|
|
954
|
-
} catch (
|
|
955
|
-
i = { error:
|
|
938
|
+
} catch (l) {
|
|
939
|
+
i = { error: l };
|
|
956
940
|
} finally {
|
|
957
941
|
try {
|
|
958
942
|
s && !s.done && (o = a.return) && o.call(a);
|
|
@@ -996,19 +980,19 @@ var Kn = wr(function(e) {
|
|
|
996
980
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
997
981
|
}, t.prototype._innerSubscribe = function(r) {
|
|
998
982
|
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
999
|
-
return o || a ?
|
|
1000
|
-
n.currentObservers = null,
|
|
983
|
+
return o || a ? Er : (this.currentObservers = null, s.push(r), new De(function() {
|
|
984
|
+
n.currentObservers = null, it(s, r);
|
|
1001
985
|
}));
|
|
1002
986
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
1003
987
|
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
1004
988
|
i ? r.error(o) : a && r.complete();
|
|
1005
989
|
}, t.prototype.asObservable = function() {
|
|
1006
|
-
var r = new
|
|
990
|
+
var r = new Ut();
|
|
1007
991
|
return r.source = this, r;
|
|
1008
992
|
}, t.create = function(r, n) {
|
|
1009
|
-
return new
|
|
993
|
+
return new Dt(r, n);
|
|
1010
994
|
}, t;
|
|
1011
|
-
}(
|
|
995
|
+
}(Ut), Dt = function(e) {
|
|
1012
996
|
q(t, e);
|
|
1013
997
|
function t(r, n) {
|
|
1014
998
|
var i = e.call(this) || this;
|
|
@@ -1025,45 +1009,45 @@ var Kn = wr(function(e) {
|
|
|
1025
1009
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1026
1010
|
}, t.prototype._subscribe = function(r) {
|
|
1027
1011
|
var n, i;
|
|
1028
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1012
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Er;
|
|
1029
1013
|
}, t;
|
|
1030
|
-
}(
|
|
1014
|
+
}(Hr), Tr = {
|
|
1031
1015
|
now: function() {
|
|
1032
|
-
return (
|
|
1016
|
+
return (Tr.delegate || Date).now();
|
|
1033
1017
|
},
|
|
1034
1018
|
delegate: void 0
|
|
1035
|
-
},
|
|
1019
|
+
}, qn = function(e) {
|
|
1036
1020
|
q(t, e);
|
|
1037
1021
|
function t(r, n, i) {
|
|
1038
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1022
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Tr);
|
|
1039
1023
|
var o = e.call(this) || this;
|
|
1040
1024
|
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;
|
|
1041
1025
|
}
|
|
1042
1026
|
return t.prototype.next = function(r) {
|
|
1043
|
-
var n = this, i = n.isStopped, o = n._buffer, a = n._infiniteTimeWindow, s = n._timestampProvider,
|
|
1044
|
-
i || (o.push(r), !a && o.push(s.now() +
|
|
1027
|
+
var n = this, i = n.isStopped, o = n._buffer, a = n._infiniteTimeWindow, s = n._timestampProvider, u = n._windowTime;
|
|
1028
|
+
i || (o.push(r), !a && o.push(s.now() + u)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
1045
1029
|
}, t.prototype._subscribe = function(r) {
|
|
1046
1030
|
this._throwIfClosed(), this._trimBuffer();
|
|
1047
|
-
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(),
|
|
1048
|
-
r.next(s[
|
|
1031
|
+
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)
|
|
1032
|
+
r.next(s[u]);
|
|
1049
1033
|
return this._checkFinalizedStatuses(r), n;
|
|
1050
1034
|
}, t.prototype._trimBuffer = function() {
|
|
1051
1035
|
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, a = r._infiniteTimeWindow, s = (a ? 1 : 2) * n;
|
|
1052
1036
|
if (n < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
|
|
1053
|
-
for (var
|
|
1054
|
-
|
|
1055
|
-
|
|
1037
|
+
for (var u = i.now(), l = 0, h = 1; h < o.length && o[h] <= u; h += 2)
|
|
1038
|
+
l = h;
|
|
1039
|
+
l && o.splice(0, l + 1);
|
|
1056
1040
|
}
|
|
1057
1041
|
}, t;
|
|
1058
|
-
}(
|
|
1059
|
-
const
|
|
1060
|
-
if (
|
|
1061
|
-
const r = new
|
|
1062
|
-
|
|
1042
|
+
}(Hr);
|
|
1043
|
+
const kt = [], Gt = {}, Jn = (e, t = 0) => {
|
|
1044
|
+
if (kt.indexOf(e) == -1) {
|
|
1045
|
+
const r = new qn(t);
|
|
1046
|
+
Gt[e] = r, kt.push(e);
|
|
1063
1047
|
}
|
|
1064
|
-
return
|
|
1048
|
+
return Gt[e];
|
|
1065
1049
|
}, se = [];
|
|
1066
|
-
function
|
|
1050
|
+
function Kn(e, t) {
|
|
1067
1051
|
return {
|
|
1068
1052
|
subscribe: ke(e, t).subscribe
|
|
1069
1053
|
};
|
|
@@ -1072,13 +1056,13 @@ function ke(e, t = $) {
|
|
|
1072
1056
|
let r;
|
|
1073
1057
|
const n = /* @__PURE__ */ new Set();
|
|
1074
1058
|
function i(s) {
|
|
1075
|
-
if (
|
|
1076
|
-
const
|
|
1077
|
-
for (const
|
|
1078
|
-
|
|
1079
|
-
if (
|
|
1080
|
-
for (let
|
|
1081
|
-
se[
|
|
1059
|
+
if (br(e, s) && (e = s, r)) {
|
|
1060
|
+
const u = !se.length;
|
|
1061
|
+
for (const l of n)
|
|
1062
|
+
l[1](), se.push(l, e);
|
|
1063
|
+
if (u) {
|
|
1064
|
+
for (let l = 0; l < se.length; l += 2)
|
|
1065
|
+
se[l][0](se[l + 1]);
|
|
1082
1066
|
se.length = 0;
|
|
1083
1067
|
}
|
|
1084
1068
|
}
|
|
@@ -1086,10 +1070,10 @@ function ke(e, t = $) {
|
|
|
1086
1070
|
function o(s) {
|
|
1087
1071
|
i(s(e));
|
|
1088
1072
|
}
|
|
1089
|
-
function a(s,
|
|
1090
|
-
const
|
|
1091
|
-
return n.add(
|
|
1092
|
-
n.delete(
|
|
1073
|
+
function a(s, u = $) {
|
|
1074
|
+
const l = [s, u];
|
|
1075
|
+
return n.add(l), n.size === 1 && (r = t(i, o) || $), s(e), () => {
|
|
1076
|
+
n.delete(l), n.size === 0 && r && (r(), r = null);
|
|
1093
1077
|
};
|
|
1094
1078
|
}
|
|
1095
1079
|
return { set: i, update: o, subscribe: a };
|
|
@@ -1099,96 +1083,96 @@ function be(e, t, r) {
|
|
|
1099
1083
|
if (!i.every(Boolean))
|
|
1100
1084
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1101
1085
|
const o = t.length < 2;
|
|
1102
|
-
return
|
|
1103
|
-
let
|
|
1104
|
-
const
|
|
1086
|
+
return Kn(r, (a, s) => {
|
|
1087
|
+
let u = !1;
|
|
1088
|
+
const l = [];
|
|
1105
1089
|
let h = 0, c = $;
|
|
1106
1090
|
const f = () => {
|
|
1107
1091
|
if (h)
|
|
1108
1092
|
return;
|
|
1109
1093
|
c();
|
|
1110
|
-
const g = t(n ?
|
|
1111
|
-
o ? a(g) : c =
|
|
1094
|
+
const g = t(n ? l[0] : l, a, s);
|
|
1095
|
+
o ? a(g) : c = mt(g) ? g : $;
|
|
1112
1096
|
}, m = i.map(
|
|
1113
|
-
(g, b) =>
|
|
1097
|
+
(g, b) => yr(
|
|
1114
1098
|
g,
|
|
1115
1099
|
(w) => {
|
|
1116
|
-
|
|
1100
|
+
l[b] = w, h &= ~(1 << b), u && f();
|
|
1117
1101
|
},
|
|
1118
1102
|
() => {
|
|
1119
1103
|
h |= 1 << b;
|
|
1120
1104
|
}
|
|
1121
1105
|
)
|
|
1122
1106
|
);
|
|
1123
|
-
return
|
|
1124
|
-
pe(m), c(),
|
|
1107
|
+
return u = !0, f(), function() {
|
|
1108
|
+
pe(m), c(), u = !1;
|
|
1125
1109
|
};
|
|
1126
1110
|
});
|
|
1127
1111
|
}
|
|
1128
|
-
function
|
|
1129
|
-
return e
|
|
1112
|
+
function ei(e) {
|
|
1113
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1130
1114
|
}
|
|
1131
|
-
var
|
|
1132
|
-
return
|
|
1115
|
+
var ti = function(t) {
|
|
1116
|
+
return ri(t) && !ni(t);
|
|
1133
1117
|
};
|
|
1134
|
-
function
|
|
1118
|
+
function ri(e) {
|
|
1135
1119
|
return !!e && typeof e == "object";
|
|
1136
1120
|
}
|
|
1137
|
-
function
|
|
1121
|
+
function ni(e) {
|
|
1138
1122
|
var t = Object.prototype.toString.call(e);
|
|
1139
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1123
|
+
return t === "[object RegExp]" || t === "[object Date]" || ai(e);
|
|
1140
1124
|
}
|
|
1141
|
-
var
|
|
1142
|
-
function
|
|
1143
|
-
return e.$$typeof ===
|
|
1125
|
+
var ii = typeof Symbol == "function" && Symbol.for, oi = ii ? Symbol.for("react.element") : 60103;
|
|
1126
|
+
function ai(e) {
|
|
1127
|
+
return e.$$typeof === oi;
|
|
1144
1128
|
}
|
|
1145
|
-
function
|
|
1129
|
+
function si(e) {
|
|
1146
1130
|
return Array.isArray(e) ? [] : {};
|
|
1147
1131
|
}
|
|
1148
1132
|
function we(e, t) {
|
|
1149
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? ce(
|
|
1133
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ce(si(e), e, t) : e;
|
|
1150
1134
|
}
|
|
1151
|
-
function
|
|
1135
|
+
function ui(e, t, r) {
|
|
1152
1136
|
return e.concat(t).map(function(n) {
|
|
1153
1137
|
return we(n, r);
|
|
1154
1138
|
});
|
|
1155
1139
|
}
|
|
1156
|
-
function
|
|
1140
|
+
function li(e, t) {
|
|
1157
1141
|
if (!t.customMerge)
|
|
1158
1142
|
return ce;
|
|
1159
1143
|
var r = t.customMerge(e);
|
|
1160
1144
|
return typeof r == "function" ? r : ce;
|
|
1161
1145
|
}
|
|
1162
|
-
function
|
|
1146
|
+
function hi(e) {
|
|
1163
1147
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1164
1148
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1165
1149
|
}) : [];
|
|
1166
1150
|
}
|
|
1167
|
-
function
|
|
1168
|
-
return Object.keys(e).concat(
|
|
1151
|
+
function $t(e) {
|
|
1152
|
+
return Object.keys(e).concat(hi(e));
|
|
1169
1153
|
}
|
|
1170
|
-
function
|
|
1154
|
+
function Or(e, t) {
|
|
1171
1155
|
try {
|
|
1172
1156
|
return t in e;
|
|
1173
1157
|
} catch (r) {
|
|
1174
1158
|
return !1;
|
|
1175
1159
|
}
|
|
1176
1160
|
}
|
|
1177
|
-
function
|
|
1178
|
-
return
|
|
1161
|
+
function ci(e, t) {
|
|
1162
|
+
return Or(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1179
1163
|
}
|
|
1180
|
-
function
|
|
1164
|
+
function fi(e, t, r) {
|
|
1181
1165
|
var n = {};
|
|
1182
|
-
return r.isMergeableObject(e) &&
|
|
1166
|
+
return r.isMergeableObject(e) && $t(e).forEach(function(i) {
|
|
1183
1167
|
n[i] = we(e[i], r);
|
|
1184
|
-
}),
|
|
1185
|
-
|
|
1168
|
+
}), $t(t).forEach(function(i) {
|
|
1169
|
+
ci(e, i) || (Or(e, i) && r.isMergeableObject(t[i]) ? n[i] = li(i, r)(e[i], t[i], r) : n[i] = we(t[i], r));
|
|
1186
1170
|
}), n;
|
|
1187
1171
|
}
|
|
1188
1172
|
function ce(e, t, r) {
|
|
1189
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1173
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || ui, r.isMergeableObject = r.isMergeableObject || ti, r.cloneUnlessOtherwiseSpecified = we;
|
|
1190
1174
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1191
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1175
|
+
return o ? n ? r.arrayMerge(e, t, r) : fi(e, t, r) : we(t, r);
|
|
1192
1176
|
}
|
|
1193
1177
|
ce.all = function(t, r) {
|
|
1194
1178
|
if (!Array.isArray(t))
|
|
@@ -1197,58 +1181,60 @@ ce.all = function(t, r) {
|
|
|
1197
1181
|
return ce(n, i, r);
|
|
1198
1182
|
}, {});
|
|
1199
1183
|
};
|
|
1200
|
-
var
|
|
1201
|
-
const
|
|
1202
|
-
function
|
|
1203
|
-
var r = t && t.cache ? t.cache :
|
|
1184
|
+
var di = ce, mi = di;
|
|
1185
|
+
const pi = /* @__PURE__ */ ei(mi);
|
|
1186
|
+
function Qe(e, t) {
|
|
1187
|
+
var r = t && t.cache ? t.cache : Ei, n = t && t.serializer ? t.serializer : _i, i = t && t.strategy ? t.strategy : bi;
|
|
1204
1188
|
return i(e, {
|
|
1205
1189
|
cache: r,
|
|
1206
1190
|
serializer: n
|
|
1207
1191
|
});
|
|
1208
1192
|
}
|
|
1209
|
-
function
|
|
1193
|
+
function gi(e) {
|
|
1210
1194
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1211
1195
|
}
|
|
1212
|
-
function
|
|
1213
|
-
var i =
|
|
1196
|
+
function Mr(e, t, r, n) {
|
|
1197
|
+
var i = gi(n) ? n : r(n), o = t.get(i);
|
|
1214
1198
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1215
1199
|
}
|
|
1216
|
-
function
|
|
1200
|
+
function Ar(e, t, r) {
|
|
1217
1201
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1218
1202
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1219
1203
|
}
|
|
1220
|
-
function
|
|
1204
|
+
function pt(e, t, r, n, i) {
|
|
1221
1205
|
return r.bind(t, e, n, i);
|
|
1222
1206
|
}
|
|
1223
|
-
function
|
|
1224
|
-
var r = e.length === 1 ?
|
|
1225
|
-
return
|
|
1207
|
+
function bi(e, t) {
|
|
1208
|
+
var r = e.length === 1 ? Mr : Ar;
|
|
1209
|
+
return pt(e, this, r, t.cache.create(), t.serializer);
|
|
1226
1210
|
}
|
|
1227
|
-
function
|
|
1228
|
-
return
|
|
1211
|
+
function yi(e, t) {
|
|
1212
|
+
return pt(e, this, Ar, t.cache.create(), t.serializer);
|
|
1229
1213
|
}
|
|
1230
|
-
function
|
|
1231
|
-
return
|
|
1214
|
+
function vi(e, t) {
|
|
1215
|
+
return pt(e, this, Mr, t.cache.create(), t.serializer);
|
|
1232
1216
|
}
|
|
1233
|
-
var
|
|
1217
|
+
var _i = function() {
|
|
1234
1218
|
return JSON.stringify(arguments);
|
|
1235
|
-
}
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1219
|
+
}, xi = (
|
|
1220
|
+
/** @class */
|
|
1221
|
+
function() {
|
|
1222
|
+
function e() {
|
|
1223
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1224
|
+
}
|
|
1225
|
+
return e.prototype.get = function(t) {
|
|
1226
|
+
return this.cache[t];
|
|
1227
|
+
}, e.prototype.set = function(t, r) {
|
|
1228
|
+
this.cache[t] = r;
|
|
1229
|
+
}, e;
|
|
1230
|
+
}()
|
|
1231
|
+
), Ei = {
|
|
1246
1232
|
create: function() {
|
|
1247
|
-
return new
|
|
1233
|
+
return new xi();
|
|
1248
1234
|
}
|
|
1249
|
-
},
|
|
1250
|
-
variadic:
|
|
1251
|
-
monadic:
|
|
1235
|
+
}, Ye = {
|
|
1236
|
+
variadic: yi,
|
|
1237
|
+
monadic: vi
|
|
1252
1238
|
}, _;
|
|
1253
1239
|
(function(e) {
|
|
1254
1240
|
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";
|
|
@@ -1261,43 +1247,43 @@ var fe;
|
|
|
1261
1247
|
(function(e) {
|
|
1262
1248
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1263
1249
|
})(fe || (fe = {}));
|
|
1264
|
-
function
|
|
1250
|
+
function jt(e) {
|
|
1265
1251
|
return e.type === O.literal;
|
|
1266
1252
|
}
|
|
1267
|
-
function
|
|
1253
|
+
function wi(e) {
|
|
1268
1254
|
return e.type === O.argument;
|
|
1269
1255
|
}
|
|
1270
|
-
function
|
|
1256
|
+
function Br(e) {
|
|
1271
1257
|
return e.type === O.number;
|
|
1272
1258
|
}
|
|
1273
|
-
function
|
|
1259
|
+
function Lr(e) {
|
|
1274
1260
|
return e.type === O.date;
|
|
1275
1261
|
}
|
|
1276
|
-
function
|
|
1262
|
+
function Pr(e) {
|
|
1277
1263
|
return e.type === O.time;
|
|
1278
1264
|
}
|
|
1279
|
-
function
|
|
1265
|
+
function Ir(e) {
|
|
1280
1266
|
return e.type === O.select;
|
|
1281
1267
|
}
|
|
1282
|
-
function
|
|
1268
|
+
function Cr(e) {
|
|
1283
1269
|
return e.type === O.plural;
|
|
1284
1270
|
}
|
|
1285
|
-
function
|
|
1271
|
+
function Si(e) {
|
|
1286
1272
|
return e.type === O.pound;
|
|
1287
1273
|
}
|
|
1288
|
-
function
|
|
1274
|
+
function Nr(e) {
|
|
1289
1275
|
return e.type === O.tag;
|
|
1290
1276
|
}
|
|
1291
|
-
function
|
|
1277
|
+
function Rr(e) {
|
|
1292
1278
|
return !!(e && typeof e == "object" && e.type === fe.number);
|
|
1293
1279
|
}
|
|
1294
|
-
function
|
|
1280
|
+
function at(e) {
|
|
1295
1281
|
return !!(e && typeof e == "object" && e.type === fe.dateTime);
|
|
1296
1282
|
}
|
|
1297
|
-
var
|
|
1298
|
-
function
|
|
1283
|
+
var Ur = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Hi = /(?:[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;
|
|
1284
|
+
function Ti(e) {
|
|
1299
1285
|
var t = {};
|
|
1300
|
-
return e.replace(
|
|
1286
|
+
return e.replace(Hi, function(r) {
|
|
1301
1287
|
var n = r.length;
|
|
1302
1288
|
switch (r[0]) {
|
|
1303
1289
|
case "G":
|
|
@@ -1386,36 +1372,36 @@ function Mi(e) {
|
|
|
1386
1372
|
return "";
|
|
1387
1373
|
}), t;
|
|
1388
1374
|
}
|
|
1389
|
-
var
|
|
1390
|
-
function
|
|
1375
|
+
var Oi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1376
|
+
function Mi(e) {
|
|
1391
1377
|
if (e.length === 0)
|
|
1392
1378
|
throw new Error("Number skeleton cannot be empty");
|
|
1393
|
-
for (var t = e.split(
|
|
1379
|
+
for (var t = e.split(Oi).filter(function(f) {
|
|
1394
1380
|
return f.length > 0;
|
|
1395
1381
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1396
1382
|
var o = i[n], a = o.split("/");
|
|
1397
1383
|
if (a.length === 0)
|
|
1398
1384
|
throw new Error("Invalid number skeleton");
|
|
1399
|
-
for (var s = a[0],
|
|
1400
|
-
var c = h[
|
|
1385
|
+
for (var s = a[0], u = a.slice(1), l = 0, h = u; l < h.length; l++) {
|
|
1386
|
+
var c = h[l];
|
|
1401
1387
|
if (c.length === 0)
|
|
1402
1388
|
throw new Error("Invalid number skeleton");
|
|
1403
1389
|
}
|
|
1404
|
-
r.push({ stem: s, options:
|
|
1390
|
+
r.push({ stem: s, options: u });
|
|
1405
1391
|
}
|
|
1406
1392
|
return r;
|
|
1407
1393
|
}
|
|
1408
|
-
function
|
|
1394
|
+
function Ai(e) {
|
|
1409
1395
|
return e.replace(/^(.*?)-/, "");
|
|
1410
1396
|
}
|
|
1411
|
-
var
|
|
1412
|
-
function
|
|
1397
|
+
var Wt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Fr = /^(@+)?(\+|#+)?[rs]?$/g, Bi = /(\*)(0+)|(#+)(0+)|(0+)/g, Dr = /^(0+)$/;
|
|
1398
|
+
function Vt(e) {
|
|
1413
1399
|
var t = {};
|
|
1414
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1400
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Fr, function(r, n, i) {
|
|
1415
1401
|
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)), "";
|
|
1416
1402
|
}), t;
|
|
1417
1403
|
}
|
|
1418
|
-
function
|
|
1404
|
+
function kr(e) {
|
|
1419
1405
|
switch (e) {
|
|
1420
1406
|
case "sign-auto":
|
|
1421
1407
|
return {
|
|
@@ -1455,7 +1441,7 @@ function jr(e) {
|
|
|
1455
1441
|
};
|
|
1456
1442
|
}
|
|
1457
1443
|
}
|
|
1458
|
-
function
|
|
1444
|
+
function Li(e) {
|
|
1459
1445
|
var t;
|
|
1460
1446
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1461
1447
|
notation: "engineering"
|
|
@@ -1463,17 +1449,17 @@ function Ii(e) {
|
|
|
1463
1449
|
notation: "scientific"
|
|
1464
1450
|
}, e = e.slice(1)), t) {
|
|
1465
1451
|
var r = e.slice(0, 2);
|
|
1466
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)),
|
|
1452
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Dr.test(e))
|
|
1467
1453
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1468
1454
|
t.minimumIntegerDigits = e.length;
|
|
1469
1455
|
}
|
|
1470
1456
|
return t;
|
|
1471
1457
|
}
|
|
1472
|
-
function
|
|
1473
|
-
var t = {}, r =
|
|
1458
|
+
function Xt(e) {
|
|
1459
|
+
var t = {}, r = kr(e);
|
|
1474
1460
|
return r || t;
|
|
1475
1461
|
}
|
|
1476
|
-
function
|
|
1462
|
+
function Pi(e) {
|
|
1477
1463
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1478
1464
|
var i = n[r];
|
|
1479
1465
|
switch (i.stem) {
|
|
@@ -1497,7 +1483,7 @@ function Ci(e) {
|
|
|
1497
1483
|
continue;
|
|
1498
1484
|
case "measure-unit":
|
|
1499
1485
|
case "unit":
|
|
1500
|
-
t.style = "unit", t.unit =
|
|
1486
|
+
t.style = "unit", t.unit = Ai(i.options[0]);
|
|
1501
1487
|
continue;
|
|
1502
1488
|
case "compact-short":
|
|
1503
1489
|
case "K":
|
|
@@ -1508,13 +1494,13 @@ function Ci(e) {
|
|
|
1508
1494
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1509
1495
|
continue;
|
|
1510
1496
|
case "scientific":
|
|
1511
|
-
t = S(S(S({}, t), { notation: "scientific" }), i.options.reduce(function(
|
|
1512
|
-
return S(S({},
|
|
1497
|
+
t = S(S(S({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
|
|
1498
|
+
return S(S({}, u), Xt(l));
|
|
1513
1499
|
}, {}));
|
|
1514
1500
|
continue;
|
|
1515
1501
|
case "engineering":
|
|
1516
|
-
t = S(S(S({}, t), { notation: "engineering" }), i.options.reduce(function(
|
|
1517
|
-
return S(S({},
|
|
1502
|
+
t = S(S(S({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
|
|
1503
|
+
return S(S({}, u), Xt(l));
|
|
1518
1504
|
}, {}));
|
|
1519
1505
|
continue;
|
|
1520
1506
|
case "notation-simple":
|
|
@@ -1559,8 +1545,8 @@ function Ci(e) {
|
|
|
1559
1545
|
case "integer-width":
|
|
1560
1546
|
if (i.options.length > 1)
|
|
1561
1547
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1562
|
-
i.options[0].replace(
|
|
1563
|
-
if (
|
|
1548
|
+
i.options[0].replace(Bi, function(u, l, h, c, f, m) {
|
|
1549
|
+
if (l)
|
|
1564
1550
|
t.minimumIntegerDigits = h.length;
|
|
1565
1551
|
else {
|
|
1566
1552
|
if (c && f)
|
|
@@ -1572,27 +1558,27 @@ function Ci(e) {
|
|
|
1572
1558
|
});
|
|
1573
1559
|
continue;
|
|
1574
1560
|
}
|
|
1575
|
-
if (
|
|
1561
|
+
if (Dr.test(i.stem)) {
|
|
1576
1562
|
t.minimumIntegerDigits = i.stem.length;
|
|
1577
1563
|
continue;
|
|
1578
1564
|
}
|
|
1579
|
-
if (
|
|
1565
|
+
if (Wt.test(i.stem)) {
|
|
1580
1566
|
if (i.options.length > 1)
|
|
1581
1567
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1582
|
-
i.stem.replace(
|
|
1583
|
-
return h === "*" ? t.minimumFractionDigits =
|
|
1568
|
+
i.stem.replace(Wt, function(u, l, h, c, f, m) {
|
|
1569
|
+
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), "";
|
|
1584
1570
|
});
|
|
1585
1571
|
var o = i.options[0];
|
|
1586
|
-
o === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = S(S({}, t),
|
|
1572
|
+
o === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = S(S({}, t), Vt(o)));
|
|
1587
1573
|
continue;
|
|
1588
1574
|
}
|
|
1589
|
-
if (
|
|
1590
|
-
t = S(S({}, t),
|
|
1575
|
+
if (Fr.test(i.stem)) {
|
|
1576
|
+
t = S(S({}, t), Vt(i.stem));
|
|
1591
1577
|
continue;
|
|
1592
1578
|
}
|
|
1593
|
-
var a =
|
|
1579
|
+
var a = kr(i.stem);
|
|
1594
1580
|
a && (t = S(S({}, t), a));
|
|
1595
|
-
var s =
|
|
1581
|
+
var s = Li(i.stem);
|
|
1596
1582
|
s && (t = S(S({}, t), s));
|
|
1597
1583
|
}
|
|
1598
1584
|
return t;
|
|
@@ -3012,23 +2998,23 @@ var Be = {
|
|
|
3012
2998
|
"h"
|
|
3013
2999
|
]
|
|
3014
3000
|
};
|
|
3015
|
-
function
|
|
3001
|
+
function Ii(e, t) {
|
|
3016
3002
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3017
3003
|
var i = e.charAt(n);
|
|
3018
3004
|
if (i === "j") {
|
|
3019
3005
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3020
3006
|
o++, n++;
|
|
3021
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1),
|
|
3022
|
-
for ((
|
|
3023
|
-
r +=
|
|
3007
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = Ci(t);
|
|
3008
|
+
for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
|
|
3009
|
+
r += u;
|
|
3024
3010
|
for (; a-- > 0; )
|
|
3025
|
-
r =
|
|
3011
|
+
r = l + r;
|
|
3026
3012
|
} else
|
|
3027
3013
|
i === "J" ? r += "H" : r += i;
|
|
3028
3014
|
}
|
|
3029
3015
|
return r;
|
|
3030
3016
|
}
|
|
3031
|
-
function
|
|
3017
|
+
function Ci(e) {
|
|
3032
3018
|
var t = e.hourCycle;
|
|
3033
3019
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3034
3020
|
e.hourCycles && // @ts-ignore
|
|
@@ -3050,20 +3036,20 @@ function Ri(e) {
|
|
|
3050
3036
|
var i = Be[n || ""] || Be[r || ""] || Be["".concat(r, "-001")] || Be["001"];
|
|
3051
3037
|
return i[0];
|
|
3052
3038
|
}
|
|
3053
|
-
var
|
|
3039
|
+
var qe, Ni = new RegExp("^".concat(Ur.source, "*")), Ri = new RegExp("".concat(Ur.source, "*$"));
|
|
3054
3040
|
function E(e, t) {
|
|
3055
3041
|
return { start: e, end: t };
|
|
3056
3042
|
}
|
|
3057
|
-
var
|
|
3043
|
+
var Ui = !!String.prototype.startsWith && "_a".startsWith("a", 1), Fi = !!String.fromCodePoint, Di = !!Object.fromEntries, ki = !!String.prototype.codePointAt, Gi = !!String.prototype.trimStart, $i = !!String.prototype.trimEnd, ji = !!Number.isSafeInteger, Wi = ji ? Number.isSafeInteger : function(e) {
|
|
3058
3044
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3059
|
-
},
|
|
3045
|
+
}, st = !0;
|
|
3060
3046
|
try {
|
|
3061
|
-
var
|
|
3062
|
-
|
|
3047
|
+
var Vi = $r("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3048
|
+
st = ((qe = Vi.exec("a")) === null || qe === void 0 ? void 0 : qe[0]) === "a";
|
|
3063
3049
|
} catch (e) {
|
|
3064
|
-
|
|
3050
|
+
st = !1;
|
|
3065
3051
|
}
|
|
3066
|
-
var
|
|
3052
|
+
var zt = Ui ? (
|
|
3067
3053
|
// Native
|
|
3068
3054
|
function(t, r, n) {
|
|
3069
3055
|
return t.startsWith(r, n);
|
|
@@ -3073,7 +3059,7 @@ var Qt = Di ? (
|
|
|
3073
3059
|
function(t, r, n) {
|
|
3074
3060
|
return t.slice(n, n + r.length) === r;
|
|
3075
3061
|
}
|
|
3076
|
-
), ut =
|
|
3062
|
+
), ut = Fi ? String.fromCodePoint : (
|
|
3077
3063
|
// IE11
|
|
3078
3064
|
function() {
|
|
3079
3065
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3085,9 +3071,9 @@ var Qt = Di ? (
|
|
|
3085
3071
|
}
|
|
3086
3072
|
return n;
|
|
3087
3073
|
}
|
|
3088
|
-
),
|
|
3074
|
+
), Zt = (
|
|
3089
3075
|
// native
|
|
3090
|
-
|
|
3076
|
+
Di ? Object.fromEntries : (
|
|
3091
3077
|
// Ponyfill
|
|
3092
3078
|
function(t) {
|
|
3093
3079
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3097,7 +3083,7 @@ var Qt = Di ? (
|
|
|
3097
3083
|
return r;
|
|
3098
3084
|
}
|
|
3099
3085
|
)
|
|
3100
|
-
),
|
|
3086
|
+
), Gr = ki ? (
|
|
3101
3087
|
// Native
|
|
3102
3088
|
function(t, r) {
|
|
3103
3089
|
return t.codePointAt(r);
|
|
@@ -3111,7 +3097,7 @@ var Qt = Di ? (
|
|
|
3111
3097
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3112
3098
|
}
|
|
3113
3099
|
}
|
|
3114
|
-
),
|
|
3100
|
+
), Xi = Gi ? (
|
|
3115
3101
|
// Native
|
|
3116
3102
|
function(t) {
|
|
3117
3103
|
return t.trimStart();
|
|
@@ -3119,9 +3105,9 @@ var Qt = Di ? (
|
|
|
3119
3105
|
) : (
|
|
3120
3106
|
// Ponyfill
|
|
3121
3107
|
function(t) {
|
|
3122
|
-
return t.replace(
|
|
3108
|
+
return t.replace(Ni, "");
|
|
3123
3109
|
}
|
|
3124
|
-
),
|
|
3110
|
+
), zi = $i ? (
|
|
3125
3111
|
// Native
|
|
3126
3112
|
function(t) {
|
|
3127
3113
|
return t.trimEnd();
|
|
@@ -3129,32 +3115,32 @@ var Qt = Di ? (
|
|
|
3129
3115
|
) : (
|
|
3130
3116
|
// Ponyfill
|
|
3131
3117
|
function(t) {
|
|
3132
|
-
return t.replace(
|
|
3118
|
+
return t.replace(Ri, "");
|
|
3133
3119
|
}
|
|
3134
3120
|
);
|
|
3135
|
-
function
|
|
3121
|
+
function $r(e, t) {
|
|
3136
3122
|
return new RegExp(e, t);
|
|
3137
3123
|
}
|
|
3138
|
-
var
|
|
3139
|
-
if (
|
|
3140
|
-
var
|
|
3141
|
-
|
|
3124
|
+
var lt;
|
|
3125
|
+
if (st) {
|
|
3126
|
+
var Qt = $r("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3127
|
+
lt = function(t, r) {
|
|
3142
3128
|
var n;
|
|
3143
|
-
|
|
3144
|
-
var i =
|
|
3129
|
+
Qt.lastIndex = r;
|
|
3130
|
+
var i = Qt.exec(t);
|
|
3145
3131
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3146
3132
|
};
|
|
3147
3133
|
} else
|
|
3148
|
-
|
|
3134
|
+
lt = function(t, r) {
|
|
3149
3135
|
for (var n = []; ; ) {
|
|
3150
|
-
var i =
|
|
3151
|
-
if (i === void 0 ||
|
|
3136
|
+
var i = Gr(t, r);
|
|
3137
|
+
if (i === void 0 || jr(i) || qi(i))
|
|
3152
3138
|
break;
|
|
3153
3139
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3154
3140
|
}
|
|
3155
3141
|
return ut.apply(void 0, n);
|
|
3156
3142
|
};
|
|
3157
|
-
var
|
|
3143
|
+
var Zi = (
|
|
3158
3144
|
/** @class */
|
|
3159
3145
|
function() {
|
|
3160
3146
|
function e(t, r) {
|
|
@@ -3185,7 +3171,7 @@ var Yi = (
|
|
|
3185
3171
|
if (n)
|
|
3186
3172
|
break;
|
|
3187
3173
|
return this.error(_.UNMATCHED_CLOSING_TAG, E(this.clonePosition(), this.clonePosition()));
|
|
3188
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3174
|
+
} else if (o === 60 && !this.ignoreTag && ht(this.peek() || 0)) {
|
|
3189
3175
|
var a = this.parseTag(t, r);
|
|
3190
3176
|
if (a.err)
|
|
3191
3177
|
return a;
|
|
@@ -3218,10 +3204,10 @@ var Yi = (
|
|
|
3218
3204
|
return o;
|
|
3219
3205
|
var a = o.val, s = this.clonePosition();
|
|
3220
3206
|
if (this.bumpIf("</")) {
|
|
3221
|
-
if (this.isEOF() || !
|
|
3207
|
+
if (this.isEOF() || !ht(this.char()))
|
|
3222
3208
|
return this.error(_.INVALID_TAG, E(s, this.clonePosition()));
|
|
3223
|
-
var
|
|
3224
|
-
return i !==
|
|
3209
|
+
var u = this.clonePosition(), l = this.parseTagName();
|
|
3210
|
+
return i !== l ? this.error(_.UNMATCHED_CLOSING_TAG, E(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3225
3211
|
val: {
|
|
3226
3212
|
type: O.tag,
|
|
3227
3213
|
value: i,
|
|
@@ -3236,7 +3222,7 @@ var Yi = (
|
|
|
3236
3222
|
return this.error(_.INVALID_TAG, E(n, this.clonePosition()));
|
|
3237
3223
|
}, e.prototype.parseTagName = function() {
|
|
3238
3224
|
var t = this.offset();
|
|
3239
|
-
for (this.bump(); !this.isEOF() &&
|
|
3225
|
+
for (this.bump(); !this.isEOF() && Yi(this.char()); )
|
|
3240
3226
|
this.bump();
|
|
3241
3227
|
return this.message.slice(t, this.offset());
|
|
3242
3228
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3258,14 +3244,14 @@ var Yi = (
|
|
|
3258
3244
|
}
|
|
3259
3245
|
break;
|
|
3260
3246
|
}
|
|
3261
|
-
var
|
|
3247
|
+
var u = E(n, this.clonePosition());
|
|
3262
3248
|
return {
|
|
3263
|
-
val: { type: O.literal, value: i, location:
|
|
3249
|
+
val: { type: O.literal, value: i, location: u },
|
|
3264
3250
|
err: null
|
|
3265
3251
|
};
|
|
3266
3252
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3267
3253
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3268
|
-
!
|
|
3254
|
+
!Qi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3269
3255
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3270
3256
|
if (this.isEOF() || this.char() !== 39)
|
|
3271
3257
|
return null;
|
|
@@ -3333,39 +3319,39 @@ var Yi = (
|
|
|
3333
3319
|
return this.error(_.MALFORMED_ARGUMENT, E(n, this.clonePosition()));
|
|
3334
3320
|
}
|
|
3335
3321
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3336
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3322
|
+
var t = this.clonePosition(), r = this.offset(), n = lt(this.message, r), i = r + n.length;
|
|
3337
3323
|
this.bumpTo(i);
|
|
3338
3324
|
var o = this.clonePosition(), a = E(t, o);
|
|
3339
3325
|
return { value: n, location: a };
|
|
3340
3326
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3341
|
-
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value,
|
|
3327
|
+
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
3342
3328
|
switch (s) {
|
|
3343
3329
|
case "":
|
|
3344
|
-
return this.error(_.EXPECT_ARGUMENT_TYPE, E(a,
|
|
3330
|
+
return this.error(_.EXPECT_ARGUMENT_TYPE, E(a, u));
|
|
3345
3331
|
case "number":
|
|
3346
3332
|
case "date":
|
|
3347
3333
|
case "time": {
|
|
3348
3334
|
this.bumpSpace();
|
|
3349
|
-
var
|
|
3335
|
+
var l = null;
|
|
3350
3336
|
if (this.bumpIf(",")) {
|
|
3351
3337
|
this.bumpSpace();
|
|
3352
3338
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3353
3339
|
if (c.err)
|
|
3354
3340
|
return c;
|
|
3355
|
-
var f =
|
|
3341
|
+
var f = zi(c.val);
|
|
3356
3342
|
if (f.length === 0)
|
|
3357
3343
|
return this.error(_.EXPECT_ARGUMENT_STYLE, E(this.clonePosition(), this.clonePosition()));
|
|
3358
3344
|
var m = E(h, this.clonePosition());
|
|
3359
|
-
|
|
3345
|
+
l = { style: f, styleLocation: m };
|
|
3360
3346
|
}
|
|
3361
3347
|
var g = this.tryParseArgumentClose(i);
|
|
3362
3348
|
if (g.err)
|
|
3363
3349
|
return g;
|
|
3364
3350
|
var b = E(i, this.clonePosition());
|
|
3365
|
-
if (
|
|
3366
|
-
var w =
|
|
3351
|
+
if (l && zt(l == null ? void 0 : l.style, "::", 0)) {
|
|
3352
|
+
var w = Xi(l.style.slice(2));
|
|
3367
3353
|
if (s === "number") {
|
|
3368
|
-
var c = this.parseNumberSkeletonFromString(w,
|
|
3354
|
+
var c = this.parseNumberSkeletonFromString(w, l.styleLocation);
|
|
3369
3355
|
return c.err ? c : {
|
|
3370
3356
|
val: { type: O.number, value: n, location: b, style: c.val },
|
|
3371
3357
|
err: null
|
|
@@ -3374,12 +3360,12 @@ var Yi = (
|
|
|
3374
3360
|
if (w.length === 0)
|
|
3375
3361
|
return this.error(_.EXPECT_DATE_TIME_SKELETON, b);
|
|
3376
3362
|
var T = w;
|
|
3377
|
-
this.locale && (T =
|
|
3363
|
+
this.locale && (T = Ii(w, this.locale));
|
|
3378
3364
|
var f = {
|
|
3379
3365
|
type: fe.dateTime,
|
|
3380
3366
|
pattern: T,
|
|
3381
|
-
location:
|
|
3382
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3367
|
+
location: l.styleLocation,
|
|
3368
|
+
parsedOptions: this.shouldParseSkeletons ? Ti(T) : {}
|
|
3383
3369
|
}, P = s === "date" ? O.date : O.time;
|
|
3384
3370
|
return {
|
|
3385
3371
|
val: { type: P, value: n, location: b, style: f },
|
|
@@ -3392,7 +3378,7 @@ var Yi = (
|
|
|
3392
3378
|
type: s === "number" ? O.number : s === "date" ? O.date : O.time,
|
|
3393
3379
|
value: n,
|
|
3394
3380
|
location: b,
|
|
3395
|
-
style: (o =
|
|
3381
|
+
style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
|
|
3396
3382
|
},
|
|
3397
3383
|
err: null
|
|
3398
3384
|
};
|
|
@@ -3425,7 +3411,7 @@ var Yi = (
|
|
|
3425
3411
|
val: {
|
|
3426
3412
|
type: O.select,
|
|
3427
3413
|
value: n,
|
|
3428
|
-
options:
|
|
3414
|
+
options: Zt(X.val),
|
|
3429
3415
|
location: z
|
|
3430
3416
|
},
|
|
3431
3417
|
err: null
|
|
@@ -3433,7 +3419,7 @@ var Yi = (
|
|
|
3433
3419
|
val: {
|
|
3434
3420
|
type: O.plural,
|
|
3435
3421
|
value: n,
|
|
3436
|
-
options:
|
|
3422
|
+
options: Zt(X.val),
|
|
3437
3423
|
offset: C,
|
|
3438
3424
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3439
3425
|
location: z
|
|
@@ -3442,7 +3428,7 @@ var Yi = (
|
|
|
3442
3428
|
};
|
|
3443
3429
|
}
|
|
3444
3430
|
default:
|
|
3445
|
-
return this.error(_.INVALID_ARGUMENT_TYPE, E(a,
|
|
3431
|
+
return this.error(_.INVALID_ARGUMENT_TYPE, E(a, u));
|
|
3446
3432
|
}
|
|
3447
3433
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3448
3434
|
return this.isEOF() || this.char() !== 125 ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, E(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -3484,7 +3470,7 @@ var Yi = (
|
|
|
3484
3470
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3485
3471
|
var n = [];
|
|
3486
3472
|
try {
|
|
3487
|
-
n =
|
|
3473
|
+
n = Mi(t);
|
|
3488
3474
|
} catch (i) {
|
|
3489
3475
|
return this.error(_.INVALID_NUMBER_SKELETON, r);
|
|
3490
3476
|
}
|
|
@@ -3493,25 +3479,25 @@ var Yi = (
|
|
|
3493
3479
|
type: fe.number,
|
|
3494
3480
|
tokens: n,
|
|
3495
3481
|
location: r,
|
|
3496
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3482
|
+
parsedOptions: this.shouldParseSkeletons ? Pi(n) : {}
|
|
3497
3483
|
},
|
|
3498
3484
|
err: null
|
|
3499
3485
|
};
|
|
3500
3486
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3501
|
-
for (var o, a = !1, s = [],
|
|
3502
|
-
if (
|
|
3487
|
+
for (var o, a = !1, s = [], u = /* @__PURE__ */ new Set(), l = i.value, h = i.location; ; ) {
|
|
3488
|
+
if (l.length === 0) {
|
|
3503
3489
|
var c = this.clonePosition();
|
|
3504
3490
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3505
3491
|
var f = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_SELECTOR, _.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3506
3492
|
if (f.err)
|
|
3507
3493
|
return f;
|
|
3508
|
-
h = E(c, this.clonePosition()),
|
|
3494
|
+
h = E(c, this.clonePosition()), l = this.message.slice(c.offset, this.offset());
|
|
3509
3495
|
} else
|
|
3510
3496
|
break;
|
|
3511
3497
|
}
|
|
3512
|
-
if (
|
|
3498
|
+
if (u.has(l))
|
|
3513
3499
|
return this.error(r === "select" ? _.DUPLICATE_SELECT_ARGUMENT_SELECTOR : _.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3514
|
-
|
|
3500
|
+
l === "other" && (a = !0), this.bumpSpace();
|
|
3515
3501
|
var m = this.clonePosition();
|
|
3516
3502
|
if (!this.bumpIf("{"))
|
|
3517
3503
|
return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, E(this.clonePosition(), this.clonePosition()));
|
|
@@ -3522,12 +3508,12 @@ var Yi = (
|
|
|
3522
3508
|
if (b.err)
|
|
3523
3509
|
return b;
|
|
3524
3510
|
s.push([
|
|
3525
|
-
|
|
3511
|
+
l,
|
|
3526
3512
|
{
|
|
3527
3513
|
value: g.val,
|
|
3528
3514
|
location: E(m, this.clonePosition())
|
|
3529
3515
|
}
|
|
3530
|
-
]),
|
|
3516
|
+
]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, h = o.location;
|
|
3531
3517
|
}
|
|
3532
3518
|
return s.length === 0 ? this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR : _.EXPECT_PLURAL_ARGUMENT_SELECTOR, E(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(_.MISSING_OTHER_CLAUSE, E(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3533
3519
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
@@ -3540,8 +3526,8 @@ var Yi = (
|
|
|
3540
3526
|
else
|
|
3541
3527
|
break;
|
|
3542
3528
|
}
|
|
3543
|
-
var
|
|
3544
|
-
return o ? (a *= n,
|
|
3529
|
+
var u = E(i, this.clonePosition());
|
|
3530
|
+
return o ? (a *= n, Wi(a) ? { val: a, err: null } : this.error(r, u)) : this.error(t, u);
|
|
3545
3531
|
}, e.prototype.offset = function() {
|
|
3546
3532
|
return this.position.offset;
|
|
3547
3533
|
}, e.prototype.isEOF = function() {
|
|
@@ -3556,7 +3542,7 @@ var Yi = (
|
|
|
3556
3542
|
var t = this.position.offset;
|
|
3557
3543
|
if (t >= this.message.length)
|
|
3558
3544
|
throw Error("out of bound");
|
|
3559
|
-
var r =
|
|
3545
|
+
var r = Gr(this.message, t);
|
|
3560
3546
|
if (r === void 0)
|
|
3561
3547
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3562
3548
|
return r;
|
|
@@ -3575,7 +3561,7 @@ var Yi = (
|
|
|
3575
3561
|
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);
|
|
3576
3562
|
}
|
|
3577
3563
|
}, e.prototype.bumpIf = function(t) {
|
|
3578
|
-
if (
|
|
3564
|
+
if (zt(this.message, t, this.offset())) {
|
|
3579
3565
|
for (var r = 0; r < t.length; r++)
|
|
3580
3566
|
this.bump();
|
|
3581
3567
|
return !0;
|
|
@@ -3597,7 +3583,7 @@ var Yi = (
|
|
|
3597
3583
|
break;
|
|
3598
3584
|
}
|
|
3599
3585
|
}, e.prototype.bumpSpace = function() {
|
|
3600
|
-
for (; !this.isEOF() &&
|
|
3586
|
+
for (; !this.isEOF() && jr(this.char()); )
|
|
3601
3587
|
this.bump();
|
|
3602
3588
|
}, e.prototype.peek = function() {
|
|
3603
3589
|
if (this.isEOF())
|
|
@@ -3607,38 +3593,38 @@ var Yi = (
|
|
|
3607
3593
|
}, e;
|
|
3608
3594
|
}()
|
|
3609
3595
|
);
|
|
3610
|
-
function
|
|
3596
|
+
function ht(e) {
|
|
3611
3597
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3612
3598
|
}
|
|
3613
|
-
function
|
|
3614
|
-
return
|
|
3599
|
+
function Qi(e) {
|
|
3600
|
+
return ht(e) || e === 47;
|
|
3615
3601
|
}
|
|
3616
|
-
function
|
|
3602
|
+
function Yi(e) {
|
|
3617
3603
|
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;
|
|
3618
3604
|
}
|
|
3619
|
-
function
|
|
3605
|
+
function jr(e) {
|
|
3620
3606
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3621
3607
|
}
|
|
3622
|
-
function
|
|
3608
|
+
function qi(e) {
|
|
3623
3609
|
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;
|
|
3624
3610
|
}
|
|
3625
|
-
function
|
|
3611
|
+
function ct(e) {
|
|
3626
3612
|
e.forEach(function(t) {
|
|
3627
|
-
if (delete t.location,
|
|
3613
|
+
if (delete t.location, Ir(t) || Cr(t))
|
|
3628
3614
|
for (var r in t.options)
|
|
3629
|
-
delete t.options[r].location,
|
|
3615
|
+
delete t.options[r].location, ct(t.options[r].value);
|
|
3630
3616
|
else
|
|
3631
|
-
|
|
3617
|
+
Br(t) && Rr(t.style) || (Lr(t) || Pr(t)) && at(t.style) ? delete t.style.location : Nr(t) && ct(t.children);
|
|
3632
3618
|
});
|
|
3633
3619
|
}
|
|
3634
|
-
function
|
|
3620
|
+
function Ji(e, t) {
|
|
3635
3621
|
t === void 0 && (t = {}), t = S({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3636
|
-
var r = new
|
|
3622
|
+
var r = new Zi(e, t).parse();
|
|
3637
3623
|
if (r.err) {
|
|
3638
3624
|
var n = SyntaxError(_[r.err.kind]);
|
|
3639
3625
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3640
3626
|
}
|
|
3641
|
-
return t != null && t.captureLocation ||
|
|
3627
|
+
return t != null && t.captureLocation || ct(r.val), r.val;
|
|
3642
3628
|
}
|
|
3643
3629
|
var de;
|
|
3644
3630
|
(function(e) {
|
|
@@ -3656,7 +3642,7 @@ var Ge = (
|
|
|
3656
3642
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3657
3643
|
}, t;
|
|
3658
3644
|
}(Error)
|
|
3659
|
-
),
|
|
3645
|
+
), Yt = (
|
|
3660
3646
|
/** @class */
|
|
3661
3647
|
function(e) {
|
|
3662
3648
|
q(t, e);
|
|
@@ -3665,7 +3651,7 @@ var Ge = (
|
|
|
3665
3651
|
}
|
|
3666
3652
|
return t;
|
|
3667
3653
|
}(Ge)
|
|
3668
|
-
),
|
|
3654
|
+
), Ki = (
|
|
3669
3655
|
/** @class */
|
|
3670
3656
|
function(e) {
|
|
3671
3657
|
q(t, e);
|
|
@@ -3674,7 +3660,7 @@ var Ge = (
|
|
|
3674
3660
|
}
|
|
3675
3661
|
return t;
|
|
3676
3662
|
}(Ge)
|
|
3677
|
-
),
|
|
3663
|
+
), eo = (
|
|
3678
3664
|
/** @class */
|
|
3679
3665
|
function(e) {
|
|
3680
3666
|
q(t, e);
|
|
@@ -3687,33 +3673,33 @@ var Ge = (
|
|
|
3687
3673
|
(function(e) {
|
|
3688
3674
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3689
3675
|
})(k || (k = {}));
|
|
3690
|
-
function
|
|
3676
|
+
function to(e) {
|
|
3691
3677
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3692
3678
|
var n = t[t.length - 1];
|
|
3693
3679
|
return !n || n.type !== k.literal || r.type !== k.literal ? t.push(r) : n.value += r.value, t;
|
|
3694
3680
|
}, []);
|
|
3695
3681
|
}
|
|
3696
|
-
function
|
|
3682
|
+
function ro(e) {
|
|
3697
3683
|
return typeof e == "function";
|
|
3698
3684
|
}
|
|
3699
3685
|
function Ie(e, t, r, n, i, o, a) {
|
|
3700
|
-
if (e.length === 1 &&
|
|
3686
|
+
if (e.length === 1 && jt(e[0]))
|
|
3701
3687
|
return [
|
|
3702
3688
|
{
|
|
3703
3689
|
type: k.literal,
|
|
3704
3690
|
value: e[0].value
|
|
3705
3691
|
}
|
|
3706
3692
|
];
|
|
3707
|
-
for (var s = [],
|
|
3708
|
-
var h = u
|
|
3709
|
-
if (
|
|
3693
|
+
for (var s = [], u = 0, l = e; u < l.length; u++) {
|
|
3694
|
+
var h = l[u];
|
|
3695
|
+
if (jt(h)) {
|
|
3710
3696
|
s.push({
|
|
3711
3697
|
type: k.literal,
|
|
3712
3698
|
value: h.value
|
|
3713
3699
|
});
|
|
3714
3700
|
continue;
|
|
3715
3701
|
}
|
|
3716
|
-
if (
|
|
3702
|
+
if (Si(h)) {
|
|
3717
3703
|
typeof o == "number" && s.push({
|
|
3718
3704
|
type: k.literal,
|
|
3719
3705
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3722,43 +3708,43 @@ function Ie(e, t, r, n, i, o, a) {
|
|
|
3722
3708
|
}
|
|
3723
3709
|
var c = h.value;
|
|
3724
3710
|
if (!(i && c in i))
|
|
3725
|
-
throw new
|
|
3711
|
+
throw new eo(c, a);
|
|
3726
3712
|
var f = i[c];
|
|
3727
|
-
if (
|
|
3713
|
+
if (wi(h)) {
|
|
3728
3714
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
|
|
3729
3715
|
type: typeof f == "string" ? k.literal : k.object,
|
|
3730
3716
|
value: f
|
|
3731
3717
|
});
|
|
3732
3718
|
continue;
|
|
3733
3719
|
}
|
|
3734
|
-
if (
|
|
3735
|
-
var m = typeof h.style == "string" ? n.date[h.style] :
|
|
3720
|
+
if (Lr(h)) {
|
|
3721
|
+
var m = typeof h.style == "string" ? n.date[h.style] : at(h.style) ? h.style.parsedOptions : void 0;
|
|
3736
3722
|
s.push({
|
|
3737
3723
|
type: k.literal,
|
|
3738
3724
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3739
3725
|
});
|
|
3740
3726
|
continue;
|
|
3741
3727
|
}
|
|
3742
|
-
if (
|
|
3743
|
-
var m = typeof h.style == "string" ? n.time[h.style] :
|
|
3728
|
+
if (Pr(h)) {
|
|
3729
|
+
var m = typeof h.style == "string" ? n.time[h.style] : at(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3744
3730
|
s.push({
|
|
3745
3731
|
type: k.literal,
|
|
3746
3732
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3747
3733
|
});
|
|
3748
3734
|
continue;
|
|
3749
3735
|
}
|
|
3750
|
-
if (
|
|
3751
|
-
var m = typeof h.style == "string" ? n.number[h.style] :
|
|
3736
|
+
if (Br(h)) {
|
|
3737
|
+
var m = typeof h.style == "string" ? n.number[h.style] : Rr(h.style) ? h.style.parsedOptions : void 0;
|
|
3752
3738
|
m && m.scale && (f = f * (m.scale || 1)), s.push({
|
|
3753
3739
|
type: k.literal,
|
|
3754
3740
|
value: r.getNumberFormat(t, m).format(f)
|
|
3755
3741
|
});
|
|
3756
3742
|
continue;
|
|
3757
3743
|
}
|
|
3758
|
-
if (
|
|
3744
|
+
if (Nr(h)) {
|
|
3759
3745
|
var g = h.children, b = h.value, w = i[b];
|
|
3760
|
-
if (!
|
|
3761
|
-
throw new
|
|
3746
|
+
if (!ro(w))
|
|
3747
|
+
throw new Ki(b, "function", a);
|
|
3762
3748
|
var T = Ie(g, t, r, n, i, o), P = w(T.map(function(C) {
|
|
3763
3749
|
return C.value;
|
|
3764
3750
|
}));
|
|
@@ -3769,14 +3755,14 @@ function Ie(e, t, r, n, i, o, a) {
|
|
|
3769
3755
|
};
|
|
3770
3756
|
}));
|
|
3771
3757
|
}
|
|
3772
|
-
if (
|
|
3758
|
+
if (Ir(h)) {
|
|
3773
3759
|
var B = h.options[f] || h.options.other;
|
|
3774
3760
|
if (!B)
|
|
3775
|
-
throw new
|
|
3761
|
+
throw new Yt(h.value, f, Object.keys(h.options), a);
|
|
3776
3762
|
s.push.apply(s, Ie(B.value, t, r, n, i));
|
|
3777
3763
|
continue;
|
|
3778
3764
|
}
|
|
3779
|
-
if (
|
|
3765
|
+
if (Cr(h)) {
|
|
3780
3766
|
var B = h.options["=".concat(f)];
|
|
3781
3767
|
if (!B) {
|
|
3782
3768
|
if (!Intl.PluralRules)
|
|
@@ -3787,24 +3773,24 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3787
3773
|
B = h.options[G] || h.options.other;
|
|
3788
3774
|
}
|
|
3789
3775
|
if (!B)
|
|
3790
|
-
throw new
|
|
3776
|
+
throw new Yt(h.value, f, Object.keys(h.options), a);
|
|
3791
3777
|
s.push.apply(s, Ie(B.value, t, r, n, i, f - (h.offset || 0)));
|
|
3792
3778
|
continue;
|
|
3793
3779
|
}
|
|
3794
3780
|
}
|
|
3795
|
-
return
|
|
3781
|
+
return to(s);
|
|
3796
3782
|
}
|
|
3797
|
-
function
|
|
3783
|
+
function no(e, t) {
|
|
3798
3784
|
return t ? S(S(S({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3799
3785
|
return r[n] = S(S({}, e[n]), t[n] || {}), r;
|
|
3800
3786
|
}, {})) : e;
|
|
3801
3787
|
}
|
|
3802
|
-
function
|
|
3788
|
+
function io(e, t) {
|
|
3803
3789
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3804
|
-
return r[n] =
|
|
3790
|
+
return r[n] = no(e[n], t[n]), r;
|
|
3805
3791
|
}, S({}, e)) : e;
|
|
3806
3792
|
}
|
|
3807
|
-
function
|
|
3793
|
+
function Je(e) {
|
|
3808
3794
|
return {
|
|
3809
3795
|
create: function() {
|
|
3810
3796
|
return {
|
|
@@ -3818,39 +3804,39 @@ function Ke(e) {
|
|
|
3818
3804
|
}
|
|
3819
3805
|
};
|
|
3820
3806
|
}
|
|
3821
|
-
function
|
|
3807
|
+
function oo(e) {
|
|
3822
3808
|
return e === void 0 && (e = {
|
|
3823
3809
|
number: {},
|
|
3824
3810
|
dateTime: {},
|
|
3825
3811
|
pluralRules: {}
|
|
3826
3812
|
}), {
|
|
3827
|
-
getNumberFormat:
|
|
3813
|
+
getNumberFormat: Qe(function() {
|
|
3828
3814
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3829
3815
|
r[n] = arguments[n];
|
|
3830
3816
|
return new ((t = Intl.NumberFormat).bind.apply(t, he([void 0], r, !1)))();
|
|
3831
3817
|
}, {
|
|
3832
|
-
cache:
|
|
3833
|
-
strategy:
|
|
3818
|
+
cache: Je(e.number),
|
|
3819
|
+
strategy: Ye.variadic
|
|
3834
3820
|
}),
|
|
3835
|
-
getDateTimeFormat:
|
|
3821
|
+
getDateTimeFormat: Qe(function() {
|
|
3836
3822
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3837
3823
|
r[n] = arguments[n];
|
|
3838
3824
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, he([void 0], r, !1)))();
|
|
3839
3825
|
}, {
|
|
3840
|
-
cache:
|
|
3841
|
-
strategy:
|
|
3826
|
+
cache: Je(e.dateTime),
|
|
3827
|
+
strategy: Ye.variadic
|
|
3842
3828
|
}),
|
|
3843
|
-
getPluralRules:
|
|
3829
|
+
getPluralRules: Qe(function() {
|
|
3844
3830
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3845
3831
|
r[n] = arguments[n];
|
|
3846
3832
|
return new ((t = Intl.PluralRules).bind.apply(t, he([void 0], r, !1)))();
|
|
3847
3833
|
}, {
|
|
3848
|
-
cache:
|
|
3849
|
-
strategy:
|
|
3834
|
+
cache: Je(e.pluralRules),
|
|
3835
|
+
strategy: Ye.variadic
|
|
3850
3836
|
})
|
|
3851
3837
|
};
|
|
3852
3838
|
}
|
|
3853
|
-
var
|
|
3839
|
+
var ao = (
|
|
3854
3840
|
/** @class */
|
|
3855
3841
|
function() {
|
|
3856
3842
|
function e(t, r, n, i) {
|
|
@@ -3860,20 +3846,20 @@ var lo = (
|
|
|
3860
3846
|
number: {},
|
|
3861
3847
|
dateTime: {},
|
|
3862
3848
|
pluralRules: {}
|
|
3863
|
-
}, this.format = function(
|
|
3864
|
-
var
|
|
3865
|
-
if (
|
|
3866
|
-
return
|
|
3867
|
-
var h =
|
|
3849
|
+
}, this.format = function(u) {
|
|
3850
|
+
var l = o.formatToParts(u);
|
|
3851
|
+
if (l.length === 1)
|
|
3852
|
+
return l[0].value;
|
|
3853
|
+
var h = l.reduce(function(c, f) {
|
|
3868
3854
|
return !c.length || f.type !== k.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3869
3855
|
}, []);
|
|
3870
3856
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3871
|
-
}, this.formatToParts = function(
|
|
3872
|
-
return Ie(o.ast, o.locales, o.formatters, o.formats,
|
|
3857
|
+
}, this.formatToParts = function(u) {
|
|
3858
|
+
return Ie(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
|
|
3873
3859
|
}, this.resolvedOptions = function() {
|
|
3874
|
-
var
|
|
3860
|
+
var u;
|
|
3875
3861
|
return {
|
|
3876
|
-
locale: ((
|
|
3862
|
+
locale: ((u = o.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
3877
3863
|
};
|
|
3878
3864
|
}, this.getAst = function() {
|
|
3879
3865
|
return o.ast;
|
|
@@ -3882,13 +3868,13 @@ var lo = (
|
|
|
3882
3868
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3883
3869
|
var a = i || {};
|
|
3884
3870
|
a.formatters;
|
|
3885
|
-
var s =
|
|
3871
|
+
var s = Fn(a, ["formatters"]);
|
|
3886
3872
|
this.ast = e.__parse(t, S(S({}, s), { locale: this.resolvedLocale }));
|
|
3887
3873
|
} else
|
|
3888
3874
|
this.ast = t;
|
|
3889
3875
|
if (!Array.isArray(this.ast))
|
|
3890
3876
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3891
|
-
this.formats =
|
|
3877
|
+
this.formats = io(e.formats, n), this.formatters = i && i.formatters || oo(this.formatterCache);
|
|
3892
3878
|
}
|
|
3893
3879
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3894
3880
|
get: function() {
|
|
@@ -3901,7 +3887,7 @@ var lo = (
|
|
|
3901
3887
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3902
3888
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3903
3889
|
}
|
|
3904
|
-
}, e.__parse =
|
|
3890
|
+
}, e.__parse = Ji, e.formats = {
|
|
3905
3891
|
number: {
|
|
3906
3892
|
integer: {
|
|
3907
3893
|
maximumFractionDigits: 0
|
|
@@ -3962,7 +3948,7 @@ var lo = (
|
|
|
3962
3948
|
}, e;
|
|
3963
3949
|
}()
|
|
3964
3950
|
);
|
|
3965
|
-
function
|
|
3951
|
+
function so(e, t) {
|
|
3966
3952
|
if (t == null)
|
|
3967
3953
|
return;
|
|
3968
3954
|
if (t in e)
|
|
@@ -3983,92 +3969,92 @@ function uo(e, t) {
|
|
|
3983
3969
|
n = void 0;
|
|
3984
3970
|
return n;
|
|
3985
3971
|
}
|
|
3986
|
-
const K = {},
|
|
3972
|
+
const K = {}, uo = (e, t, r) => r && (t in K || (K[t] = {}), e in K[t] || (K[t][e] = r), r), Wr = (e, t) => {
|
|
3987
3973
|
if (t == null)
|
|
3988
3974
|
return;
|
|
3989
3975
|
if (t in K && e in K[t])
|
|
3990
3976
|
return K[t][e];
|
|
3991
3977
|
const r = $e(t);
|
|
3992
3978
|
for (let n = 0; n < r.length; n++) {
|
|
3993
|
-
const i = r[n], o =
|
|
3979
|
+
const i = r[n], o = ho(i, e);
|
|
3994
3980
|
if (o)
|
|
3995
|
-
return
|
|
3981
|
+
return uo(e, t, o);
|
|
3996
3982
|
}
|
|
3997
3983
|
};
|
|
3998
|
-
let
|
|
3984
|
+
let gt;
|
|
3999
3985
|
const Te = ke({});
|
|
4000
|
-
function
|
|
4001
|
-
return
|
|
3986
|
+
function lo(e) {
|
|
3987
|
+
return gt[e] || null;
|
|
4002
3988
|
}
|
|
4003
|
-
function
|
|
4004
|
-
return e in
|
|
3989
|
+
function Vr(e) {
|
|
3990
|
+
return e in gt;
|
|
4005
3991
|
}
|
|
4006
|
-
function
|
|
4007
|
-
if (!
|
|
3992
|
+
function ho(e, t) {
|
|
3993
|
+
if (!Vr(e))
|
|
4008
3994
|
return null;
|
|
4009
|
-
const r =
|
|
4010
|
-
return
|
|
3995
|
+
const r = lo(e);
|
|
3996
|
+
return so(r, t);
|
|
4011
3997
|
}
|
|
4012
|
-
function
|
|
3998
|
+
function co(e) {
|
|
4013
3999
|
if (e == null)
|
|
4014
4000
|
return;
|
|
4015
4001
|
const t = $e(e);
|
|
4016
4002
|
for (let r = 0; r < t.length; r++) {
|
|
4017
4003
|
const n = t[r];
|
|
4018
|
-
if (
|
|
4004
|
+
if (Vr(n))
|
|
4019
4005
|
return n;
|
|
4020
4006
|
}
|
|
4021
4007
|
}
|
|
4022
|
-
function
|
|
4023
|
-
delete K[e], Te.update((r) => (r[e] =
|
|
4008
|
+
function Xr(e, ...t) {
|
|
4009
|
+
delete K[e], Te.update((r) => (r[e] = pi.all([r[e] || {}, ...t]), r));
|
|
4024
4010
|
}
|
|
4025
4011
|
be(
|
|
4026
4012
|
[Te],
|
|
4027
4013
|
([e]) => Object.keys(e)
|
|
4028
4014
|
);
|
|
4029
|
-
Te.subscribe((e) =>
|
|
4015
|
+
Te.subscribe((e) => gt = e);
|
|
4030
4016
|
const Ce = {};
|
|
4031
|
-
function
|
|
4017
|
+
function fo(e, t) {
|
|
4032
4018
|
Ce[e].delete(t), Ce[e].size === 0 && delete Ce[e];
|
|
4033
4019
|
}
|
|
4034
|
-
function
|
|
4020
|
+
function zr(e) {
|
|
4035
4021
|
return Ce[e];
|
|
4036
4022
|
}
|
|
4037
|
-
function
|
|
4023
|
+
function mo(e) {
|
|
4038
4024
|
return $e(e).map((t) => {
|
|
4039
|
-
const r =
|
|
4025
|
+
const r = zr(t);
|
|
4040
4026
|
return [t, r ? [...r] : []];
|
|
4041
4027
|
}).filter(([, t]) => t.length > 0);
|
|
4042
4028
|
}
|
|
4043
|
-
function
|
|
4029
|
+
function ft(e) {
|
|
4044
4030
|
return e == null ? !1 : $e(e).some(
|
|
4045
4031
|
(t) => {
|
|
4046
4032
|
var r;
|
|
4047
|
-
return (r =
|
|
4033
|
+
return (r = zr(t)) == null ? void 0 : r.size;
|
|
4048
4034
|
}
|
|
4049
4035
|
);
|
|
4050
4036
|
}
|
|
4051
|
-
function
|
|
4037
|
+
function po(e, t) {
|
|
4052
4038
|
return Promise.all(
|
|
4053
|
-
t.map((n) => (
|
|
4054
|
-
).then((n) =>
|
|
4039
|
+
t.map((n) => (fo(e, n), n().then((i) => i.default || i)))
|
|
4040
|
+
).then((n) => Xr(e, ...n));
|
|
4055
4041
|
}
|
|
4056
4042
|
const _e = {};
|
|
4057
|
-
function
|
|
4058
|
-
if (!
|
|
4043
|
+
function Zr(e) {
|
|
4044
|
+
if (!ft(e))
|
|
4059
4045
|
return e in _e ? _e[e] : Promise.resolve();
|
|
4060
|
-
const t =
|
|
4046
|
+
const t = mo(e);
|
|
4061
4047
|
return _e[e] = Promise.all(
|
|
4062
4048
|
t.map(
|
|
4063
|
-
([r, n]) =>
|
|
4049
|
+
([r, n]) => po(r, n)
|
|
4064
4050
|
)
|
|
4065
4051
|
).then(() => {
|
|
4066
|
-
if (
|
|
4067
|
-
return
|
|
4052
|
+
if (ft(e))
|
|
4053
|
+
return Zr(e);
|
|
4068
4054
|
delete _e[e];
|
|
4069
4055
|
}), _e[e];
|
|
4070
4056
|
}
|
|
4071
|
-
const
|
|
4057
|
+
const go = {
|
|
4072
4058
|
number: {
|
|
4073
4059
|
scientific: { notation: "scientific" },
|
|
4074
4060
|
engineering: { notation: "engineering" },
|
|
@@ -4097,57 +4083,57 @@ const vo = {
|
|
|
4097
4083
|
timeZoneName: "short"
|
|
4098
4084
|
}
|
|
4099
4085
|
}
|
|
4100
|
-
},
|
|
4086
|
+
}, bo = {
|
|
4101
4087
|
fallbackLocale: null,
|
|
4102
4088
|
loadingDelay: 200,
|
|
4103
|
-
formats:
|
|
4089
|
+
formats: go,
|
|
4104
4090
|
warnOnMissingMessages: !0,
|
|
4105
4091
|
handleMissingMessage: void 0,
|
|
4106
4092
|
ignoreTag: !0
|
|
4107
|
-
},
|
|
4093
|
+
}, yo = bo;
|
|
4108
4094
|
function me() {
|
|
4109
|
-
return
|
|
4110
|
-
}
|
|
4111
|
-
const
|
|
4112
|
-
var
|
|
4113
|
-
for (var r in t
|
|
4114
|
-
|
|
4115
|
-
if (
|
|
4116
|
-
for (var r of
|
|
4117
|
-
|
|
4095
|
+
return yo;
|
|
4096
|
+
}
|
|
4097
|
+
const Ke = ke(!1);
|
|
4098
|
+
var vo = Object.defineProperty, _o = Object.defineProperties, xo = Object.getOwnPropertyDescriptors, qt = Object.getOwnPropertySymbols, Eo = Object.prototype.hasOwnProperty, wo = Object.prototype.propertyIsEnumerable, Jt = (e, t, r) => t in e ? vo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, So = (e, t) => {
|
|
4099
|
+
for (var r in t)
|
|
4100
|
+
Eo.call(t, r) && Jt(e, r, t[r]);
|
|
4101
|
+
if (qt)
|
|
4102
|
+
for (var r of qt(t))
|
|
4103
|
+
wo.call(t, r) && Jt(e, r, t[r]);
|
|
4118
4104
|
return e;
|
|
4119
|
-
},
|
|
4120
|
-
let
|
|
4105
|
+
}, Ho = (e, t) => _o(e, xo(t));
|
|
4106
|
+
let dt;
|
|
4121
4107
|
const Ue = ke(null);
|
|
4122
|
-
function
|
|
4108
|
+
function Kt(e) {
|
|
4123
4109
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4124
4110
|
}
|
|
4125
4111
|
function $e(e, t = me().fallbackLocale) {
|
|
4126
|
-
const r =
|
|
4127
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4112
|
+
const r = Kt(e);
|
|
4113
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Kt(t)])] : r;
|
|
4128
4114
|
}
|
|
4129
4115
|
function ne() {
|
|
4130
|
-
return
|
|
4116
|
+
return dt != null ? dt : void 0;
|
|
4131
4117
|
}
|
|
4132
4118
|
Ue.subscribe((e) => {
|
|
4133
|
-
|
|
4119
|
+
dt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4134
4120
|
});
|
|
4135
|
-
const
|
|
4136
|
-
if (e &&
|
|
4121
|
+
const To = (e) => {
|
|
4122
|
+
if (e && co(e) && ft(e)) {
|
|
4137
4123
|
const { loadingDelay: t } = me();
|
|
4138
4124
|
let r;
|
|
4139
4125
|
return typeof window != "undefined" && ne() != null && t ? r = window.setTimeout(
|
|
4140
|
-
() =>
|
|
4126
|
+
() => Ke.set(!0),
|
|
4141
4127
|
t
|
|
4142
|
-
) :
|
|
4128
|
+
) : Ke.set(!0), Zr(e).then(() => {
|
|
4143
4129
|
Ue.set(e);
|
|
4144
4130
|
}).finally(() => {
|
|
4145
|
-
clearTimeout(r),
|
|
4131
|
+
clearTimeout(r), Ke.set(!1);
|
|
4146
4132
|
});
|
|
4147
4133
|
}
|
|
4148
4134
|
return Ue.set(e);
|
|
4149
|
-
},
|
|
4150
|
-
set:
|
|
4135
|
+
}, ye = Ho(So({}, Ue), {
|
|
4136
|
+
set: To
|
|
4151
4137
|
}), je = (e) => {
|
|
4152
4138
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4153
4139
|
return (n) => {
|
|
@@ -4155,20 +4141,20 @@ const Mo = (e) => {
|
|
|
4155
4141
|
return i in t ? t[i] : t[i] = e(n);
|
|
4156
4142
|
};
|
|
4157
4143
|
};
|
|
4158
|
-
var
|
|
4144
|
+
var Oo = Object.defineProperty, Fe = Object.getOwnPropertySymbols, Qr = Object.prototype.hasOwnProperty, Yr = Object.prototype.propertyIsEnumerable, er = (e, t, r) => t in e ? Oo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, bt = (e, t) => {
|
|
4159
4145
|
for (var r in t || (t = {}))
|
|
4160
|
-
|
|
4146
|
+
Qr.call(t, r) && er(e, r, t[r]);
|
|
4161
4147
|
if (Fe)
|
|
4162
4148
|
for (var r of Fe(t))
|
|
4163
|
-
|
|
4149
|
+
Yr.call(t, r) && er(e, r, t[r]);
|
|
4164
4150
|
return e;
|
|
4165
|
-
},
|
|
4151
|
+
}, ve = (e, t) => {
|
|
4166
4152
|
var r = {};
|
|
4167
4153
|
for (var n in e)
|
|
4168
|
-
|
|
4154
|
+
Qr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4169
4155
|
if (e != null && Fe)
|
|
4170
4156
|
for (var n of Fe(e))
|
|
4171
|
-
t.indexOf(n) < 0 &&
|
|
4157
|
+
t.indexOf(n) < 0 && Yr.call(e, n) && (r[n] = e[n]);
|
|
4172
4158
|
return r;
|
|
4173
4159
|
};
|
|
4174
4160
|
const Se = (e, t) => {
|
|
@@ -4176,71 +4162,71 @@ const Se = (e, t) => {
|
|
|
4176
4162
|
if (e in r && t in r[e])
|
|
4177
4163
|
return r[e][t];
|
|
4178
4164
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4179
|
-
},
|
|
4165
|
+
}, Mo = je(
|
|
4180
4166
|
(e) => {
|
|
4181
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4167
|
+
var t = e, { locale: r, format: n } = t, i = ve(t, ["locale", "format"]);
|
|
4182
4168
|
if (r == null)
|
|
4183
4169
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4184
4170
|
return n && (i = Se("number", n)), new Intl.NumberFormat(r, i);
|
|
4185
4171
|
}
|
|
4186
|
-
),
|
|
4172
|
+
), Ao = je(
|
|
4187
4173
|
(e) => {
|
|
4188
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4174
|
+
var t = e, { locale: r, format: n } = t, i = ve(t, ["locale", "format"]);
|
|
4189
4175
|
if (r == null)
|
|
4190
4176
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4191
4177
|
return n ? i = Se("date", n) : Object.keys(i).length === 0 && (i = Se("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4192
4178
|
}
|
|
4193
|
-
),
|
|
4179
|
+
), Bo = je(
|
|
4194
4180
|
(e) => {
|
|
4195
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4181
|
+
var t = e, { locale: r, format: n } = t, i = ve(t, ["locale", "format"]);
|
|
4196
4182
|
if (r == null)
|
|
4197
4183
|
throw new Error(
|
|
4198
4184
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4199
4185
|
);
|
|
4200
4186
|
return n ? i = Se("time", n) : Object.keys(i).length === 0 && (i = Se("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4201
4187
|
}
|
|
4202
|
-
),
|
|
4188
|
+
), Lo = (e = {}) => {
|
|
4203
4189
|
var t = e, {
|
|
4204
4190
|
locale: r = ne()
|
|
4205
|
-
} = t, n =
|
|
4191
|
+
} = t, n = ve(t, [
|
|
4206
4192
|
"locale"
|
|
4207
4193
|
]);
|
|
4208
|
-
return
|
|
4209
|
-
},
|
|
4194
|
+
return Mo(bt({ locale: r }, n));
|
|
4195
|
+
}, Po = (e = {}) => {
|
|
4210
4196
|
var t = e, {
|
|
4211
4197
|
locale: r = ne()
|
|
4212
|
-
} = t, n =
|
|
4198
|
+
} = t, n = ve(t, [
|
|
4213
4199
|
"locale"
|
|
4214
4200
|
]);
|
|
4215
|
-
return
|
|
4216
|
-
},
|
|
4201
|
+
return Ao(bt({ locale: r }, n));
|
|
4202
|
+
}, Io = (e = {}) => {
|
|
4217
4203
|
var t = e, {
|
|
4218
4204
|
locale: r = ne()
|
|
4219
|
-
} = t, n =
|
|
4205
|
+
} = t, n = ve(t, [
|
|
4220
4206
|
"locale"
|
|
4221
4207
|
]);
|
|
4222
|
-
return
|
|
4223
|
-
},
|
|
4208
|
+
return Bo(bt({ locale: r }, n));
|
|
4209
|
+
}, Co = je(
|
|
4224
4210
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4225
|
-
(e, t = ne()) => new
|
|
4211
|
+
(e, t = ne()) => new ao(e, t, me().formats, {
|
|
4226
4212
|
ignoreTag: me().ignoreTag
|
|
4227
4213
|
})
|
|
4228
|
-
),
|
|
4214
|
+
), No = (e, t = {}) => {
|
|
4229
4215
|
var r, n, i, o;
|
|
4230
4216
|
let a = t;
|
|
4231
4217
|
typeof e == "object" && (a = e, e = a.id);
|
|
4232
4218
|
const {
|
|
4233
4219
|
values: s,
|
|
4234
|
-
locale:
|
|
4235
|
-
default:
|
|
4220
|
+
locale: u = ne(),
|
|
4221
|
+
default: l
|
|
4236
4222
|
} = a;
|
|
4237
|
-
if (
|
|
4223
|
+
if (u == null)
|
|
4238
4224
|
throw new Error(
|
|
4239
4225
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4240
4226
|
);
|
|
4241
|
-
let h =
|
|
4227
|
+
let h = Wr(e, u);
|
|
4242
4228
|
if (!h)
|
|
4243
|
-
h = (o = (i = (n = (r = me()).handleMissingMessage) == null ? void 0 : n.call(r, { locale:
|
|
4229
|
+
h = (o = (i = (n = (r = me()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
4244
4230
|
else if (typeof h != "string")
|
|
4245
4231
|
return console.warn(
|
|
4246
4232
|
`[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.`
|
|
@@ -4249,7 +4235,7 @@ const Se = (e, t) => {
|
|
|
4249
4235
|
return h;
|
|
4250
4236
|
let c = h;
|
|
4251
4237
|
try {
|
|
4252
|
-
c =
|
|
4238
|
+
c = Co(h, u).format(s);
|
|
4253
4239
|
} catch (f) {
|
|
4254
4240
|
f instanceof Error && console.warn(
|
|
4255
4241
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4257,20 +4243,20 @@ const Se = (e, t) => {
|
|
|
4257
4243
|
);
|
|
4258
4244
|
}
|
|
4259
4245
|
return c;
|
|
4260
|
-
},
|
|
4261
|
-
be([
|
|
4262
|
-
be([
|
|
4263
|
-
be([
|
|
4264
|
-
be([
|
|
4265
|
-
window.emWidgets = { topic:
|
|
4266
|
-
const
|
|
4267
|
-
function
|
|
4246
|
+
}, Ro = (e, t) => Io(t).format(e), Uo = (e, t) => Po(t).format(e), Fo = (e, t) => Lo(t).format(e), Do = (e, t = ne()) => Wr(e, t), ko = be([ye, Te], () => No);
|
|
4247
|
+
be([ye], () => Ro);
|
|
4248
|
+
be([ye], () => Uo);
|
|
4249
|
+
be([ye], () => Fo);
|
|
4250
|
+
be([ye, Te], () => Do);
|
|
4251
|
+
window.emWidgets = { topic: Jn };
|
|
4252
|
+
const Go = (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)), $o = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4253
|
+
function jo(e, t) {
|
|
4268
4254
|
if (e) {
|
|
4269
4255
|
const r = document.createElement("style");
|
|
4270
4256
|
r.innerHTML = t, e.appendChild(r);
|
|
4271
4257
|
}
|
|
4272
4258
|
}
|
|
4273
|
-
function
|
|
4259
|
+
function Wo(e, t) {
|
|
4274
4260
|
const r = new URL(t);
|
|
4275
4261
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4276
4262
|
const i = document.createElement("style");
|
|
@@ -4279,7 +4265,7 @@ function Xo(e, t) {
|
|
|
4279
4265
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4280
4266
|
});
|
|
4281
4267
|
}
|
|
4282
|
-
function
|
|
4268
|
+
function Vo(e, t, r) {
|
|
4283
4269
|
if (window.emMessageBus) {
|
|
4284
4270
|
const n = document.createElement("style");
|
|
4285
4271
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4287,13 +4273,13 @@ function zo(e, t, r) {
|
|
|
4287
4273
|
});
|
|
4288
4274
|
}
|
|
4289
4275
|
}
|
|
4290
|
-
function
|
|
4291
|
-
|
|
4276
|
+
function tr(e, t) {
|
|
4277
|
+
Xr(e, t);
|
|
4292
4278
|
}
|
|
4293
|
-
function
|
|
4294
|
-
|
|
4279
|
+
function Xo(e) {
|
|
4280
|
+
ye.set(e);
|
|
4295
4281
|
}
|
|
4296
|
-
const
|
|
4282
|
+
const rr = {
|
|
4297
4283
|
en: {
|
|
4298
4284
|
language: "Select Language"
|
|
4299
4285
|
},
|
|
@@ -4328,35 +4314,35 @@ const ir = {
|
|
|
4328
4314
|
language: "Select Language"
|
|
4329
4315
|
}
|
|
4330
4316
|
};
|
|
4331
|
-
function
|
|
4332
|
-
|
|
4317
|
+
function zo(e) {
|
|
4318
|
+
bn(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}");
|
|
4333
4319
|
}
|
|
4334
|
-
function
|
|
4320
|
+
function nr(e, t, r) {
|
|
4335
4321
|
const n = e.slice();
|
|
4336
4322
|
return n[57] = t[r], n;
|
|
4337
4323
|
}
|
|
4338
|
-
function
|
|
4324
|
+
function ir(e, t, r) {
|
|
4339
4325
|
const n = e.slice();
|
|
4340
4326
|
return n[1] = t[r], n;
|
|
4341
4327
|
}
|
|
4342
|
-
function
|
|
4328
|
+
function or(e, t, r) {
|
|
4343
4329
|
const n = e.slice();
|
|
4344
4330
|
return n[60] = t[r], n;
|
|
4345
4331
|
}
|
|
4346
|
-
function
|
|
4332
|
+
function Zo(e, t, r) {
|
|
4347
4333
|
const n = e.slice();
|
|
4348
4334
|
return n[66] = t[r], n;
|
|
4349
4335
|
}
|
|
4350
|
-
function
|
|
4336
|
+
function ar(e, t, r) {
|
|
4351
4337
|
const n = e.slice();
|
|
4352
4338
|
return n[63] = t[r], n;
|
|
4353
4339
|
}
|
|
4354
|
-
function
|
|
4355
|
-
let t, r, n, i, o, a, s,
|
|
4340
|
+
function sr(e) {
|
|
4341
|
+
let t, r, n, i, o, a, s, u, l, h, c, f, m, g, b, w, T, P, B, G, C, X, z;
|
|
4356
4342
|
function ie(x, R) {
|
|
4357
4343
|
return (
|
|
4358
4344
|
/*HamburgerMenuItems*/
|
|
4359
|
-
x[4].length > 0 ?
|
|
4345
|
+
x[4].length > 0 ? Yo : Qo
|
|
4360
4346
|
);
|
|
4361
4347
|
}
|
|
4362
4348
|
let J = ie(e), N = J(e), j = Y(
|
|
@@ -4364,17 +4350,17 @@ function ur(e) {
|
|
|
4364
4350
|
e[6]
|
|
4365
4351
|
), M = [];
|
|
4366
4352
|
for (let x = 0; x < j.length; x += 1)
|
|
4367
|
-
M[x] =
|
|
4353
|
+
M[x] = cr(or(e, j, x));
|
|
4368
4354
|
let L = (
|
|
4369
4355
|
/*languagesArray*/
|
|
4370
|
-
e[9].length > 1 &&
|
|
4356
|
+
e[9].length > 1 && fr(e)
|
|
4371
4357
|
);
|
|
4372
4358
|
return {
|
|
4373
4359
|
c() {
|
|
4374
|
-
t =
|
|
4360
|
+
t = v("div"), r = v("div"), n = v("ul"), N.c(), i = U(), o = v("div"), a = U(), s = v("ul");
|
|
4375
4361
|
for (let x = 0; x < M.length; x += 1)
|
|
4376
4362
|
M[x].c();
|
|
4377
|
-
|
|
4363
|
+
l = U(), L && L.c(), c = U(), f = v("span"), m = v("div"), g = v("span"), b = U(), w = v("span"), T = U(), P = v("span"), p(n, "class", "HamburgerPrimaryMenu"), p(o, "class", "Separator"), p(s, "class", u = "HamburgerSecondaryMenu " + /*isOptionsListVisible*/
|
|
4378
4364
|
(e[10] ? "Overlay" : "")), p(r, "class", h = "HamburgerModalContainer " + /*modalIsOpen*/
|
|
4379
4365
|
(e[7] ? "ActiveHamburgerMenu" : "") + " " + /*isClosing*/
|
|
4380
4366
|
(e[12] ? "Closing" : "")), p(m, "class", B = "NavIcon " + (/*navIconClosing*/
|
|
@@ -4383,10 +4369,10 @@ function ur(e) {
|
|
|
4383
4369
|
(e[12] ? " Closing" : ""));
|
|
4384
4370
|
},
|
|
4385
4371
|
m(x, R) {
|
|
4386
|
-
F(x, t, R),
|
|
4372
|
+
F(x, t, R), y(t, r), y(r, n), N.m(n, null), y(r, i), y(r, o), y(r, a), y(r, s);
|
|
4387
4373
|
for (let H = 0; H < M.length; H += 1)
|
|
4388
4374
|
M[H] && M[H].m(s, null);
|
|
4389
|
-
|
|
4375
|
+
y(r, l), L && L.m(r, null), y(t, c), y(t, f), y(f, m), y(m, g), y(m, b), y(m, w), y(m, T), y(m, P), e[40](t), X || (z = re(
|
|
4390
4376
|
f,
|
|
4391
4377
|
"click",
|
|
4392
4378
|
/*close*/
|
|
@@ -4402,17 +4388,17 @@ function ur(e) {
|
|
|
4402
4388
|
);
|
|
4403
4389
|
let H;
|
|
4404
4390
|
for (H = 0; H < j.length; H += 1) {
|
|
4405
|
-
const W =
|
|
4406
|
-
M[H] ? M[H].p(W, R) : (M[H] =
|
|
4391
|
+
const W = or(x, j, H);
|
|
4392
|
+
M[H] ? M[H].p(W, R) : (M[H] = cr(W), M[H].c(), M[H].m(s, null));
|
|
4407
4393
|
}
|
|
4408
4394
|
for (; H < M.length; H += 1)
|
|
4409
4395
|
M[H].d(1);
|
|
4410
4396
|
M.length = j.length;
|
|
4411
4397
|
}
|
|
4412
4398
|
R[0] & /*isOptionsListVisible*/
|
|
4413
|
-
1024 &&
|
|
4414
|
-
(x[10] ? "Overlay" : "")) && p(s, "class",
|
|
4415
|
-
x[9].length > 1 ? L ? L.p(x, R) : (L =
|
|
4399
|
+
1024 && u !== (u = "HamburgerSecondaryMenu " + /*isOptionsListVisible*/
|
|
4400
|
+
(x[10] ? "Overlay" : "")) && p(s, "class", u), /*languagesArray*/
|
|
4401
|
+
x[9].length > 1 ? L ? L.p(x, R) : (L = fr(x), L.c(), L.m(r, null)) : L && (L.d(1), L = null), R[0] & /*modalIsOpen, isClosing*/
|
|
4416
4402
|
4224 && h !== (h = "HamburgerModalContainer " + /*modalIsOpen*/
|
|
4417
4403
|
(x[7] ? "ActiveHamburgerMenu" : "") + " " + /*isClosing*/
|
|
4418
4404
|
(x[12] ? "Closing" : "")) && p(r, "class", h), R[0] & /*navIconClosing*/
|
|
@@ -4428,15 +4414,15 @@ function ur(e) {
|
|
|
4428
4414
|
}
|
|
4429
4415
|
};
|
|
4430
4416
|
}
|
|
4431
|
-
function
|
|
4417
|
+
function Qo(e) {
|
|
4432
4418
|
let t, r = Y(new Array(5)), n = [];
|
|
4433
4419
|
for (let i = 0; i < r.length; i += 1)
|
|
4434
|
-
n[i] =
|
|
4420
|
+
n[i] = qo(Zo(e, r, i));
|
|
4435
4421
|
return {
|
|
4436
4422
|
c() {
|
|
4437
4423
|
for (let i = 0; i < n.length; i += 1)
|
|
4438
4424
|
n[i].c();
|
|
4439
|
-
t =
|
|
4425
|
+
t = vr();
|
|
4440
4426
|
},
|
|
4441
4427
|
m(i, o) {
|
|
4442
4428
|
for (let a = 0; a < n.length; a += 1)
|
|
@@ -4449,18 +4435,18 @@ function qo(e) {
|
|
|
4449
4435
|
}
|
|
4450
4436
|
};
|
|
4451
4437
|
}
|
|
4452
|
-
function
|
|
4438
|
+
function Yo(e) {
|
|
4453
4439
|
let t, r = Y(
|
|
4454
4440
|
/*HamburgerMenuItems*/
|
|
4455
4441
|
e[4]
|
|
4456
4442
|
), n = [];
|
|
4457
4443
|
for (let i = 0; i < r.length; i += 1)
|
|
4458
|
-
n[i] =
|
|
4444
|
+
n[i] = lr(ar(e, r, i));
|
|
4459
4445
|
return {
|
|
4460
4446
|
c() {
|
|
4461
4447
|
for (let i = 0; i < n.length; i += 1)
|
|
4462
4448
|
n[i].c();
|
|
4463
|
-
t =
|
|
4449
|
+
t = vr();
|
|
4464
4450
|
},
|
|
4465
4451
|
m(i, o) {
|
|
4466
4452
|
for (let a = 0; a < n.length; a += 1)
|
|
@@ -4476,8 +4462,8 @@ function Jo(e) {
|
|
|
4476
4462
|
);
|
|
4477
4463
|
let a;
|
|
4478
4464
|
for (a = 0; a < r.length; a += 1) {
|
|
4479
|
-
const s =
|
|
4480
|
-
n[a] ? n[a].p(s, o) : (n[a] =
|
|
4465
|
+
const s = ar(i, r, a);
|
|
4466
|
+
n[a] ? n[a].p(s, o) : (n[a] = lr(s), n[a].c(), n[a].m(t.parentNode, t));
|
|
4481
4467
|
}
|
|
4482
4468
|
for (; a < n.length; a += 1)
|
|
4483
4469
|
n[a].d(1);
|
|
@@ -4489,11 +4475,11 @@ function Jo(e) {
|
|
|
4489
4475
|
}
|
|
4490
4476
|
};
|
|
4491
4477
|
}
|
|
4492
|
-
function
|
|
4478
|
+
function qo(e) {
|
|
4493
4479
|
let t;
|
|
4494
4480
|
return {
|
|
4495
4481
|
c() {
|
|
4496
|
-
t =
|
|
4482
|
+
t = v("div"), t.innerHTML = "", p(t, "class", "Loading Skeleton");
|
|
4497
4483
|
},
|
|
4498
4484
|
m(r, n) {
|
|
4499
4485
|
F(r, t, n);
|
|
@@ -4504,11 +4490,11 @@ function Ko(e) {
|
|
|
4504
4490
|
}
|
|
4505
4491
|
};
|
|
4506
4492
|
}
|
|
4507
|
-
function
|
|
4493
|
+
function ur(e) {
|
|
4508
4494
|
let t, r;
|
|
4509
4495
|
return {
|
|
4510
4496
|
c() {
|
|
4511
|
-
t =
|
|
4497
|
+
t = v("img"), ee(t.src, r = /*mainItem*/
|
|
4512
4498
|
e[63].img) || p(t, "src", r), p(t, "alt", "menu icon");
|
|
4513
4499
|
},
|
|
4514
4500
|
m(n, i) {
|
|
@@ -4524,14 +4510,14 @@ function hr(e) {
|
|
|
4524
4510
|
}
|
|
4525
4511
|
};
|
|
4526
4512
|
}
|
|
4527
|
-
function
|
|
4513
|
+
function lr(e) {
|
|
4528
4514
|
var m;
|
|
4529
4515
|
let t, r, n, i, o = (
|
|
4530
4516
|
/*mainItem*/
|
|
4531
4517
|
e[63].label + ""
|
|
4532
|
-
), a, s,
|
|
4518
|
+
), a, s, u, l, h, c = (
|
|
4533
4519
|
/*mainItem*/
|
|
4534
|
-
((m = e[63]) == null ? void 0 : m.img) &&
|
|
4520
|
+
((m = e[63]) == null ? void 0 : m.img) && ur(e)
|
|
4535
4521
|
);
|
|
4536
4522
|
function f() {
|
|
4537
4523
|
return (
|
|
@@ -4544,33 +4530,33 @@ function cr(e) {
|
|
|
4544
4530
|
}
|
|
4545
4531
|
return {
|
|
4546
4532
|
c() {
|
|
4547
|
-
t =
|
|
4533
|
+
t = v("li"), r = v("div"), c && c.c(), n = U(), i = v("p"), a = te(o), s = U(), p(r, "class", "HamburgerItemContainer"), p(t, "class", u = /*activeMenuItemId*/
|
|
4548
4534
|
e[5] === /*mainItem*/
|
|
4549
4535
|
e[63].id ? "ActiveItem" : "");
|
|
4550
4536
|
},
|
|
4551
4537
|
m(g, b) {
|
|
4552
|
-
F(g, t, b),
|
|
4538
|
+
F(g, t, b), y(t, r), c && c.m(r, null), y(r, n), y(r, i), y(i, a), y(t, s), l || (h = re(t, "click", f), l = !0);
|
|
4553
4539
|
},
|
|
4554
4540
|
p(g, b) {
|
|
4555
4541
|
var w;
|
|
4556
4542
|
e = g, /*mainItem*/
|
|
4557
|
-
(w = e[63]) != null && w.img ? c ? c.p(e, b) : (c =
|
|
4543
|
+
(w = e[63]) != null && w.img ? c ? c.p(e, b) : (c = ur(e), c.c(), c.m(r, n)) : c && (c.d(1), c = null), b[0] & /*HamburgerMenuItems*/
|
|
4558
4544
|
16 && o !== (o = /*mainItem*/
|
|
4559
4545
|
e[63].label + "") && ge(a, o), b[0] & /*activeMenuItemId, HamburgerMenuItems*/
|
|
4560
|
-
48 &&
|
|
4546
|
+
48 && u !== (u = /*activeMenuItemId*/
|
|
4561
4547
|
e[5] === /*mainItem*/
|
|
4562
|
-
e[63].id ? "ActiveItem" : "") && p(t, "class",
|
|
4548
|
+
e[63].id ? "ActiveItem" : "") && p(t, "class", u);
|
|
4563
4549
|
},
|
|
4564
4550
|
d(g) {
|
|
4565
|
-
g && I(t), c && c.d(),
|
|
4551
|
+
g && I(t), c && c.d(), l = !1, h();
|
|
4566
4552
|
}
|
|
4567
4553
|
};
|
|
4568
4554
|
}
|
|
4569
|
-
function
|
|
4555
|
+
function hr(e) {
|
|
4570
4556
|
let t, r;
|
|
4571
4557
|
return {
|
|
4572
4558
|
c() {
|
|
4573
|
-
t =
|
|
4559
|
+
t = v("img"), ee(t.src, r = /*secondaryItem*/
|
|
4574
4560
|
e[60].img) || p(t, "src", r), p(t, "alt", "menu icon");
|
|
4575
4561
|
},
|
|
4576
4562
|
m(n, i) {
|
|
@@ -4586,14 +4572,14 @@ function fr(e) {
|
|
|
4586
4572
|
}
|
|
4587
4573
|
};
|
|
4588
4574
|
}
|
|
4589
|
-
function
|
|
4575
|
+
function cr(e) {
|
|
4590
4576
|
var c;
|
|
4591
4577
|
let t, r, n, i = (
|
|
4592
4578
|
/*secondaryItem*/
|
|
4593
4579
|
e[60].label + ""
|
|
4594
|
-
), o, a, s,
|
|
4580
|
+
), o, a, s, u, l = (
|
|
4595
4581
|
/*secondaryItem*/
|
|
4596
|
-
((c = e[60]) == null ? void 0 : c.img) &&
|
|
4582
|
+
((c = e[60]) == null ? void 0 : c.img) && hr(e)
|
|
4597
4583
|
);
|
|
4598
4584
|
function h(...f) {
|
|
4599
4585
|
return (
|
|
@@ -4607,42 +4593,42 @@ function dr(e) {
|
|
|
4607
4593
|
}
|
|
4608
4594
|
return {
|
|
4609
4595
|
c() {
|
|
4610
|
-
t =
|
|
4596
|
+
t = v("li"), l && l.c(), r = U(), n = v("p"), o = te(i), a = U();
|
|
4611
4597
|
},
|
|
4612
4598
|
m(f, m) {
|
|
4613
|
-
F(f, t, m),
|
|
4599
|
+
F(f, t, m), l && l.m(t, null), y(t, r), y(t, n), y(n, o), y(t, a), s || (u = re(t, "click", h), s = !0);
|
|
4614
4600
|
},
|
|
4615
4601
|
p(f, m) {
|
|
4616
4602
|
var g;
|
|
4617
4603
|
e = f, /*secondaryItem*/
|
|
4618
|
-
(g = e[60]) != null && g.img ?
|
|
4604
|
+
(g = e[60]) != null && g.img ? l ? l.p(e, m) : (l = hr(e), l.c(), l.m(t, r)) : l && (l.d(1), l = null), m[0] & /*activeMenuItemChildren*/
|
|
4619
4605
|
64 && i !== (i = /*secondaryItem*/
|
|
4620
4606
|
e[60].label + "") && ge(o, i);
|
|
4621
4607
|
},
|
|
4622
4608
|
d(f) {
|
|
4623
|
-
f && I(t),
|
|
4609
|
+
f && I(t), l && l.d(), s = !1, u();
|
|
4624
4610
|
}
|
|
4625
4611
|
};
|
|
4626
4612
|
}
|
|
4627
|
-
function
|
|
4613
|
+
function fr(e) {
|
|
4628
4614
|
let t, r, n = (
|
|
4629
4615
|
/*$_*/
|
|
4630
4616
|
e[15]("language") + ""
|
|
4631
|
-
), i, o, a, s,
|
|
4632
|
-
function
|
|
4617
|
+
), i, o, a, s, u;
|
|
4618
|
+
function l(f, m) {
|
|
4633
4619
|
return (
|
|
4634
4620
|
/*countryflaghamburger*/
|
|
4635
|
-
f[0] !== "true" ?
|
|
4621
|
+
f[0] !== "true" ? Ko : Jo
|
|
4636
4622
|
);
|
|
4637
4623
|
}
|
|
4638
|
-
let h =
|
|
4624
|
+
let h = l(e), c = h(e);
|
|
4639
4625
|
return {
|
|
4640
4626
|
c() {
|
|
4641
|
-
t =
|
|
4627
|
+
t = v("div"), r = v("span"), i = te(n), o = U(), c.c(), p(r, "class", "LanguageSelectorTitle"), p(t, "class", a = "LanguageSelector " + /*isOptionsListVisible*/
|
|
4642
4628
|
(e[10] ? "Open" : ""));
|
|
4643
4629
|
},
|
|
4644
4630
|
m(f, m) {
|
|
4645
|
-
F(f, t, m),
|
|
4631
|
+
F(f, t, m), y(t, r), y(r, i), y(t, o), c.m(t, null), s || (u = re(
|
|
4646
4632
|
t,
|
|
4647
4633
|
"click",
|
|
4648
4634
|
/*toggleLanguageDropdown*/
|
|
@@ -4652,26 +4638,26 @@ function mr(e) {
|
|
|
4652
4638
|
p(f, m) {
|
|
4653
4639
|
m[0] & /*$_*/
|
|
4654
4640
|
32768 && n !== (n = /*$_*/
|
|
4655
|
-
f[15]("language") + "") && ge(i, n), h === (h =
|
|
4641
|
+
f[15]("language") + "") && ge(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*/
|
|
4656
4642
|
1024 && a !== (a = "LanguageSelector " + /*isOptionsListVisible*/
|
|
4657
4643
|
(f[10] ? "Open" : "")) && p(t, "class", a);
|
|
4658
4644
|
},
|
|
4659
4645
|
d(f) {
|
|
4660
|
-
f && I(t), c.d(), s = !1,
|
|
4646
|
+
f && I(t), c.d(), s = !1, u();
|
|
4661
4647
|
}
|
|
4662
4648
|
};
|
|
4663
4649
|
}
|
|
4664
|
-
function
|
|
4665
|
-
let t, r, n, i, o, a, s,
|
|
4650
|
+
function Jo(e) {
|
|
4651
|
+
let t, r, n, i, o, a, s, u = (
|
|
4666
4652
|
/*selectedLanguage*/
|
|
4667
4653
|
e[14].slice(-2) + ""
|
|
4668
|
-
),
|
|
4654
|
+
), l, h, c, f, m, g, b, w = (
|
|
4669
4655
|
/*isOptionsListVisible*/
|
|
4670
|
-
e[10] &&
|
|
4656
|
+
e[10] && dr(e)
|
|
4671
4657
|
);
|
|
4672
4658
|
return {
|
|
4673
4659
|
c() {
|
|
4674
|
-
t =
|
|
4660
|
+
t = v("div"), r = v("div"), n = v("span"), i = v("img"), a = U(), s = v("span"), l = te(u), h = U(), c = v("span"), f = Lt("svg"), m = Lt("path"), b = U(), w && w.c(), ee(i.src, o = `http://purecatamphetamine.github.io/country-flag-icons/3x2/${/*determineFlag*/
|
|
4675
4661
|
e[22](
|
|
4676
4662
|
/*selectedLanguage*/
|
|
4677
4663
|
e[14]
|
|
@@ -4679,7 +4665,7 @@ function ea(e) {
|
|
|
4679
4665
|
(e[10] ? "TriangleActive" : "")), p(r, "class", "SelectedOption Item ItemLanguage"), p(t, "class", "LanguageDropdown");
|
|
4680
4666
|
},
|
|
4681
4667
|
m(T, P) {
|
|
4682
|
-
F(T, t, P),
|
|
4668
|
+
F(T, t, P), y(t, r), y(r, n), y(n, i), y(r, a), y(r, s), y(s, l), y(r, h), y(r, c), y(c, f), y(f, m), y(t, b), w && w.m(t, null);
|
|
4683
4669
|
},
|
|
4684
4670
|
p(T, P) {
|
|
4685
4671
|
P[0] & /*selectedLanguage, languagesArray*/
|
|
@@ -4688,27 +4674,27 @@ function ea(e) {
|
|
|
4688
4674
|
/*selectedLanguage*/
|
|
4689
4675
|
T[14]
|
|
4690
4676
|
)}.svg`) && p(i, "src", o), P[0] & /*selectedLanguage*/
|
|
4691
|
-
16384 &&
|
|
4692
|
-
T[14].slice(-2) + "") && ge(
|
|
4677
|
+
16384 && u !== (u = /*selectedLanguage*/
|
|
4678
|
+
T[14].slice(-2) + "") && ge(l, u), P[0] & /*isOptionsListVisible*/
|
|
4693
4679
|
1024 && g !== (g = "TriangleInactive " + /*isOptionsListVisible*/
|
|
4694
4680
|
(T[10] ? "TriangleActive" : "")) && p(c, "class", g), /*isOptionsListVisible*/
|
|
4695
|
-
T[10] ? w ? w.p(T, P) : (w =
|
|
4681
|
+
T[10] ? w ? w.p(T, P) : (w = dr(T), w.c(), w.m(t, null)) : w && (w.d(1), w = null);
|
|
4696
4682
|
},
|
|
4697
4683
|
d(T) {
|
|
4698
4684
|
T && I(t), w && w.d();
|
|
4699
4685
|
}
|
|
4700
4686
|
};
|
|
4701
4687
|
}
|
|
4702
|
-
function
|
|
4688
|
+
function Ko(e) {
|
|
4703
4689
|
let t, r, n, i = Y(
|
|
4704
4690
|
/*languagesArray*/
|
|
4705
4691
|
e[9]
|
|
4706
4692
|
), o = [];
|
|
4707
4693
|
for (let a = 0; a < i.length; a += 1)
|
|
4708
|
-
o[a] =
|
|
4694
|
+
o[a] = pr(ir(e, i, a));
|
|
4709
4695
|
return {
|
|
4710
4696
|
c() {
|
|
4711
|
-
t =
|
|
4697
|
+
t = v("select");
|
|
4712
4698
|
for (let a = 0; a < o.length; a += 1)
|
|
4713
4699
|
o[a].c();
|
|
4714
4700
|
p(t, "class", "Item ItemLanguage NoFlag"), /*selectedLanguage*/
|
|
@@ -4719,9 +4705,9 @@ function ta(e) {
|
|
|
4719
4705
|
},
|
|
4720
4706
|
m(a, s) {
|
|
4721
4707
|
F(a, t, s);
|
|
4722
|
-
for (let
|
|
4723
|
-
o[
|
|
4724
|
-
|
|
4708
|
+
for (let u = 0; u < o.length; u += 1)
|
|
4709
|
+
o[u] && o[u].m(t, null);
|
|
4710
|
+
It(
|
|
4725
4711
|
t,
|
|
4726
4712
|
/*selectedLanguage*/
|
|
4727
4713
|
e[14],
|
|
@@ -4748,17 +4734,17 @@ function ta(e) {
|
|
|
4748
4734
|
/*languagesArray*/
|
|
4749
4735
|
a[9]
|
|
4750
4736
|
);
|
|
4751
|
-
let
|
|
4752
|
-
for (
|
|
4753
|
-
const
|
|
4754
|
-
o[
|
|
4737
|
+
let u;
|
|
4738
|
+
for (u = 0; u < i.length; u += 1) {
|
|
4739
|
+
const l = ir(a, i, u);
|
|
4740
|
+
o[u] ? o[u].p(l, s) : (o[u] = pr(l), o[u].c(), o[u].m(t, null));
|
|
4755
4741
|
}
|
|
4756
|
-
for (;
|
|
4757
|
-
o[
|
|
4742
|
+
for (; u < o.length; u += 1)
|
|
4743
|
+
o[u].d(1);
|
|
4758
4744
|
o.length = i.length;
|
|
4759
4745
|
}
|
|
4760
4746
|
s[0] & /*selectedLanguage, languagesArray*/
|
|
4761
|
-
16896 &&
|
|
4747
|
+
16896 && It(
|
|
4762
4748
|
t,
|
|
4763
4749
|
/*selectedLanguage*/
|
|
4764
4750
|
a[14]
|
|
@@ -4769,16 +4755,16 @@ function ta(e) {
|
|
|
4769
4755
|
}
|
|
4770
4756
|
};
|
|
4771
4757
|
}
|
|
4772
|
-
function
|
|
4758
|
+
function dr(e) {
|
|
4773
4759
|
let t, r, n = Y(
|
|
4774
4760
|
/*languagesArray*/
|
|
4775
4761
|
e[9]
|
|
4776
4762
|
), i = [];
|
|
4777
4763
|
for (let o = 0; o < n.length; o += 1)
|
|
4778
|
-
i[o] =
|
|
4764
|
+
i[o] = mr(nr(e, n, o));
|
|
4779
4765
|
return {
|
|
4780
4766
|
c() {
|
|
4781
|
-
t =
|
|
4767
|
+
t = v("div");
|
|
4782
4768
|
for (let o = 0; o < i.length; o += 1)
|
|
4783
4769
|
i[o].c();
|
|
4784
4770
|
p(t, "class", r = "OptionList " + /*languageListOpen*/
|
|
@@ -4798,8 +4784,8 @@ function pr(e) {
|
|
|
4798
4784
|
);
|
|
4799
4785
|
let s;
|
|
4800
4786
|
for (s = 0; s < n.length; s += 1) {
|
|
4801
|
-
const
|
|
4802
|
-
i[s] ? i[s].p(
|
|
4787
|
+
const u = nr(o, n, s);
|
|
4788
|
+
i[s] ? i[s].p(u, a) : (i[s] = mr(u), i[s].c(), i[s].m(t, null));
|
|
4803
4789
|
}
|
|
4804
4790
|
for (; s < i.length; s += 1)
|
|
4805
4791
|
i[s].d(1);
|
|
@@ -4814,11 +4800,11 @@ function pr(e) {
|
|
|
4814
4800
|
}
|
|
4815
4801
|
};
|
|
4816
4802
|
}
|
|
4817
|
-
function
|
|
4803
|
+
function mr(e) {
|
|
4818
4804
|
let t, r, n, i, o, a, s = (
|
|
4819
4805
|
/*operatorLanguage*/
|
|
4820
4806
|
e[57] + ""
|
|
4821
|
-
),
|
|
4807
|
+
), u, l, h, c, f;
|
|
4822
4808
|
function m() {
|
|
4823
4809
|
return (
|
|
4824
4810
|
/*click_handler_2*/
|
|
@@ -4830,7 +4816,7 @@ function gr(e) {
|
|
|
4830
4816
|
}
|
|
4831
4817
|
return {
|
|
4832
4818
|
c() {
|
|
4833
|
-
t =
|
|
4819
|
+
t = v("div"), r = v("span"), n = v("img"), o = U(), a = v("span"), u = te(s), l = U(), ee(n.src, i = `http://purecatamphetamine.github.io/country-flag-icons/3x2/${/*determineFlag*/
|
|
4834
4820
|
e[22](
|
|
4835
4821
|
/*operatorLanguage*/
|
|
4836
4822
|
e[57]
|
|
@@ -4838,7 +4824,7 @@ function gr(e) {
|
|
|
4838
4824
|
(e[11] ? "Open" : ""));
|
|
4839
4825
|
},
|
|
4840
4826
|
m(g, b) {
|
|
4841
|
-
F(g, t, b),
|
|
4827
|
+
F(g, t, b), y(t, r), y(r, n), y(t, o), y(t, a), y(a, u), y(t, l), c || (f = re(t, "click", m), c = !0);
|
|
4842
4828
|
},
|
|
4843
4829
|
p(g, b) {
|
|
4844
4830
|
e = g, b[0] & /*languagesArray*/
|
|
@@ -4848,7 +4834,7 @@ function gr(e) {
|
|
|
4848
4834
|
e[57]
|
|
4849
4835
|
)}.svg`) && p(n, "src", i), b[0] & /*languagesArray*/
|
|
4850
4836
|
512 && s !== (s = /*operatorLanguage*/
|
|
4851
|
-
e[57] + "") && ge(
|
|
4837
|
+
e[57] + "") && ge(u, s), b[0] & /*languageListOpen*/
|
|
4852
4838
|
2048 && h !== (h = "LanguageOption " + /*languageListOpen*/
|
|
4853
4839
|
(e[11] ? "Open" : "")) && p(t, "class", h);
|
|
4854
4840
|
},
|
|
@@ -4857,46 +4843,46 @@ function gr(e) {
|
|
|
4857
4843
|
}
|
|
4858
4844
|
};
|
|
4859
4845
|
}
|
|
4860
|
-
function
|
|
4846
|
+
function pr(e) {
|
|
4861
4847
|
let t, r = (
|
|
4862
4848
|
/*lang*/
|
|
4863
4849
|
e[1].slice(-2) + ""
|
|
4864
4850
|
), n, i;
|
|
4865
4851
|
return {
|
|
4866
4852
|
c() {
|
|
4867
|
-
t =
|
|
4868
|
-
e[1],
|
|
4853
|
+
t = v("option"), n = te(r), t.__value = i = /*lang*/
|
|
4854
|
+
e[1], Pt(t, t.__value), t.selected = !0;
|
|
4869
4855
|
},
|
|
4870
4856
|
m(o, a) {
|
|
4871
|
-
F(o, t, a),
|
|
4857
|
+
F(o, t, a), y(t, n);
|
|
4872
4858
|
},
|
|
4873
4859
|
p(o, a) {
|
|
4874
4860
|
a[0] & /*languagesArray*/
|
|
4875
4861
|
512 && r !== (r = /*lang*/
|
|
4876
4862
|
o[1].slice(-2) + "") && ge(n, r), a[0] & /*languagesArray*/
|
|
4877
4863
|
512 && i !== (i = /*lang*/
|
|
4878
|
-
o[1]) && (t.__value = i,
|
|
4864
|
+
o[1]) && (t.__value = i, Pt(t, t.__value));
|
|
4879
4865
|
},
|
|
4880
4866
|
d(o) {
|
|
4881
4867
|
o && I(t);
|
|
4882
4868
|
}
|
|
4883
4869
|
};
|
|
4884
4870
|
}
|
|
4885
|
-
function
|
|
4871
|
+
function ea(e) {
|
|
4886
4872
|
let t, r = (
|
|
4887
4873
|
/*show*/
|
|
4888
|
-
e[8] === !0 &&
|
|
4874
|
+
e[8] === !0 && sr(e)
|
|
4889
4875
|
);
|
|
4890
4876
|
return {
|
|
4891
4877
|
c() {
|
|
4892
|
-
t =
|
|
4878
|
+
t = v("div"), r && r.c();
|
|
4893
4879
|
},
|
|
4894
4880
|
m(n, i) {
|
|
4895
4881
|
F(n, t, i), r && r.m(t, null), e[41](t);
|
|
4896
4882
|
},
|
|
4897
4883
|
p(n, i) {
|
|
4898
4884
|
/*show*/
|
|
4899
|
-
n[8] === !0 ? r ? r.p(n, i) : (r =
|
|
4885
|
+
n[8] === !0 ? r ? r.p(n, i) : (r = sr(n), r.c(), r.m(t, null)) : r && (r.d(1), r = null);
|
|
4900
4886
|
},
|
|
4901
4887
|
i: $,
|
|
4902
4888
|
o: $,
|
|
@@ -4905,27 +4891,27 @@ function ra(e) {
|
|
|
4905
4891
|
}
|
|
4906
4892
|
};
|
|
4907
4893
|
}
|
|
4908
|
-
function
|
|
4894
|
+
function ta(e, t, r) {
|
|
4909
4895
|
let n;
|
|
4910
|
-
|
|
4911
|
-
let { menuitemsurl: i = "" } = t, { cmsendpoint: o } = t, { cmsenv: a = "stage" } = t, { userroles: s } = t, { lang:
|
|
4912
|
-
const
|
|
4896
|
+
gn(e, ko, (d) => r(15, n = d));
|
|
4897
|
+
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: b = "" } = t, { countryflaghamburger: w = "" } = t, T, P = window.navigator.userAgent, B = [], G, C = "", X = [], z = !1, ie = !1, J = !0, N = [], j = !1, M = !1, L = !1, x = !1, R = !0, H, W = "", Z;
|
|
4898
|
+
const qr = () => {
|
|
4913
4899
|
fetch(c).then((d) => d.json()).then((d) => {
|
|
4914
4900
|
Object.keys(d).forEach((A) => {
|
|
4915
|
-
|
|
4901
|
+
tr(A, d[A]);
|
|
4916
4902
|
});
|
|
4917
4903
|
}).catch((d) => {
|
|
4918
4904
|
console.log(d);
|
|
4919
4905
|
});
|
|
4920
4906
|
};
|
|
4921
|
-
Object.keys(
|
|
4922
|
-
|
|
4907
|
+
Object.keys(rr).forEach((d) => {
|
|
4908
|
+
tr(d, rr[d]);
|
|
4923
4909
|
});
|
|
4924
4910
|
const We = () => {
|
|
4925
4911
|
H = new URL(`${o}/${W.toLowerCase()}/hamburger-menu`);
|
|
4926
|
-
let d =
|
|
4912
|
+
let d = $o(P);
|
|
4927
4913
|
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);
|
|
4928
|
-
},
|
|
4914
|
+
}, yt = () => {
|
|
4929
4915
|
r(12, x = !0), r(13, R = !0), r(10, M = !1), r(11, L = !1), setTimeout(
|
|
4930
4916
|
() => {
|
|
4931
4917
|
r(8, ie = !1), r(7, z = !1);
|
|
@@ -4938,40 +4924,40 @@ function na(e, t, r) {
|
|
|
4938
4924
|
},
|
|
4939
4925
|
window.location.href
|
|
4940
4926
|
);
|
|
4941
|
-
},
|
|
4927
|
+
}, vt = (d) => {
|
|
4942
4928
|
d.data.type === "OpenHamburgerMenuModal" && (window.postMessage({ type: "DisableScroll" }, window.location.href), r(12, x = !1), setTimeout(
|
|
4943
4929
|
() => {
|
|
4944
4930
|
r(13, R = !1);
|
|
4945
4931
|
},
|
|
4946
4932
|
125
|
|
4947
|
-
), r(8, ie = !0), r(7, z = !0), We(),
|
|
4933
|
+
), r(8, ie = !0), r(7, z = !0), We(), xt(H)), d.data.type === "LanguageChanged" && (j = !0, We(), xt(H));
|
|
4948
4934
|
}, Oe = (d, A) => {
|
|
4949
4935
|
r(5, C = d), r(6, X = A || []), typeof gtag == "function" && gtag("event", "ChangeMenu", {
|
|
4950
4936
|
context: "HamburgerMenu",
|
|
4951
4937
|
menuItem: `${C}`
|
|
4952
4938
|
});
|
|
4953
|
-
},
|
|
4939
|
+
}, _t = () => {
|
|
4954
4940
|
let d = B.filter((A) => {
|
|
4955
|
-
var
|
|
4941
|
+
var Ht;
|
|
4956
4942
|
let oe = !1;
|
|
4957
|
-
return (
|
|
4958
|
-
|
|
4943
|
+
return (Ht = A.children) == null || Ht.forEach((ln) => {
|
|
4944
|
+
ln.path.includes(l) && (oe = !0);
|
|
4959
4945
|
}), oe;
|
|
4960
4946
|
});
|
|
4961
4947
|
d.length > 0 ? Oe(d[0].id, d[0].children) : Oe(B[0].id, B[0].children);
|
|
4962
|
-
},
|
|
4963
|
-
G && !j ||
|
|
4964
|
-
},
|
|
4948
|
+
}, xt = (d) => {
|
|
4949
|
+
G && !j || Et(d);
|
|
4950
|
+
}, Et = (d) => {
|
|
4965
4951
|
fetch(d).then((A) => A.json()).then(
|
|
4966
4952
|
(A) => {
|
|
4967
|
-
r(4, B = A.filter((oe) => (oe == null ? void 0 : oe.type) !== "banner")),
|
|
4953
|
+
r(4, B = A.filter((oe) => (oe == null ? void 0 : oe.type) !== "banner")), _t(), r(34, J = !1), G = A, j = !1;
|
|
4968
4954
|
},
|
|
4969
4955
|
(A) => {
|
|
4970
4956
|
console.error(A);
|
|
4971
4957
|
}
|
|
4972
4958
|
);
|
|
4973
4959
|
};
|
|
4974
|
-
let
|
|
4960
|
+
let wt = (d) => {
|
|
4975
4961
|
window.postMessage(
|
|
4976
4962
|
{
|
|
4977
4963
|
type: "NavigateTo",
|
|
@@ -4980,7 +4966,7 @@ function na(e, t, r) {
|
|
|
4980
4966
|
target: d.attrs.target || null
|
|
4981
4967
|
},
|
|
4982
4968
|
window.location.href
|
|
4983
|
-
),
|
|
4969
|
+
), yt();
|
|
4984
4970
|
};
|
|
4985
4971
|
const Ve = () => {
|
|
4986
4972
|
j = !0, window.postMessage(
|
|
@@ -4990,9 +4976,9 @@ function na(e, t, r) {
|
|
|
4990
4976
|
},
|
|
4991
4977
|
window.location.href
|
|
4992
4978
|
);
|
|
4993
|
-
},
|
|
4994
|
-
|
|
4995
|
-
},
|
|
4979
|
+
}, Jr = () => {
|
|
4980
|
+
Xo(u), We(), j && Et(H), r(9, N = h.replace(/ /g, "").split(",")), r(9, N = N.map((d) => d.toUpperCase())), r(14, W = u.toUpperCase());
|
|
4981
|
+
}, St = (d) => {
|
|
4996
4982
|
r(14, W = d), setTimeout(
|
|
4997
4983
|
() => {
|
|
4998
4984
|
r(11, L = !1);
|
|
@@ -5004,7 +4990,7 @@ function na(e, t, r) {
|
|
|
5004
4990
|
},
|
|
5005
4991
|
500
|
|
5006
4992
|
), Ve();
|
|
5007
|
-
},
|
|
4993
|
+
}, Kr = () => {
|
|
5008
4994
|
M ? (setTimeout(
|
|
5009
4995
|
() => {
|
|
5010
4996
|
r(10, M = !1);
|
|
@@ -5016,46 +5002,46 @@ function na(e, t, r) {
|
|
|
5016
5002
|
},
|
|
5017
5003
|
300
|
|
5018
5004
|
));
|
|
5019
|
-
},
|
|
5005
|
+
}, en = (d) => {
|
|
5020
5006
|
let A = d ? d.slice(-2) : W.slice(-2);
|
|
5021
5007
|
return b && (A = b.includes(A.toLowerCase()) ? b.slice(-2) : A), A == "EN" ? "GB" : A.toUpperCase();
|
|
5022
5008
|
};
|
|
5023
|
-
|
|
5024
|
-
window.removeEventListener("message",
|
|
5009
|
+
Sn(() => (window.addEventListener("message", vt, !1), Go(P), () => {
|
|
5010
|
+
window.removeEventListener("message", vt);
|
|
5025
5011
|
}));
|
|
5026
|
-
const
|
|
5027
|
-
|
|
5012
|
+
const tn = (d) => Oe(d.id, d.children), rn = (d, A) => {
|
|
5013
|
+
wt(d), A.preventDefault();
|
|
5028
5014
|
};
|
|
5029
|
-
function
|
|
5030
|
-
W =
|
|
5015
|
+
function nn() {
|
|
5016
|
+
W = xn(this), r(14, W), r(9, N);
|
|
5031
5017
|
}
|
|
5032
|
-
const
|
|
5033
|
-
function
|
|
5018
|
+
const on = () => Ve(), an = (d) => St(d);
|
|
5019
|
+
function sn(d) {
|
|
5034
5020
|
Ne[d ? "unshift" : "push"](() => {
|
|
5035
5021
|
T = d, r(3, T);
|
|
5036
5022
|
});
|
|
5037
5023
|
}
|
|
5038
|
-
function
|
|
5024
|
+
function un(d) {
|
|
5039
5025
|
Ne[d ? "unshift" : "push"](() => {
|
|
5040
5026
|
Z = d, r(2, Z);
|
|
5041
5027
|
});
|
|
5042
5028
|
}
|
|
5043
5029
|
return e.$$set = (d) => {
|
|
5044
|
-
"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,
|
|
5030
|
+
"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, b = d.customlocaleidentifier), "countryflaghamburger" in d && r(0, w = d.countryflaghamburger);
|
|
5045
5031
|
}, e.$$.update = () => {
|
|
5046
5032
|
e.$$.dirty[0] & /*cmsendpoint, cmsenv, lang, languageslist*/
|
|
5047
|
-
318767106 && o && a &&
|
|
5033
|
+
318767106 && o && a && u && h && Jr(), e.$$.dirty[0] & /*activecategory*/
|
|
5048
5034
|
134217728 | e.$$.dirty[1] & /*isLoading*/
|
|
5049
|
-
8 &&
|
|
5050
|
-
536870912 && c &&
|
|
5035
|
+
8 && l && !J && _t(), e.$$.dirty[0] & /*translationurl*/
|
|
5036
|
+
536870912 && c && qr(), e.$$.dirty[0] & /*customStylingContainer*/
|
|
5051
5037
|
4 | e.$$.dirty[1] & /*clientstyling*/
|
|
5052
|
-
1 && m && Z &&
|
|
5038
|
+
1 && m && Z && jo(Z, m), e.$$.dirty[0] & /*customStylingContainer*/
|
|
5053
5039
|
4 | e.$$.dirty[1] & /*clientstylingurl*/
|
|
5054
|
-
2 && g && Z &&
|
|
5055
|
-
1073741828 && f && Z &&
|
|
5040
|
+
2 && g && Z && Wo(Z, g), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5041
|
+
1073741828 && f && Z && Vo(Z, `${f}.Style`);
|
|
5056
5042
|
}, [
|
|
5057
5043
|
w,
|
|
5058
|
-
|
|
5044
|
+
u,
|
|
5059
5045
|
Z,
|
|
5060
5046
|
T,
|
|
5061
5047
|
B,
|
|
@@ -5070,18 +5056,18 @@ function na(e, t, r) {
|
|
|
5070
5056
|
R,
|
|
5071
5057
|
W,
|
|
5072
5058
|
n,
|
|
5073
|
-
|
|
5059
|
+
yt,
|
|
5074
5060
|
Oe,
|
|
5075
|
-
|
|
5061
|
+
wt,
|
|
5076
5062
|
Ve,
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
|
|
5063
|
+
St,
|
|
5064
|
+
Kr,
|
|
5065
|
+
en,
|
|
5080
5066
|
i,
|
|
5081
5067
|
o,
|
|
5082
5068
|
a,
|
|
5083
5069
|
s,
|
|
5084
|
-
|
|
5070
|
+
l,
|
|
5085
5071
|
h,
|
|
5086
5072
|
c,
|
|
5087
5073
|
f,
|
|
@@ -5089,23 +5075,23 @@ function na(e, t, r) {
|
|
|
5089
5075
|
g,
|
|
5090
5076
|
b,
|
|
5091
5077
|
J,
|
|
5078
|
+
tn,
|
|
5079
|
+
rn,
|
|
5080
|
+
nn,
|
|
5092
5081
|
on,
|
|
5093
5082
|
an,
|
|
5094
5083
|
sn,
|
|
5095
|
-
|
|
5096
|
-
un,
|
|
5097
|
-
hn,
|
|
5098
|
-
cn
|
|
5084
|
+
un
|
|
5099
5085
|
];
|
|
5100
5086
|
}
|
|
5101
|
-
class
|
|
5087
|
+
class ra extends Rn {
|
|
5102
5088
|
constructor(t) {
|
|
5103
|
-
super(),
|
|
5089
|
+
super(), Cn(
|
|
5104
5090
|
this,
|
|
5105
5091
|
t,
|
|
5106
|
-
|
|
5107
|
-
|
|
5108
|
-
|
|
5092
|
+
ta,
|
|
5093
|
+
ea,
|
|
5094
|
+
br,
|
|
5109
5095
|
{
|
|
5110
5096
|
menuitemsurl: 23,
|
|
5111
5097
|
cmsendpoint: 24,
|
|
@@ -5121,7 +5107,7 @@ class ia extends Dn {
|
|
|
5121
5107
|
customlocaleidentifier: 33,
|
|
5122
5108
|
countryflaghamburger: 0
|
|
5123
5109
|
},
|
|
5124
|
-
|
|
5110
|
+
zo,
|
|
5125
5111
|
[-1, -1, -1]
|
|
5126
5112
|
);
|
|
5127
5113
|
}
|
|
@@ -5204,7 +5190,7 @@ class ia extends Dn {
|
|
|
5204
5190
|
this.$$set({ countryflaghamburger: t }), D();
|
|
5205
5191
|
}
|
|
5206
5192
|
}
|
|
5207
|
-
|
|
5193
|
+
Nn(ra, { menuitemsurl: {}, cmsendpoint: {}, cmsenv: {}, userroles: {}, lang: {}, activecategory: {}, languageslist: {}, translationurl: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, customlocaleidentifier: {}, countryflaghamburger: {} }, [], [], !0);
|
|
5208
5194
|
export {
|
|
5209
|
-
|
|
5195
|
+
ra as default
|
|
5210
5196
|
};
|