@everymatrix/player-account-notifications 1.74.3 → 1.74.5
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/{PlayerAccountNotifications-pd8B8-lX.js → PlayerAccountNotifications-0_KDmaPh.js} +612 -598
- package/components/{PlayerAccountNotifications-BtSqCOAk.js → PlayerAccountNotifications-B3qMDqKA.js} +595 -581
- package/components/PlayerAccountNotifications-C4eZW0eI.cjs +18 -0
- package/es2015/player-account-notifications.cjs +1 -1
- package/es2015/player-account-notifications.js +1 -1
- package/esnext/player-account-notifications.js +1 -1
- package/package.json +1 -1
- package/stencil/{index-b2193545-BbCeNxUG.js → index-b2193545-BtPvM93e.js} +176 -176
- package/stencil/index-b2193545-CgelUAhE.cjs +1 -0
- package/stencil/{index-b2193545-C9PH-6qK.js → index-b2193545-D_KBbaD-.js} +169 -169
- package/stencil/{ui-skeleton-bhljBTS7.cjs → ui-skeleton-BPqjm-YB.cjs} +1 -1
- package/stencil/{ui-skeleton-CJbkvgG7.js → ui-skeleton-CWuMYFGQ.js} +2 -2
- package/stencil/{ui-skeleton-BKDs0-7H.js → ui-skeleton-NZtdK490.js} +2 -2
- package/stencil/{ui-skeleton-ae35c6f2-CXlvqczG.cjs → ui-skeleton-ae35c6f2-CKJgMm_5.cjs} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-ZB0isFAq.js → ui-skeleton-ae35c6f2-CW3z59Qf.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-gun6WX2F.js → ui-skeleton-ae35c6f2-DlexSQlT.js} +1 -1
- package/components/PlayerAccountNotifications-DO6TEnPv.cjs +0 -18
- package/stencil/index-b2193545-D-u-gzj3.cjs +0 -1
package/components/{PlayerAccountNotifications-pd8B8-lX.js → PlayerAccountNotifications-0_KDmaPh.js}
RENAMED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import "../stencil/ui-skeleton-
|
|
1
|
+
import "../stencil/ui-skeleton-NZtdK490.js";
|
|
2
2
|
function H() {
|
|
3
3
|
}
|
|
4
|
-
function
|
|
4
|
+
function Pt(e) {
|
|
5
5
|
return e();
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function Ye() {
|
|
8
8
|
return /* @__PURE__ */ Object.create(null);
|
|
9
9
|
}
|
|
10
10
|
function ie(e) {
|
|
11
|
-
e.forEach(
|
|
11
|
+
e.forEach(Pt);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function ze(e) {
|
|
14
14
|
return typeof e == "function";
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function wt(e, t) {
|
|
17
17
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
18
18
|
}
|
|
19
19
|
let ae;
|
|
20
|
-
function
|
|
20
|
+
function Ke(e, t) {
|
|
21
21
|
return e === t ? !0 : (ae || (ae = document.createElement("a")), ae.href = t, e === ae.href);
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function hr(e) {
|
|
24
24
|
return Object.keys(e).length === 0;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function lr(e, ...t) {
|
|
27
27
|
if (e == null) {
|
|
28
28
|
for (const n of t)
|
|
29
29
|
n(void 0);
|
|
@@ -35,14 +35,14 @@ function ar(e, ...t) {
|
|
|
35
35
|
function P(e, t) {
|
|
36
36
|
e.appendChild(t);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
const n =
|
|
38
|
+
function cr(e, t, r) {
|
|
39
|
+
const n = fr(e);
|
|
40
40
|
if (!n.getElementById(t)) {
|
|
41
41
|
const i = T("style");
|
|
42
|
-
i.id = t, i.textContent = r,
|
|
42
|
+
i.id = t, i.textContent = r, pr(n, i);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function fr(e) {
|
|
46
46
|
if (!e)
|
|
47
47
|
return document;
|
|
48
48
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -52,7 +52,7 @@ function hr(e) {
|
|
|
52
52
|
t
|
|
53
53
|
) : e.ownerDocument;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function pr(e, t) {
|
|
56
56
|
return P(
|
|
57
57
|
/** @type {Document} */
|
|
58
58
|
e.head || e,
|
|
@@ -65,37 +65,37 @@ function M(e, t, r) {
|
|
|
65
65
|
function O(e) {
|
|
66
66
|
e.parentNode && e.parentNode.removeChild(e);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function Bt(e, t) {
|
|
69
69
|
for (let r = 0; r < e.length; r += 1)
|
|
70
70
|
e[r] && e[r].d(t);
|
|
71
71
|
}
|
|
72
72
|
function T(e) {
|
|
73
73
|
return document.createElement(e);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function Nt(e) {
|
|
76
76
|
return document.createTextNode(e);
|
|
77
77
|
}
|
|
78
78
|
function le() {
|
|
79
|
-
return
|
|
79
|
+
return Nt(" ");
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function x(e, t, r) {
|
|
82
82
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
83
83
|
}
|
|
84
84
|
function V(e, t, r) {
|
|
85
85
|
const n = t.toLowerCase();
|
|
86
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
86
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : x(e, t, r);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function dr(e) {
|
|
89
89
|
return Array.from(e.childNodes);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function mr(e, t) {
|
|
92
92
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
93
93
|
t);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function et(e, t, r, n) {
|
|
96
96
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function br(e) {
|
|
99
99
|
const t = {};
|
|
100
100
|
return e.childNodes.forEach(
|
|
101
101
|
/** @param {Element} node */
|
|
@@ -108,22 +108,22 @@ let te;
|
|
|
108
108
|
function ee(e) {
|
|
109
109
|
te = e;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function gr() {
|
|
112
112
|
if (!te)
|
|
113
113
|
throw new Error("Function called outside component initialization");
|
|
114
114
|
return te;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
117
|
-
|
|
116
|
+
function yr(e) {
|
|
117
|
+
gr().$$.on_mount.push(e);
|
|
118
118
|
}
|
|
119
|
-
const j = [],
|
|
119
|
+
const j = [], Oe = [];
|
|
120
120
|
let X = [];
|
|
121
|
-
const
|
|
122
|
-
let
|
|
123
|
-
function
|
|
124
|
-
|
|
121
|
+
const tt = [], vr = /* @__PURE__ */ Promise.resolve();
|
|
122
|
+
let Ie = !1;
|
|
123
|
+
function _r() {
|
|
124
|
+
Ie || (Ie = !0, vr.then(B));
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function Ce(e) {
|
|
127
127
|
X.push(e);
|
|
128
128
|
}
|
|
129
129
|
const Se = /* @__PURE__ */ new Set();
|
|
@@ -136,56 +136,56 @@ function B() {
|
|
|
136
136
|
try {
|
|
137
137
|
for (; F < j.length; ) {
|
|
138
138
|
const t = j[F];
|
|
139
|
-
F++, ee(t),
|
|
139
|
+
F++, ee(t), xr(t.$$);
|
|
140
140
|
}
|
|
141
141
|
} catch (t) {
|
|
142
142
|
throw j.length = 0, F = 0, t;
|
|
143
143
|
}
|
|
144
|
-
for (ee(null), j.length = 0, F = 0;
|
|
145
|
-
|
|
144
|
+
for (ee(null), j.length = 0, F = 0; Oe.length; )
|
|
145
|
+
Oe.pop()();
|
|
146
146
|
for (let t = 0; t < X.length; t += 1) {
|
|
147
147
|
const r = X[t];
|
|
148
148
|
Se.has(r) || (Se.add(r), r());
|
|
149
149
|
}
|
|
150
150
|
X.length = 0;
|
|
151
151
|
} while (j.length);
|
|
152
|
-
for (;
|
|
153
|
-
|
|
154
|
-
|
|
152
|
+
for (; tt.length; )
|
|
153
|
+
tt.pop()();
|
|
154
|
+
Ie = !1, Se.clear(), ee(e);
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function xr(e) {
|
|
157
157
|
if (e.fragment !== null) {
|
|
158
158
|
e.update(), ie(e.before_update);
|
|
159
159
|
const t = e.dirty;
|
|
160
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
160
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ce);
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function Er(e) {
|
|
164
164
|
const t = [], r = [];
|
|
165
165
|
X.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), X = t;
|
|
166
166
|
}
|
|
167
|
-
const
|
|
168
|
-
function
|
|
169
|
-
e && e.i && (
|
|
167
|
+
const Sr = /* @__PURE__ */ new Set();
|
|
168
|
+
function Tr(e, t) {
|
|
169
|
+
e && e.i && (Sr.delete(e), e.i(t));
|
|
170
170
|
}
|
|
171
171
|
function me(e) {
|
|
172
172
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function Hr(e, t, r) {
|
|
175
175
|
const { fragment: n, after_update: i } = e.$$;
|
|
176
|
-
n && n.m(t, r),
|
|
177
|
-
const o = e.$$.on_mount.map(
|
|
176
|
+
n && n.m(t, r), Ce(() => {
|
|
177
|
+
const o = e.$$.on_mount.map(Pt).filter(ze);
|
|
178
178
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ie(o), e.$$.on_mount = [];
|
|
179
|
-
}), i.forEach(
|
|
179
|
+
}), i.forEach(Ce);
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function Ar(e, t) {
|
|
182
182
|
const r = e.$$;
|
|
183
|
-
r.fragment !== null && (
|
|
183
|
+
r.fragment !== null && (Er(r.after_update), ie(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
184
184
|
}
|
|
185
|
-
function
|
|
186
|
-
e.$$.dirty[0] === -1 && (j.push(e),
|
|
185
|
+
function Pr(e, t) {
|
|
186
|
+
e.$$.dirty[0] === -1 && (j.push(e), _r(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function wr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
189
189
|
const h = te;
|
|
190
190
|
ee(e);
|
|
191
191
|
const u = e.$$ = {
|
|
@@ -195,7 +195,7 @@ function Hr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
195
195
|
props: o,
|
|
196
196
|
update: H,
|
|
197
197
|
not_equal: i,
|
|
198
|
-
bound:
|
|
198
|
+
bound: Ye(),
|
|
199
199
|
// lifecycle
|
|
200
200
|
on_mount: [],
|
|
201
201
|
on_destroy: [],
|
|
@@ -204,28 +204,28 @@ function Hr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
204
204
|
after_update: [],
|
|
205
205
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
206
206
|
// everything else
|
|
207
|
-
callbacks:
|
|
207
|
+
callbacks: Ye(),
|
|
208
208
|
dirty: a,
|
|
209
209
|
skip_bound: !1,
|
|
210
210
|
root: t.target || h.$$.root
|
|
211
211
|
};
|
|
212
212
|
s && s(u.root);
|
|
213
213
|
let l = !1;
|
|
214
|
-
if (u.ctx = r(e, t.props || {}, (c, f, ...
|
|
215
|
-
const m =
|
|
216
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] = m) && (!u.skip_bound && u.bound[c] && u.bound[c](m), l &&
|
|
217
|
-
}), u.update(), l = !0, ie(u.before_update), u.fragment = n(u.ctx), t.target) {
|
|
214
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...d) => {
|
|
215
|
+
const m = d.length ? d[0] : f;
|
|
216
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = m) && (!u.skip_bound && u.bound[c] && u.bound[c](m), l && Pr(e, c)), f;
|
|
217
|
+
}) : [], u.update(), l = !0, ie(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
218
218
|
if (t.hydrate) {
|
|
219
|
-
const c =
|
|
219
|
+
const c = dr(t.target);
|
|
220
220
|
u.fragment && u.fragment.l(c), c.forEach(O);
|
|
221
221
|
} else
|
|
222
222
|
u.fragment && u.fragment.c();
|
|
223
|
-
t.intro &&
|
|
223
|
+
t.intro && Tr(e.$$.fragment), Hr(e, t.target, t.anchor), B();
|
|
224
224
|
}
|
|
225
225
|
ee(h);
|
|
226
226
|
}
|
|
227
|
-
let
|
|
228
|
-
typeof HTMLElement == "function" && (
|
|
227
|
+
let Ot;
|
|
228
|
+
typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
229
229
|
/** The Svelte component constructor */
|
|
230
230
|
$$ctor;
|
|
231
231
|
/** Slots */
|
|
@@ -267,7 +267,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
267
267
|
let o;
|
|
268
268
|
return {
|
|
269
269
|
c: function() {
|
|
270
|
-
o = T("slot"), i !== "default" &&
|
|
270
|
+
o = T("slot"), i !== "default" && x(o, "name", i);
|
|
271
271
|
},
|
|
272
272
|
/**
|
|
273
273
|
* @param {HTMLElement} target
|
|
@@ -284,7 +284,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
284
284
|
};
|
|
285
285
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
286
286
|
return;
|
|
287
|
-
const t = {}, r =
|
|
287
|
+
const t = {}, r = br(this);
|
|
288
288
|
for (const i of this.$$s)
|
|
289
289
|
i in r && (t[i] = [e(i)]);
|
|
290
290
|
for (const i of this.attributes) {
|
|
@@ -371,8 +371,8 @@ function ce(e, t, r, n) {
|
|
|
371
371
|
return t;
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
|
-
function
|
|
375
|
-
let s = class extends
|
|
374
|
+
function Br(e, t, r, n, i, o) {
|
|
375
|
+
let s = class extends Ot {
|
|
376
376
|
constructor() {
|
|
377
377
|
super(e, r, i), this.$$p_d = t;
|
|
378
378
|
}
|
|
@@ -400,7 +400,7 @@ function Ar(e, t, r, n, i, o) {
|
|
|
400
400
|
}), e.element = /** @type {any} */
|
|
401
401
|
s, s;
|
|
402
402
|
}
|
|
403
|
-
class
|
|
403
|
+
class Nr {
|
|
404
404
|
/**
|
|
405
405
|
* ### PRIVATE API
|
|
406
406
|
*
|
|
@@ -419,7 +419,7 @@ class Pr {
|
|
|
419
419
|
$$set = void 0;
|
|
420
420
|
/** @returns {void} */
|
|
421
421
|
$destroy() {
|
|
422
|
-
|
|
422
|
+
Ar(this, 1), this.$destroy = H;
|
|
423
423
|
}
|
|
424
424
|
/**
|
|
425
425
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -428,7 +428,7 @@ class Pr {
|
|
|
428
428
|
* @returns {() => void}
|
|
429
429
|
*/
|
|
430
430
|
$on(t, r) {
|
|
431
|
-
if (!
|
|
431
|
+
if (!ze(r))
|
|
432
432
|
return H;
|
|
433
433
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
434
434
|
return n.push(r), () => {
|
|
@@ -441,11 +441,11 @@ class Pr {
|
|
|
441
441
|
* @returns {void}
|
|
442
442
|
*/
|
|
443
443
|
$set(t) {
|
|
444
|
-
this.$$set && !
|
|
444
|
+
this.$$set && !hr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
|
-
const
|
|
448
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
447
|
+
const Or = "4";
|
|
448
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Or);
|
|
449
449
|
/*! *****************************************************************************
|
|
450
450
|
Copyright (c) Microsoft Corporation.
|
|
451
451
|
|
|
@@ -460,34 +460,34 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
460
460
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
461
461
|
PERFORMANCE OF THIS SOFTWARE.
|
|
462
462
|
***************************************************************************** */
|
|
463
|
-
var
|
|
464
|
-
return
|
|
463
|
+
var Le = function(e, t) {
|
|
464
|
+
return Le = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
465
465
|
r.__proto__ = n;
|
|
466
466
|
} || function(r, n) {
|
|
467
467
|
for (var i in n)
|
|
468
468
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
469
|
-
},
|
|
469
|
+
}, Le(e, t);
|
|
470
470
|
};
|
|
471
471
|
function I(e, t) {
|
|
472
472
|
if (typeof t != "function" && t !== null)
|
|
473
473
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
474
|
-
|
|
474
|
+
Le(e, t);
|
|
475
475
|
function r() {
|
|
476
476
|
this.constructor = e;
|
|
477
477
|
}
|
|
478
478
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
479
479
|
}
|
|
480
|
-
var
|
|
481
|
-
return
|
|
480
|
+
var v = function() {
|
|
481
|
+
return v = Object.assign || function(t) {
|
|
482
482
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
483
483
|
r = arguments[n];
|
|
484
484
|
for (var o in r)
|
|
485
485
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
486
486
|
}
|
|
487
487
|
return t;
|
|
488
|
-
},
|
|
488
|
+
}, v.apply(this, arguments);
|
|
489
489
|
};
|
|
490
|
-
function
|
|
490
|
+
function Ir(e, t) {
|
|
491
491
|
var r = {};
|
|
492
492
|
for (var n in e)
|
|
493
493
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -496,7 +496,7 @@ function Br(e, t) {
|
|
|
496
496
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
497
497
|
return r;
|
|
498
498
|
}
|
|
499
|
-
function
|
|
499
|
+
function Me(e) {
|
|
500
500
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
501
501
|
if (r)
|
|
502
502
|
return r.call(e);
|
|
@@ -508,7 +508,7 @@ function Le(e) {
|
|
|
508
508
|
};
|
|
509
509
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
510
510
|
}
|
|
511
|
-
function
|
|
511
|
+
function $e(e, t) {
|
|
512
512
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
513
513
|
if (!r)
|
|
514
514
|
return e;
|
|
@@ -537,13 +537,13 @@ function W(e, t, r) {
|
|
|
537
537
|
function N(e) {
|
|
538
538
|
return typeof e == "function";
|
|
539
539
|
}
|
|
540
|
-
function
|
|
540
|
+
function It(e) {
|
|
541
541
|
var t = function(n) {
|
|
542
542
|
Error.call(n), n.stack = new Error().stack;
|
|
543
543
|
}, r = e(t);
|
|
544
544
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
545
545
|
}
|
|
546
|
-
var Te =
|
|
546
|
+
var Te = It(function(e) {
|
|
547
547
|
return function(r) {
|
|
548
548
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
549
549
|
` + r.map(function(n, i) {
|
|
@@ -552,7 +552,7 @@ var Te = Nt(function(e) {
|
|
|
552
552
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
553
553
|
};
|
|
554
554
|
});
|
|
555
|
-
function
|
|
555
|
+
function Re(e, t) {
|
|
556
556
|
if (e) {
|
|
557
557
|
var r = e.indexOf(t);
|
|
558
558
|
0 <= r && e.splice(r, 1);
|
|
@@ -570,12 +570,12 @@ var ye = function() {
|
|
|
570
570
|
if (s)
|
|
571
571
|
if (this._parentage = null, Array.isArray(s))
|
|
572
572
|
try {
|
|
573
|
-
for (var a =
|
|
573
|
+
for (var a = Me(s), h = a.next(); !h.done; h = a.next()) {
|
|
574
574
|
var u = h.value;
|
|
575
575
|
u.remove(this);
|
|
576
576
|
}
|
|
577
|
-
} catch (
|
|
578
|
-
t = { error:
|
|
577
|
+
} catch (p) {
|
|
578
|
+
t = { error: p };
|
|
579
579
|
} finally {
|
|
580
580
|
try {
|
|
581
581
|
h && !h.done && (r = a.return) && r.call(a);
|
|
@@ -590,26 +590,26 @@ var ye = function() {
|
|
|
590
590
|
if (N(l))
|
|
591
591
|
try {
|
|
592
592
|
l();
|
|
593
|
-
} catch (
|
|
594
|
-
o =
|
|
593
|
+
} catch (p) {
|
|
594
|
+
o = p instanceof Te ? p.errors : [p];
|
|
595
595
|
}
|
|
596
596
|
var c = this._finalizers;
|
|
597
597
|
if (c) {
|
|
598
598
|
this._finalizers = null;
|
|
599
599
|
try {
|
|
600
|
-
for (var f =
|
|
601
|
-
var m =
|
|
600
|
+
for (var f = Me(c), d = f.next(); !d.done; d = f.next()) {
|
|
601
|
+
var m = d.value;
|
|
602
602
|
try {
|
|
603
|
-
|
|
604
|
-
} catch (
|
|
605
|
-
o = o ?? [],
|
|
603
|
+
rt(m);
|
|
604
|
+
} catch (p) {
|
|
605
|
+
o = o ?? [], p instanceof Te ? o = W(W([], $e(o)), $e(p.errors)) : o.push(p);
|
|
606
606
|
}
|
|
607
607
|
}
|
|
608
|
-
} catch (
|
|
609
|
-
n = { error:
|
|
608
|
+
} catch (p) {
|
|
609
|
+
n = { error: p };
|
|
610
610
|
} finally {
|
|
611
611
|
try {
|
|
612
|
-
|
|
612
|
+
d && !d.done && (i = f.return) && i.call(f);
|
|
613
613
|
} finally {
|
|
614
614
|
if (n)
|
|
615
615
|
throw n.error;
|
|
@@ -623,7 +623,7 @@ var ye = function() {
|
|
|
623
623
|
var r;
|
|
624
624
|
if (t && t !== this)
|
|
625
625
|
if (this.closed)
|
|
626
|
-
|
|
626
|
+
rt(t);
|
|
627
627
|
else {
|
|
628
628
|
if (t instanceof e) {
|
|
629
629
|
if (t.closed || t._hasParent(this))
|
|
@@ -640,56 +640,56 @@ var ye = function() {
|
|
|
640
640
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
641
641
|
}, e.prototype._removeParent = function(t) {
|
|
642
642
|
var r = this._parentage;
|
|
643
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
643
|
+
r === t ? this._parentage = null : Array.isArray(r) && Re(r, t);
|
|
644
644
|
}, e.prototype.remove = function(t) {
|
|
645
645
|
var r = this._finalizers;
|
|
646
|
-
r &&
|
|
646
|
+
r && Re(r, t), t instanceof e && t._removeParent(this);
|
|
647
647
|
}, e.EMPTY = function() {
|
|
648
648
|
var t = new e();
|
|
649
649
|
return t.closed = !0, t;
|
|
650
650
|
}(), e;
|
|
651
|
-
}(),
|
|
652
|
-
function
|
|
651
|
+
}(), Ct = ye.EMPTY;
|
|
652
|
+
function Lt(e) {
|
|
653
653
|
return e instanceof ye || e && "closed" in e && N(e.remove) && N(e.add) && N(e.unsubscribe);
|
|
654
654
|
}
|
|
655
|
-
function
|
|
655
|
+
function rt(e) {
|
|
656
656
|
N(e) ? e() : e.unsubscribe();
|
|
657
657
|
}
|
|
658
|
-
var
|
|
658
|
+
var Mt = {
|
|
659
659
|
onUnhandledError: null,
|
|
660
660
|
onStoppedNotification: null,
|
|
661
661
|
Promise: void 0,
|
|
662
662
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
663
663
|
useDeprecatedNextContext: !1
|
|
664
|
-
},
|
|
664
|
+
}, Cr = {
|
|
665
665
|
setTimeout: function(e, t) {
|
|
666
666
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
667
667
|
r[n - 2] = arguments[n];
|
|
668
|
-
return setTimeout.apply(void 0, W([e, t],
|
|
668
|
+
return setTimeout.apply(void 0, W([e, t], $e(r)));
|
|
669
669
|
},
|
|
670
670
|
clearTimeout: function(e) {
|
|
671
671
|
return clearTimeout(e);
|
|
672
672
|
},
|
|
673
673
|
delegate: void 0
|
|
674
674
|
};
|
|
675
|
-
function
|
|
676
|
-
|
|
675
|
+
function Lr(e) {
|
|
676
|
+
Cr.setTimeout(function() {
|
|
677
677
|
throw e;
|
|
678
678
|
});
|
|
679
679
|
}
|
|
680
|
-
function
|
|
680
|
+
function nt() {
|
|
681
681
|
}
|
|
682
682
|
function fe(e) {
|
|
683
683
|
e();
|
|
684
684
|
}
|
|
685
|
-
var
|
|
685
|
+
var $t = function(e) {
|
|
686
686
|
I(t, e);
|
|
687
687
|
function t(r) {
|
|
688
688
|
var n = e.call(this) || this;
|
|
689
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
689
|
+
return n.isStopped = !1, r ? (n.destination = r, Lt(r) && r.add(n)) : n.destination = Ur, n;
|
|
690
690
|
}
|
|
691
691
|
return t.create = function(r, n, i) {
|
|
692
|
-
return new
|
|
692
|
+
return new Ue(r, n, i);
|
|
693
693
|
}, t.prototype.next = function(r) {
|
|
694
694
|
this.isStopped || this._next(r);
|
|
695
695
|
}, t.prototype.error = function(r) {
|
|
@@ -713,7 +713,11 @@ var Ct = function(e) {
|
|
|
713
713
|
this.unsubscribe();
|
|
714
714
|
}
|
|
715
715
|
}, t;
|
|
716
|
-
}(ye),
|
|
716
|
+
}(ye), Mr = Function.prototype.bind;
|
|
717
|
+
function He(e, t) {
|
|
718
|
+
return Mr.call(e, t);
|
|
719
|
+
}
|
|
720
|
+
var $r = function() {
|
|
717
721
|
function e(t) {
|
|
718
722
|
this.partialObserver = t;
|
|
719
723
|
}
|
|
@@ -744,43 +748,55 @@ var Ct = function(e) {
|
|
|
744
748
|
ue(r);
|
|
745
749
|
}
|
|
746
750
|
}, e;
|
|
747
|
-
}(),
|
|
751
|
+
}(), Ue = function(e) {
|
|
748
752
|
I(t, e);
|
|
749
753
|
function t(r, n, i) {
|
|
750
754
|
var o = e.call(this) || this, s;
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
755
|
+
if (N(r) || !r)
|
|
756
|
+
s = {
|
|
757
|
+
next: r ?? void 0,
|
|
758
|
+
error: n ?? void 0,
|
|
759
|
+
complete: i ?? void 0
|
|
760
|
+
};
|
|
761
|
+
else {
|
|
762
|
+
var a;
|
|
763
|
+
o && Mt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
764
|
+
return o.unsubscribe();
|
|
765
|
+
}, s = {
|
|
766
|
+
next: r.next && He(r.next, a),
|
|
767
|
+
error: r.error && He(r.error, a),
|
|
768
|
+
complete: r.complete && He(r.complete, a)
|
|
769
|
+
}) : s = r;
|
|
770
|
+
}
|
|
771
|
+
return o.destination = new $r(s), o;
|
|
756
772
|
}
|
|
757
773
|
return t;
|
|
758
|
-
}(
|
|
774
|
+
}($t);
|
|
759
775
|
function ue(e) {
|
|
760
|
-
|
|
776
|
+
Lr(e);
|
|
761
777
|
}
|
|
762
|
-
function
|
|
778
|
+
function Rr(e) {
|
|
763
779
|
throw e;
|
|
764
780
|
}
|
|
765
|
-
var
|
|
781
|
+
var Ur = {
|
|
766
782
|
closed: !0,
|
|
767
|
-
next:
|
|
768
|
-
error:
|
|
769
|
-
complete:
|
|
770
|
-
},
|
|
783
|
+
next: nt,
|
|
784
|
+
error: Rr,
|
|
785
|
+
complete: nt
|
|
786
|
+
}, Dr = function() {
|
|
771
787
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
772
788
|
}();
|
|
773
|
-
function
|
|
789
|
+
function Gr(e) {
|
|
774
790
|
return e;
|
|
775
791
|
}
|
|
776
|
-
function
|
|
777
|
-
return e.length === 0 ?
|
|
792
|
+
function Fr(e) {
|
|
793
|
+
return e.length === 0 ? Gr : e.length === 1 ? e[0] : function(r) {
|
|
778
794
|
return e.reduce(function(n, i) {
|
|
779
795
|
return i(n);
|
|
780
796
|
}, r);
|
|
781
797
|
};
|
|
782
798
|
}
|
|
783
|
-
var
|
|
799
|
+
var it = function() {
|
|
784
800
|
function e(t) {
|
|
785
801
|
t && (this._subscribe = t);
|
|
786
802
|
}
|
|
@@ -788,7 +804,7 @@ var rt = function() {
|
|
|
788
804
|
var r = new e();
|
|
789
805
|
return r.source = this, r.operator = t, r;
|
|
790
806
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
791
|
-
var i = this, o =
|
|
807
|
+
var i = this, o = jr(t) ? t : new Ue(t, r, n);
|
|
792
808
|
return fe(function() {
|
|
793
809
|
var s = i, a = s.operator, h = s.source;
|
|
794
810
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -801,8 +817,8 @@ var rt = function() {
|
|
|
801
817
|
}
|
|
802
818
|
}, e.prototype.forEach = function(t, r) {
|
|
803
819
|
var n = this;
|
|
804
|
-
return r =
|
|
805
|
-
var s = new
|
|
820
|
+
return r = ot(r), new r(function(i, o) {
|
|
821
|
+
var s = new Ue({
|
|
806
822
|
next: function(a) {
|
|
807
823
|
try {
|
|
808
824
|
t(a);
|
|
@@ -818,15 +834,15 @@ var rt = function() {
|
|
|
818
834
|
}, e.prototype._subscribe = function(t) {
|
|
819
835
|
var r;
|
|
820
836
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
821
|
-
}, e.prototype[
|
|
837
|
+
}, e.prototype[Dr] = function() {
|
|
822
838
|
return this;
|
|
823
839
|
}, e.prototype.pipe = function() {
|
|
824
840
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
825
841
|
t[r] = arguments[r];
|
|
826
|
-
return
|
|
842
|
+
return Fr(t)(this);
|
|
827
843
|
}, e.prototype.toPromise = function(t) {
|
|
828
844
|
var r = this;
|
|
829
|
-
return t =
|
|
845
|
+
return t = ot(t), new t(function(n, i) {
|
|
830
846
|
var o;
|
|
831
847
|
r.subscribe(function(s) {
|
|
832
848
|
return o = s;
|
|
@@ -840,32 +856,32 @@ var rt = function() {
|
|
|
840
856
|
return new e(t);
|
|
841
857
|
}, e;
|
|
842
858
|
}();
|
|
843
|
-
function
|
|
859
|
+
function ot(e) {
|
|
844
860
|
var t;
|
|
845
|
-
return (t = e ??
|
|
861
|
+
return (t = e ?? Mt.Promise) !== null && t !== void 0 ? t : Promise;
|
|
846
862
|
}
|
|
847
|
-
function
|
|
863
|
+
function kr(e) {
|
|
848
864
|
return e && N(e.next) && N(e.error) && N(e.complete);
|
|
849
865
|
}
|
|
850
|
-
function
|
|
851
|
-
return e && e instanceof
|
|
866
|
+
function jr(e) {
|
|
867
|
+
return e && e instanceof $t || kr(e) && Lt(e);
|
|
852
868
|
}
|
|
853
|
-
var
|
|
869
|
+
var Vr = It(function(e) {
|
|
854
870
|
return function() {
|
|
855
871
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
856
872
|
};
|
|
857
|
-
}),
|
|
873
|
+
}), Rt = function(e) {
|
|
858
874
|
I(t, e);
|
|
859
875
|
function t() {
|
|
860
876
|
var r = e.call(this) || this;
|
|
861
877
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
862
878
|
}
|
|
863
879
|
return t.prototype.lift = function(r) {
|
|
864
|
-
var n = new
|
|
880
|
+
var n = new st(this, this);
|
|
865
881
|
return n.operator = r, n;
|
|
866
882
|
}, t.prototype._throwIfClosed = function() {
|
|
867
883
|
if (this.closed)
|
|
868
|
-
throw new
|
|
884
|
+
throw new Vr();
|
|
869
885
|
}, t.prototype.next = function(r) {
|
|
870
886
|
var n = this;
|
|
871
887
|
fe(function() {
|
|
@@ -873,7 +889,7 @@ var Fr = Nt(function(e) {
|
|
|
873
889
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
874
890
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
875
891
|
try {
|
|
876
|
-
for (var s =
|
|
892
|
+
for (var s = Me(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
877
893
|
var h = a.value;
|
|
878
894
|
h.next(r);
|
|
879
895
|
}
|
|
@@ -922,19 +938,19 @@ var Fr = Nt(function(e) {
|
|
|
922
938
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
923
939
|
}, t.prototype._innerSubscribe = function(r) {
|
|
924
940
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
925
|
-
return o || s ?
|
|
926
|
-
n.currentObservers = null,
|
|
941
|
+
return o || s ? Ct : (this.currentObservers = null, a.push(r), new ye(function() {
|
|
942
|
+
n.currentObservers = null, Re(a, r);
|
|
927
943
|
}));
|
|
928
944
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
929
945
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
930
946
|
i ? r.error(o) : s && r.complete();
|
|
931
947
|
}, t.prototype.asObservable = function() {
|
|
932
|
-
var r = new
|
|
948
|
+
var r = new it();
|
|
933
949
|
return r.source = this, r;
|
|
934
950
|
}, t.create = function(r, n) {
|
|
935
|
-
return new
|
|
951
|
+
return new st(r, n);
|
|
936
952
|
}, t;
|
|
937
|
-
}(
|
|
953
|
+
}(it), st = function(e) {
|
|
938
954
|
I(t, e);
|
|
939
955
|
function t(r, n) {
|
|
940
956
|
var i = e.call(this) || this;
|
|
@@ -951,17 +967,17 @@ var Fr = Nt(function(e) {
|
|
|
951
967
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
952
968
|
}, t.prototype._subscribe = function(r) {
|
|
953
969
|
var n, i;
|
|
954
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
970
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ct;
|
|
955
971
|
}, t;
|
|
956
|
-
}(
|
|
972
|
+
}(Rt), Ut = {
|
|
957
973
|
now: function() {
|
|
958
|
-
return (
|
|
974
|
+
return (Ut.delegate || Date).now();
|
|
959
975
|
},
|
|
960
976
|
delegate: void 0
|
|
961
|
-
},
|
|
977
|
+
}, Xr = function(e) {
|
|
962
978
|
I(t, e);
|
|
963
979
|
function t(r, n, i) {
|
|
964
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
980
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ut);
|
|
965
981
|
var o = e.call(this) || this;
|
|
966
982
|
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;
|
|
967
983
|
}
|
|
@@ -981,24 +997,24 @@ var Fr = Nt(function(e) {
|
|
|
981
997
|
u && o.splice(0, u + 1);
|
|
982
998
|
}
|
|
983
999
|
}, t;
|
|
984
|
-
}(
|
|
985
|
-
const
|
|
986
|
-
if (
|
|
987
|
-
const r = new
|
|
988
|
-
|
|
1000
|
+
}(Rt);
|
|
1001
|
+
const at = [], ut = {}, Wr = (e, t = 0) => {
|
|
1002
|
+
if (at.indexOf(e) == -1) {
|
|
1003
|
+
const r = new Xr(t);
|
|
1004
|
+
ut[e] = r, at.push(e);
|
|
989
1005
|
}
|
|
990
|
-
return
|
|
1006
|
+
return ut[e];
|
|
991
1007
|
}, k = [];
|
|
992
|
-
function
|
|
1008
|
+
function zr(e, t) {
|
|
993
1009
|
return {
|
|
994
|
-
subscribe:
|
|
1010
|
+
subscribe: ve(e, t).subscribe
|
|
995
1011
|
};
|
|
996
1012
|
}
|
|
997
|
-
function
|
|
1013
|
+
function ve(e, t = H) {
|
|
998
1014
|
let r;
|
|
999
1015
|
const n = /* @__PURE__ */ new Set();
|
|
1000
1016
|
function i(a) {
|
|
1001
|
-
if (
|
|
1017
|
+
if (wt(e, a) && (e = a, r)) {
|
|
1002
1018
|
const h = !k.length;
|
|
1003
1019
|
for (const u of n)
|
|
1004
1020
|
u[1](), k.push(u, e);
|
|
@@ -1025,7 +1041,7 @@ function q(e, t, r) {
|
|
|
1025
1041
|
if (!i.every(Boolean))
|
|
1026
1042
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1027
1043
|
const o = t.length < 2;
|
|
1028
|
-
return
|
|
1044
|
+
return zr(r, (s, a) => {
|
|
1029
1045
|
let h = !1;
|
|
1030
1046
|
const u = [];
|
|
1031
1047
|
let l = 0, c = H;
|
|
@@ -1034,87 +1050,87 @@ function q(e, t, r) {
|
|
|
1034
1050
|
return;
|
|
1035
1051
|
c();
|
|
1036
1052
|
const m = t(n ? u[0] : u, s, a);
|
|
1037
|
-
o ? s(m) : c =
|
|
1038
|
-
},
|
|
1039
|
-
(m,
|
|
1053
|
+
o ? s(m) : c = ze(m) ? m : H;
|
|
1054
|
+
}, d = i.map(
|
|
1055
|
+
(m, p) => lr(
|
|
1040
1056
|
m,
|
|
1041
1057
|
(S) => {
|
|
1042
|
-
u[
|
|
1058
|
+
u[p] = S, l &= ~(1 << p), h && f();
|
|
1043
1059
|
},
|
|
1044
1060
|
() => {
|
|
1045
|
-
l |= 1 <<
|
|
1061
|
+
l |= 1 << p;
|
|
1046
1062
|
}
|
|
1047
1063
|
)
|
|
1048
1064
|
);
|
|
1049
1065
|
return h = !0, f(), function() {
|
|
1050
|
-
ie(
|
|
1066
|
+
ie(d), c(), h = !1;
|
|
1051
1067
|
};
|
|
1052
1068
|
});
|
|
1053
1069
|
}
|
|
1054
|
-
function
|
|
1055
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1070
|
+
function Zr(e) {
|
|
1071
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1056
1072
|
}
|
|
1057
|
-
var
|
|
1058
|
-
return
|
|
1073
|
+
var Qr = function(t) {
|
|
1074
|
+
return Jr(t) && !qr(t);
|
|
1059
1075
|
};
|
|
1060
|
-
function
|
|
1076
|
+
function Jr(e) {
|
|
1061
1077
|
return !!e && typeof e == "object";
|
|
1062
1078
|
}
|
|
1063
|
-
function
|
|
1079
|
+
function qr(e) {
|
|
1064
1080
|
var t = Object.prototype.toString.call(e);
|
|
1065
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1081
|
+
return t === "[object RegExp]" || t === "[object Date]" || en(e);
|
|
1066
1082
|
}
|
|
1067
|
-
var
|
|
1068
|
-
function
|
|
1069
|
-
return e.$$typeof ===
|
|
1083
|
+
var Yr = typeof Symbol == "function" && Symbol.for, Kr = Yr ? Symbol.for("react.element") : 60103;
|
|
1084
|
+
function en(e) {
|
|
1085
|
+
return e.$$typeof === Kr;
|
|
1070
1086
|
}
|
|
1071
|
-
function
|
|
1087
|
+
function tn(e) {
|
|
1072
1088
|
return Array.isArray(e) ? [] : {};
|
|
1073
1089
|
}
|
|
1074
1090
|
function re(e, t) {
|
|
1075
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? z(
|
|
1091
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? z(tn(e), e, t) : e;
|
|
1076
1092
|
}
|
|
1077
|
-
function
|
|
1093
|
+
function rn(e, t, r) {
|
|
1078
1094
|
return e.concat(t).map(function(n) {
|
|
1079
1095
|
return re(n, r);
|
|
1080
1096
|
});
|
|
1081
1097
|
}
|
|
1082
|
-
function
|
|
1098
|
+
function nn(e, t) {
|
|
1083
1099
|
if (!t.customMerge)
|
|
1084
1100
|
return z;
|
|
1085
1101
|
var r = t.customMerge(e);
|
|
1086
1102
|
return typeof r == "function" ? r : z;
|
|
1087
1103
|
}
|
|
1088
|
-
function
|
|
1104
|
+
function on(e) {
|
|
1089
1105
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1090
1106
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1091
1107
|
}) : [];
|
|
1092
1108
|
}
|
|
1093
|
-
function
|
|
1094
|
-
return Object.keys(e).concat(
|
|
1109
|
+
function ht(e) {
|
|
1110
|
+
return Object.keys(e).concat(on(e));
|
|
1095
1111
|
}
|
|
1096
|
-
function
|
|
1112
|
+
function Dt(e, t) {
|
|
1097
1113
|
try {
|
|
1098
1114
|
return t in e;
|
|
1099
1115
|
} catch {
|
|
1100
1116
|
return !1;
|
|
1101
1117
|
}
|
|
1102
1118
|
}
|
|
1103
|
-
function
|
|
1104
|
-
return
|
|
1119
|
+
function sn(e, t) {
|
|
1120
|
+
return Dt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1105
1121
|
}
|
|
1106
|
-
function
|
|
1122
|
+
function an(e, t, r) {
|
|
1107
1123
|
var n = {};
|
|
1108
|
-
return r.isMergeableObject(e) &&
|
|
1124
|
+
return r.isMergeableObject(e) && ht(e).forEach(function(i) {
|
|
1109
1125
|
n[i] = re(e[i], r);
|
|
1110
|
-
}),
|
|
1111
|
-
|
|
1126
|
+
}), ht(t).forEach(function(i) {
|
|
1127
|
+
sn(e, i) || (Dt(e, i) && r.isMergeableObject(t[i]) ? n[i] = nn(i, r)(e[i], t[i], r) : n[i] = re(t[i], r));
|
|
1112
1128
|
}), n;
|
|
1113
1129
|
}
|
|
1114
1130
|
function z(e, t, r) {
|
|
1115
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1131
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || rn, r.isMergeableObject = r.isMergeableObject || Qr, r.cloneUnlessOtherwiseSpecified = re;
|
|
1116
1132
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1117
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1133
|
+
return o ? n ? r.arrayMerge(e, t, r) : an(e, t, r) : re(t, r);
|
|
1118
1134
|
}
|
|
1119
1135
|
z.all = function(t, r) {
|
|
1120
1136
|
if (!Array.isArray(t))
|
|
@@ -1123,109 +1139,107 @@ z.all = function(t, r) {
|
|
|
1123
1139
|
return z(n, i, r);
|
|
1124
1140
|
}, {});
|
|
1125
1141
|
};
|
|
1126
|
-
var
|
|
1127
|
-
const
|
|
1128
|
-
function
|
|
1129
|
-
var r = t && t.cache ? t.cache :
|
|
1142
|
+
var un = z, hn = un;
|
|
1143
|
+
const ln = /* @__PURE__ */ Zr(hn);
|
|
1144
|
+
function Ae(e, t) {
|
|
1145
|
+
var r = t && t.cache ? t.cache : bn, n = t && t.serializer ? t.serializer : mn, i = t && t.strategy ? t.strategy : fn;
|
|
1130
1146
|
return i(e, {
|
|
1131
1147
|
cache: r,
|
|
1132
1148
|
serializer: n
|
|
1133
1149
|
});
|
|
1134
1150
|
}
|
|
1135
|
-
function
|
|
1151
|
+
function cn(e) {
|
|
1136
1152
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1137
1153
|
}
|
|
1138
|
-
function
|
|
1139
|
-
var i =
|
|
1154
|
+
function Gt(e, t, r, n) {
|
|
1155
|
+
var i = cn(n) ? n : r(n), o = t.get(i);
|
|
1140
1156
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1141
1157
|
}
|
|
1142
|
-
function
|
|
1158
|
+
function Ft(e, t, r) {
|
|
1143
1159
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1144
1160
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1145
1161
|
}
|
|
1146
|
-
function
|
|
1162
|
+
function Ze(e, t, r, n, i) {
|
|
1147
1163
|
return r.bind(t, e, n, i);
|
|
1148
1164
|
}
|
|
1149
|
-
function
|
|
1150
|
-
var r = e.length === 1 ?
|
|
1151
|
-
return
|
|
1165
|
+
function fn(e, t) {
|
|
1166
|
+
var r = e.length === 1 ? Gt : Ft;
|
|
1167
|
+
return Ze(e, this, r, t.cache.create(), t.serializer);
|
|
1152
1168
|
}
|
|
1153
|
-
function
|
|
1154
|
-
return
|
|
1169
|
+
function pn(e, t) {
|
|
1170
|
+
return Ze(e, this, Ft, t.cache.create(), t.serializer);
|
|
1155
1171
|
}
|
|
1156
|
-
function
|
|
1157
|
-
return
|
|
1172
|
+
function dn(e, t) {
|
|
1173
|
+
return Ze(e, this, Gt, t.cache.create(), t.serializer);
|
|
1158
1174
|
}
|
|
1159
|
-
var
|
|
1175
|
+
var mn = function() {
|
|
1160
1176
|
return JSON.stringify(arguments);
|
|
1161
|
-
}
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
}()
|
|
1173
|
-
), pn = {
|
|
1177
|
+
};
|
|
1178
|
+
function Qe() {
|
|
1179
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1180
|
+
}
|
|
1181
|
+
Qe.prototype.get = function(e) {
|
|
1182
|
+
return this.cache[e];
|
|
1183
|
+
};
|
|
1184
|
+
Qe.prototype.set = function(e, t) {
|
|
1185
|
+
this.cache[e] = t;
|
|
1186
|
+
};
|
|
1187
|
+
var bn = {
|
|
1174
1188
|
create: function() {
|
|
1175
|
-
return new
|
|
1189
|
+
return new Qe();
|
|
1176
1190
|
}
|
|
1177
|
-
},
|
|
1178
|
-
variadic:
|
|
1179
|
-
monadic:
|
|
1191
|
+
}, Pe = {
|
|
1192
|
+
variadic: pn,
|
|
1193
|
+
monadic: dn
|
|
1180
1194
|
}, b;
|
|
1181
1195
|
(function(e) {
|
|
1182
1196
|
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";
|
|
1183
1197
|
})(b || (b = {}));
|
|
1184
|
-
var
|
|
1198
|
+
var _;
|
|
1185
1199
|
(function(e) {
|
|
1186
1200
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
1187
|
-
})(
|
|
1201
|
+
})(_ || (_ = {}));
|
|
1188
1202
|
var Z;
|
|
1189
1203
|
(function(e) {
|
|
1190
1204
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1191
1205
|
})(Z || (Z = {}));
|
|
1192
|
-
function
|
|
1193
|
-
return e.type ===
|
|
1194
|
-
}
|
|
1195
|
-
function mn(e) {
|
|
1196
|
-
return e.type === x.argument;
|
|
1197
|
-
}
|
|
1198
|
-
function Dt(e) {
|
|
1199
|
-
return e.type === x.number;
|
|
1200
|
-
}
|
|
1201
|
-
function Gt(e) {
|
|
1202
|
-
return e.type === x.date;
|
|
1206
|
+
function lt(e) {
|
|
1207
|
+
return e.type === _.literal;
|
|
1203
1208
|
}
|
|
1204
|
-
function
|
|
1205
|
-
return e.type ===
|
|
1209
|
+
function gn(e) {
|
|
1210
|
+
return e.type === _.argument;
|
|
1206
1211
|
}
|
|
1207
1212
|
function kt(e) {
|
|
1208
|
-
return e.type ===
|
|
1213
|
+
return e.type === _.number;
|
|
1209
1214
|
}
|
|
1210
1215
|
function jt(e) {
|
|
1211
|
-
return e.type ===
|
|
1212
|
-
}
|
|
1213
|
-
function bn(e) {
|
|
1214
|
-
return e.type === x.pound;
|
|
1216
|
+
return e.type === _.date;
|
|
1215
1217
|
}
|
|
1216
1218
|
function Vt(e) {
|
|
1217
|
-
return e.type ===
|
|
1219
|
+
return e.type === _.time;
|
|
1218
1220
|
}
|
|
1219
1221
|
function Xt(e) {
|
|
1222
|
+
return e.type === _.select;
|
|
1223
|
+
}
|
|
1224
|
+
function Wt(e) {
|
|
1225
|
+
return e.type === _.plural;
|
|
1226
|
+
}
|
|
1227
|
+
function yn(e) {
|
|
1228
|
+
return e.type === _.pound;
|
|
1229
|
+
}
|
|
1230
|
+
function zt(e) {
|
|
1231
|
+
return e.type === _.tag;
|
|
1232
|
+
}
|
|
1233
|
+
function Zt(e) {
|
|
1220
1234
|
return !!(e && typeof e == "object" && e.type === Z.number);
|
|
1221
1235
|
}
|
|
1222
|
-
function
|
|
1236
|
+
function De(e) {
|
|
1223
1237
|
return !!(e && typeof e == "object" && e.type === Z.dateTime);
|
|
1224
1238
|
}
|
|
1225
|
-
var
|
|
1226
|
-
function
|
|
1239
|
+
var Qt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, vn = /(?:[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;
|
|
1240
|
+
function _n(e) {
|
|
1227
1241
|
var t = {};
|
|
1228
|
-
return e.replace(
|
|
1242
|
+
return e.replace(vn, function(r) {
|
|
1229
1243
|
var n = r.length;
|
|
1230
1244
|
switch (r[0]) {
|
|
1231
1245
|
case "G":
|
|
@@ -1314,11 +1328,11 @@ function yn(e) {
|
|
|
1314
1328
|
return "";
|
|
1315
1329
|
}), t;
|
|
1316
1330
|
}
|
|
1317
|
-
var
|
|
1318
|
-
function
|
|
1331
|
+
var xn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1332
|
+
function En(e) {
|
|
1319
1333
|
if (e.length === 0)
|
|
1320
1334
|
throw new Error("Number skeleton cannot be empty");
|
|
1321
|
-
for (var t = e.split(
|
|
1335
|
+
for (var t = e.split(xn).filter(function(f) {
|
|
1322
1336
|
return f.length > 0;
|
|
1323
1337
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1324
1338
|
var o = i[n], s = o.split("/");
|
|
@@ -1333,17 +1347,17 @@ function xn(e) {
|
|
|
1333
1347
|
}
|
|
1334
1348
|
return r;
|
|
1335
1349
|
}
|
|
1336
|
-
function
|
|
1350
|
+
function Sn(e) {
|
|
1337
1351
|
return e.replace(/^(.*?)-/, "");
|
|
1338
1352
|
}
|
|
1339
|
-
var
|
|
1340
|
-
function
|
|
1353
|
+
var ct = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Jt = /^(@+)?(\+|#+)?[rs]?$/g, Tn = /(\*)(0+)|(#+)(0+)|(0+)/g, qt = /^(0+)$/;
|
|
1354
|
+
function ft(e) {
|
|
1341
1355
|
var t = {};
|
|
1342
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1356
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Jt, function(r, n, i) {
|
|
1343
1357
|
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)), "";
|
|
1344
1358
|
}), t;
|
|
1345
1359
|
}
|
|
1346
|
-
function
|
|
1360
|
+
function Yt(e) {
|
|
1347
1361
|
switch (e) {
|
|
1348
1362
|
case "sign-auto":
|
|
1349
1363
|
return {
|
|
@@ -1383,7 +1397,7 @@ function Qt(e) {
|
|
|
1383
1397
|
};
|
|
1384
1398
|
}
|
|
1385
1399
|
}
|
|
1386
|
-
function
|
|
1400
|
+
function Hn(e) {
|
|
1387
1401
|
var t;
|
|
1388
1402
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1389
1403
|
notation: "engineering"
|
|
@@ -1391,17 +1405,17 @@ function Sn(e) {
|
|
|
1391
1405
|
notation: "scientific"
|
|
1392
1406
|
}, e = e.slice(1)), t) {
|
|
1393
1407
|
var r = e.slice(0, 2);
|
|
1394
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1408
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !qt.test(e))
|
|
1395
1409
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1396
1410
|
t.minimumIntegerDigits = e.length;
|
|
1397
1411
|
}
|
|
1398
1412
|
return t;
|
|
1399
1413
|
}
|
|
1400
|
-
function
|
|
1401
|
-
var t = {}, r =
|
|
1414
|
+
function pt(e) {
|
|
1415
|
+
var t = {}, r = Yt(e);
|
|
1402
1416
|
return r || t;
|
|
1403
1417
|
}
|
|
1404
|
-
function
|
|
1418
|
+
function An(e) {
|
|
1405
1419
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1406
1420
|
var i = n[r];
|
|
1407
1421
|
switch (i.stem) {
|
|
@@ -1425,7 +1439,7 @@ function Tn(e) {
|
|
|
1425
1439
|
continue;
|
|
1426
1440
|
case "measure-unit":
|
|
1427
1441
|
case "unit":
|
|
1428
|
-
t.style = "unit", t.unit =
|
|
1442
|
+
t.style = "unit", t.unit = Sn(i.options[0]);
|
|
1429
1443
|
continue;
|
|
1430
1444
|
case "compact-short":
|
|
1431
1445
|
case "K":
|
|
@@ -1436,13 +1450,13 @@ function Tn(e) {
|
|
|
1436
1450
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1437
1451
|
continue;
|
|
1438
1452
|
case "scientific":
|
|
1439
|
-
t =
|
|
1440
|
-
return
|
|
1453
|
+
t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1454
|
+
return v(v({}, h), pt(u));
|
|
1441
1455
|
}, {}));
|
|
1442
1456
|
continue;
|
|
1443
1457
|
case "engineering":
|
|
1444
|
-
t =
|
|
1445
|
-
return
|
|
1458
|
+
t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1459
|
+
return v(v({}, h), pt(u));
|
|
1446
1460
|
}, {}));
|
|
1447
1461
|
continue;
|
|
1448
1462
|
case "notation-simple":
|
|
@@ -1487,41 +1501,41 @@ function Tn(e) {
|
|
|
1487
1501
|
case "integer-width":
|
|
1488
1502
|
if (i.options.length > 1)
|
|
1489
1503
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1490
|
-
i.options[0].replace(
|
|
1504
|
+
i.options[0].replace(Tn, function(h, u, l, c, f, d) {
|
|
1491
1505
|
if (u)
|
|
1492
1506
|
t.minimumIntegerDigits = l.length;
|
|
1493
1507
|
else {
|
|
1494
1508
|
if (c && f)
|
|
1495
1509
|
throw new Error("We currently do not support maximum integer digits");
|
|
1496
|
-
if (
|
|
1510
|
+
if (d)
|
|
1497
1511
|
throw new Error("We currently do not support exact integer digits");
|
|
1498
1512
|
}
|
|
1499
1513
|
return "";
|
|
1500
1514
|
});
|
|
1501
1515
|
continue;
|
|
1502
1516
|
}
|
|
1503
|
-
if (
|
|
1517
|
+
if (qt.test(i.stem)) {
|
|
1504
1518
|
t.minimumIntegerDigits = i.stem.length;
|
|
1505
1519
|
continue;
|
|
1506
1520
|
}
|
|
1507
|
-
if (
|
|
1521
|
+
if (ct.test(i.stem)) {
|
|
1508
1522
|
if (i.options.length > 1)
|
|
1509
1523
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1510
|
-
i.stem.replace(
|
|
1511
|
-
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f &&
|
|
1524
|
+
i.stem.replace(ct, function(h, u, l, c, f, d) {
|
|
1525
|
+
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), "";
|
|
1512
1526
|
});
|
|
1513
1527
|
var o = i.options[0];
|
|
1514
|
-
o === "w" ? t =
|
|
1528
|
+
o === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = v(v({}, t), ft(o)));
|
|
1515
1529
|
continue;
|
|
1516
1530
|
}
|
|
1517
|
-
if (
|
|
1518
|
-
t =
|
|
1531
|
+
if (Jt.test(i.stem)) {
|
|
1532
|
+
t = v(v({}, t), ft(i.stem));
|
|
1519
1533
|
continue;
|
|
1520
1534
|
}
|
|
1521
|
-
var s =
|
|
1522
|
-
s && (t =
|
|
1523
|
-
var a =
|
|
1524
|
-
a && (t =
|
|
1535
|
+
var s = Yt(i.stem);
|
|
1536
|
+
s && (t = v(v({}, t), s));
|
|
1537
|
+
var a = Hn(i.stem);
|
|
1538
|
+
a && (t = v(v({}, t), a));
|
|
1525
1539
|
}
|
|
1526
1540
|
return t;
|
|
1527
1541
|
}
|
|
@@ -2940,13 +2954,13 @@ var he = {
|
|
|
2940
2954
|
"h"
|
|
2941
2955
|
]
|
|
2942
2956
|
};
|
|
2943
|
-
function
|
|
2957
|
+
function Pn(e, t) {
|
|
2944
2958
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2945
2959
|
var i = e.charAt(n);
|
|
2946
2960
|
if (i === "j") {
|
|
2947
2961
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2948
2962
|
o++, n++;
|
|
2949
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2963
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = wn(t);
|
|
2950
2964
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2951
2965
|
r += h;
|
|
2952
2966
|
for (; s-- > 0; )
|
|
@@ -2956,7 +2970,7 @@ function Hn(e, t) {
|
|
|
2956
2970
|
}
|
|
2957
2971
|
return r;
|
|
2958
2972
|
}
|
|
2959
|
-
function
|
|
2973
|
+
function wn(e) {
|
|
2960
2974
|
var t = e.hourCycle;
|
|
2961
2975
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2962
2976
|
e.hourCycles && // @ts-ignore
|
|
@@ -2978,20 +2992,20 @@ function An(e) {
|
|
|
2978
2992
|
var i = he[n || ""] || he[r || ""] || he["".concat(r, "-001")] || he["001"];
|
|
2979
2993
|
return i[0];
|
|
2980
2994
|
}
|
|
2981
|
-
var
|
|
2995
|
+
var we, Bn = new RegExp("^".concat(Qt.source, "*")), Nn = new RegExp("".concat(Qt.source, "*$"));
|
|
2982
2996
|
function g(e, t) {
|
|
2983
2997
|
return { start: e, end: t };
|
|
2984
2998
|
}
|
|
2985
|
-
var
|
|
2999
|
+
var On = !!String.prototype.startsWith && "_a".startsWith("a", 1), In = !!String.fromCodePoint, Cn = !!Object.fromEntries, Ln = !!String.prototype.codePointAt, Mn = !!String.prototype.trimStart, $n = !!String.prototype.trimEnd, Rn = !!Number.isSafeInteger, Un = Rn ? Number.isSafeInteger : function(e) {
|
|
2986
3000
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2987
|
-
},
|
|
3001
|
+
}, Ge = !0;
|
|
2988
3002
|
try {
|
|
2989
|
-
var
|
|
2990
|
-
|
|
3003
|
+
var Dn = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3004
|
+
Ge = ((we = Dn.exec("a")) === null || we === void 0 ? void 0 : we[0]) === "a";
|
|
2991
3005
|
} catch {
|
|
2992
|
-
|
|
3006
|
+
Ge = !1;
|
|
2993
3007
|
}
|
|
2994
|
-
var
|
|
3008
|
+
var dt = On ? (
|
|
2995
3009
|
// Native
|
|
2996
3010
|
function(t, r, n) {
|
|
2997
3011
|
return t.startsWith(r, n);
|
|
@@ -3001,7 +3015,7 @@ var ft = Bn ? (
|
|
|
3001
3015
|
function(t, r, n) {
|
|
3002
3016
|
return t.slice(n, n + r.length) === r;
|
|
3003
3017
|
}
|
|
3004
|
-
),
|
|
3018
|
+
), Fe = In ? String.fromCodePoint : (
|
|
3005
3019
|
// IE11
|
|
3006
3020
|
function() {
|
|
3007
3021
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3013,9 +3027,9 @@ var ft = Bn ? (
|
|
|
3013
3027
|
}
|
|
3014
3028
|
return n;
|
|
3015
3029
|
}
|
|
3016
|
-
),
|
|
3030
|
+
), mt = (
|
|
3017
3031
|
// native
|
|
3018
|
-
|
|
3032
|
+
Cn ? Object.fromEntries : (
|
|
3019
3033
|
// Ponyfill
|
|
3020
3034
|
function(t) {
|
|
3021
3035
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3025,7 +3039,7 @@ var ft = Bn ? (
|
|
|
3025
3039
|
return r;
|
|
3026
3040
|
}
|
|
3027
3041
|
)
|
|
3028
|
-
),
|
|
3042
|
+
), Kt = Ln ? (
|
|
3029
3043
|
// Native
|
|
3030
3044
|
function(t, r) {
|
|
3031
3045
|
return t.codePointAt(r);
|
|
@@ -3039,7 +3053,7 @@ var ft = Bn ? (
|
|
|
3039
3053
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3040
3054
|
}
|
|
3041
3055
|
}
|
|
3042
|
-
),
|
|
3056
|
+
), Gn = Mn ? (
|
|
3043
3057
|
// Native
|
|
3044
3058
|
function(t) {
|
|
3045
3059
|
return t.trimStart();
|
|
@@ -3047,9 +3061,9 @@ var ft = Bn ? (
|
|
|
3047
3061
|
) : (
|
|
3048
3062
|
// Ponyfill
|
|
3049
3063
|
function(t) {
|
|
3050
|
-
return t.replace(
|
|
3064
|
+
return t.replace(Bn, "");
|
|
3051
3065
|
}
|
|
3052
|
-
),
|
|
3066
|
+
), Fn = $n ? (
|
|
3053
3067
|
// Native
|
|
3054
3068
|
function(t) {
|
|
3055
3069
|
return t.trimEnd();
|
|
@@ -3057,32 +3071,32 @@ var ft = Bn ? (
|
|
|
3057
3071
|
) : (
|
|
3058
3072
|
// Ponyfill
|
|
3059
3073
|
function(t) {
|
|
3060
|
-
return t.replace(
|
|
3074
|
+
return t.replace(Nn, "");
|
|
3061
3075
|
}
|
|
3062
3076
|
);
|
|
3063
|
-
function
|
|
3077
|
+
function er(e, t) {
|
|
3064
3078
|
return new RegExp(e, t);
|
|
3065
3079
|
}
|
|
3066
|
-
var
|
|
3067
|
-
if (
|
|
3068
|
-
var
|
|
3069
|
-
|
|
3080
|
+
var ke;
|
|
3081
|
+
if (Ge) {
|
|
3082
|
+
var bt = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3083
|
+
ke = function(t, r) {
|
|
3070
3084
|
var n;
|
|
3071
|
-
|
|
3072
|
-
var i =
|
|
3085
|
+
bt.lastIndex = r;
|
|
3086
|
+
var i = bt.exec(t);
|
|
3073
3087
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3074
3088
|
};
|
|
3075
3089
|
} else
|
|
3076
|
-
|
|
3090
|
+
ke = function(t, r) {
|
|
3077
3091
|
for (var n = []; ; ) {
|
|
3078
|
-
var i =
|
|
3079
|
-
if (i === void 0 ||
|
|
3092
|
+
var i = Kt(t, r);
|
|
3093
|
+
if (i === void 0 || tr(i) || Xn(i))
|
|
3080
3094
|
break;
|
|
3081
3095
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3082
3096
|
}
|
|
3083
|
-
return
|
|
3097
|
+
return Fe.apply(void 0, n);
|
|
3084
3098
|
};
|
|
3085
|
-
var
|
|
3099
|
+
var kn = (
|
|
3086
3100
|
/** @class */
|
|
3087
3101
|
function() {
|
|
3088
3102
|
function e(t, r) {
|
|
@@ -3106,14 +3120,14 @@ var Gn = (
|
|
|
3106
3120
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3107
3121
|
var a = this.clonePosition();
|
|
3108
3122
|
this.bump(), i.push({
|
|
3109
|
-
type:
|
|
3123
|
+
type: _.pound,
|
|
3110
3124
|
location: g(a, this.clonePosition())
|
|
3111
3125
|
});
|
|
3112
3126
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3113
3127
|
if (n)
|
|
3114
3128
|
break;
|
|
3115
3129
|
return this.error(b.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
|
3116
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3130
|
+
} else if (o === 60 && !this.ignoreTag && je(this.peek() || 0)) {
|
|
3117
3131
|
var s = this.parseTag(t, r);
|
|
3118
3132
|
if (s.err)
|
|
3119
3133
|
return s;
|
|
@@ -3134,7 +3148,7 @@ var Gn = (
|
|
|
3134
3148
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3135
3149
|
return {
|
|
3136
3150
|
val: {
|
|
3137
|
-
type:
|
|
3151
|
+
type: _.literal,
|
|
3138
3152
|
value: "<".concat(i, "/>"),
|
|
3139
3153
|
location: g(n, this.clonePosition())
|
|
3140
3154
|
},
|
|
@@ -3146,12 +3160,12 @@ var Gn = (
|
|
|
3146
3160
|
return o;
|
|
3147
3161
|
var s = o.val, a = this.clonePosition();
|
|
3148
3162
|
if (this.bumpIf("</")) {
|
|
3149
|
-
if (this.isEOF() || !
|
|
3163
|
+
if (this.isEOF() || !je(this.char()))
|
|
3150
3164
|
return this.error(b.INVALID_TAG, g(a, this.clonePosition()));
|
|
3151
3165
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3152
3166
|
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, g(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3153
3167
|
val: {
|
|
3154
|
-
type:
|
|
3168
|
+
type: _.tag,
|
|
3155
3169
|
value: i,
|
|
3156
3170
|
children: s,
|
|
3157
3171
|
location: g(n, this.clonePosition())
|
|
@@ -3164,7 +3178,7 @@ var Gn = (
|
|
|
3164
3178
|
return this.error(b.INVALID_TAG, g(n, this.clonePosition()));
|
|
3165
3179
|
}, e.prototype.parseTagName = function() {
|
|
3166
3180
|
var t = this.offset();
|
|
3167
|
-
for (this.bump(); !this.isEOF() &&
|
|
3181
|
+
for (this.bump(); !this.isEOF() && Vn(this.char()); )
|
|
3168
3182
|
this.bump();
|
|
3169
3183
|
return this.message.slice(t, this.offset());
|
|
3170
3184
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3188,12 +3202,12 @@ var Gn = (
|
|
|
3188
3202
|
}
|
|
3189
3203
|
var h = g(n, this.clonePosition());
|
|
3190
3204
|
return {
|
|
3191
|
-
val: { type:
|
|
3205
|
+
val: { type: _.literal, value: i, location: h },
|
|
3192
3206
|
err: null
|
|
3193
3207
|
};
|
|
3194
3208
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3195
3209
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3196
|
-
!
|
|
3210
|
+
!jn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3197
3211
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3198
3212
|
if (this.isEOF() || this.char() !== 39)
|
|
3199
3213
|
return null;
|
|
@@ -3227,12 +3241,12 @@ var Gn = (
|
|
|
3227
3241
|
r.push(n);
|
|
3228
3242
|
this.bump();
|
|
3229
3243
|
}
|
|
3230
|
-
return
|
|
3244
|
+
return Fe.apply(void 0, r);
|
|
3231
3245
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3232
3246
|
if (this.isEOF())
|
|
3233
3247
|
return null;
|
|
3234
3248
|
var n = this.char();
|
|
3235
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3249
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
|
|
3236
3250
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3237
3251
|
var n = this.clonePosition();
|
|
3238
3252
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3248,7 +3262,7 @@ var Gn = (
|
|
|
3248
3262
|
case 125:
|
|
3249
3263
|
return this.bump(), {
|
|
3250
3264
|
val: {
|
|
3251
|
-
type:
|
|
3265
|
+
type: _.argument,
|
|
3252
3266
|
// value does not include the opening and closing braces.
|
|
3253
3267
|
value: i,
|
|
3254
3268
|
location: g(n, this.clonePosition())
|
|
@@ -3261,7 +3275,7 @@ var Gn = (
|
|
|
3261
3275
|
return this.error(b.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3262
3276
|
}
|
|
3263
3277
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3264
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3278
|
+
var t = this.clonePosition(), r = this.offset(), n = ke(this.message, r), i = r + n.length;
|
|
3265
3279
|
this.bumpTo(i);
|
|
3266
3280
|
var o = this.clonePosition(), s = g(t, o);
|
|
3267
3281
|
return { value: n, location: s };
|
|
@@ -3280,46 +3294,46 @@ var Gn = (
|
|
|
3280
3294
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3281
3295
|
if (c.err)
|
|
3282
3296
|
return c;
|
|
3283
|
-
var f =
|
|
3297
|
+
var f = Fn(c.val);
|
|
3284
3298
|
if (f.length === 0)
|
|
3285
3299
|
return this.error(b.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
|
3286
|
-
var
|
|
3287
|
-
u = { style: f, styleLocation:
|
|
3300
|
+
var d = g(l, this.clonePosition());
|
|
3301
|
+
u = { style: f, styleLocation: d };
|
|
3288
3302
|
}
|
|
3289
3303
|
var m = this.tryParseArgumentClose(i);
|
|
3290
3304
|
if (m.err)
|
|
3291
3305
|
return m;
|
|
3292
|
-
var
|
|
3293
|
-
if (u &&
|
|
3294
|
-
var S =
|
|
3306
|
+
var p = g(i, this.clonePosition());
|
|
3307
|
+
if (u && dt(u?.style, "::", 0)) {
|
|
3308
|
+
var S = Gn(u.style.slice(2));
|
|
3295
3309
|
if (a === "number") {
|
|
3296
3310
|
var c = this.parseNumberSkeletonFromString(S, u.styleLocation);
|
|
3297
3311
|
return c.err ? c : {
|
|
3298
|
-
val: { type:
|
|
3312
|
+
val: { type: _.number, value: n, location: p, style: c.val },
|
|
3299
3313
|
err: null
|
|
3300
3314
|
};
|
|
3301
3315
|
} else {
|
|
3302
3316
|
if (S.length === 0)
|
|
3303
|
-
return this.error(b.EXPECT_DATE_TIME_SKELETON,
|
|
3317
|
+
return this.error(b.EXPECT_DATE_TIME_SKELETON, p);
|
|
3304
3318
|
var $ = S;
|
|
3305
|
-
this.locale && ($ =
|
|
3319
|
+
this.locale && ($ = Pn(S, this.locale));
|
|
3306
3320
|
var f = {
|
|
3307
3321
|
type: Z.dateTime,
|
|
3308
3322
|
pattern: $,
|
|
3309
3323
|
location: u.styleLocation,
|
|
3310
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3311
|
-
}, C = a === "date" ?
|
|
3324
|
+
parsedOptions: this.shouldParseSkeletons ? _n($) : {}
|
|
3325
|
+
}, C = a === "date" ? _.date : _.time;
|
|
3312
3326
|
return {
|
|
3313
|
-
val: { type: C, value: n, location:
|
|
3327
|
+
val: { type: C, value: n, location: p, style: f },
|
|
3314
3328
|
err: null
|
|
3315
3329
|
};
|
|
3316
3330
|
}
|
|
3317
3331
|
}
|
|
3318
3332
|
return {
|
|
3319
3333
|
val: {
|
|
3320
|
-
type: a === "number" ?
|
|
3334
|
+
type: a === "number" ? _.number : a === "date" ? _.date : _.time,
|
|
3321
3335
|
value: n,
|
|
3322
|
-
location:
|
|
3336
|
+
location: p,
|
|
3323
3337
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3324
3338
|
},
|
|
3325
3339
|
err: null
|
|
@@ -3330,7 +3344,7 @@ var Gn = (
|
|
|
3330
3344
|
case "select": {
|
|
3331
3345
|
var A = this.clonePosition();
|
|
3332
3346
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3333
|
-
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, g(A,
|
|
3347
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, g(A, v({}, A)));
|
|
3334
3348
|
this.bumpSpace();
|
|
3335
3349
|
var R = this.parseIdentifierIfPossible(), w = 0;
|
|
3336
3350
|
if (a !== "select" && R.value === "offset") {
|
|
@@ -3351,17 +3365,17 @@ var Gn = (
|
|
|
3351
3365
|
var y = g(i, this.clonePosition());
|
|
3352
3366
|
return a === "select" ? {
|
|
3353
3367
|
val: {
|
|
3354
|
-
type:
|
|
3368
|
+
type: _.select,
|
|
3355
3369
|
value: n,
|
|
3356
|
-
options:
|
|
3370
|
+
options: mt(D.val),
|
|
3357
3371
|
location: y
|
|
3358
3372
|
},
|
|
3359
3373
|
err: null
|
|
3360
3374
|
} : {
|
|
3361
3375
|
val: {
|
|
3362
|
-
type:
|
|
3376
|
+
type: _.plural,
|
|
3363
3377
|
value: n,
|
|
3364
|
-
options:
|
|
3378
|
+
options: mt(D.val),
|
|
3365
3379
|
offset: w,
|
|
3366
3380
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3367
3381
|
location: y
|
|
@@ -3412,7 +3426,7 @@ var Gn = (
|
|
|
3412
3426
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3413
3427
|
var n = [];
|
|
3414
3428
|
try {
|
|
3415
|
-
n =
|
|
3429
|
+
n = En(t);
|
|
3416
3430
|
} catch {
|
|
3417
3431
|
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3418
3432
|
}
|
|
@@ -3421,7 +3435,7 @@ var Gn = (
|
|
|
3421
3435
|
type: Z.number,
|
|
3422
3436
|
tokens: n,
|
|
3423
3437
|
location: r,
|
|
3424
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3438
|
+
parsedOptions: this.shouldParseSkeletons ? An(n) : {}
|
|
3425
3439
|
},
|
|
3426
3440
|
err: null
|
|
3427
3441
|
};
|
|
@@ -3440,20 +3454,20 @@ var Gn = (
|
|
|
3440
3454
|
if (h.has(u))
|
|
3441
3455
|
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3442
3456
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3443
|
-
var
|
|
3457
|
+
var d = this.clonePosition();
|
|
3444
3458
|
if (!this.bumpIf("{"))
|
|
3445
3459
|
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
|
|
3446
3460
|
var m = this.parseMessage(t + 1, r, n);
|
|
3447
3461
|
if (m.err)
|
|
3448
3462
|
return m;
|
|
3449
|
-
var
|
|
3450
|
-
if (
|
|
3451
|
-
return
|
|
3463
|
+
var p = this.tryParseArgumentClose(d);
|
|
3464
|
+
if (p.err)
|
|
3465
|
+
return p;
|
|
3452
3466
|
a.push([
|
|
3453
3467
|
u,
|
|
3454
3468
|
{
|
|
3455
3469
|
value: m.val,
|
|
3456
|
-
location: g(
|
|
3470
|
+
location: g(d, this.clonePosition())
|
|
3457
3471
|
}
|
|
3458
3472
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3459
3473
|
}
|
|
@@ -3469,7 +3483,7 @@ var Gn = (
|
|
|
3469
3483
|
break;
|
|
3470
3484
|
}
|
|
3471
3485
|
var h = g(i, this.clonePosition());
|
|
3472
|
-
return o ? (s *= n,
|
|
3486
|
+
return o ? (s *= n, Un(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3473
3487
|
}, e.prototype.offset = function() {
|
|
3474
3488
|
return this.position.offset;
|
|
3475
3489
|
}, e.prototype.isEOF = function() {
|
|
@@ -3484,7 +3498,7 @@ var Gn = (
|
|
|
3484
3498
|
var t = this.position.offset;
|
|
3485
3499
|
if (t >= this.message.length)
|
|
3486
3500
|
throw Error("out of bound");
|
|
3487
|
-
var r =
|
|
3501
|
+
var r = Kt(this.message, t);
|
|
3488
3502
|
if (r === void 0)
|
|
3489
3503
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3490
3504
|
return r;
|
|
@@ -3503,7 +3517,7 @@ var Gn = (
|
|
|
3503
3517
|
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);
|
|
3504
3518
|
}
|
|
3505
3519
|
}, e.prototype.bumpIf = function(t) {
|
|
3506
|
-
if (
|
|
3520
|
+
if (dt(this.message, t, this.offset())) {
|
|
3507
3521
|
for (var r = 0; r < t.length; r++)
|
|
3508
3522
|
this.bump();
|
|
3509
3523
|
return !0;
|
|
@@ -3525,7 +3539,7 @@ var Gn = (
|
|
|
3525
3539
|
break;
|
|
3526
3540
|
}
|
|
3527
3541
|
}, e.prototype.bumpSpace = function() {
|
|
3528
|
-
for (; !this.isEOF() &&
|
|
3542
|
+
for (; !this.isEOF() && tr(this.char()); )
|
|
3529
3543
|
this.bump();
|
|
3530
3544
|
}, e.prototype.peek = function() {
|
|
3531
3545
|
if (this.isEOF())
|
|
@@ -3535,44 +3549,44 @@ var Gn = (
|
|
|
3535
3549
|
}, e;
|
|
3536
3550
|
}()
|
|
3537
3551
|
);
|
|
3538
|
-
function
|
|
3552
|
+
function je(e) {
|
|
3539
3553
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3540
3554
|
}
|
|
3541
|
-
function
|
|
3542
|
-
return
|
|
3555
|
+
function jn(e) {
|
|
3556
|
+
return je(e) || e === 47;
|
|
3543
3557
|
}
|
|
3544
|
-
function
|
|
3558
|
+
function Vn(e) {
|
|
3545
3559
|
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;
|
|
3546
3560
|
}
|
|
3547
|
-
function
|
|
3561
|
+
function tr(e) {
|
|
3548
3562
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3549
3563
|
}
|
|
3550
|
-
function
|
|
3564
|
+
function Xn(e) {
|
|
3551
3565
|
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;
|
|
3552
3566
|
}
|
|
3553
|
-
function
|
|
3567
|
+
function Ve(e) {
|
|
3554
3568
|
e.forEach(function(t) {
|
|
3555
|
-
if (delete t.location,
|
|
3569
|
+
if (delete t.location, Xt(t) || Wt(t))
|
|
3556
3570
|
for (var r in t.options)
|
|
3557
|
-
delete t.options[r].location,
|
|
3571
|
+
delete t.options[r].location, Ve(t.options[r].value);
|
|
3558
3572
|
else
|
|
3559
|
-
|
|
3573
|
+
kt(t) && Zt(t.style) || (jt(t) || Vt(t)) && De(t.style) ? delete t.style.location : zt(t) && Ve(t.children);
|
|
3560
3574
|
});
|
|
3561
3575
|
}
|
|
3562
|
-
function
|
|
3563
|
-
t === void 0 && (t = {}), t =
|
|
3564
|
-
var r = new
|
|
3576
|
+
function Wn(e, t) {
|
|
3577
|
+
t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3578
|
+
var r = new kn(e, t).parse();
|
|
3565
3579
|
if (r.err) {
|
|
3566
3580
|
var n = SyntaxError(b[r.err.kind]);
|
|
3567
3581
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3568
3582
|
}
|
|
3569
|
-
return t?.captureLocation ||
|
|
3583
|
+
return t?.captureLocation || Ve(r.val), r.val;
|
|
3570
3584
|
}
|
|
3571
3585
|
var Q;
|
|
3572
3586
|
(function(e) {
|
|
3573
3587
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3574
3588
|
})(Q || (Q = {}));
|
|
3575
|
-
var
|
|
3589
|
+
var _e = (
|
|
3576
3590
|
/** @class */
|
|
3577
3591
|
function(e) {
|
|
3578
3592
|
I(t, e);
|
|
@@ -3584,7 +3598,7 @@ var xe = (
|
|
|
3584
3598
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3585
3599
|
}, t;
|
|
3586
3600
|
}(Error)
|
|
3587
|
-
),
|
|
3601
|
+
), gt = (
|
|
3588
3602
|
/** @class */
|
|
3589
3603
|
function(e) {
|
|
3590
3604
|
I(t, e);
|
|
@@ -3592,8 +3606,8 @@ var xe = (
|
|
|
3592
3606
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Q.INVALID_VALUE, o) || this;
|
|
3593
3607
|
}
|
|
3594
3608
|
return t;
|
|
3595
|
-
}(
|
|
3596
|
-
),
|
|
3609
|
+
}(_e)
|
|
3610
|
+
), zn = (
|
|
3597
3611
|
/** @class */
|
|
3598
3612
|
function(e) {
|
|
3599
3613
|
I(t, e);
|
|
@@ -3601,8 +3615,8 @@ var xe = (
|
|
|
3601
3615
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Q.INVALID_VALUE, i) || this;
|
|
3602
3616
|
}
|
|
3603
3617
|
return t;
|
|
3604
|
-
}(
|
|
3605
|
-
),
|
|
3618
|
+
}(_e)
|
|
3619
|
+
), Zn = (
|
|
3606
3620
|
/** @class */
|
|
3607
3621
|
function(e) {
|
|
3608
3622
|
I(t, e);
|
|
@@ -3610,22 +3624,22 @@ var xe = (
|
|
|
3610
3624
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Q.MISSING_VALUE, n) || this;
|
|
3611
3625
|
}
|
|
3612
3626
|
return t;
|
|
3613
|
-
}(
|
|
3627
|
+
}(_e)
|
|
3614
3628
|
), E;
|
|
3615
3629
|
(function(e) {
|
|
3616
3630
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3617
3631
|
})(E || (E = {}));
|
|
3618
|
-
function
|
|
3632
|
+
function Qn(e) {
|
|
3619
3633
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3620
3634
|
var n = t[t.length - 1];
|
|
3621
3635
|
return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
|
|
3622
3636
|
}, []);
|
|
3623
3637
|
}
|
|
3624
|
-
function
|
|
3638
|
+
function Jn(e) {
|
|
3625
3639
|
return typeof e == "function";
|
|
3626
3640
|
}
|
|
3627
|
-
function
|
|
3628
|
-
if (e.length === 1 &&
|
|
3641
|
+
function pe(e, t, r, n, i, o, s) {
|
|
3642
|
+
if (e.length === 1 && lt(e[0]))
|
|
3629
3643
|
return [
|
|
3630
3644
|
{
|
|
3631
3645
|
type: E.literal,
|
|
@@ -3634,14 +3648,14 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3634
3648
|
];
|
|
3635
3649
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3636
3650
|
var l = u[h];
|
|
3637
|
-
if (
|
|
3651
|
+
if (lt(l)) {
|
|
3638
3652
|
a.push({
|
|
3639
3653
|
type: E.literal,
|
|
3640
3654
|
value: l.value
|
|
3641
3655
|
});
|
|
3642
3656
|
continue;
|
|
3643
3657
|
}
|
|
3644
|
-
if (
|
|
3658
|
+
if (yn(l)) {
|
|
3645
3659
|
typeof o == "number" && a.push({
|
|
3646
3660
|
type: E.literal,
|
|
3647
3661
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3650,44 +3664,44 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3650
3664
|
}
|
|
3651
3665
|
var c = l.value;
|
|
3652
3666
|
if (!(i && c in i))
|
|
3653
|
-
throw new
|
|
3667
|
+
throw new Zn(c, s);
|
|
3654
3668
|
var f = i[c];
|
|
3655
|
-
if (
|
|
3669
|
+
if (gn(l)) {
|
|
3656
3670
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3657
3671
|
type: typeof f == "string" ? E.literal : E.object,
|
|
3658
3672
|
value: f
|
|
3659
3673
|
});
|
|
3660
3674
|
continue;
|
|
3661
3675
|
}
|
|
3662
|
-
if (
|
|
3663
|
-
var
|
|
3676
|
+
if (jt(l)) {
|
|
3677
|
+
var d = typeof l.style == "string" ? n.date[l.style] : De(l.style) ? l.style.parsedOptions : void 0;
|
|
3664
3678
|
a.push({
|
|
3665
3679
|
type: E.literal,
|
|
3666
|
-
value: r.getDateTimeFormat(t,
|
|
3680
|
+
value: r.getDateTimeFormat(t, d).format(f)
|
|
3667
3681
|
});
|
|
3668
3682
|
continue;
|
|
3669
3683
|
}
|
|
3670
|
-
if (
|
|
3671
|
-
var
|
|
3684
|
+
if (Vt(l)) {
|
|
3685
|
+
var d = typeof l.style == "string" ? n.time[l.style] : De(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3672
3686
|
a.push({
|
|
3673
3687
|
type: E.literal,
|
|
3674
|
-
value: r.getDateTimeFormat(t,
|
|
3688
|
+
value: r.getDateTimeFormat(t, d).format(f)
|
|
3675
3689
|
});
|
|
3676
3690
|
continue;
|
|
3677
3691
|
}
|
|
3678
|
-
if (
|
|
3679
|
-
var
|
|
3680
|
-
|
|
3692
|
+
if (kt(l)) {
|
|
3693
|
+
var d = typeof l.style == "string" ? n.number[l.style] : Zt(l.style) ? l.style.parsedOptions : void 0;
|
|
3694
|
+
d && d.scale && (f = f * (d.scale || 1)), a.push({
|
|
3681
3695
|
type: E.literal,
|
|
3682
|
-
value: r.getNumberFormat(t,
|
|
3696
|
+
value: r.getNumberFormat(t, d).format(f)
|
|
3683
3697
|
});
|
|
3684
3698
|
continue;
|
|
3685
3699
|
}
|
|
3686
|
-
if (
|
|
3687
|
-
var m = l.children,
|
|
3688
|
-
if (!
|
|
3689
|
-
throw new
|
|
3690
|
-
var $ =
|
|
3700
|
+
if (zt(l)) {
|
|
3701
|
+
var m = l.children, p = l.value, S = i[p];
|
|
3702
|
+
if (!Jn(S))
|
|
3703
|
+
throw new zn(p, "function", s);
|
|
3704
|
+
var $ = pe(m, t, r, n, i, o), C = S($.map(function(w) {
|
|
3691
3705
|
return w.value;
|
|
3692
3706
|
}));
|
|
3693
3707
|
Array.isArray(C) || (C = [C]), a.push.apply(a, C.map(function(w) {
|
|
@@ -3697,42 +3711,42 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3697
3711
|
};
|
|
3698
3712
|
}));
|
|
3699
3713
|
}
|
|
3700
|
-
if (
|
|
3714
|
+
if (Xt(l)) {
|
|
3701
3715
|
var A = l.options[f] || l.options.other;
|
|
3702
3716
|
if (!A)
|
|
3703
|
-
throw new
|
|
3704
|
-
a.push.apply(a,
|
|
3717
|
+
throw new gt(l.value, f, Object.keys(l.options), s);
|
|
3718
|
+
a.push.apply(a, pe(A.value, t, r, n, i));
|
|
3705
3719
|
continue;
|
|
3706
3720
|
}
|
|
3707
|
-
if (
|
|
3721
|
+
if (Wt(l)) {
|
|
3708
3722
|
var A = l.options["=".concat(f)];
|
|
3709
3723
|
if (!A) {
|
|
3710
3724
|
if (!Intl.PluralRules)
|
|
3711
|
-
throw new
|
|
3725
|
+
throw new _e(`Intl.PluralRules is not available in this environment.
|
|
3712
3726
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3713
3727
|
`, Q.MISSING_INTL_API, s);
|
|
3714
3728
|
var R = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3715
3729
|
A = l.options[R] || l.options.other;
|
|
3716
3730
|
}
|
|
3717
3731
|
if (!A)
|
|
3718
|
-
throw new
|
|
3719
|
-
a.push.apply(a,
|
|
3732
|
+
throw new gt(l.value, f, Object.keys(l.options), s);
|
|
3733
|
+
a.push.apply(a, pe(A.value, t, r, n, i, f - (l.offset || 0)));
|
|
3720
3734
|
continue;
|
|
3721
3735
|
}
|
|
3722
3736
|
}
|
|
3723
|
-
return
|
|
3737
|
+
return Qn(a);
|
|
3724
3738
|
}
|
|
3725
|
-
function
|
|
3726
|
-
return t ?
|
|
3727
|
-
return r[n] =
|
|
3739
|
+
function qn(e, t) {
|
|
3740
|
+
return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3741
|
+
return r[n] = v(v({}, e[n]), t[n] || {}), r;
|
|
3728
3742
|
}, {})) : e;
|
|
3729
3743
|
}
|
|
3730
|
-
function
|
|
3744
|
+
function Yn(e, t) {
|
|
3731
3745
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3732
|
-
return r[n] =
|
|
3733
|
-
},
|
|
3746
|
+
return r[n] = qn(e[n], t[n]), r;
|
|
3747
|
+
}, v({}, e)) : e;
|
|
3734
3748
|
}
|
|
3735
|
-
function
|
|
3749
|
+
function Be(e) {
|
|
3736
3750
|
return {
|
|
3737
3751
|
create: function() {
|
|
3738
3752
|
return {
|
|
@@ -3746,39 +3760,39 @@ function we(e) {
|
|
|
3746
3760
|
}
|
|
3747
3761
|
};
|
|
3748
3762
|
}
|
|
3749
|
-
function
|
|
3763
|
+
function Kn(e) {
|
|
3750
3764
|
return e === void 0 && (e = {
|
|
3751
3765
|
number: {},
|
|
3752
3766
|
dateTime: {},
|
|
3753
3767
|
pluralRules: {}
|
|
3754
3768
|
}), {
|
|
3755
|
-
getNumberFormat:
|
|
3769
|
+
getNumberFormat: Ae(function() {
|
|
3756
3770
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3757
3771
|
r[n] = arguments[n];
|
|
3758
3772
|
return new ((t = Intl.NumberFormat).bind.apply(t, W([void 0], r, !1)))();
|
|
3759
3773
|
}, {
|
|
3760
|
-
cache:
|
|
3761
|
-
strategy:
|
|
3774
|
+
cache: Be(e.number),
|
|
3775
|
+
strategy: Pe.variadic
|
|
3762
3776
|
}),
|
|
3763
|
-
getDateTimeFormat:
|
|
3777
|
+
getDateTimeFormat: Ae(function() {
|
|
3764
3778
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3765
3779
|
r[n] = arguments[n];
|
|
3766
3780
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, W([void 0], r, !1)))();
|
|
3767
3781
|
}, {
|
|
3768
|
-
cache:
|
|
3769
|
-
strategy:
|
|
3782
|
+
cache: Be(e.dateTime),
|
|
3783
|
+
strategy: Pe.variadic
|
|
3770
3784
|
}),
|
|
3771
|
-
getPluralRules:
|
|
3785
|
+
getPluralRules: Ae(function() {
|
|
3772
3786
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3773
3787
|
r[n] = arguments[n];
|
|
3774
3788
|
return new ((t = Intl.PluralRules).bind.apply(t, W([void 0], r, !1)))();
|
|
3775
3789
|
}, {
|
|
3776
|
-
cache:
|
|
3777
|
-
strategy:
|
|
3790
|
+
cache: Be(e.pluralRules),
|
|
3791
|
+
strategy: Pe.variadic
|
|
3778
3792
|
})
|
|
3779
3793
|
};
|
|
3780
3794
|
}
|
|
3781
|
-
var
|
|
3795
|
+
var ei = (
|
|
3782
3796
|
/** @class */
|
|
3783
3797
|
function() {
|
|
3784
3798
|
function e(t, r, n, i) {
|
|
@@ -3797,7 +3811,7 @@ var Yn = (
|
|
|
3797
3811
|
}, []);
|
|
3798
3812
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3799
3813
|
}, this.formatToParts = function(h) {
|
|
3800
|
-
return
|
|
3814
|
+
return pe(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
3801
3815
|
}, this.resolvedOptions = function() {
|
|
3802
3816
|
var h;
|
|
3803
3817
|
return {
|
|
@@ -3810,13 +3824,13 @@ var Yn = (
|
|
|
3810
3824
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3811
3825
|
var s = i || {};
|
|
3812
3826
|
s.formatters;
|
|
3813
|
-
var a =
|
|
3814
|
-
this.ast = e.__parse(t,
|
|
3827
|
+
var a = Ir(s, ["formatters"]);
|
|
3828
|
+
this.ast = e.__parse(t, v(v({}, a), { locale: this.resolvedLocale }));
|
|
3815
3829
|
} else
|
|
3816
3830
|
this.ast = t;
|
|
3817
3831
|
if (!Array.isArray(this.ast))
|
|
3818
3832
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3819
|
-
this.formats =
|
|
3833
|
+
this.formats = Yn(e.formats, n), this.formatters = i && i.formatters || Kn(this.formatterCache);
|
|
3820
3834
|
}
|
|
3821
3835
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3822
3836
|
get: function() {
|
|
@@ -3829,7 +3843,7 @@ var Yn = (
|
|
|
3829
3843
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3830
3844
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3831
3845
|
}
|
|
3832
|
-
}, e.__parse =
|
|
3846
|
+
}, e.__parse = Wn, e.formats = {
|
|
3833
3847
|
number: {
|
|
3834
3848
|
integer: {
|
|
3835
3849
|
maximumFractionDigits: 0
|
|
@@ -3890,7 +3904,7 @@ var Yn = (
|
|
|
3890
3904
|
}, e;
|
|
3891
3905
|
}()
|
|
3892
3906
|
);
|
|
3893
|
-
function
|
|
3907
|
+
function ti(e, t) {
|
|
3894
3908
|
if (t == null)
|
|
3895
3909
|
return;
|
|
3896
3910
|
if (t in e)
|
|
@@ -3911,92 +3925,92 @@ function Kn(e, t) {
|
|
|
3911
3925
|
n = void 0;
|
|
3912
3926
|
return n;
|
|
3913
3927
|
}
|
|
3914
|
-
const L = {},
|
|
3928
|
+
const L = {}, ri = (e, t, r) => r && (t in L || (L[t] = {}), e in L[t] || (L[t][e] = r), r), rr = (e, t) => {
|
|
3915
3929
|
if (t == null)
|
|
3916
3930
|
return;
|
|
3917
3931
|
if (t in L && e in L[t])
|
|
3918
3932
|
return L[t][e];
|
|
3919
|
-
const r =
|
|
3933
|
+
const r = xe(t);
|
|
3920
3934
|
for (let n = 0; n < r.length; n++) {
|
|
3921
|
-
const i = r[n], o =
|
|
3935
|
+
const i = r[n], o = ii(i, e);
|
|
3922
3936
|
if (o)
|
|
3923
|
-
return
|
|
3937
|
+
return ri(e, t, o);
|
|
3924
3938
|
}
|
|
3925
3939
|
};
|
|
3926
|
-
let
|
|
3927
|
-
const oe =
|
|
3928
|
-
function
|
|
3929
|
-
return
|
|
3940
|
+
let Je;
|
|
3941
|
+
const oe = ve({});
|
|
3942
|
+
function ni(e) {
|
|
3943
|
+
return Je[e] || null;
|
|
3930
3944
|
}
|
|
3931
|
-
function
|
|
3932
|
-
return e in
|
|
3945
|
+
function nr(e) {
|
|
3946
|
+
return e in Je;
|
|
3933
3947
|
}
|
|
3934
|
-
function
|
|
3935
|
-
if (!
|
|
3948
|
+
function ii(e, t) {
|
|
3949
|
+
if (!nr(e))
|
|
3936
3950
|
return null;
|
|
3937
|
-
const r =
|
|
3938
|
-
return
|
|
3951
|
+
const r = ni(e);
|
|
3952
|
+
return ti(r, t);
|
|
3939
3953
|
}
|
|
3940
|
-
function
|
|
3954
|
+
function oi(e) {
|
|
3941
3955
|
if (e == null)
|
|
3942
3956
|
return;
|
|
3943
|
-
const t =
|
|
3957
|
+
const t = xe(e);
|
|
3944
3958
|
for (let r = 0; r < t.length; r++) {
|
|
3945
3959
|
const n = t[r];
|
|
3946
|
-
if (
|
|
3960
|
+
if (nr(n))
|
|
3947
3961
|
return n;
|
|
3948
3962
|
}
|
|
3949
3963
|
}
|
|
3950
|
-
function
|
|
3951
|
-
delete L[e], oe.update((r) => (r[e] =
|
|
3964
|
+
function si(e, ...t) {
|
|
3965
|
+
delete L[e], oe.update((r) => (r[e] = ln.all([r[e] || {}, ...t]), r));
|
|
3952
3966
|
}
|
|
3953
3967
|
q(
|
|
3954
3968
|
[oe],
|
|
3955
3969
|
([e]) => Object.keys(e)
|
|
3956
3970
|
);
|
|
3957
|
-
oe.subscribe((e) =>
|
|
3958
|
-
const
|
|
3959
|
-
function
|
|
3960
|
-
|
|
3971
|
+
oe.subscribe((e) => Je = e);
|
|
3972
|
+
const de = {};
|
|
3973
|
+
function ai(e, t) {
|
|
3974
|
+
de[e].delete(t), de[e].size === 0 && delete de[e];
|
|
3961
3975
|
}
|
|
3962
|
-
function
|
|
3963
|
-
return
|
|
3976
|
+
function ir(e) {
|
|
3977
|
+
return de[e];
|
|
3964
3978
|
}
|
|
3965
|
-
function
|
|
3966
|
-
return
|
|
3967
|
-
const r =
|
|
3979
|
+
function ui(e) {
|
|
3980
|
+
return xe(e).map((t) => {
|
|
3981
|
+
const r = ir(t);
|
|
3968
3982
|
return [t, r ? [...r] : []];
|
|
3969
3983
|
}).filter(([, t]) => t.length > 0);
|
|
3970
3984
|
}
|
|
3971
|
-
function
|
|
3972
|
-
return e == null ? !1 :
|
|
3985
|
+
function Xe(e) {
|
|
3986
|
+
return e == null ? !1 : xe(e).some(
|
|
3973
3987
|
(t) => {
|
|
3974
3988
|
var r;
|
|
3975
|
-
return (r =
|
|
3989
|
+
return (r = ir(t)) == null ? void 0 : r.size;
|
|
3976
3990
|
}
|
|
3977
3991
|
);
|
|
3978
3992
|
}
|
|
3979
|
-
function
|
|
3993
|
+
function hi(e, t) {
|
|
3980
3994
|
return Promise.all(
|
|
3981
|
-
t.map((n) => (
|
|
3982
|
-
).then((n) =>
|
|
3995
|
+
t.map((n) => (ai(e, n), n().then((i) => i.default || i)))
|
|
3996
|
+
).then((n) => si(e, ...n));
|
|
3983
3997
|
}
|
|
3984
3998
|
const K = {};
|
|
3985
|
-
function
|
|
3986
|
-
if (!
|
|
3999
|
+
function or(e) {
|
|
4000
|
+
if (!Xe(e))
|
|
3987
4001
|
return e in K ? K[e] : Promise.resolve();
|
|
3988
|
-
const t =
|
|
4002
|
+
const t = ui(e);
|
|
3989
4003
|
return K[e] = Promise.all(
|
|
3990
4004
|
t.map(
|
|
3991
|
-
([r, n]) =>
|
|
4005
|
+
([r, n]) => hi(r, n)
|
|
3992
4006
|
)
|
|
3993
4007
|
).then(() => {
|
|
3994
|
-
if (
|
|
3995
|
-
return
|
|
4008
|
+
if (Xe(e))
|
|
4009
|
+
return or(e);
|
|
3996
4010
|
delete K[e];
|
|
3997
4011
|
}), K[e];
|
|
3998
4012
|
}
|
|
3999
|
-
const
|
|
4013
|
+
const li = {
|
|
4000
4014
|
number: {
|
|
4001
4015
|
scientific: { notation: "scientific" },
|
|
4002
4016
|
engineering: { notation: "engineering" },
|
|
@@ -4025,57 +4039,57 @@ const ui = {
|
|
|
4025
4039
|
timeZoneName: "short"
|
|
4026
4040
|
}
|
|
4027
4041
|
}
|
|
4028
|
-
},
|
|
4042
|
+
}, ci = {
|
|
4029
4043
|
fallbackLocale: null,
|
|
4030
4044
|
loadingDelay: 200,
|
|
4031
|
-
formats:
|
|
4045
|
+
formats: li,
|
|
4032
4046
|
warnOnMissingMessages: !0,
|
|
4033
4047
|
handleMissingMessage: void 0,
|
|
4034
4048
|
ignoreTag: !0
|
|
4035
|
-
},
|
|
4049
|
+
}, fi = ci;
|
|
4036
4050
|
function J() {
|
|
4037
|
-
return
|
|
4038
|
-
}
|
|
4039
|
-
const
|
|
4040
|
-
var
|
|
4041
|
-
for (var r in t)
|
|
4042
|
-
|
|
4043
|
-
if (
|
|
4044
|
-
for (var r of
|
|
4045
|
-
|
|
4051
|
+
return fi;
|
|
4052
|
+
}
|
|
4053
|
+
const Ne = ve(!1);
|
|
4054
|
+
var pi = Object.defineProperty, di = Object.defineProperties, mi = Object.getOwnPropertyDescriptors, yt = Object.getOwnPropertySymbols, bi = Object.prototype.hasOwnProperty, gi = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, yi = (e, t) => {
|
|
4055
|
+
for (var r in t || (t = {}))
|
|
4056
|
+
bi.call(t, r) && vt(e, r, t[r]);
|
|
4057
|
+
if (yt)
|
|
4058
|
+
for (var r of yt(t))
|
|
4059
|
+
gi.call(t, r) && vt(e, r, t[r]);
|
|
4046
4060
|
return e;
|
|
4047
|
-
},
|
|
4048
|
-
let
|
|
4049
|
-
const be =
|
|
4050
|
-
function
|
|
4061
|
+
}, vi = (e, t) => di(e, mi(t));
|
|
4062
|
+
let We;
|
|
4063
|
+
const be = ve(null);
|
|
4064
|
+
function _t(e) {
|
|
4051
4065
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4052
4066
|
}
|
|
4053
|
-
function
|
|
4054
|
-
const r =
|
|
4055
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4067
|
+
function xe(e, t = J().fallbackLocale) {
|
|
4068
|
+
const r = _t(e);
|
|
4069
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ..._t(t)])] : r;
|
|
4056
4070
|
}
|
|
4057
4071
|
function U() {
|
|
4058
|
-
return
|
|
4072
|
+
return We ?? void 0;
|
|
4059
4073
|
}
|
|
4060
4074
|
be.subscribe((e) => {
|
|
4061
|
-
|
|
4075
|
+
We = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4062
4076
|
});
|
|
4063
|
-
const
|
|
4064
|
-
if (e &&
|
|
4077
|
+
const _i = (e) => {
|
|
4078
|
+
if (e && oi(e) && Xe(e)) {
|
|
4065
4079
|
const { loadingDelay: t } = J();
|
|
4066
4080
|
let r;
|
|
4067
4081
|
return typeof window < "u" && U() != null && t ? r = window.setTimeout(
|
|
4068
|
-
() =>
|
|
4082
|
+
() => Ne.set(!0),
|
|
4069
4083
|
t
|
|
4070
|
-
) :
|
|
4084
|
+
) : Ne.set(!0), or(e).then(() => {
|
|
4071
4085
|
be.set(e);
|
|
4072
4086
|
}).finally(() => {
|
|
4073
|
-
clearTimeout(r),
|
|
4087
|
+
clearTimeout(r), Ne.set(!1);
|
|
4074
4088
|
});
|
|
4075
4089
|
}
|
|
4076
4090
|
return be.set(e);
|
|
4077
|
-
}, se =
|
|
4078
|
-
set:
|
|
4091
|
+
}, se = vi(yi({}, be), {
|
|
4092
|
+
set: _i
|
|
4079
4093
|
}), Ee = (e) => {
|
|
4080
4094
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4081
4095
|
return (n) => {
|
|
@@ -4083,20 +4097,20 @@ const yi = (e) => {
|
|
|
4083
4097
|
return i in t ? t[i] : t[i] = e(n);
|
|
4084
4098
|
};
|
|
4085
4099
|
};
|
|
4086
|
-
var
|
|
4100
|
+
var xi = Object.defineProperty, ge = Object.getOwnPropertySymbols, sr = Object.prototype.hasOwnProperty, ar = Object.prototype.propertyIsEnumerable, xt = (e, t, r) => t in e ? xi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
|
|
4087
4101
|
for (var r in t || (t = {}))
|
|
4088
|
-
|
|
4102
|
+
sr.call(t, r) && xt(e, r, t[r]);
|
|
4089
4103
|
if (ge)
|
|
4090
4104
|
for (var r of ge(t))
|
|
4091
|
-
|
|
4105
|
+
ar.call(t, r) && xt(e, r, t[r]);
|
|
4092
4106
|
return e;
|
|
4093
4107
|
}, Y = (e, t) => {
|
|
4094
4108
|
var r = {};
|
|
4095
4109
|
for (var n in e)
|
|
4096
|
-
|
|
4110
|
+
sr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4097
4111
|
if (e != null && ge)
|
|
4098
4112
|
for (var n of ge(e))
|
|
4099
|
-
t.indexOf(n) < 0 &&
|
|
4113
|
+
t.indexOf(n) < 0 && ar.call(e, n) && (r[n] = e[n]);
|
|
4100
4114
|
return r;
|
|
4101
4115
|
};
|
|
4102
4116
|
const ne = (e, t) => {
|
|
@@ -4104,21 +4118,21 @@ const ne = (e, t) => {
|
|
|
4104
4118
|
if (e in r && t in r[e])
|
|
4105
4119
|
return r[e][t];
|
|
4106
4120
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4107
|
-
},
|
|
4121
|
+
}, Ei = Ee(
|
|
4108
4122
|
(e) => {
|
|
4109
4123
|
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4110
4124
|
if (r == null)
|
|
4111
4125
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4112
4126
|
return n && (i = ne("number", n)), new Intl.NumberFormat(r, i);
|
|
4113
4127
|
}
|
|
4114
|
-
),
|
|
4128
|
+
), Si = Ee(
|
|
4115
4129
|
(e) => {
|
|
4116
4130
|
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4117
4131
|
if (r == null)
|
|
4118
4132
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4119
4133
|
return n ? i = ne("date", n) : Object.keys(i).length === 0 && (i = ne("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4120
4134
|
}
|
|
4121
|
-
),
|
|
4135
|
+
), Ti = Ee(
|
|
4122
4136
|
(e) => {
|
|
4123
4137
|
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4124
4138
|
if (r == null)
|
|
@@ -4127,33 +4141,33 @@ const ne = (e, t) => {
|
|
|
4127
4141
|
);
|
|
4128
4142
|
return n ? i = ne("time", n) : Object.keys(i).length === 0 && (i = ne("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4129
4143
|
}
|
|
4130
|
-
),
|
|
4144
|
+
), Hi = (e = {}) => {
|
|
4131
4145
|
var t = e, {
|
|
4132
4146
|
locale: r = U()
|
|
4133
4147
|
} = t, n = Y(t, [
|
|
4134
4148
|
"locale"
|
|
4135
4149
|
]);
|
|
4136
|
-
return
|
|
4137
|
-
},
|
|
4150
|
+
return Ei(qe({ locale: r }, n));
|
|
4151
|
+
}, Ai = (e = {}) => {
|
|
4138
4152
|
var t = e, {
|
|
4139
4153
|
locale: r = U()
|
|
4140
4154
|
} = t, n = Y(t, [
|
|
4141
4155
|
"locale"
|
|
4142
4156
|
]);
|
|
4143
|
-
return
|
|
4144
|
-
},
|
|
4157
|
+
return Si(qe({ locale: r }, n));
|
|
4158
|
+
}, Pi = (e = {}) => {
|
|
4145
4159
|
var t = e, {
|
|
4146
4160
|
locale: r = U()
|
|
4147
4161
|
} = t, n = Y(t, [
|
|
4148
4162
|
"locale"
|
|
4149
4163
|
]);
|
|
4150
|
-
return
|
|
4151
|
-
},
|
|
4164
|
+
return Ti(qe({ locale: r }, n));
|
|
4165
|
+
}, wi = Ee(
|
|
4152
4166
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4153
|
-
(e, t = U()) => new
|
|
4167
|
+
(e, t = U()) => new ei(e, t, J().formats, {
|
|
4154
4168
|
ignoreTag: J().ignoreTag
|
|
4155
4169
|
})
|
|
4156
|
-
),
|
|
4170
|
+
), Bi = (e, t = {}) => {
|
|
4157
4171
|
var r, n, i, o;
|
|
4158
4172
|
let s = t;
|
|
4159
4173
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4166,7 +4180,7 @@ const ne = (e, t) => {
|
|
|
4166
4180
|
throw new Error(
|
|
4167
4181
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4168
4182
|
);
|
|
4169
|
-
let l =
|
|
4183
|
+
let l = rr(e, h);
|
|
4170
4184
|
if (!l)
|
|
4171
4185
|
l = (o = (i = (n = (r = J()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4172
4186
|
else if (typeof l != "string")
|
|
@@ -4177,7 +4191,7 @@ const ne = (e, t) => {
|
|
|
4177
4191
|
return l;
|
|
4178
4192
|
let c = l;
|
|
4179
4193
|
try {
|
|
4180
|
-
c =
|
|
4194
|
+
c = wi(l, h).format(a);
|
|
4181
4195
|
} catch (f) {
|
|
4182
4196
|
f instanceof Error && console.warn(
|
|
4183
4197
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4185,21 +4199,21 @@ const ne = (e, t) => {
|
|
|
4185
4199
|
);
|
|
4186
4200
|
}
|
|
4187
4201
|
return c;
|
|
4188
|
-
},
|
|
4189
|
-
q([se, oe], () =>
|
|
4190
|
-
q([se], () => wi);
|
|
4191
|
-
q([se], () => Bi);
|
|
4202
|
+
}, Ni = (e, t) => Pi(t).format(e), Oi = (e, t) => Ai(t).format(e), Ii = (e, t) => Hi(t).format(e), Ci = (e, t = U()) => rr(e, t);
|
|
4203
|
+
q([se, oe], () => Bi);
|
|
4192
4204
|
q([se], () => Ni);
|
|
4193
|
-
q([se
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4205
|
+
q([se], () => Oi);
|
|
4206
|
+
q([se], () => Ii);
|
|
4207
|
+
q([se, oe], () => Ci);
|
|
4208
|
+
window.emWidgets = { topic: Wr };
|
|
4209
|
+
const Et = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4210
|
+
function Li(e, t) {
|
|
4197
4211
|
if (e) {
|
|
4198
4212
|
const r = document.createElement("style");
|
|
4199
4213
|
r.innerHTML = t, e.appendChild(r);
|
|
4200
4214
|
}
|
|
4201
4215
|
}
|
|
4202
|
-
function
|
|
4216
|
+
function Mi(e, t) {
|
|
4203
4217
|
const r = new URL(t);
|
|
4204
4218
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4205
4219
|
const i = document.createElement("style");
|
|
@@ -4208,7 +4222,7 @@ function Ci(e, t) {
|
|
|
4208
4222
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4209
4223
|
});
|
|
4210
4224
|
}
|
|
4211
|
-
function
|
|
4225
|
+
function $i(e, t, r) {
|
|
4212
4226
|
if (window.emMessageBus) {
|
|
4213
4227
|
const n = document.createElement("style");
|
|
4214
4228
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4216,31 +4230,31 @@ function Li(e, t, r) {
|
|
|
4216
4230
|
});
|
|
4217
4231
|
}
|
|
4218
4232
|
}
|
|
4219
|
-
function
|
|
4220
|
-
|
|
4233
|
+
function Ri(e) {
|
|
4234
|
+
cr(e, "svelte-1b8j2p", ':host{padding:0;margin:0;font-family:inherit}.PlayerAccountNotificationsContainer{padding:0 5px;display:grid;grid-gap:20px;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s;container-type:inline-size;container-name:notifications-container}.PlayerAccountNotificationBox{background:var(--emw--color-pale, var(--emw--color-gray-50, #f1f1f1));display:block;padding:20px;border-radius:var(--emw--border-radius-medium, 10px);width:100%;color:var(--emw--color-black, #000);box-sizing:border-box;text-decoration:none;word-break:break-word;word-wrap:break-word;overflow-wrap:anywhere;white-space:normal}.PlayerAccountNotificationBoxHeader{display:grid;width:100%;grid-template-areas:"nav main aside";grid-template-rows:auto;grid-template-columns:34px calc(100% - 34px);align-items:center}.PlayerAccountNotificationBoxHeader .PlayerAccountNotificationIcon{width:24px;margin-right:10px;flex:1}.PlayerAccountNotificationBoxHeader .PlayerAccountNotificationTitle{font-size:16px;flex:2}.PlayerAccountNotificationText{margin:0;font-size:14px;font-weight:300}.PlayerAccountNotificationText a{text-decoration:none;color:var(--emw--color-white, #FFFFFF)}.PlayerAccountNotificationsMobileContainer{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-gap:20px;padding:20px}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationBoxHeader{grid-template-columns:40px calc(100% - 40px)}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationTitle{font-size:14px}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationIcon{width:30px;margin-right:10px}.skeletonContainer{container-type:inline-size}.skeletonContainer .skeletonWrapper{animation:fadeIn ease 0.3s}@container (max-width: 768px){.skeletonContainer .skeletonWrapper{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-gap:20px}.skeletonContainer .skeletonWrapper .skeletonNotification{width:100%}}@container (max-width: 425px){.skeletonContainer .skeletonWrapper{display:grid;grid-template-columns:repeat(1, minmax(0, 1fr));grid-gap:20px;padding:0px 10px}.skeletonContainer .skeletonWrapper .skeletonNotification{width:100%}}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}');
|
|
4221
4235
|
}
|
|
4222
|
-
function
|
|
4236
|
+
function St(e, t, r) {
|
|
4223
4237
|
const n = e.slice();
|
|
4224
4238
|
return n[24] = t[r], n;
|
|
4225
4239
|
}
|
|
4226
|
-
function
|
|
4240
|
+
function Tt(e, t, r) {
|
|
4227
4241
|
const n = e.slice();
|
|
4228
4242
|
return n[21] = t[r], n;
|
|
4229
4243
|
}
|
|
4230
|
-
function
|
|
4244
|
+
function Ui(e) {
|
|
4231
4245
|
let t, r = me(
|
|
4232
4246
|
/*notificationsData*/
|
|
4233
4247
|
e[1]
|
|
4234
4248
|
), n = [];
|
|
4235
4249
|
for (let i = 0; i < r.length; i += 1)
|
|
4236
|
-
n[i] = St(
|
|
4250
|
+
n[i] = Ht(St(e, r, i));
|
|
4237
4251
|
return {
|
|
4238
4252
|
c() {
|
|
4239
4253
|
t = T("div");
|
|
4240
4254
|
for (let i = 0; i < n.length; i += 1)
|
|
4241
4255
|
n[i].c();
|
|
4242
|
-
|
|
4243
|
-
(e[3] ? "PlayerAccountNotificationsMobileContainer" : "")),
|
|
4256
|
+
x(t, "class", "PlayerAccountNotificationsContainer " + /*isMobile*/
|
|
4257
|
+
(e[3] ? "PlayerAccountNotificationsMobileContainer" : "")), x(t, "part", "PlayerAccountNotificationsContainer " + /*isMobile*/
|
|
4244
4258
|
(e[3] ? "PlayerAccountNotificationsMobileContainer" : ""));
|
|
4245
4259
|
},
|
|
4246
4260
|
m(i, o) {
|
|
@@ -4257,8 +4271,8 @@ function $i(e) {
|
|
|
4257
4271
|
);
|
|
4258
4272
|
let s;
|
|
4259
4273
|
for (s = 0; s < r.length; s += 1) {
|
|
4260
|
-
const a =
|
|
4261
|
-
n[s] ? n[s].p(a, o) : (n[s] =
|
|
4274
|
+
const a = St(i, r, s);
|
|
4275
|
+
n[s] ? n[s].p(a, o) : (n[s] = Ht(a), n[s].c(), n[s].m(t, null));
|
|
4262
4276
|
}
|
|
4263
4277
|
for (; s < n.length; s += 1)
|
|
4264
4278
|
n[s].d(1);
|
|
@@ -4266,20 +4280,20 @@ function $i(e) {
|
|
|
4266
4280
|
}
|
|
4267
4281
|
},
|
|
4268
4282
|
d(i) {
|
|
4269
|
-
i && O(t),
|
|
4283
|
+
i && O(t), Bt(n, i);
|
|
4270
4284
|
}
|
|
4271
4285
|
};
|
|
4272
4286
|
}
|
|
4273
|
-
function
|
|
4287
|
+
function Di(e) {
|
|
4274
4288
|
let t, r, n = me({ length: 3 }), i = [];
|
|
4275
4289
|
for (let o = 0; o < n.length; o += 1)
|
|
4276
|
-
i[o] = Tt(
|
|
4290
|
+
i[o] = At(Tt(e, n, o));
|
|
4277
4291
|
return {
|
|
4278
4292
|
c() {
|
|
4279
4293
|
t = T("div"), r = T("div");
|
|
4280
4294
|
for (let o = 0; o < i.length; o += 1)
|
|
4281
4295
|
i[o].c();
|
|
4282
|
-
|
|
4296
|
+
x(r, "class", "skeletonWrapper"), x(t, "class", "skeletonContainer");
|
|
4283
4297
|
},
|
|
4284
4298
|
m(o, s) {
|
|
4285
4299
|
M(o, t, s), P(t, r);
|
|
@@ -4292,8 +4306,8 @@ function Ri(e) {
|
|
|
4292
4306
|
n = me({ length: 3 });
|
|
4293
4307
|
let a;
|
|
4294
4308
|
for (a = 0; a < n.length; a += 1) {
|
|
4295
|
-
const h =
|
|
4296
|
-
i[a] ? i[a].p(h, s) : (i[a] =
|
|
4309
|
+
const h = Tt(o, n, a);
|
|
4310
|
+
i[a] ? i[a].p(h, s) : (i[a] = At(h), i[a].c(), i[a].m(r, null));
|
|
4297
4311
|
}
|
|
4298
4312
|
for (; a < i.length; a += 1)
|
|
4299
4313
|
i[a].d(1);
|
|
@@ -4301,43 +4315,43 @@ function Ri(e) {
|
|
|
4301
4315
|
}
|
|
4302
4316
|
},
|
|
4303
4317
|
d(o) {
|
|
4304
|
-
o && O(t),
|
|
4318
|
+
o && O(t), Bt(i, o);
|
|
4305
4319
|
}
|
|
4306
4320
|
};
|
|
4307
4321
|
}
|
|
4308
|
-
function
|
|
4322
|
+
function Ht(e) {
|
|
4309
4323
|
let t, r, n, i, o, s, a, h = (
|
|
4310
4324
|
/*notification*/
|
|
4311
4325
|
e[24].title + ""
|
|
4312
4326
|
), u, l, c, f = (
|
|
4313
4327
|
/*notification*/
|
|
4314
4328
|
e[24].description + ""
|
|
4315
|
-
),
|
|
4329
|
+
), d;
|
|
4316
4330
|
return {
|
|
4317
4331
|
c() {
|
|
4318
|
-
t = T("div"), r = T("div"), n = T("img"), s = le(), a = T("p"), u =
|
|
4319
|
-
e[24].icon) ||
|
|
4320
|
-
e[24].title),
|
|
4332
|
+
t = T("div"), r = T("div"), n = T("img"), s = le(), a = T("p"), u = Nt(h), l = le(), c = T("p"), d = le(), x(n, "class", "PlayerAccountNotificationIcon"), x(n, "width", "24px"), x(n, "height", "24px"), Ke(n.src, i = /*notification*/
|
|
4333
|
+
e[24].icon) || x(n, "src", i), x(n, "alt", o = /*notification*/
|
|
4334
|
+
e[24].title), x(a, "class", "PlayerAccountNotificationTitle"), x(r, "class", "PlayerAccountNotificationBoxHeader"), x(c, "class", "PlayerAccountNotificationText"), x(t, "class", "PlayerAccountNotificationBox"), et(
|
|
4321
4335
|
t,
|
|
4322
4336
|
"background",
|
|
4323
4337
|
/*notification*/
|
|
4324
4338
|
e[24].backgroundColor
|
|
4325
4339
|
);
|
|
4326
4340
|
},
|
|
4327
|
-
m(m,
|
|
4328
|
-
M(m, t,
|
|
4341
|
+
m(m, p) {
|
|
4342
|
+
M(m, t, p), P(t, r), P(r, n), P(r, s), P(r, a), P(a, u), P(t, l), P(t, c), c.innerHTML = f, P(t, d);
|
|
4329
4343
|
},
|
|
4330
|
-
p(m,
|
|
4331
|
-
|
|
4332
|
-
2 && !
|
|
4333
|
-
m[24].icon) &&
|
|
4344
|
+
p(m, p) {
|
|
4345
|
+
p & /*notificationsData*/
|
|
4346
|
+
2 && !Ke(n.src, i = /*notification*/
|
|
4347
|
+
m[24].icon) && x(n, "src", i), p & /*notificationsData*/
|
|
4334
4348
|
2 && o !== (o = /*notification*/
|
|
4335
|
-
m[24].title) &&
|
|
4349
|
+
m[24].title) && x(n, "alt", o), p & /*notificationsData*/
|
|
4336
4350
|
2 && h !== (h = /*notification*/
|
|
4337
|
-
m[24].title + "") &&
|
|
4351
|
+
m[24].title + "") && mr(u, h), p & /*notificationsData*/
|
|
4338
4352
|
2 && f !== (f = /*notification*/
|
|
4339
|
-
m[24].description + "") && (c.innerHTML = f),
|
|
4340
|
-
2 &&
|
|
4353
|
+
m[24].description + "") && (c.innerHTML = f), p & /*notificationsData*/
|
|
4354
|
+
2 && et(
|
|
4341
4355
|
t,
|
|
4342
4356
|
"background",
|
|
4343
4357
|
/*notification*/
|
|
@@ -4349,7 +4363,7 @@ function St(e) {
|
|
|
4349
4363
|
}
|
|
4350
4364
|
};
|
|
4351
4365
|
}
|
|
4352
|
-
function
|
|
4366
|
+
function Gi(e) {
|
|
4353
4367
|
let t;
|
|
4354
4368
|
return {
|
|
4355
4369
|
c() {
|
|
@@ -4370,7 +4384,7 @@ function Ui(e) {
|
|
|
4370
4384
|
}
|
|
4371
4385
|
};
|
|
4372
4386
|
}
|
|
4373
|
-
function
|
|
4387
|
+
function Fi(e) {
|
|
4374
4388
|
let t;
|
|
4375
4389
|
return {
|
|
4376
4390
|
c() {
|
|
@@ -4385,18 +4399,18 @@ function Di(e) {
|
|
|
4385
4399
|
}
|
|
4386
4400
|
};
|
|
4387
4401
|
}
|
|
4388
|
-
function
|
|
4402
|
+
function At(e) {
|
|
4389
4403
|
let t, r;
|
|
4390
4404
|
function n(s, a) {
|
|
4391
4405
|
return (
|
|
4392
4406
|
/*isMobile*/
|
|
4393
|
-
s[3] ?
|
|
4407
|
+
s[3] ? Gi : Fi
|
|
4394
4408
|
);
|
|
4395
4409
|
}
|
|
4396
4410
|
let o = n(e)(e);
|
|
4397
4411
|
return {
|
|
4398
4412
|
c() {
|
|
4399
|
-
t = T("div"), o.c(), r = le(),
|
|
4413
|
+
t = T("div"), o.c(), r = le(), x(t, "class", "skeletonNotification");
|
|
4400
4414
|
},
|
|
4401
4415
|
m(s, a) {
|
|
4402
4416
|
M(s, t, a), o.m(t, null), P(t, r);
|
|
@@ -4409,19 +4423,19 @@ function Tt(e) {
|
|
|
4409
4423
|
}
|
|
4410
4424
|
};
|
|
4411
4425
|
}
|
|
4412
|
-
function
|
|
4426
|
+
function ki(e) {
|
|
4413
4427
|
let t;
|
|
4414
4428
|
function r(o, s) {
|
|
4415
4429
|
if (
|
|
4416
4430
|
/*skeletonLoading*/
|
|
4417
4431
|
o[2]
|
|
4418
4432
|
)
|
|
4419
|
-
return
|
|
4433
|
+
return Di;
|
|
4420
4434
|
if (
|
|
4421
4435
|
/*notificationsData*/
|
|
4422
4436
|
o[1]?.length
|
|
4423
4437
|
)
|
|
4424
|
-
return
|
|
4438
|
+
return Ui;
|
|
4425
4439
|
}
|
|
4426
4440
|
let n = r(e), i = n && n(e);
|
|
4427
4441
|
return {
|
|
@@ -4441,19 +4455,19 @@ function Gi(e) {
|
|
|
4441
4455
|
}
|
|
4442
4456
|
};
|
|
4443
4457
|
}
|
|
4444
|
-
function
|
|
4445
|
-
let { lang: n = "" } = t, { cmsendpoint: i = "" } = t, { env: o = "" } = t, { userroles: s = "" } = t, { customnotif: a = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: u = "" } = t, { mbsource: l } = t, c, f = !0,
|
|
4458
|
+
function ji(e, t, r) {
|
|
4459
|
+
let { lang: n = "" } = t, { cmsendpoint: i = "" } = t, { env: o = "" } = t, { userroles: s = "" } = t, { customnotif: a = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: u = "" } = t, { mbsource: l } = t, c, f = !0, d = window.navigator.userAgent, m = Et(d) !== "PC", p = [], S = [], $ = A();
|
|
4446
4460
|
const C = window.matchMedia("(min-width: 768px)");
|
|
4447
4461
|
function A() {
|
|
4448
|
-
const y =
|
|
4462
|
+
const y = Et(d);
|
|
4449
4463
|
if (y)
|
|
4450
4464
|
return y === "PC" ? "dk" : "mtWeb";
|
|
4451
4465
|
}
|
|
4452
4466
|
const R = () => {
|
|
4453
4467
|
const y = new URL(`${i}/${n}/support-information`);
|
|
4454
4468
|
y.searchParams.append("env", o), y.searchParams.append("userRoles", s), y.searchParams.append("device", $), fetch(y.href).then((G) => G.json()).then((G) => {
|
|
4455
|
-
G.length && (r(1,
|
|
4456
|
-
S.length && (
|
|
4469
|
+
G.length && (r(1, p = G[0].children), p?.forEach((ur) => {
|
|
4470
|
+
S.length && (ur.backgroundColor = S[0], S.shift());
|
|
4457
4471
|
}));
|
|
4458
4472
|
}).catch((G) => {
|
|
4459
4473
|
console.error(G);
|
|
@@ -4468,10 +4482,10 @@ function Fi(e, t, r) {
|
|
|
4468
4482
|
}, w = () => {
|
|
4469
4483
|
a.replace(" ", ""), S = a.split(",");
|
|
4470
4484
|
};
|
|
4471
|
-
|
|
4485
|
+
yr(() => () => {
|
|
4472
4486
|
});
|
|
4473
4487
|
function D(y) {
|
|
4474
|
-
|
|
4488
|
+
Oe[y ? "unshift" : "push"](() => {
|
|
4475
4489
|
c = y, r(0, c);
|
|
4476
4490
|
});
|
|
4477
4491
|
}
|
|
@@ -4480,14 +4494,14 @@ function Fi(e, t, r) {
|
|
|
4480
4494
|
}, e.$$.update = () => {
|
|
4481
4495
|
e.$$.dirty & /*customnotif*/
|
|
4482
4496
|
512 && a && w(), e.$$.dirty & /*notificationsData*/
|
|
4483
|
-
2 &&
|
|
4497
|
+
2 && p && w(), e.$$.dirty & /*userroles, cmsendpoint, env, lang*/
|
|
4484
4498
|
480 && s && i && o && n && R(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4485
|
-
1025 && h && c &&
|
|
4486
|
-
2049 && u && c &&
|
|
4487
|
-
4097 && l && c &&
|
|
4499
|
+
1025 && h && c && Li(c, h), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4500
|
+
2049 && u && c && Mi(c, u), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4501
|
+
4097 && l && c && $i(c, `${l}.Style`);
|
|
4488
4502
|
}, [
|
|
4489
4503
|
c,
|
|
4490
|
-
|
|
4504
|
+
p,
|
|
4491
4505
|
f,
|
|
4492
4506
|
m,
|
|
4493
4507
|
C,
|
|
@@ -4502,14 +4516,14 @@ function Fi(e, t, r) {
|
|
|
4502
4516
|
D
|
|
4503
4517
|
];
|
|
4504
4518
|
}
|
|
4505
|
-
class
|
|
4519
|
+
class Vi extends Nr {
|
|
4506
4520
|
constructor(t) {
|
|
4507
|
-
super(),
|
|
4521
|
+
super(), wr(
|
|
4508
4522
|
this,
|
|
4509
4523
|
t,
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4524
|
+
ji,
|
|
4525
|
+
ki,
|
|
4526
|
+
wt,
|
|
4513
4527
|
{
|
|
4514
4528
|
lang: 5,
|
|
4515
4529
|
cmsendpoint: 6,
|
|
@@ -4520,7 +4534,7 @@ class ki extends Pr {
|
|
|
4520
4534
|
clientstylingurl: 11,
|
|
4521
4535
|
mbsource: 12
|
|
4522
4536
|
},
|
|
4523
|
-
|
|
4537
|
+
Ri
|
|
4524
4538
|
);
|
|
4525
4539
|
}
|
|
4526
4540
|
get lang() {
|
|
@@ -4572,7 +4586,7 @@ class ki extends Pr {
|
|
|
4572
4586
|
this.$$set({ mbsource: t }), B();
|
|
4573
4587
|
}
|
|
4574
4588
|
}
|
|
4575
|
-
|
|
4589
|
+
Br(Vi, { lang: {}, cmsendpoint: {}, env: {}, userroles: {}, customnotif: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
|
|
4576
4590
|
export {
|
|
4577
|
-
|
|
4591
|
+
Vi as P
|
|
4578
4592
|
};
|