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