@everymatrix/general-navigation-bar 1.67.3 → 1.68.0
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/GeneralNavigationBar-B3GjtQJe.cjs +18 -0
- package/components/{GeneralNavigationBar-Du2Le-zL.js → GeneralNavigationBar-C0unCc3F.js} +929 -894
- package/components/{GeneralNavigationBar-BFeb58TJ.js → GeneralNavigationBar-CRfb0acM.js} +876 -841
- package/es2015/general-navigation-bar.cjs +1 -1
- package/es2015/general-navigation-bar.js +1 -1
- package/esnext/general-navigation-bar.js +1 -1
- package/package.json +1 -1
- package/components/GeneralNavigationBar-MYTvabiA.cjs +0 -18
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var on = Object.defineProperty, an = Object.defineProperties;
|
|
2
|
+
var sn = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var It = Object.getOwnPropertySymbols;
|
|
4
|
+
var ln = Object.prototype.hasOwnProperty, un = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var We = (e, t, r) => t in e ? on(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Bt = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
ln.call(t, r) && We(e, r, t[r]);
|
|
8
|
+
if (It)
|
|
9
|
+
for (var r of It(t))
|
|
10
|
+
un.call(t, r) && We(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var U = (e, t, r) => (
|
|
14
|
-
var
|
|
12
|
+
}, At = (e, t) => an(e, sn(t));
|
|
13
|
+
var U = (e, t, r) => (We(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var Tt = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (l) => {
|
|
16
16
|
try {
|
|
17
17
|
s(r.next(l));
|
|
@@ -29,7 +29,7 @@ var St = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function D() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function hn(e, t) {
|
|
33
33
|
for (const r in t)
|
|
34
34
|
e[r] = t[r];
|
|
35
35
|
return (
|
|
@@ -37,29 +37,29 @@ function an(e, t) {
|
|
|
37
37
|
e
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function cr(e) {
|
|
41
41
|
return e();
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function Pt() {
|
|
44
44
|
return /* @__PURE__ */ Object.create(null);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
e.forEach(
|
|
46
|
+
function ae(e) {
|
|
47
|
+
e.forEach(cr);
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function vt(e) {
|
|
50
50
|
return typeof e == "function";
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function fr(e, t) {
|
|
53
53
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
54
54
|
}
|
|
55
55
|
let xe;
|
|
56
|
-
function
|
|
56
|
+
function te(e, t) {
|
|
57
57
|
return e === t ? !0 : (xe || (xe = document.createElement("a")), xe.href = t, e === xe.href);
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function cn(e) {
|
|
60
60
|
return Object.keys(e).length === 0;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function dr(e, ...t) {
|
|
63
63
|
if (e == null) {
|
|
64
64
|
for (const n of t)
|
|
65
65
|
n(void 0);
|
|
@@ -68,19 +68,19 @@ function ur(e, ...t) {
|
|
|
68
68
|
const r = e.subscribe(...t);
|
|
69
69
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
e.$$.on_destroy.push(
|
|
71
|
+
function fn(e, t, r) {
|
|
72
|
+
e.$$.on_destroy.push(dr(t, r));
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function dn(e, t, r, n) {
|
|
75
75
|
if (e) {
|
|
76
|
-
const i =
|
|
76
|
+
const i = pr(e, t, r, n);
|
|
77
77
|
return e[0](i);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
return e[1] && n ?
|
|
80
|
+
function pr(e, t, r, n) {
|
|
81
|
+
return e[1] && n ? hn(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function pn(e, t, r, n) {
|
|
84
84
|
if (e[2] && n) {
|
|
85
85
|
const i = e[2](n(r));
|
|
86
86
|
if (t.dirty === void 0)
|
|
@@ -95,13 +95,13 @@ function hn(e, t, r, n) {
|
|
|
95
95
|
}
|
|
96
96
|
return t.dirty;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function mn(e, t, r, n, i, o) {
|
|
99
99
|
if (i) {
|
|
100
|
-
const a =
|
|
100
|
+
const a = pr(t, r, n, o);
|
|
101
101
|
e.p(a, i);
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function gn(e) {
|
|
105
105
|
if (e.ctx.length > 32) {
|
|
106
106
|
const t = [], r = e.ctx.length / 32;
|
|
107
107
|
for (let n = 0; n < r; n++)
|
|
@@ -113,14 +113,14 @@ function fn(e) {
|
|
|
113
113
|
function y(e, t) {
|
|
114
114
|
e.appendChild(t);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
117
|
-
const n =
|
|
116
|
+
function vn(e, t, r) {
|
|
117
|
+
const n = bn(e);
|
|
118
118
|
if (!n.getElementById(t)) {
|
|
119
|
-
const i =
|
|
120
|
-
i.id = t, i.textContent = r,
|
|
119
|
+
const i = I("style");
|
|
120
|
+
i.id = t, i.textContent = r, yn(n, i);
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function bn(e) {
|
|
124
124
|
if (!e)
|
|
125
125
|
return document;
|
|
126
126
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -130,7 +130,7 @@ function mn(e) {
|
|
|
130
130
|
t
|
|
131
131
|
) : e.ownerDocument;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function yn(e, t) {
|
|
134
134
|
return y(
|
|
135
135
|
/** @type {Document} */
|
|
136
136
|
e.head || e,
|
|
@@ -143,11 +143,11 @@ function C(e, t, r) {
|
|
|
143
143
|
function L(e) {
|
|
144
144
|
e.parentNode && e.parentNode.removeChild(e);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function mr(e, t) {
|
|
147
147
|
for (let r = 0; r < e.length; r += 1)
|
|
148
148
|
e[r] && e[r].d(t);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function I(e) {
|
|
151
151
|
return document.createElement(e);
|
|
152
152
|
}
|
|
153
153
|
function M(e) {
|
|
@@ -156,26 +156,26 @@ function M(e) {
|
|
|
156
156
|
function ve(e) {
|
|
157
157
|
return document.createTextNode(e);
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function j() {
|
|
160
160
|
return ve(" ");
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function _n() {
|
|
163
163
|
return ve("");
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function Oe(e, t, r, n) {
|
|
166
166
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
167
167
|
}
|
|
168
168
|
function c(e, t, r) {
|
|
169
169
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function xn(e) {
|
|
172
172
|
return Array.from(e.childNodes);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function bt(e, t) {
|
|
175
175
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
176
176
|
t);
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function wn(e) {
|
|
179
179
|
const t = {};
|
|
180
180
|
return e.childNodes.forEach(
|
|
181
181
|
/** @param {Element} node */
|
|
@@ -184,69 +184,69 @@ function vn(e) {
|
|
|
184
184
|
}
|
|
185
185
|
), t;
|
|
186
186
|
}
|
|
187
|
-
let
|
|
188
|
-
function
|
|
189
|
-
|
|
187
|
+
let de;
|
|
188
|
+
function fe(e) {
|
|
189
|
+
de = e;
|
|
190
190
|
}
|
|
191
|
-
function
|
|
192
|
-
if (!
|
|
191
|
+
function En() {
|
|
192
|
+
if (!de)
|
|
193
193
|
throw new Error("Function called outside component initialization");
|
|
194
|
-
return
|
|
194
|
+
return de;
|
|
195
195
|
}
|
|
196
|
-
function
|
|
197
|
-
|
|
196
|
+
function Nn(e) {
|
|
197
|
+
En().$$.on_mount.push(e);
|
|
198
198
|
}
|
|
199
|
-
const K = [],
|
|
199
|
+
const K = [], Ke = [];
|
|
200
200
|
let ee = [];
|
|
201
|
-
const
|
|
202
|
-
let
|
|
203
|
-
function
|
|
204
|
-
|
|
201
|
+
const Ht = [], Sn = /* @__PURE__ */ Promise.resolve();
|
|
202
|
+
let et = !1;
|
|
203
|
+
function In() {
|
|
204
|
+
et || (et = !0, Sn.then(F));
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function tt(e) {
|
|
207
207
|
ee.push(e);
|
|
208
208
|
}
|
|
209
|
-
const
|
|
209
|
+
const Ve = /* @__PURE__ */ new Set();
|
|
210
210
|
let J = 0;
|
|
211
211
|
function F() {
|
|
212
212
|
if (J !== 0)
|
|
213
213
|
return;
|
|
214
|
-
const e =
|
|
214
|
+
const e = de;
|
|
215
215
|
do {
|
|
216
216
|
try {
|
|
217
217
|
for (; J < K.length; ) {
|
|
218
218
|
const t = K[J];
|
|
219
|
-
J++,
|
|
219
|
+
J++, fe(t), Bn(t.$$);
|
|
220
220
|
}
|
|
221
221
|
} catch (t) {
|
|
222
222
|
throw K.length = 0, J = 0, t;
|
|
223
223
|
}
|
|
224
|
-
for (
|
|
225
|
-
|
|
224
|
+
for (fe(null), K.length = 0, J = 0; Ke.length; )
|
|
225
|
+
Ke.pop()();
|
|
226
226
|
for (let t = 0; t < ee.length; t += 1) {
|
|
227
227
|
const r = ee[t];
|
|
228
|
-
|
|
228
|
+
Ve.has(r) || (Ve.add(r), r());
|
|
229
229
|
}
|
|
230
230
|
ee.length = 0;
|
|
231
231
|
} while (K.length);
|
|
232
|
-
for (;
|
|
233
|
-
|
|
234
|
-
|
|
232
|
+
for (; Ht.length; )
|
|
233
|
+
Ht.pop()();
|
|
234
|
+
et = !1, Ve.clear(), fe(e);
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function Bn(e) {
|
|
237
237
|
if (e.fragment !== null) {
|
|
238
|
-
e.update(),
|
|
238
|
+
e.update(), ae(e.before_update);
|
|
239
239
|
const t = e.dirty;
|
|
240
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
240
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(tt);
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function An(e) {
|
|
244
244
|
const t = [], r = [];
|
|
245
245
|
ee.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ee = t;
|
|
246
246
|
}
|
|
247
247
|
const Ne = /* @__PURE__ */ new Set();
|
|
248
248
|
let Z;
|
|
249
|
-
function
|
|
249
|
+
function gr() {
|
|
250
250
|
Z = {
|
|
251
251
|
r: 0,
|
|
252
252
|
c: [],
|
|
@@ -254,8 +254,8 @@ function fr() {
|
|
|
254
254
|
// parent group
|
|
255
255
|
};
|
|
256
256
|
}
|
|
257
|
-
function
|
|
258
|
-
Z.r ||
|
|
257
|
+
function vr() {
|
|
258
|
+
Z.r || ae(Z.c), Z = Z.p;
|
|
259
259
|
}
|
|
260
260
|
function X(e, t) {
|
|
261
261
|
e && e.i && (Ne.delete(e), e.i(t));
|
|
@@ -273,23 +273,23 @@ function pe(e, t, r, n) {
|
|
|
273
273
|
function Te(e) {
|
|
274
274
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function Tn(e, t, r) {
|
|
277
277
|
const { fragment: n, after_update: i } = e.$$;
|
|
278
|
-
n && n.m(t, r),
|
|
279
|
-
const o = e.$$.on_mount.map(
|
|
280
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
281
|
-
}), i.forEach(
|
|
278
|
+
n && n.m(t, r), tt(() => {
|
|
279
|
+
const o = e.$$.on_mount.map(cr).filter(vt);
|
|
280
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ae(o), e.$$.on_mount = [];
|
|
281
|
+
}), i.forEach(tt);
|
|
282
282
|
}
|
|
283
|
-
function
|
|
283
|
+
function Pn(e, t) {
|
|
284
284
|
const r = e.$$;
|
|
285
|
-
r.fragment !== null && (
|
|
285
|
+
r.fragment !== null && (An(r.after_update), ae(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
286
286
|
}
|
|
287
|
-
function
|
|
288
|
-
e.$$.dirty[0] === -1 && (K.push(e),
|
|
287
|
+
function Hn(e, t) {
|
|
288
|
+
e.$$.dirty[0] === -1 && (K.push(e), In(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
289
289
|
}
|
|
290
|
-
function
|
|
291
|
-
const l =
|
|
292
|
-
|
|
290
|
+
function Mn(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
291
|
+
const l = de;
|
|
292
|
+
fe(e);
|
|
293
293
|
const u = e.$$ = {
|
|
294
294
|
fragment: null,
|
|
295
295
|
ctx: [],
|
|
@@ -297,7 +297,7 @@ function An(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
297
297
|
props: o,
|
|
298
298
|
update: D,
|
|
299
299
|
not_equal: i,
|
|
300
|
-
bound:
|
|
300
|
+
bound: Pt(),
|
|
301
301
|
// lifecycle
|
|
302
302
|
on_mount: [],
|
|
303
303
|
on_destroy: [],
|
|
@@ -306,28 +306,28 @@ function An(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
306
306
|
after_update: [],
|
|
307
307
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
308
308
|
// everything else
|
|
309
|
-
callbacks:
|
|
309
|
+
callbacks: Pt(),
|
|
310
310
|
dirty: s,
|
|
311
311
|
skip_bound: !1,
|
|
312
312
|
root: t.target || l.$$.root
|
|
313
313
|
};
|
|
314
314
|
a && a(u.root);
|
|
315
315
|
let h = !1;
|
|
316
|
-
if (u.ctx = r(e, t.props || {}, (d, f, ...
|
|
317
|
-
const g =
|
|
318
|
-
return u.ctx && i(u.ctx[d], u.ctx[d] = g) && (!u.skip_bound && u.bound[d] && u.bound[d](g), h &&
|
|
319
|
-
}), u.update(), h = !0,
|
|
316
|
+
if (u.ctx = r ? r(e, t.props || {}, (d, f, ...m) => {
|
|
317
|
+
const g = m.length ? m[0] : f;
|
|
318
|
+
return u.ctx && i(u.ctx[d], u.ctx[d] = g) && (!u.skip_bound && u.bound[d] && u.bound[d](g), h && Hn(e, d)), f;
|
|
319
|
+
}) : [], u.update(), h = !0, ae(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
320
320
|
if (t.hydrate) {
|
|
321
|
-
const d =
|
|
321
|
+
const d = xn(t.target);
|
|
322
322
|
u.fragment && u.fragment.l(d), d.forEach(L);
|
|
323
323
|
} else
|
|
324
324
|
u.fragment && u.fragment.c();
|
|
325
|
-
t.intro && X(e.$$.fragment),
|
|
325
|
+
t.intro && X(e.$$.fragment), Tn(e, t.target, t.anchor), F();
|
|
326
326
|
}
|
|
327
|
-
|
|
327
|
+
fe(l);
|
|
328
328
|
}
|
|
329
|
-
let
|
|
330
|
-
typeof HTMLElement == "function" && (
|
|
329
|
+
let br;
|
|
330
|
+
typeof HTMLElement == "function" && (br = class extends HTMLElement {
|
|
331
331
|
constructor(t, r, n) {
|
|
332
332
|
super();
|
|
333
333
|
/** The Svelte component constructor */
|
|
@@ -364,14 +364,14 @@ typeof HTMLElement == "function" && (mr = class extends HTMLElement {
|
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
366
|
connectedCallback() {
|
|
367
|
-
return
|
|
367
|
+
return Tt(this, null, function* () {
|
|
368
368
|
if (this.$$cn = !0, !this.$$c) {
|
|
369
369
|
let t = function(o) {
|
|
370
370
|
return () => {
|
|
371
371
|
let a;
|
|
372
372
|
return {
|
|
373
373
|
c: function() {
|
|
374
|
-
a =
|
|
374
|
+
a = I("slot"), o !== "default" && c(a, "name", o);
|
|
375
375
|
},
|
|
376
376
|
/**
|
|
377
377
|
* @param {HTMLElement} target
|
|
@@ -388,7 +388,7 @@ typeof HTMLElement == "function" && (mr = class extends HTMLElement {
|
|
|
388
388
|
};
|
|
389
389
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
390
390
|
return;
|
|
391
|
-
const r = {}, n =
|
|
391
|
+
const r = {}, n = wn(this);
|
|
392
392
|
for (const o of this.$$s)
|
|
393
393
|
o in n && (r[o] = [t(o)]);
|
|
394
394
|
for (const o of this.attributes) {
|
|
@@ -399,7 +399,7 @@ typeof HTMLElement == "function" && (mr = class extends HTMLElement {
|
|
|
399
399
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
400
400
|
this.$$c = new this.$$ctor({
|
|
401
401
|
target: this.shadowRoot || this,
|
|
402
|
-
props:
|
|
402
|
+
props: At(Bt({}, this.$$d), {
|
|
403
403
|
$$slots: r,
|
|
404
404
|
$$scope: {
|
|
405
405
|
ctx: []
|
|
@@ -477,8 +477,8 @@ function Se(e, t, r, n) {
|
|
|
477
477
|
return t;
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
|
-
function
|
|
481
|
-
let a = class extends
|
|
480
|
+
function On(e, t, r, n, i, o) {
|
|
481
|
+
let a = class extends br {
|
|
482
482
|
constructor() {
|
|
483
483
|
super(e, r, i), this.$$p_d = t;
|
|
484
484
|
}
|
|
@@ -508,7 +508,7 @@ function Tn(e, t, r, n, i, o) {
|
|
|
508
508
|
}), e.element = /** @type {any} */
|
|
509
509
|
a, a;
|
|
510
510
|
}
|
|
511
|
-
class
|
|
511
|
+
class Ln {
|
|
512
512
|
constructor() {
|
|
513
513
|
/**
|
|
514
514
|
* ### PRIVATE API
|
|
@@ -529,7 +529,7 @@ class Hn {
|
|
|
529
529
|
}
|
|
530
530
|
/** @returns {void} */
|
|
531
531
|
$destroy() {
|
|
532
|
-
|
|
532
|
+
Pn(this, 1), this.$destroy = D;
|
|
533
533
|
}
|
|
534
534
|
/**
|
|
535
535
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -538,7 +538,7 @@ class Hn {
|
|
|
538
538
|
* @returns {() => void}
|
|
539
539
|
*/
|
|
540
540
|
$on(t, r) {
|
|
541
|
-
if (!
|
|
541
|
+
if (!vt(r))
|
|
542
542
|
return D;
|
|
543
543
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
544
544
|
return n.push(r), () => {
|
|
@@ -551,11 +551,11 @@ class Hn {
|
|
|
551
551
|
* @returns {void}
|
|
552
552
|
*/
|
|
553
553
|
$set(t) {
|
|
554
|
-
this.$$set && !
|
|
554
|
+
this.$$set && !cn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
|
-
const
|
|
558
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
557
|
+
const Cn = "4";
|
|
558
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Cn);
|
|
559
559
|
/*! *****************************************************************************
|
|
560
560
|
Copyright (c) Microsoft Corporation.
|
|
561
561
|
|
|
@@ -570,43 +570,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
570
570
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
571
571
|
PERFORMANCE OF THIS SOFTWARE.
|
|
572
572
|
***************************************************************************** */
|
|
573
|
-
var
|
|
574
|
-
return
|
|
573
|
+
var rt = function(e, t) {
|
|
574
|
+
return rt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
575
575
|
r.__proto__ = n;
|
|
576
576
|
} || function(r, n) {
|
|
577
577
|
for (var i in n)
|
|
578
578
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
579
|
-
},
|
|
579
|
+
}, rt(e, t);
|
|
580
580
|
};
|
|
581
|
-
function
|
|
581
|
+
function be(e, t) {
|
|
582
582
|
if (typeof t != "function" && t !== null)
|
|
583
583
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
584
|
-
|
|
584
|
+
rt(e, t);
|
|
585
585
|
function r() {
|
|
586
586
|
this.constructor = e;
|
|
587
587
|
}
|
|
588
588
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
589
589
|
}
|
|
590
|
-
|
|
591
|
-
return w = Object.assign || function(t) {
|
|
592
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
593
|
-
r = arguments[n];
|
|
594
|
-
for (var o in r)
|
|
595
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
596
|
-
}
|
|
597
|
-
return t;
|
|
598
|
-
}, w.apply(this, arguments);
|
|
599
|
-
};
|
|
600
|
-
function Mn(e, t) {
|
|
601
|
-
var r = {};
|
|
602
|
-
for (var n in e)
|
|
603
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
604
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
605
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
606
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
607
|
-
return r;
|
|
608
|
-
}
|
|
609
|
-
function et(e) {
|
|
590
|
+
function nt(e) {
|
|
610
591
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
611
592
|
if (r)
|
|
612
593
|
return r.call(e);
|
|
@@ -618,7 +599,7 @@ function et(e) {
|
|
|
618
599
|
};
|
|
619
600
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
620
601
|
}
|
|
621
|
-
function
|
|
602
|
+
function it(e, t) {
|
|
622
603
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
623
604
|
if (!r)
|
|
624
605
|
return e;
|
|
@@ -638,22 +619,22 @@ function tt(e, t) {
|
|
|
638
619
|
}
|
|
639
620
|
return o;
|
|
640
621
|
}
|
|
641
|
-
function
|
|
642
|
-
if (
|
|
622
|
+
function ot(e, t, r) {
|
|
623
|
+
if (arguments.length === 2)
|
|
643
624
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
644
625
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
645
626
|
return e.concat(o || t);
|
|
646
627
|
}
|
|
647
|
-
function
|
|
628
|
+
function k(e) {
|
|
648
629
|
return typeof e == "function";
|
|
649
630
|
}
|
|
650
|
-
function
|
|
631
|
+
function yr(e) {
|
|
651
632
|
var t = function(n) {
|
|
652
633
|
Error.call(n), n.stack = new Error().stack;
|
|
653
634
|
}, r = e(t);
|
|
654
635
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
655
636
|
}
|
|
656
|
-
var
|
|
637
|
+
var Xe = yr(function(e) {
|
|
657
638
|
return function(r) {
|
|
658
639
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
659
640
|
` + r.map(function(n, i) {
|
|
@@ -662,13 +643,13 @@ var We = pr(function(e) {
|
|
|
662
643
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
663
644
|
};
|
|
664
645
|
});
|
|
665
|
-
function
|
|
646
|
+
function at(e, t) {
|
|
666
647
|
if (e) {
|
|
667
648
|
var r = e.indexOf(t);
|
|
668
649
|
0 <= r && e.splice(r, 1);
|
|
669
650
|
}
|
|
670
651
|
}
|
|
671
|
-
var
|
|
652
|
+
var Le = function() {
|
|
672
653
|
function e(t) {
|
|
673
654
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
674
655
|
}
|
|
@@ -680,12 +661,12 @@ var Oe = function() {
|
|
|
680
661
|
if (a)
|
|
681
662
|
if (this._parentage = null, Array.isArray(a))
|
|
682
663
|
try {
|
|
683
|
-
for (var s =
|
|
664
|
+
for (var s = nt(a), l = s.next(); !l.done; l = s.next()) {
|
|
684
665
|
var u = l.value;
|
|
685
666
|
u.remove(this);
|
|
686
667
|
}
|
|
687
|
-
} catch (
|
|
688
|
-
t = { error:
|
|
668
|
+
} catch (v) {
|
|
669
|
+
t = { error: v };
|
|
689
670
|
} finally {
|
|
690
671
|
try {
|
|
691
672
|
l && !l.done && (r = s.return) && r.call(s);
|
|
@@ -697,29 +678,29 @@ var Oe = function() {
|
|
|
697
678
|
else
|
|
698
679
|
a.remove(this);
|
|
699
680
|
var h = this.initialTeardown;
|
|
700
|
-
if (
|
|
681
|
+
if (k(h))
|
|
701
682
|
try {
|
|
702
683
|
h();
|
|
703
|
-
} catch (
|
|
704
|
-
o =
|
|
684
|
+
} catch (v) {
|
|
685
|
+
o = v instanceof Xe ? v.errors : [v];
|
|
705
686
|
}
|
|
706
687
|
var d = this._finalizers;
|
|
707
688
|
if (d) {
|
|
708
689
|
this._finalizers = null;
|
|
709
690
|
try {
|
|
710
|
-
for (var f =
|
|
711
|
-
var g =
|
|
691
|
+
for (var f = nt(d), m = f.next(); !m.done; m = f.next()) {
|
|
692
|
+
var g = m.value;
|
|
712
693
|
try {
|
|
713
|
-
|
|
714
|
-
} catch (
|
|
715
|
-
o = o != null ? o : [],
|
|
694
|
+
Mt(g);
|
|
695
|
+
} catch (v) {
|
|
696
|
+
o = o != null ? o : [], v instanceof Xe ? o = ot(ot([], it(o)), it(v.errors)) : o.push(v);
|
|
716
697
|
}
|
|
717
698
|
}
|
|
718
|
-
} catch (
|
|
719
|
-
n = { error:
|
|
699
|
+
} catch (v) {
|
|
700
|
+
n = { error: v };
|
|
720
701
|
} finally {
|
|
721
702
|
try {
|
|
722
|
-
|
|
703
|
+
m && !m.done && (i = f.return) && i.call(f);
|
|
723
704
|
} finally {
|
|
724
705
|
if (n)
|
|
725
706
|
throw n.error;
|
|
@@ -727,13 +708,13 @@ var Oe = function() {
|
|
|
727
708
|
}
|
|
728
709
|
}
|
|
729
710
|
if (o)
|
|
730
|
-
throw new
|
|
711
|
+
throw new Xe(o);
|
|
731
712
|
}
|
|
732
713
|
}, e.prototype.add = function(t) {
|
|
733
714
|
var r;
|
|
734
715
|
if (t && t !== this)
|
|
735
716
|
if (this.closed)
|
|
736
|
-
|
|
717
|
+
Mt(t);
|
|
737
718
|
else {
|
|
738
719
|
if (t instanceof e) {
|
|
739
720
|
if (t.closed || t._hasParent(this))
|
|
@@ -750,56 +731,52 @@ var Oe = function() {
|
|
|
750
731
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
751
732
|
}, e.prototype._removeParent = function(t) {
|
|
752
733
|
var r = this._parentage;
|
|
753
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
734
|
+
r === t ? this._parentage = null : Array.isArray(r) && at(r, t);
|
|
754
735
|
}, e.prototype.remove = function(t) {
|
|
755
736
|
var r = this._finalizers;
|
|
756
|
-
r &&
|
|
737
|
+
r && at(r, t), t instanceof e && t._removeParent(this);
|
|
757
738
|
}, e.EMPTY = function() {
|
|
758
739
|
var t = new e();
|
|
759
740
|
return t.closed = !0, t;
|
|
760
741
|
}(), e;
|
|
761
|
-
}(),
|
|
762
|
-
function
|
|
763
|
-
return e instanceof
|
|
764
|
-
}
|
|
765
|
-
function
|
|
766
|
-
|
|
767
|
-
}
|
|
768
|
-
var
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
Promise: void 0,
|
|
772
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
773
|
-
useDeprecatedNextContext: !1
|
|
774
|
-
}, Ln = {
|
|
742
|
+
}(), _r = Le.EMPTY;
|
|
743
|
+
function xr(e) {
|
|
744
|
+
return e instanceof Le || e && "closed" in e && k(e.remove) && k(e.add) && k(e.unsubscribe);
|
|
745
|
+
}
|
|
746
|
+
function Mt(e) {
|
|
747
|
+
k(e) ? e() : e.unsubscribe();
|
|
748
|
+
}
|
|
749
|
+
var Fn = {
|
|
750
|
+
Promise: void 0
|
|
751
|
+
}, Rn = {
|
|
775
752
|
setTimeout: function(e, t) {
|
|
776
753
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
777
754
|
r[n - 2] = arguments[n];
|
|
778
|
-
return setTimeout.apply(void 0,
|
|
755
|
+
return setTimeout.apply(void 0, ot([e, t], it(r)));
|
|
779
756
|
},
|
|
780
757
|
clearTimeout: function(e) {
|
|
781
758
|
return clearTimeout(e);
|
|
782
759
|
},
|
|
783
760
|
delegate: void 0
|
|
784
761
|
};
|
|
785
|
-
function
|
|
786
|
-
|
|
762
|
+
function Un(e) {
|
|
763
|
+
Rn.setTimeout(function() {
|
|
787
764
|
throw e;
|
|
788
765
|
});
|
|
789
766
|
}
|
|
790
|
-
function
|
|
767
|
+
function Ot() {
|
|
791
768
|
}
|
|
792
769
|
function Ie(e) {
|
|
793
770
|
e();
|
|
794
771
|
}
|
|
795
|
-
var
|
|
796
|
-
|
|
772
|
+
var wr = function(e) {
|
|
773
|
+
be(t, e);
|
|
797
774
|
function t(r) {
|
|
798
775
|
var n = e.call(this) || this;
|
|
799
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
776
|
+
return n.isStopped = !1, r ? (n.destination = r, xr(r) && r.add(n)) : n.destination = $n, n;
|
|
800
777
|
}
|
|
801
778
|
return t.create = function(r, n, i) {
|
|
802
|
-
return new
|
|
779
|
+
return new st(r, n, i);
|
|
803
780
|
}, t.prototype.next = function(r) {
|
|
804
781
|
this.isStopped || this._next(r);
|
|
805
782
|
}, t.prototype.error = function(r) {
|
|
@@ -823,7 +800,7 @@ var vr = function(e) {
|
|
|
823
800
|
this.unsubscribe();
|
|
824
801
|
}
|
|
825
802
|
}, t;
|
|
826
|
-
}(
|
|
803
|
+
}(Le), Dn = function() {
|
|
827
804
|
function e(t) {
|
|
828
805
|
this.partialObserver = t;
|
|
829
806
|
}
|
|
@@ -854,43 +831,43 @@ var vr = function(e) {
|
|
|
854
831
|
we(r);
|
|
855
832
|
}
|
|
856
833
|
}, e;
|
|
857
|
-
}(),
|
|
858
|
-
|
|
834
|
+
}(), st = function(e) {
|
|
835
|
+
be(t, e);
|
|
859
836
|
function t(r, n, i) {
|
|
860
837
|
var o = e.call(this) || this, a;
|
|
861
|
-
return
|
|
838
|
+
return k(r) || !r ? a = {
|
|
862
839
|
next: r != null ? r : void 0,
|
|
863
840
|
error: n != null ? n : void 0,
|
|
864
841
|
complete: i != null ? i : void 0
|
|
865
|
-
} : a = r, o.destination = new
|
|
842
|
+
} : a = r, o.destination = new Dn(a), o;
|
|
866
843
|
}
|
|
867
844
|
return t;
|
|
868
|
-
}(
|
|
845
|
+
}(wr);
|
|
869
846
|
function we(e) {
|
|
870
|
-
|
|
847
|
+
Un(e);
|
|
871
848
|
}
|
|
872
|
-
function
|
|
849
|
+
function Gn(e) {
|
|
873
850
|
throw e;
|
|
874
851
|
}
|
|
875
|
-
var
|
|
852
|
+
var $n = {
|
|
876
853
|
closed: !0,
|
|
877
|
-
next:
|
|
878
|
-
error:
|
|
879
|
-
complete:
|
|
880
|
-
},
|
|
854
|
+
next: Ot,
|
|
855
|
+
error: Gn,
|
|
856
|
+
complete: Ot
|
|
857
|
+
}, kn = function() {
|
|
881
858
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
882
859
|
}();
|
|
883
|
-
function
|
|
860
|
+
function jn(e) {
|
|
884
861
|
return e;
|
|
885
862
|
}
|
|
886
|
-
function
|
|
887
|
-
return e.length === 0 ?
|
|
863
|
+
function Wn(e) {
|
|
864
|
+
return e.length === 0 ? jn : e.length === 1 ? e[0] : function(r) {
|
|
888
865
|
return e.reduce(function(n, i) {
|
|
889
866
|
return i(n);
|
|
890
867
|
}, r);
|
|
891
868
|
};
|
|
892
869
|
}
|
|
893
|
-
var
|
|
870
|
+
var Lt = function() {
|
|
894
871
|
function e(t) {
|
|
895
872
|
t && (this._subscribe = t);
|
|
896
873
|
}
|
|
@@ -898,7 +875,7 @@ var Ht = function() {
|
|
|
898
875
|
var r = new e();
|
|
899
876
|
return r.source = this, r.operator = t, r;
|
|
900
877
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
901
|
-
var i = this, o =
|
|
878
|
+
var i = this, o = Xn(t) ? t : new st(t, r, n);
|
|
902
879
|
return Ie(function() {
|
|
903
880
|
var a = i, s = a.operator, l = a.source;
|
|
904
881
|
o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -911,8 +888,8 @@ var Ht = function() {
|
|
|
911
888
|
}
|
|
912
889
|
}, e.prototype.forEach = function(t, r) {
|
|
913
890
|
var n = this;
|
|
914
|
-
return r =
|
|
915
|
-
var a = new
|
|
891
|
+
return r = Ct(r), new r(function(i, o) {
|
|
892
|
+
var a = new st({
|
|
916
893
|
next: function(s) {
|
|
917
894
|
try {
|
|
918
895
|
t(s);
|
|
@@ -928,15 +905,15 @@ var Ht = function() {
|
|
|
928
905
|
}, e.prototype._subscribe = function(t) {
|
|
929
906
|
var r;
|
|
930
907
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
931
|
-
}, e.prototype[
|
|
908
|
+
}, e.prototype[kn] = function() {
|
|
932
909
|
return this;
|
|
933
910
|
}, e.prototype.pipe = function() {
|
|
934
911
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
935
912
|
t[r] = arguments[r];
|
|
936
|
-
return
|
|
913
|
+
return Wn(t)(this);
|
|
937
914
|
}, e.prototype.toPromise = function(t) {
|
|
938
915
|
var r = this;
|
|
939
|
-
return t =
|
|
916
|
+
return t = Ct(t), new t(function(n, i) {
|
|
940
917
|
var o;
|
|
941
918
|
r.subscribe(function(a) {
|
|
942
919
|
return o = a;
|
|
@@ -950,32 +927,32 @@ var Ht = function() {
|
|
|
950
927
|
return new e(t);
|
|
951
928
|
}, e;
|
|
952
929
|
}();
|
|
953
|
-
function
|
|
930
|
+
function Ct(e) {
|
|
954
931
|
var t;
|
|
955
|
-
return (t = e != null ? e :
|
|
932
|
+
return (t = e != null ? e : Fn.Promise) !== null && t !== void 0 ? t : Promise;
|
|
956
933
|
}
|
|
957
|
-
function
|
|
958
|
-
return e &&
|
|
934
|
+
function Vn(e) {
|
|
935
|
+
return e && k(e.next) && k(e.error) && k(e.complete);
|
|
959
936
|
}
|
|
960
|
-
function
|
|
961
|
-
return e && e instanceof
|
|
937
|
+
function Xn(e) {
|
|
938
|
+
return e && e instanceof wr || Vn(e) && xr(e);
|
|
962
939
|
}
|
|
963
|
-
var
|
|
940
|
+
var zn = yr(function(e) {
|
|
964
941
|
return function() {
|
|
965
942
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
966
943
|
};
|
|
967
|
-
}),
|
|
968
|
-
|
|
944
|
+
}), Er = function(e) {
|
|
945
|
+
be(t, e);
|
|
969
946
|
function t() {
|
|
970
947
|
var r = e.call(this) || this;
|
|
971
948
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
972
949
|
}
|
|
973
950
|
return t.prototype.lift = function(r) {
|
|
974
|
-
var n = new
|
|
951
|
+
var n = new Ft(this, this);
|
|
975
952
|
return n.operator = r, n;
|
|
976
953
|
}, t.prototype._throwIfClosed = function() {
|
|
977
954
|
if (this.closed)
|
|
978
|
-
throw new
|
|
955
|
+
throw new zn();
|
|
979
956
|
}, t.prototype.next = function(r) {
|
|
980
957
|
var n = this;
|
|
981
958
|
Ie(function() {
|
|
@@ -983,7 +960,7 @@ var Wn = pr(function(e) {
|
|
|
983
960
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
984
961
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
985
962
|
try {
|
|
986
|
-
for (var a =
|
|
963
|
+
for (var a = nt(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
987
964
|
var l = s.value;
|
|
988
965
|
l.next(r);
|
|
989
966
|
}
|
|
@@ -1032,20 +1009,20 @@ var Wn = pr(function(e) {
|
|
|
1032
1009
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
1033
1010
|
}, t.prototype._innerSubscribe = function(r) {
|
|
1034
1011
|
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
1035
|
-
return o || a ?
|
|
1036
|
-
n.currentObservers = null,
|
|
1012
|
+
return o || a ? _r : (this.currentObservers = null, s.push(r), new Le(function() {
|
|
1013
|
+
n.currentObservers = null, at(s, r);
|
|
1037
1014
|
}));
|
|
1038
1015
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
1039
1016
|
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
1040
1017
|
i ? r.error(o) : a && r.complete();
|
|
1041
1018
|
}, t.prototype.asObservable = function() {
|
|
1042
|
-
var r = new
|
|
1019
|
+
var r = new Lt();
|
|
1043
1020
|
return r.source = this, r;
|
|
1044
1021
|
}, t.create = function(r, n) {
|
|
1045
|
-
return new
|
|
1022
|
+
return new Ft(r, n);
|
|
1046
1023
|
}, t;
|
|
1047
|
-
}(
|
|
1048
|
-
|
|
1024
|
+
}(Lt), Ft = function(e) {
|
|
1025
|
+
be(t, e);
|
|
1049
1026
|
function t(r, n) {
|
|
1050
1027
|
var i = e.call(this) || this;
|
|
1051
1028
|
return i.destination = r, i.source = n, i;
|
|
@@ -1061,17 +1038,17 @@ var Wn = pr(function(e) {
|
|
|
1061
1038
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1062
1039
|
}, t.prototype._subscribe = function(r) {
|
|
1063
1040
|
var n, i;
|
|
1064
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1041
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : _r;
|
|
1065
1042
|
}, t;
|
|
1066
|
-
}(
|
|
1043
|
+
}(Er), Nr = {
|
|
1067
1044
|
now: function() {
|
|
1068
|
-
return (
|
|
1045
|
+
return (Nr.delegate || Date).now();
|
|
1069
1046
|
},
|
|
1070
1047
|
delegate: void 0
|
|
1071
|
-
},
|
|
1072
|
-
|
|
1048
|
+
}, Zn = function(e) {
|
|
1049
|
+
be(t, e);
|
|
1073
1050
|
function t(r, n, i) {
|
|
1074
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1051
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Nr);
|
|
1075
1052
|
var o = e.call(this) || this;
|
|
1076
1053
|
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;
|
|
1077
1054
|
}
|
|
@@ -1091,24 +1068,24 @@ var Wn = pr(function(e) {
|
|
|
1091
1068
|
u && o.splice(0, u + 1);
|
|
1092
1069
|
}
|
|
1093
1070
|
}, t;
|
|
1094
|
-
}(
|
|
1095
|
-
const
|
|
1096
|
-
if (
|
|
1097
|
-
const r = new
|
|
1098
|
-
|
|
1071
|
+
}(Er);
|
|
1072
|
+
const Rt = [], Ut = {}, Qn = (e, t = 0) => {
|
|
1073
|
+
if (Rt.indexOf(e) == -1) {
|
|
1074
|
+
const r = new Zn(t);
|
|
1075
|
+
Ut[e] = r, Rt.push(e);
|
|
1099
1076
|
}
|
|
1100
|
-
return
|
|
1077
|
+
return Ut[e];
|
|
1101
1078
|
}, q = [];
|
|
1102
|
-
function
|
|
1079
|
+
function Yn(e, t) {
|
|
1103
1080
|
return {
|
|
1104
|
-
subscribe:
|
|
1081
|
+
subscribe: Ce(e, t).subscribe
|
|
1105
1082
|
};
|
|
1106
1083
|
}
|
|
1107
|
-
function
|
|
1084
|
+
function Ce(e, t = D) {
|
|
1108
1085
|
let r;
|
|
1109
1086
|
const n = /* @__PURE__ */ new Set();
|
|
1110
1087
|
function i(s) {
|
|
1111
|
-
if (
|
|
1088
|
+
if (fr(e, s) && (e = s, r)) {
|
|
1112
1089
|
const l = !q.length;
|
|
1113
1090
|
for (const u of n)
|
|
1114
1091
|
u[1](), q.push(u, e);
|
|
@@ -1130,12 +1107,12 @@ function Le(e, t = D) {
|
|
|
1130
1107
|
}
|
|
1131
1108
|
return { set: i, update: o, subscribe: a };
|
|
1132
1109
|
}
|
|
1133
|
-
function
|
|
1110
|
+
function se(e, t, r) {
|
|
1134
1111
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1135
1112
|
if (!i.every(Boolean))
|
|
1136
1113
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1137
1114
|
const o = t.length < 2;
|
|
1138
|
-
return
|
|
1115
|
+
return Yn(r, (a, s) => {
|
|
1139
1116
|
let l = !1;
|
|
1140
1117
|
const u = [];
|
|
1141
1118
|
let h = 0, d = D;
|
|
@@ -1144,131 +1121,170 @@ function le(e, t, r) {
|
|
|
1144
1121
|
return;
|
|
1145
1122
|
d();
|
|
1146
1123
|
const g = t(n ? u[0] : u, a, s);
|
|
1147
|
-
o ? a(g) : d =
|
|
1148
|
-
},
|
|
1149
|
-
(g,
|
|
1124
|
+
o ? a(g) : d = vt(g) ? g : D;
|
|
1125
|
+
}, m = i.map(
|
|
1126
|
+
(g, v) => dr(
|
|
1150
1127
|
g,
|
|
1151
|
-
(
|
|
1152
|
-
u[
|
|
1128
|
+
(B) => {
|
|
1129
|
+
u[v] = B, h &= ~(1 << v), l && f();
|
|
1153
1130
|
},
|
|
1154
1131
|
() => {
|
|
1155
|
-
h |= 1 <<
|
|
1132
|
+
h |= 1 << v;
|
|
1156
1133
|
}
|
|
1157
1134
|
)
|
|
1158
1135
|
);
|
|
1159
1136
|
return l = !0, f(), function() {
|
|
1160
|
-
|
|
1137
|
+
ae(m), d(), l = !1;
|
|
1161
1138
|
};
|
|
1162
1139
|
});
|
|
1163
1140
|
}
|
|
1164
|
-
function
|
|
1165
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1141
|
+
function Jn(e) {
|
|
1142
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1166
1143
|
}
|
|
1167
|
-
var
|
|
1168
|
-
return
|
|
1144
|
+
var qn = function(t) {
|
|
1145
|
+
return Kn(t) && !ei(t);
|
|
1169
1146
|
};
|
|
1170
|
-
function
|
|
1147
|
+
function Kn(e) {
|
|
1171
1148
|
return !!e && typeof e == "object";
|
|
1172
1149
|
}
|
|
1173
|
-
function
|
|
1150
|
+
function ei(e) {
|
|
1174
1151
|
var t = Object.prototype.toString.call(e);
|
|
1175
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1152
|
+
return t === "[object RegExp]" || t === "[object Date]" || ni(e);
|
|
1176
1153
|
}
|
|
1177
|
-
var
|
|
1178
|
-
function
|
|
1179
|
-
return e.$$typeof ===
|
|
1154
|
+
var ti = typeof Symbol == "function" && Symbol.for, ri = ti ? Symbol.for("react.element") : 60103;
|
|
1155
|
+
function ni(e) {
|
|
1156
|
+
return e.$$typeof === ri;
|
|
1180
1157
|
}
|
|
1181
|
-
function
|
|
1158
|
+
function ii(e) {
|
|
1182
1159
|
return Array.isArray(e) ? [] : {};
|
|
1183
1160
|
}
|
|
1184
|
-
function
|
|
1185
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1161
|
+
function me(e, t) {
|
|
1162
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? re(ii(e), e, t) : e;
|
|
1186
1163
|
}
|
|
1187
|
-
function
|
|
1164
|
+
function oi(e, t, r) {
|
|
1188
1165
|
return e.concat(t).map(function(n) {
|
|
1189
|
-
return
|
|
1166
|
+
return me(n, r);
|
|
1190
1167
|
});
|
|
1191
1168
|
}
|
|
1192
|
-
function
|
|
1169
|
+
function ai(e, t) {
|
|
1193
1170
|
if (!t.customMerge)
|
|
1194
|
-
return
|
|
1171
|
+
return re;
|
|
1195
1172
|
var r = t.customMerge(e);
|
|
1196
|
-
return typeof r == "function" ? r :
|
|
1173
|
+
return typeof r == "function" ? r : re;
|
|
1197
1174
|
}
|
|
1198
|
-
function
|
|
1175
|
+
function si(e) {
|
|
1199
1176
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1200
1177
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1201
1178
|
}) : [];
|
|
1202
1179
|
}
|
|
1203
|
-
function
|
|
1204
|
-
return Object.keys(e).concat(
|
|
1180
|
+
function Dt(e) {
|
|
1181
|
+
return Object.keys(e).concat(si(e));
|
|
1205
1182
|
}
|
|
1206
|
-
function
|
|
1183
|
+
function Sr(e, t) {
|
|
1207
1184
|
try {
|
|
1208
1185
|
return t in e;
|
|
1209
1186
|
} catch (r) {
|
|
1210
1187
|
return !1;
|
|
1211
1188
|
}
|
|
1212
1189
|
}
|
|
1213
|
-
function
|
|
1214
|
-
return
|
|
1190
|
+
function li(e, t) {
|
|
1191
|
+
return Sr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1215
1192
|
}
|
|
1216
|
-
function
|
|
1193
|
+
function ui(e, t, r) {
|
|
1217
1194
|
var n = {};
|
|
1218
|
-
return r.isMergeableObject(e) &&
|
|
1219
|
-
n[i] =
|
|
1220
|
-
}),
|
|
1221
|
-
|
|
1195
|
+
return r.isMergeableObject(e) && Dt(e).forEach(function(i) {
|
|
1196
|
+
n[i] = me(e[i], r);
|
|
1197
|
+
}), Dt(t).forEach(function(i) {
|
|
1198
|
+
li(e, i) || (Sr(e, i) && r.isMergeableObject(t[i]) ? n[i] = ai(i, r)(e[i], t[i], r) : n[i] = me(t[i], r));
|
|
1222
1199
|
}), n;
|
|
1223
1200
|
}
|
|
1224
|
-
function
|
|
1225
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1201
|
+
function re(e, t, r) {
|
|
1202
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || oi, r.isMergeableObject = r.isMergeableObject || qn, r.cloneUnlessOtherwiseSpecified = me;
|
|
1226
1203
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1227
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1204
|
+
return o ? n ? r.arrayMerge(e, t, r) : ui(e, t, r) : me(t, r);
|
|
1228
1205
|
}
|
|
1229
|
-
|
|
1206
|
+
re.all = function(t, r) {
|
|
1230
1207
|
if (!Array.isArray(t))
|
|
1231
1208
|
throw new Error("first argument should be an array");
|
|
1232
1209
|
return t.reduce(function(n, i) {
|
|
1233
|
-
return
|
|
1210
|
+
return re(n, i, r);
|
|
1234
1211
|
}, {});
|
|
1235
1212
|
};
|
|
1236
|
-
var
|
|
1237
|
-
const
|
|
1238
|
-
function
|
|
1239
|
-
|
|
1213
|
+
var hi = re, ci = hi;
|
|
1214
|
+
const fi = /* @__PURE__ */ Jn(ci);
|
|
1215
|
+
var lt = function(e, t) {
|
|
1216
|
+
return lt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1217
|
+
r.__proto__ = n;
|
|
1218
|
+
} || function(r, n) {
|
|
1219
|
+
for (var i in n)
|
|
1220
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1221
|
+
}, lt(e, t);
|
|
1222
|
+
};
|
|
1223
|
+
function Fe(e, t) {
|
|
1224
|
+
if (typeof t != "function" && t !== null)
|
|
1225
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1226
|
+
lt(e, t);
|
|
1227
|
+
function r() {
|
|
1228
|
+
this.constructor = e;
|
|
1229
|
+
}
|
|
1230
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1231
|
+
}
|
|
1232
|
+
var G = function() {
|
|
1233
|
+
return G = Object.assign || function(t) {
|
|
1234
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1235
|
+
r = arguments[n];
|
|
1236
|
+
for (var o in r)
|
|
1237
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1238
|
+
}
|
|
1239
|
+
return t;
|
|
1240
|
+
}, G.apply(this, arguments);
|
|
1241
|
+
};
|
|
1242
|
+
function di(e, t) {
|
|
1243
|
+
var r = {};
|
|
1244
|
+
for (var n in e)
|
|
1245
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1246
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1247
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1248
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1249
|
+
return r;
|
|
1250
|
+
}
|
|
1251
|
+
function ze(e, t, r) {
|
|
1252
|
+
if (r || arguments.length === 2)
|
|
1253
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1254
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1255
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1256
|
+
}
|
|
1257
|
+
function Ze(e, t) {
|
|
1258
|
+
var r = t && t.cache ? t.cache : _i, n = t && t.serializer ? t.serializer : bi, i = t && t.strategy ? t.strategy : gi;
|
|
1240
1259
|
return i(e, {
|
|
1241
1260
|
cache: r,
|
|
1242
1261
|
serializer: n
|
|
1243
1262
|
});
|
|
1244
1263
|
}
|
|
1245
|
-
function
|
|
1264
|
+
function pi(e) {
|
|
1246
1265
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1247
1266
|
}
|
|
1248
|
-
function
|
|
1249
|
-
var i =
|
|
1267
|
+
function mi(e, t, r, n) {
|
|
1268
|
+
var i = pi(n) ? n : r(n), o = t.get(i);
|
|
1250
1269
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1251
1270
|
}
|
|
1252
|
-
function
|
|
1271
|
+
function Ir(e, t, r) {
|
|
1253
1272
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1254
1273
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1255
1274
|
}
|
|
1256
|
-
function
|
|
1275
|
+
function Br(e, t, r, n, i) {
|
|
1257
1276
|
return r.bind(t, e, n, i);
|
|
1258
1277
|
}
|
|
1259
|
-
function
|
|
1260
|
-
var r = e.length === 1 ?
|
|
1261
|
-
return
|
|
1262
|
-
}
|
|
1263
|
-
function fi(e, t) {
|
|
1264
|
-
return mt(e, this, Er, t.cache.create(), t.serializer);
|
|
1278
|
+
function gi(e, t) {
|
|
1279
|
+
var r = e.length === 1 ? mi : Ir;
|
|
1280
|
+
return Br(e, this, r, t.cache.create(), t.serializer);
|
|
1265
1281
|
}
|
|
1266
|
-
function
|
|
1267
|
-
return
|
|
1282
|
+
function vi(e, t) {
|
|
1283
|
+
return Br(e, this, Ir, t.cache.create(), t.serializer);
|
|
1268
1284
|
}
|
|
1269
|
-
var
|
|
1285
|
+
var bi = function() {
|
|
1270
1286
|
return JSON.stringify(arguments);
|
|
1271
|
-
},
|
|
1287
|
+
}, yi = (
|
|
1272
1288
|
/** @class */
|
|
1273
1289
|
function() {
|
|
1274
1290
|
function e() {
|
|
@@ -1280,62 +1296,71 @@ var mi = function() {
|
|
|
1280
1296
|
this.cache[t] = r;
|
|
1281
1297
|
}, e;
|
|
1282
1298
|
}()
|
|
1283
|
-
),
|
|
1299
|
+
), _i = {
|
|
1284
1300
|
create: function() {
|
|
1285
|
-
return new
|
|
1301
|
+
return new yi();
|
|
1286
1302
|
}
|
|
1287
|
-
},
|
|
1288
|
-
variadic:
|
|
1289
|
-
|
|
1290
|
-
|
|
1303
|
+
}, Qe = {
|
|
1304
|
+
variadic: vi
|
|
1305
|
+
}, Pe = function() {
|
|
1306
|
+
return Pe = Object.assign || function(t) {
|
|
1307
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1308
|
+
r = arguments[n];
|
|
1309
|
+
for (var o in r)
|
|
1310
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1311
|
+
}
|
|
1312
|
+
return t;
|
|
1313
|
+
}, Pe.apply(this, arguments);
|
|
1314
|
+
};
|
|
1315
|
+
var _;
|
|
1291
1316
|
(function(e) {
|
|
1292
1317
|
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";
|
|
1293
1318
|
})(_ || (_ = {}));
|
|
1294
|
-
var
|
|
1319
|
+
var S;
|
|
1295
1320
|
(function(e) {
|
|
1296
1321
|
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";
|
|
1297
|
-
})(
|
|
1298
|
-
var
|
|
1322
|
+
})(S || (S = {}));
|
|
1323
|
+
var ne;
|
|
1299
1324
|
(function(e) {
|
|
1300
1325
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1301
|
-
})(
|
|
1302
|
-
function
|
|
1303
|
-
return e.type ===
|
|
1326
|
+
})(ne || (ne = {}));
|
|
1327
|
+
function Gt(e) {
|
|
1328
|
+
return e.type === S.literal;
|
|
1304
1329
|
}
|
|
1305
|
-
function
|
|
1306
|
-
return e.type ===
|
|
1330
|
+
function xi(e) {
|
|
1331
|
+
return e.type === S.argument;
|
|
1307
1332
|
}
|
|
1308
|
-
function
|
|
1309
|
-
return e.type ===
|
|
1333
|
+
function Ar(e) {
|
|
1334
|
+
return e.type === S.number;
|
|
1310
1335
|
}
|
|
1311
|
-
function
|
|
1312
|
-
return e.type ===
|
|
1336
|
+
function Tr(e) {
|
|
1337
|
+
return e.type === S.date;
|
|
1313
1338
|
}
|
|
1314
|
-
function
|
|
1315
|
-
return e.type ===
|
|
1339
|
+
function Pr(e) {
|
|
1340
|
+
return e.type === S.time;
|
|
1316
1341
|
}
|
|
1317
|
-
function
|
|
1318
|
-
return e.type ===
|
|
1342
|
+
function Hr(e) {
|
|
1343
|
+
return e.type === S.select;
|
|
1319
1344
|
}
|
|
1320
|
-
function
|
|
1321
|
-
return e.type ===
|
|
1345
|
+
function Mr(e) {
|
|
1346
|
+
return e.type === S.plural;
|
|
1322
1347
|
}
|
|
1323
|
-
function
|
|
1324
|
-
return e.type ===
|
|
1348
|
+
function wi(e) {
|
|
1349
|
+
return e.type === S.pound;
|
|
1325
1350
|
}
|
|
1326
|
-
function
|
|
1327
|
-
return e.type ===
|
|
1351
|
+
function Or(e) {
|
|
1352
|
+
return e.type === S.tag;
|
|
1328
1353
|
}
|
|
1329
|
-
function
|
|
1330
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1354
|
+
function Lr(e) {
|
|
1355
|
+
return !!(e && typeof e == "object" && e.type === ne.number);
|
|
1331
1356
|
}
|
|
1332
|
-
function
|
|
1333
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1357
|
+
function ut(e) {
|
|
1358
|
+
return !!(e && typeof e == "object" && e.type === ne.dateTime);
|
|
1334
1359
|
}
|
|
1335
|
-
var
|
|
1336
|
-
function
|
|
1360
|
+
var Cr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ei = /(?:[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;
|
|
1361
|
+
function Ni(e) {
|
|
1337
1362
|
var t = {};
|
|
1338
|
-
return e.replace(
|
|
1363
|
+
return e.replace(Ei, function(r) {
|
|
1339
1364
|
var n = r.length;
|
|
1340
1365
|
switch (r[0]) {
|
|
1341
1366
|
case "G":
|
|
@@ -1424,11 +1449,21 @@ function _i(e) {
|
|
|
1424
1449
|
return "";
|
|
1425
1450
|
}), t;
|
|
1426
1451
|
}
|
|
1427
|
-
var
|
|
1428
|
-
function
|
|
1452
|
+
var T = function() {
|
|
1453
|
+
return T = Object.assign || function(t) {
|
|
1454
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1455
|
+
r = arguments[n];
|
|
1456
|
+
for (var o in r)
|
|
1457
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1458
|
+
}
|
|
1459
|
+
return t;
|
|
1460
|
+
}, T.apply(this, arguments);
|
|
1461
|
+
};
|
|
1462
|
+
var Si = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1463
|
+
function Ii(e) {
|
|
1429
1464
|
if (e.length === 0)
|
|
1430
1465
|
throw new Error("Number skeleton cannot be empty");
|
|
1431
|
-
for (var t = e.split(
|
|
1466
|
+
for (var t = e.split(Si).filter(function(f) {
|
|
1432
1467
|
return f.length > 0;
|
|
1433
1468
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1434
1469
|
var o = i[n], a = o.split("/");
|
|
@@ -1443,17 +1478,17 @@ function wi(e) {
|
|
|
1443
1478
|
}
|
|
1444
1479
|
return r;
|
|
1445
1480
|
}
|
|
1446
|
-
function
|
|
1481
|
+
function Bi(e) {
|
|
1447
1482
|
return e.replace(/^(.*?)-/, "");
|
|
1448
1483
|
}
|
|
1449
|
-
var
|
|
1450
|
-
function
|
|
1484
|
+
var $t = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Fr = /^(@+)?(\+|#+)?[rs]?$/g, Ai = /(\*)(0+)|(#+)(0+)|(0+)/g, Rr = /^(0+)$/;
|
|
1485
|
+
function kt(e) {
|
|
1451
1486
|
var t = {};
|
|
1452
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1487
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Fr, function(r, n, i) {
|
|
1453
1488
|
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)), "";
|
|
1454
1489
|
}), t;
|
|
1455
1490
|
}
|
|
1456
|
-
function
|
|
1491
|
+
function Ur(e) {
|
|
1457
1492
|
switch (e) {
|
|
1458
1493
|
case "sign-auto":
|
|
1459
1494
|
return {
|
|
@@ -1493,7 +1528,7 @@ function Lr(e) {
|
|
|
1493
1528
|
};
|
|
1494
1529
|
}
|
|
1495
1530
|
}
|
|
1496
|
-
function
|
|
1531
|
+
function Ti(e) {
|
|
1497
1532
|
var t;
|
|
1498
1533
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1499
1534
|
notation: "engineering"
|
|
@@ -1501,17 +1536,17 @@ function Si(e) {
|
|
|
1501
1536
|
notation: "scientific"
|
|
1502
1537
|
}, e = e.slice(1)), t) {
|
|
1503
1538
|
var r = e.slice(0, 2);
|
|
1504
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1539
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Rr.test(e))
|
|
1505
1540
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1506
1541
|
t.minimumIntegerDigits = e.length;
|
|
1507
1542
|
}
|
|
1508
1543
|
return t;
|
|
1509
1544
|
}
|
|
1510
|
-
function
|
|
1511
|
-
var t = {}, r =
|
|
1545
|
+
function jt(e) {
|
|
1546
|
+
var t = {}, r = Ur(e);
|
|
1512
1547
|
return r || t;
|
|
1513
1548
|
}
|
|
1514
|
-
function
|
|
1549
|
+
function Pi(e) {
|
|
1515
1550
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1516
1551
|
var i = n[r];
|
|
1517
1552
|
switch (i.stem) {
|
|
@@ -1535,7 +1570,7 @@ function Ii(e) {
|
|
|
1535
1570
|
continue;
|
|
1536
1571
|
case "measure-unit":
|
|
1537
1572
|
case "unit":
|
|
1538
|
-
t.style = "unit", t.unit =
|
|
1573
|
+
t.style = "unit", t.unit = Bi(i.options[0]);
|
|
1539
1574
|
continue;
|
|
1540
1575
|
case "compact-short":
|
|
1541
1576
|
case "K":
|
|
@@ -1546,13 +1581,13 @@ function Ii(e) {
|
|
|
1546
1581
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1547
1582
|
continue;
|
|
1548
1583
|
case "scientific":
|
|
1549
|
-
t =
|
|
1550
|
-
return
|
|
1584
|
+
t = T(T(T({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1585
|
+
return T(T({}, l), jt(u));
|
|
1551
1586
|
}, {}));
|
|
1552
1587
|
continue;
|
|
1553
1588
|
case "engineering":
|
|
1554
|
-
t =
|
|
1555
|
-
return
|
|
1589
|
+
t = T(T(T({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1590
|
+
return T(T({}, l), jt(u));
|
|
1556
1591
|
}, {}));
|
|
1557
1592
|
continue;
|
|
1558
1593
|
case "notation-simple":
|
|
@@ -1597,41 +1632,41 @@ function Ii(e) {
|
|
|
1597
1632
|
case "integer-width":
|
|
1598
1633
|
if (i.options.length > 1)
|
|
1599
1634
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1600
|
-
i.options[0].replace(
|
|
1635
|
+
i.options[0].replace(Ai, function(l, u, h, d, f, m) {
|
|
1601
1636
|
if (u)
|
|
1602
1637
|
t.minimumIntegerDigits = h.length;
|
|
1603
1638
|
else {
|
|
1604
1639
|
if (d && f)
|
|
1605
1640
|
throw new Error("We currently do not support maximum integer digits");
|
|
1606
|
-
if (
|
|
1641
|
+
if (m)
|
|
1607
1642
|
throw new Error("We currently do not support exact integer digits");
|
|
1608
1643
|
}
|
|
1609
1644
|
return "";
|
|
1610
1645
|
});
|
|
1611
1646
|
continue;
|
|
1612
1647
|
}
|
|
1613
|
-
if (
|
|
1648
|
+
if (Rr.test(i.stem)) {
|
|
1614
1649
|
t.minimumIntegerDigits = i.stem.length;
|
|
1615
1650
|
continue;
|
|
1616
1651
|
}
|
|
1617
|
-
if (
|
|
1652
|
+
if ($t.test(i.stem)) {
|
|
1618
1653
|
if (i.options.length > 1)
|
|
1619
1654
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1620
|
-
i.stem.replace(
|
|
1621
|
-
return h === "*" ? t.minimumFractionDigits = u.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : f &&
|
|
1655
|
+
i.stem.replace($t, function(l, u, h, d, f, m) {
|
|
1656
|
+
return h === "*" ? t.minimumFractionDigits = u.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : f && m ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + m.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1622
1657
|
});
|
|
1623
1658
|
var o = i.options[0];
|
|
1624
|
-
o === "w" ? t =
|
|
1659
|
+
o === "w" ? t = T(T({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = T(T({}, t), kt(o)));
|
|
1625
1660
|
continue;
|
|
1626
1661
|
}
|
|
1627
|
-
if (
|
|
1628
|
-
t =
|
|
1662
|
+
if (Fr.test(i.stem)) {
|
|
1663
|
+
t = T(T({}, t), kt(i.stem));
|
|
1629
1664
|
continue;
|
|
1630
1665
|
}
|
|
1631
|
-
var a =
|
|
1632
|
-
a && (t =
|
|
1633
|
-
var s =
|
|
1634
|
-
s && (t =
|
|
1666
|
+
var a = Ur(i.stem);
|
|
1667
|
+
a && (t = T(T({}, t), a));
|
|
1668
|
+
var s = Ti(i.stem);
|
|
1669
|
+
s && (t = T(T({}, t), s));
|
|
1635
1670
|
}
|
|
1636
1671
|
return t;
|
|
1637
1672
|
}
|
|
@@ -3050,13 +3085,13 @@ var Ee = {
|
|
|
3050
3085
|
"h"
|
|
3051
3086
|
]
|
|
3052
3087
|
};
|
|
3053
|
-
function
|
|
3088
|
+
function Hi(e, t) {
|
|
3054
3089
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3055
3090
|
var i = e.charAt(n);
|
|
3056
3091
|
if (i === "j") {
|
|
3057
3092
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3058
3093
|
o++, n++;
|
|
3059
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
3094
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Mi(t);
|
|
3060
3095
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
3061
3096
|
r += l;
|
|
3062
3097
|
for (; a-- > 0; )
|
|
@@ -3066,7 +3101,7 @@ function Bi(e, t) {
|
|
|
3066
3101
|
}
|
|
3067
3102
|
return r;
|
|
3068
3103
|
}
|
|
3069
|
-
function
|
|
3104
|
+
function Mi(e) {
|
|
3070
3105
|
var t = e.hourCycle;
|
|
3071
3106
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3072
3107
|
e.hourCycles && // @ts-ignore
|
|
@@ -3088,20 +3123,20 @@ function Ai(e) {
|
|
|
3088
3123
|
var i = Ee[n || ""] || Ee[r || ""] || Ee["".concat(r, "-001")] || Ee["001"];
|
|
3089
3124
|
return i[0];
|
|
3090
3125
|
}
|
|
3091
|
-
var
|
|
3126
|
+
var Ye, Oi = new RegExp("^".concat(Cr.source, "*")), Li = new RegExp("".concat(Cr.source, "*$"));
|
|
3092
3127
|
function x(e, t) {
|
|
3093
3128
|
return { start: e, end: t };
|
|
3094
3129
|
}
|
|
3095
|
-
var
|
|
3130
|
+
var Ci = !!String.prototype.startsWith && "_a".startsWith("a", 1), Fi = !!String.fromCodePoint, Ri = !!Object.fromEntries, Ui = !!String.prototype.codePointAt, Di = !!String.prototype.trimStart, Gi = !!String.prototype.trimEnd, $i = !!Number.isSafeInteger, ki = $i ? Number.isSafeInteger : function(e) {
|
|
3096
3131
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3097
|
-
},
|
|
3132
|
+
}, ht = !0;
|
|
3098
3133
|
try {
|
|
3099
|
-
var
|
|
3100
|
-
|
|
3134
|
+
var ji = Gr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3135
|
+
ht = ((Ye = ji.exec("a")) === null || Ye === void 0 ? void 0 : Ye[0]) === "a";
|
|
3101
3136
|
} catch (e) {
|
|
3102
|
-
|
|
3137
|
+
ht = !1;
|
|
3103
3138
|
}
|
|
3104
|
-
var
|
|
3139
|
+
var Wt = Ci ? (
|
|
3105
3140
|
// Native
|
|
3106
3141
|
function(t, r, n) {
|
|
3107
3142
|
return t.startsWith(r, n);
|
|
@@ -3111,7 +3146,7 @@ var Gt = Pi ? (
|
|
|
3111
3146
|
function(t, r, n) {
|
|
3112
3147
|
return t.slice(n, n + r.length) === r;
|
|
3113
3148
|
}
|
|
3114
|
-
),
|
|
3149
|
+
), ct = Fi ? String.fromCodePoint : (
|
|
3115
3150
|
// IE11
|
|
3116
3151
|
function() {
|
|
3117
3152
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3123,9 +3158,9 @@ var Gt = Pi ? (
|
|
|
3123
3158
|
}
|
|
3124
3159
|
return n;
|
|
3125
3160
|
}
|
|
3126
|
-
),
|
|
3161
|
+
), Vt = (
|
|
3127
3162
|
// native
|
|
3128
|
-
|
|
3163
|
+
Ri ? Object.fromEntries : (
|
|
3129
3164
|
// Ponyfill
|
|
3130
3165
|
function(t) {
|
|
3131
3166
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3135,7 +3170,7 @@ var Gt = Pi ? (
|
|
|
3135
3170
|
return r;
|
|
3136
3171
|
}
|
|
3137
3172
|
)
|
|
3138
|
-
),
|
|
3173
|
+
), Dr = Ui ? (
|
|
3139
3174
|
// Native
|
|
3140
3175
|
function(t, r) {
|
|
3141
3176
|
return t.codePointAt(r);
|
|
@@ -3149,7 +3184,7 @@ var Gt = Pi ? (
|
|
|
3149
3184
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3150
3185
|
}
|
|
3151
3186
|
}
|
|
3152
|
-
),
|
|
3187
|
+
), Wi = Di ? (
|
|
3153
3188
|
// Native
|
|
3154
3189
|
function(t) {
|
|
3155
3190
|
return t.trimStart();
|
|
@@ -3157,9 +3192,9 @@ var Gt = Pi ? (
|
|
|
3157
3192
|
) : (
|
|
3158
3193
|
// Ponyfill
|
|
3159
3194
|
function(t) {
|
|
3160
|
-
return t.replace(
|
|
3195
|
+
return t.replace(Oi, "");
|
|
3161
3196
|
}
|
|
3162
|
-
),
|
|
3197
|
+
), Vi = Gi ? (
|
|
3163
3198
|
// Native
|
|
3164
3199
|
function(t) {
|
|
3165
3200
|
return t.trimEnd();
|
|
@@ -3167,32 +3202,32 @@ var Gt = Pi ? (
|
|
|
3167
3202
|
) : (
|
|
3168
3203
|
// Ponyfill
|
|
3169
3204
|
function(t) {
|
|
3170
|
-
return t.replace(
|
|
3205
|
+
return t.replace(Li, "");
|
|
3171
3206
|
}
|
|
3172
3207
|
);
|
|
3173
|
-
function
|
|
3208
|
+
function Gr(e, t) {
|
|
3174
3209
|
return new RegExp(e, t);
|
|
3175
3210
|
}
|
|
3176
|
-
var
|
|
3177
|
-
if (
|
|
3178
|
-
var
|
|
3179
|
-
|
|
3211
|
+
var ft;
|
|
3212
|
+
if (ht) {
|
|
3213
|
+
var Xt = Gr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3214
|
+
ft = function(t, r) {
|
|
3180
3215
|
var n;
|
|
3181
|
-
|
|
3182
|
-
var i =
|
|
3216
|
+
Xt.lastIndex = r;
|
|
3217
|
+
var i = Xt.exec(t);
|
|
3183
3218
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3184
3219
|
};
|
|
3185
3220
|
} else
|
|
3186
|
-
|
|
3221
|
+
ft = function(t, r) {
|
|
3187
3222
|
for (var n = []; ; ) {
|
|
3188
|
-
var i =
|
|
3189
|
-
if (i === void 0 ||
|
|
3223
|
+
var i = Dr(t, r);
|
|
3224
|
+
if (i === void 0 || $r(i) || Qi(i))
|
|
3190
3225
|
break;
|
|
3191
3226
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3192
3227
|
}
|
|
3193
|
-
return
|
|
3228
|
+
return ct.apply(void 0, n);
|
|
3194
3229
|
};
|
|
3195
|
-
var
|
|
3230
|
+
var Xi = (
|
|
3196
3231
|
/** @class */
|
|
3197
3232
|
function() {
|
|
3198
3233
|
function e(t, r) {
|
|
@@ -3216,14 +3251,14 @@ var ki = (
|
|
|
3216
3251
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3217
3252
|
var s = this.clonePosition();
|
|
3218
3253
|
this.bump(), i.push({
|
|
3219
|
-
type:
|
|
3254
|
+
type: S.pound,
|
|
3220
3255
|
location: x(s, this.clonePosition())
|
|
3221
3256
|
});
|
|
3222
3257
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3223
3258
|
if (n)
|
|
3224
3259
|
break;
|
|
3225
3260
|
return this.error(_.UNMATCHED_CLOSING_TAG, x(this.clonePosition(), this.clonePosition()));
|
|
3226
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3261
|
+
} else if (o === 60 && !this.ignoreTag && dt(this.peek() || 0)) {
|
|
3227
3262
|
var a = this.parseTag(t, r);
|
|
3228
3263
|
if (a.err)
|
|
3229
3264
|
return a;
|
|
@@ -3244,7 +3279,7 @@ var ki = (
|
|
|
3244
3279
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3245
3280
|
return {
|
|
3246
3281
|
val: {
|
|
3247
|
-
type:
|
|
3282
|
+
type: S.literal,
|
|
3248
3283
|
value: "<".concat(i, "/>"),
|
|
3249
3284
|
location: x(n, this.clonePosition())
|
|
3250
3285
|
},
|
|
@@ -3256,12 +3291,12 @@ var ki = (
|
|
|
3256
3291
|
return o;
|
|
3257
3292
|
var a = o.val, s = this.clonePosition();
|
|
3258
3293
|
if (this.bumpIf("</")) {
|
|
3259
|
-
if (this.isEOF() || !
|
|
3294
|
+
if (this.isEOF() || !dt(this.char()))
|
|
3260
3295
|
return this.error(_.INVALID_TAG, x(s, this.clonePosition()));
|
|
3261
3296
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3262
3297
|
return i !== u ? this.error(_.UNMATCHED_CLOSING_TAG, x(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3263
3298
|
val: {
|
|
3264
|
-
type:
|
|
3299
|
+
type: S.tag,
|
|
3265
3300
|
value: i,
|
|
3266
3301
|
children: a,
|
|
3267
3302
|
location: x(n, this.clonePosition())
|
|
@@ -3274,7 +3309,7 @@ var ki = (
|
|
|
3274
3309
|
return this.error(_.INVALID_TAG, x(n, this.clonePosition()));
|
|
3275
3310
|
}, e.prototype.parseTagName = function() {
|
|
3276
3311
|
var t = this.offset();
|
|
3277
|
-
for (this.bump(); !this.isEOF() &&
|
|
3312
|
+
for (this.bump(); !this.isEOF() && Zi(this.char()); )
|
|
3278
3313
|
this.bump();
|
|
3279
3314
|
return this.message.slice(t, this.offset());
|
|
3280
3315
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3298,12 +3333,12 @@ var ki = (
|
|
|
3298
3333
|
}
|
|
3299
3334
|
var l = x(n, this.clonePosition());
|
|
3300
3335
|
return {
|
|
3301
|
-
val: { type:
|
|
3336
|
+
val: { type: S.literal, value: i, location: l },
|
|
3302
3337
|
err: null
|
|
3303
3338
|
};
|
|
3304
3339
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3305
3340
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3306
|
-
!
|
|
3341
|
+
!zi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3307
3342
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3308
3343
|
if (this.isEOF() || this.char() !== 39)
|
|
3309
3344
|
return null;
|
|
@@ -3337,12 +3372,12 @@ var ki = (
|
|
|
3337
3372
|
r.push(n);
|
|
3338
3373
|
this.bump();
|
|
3339
3374
|
}
|
|
3340
|
-
return
|
|
3375
|
+
return ct.apply(void 0, r);
|
|
3341
3376
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3342
3377
|
if (this.isEOF())
|
|
3343
3378
|
return null;
|
|
3344
3379
|
var n = this.char();
|
|
3345
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3380
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ct(n));
|
|
3346
3381
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3347
3382
|
var n = this.clonePosition();
|
|
3348
3383
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3358,7 +3393,7 @@ var ki = (
|
|
|
3358
3393
|
case 125:
|
|
3359
3394
|
return this.bump(), {
|
|
3360
3395
|
val: {
|
|
3361
|
-
type:
|
|
3396
|
+
type: S.argument,
|
|
3362
3397
|
// value does not include the opening and closing braces.
|
|
3363
3398
|
value: i,
|
|
3364
3399
|
location: x(n, this.clonePosition())
|
|
@@ -3371,7 +3406,7 @@ var ki = (
|
|
|
3371
3406
|
return this.error(_.MALFORMED_ARGUMENT, x(n, this.clonePosition()));
|
|
3372
3407
|
}
|
|
3373
3408
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3374
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3409
|
+
var t = this.clonePosition(), r = this.offset(), n = ft(this.message, r), i = r + n.length;
|
|
3375
3410
|
this.bumpTo(i);
|
|
3376
3411
|
var o = this.clonePosition(), a = x(t, o);
|
|
3377
3412
|
return { value: n, location: a };
|
|
@@ -3390,46 +3425,46 @@ var ki = (
|
|
|
3390
3425
|
var h = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
|
|
3391
3426
|
if (d.err)
|
|
3392
3427
|
return d;
|
|
3393
|
-
var f =
|
|
3428
|
+
var f = Vi(d.val);
|
|
3394
3429
|
if (f.length === 0)
|
|
3395
3430
|
return this.error(_.EXPECT_ARGUMENT_STYLE, x(this.clonePosition(), this.clonePosition()));
|
|
3396
|
-
var
|
|
3397
|
-
u = { style: f, styleLocation:
|
|
3431
|
+
var m = x(h, this.clonePosition());
|
|
3432
|
+
u = { style: f, styleLocation: m };
|
|
3398
3433
|
}
|
|
3399
3434
|
var g = this.tryParseArgumentClose(i);
|
|
3400
3435
|
if (g.err)
|
|
3401
3436
|
return g;
|
|
3402
|
-
var
|
|
3403
|
-
if (u &&
|
|
3404
|
-
var
|
|
3437
|
+
var v = x(i, this.clonePosition());
|
|
3438
|
+
if (u && Wt(u == null ? void 0 : u.style, "::", 0)) {
|
|
3439
|
+
var B = Wi(u.style.slice(2));
|
|
3405
3440
|
if (s === "number") {
|
|
3406
|
-
var d = this.parseNumberSkeletonFromString(
|
|
3441
|
+
var d = this.parseNumberSkeletonFromString(B, u.styleLocation);
|
|
3407
3442
|
return d.err ? d : {
|
|
3408
|
-
val: { type:
|
|
3443
|
+
val: { type: S.number, value: n, location: v, style: d.val },
|
|
3409
3444
|
err: null
|
|
3410
3445
|
};
|
|
3411
3446
|
} else {
|
|
3412
|
-
if (
|
|
3413
|
-
return this.error(_.EXPECT_DATE_TIME_SKELETON,
|
|
3414
|
-
var
|
|
3415
|
-
this.locale && (
|
|
3447
|
+
if (B.length === 0)
|
|
3448
|
+
return this.error(_.EXPECT_DATE_TIME_SKELETON, v);
|
|
3449
|
+
var N = B;
|
|
3450
|
+
this.locale && (N = Hi(B, this.locale));
|
|
3416
3451
|
var f = {
|
|
3417
|
-
type:
|
|
3418
|
-
pattern:
|
|
3452
|
+
type: ne.dateTime,
|
|
3453
|
+
pattern: N,
|
|
3419
3454
|
location: u.styleLocation,
|
|
3420
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3421
|
-
},
|
|
3455
|
+
parsedOptions: this.shouldParseSkeletons ? Ni(N) : {}
|
|
3456
|
+
}, b = s === "date" ? S.date : S.time;
|
|
3422
3457
|
return {
|
|
3423
|
-
val: { type:
|
|
3458
|
+
val: { type: b, value: n, location: v, style: f },
|
|
3424
3459
|
err: null
|
|
3425
3460
|
};
|
|
3426
3461
|
}
|
|
3427
3462
|
}
|
|
3428
3463
|
return {
|
|
3429
3464
|
val: {
|
|
3430
|
-
type: s === "number" ?
|
|
3465
|
+
type: s === "number" ? S.number : s === "date" ? S.date : S.time,
|
|
3431
3466
|
value: n,
|
|
3432
|
-
location:
|
|
3467
|
+
location: v,
|
|
3433
3468
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
3434
3469
|
},
|
|
3435
3470
|
err: null
|
|
@@ -3438,21 +3473,21 @@ var ki = (
|
|
|
3438
3473
|
case "plural":
|
|
3439
3474
|
case "selectordinal":
|
|
3440
3475
|
case "select": {
|
|
3441
|
-
var
|
|
3476
|
+
var E = this.clonePosition();
|
|
3442
3477
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3443
|
-
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, x(
|
|
3478
|
+
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, x(E, Pe({}, E)));
|
|
3444
3479
|
this.bumpSpace();
|
|
3445
|
-
var
|
|
3446
|
-
if (s !== "select" &&
|
|
3480
|
+
var w = this.parseIdentifierIfPossible(), P = 0;
|
|
3481
|
+
if (s !== "select" && w.value === "offset") {
|
|
3447
3482
|
if (!this.bumpIf(":"))
|
|
3448
3483
|
return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, x(this.clonePosition(), this.clonePosition()));
|
|
3449
3484
|
this.bumpSpace();
|
|
3450
3485
|
var d = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3451
3486
|
if (d.err)
|
|
3452
3487
|
return d;
|
|
3453
|
-
this.bumpSpace(),
|
|
3488
|
+
this.bumpSpace(), w = this.parseIdentifierIfPossible(), P = d.val;
|
|
3454
3489
|
}
|
|
3455
|
-
var z = this.tryParsePluralOrSelectOptions(t, s, r,
|
|
3490
|
+
var z = this.tryParsePluralOrSelectOptions(t, s, r, w);
|
|
3456
3491
|
if (z.err)
|
|
3457
3492
|
return z;
|
|
3458
3493
|
var g = this.tryParseArgumentClose(i);
|
|
@@ -3461,18 +3496,18 @@ var ki = (
|
|
|
3461
3496
|
var Y = x(i, this.clonePosition());
|
|
3462
3497
|
return s === "select" ? {
|
|
3463
3498
|
val: {
|
|
3464
|
-
type:
|
|
3499
|
+
type: S.select,
|
|
3465
3500
|
value: n,
|
|
3466
|
-
options:
|
|
3501
|
+
options: Vt(z.val),
|
|
3467
3502
|
location: Y
|
|
3468
3503
|
},
|
|
3469
3504
|
err: null
|
|
3470
3505
|
} : {
|
|
3471
3506
|
val: {
|
|
3472
|
-
type:
|
|
3507
|
+
type: S.plural,
|
|
3473
3508
|
value: n,
|
|
3474
|
-
options:
|
|
3475
|
-
offset:
|
|
3509
|
+
options: Vt(z.val),
|
|
3510
|
+
offset: P,
|
|
3476
3511
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3477
3512
|
location: Y
|
|
3478
3513
|
},
|
|
@@ -3522,16 +3557,16 @@ var ki = (
|
|
|
3522
3557
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3523
3558
|
var n = [];
|
|
3524
3559
|
try {
|
|
3525
|
-
n =
|
|
3560
|
+
n = Ii(t);
|
|
3526
3561
|
} catch (i) {
|
|
3527
3562
|
return this.error(_.INVALID_NUMBER_SKELETON, r);
|
|
3528
3563
|
}
|
|
3529
3564
|
return {
|
|
3530
3565
|
val: {
|
|
3531
|
-
type:
|
|
3566
|
+
type: ne.number,
|
|
3532
3567
|
tokens: n,
|
|
3533
3568
|
location: r,
|
|
3534
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3569
|
+
parsedOptions: this.shouldParseSkeletons ? Pi(n) : {}
|
|
3535
3570
|
},
|
|
3536
3571
|
err: null
|
|
3537
3572
|
};
|
|
@@ -3550,20 +3585,20 @@ var ki = (
|
|
|
3550
3585
|
if (l.has(u))
|
|
3551
3586
|
return this.error(r === "select" ? _.DUPLICATE_SELECT_ARGUMENT_SELECTOR : _.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3552
3587
|
u === "other" && (a = !0), this.bumpSpace();
|
|
3553
|
-
var
|
|
3588
|
+
var m = this.clonePosition();
|
|
3554
3589
|
if (!this.bumpIf("{"))
|
|
3555
3590
|
return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, x(this.clonePosition(), this.clonePosition()));
|
|
3556
3591
|
var g = this.parseMessage(t + 1, r, n);
|
|
3557
3592
|
if (g.err)
|
|
3558
3593
|
return g;
|
|
3559
|
-
var
|
|
3560
|
-
if (
|
|
3561
|
-
return
|
|
3594
|
+
var v = this.tryParseArgumentClose(m);
|
|
3595
|
+
if (v.err)
|
|
3596
|
+
return v;
|
|
3562
3597
|
s.push([
|
|
3563
3598
|
u,
|
|
3564
3599
|
{
|
|
3565
3600
|
value: g.val,
|
|
3566
|
-
location: x(
|
|
3601
|
+
location: x(m, this.clonePosition())
|
|
3567
3602
|
}
|
|
3568
3603
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3569
3604
|
}
|
|
@@ -3579,7 +3614,7 @@ var ki = (
|
|
|
3579
3614
|
break;
|
|
3580
3615
|
}
|
|
3581
3616
|
var l = x(i, this.clonePosition());
|
|
3582
|
-
return o ? (a *= n,
|
|
3617
|
+
return o ? (a *= n, ki(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3583
3618
|
}, e.prototype.offset = function() {
|
|
3584
3619
|
return this.position.offset;
|
|
3585
3620
|
}, e.prototype.isEOF = function() {
|
|
@@ -3594,7 +3629,7 @@ var ki = (
|
|
|
3594
3629
|
var t = this.position.offset;
|
|
3595
3630
|
if (t >= this.message.length)
|
|
3596
3631
|
throw Error("out of bound");
|
|
3597
|
-
var r =
|
|
3632
|
+
var r = Dr(this.message, t);
|
|
3598
3633
|
if (r === void 0)
|
|
3599
3634
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3600
3635
|
return r;
|
|
@@ -3613,7 +3648,7 @@ var ki = (
|
|
|
3613
3648
|
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);
|
|
3614
3649
|
}
|
|
3615
3650
|
}, e.prototype.bumpIf = function(t) {
|
|
3616
|
-
if (
|
|
3651
|
+
if (Wt(this.message, t, this.offset())) {
|
|
3617
3652
|
for (var r = 0; r < t.length; r++)
|
|
3618
3653
|
this.bump();
|
|
3619
3654
|
return !0;
|
|
@@ -3635,7 +3670,7 @@ var ki = (
|
|
|
3635
3670
|
break;
|
|
3636
3671
|
}
|
|
3637
3672
|
}, e.prototype.bumpSpace = function() {
|
|
3638
|
-
for (; !this.isEOF() &&
|
|
3673
|
+
for (; !this.isEOF() && $r(this.char()); )
|
|
3639
3674
|
this.bump();
|
|
3640
3675
|
}, e.prototype.peek = function() {
|
|
3641
3676
|
if (this.isEOF())
|
|
@@ -3645,47 +3680,47 @@ var ki = (
|
|
|
3645
3680
|
}, e;
|
|
3646
3681
|
}()
|
|
3647
3682
|
);
|
|
3648
|
-
function
|
|
3683
|
+
function dt(e) {
|
|
3649
3684
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3650
3685
|
}
|
|
3651
|
-
function
|
|
3652
|
-
return
|
|
3686
|
+
function zi(e) {
|
|
3687
|
+
return dt(e) || e === 47;
|
|
3653
3688
|
}
|
|
3654
|
-
function
|
|
3689
|
+
function Zi(e) {
|
|
3655
3690
|
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;
|
|
3656
3691
|
}
|
|
3657
|
-
function
|
|
3692
|
+
function $r(e) {
|
|
3658
3693
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3659
3694
|
}
|
|
3660
|
-
function
|
|
3695
|
+
function Qi(e) {
|
|
3661
3696
|
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;
|
|
3662
3697
|
}
|
|
3663
|
-
function
|
|
3698
|
+
function pt(e) {
|
|
3664
3699
|
e.forEach(function(t) {
|
|
3665
|
-
if (delete t.location,
|
|
3700
|
+
if (delete t.location, Hr(t) || Mr(t))
|
|
3666
3701
|
for (var r in t.options)
|
|
3667
|
-
delete t.options[r].location,
|
|
3702
|
+
delete t.options[r].location, pt(t.options[r].value);
|
|
3668
3703
|
else
|
|
3669
|
-
|
|
3704
|
+
Ar(t) && Lr(t.style) || (Tr(t) || Pr(t)) && ut(t.style) ? delete t.style.location : Or(t) && pt(t.children);
|
|
3670
3705
|
});
|
|
3671
3706
|
}
|
|
3672
|
-
function
|
|
3673
|
-
t === void 0 && (t = {}), t =
|
|
3674
|
-
var r = new
|
|
3707
|
+
function Yi(e, t) {
|
|
3708
|
+
t === void 0 && (t = {}), t = Pe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3709
|
+
var r = new Xi(e, t).parse();
|
|
3675
3710
|
if (r.err) {
|
|
3676
3711
|
var n = SyntaxError(_[r.err.kind]);
|
|
3677
3712
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3678
3713
|
}
|
|
3679
|
-
return t != null && t.captureLocation ||
|
|
3714
|
+
return t != null && t.captureLocation || pt(r.val), r.val;
|
|
3680
3715
|
}
|
|
3681
|
-
var
|
|
3716
|
+
var ie;
|
|
3682
3717
|
(function(e) {
|
|
3683
3718
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3684
|
-
})(
|
|
3685
|
-
var
|
|
3719
|
+
})(ie || (ie = {}));
|
|
3720
|
+
var Re = (
|
|
3686
3721
|
/** @class */
|
|
3687
3722
|
function(e) {
|
|
3688
|
-
|
|
3723
|
+
Fe(t, e);
|
|
3689
3724
|
function t(r, n, i) {
|
|
3690
3725
|
var o = e.call(this, r) || this;
|
|
3691
3726
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3694,48 +3729,48 @@ var Ce = (
|
|
|
3694
3729
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3695
3730
|
}, t;
|
|
3696
3731
|
}(Error)
|
|
3697
|
-
),
|
|
3732
|
+
), zt = (
|
|
3698
3733
|
/** @class */
|
|
3699
3734
|
function(e) {
|
|
3700
|
-
|
|
3735
|
+
Fe(t, e);
|
|
3701
3736
|
function t(r, n, i, o) {
|
|
3702
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3737
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ie.INVALID_VALUE, o) || this;
|
|
3703
3738
|
}
|
|
3704
3739
|
return t;
|
|
3705
|
-
}(
|
|
3706
|
-
),
|
|
3740
|
+
}(Re)
|
|
3741
|
+
), Ji = (
|
|
3707
3742
|
/** @class */
|
|
3708
3743
|
function(e) {
|
|
3709
|
-
|
|
3744
|
+
Fe(t, e);
|
|
3710
3745
|
function t(r, n, i) {
|
|
3711
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3746
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ie.INVALID_VALUE, i) || this;
|
|
3712
3747
|
}
|
|
3713
3748
|
return t;
|
|
3714
|
-
}(
|
|
3715
|
-
),
|
|
3749
|
+
}(Re)
|
|
3750
|
+
), qi = (
|
|
3716
3751
|
/** @class */
|
|
3717
3752
|
function(e) {
|
|
3718
|
-
|
|
3753
|
+
Fe(t, e);
|
|
3719
3754
|
function t(r, n) {
|
|
3720
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3755
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ie.MISSING_VALUE, n) || this;
|
|
3721
3756
|
}
|
|
3722
3757
|
return t;
|
|
3723
|
-
}(
|
|
3758
|
+
}(Re)
|
|
3724
3759
|
), O;
|
|
3725
3760
|
(function(e) {
|
|
3726
3761
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3727
3762
|
})(O || (O = {}));
|
|
3728
|
-
function
|
|
3763
|
+
function Ki(e) {
|
|
3729
3764
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3730
3765
|
var n = t[t.length - 1];
|
|
3731
3766
|
return !n || n.type !== O.literal || r.type !== O.literal ? t.push(r) : n.value += r.value, t;
|
|
3732
3767
|
}, []);
|
|
3733
3768
|
}
|
|
3734
|
-
function
|
|
3769
|
+
function eo(e) {
|
|
3735
3770
|
return typeof e == "function";
|
|
3736
3771
|
}
|
|
3737
3772
|
function Be(e, t, r, n, i, o, a) {
|
|
3738
|
-
if (e.length === 1 &&
|
|
3773
|
+
if (e.length === 1 && Gt(e[0]))
|
|
3739
3774
|
return [
|
|
3740
3775
|
{
|
|
3741
3776
|
type: O.literal,
|
|
@@ -3744,14 +3779,14 @@ function Be(e, t, r, n, i, o, a) {
|
|
|
3744
3779
|
];
|
|
3745
3780
|
for (var s = [], l = 0, u = e; l < u.length; l++) {
|
|
3746
3781
|
var h = u[l];
|
|
3747
|
-
if (
|
|
3782
|
+
if (Gt(h)) {
|
|
3748
3783
|
s.push({
|
|
3749
3784
|
type: O.literal,
|
|
3750
3785
|
value: h.value
|
|
3751
3786
|
});
|
|
3752
3787
|
continue;
|
|
3753
3788
|
}
|
|
3754
|
-
if (
|
|
3789
|
+
if (wi(h)) {
|
|
3755
3790
|
typeof o == "number" && s.push({
|
|
3756
3791
|
type: O.literal,
|
|
3757
3792
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3760,89 +3795,89 @@ function Be(e, t, r, n, i, o, a) {
|
|
|
3760
3795
|
}
|
|
3761
3796
|
var d = h.value;
|
|
3762
3797
|
if (!(i && d in i))
|
|
3763
|
-
throw new
|
|
3798
|
+
throw new qi(d, a);
|
|
3764
3799
|
var f = i[d];
|
|
3765
|
-
if (
|
|
3800
|
+
if (xi(h)) {
|
|
3766
3801
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
|
|
3767
3802
|
type: typeof f == "string" ? O.literal : O.object,
|
|
3768
3803
|
value: f
|
|
3769
3804
|
});
|
|
3770
3805
|
continue;
|
|
3771
3806
|
}
|
|
3772
|
-
if (
|
|
3773
|
-
var
|
|
3807
|
+
if (Tr(h)) {
|
|
3808
|
+
var m = typeof h.style == "string" ? n.date[h.style] : ut(h.style) ? h.style.parsedOptions : void 0;
|
|
3774
3809
|
s.push({
|
|
3775
3810
|
type: O.literal,
|
|
3776
|
-
value: r.getDateTimeFormat(t,
|
|
3811
|
+
value: r.getDateTimeFormat(t, m).format(f)
|
|
3777
3812
|
});
|
|
3778
3813
|
continue;
|
|
3779
3814
|
}
|
|
3780
|
-
if (
|
|
3781
|
-
var
|
|
3815
|
+
if (Pr(h)) {
|
|
3816
|
+
var m = typeof h.style == "string" ? n.time[h.style] : ut(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3782
3817
|
s.push({
|
|
3783
3818
|
type: O.literal,
|
|
3784
|
-
value: r.getDateTimeFormat(t,
|
|
3819
|
+
value: r.getDateTimeFormat(t, m).format(f)
|
|
3785
3820
|
});
|
|
3786
3821
|
continue;
|
|
3787
3822
|
}
|
|
3788
|
-
if (
|
|
3789
|
-
var
|
|
3790
|
-
|
|
3823
|
+
if (Ar(h)) {
|
|
3824
|
+
var m = typeof h.style == "string" ? n.number[h.style] : Lr(h.style) ? h.style.parsedOptions : void 0;
|
|
3825
|
+
m && m.scale && (f = f * (m.scale || 1)), s.push({
|
|
3791
3826
|
type: O.literal,
|
|
3792
|
-
value: r.getNumberFormat(t,
|
|
3827
|
+
value: r.getNumberFormat(t, m).format(f)
|
|
3793
3828
|
});
|
|
3794
3829
|
continue;
|
|
3795
3830
|
}
|
|
3796
|
-
if (
|
|
3797
|
-
var g = h.children,
|
|
3798
|
-
if (!
|
|
3799
|
-
throw new
|
|
3800
|
-
var
|
|
3801
|
-
return
|
|
3831
|
+
if (Or(h)) {
|
|
3832
|
+
var g = h.children, v = h.value, B = i[v];
|
|
3833
|
+
if (!eo(B))
|
|
3834
|
+
throw new Ji(v, "function", a);
|
|
3835
|
+
var N = Be(g, t, r, n, i, o), b = B(N.map(function(P) {
|
|
3836
|
+
return P.value;
|
|
3802
3837
|
}));
|
|
3803
|
-
Array.isArray(
|
|
3838
|
+
Array.isArray(b) || (b = [b]), s.push.apply(s, b.map(function(P) {
|
|
3804
3839
|
return {
|
|
3805
|
-
type: typeof
|
|
3806
|
-
value:
|
|
3840
|
+
type: typeof P == "string" ? O.literal : O.object,
|
|
3841
|
+
value: P
|
|
3807
3842
|
};
|
|
3808
3843
|
}));
|
|
3809
3844
|
}
|
|
3810
|
-
if (
|
|
3811
|
-
var
|
|
3812
|
-
if (!
|
|
3813
|
-
throw new
|
|
3814
|
-
s.push.apply(s, Be(
|
|
3845
|
+
if (Hr(h)) {
|
|
3846
|
+
var E = h.options[f] || h.options.other;
|
|
3847
|
+
if (!E)
|
|
3848
|
+
throw new zt(h.value, f, Object.keys(h.options), a);
|
|
3849
|
+
s.push.apply(s, Be(E.value, t, r, n, i));
|
|
3815
3850
|
continue;
|
|
3816
3851
|
}
|
|
3817
|
-
if (
|
|
3818
|
-
var
|
|
3819
|
-
if (!
|
|
3852
|
+
if (Mr(h)) {
|
|
3853
|
+
var E = h.options["=".concat(f)];
|
|
3854
|
+
if (!E) {
|
|
3820
3855
|
if (!Intl.PluralRules)
|
|
3821
|
-
throw new
|
|
3856
|
+
throw new Re(`Intl.PluralRules is not available in this environment.
|
|
3822
3857
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3823
|
-
`,
|
|
3824
|
-
var
|
|
3825
|
-
|
|
3858
|
+
`, ie.MISSING_INTL_API, a);
|
|
3859
|
+
var w = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3860
|
+
E = h.options[w] || h.options.other;
|
|
3826
3861
|
}
|
|
3827
|
-
if (!
|
|
3828
|
-
throw new
|
|
3829
|
-
s.push.apply(s, Be(
|
|
3862
|
+
if (!E)
|
|
3863
|
+
throw new zt(h.value, f, Object.keys(h.options), a);
|
|
3864
|
+
s.push.apply(s, Be(E.value, t, r, n, i, f - (h.offset || 0)));
|
|
3830
3865
|
continue;
|
|
3831
3866
|
}
|
|
3832
3867
|
}
|
|
3833
|
-
return
|
|
3868
|
+
return Ki(s);
|
|
3834
3869
|
}
|
|
3835
|
-
function
|
|
3836
|
-
return t ?
|
|
3837
|
-
return r[n] =
|
|
3870
|
+
function to(e, t) {
|
|
3871
|
+
return t ? G(G(G({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3872
|
+
return r[n] = G(G({}, e[n]), t[n] || {}), r;
|
|
3838
3873
|
}, {})) : e;
|
|
3839
3874
|
}
|
|
3840
|
-
function
|
|
3875
|
+
function ro(e, t) {
|
|
3841
3876
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3842
|
-
return r[n] =
|
|
3843
|
-
},
|
|
3877
|
+
return r[n] = to(e[n], t[n]), r;
|
|
3878
|
+
}, G({}, e)) : e;
|
|
3844
3879
|
}
|
|
3845
|
-
function
|
|
3880
|
+
function Je(e) {
|
|
3846
3881
|
return {
|
|
3847
3882
|
create: function() {
|
|
3848
3883
|
return {
|
|
@@ -3856,39 +3891,39 @@ function Ze(e) {
|
|
|
3856
3891
|
}
|
|
3857
3892
|
};
|
|
3858
3893
|
}
|
|
3859
|
-
function
|
|
3894
|
+
function no(e) {
|
|
3860
3895
|
return e === void 0 && (e = {
|
|
3861
3896
|
number: {},
|
|
3862
3897
|
dateTime: {},
|
|
3863
3898
|
pluralRules: {}
|
|
3864
3899
|
}), {
|
|
3865
|
-
getNumberFormat:
|
|
3900
|
+
getNumberFormat: Ze(function() {
|
|
3866
3901
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3867
3902
|
r[n] = arguments[n];
|
|
3868
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3903
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, ze([void 0], r, !1)))();
|
|
3869
3904
|
}, {
|
|
3870
|
-
cache:
|
|
3871
|
-
strategy:
|
|
3905
|
+
cache: Je(e.number),
|
|
3906
|
+
strategy: Qe.variadic
|
|
3872
3907
|
}),
|
|
3873
|
-
getDateTimeFormat:
|
|
3908
|
+
getDateTimeFormat: Ze(function() {
|
|
3874
3909
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3875
3910
|
r[n] = arguments[n];
|
|
3876
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3911
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, ze([void 0], r, !1)))();
|
|
3877
3912
|
}, {
|
|
3878
|
-
cache:
|
|
3879
|
-
strategy:
|
|
3913
|
+
cache: Je(e.dateTime),
|
|
3914
|
+
strategy: Qe.variadic
|
|
3880
3915
|
}),
|
|
3881
|
-
getPluralRules:
|
|
3916
|
+
getPluralRules: Ze(function() {
|
|
3882
3917
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3883
3918
|
r[n] = arguments[n];
|
|
3884
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3919
|
+
return new ((t = Intl.PluralRules).bind.apply(t, ze([void 0], r, !1)))();
|
|
3885
3920
|
}, {
|
|
3886
|
-
cache:
|
|
3887
|
-
strategy:
|
|
3921
|
+
cache: Je(e.pluralRules),
|
|
3922
|
+
strategy: Qe.variadic
|
|
3888
3923
|
})
|
|
3889
3924
|
};
|
|
3890
3925
|
}
|
|
3891
|
-
var
|
|
3926
|
+
var io = (
|
|
3892
3927
|
/** @class */
|
|
3893
3928
|
function() {
|
|
3894
3929
|
function e(t, r, n, i) {
|
|
@@ -3920,13 +3955,13 @@ var eo = (
|
|
|
3920
3955
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3921
3956
|
var a = i || {};
|
|
3922
3957
|
a.formatters;
|
|
3923
|
-
var s =
|
|
3924
|
-
this.ast = e.__parse(t,
|
|
3958
|
+
var s = di(a, ["formatters"]);
|
|
3959
|
+
this.ast = e.__parse(t, G(G({}, s), { locale: this.resolvedLocale }));
|
|
3925
3960
|
} else
|
|
3926
3961
|
this.ast = t;
|
|
3927
3962
|
if (!Array.isArray(this.ast))
|
|
3928
3963
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3929
|
-
this.formats =
|
|
3964
|
+
this.formats = ro(e.formats, n), this.formatters = i && i.formatters || no(this.formatterCache);
|
|
3930
3965
|
}
|
|
3931
3966
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3932
3967
|
get: function() {
|
|
@@ -3939,7 +3974,7 @@ var eo = (
|
|
|
3939
3974
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3940
3975
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3941
3976
|
}
|
|
3942
|
-
}, e.__parse =
|
|
3977
|
+
}, e.__parse = Yi, e.formats = {
|
|
3943
3978
|
number: {
|
|
3944
3979
|
integer: {
|
|
3945
3980
|
maximumFractionDigits: 0
|
|
@@ -4000,7 +4035,7 @@ var eo = (
|
|
|
4000
4035
|
}, e;
|
|
4001
4036
|
}()
|
|
4002
4037
|
);
|
|
4003
|
-
function
|
|
4038
|
+
function oo(e, t) {
|
|
4004
4039
|
if (t == null)
|
|
4005
4040
|
return;
|
|
4006
4041
|
if (t in e)
|
|
@@ -4021,92 +4056,92 @@ function to(e, t) {
|
|
|
4021
4056
|
n = void 0;
|
|
4022
4057
|
return n;
|
|
4023
4058
|
}
|
|
4024
|
-
const V = {},
|
|
4059
|
+
const V = {}, ao = (e, t, r) => r && (t in V || (V[t] = {}), e in V[t] || (V[t][e] = r), r), kr = (e, t) => {
|
|
4025
4060
|
if (t == null)
|
|
4026
4061
|
return;
|
|
4027
4062
|
if (t in V && e in V[t])
|
|
4028
4063
|
return V[t][e];
|
|
4029
|
-
const r =
|
|
4064
|
+
const r = Ue(t);
|
|
4030
4065
|
for (let n = 0; n < r.length; n++) {
|
|
4031
|
-
const i = r[n], o =
|
|
4066
|
+
const i = r[n], o = lo(i, e);
|
|
4032
4067
|
if (o)
|
|
4033
|
-
return
|
|
4068
|
+
return ao(e, t, o);
|
|
4034
4069
|
}
|
|
4035
4070
|
};
|
|
4036
|
-
let
|
|
4037
|
-
const ye =
|
|
4038
|
-
function
|
|
4039
|
-
return
|
|
4071
|
+
let yt;
|
|
4072
|
+
const ye = Ce({});
|
|
4073
|
+
function so(e) {
|
|
4074
|
+
return yt[e] || null;
|
|
4040
4075
|
}
|
|
4041
|
-
function
|
|
4042
|
-
return e in
|
|
4076
|
+
function jr(e) {
|
|
4077
|
+
return e in yt;
|
|
4043
4078
|
}
|
|
4044
|
-
function
|
|
4045
|
-
if (!
|
|
4079
|
+
function lo(e, t) {
|
|
4080
|
+
if (!jr(e))
|
|
4046
4081
|
return null;
|
|
4047
|
-
const r =
|
|
4048
|
-
return
|
|
4082
|
+
const r = so(e);
|
|
4083
|
+
return oo(r, t);
|
|
4049
4084
|
}
|
|
4050
|
-
function
|
|
4085
|
+
function uo(e) {
|
|
4051
4086
|
if (e == null)
|
|
4052
4087
|
return;
|
|
4053
|
-
const t =
|
|
4088
|
+
const t = Ue(e);
|
|
4054
4089
|
for (let r = 0; r < t.length; r++) {
|
|
4055
4090
|
const n = t[r];
|
|
4056
|
-
if (
|
|
4091
|
+
if (jr(n))
|
|
4057
4092
|
return n;
|
|
4058
4093
|
}
|
|
4059
4094
|
}
|
|
4060
|
-
function
|
|
4061
|
-
delete V[e], ye.update((r) => (r[e] =
|
|
4095
|
+
function Wr(e, ...t) {
|
|
4096
|
+
delete V[e], ye.update((r) => (r[e] = fi.all([r[e] || {}, ...t]), r));
|
|
4062
4097
|
}
|
|
4063
|
-
|
|
4098
|
+
se(
|
|
4064
4099
|
[ye],
|
|
4065
4100
|
([e]) => Object.keys(e)
|
|
4066
4101
|
);
|
|
4067
|
-
ye.subscribe((e) =>
|
|
4102
|
+
ye.subscribe((e) => yt = e);
|
|
4068
4103
|
const Ae = {};
|
|
4069
|
-
function
|
|
4104
|
+
function ho(e, t) {
|
|
4070
4105
|
Ae[e].delete(t), Ae[e].size === 0 && delete Ae[e];
|
|
4071
4106
|
}
|
|
4072
|
-
function
|
|
4107
|
+
function Vr(e) {
|
|
4073
4108
|
return Ae[e];
|
|
4074
4109
|
}
|
|
4075
|
-
function
|
|
4076
|
-
return
|
|
4077
|
-
const r =
|
|
4110
|
+
function co(e) {
|
|
4111
|
+
return Ue(e).map((t) => {
|
|
4112
|
+
const r = Vr(t);
|
|
4078
4113
|
return [t, r ? [...r] : []];
|
|
4079
4114
|
}).filter(([, t]) => t.length > 0);
|
|
4080
4115
|
}
|
|
4081
|
-
function
|
|
4082
|
-
return e == null ? !1 :
|
|
4116
|
+
function mt(e) {
|
|
4117
|
+
return e == null ? !1 : Ue(e).some(
|
|
4083
4118
|
(t) => {
|
|
4084
4119
|
var r;
|
|
4085
|
-
return (r =
|
|
4120
|
+
return (r = Vr(t)) == null ? void 0 : r.size;
|
|
4086
4121
|
}
|
|
4087
4122
|
);
|
|
4088
4123
|
}
|
|
4089
|
-
function
|
|
4124
|
+
function fo(e, t) {
|
|
4090
4125
|
return Promise.all(
|
|
4091
|
-
t.map((n) => (
|
|
4092
|
-
).then((n) =>
|
|
4093
|
-
}
|
|
4094
|
-
const
|
|
4095
|
-
function
|
|
4096
|
-
if (!
|
|
4097
|
-
return e in
|
|
4098
|
-
const t =
|
|
4099
|
-
return
|
|
4126
|
+
t.map((n) => (ho(e, n), n().then((i) => i.default || i)))
|
|
4127
|
+
).then((n) => Wr(e, ...n));
|
|
4128
|
+
}
|
|
4129
|
+
const ce = {};
|
|
4130
|
+
function Xr(e) {
|
|
4131
|
+
if (!mt(e))
|
|
4132
|
+
return e in ce ? ce[e] : Promise.resolve();
|
|
4133
|
+
const t = co(e);
|
|
4134
|
+
return ce[e] = Promise.all(
|
|
4100
4135
|
t.map(
|
|
4101
|
-
([r, n]) =>
|
|
4136
|
+
([r, n]) => fo(r, n)
|
|
4102
4137
|
)
|
|
4103
4138
|
).then(() => {
|
|
4104
|
-
if (
|
|
4105
|
-
return
|
|
4106
|
-
delete
|
|
4107
|
-
}),
|
|
4139
|
+
if (mt(e))
|
|
4140
|
+
return Xr(e);
|
|
4141
|
+
delete ce[e];
|
|
4142
|
+
}), ce[e];
|
|
4108
4143
|
}
|
|
4109
|
-
const
|
|
4144
|
+
const po = {
|
|
4110
4145
|
number: {
|
|
4111
4146
|
scientific: { notation: "scientific" },
|
|
4112
4147
|
engineering: { notation: "engineering" },
|
|
@@ -4135,135 +4170,135 @@ const uo = {
|
|
|
4135
4170
|
timeZoneName: "short"
|
|
4136
4171
|
}
|
|
4137
4172
|
}
|
|
4138
|
-
},
|
|
4173
|
+
}, mo = {
|
|
4139
4174
|
fallbackLocale: null,
|
|
4140
4175
|
loadingDelay: 200,
|
|
4141
|
-
formats:
|
|
4176
|
+
formats: po,
|
|
4142
4177
|
warnOnMissingMessages: !0,
|
|
4143
4178
|
handleMissingMessage: void 0,
|
|
4144
4179
|
ignoreTag: !0
|
|
4145
|
-
},
|
|
4146
|
-
function
|
|
4147
|
-
return
|
|
4148
|
-
}
|
|
4149
|
-
const
|
|
4150
|
-
var
|
|
4151
|
-
for (var r in t)
|
|
4152
|
-
|
|
4153
|
-
if (
|
|
4154
|
-
for (var r of
|
|
4155
|
-
|
|
4180
|
+
}, go = mo;
|
|
4181
|
+
function oe() {
|
|
4182
|
+
return go;
|
|
4183
|
+
}
|
|
4184
|
+
const qe = Ce(!1);
|
|
4185
|
+
var vo = Object.defineProperty, bo = Object.defineProperties, yo = Object.getOwnPropertyDescriptors, Zt = Object.getOwnPropertySymbols, _o = Object.prototype.hasOwnProperty, xo = Object.prototype.propertyIsEnumerable, Qt = (e, t, r) => t in e ? vo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, wo = (e, t) => {
|
|
4186
|
+
for (var r in t || (t = {}))
|
|
4187
|
+
_o.call(t, r) && Qt(e, r, t[r]);
|
|
4188
|
+
if (Zt)
|
|
4189
|
+
for (var r of Zt(t))
|
|
4190
|
+
xo.call(t, r) && Qt(e, r, t[r]);
|
|
4156
4191
|
return e;
|
|
4157
|
-
},
|
|
4158
|
-
let
|
|
4159
|
-
const He =
|
|
4160
|
-
function
|
|
4192
|
+
}, Eo = (e, t) => bo(e, yo(t));
|
|
4193
|
+
let gt;
|
|
4194
|
+
const He = Ce(null);
|
|
4195
|
+
function Yt(e) {
|
|
4161
4196
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4162
4197
|
}
|
|
4163
|
-
function
|
|
4164
|
-
const r =
|
|
4165
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4198
|
+
function Ue(e, t = oe().fallbackLocale) {
|
|
4199
|
+
const r = Yt(e);
|
|
4200
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Yt(t)])] : r;
|
|
4166
4201
|
}
|
|
4167
4202
|
function Q() {
|
|
4168
|
-
return
|
|
4203
|
+
return gt != null ? gt : void 0;
|
|
4169
4204
|
}
|
|
4170
4205
|
He.subscribe((e) => {
|
|
4171
|
-
|
|
4206
|
+
gt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4172
4207
|
});
|
|
4173
|
-
const
|
|
4174
|
-
if (e &&
|
|
4175
|
-
const { loadingDelay: t } =
|
|
4208
|
+
const No = (e) => {
|
|
4209
|
+
if (e && uo(e) && mt(e)) {
|
|
4210
|
+
const { loadingDelay: t } = oe();
|
|
4176
4211
|
let r;
|
|
4177
4212
|
return typeof window != "undefined" && Q() != null && t ? r = window.setTimeout(
|
|
4178
|
-
() =>
|
|
4213
|
+
() => qe.set(!0),
|
|
4179
4214
|
t
|
|
4180
|
-
) :
|
|
4215
|
+
) : qe.set(!0), Xr(e).then(() => {
|
|
4181
4216
|
He.set(e);
|
|
4182
4217
|
}).finally(() => {
|
|
4183
|
-
clearTimeout(r),
|
|
4218
|
+
clearTimeout(r), qe.set(!1);
|
|
4184
4219
|
});
|
|
4185
4220
|
}
|
|
4186
4221
|
return He.set(e);
|
|
4187
|
-
},
|
|
4188
|
-
set:
|
|
4189
|
-
}),
|
|
4222
|
+
}, le = Eo(wo({}, He), {
|
|
4223
|
+
set: No
|
|
4224
|
+
}), De = (e) => {
|
|
4190
4225
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4191
4226
|
return (n) => {
|
|
4192
4227
|
const i = JSON.stringify(n);
|
|
4193
4228
|
return i in t ? t[i] : t[i] = e(n);
|
|
4194
4229
|
};
|
|
4195
4230
|
};
|
|
4196
|
-
var
|
|
4231
|
+
var So = Object.defineProperty, Me = Object.getOwnPropertySymbols, zr = Object.prototype.hasOwnProperty, Zr = Object.prototype.propertyIsEnumerable, Jt = (e, t, r) => t in e ? So(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, _t = (e, t) => {
|
|
4197
4232
|
for (var r in t || (t = {}))
|
|
4198
|
-
|
|
4199
|
-
if (
|
|
4200
|
-
for (var r of
|
|
4201
|
-
|
|
4233
|
+
zr.call(t, r) && Jt(e, r, t[r]);
|
|
4234
|
+
if (Me)
|
|
4235
|
+
for (var r of Me(t))
|
|
4236
|
+
Zr.call(t, r) && Jt(e, r, t[r]);
|
|
4202
4237
|
return e;
|
|
4203
|
-
},
|
|
4238
|
+
}, ue = (e, t) => {
|
|
4204
4239
|
var r = {};
|
|
4205
4240
|
for (var n in e)
|
|
4206
|
-
|
|
4207
|
-
if (e != null &&
|
|
4208
|
-
for (var n of
|
|
4209
|
-
t.indexOf(n) < 0 &&
|
|
4241
|
+
zr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4242
|
+
if (e != null && Me)
|
|
4243
|
+
for (var n of Me(e))
|
|
4244
|
+
t.indexOf(n) < 0 && Zr.call(e, n) && (r[n] = e[n]);
|
|
4210
4245
|
return r;
|
|
4211
4246
|
};
|
|
4212
|
-
const
|
|
4213
|
-
const { formats: r } =
|
|
4247
|
+
const ge = (e, t) => {
|
|
4248
|
+
const { formats: r } = oe();
|
|
4214
4249
|
if (e in r && t in r[e])
|
|
4215
4250
|
return r[e][t];
|
|
4216
4251
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4217
|
-
},
|
|
4252
|
+
}, Io = De(
|
|
4218
4253
|
(e) => {
|
|
4219
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4254
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
4220
4255
|
if (r == null)
|
|
4221
4256
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4222
|
-
return n && (i =
|
|
4257
|
+
return n && (i = ge("number", n)), new Intl.NumberFormat(r, i);
|
|
4223
4258
|
}
|
|
4224
|
-
),
|
|
4259
|
+
), Bo = De(
|
|
4225
4260
|
(e) => {
|
|
4226
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4261
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
4227
4262
|
if (r == null)
|
|
4228
4263
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4229
|
-
return n ? i =
|
|
4264
|
+
return n ? i = ge("date", n) : Object.keys(i).length === 0 && (i = ge("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4230
4265
|
}
|
|
4231
|
-
),
|
|
4266
|
+
), Ao = De(
|
|
4232
4267
|
(e) => {
|
|
4233
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4268
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
4234
4269
|
if (r == null)
|
|
4235
4270
|
throw new Error(
|
|
4236
4271
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4237
4272
|
);
|
|
4238
|
-
return n ? i =
|
|
4273
|
+
return n ? i = ge("time", n) : Object.keys(i).length === 0 && (i = ge("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4239
4274
|
}
|
|
4240
|
-
),
|
|
4275
|
+
), To = (e = {}) => {
|
|
4241
4276
|
var t = e, {
|
|
4242
4277
|
locale: r = Q()
|
|
4243
|
-
} = t, n =
|
|
4278
|
+
} = t, n = ue(t, [
|
|
4244
4279
|
"locale"
|
|
4245
4280
|
]);
|
|
4246
|
-
return
|
|
4247
|
-
},
|
|
4281
|
+
return Io(_t({ locale: r }, n));
|
|
4282
|
+
}, Po = (e = {}) => {
|
|
4248
4283
|
var t = e, {
|
|
4249
4284
|
locale: r = Q()
|
|
4250
|
-
} = t, n =
|
|
4285
|
+
} = t, n = ue(t, [
|
|
4251
4286
|
"locale"
|
|
4252
4287
|
]);
|
|
4253
|
-
return
|
|
4254
|
-
},
|
|
4288
|
+
return Bo(_t({ locale: r }, n));
|
|
4289
|
+
}, Ho = (e = {}) => {
|
|
4255
4290
|
var t = e, {
|
|
4256
4291
|
locale: r = Q()
|
|
4257
|
-
} = t, n =
|
|
4292
|
+
} = t, n = ue(t, [
|
|
4258
4293
|
"locale"
|
|
4259
4294
|
]);
|
|
4260
|
-
return
|
|
4261
|
-
},
|
|
4295
|
+
return Ao(_t({ locale: r }, n));
|
|
4296
|
+
}, Mo = De(
|
|
4262
4297
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4263
|
-
(e, t = Q()) => new
|
|
4264
|
-
ignoreTag:
|
|
4298
|
+
(e, t = Q()) => new io(e, t, oe().formats, {
|
|
4299
|
+
ignoreTag: oe().ignoreTag
|
|
4265
4300
|
})
|
|
4266
|
-
),
|
|
4301
|
+
), Oo = (e, t = {}) => {
|
|
4267
4302
|
var r, n, i, o;
|
|
4268
4303
|
let a = t;
|
|
4269
4304
|
typeof e == "object" && (a = e, e = a.id);
|
|
@@ -4276,9 +4311,9 @@ const be = (e, t) => {
|
|
|
4276
4311
|
throw new Error(
|
|
4277
4312
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4278
4313
|
);
|
|
4279
|
-
let h =
|
|
4314
|
+
let h = kr(e, l);
|
|
4280
4315
|
if (!h)
|
|
4281
|
-
h = (o = (i = (n = (r =
|
|
4316
|
+
h = (o = (i = (n = (r = oe()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4282
4317
|
else if (typeof h != "string")
|
|
4283
4318
|
return console.warn(
|
|
4284
4319
|
`[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.`
|
|
@@ -4287,7 +4322,7 @@ const be = (e, t) => {
|
|
|
4287
4322
|
return h;
|
|
4288
4323
|
let d = h;
|
|
4289
4324
|
try {
|
|
4290
|
-
d =
|
|
4325
|
+
d = Mo(h, l).format(s);
|
|
4291
4326
|
} catch (f) {
|
|
4292
4327
|
f instanceof Error && console.warn(
|
|
4293
4328
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4295,20 +4330,20 @@ const be = (e, t) => {
|
|
|
4295
4330
|
);
|
|
4296
4331
|
}
|
|
4297
4332
|
return d;
|
|
4298
|
-
},
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
window.emWidgets = { topic:
|
|
4304
|
-
const
|
|
4305
|
-
function
|
|
4306
|
-
|
|
4307
|
-
}
|
|
4308
|
-
function
|
|
4309
|
-
|
|
4310
|
-
}
|
|
4311
|
-
const
|
|
4333
|
+
}, Lo = (e, t) => Ho(t).format(e), Co = (e, t) => Po(t).format(e), Fo = (e, t) => To(t).format(e), Ro = (e, t = Q()) => kr(e, t), Uo = se([le, ye], () => Oo);
|
|
4334
|
+
se([le], () => Lo);
|
|
4335
|
+
se([le], () => Co);
|
|
4336
|
+
se([le], () => Fo);
|
|
4337
|
+
se([le, ye], () => Ro);
|
|
4338
|
+
window.emWidgets = { topic: Qn };
|
|
4339
|
+
const qt = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4340
|
+
function Kt(e, t) {
|
|
4341
|
+
Wr(e, t);
|
|
4342
|
+
}
|
|
4343
|
+
function Do(e) {
|
|
4344
|
+
le.set(e);
|
|
4345
|
+
}
|
|
4346
|
+
const er = {
|
|
4312
4347
|
en: {
|
|
4313
4348
|
secondaryMenuTitle: "Categories"
|
|
4314
4349
|
},
|
|
@@ -4343,13 +4378,13 @@ const Yt = {
|
|
|
4343
4378
|
secondaryMenuTitle: "Categories"
|
|
4344
4379
|
}
|
|
4345
4380
|
};
|
|
4346
|
-
function
|
|
4381
|
+
function Go(e, t) {
|
|
4347
4382
|
if (e) {
|
|
4348
4383
|
const r = document.createElement("style");
|
|
4349
4384
|
r.innerHTML = t, e.appendChild(r);
|
|
4350
4385
|
}
|
|
4351
4386
|
}
|
|
4352
|
-
function
|
|
4387
|
+
function $o(e, t) {
|
|
4353
4388
|
const r = new URL(t);
|
|
4354
4389
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4355
4390
|
const i = document.createElement("style");
|
|
@@ -4358,7 +4393,7 @@ function Ro(e, t) {
|
|
|
4358
4393
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4359
4394
|
});
|
|
4360
4395
|
}
|
|
4361
|
-
function
|
|
4396
|
+
function ko(e, t, r) {
|
|
4362
4397
|
if (window.emMessageBus) {
|
|
4363
4398
|
const n = document.createElement("style");
|
|
4364
4399
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4366,51 +4401,51 @@ function Uo(e, t, r) {
|
|
|
4366
4401
|
});
|
|
4367
4402
|
}
|
|
4368
4403
|
}
|
|
4369
|
-
function
|
|
4370
|
-
|
|
4404
|
+
function jo(e) {
|
|
4405
|
+
vn(e, "svelte-5kntrg", '.NavigationWrapper{background:var(--emw--color-gray-50, #F9F8F8);width:100%}.NavigationPanel{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);width:calc(100% - 30px);max-width:450px;height:70px;z-index:30}.NavigationWindow{display:flex;flex-direction:column;background:var(--emw--color-white, #FFFFFF);position:absolute;bottom:30px;left:0;opacity:0;transform:translateY(100%);border-radius:5px 5px 0 0;transition:0.25s ease;width:100%;max-height:40vh}.NavigationWindow.NavigationWindowOpened{opacity:1;padding-bottom:60px;transform:translateY(5px)}.NavigationWindow .ModalCloseBtn{position:absolute;top:10px;right:10px;width:24px;height:24px;border-radius:100%;color:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out;z-index:1}.NavigationWindow .ModalCloseBtn svg{width:24px;height:24px;margin:50%;transform:translate(-50%, -50%)}.NavigationWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.NavigationWindow .NavigationWindowTitle{padding:16px 10px;margin:0;color:var(--emw--color-black, #000000);font-size:12px;flex-grow:0}.NavigationWindow .NavigationSecondaryWrapper{display:flex;flex-wrap:wrap;padding:0 10px;flex-grow:1;overflow-y:auto;-webkit-overflow-scrolling:touch}.NavigationPrimaryItemAnchor.NavItem0{grid-area:item0}.NavigationPrimaryItemAnchor.NavItem1{grid-area:item1}.NavigationPrimaryItemAnchor.NavItem2{grid-area:item2}.NavigationPrimaryItemAnchor.NavItem3{grid-area:item3}.NavigationPrimaryItemAnchor.NavItem4{grid-area:item4}.NavigationBar{background:var(--emw--color-white, #FFFFFF);display:grid;grid-auto-flow:column;grid-template-columns:1fr 1fr 20% 1fr 1fr;grid-template-areas:"item0 item1 . item2 item3";height:70px;border-radius:5px;position:relative}.NavigationBar.NavigationBarSimple{grid-template-columns:repeat(5, 20%);grid-template-areas:"item0 item1 item2 item3 item4"}.NavigationBar.NavigationBarOpened{box-shadow:0 0 11px rgba(0, 0, 0, 0.09)}.NavigationPrimaryItemAnchor,.NavigationSecondaryItemAnchor{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;text-decoration:none;color:var(--emw--color-black, #000000);font-size:9px;overflow:hidden;white-space:nowrap;padding-bottom:12px}.NavigationPrimaryItemAnchor .NavigationPrimaryItemImg,.NavigationPrimaryItemAnchor .NavigationSecondaryItemImg,.NavigationSecondaryItemAnchor .NavigationPrimaryItemImg,.NavigationSecondaryItemAnchor .NavigationSecondaryItemImg{width:20px}.NavigationPrimaryItemAnchor .NavigationPrimaryItemLabel,.NavigationPrimaryItemAnchor .NavigationSecondaryItemLabel,.NavigationSecondaryItemAnchor .NavigationPrimaryItemLabel,.NavigationSecondaryItemAnchor .NavigationSecondaryItemLabel{margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:100%;text-align:center}.NavigationSecondaryItemAnchor{width:25%;padding:10px 0}.ActiveItem{background-color:var(--emw--color-primary-50, var(--emw--color-pink-20, #FBECF4))}.NavigationButton{background:var(--emw--color-white, #FFFFFF);border:none;width:20%;height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);padding:0;padding-bottom:12px}.NavigationButton .middleIcon{width:32px;height:32px}.NavigationButton .middleIcon .a{fill:var(--emw--color-white, #FFFFFF);stroke:var(--emw--color-primary, #22B04E);stroke-linecap:round;stroke-linejoin:round}.NavigationButton .middleIcon .b{stroke:none}.NavigationButton .middleIcon .c{fill:none}.NavigationButton:before{border-left:8px solid transparent;border-right:8px solid transparent;border-top:8px solid var(--emw--color-gray-50, #F9F8F8);content:"";height:0;left:50%;opacity:0;position:absolute;top:0;transform:translateX(-50%);width:0}.NavigationButton.NavigationButtonActive:before{opacity:1;transition:0.7s ease}.FlowerMenu.NavigationWrapper{background:var(--emw--color-gray-50, #F9F8F8);width:100%}.FlowerMenu .NavigationPanel{position:fixed;display:flex;flex-direction:column;bottom:0;width:100%;z-index:30}.FlowerMenu .NavigationWindow{display:flex;flex-direction:column;backdrop-filter:blur(2px);background:linear-gradient(0deg, var(--emw--color-black, #000000) 0%, transparent 100%);opacity:0;transition:0.25s ease;width:100%;max-height:0vh}.FlowerMenu .NavigationWindow.NavigationWindowOpened{opacity:1;max-height:200px}.FlowerMenu .NavigationWindow.NavigationWindowOpened .NavigationSecondaryWrapper .NavigationSecondaryItemAnchor:nth-child(1){transform:translate3d(-210%, 50%, 0);transition:transform 0.1s}.FlowerMenu .NavigationWindow.NavigationWindowOpened .NavigationSecondaryWrapper .NavigationSecondaryItemAnchor:nth-child(2){transform:translate3d(-150%, -50%, 0);transition:transform 0.1s 0.1s}.FlowerMenu .NavigationWindow.NavigationWindowOpened .NavigationSecondaryWrapper .NavigationSecondaryItemAnchor:nth-child(3){transform:translate3d(-50%, -100%, 0);transition:transform 0.1s 0.2s}.FlowerMenu .NavigationWindow.NavigationWindowOpened .NavigationSecondaryWrapper .NavigationSecondaryItemAnchor:nth-child(4){transform:translate3d(50%, -50%, 0);transition:transform 0.1s 0.3s}.FlowerMenu .NavigationWindow.NavigationWindowOpened .NavigationSecondaryWrapper .NavigationSecondaryItemAnchor:nth-child(5){transform:translate3d(110%, 50%, 0);transition:transform 0.1s 0.4s}.FlowerMenu .NavigationWindow .ModalCloseBtn,.FlowerMenu .NavigationWindow .NavigationWindowTitle{display:none}.FlowerMenu .NavigationWindow .NavigationSecondaryWrapper{position:relative;width:100%;height:170px;list-style:none}.FlowerMenu .NavigationWindow .NavigationSecondaryWrapper .NavigationSecondaryItemAnchor{display:flex;width:60px;position:absolute;top:50%;left:50%;padding:0px;flex-direction:column;transform:translate(-50%, 150%)}.FlowerMenu .NavigationWindow .NavigationSecondaryWrapper .NavigationSecondaryItemAnchor .NavigationSecondaryItemLabel{width:100%;height:20px;text-wrap:pretty;line-height:10px;color:var(--emw--color-white, #FFFFFF)}.FlowerMenu .NavigationPrimaryItemAnchor.NavItem0{grid-area:item0}.FlowerMenu .NavigationPrimaryItemAnchor.NavItem1{grid-area:item1}.FlowerMenu .NavigationPrimaryItemAnchor.NavItem2{grid-area:item2}.FlowerMenu .NavigationPrimaryItemAnchor.NavItem3{grid-area:item3}.FlowerMenu .NavigationPrimaryItemAnchor.NavItem4{grid-area:item4}.FlowerMenu .NavigationBar{background:var(--emw--color-white, #FFFFFF);display:grid;grid-auto-flow:column;grid-template-columns:1fr 1fr 20% 1fr 1fr;grid-template-areas:"item0 item1 . item2 item3";border-radius:5px;position:relative}.FlowerMenu .NavigationBar.NavigationBarSimple{grid-template-columns:repeat(5, 20%);grid-template-areas:"item0 item1 item2 item3 item4"}.FlowerMenu .NavigationBar.NavigationBarOpened{box-shadow:0 0 11px rgba(0, 0, 0, 0.09)}.FlowerMenu .NavigationPrimaryItemAnchor,.FlowerMenu .NavigationSecondaryItemAnchor{display:flex;flex-direction:column;align-items:center;gap:5px;text-decoration:none;color:var(--emw--color-black, #000000);font-size:9px;overflow:hidden;white-space:nowrap;padding:10px}.FlowerMenu .NavigationPrimaryItemAnchor .NavigationPrimaryItemImg,.FlowerMenu .NavigationSecondaryItemAnchor .NavigationPrimaryItemImg{width:20px;height:20px}.FlowerMenu .NavigationPrimaryItemAnchor .NavigationSecondaryItemImgWrapper,.FlowerMenu .NavigationSecondaryItemAnchor .NavigationSecondaryItemImgWrapper{display:flex;justify-content:center;align-items:center;padding:5px;border-radius:100%;background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E))}.FlowerMenu .NavigationPrimaryItemAnchor .NavigationSecondaryItemImgWrapper .NavigationSecondaryItemImg,.FlowerMenu .NavigationSecondaryItemAnchor .NavigationSecondaryItemImgWrapper .NavigationSecondaryItemImg{width:25px;height:25px}.FlowerMenu .NavigationPrimaryItemAnchor .NavigationPrimaryItemLabel,.FlowerMenu .NavigationPrimaryItemAnchor .NavigationSecondaryItemLabel,.FlowerMenu .NavigationSecondaryItemAnchor .NavigationPrimaryItemLabel,.FlowerMenu .NavigationSecondaryItemAnchor .NavigationSecondaryItemLabel{margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:center}.FlowerMenu .NavigationButton{background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border:none;position:absolute;border-radius:100%;top:20%;left:50%;transform:translate(-50%, -50%);padding:10px}.FlowerMenu .NavigationButton .NavigationButtonSpan{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.FlowerMenu .NavigationButton .labelMiddleIcon{cursor:pointer;display:grid;align-items:center;justify-content:center;width:20px;height:20px;padding:4px;overflow:hidden}.FlowerMenu .NavigationButton .labelMiddleIcon .middleIconLine{background:var(--emw--color-white, #FFFFFF);content:"";height:2px;width:20px;grid-row-start:1;grid-column-start:1;transition:transform ease 0.2s, margin-top ease 0.2s 0.2s, width ease 0.2s 0.4s}.FlowerMenu .NavigationButton .labelMiddleIcon .middleIconLine:nth-child(1){margin-top:10px}.FlowerMenu .NavigationButton .labelMiddleIcon .middleIconLine:nth-child(2){margin:auto}.FlowerMenu .NavigationButton .labelMiddleIcon .middleIconLine:nth-child(3){margin-top:-10px}.FlowerMenu .NavigationButton .labelMiddleIconActive .middleIconLine:nth-child(1){margin-top:0px;transform:rotate(-45deg);transition:margin-top ease 0.2s 0.2s, transform ease 0.2s 0.4s}.FlowerMenu .NavigationButton .labelMiddleIconActive .middleIconLine:nth-child(2){width:0px;transition:width ease 0.2s}.FlowerMenu .NavigationButton .labelMiddleIconActive .middleIconLine:nth-child(3){margin-top:0px;transform:rotate(45deg);transition:margin-top ease 0.2s 0.2s, transform ease 0.2s 0.4s}');
|
|
4371
4406
|
}
|
|
4372
|
-
function
|
|
4407
|
+
function tr(e, t, r) {
|
|
4373
4408
|
const n = e.slice();
|
|
4374
4409
|
return n[44] = t[r], n[46] = r, n;
|
|
4375
4410
|
}
|
|
4376
|
-
function
|
|
4411
|
+
function rr(e, t, r) {
|
|
4377
4412
|
const n = e.slice();
|
|
4378
4413
|
return n[44] = t[r], n;
|
|
4379
4414
|
}
|
|
4380
|
-
const
|
|
4381
|
-
function
|
|
4415
|
+
const Wo = (e) => ({}), nr = (e) => ({});
|
|
4416
|
+
function ir(e) {
|
|
4382
4417
|
let t, r, n, i, o, a, s, l = !/*navigationBarSimple*/
|
|
4383
|
-
e[6] &&
|
|
4418
|
+
e[6] && or(e), u = Te(
|
|
4384
4419
|
/*primaryMenuSpliced*/
|
|
4385
4420
|
e[7]
|
|
4386
4421
|
), h = [];
|
|
4387
4422
|
for (let f = 0; f < u.length; f += 1)
|
|
4388
|
-
h[f] =
|
|
4423
|
+
h[f] = ur(tr(e, u, f));
|
|
4389
4424
|
let d = !/*navigationBarSimple*/
|
|
4390
|
-
e[6] &&
|
|
4425
|
+
e[6] && hr(e);
|
|
4391
4426
|
return {
|
|
4392
4427
|
c() {
|
|
4393
|
-
t =
|
|
4428
|
+
t = I("div"), l && l.c(), r = j(), n = I("div");
|
|
4394
4429
|
for (let f = 0; f < h.length; f += 1)
|
|
4395
4430
|
h[f].c();
|
|
4396
|
-
i =
|
|
4431
|
+
i = j(), d && d.c(), c(n, "class", o = "NavigationBar " + /*navigationWindowOpened*/
|
|
4397
4432
|
(e[4] ? "NavigationBarOpened" : "") + " " + /*navigationBarSimple*/
|
|
4398
4433
|
(e[6] ? "NavigationBarSimple" : "")), c(n, "part", a = "NavigationBar " + /*navigationWindowOpened*/
|
|
4399
4434
|
(e[4] ? "NavigationBarOpened" : "") + " " + /*navigationBarSimple*/
|
|
4400
4435
|
(e[6] ? "NavigationBarSimple" : "")), c(t, "class", "NavigationPanel");
|
|
4401
4436
|
},
|
|
4402
|
-
m(f,
|
|
4403
|
-
C(f, t,
|
|
4437
|
+
m(f, m) {
|
|
4438
|
+
C(f, t, m), l && l.m(t, null), y(t, r), y(t, n);
|
|
4404
4439
|
for (let g = 0; g < h.length; g += 1)
|
|
4405
4440
|
h[g] && h[g].m(n, null);
|
|
4406
4441
|
y(n, i), d && d.m(n, null), s = !0;
|
|
4407
4442
|
},
|
|
4408
|
-
p(f,
|
|
4443
|
+
p(f, m) {
|
|
4409
4444
|
if (/*navigationBarSimple*/
|
|
4410
|
-
f[6] ? l && (
|
|
4445
|
+
f[6] ? l && (gr(), pe(l, 1, 1, () => {
|
|
4411
4446
|
l = null;
|
|
4412
|
-
}),
|
|
4413
|
-
64 && X(l, 1)) : (l =
|
|
4447
|
+
}), vr()) : l ? (l.p(f, m), m[0] & /*navigationBarSimple*/
|
|
4448
|
+
64 && X(l, 1)) : (l = or(f), l.c(), X(l, 1), l.m(t, r)), m[0] & /*activeMenuItemId, primaryMenuSpliced, triggerNavigation*/
|
|
4414
4449
|
32928) {
|
|
4415
4450
|
u = Te(
|
|
4416
4451
|
/*primaryMenuSpliced*/
|
|
@@ -4418,18 +4453,18 @@ function er(e) {
|
|
|
4418
4453
|
);
|
|
4419
4454
|
let g;
|
|
4420
4455
|
for (g = 0; g < u.length; g += 1) {
|
|
4421
|
-
const
|
|
4422
|
-
h[g] ? h[g].p(
|
|
4456
|
+
const v = tr(f, u, g);
|
|
4457
|
+
h[g] ? h[g].p(v, m) : (h[g] = ur(v), h[g].c(), h[g].m(n, i));
|
|
4423
4458
|
}
|
|
4424
4459
|
for (; g < h.length; g += 1)
|
|
4425
4460
|
h[g].d(1);
|
|
4426
4461
|
h.length = u.length;
|
|
4427
4462
|
}
|
|
4428
4463
|
/*navigationBarSimple*/
|
|
4429
|
-
f[6] ? d && (d.d(1), d = null) : d ? d.p(f,
|
|
4464
|
+
f[6] ? d && (d.d(1), d = null) : d ? d.p(f, m) : (d = hr(f), d.c(), d.m(n, null)), (!s || m[0] & /*navigationWindowOpened, navigationBarSimple*/
|
|
4430
4465
|
80 && o !== (o = "NavigationBar " + /*navigationWindowOpened*/
|
|
4431
4466
|
(f[4] ? "NavigationBarOpened" : "") + " " + /*navigationBarSimple*/
|
|
4432
|
-
(f[6] ? "NavigationBarSimple" : ""))) && c(n, "class", o), (!s ||
|
|
4467
|
+
(f[6] ? "NavigationBarSimple" : ""))) && c(n, "class", o), (!s || m[0] & /*navigationWindowOpened, navigationBarSimple*/
|
|
4433
4468
|
80 && a !== (a = "NavigationBar " + /*navigationWindowOpened*/
|
|
4434
4469
|
(f[4] ? "NavigationBarOpened" : "") + " " + /*navigationBarSimple*/
|
|
4435
4470
|
(f[6] ? "NavigationBarSimple" : ""))) && c(n, "part", a);
|
|
@@ -4441,104 +4476,104 @@ function er(e) {
|
|
|
4441
4476
|
pe(l), s = !1;
|
|
4442
4477
|
},
|
|
4443
4478
|
d(f) {
|
|
4444
|
-
f && L(t), l && l.d(),
|
|
4479
|
+
f && L(t), l && l.d(), mr(h, f), d && d.d();
|
|
4445
4480
|
}
|
|
4446
4481
|
};
|
|
4447
4482
|
}
|
|
4448
|
-
function
|
|
4483
|
+
function or(e) {
|
|
4449
4484
|
let t, r, n, i, o = (
|
|
4450
4485
|
/*secondarymenutitle*/
|
|
4451
4486
|
(e[0] || /*$_*/
|
|
4452
4487
|
e[12]("secondaryMenuTitle")) + ""
|
|
4453
4488
|
), a, s, l, u, h, d, f;
|
|
4454
|
-
const
|
|
4489
|
+
const m = (
|
|
4455
4490
|
/*#slots*/
|
|
4456
4491
|
e[27].close
|
|
4457
|
-
), g =
|
|
4458
|
-
|
|
4492
|
+
), g = dn(
|
|
4493
|
+
m,
|
|
4459
4494
|
e,
|
|
4460
4495
|
/*$$scope*/
|
|
4461
4496
|
e[26],
|
|
4462
|
-
|
|
4463
|
-
),
|
|
4464
|
-
let
|
|
4497
|
+
nr
|
|
4498
|
+
), v = g || Vo();
|
|
4499
|
+
let B = Te(
|
|
4465
4500
|
/*secondaryMenu*/
|
|
4466
4501
|
e[8]
|
|
4467
|
-
),
|
|
4468
|
-
for (let
|
|
4469
|
-
|
|
4502
|
+
), N = [];
|
|
4503
|
+
for (let b = 0; b < B.length; b += 1)
|
|
4504
|
+
N[b] = sr(rr(e, B, b));
|
|
4470
4505
|
return {
|
|
4471
4506
|
c() {
|
|
4472
|
-
t =
|
|
4473
|
-
for (let
|
|
4474
|
-
|
|
4507
|
+
t = I("div"), r = I("span"), v && v.c(), n = j(), i = I("h3"), a = ve(o), s = j(), l = I("div");
|
|
4508
|
+
for (let b = 0; b < N.length; b += 1)
|
|
4509
|
+
N[b].c();
|
|
4475
4510
|
c(r, "class", "ModalCloseBtn"), c(r, "part", "ModalCloseBtn"), c(r, "role", "button"), c(i, "class", "NavigationWindowTitle"), c(l, "class", "NavigationSecondaryWrapper"), c(t, "class", u = "NavigationWindow " + /*navigationWindowOpened*/
|
|
4476
4511
|
(e[4] ? "NavigationWindowOpened" : ""));
|
|
4477
4512
|
},
|
|
4478
|
-
m(
|
|
4479
|
-
C(
|
|
4480
|
-
for (let
|
|
4481
|
-
|
|
4482
|
-
h = !0, d || (f =
|
|
4513
|
+
m(b, E) {
|
|
4514
|
+
C(b, t, E), y(t, r), v && v.m(r, null), y(t, n), y(t, i), y(i, a), y(t, s), y(t, l);
|
|
4515
|
+
for (let w = 0; w < N.length; w += 1)
|
|
4516
|
+
N[w] && N[w].m(l, null);
|
|
4517
|
+
h = !0, d || (f = Oe(
|
|
4483
4518
|
r,
|
|
4484
4519
|
"click",
|
|
4485
4520
|
/*navigationWindowToggle*/
|
|
4486
4521
|
e[14]
|
|
4487
4522
|
), d = !0);
|
|
4488
4523
|
},
|
|
4489
|
-
p(
|
|
4490
|
-
if (g && g.p && (!h ||
|
|
4491
|
-
67108864) &&
|
|
4524
|
+
p(b, E) {
|
|
4525
|
+
if (g && g.p && (!h || E[0] & /*$$scope*/
|
|
4526
|
+
67108864) && mn(
|
|
4492
4527
|
g,
|
|
4493
|
-
|
|
4494
|
-
|
|
4528
|
+
m,
|
|
4529
|
+
b,
|
|
4495
4530
|
/*$$scope*/
|
|
4496
|
-
|
|
4497
|
-
h ?
|
|
4498
|
-
|
|
4531
|
+
b[26],
|
|
4532
|
+
h ? pn(
|
|
4533
|
+
m,
|
|
4499
4534
|
/*$$scope*/
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
) :
|
|
4535
|
+
b[26],
|
|
4536
|
+
E,
|
|
4537
|
+
Wo
|
|
4538
|
+
) : gn(
|
|
4504
4539
|
/*$$scope*/
|
|
4505
|
-
|
|
4540
|
+
b[26]
|
|
4506
4541
|
),
|
|
4507
|
-
|
|
4508
|
-
), (!h ||
|
|
4542
|
+
nr
|
|
4543
|
+
), (!h || E[0] & /*secondarymenutitle, $_*/
|
|
4509
4544
|
4097) && o !== (o = /*secondarymenutitle*/
|
|
4510
|
-
(
|
|
4511
|
-
|
|
4545
|
+
(b[0] || /*$_*/
|
|
4546
|
+
b[12]("secondaryMenuTitle")) + "") && bt(a, o), E[0] & /*activeMenuItemId, secondaryMenu, triggerNavigation*/
|
|
4512
4547
|
33056) {
|
|
4513
|
-
|
|
4548
|
+
B = Te(
|
|
4514
4549
|
/*secondaryMenu*/
|
|
4515
|
-
|
|
4550
|
+
b[8]
|
|
4516
4551
|
);
|
|
4517
|
-
let
|
|
4518
|
-
for (
|
|
4519
|
-
const
|
|
4520
|
-
|
|
4552
|
+
let w;
|
|
4553
|
+
for (w = 0; w < B.length; w += 1) {
|
|
4554
|
+
const P = rr(b, B, w);
|
|
4555
|
+
N[w] ? N[w].p(P, E) : (N[w] = sr(P), N[w].c(), N[w].m(l, null));
|
|
4521
4556
|
}
|
|
4522
|
-
for (;
|
|
4523
|
-
|
|
4524
|
-
|
|
4557
|
+
for (; w < N.length; w += 1)
|
|
4558
|
+
N[w].d(1);
|
|
4559
|
+
N.length = B.length;
|
|
4525
4560
|
}
|
|
4526
|
-
(!h ||
|
|
4561
|
+
(!h || E[0] & /*navigationWindowOpened*/
|
|
4527
4562
|
16 && u !== (u = "NavigationWindow " + /*navigationWindowOpened*/
|
|
4528
|
-
(
|
|
4563
|
+
(b[4] ? "NavigationWindowOpened" : ""))) && c(t, "class", u);
|
|
4529
4564
|
},
|
|
4530
|
-
i(
|
|
4531
|
-
h || (X(
|
|
4565
|
+
i(b) {
|
|
4566
|
+
h || (X(v, b), h = !0);
|
|
4532
4567
|
},
|
|
4533
|
-
o(
|
|
4534
|
-
pe(
|
|
4568
|
+
o(b) {
|
|
4569
|
+
pe(v, b), h = !1;
|
|
4535
4570
|
},
|
|
4536
|
-
d(
|
|
4537
|
-
|
|
4571
|
+
d(b) {
|
|
4572
|
+
b && L(t), v && v.d(b), mr(N, b), d = !1, f();
|
|
4538
4573
|
}
|
|
4539
4574
|
};
|
|
4540
4575
|
}
|
|
4541
|
-
function
|
|
4576
|
+
function Vo(e) {
|
|
4542
4577
|
let t, r;
|
|
4543
4578
|
return {
|
|
4544
4579
|
c() {
|
|
@@ -4553,11 +4588,11 @@ function $o(e) {
|
|
|
4553
4588
|
}
|
|
4554
4589
|
};
|
|
4555
4590
|
}
|
|
4556
|
-
function
|
|
4591
|
+
function ar(e) {
|
|
4557
4592
|
let t, r, n, i;
|
|
4558
4593
|
return {
|
|
4559
4594
|
c() {
|
|
4560
|
-
t =
|
|
4595
|
+
t = I("div"), r = I("img"), c(r, "class", "NavigationSecondaryItemImg"), c(r, "part", "NavigationSecondaryItemImg"), te(r.src, n = /*item*/
|
|
4561
4596
|
e[44].img) || c(r, "src", n), c(r, "alt", i = /*item*/
|
|
4562
4597
|
e[44].label), c(t, "class", "NavigationSecondaryItemImgWrapper"), c(t, "part", "NavigationSecondaryItemImgWrapper");
|
|
4563
4598
|
},
|
|
@@ -4566,7 +4601,7 @@ function rr(e) {
|
|
|
4566
4601
|
},
|
|
4567
4602
|
p(o, a) {
|
|
4568
4603
|
a[0] & /*secondaryMenu*/
|
|
4569
|
-
256 && !
|
|
4604
|
+
256 && !te(r.src, n = /*item*/
|
|
4570
4605
|
o[44].img) && c(r, "src", n), a[0] & /*secondaryMenu*/
|
|
4571
4606
|
256 && i !== (i = /*item*/
|
|
4572
4607
|
o[44].label) && c(r, "alt", i);
|
|
@@ -4576,13 +4611,13 @@ function rr(e) {
|
|
|
4576
4611
|
}
|
|
4577
4612
|
};
|
|
4578
4613
|
}
|
|
4579
|
-
function
|
|
4614
|
+
function sr(e) {
|
|
4580
4615
|
let t, r, n, i = (
|
|
4581
4616
|
/*item*/
|
|
4582
4617
|
e[44].label + ""
|
|
4583
4618
|
), o, a, s, l, u, h = (
|
|
4584
4619
|
/*item*/
|
|
4585
|
-
e[44].img &&
|
|
4620
|
+
e[44].img && ar(e)
|
|
4586
4621
|
);
|
|
4587
4622
|
function d() {
|
|
4588
4623
|
return (
|
|
@@ -4595,18 +4630,18 @@ function nr(e) {
|
|
|
4595
4630
|
}
|
|
4596
4631
|
return {
|
|
4597
4632
|
c() {
|
|
4598
|
-
t =
|
|
4633
|
+
t = I("div"), h && h.c(), r = j(), n = I("p"), o = ve(i), a = j(), c(n, "class", "NavigationSecondaryItemLabel"), c(n, "part", "NavigationSecondaryItemLabel"), c(t, "class", s = "NavigationSecondaryItemAnchor " + /*activeMenuItemId*/
|
|
4599
4634
|
(e[5] === /*item*/
|
|
4600
4635
|
e[44].id ? "ActiveItem" : ""));
|
|
4601
4636
|
},
|
|
4602
|
-
m(f,
|
|
4603
|
-
C(f, t,
|
|
4637
|
+
m(f, m) {
|
|
4638
|
+
C(f, t, m), h && h.m(t, null), y(t, r), y(t, n), y(n, o), y(t, a), l || (u = Oe(t, "click", d), l = !0);
|
|
4604
4639
|
},
|
|
4605
|
-
p(f,
|
|
4640
|
+
p(f, m) {
|
|
4606
4641
|
e = f, /*item*/
|
|
4607
|
-
e[44].img ? h ? h.p(e,
|
|
4642
|
+
e[44].img ? h ? h.p(e, m) : (h = ar(e), h.c(), h.m(t, r)) : h && (h.d(1), h = null), m[0] & /*secondaryMenu*/
|
|
4608
4643
|
256 && i !== (i = /*item*/
|
|
4609
|
-
e[44].label + "") &&
|
|
4644
|
+
e[44].label + "") && bt(o, i), m[0] & /*activeMenuItemId, secondaryMenu*/
|
|
4610
4645
|
288 && s !== (s = "NavigationSecondaryItemAnchor " + /*activeMenuItemId*/
|
|
4611
4646
|
(e[5] === /*item*/
|
|
4612
4647
|
e[44].id ? "ActiveItem" : "")) && c(t, "class", s);
|
|
@@ -4616,11 +4651,11 @@ function nr(e) {
|
|
|
4616
4651
|
}
|
|
4617
4652
|
};
|
|
4618
4653
|
}
|
|
4619
|
-
function
|
|
4654
|
+
function lr(e) {
|
|
4620
4655
|
let t, r, n, i;
|
|
4621
4656
|
return {
|
|
4622
4657
|
c() {
|
|
4623
|
-
t =
|
|
4658
|
+
t = I("div"), r = I("img"), c(r, "class", "NavigationPrimaryItemImg"), te(r.src, n = /*item*/
|
|
4624
4659
|
e[44].img) || c(r, "src", n), c(r, "alt", i = /*item*/
|
|
4625
4660
|
e[44].label), c(t, "class", "NavigationPrimaryItemImgWrapper");
|
|
4626
4661
|
},
|
|
@@ -4629,7 +4664,7 @@ function ir(e) {
|
|
|
4629
4664
|
},
|
|
4630
4665
|
p(o, a) {
|
|
4631
4666
|
a[0] & /*primaryMenuSpliced*/
|
|
4632
|
-
128 && !
|
|
4667
|
+
128 && !te(r.src, n = /*item*/
|
|
4633
4668
|
o[44].img) && c(r, "src", n), a[0] & /*primaryMenuSpliced*/
|
|
4634
4669
|
128 && i !== (i = /*item*/
|
|
4635
4670
|
o[44].label) && c(r, "alt", i);
|
|
@@ -4639,13 +4674,13 @@ function ir(e) {
|
|
|
4639
4674
|
}
|
|
4640
4675
|
};
|
|
4641
4676
|
}
|
|
4642
|
-
function
|
|
4677
|
+
function ur(e) {
|
|
4643
4678
|
let t, r, n, i = (
|
|
4644
4679
|
/*item*/
|
|
4645
4680
|
e[44].label + ""
|
|
4646
4681
|
), o, a, s, l, u = (
|
|
4647
4682
|
/*item*/
|
|
4648
|
-
e[44].img &&
|
|
4683
|
+
e[44].img && lr(e)
|
|
4649
4684
|
);
|
|
4650
4685
|
function h() {
|
|
4651
4686
|
return (
|
|
@@ -4658,19 +4693,19 @@ function or(e) {
|
|
|
4658
4693
|
}
|
|
4659
4694
|
return {
|
|
4660
4695
|
c() {
|
|
4661
|
-
t =
|
|
4696
|
+
t = I("div"), u && u.c(), r = j(), n = I("p"), o = ve(i), c(n, "class", "NavigationPrimaryItemLabel"), c(t, "class", a = "NavigationPrimaryItemAnchor NavItem" + /*i*/
|
|
4662
4697
|
e[46] + " " + /*activeMenuItemId*/
|
|
4663
4698
|
(e[5] === /*item*/
|
|
4664
4699
|
e[44].id ? "ActiveItem" : ""));
|
|
4665
4700
|
},
|
|
4666
4701
|
m(d, f) {
|
|
4667
|
-
C(d, t, f), u && u.m(t, null), y(t, r), y(t, n), y(n, o), s || (l =
|
|
4702
|
+
C(d, t, f), u && u.m(t, null), y(t, r), y(t, n), y(n, o), s || (l = Oe(t, "click", h), s = !0);
|
|
4668
4703
|
},
|
|
4669
4704
|
p(d, f) {
|
|
4670
4705
|
e = d, /*item*/
|
|
4671
|
-
e[44].img ? u ? u.p(e, f) : (u =
|
|
4706
|
+
e[44].img ? u ? u.p(e, f) : (u = lr(e), u.c(), u.m(t, r)) : u && (u.d(1), u = null), f[0] & /*primaryMenuSpliced*/
|
|
4672
4707
|
128 && i !== (i = /*item*/
|
|
4673
|
-
e[44].label + "") &&
|
|
4708
|
+
e[44].label + "") && bt(o, i), f[0] & /*activeMenuItemId, primaryMenuSpliced*/
|
|
4674
4709
|
160 && a !== (a = "NavigationPrimaryItemAnchor NavItem" + /*i*/
|
|
4675
4710
|
e[46] + " " + /*activeMenuItemId*/
|
|
4676
4711
|
(e[5] === /*item*/
|
|
@@ -4681,22 +4716,22 @@ function or(e) {
|
|
|
4681
4716
|
}
|
|
4682
4717
|
};
|
|
4683
4718
|
}
|
|
4684
|
-
function
|
|
4719
|
+
function hr(e) {
|
|
4685
4720
|
let t, r, n, i, o;
|
|
4686
4721
|
function a(u, h) {
|
|
4687
4722
|
return (
|
|
4688
4723
|
/*isFlowerMenu*/
|
|
4689
|
-
u[11] ?
|
|
4724
|
+
u[11] ? Xo : zo
|
|
4690
4725
|
);
|
|
4691
4726
|
}
|
|
4692
4727
|
let s = a(e), l = s(e);
|
|
4693
4728
|
return {
|
|
4694
4729
|
c() {
|
|
4695
|
-
t =
|
|
4730
|
+
t = I("button"), r = I("span"), l.c(), c(r, "class", "NavigationButtonSpan"), c(r, "part", "NavigationButtonSpan"), c(t, "class", n = "NavigationButton " + /*navigationWindowOpened*/
|
|
4696
4731
|
(e[4] ? "NavigationButtonActive" : ""));
|
|
4697
4732
|
},
|
|
4698
4733
|
m(u, h) {
|
|
4699
|
-
C(u, t, h), y(t, r), l.m(r, null), i || (o =
|
|
4734
|
+
C(u, t, h), y(t, r), l.m(r, null), i || (o = Oe(
|
|
4700
4735
|
t,
|
|
4701
4736
|
"click",
|
|
4702
4737
|
/*navigationWindowToggle*/
|
|
@@ -4713,11 +4748,11 @@ function ar(e) {
|
|
|
4713
4748
|
}
|
|
4714
4749
|
};
|
|
4715
4750
|
}
|
|
4716
|
-
function
|
|
4751
|
+
function Xo(e) {
|
|
4717
4752
|
let t, r, n, i, o, a, s;
|
|
4718
4753
|
return {
|
|
4719
4754
|
c() {
|
|
4720
|
-
t =
|
|
4755
|
+
t = I("div"), r = I("span"), n = j(), i = I("span"), o = j(), a = I("span"), c(r, "class", "middleIconLine"), c(i, "class", "middleIconLine"), c(a, "class", "middleIconLine"), c(t, "class", s = "labelMiddleIcon " + /*navigationWindowOpened*/
|
|
4721
4756
|
(e[4] ? "labelMiddleIconActive" : ""));
|
|
4722
4757
|
},
|
|
4723
4758
|
m(l, u) {
|
|
@@ -4733,18 +4768,18 @@ function ko(e) {
|
|
|
4733
4768
|
}
|
|
4734
4769
|
};
|
|
4735
4770
|
}
|
|
4736
|
-
function
|
|
4771
|
+
function zo(e) {
|
|
4737
4772
|
let t;
|
|
4738
4773
|
function r(o, a) {
|
|
4739
4774
|
return (
|
|
4740
4775
|
/*imageIconUrl*/
|
|
4741
|
-
o[9] ?
|
|
4776
|
+
o[9] ? Qo : Zo
|
|
4742
4777
|
);
|
|
4743
4778
|
}
|
|
4744
4779
|
let n = r(e), i = n(e);
|
|
4745
4780
|
return {
|
|
4746
4781
|
c() {
|
|
4747
|
-
i.c(), t =
|
|
4782
|
+
i.c(), t = _n();
|
|
4748
4783
|
},
|
|
4749
4784
|
m(o, a) {
|
|
4750
4785
|
i.m(o, a), C(o, t, a);
|
|
@@ -4757,26 +4792,26 @@ function jo(e) {
|
|
|
4757
4792
|
}
|
|
4758
4793
|
};
|
|
4759
4794
|
}
|
|
4760
|
-
function
|
|
4761
|
-
let t, r, n, i, o, a, s, l, u, h, d, f,
|
|
4795
|
+
function Zo(e) {
|
|
4796
|
+
let t, r, n, i, o, a, s, l, u, h, d, f, m, g;
|
|
4762
4797
|
return {
|
|
4763
4798
|
c() {
|
|
4764
|
-
t = M("svg"), r = M("g"), n = M("g"), i = M("rect"), o = M("rect"), a = M("g"), s = M("rect"), l = M("rect"), u = M("g"), h = M("rect"), d = M("rect"), f = M("g"),
|
|
4799
|
+
t = M("svg"), r = M("g"), n = M("g"), i = M("rect"), o = M("rect"), a = M("g"), s = M("rect"), l = M("rect"), u = M("g"), h = M("rect"), d = M("rect"), f = M("g"), m = M("rect"), g = M("rect"), c(i, "class", "b"), c(i, "part", "b"), c(i, "width", "10"), c(i, "height", "10"), c(i, "rx", "2"), c(o, "class", "c"), c(o, "part", "c"), c(o, "x", "0.5"), c(o, "y", "0.5"), c(o, "width", "9"), c(o, "height", "9"), c(o, "rx", "1.5"), c(n, "class", "a"), c(n, "part", "a"), c(n, "transform", "translate(150 514)"), c(s, "class", "b"), c(s, "part", "b"), c(s, "width", "10"), c(s, "height", "10"), c(s, "rx", "2"), c(l, "class", "c"), c(l, "part", "c"), c(l, "x", "0.5"), c(l, "y", "0.5"), c(l, "width", "9"), c(l, "height", "9"), c(l, "rx", "1.5"), c(a, "class", "a"), c(a, "part", "a"), c(a, "transform", "translate(161 514)"), c(h, "class", "b"), c(h, "part", "b"), c(h, "width", "10"), c(h, "height", "10"), c(h, "rx", "2"), c(d, "class", "c"), c(d, "part", "c"), c(d, "x", "0.5"), c(d, "y", "0.5"), c(d, "width", "9"), c(d, "height", "9"), c(d, "rx", "1.5"), c(u, "class", "a"), c(u, "part", "a"), c(u, "transform", "translate(161 525)"), c(m, "class", "b"), c(m, "part", "b"), c(m, "width", "10"), c(m, "height", "10"), c(m, "rx", "2"), c(g, "class", "c"), c(g, "part", "c"), c(g, "x", "0.5"), c(g, "y", "0.5"), c(g, "width", "9"), c(g, "height", "9"), c(g, "rx", "1.5"), c(f, "class", "a"), c(f, "part", "a"), c(f, "transform", "translate(150 525)"), c(r, "transform", "translate(-150 -514)"), c(t, "class", "middleIcon"), c(t, "xmlns", "http://www.w3.org/2000/svg"), c(t, "width", "21"), c(t, "height", "21"), c(t, "viewBox", "0 0 21 21");
|
|
4765
4800
|
},
|
|
4766
|
-
m(
|
|
4767
|
-
C(
|
|
4801
|
+
m(v, B) {
|
|
4802
|
+
C(v, t, B), y(t, r), y(r, n), y(n, i), y(n, o), y(r, a), y(a, s), y(a, l), y(r, u), y(u, h), y(u, d), y(r, f), y(f, m), y(f, g);
|
|
4768
4803
|
},
|
|
4769
4804
|
p: D,
|
|
4770
|
-
d(
|
|
4771
|
-
|
|
4805
|
+
d(v) {
|
|
4806
|
+
v && L(t);
|
|
4772
4807
|
}
|
|
4773
4808
|
};
|
|
4774
4809
|
}
|
|
4775
|
-
function
|
|
4810
|
+
function Qo(e) {
|
|
4776
4811
|
let t, r;
|
|
4777
4812
|
return {
|
|
4778
4813
|
c() {
|
|
4779
|
-
t =
|
|
4814
|
+
t = I("img"), te(t.src, r = /*imageIconUrl*/
|
|
4780
4815
|
e[9]) || c(t, "src", r), c(t, "class", "middleIcon"), c(
|
|
4781
4816
|
t,
|
|
4782
4817
|
"alt",
|
|
@@ -4789,7 +4824,7 @@ function Vo(e) {
|
|
|
4789
4824
|
},
|
|
4790
4825
|
p(n, i) {
|
|
4791
4826
|
i[0] & /*imageIconUrl*/
|
|
4792
|
-
512 && !
|
|
4827
|
+
512 && !te(t.src, r = /*imageIconUrl*/
|
|
4793
4828
|
n[9]) && c(t, "src", r), i[0] & /*imageIconUrl*/
|
|
4794
4829
|
512 && c(
|
|
4795
4830
|
t,
|
|
@@ -4803,14 +4838,14 @@ function Vo(e) {
|
|
|
4803
4838
|
}
|
|
4804
4839
|
};
|
|
4805
4840
|
}
|
|
4806
|
-
function
|
|
4841
|
+
function Yo(e) {
|
|
4807
4842
|
let t, r, n, i = !/*isLoading*/
|
|
4808
4843
|
e[1] && /*isMobile*/
|
|
4809
4844
|
e[13] && /*showNavigation*/
|
|
4810
|
-
e[3] &&
|
|
4845
|
+
e[3] && ir(e);
|
|
4811
4846
|
return {
|
|
4812
4847
|
c() {
|
|
4813
|
-
t =
|
|
4848
|
+
t = I("div"), i && i.c(), c(t, "class", r = /*isFlowerMenu*/
|
|
4814
4849
|
(e[11] ? "FlowerMenu" : "") + " NavigationWrapper " + /*mobileLandscapeView*/
|
|
4815
4850
|
(e[10] ? "NavigationWrapperLandScape" : ""));
|
|
4816
4851
|
},
|
|
@@ -4822,9 +4857,9 @@ function Xo(e) {
|
|
|
4822
4857
|
o[1] && /*isMobile*/
|
|
4823
4858
|
o[13] && /*showNavigation*/
|
|
4824
4859
|
o[3] ? i ? (i.p(o, a), a[0] & /*isLoading, showNavigation*/
|
|
4825
|
-
10 && X(i, 1)) : (i =
|
|
4860
|
+
10 && X(i, 1)) : (i = ir(o), i.c(), X(i, 1), i.m(t, null)) : i && (gr(), pe(i, 1, 1, () => {
|
|
4826
4861
|
i = null;
|
|
4827
|
-
}),
|
|
4862
|
+
}), vr()), (!n || a[0] & /*isFlowerMenu, mobileLandscapeView*/
|
|
4828
4863
|
3072 && r !== (r = /*isFlowerMenu*/
|
|
4829
4864
|
(o[11] ? "FlowerMenu" : "") + " NavigationWrapper " + /*mobileLandscapeView*/
|
|
4830
4865
|
(o[10] ? "NavigationWrapperLandScape" : ""))) && c(t, "class", r);
|
|
@@ -4840,155 +4875,155 @@ function Xo(e) {
|
|
|
4840
4875
|
}
|
|
4841
4876
|
};
|
|
4842
4877
|
}
|
|
4843
|
-
function
|
|
4878
|
+
function Jo(e, t, r) {
|
|
4844
4879
|
let n;
|
|
4845
|
-
|
|
4846
|
-
let { $$slots: i = {}, $$scope: o } = t, { cmsendpoint: a = "" } = t, { lang: s = "" } = t, { env: l = "" } = t, { secondarymenutitle: u = "" } = t, { userroles: h = "" } = t, { mbsource: d } = t, { clientstyling: f = "" } = t, { clientstylingurl:
|
|
4847
|
-
const
|
|
4848
|
-
fetch(g).then((
|
|
4849
|
-
Object.keys(
|
|
4850
|
-
|
|
4880
|
+
fn(e, Uo, (p) => r(12, n = p));
|
|
4881
|
+
let { $$slots: i = {}, $$scope: o } = t, { cmsendpoint: a = "" } = t, { lang: s = "" } = t, { env: l = "" } = t, { secondarymenutitle: u = "" } = t, { userroles: h = "" } = t, { mbsource: d } = t, { clientstyling: f = "" } = t, { clientstylingurl: m = "" } = t, { translationurl: g = "" } = t, { activecategory: v = "" } = t, { flowermenustyle: B = "false" } = t, N = window.navigator.userAgent, b = qt(N) !== "PC", E = !0, w = !1, P = !1, z = "", Y = !1, Ge = [], _e = [], W = [], $, xt = "", $e = {}, wt, ke = !1;
|
|
4882
|
+
const Qr = () => {
|
|
4883
|
+
fetch(g).then((A) => A.json()).then((A) => {
|
|
4884
|
+
Object.keys(A).forEach((H) => {
|
|
4885
|
+
Kt(H, A[H]);
|
|
4851
4886
|
});
|
|
4852
|
-
}).catch((
|
|
4853
|
-
console.log(
|
|
4887
|
+
}).catch((A) => {
|
|
4888
|
+
console.log(A);
|
|
4854
4889
|
});
|
|
4855
4890
|
};
|
|
4856
|
-
Object.keys(
|
|
4857
|
-
|
|
4891
|
+
Object.keys(er).forEach((p) => {
|
|
4892
|
+
Kt(p, er[p]);
|
|
4858
4893
|
});
|
|
4859
|
-
const
|
|
4860
|
-
if (
|
|
4861
|
-
switch (
|
|
4894
|
+
const Et = (p) => {
|
|
4895
|
+
if (p.data)
|
|
4896
|
+
switch (p.data.type) {
|
|
4862
4897
|
case "PlayerAccountMenuActive":
|
|
4863
|
-
r(4,
|
|
4898
|
+
r(4, P = !1);
|
|
4864
4899
|
break;
|
|
4865
4900
|
case "OpenLoginRegisterModal":
|
|
4866
|
-
r(4,
|
|
4901
|
+
r(4, P = !1);
|
|
4867
4902
|
break;
|
|
4868
4903
|
case "GoToHomepage":
|
|
4869
|
-
r(4,
|
|
4904
|
+
r(4, P = !1);
|
|
4870
4905
|
break;
|
|
4871
4906
|
}
|
|
4872
|
-
},
|
|
4873
|
-
r(11,
|
|
4874
|
-
},
|
|
4875
|
-
r(4,
|
|
4907
|
+
}, Yr = () => {
|
|
4908
|
+
r(11, ke = B.toLowerCase() === "true");
|
|
4909
|
+
}, Jr = () => {
|
|
4910
|
+
r(4, P = !P), window.postMessage(
|
|
4876
4911
|
{
|
|
4877
4912
|
type: "MobileBottomNav",
|
|
4878
|
-
navigationWindowOpened:
|
|
4913
|
+
navigationWindowOpened: P
|
|
4879
4914
|
},
|
|
4880
4915
|
window.location.href
|
|
4881
4916
|
);
|
|
4882
|
-
},
|
|
4883
|
-
r(7, _e = []), r(7, _e = Y ?
|
|
4884
|
-
},
|
|
4885
|
-
|
|
4886
|
-
let
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
}), r(6, Y = W.length == 0), W.length >= 5 &&
|
|
4891
|
-
}).catch((
|
|
4892
|
-
r(1,
|
|
4917
|
+
}, qr = (p) => {
|
|
4918
|
+
r(7, _e = []), r(7, _e = Y ? p.splice(0, 5) : p.splice(0, 4)), v && Nt();
|
|
4919
|
+
}, Kr = () => {
|
|
4920
|
+
je(), r(1, E = !0);
|
|
4921
|
+
let p = qt(N), A = new URL(`${a}/${s}/bottom-mobile-menu?env=${l}`);
|
|
4922
|
+
A.searchParams.append("userRoles", h), p && A.searchParams.append("device", "mtWeb"), fetch(A.href).then((H) => H.json()).then((H) => {
|
|
4923
|
+
Ge = [], r(8, W = []), r(3, w = H.length > 0), H.forEach((R) => {
|
|
4924
|
+
$e[R.label] = R.eventTrigger ? R.path : null, R.path == "/menu-item" ? (r(9, xt = R == null ? void 0 : R.img), r(8, W = R.children)) : Ge.push(R);
|
|
4925
|
+
}), r(6, Y = W.length == 0), W.length >= 5 && ke && r(8, W = W.splice(0, 5)), qr(Ge), r(1, E = !1);
|
|
4926
|
+
}).catch((H) => {
|
|
4927
|
+
r(1, E = !1), console.error(H);
|
|
4893
4928
|
});
|
|
4894
|
-
},
|
|
4895
|
-
const
|
|
4896
|
-
|
|
4897
|
-
},
|
|
4898
|
-
|
|
4929
|
+
}, Nt = () => {
|
|
4930
|
+
const A = _e.concat(W).find((H) => H.path.includes(v));
|
|
4931
|
+
A && r(5, z = A.id);
|
|
4932
|
+
}, he = (p, A, H, R) => {
|
|
4933
|
+
$e[R] ? window.postMessage(
|
|
4899
4934
|
{
|
|
4900
4935
|
type: "MobileBottomNavigationEvent",
|
|
4901
|
-
event:
|
|
4936
|
+
event: $e[R]
|
|
4902
4937
|
},
|
|
4903
4938
|
window.location.href
|
|
4904
4939
|
) : window.postMessage(
|
|
4905
4940
|
{
|
|
4906
4941
|
type: "NavigateTo",
|
|
4907
|
-
path:
|
|
4908
|
-
target:
|
|
4909
|
-
externalLink:
|
|
4942
|
+
path: p,
|
|
4943
|
+
target: A || null,
|
|
4944
|
+
externalLink: H || !1
|
|
4910
4945
|
},
|
|
4911
4946
|
window.location.href
|
|
4912
|
-
), r(4,
|
|
4947
|
+
), r(4, P = !1), typeof gtag == "function" && gtag("event", "ChangeMenu", {
|
|
4913
4948
|
context: "MobileBottomNavigation",
|
|
4914
|
-
menuItem: `${
|
|
4949
|
+
menuItem: `${p}`
|
|
4915
4950
|
});
|
|
4916
|
-
},
|
|
4917
|
-
|
|
4918
|
-
},
|
|
4919
|
-
r(10,
|
|
4920
|
-
},
|
|
4921
|
-
|
|
4951
|
+
}, en = () => {
|
|
4952
|
+
Do(s);
|
|
4953
|
+
}, je = () => {
|
|
4954
|
+
r(10, wt = b && window.innerHeight / window.innerWidth < 1);
|
|
4955
|
+
}, St = () => {
|
|
4956
|
+
P && r(4, P = !1);
|
|
4922
4957
|
};
|
|
4923
|
-
|
|
4924
|
-
window.removeEventListener("message",
|
|
4958
|
+
Nn(() => (window.addEventListener("message", Et, !1), document.addEventListener("focusin", St), b && window.screen.orientation.addEventListener("change", je), () => {
|
|
4959
|
+
window.removeEventListener("message", Et), document.removeEventListener("focusin", St), b && window.screen.orientation.removeEventListener("change", je);
|
|
4925
4960
|
}));
|
|
4926
|
-
const
|
|
4927
|
-
var
|
|
4928
|
-
(
|
|
4929
|
-
},
|
|
4930
|
-
var
|
|
4931
|
-
(
|
|
4961
|
+
const tn = (p) => {
|
|
4962
|
+
var A, H;
|
|
4963
|
+
(A = p.attrs) != null && A.target ? he(p.path, (H = p.attrs) == null ? void 0 : H.target, p == null ? void 0 : p.externalLink, p.label) : he(p.path, null, p == null ? void 0 : p.externalLink, p.label);
|
|
4964
|
+
}, rn = (p) => {
|
|
4965
|
+
var A, H;
|
|
4966
|
+
(A = p.attrs) != null && A.target ? he(p.path, (H = p.attrs) == null ? void 0 : H.target, p == null ? void 0 : p.externalLink, p.label) : he(p.path, null, p == null ? void 0 : p.externalLink, p.label);
|
|
4932
4967
|
};
|
|
4933
|
-
function
|
|
4934
|
-
|
|
4935
|
-
|
|
4968
|
+
function nn(p) {
|
|
4969
|
+
Ke[p ? "unshift" : "push"](() => {
|
|
4970
|
+
$ = p, r(2, $);
|
|
4936
4971
|
});
|
|
4937
4972
|
}
|
|
4938
|
-
return e.$$set = (
|
|
4939
|
-
"cmsendpoint" in
|
|
4973
|
+
return e.$$set = (p) => {
|
|
4974
|
+
"cmsendpoint" in p && r(16, a = p.cmsendpoint), "lang" in p && r(17, s = p.lang), "env" in p && r(18, l = p.env), "secondarymenutitle" in p && r(0, u = p.secondarymenutitle), "userroles" in p && r(19, h = p.userroles), "mbsource" in p && r(20, d = p.mbsource), "clientstyling" in p && r(21, f = p.clientstyling), "clientstylingurl" in p && r(22, m = p.clientstylingurl), "translationurl" in p && r(23, g = p.translationurl), "activecategory" in p && r(24, v = p.activecategory), "flowermenustyle" in p && r(25, B = p.flowermenustyle), "$$scope" in p && r(26, o = p.$$scope);
|
|
4940
4975
|
}, e.$$.update = () => {
|
|
4941
4976
|
e.$$.dirty[0] & /*flowermenustyle*/
|
|
4942
|
-
33554432 &&
|
|
4943
|
-
16777218 &&
|
|
4944
|
-
131072 && s &&
|
|
4945
|
-
983040 && a && s && l && h &&
|
|
4946
|
-
2097156 && f &&
|
|
4947
|
-
4194308 &&
|
|
4948
|
-
1048580 && d &&
|
|
4949
|
-
8388608 && g &&
|
|
4977
|
+
33554432 && B && Yr(), e.$$.dirty[0] & /*activecategory, isLoading*/
|
|
4978
|
+
16777218 && v && !E && Nt(), e.$$.dirty[0] & /*lang*/
|
|
4979
|
+
131072 && s && en(), e.$$.dirty[0] & /*cmsendpoint, lang, env, userroles*/
|
|
4980
|
+
983040 && a && s && l && h && Kr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4981
|
+
2097156 && f && $ && Go($, f), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4982
|
+
4194308 && m && $ && $o($, m), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4983
|
+
1048580 && d && $ && ko($, `${d}.Style`), e.$$.dirty[0] & /*translationurl*/
|
|
4984
|
+
8388608 && g && Qr();
|
|
4950
4985
|
}, [
|
|
4951
4986
|
u,
|
|
4952
|
-
N,
|
|
4953
|
-
G,
|
|
4954
4987
|
E,
|
|
4955
|
-
|
|
4988
|
+
$,
|
|
4989
|
+
w,
|
|
4990
|
+
P,
|
|
4956
4991
|
z,
|
|
4957
4992
|
Y,
|
|
4958
4993
|
_e,
|
|
4959
4994
|
W,
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4995
|
+
xt,
|
|
4996
|
+
wt,
|
|
4997
|
+
ke,
|
|
4963
4998
|
n,
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4999
|
+
b,
|
|
5000
|
+
Jr,
|
|
5001
|
+
he,
|
|
4967
5002
|
a,
|
|
4968
5003
|
s,
|
|
4969
5004
|
l,
|
|
4970
5005
|
h,
|
|
4971
5006
|
d,
|
|
4972
5007
|
f,
|
|
4973
|
-
|
|
5008
|
+
m,
|
|
4974
5009
|
g,
|
|
4975
|
-
|
|
4976
|
-
|
|
5010
|
+
v,
|
|
5011
|
+
B,
|
|
4977
5012
|
o,
|
|
4978
5013
|
i,
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
5014
|
+
tn,
|
|
5015
|
+
rn,
|
|
5016
|
+
nn
|
|
4982
5017
|
];
|
|
4983
5018
|
}
|
|
4984
|
-
class
|
|
5019
|
+
class qo extends Ln {
|
|
4985
5020
|
constructor(t) {
|
|
4986
|
-
super(),
|
|
5021
|
+
super(), Mn(
|
|
4987
5022
|
this,
|
|
4988
5023
|
t,
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
5024
|
+
Jo,
|
|
5025
|
+
Yo,
|
|
5026
|
+
fr,
|
|
4992
5027
|
{
|
|
4993
5028
|
cmsendpoint: 16,
|
|
4994
5029
|
lang: 17,
|
|
@@ -5002,7 +5037,7 @@ class Zo extends Hn {
|
|
|
5002
5037
|
activecategory: 24,
|
|
5003
5038
|
flowermenustyle: 25
|
|
5004
5039
|
},
|
|
5005
|
-
|
|
5040
|
+
jo,
|
|
5006
5041
|
[-1, -1]
|
|
5007
5042
|
);
|
|
5008
5043
|
}
|
|
@@ -5073,7 +5108,7 @@ class Zo extends Hn {
|
|
|
5073
5108
|
this.$$set({ flowermenustyle: t }), F();
|
|
5074
5109
|
}
|
|
5075
5110
|
}
|
|
5076
|
-
|
|
5111
|
+
On(qo, { cmsendpoint: {}, lang: {}, env: {}, secondarymenutitle: {}, userroles: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, activecategory: {}, flowermenustyle: {} }, ["close"], [], !0);
|
|
5077
5112
|
export {
|
|
5078
|
-
|
|
5113
|
+
qo as default
|
|
5079
5114
|
};
|