@everymatrix/player-account-menu-nd 1.74.2 → 1.74.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{GeneralLogout-Do7o-cKv.js → GeneralLogout-C6LtI21m.js} +644 -658
- package/components/GeneralLogout-DqlvbXrp.cjs +18 -0
- package/components/{GeneralLogout-CmFi68f2.js → GeneralLogout-GRuKSPyD.js} +670 -684
- package/components/{PlayerAccountMenuNd-CIHVvnGl.js → PlayerAccountMenuNd-Bw9HX5pe.js} +7 -7
- package/components/{PlayerAccountMenuNd-CglkmiE1.js → PlayerAccountMenuNd-D9eyRCPZ.js} +7 -7
- package/components/{PlayerAccountMenuNd-Y0YAriN6.cjs → PlayerAccountMenuNd-ehuCAahb.cjs} +1 -1
- package/es2015/player-account-menu-nd.cjs +1 -1
- package/es2015/player-account-menu-nd.js +1 -1
- package/esnext/player-account-menu-nd.js +1 -1
- package/package.json +1 -1
- package/stencil/{index-b2193545-BtPvM93e.js → index-b2193545-BbCeNxUG.js} +176 -176
- package/stencil/{index-b2193545-D_KBbaD-.js → index-b2193545-C9PH-6qK.js} +169 -169
- package/stencil/index-b2193545-D-u-gzj3.cjs +1 -0
- package/stencil/{ui-skeleton-NZtdK490.js → ui-skeleton-BKDs0-7H.js} +2 -2
- package/stencil/{ui-skeleton-CWuMYFGQ.js → ui-skeleton-CJbkvgG7.js} +2 -2
- package/stencil/{ui-skeleton-ae35c6f2-CKJgMm_5.cjs → ui-skeleton-ae35c6f2-CXlvqczG.cjs} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-CW3z59Qf.js → ui-skeleton-ae35c6f2-ZB0isFAq.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-DlexSQlT.js → ui-skeleton-ae35c6f2-gun6WX2F.js} +1 -1
- package/stencil/{ui-skeleton-BPqjm-YB.cjs → ui-skeleton-bhljBTS7.cjs} +1 -1
- package/components/GeneralLogout-BUuNBLQo.cjs +0 -18
- package/stencil/index-b2193545-CgelUAhE.cjs +0 -1
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
function B() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Et(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Je() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
9
|
function ie(e) {
|
|
10
|
-
e.forEach(
|
|
10
|
+
e.forEach(Et);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function ze(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function St(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
18
|
let ue;
|
|
19
|
-
function
|
|
19
|
+
function Vi(e, t) {
|
|
20
20
|
return e === t ? !0 : (ue || (ue = document.createElement("a")), ue.href = t, e === ue.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function sr(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Tt(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const n of t)
|
|
28
28
|
n(void 0);
|
|
@@ -31,20 +31,20 @@ function Bt(e, ...t) {
|
|
|
31
31
|
const r = e.subscribe(...t);
|
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
e.$$.on_destroy.push(
|
|
34
|
+
function ar(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(Tt(t, r));
|
|
36
36
|
}
|
|
37
37
|
function T(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const n =
|
|
40
|
+
function ur(e, t, r) {
|
|
41
|
+
const n = hr(e);
|
|
42
42
|
if (!n.getElementById(t)) {
|
|
43
43
|
const i = P("style");
|
|
44
|
-
i.id = t, i.textContent = r,
|
|
44
|
+
i.id = t, i.textContent = r, lr(n, i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function hr(e) {
|
|
48
48
|
if (!e)
|
|
49
49
|
return document;
|
|
50
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -54,7 +54,7 @@ function fr(e) {
|
|
|
54
54
|
t
|
|
55
55
|
) : e.ownerDocument;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function lr(e, t) {
|
|
58
58
|
return T(
|
|
59
59
|
/** @type {Document} */
|
|
60
60
|
e.head || e,
|
|
@@ -67,7 +67,7 @@ function oe(e, t, r) {
|
|
|
67
67
|
function Z(e) {
|
|
68
68
|
e.parentNode && e.parentNode.removeChild(e);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function Xi(e, t) {
|
|
71
71
|
for (let r = 0; r < e.length; r += 1)
|
|
72
72
|
e[r] && e[r].d(t);
|
|
73
73
|
}
|
|
@@ -80,30 +80,30 @@ function Y(e) {
|
|
|
80
80
|
function ge(e) {
|
|
81
81
|
return document.createTextNode(e);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function fr() {
|
|
84
84
|
return ge(" ");
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function Ht(e, t, r, n) {
|
|
87
87
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
88
88
|
}
|
|
89
89
|
function S(e, t, r) {
|
|
90
90
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Wi(e, t, r) {
|
|
93
93
|
const n = t.toLowerCase();
|
|
94
94
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : S(e, t, r);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function cr(e) {
|
|
97
97
|
return Array.from(e.childNodes);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Bt(e, t) {
|
|
100
100
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
101
101
|
t);
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function dr(e, t, r, n) {
|
|
104
104
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function pr(e) {
|
|
107
107
|
const t = {};
|
|
108
108
|
return e.childNodes.forEach(
|
|
109
109
|
/** @param {Element} node */
|
|
@@ -116,22 +116,22 @@ let te;
|
|
|
116
116
|
function ee(e) {
|
|
117
117
|
te = e;
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function mr() {
|
|
120
120
|
if (!te)
|
|
121
121
|
throw new Error("Function called outside component initialization");
|
|
122
122
|
return te;
|
|
123
123
|
}
|
|
124
|
-
function
|
|
125
|
-
|
|
124
|
+
function br(e) {
|
|
125
|
+
mr().$$.on_mount.push(e);
|
|
126
126
|
}
|
|
127
|
-
const F = [],
|
|
127
|
+
const F = [], Ie = [];
|
|
128
128
|
let j = [];
|
|
129
|
-
const
|
|
130
|
-
let
|
|
131
|
-
function
|
|
132
|
-
|
|
129
|
+
const Ye = [], gr = /* @__PURE__ */ Promise.resolve();
|
|
130
|
+
let Le = !1;
|
|
131
|
+
function yr() {
|
|
132
|
+
Le || (Le = !0, gr.then(w));
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function Ne(e) {
|
|
135
135
|
j.push(e);
|
|
136
136
|
}
|
|
137
137
|
const Te = /* @__PURE__ */ new Set();
|
|
@@ -144,56 +144,56 @@ function w() {
|
|
|
144
144
|
try {
|
|
145
145
|
for (; D < F.length; ) {
|
|
146
146
|
const t = F[D];
|
|
147
|
-
D++, ee(t),
|
|
147
|
+
D++, ee(t), vr(t.$$);
|
|
148
148
|
}
|
|
149
149
|
} catch (t) {
|
|
150
150
|
throw F.length = 0, D = 0, t;
|
|
151
151
|
}
|
|
152
|
-
for (ee(null), F.length = 0, D = 0;
|
|
153
|
-
|
|
152
|
+
for (ee(null), F.length = 0, D = 0; Ie.length; )
|
|
153
|
+
Ie.pop()();
|
|
154
154
|
for (let t = 0; t < j.length; t += 1) {
|
|
155
155
|
const r = j[t];
|
|
156
156
|
Te.has(r) || (Te.add(r), r());
|
|
157
157
|
}
|
|
158
158
|
j.length = 0;
|
|
159
159
|
} while (F.length);
|
|
160
|
-
for (;
|
|
161
|
-
|
|
162
|
-
|
|
160
|
+
for (; Ye.length; )
|
|
161
|
+
Ye.pop()();
|
|
162
|
+
Le = !1, Te.clear(), ee(e);
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function vr(e) {
|
|
165
165
|
if (e.fragment !== null) {
|
|
166
166
|
e.update(), ie(e.before_update);
|
|
167
167
|
const t = e.dirty;
|
|
168
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
168
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ne);
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function _r(e) {
|
|
172
172
|
const t = [], r = [];
|
|
173
173
|
j.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), j = t;
|
|
174
174
|
}
|
|
175
|
-
const
|
|
176
|
-
function
|
|
177
|
-
e && e.i && (
|
|
175
|
+
const xr = /* @__PURE__ */ new Set();
|
|
176
|
+
function Er(e, t) {
|
|
177
|
+
e && e.i && (xr.delete(e), e.i(t));
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function zi(e) {
|
|
180
180
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function Sr(e, t, r) {
|
|
183
183
|
const { fragment: n, after_update: i } = e.$$;
|
|
184
|
-
n && n.m(t, r),
|
|
185
|
-
const o = e.$$.on_mount.map(
|
|
184
|
+
n && n.m(t, r), Ne(() => {
|
|
185
|
+
const o = e.$$.on_mount.map(Et).filter(ze);
|
|
186
186
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ie(o), e.$$.on_mount = [];
|
|
187
|
-
}), i.forEach(
|
|
187
|
+
}), i.forEach(Ne);
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function Tr(e, t) {
|
|
190
190
|
const r = e.$$;
|
|
191
|
-
r.fragment !== null && (
|
|
191
|
+
r.fragment !== null && (_r(r.after_update), ie(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
192
192
|
}
|
|
193
|
-
function
|
|
194
|
-
e.$$.dirty[0] === -1 && (F.push(e),
|
|
193
|
+
function Hr(e, t) {
|
|
194
|
+
e.$$.dirty[0] === -1 && (F.push(e), yr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function Br(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
197
197
|
const h = te;
|
|
198
198
|
ee(e);
|
|
199
199
|
const u = e.$$ = {
|
|
@@ -203,7 +203,7 @@ function Pr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
203
203
|
props: o,
|
|
204
204
|
update: B,
|
|
205
205
|
not_equal: i,
|
|
206
|
-
bound:
|
|
206
|
+
bound: Je(),
|
|
207
207
|
// lifecycle
|
|
208
208
|
on_mount: [],
|
|
209
209
|
on_destroy: [],
|
|
@@ -212,28 +212,28 @@ function Pr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
212
212
|
after_update: [],
|
|
213
213
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
214
214
|
// everything else
|
|
215
|
-
callbacks:
|
|
215
|
+
callbacks: Je(),
|
|
216
216
|
dirty: a,
|
|
217
217
|
skip_bound: !1,
|
|
218
218
|
root: t.target || h.$$.root
|
|
219
219
|
};
|
|
220
220
|
s && s(u.root);
|
|
221
221
|
let l = !1;
|
|
222
|
-
if (u.ctx = r ? r(e, t.props || {}, (
|
|
223
|
-
const
|
|
224
|
-
return u.ctx && i(u.ctx[
|
|
222
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...d) => {
|
|
223
|
+
const p = d.length ? d[0] : f;
|
|
224
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = p) && (!u.skip_bound && u.bound[c] && u.bound[c](p), l && Hr(e, c)), f;
|
|
225
225
|
}) : [], u.update(), l = !0, ie(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
226
226
|
if (t.hydrate) {
|
|
227
|
-
const
|
|
228
|
-
u.fragment && u.fragment.l(
|
|
227
|
+
const c = cr(t.target);
|
|
228
|
+
u.fragment && u.fragment.l(c), c.forEach(Z);
|
|
229
229
|
} else
|
|
230
230
|
u.fragment && u.fragment.c();
|
|
231
|
-
t.intro &&
|
|
231
|
+
t.intro && Er(e.$$.fragment), Sr(e, t.target, t.anchor), w();
|
|
232
232
|
}
|
|
233
233
|
ee(h);
|
|
234
234
|
}
|
|
235
|
-
let
|
|
236
|
-
typeof HTMLElement == "function" && (
|
|
235
|
+
let wt;
|
|
236
|
+
typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
237
237
|
/** The Svelte component constructor */
|
|
238
238
|
$$ctor;
|
|
239
239
|
/** Slots */
|
|
@@ -292,12 +292,12 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
292
292
|
};
|
|
293
293
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
294
294
|
return;
|
|
295
|
-
const t = {}, r =
|
|
295
|
+
const t = {}, r = pr(this);
|
|
296
296
|
for (const i of this.$$s)
|
|
297
297
|
i in r && (t[i] = [e(i)]);
|
|
298
298
|
for (const i of this.attributes) {
|
|
299
299
|
const o = this.$$g_p(i.name);
|
|
300
|
-
o in this.$$d || (this.$$d[o] =
|
|
300
|
+
o in this.$$d || (this.$$d[o] = fe(o, i.value, this.$$p_d, "toProp"));
|
|
301
301
|
}
|
|
302
302
|
for (const i in this.$$p_d)
|
|
303
303
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -315,7 +315,7 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
315
315
|
this.$$r = !0;
|
|
316
316
|
for (const i in this.$$p_d)
|
|
317
317
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
318
|
-
const o =
|
|
318
|
+
const o = fe(
|
|
319
319
|
i,
|
|
320
320
|
this.$$d[i],
|
|
321
321
|
this.$$p_d,
|
|
@@ -337,7 +337,7 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
337
337
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
338
338
|
// and setting attributes through setAttribute etc, this is helpful
|
|
339
339
|
attributeChangedCallback(e, t, r) {
|
|
340
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
340
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = fe(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
341
341
|
}
|
|
342
342
|
disconnectedCallback() {
|
|
343
343
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -350,7 +350,7 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
350
350
|
) || e;
|
|
351
351
|
}
|
|
352
352
|
});
|
|
353
|
-
function
|
|
353
|
+
function fe(e, t, r, n) {
|
|
354
354
|
const i = r[e]?.type;
|
|
355
355
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
356
356
|
return t;
|
|
@@ -379,8 +379,8 @@ function ce(e, t, r, n) {
|
|
|
379
379
|
return t;
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
|
-
function
|
|
383
|
-
let s = class extends
|
|
382
|
+
function wr(e, t, r, n, i, o) {
|
|
383
|
+
let s = class extends wt {
|
|
384
384
|
constructor() {
|
|
385
385
|
super(e, r, i), this.$$p_d = t;
|
|
386
386
|
}
|
|
@@ -396,7 +396,7 @@ function Or(e, t, r, n, i, o) {
|
|
|
396
396
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
397
397
|
},
|
|
398
398
|
set(h) {
|
|
399
|
-
h =
|
|
399
|
+
h = fe(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
|
|
400
400
|
}
|
|
401
401
|
});
|
|
402
402
|
}), n.forEach((a) => {
|
|
@@ -408,7 +408,7 @@ function Or(e, t, r, n, i, o) {
|
|
|
408
408
|
}), e.element = /** @type {any} */
|
|
409
409
|
s, s;
|
|
410
410
|
}
|
|
411
|
-
class
|
|
411
|
+
class Ar {
|
|
412
412
|
/**
|
|
413
413
|
* ### PRIVATE API
|
|
414
414
|
*
|
|
@@ -427,7 +427,7 @@ class Ir {
|
|
|
427
427
|
$$set = void 0;
|
|
428
428
|
/** @returns {void} */
|
|
429
429
|
$destroy() {
|
|
430
|
-
|
|
430
|
+
Tr(this, 1), this.$destroy = B;
|
|
431
431
|
}
|
|
432
432
|
/**
|
|
433
433
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -436,7 +436,7 @@ class Ir {
|
|
|
436
436
|
* @returns {() => void}
|
|
437
437
|
*/
|
|
438
438
|
$on(t, r) {
|
|
439
|
-
if (!
|
|
439
|
+
if (!ze(r))
|
|
440
440
|
return B;
|
|
441
441
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
442
442
|
return n.push(r), () => {
|
|
@@ -449,11 +449,11 @@ class Ir {
|
|
|
449
449
|
* @returns {void}
|
|
450
450
|
*/
|
|
451
451
|
$set(t) {
|
|
452
|
-
this.$$set && !
|
|
452
|
+
this.$$set && !sr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
|
-
const
|
|
456
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
455
|
+
const Pr = "4";
|
|
456
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Pr);
|
|
457
457
|
/*! *****************************************************************************
|
|
458
458
|
Copyright (c) Microsoft Corporation.
|
|
459
459
|
|
|
@@ -468,18 +468,18 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
468
468
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
469
469
|
PERFORMANCE OF THIS SOFTWARE.
|
|
470
470
|
***************************************************************************** */
|
|
471
|
-
var
|
|
472
|
-
return
|
|
471
|
+
var Me = function(e, t) {
|
|
472
|
+
return Me = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
473
473
|
r.__proto__ = n;
|
|
474
474
|
} || function(r, n) {
|
|
475
475
|
for (var i in n)
|
|
476
476
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
477
|
-
},
|
|
477
|
+
}, Me(e, t);
|
|
478
478
|
};
|
|
479
479
|
function I(e, t) {
|
|
480
480
|
if (typeof t != "function" && t !== null)
|
|
481
481
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
482
|
-
|
|
482
|
+
Me(e, t);
|
|
483
483
|
function r() {
|
|
484
484
|
this.constructor = e;
|
|
485
485
|
}
|
|
@@ -495,7 +495,7 @@ var g = function() {
|
|
|
495
495
|
return t;
|
|
496
496
|
}, g.apply(this, arguments);
|
|
497
497
|
};
|
|
498
|
-
function
|
|
498
|
+
function Or(e, t) {
|
|
499
499
|
var r = {};
|
|
500
500
|
for (var n in e)
|
|
501
501
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -504,7 +504,7 @@ function Nr(e, t) {
|
|
|
504
504
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
505
505
|
return r;
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function Ce(e) {
|
|
508
508
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
509
509
|
if (r)
|
|
510
510
|
return r.call(e);
|
|
@@ -516,7 +516,7 @@ function $e(e) {
|
|
|
516
516
|
};
|
|
517
517
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function $e(e, t) {
|
|
520
520
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
521
521
|
if (!r)
|
|
522
522
|
return e;
|
|
@@ -545,13 +545,13 @@ function k(e, t, r) {
|
|
|
545
545
|
function O(e) {
|
|
546
546
|
return typeof e == "function";
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function At(e) {
|
|
549
549
|
var t = function(n) {
|
|
550
550
|
Error.call(n), n.stack = new Error().stack;
|
|
551
551
|
}, r = e(t);
|
|
552
552
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
553
553
|
}
|
|
554
|
-
var He =
|
|
554
|
+
var He = At(function(e) {
|
|
555
555
|
return function(r) {
|
|
556
556
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
557
557
|
` + r.map(function(n, i) {
|
|
@@ -560,7 +560,7 @@ var He = Ot(function(e) {
|
|
|
560
560
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
561
561
|
};
|
|
562
562
|
});
|
|
563
|
-
function
|
|
563
|
+
function Re(e, t) {
|
|
564
564
|
if (e) {
|
|
565
565
|
var r = e.indexOf(t);
|
|
566
566
|
0 <= r && e.splice(r, 1);
|
|
@@ -578,7 +578,7 @@ var ye = function() {
|
|
|
578
578
|
if (s)
|
|
579
579
|
if (this._parentage = null, Array.isArray(s))
|
|
580
580
|
try {
|
|
581
|
-
for (var a =
|
|
581
|
+
for (var a = Ce(s), h = a.next(); !h.done; h = a.next()) {
|
|
582
582
|
var u = h.value;
|
|
583
583
|
u.remove(this);
|
|
584
584
|
}
|
|
@@ -601,23 +601,23 @@ var ye = function() {
|
|
|
601
601
|
} catch (v) {
|
|
602
602
|
o = v instanceof He ? v.errors : [v];
|
|
603
603
|
}
|
|
604
|
-
var
|
|
605
|
-
if (
|
|
604
|
+
var c = this._finalizers;
|
|
605
|
+
if (c) {
|
|
606
606
|
this._finalizers = null;
|
|
607
607
|
try {
|
|
608
|
-
for (var
|
|
609
|
-
var
|
|
608
|
+
for (var f = Ce(c), d = f.next(); !d.done; d = f.next()) {
|
|
609
|
+
var p = d.value;
|
|
610
610
|
try {
|
|
611
|
-
|
|
611
|
+
Ke(p);
|
|
612
612
|
} catch (v) {
|
|
613
|
-
o = o ?? [], v instanceof He ? o = k(k([],
|
|
613
|
+
o = o ?? [], v instanceof He ? o = k(k([], $e(o)), $e(v.errors)) : o.push(v);
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
616
|
} catch (v) {
|
|
617
617
|
n = { error: v };
|
|
618
618
|
} finally {
|
|
619
619
|
try {
|
|
620
|
-
|
|
620
|
+
d && !d.done && (i = f.return) && i.call(f);
|
|
621
621
|
} finally {
|
|
622
622
|
if (n)
|
|
623
623
|
throw n.error;
|
|
@@ -631,7 +631,7 @@ var ye = function() {
|
|
|
631
631
|
var r;
|
|
632
632
|
if (t && t !== this)
|
|
633
633
|
if (this.closed)
|
|
634
|
-
|
|
634
|
+
Ke(t);
|
|
635
635
|
else {
|
|
636
636
|
if (t instanceof e) {
|
|
637
637
|
if (t.closed || t._hasParent(this))
|
|
@@ -648,56 +648,56 @@ var ye = function() {
|
|
|
648
648
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
649
649
|
}, e.prototype._removeParent = function(t) {
|
|
650
650
|
var r = this._parentage;
|
|
651
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
651
|
+
r === t ? this._parentage = null : Array.isArray(r) && Re(r, t);
|
|
652
652
|
}, e.prototype.remove = function(t) {
|
|
653
653
|
var r = this._finalizers;
|
|
654
|
-
r &&
|
|
654
|
+
r && Re(r, t), t instanceof e && t._removeParent(this);
|
|
655
655
|
}, e.EMPTY = function() {
|
|
656
656
|
var t = new e();
|
|
657
657
|
return t.closed = !0, t;
|
|
658
658
|
}(), e;
|
|
659
|
-
}(),
|
|
660
|
-
function
|
|
659
|
+
}(), Pt = ye.EMPTY;
|
|
660
|
+
function Ot(e) {
|
|
661
661
|
return e instanceof ye || e && "closed" in e && O(e.remove) && O(e.add) && O(e.unsubscribe);
|
|
662
662
|
}
|
|
663
|
-
function
|
|
663
|
+
function Ke(e) {
|
|
664
664
|
O(e) ? e() : e.unsubscribe();
|
|
665
665
|
}
|
|
666
|
-
var
|
|
666
|
+
var Ir = {
|
|
667
667
|
onUnhandledError: null,
|
|
668
668
|
onStoppedNotification: null,
|
|
669
669
|
Promise: void 0,
|
|
670
670
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
671
671
|
useDeprecatedNextContext: !1
|
|
672
|
-
},
|
|
672
|
+
}, Lr = {
|
|
673
673
|
setTimeout: function(e, t) {
|
|
674
674
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
675
675
|
r[n - 2] = arguments[n];
|
|
676
|
-
return setTimeout.apply(void 0, k([e, t],
|
|
676
|
+
return setTimeout.apply(void 0, k([e, t], $e(r)));
|
|
677
677
|
},
|
|
678
678
|
clearTimeout: function(e) {
|
|
679
679
|
return clearTimeout(e);
|
|
680
680
|
},
|
|
681
681
|
delegate: void 0
|
|
682
682
|
};
|
|
683
|
-
function
|
|
684
|
-
|
|
683
|
+
function Nr(e) {
|
|
684
|
+
Lr.setTimeout(function() {
|
|
685
685
|
throw e;
|
|
686
686
|
});
|
|
687
687
|
}
|
|
688
|
-
function
|
|
688
|
+
function et() {
|
|
689
689
|
}
|
|
690
|
-
function
|
|
690
|
+
function ce(e) {
|
|
691
691
|
e();
|
|
692
692
|
}
|
|
693
|
-
var
|
|
693
|
+
var It = function(e) {
|
|
694
694
|
I(t, e);
|
|
695
695
|
function t(r) {
|
|
696
696
|
var n = e.call(this) || this;
|
|
697
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
697
|
+
return n.isStopped = !1, r ? (n.destination = r, Ot(r) && r.add(n)) : n.destination = $r, n;
|
|
698
698
|
}
|
|
699
699
|
return t.create = function(r, n, i) {
|
|
700
|
-
return new
|
|
700
|
+
return new Ue(r, n, i);
|
|
701
701
|
}, t.prototype.next = function(r) {
|
|
702
702
|
this.isStopped || this._next(r);
|
|
703
703
|
}, t.prototype.error = function(r) {
|
|
@@ -721,11 +721,7 @@ var Mt = function(e) {
|
|
|
721
721
|
this.unsubscribe();
|
|
722
722
|
}
|
|
723
723
|
}, t;
|
|
724
|
-
}(ye),
|
|
725
|
-
function Be(e, t) {
|
|
726
|
-
return $r.call(e, t);
|
|
727
|
-
}
|
|
728
|
-
var Rr = function() {
|
|
724
|
+
}(ye), Mr = function() {
|
|
729
725
|
function e(t) {
|
|
730
726
|
this.partialObserver = t;
|
|
731
727
|
}
|
|
@@ -756,55 +752,43 @@ var Rr = function() {
|
|
|
756
752
|
he(r);
|
|
757
753
|
}
|
|
758
754
|
}, e;
|
|
759
|
-
}(),
|
|
755
|
+
}(), Ue = function(e) {
|
|
760
756
|
I(t, e);
|
|
761
757
|
function t(r, n, i) {
|
|
762
758
|
var o = e.call(this) || this, s;
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
};
|
|
769
|
-
else {
|
|
770
|
-
var a;
|
|
771
|
-
o && Nt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
772
|
-
return o.unsubscribe();
|
|
773
|
-
}, s = {
|
|
774
|
-
next: r.next && Be(r.next, a),
|
|
775
|
-
error: r.error && Be(r.error, a),
|
|
776
|
-
complete: r.complete && Be(r.complete, a)
|
|
777
|
-
}) : s = r;
|
|
778
|
-
}
|
|
779
|
-
return o.destination = new Rr(s), o;
|
|
759
|
+
return O(r) || !r ? s = {
|
|
760
|
+
next: r ?? void 0,
|
|
761
|
+
error: n ?? void 0,
|
|
762
|
+
complete: i ?? void 0
|
|
763
|
+
} : s = r, o.destination = new Mr(s), o;
|
|
780
764
|
}
|
|
781
765
|
return t;
|
|
782
|
-
}(
|
|
766
|
+
}(It);
|
|
783
767
|
function he(e) {
|
|
784
|
-
|
|
768
|
+
Nr(e);
|
|
785
769
|
}
|
|
786
|
-
function
|
|
770
|
+
function Cr(e) {
|
|
787
771
|
throw e;
|
|
788
772
|
}
|
|
789
|
-
var
|
|
773
|
+
var $r = {
|
|
790
774
|
closed: !0,
|
|
791
|
-
next:
|
|
792
|
-
error:
|
|
793
|
-
complete:
|
|
794
|
-
},
|
|
775
|
+
next: et,
|
|
776
|
+
error: Cr,
|
|
777
|
+
complete: et
|
|
778
|
+
}, Rr = function() {
|
|
795
779
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
796
780
|
}();
|
|
797
|
-
function
|
|
781
|
+
function Ur(e) {
|
|
798
782
|
return e;
|
|
799
783
|
}
|
|
800
|
-
function
|
|
801
|
-
return e.length === 0 ?
|
|
784
|
+
function Dr(e) {
|
|
785
|
+
return e.length === 0 ? Ur : e.length === 1 ? e[0] : function(r) {
|
|
802
786
|
return e.reduce(function(n, i) {
|
|
803
787
|
return i(n);
|
|
804
788
|
}, r);
|
|
805
789
|
};
|
|
806
790
|
}
|
|
807
|
-
var
|
|
791
|
+
var tt = function() {
|
|
808
792
|
function e(t) {
|
|
809
793
|
t && (this._subscribe = t);
|
|
810
794
|
}
|
|
@@ -812,8 +796,8 @@ var nt = function() {
|
|
|
812
796
|
var r = new e();
|
|
813
797
|
return r.source = this, r.operator = t, r;
|
|
814
798
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
815
|
-
var i = this, o =
|
|
816
|
-
return
|
|
799
|
+
var i = this, o = Fr(t) ? t : new Ue(t, r, n);
|
|
800
|
+
return ce(function() {
|
|
817
801
|
var s = i, a = s.operator, h = s.source;
|
|
818
802
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
819
803
|
}), o;
|
|
@@ -825,8 +809,8 @@ var nt = function() {
|
|
|
825
809
|
}
|
|
826
810
|
}, e.prototype.forEach = function(t, r) {
|
|
827
811
|
var n = this;
|
|
828
|
-
return r =
|
|
829
|
-
var s = new
|
|
812
|
+
return r = rt(r), new r(function(i, o) {
|
|
813
|
+
var s = new Ue({
|
|
830
814
|
next: function(a) {
|
|
831
815
|
try {
|
|
832
816
|
t(a);
|
|
@@ -842,15 +826,15 @@ var nt = function() {
|
|
|
842
826
|
}, e.prototype._subscribe = function(t) {
|
|
843
827
|
var r;
|
|
844
828
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
845
|
-
}, e.prototype[
|
|
829
|
+
}, e.prototype[Rr] = function() {
|
|
846
830
|
return this;
|
|
847
831
|
}, e.prototype.pipe = function() {
|
|
848
832
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
849
833
|
t[r] = arguments[r];
|
|
850
|
-
return
|
|
834
|
+
return Dr(t)(this);
|
|
851
835
|
}, e.prototype.toPromise = function(t) {
|
|
852
836
|
var r = this;
|
|
853
|
-
return t =
|
|
837
|
+
return t = rt(t), new t(function(n, i) {
|
|
854
838
|
var o;
|
|
855
839
|
r.subscribe(function(s) {
|
|
856
840
|
return o = s;
|
|
@@ -864,40 +848,40 @@ var nt = function() {
|
|
|
864
848
|
return new e(t);
|
|
865
849
|
}, e;
|
|
866
850
|
}();
|
|
867
|
-
function
|
|
851
|
+
function rt(e) {
|
|
868
852
|
var t;
|
|
869
|
-
return (t = e ??
|
|
853
|
+
return (t = e ?? Ir.Promise) !== null && t !== void 0 ? t : Promise;
|
|
870
854
|
}
|
|
871
|
-
function
|
|
855
|
+
function Gr(e) {
|
|
872
856
|
return e && O(e.next) && O(e.error) && O(e.complete);
|
|
873
857
|
}
|
|
874
|
-
function
|
|
875
|
-
return e && e instanceof
|
|
858
|
+
function Fr(e) {
|
|
859
|
+
return e && e instanceof It || Gr(e) && Ot(e);
|
|
876
860
|
}
|
|
877
|
-
var
|
|
861
|
+
var jr = At(function(e) {
|
|
878
862
|
return function() {
|
|
879
863
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
880
864
|
};
|
|
881
|
-
}),
|
|
865
|
+
}), Lt = function(e) {
|
|
882
866
|
I(t, e);
|
|
883
867
|
function t() {
|
|
884
868
|
var r = e.call(this) || this;
|
|
885
869
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
886
870
|
}
|
|
887
871
|
return t.prototype.lift = function(r) {
|
|
888
|
-
var n = new
|
|
872
|
+
var n = new nt(this, this);
|
|
889
873
|
return n.operator = r, n;
|
|
890
874
|
}, t.prototype._throwIfClosed = function() {
|
|
891
875
|
if (this.closed)
|
|
892
|
-
throw new
|
|
876
|
+
throw new jr();
|
|
893
877
|
}, t.prototype.next = function(r) {
|
|
894
878
|
var n = this;
|
|
895
|
-
|
|
879
|
+
ce(function() {
|
|
896
880
|
var i, o;
|
|
897
881
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
898
882
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
899
883
|
try {
|
|
900
|
-
for (var s =
|
|
884
|
+
for (var s = Ce(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
901
885
|
var h = a.value;
|
|
902
886
|
h.next(r);
|
|
903
887
|
}
|
|
@@ -915,7 +899,7 @@ var Xr = Ot(function(e) {
|
|
|
915
899
|
});
|
|
916
900
|
}, t.prototype.error = function(r) {
|
|
917
901
|
var n = this;
|
|
918
|
-
|
|
902
|
+
ce(function() {
|
|
919
903
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
920
904
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
921
905
|
for (var i = n.observers; i.length; )
|
|
@@ -924,7 +908,7 @@ var Xr = Ot(function(e) {
|
|
|
924
908
|
});
|
|
925
909
|
}, t.prototype.complete = function() {
|
|
926
910
|
var r = this;
|
|
927
|
-
|
|
911
|
+
ce(function() {
|
|
928
912
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
929
913
|
r.isStopped = !0;
|
|
930
914
|
for (var n = r.observers; n.length; )
|
|
@@ -946,19 +930,19 @@ var Xr = Ot(function(e) {
|
|
|
946
930
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
947
931
|
}, t.prototype._innerSubscribe = function(r) {
|
|
948
932
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
949
|
-
return o || s ?
|
|
950
|
-
n.currentObservers = null,
|
|
933
|
+
return o || s ? Pt : (this.currentObservers = null, a.push(r), new ye(function() {
|
|
934
|
+
n.currentObservers = null, Re(a, r);
|
|
951
935
|
}));
|
|
952
936
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
953
937
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
954
938
|
i ? r.error(o) : s && r.complete();
|
|
955
939
|
}, t.prototype.asObservable = function() {
|
|
956
|
-
var r = new
|
|
940
|
+
var r = new tt();
|
|
957
941
|
return r.source = this, r;
|
|
958
942
|
}, t.create = function(r, n) {
|
|
959
|
-
return new
|
|
943
|
+
return new nt(r, n);
|
|
960
944
|
}, t;
|
|
961
|
-
}(
|
|
945
|
+
}(tt), nt = function(e) {
|
|
962
946
|
I(t, e);
|
|
963
947
|
function t(r, n) {
|
|
964
948
|
var i = e.call(this) || this;
|
|
@@ -975,17 +959,17 @@ var Xr = Ot(function(e) {
|
|
|
975
959
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
976
960
|
}, t.prototype._subscribe = function(r) {
|
|
977
961
|
var n, i;
|
|
978
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
962
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Pt;
|
|
979
963
|
}, t;
|
|
980
|
-
}(
|
|
964
|
+
}(Lt), Nt = {
|
|
981
965
|
now: function() {
|
|
982
|
-
return (
|
|
966
|
+
return (Nt.delegate || Date).now();
|
|
983
967
|
},
|
|
984
968
|
delegate: void 0
|
|
985
|
-
},
|
|
969
|
+
}, kr = function(e) {
|
|
986
970
|
I(t, e);
|
|
987
971
|
function t(r, n, i) {
|
|
988
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
972
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Nt);
|
|
989
973
|
var o = e.call(this) || this;
|
|
990
974
|
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;
|
|
991
975
|
}
|
|
@@ -1005,15 +989,15 @@ var Xr = Ot(function(e) {
|
|
|
1005
989
|
u && o.splice(0, u + 1);
|
|
1006
990
|
}
|
|
1007
991
|
}, t;
|
|
1008
|
-
}(
|
|
1009
|
-
const
|
|
1010
|
-
if (
|
|
1011
|
-
const r = new
|
|
1012
|
-
|
|
992
|
+
}(Lt);
|
|
993
|
+
const it = [], ot = {}, Vr = (e, t = 0) => {
|
|
994
|
+
if (it.indexOf(e) == -1) {
|
|
995
|
+
const r = new kr(t);
|
|
996
|
+
ot[e] = r, it.push(e);
|
|
1013
997
|
}
|
|
1014
|
-
return
|
|
998
|
+
return ot[e];
|
|
1015
999
|
}, G = [];
|
|
1016
|
-
function
|
|
1000
|
+
function Xr(e, t) {
|
|
1017
1001
|
return {
|
|
1018
1002
|
subscribe: ve(e, t).subscribe
|
|
1019
1003
|
};
|
|
@@ -1022,7 +1006,7 @@ function ve(e, t = B) {
|
|
|
1022
1006
|
let r;
|
|
1023
1007
|
const n = /* @__PURE__ */ new Set();
|
|
1024
1008
|
function i(a) {
|
|
1025
|
-
if (
|
|
1009
|
+
if (St(e, a) && (e = a, r)) {
|
|
1026
1010
|
const h = !G.length;
|
|
1027
1011
|
for (const u of n)
|
|
1028
1012
|
u[1](), G.push(u, e);
|
|
@@ -1049,96 +1033,96 @@ function Q(e, t, r) {
|
|
|
1049
1033
|
if (!i.every(Boolean))
|
|
1050
1034
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1051
1035
|
const o = t.length < 2;
|
|
1052
|
-
return
|
|
1036
|
+
return Xr(r, (s, a) => {
|
|
1053
1037
|
let h = !1;
|
|
1054
1038
|
const u = [];
|
|
1055
|
-
let l = 0,
|
|
1056
|
-
const
|
|
1039
|
+
let l = 0, c = B;
|
|
1040
|
+
const f = () => {
|
|
1057
1041
|
if (l)
|
|
1058
1042
|
return;
|
|
1059
|
-
|
|
1060
|
-
const
|
|
1061
|
-
o ? s(
|
|
1062
|
-
},
|
|
1063
|
-
(
|
|
1064
|
-
|
|
1043
|
+
c();
|
|
1044
|
+
const p = t(n ? u[0] : u, s, a);
|
|
1045
|
+
o ? s(p) : c = ze(p) ? p : B;
|
|
1046
|
+
}, d = i.map(
|
|
1047
|
+
(p, v) => Tt(
|
|
1048
|
+
p,
|
|
1065
1049
|
(H) => {
|
|
1066
|
-
u[v] = H, l &= ~(1 << v), h &&
|
|
1050
|
+
u[v] = H, l &= ~(1 << v), h && f();
|
|
1067
1051
|
},
|
|
1068
1052
|
() => {
|
|
1069
1053
|
l |= 1 << v;
|
|
1070
1054
|
}
|
|
1071
1055
|
)
|
|
1072
1056
|
);
|
|
1073
|
-
return h = !0,
|
|
1074
|
-
ie(
|
|
1057
|
+
return h = !0, f(), function() {
|
|
1058
|
+
ie(d), c(), h = !1;
|
|
1075
1059
|
};
|
|
1076
1060
|
});
|
|
1077
1061
|
}
|
|
1078
|
-
function
|
|
1079
|
-
return e
|
|
1062
|
+
function Wr(e) {
|
|
1063
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1080
1064
|
}
|
|
1081
|
-
var
|
|
1082
|
-
return
|
|
1065
|
+
var zr = function(t) {
|
|
1066
|
+
return Zr(t) && !Qr(t);
|
|
1083
1067
|
};
|
|
1084
|
-
function
|
|
1068
|
+
function Zr(e) {
|
|
1085
1069
|
return !!e && typeof e == "object";
|
|
1086
1070
|
}
|
|
1087
|
-
function
|
|
1071
|
+
function Qr(e) {
|
|
1088
1072
|
var t = Object.prototype.toString.call(e);
|
|
1089
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1073
|
+
return t === "[object RegExp]" || t === "[object Date]" || Yr(e);
|
|
1090
1074
|
}
|
|
1091
|
-
var
|
|
1092
|
-
function
|
|
1093
|
-
return e.$$typeof ===
|
|
1075
|
+
var qr = typeof Symbol == "function" && Symbol.for, Jr = qr ? Symbol.for("react.element") : 60103;
|
|
1076
|
+
function Yr(e) {
|
|
1077
|
+
return e.$$typeof === Jr;
|
|
1094
1078
|
}
|
|
1095
|
-
function
|
|
1079
|
+
function Kr(e) {
|
|
1096
1080
|
return Array.isArray(e) ? [] : {};
|
|
1097
1081
|
}
|
|
1098
1082
|
function re(e, t) {
|
|
1099
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? V(
|
|
1083
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? V(Kr(e), e, t) : e;
|
|
1100
1084
|
}
|
|
1101
|
-
function
|
|
1085
|
+
function en(e, t, r) {
|
|
1102
1086
|
return e.concat(t).map(function(n) {
|
|
1103
1087
|
return re(n, r);
|
|
1104
1088
|
});
|
|
1105
1089
|
}
|
|
1106
|
-
function
|
|
1090
|
+
function tn(e, t) {
|
|
1107
1091
|
if (!t.customMerge)
|
|
1108
1092
|
return V;
|
|
1109
1093
|
var r = t.customMerge(e);
|
|
1110
1094
|
return typeof r == "function" ? r : V;
|
|
1111
1095
|
}
|
|
1112
|
-
function
|
|
1096
|
+
function rn(e) {
|
|
1113
1097
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1114
1098
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1115
1099
|
}) : [];
|
|
1116
1100
|
}
|
|
1117
|
-
function
|
|
1118
|
-
return Object.keys(e).concat(
|
|
1101
|
+
function st(e) {
|
|
1102
|
+
return Object.keys(e).concat(rn(e));
|
|
1119
1103
|
}
|
|
1120
|
-
function
|
|
1104
|
+
function Mt(e, t) {
|
|
1121
1105
|
try {
|
|
1122
1106
|
return t in e;
|
|
1123
1107
|
} catch {
|
|
1124
1108
|
return !1;
|
|
1125
1109
|
}
|
|
1126
1110
|
}
|
|
1127
|
-
function
|
|
1128
|
-
return
|
|
1111
|
+
function nn(e, t) {
|
|
1112
|
+
return Mt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1129
1113
|
}
|
|
1130
|
-
function
|
|
1114
|
+
function on(e, t, r) {
|
|
1131
1115
|
var n = {};
|
|
1132
|
-
return r.isMergeableObject(e) &&
|
|
1116
|
+
return r.isMergeableObject(e) && st(e).forEach(function(i) {
|
|
1133
1117
|
n[i] = re(e[i], r);
|
|
1134
|
-
}),
|
|
1135
|
-
|
|
1118
|
+
}), st(t).forEach(function(i) {
|
|
1119
|
+
nn(e, i) || (Mt(e, i) && r.isMergeableObject(t[i]) ? n[i] = tn(i, r)(e[i], t[i], r) : n[i] = re(t[i], r));
|
|
1136
1120
|
}), n;
|
|
1137
1121
|
}
|
|
1138
1122
|
function V(e, t, r) {
|
|
1139
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1123
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || en, r.isMergeableObject = r.isMergeableObject || zr, r.cloneUnlessOtherwiseSpecified = re;
|
|
1140
1124
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1141
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1125
|
+
return o ? n ? r.arrayMerge(e, t, r) : on(e, t, r) : re(t, r);
|
|
1142
1126
|
}
|
|
1143
1127
|
V.all = function(t, r) {
|
|
1144
1128
|
if (!Array.isArray(t))
|
|
@@ -1147,58 +1131,60 @@ V.all = function(t, r) {
|
|
|
1147
1131
|
return V(n, i, r);
|
|
1148
1132
|
}, {});
|
|
1149
1133
|
};
|
|
1150
|
-
var
|
|
1151
|
-
const
|
|
1152
|
-
function
|
|
1153
|
-
var r = t && t.cache ? t.cache :
|
|
1134
|
+
var sn = V, an = sn;
|
|
1135
|
+
const un = /* @__PURE__ */ Wr(an);
|
|
1136
|
+
function Be(e, t) {
|
|
1137
|
+
var r = t && t.cache ? t.cache : mn, n = t && t.serializer ? t.serializer : dn, i = t && t.strategy ? t.strategy : ln;
|
|
1154
1138
|
return i(e, {
|
|
1155
1139
|
cache: r,
|
|
1156
1140
|
serializer: n
|
|
1157
1141
|
});
|
|
1158
1142
|
}
|
|
1159
|
-
function
|
|
1143
|
+
function hn(e) {
|
|
1160
1144
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1161
1145
|
}
|
|
1162
|
-
function
|
|
1163
|
-
var i =
|
|
1146
|
+
function Ct(e, t, r, n) {
|
|
1147
|
+
var i = hn(n) ? n : r(n), o = t.get(i);
|
|
1164
1148
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1165
1149
|
}
|
|
1166
|
-
function
|
|
1150
|
+
function $t(e, t, r) {
|
|
1167
1151
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1168
1152
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1169
1153
|
}
|
|
1170
|
-
function
|
|
1154
|
+
function Ze(e, t, r, n, i) {
|
|
1171
1155
|
return r.bind(t, e, n, i);
|
|
1172
1156
|
}
|
|
1173
|
-
function
|
|
1174
|
-
var r = e.length === 1 ?
|
|
1175
|
-
return
|
|
1157
|
+
function ln(e, t) {
|
|
1158
|
+
var r = e.length === 1 ? Ct : $t;
|
|
1159
|
+
return Ze(e, this, r, t.cache.create(), t.serializer);
|
|
1176
1160
|
}
|
|
1177
|
-
function
|
|
1178
|
-
return
|
|
1161
|
+
function fn(e, t) {
|
|
1162
|
+
return Ze(e, this, $t, t.cache.create(), t.serializer);
|
|
1179
1163
|
}
|
|
1180
|
-
function
|
|
1181
|
-
return
|
|
1164
|
+
function cn(e, t) {
|
|
1165
|
+
return Ze(e, this, Ct, t.cache.create(), t.serializer);
|
|
1182
1166
|
}
|
|
1183
|
-
var
|
|
1167
|
+
var dn = function() {
|
|
1184
1168
|
return JSON.stringify(arguments);
|
|
1185
|
-
}
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1169
|
+
}, pn = (
|
|
1170
|
+
/** @class */
|
|
1171
|
+
function() {
|
|
1172
|
+
function e() {
|
|
1173
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1174
|
+
}
|
|
1175
|
+
return e.prototype.get = function(t) {
|
|
1176
|
+
return this.cache[t];
|
|
1177
|
+
}, e.prototype.set = function(t, r) {
|
|
1178
|
+
this.cache[t] = r;
|
|
1179
|
+
}, e;
|
|
1180
|
+
}()
|
|
1181
|
+
), mn = {
|
|
1196
1182
|
create: function() {
|
|
1197
|
-
return new
|
|
1183
|
+
return new pn();
|
|
1198
1184
|
}
|
|
1199
|
-
},
|
|
1200
|
-
variadic:
|
|
1201
|
-
monadic:
|
|
1185
|
+
}, we = {
|
|
1186
|
+
variadic: fn,
|
|
1187
|
+
monadic: cn
|
|
1202
1188
|
}, m;
|
|
1203
1189
|
(function(e) {
|
|
1204
1190
|
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";
|
|
@@ -1211,43 +1197,43 @@ var X;
|
|
|
1211
1197
|
(function(e) {
|
|
1212
1198
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1213
1199
|
})(X || (X = {}));
|
|
1214
|
-
function
|
|
1200
|
+
function at(e) {
|
|
1215
1201
|
return e.type === _.literal;
|
|
1216
1202
|
}
|
|
1217
|
-
function
|
|
1203
|
+
function bn(e) {
|
|
1218
1204
|
return e.type === _.argument;
|
|
1219
1205
|
}
|
|
1220
|
-
function
|
|
1206
|
+
function Rt(e) {
|
|
1221
1207
|
return e.type === _.number;
|
|
1222
1208
|
}
|
|
1223
|
-
function
|
|
1209
|
+
function Ut(e) {
|
|
1224
1210
|
return e.type === _.date;
|
|
1225
1211
|
}
|
|
1226
|
-
function
|
|
1212
|
+
function Dt(e) {
|
|
1227
1213
|
return e.type === _.time;
|
|
1228
1214
|
}
|
|
1229
|
-
function
|
|
1215
|
+
function Gt(e) {
|
|
1230
1216
|
return e.type === _.select;
|
|
1231
1217
|
}
|
|
1232
|
-
function
|
|
1218
|
+
function Ft(e) {
|
|
1233
1219
|
return e.type === _.plural;
|
|
1234
1220
|
}
|
|
1235
|
-
function
|
|
1221
|
+
function gn(e) {
|
|
1236
1222
|
return e.type === _.pound;
|
|
1237
1223
|
}
|
|
1238
|
-
function
|
|
1224
|
+
function jt(e) {
|
|
1239
1225
|
return e.type === _.tag;
|
|
1240
1226
|
}
|
|
1241
|
-
function
|
|
1227
|
+
function kt(e) {
|
|
1242
1228
|
return !!(e && typeof e == "object" && e.type === X.number);
|
|
1243
1229
|
}
|
|
1244
|
-
function
|
|
1230
|
+
function De(e) {
|
|
1245
1231
|
return !!(e && typeof e == "object" && e.type === X.dateTime);
|
|
1246
1232
|
}
|
|
1247
|
-
var
|
|
1248
|
-
function
|
|
1233
|
+
var Vt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, yn = /(?:[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;
|
|
1234
|
+
function vn(e) {
|
|
1249
1235
|
var t = {};
|
|
1250
|
-
return e.replace(
|
|
1236
|
+
return e.replace(yn, function(r) {
|
|
1251
1237
|
var n = r.length;
|
|
1252
1238
|
switch (r[0]) {
|
|
1253
1239
|
case "G":
|
|
@@ -1336,36 +1322,36 @@ function En(e) {
|
|
|
1336
1322
|
return "";
|
|
1337
1323
|
}), t;
|
|
1338
1324
|
}
|
|
1339
|
-
var
|
|
1340
|
-
function
|
|
1325
|
+
var _n = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1326
|
+
function xn(e) {
|
|
1341
1327
|
if (e.length === 0)
|
|
1342
1328
|
throw new Error("Number skeleton cannot be empty");
|
|
1343
|
-
for (var t = e.split(
|
|
1344
|
-
return
|
|
1329
|
+
for (var t = e.split(_n).filter(function(f) {
|
|
1330
|
+
return f.length > 0;
|
|
1345
1331
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1346
1332
|
var o = i[n], s = o.split("/");
|
|
1347
1333
|
if (s.length === 0)
|
|
1348
1334
|
throw new Error("Invalid number skeleton");
|
|
1349
1335
|
for (var a = s[0], h = s.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
1350
|
-
var
|
|
1351
|
-
if (
|
|
1336
|
+
var c = l[u];
|
|
1337
|
+
if (c.length === 0)
|
|
1352
1338
|
throw new Error("Invalid number skeleton");
|
|
1353
1339
|
}
|
|
1354
1340
|
r.push({ stem: a, options: h });
|
|
1355
1341
|
}
|
|
1356
1342
|
return r;
|
|
1357
1343
|
}
|
|
1358
|
-
function
|
|
1344
|
+
function En(e) {
|
|
1359
1345
|
return e.replace(/^(.*?)-/, "");
|
|
1360
1346
|
}
|
|
1361
|
-
var
|
|
1362
|
-
function
|
|
1347
|
+
var ut = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Xt = /^(@+)?(\+|#+)?[rs]?$/g, Sn = /(\*)(0+)|(#+)(0+)|(0+)/g, Wt = /^(0+)$/;
|
|
1348
|
+
function ht(e) {
|
|
1363
1349
|
var t = {};
|
|
1364
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1350
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Xt, function(r, n, i) {
|
|
1365
1351
|
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)), "";
|
|
1366
1352
|
}), t;
|
|
1367
1353
|
}
|
|
1368
|
-
function
|
|
1354
|
+
function zt(e) {
|
|
1369
1355
|
switch (e) {
|
|
1370
1356
|
case "sign-auto":
|
|
1371
1357
|
return {
|
|
@@ -1405,7 +1391,7 @@ function qt(e) {
|
|
|
1405
1391
|
};
|
|
1406
1392
|
}
|
|
1407
1393
|
}
|
|
1408
|
-
function
|
|
1394
|
+
function Tn(e) {
|
|
1409
1395
|
var t;
|
|
1410
1396
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1411
1397
|
notation: "engineering"
|
|
@@ -1413,17 +1399,17 @@ function Bn(e) {
|
|
|
1413
1399
|
notation: "scientific"
|
|
1414
1400
|
}, e = e.slice(1)), t) {
|
|
1415
1401
|
var r = e.slice(0, 2);
|
|
1416
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1402
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Wt.test(e))
|
|
1417
1403
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1418
1404
|
t.minimumIntegerDigits = e.length;
|
|
1419
1405
|
}
|
|
1420
1406
|
return t;
|
|
1421
1407
|
}
|
|
1422
|
-
function
|
|
1423
|
-
var t = {}, r =
|
|
1408
|
+
function lt(e) {
|
|
1409
|
+
var t = {}, r = zt(e);
|
|
1424
1410
|
return r || t;
|
|
1425
1411
|
}
|
|
1426
|
-
function
|
|
1412
|
+
function Hn(e) {
|
|
1427
1413
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1428
1414
|
var i = n[r];
|
|
1429
1415
|
switch (i.stem) {
|
|
@@ -1447,7 +1433,7 @@ function wn(e) {
|
|
|
1447
1433
|
continue;
|
|
1448
1434
|
case "measure-unit":
|
|
1449
1435
|
case "unit":
|
|
1450
|
-
t.style = "unit", t.unit =
|
|
1436
|
+
t.style = "unit", t.unit = En(i.options[0]);
|
|
1451
1437
|
continue;
|
|
1452
1438
|
case "compact-short":
|
|
1453
1439
|
case "K":
|
|
@@ -1459,12 +1445,12 @@ function wn(e) {
|
|
|
1459
1445
|
continue;
|
|
1460
1446
|
case "scientific":
|
|
1461
1447
|
t = g(g(g({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1462
|
-
return g(g({}, h),
|
|
1448
|
+
return g(g({}, h), lt(u));
|
|
1463
1449
|
}, {}));
|
|
1464
1450
|
continue;
|
|
1465
1451
|
case "engineering":
|
|
1466
1452
|
t = g(g(g({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1467
|
-
return g(g({}, h),
|
|
1453
|
+
return g(g({}, h), lt(u));
|
|
1468
1454
|
}, {}));
|
|
1469
1455
|
continue;
|
|
1470
1456
|
case "notation-simple":
|
|
@@ -1509,40 +1495,40 @@ function wn(e) {
|
|
|
1509
1495
|
case "integer-width":
|
|
1510
1496
|
if (i.options.length > 1)
|
|
1511
1497
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1512
|
-
i.options[0].replace(
|
|
1498
|
+
i.options[0].replace(Sn, function(h, u, l, c, f, d) {
|
|
1513
1499
|
if (u)
|
|
1514
1500
|
t.minimumIntegerDigits = l.length;
|
|
1515
1501
|
else {
|
|
1516
|
-
if (
|
|
1502
|
+
if (c && f)
|
|
1517
1503
|
throw new Error("We currently do not support maximum integer digits");
|
|
1518
|
-
if (
|
|
1504
|
+
if (d)
|
|
1519
1505
|
throw new Error("We currently do not support exact integer digits");
|
|
1520
1506
|
}
|
|
1521
1507
|
return "";
|
|
1522
1508
|
});
|
|
1523
1509
|
continue;
|
|
1524
1510
|
}
|
|
1525
|
-
if (
|
|
1511
|
+
if (Wt.test(i.stem)) {
|
|
1526
1512
|
t.minimumIntegerDigits = i.stem.length;
|
|
1527
1513
|
continue;
|
|
1528
1514
|
}
|
|
1529
|
-
if (
|
|
1515
|
+
if (ut.test(i.stem)) {
|
|
1530
1516
|
if (i.options.length > 1)
|
|
1531
1517
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1532
|
-
i.stem.replace(
|
|
1533
|
-
return l === "*" ? t.minimumFractionDigits = u.length :
|
|
1518
|
+
i.stem.replace(ut, function(h, u, l, c, f, d) {
|
|
1519
|
+
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && d ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1534
1520
|
});
|
|
1535
1521
|
var o = i.options[0];
|
|
1536
|
-
o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t),
|
|
1522
|
+
o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t), ht(o)));
|
|
1537
1523
|
continue;
|
|
1538
1524
|
}
|
|
1539
|
-
if (
|
|
1540
|
-
t = g(g({}, t),
|
|
1525
|
+
if (Xt.test(i.stem)) {
|
|
1526
|
+
t = g(g({}, t), ht(i.stem));
|
|
1541
1527
|
continue;
|
|
1542
1528
|
}
|
|
1543
|
-
var s =
|
|
1529
|
+
var s = zt(i.stem);
|
|
1544
1530
|
s && (t = g(g({}, t), s));
|
|
1545
|
-
var a =
|
|
1531
|
+
var a = Tn(i.stem);
|
|
1546
1532
|
a && (t = g(g({}, t), a));
|
|
1547
1533
|
}
|
|
1548
1534
|
return t;
|
|
@@ -2962,13 +2948,13 @@ var le = {
|
|
|
2962
2948
|
"h"
|
|
2963
2949
|
]
|
|
2964
2950
|
};
|
|
2965
|
-
function
|
|
2951
|
+
function Bn(e, t) {
|
|
2966
2952
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2967
2953
|
var i = e.charAt(n);
|
|
2968
2954
|
if (i === "j") {
|
|
2969
2955
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2970
2956
|
o++, n++;
|
|
2971
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2957
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = wn(t);
|
|
2972
2958
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2973
2959
|
r += h;
|
|
2974
2960
|
for (; s-- > 0; )
|
|
@@ -2978,7 +2964,7 @@ function An(e, t) {
|
|
|
2978
2964
|
}
|
|
2979
2965
|
return r;
|
|
2980
2966
|
}
|
|
2981
|
-
function
|
|
2967
|
+
function wn(e) {
|
|
2982
2968
|
var t = e.hourCycle;
|
|
2983
2969
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2984
2970
|
e.hourCycles && // @ts-ignore
|
|
@@ -3000,20 +2986,20 @@ function Pn(e) {
|
|
|
3000
2986
|
var i = le[n || ""] || le[r || ""] || le["".concat(r, "-001")] || le["001"];
|
|
3001
2987
|
return i[0];
|
|
3002
2988
|
}
|
|
3003
|
-
var
|
|
2989
|
+
var Ae, An = new RegExp("^".concat(Vt.source, "*")), Pn = new RegExp("".concat(Vt.source, "*$"));
|
|
3004
2990
|
function b(e, t) {
|
|
3005
2991
|
return { start: e, end: t };
|
|
3006
2992
|
}
|
|
3007
|
-
var
|
|
2993
|
+
var On = !!String.prototype.startsWith && "_a".startsWith("a", 1), In = !!String.fromCodePoint, Ln = !!Object.fromEntries, Nn = !!String.prototype.codePointAt, Mn = !!String.prototype.trimStart, Cn = !!String.prototype.trimEnd, $n = !!Number.isSafeInteger, Rn = $n ? Number.isSafeInteger : function(e) {
|
|
3008
2994
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3009
|
-
},
|
|
2995
|
+
}, Ge = !0;
|
|
3010
2996
|
try {
|
|
3011
|
-
var
|
|
3012
|
-
|
|
2997
|
+
var Un = Qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2998
|
+
Ge = ((Ae = Un.exec("a")) === null || Ae === void 0 ? void 0 : Ae[0]) === "a";
|
|
3013
2999
|
} catch {
|
|
3014
|
-
|
|
3000
|
+
Ge = !1;
|
|
3015
3001
|
}
|
|
3016
|
-
var
|
|
3002
|
+
var ft = On ? (
|
|
3017
3003
|
// Native
|
|
3018
3004
|
function(t, r, n) {
|
|
3019
3005
|
return t.startsWith(r, n);
|
|
@@ -3023,7 +3009,7 @@ var pt = Ln ? (
|
|
|
3023
3009
|
function(t, r, n) {
|
|
3024
3010
|
return t.slice(n, n + r.length) === r;
|
|
3025
3011
|
}
|
|
3026
|
-
),
|
|
3012
|
+
), Fe = In ? String.fromCodePoint : (
|
|
3027
3013
|
// IE11
|
|
3028
3014
|
function() {
|
|
3029
3015
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3035,9 +3021,9 @@ var pt = Ln ? (
|
|
|
3035
3021
|
}
|
|
3036
3022
|
return n;
|
|
3037
3023
|
}
|
|
3038
|
-
),
|
|
3024
|
+
), ct = (
|
|
3039
3025
|
// native
|
|
3040
|
-
|
|
3026
|
+
Ln ? Object.fromEntries : (
|
|
3041
3027
|
// Ponyfill
|
|
3042
3028
|
function(t) {
|
|
3043
3029
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3047,7 +3033,7 @@ var pt = Ln ? (
|
|
|
3047
3033
|
return r;
|
|
3048
3034
|
}
|
|
3049
3035
|
)
|
|
3050
|
-
),
|
|
3036
|
+
), Zt = Nn ? (
|
|
3051
3037
|
// Native
|
|
3052
3038
|
function(t, r) {
|
|
3053
3039
|
return t.codePointAt(r);
|
|
@@ -3061,7 +3047,7 @@ var pt = Ln ? (
|
|
|
3061
3047
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3062
3048
|
}
|
|
3063
3049
|
}
|
|
3064
|
-
),
|
|
3050
|
+
), Dn = Mn ? (
|
|
3065
3051
|
// Native
|
|
3066
3052
|
function(t) {
|
|
3067
3053
|
return t.trimStart();
|
|
@@ -3069,9 +3055,9 @@ var pt = Ln ? (
|
|
|
3069
3055
|
) : (
|
|
3070
3056
|
// Ponyfill
|
|
3071
3057
|
function(t) {
|
|
3072
|
-
return t.replace(
|
|
3058
|
+
return t.replace(An, "");
|
|
3073
3059
|
}
|
|
3074
|
-
),
|
|
3060
|
+
), Gn = Cn ? (
|
|
3075
3061
|
// Native
|
|
3076
3062
|
function(t) {
|
|
3077
3063
|
return t.trimEnd();
|
|
@@ -3079,32 +3065,32 @@ var pt = Ln ? (
|
|
|
3079
3065
|
) : (
|
|
3080
3066
|
// Ponyfill
|
|
3081
3067
|
function(t) {
|
|
3082
|
-
return t.replace(
|
|
3068
|
+
return t.replace(Pn, "");
|
|
3083
3069
|
}
|
|
3084
3070
|
);
|
|
3085
|
-
function
|
|
3071
|
+
function Qt(e, t) {
|
|
3086
3072
|
return new RegExp(e, t);
|
|
3087
3073
|
}
|
|
3088
|
-
var
|
|
3089
|
-
if (
|
|
3090
|
-
var
|
|
3091
|
-
|
|
3074
|
+
var je;
|
|
3075
|
+
if (Ge) {
|
|
3076
|
+
var dt = Qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3077
|
+
je = function(t, r) {
|
|
3092
3078
|
var n;
|
|
3093
|
-
|
|
3094
|
-
var i =
|
|
3079
|
+
dt.lastIndex = r;
|
|
3080
|
+
var i = dt.exec(t);
|
|
3095
3081
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3096
3082
|
};
|
|
3097
3083
|
} else
|
|
3098
|
-
|
|
3084
|
+
je = function(t, r) {
|
|
3099
3085
|
for (var n = []; ; ) {
|
|
3100
|
-
var i =
|
|
3101
|
-
if (i === void 0 ||
|
|
3086
|
+
var i = Zt(t, r);
|
|
3087
|
+
if (i === void 0 || qt(i) || Vn(i))
|
|
3102
3088
|
break;
|
|
3103
3089
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3104
3090
|
}
|
|
3105
|
-
return
|
|
3091
|
+
return Fe.apply(void 0, n);
|
|
3106
3092
|
};
|
|
3107
|
-
var
|
|
3093
|
+
var Fn = (
|
|
3108
3094
|
/** @class */
|
|
3109
3095
|
function() {
|
|
3110
3096
|
function e(t, r) {
|
|
@@ -3135,7 +3121,7 @@ var kn = (
|
|
|
3135
3121
|
if (n)
|
|
3136
3122
|
break;
|
|
3137
3123
|
return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
3138
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3124
|
+
} else if (o === 60 && !this.ignoreTag && ke(this.peek() || 0)) {
|
|
3139
3125
|
var s = this.parseTag(t, r);
|
|
3140
3126
|
if (s.err)
|
|
3141
3127
|
return s;
|
|
@@ -3168,7 +3154,7 @@ var kn = (
|
|
|
3168
3154
|
return o;
|
|
3169
3155
|
var s = o.val, a = this.clonePosition();
|
|
3170
3156
|
if (this.bumpIf("</")) {
|
|
3171
|
-
if (this.isEOF() || !
|
|
3157
|
+
if (this.isEOF() || !ke(this.char()))
|
|
3172
3158
|
return this.error(m.INVALID_TAG, b(a, this.clonePosition()));
|
|
3173
3159
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3174
3160
|
return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -3186,7 +3172,7 @@ var kn = (
|
|
|
3186
3172
|
return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
|
|
3187
3173
|
}, e.prototype.parseTagName = function() {
|
|
3188
3174
|
var t = this.offset();
|
|
3189
|
-
for (this.bump(); !this.isEOF() &&
|
|
3175
|
+
for (this.bump(); !this.isEOF() && kn(this.char()); )
|
|
3190
3176
|
this.bump();
|
|
3191
3177
|
return this.message.slice(t, this.offset());
|
|
3192
3178
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3215,7 +3201,7 @@ var kn = (
|
|
|
3215
3201
|
};
|
|
3216
3202
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3217
3203
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3218
|
-
!
|
|
3204
|
+
!jn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3219
3205
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3220
3206
|
if (this.isEOF() || this.char() !== 39)
|
|
3221
3207
|
return null;
|
|
@@ -3249,12 +3235,12 @@ var kn = (
|
|
|
3249
3235
|
r.push(n);
|
|
3250
3236
|
this.bump();
|
|
3251
3237
|
}
|
|
3252
|
-
return
|
|
3238
|
+
return Fe.apply(void 0, r);
|
|
3253
3239
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3254
3240
|
if (this.isEOF())
|
|
3255
3241
|
return null;
|
|
3256
3242
|
var n = this.char();
|
|
3257
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3243
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
|
|
3258
3244
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3259
3245
|
var n = this.clonePosition();
|
|
3260
3246
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3283,7 +3269,7 @@ var kn = (
|
|
|
3283
3269
|
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3284
3270
|
}
|
|
3285
3271
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3286
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3272
|
+
var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
|
|
3287
3273
|
this.bumpTo(i);
|
|
3288
3274
|
var o = this.clonePosition(), s = b(t, o);
|
|
3289
3275
|
return { value: n, location: s };
|
|
@@ -3299,40 +3285,40 @@ var kn = (
|
|
|
3299
3285
|
var u = null;
|
|
3300
3286
|
if (this.bumpIf(",")) {
|
|
3301
3287
|
this.bumpSpace();
|
|
3302
|
-
var l = this.clonePosition(),
|
|
3303
|
-
if (
|
|
3304
|
-
return
|
|
3305
|
-
var
|
|
3306
|
-
if (
|
|
3288
|
+
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3289
|
+
if (c.err)
|
|
3290
|
+
return c;
|
|
3291
|
+
var f = Gn(c.val);
|
|
3292
|
+
if (f.length === 0)
|
|
3307
3293
|
return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3308
|
-
var
|
|
3309
|
-
u = { style:
|
|
3294
|
+
var d = b(l, this.clonePosition());
|
|
3295
|
+
u = { style: f, styleLocation: d };
|
|
3310
3296
|
}
|
|
3311
|
-
var
|
|
3312
|
-
if (
|
|
3313
|
-
return
|
|
3297
|
+
var p = this.tryParseArgumentClose(i);
|
|
3298
|
+
if (p.err)
|
|
3299
|
+
return p;
|
|
3314
3300
|
var v = b(i, this.clonePosition());
|
|
3315
|
-
if (u &&
|
|
3316
|
-
var H =
|
|
3301
|
+
if (u && ft(u?.style, "::", 0)) {
|
|
3302
|
+
var H = Dn(u.style.slice(2));
|
|
3317
3303
|
if (a === "number") {
|
|
3318
|
-
var
|
|
3319
|
-
return
|
|
3320
|
-
val: { type: _.number, value: n, location: v, style:
|
|
3304
|
+
var c = this.parseNumberSkeletonFromString(H, u.styleLocation);
|
|
3305
|
+
return c.err ? c : {
|
|
3306
|
+
val: { type: _.number, value: n, location: v, style: c.val },
|
|
3321
3307
|
err: null
|
|
3322
3308
|
};
|
|
3323
3309
|
} else {
|
|
3324
3310
|
if (H.length === 0)
|
|
3325
3311
|
return this.error(m.EXPECT_DATE_TIME_SKELETON, v);
|
|
3326
3312
|
var C = H;
|
|
3327
|
-
this.locale && (C =
|
|
3328
|
-
var
|
|
3313
|
+
this.locale && (C = Bn(H, this.locale));
|
|
3314
|
+
var f = {
|
|
3329
3315
|
type: X.dateTime,
|
|
3330
3316
|
pattern: C,
|
|
3331
3317
|
location: u.styleLocation,
|
|
3332
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3318
|
+
parsedOptions: this.shouldParseSkeletons ? vn(C) : {}
|
|
3333
3319
|
}, L = a === "date" ? _.date : _.time;
|
|
3334
3320
|
return {
|
|
3335
|
-
val: { type: L, value: n, location: v, style:
|
|
3321
|
+
val: { type: L, value: n, location: v, style: f },
|
|
3336
3322
|
err: null
|
|
3337
3323
|
};
|
|
3338
3324
|
}
|
|
@@ -3350,32 +3336,32 @@ var kn = (
|
|
|
3350
3336
|
case "plural":
|
|
3351
3337
|
case "selectordinal":
|
|
3352
3338
|
case "select": {
|
|
3353
|
-
var
|
|
3339
|
+
var E = this.clonePosition();
|
|
3354
3340
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3355
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(
|
|
3341
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(E, g({}, E)));
|
|
3356
3342
|
this.bumpSpace();
|
|
3357
3343
|
var $ = this.parseIdentifierIfPossible(), A = 0;
|
|
3358
3344
|
if (a !== "select" && $.value === "offset") {
|
|
3359
3345
|
if (!this.bumpIf(":"))
|
|
3360
3346
|
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
3361
3347
|
this.bumpSpace();
|
|
3362
|
-
var
|
|
3363
|
-
if (
|
|
3364
|
-
return
|
|
3365
|
-
this.bumpSpace(), $ = this.parseIdentifierIfPossible(), A =
|
|
3348
|
+
var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3349
|
+
if (c.err)
|
|
3350
|
+
return c;
|
|
3351
|
+
this.bumpSpace(), $ = this.parseIdentifierIfPossible(), A = c.val;
|
|
3366
3352
|
}
|
|
3367
3353
|
var U = this.tryParsePluralOrSelectOptions(t, a, r, $);
|
|
3368
3354
|
if (U.err)
|
|
3369
3355
|
return U;
|
|
3370
|
-
var
|
|
3371
|
-
if (
|
|
3372
|
-
return
|
|
3356
|
+
var p = this.tryParseArgumentClose(i);
|
|
3357
|
+
if (p.err)
|
|
3358
|
+
return p;
|
|
3373
3359
|
var ae = b(i, this.clonePosition());
|
|
3374
3360
|
return a === "select" ? {
|
|
3375
3361
|
val: {
|
|
3376
3362
|
type: _.select,
|
|
3377
3363
|
value: n,
|
|
3378
|
-
options:
|
|
3364
|
+
options: ct(U.val),
|
|
3379
3365
|
location: ae
|
|
3380
3366
|
},
|
|
3381
3367
|
err: null
|
|
@@ -3383,7 +3369,7 @@ var kn = (
|
|
|
3383
3369
|
val: {
|
|
3384
3370
|
type: _.plural,
|
|
3385
3371
|
value: n,
|
|
3386
|
-
options:
|
|
3372
|
+
options: ct(U.val),
|
|
3387
3373
|
offset: A,
|
|
3388
3374
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3389
3375
|
location: ae
|
|
@@ -3434,7 +3420,7 @@ var kn = (
|
|
|
3434
3420
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3435
3421
|
var n = [];
|
|
3436
3422
|
try {
|
|
3437
|
-
n =
|
|
3423
|
+
n = xn(t);
|
|
3438
3424
|
} catch {
|
|
3439
3425
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
|
3440
3426
|
}
|
|
@@ -3443,39 +3429,39 @@ var kn = (
|
|
|
3443
3429
|
type: X.number,
|
|
3444
3430
|
tokens: n,
|
|
3445
3431
|
location: r,
|
|
3446
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3432
|
+
parsedOptions: this.shouldParseSkeletons ? Hn(n) : {}
|
|
3447
3433
|
},
|
|
3448
3434
|
err: null
|
|
3449
3435
|
};
|
|
3450
3436
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3451
3437
|
for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
3452
3438
|
if (u.length === 0) {
|
|
3453
|
-
var
|
|
3439
|
+
var c = this.clonePosition();
|
|
3454
3440
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3455
|
-
var
|
|
3456
|
-
if (
|
|
3457
|
-
return
|
|
3458
|
-
l = b(
|
|
3441
|
+
var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3442
|
+
if (f.err)
|
|
3443
|
+
return f;
|
|
3444
|
+
l = b(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3459
3445
|
} else
|
|
3460
3446
|
break;
|
|
3461
3447
|
}
|
|
3462
3448
|
if (h.has(u))
|
|
3463
3449
|
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3464
3450
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3465
|
-
var
|
|
3451
|
+
var d = this.clonePosition();
|
|
3466
3452
|
if (!this.bumpIf("{"))
|
|
3467
3453
|
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3468
|
-
var
|
|
3469
|
-
if (
|
|
3470
|
-
return
|
|
3471
|
-
var v = this.tryParseArgumentClose(
|
|
3454
|
+
var p = this.parseMessage(t + 1, r, n);
|
|
3455
|
+
if (p.err)
|
|
3456
|
+
return p;
|
|
3457
|
+
var v = this.tryParseArgumentClose(d);
|
|
3472
3458
|
if (v.err)
|
|
3473
3459
|
return v;
|
|
3474
3460
|
a.push([
|
|
3475
3461
|
u,
|
|
3476
3462
|
{
|
|
3477
|
-
value:
|
|
3478
|
-
location: b(
|
|
3463
|
+
value: p.val,
|
|
3464
|
+
location: b(d, this.clonePosition())
|
|
3479
3465
|
}
|
|
3480
3466
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3481
3467
|
}
|
|
@@ -3491,7 +3477,7 @@ var kn = (
|
|
|
3491
3477
|
break;
|
|
3492
3478
|
}
|
|
3493
3479
|
var h = b(i, this.clonePosition());
|
|
3494
|
-
return o ? (s *= n,
|
|
3480
|
+
return o ? (s *= n, Rn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3495
3481
|
}, e.prototype.offset = function() {
|
|
3496
3482
|
return this.position.offset;
|
|
3497
3483
|
}, e.prototype.isEOF = function() {
|
|
@@ -3506,7 +3492,7 @@ var kn = (
|
|
|
3506
3492
|
var t = this.position.offset;
|
|
3507
3493
|
if (t >= this.message.length)
|
|
3508
3494
|
throw Error("out of bound");
|
|
3509
|
-
var r =
|
|
3495
|
+
var r = Zt(this.message, t);
|
|
3510
3496
|
if (r === void 0)
|
|
3511
3497
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3512
3498
|
return r;
|
|
@@ -3525,7 +3511,7 @@ var kn = (
|
|
|
3525
3511
|
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);
|
|
3526
3512
|
}
|
|
3527
3513
|
}, e.prototype.bumpIf = function(t) {
|
|
3528
|
-
if (
|
|
3514
|
+
if (ft(this.message, t, this.offset())) {
|
|
3529
3515
|
for (var r = 0; r < t.length; r++)
|
|
3530
3516
|
this.bump();
|
|
3531
3517
|
return !0;
|
|
@@ -3547,7 +3533,7 @@ var kn = (
|
|
|
3547
3533
|
break;
|
|
3548
3534
|
}
|
|
3549
3535
|
}, e.prototype.bumpSpace = function() {
|
|
3550
|
-
for (; !this.isEOF() &&
|
|
3536
|
+
for (; !this.isEOF() && qt(this.char()); )
|
|
3551
3537
|
this.bump();
|
|
3552
3538
|
}, e.prototype.peek = function() {
|
|
3553
3539
|
if (this.isEOF())
|
|
@@ -3557,38 +3543,38 @@ var kn = (
|
|
|
3557
3543
|
}, e;
|
|
3558
3544
|
}()
|
|
3559
3545
|
);
|
|
3560
|
-
function
|
|
3546
|
+
function ke(e) {
|
|
3561
3547
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3562
3548
|
}
|
|
3563
|
-
function
|
|
3564
|
-
return
|
|
3549
|
+
function jn(e) {
|
|
3550
|
+
return ke(e) || e === 47;
|
|
3565
3551
|
}
|
|
3566
|
-
function
|
|
3552
|
+
function kn(e) {
|
|
3567
3553
|
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;
|
|
3568
3554
|
}
|
|
3569
|
-
function
|
|
3555
|
+
function qt(e) {
|
|
3570
3556
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3571
3557
|
}
|
|
3572
|
-
function
|
|
3558
|
+
function Vn(e) {
|
|
3573
3559
|
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;
|
|
3574
3560
|
}
|
|
3575
|
-
function
|
|
3561
|
+
function Ve(e) {
|
|
3576
3562
|
e.forEach(function(t) {
|
|
3577
|
-
if (delete t.location,
|
|
3563
|
+
if (delete t.location, Gt(t) || Ft(t))
|
|
3578
3564
|
for (var r in t.options)
|
|
3579
|
-
delete t.options[r].location,
|
|
3565
|
+
delete t.options[r].location, Ve(t.options[r].value);
|
|
3580
3566
|
else
|
|
3581
|
-
|
|
3567
|
+
Rt(t) && kt(t.style) || (Ut(t) || Dt(t)) && De(t.style) ? delete t.style.location : jt(t) && Ve(t.children);
|
|
3582
3568
|
});
|
|
3583
3569
|
}
|
|
3584
|
-
function
|
|
3570
|
+
function Xn(e, t) {
|
|
3585
3571
|
t === void 0 && (t = {}), t = g({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3586
|
-
var r = new
|
|
3572
|
+
var r = new Fn(e, t).parse();
|
|
3587
3573
|
if (r.err) {
|
|
3588
3574
|
var n = SyntaxError(m[r.err.kind]);
|
|
3589
3575
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3590
3576
|
}
|
|
3591
|
-
return t?.captureLocation ||
|
|
3577
|
+
return t?.captureLocation || Ve(r.val), r.val;
|
|
3592
3578
|
}
|
|
3593
3579
|
var W;
|
|
3594
3580
|
(function(e) {
|
|
@@ -3606,7 +3592,7 @@ var _e = (
|
|
|
3606
3592
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3607
3593
|
}, t;
|
|
3608
3594
|
}(Error)
|
|
3609
|
-
),
|
|
3595
|
+
), pt = (
|
|
3610
3596
|
/** @class */
|
|
3611
3597
|
function(e) {
|
|
3612
3598
|
I(t, e);
|
|
@@ -3615,7 +3601,7 @@ var _e = (
|
|
|
3615
3601
|
}
|
|
3616
3602
|
return t;
|
|
3617
3603
|
}(_e)
|
|
3618
|
-
),
|
|
3604
|
+
), Wn = (
|
|
3619
3605
|
/** @class */
|
|
3620
3606
|
function(e) {
|
|
3621
3607
|
I(t, e);
|
|
@@ -3624,7 +3610,7 @@ var _e = (
|
|
|
3624
3610
|
}
|
|
3625
3611
|
return t;
|
|
3626
3612
|
}(_e)
|
|
3627
|
-
),
|
|
3613
|
+
), zn = (
|
|
3628
3614
|
/** @class */
|
|
3629
3615
|
function(e) {
|
|
3630
3616
|
I(t, e);
|
|
@@ -3633,128 +3619,128 @@ var _e = (
|
|
|
3633
3619
|
}
|
|
3634
3620
|
return t;
|
|
3635
3621
|
}(_e)
|
|
3636
|
-
),
|
|
3622
|
+
), x;
|
|
3637
3623
|
(function(e) {
|
|
3638
3624
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3639
|
-
})(
|
|
3640
|
-
function
|
|
3625
|
+
})(x || (x = {}));
|
|
3626
|
+
function Zn(e) {
|
|
3641
3627
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3642
3628
|
var n = t[t.length - 1];
|
|
3643
|
-
return !n || n.type !==
|
|
3629
|
+
return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
|
|
3644
3630
|
}, []);
|
|
3645
3631
|
}
|
|
3646
|
-
function
|
|
3632
|
+
function Qn(e) {
|
|
3647
3633
|
return typeof e == "function";
|
|
3648
3634
|
}
|
|
3649
|
-
function
|
|
3650
|
-
if (e.length === 1 &&
|
|
3635
|
+
function de(e, t, r, n, i, o, s) {
|
|
3636
|
+
if (e.length === 1 && at(e[0]))
|
|
3651
3637
|
return [
|
|
3652
3638
|
{
|
|
3653
|
-
type:
|
|
3639
|
+
type: x.literal,
|
|
3654
3640
|
value: e[0].value
|
|
3655
3641
|
}
|
|
3656
3642
|
];
|
|
3657
3643
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3658
3644
|
var l = u[h];
|
|
3659
|
-
if (
|
|
3645
|
+
if (at(l)) {
|
|
3660
3646
|
a.push({
|
|
3661
|
-
type:
|
|
3647
|
+
type: x.literal,
|
|
3662
3648
|
value: l.value
|
|
3663
3649
|
});
|
|
3664
3650
|
continue;
|
|
3665
3651
|
}
|
|
3666
|
-
if (
|
|
3652
|
+
if (gn(l)) {
|
|
3667
3653
|
typeof o == "number" && a.push({
|
|
3668
|
-
type:
|
|
3654
|
+
type: x.literal,
|
|
3669
3655
|
value: r.getNumberFormat(t).format(o)
|
|
3670
3656
|
});
|
|
3671
3657
|
continue;
|
|
3672
3658
|
}
|
|
3673
|
-
var
|
|
3674
|
-
if (!(i &&
|
|
3675
|
-
throw new
|
|
3676
|
-
var
|
|
3677
|
-
if (
|
|
3678
|
-
(!
|
|
3679
|
-
type: typeof
|
|
3680
|
-
value:
|
|
3659
|
+
var c = l.value;
|
|
3660
|
+
if (!(i && c in i))
|
|
3661
|
+
throw new zn(c, s);
|
|
3662
|
+
var f = i[c];
|
|
3663
|
+
if (bn(l)) {
|
|
3664
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3665
|
+
type: typeof f == "string" ? x.literal : x.object,
|
|
3666
|
+
value: f
|
|
3681
3667
|
});
|
|
3682
3668
|
continue;
|
|
3683
3669
|
}
|
|
3684
|
-
if (
|
|
3685
|
-
var
|
|
3670
|
+
if (Ut(l)) {
|
|
3671
|
+
var d = typeof l.style == "string" ? n.date[l.style] : De(l.style) ? l.style.parsedOptions : void 0;
|
|
3686
3672
|
a.push({
|
|
3687
|
-
type:
|
|
3688
|
-
value: r.getDateTimeFormat(t,
|
|
3673
|
+
type: x.literal,
|
|
3674
|
+
value: r.getDateTimeFormat(t, d).format(f)
|
|
3689
3675
|
});
|
|
3690
3676
|
continue;
|
|
3691
3677
|
}
|
|
3692
|
-
if (
|
|
3693
|
-
var
|
|
3678
|
+
if (Dt(l)) {
|
|
3679
|
+
var d = typeof l.style == "string" ? n.time[l.style] : De(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3694
3680
|
a.push({
|
|
3695
|
-
type:
|
|
3696
|
-
value: r.getDateTimeFormat(t,
|
|
3681
|
+
type: x.literal,
|
|
3682
|
+
value: r.getDateTimeFormat(t, d).format(f)
|
|
3697
3683
|
});
|
|
3698
3684
|
continue;
|
|
3699
3685
|
}
|
|
3700
|
-
if (
|
|
3701
|
-
var
|
|
3702
|
-
|
|
3703
|
-
type:
|
|
3704
|
-
value: r.getNumberFormat(t,
|
|
3686
|
+
if (Rt(l)) {
|
|
3687
|
+
var d = typeof l.style == "string" ? n.number[l.style] : kt(l.style) ? l.style.parsedOptions : void 0;
|
|
3688
|
+
d && d.scale && (f = f * (d.scale || 1)), a.push({
|
|
3689
|
+
type: x.literal,
|
|
3690
|
+
value: r.getNumberFormat(t, d).format(f)
|
|
3705
3691
|
});
|
|
3706
3692
|
continue;
|
|
3707
3693
|
}
|
|
3708
|
-
if (
|
|
3709
|
-
var
|
|
3710
|
-
if (!
|
|
3711
|
-
throw new
|
|
3712
|
-
var C =
|
|
3694
|
+
if (jt(l)) {
|
|
3695
|
+
var p = l.children, v = l.value, H = i[v];
|
|
3696
|
+
if (!Qn(H))
|
|
3697
|
+
throw new Wn(v, "function", s);
|
|
3698
|
+
var C = de(p, t, r, n, i, o), L = H(C.map(function(A) {
|
|
3713
3699
|
return A.value;
|
|
3714
3700
|
}));
|
|
3715
3701
|
Array.isArray(L) || (L = [L]), a.push.apply(a, L.map(function(A) {
|
|
3716
3702
|
return {
|
|
3717
|
-
type: typeof A == "string" ?
|
|
3703
|
+
type: typeof A == "string" ? x.literal : x.object,
|
|
3718
3704
|
value: A
|
|
3719
3705
|
};
|
|
3720
3706
|
}));
|
|
3721
3707
|
}
|
|
3722
|
-
if (
|
|
3723
|
-
var
|
|
3724
|
-
if (!
|
|
3725
|
-
throw new
|
|
3726
|
-
a.push.apply(a,
|
|
3708
|
+
if (Gt(l)) {
|
|
3709
|
+
var E = l.options[f] || l.options.other;
|
|
3710
|
+
if (!E)
|
|
3711
|
+
throw new pt(l.value, f, Object.keys(l.options), s);
|
|
3712
|
+
a.push.apply(a, de(E.value, t, r, n, i));
|
|
3727
3713
|
continue;
|
|
3728
3714
|
}
|
|
3729
|
-
if (
|
|
3730
|
-
var
|
|
3731
|
-
if (!
|
|
3715
|
+
if (Ft(l)) {
|
|
3716
|
+
var E = l.options["=".concat(f)];
|
|
3717
|
+
if (!E) {
|
|
3732
3718
|
if (!Intl.PluralRules)
|
|
3733
3719
|
throw new _e(`Intl.PluralRules is not available in this environment.
|
|
3734
3720
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3735
3721
|
`, W.MISSING_INTL_API, s);
|
|
3736
|
-
var $ = r.getPluralRules(t, { type: l.pluralType }).select(
|
|
3737
|
-
|
|
3722
|
+
var $ = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3723
|
+
E = l.options[$] || l.options.other;
|
|
3738
3724
|
}
|
|
3739
|
-
if (!
|
|
3740
|
-
throw new
|
|
3741
|
-
a.push.apply(a,
|
|
3725
|
+
if (!E)
|
|
3726
|
+
throw new pt(l.value, f, Object.keys(l.options), s);
|
|
3727
|
+
a.push.apply(a, de(E.value, t, r, n, i, f - (l.offset || 0)));
|
|
3742
3728
|
continue;
|
|
3743
3729
|
}
|
|
3744
3730
|
}
|
|
3745
|
-
return
|
|
3731
|
+
return Zn(a);
|
|
3746
3732
|
}
|
|
3747
|
-
function
|
|
3733
|
+
function qn(e, t) {
|
|
3748
3734
|
return t ? g(g(g({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3749
3735
|
return r[n] = g(g({}, e[n]), t[n] || {}), r;
|
|
3750
3736
|
}, {})) : e;
|
|
3751
3737
|
}
|
|
3752
|
-
function
|
|
3738
|
+
function Jn(e, t) {
|
|
3753
3739
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3754
|
-
return r[n] =
|
|
3740
|
+
return r[n] = qn(e[n], t[n]), r;
|
|
3755
3741
|
}, g({}, e)) : e;
|
|
3756
3742
|
}
|
|
3757
|
-
function
|
|
3743
|
+
function Pe(e) {
|
|
3758
3744
|
return {
|
|
3759
3745
|
create: function() {
|
|
3760
3746
|
return {
|
|
@@ -3768,39 +3754,39 @@ function Oe(e) {
|
|
|
3768
3754
|
}
|
|
3769
3755
|
};
|
|
3770
3756
|
}
|
|
3771
|
-
function
|
|
3757
|
+
function Yn(e) {
|
|
3772
3758
|
return e === void 0 && (e = {
|
|
3773
3759
|
number: {},
|
|
3774
3760
|
dateTime: {},
|
|
3775
3761
|
pluralRules: {}
|
|
3776
3762
|
}), {
|
|
3777
|
-
getNumberFormat:
|
|
3763
|
+
getNumberFormat: Be(function() {
|
|
3778
3764
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3779
3765
|
r[n] = arguments[n];
|
|
3780
3766
|
return new ((t = Intl.NumberFormat).bind.apply(t, k([void 0], r, !1)))();
|
|
3781
3767
|
}, {
|
|
3782
|
-
cache:
|
|
3783
|
-
strategy:
|
|
3768
|
+
cache: Pe(e.number),
|
|
3769
|
+
strategy: we.variadic
|
|
3784
3770
|
}),
|
|
3785
|
-
getDateTimeFormat:
|
|
3771
|
+
getDateTimeFormat: Be(function() {
|
|
3786
3772
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3787
3773
|
r[n] = arguments[n];
|
|
3788
3774
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, k([void 0], r, !1)))();
|
|
3789
3775
|
}, {
|
|
3790
|
-
cache:
|
|
3791
|
-
strategy:
|
|
3776
|
+
cache: Pe(e.dateTime),
|
|
3777
|
+
strategy: we.variadic
|
|
3792
3778
|
}),
|
|
3793
|
-
getPluralRules:
|
|
3779
|
+
getPluralRules: Be(function() {
|
|
3794
3780
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3795
3781
|
r[n] = arguments[n];
|
|
3796
3782
|
return new ((t = Intl.PluralRules).bind.apply(t, k([void 0], r, !1)))();
|
|
3797
3783
|
}, {
|
|
3798
|
-
cache:
|
|
3799
|
-
strategy:
|
|
3784
|
+
cache: Pe(e.pluralRules),
|
|
3785
|
+
strategy: we.variadic
|
|
3800
3786
|
})
|
|
3801
3787
|
};
|
|
3802
3788
|
}
|
|
3803
|
-
var
|
|
3789
|
+
var Kn = (
|
|
3804
3790
|
/** @class */
|
|
3805
3791
|
function() {
|
|
3806
3792
|
function e(t, r, n, i) {
|
|
@@ -3814,12 +3800,12 @@ var ti = (
|
|
|
3814
3800
|
var u = o.formatToParts(h);
|
|
3815
3801
|
if (u.length === 1)
|
|
3816
3802
|
return u[0].value;
|
|
3817
|
-
var l = u.reduce(function(
|
|
3818
|
-
return !
|
|
3803
|
+
var l = u.reduce(function(c, f) {
|
|
3804
|
+
return !c.length || f.type !== x.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3819
3805
|
}, []);
|
|
3820
3806
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3821
3807
|
}, this.formatToParts = function(h) {
|
|
3822
|
-
return
|
|
3808
|
+
return de(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
3823
3809
|
}, this.resolvedOptions = function() {
|
|
3824
3810
|
var h;
|
|
3825
3811
|
return {
|
|
@@ -3832,13 +3818,13 @@ var ti = (
|
|
|
3832
3818
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3833
3819
|
var s = i || {};
|
|
3834
3820
|
s.formatters;
|
|
3835
|
-
var a =
|
|
3821
|
+
var a = Or(s, ["formatters"]);
|
|
3836
3822
|
this.ast = e.__parse(t, g(g({}, a), { locale: this.resolvedLocale }));
|
|
3837
3823
|
} else
|
|
3838
3824
|
this.ast = t;
|
|
3839
3825
|
if (!Array.isArray(this.ast))
|
|
3840
3826
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3841
|
-
this.formats =
|
|
3827
|
+
this.formats = Jn(e.formats, n), this.formatters = i && i.formatters || Yn(this.formatterCache);
|
|
3842
3828
|
}
|
|
3843
3829
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3844
3830
|
get: function() {
|
|
@@ -3851,7 +3837,7 @@ var ti = (
|
|
|
3851
3837
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3852
3838
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3853
3839
|
}
|
|
3854
|
-
}, e.__parse =
|
|
3840
|
+
}, e.__parse = Xn, e.formats = {
|
|
3855
3841
|
number: {
|
|
3856
3842
|
integer: {
|
|
3857
3843
|
maximumFractionDigits: 0
|
|
@@ -3912,7 +3898,7 @@ var ti = (
|
|
|
3912
3898
|
}, e;
|
|
3913
3899
|
}()
|
|
3914
3900
|
);
|
|
3915
|
-
function
|
|
3901
|
+
function ei(e, t) {
|
|
3916
3902
|
if (t == null)
|
|
3917
3903
|
return;
|
|
3918
3904
|
if (t in e)
|
|
@@ -3933,92 +3919,92 @@ function ri(e, t) {
|
|
|
3933
3919
|
n = void 0;
|
|
3934
3920
|
return n;
|
|
3935
3921
|
}
|
|
3936
|
-
const M = {},
|
|
3922
|
+
const M = {}, ti = (e, t, r) => r && (t in M || (M[t] = {}), e in M[t] || (M[t][e] = r), r), Jt = (e, t) => {
|
|
3937
3923
|
if (t == null)
|
|
3938
3924
|
return;
|
|
3939
3925
|
if (t in M && e in M[t])
|
|
3940
3926
|
return M[t][e];
|
|
3941
|
-
const r =
|
|
3927
|
+
const r = xe(t);
|
|
3942
3928
|
for (let n = 0; n < r.length; n++) {
|
|
3943
|
-
const i = r[n], o =
|
|
3929
|
+
const i = r[n], o = ni(i, e);
|
|
3944
3930
|
if (o)
|
|
3945
|
-
return
|
|
3931
|
+
return ti(e, t, o);
|
|
3946
3932
|
}
|
|
3947
3933
|
};
|
|
3948
|
-
let
|
|
3934
|
+
let Qe;
|
|
3949
3935
|
const se = ve({});
|
|
3950
|
-
function
|
|
3951
|
-
return
|
|
3936
|
+
function ri(e) {
|
|
3937
|
+
return Qe[e] || null;
|
|
3952
3938
|
}
|
|
3953
|
-
function
|
|
3954
|
-
return e in
|
|
3939
|
+
function Yt(e) {
|
|
3940
|
+
return e in Qe;
|
|
3955
3941
|
}
|
|
3956
|
-
function
|
|
3957
|
-
if (!
|
|
3942
|
+
function ni(e, t) {
|
|
3943
|
+
if (!Yt(e))
|
|
3958
3944
|
return null;
|
|
3959
|
-
const r =
|
|
3960
|
-
return
|
|
3945
|
+
const r = ri(e);
|
|
3946
|
+
return ei(r, t);
|
|
3961
3947
|
}
|
|
3962
|
-
function
|
|
3948
|
+
function ii(e) {
|
|
3963
3949
|
if (e == null)
|
|
3964
3950
|
return;
|
|
3965
|
-
const t =
|
|
3951
|
+
const t = xe(e);
|
|
3966
3952
|
for (let r = 0; r < t.length; r++) {
|
|
3967
3953
|
const n = t[r];
|
|
3968
|
-
if (
|
|
3954
|
+
if (Yt(n))
|
|
3969
3955
|
return n;
|
|
3970
3956
|
}
|
|
3971
3957
|
}
|
|
3972
|
-
function
|
|
3973
|
-
delete M[e], se.update((r) => (r[e] =
|
|
3958
|
+
function Kt(e, ...t) {
|
|
3959
|
+
delete M[e], se.update((r) => (r[e] = un.all([r[e] || {}, ...t]), r));
|
|
3974
3960
|
}
|
|
3975
3961
|
Q(
|
|
3976
3962
|
[se],
|
|
3977
3963
|
([e]) => Object.keys(e)
|
|
3978
3964
|
);
|
|
3979
|
-
se.subscribe((e) =>
|
|
3980
|
-
const
|
|
3981
|
-
function
|
|
3982
|
-
|
|
3965
|
+
se.subscribe((e) => Qe = e);
|
|
3966
|
+
const pe = {};
|
|
3967
|
+
function oi(e, t) {
|
|
3968
|
+
pe[e].delete(t), pe[e].size === 0 && delete pe[e];
|
|
3983
3969
|
}
|
|
3984
|
-
function
|
|
3985
|
-
return
|
|
3970
|
+
function er(e) {
|
|
3971
|
+
return pe[e];
|
|
3986
3972
|
}
|
|
3987
|
-
function
|
|
3988
|
-
return
|
|
3989
|
-
const r =
|
|
3973
|
+
function si(e) {
|
|
3974
|
+
return xe(e).map((t) => {
|
|
3975
|
+
const r = er(t);
|
|
3990
3976
|
return [t, r ? [...r] : []];
|
|
3991
3977
|
}).filter(([, t]) => t.length > 0);
|
|
3992
3978
|
}
|
|
3993
|
-
function
|
|
3994
|
-
return e == null ? !1 :
|
|
3979
|
+
function Xe(e) {
|
|
3980
|
+
return e == null ? !1 : xe(e).some(
|
|
3995
3981
|
(t) => {
|
|
3996
3982
|
var r;
|
|
3997
|
-
return (r =
|
|
3983
|
+
return (r = er(t)) == null ? void 0 : r.size;
|
|
3998
3984
|
}
|
|
3999
3985
|
);
|
|
4000
3986
|
}
|
|
4001
|
-
function
|
|
3987
|
+
function ai(e, t) {
|
|
4002
3988
|
return Promise.all(
|
|
4003
|
-
t.map((n) => (
|
|
4004
|
-
).then((n) =>
|
|
3989
|
+
t.map((n) => (oi(e, n), n().then((i) => i.default || i)))
|
|
3990
|
+
).then((n) => Kt(e, ...n));
|
|
4005
3991
|
}
|
|
4006
3992
|
const K = {};
|
|
4007
|
-
function
|
|
4008
|
-
if (!
|
|
3993
|
+
function tr(e) {
|
|
3994
|
+
if (!Xe(e))
|
|
4009
3995
|
return e in K ? K[e] : Promise.resolve();
|
|
4010
|
-
const t =
|
|
3996
|
+
const t = si(e);
|
|
4011
3997
|
return K[e] = Promise.all(
|
|
4012
3998
|
t.map(
|
|
4013
|
-
([r, n]) =>
|
|
3999
|
+
([r, n]) => ai(r, n)
|
|
4014
4000
|
)
|
|
4015
4001
|
).then(() => {
|
|
4016
|
-
if (
|
|
4017
|
-
return
|
|
4002
|
+
if (Xe(e))
|
|
4003
|
+
return tr(e);
|
|
4018
4004
|
delete K[e];
|
|
4019
4005
|
}), K[e];
|
|
4020
4006
|
}
|
|
4021
|
-
const
|
|
4007
|
+
const ui = {
|
|
4022
4008
|
number: {
|
|
4023
4009
|
scientific: { notation: "scientific" },
|
|
4024
4010
|
engineering: { notation: "engineering" },
|
|
@@ -4047,78 +4033,78 @@ const li = {
|
|
|
4047
4033
|
timeZoneName: "short"
|
|
4048
4034
|
}
|
|
4049
4035
|
}
|
|
4050
|
-
},
|
|
4036
|
+
}, hi = {
|
|
4051
4037
|
fallbackLocale: null,
|
|
4052
4038
|
loadingDelay: 200,
|
|
4053
|
-
formats:
|
|
4039
|
+
formats: ui,
|
|
4054
4040
|
warnOnMissingMessages: !0,
|
|
4055
4041
|
handleMissingMessage: void 0,
|
|
4056
4042
|
ignoreTag: !0
|
|
4057
|
-
},
|
|
4043
|
+
}, li = hi;
|
|
4058
4044
|
function z() {
|
|
4059
|
-
return
|
|
4060
|
-
}
|
|
4061
|
-
const
|
|
4062
|
-
var
|
|
4063
|
-
for (var r in t
|
|
4064
|
-
|
|
4065
|
-
if (
|
|
4066
|
-
for (var r of
|
|
4067
|
-
|
|
4045
|
+
return li;
|
|
4046
|
+
}
|
|
4047
|
+
const Oe = ve(!1);
|
|
4048
|
+
var fi = Object.defineProperty, ci = Object.defineProperties, di = Object.getOwnPropertyDescriptors, mt = Object.getOwnPropertySymbols, pi = Object.prototype.hasOwnProperty, mi = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? fi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, bi = (e, t) => {
|
|
4049
|
+
for (var r in t)
|
|
4050
|
+
pi.call(t, r) && bt(e, r, t[r]);
|
|
4051
|
+
if (mt)
|
|
4052
|
+
for (var r of mt(t))
|
|
4053
|
+
mi.call(t, r) && bt(e, r, t[r]);
|
|
4068
4054
|
return e;
|
|
4069
|
-
},
|
|
4070
|
-
let
|
|
4055
|
+
}, gi = (e, t) => ci(e, di(t));
|
|
4056
|
+
let We;
|
|
4071
4057
|
const me = ve(null);
|
|
4072
|
-
function
|
|
4058
|
+
function gt(e) {
|
|
4073
4059
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4074
4060
|
}
|
|
4075
|
-
function
|
|
4076
|
-
const r =
|
|
4077
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4061
|
+
function xe(e, t = z().fallbackLocale) {
|
|
4062
|
+
const r = gt(e);
|
|
4063
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...gt(t)])] : r;
|
|
4078
4064
|
}
|
|
4079
4065
|
function R() {
|
|
4080
|
-
return
|
|
4066
|
+
return We ?? void 0;
|
|
4081
4067
|
}
|
|
4082
4068
|
me.subscribe((e) => {
|
|
4083
|
-
|
|
4069
|
+
We = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4084
4070
|
});
|
|
4085
|
-
const
|
|
4086
|
-
if (e &&
|
|
4071
|
+
const yi = (e) => {
|
|
4072
|
+
if (e && ii(e) && Xe(e)) {
|
|
4087
4073
|
const { loadingDelay: t } = z();
|
|
4088
4074
|
let r;
|
|
4089
4075
|
return typeof window < "u" && R() != null && t ? r = window.setTimeout(
|
|
4090
|
-
() =>
|
|
4076
|
+
() => Oe.set(!0),
|
|
4091
4077
|
t
|
|
4092
|
-
) :
|
|
4078
|
+
) : Oe.set(!0), tr(e).then(() => {
|
|
4093
4079
|
me.set(e);
|
|
4094
4080
|
}).finally(() => {
|
|
4095
|
-
clearTimeout(r),
|
|
4081
|
+
clearTimeout(r), Oe.set(!1);
|
|
4096
4082
|
});
|
|
4097
4083
|
}
|
|
4098
4084
|
return me.set(e);
|
|
4099
|
-
}, q =
|
|
4100
|
-
set:
|
|
4101
|
-
}),
|
|
4085
|
+
}, q = gi(bi({}, me), {
|
|
4086
|
+
set: yi
|
|
4087
|
+
}), Ee = (e) => {
|
|
4102
4088
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4103
4089
|
return (n) => {
|
|
4104
4090
|
const i = JSON.stringify(n);
|
|
4105
4091
|
return i in t ? t[i] : t[i] = e(n);
|
|
4106
4092
|
};
|
|
4107
4093
|
};
|
|
4108
|
-
var
|
|
4094
|
+
var vi = Object.defineProperty, be = Object.getOwnPropertySymbols, rr = Object.prototype.hasOwnProperty, nr = Object.prototype.propertyIsEnumerable, yt = (e, t, r) => t in e ? vi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
|
|
4109
4095
|
for (var r in t || (t = {}))
|
|
4110
|
-
|
|
4096
|
+
rr.call(t, r) && yt(e, r, t[r]);
|
|
4111
4097
|
if (be)
|
|
4112
4098
|
for (var r of be(t))
|
|
4113
|
-
|
|
4099
|
+
nr.call(t, r) && yt(e, r, t[r]);
|
|
4114
4100
|
return e;
|
|
4115
4101
|
}, J = (e, t) => {
|
|
4116
4102
|
var r = {};
|
|
4117
4103
|
for (var n in e)
|
|
4118
|
-
|
|
4104
|
+
rr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4119
4105
|
if (e != null && be)
|
|
4120
4106
|
for (var n of be(e))
|
|
4121
|
-
t.indexOf(n) < 0 &&
|
|
4107
|
+
t.indexOf(n) < 0 && nr.call(e, n) && (r[n] = e[n]);
|
|
4122
4108
|
return r;
|
|
4123
4109
|
};
|
|
4124
4110
|
const ne = (e, t) => {
|
|
@@ -4126,21 +4112,21 @@ const ne = (e, t) => {
|
|
|
4126
4112
|
if (e in r && t in r[e])
|
|
4127
4113
|
return r[e][t];
|
|
4128
4114
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4129
|
-
},
|
|
4115
|
+
}, _i = Ee(
|
|
4130
4116
|
(e) => {
|
|
4131
4117
|
var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
|
|
4132
4118
|
if (r == null)
|
|
4133
4119
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4134
4120
|
return n && (i = ne("number", n)), new Intl.NumberFormat(r, i);
|
|
4135
4121
|
}
|
|
4136
|
-
),
|
|
4122
|
+
), xi = Ee(
|
|
4137
4123
|
(e) => {
|
|
4138
4124
|
var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
|
|
4139
4125
|
if (r == null)
|
|
4140
4126
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4141
4127
|
return n ? i = ne("date", n) : Object.keys(i).length === 0 && (i = ne("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4142
4128
|
}
|
|
4143
|
-
),
|
|
4129
|
+
), Ei = Ee(
|
|
4144
4130
|
(e) => {
|
|
4145
4131
|
var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
|
|
4146
4132
|
if (r == null)
|
|
@@ -4149,33 +4135,33 @@ const ne = (e, t) => {
|
|
|
4149
4135
|
);
|
|
4150
4136
|
return n ? i = ne("time", n) : Object.keys(i).length === 0 && (i = ne("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4151
4137
|
}
|
|
4152
|
-
),
|
|
4138
|
+
), Si = (e = {}) => {
|
|
4153
4139
|
var t = e, {
|
|
4154
4140
|
locale: r = R()
|
|
4155
4141
|
} = t, n = J(t, [
|
|
4156
4142
|
"locale"
|
|
4157
4143
|
]);
|
|
4158
|
-
return
|
|
4159
|
-
},
|
|
4144
|
+
return _i(qe({ locale: r }, n));
|
|
4145
|
+
}, Ti = (e = {}) => {
|
|
4160
4146
|
var t = e, {
|
|
4161
4147
|
locale: r = R()
|
|
4162
4148
|
} = t, n = J(t, [
|
|
4163
4149
|
"locale"
|
|
4164
4150
|
]);
|
|
4165
|
-
return
|
|
4166
|
-
},
|
|
4151
|
+
return xi(qe({ locale: r }, n));
|
|
4152
|
+
}, Hi = (e = {}) => {
|
|
4167
4153
|
var t = e, {
|
|
4168
4154
|
locale: r = R()
|
|
4169
4155
|
} = t, n = J(t, [
|
|
4170
4156
|
"locale"
|
|
4171
4157
|
]);
|
|
4172
|
-
return
|
|
4173
|
-
},
|
|
4158
|
+
return Ei(qe({ locale: r }, n));
|
|
4159
|
+
}, Bi = Ee(
|
|
4174
4160
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4175
|
-
(e, t = R()) => new
|
|
4161
|
+
(e, t = R()) => new Kn(e, t, z().formats, {
|
|
4176
4162
|
ignoreTag: z().ignoreTag
|
|
4177
4163
|
})
|
|
4178
|
-
),
|
|
4164
|
+
), wi = (e, t = {}) => {
|
|
4179
4165
|
var r, n, i, o;
|
|
4180
4166
|
let s = t;
|
|
4181
4167
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4188,7 +4174,7 @@ const ne = (e, t) => {
|
|
|
4188
4174
|
throw new Error(
|
|
4189
4175
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4190
4176
|
);
|
|
4191
|
-
let l =
|
|
4177
|
+
let l = Jt(e, h);
|
|
4192
4178
|
if (!l)
|
|
4193
4179
|
l = (o = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4194
4180
|
else if (typeof l != "string")
|
|
@@ -4197,30 +4183,30 @@ const ne = (e, t) => {
|
|
|
4197
4183
|
), l;
|
|
4198
4184
|
if (!a)
|
|
4199
4185
|
return l;
|
|
4200
|
-
let
|
|
4186
|
+
let c = l;
|
|
4201
4187
|
try {
|
|
4202
|
-
|
|
4203
|
-
} catch (
|
|
4204
|
-
|
|
4188
|
+
c = Bi(l, h).format(a);
|
|
4189
|
+
} catch (f) {
|
|
4190
|
+
f instanceof Error && console.warn(
|
|
4205
4191
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4206
|
-
|
|
4192
|
+
f.message
|
|
4207
4193
|
);
|
|
4208
4194
|
}
|
|
4209
|
-
return
|
|
4210
|
-
},
|
|
4195
|
+
return c;
|
|
4196
|
+
}, Ai = (e, t) => Hi(t).format(e), Pi = (e, t) => Ti(t).format(e), Oi = (e, t) => Si(t).format(e), Ii = (e, t = R()) => Jt(e, t), Li = Q([q, se], () => wi);
|
|
4197
|
+
Q([q], () => Ai);
|
|
4198
|
+
Q([q], () => Pi);
|
|
4211
4199
|
Q([q], () => Oi);
|
|
4212
|
-
Q([q], () => Ii);
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
const Ci = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4217
|
-
function Et(e, t) {
|
|
4200
|
+
Q([q, se], () => Ii);
|
|
4201
|
+
window.emWidgets = { topic: Vr };
|
|
4202
|
+
const Ni = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4203
|
+
function vt(e, t) {
|
|
4218
4204
|
if (e) {
|
|
4219
4205
|
const r = document.createElement("style");
|
|
4220
4206
|
r.innerHTML = t, e.appendChild(r);
|
|
4221
4207
|
}
|
|
4222
4208
|
}
|
|
4223
|
-
function
|
|
4209
|
+
function Mi(e, t) {
|
|
4224
4210
|
const r = new URL(t);
|
|
4225
4211
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4226
4212
|
const i = document.createElement("style");
|
|
@@ -4229,7 +4215,7 @@ function $i(e, t) {
|
|
|
4229
4215
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4230
4216
|
});
|
|
4231
4217
|
}
|
|
4232
|
-
function
|
|
4218
|
+
function Ci(e, t, r) {
|
|
4233
4219
|
if (window.emMessageBus) {
|
|
4234
4220
|
const n = document.createElement("style");
|
|
4235
4221
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4237,7 +4223,7 @@ function Ri(e, t, r) {
|
|
|
4237
4223
|
});
|
|
4238
4224
|
}
|
|
4239
4225
|
}
|
|
4240
|
-
const
|
|
4226
|
+
const $i = (e, t = {}) => {
|
|
4241
4227
|
const r = new CustomEvent("track-custom-event", {
|
|
4242
4228
|
detail: {
|
|
4243
4229
|
type: e,
|
|
@@ -4248,13 +4234,13 @@ const Ui = (e, t = {}) => {
|
|
|
4248
4234
|
});
|
|
4249
4235
|
document.dispatchEvent(r);
|
|
4250
4236
|
};
|
|
4251
|
-
function
|
|
4252
|
-
|
|
4237
|
+
function _t(e, t) {
|
|
4238
|
+
Kt(e, t);
|
|
4253
4239
|
}
|
|
4254
|
-
function
|
|
4240
|
+
function Ri(e) {
|
|
4255
4241
|
q.set(e);
|
|
4256
4242
|
}
|
|
4257
|
-
const
|
|
4243
|
+
const xt = {
|
|
4258
4244
|
en: {
|
|
4259
4245
|
logoutButton: "Logout"
|
|
4260
4246
|
},
|
|
@@ -4289,10 +4275,10 @@ const St = {
|
|
|
4289
4275
|
logoutButton: "Logout"
|
|
4290
4276
|
}
|
|
4291
4277
|
};
|
|
4292
|
-
function
|
|
4293
|
-
|
|
4278
|
+
function Ui(e) {
|
|
4279
|
+
ur(e, "svelte-xtnqa3", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PlayerAccountMenuItemBox{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerLogoutText{margin-left:20px}.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox{height:auto;justify-content:center;position:relative;display:flex;width:unset;padding:0}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}");
|
|
4294
4280
|
}
|
|
4295
|
-
function
|
|
4281
|
+
function Di(e) {
|
|
4296
4282
|
let t, r, n, i = (
|
|
4297
4283
|
/*$_*/
|
|
4298
4284
|
e[2]("logoutButton") + ""
|
|
@@ -4302,7 +4288,7 @@ function Fi(e) {
|
|
|
4302
4288
|
t = P("div"), r = P("button"), n = P("span"), o = ge(i), S(t, "class", "GeneralLogout");
|
|
4303
4289
|
},
|
|
4304
4290
|
m(h, u) {
|
|
4305
|
-
oe(h, t, u), T(t, r), T(r, n), T(n, o), s || (a =
|
|
4291
|
+
oe(h, t, u), T(t, r), T(r, n), T(n, o), s || (a = Ht(
|
|
4306
4292
|
r,
|
|
4307
4293
|
"click",
|
|
4308
4294
|
/*click_handler_1*/
|
|
@@ -4312,19 +4298,19 @@ function Fi(e) {
|
|
|
4312
4298
|
p(h, u) {
|
|
4313
4299
|
u & /*$_*/
|
|
4314
4300
|
4 && i !== (i = /*$_*/
|
|
4315
|
-
h[2]("logoutButton") + "") &&
|
|
4301
|
+
h[2]("logoutButton") + "") && Bt(o, i);
|
|
4316
4302
|
},
|
|
4317
4303
|
d(h) {
|
|
4318
4304
|
h && Z(t), s = !1, a();
|
|
4319
4305
|
}
|
|
4320
4306
|
};
|
|
4321
4307
|
}
|
|
4322
|
-
function
|
|
4323
|
-
let t, r, n, i, o, s, a, h, u, l,
|
|
4324
|
-
e[3] &&
|
|
4308
|
+
function Gi(e) {
|
|
4309
|
+
let t, r, n, i, o, s, a, h, u, l, c, f = !/*isMobile*/
|
|
4310
|
+
e[3] && Fi(e);
|
|
4325
4311
|
return {
|
|
4326
4312
|
c() {
|
|
4327
|
-
t = P("p"), r = P("span"), n = Y("svg"), i = Y("defs"), o = Y("style"), s = ge(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"), a = Y("path"), h = Y("path"), u =
|
|
4313
|
+
t = P("p"), r = P("span"), n = Y("svg"), i = Y("defs"), o = Y("style"), s = ge(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"), a = Y("path"), h = Y("path"), u = fr(), f && f.c(), S(a, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), S(a, "d", "M147.16,67.69,115.42,36a9.6,9.6,0,1,0-13.58,13.58l15.32,15.31H49.58a9.63,9.63,0,1,0,0,19.26h67.58L101.84,99.42a9.64,9.64,0,0,0,6.79,16.43,9.41,9.41,0,0,0,6.79-2.85l31.74-31.73a9.53,9.53,0,0,0,0-13.58Z"), S(h, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), S(h, "d", "M45.16,122.16H19.26V26.79H45.32a9.63,9.63,0,1,0,0-19.26H9.63A9.56,9.56,0,0,0,0,17.16V131.63a9.57,9.57,0,0,0,9.63,9.64H45.32A9.57,9.57,0,0,0,55,131.63a9.78,9.78,0,0,0-9.79-9.47Z"), S(n, "id", "bbfaf345-72af-4296-bf4b-2fd41fc03d5d"), S(n, "data-name", "Layer 1"), S(n, "xmlns", "http://www.w3.org/2000/svg"), S(n, "viewBox", "0 0 150 150"), dr(r, "width", /*isMobile*/
|
|
4328
4314
|
e[3] ? (
|
|
4329
4315
|
/*mediaQuery*/
|
|
4330
4316
|
e[4].matches ? "20px" : "24px"
|
|
@@ -4333,24 +4319,24 @@ function ji(e) {
|
|
|
4333
4319
|
(e[4].matches && /*isMobile*/
|
|
4334
4320
|
e[3] ? "PlayerAccountMenuItemBoxTablet" : ""));
|
|
4335
4321
|
},
|
|
4336
|
-
m(
|
|
4337
|
-
oe(
|
|
4322
|
+
m(d, p) {
|
|
4323
|
+
oe(d, t, p), T(t, r), T(r, n), T(n, i), T(i, o), T(o, s), T(n, a), T(n, h), T(t, u), f && f.m(t, null), l || (c = Ht(
|
|
4338
4324
|
t,
|
|
4339
4325
|
"click",
|
|
4340
4326
|
/*click_handler*/
|
|
4341
4327
|
e[13]
|
|
4342
4328
|
), l = !0);
|
|
4343
4329
|
},
|
|
4344
|
-
p(
|
|
4330
|
+
p(d, p) {
|
|
4345
4331
|
/*isMobile*/
|
|
4346
|
-
|
|
4332
|
+
d[3] || f.p(d, p);
|
|
4347
4333
|
},
|
|
4348
|
-
d(
|
|
4349
|
-
|
|
4334
|
+
d(d) {
|
|
4335
|
+
d && Z(t), f && f.d(), l = !1, c();
|
|
4350
4336
|
}
|
|
4351
4337
|
};
|
|
4352
4338
|
}
|
|
4353
|
-
function
|
|
4339
|
+
function Fi(e) {
|
|
4354
4340
|
let t, r = (
|
|
4355
4341
|
/*$_*/
|
|
4356
4342
|
e[2]("logoutButton") + ""
|
|
@@ -4365,19 +4351,19 @@ function ki(e) {
|
|
|
4365
4351
|
p(i, o) {
|
|
4366
4352
|
o & /*$_*/
|
|
4367
4353
|
4 && r !== (r = /*$_*/
|
|
4368
|
-
i[2]("logoutButton") + "") &&
|
|
4354
|
+
i[2]("logoutButton") + "") && Bt(n, r);
|
|
4369
4355
|
},
|
|
4370
4356
|
d(i) {
|
|
4371
4357
|
i && Z(t);
|
|
4372
4358
|
}
|
|
4373
4359
|
};
|
|
4374
4360
|
}
|
|
4375
|
-
function
|
|
4361
|
+
function ji(e) {
|
|
4376
4362
|
let t;
|
|
4377
4363
|
function r(o, s) {
|
|
4378
4364
|
return (
|
|
4379
4365
|
/*buttonlocation*/
|
|
4380
|
-
o[0] === "PlayerAccountMenu" ?
|
|
4366
|
+
o[0] === "PlayerAccountMenu" ? Gi : Di
|
|
4381
4367
|
);
|
|
4382
4368
|
}
|
|
4383
4369
|
let n = r(e), i = n(e);
|
|
@@ -4398,78 +4384,78 @@ function Vi(e) {
|
|
|
4398
4384
|
}
|
|
4399
4385
|
};
|
|
4400
4386
|
}
|
|
4401
|
-
function
|
|
4387
|
+
function ki(e, t, r) {
|
|
4402
4388
|
let n;
|
|
4403
|
-
|
|
4404
|
-
let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: s = "" } = t, { lang: a = "" } = t, { mbsource: h } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl:
|
|
4389
|
+
ar(e, Li, (y) => r(2, n = y));
|
|
4390
|
+
let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: s = "" } = t, { lang: a = "" } = t, { mbsource: h } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: c = "" } = t, f = "", d = !1, p, v = window.navigator.userAgent, H = Ni(v) !== "PC";
|
|
4405
4391
|
const C = window.matchMedia("(min-width: 768px)"), L = () => {
|
|
4406
|
-
fetch(
|
|
4392
|
+
fetch(c).then((N) => N.json()).then((N) => {
|
|
4407
4393
|
Object.keys(N).forEach((Se) => {
|
|
4408
|
-
|
|
4394
|
+
_t(Se, N[Se]);
|
|
4409
4395
|
});
|
|
4410
4396
|
}).catch((N) => {
|
|
4411
4397
|
console.log(N);
|
|
4412
4398
|
});
|
|
4413
4399
|
};
|
|
4414
|
-
Object.keys(
|
|
4415
|
-
|
|
4400
|
+
Object.keys(xt).forEach((y) => {
|
|
4401
|
+
_t(y, xt[y]);
|
|
4416
4402
|
});
|
|
4417
|
-
const
|
|
4403
|
+
const E = () => {
|
|
4418
4404
|
let y = new Headers();
|
|
4419
4405
|
y.append("Content-type", "application/json"), y.append("X-SessionID", o);
|
|
4420
4406
|
let N = { method: "DELETE", headers: y };
|
|
4421
4407
|
fetch(`${i}/v1/player/session/player`, N).then((Se) => {
|
|
4422
|
-
window.postMessage({ type: "LogoutSuccessfull" }, window.location.href),
|
|
4408
|
+
window.postMessage({ type: "LogoutSuccessfull" }, window.location.href), $i("logged_out", {});
|
|
4423
4409
|
});
|
|
4424
|
-
}, $ = () => (i || (
|
|
4425
|
-
|
|
4410
|
+
}, $ = () => (i || (f = "GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.", d = !0, console.error(f)), o || (f = "GENERAL-LOGOUT - Session is missing! Please provide a valid session.", d = !0, console.error(f)), d), A = () => {
|
|
4411
|
+
Ri(a);
|
|
4426
4412
|
};
|
|
4427
|
-
|
|
4413
|
+
br(() => () => {
|
|
4428
4414
|
});
|
|
4429
|
-
const U = () =>
|
|
4430
|
-
function
|
|
4431
|
-
|
|
4432
|
-
|
|
4415
|
+
const U = () => E(), ae = () => E();
|
|
4416
|
+
function or(y) {
|
|
4417
|
+
Ie[y ? "unshift" : "push"](() => {
|
|
4418
|
+
p = y, r(1, p);
|
|
4433
4419
|
});
|
|
4434
4420
|
}
|
|
4435
4421
|
return e.$$set = (y) => {
|
|
4436
|
-
"endpoint" in y && r(6, i = y.endpoint), "session" in y && r(7, o = y.session), "buttonlocation" in y && r(0, s = y.buttonlocation), "lang" in y && r(8, a = y.lang), "mbsource" in y && r(9, h = y.mbsource), "clientstyling" in y && r(10, u = y.clientstyling), "clientstylingurl" in y && r(11, l = y.clientstylingurl), "translationurl" in y && r(12,
|
|
4422
|
+
"endpoint" in y && r(6, i = y.endpoint), "session" in y && r(7, o = y.session), "buttonlocation" in y && r(0, s = y.buttonlocation), "lang" in y && r(8, a = y.lang), "mbsource" in y && r(9, h = y.mbsource), "clientstyling" in y && r(10, u = y.clientstyling), "clientstylingurl" in y && r(11, l = y.clientstylingurl), "translationurl" in y && r(12, c = y.translationurl);
|
|
4437
4423
|
}, e.$$.update = () => {
|
|
4438
4424
|
e.$$.dirty & /*endpoint, session, buttonlocation*/
|
|
4439
4425
|
193 && i && o && s && $(), e.$$.dirty & /*lang*/
|
|
4440
4426
|
256 && a && A(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4441
|
-
1026 && u &&
|
|
4442
|
-
1026 && u &&
|
|
4443
|
-
2050 && l &&
|
|
4444
|
-
514 && h &&
|
|
4445
|
-
4096 &&
|
|
4427
|
+
1026 && u && p && vt(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4428
|
+
1026 && u && p && vt(p, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4429
|
+
2050 && l && p && Mi(p, l), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4430
|
+
514 && h && p && Ci(p, `${h}.Style`), e.$$.dirty & /*translationurl*/
|
|
4431
|
+
4096 && c && L();
|
|
4446
4432
|
}, [
|
|
4447
4433
|
s,
|
|
4448
|
-
|
|
4434
|
+
p,
|
|
4449
4435
|
n,
|
|
4450
4436
|
H,
|
|
4451
4437
|
C,
|
|
4452
|
-
|
|
4438
|
+
E,
|
|
4453
4439
|
i,
|
|
4454
4440
|
o,
|
|
4455
4441
|
a,
|
|
4456
4442
|
h,
|
|
4457
4443
|
u,
|
|
4458
4444
|
l,
|
|
4459
|
-
|
|
4445
|
+
c,
|
|
4460
4446
|
U,
|
|
4461
4447
|
ae,
|
|
4462
|
-
|
|
4448
|
+
or
|
|
4463
4449
|
];
|
|
4464
4450
|
}
|
|
4465
|
-
class
|
|
4451
|
+
class ir extends Ar {
|
|
4466
4452
|
constructor(t) {
|
|
4467
|
-
super(),
|
|
4453
|
+
super(), Br(
|
|
4468
4454
|
this,
|
|
4469
4455
|
t,
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4456
|
+
ki,
|
|
4457
|
+
ji,
|
|
4458
|
+
St,
|
|
4473
4459
|
{
|
|
4474
4460
|
endpoint: 6,
|
|
4475
4461
|
session: 7,
|
|
@@ -4480,7 +4466,7 @@ class ar extends Ir {
|
|
|
4480
4466
|
clientstylingurl: 11,
|
|
4481
4467
|
translationurl: 12
|
|
4482
4468
|
},
|
|
4483
|
-
|
|
4469
|
+
Ui
|
|
4484
4470
|
);
|
|
4485
4471
|
}
|
|
4486
4472
|
get endpoint() {
|
|
@@ -4532,43 +4518,43 @@ class ar extends Ir {
|
|
|
4532
4518
|
this.$$set({ translationurl: t }), w();
|
|
4533
4519
|
}
|
|
4534
4520
|
}
|
|
4535
|
-
|
|
4536
|
-
const
|
|
4521
|
+
wr(ir, { endpoint: {}, session: {}, buttonlocation: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4522
|
+
const Zi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4537
4523
|
__proto__: null,
|
|
4538
|
-
default:
|
|
4524
|
+
default: ir
|
|
4539
4525
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4540
4526
|
export {
|
|
4541
4527
|
q as $,
|
|
4542
|
-
|
|
4528
|
+
Ht as A,
|
|
4543
4529
|
ie as B,
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4530
|
+
Vi as C,
|
|
4531
|
+
Li as D,
|
|
4532
|
+
Zi as G,
|
|
4533
|
+
Ar as S,
|
|
4534
|
+
Kt as a,
|
|
4535
|
+
ur as b,
|
|
4536
|
+
wr as c,
|
|
4551
4537
|
oe as d,
|
|
4552
4538
|
P as e,
|
|
4553
4539
|
w as f,
|
|
4554
4540
|
Z as g,
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4541
|
+
ar as h,
|
|
4542
|
+
Br as i,
|
|
4543
|
+
Ni as j,
|
|
4544
|
+
Ie as k,
|
|
4545
|
+
vt as l,
|
|
4546
|
+
Mi as m,
|
|
4561
4547
|
B as n,
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4548
|
+
br as o,
|
|
4549
|
+
Ci as p,
|
|
4550
|
+
zi as q,
|
|
4551
|
+
fr as r,
|
|
4552
|
+
St as s,
|
|
4567
4553
|
ge as t,
|
|
4568
4554
|
S as u,
|
|
4569
4555
|
T as v,
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4556
|
+
Bt as w,
|
|
4557
|
+
Xi as x,
|
|
4558
|
+
Wi as y,
|
|
4573
4559
|
Y as z
|
|
4574
4560
|
};
|