@everymatrix/player-account-notifications 1.54.6 → 1.54.9
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-CUk5mA0f.js → PlayerAccountNotifications-BXShtGtQ.js} +444 -452
- package/components/PlayerAccountNotifications-ClLEhbgo.cjs +5 -0
- package/components/PlayerAccountNotifications-DDX0-A7Z.js +4441 -0
- package/es2015/player-account-notifications.cjs +1 -0
- package/es2015/player-account-notifications.js +16 -0
- package/esnext/player-account-notifications.js +1 -1
- package/package.json +1 -1
package/components/{PlayerAccountNotifications-CUk5mA0f.js → PlayerAccountNotifications-BXShtGtQ.js}
RENAMED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
function
|
|
1
|
+
function A() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Et(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Ze() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
9
|
function te(e) {
|
|
10
|
-
e.forEach(
|
|
10
|
+
e.forEach(Et);
|
|
11
11
|
}
|
|
12
12
|
function Ve(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function St(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
18
|
let oe;
|
|
19
|
-
function
|
|
19
|
+
function Qe(e, t) {
|
|
20
20
|
return e === t ? !0 : (oe || (oe = document.createElement("a")), oe.href = t, e === oe.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function tr(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function rr(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const n of t)
|
|
28
28
|
n(void 0);
|
|
29
|
-
return
|
|
29
|
+
return A;
|
|
30
30
|
}
|
|
31
31
|
const r = e.subscribe(...t);
|
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
@@ -34,14 +34,14 @@ function nr(e, ...t) {
|
|
|
34
34
|
function B(e, t) {
|
|
35
35
|
e.appendChild(t);
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
const n =
|
|
37
|
+
function nr(e, t, r) {
|
|
38
|
+
const n = ir(e);
|
|
39
39
|
if (!n.getElementById(t)) {
|
|
40
40
|
const i = N("style");
|
|
41
|
-
i.id = t, i.textContent = r,
|
|
41
|
+
i.id = t, i.textContent = r, or(n, i);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function ir(e) {
|
|
45
45
|
if (!e) return document;
|
|
46
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
47
47
|
return t && /** @type {ShadowRoot} */
|
|
@@ -50,46 +50,46 @@ function or(e) {
|
|
|
50
50
|
t
|
|
51
51
|
) : e.ownerDocument;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function or(e, t) {
|
|
54
54
|
return B(
|
|
55
55
|
/** @type {Document} */
|
|
56
56
|
e.head || e,
|
|
57
57
|
t
|
|
58
58
|
), t.sheet;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function de(e, t, r) {
|
|
61
61
|
e.insertBefore(t, r || null);
|
|
62
62
|
}
|
|
63
63
|
function re(e) {
|
|
64
64
|
e.parentNode && e.parentNode.removeChild(e);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function sr(e, t) {
|
|
67
67
|
for (let r = 0; r < e.length; r += 1)
|
|
68
68
|
e[r] && e[r].d(t);
|
|
69
69
|
}
|
|
70
70
|
function N(e) {
|
|
71
71
|
return document.createElement(e);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function Tt(e) {
|
|
74
74
|
return document.createTextNode(e);
|
|
75
75
|
}
|
|
76
76
|
function xe() {
|
|
77
|
-
return
|
|
77
|
+
return Tt(" ");
|
|
78
78
|
}
|
|
79
79
|
function S(e, t, r) {
|
|
80
80
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function ar(e) {
|
|
83
83
|
return Array.from(e.childNodes);
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function ur(e, t) {
|
|
86
86
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
87
87
|
t);
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function Je(e, t, r, n) {
|
|
90
90
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function hr(e) {
|
|
93
93
|
const t = {};
|
|
94
94
|
return e.childNodes.forEach(
|
|
95
95
|
/** @param {Element} node */
|
|
@@ -104,10 +104,10 @@ function Y(e) {
|
|
|
104
104
|
}
|
|
105
105
|
const F = [], Be = [];
|
|
106
106
|
let j = [];
|
|
107
|
-
const
|
|
107
|
+
const qe = [], lr = /* @__PURE__ */ Promise.resolve();
|
|
108
108
|
let we = !1;
|
|
109
|
-
function
|
|
110
|
-
we || (we = !0,
|
|
109
|
+
function cr() {
|
|
110
|
+
we || (we = !0, lr.then(w));
|
|
111
111
|
}
|
|
112
112
|
function Ne(e) {
|
|
113
113
|
j.push(e);
|
|
@@ -122,7 +122,7 @@ function w() {
|
|
|
122
122
|
try {
|
|
123
123
|
for (; D < F.length; ) {
|
|
124
124
|
const t = F[D];
|
|
125
|
-
D++, Y(t),
|
|
125
|
+
D++, Y(t), fr(t.$$);
|
|
126
126
|
}
|
|
127
127
|
} catch (t) {
|
|
128
128
|
throw F.length = 0, D = 0, t;
|
|
@@ -134,11 +134,11 @@ function w() {
|
|
|
134
134
|
}
|
|
135
135
|
j.length = 0;
|
|
136
136
|
} while (F.length);
|
|
137
|
-
for (;
|
|
138
|
-
|
|
137
|
+
for (; qe.length; )
|
|
138
|
+
qe.pop()();
|
|
139
139
|
we = !1, _e.clear(), Y(e);
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function fr(e) {
|
|
142
142
|
if (e.fragment !== null) {
|
|
143
143
|
e.update(), te(e.before_update);
|
|
144
144
|
const t = e.dirty;
|
|
@@ -149,28 +149,28 @@ function pr(e) {
|
|
|
149
149
|
const t = [], r = [];
|
|
150
150
|
j.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), j = t;
|
|
151
151
|
}
|
|
152
|
-
const
|
|
153
|
-
function
|
|
154
|
-
e && e.i && (
|
|
152
|
+
const dr = /* @__PURE__ */ new Set();
|
|
153
|
+
function mr(e, t) {
|
|
154
|
+
e && e.i && (dr.delete(e), e.i(t));
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function Ye(e) {
|
|
157
157
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function br(e, t, r) {
|
|
160
160
|
const { fragment: n, after_update: i } = e.$$;
|
|
161
161
|
n && n.m(t, r), Ne(() => {
|
|
162
|
-
const o = e.$$.on_mount.map(
|
|
162
|
+
const o = e.$$.on_mount.map(Et).filter(Ve);
|
|
163
163
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : te(o), e.$$.on_mount = [];
|
|
164
164
|
}), i.forEach(Ne);
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function gr(e, t) {
|
|
167
167
|
const r = e.$$;
|
|
168
168
|
r.fragment !== null && (pr(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
169
169
|
}
|
|
170
|
-
function
|
|
171
|
-
e.$$.dirty[0] === -1 && (F.push(e),
|
|
170
|
+
function yr(e, t) {
|
|
171
|
+
e.$$.dirty[0] === -1 && (F.push(e), cr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function vr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
174
174
|
const h = Xe;
|
|
175
175
|
Y(e);
|
|
176
176
|
const u = e.$$ = {
|
|
@@ -178,9 +178,9 @@ function xr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
178
178
|
ctx: [],
|
|
179
179
|
// state
|
|
180
180
|
props: o,
|
|
181
|
-
update:
|
|
181
|
+
update: A,
|
|
182
182
|
not_equal: i,
|
|
183
|
-
bound:
|
|
183
|
+
bound: Ze(),
|
|
184
184
|
// lifecycle
|
|
185
185
|
on_mount: [],
|
|
186
186
|
on_destroy: [],
|
|
@@ -189,23 +189,23 @@ function xr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
189
189
|
after_update: [],
|
|
190
190
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
191
191
|
// everything else
|
|
192
|
-
callbacks:
|
|
192
|
+
callbacks: Ze(),
|
|
193
193
|
dirty: a,
|
|
194
194
|
skip_bound: !1,
|
|
195
195
|
root: t.target || h.$$.root
|
|
196
196
|
};
|
|
197
197
|
s && s(u.root);
|
|
198
198
|
let l = !1;
|
|
199
|
-
if (u.ctx = r(e, t.props || {}, (c, f, ...
|
|
200
|
-
const
|
|
201
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] =
|
|
202
|
-
}), u.update(), l = !0, te(u.before_update), u.fragment = n(u.ctx), t.target) {
|
|
199
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...d) => {
|
|
200
|
+
const p = d.length ? d[0] : f;
|
|
201
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = p) && (!u.skip_bound && u.bound[c] && u.bound[c](p), l && yr(e, c)), f;
|
|
202
|
+
}) : [], u.update(), l = !0, te(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
203
203
|
if (t.hydrate) {
|
|
204
|
-
const c =
|
|
204
|
+
const c = ar(t.target);
|
|
205
205
|
u.fragment && u.fragment.l(c), c.forEach(re);
|
|
206
206
|
} else
|
|
207
207
|
u.fragment && u.fragment.c();
|
|
208
|
-
t.intro &&
|
|
208
|
+
t.intro && mr(e.$$.fragment), br(e, t.target, t.anchor), w();
|
|
209
209
|
}
|
|
210
210
|
Y(h);
|
|
211
211
|
}
|
|
@@ -259,7 +259,7 @@ typeof HTMLElement == "function" && (At = class extends HTMLElement {
|
|
|
259
259
|
* @param {HTMLElement} [anchor]
|
|
260
260
|
*/
|
|
261
261
|
m: function(h, u) {
|
|
262
|
-
|
|
262
|
+
de(h, o, u);
|
|
263
263
|
},
|
|
264
264
|
d: function(h) {
|
|
265
265
|
h && re(o);
|
|
@@ -269,7 +269,7 @@ typeof HTMLElement == "function" && (At = class extends HTMLElement {
|
|
|
269
269
|
};
|
|
270
270
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
271
271
|
return;
|
|
272
|
-
const t = {}, r =
|
|
272
|
+
const t = {}, r = hr(this);
|
|
273
273
|
for (const i of this.$$s)
|
|
274
274
|
i in r && (t[i] = [e(i)]);
|
|
275
275
|
for (const i of this.attributes) {
|
|
@@ -356,7 +356,7 @@ function ue(e, t, r, n) {
|
|
|
356
356
|
return t;
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function xr(e, t, r, n, i, o) {
|
|
360
360
|
let s = class extends At {
|
|
361
361
|
constructor() {
|
|
362
362
|
super(e, r, i), this.$$p_d = t;
|
|
@@ -385,7 +385,7 @@ function _r(e, t, r, n, i, o) {
|
|
|
385
385
|
}), e.element = /** @type {any} */
|
|
386
386
|
s, s;
|
|
387
387
|
}
|
|
388
|
-
class
|
|
388
|
+
class _r {
|
|
389
389
|
/**
|
|
390
390
|
* ### PRIVATE API
|
|
391
391
|
*
|
|
@@ -404,7 +404,7 @@ class Er {
|
|
|
404
404
|
$$set = void 0;
|
|
405
405
|
/** @returns {void} */
|
|
406
406
|
$destroy() {
|
|
407
|
-
|
|
407
|
+
gr(this, 1), this.$destroy = A;
|
|
408
408
|
}
|
|
409
409
|
/**
|
|
410
410
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -414,7 +414,7 @@ class Er {
|
|
|
414
414
|
*/
|
|
415
415
|
$on(t, r) {
|
|
416
416
|
if (!Ve(r))
|
|
417
|
-
return
|
|
417
|
+
return A;
|
|
418
418
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
419
419
|
return n.push(r), () => {
|
|
420
420
|
const i = n.indexOf(r);
|
|
@@ -426,11 +426,11 @@ class Er {
|
|
|
426
426
|
* @returns {void}
|
|
427
427
|
*/
|
|
428
428
|
$set(t) {
|
|
429
|
-
this.$$set && !
|
|
429
|
+
this.$$set && !tr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
|
-
const
|
|
433
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
432
|
+
const Er = "4";
|
|
433
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Er);
|
|
434
434
|
var Oe = function(e, t) {
|
|
435
435
|
return Oe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
436
436
|
r.__proto__ = n;
|
|
@@ -456,7 +456,7 @@ var v = function() {
|
|
|
456
456
|
return t;
|
|
457
457
|
}, v.apply(this, arguments);
|
|
458
458
|
};
|
|
459
|
-
function
|
|
459
|
+
function Sr(e, t) {
|
|
460
460
|
var r = {};
|
|
461
461
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
462
462
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -499,13 +499,13 @@ function k(e, t, r) {
|
|
|
499
499
|
function O(e) {
|
|
500
500
|
return typeof e == "function";
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function Ht(e) {
|
|
503
503
|
var t = function(n) {
|
|
504
504
|
Error.call(n), n.stack = new Error().stack;
|
|
505
505
|
}, r = e(t);
|
|
506
506
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
507
507
|
}
|
|
508
|
-
var Ee =
|
|
508
|
+
var Ee = Ht(function(e) {
|
|
509
509
|
return function(r) {
|
|
510
510
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
511
511
|
` + r.map(function(n, i) {
|
|
@@ -558,10 +558,10 @@ var me = function() {
|
|
|
558
558
|
if (c) {
|
|
559
559
|
this._finalizers = null;
|
|
560
560
|
try {
|
|
561
|
-
for (var f = Ie(c),
|
|
562
|
-
var
|
|
561
|
+
for (var f = Ie(c), d = f.next(); !d.done; d = f.next()) {
|
|
562
|
+
var p = d.value;
|
|
563
563
|
try {
|
|
564
|
-
|
|
564
|
+
Ke(p);
|
|
565
565
|
} catch (m) {
|
|
566
566
|
o = o ?? [], m instanceof Ee ? o = k(k([], Ce(o)), Ce(m.errors)) : o.push(m);
|
|
567
567
|
}
|
|
@@ -570,7 +570,7 @@ var me = function() {
|
|
|
570
570
|
n = { error: m };
|
|
571
571
|
} finally {
|
|
572
572
|
try {
|
|
573
|
-
|
|
573
|
+
d && !d.done && (i = f.return) && i.call(f);
|
|
574
574
|
} finally {
|
|
575
575
|
if (n) throw n.error;
|
|
576
576
|
}
|
|
@@ -583,7 +583,7 @@ var me = function() {
|
|
|
583
583
|
var r;
|
|
584
584
|
if (t && t !== this)
|
|
585
585
|
if (this.closed)
|
|
586
|
-
|
|
586
|
+
Ke(t);
|
|
587
587
|
else {
|
|
588
588
|
if (t instanceof e) {
|
|
589
589
|
if (t.closed || t._hasParent(this))
|
|
@@ -608,19 +608,15 @@ var me = function() {
|
|
|
608
608
|
var t = new e();
|
|
609
609
|
return t.closed = !0, t;
|
|
610
610
|
}(), e;
|
|
611
|
-
}(),
|
|
612
|
-
function
|
|
611
|
+
}(), Pt = me.EMPTY;
|
|
612
|
+
function Bt(e) {
|
|
613
613
|
return e instanceof me || e && "closed" in e && O(e.remove) && O(e.add) && O(e.unsubscribe);
|
|
614
614
|
}
|
|
615
|
-
function
|
|
615
|
+
function Ke(e) {
|
|
616
616
|
O(e) ? e() : e.unsubscribe();
|
|
617
617
|
}
|
|
618
|
-
var
|
|
619
|
-
|
|
620
|
-
onStoppedNotification: null,
|
|
621
|
-
Promise: void 0,
|
|
622
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
623
|
-
useDeprecatedNextContext: !1
|
|
618
|
+
var Tr = {
|
|
619
|
+
Promise: void 0
|
|
624
620
|
}, Ar = {
|
|
625
621
|
setTimeout: function(e, t) {
|
|
626
622
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
@@ -632,21 +628,21 @@ var Hr = {
|
|
|
632
628
|
},
|
|
633
629
|
delegate: void 0
|
|
634
630
|
};
|
|
635
|
-
function
|
|
631
|
+
function Hr(e) {
|
|
636
632
|
Ar.setTimeout(function() {
|
|
637
633
|
throw e;
|
|
638
634
|
});
|
|
639
635
|
}
|
|
640
|
-
function
|
|
636
|
+
function et() {
|
|
641
637
|
}
|
|
642
638
|
function he(e) {
|
|
643
639
|
e();
|
|
644
640
|
}
|
|
645
|
-
var
|
|
641
|
+
var wt = function(e) {
|
|
646
642
|
I(t, e);
|
|
647
643
|
function t(r) {
|
|
648
644
|
var n = e.call(this) || this;
|
|
649
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
645
|
+
return n.isStopped = !1, r ? (n.destination = r, Bt(r) && r.add(n)) : n.destination = wr, n;
|
|
650
646
|
}
|
|
651
647
|
return t.create = function(r, n, i) {
|
|
652
648
|
return new Me(r, n, i);
|
|
@@ -673,7 +669,7 @@ var Nt = function(e) {
|
|
|
673
669
|
this.unsubscribe();
|
|
674
670
|
}
|
|
675
671
|
}, t;
|
|
676
|
-
}(me),
|
|
672
|
+
}(me), Pr = function() {
|
|
677
673
|
function e(t) {
|
|
678
674
|
this.partialObserver = t;
|
|
679
675
|
}
|
|
@@ -712,35 +708,35 @@ var Nt = function(e) {
|
|
|
712
708
|
next: r ?? void 0,
|
|
713
709
|
error: n ?? void 0,
|
|
714
710
|
complete: i ?? void 0
|
|
715
|
-
} : s = r, o.destination = new
|
|
711
|
+
} : s = r, o.destination = new Pr(s), o;
|
|
716
712
|
}
|
|
717
713
|
return t;
|
|
718
|
-
}(
|
|
714
|
+
}(wt);
|
|
719
715
|
function se(e) {
|
|
720
|
-
|
|
716
|
+
Hr(e);
|
|
721
717
|
}
|
|
722
|
-
function
|
|
718
|
+
function Br(e) {
|
|
723
719
|
throw e;
|
|
724
720
|
}
|
|
725
|
-
var
|
|
721
|
+
var wr = {
|
|
726
722
|
closed: !0,
|
|
727
|
-
next:
|
|
728
|
-
error:
|
|
729
|
-
complete:
|
|
730
|
-
},
|
|
723
|
+
next: et,
|
|
724
|
+
error: Br,
|
|
725
|
+
complete: et
|
|
726
|
+
}, Nr = function() {
|
|
731
727
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
732
728
|
}();
|
|
733
|
-
function
|
|
729
|
+
function Or(e) {
|
|
734
730
|
return e;
|
|
735
731
|
}
|
|
736
|
-
function
|
|
737
|
-
return e.length === 0 ?
|
|
732
|
+
function Ir(e) {
|
|
733
|
+
return e.length === 0 ? Or : e.length === 1 ? e[0] : function(r) {
|
|
738
734
|
return e.reduce(function(n, i) {
|
|
739
735
|
return i(n);
|
|
740
736
|
}, r);
|
|
741
737
|
};
|
|
742
738
|
}
|
|
743
|
-
var
|
|
739
|
+
var tt = function() {
|
|
744
740
|
function e(t) {
|
|
745
741
|
t && (this._subscribe = t);
|
|
746
742
|
}
|
|
@@ -748,7 +744,7 @@ var rt = function() {
|
|
|
748
744
|
var r = new e();
|
|
749
745
|
return r.source = this, r.operator = t, r;
|
|
750
746
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
751
|
-
var i = this, o =
|
|
747
|
+
var i = this, o = Lr(t) ? t : new Me(t, r, n);
|
|
752
748
|
return he(function() {
|
|
753
749
|
var s = i, a = s.operator, h = s.source;
|
|
754
750
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -761,7 +757,7 @@ var rt = function() {
|
|
|
761
757
|
}
|
|
762
758
|
}, e.prototype.forEach = function(t, r) {
|
|
763
759
|
var n = this;
|
|
764
|
-
return r =
|
|
760
|
+
return r = rt(r), new r(function(i, o) {
|
|
765
761
|
var s = new Me({
|
|
766
762
|
next: function(a) {
|
|
767
763
|
try {
|
|
@@ -778,15 +774,15 @@ var rt = function() {
|
|
|
778
774
|
}, e.prototype._subscribe = function(t) {
|
|
779
775
|
var r;
|
|
780
776
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
781
|
-
}, e.prototype[
|
|
777
|
+
}, e.prototype[Nr] = function() {
|
|
782
778
|
return this;
|
|
783
779
|
}, e.prototype.pipe = function() {
|
|
784
780
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
785
781
|
t[r] = arguments[r];
|
|
786
|
-
return
|
|
782
|
+
return Ir(t)(this);
|
|
787
783
|
}, e.prototype.toPromise = function(t) {
|
|
788
784
|
var r = this;
|
|
789
|
-
return t =
|
|
785
|
+
return t = rt(t), new t(function(n, i) {
|
|
790
786
|
var o;
|
|
791
787
|
r.subscribe(function(s) {
|
|
792
788
|
return o = s;
|
|
@@ -800,32 +796,32 @@ var rt = function() {
|
|
|
800
796
|
return new e(t);
|
|
801
797
|
}, e;
|
|
802
798
|
}();
|
|
803
|
-
function
|
|
799
|
+
function rt(e) {
|
|
804
800
|
var t;
|
|
805
|
-
return (t = e ??
|
|
801
|
+
return (t = e ?? Tr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
806
802
|
}
|
|
807
|
-
function
|
|
803
|
+
function Cr(e) {
|
|
808
804
|
return e && O(e.next) && O(e.error) && O(e.complete);
|
|
809
805
|
}
|
|
810
|
-
function
|
|
811
|
-
return e && e instanceof
|
|
806
|
+
function Lr(e) {
|
|
807
|
+
return e && e instanceof wt || Cr(e) && Bt(e);
|
|
812
808
|
}
|
|
813
|
-
var
|
|
809
|
+
var Mr = Ht(function(e) {
|
|
814
810
|
return function() {
|
|
815
811
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
816
812
|
};
|
|
817
|
-
}),
|
|
813
|
+
}), Nt = function(e) {
|
|
818
814
|
I(t, e);
|
|
819
815
|
function t() {
|
|
820
816
|
var r = e.call(this) || this;
|
|
821
817
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
822
818
|
}
|
|
823
819
|
return t.prototype.lift = function(r) {
|
|
824
|
-
var n = new
|
|
820
|
+
var n = new nt(this, this);
|
|
825
821
|
return n.operator = r, n;
|
|
826
822
|
}, t.prototype._throwIfClosed = function() {
|
|
827
823
|
if (this.closed)
|
|
828
|
-
throw new
|
|
824
|
+
throw new Mr();
|
|
829
825
|
}, t.prototype.next = function(r) {
|
|
830
826
|
var n = this;
|
|
831
827
|
he(function() {
|
|
@@ -881,19 +877,19 @@ var $r = Pt(function(e) {
|
|
|
881
877
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
882
878
|
}, t.prototype._innerSubscribe = function(r) {
|
|
883
879
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
884
|
-
return o || s ?
|
|
880
|
+
return o || s ? Pt : (this.currentObservers = null, a.push(r), new me(function() {
|
|
885
881
|
n.currentObservers = null, Le(a, r);
|
|
886
882
|
}));
|
|
887
883
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
888
884
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
889
885
|
i ? r.error(o) : s && r.complete();
|
|
890
886
|
}, t.prototype.asObservable = function() {
|
|
891
|
-
var r = new
|
|
887
|
+
var r = new tt();
|
|
892
888
|
return r.source = this, r;
|
|
893
889
|
}, t.create = function(r, n) {
|
|
894
|
-
return new
|
|
890
|
+
return new nt(r, n);
|
|
895
891
|
}, t;
|
|
896
|
-
}(
|
|
892
|
+
}(tt), nt = function(e) {
|
|
897
893
|
I(t, e);
|
|
898
894
|
function t(r, n) {
|
|
899
895
|
var i = e.call(this) || this;
|
|
@@ -910,17 +906,17 @@ var $r = Pt(function(e) {
|
|
|
910
906
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
911
907
|
}, t.prototype._subscribe = function(r) {
|
|
912
908
|
var n, i;
|
|
913
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
909
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Pt;
|
|
914
910
|
}, t;
|
|
915
|
-
}(
|
|
911
|
+
}(Nt), Ot = {
|
|
916
912
|
now: function() {
|
|
917
|
-
return (
|
|
913
|
+
return (Ot.delegate || Date).now();
|
|
918
914
|
},
|
|
919
915
|
delegate: void 0
|
|
920
|
-
},
|
|
916
|
+
}, $r = function(e) {
|
|
921
917
|
I(t, e);
|
|
922
918
|
function t(r, n, i) {
|
|
923
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
919
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ot);
|
|
924
920
|
var o = e.call(this) || this;
|
|
925
921
|
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;
|
|
926
922
|
}
|
|
@@ -940,24 +936,24 @@ var $r = Pt(function(e) {
|
|
|
940
936
|
u && o.splice(0, u + 1);
|
|
941
937
|
}
|
|
942
938
|
}, t;
|
|
943
|
-
}(
|
|
944
|
-
const
|
|
945
|
-
if (
|
|
946
|
-
const r = new
|
|
947
|
-
|
|
939
|
+
}(Nt);
|
|
940
|
+
const it = [], ot = {}, Rr = (e, t = 0) => {
|
|
941
|
+
if (it.indexOf(e) == -1) {
|
|
942
|
+
const r = new $r(t);
|
|
943
|
+
ot[e] = r, it.push(e);
|
|
948
944
|
}
|
|
949
|
-
return
|
|
945
|
+
return ot[e];
|
|
950
946
|
}, G = [];
|
|
951
|
-
function
|
|
947
|
+
function Ur(e, t) {
|
|
952
948
|
return {
|
|
953
949
|
subscribe: be(e, t).subscribe
|
|
954
950
|
};
|
|
955
951
|
}
|
|
956
|
-
function be(e, t =
|
|
952
|
+
function be(e, t = A) {
|
|
957
953
|
let r;
|
|
958
954
|
const n = /* @__PURE__ */ new Set();
|
|
959
955
|
function i(a) {
|
|
960
|
-
if (
|
|
956
|
+
if (St(e, a) && (e = a, r)) {
|
|
961
957
|
const h = !G.length;
|
|
962
958
|
for (const u of n)
|
|
963
959
|
u[1](), G.push(u, e);
|
|
@@ -971,9 +967,9 @@ function be(e, t = H) {
|
|
|
971
967
|
function o(a) {
|
|
972
968
|
i(a(e));
|
|
973
969
|
}
|
|
974
|
-
function s(a, h =
|
|
970
|
+
function s(a, h = A) {
|
|
975
971
|
const u = [a, h];
|
|
976
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
972
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || A), a(e), () => {
|
|
977
973
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
978
974
|
};
|
|
979
975
|
}
|
|
@@ -984,19 +980,19 @@ function Z(e, t, r) {
|
|
|
984
980
|
if (!i.every(Boolean))
|
|
985
981
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
986
982
|
const o = t.length < 2;
|
|
987
|
-
return
|
|
983
|
+
return Ur(r, (s, a) => {
|
|
988
984
|
let h = !1;
|
|
989
985
|
const u = [];
|
|
990
|
-
let l = 0, c =
|
|
986
|
+
let l = 0, c = A;
|
|
991
987
|
const f = () => {
|
|
992
988
|
if (l)
|
|
993
989
|
return;
|
|
994
990
|
c();
|
|
995
|
-
const
|
|
996
|
-
o ? s(
|
|
997
|
-
},
|
|
998
|
-
(
|
|
999
|
-
|
|
991
|
+
const p = t(n ? u[0] : u, s, a);
|
|
992
|
+
o ? s(p) : c = Ve(p) ? p : A;
|
|
993
|
+
}, d = i.map(
|
|
994
|
+
(p, m) => rr(
|
|
995
|
+
p,
|
|
1000
996
|
(T) => {
|
|
1001
997
|
u[m] = T, l &= ~(1 << m), h && f();
|
|
1002
998
|
},
|
|
@@ -1006,74 +1002,74 @@ function Z(e, t, r) {
|
|
|
1006
1002
|
)
|
|
1007
1003
|
);
|
|
1008
1004
|
return h = !0, f(), function() {
|
|
1009
|
-
te(
|
|
1005
|
+
te(d), c(), h = !1;
|
|
1010
1006
|
};
|
|
1011
1007
|
});
|
|
1012
1008
|
}
|
|
1013
|
-
function
|
|
1014
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1009
|
+
function Dr(e) {
|
|
1010
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1015
1011
|
}
|
|
1016
|
-
var
|
|
1017
|
-
return
|
|
1012
|
+
var Gr = function(t) {
|
|
1013
|
+
return Fr(t) && !jr(t);
|
|
1018
1014
|
};
|
|
1019
|
-
function
|
|
1015
|
+
function Fr(e) {
|
|
1020
1016
|
return !!e && typeof e == "object";
|
|
1021
1017
|
}
|
|
1022
|
-
function
|
|
1018
|
+
function jr(e) {
|
|
1023
1019
|
var t = Object.prototype.toString.call(e);
|
|
1024
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1020
|
+
return t === "[object RegExp]" || t === "[object Date]" || Xr(e);
|
|
1025
1021
|
}
|
|
1026
|
-
var
|
|
1027
|
-
function
|
|
1028
|
-
return e.$$typeof ===
|
|
1022
|
+
var kr = typeof Symbol == "function" && Symbol.for, Vr = kr ? Symbol.for("react.element") : 60103;
|
|
1023
|
+
function Xr(e) {
|
|
1024
|
+
return e.$$typeof === Vr;
|
|
1029
1025
|
}
|
|
1030
|
-
function
|
|
1026
|
+
function Wr(e) {
|
|
1031
1027
|
return Array.isArray(e) ? [] : {};
|
|
1032
1028
|
}
|
|
1033
1029
|
function K(e, t) {
|
|
1034
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? V(
|
|
1030
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? V(Wr(e), e, t) : e;
|
|
1035
1031
|
}
|
|
1036
|
-
function
|
|
1032
|
+
function zr(e, t, r) {
|
|
1037
1033
|
return e.concat(t).map(function(n) {
|
|
1038
1034
|
return K(n, r);
|
|
1039
1035
|
});
|
|
1040
1036
|
}
|
|
1041
|
-
function
|
|
1037
|
+
function Zr(e, t) {
|
|
1042
1038
|
if (!t.customMerge)
|
|
1043
1039
|
return V;
|
|
1044
1040
|
var r = t.customMerge(e);
|
|
1045
1041
|
return typeof r == "function" ? r : V;
|
|
1046
1042
|
}
|
|
1047
|
-
function
|
|
1043
|
+
function Qr(e) {
|
|
1048
1044
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1049
1045
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1050
1046
|
}) : [];
|
|
1051
1047
|
}
|
|
1052
|
-
function
|
|
1053
|
-
return Object.keys(e).concat(
|
|
1048
|
+
function st(e) {
|
|
1049
|
+
return Object.keys(e).concat(Qr(e));
|
|
1054
1050
|
}
|
|
1055
|
-
function
|
|
1051
|
+
function It(e, t) {
|
|
1056
1052
|
try {
|
|
1057
1053
|
return t in e;
|
|
1058
1054
|
} catch {
|
|
1059
1055
|
return !1;
|
|
1060
1056
|
}
|
|
1061
1057
|
}
|
|
1062
|
-
function
|
|
1063
|
-
return
|
|
1058
|
+
function Jr(e, t) {
|
|
1059
|
+
return It(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1064
1060
|
}
|
|
1065
|
-
function
|
|
1061
|
+
function qr(e, t, r) {
|
|
1066
1062
|
var n = {};
|
|
1067
|
-
return r.isMergeableObject(e) &&
|
|
1063
|
+
return r.isMergeableObject(e) && st(e).forEach(function(i) {
|
|
1068
1064
|
n[i] = K(e[i], r);
|
|
1069
|
-
}),
|
|
1070
|
-
|
|
1065
|
+
}), st(t).forEach(function(i) {
|
|
1066
|
+
Jr(e, i) || (It(e, i) && r.isMergeableObject(t[i]) ? n[i] = Zr(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
|
|
1071
1067
|
}), n;
|
|
1072
1068
|
}
|
|
1073
1069
|
function V(e, t, r) {
|
|
1074
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1070
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || zr, r.isMergeableObject = r.isMergeableObject || Gr, r.cloneUnlessOtherwiseSpecified = K;
|
|
1075
1071
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1076
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1072
|
+
return o ? n ? r.arrayMerge(e, t, r) : qr(e, t, r) : K(t, r);
|
|
1077
1073
|
}
|
|
1078
1074
|
V.all = function(t, r) {
|
|
1079
1075
|
if (!Array.isArray(t))
|
|
@@ -1082,42 +1078,39 @@ V.all = function(t, r) {
|
|
|
1082
1078
|
return V(n, i, r);
|
|
1083
1079
|
}, {});
|
|
1084
1080
|
};
|
|
1085
|
-
var
|
|
1086
|
-
const
|
|
1081
|
+
var Yr = V, Kr = Yr;
|
|
1082
|
+
const en = /* @__PURE__ */ Dr(Kr);
|
|
1087
1083
|
function Se(e, t) {
|
|
1088
|
-
var r = t && t.cache ? t.cache :
|
|
1084
|
+
var r = t && t.cache ? t.cache : un, n = t && t.serializer ? t.serializer : sn, i = t && t.strategy ? t.strategy : nn;
|
|
1089
1085
|
return i(e, {
|
|
1090
1086
|
cache: r,
|
|
1091
1087
|
serializer: n
|
|
1092
1088
|
});
|
|
1093
1089
|
}
|
|
1094
|
-
function
|
|
1090
|
+
function tn(e) {
|
|
1095
1091
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1096
1092
|
}
|
|
1097
|
-
function
|
|
1098
|
-
var i =
|
|
1093
|
+
function rn(e, t, r, n) {
|
|
1094
|
+
var i = tn(n) ? n : r(n), o = t.get(i);
|
|
1099
1095
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1100
1096
|
}
|
|
1101
|
-
function
|
|
1097
|
+
function Ct(e, t, r) {
|
|
1102
1098
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1103
1099
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1104
1100
|
}
|
|
1105
|
-
function
|
|
1101
|
+
function Lt(e, t, r, n, i) {
|
|
1106
1102
|
return r.bind(t, e, n, i);
|
|
1107
1103
|
}
|
|
1108
1104
|
function nn(e, t) {
|
|
1109
|
-
var r = e.length === 1 ?
|
|
1110
|
-
return
|
|
1105
|
+
var r = e.length === 1 ? rn : Ct;
|
|
1106
|
+
return Lt(e, this, r, t.cache.create(), t.serializer);
|
|
1111
1107
|
}
|
|
1112
1108
|
function on(e, t) {
|
|
1113
|
-
return
|
|
1114
|
-
}
|
|
1115
|
-
function sn(e, t) {
|
|
1116
|
-
return We(e, this, Lt, t.cache.create(), t.serializer);
|
|
1109
|
+
return Lt(e, this, Ct, t.cache.create(), t.serializer);
|
|
1117
1110
|
}
|
|
1118
|
-
var
|
|
1111
|
+
var sn = function() {
|
|
1119
1112
|
return JSON.stringify(arguments);
|
|
1120
|
-
},
|
|
1113
|
+
}, an = (
|
|
1121
1114
|
/** @class */
|
|
1122
1115
|
function() {
|
|
1123
1116
|
function e() {
|
|
@@ -1129,13 +1122,12 @@ var an = function() {
|
|
|
1129
1122
|
this.cache[t] = r;
|
|
1130
1123
|
}, e;
|
|
1131
1124
|
}()
|
|
1132
|
-
),
|
|
1125
|
+
), un = {
|
|
1133
1126
|
create: function() {
|
|
1134
|
-
return new
|
|
1127
|
+
return new an();
|
|
1135
1128
|
}
|
|
1136
1129
|
}, Te = {
|
|
1137
|
-
variadic: on
|
|
1138
|
-
monadic: sn
|
|
1130
|
+
variadic: on
|
|
1139
1131
|
}, g;
|
|
1140
1132
|
(function(e) {
|
|
1141
1133
|
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";
|
|
@@ -1148,43 +1140,43 @@ var X;
|
|
|
1148
1140
|
(function(e) {
|
|
1149
1141
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1150
1142
|
})(X || (X = {}));
|
|
1151
|
-
function
|
|
1143
|
+
function at(e) {
|
|
1152
1144
|
return e.type === x.literal;
|
|
1153
1145
|
}
|
|
1154
|
-
function
|
|
1146
|
+
function hn(e) {
|
|
1155
1147
|
return e.type === x.argument;
|
|
1156
1148
|
}
|
|
1157
|
-
function
|
|
1149
|
+
function Mt(e) {
|
|
1158
1150
|
return e.type === x.number;
|
|
1159
1151
|
}
|
|
1160
|
-
function
|
|
1152
|
+
function $t(e) {
|
|
1161
1153
|
return e.type === x.date;
|
|
1162
1154
|
}
|
|
1163
|
-
function
|
|
1155
|
+
function Rt(e) {
|
|
1164
1156
|
return e.type === x.time;
|
|
1165
1157
|
}
|
|
1166
|
-
function
|
|
1158
|
+
function Ut(e) {
|
|
1167
1159
|
return e.type === x.select;
|
|
1168
1160
|
}
|
|
1169
|
-
function
|
|
1161
|
+
function Dt(e) {
|
|
1170
1162
|
return e.type === x.plural;
|
|
1171
1163
|
}
|
|
1172
|
-
function
|
|
1164
|
+
function ln(e) {
|
|
1173
1165
|
return e.type === x.pound;
|
|
1174
1166
|
}
|
|
1175
|
-
function
|
|
1167
|
+
function Gt(e) {
|
|
1176
1168
|
return e.type === x.tag;
|
|
1177
1169
|
}
|
|
1178
|
-
function
|
|
1170
|
+
function Ft(e) {
|
|
1179
1171
|
return !!(e && typeof e == "object" && e.type === X.number);
|
|
1180
1172
|
}
|
|
1181
1173
|
function $e(e) {
|
|
1182
1174
|
return !!(e && typeof e == "object" && e.type === X.dateTime);
|
|
1183
1175
|
}
|
|
1184
|
-
var
|
|
1185
|
-
function
|
|
1176
|
+
var jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, cn = /(?:[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;
|
|
1177
|
+
function fn(e) {
|
|
1186
1178
|
var t = {};
|
|
1187
|
-
return e.replace(
|
|
1179
|
+
return e.replace(cn, function(r) {
|
|
1188
1180
|
var n = r.length;
|
|
1189
1181
|
switch (r[0]) {
|
|
1190
1182
|
case "G":
|
|
@@ -1274,7 +1266,7 @@ function dn(e) {
|
|
|
1274
1266
|
}), t;
|
|
1275
1267
|
}
|
|
1276
1268
|
var pn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1277
|
-
function
|
|
1269
|
+
function dn(e) {
|
|
1278
1270
|
if (e.length === 0)
|
|
1279
1271
|
throw new Error("Number skeleton cannot be empty");
|
|
1280
1272
|
for (var t = e.split(pn).filter(function(f) {
|
|
@@ -1292,17 +1284,17 @@ function mn(e) {
|
|
|
1292
1284
|
}
|
|
1293
1285
|
return r;
|
|
1294
1286
|
}
|
|
1295
|
-
function
|
|
1287
|
+
function mn(e) {
|
|
1296
1288
|
return e.replace(/^(.*?)-/, "");
|
|
1297
1289
|
}
|
|
1298
|
-
var
|
|
1299
|
-
function
|
|
1290
|
+
var ut = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, kt = /^(@+)?(\+|#+)?[rs]?$/g, bn = /(\*)(0+)|(#+)(0+)|(0+)/g, Vt = /^(0+)$/;
|
|
1291
|
+
function ht(e) {
|
|
1300
1292
|
var t = {};
|
|
1301
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1293
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(kt, function(r, n, i) {
|
|
1302
1294
|
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)), "";
|
|
1303
1295
|
}), t;
|
|
1304
1296
|
}
|
|
1305
|
-
function
|
|
1297
|
+
function Xt(e) {
|
|
1306
1298
|
switch (e) {
|
|
1307
1299
|
case "sign-auto":
|
|
1308
1300
|
return {
|
|
@@ -1342,7 +1334,7 @@ function Wt(e) {
|
|
|
1342
1334
|
};
|
|
1343
1335
|
}
|
|
1344
1336
|
}
|
|
1345
|
-
function
|
|
1337
|
+
function gn(e) {
|
|
1346
1338
|
var t;
|
|
1347
1339
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1348
1340
|
notation: "engineering"
|
|
@@ -1350,17 +1342,17 @@ function yn(e) {
|
|
|
1350
1342
|
notation: "scientific"
|
|
1351
1343
|
}, e = e.slice(1)), t) {
|
|
1352
1344
|
var r = e.slice(0, 2);
|
|
1353
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1345
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Vt.test(e))
|
|
1354
1346
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1355
1347
|
t.minimumIntegerDigits = e.length;
|
|
1356
1348
|
}
|
|
1357
1349
|
return t;
|
|
1358
1350
|
}
|
|
1359
|
-
function
|
|
1360
|
-
var t = {}, r =
|
|
1351
|
+
function lt(e) {
|
|
1352
|
+
var t = {}, r = Xt(e);
|
|
1361
1353
|
return r || t;
|
|
1362
1354
|
}
|
|
1363
|
-
function
|
|
1355
|
+
function yn(e) {
|
|
1364
1356
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1365
1357
|
var i = n[r];
|
|
1366
1358
|
switch (i.stem) {
|
|
@@ -1384,7 +1376,7 @@ function vn(e) {
|
|
|
1384
1376
|
continue;
|
|
1385
1377
|
case "measure-unit":
|
|
1386
1378
|
case "unit":
|
|
1387
|
-
t.style = "unit", t.unit =
|
|
1379
|
+
t.style = "unit", t.unit = mn(i.options[0]);
|
|
1388
1380
|
continue;
|
|
1389
1381
|
case "compact-short":
|
|
1390
1382
|
case "K":
|
|
@@ -1396,12 +1388,12 @@ function vn(e) {
|
|
|
1396
1388
|
continue;
|
|
1397
1389
|
case "scientific":
|
|
1398
1390
|
t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1399
|
-
return v(v({}, h),
|
|
1391
|
+
return v(v({}, h), lt(u));
|
|
1400
1392
|
}, {}));
|
|
1401
1393
|
continue;
|
|
1402
1394
|
case "engineering":
|
|
1403
1395
|
t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1404
|
-
return v(v({}, h),
|
|
1396
|
+
return v(v({}, h), lt(u));
|
|
1405
1397
|
}, {}));
|
|
1406
1398
|
continue;
|
|
1407
1399
|
case "notation-simple":
|
|
@@ -1446,40 +1438,40 @@ function vn(e) {
|
|
|
1446
1438
|
case "integer-width":
|
|
1447
1439
|
if (i.options.length > 1)
|
|
1448
1440
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1449
|
-
i.options[0].replace(
|
|
1441
|
+
i.options[0].replace(bn, function(h, u, l, c, f, d) {
|
|
1450
1442
|
if (u)
|
|
1451
1443
|
t.minimumIntegerDigits = l.length;
|
|
1452
1444
|
else {
|
|
1453
1445
|
if (c && f)
|
|
1454
1446
|
throw new Error("We currently do not support maximum integer digits");
|
|
1455
|
-
if (
|
|
1447
|
+
if (d)
|
|
1456
1448
|
throw new Error("We currently do not support exact integer digits");
|
|
1457
1449
|
}
|
|
1458
1450
|
return "";
|
|
1459
1451
|
});
|
|
1460
1452
|
continue;
|
|
1461
1453
|
}
|
|
1462
|
-
if (
|
|
1454
|
+
if (Vt.test(i.stem)) {
|
|
1463
1455
|
t.minimumIntegerDigits = i.stem.length;
|
|
1464
1456
|
continue;
|
|
1465
1457
|
}
|
|
1466
|
-
if (
|
|
1458
|
+
if (ut.test(i.stem)) {
|
|
1467
1459
|
if (i.options.length > 1)
|
|
1468
1460
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1469
|
-
i.stem.replace(
|
|
1470
|
-
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f &&
|
|
1461
|
+
i.stem.replace(ut, function(h, u, l, c, f, d) {
|
|
1462
|
+
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), "";
|
|
1471
1463
|
});
|
|
1472
1464
|
var o = i.options[0];
|
|
1473
|
-
o === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = v(v({}, t),
|
|
1465
|
+
o === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = v(v({}, t), ht(o)));
|
|
1474
1466
|
continue;
|
|
1475
1467
|
}
|
|
1476
|
-
if (
|
|
1477
|
-
t = v(v({}, t),
|
|
1468
|
+
if (kt.test(i.stem)) {
|
|
1469
|
+
t = v(v({}, t), ht(i.stem));
|
|
1478
1470
|
continue;
|
|
1479
1471
|
}
|
|
1480
|
-
var s =
|
|
1472
|
+
var s = Xt(i.stem);
|
|
1481
1473
|
s && (t = v(v({}, t), s));
|
|
1482
|
-
var a =
|
|
1474
|
+
var a = gn(i.stem);
|
|
1483
1475
|
a && (t = v(v({}, t), a));
|
|
1484
1476
|
}
|
|
1485
1477
|
return t;
|
|
@@ -2899,13 +2891,13 @@ var ae = {
|
|
|
2899
2891
|
"h"
|
|
2900
2892
|
]
|
|
2901
2893
|
};
|
|
2902
|
-
function
|
|
2894
|
+
function vn(e, t) {
|
|
2903
2895
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2904
2896
|
var i = e.charAt(n);
|
|
2905
2897
|
if (i === "j") {
|
|
2906
2898
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2907
2899
|
o++, n++;
|
|
2908
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2900
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = xn(t);
|
|
2909
2901
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2910
2902
|
r += h;
|
|
2911
2903
|
for (; s-- > 0; )
|
|
@@ -2914,7 +2906,7 @@ function xn(e, t) {
|
|
|
2914
2906
|
}
|
|
2915
2907
|
return r;
|
|
2916
2908
|
}
|
|
2917
|
-
function
|
|
2909
|
+
function xn(e) {
|
|
2918
2910
|
var t = e.hourCycle;
|
|
2919
2911
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2920
2912
|
e.hourCycles && // @ts-ignore
|
|
@@ -2936,20 +2928,20 @@ function _n(e) {
|
|
|
2936
2928
|
var i = ae[n || ""] || ae[r || ""] || ae["".concat(r, "-001")] || ae["001"];
|
|
2937
2929
|
return i[0];
|
|
2938
2930
|
}
|
|
2939
|
-
var
|
|
2931
|
+
var Ae, _n = new RegExp("^".concat(jt.source, "*")), En = new RegExp("".concat(jt.source, "*$"));
|
|
2940
2932
|
function y(e, t) {
|
|
2941
2933
|
return { start: e, end: t };
|
|
2942
2934
|
}
|
|
2943
|
-
var
|
|
2935
|
+
var Sn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Tn = !!String.fromCodePoint, An = !!Object.fromEntries, Hn = !!String.prototype.codePointAt, Pn = !!String.prototype.trimStart, Bn = !!String.prototype.trimEnd, wn = !!Number.isSafeInteger, Nn = wn ? Number.isSafeInteger : function(e) {
|
|
2944
2936
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2945
2937
|
}, Re = !0;
|
|
2946
2938
|
try {
|
|
2947
|
-
var
|
|
2948
|
-
Re = ((
|
|
2939
|
+
var On = zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2940
|
+
Re = ((Ae = On.exec("a")) === null || Ae === void 0 ? void 0 : Ae[0]) === "a";
|
|
2949
2941
|
} catch {
|
|
2950
2942
|
Re = !1;
|
|
2951
2943
|
}
|
|
2952
|
-
var
|
|
2944
|
+
var ct = Sn ? (
|
|
2953
2945
|
// Native
|
|
2954
2946
|
function(t, r, n) {
|
|
2955
2947
|
return t.startsWith(r, n);
|
|
@@ -2959,7 +2951,7 @@ var ft = Tn ? (
|
|
|
2959
2951
|
function(t, r, n) {
|
|
2960
2952
|
return t.slice(n, n + r.length) === r;
|
|
2961
2953
|
}
|
|
2962
|
-
), Ue =
|
|
2954
|
+
), Ue = Tn ? String.fromCodePoint : (
|
|
2963
2955
|
// IE11
|
|
2964
2956
|
function() {
|
|
2965
2957
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2971,7 +2963,7 @@ var ft = Tn ? (
|
|
|
2971
2963
|
}
|
|
2972
2964
|
return n;
|
|
2973
2965
|
}
|
|
2974
|
-
),
|
|
2966
|
+
), ft = (
|
|
2975
2967
|
// native
|
|
2976
2968
|
An ? Object.fromEntries : (
|
|
2977
2969
|
// Ponyfill
|
|
@@ -2983,7 +2975,7 @@ var ft = Tn ? (
|
|
|
2983
2975
|
return r;
|
|
2984
2976
|
}
|
|
2985
2977
|
)
|
|
2986
|
-
),
|
|
2978
|
+
), Wt = Hn ? (
|
|
2987
2979
|
// Native
|
|
2988
2980
|
function(t, r) {
|
|
2989
2981
|
return t.codePointAt(r);
|
|
@@ -2997,7 +2989,7 @@ var ft = Tn ? (
|
|
|
2997
2989
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2998
2990
|
}
|
|
2999
2991
|
}
|
|
3000
|
-
),
|
|
2992
|
+
), In = Pn ? (
|
|
3001
2993
|
// Native
|
|
3002
2994
|
function(t) {
|
|
3003
2995
|
return t.trimStart();
|
|
@@ -3005,9 +2997,9 @@ var ft = Tn ? (
|
|
|
3005
2997
|
) : (
|
|
3006
2998
|
// Ponyfill
|
|
3007
2999
|
function(t) {
|
|
3008
|
-
return t.replace(
|
|
3000
|
+
return t.replace(_n, "");
|
|
3009
3001
|
}
|
|
3010
|
-
),
|
|
3002
|
+
), Cn = Bn ? (
|
|
3011
3003
|
// Native
|
|
3012
3004
|
function(t) {
|
|
3013
3005
|
return t.trimEnd();
|
|
@@ -3015,15 +3007,15 @@ var ft = Tn ? (
|
|
|
3015
3007
|
) : (
|
|
3016
3008
|
// Ponyfill
|
|
3017
3009
|
function(t) {
|
|
3018
|
-
return t.replace(
|
|
3010
|
+
return t.replace(En, "");
|
|
3019
3011
|
}
|
|
3020
3012
|
);
|
|
3021
|
-
function
|
|
3013
|
+
function zt(e, t) {
|
|
3022
3014
|
return new RegExp(e, t);
|
|
3023
3015
|
}
|
|
3024
3016
|
var De;
|
|
3025
3017
|
if (Re) {
|
|
3026
|
-
var pt =
|
|
3018
|
+
var pt = zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3027
3019
|
De = function(t, r) {
|
|
3028
3020
|
var n;
|
|
3029
3021
|
pt.lastIndex = r;
|
|
@@ -3033,14 +3025,14 @@ if (Re) {
|
|
|
3033
3025
|
} else
|
|
3034
3026
|
De = function(t, r) {
|
|
3035
3027
|
for (var n = []; ; ) {
|
|
3036
|
-
var i =
|
|
3037
|
-
if (i === void 0 ||
|
|
3028
|
+
var i = Wt(t, r);
|
|
3029
|
+
if (i === void 0 || Zt(i) || Rn(i))
|
|
3038
3030
|
break;
|
|
3039
3031
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3040
3032
|
}
|
|
3041
3033
|
return Ue.apply(void 0, n);
|
|
3042
3034
|
};
|
|
3043
|
-
var
|
|
3035
|
+
var Ln = (
|
|
3044
3036
|
/** @class */
|
|
3045
3037
|
function() {
|
|
3046
3038
|
function e(t, r) {
|
|
@@ -3122,7 +3114,7 @@ var Mn = (
|
|
|
3122
3114
|
return this.error(g.INVALID_TAG, y(n, this.clonePosition()));
|
|
3123
3115
|
}, e.prototype.parseTagName = function() {
|
|
3124
3116
|
var t = this.offset();
|
|
3125
|
-
for (this.bump(); !this.isEOF() &&
|
|
3117
|
+
for (this.bump(); !this.isEOF() && $n(this.char()); )
|
|
3126
3118
|
this.bump();
|
|
3127
3119
|
return this.message.slice(t, this.offset());
|
|
3128
3120
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3151,7 +3143,7 @@ var Mn = (
|
|
|
3151
3143
|
};
|
|
3152
3144
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3153
3145
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3154
|
-
|
|
3146
|
+
!Mn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3155
3147
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3156
3148
|
if (this.isEOF() || this.char() !== 39)
|
|
3157
3149
|
return null;
|
|
@@ -3238,18 +3230,18 @@ var Mn = (
|
|
|
3238
3230
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3239
3231
|
if (c.err)
|
|
3240
3232
|
return c;
|
|
3241
|
-
var f =
|
|
3233
|
+
var f = Cn(c.val);
|
|
3242
3234
|
if (f.length === 0)
|
|
3243
3235
|
return this.error(g.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
|
3244
|
-
var
|
|
3245
|
-
u = { style: f, styleLocation:
|
|
3236
|
+
var d = y(l, this.clonePosition());
|
|
3237
|
+
u = { style: f, styleLocation: d };
|
|
3246
3238
|
}
|
|
3247
|
-
var
|
|
3248
|
-
if (
|
|
3249
|
-
return
|
|
3239
|
+
var p = this.tryParseArgumentClose(i);
|
|
3240
|
+
if (p.err)
|
|
3241
|
+
return p;
|
|
3250
3242
|
var m = y(i, this.clonePosition());
|
|
3251
|
-
if (u &&
|
|
3252
|
-
var T =
|
|
3243
|
+
if (u && ct(u?.style, "::", 0)) {
|
|
3244
|
+
var T = In(u.style.slice(2));
|
|
3253
3245
|
if (a === "number") {
|
|
3254
3246
|
var c = this.parseNumberSkeletonFromString(T, u.styleLocation);
|
|
3255
3247
|
return c.err ? c : {
|
|
@@ -3260,12 +3252,12 @@ var Mn = (
|
|
|
3260
3252
|
if (T.length === 0)
|
|
3261
3253
|
return this.error(g.EXPECT_DATE_TIME_SKELETON, m);
|
|
3262
3254
|
var M = T;
|
|
3263
|
-
this.locale && (M =
|
|
3255
|
+
this.locale && (M = vn(T, this.locale));
|
|
3264
3256
|
var f = {
|
|
3265
3257
|
type: X.dateTime,
|
|
3266
3258
|
pattern: M,
|
|
3267
3259
|
location: u.styleLocation,
|
|
3268
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3260
|
+
parsedOptions: this.shouldParseSkeletons ? fn(M) : {}
|
|
3269
3261
|
}, C = a === "date" ? x.date : x.time;
|
|
3270
3262
|
return {
|
|
3271
3263
|
val: { type: C, value: n, location: m, style: f },
|
|
@@ -3290,7 +3282,7 @@ var Mn = (
|
|
|
3290
3282
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3291
3283
|
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, y(E, v({}, E)));
|
|
3292
3284
|
this.bumpSpace();
|
|
3293
|
-
var $ = this.parseIdentifierIfPossible(),
|
|
3285
|
+
var $ = this.parseIdentifierIfPossible(), H = 0;
|
|
3294
3286
|
if (a !== "select" && $.value === "offset") {
|
|
3295
3287
|
if (!this.bumpIf(":"))
|
|
3296
3288
|
return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
|
|
@@ -3298,20 +3290,20 @@ var Mn = (
|
|
|
3298
3290
|
var c = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3299
3291
|
if (c.err)
|
|
3300
3292
|
return c;
|
|
3301
|
-
this.bumpSpace(), $ = this.parseIdentifierIfPossible(),
|
|
3293
|
+
this.bumpSpace(), $ = this.parseIdentifierIfPossible(), H = c.val;
|
|
3302
3294
|
}
|
|
3303
3295
|
var U = this.tryParsePluralOrSelectOptions(t, a, r, $);
|
|
3304
3296
|
if (U.err)
|
|
3305
3297
|
return U;
|
|
3306
|
-
var
|
|
3307
|
-
if (
|
|
3308
|
-
return
|
|
3298
|
+
var p = this.tryParseArgumentClose(i);
|
|
3299
|
+
if (p.err)
|
|
3300
|
+
return p;
|
|
3309
3301
|
var b = y(i, this.clonePosition());
|
|
3310
3302
|
return a === "select" ? {
|
|
3311
3303
|
val: {
|
|
3312
3304
|
type: x.select,
|
|
3313
3305
|
value: n,
|
|
3314
|
-
options:
|
|
3306
|
+
options: ft(U.val),
|
|
3315
3307
|
location: b
|
|
3316
3308
|
},
|
|
3317
3309
|
err: null
|
|
@@ -3319,8 +3311,8 @@ var Mn = (
|
|
|
3319
3311
|
val: {
|
|
3320
3312
|
type: x.plural,
|
|
3321
3313
|
value: n,
|
|
3322
|
-
options:
|
|
3323
|
-
offset:
|
|
3314
|
+
options: ft(U.val),
|
|
3315
|
+
offset: H,
|
|
3324
3316
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3325
3317
|
location: b
|
|
3326
3318
|
},
|
|
@@ -3370,7 +3362,7 @@ var Mn = (
|
|
|
3370
3362
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3371
3363
|
var n = [];
|
|
3372
3364
|
try {
|
|
3373
|
-
n =
|
|
3365
|
+
n = dn(t);
|
|
3374
3366
|
} catch {
|
|
3375
3367
|
return this.error(g.INVALID_NUMBER_SKELETON, r);
|
|
3376
3368
|
}
|
|
@@ -3379,7 +3371,7 @@ var Mn = (
|
|
|
3379
3371
|
type: X.number,
|
|
3380
3372
|
tokens: n,
|
|
3381
3373
|
location: r,
|
|
3382
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3374
|
+
parsedOptions: this.shouldParseSkeletons ? yn(n) : {}
|
|
3383
3375
|
},
|
|
3384
3376
|
err: null
|
|
3385
3377
|
};
|
|
@@ -3398,20 +3390,20 @@ var Mn = (
|
|
|
3398
3390
|
if (h.has(u))
|
|
3399
3391
|
return this.error(r === "select" ? g.DUPLICATE_SELECT_ARGUMENT_SELECTOR : g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3400
3392
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3401
|
-
var
|
|
3393
|
+
var d = this.clonePosition();
|
|
3402
3394
|
if (!this.bumpIf("{"))
|
|
3403
3395
|
return this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
|
|
3404
|
-
var
|
|
3405
|
-
if (
|
|
3406
|
-
return
|
|
3407
|
-
var m = this.tryParseArgumentClose(
|
|
3396
|
+
var p = this.parseMessage(t + 1, r, n);
|
|
3397
|
+
if (p.err)
|
|
3398
|
+
return p;
|
|
3399
|
+
var m = this.tryParseArgumentClose(d);
|
|
3408
3400
|
if (m.err)
|
|
3409
3401
|
return m;
|
|
3410
3402
|
a.push([
|
|
3411
3403
|
u,
|
|
3412
3404
|
{
|
|
3413
|
-
value:
|
|
3414
|
-
location: y(
|
|
3405
|
+
value: p.val,
|
|
3406
|
+
location: y(d, this.clonePosition())
|
|
3415
3407
|
}
|
|
3416
3408
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3417
3409
|
}
|
|
@@ -3427,7 +3419,7 @@ var Mn = (
|
|
|
3427
3419
|
break;
|
|
3428
3420
|
}
|
|
3429
3421
|
var h = y(i, this.clonePosition());
|
|
3430
|
-
return o ? (s *= n,
|
|
3422
|
+
return o ? (s *= n, Nn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3431
3423
|
}, e.prototype.offset = function() {
|
|
3432
3424
|
return this.position.offset;
|
|
3433
3425
|
}, e.prototype.isEOF = function() {
|
|
@@ -3442,7 +3434,7 @@ var Mn = (
|
|
|
3442
3434
|
var t = this.position.offset;
|
|
3443
3435
|
if (t >= this.message.length)
|
|
3444
3436
|
throw Error("out of bound");
|
|
3445
|
-
var r =
|
|
3437
|
+
var r = Wt(this.message, t);
|
|
3446
3438
|
if (r === void 0)
|
|
3447
3439
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3448
3440
|
return r;
|
|
@@ -3461,7 +3453,7 @@ var Mn = (
|
|
|
3461
3453
|
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);
|
|
3462
3454
|
}
|
|
3463
3455
|
}, e.prototype.bumpIf = function(t) {
|
|
3464
|
-
if (
|
|
3456
|
+
if (ct(this.message, t, this.offset())) {
|
|
3465
3457
|
for (var r = 0; r < t.length; r++)
|
|
3466
3458
|
this.bump();
|
|
3467
3459
|
return !0;
|
|
@@ -3483,7 +3475,7 @@ var Mn = (
|
|
|
3483
3475
|
break;
|
|
3484
3476
|
}
|
|
3485
3477
|
}, e.prototype.bumpSpace = function() {
|
|
3486
|
-
for (; !this.isEOF() &&
|
|
3478
|
+
for (; !this.isEOF() && Zt(this.char()); )
|
|
3487
3479
|
this.bump();
|
|
3488
3480
|
}, e.prototype.peek = function() {
|
|
3489
3481
|
if (this.isEOF())
|
|
@@ -3496,29 +3488,29 @@ var Mn = (
|
|
|
3496
3488
|
function Ge(e) {
|
|
3497
3489
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3498
3490
|
}
|
|
3499
|
-
function
|
|
3491
|
+
function Mn(e) {
|
|
3500
3492
|
return Ge(e) || e === 47;
|
|
3501
3493
|
}
|
|
3502
|
-
function
|
|
3494
|
+
function $n(e) {
|
|
3503
3495
|
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;
|
|
3504
3496
|
}
|
|
3505
|
-
function
|
|
3497
|
+
function Zt(e) {
|
|
3506
3498
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3507
3499
|
}
|
|
3508
|
-
function
|
|
3500
|
+
function Rn(e) {
|
|
3509
3501
|
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;
|
|
3510
3502
|
}
|
|
3511
3503
|
function Fe(e) {
|
|
3512
3504
|
e.forEach(function(t) {
|
|
3513
|
-
if (delete t.location,
|
|
3505
|
+
if (delete t.location, Ut(t) || Dt(t))
|
|
3514
3506
|
for (var r in t.options)
|
|
3515
3507
|
delete t.options[r].location, Fe(t.options[r].value);
|
|
3516
|
-
else
|
|
3508
|
+
else Mt(t) && Ft(t.style) || ($t(t) || Rt(t)) && $e(t.style) ? delete t.style.location : Gt(t) && Fe(t.children);
|
|
3517
3509
|
});
|
|
3518
3510
|
}
|
|
3519
|
-
function
|
|
3511
|
+
function Un(e, t) {
|
|
3520
3512
|
t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3521
|
-
var r = new
|
|
3513
|
+
var r = new Ln(e, t).parse();
|
|
3522
3514
|
if (r.err) {
|
|
3523
3515
|
var n = SyntaxError(g[r.err.kind]);
|
|
3524
3516
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
@@ -3541,7 +3533,7 @@ var ge = (
|
|
|
3541
3533
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3542
3534
|
}, t;
|
|
3543
3535
|
}(Error)
|
|
3544
|
-
),
|
|
3536
|
+
), dt = (
|
|
3545
3537
|
/** @class */
|
|
3546
3538
|
function(e) {
|
|
3547
3539
|
I(t, e);
|
|
@@ -3550,7 +3542,7 @@ var ge = (
|
|
|
3550
3542
|
}
|
|
3551
3543
|
return t;
|
|
3552
3544
|
}(ge)
|
|
3553
|
-
),
|
|
3545
|
+
), Dn = (
|
|
3554
3546
|
/** @class */
|
|
3555
3547
|
function(e) {
|
|
3556
3548
|
I(t, e);
|
|
@@ -3559,7 +3551,7 @@ var ge = (
|
|
|
3559
3551
|
}
|
|
3560
3552
|
return t;
|
|
3561
3553
|
}(ge)
|
|
3562
|
-
),
|
|
3554
|
+
), Gn = (
|
|
3563
3555
|
/** @class */
|
|
3564
3556
|
function(e) {
|
|
3565
3557
|
I(t, e);
|
|
@@ -3572,17 +3564,17 @@ var ge = (
|
|
|
3572
3564
|
(function(e) {
|
|
3573
3565
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3574
3566
|
})(_ || (_ = {}));
|
|
3575
|
-
function
|
|
3567
|
+
function Fn(e) {
|
|
3576
3568
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3577
3569
|
var n = t[t.length - 1];
|
|
3578
3570
|
return !n || n.type !== _.literal || r.type !== _.literal ? t.push(r) : n.value += r.value, t;
|
|
3579
3571
|
}, []);
|
|
3580
3572
|
}
|
|
3581
|
-
function
|
|
3573
|
+
function jn(e) {
|
|
3582
3574
|
return typeof e == "function";
|
|
3583
3575
|
}
|
|
3584
3576
|
function le(e, t, r, n, i, o, s) {
|
|
3585
|
-
if (e.length === 1 &&
|
|
3577
|
+
if (e.length === 1 && at(e[0]))
|
|
3586
3578
|
return [
|
|
3587
3579
|
{
|
|
3588
3580
|
type: _.literal,
|
|
@@ -3591,14 +3583,14 @@ function le(e, t, r, n, i, o, s) {
|
|
|
3591
3583
|
];
|
|
3592
3584
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3593
3585
|
var l = u[h];
|
|
3594
|
-
if (
|
|
3586
|
+
if (at(l)) {
|
|
3595
3587
|
a.push({
|
|
3596
3588
|
type: _.literal,
|
|
3597
3589
|
value: l.value
|
|
3598
3590
|
});
|
|
3599
3591
|
continue;
|
|
3600
3592
|
}
|
|
3601
|
-
if (
|
|
3593
|
+
if (ln(l)) {
|
|
3602
3594
|
typeof o == "number" && a.push({
|
|
3603
3595
|
type: _.literal,
|
|
3604
3596
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3607,61 +3599,61 @@ function le(e, t, r, n, i, o, s) {
|
|
|
3607
3599
|
}
|
|
3608
3600
|
var c = l.value;
|
|
3609
3601
|
if (!(i && c in i))
|
|
3610
|
-
throw new
|
|
3602
|
+
throw new Gn(c, s);
|
|
3611
3603
|
var f = i[c];
|
|
3612
|
-
if (
|
|
3604
|
+
if (hn(l)) {
|
|
3613
3605
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3614
3606
|
type: typeof f == "string" ? _.literal : _.object,
|
|
3615
3607
|
value: f
|
|
3616
3608
|
});
|
|
3617
3609
|
continue;
|
|
3618
3610
|
}
|
|
3619
|
-
if (
|
|
3620
|
-
var
|
|
3611
|
+
if ($t(l)) {
|
|
3612
|
+
var d = typeof l.style == "string" ? n.date[l.style] : $e(l.style) ? l.style.parsedOptions : void 0;
|
|
3621
3613
|
a.push({
|
|
3622
3614
|
type: _.literal,
|
|
3623
|
-
value: r.getDateTimeFormat(t,
|
|
3615
|
+
value: r.getDateTimeFormat(t, d).format(f)
|
|
3624
3616
|
});
|
|
3625
3617
|
continue;
|
|
3626
3618
|
}
|
|
3627
|
-
if (
|
|
3628
|
-
var
|
|
3619
|
+
if (Rt(l)) {
|
|
3620
|
+
var d = typeof l.style == "string" ? n.time[l.style] : $e(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3629
3621
|
a.push({
|
|
3630
3622
|
type: _.literal,
|
|
3631
|
-
value: r.getDateTimeFormat(t,
|
|
3623
|
+
value: r.getDateTimeFormat(t, d).format(f)
|
|
3632
3624
|
});
|
|
3633
3625
|
continue;
|
|
3634
3626
|
}
|
|
3635
|
-
if (
|
|
3636
|
-
var
|
|
3637
|
-
|
|
3627
|
+
if (Mt(l)) {
|
|
3628
|
+
var d = typeof l.style == "string" ? n.number[l.style] : Ft(l.style) ? l.style.parsedOptions : void 0;
|
|
3629
|
+
d && d.scale && (f = f * (d.scale || 1)), a.push({
|
|
3638
3630
|
type: _.literal,
|
|
3639
|
-
value: r.getNumberFormat(t,
|
|
3631
|
+
value: r.getNumberFormat(t, d).format(f)
|
|
3640
3632
|
});
|
|
3641
3633
|
continue;
|
|
3642
3634
|
}
|
|
3643
|
-
if (
|
|
3644
|
-
var
|
|
3645
|
-
if (!
|
|
3646
|
-
throw new
|
|
3647
|
-
var M = le(
|
|
3648
|
-
return
|
|
3635
|
+
if (Gt(l)) {
|
|
3636
|
+
var p = l.children, m = l.value, T = i[m];
|
|
3637
|
+
if (!jn(T))
|
|
3638
|
+
throw new Dn(m, "function", s);
|
|
3639
|
+
var M = le(p, t, r, n, i, o), C = T(M.map(function(H) {
|
|
3640
|
+
return H.value;
|
|
3649
3641
|
}));
|
|
3650
|
-
Array.isArray(C) || (C = [C]), a.push.apply(a, C.map(function(
|
|
3642
|
+
Array.isArray(C) || (C = [C]), a.push.apply(a, C.map(function(H) {
|
|
3651
3643
|
return {
|
|
3652
|
-
type: typeof
|
|
3653
|
-
value:
|
|
3644
|
+
type: typeof H == "string" ? _.literal : _.object,
|
|
3645
|
+
value: H
|
|
3654
3646
|
};
|
|
3655
3647
|
}));
|
|
3656
3648
|
}
|
|
3657
|
-
if (
|
|
3649
|
+
if (Ut(l)) {
|
|
3658
3650
|
var E = l.options[f] || l.options.other;
|
|
3659
3651
|
if (!E)
|
|
3660
|
-
throw new
|
|
3652
|
+
throw new dt(l.value, f, Object.keys(l.options), s);
|
|
3661
3653
|
a.push.apply(a, le(E.value, t, r, n, i));
|
|
3662
3654
|
continue;
|
|
3663
3655
|
}
|
|
3664
|
-
if (
|
|
3656
|
+
if (Dt(l)) {
|
|
3665
3657
|
var E = l.options["=".concat(f)];
|
|
3666
3658
|
if (!E) {
|
|
3667
3659
|
if (!Intl.PluralRules)
|
|
@@ -3672,24 +3664,24 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3672
3664
|
E = l.options[$] || l.options.other;
|
|
3673
3665
|
}
|
|
3674
3666
|
if (!E)
|
|
3675
|
-
throw new
|
|
3667
|
+
throw new dt(l.value, f, Object.keys(l.options), s);
|
|
3676
3668
|
a.push.apply(a, le(E.value, t, r, n, i, f - (l.offset || 0)));
|
|
3677
3669
|
continue;
|
|
3678
3670
|
}
|
|
3679
3671
|
}
|
|
3680
|
-
return
|
|
3672
|
+
return Fn(a);
|
|
3681
3673
|
}
|
|
3682
|
-
function
|
|
3674
|
+
function kn(e, t) {
|
|
3683
3675
|
return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3684
3676
|
return r[n] = v(v({}, e[n]), t[n] || {}), r;
|
|
3685
3677
|
}, {})) : e;
|
|
3686
3678
|
}
|
|
3687
|
-
function
|
|
3679
|
+
function Vn(e, t) {
|
|
3688
3680
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3689
|
-
return r[n] =
|
|
3681
|
+
return r[n] = kn(e[n], t[n]), r;
|
|
3690
3682
|
}, v({}, e)) : e;
|
|
3691
3683
|
}
|
|
3692
|
-
function
|
|
3684
|
+
function He(e) {
|
|
3693
3685
|
return {
|
|
3694
3686
|
create: function() {
|
|
3695
3687
|
return {
|
|
@@ -3703,7 +3695,7 @@ function Ae(e) {
|
|
|
3703
3695
|
}
|
|
3704
3696
|
};
|
|
3705
3697
|
}
|
|
3706
|
-
function
|
|
3698
|
+
function Xn(e) {
|
|
3707
3699
|
return e === void 0 && (e = {
|
|
3708
3700
|
number: {},
|
|
3709
3701
|
dateTime: {},
|
|
@@ -3714,7 +3706,7 @@ function Wn(e) {
|
|
|
3714
3706
|
r[n] = arguments[n];
|
|
3715
3707
|
return new ((t = Intl.NumberFormat).bind.apply(t, k([void 0], r, !1)))();
|
|
3716
3708
|
}, {
|
|
3717
|
-
cache:
|
|
3709
|
+
cache: He(e.number),
|
|
3718
3710
|
strategy: Te.variadic
|
|
3719
3711
|
}),
|
|
3720
3712
|
getDateTimeFormat: Se(function() {
|
|
@@ -3722,7 +3714,7 @@ function Wn(e) {
|
|
|
3722
3714
|
r[n] = arguments[n];
|
|
3723
3715
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, k([void 0], r, !1)))();
|
|
3724
3716
|
}, {
|
|
3725
|
-
cache:
|
|
3717
|
+
cache: He(e.dateTime),
|
|
3726
3718
|
strategy: Te.variadic
|
|
3727
3719
|
}),
|
|
3728
3720
|
getPluralRules: Se(function() {
|
|
@@ -3730,12 +3722,12 @@ function Wn(e) {
|
|
|
3730
3722
|
r[n] = arguments[n];
|
|
3731
3723
|
return new ((t = Intl.PluralRules).bind.apply(t, k([void 0], r, !1)))();
|
|
3732
3724
|
}, {
|
|
3733
|
-
cache:
|
|
3725
|
+
cache: He(e.pluralRules),
|
|
3734
3726
|
strategy: Te.variadic
|
|
3735
3727
|
})
|
|
3736
3728
|
};
|
|
3737
3729
|
}
|
|
3738
|
-
var
|
|
3730
|
+
var Wn = (
|
|
3739
3731
|
/** @class */
|
|
3740
3732
|
function() {
|
|
3741
3733
|
function e(t, r, n, i) {
|
|
@@ -3767,13 +3759,13 @@ var zn = (
|
|
|
3767
3759
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3768
3760
|
var s = i || {};
|
|
3769
3761
|
s.formatters;
|
|
3770
|
-
var a =
|
|
3762
|
+
var a = Sr(s, ["formatters"]);
|
|
3771
3763
|
this.ast = e.__parse(t, v(v({}, a), { locale: this.resolvedLocale }));
|
|
3772
3764
|
} else
|
|
3773
3765
|
this.ast = t;
|
|
3774
3766
|
if (!Array.isArray(this.ast))
|
|
3775
3767
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3776
|
-
this.formats =
|
|
3768
|
+
this.formats = Vn(e.formats, n), this.formatters = i && i.formatters || Xn(this.formatterCache);
|
|
3777
3769
|
}
|
|
3778
3770
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3779
3771
|
get: function() {
|
|
@@ -3786,7 +3778,7 @@ var zn = (
|
|
|
3786
3778
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3787
3779
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3788
3780
|
}
|
|
3789
|
-
}, e.__parse =
|
|
3781
|
+
}, e.__parse = Un, e.formats = {
|
|
3790
3782
|
number: {
|
|
3791
3783
|
integer: {
|
|
3792
3784
|
maximumFractionDigits: 0
|
|
@@ -3847,7 +3839,7 @@ var zn = (
|
|
|
3847
3839
|
}, e;
|
|
3848
3840
|
}()
|
|
3849
3841
|
);
|
|
3850
|
-
function
|
|
3842
|
+
function zn(e, t) {
|
|
3851
3843
|
if (t == null)
|
|
3852
3844
|
return;
|
|
3853
3845
|
if (t in e)
|
|
@@ -3868,60 +3860,60 @@ function Zn(e, t) {
|
|
|
3868
3860
|
n = void 0;
|
|
3869
3861
|
return n;
|
|
3870
3862
|
}
|
|
3871
|
-
const L = {},
|
|
3863
|
+
const L = {}, Zn = (e, t, r) => r && (t in L || (L[t] = {}), e in L[t] || (L[t][e] = r), r), Qt = (e, t) => {
|
|
3872
3864
|
if (t == null)
|
|
3873
3865
|
return;
|
|
3874
3866
|
if (t in L && e in L[t])
|
|
3875
3867
|
return L[t][e];
|
|
3876
3868
|
const r = ye(t);
|
|
3877
3869
|
for (let n = 0; n < r.length; n++) {
|
|
3878
|
-
const i = r[n], o =
|
|
3870
|
+
const i = r[n], o = Jn(i, e);
|
|
3879
3871
|
if (o)
|
|
3880
|
-
return
|
|
3872
|
+
return Zn(e, t, o);
|
|
3881
3873
|
}
|
|
3882
3874
|
};
|
|
3883
|
-
let
|
|
3875
|
+
let We;
|
|
3884
3876
|
const ne = be({});
|
|
3885
|
-
function
|
|
3886
|
-
return
|
|
3877
|
+
function Qn(e) {
|
|
3878
|
+
return We[e] || null;
|
|
3887
3879
|
}
|
|
3888
|
-
function
|
|
3889
|
-
return e in
|
|
3880
|
+
function Jt(e) {
|
|
3881
|
+
return e in We;
|
|
3890
3882
|
}
|
|
3891
|
-
function
|
|
3892
|
-
if (!
|
|
3883
|
+
function Jn(e, t) {
|
|
3884
|
+
if (!Jt(e))
|
|
3893
3885
|
return null;
|
|
3894
|
-
const r =
|
|
3895
|
-
return
|
|
3886
|
+
const r = Qn(e);
|
|
3887
|
+
return zn(r, t);
|
|
3896
3888
|
}
|
|
3897
|
-
function
|
|
3889
|
+
function qn(e) {
|
|
3898
3890
|
if (e == null)
|
|
3899
3891
|
return;
|
|
3900
3892
|
const t = ye(e);
|
|
3901
3893
|
for (let r = 0; r < t.length; r++) {
|
|
3902
3894
|
const n = t[r];
|
|
3903
|
-
if (
|
|
3895
|
+
if (Jt(n))
|
|
3904
3896
|
return n;
|
|
3905
3897
|
}
|
|
3906
3898
|
}
|
|
3907
|
-
function
|
|
3908
|
-
delete L[e], ne.update((r) => (r[e] =
|
|
3899
|
+
function Yn(e, ...t) {
|
|
3900
|
+
delete L[e], ne.update((r) => (r[e] = en.all([r[e] || {}, ...t]), r));
|
|
3909
3901
|
}
|
|
3910
3902
|
Z(
|
|
3911
3903
|
[ne],
|
|
3912
3904
|
([e]) => Object.keys(e)
|
|
3913
3905
|
);
|
|
3914
|
-
ne.subscribe((e) =>
|
|
3906
|
+
ne.subscribe((e) => We = e);
|
|
3915
3907
|
const ce = {};
|
|
3916
|
-
function
|
|
3908
|
+
function Kn(e, t) {
|
|
3917
3909
|
ce[e].delete(t), ce[e].size === 0 && delete ce[e];
|
|
3918
3910
|
}
|
|
3919
|
-
function
|
|
3911
|
+
function qt(e) {
|
|
3920
3912
|
return ce[e];
|
|
3921
3913
|
}
|
|
3922
|
-
function
|
|
3914
|
+
function ei(e) {
|
|
3923
3915
|
return ye(e).map((t) => {
|
|
3924
|
-
const r =
|
|
3916
|
+
const r = qt(t);
|
|
3925
3917
|
return [t, r ? [...r] : []];
|
|
3926
3918
|
}).filter(([, t]) => t.length > 0);
|
|
3927
3919
|
}
|
|
@@ -3929,31 +3921,31 @@ function je(e) {
|
|
|
3929
3921
|
return e == null ? !1 : ye(e).some(
|
|
3930
3922
|
(t) => {
|
|
3931
3923
|
var r;
|
|
3932
|
-
return (r =
|
|
3924
|
+
return (r = qt(t)) == null ? void 0 : r.size;
|
|
3933
3925
|
}
|
|
3934
3926
|
);
|
|
3935
3927
|
}
|
|
3936
|
-
function
|
|
3928
|
+
function ti(e, t) {
|
|
3937
3929
|
return Promise.all(
|
|
3938
|
-
t.map((n) => (
|
|
3939
|
-
).then((n) =>
|
|
3930
|
+
t.map((n) => (Kn(e, n), n().then((i) => i.default || i)))
|
|
3931
|
+
).then((n) => Yn(e, ...n));
|
|
3940
3932
|
}
|
|
3941
3933
|
const q = {};
|
|
3942
|
-
function
|
|
3934
|
+
function Yt(e) {
|
|
3943
3935
|
if (!je(e))
|
|
3944
3936
|
return e in q ? q[e] : Promise.resolve();
|
|
3945
|
-
const t =
|
|
3937
|
+
const t = ei(e);
|
|
3946
3938
|
return q[e] = Promise.all(
|
|
3947
3939
|
t.map(
|
|
3948
|
-
([r, n]) =>
|
|
3940
|
+
([r, n]) => ti(r, n)
|
|
3949
3941
|
)
|
|
3950
3942
|
).then(() => {
|
|
3951
3943
|
if (je(e))
|
|
3952
|
-
return
|
|
3944
|
+
return Yt(e);
|
|
3953
3945
|
delete q[e];
|
|
3954
3946
|
}), q[e];
|
|
3955
3947
|
}
|
|
3956
|
-
const
|
|
3948
|
+
const ri = {
|
|
3957
3949
|
number: {
|
|
3958
3950
|
scientific: { notation: "scientific" },
|
|
3959
3951
|
engineering: { notation: "engineering" },
|
|
@@ -3982,34 +3974,34 @@ const ni = {
|
|
|
3982
3974
|
timeZoneName: "short"
|
|
3983
3975
|
}
|
|
3984
3976
|
}
|
|
3985
|
-
},
|
|
3977
|
+
}, ni = {
|
|
3986
3978
|
fallbackLocale: null,
|
|
3987
3979
|
loadingDelay: 200,
|
|
3988
|
-
formats:
|
|
3980
|
+
formats: ri,
|
|
3989
3981
|
warnOnMissingMessages: !0,
|
|
3990
3982
|
handleMissingMessage: void 0,
|
|
3991
3983
|
ignoreTag: !0
|
|
3992
|
-
},
|
|
3984
|
+
}, ii = ni;
|
|
3993
3985
|
function z() {
|
|
3994
|
-
return
|
|
3986
|
+
return ii;
|
|
3995
3987
|
}
|
|
3996
3988
|
const Pe = be(!1);
|
|
3997
|
-
var
|
|
3998
|
-
for (var r in t)
|
|
3999
|
-
|
|
4000
|
-
if (
|
|
4001
|
-
for (var r of
|
|
4002
|
-
|
|
3989
|
+
var oi = Object.defineProperty, si = Object.defineProperties, ai = Object.getOwnPropertyDescriptors, mt = Object.getOwnPropertySymbols, ui = Object.prototype.hasOwnProperty, hi = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? oi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, li = (e, t) => {
|
|
3990
|
+
for (var r in t || (t = {}))
|
|
3991
|
+
ui.call(t, r) && bt(e, r, t[r]);
|
|
3992
|
+
if (mt)
|
|
3993
|
+
for (var r of mt(t))
|
|
3994
|
+
hi.call(t, r) && bt(e, r, t[r]);
|
|
4003
3995
|
return e;
|
|
4004
|
-
},
|
|
3996
|
+
}, ci = (e, t) => si(e, ai(t));
|
|
4005
3997
|
let ke;
|
|
4006
3998
|
const fe = be(null);
|
|
4007
|
-
function
|
|
3999
|
+
function gt(e) {
|
|
4008
4000
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4009
4001
|
}
|
|
4010
4002
|
function ye(e, t = z().fallbackLocale) {
|
|
4011
|
-
const r =
|
|
4012
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4003
|
+
const r = gt(e);
|
|
4004
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...gt(t)])] : r;
|
|
4013
4005
|
}
|
|
4014
4006
|
function R() {
|
|
4015
4007
|
return ke ?? void 0;
|
|
@@ -4017,22 +4009,22 @@ function R() {
|
|
|
4017
4009
|
fe.subscribe((e) => {
|
|
4018
4010
|
ke = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4019
4011
|
});
|
|
4020
|
-
const
|
|
4021
|
-
if (e &&
|
|
4012
|
+
const fi = (e) => {
|
|
4013
|
+
if (e && qn(e) && je(e)) {
|
|
4022
4014
|
const { loadingDelay: t } = z();
|
|
4023
4015
|
let r;
|
|
4024
4016
|
return typeof window < "u" && R() != null && t ? r = window.setTimeout(
|
|
4025
4017
|
() => Pe.set(!0),
|
|
4026
4018
|
t
|
|
4027
|
-
) : Pe.set(!0),
|
|
4019
|
+
) : Pe.set(!0), Yt(e).then(() => {
|
|
4028
4020
|
fe.set(e);
|
|
4029
4021
|
}).finally(() => {
|
|
4030
4022
|
clearTimeout(r), Pe.set(!1);
|
|
4031
4023
|
});
|
|
4032
4024
|
}
|
|
4033
4025
|
return fe.set(e);
|
|
4034
|
-
}, ie =
|
|
4035
|
-
set:
|
|
4026
|
+
}, ie = ci(li({}, fe), {
|
|
4027
|
+
set: fi
|
|
4036
4028
|
}), ve = (e) => {
|
|
4037
4029
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4038
4030
|
return (n) => {
|
|
@@ -4040,20 +4032,20 @@ const di = (e) => {
|
|
|
4040
4032
|
return i in t ? t[i] : t[i] = e(n);
|
|
4041
4033
|
};
|
|
4042
4034
|
};
|
|
4043
|
-
var pi = Object.defineProperty,
|
|
4035
|
+
var pi = Object.defineProperty, pe = Object.getOwnPropertySymbols, Kt = Object.prototype.hasOwnProperty, er = Object.prototype.propertyIsEnumerable, yt = (e, t, r) => t in e ? pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ze = (e, t) => {
|
|
4044
4036
|
for (var r in t || (t = {}))
|
|
4045
|
-
|
|
4046
|
-
if (
|
|
4047
|
-
for (var r of
|
|
4048
|
-
|
|
4037
|
+
Kt.call(t, r) && yt(e, r, t[r]);
|
|
4038
|
+
if (pe)
|
|
4039
|
+
for (var r of pe(t))
|
|
4040
|
+
er.call(t, r) && yt(e, r, t[r]);
|
|
4049
4041
|
return e;
|
|
4050
4042
|
}, Q = (e, t) => {
|
|
4051
4043
|
var r = {};
|
|
4052
4044
|
for (var n in e)
|
|
4053
|
-
|
|
4054
|
-
if (e != null &&
|
|
4055
|
-
for (var n of
|
|
4056
|
-
t.indexOf(n) < 0 &&
|
|
4045
|
+
Kt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4046
|
+
if (e != null && pe)
|
|
4047
|
+
for (var n of pe(e))
|
|
4048
|
+
t.indexOf(n) < 0 && er.call(e, n) && (r[n] = e[n]);
|
|
4057
4049
|
return r;
|
|
4058
4050
|
};
|
|
4059
4051
|
const ee = (e, t) => {
|
|
@@ -4061,21 +4053,21 @@ const ee = (e, t) => {
|
|
|
4061
4053
|
if (e in r && t in r[e])
|
|
4062
4054
|
return r[e][t];
|
|
4063
4055
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4064
|
-
},
|
|
4056
|
+
}, di = ve(
|
|
4065
4057
|
(e) => {
|
|
4066
4058
|
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
4067
4059
|
if (r == null)
|
|
4068
4060
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4069
4061
|
return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
|
|
4070
4062
|
}
|
|
4071
|
-
),
|
|
4063
|
+
), mi = ve(
|
|
4072
4064
|
(e) => {
|
|
4073
4065
|
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
4074
4066
|
if (r == null)
|
|
4075
4067
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4076
4068
|
return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4077
4069
|
}
|
|
4078
|
-
),
|
|
4070
|
+
), bi = ve(
|
|
4079
4071
|
(e) => {
|
|
4080
4072
|
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
4081
4073
|
if (r == null)
|
|
@@ -4084,33 +4076,33 @@ const ee = (e, t) => {
|
|
|
4084
4076
|
);
|
|
4085
4077
|
return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4086
4078
|
}
|
|
4087
|
-
),
|
|
4079
|
+
), gi = (e = {}) => {
|
|
4088
4080
|
var t = e, {
|
|
4089
4081
|
locale: r = R()
|
|
4090
4082
|
} = t, n = Q(t, [
|
|
4091
4083
|
"locale"
|
|
4092
4084
|
]);
|
|
4093
|
-
return
|
|
4094
|
-
},
|
|
4085
|
+
return di(ze({ locale: r }, n));
|
|
4086
|
+
}, yi = (e = {}) => {
|
|
4095
4087
|
var t = e, {
|
|
4096
4088
|
locale: r = R()
|
|
4097
4089
|
} = t, n = Q(t, [
|
|
4098
4090
|
"locale"
|
|
4099
4091
|
]);
|
|
4100
|
-
return
|
|
4101
|
-
},
|
|
4092
|
+
return mi(ze({ locale: r }, n));
|
|
4093
|
+
}, vi = (e = {}) => {
|
|
4102
4094
|
var t = e, {
|
|
4103
4095
|
locale: r = R()
|
|
4104
4096
|
} = t, n = Q(t, [
|
|
4105
4097
|
"locale"
|
|
4106
4098
|
]);
|
|
4107
|
-
return
|
|
4108
|
-
},
|
|
4099
|
+
return bi(ze({ locale: r }, n));
|
|
4100
|
+
}, xi = ve(
|
|
4109
4101
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4110
|
-
(e, t = R()) => new
|
|
4102
|
+
(e, t = R()) => new Wn(e, t, z().formats, {
|
|
4111
4103
|
ignoreTag: z().ignoreTag
|
|
4112
4104
|
})
|
|
4113
|
-
),
|
|
4105
|
+
), _i = (e, t = {}) => {
|
|
4114
4106
|
var r, n, i, o;
|
|
4115
4107
|
let s = t;
|
|
4116
4108
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4123,7 +4115,7 @@ const ee = (e, t) => {
|
|
|
4123
4115
|
throw new Error(
|
|
4124
4116
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4125
4117
|
);
|
|
4126
|
-
let l =
|
|
4118
|
+
let l = Qt(e, h);
|
|
4127
4119
|
if (!l)
|
|
4128
4120
|
l = (o = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4129
4121
|
else if (typeof l != "string")
|
|
@@ -4134,7 +4126,7 @@ const ee = (e, t) => {
|
|
|
4134
4126
|
return l;
|
|
4135
4127
|
let c = l;
|
|
4136
4128
|
try {
|
|
4137
|
-
c =
|
|
4129
|
+
c = xi(l, h).format(a);
|
|
4138
4130
|
} catch (f) {
|
|
4139
4131
|
f instanceof Error && console.warn(
|
|
4140
4132
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4142,28 +4134,28 @@ const ee = (e, t) => {
|
|
|
4142
4134
|
);
|
|
4143
4135
|
}
|
|
4144
4136
|
return c;
|
|
4145
|
-
},
|
|
4146
|
-
Z([ie, ne], () =>
|
|
4137
|
+
}, Ei = (e, t) => vi(t).format(e), Si = (e, t) => yi(t).format(e), Ti = (e, t) => gi(t).format(e), Ai = (e, t = R()) => Qt(e, t);
|
|
4138
|
+
Z([ie, ne], () => _i);
|
|
4139
|
+
Z([ie], () => Ei);
|
|
4147
4140
|
Z([ie], () => Si);
|
|
4148
4141
|
Z([ie], () => Ti);
|
|
4149
|
-
Z([ie], () => Hi);
|
|
4150
4142
|
Z([ie, ne], () => Ai);
|
|
4151
|
-
window.emWidgets = { topic:
|
|
4152
|
-
const
|
|
4153
|
-
function
|
|
4154
|
-
|
|
4143
|
+
window.emWidgets = { topic: Rr };
|
|
4144
|
+
const vt = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4145
|
+
function Hi(e) {
|
|
4146
|
+
nr(e, "svelte-8rjudp", '.PlayerAccountNotificationsContainer{padding:0 5px}.PlayerAccountNotificationBox{display:block;padding:20px;margin:20px auto 10px auto;border-radius:5px;width:100%;background:var(--emw--color-gray-300, #58586B);color:var(--emw--color-white, #FFFFFF);box-sizing:border-box;text-decoration:none;word-break:break-all}.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}.PlayerAccountNotificationsTabletContainer{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-gap:20px;padding:20px 40px}.PlayerAccountNotificationsTabletContainer .PlayerAccountNotificationBoxHeader{grid-template-columns:80px calc(100% - 80px)}.PlayerAccountNotificationsTabletContainer .PlayerAccountNotificationTitle{font-size:24px}.PlayerAccountNotificationsTabletContainer .PlayerAccountNotificationText{font-size:16px}.PlayerAccountNotificationsTabletContainer .PlayerAccountNotificationIcon{width:60px;margin-right:20px}');
|
|
4155
4147
|
}
|
|
4156
|
-
function
|
|
4148
|
+
function xt(e, t, r) {
|
|
4157
4149
|
const n = e.slice();
|
|
4158
4150
|
return n[20] = t[r], n;
|
|
4159
4151
|
}
|
|
4160
|
-
function
|
|
4161
|
-
let t, r =
|
|
4152
|
+
function Pi(e) {
|
|
4153
|
+
let t, r = Ye(
|
|
4162
4154
|
/*notificationsData*/
|
|
4163
4155
|
e[1]
|
|
4164
4156
|
), n = [];
|
|
4165
4157
|
for (let i = 0; i < r.length; i += 1)
|
|
4166
|
-
n[i] =
|
|
4158
|
+
n[i] = _t(xt(e, r, i));
|
|
4167
4159
|
return {
|
|
4168
4160
|
c() {
|
|
4169
4161
|
t = N("div");
|
|
@@ -4182,21 +4174,21 @@ function Bi(e) {
|
|
|
4182
4174
|
)));
|
|
4183
4175
|
},
|
|
4184
4176
|
m(i, o) {
|
|
4185
|
-
|
|
4177
|
+
de(i, t, o);
|
|
4186
4178
|
for (let s = 0; s < n.length; s += 1)
|
|
4187
4179
|
n[s] && n[s].m(t, null);
|
|
4188
4180
|
},
|
|
4189
4181
|
p(i, o) {
|
|
4190
4182
|
if (o & /*notificationsData*/
|
|
4191
4183
|
2) {
|
|
4192
|
-
r =
|
|
4184
|
+
r = Ye(
|
|
4193
4185
|
/*notificationsData*/
|
|
4194
4186
|
i[1]
|
|
4195
4187
|
);
|
|
4196
4188
|
let s;
|
|
4197
4189
|
for (s = 0; s < r.length; s += 1) {
|
|
4198
|
-
const a =
|
|
4199
|
-
n[s] ? n[s].p(a, o) : (n[s] =
|
|
4190
|
+
const a = xt(i, r, s);
|
|
4191
|
+
n[s] ? n[s].p(a, o) : (n[s] = _t(a), n[s].c(), n[s].m(t, null));
|
|
4200
4192
|
}
|
|
4201
4193
|
for (; s < n.length; s += 1)
|
|
4202
4194
|
n[s].d(1);
|
|
@@ -4204,61 +4196,61 @@ function Bi(e) {
|
|
|
4204
4196
|
}
|
|
4205
4197
|
},
|
|
4206
4198
|
d(i) {
|
|
4207
|
-
i && re(t),
|
|
4199
|
+
i && re(t), sr(n, i);
|
|
4208
4200
|
}
|
|
4209
4201
|
};
|
|
4210
4202
|
}
|
|
4211
|
-
function
|
|
4203
|
+
function _t(e) {
|
|
4212
4204
|
let t, r, n, i, o, s, a, h = (
|
|
4213
4205
|
/*notification*/
|
|
4214
4206
|
e[20].title + ""
|
|
4215
4207
|
), u, l, c, f = (
|
|
4216
4208
|
/*notification*/
|
|
4217
4209
|
e[20].description + ""
|
|
4218
|
-
),
|
|
4210
|
+
), d;
|
|
4219
4211
|
return {
|
|
4220
4212
|
c() {
|
|
4221
|
-
t = N("div"), r = N("div"), n = N("img"), s = xe(), a = N("p"), u =
|
|
4213
|
+
t = N("div"), r = N("div"), n = N("img"), s = xe(), a = N("p"), u = Tt(h), l = xe(), c = N("p"), d = xe(), S(n, "class", "PlayerAccountNotificationIcon"), Qe(n.src, i = /*notification*/
|
|
4222
4214
|
e[20].icon) || S(n, "src", i), S(n, "alt", o = /*notification*/
|
|
4223
|
-
e[20].title), S(a, "class", "PlayerAccountNotificationTitle"), S(r, "class", "PlayerAccountNotificationBoxHeader"), S(c, "class", "PlayerAccountNotificationText"), S(t, "class", "PlayerAccountNotificationBox"),
|
|
4215
|
+
e[20].title), S(a, "class", "PlayerAccountNotificationTitle"), S(r, "class", "PlayerAccountNotificationBoxHeader"), S(c, "class", "PlayerAccountNotificationText"), S(t, "class", "PlayerAccountNotificationBox"), Je(
|
|
4224
4216
|
t,
|
|
4225
4217
|
"background",
|
|
4226
4218
|
/*notification*/
|
|
4227
4219
|
e[20].backgroundColor
|
|
4228
4220
|
);
|
|
4229
4221
|
},
|
|
4230
|
-
m(
|
|
4231
|
-
|
|
4222
|
+
m(p, m) {
|
|
4223
|
+
de(p, t, m), B(t, r), B(r, n), B(r, s), B(r, a), B(a, u), B(t, l), B(t, c), c.innerHTML = f, B(t, d);
|
|
4232
4224
|
},
|
|
4233
|
-
p(
|
|
4225
|
+
p(p, m) {
|
|
4234
4226
|
m & /*notificationsData*/
|
|
4235
|
-
2 && !
|
|
4236
|
-
|
|
4227
|
+
2 && !Qe(n.src, i = /*notification*/
|
|
4228
|
+
p[20].icon) && S(n, "src", i), m & /*notificationsData*/
|
|
4237
4229
|
2 && o !== (o = /*notification*/
|
|
4238
|
-
|
|
4230
|
+
p[20].title) && S(n, "alt", o), m & /*notificationsData*/
|
|
4239
4231
|
2 && h !== (h = /*notification*/
|
|
4240
|
-
|
|
4232
|
+
p[20].title + "") && ur(u, h), m & /*notificationsData*/
|
|
4241
4233
|
2 && f !== (f = /*notification*/
|
|
4242
|
-
|
|
4243
|
-
2 &&
|
|
4234
|
+
p[20].description + "") && (c.innerHTML = f), m & /*notificationsData*/
|
|
4235
|
+
2 && Je(
|
|
4244
4236
|
t,
|
|
4245
4237
|
"background",
|
|
4246
4238
|
/*notification*/
|
|
4247
|
-
|
|
4239
|
+
p[20].backgroundColor
|
|
4248
4240
|
);
|
|
4249
4241
|
},
|
|
4250
|
-
d(
|
|
4251
|
-
|
|
4242
|
+
d(p) {
|
|
4243
|
+
p && re(t);
|
|
4252
4244
|
}
|
|
4253
4245
|
};
|
|
4254
4246
|
}
|
|
4255
|
-
function
|
|
4247
|
+
function Bi(e) {
|
|
4256
4248
|
let t;
|
|
4257
4249
|
function r(o, s) {
|
|
4258
4250
|
if (
|
|
4259
4251
|
/*notificationsData*/
|
|
4260
4252
|
o[1].length
|
|
4261
|
-
) return
|
|
4253
|
+
) return Pi;
|
|
4262
4254
|
}
|
|
4263
4255
|
let n = r(e), i = n && n(e);
|
|
4264
4256
|
return {
|
|
@@ -4266,23 +4258,23 @@ function wi(e) {
|
|
|
4266
4258
|
t = N("div"), i && i.c();
|
|
4267
4259
|
},
|
|
4268
4260
|
m(o, s) {
|
|
4269
|
-
|
|
4261
|
+
de(o, t, s), i && i.m(t, null), e[11](t);
|
|
4270
4262
|
},
|
|
4271
4263
|
p(o, [s]) {
|
|
4272
4264
|
n === (n = r(o)) && i ? i.p(o, s) : (i && i.d(1), i = n && n(o), i && (i.c(), i.m(t, null)));
|
|
4273
4265
|
},
|
|
4274
|
-
i:
|
|
4275
|
-
o:
|
|
4266
|
+
i: A,
|
|
4267
|
+
o: A,
|
|
4276
4268
|
d(o) {
|
|
4277
4269
|
o && re(t), i && i.d(), e[11](null);
|
|
4278
4270
|
}
|
|
4279
4271
|
};
|
|
4280
4272
|
}
|
|
4281
|
-
function
|
|
4282
|
-
let { lang: n = "" } = t, { cmsendpoint: i = "" } = t, { env: o = "" } = t, { userroles: s = "" } = t, { customnotif: a = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: u = "" } = t, l, c = window.navigator.userAgent, f =
|
|
4273
|
+
function wi(e, t, r) {
|
|
4274
|
+
let { lang: n = "" } = t, { cmsendpoint: i = "" } = t, { env: o = "" } = t, { userroles: s = "" } = t, { customnotif: a = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: u = "" } = t, l, c = window.navigator.userAgent, f = vt(c) !== "PC", d = [], p = [], m = M();
|
|
4283
4275
|
const T = window.matchMedia("(min-width: 768px)");
|
|
4284
4276
|
function M() {
|
|
4285
|
-
const b =
|
|
4277
|
+
const b = vt(c);
|
|
4286
4278
|
if (b)
|
|
4287
4279
|
return b === "PC" ? "dk" : "mtWeb";
|
|
4288
4280
|
}
|
|
@@ -4290,8 +4282,8 @@ function Ni(e, t, r) {
|
|
|
4290
4282
|
const b = new URL(`${i}/${n}/support-information`);
|
|
4291
4283
|
b.searchParams.append("env", o), b.searchParams.append("userRoles", s), b.searchParams.append("device", m), fetch(b.href).then((P) => P.json()).then(
|
|
4292
4284
|
(P) => {
|
|
4293
|
-
P.length && (r(1,
|
|
4294
|
-
|
|
4285
|
+
P.length && (r(1, d = P[0].children), d.forEach((J) => {
|
|
4286
|
+
p.length && (J.backgroundColor = p[0], p.shift());
|
|
4295
4287
|
}));
|
|
4296
4288
|
},
|
|
4297
4289
|
(P) => {
|
|
@@ -4299,11 +4291,11 @@ function Ni(e, t, r) {
|
|
|
4299
4291
|
}
|
|
4300
4292
|
);
|
|
4301
4293
|
}, E = () => {
|
|
4302
|
-
a.replace(" ", ""),
|
|
4294
|
+
a.replace(" ", ""), p = a.split(",");
|
|
4303
4295
|
}, $ = () => {
|
|
4304
4296
|
let b = document.createElement("style");
|
|
4305
4297
|
b.innerHTML = h, l.appendChild(b);
|
|
4306
|
-
},
|
|
4298
|
+
}, H = () => {
|
|
4307
4299
|
let b = new URL(u), P = document.createElement("style");
|
|
4308
4300
|
fetch(b.href).then((J) => J.text()).then((J) => {
|
|
4309
4301
|
P.innerHTML = J, setTimeout(
|
|
@@ -4324,13 +4316,13 @@ function Ni(e, t, r) {
|
|
|
4324
4316
|
}, e.$$.update = () => {
|
|
4325
4317
|
e.$$.dirty & /*customnotif*/
|
|
4326
4318
|
256 && a && E(), e.$$.dirty & /*notificationsData*/
|
|
4327
|
-
2 &&
|
|
4319
|
+
2 && d && E(), e.$$.dirty & /*userroles, cmsendpoint, env, lang*/
|
|
4328
4320
|
240 && s && i && o && n && C(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4329
|
-
1025 && u && l &&
|
|
4321
|
+
1025 && u && l && H(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4330
4322
|
513 && h && l && $();
|
|
4331
4323
|
}, [
|
|
4332
4324
|
l,
|
|
4333
|
-
|
|
4325
|
+
d,
|
|
4334
4326
|
f,
|
|
4335
4327
|
T,
|
|
4336
4328
|
n,
|
|
@@ -4343,14 +4335,14 @@ function Ni(e, t, r) {
|
|
|
4343
4335
|
U
|
|
4344
4336
|
];
|
|
4345
4337
|
}
|
|
4346
|
-
class
|
|
4338
|
+
class Ni extends _r {
|
|
4347
4339
|
constructor(t) {
|
|
4348
|
-
super(),
|
|
4340
|
+
super(), vr(
|
|
4349
4341
|
this,
|
|
4350
4342
|
t,
|
|
4351
|
-
Ni,
|
|
4352
4343
|
wi,
|
|
4353
|
-
|
|
4344
|
+
Bi,
|
|
4345
|
+
St,
|
|
4354
4346
|
{
|
|
4355
4347
|
lang: 4,
|
|
4356
4348
|
cmsendpoint: 5,
|
|
@@ -4360,7 +4352,7 @@ class Oi extends Er {
|
|
|
4360
4352
|
clientstyling: 9,
|
|
4361
4353
|
clientstylingurl: 10
|
|
4362
4354
|
},
|
|
4363
|
-
|
|
4355
|
+
Hi
|
|
4364
4356
|
);
|
|
4365
4357
|
}
|
|
4366
4358
|
get lang() {
|
|
@@ -4406,7 +4398,7 @@ class Oi extends Er {
|
|
|
4406
4398
|
this.$$set({ clientstylingurl: t }), w();
|
|
4407
4399
|
}
|
|
4408
4400
|
}
|
|
4409
|
-
|
|
4401
|
+
xr(Ni, { lang: {}, cmsendpoint: {}, env: {}, userroles: {}, customnotif: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
|
|
4410
4402
|
export {
|
|
4411
|
-
|
|
4403
|
+
Ni as P
|
|
4412
4404
|
};
|