@everymatrix/player-account-notifications 1.76.13 → 1.76.14
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-B6P7eJ_9.js → PlayerAccountNotifications-0_KDmaPh.js} +659 -680
- package/components/{PlayerAccountNotifications-Bj2-cz1u.js → PlayerAccountNotifications-B3qMDqKA.js} +684 -705
- package/components/PlayerAccountNotifications-C4eZW0eI.cjs +18 -0
- package/es2015/player-account-notifications.cjs +1 -1
- package/es2015/player-account-notifications.js +1 -1
- package/esnext/player-account-notifications.js +1 -1
- package/package.json +1 -1
- package/stencil/index-b2193545-BtPvM93e.js +519 -0
- package/stencil/index-b2193545-CgelUAhE.cjs +1 -0
- package/stencil/index-b2193545-D_KBbaD-.js +503 -0
- package/stencil/{ui-skeleton-BL4789dS.cjs → ui-skeleton-BPqjm-YB.cjs} +1 -1
- package/stencil/{ui-skeleton-Ca5rz3Hv.js → ui-skeleton-CWuMYFGQ.js} +2 -2
- package/stencil/{ui-skeleton-hI4GeaLk.js → ui-skeleton-NZtdK490.js} +2 -2
- package/stencil/{ui-skeleton-ae35c6f2-xLf3HyeB.cjs → ui-skeleton-ae35c6f2-CKJgMm_5.cjs} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-BDBUiN3S.js → ui-skeleton-ae35c6f2-CW3z59Qf.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-Cn0ZM_hs.js → ui-skeleton-ae35c6f2-DlexSQlT.js} +1 -1
- package/components/PlayerAccountNotifications-14hkOMcc.cjs +0 -18
- package/stencil/index-b2193545-BeKKnKhR.js +0 -519
- package/stencil/index-b2193545-HC0t7mHa.js +0 -503
- package/stencil/index-b2193545-YW9b062G.cjs +0 -1
package/components/{PlayerAccountNotifications-B6P7eJ_9.js → PlayerAccountNotifications-0_KDmaPh.js}
RENAMED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import "../stencil/ui-skeleton-
|
|
1
|
+
import "../stencil/ui-skeleton-NZtdK490.js";
|
|
2
2
|
function H() {
|
|
3
3
|
}
|
|
4
|
-
function
|
|
4
|
+
function Pt(e) {
|
|
5
5
|
return e();
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function Ye() {
|
|
8
8
|
return /* @__PURE__ */ Object.create(null);
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
e.forEach(
|
|
10
|
+
function ie(e) {
|
|
11
|
+
e.forEach(Pt);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function ze(e) {
|
|
14
14
|
return typeof e == "function";
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function wt(e, t) {
|
|
17
17
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
18
18
|
}
|
|
19
19
|
let ae;
|
|
20
|
-
function
|
|
20
|
+
function Ke(e, t) {
|
|
21
21
|
return e === t ? !0 : (ae || (ae = document.createElement("a")), ae.href = t, e === ae.href);
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function hr(e) {
|
|
24
24
|
return Object.keys(e).length === 0;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function lr(e, ...t) {
|
|
27
27
|
if (e == null) {
|
|
28
28
|
for (const n of t)
|
|
29
29
|
n(void 0);
|
|
@@ -32,17 +32,17 @@ function cr(e, ...t) {
|
|
|
32
32
|
const r = e.subscribe(...t);
|
|
33
33
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function P(e, t) {
|
|
36
36
|
e.appendChild(t);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
const n =
|
|
38
|
+
function cr(e, t, r) {
|
|
39
|
+
const n = fr(e);
|
|
40
40
|
if (!n.getElementById(t)) {
|
|
41
41
|
const i = T("style");
|
|
42
|
-
i.id = t, i.textContent = r,
|
|
42
|
+
i.id = t, i.textContent = r, pr(n, i);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function fr(e) {
|
|
46
46
|
if (!e)
|
|
47
47
|
return document;
|
|
48
48
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -52,8 +52,8 @@ function pr(e) {
|
|
|
52
52
|
t
|
|
53
53
|
) : e.ownerDocument;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
56
|
-
return
|
|
55
|
+
function pr(e, t) {
|
|
56
|
+
return P(
|
|
57
57
|
/** @type {Document} */
|
|
58
58
|
e.head || e,
|
|
59
59
|
t
|
|
@@ -62,21 +62,21 @@ function dr(e, t) {
|
|
|
62
62
|
function M(e, t, r) {
|
|
63
63
|
e.insertBefore(t, r || null);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function O(e) {
|
|
66
66
|
e.parentNode && e.parentNode.removeChild(e);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function Bt(e, t) {
|
|
69
69
|
for (let r = 0; r < e.length; r += 1)
|
|
70
70
|
e[r] && e[r].d(t);
|
|
71
71
|
}
|
|
72
72
|
function T(e) {
|
|
73
73
|
return document.createElement(e);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function Nt(e) {
|
|
76
76
|
return document.createTextNode(e);
|
|
77
77
|
}
|
|
78
78
|
function le() {
|
|
79
|
-
return
|
|
79
|
+
return Nt(" ");
|
|
80
80
|
}
|
|
81
81
|
function x(e, t, r) {
|
|
82
82
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
@@ -85,17 +85,17 @@ function V(e, t, r) {
|
|
|
85
85
|
const n = t.toLowerCase();
|
|
86
86
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : x(e, t, r);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function dr(e) {
|
|
89
89
|
return Array.from(e.childNodes);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function mr(e, t) {
|
|
92
92
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
93
93
|
t);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function et(e, t, r, n) {
|
|
96
96
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function br(e) {
|
|
99
99
|
const t = {};
|
|
100
100
|
return e.childNodes.forEach(
|
|
101
101
|
/** @param {Element} node */
|
|
@@ -104,90 +104,90 @@ function gr(e) {
|
|
|
104
104
|
}
|
|
105
105
|
), t;
|
|
106
106
|
}
|
|
107
|
-
let
|
|
108
|
-
function
|
|
109
|
-
|
|
107
|
+
let te;
|
|
108
|
+
function ee(e) {
|
|
109
|
+
te = e;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
if (!
|
|
111
|
+
function gr() {
|
|
112
|
+
if (!te)
|
|
113
113
|
throw new Error("Function called outside component initialization");
|
|
114
|
-
return
|
|
114
|
+
return te;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
117
|
-
|
|
116
|
+
function yr(e) {
|
|
117
|
+
gr().$$.on_mount.push(e);
|
|
118
118
|
}
|
|
119
|
-
const
|
|
119
|
+
const j = [], Oe = [];
|
|
120
120
|
let X = [];
|
|
121
|
-
const
|
|
122
|
-
let
|
|
123
|
-
function
|
|
124
|
-
|
|
121
|
+
const tt = [], vr = /* @__PURE__ */ Promise.resolve();
|
|
122
|
+
let Ie = !1;
|
|
123
|
+
function _r() {
|
|
124
|
+
Ie || (Ie = !0, vr.then(B));
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function Ce(e) {
|
|
127
127
|
X.push(e);
|
|
128
128
|
}
|
|
129
|
-
const
|
|
129
|
+
const Se = /* @__PURE__ */ new Set();
|
|
130
130
|
let F = 0;
|
|
131
131
|
function B() {
|
|
132
132
|
if (F !== 0)
|
|
133
133
|
return;
|
|
134
|
-
const e =
|
|
134
|
+
const e = te;
|
|
135
135
|
do {
|
|
136
136
|
try {
|
|
137
|
-
for (; F <
|
|
138
|
-
const t =
|
|
139
|
-
F++,
|
|
137
|
+
for (; F < j.length; ) {
|
|
138
|
+
const t = j[F];
|
|
139
|
+
F++, ee(t), xr(t.$$);
|
|
140
140
|
}
|
|
141
141
|
} catch (t) {
|
|
142
|
-
throw
|
|
142
|
+
throw j.length = 0, F = 0, t;
|
|
143
143
|
}
|
|
144
|
-
for (
|
|
145
|
-
|
|
144
|
+
for (ee(null), j.length = 0, F = 0; Oe.length; )
|
|
145
|
+
Oe.pop()();
|
|
146
146
|
for (let t = 0; t < X.length; t += 1) {
|
|
147
147
|
const r = X[t];
|
|
148
|
-
|
|
148
|
+
Se.has(r) || (Se.add(r), r());
|
|
149
149
|
}
|
|
150
150
|
X.length = 0;
|
|
151
|
-
} while (
|
|
152
|
-
for (;
|
|
153
|
-
|
|
154
|
-
|
|
151
|
+
} while (j.length);
|
|
152
|
+
for (; tt.length; )
|
|
153
|
+
tt.pop()();
|
|
154
|
+
Ie = !1, Se.clear(), ee(e);
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function xr(e) {
|
|
157
157
|
if (e.fragment !== null) {
|
|
158
|
-
e.update(),
|
|
158
|
+
e.update(), ie(e.before_update);
|
|
159
159
|
const t = e.dirty;
|
|
160
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
160
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ce);
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function Er(e) {
|
|
164
164
|
const t = [], r = [];
|
|
165
165
|
X.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), X = t;
|
|
166
166
|
}
|
|
167
|
-
const
|
|
168
|
-
function
|
|
169
|
-
e && e.i && (
|
|
167
|
+
const Sr = /* @__PURE__ */ new Set();
|
|
168
|
+
function Tr(e, t) {
|
|
169
|
+
e && e.i && (Sr.delete(e), e.i(t));
|
|
170
170
|
}
|
|
171
171
|
function me(e) {
|
|
172
172
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function Hr(e, t, r) {
|
|
175
175
|
const { fragment: n, after_update: i } = e.$$;
|
|
176
|
-
n && n.m(t, r),
|
|
177
|
-
const o = e.$$.on_mount.map(
|
|
178
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
179
|
-
}), i.forEach(
|
|
176
|
+
n && n.m(t, r), Ce(() => {
|
|
177
|
+
const o = e.$$.on_mount.map(Pt).filter(ze);
|
|
178
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ie(o), e.$$.on_mount = [];
|
|
179
|
+
}), i.forEach(Ce);
|
|
180
180
|
}
|
|
181
181
|
function Ar(e, t) {
|
|
182
182
|
const r = e.$$;
|
|
183
|
-
r.fragment !== null && (
|
|
183
|
+
r.fragment !== null && (Er(r.after_update), ie(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
184
184
|
}
|
|
185
185
|
function Pr(e, t) {
|
|
186
|
-
e.$$.dirty[0] === -1 && (
|
|
186
|
+
e.$$.dirty[0] === -1 && (j.push(e), _r(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
187
187
|
}
|
|
188
|
-
function
|
|
189
|
-
const h =
|
|
190
|
-
|
|
188
|
+
function wr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
189
|
+
const h = te;
|
|
190
|
+
ee(e);
|
|
191
191
|
const u = e.$$ = {
|
|
192
192
|
fragment: null,
|
|
193
193
|
ctx: [],
|
|
@@ -195,7 +195,7 @@ function Br(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
195
195
|
props: o,
|
|
196
196
|
update: H,
|
|
197
197
|
not_equal: i,
|
|
198
|
-
bound:
|
|
198
|
+
bound: Ye(),
|
|
199
199
|
// lifecycle
|
|
200
200
|
on_mount: [],
|
|
201
201
|
on_destroy: [],
|
|
@@ -204,7 +204,7 @@ function Br(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
204
204
|
after_update: [],
|
|
205
205
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
206
206
|
// everything else
|
|
207
|
-
callbacks:
|
|
207
|
+
callbacks: Ye(),
|
|
208
208
|
dirty: a,
|
|
209
209
|
skip_bound: !1,
|
|
210
210
|
root: t.target || h.$$.root
|
|
@@ -214,18 +214,18 @@ function Br(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
214
214
|
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...d) => {
|
|
215
215
|
const m = d.length ? d[0] : f;
|
|
216
216
|
return u.ctx && i(u.ctx[c], u.ctx[c] = m) && (!u.skip_bound && u.bound[c] && u.bound[c](m), l && Pr(e, c)), f;
|
|
217
|
-
}) : [], u.update(), l = !0,
|
|
217
|
+
}) : [], u.update(), l = !0, ie(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
218
218
|
if (t.hydrate) {
|
|
219
|
-
const c =
|
|
220
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
219
|
+
const c = dr(t.target);
|
|
220
|
+
u.fragment && u.fragment.l(c), c.forEach(O);
|
|
221
221
|
} else
|
|
222
222
|
u.fragment && u.fragment.c();
|
|
223
|
-
t.intro &&
|
|
223
|
+
t.intro && Tr(e.$$.fragment), Hr(e, t.target, t.anchor), B();
|
|
224
224
|
}
|
|
225
|
-
|
|
225
|
+
ee(h);
|
|
226
226
|
}
|
|
227
|
-
let
|
|
228
|
-
typeof HTMLElement == "function" && (
|
|
227
|
+
let Ot;
|
|
228
|
+
typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
229
229
|
/** The Svelte component constructor */
|
|
230
230
|
$$ctor;
|
|
231
231
|
/** Slots */
|
|
@@ -277,14 +277,14 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
277
277
|
M(h, o, u);
|
|
278
278
|
},
|
|
279
279
|
d: function(h) {
|
|
280
|
-
h &&
|
|
280
|
+
h && O(o);
|
|
281
281
|
}
|
|
282
282
|
};
|
|
283
283
|
};
|
|
284
284
|
};
|
|
285
285
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
286
286
|
return;
|
|
287
|
-
const t = {}, r =
|
|
287
|
+
const t = {}, r = br(this);
|
|
288
288
|
for (const i of this.$$s)
|
|
289
289
|
i in r && (t[i] = [e(i)]);
|
|
290
290
|
for (const i of this.attributes) {
|
|
@@ -371,8 +371,8 @@ function ce(e, t, r, n) {
|
|
|
371
371
|
return t;
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
|
-
function
|
|
375
|
-
let s = class extends
|
|
374
|
+
function Br(e, t, r, n, i, o) {
|
|
375
|
+
let s = class extends Ot {
|
|
376
376
|
constructor() {
|
|
377
377
|
super(e, r, i), this.$$p_d = t;
|
|
378
378
|
}
|
|
@@ -428,7 +428,7 @@ class Nr {
|
|
|
428
428
|
* @returns {() => void}
|
|
429
429
|
*/
|
|
430
430
|
$on(t, r) {
|
|
431
|
-
if (!
|
|
431
|
+
if (!ze(r))
|
|
432
432
|
return H;
|
|
433
433
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
434
434
|
return n.push(r), () => {
|
|
@@ -441,11 +441,11 @@ class Nr {
|
|
|
441
441
|
* @returns {void}
|
|
442
442
|
*/
|
|
443
443
|
$set(t) {
|
|
444
|
-
this.$$set && !
|
|
444
|
+
this.$$set && !hr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
|
-
const
|
|
448
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
447
|
+
const Or = "4";
|
|
448
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Or);
|
|
449
449
|
/*! *****************************************************************************
|
|
450
450
|
Copyright (c) Microsoft Corporation.
|
|
451
451
|
|
|
@@ -460,24 +460,43 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
460
460
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
461
461
|
PERFORMANCE OF THIS SOFTWARE.
|
|
462
462
|
***************************************************************************** */
|
|
463
|
-
var
|
|
464
|
-
return
|
|
463
|
+
var Le = function(e, t) {
|
|
464
|
+
return Le = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
465
465
|
r.__proto__ = n;
|
|
466
466
|
} || function(r, n) {
|
|
467
467
|
for (var i in n)
|
|
468
468
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
469
|
-
},
|
|
469
|
+
}, Le(e, t);
|
|
470
470
|
};
|
|
471
|
-
function
|
|
471
|
+
function I(e, t) {
|
|
472
472
|
if (typeof t != "function" && t !== null)
|
|
473
473
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
474
|
-
|
|
474
|
+
Le(e, t);
|
|
475
475
|
function r() {
|
|
476
476
|
this.constructor = e;
|
|
477
477
|
}
|
|
478
478
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
479
479
|
}
|
|
480
|
-
function
|
|
480
|
+
var v = function() {
|
|
481
|
+
return v = Object.assign || function(t) {
|
|
482
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
483
|
+
r = arguments[n];
|
|
484
|
+
for (var o in r)
|
|
485
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
486
|
+
}
|
|
487
|
+
return t;
|
|
488
|
+
}, v.apply(this, arguments);
|
|
489
|
+
};
|
|
490
|
+
function Ir(e, t) {
|
|
491
|
+
var r = {};
|
|
492
|
+
for (var n in e)
|
|
493
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
494
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
495
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
496
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
497
|
+
return r;
|
|
498
|
+
}
|
|
499
|
+
function Me(e) {
|
|
481
500
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
482
501
|
if (r)
|
|
483
502
|
return r.call(e);
|
|
@@ -489,7 +508,7 @@ function Re(e) {
|
|
|
489
508
|
};
|
|
490
509
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
491
510
|
}
|
|
492
|
-
function
|
|
511
|
+
function $e(e, t) {
|
|
493
512
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
494
513
|
if (!r)
|
|
495
514
|
return e;
|
|
@@ -509,8 +528,8 @@ function Ue(e, t) {
|
|
|
509
528
|
}
|
|
510
529
|
return o;
|
|
511
530
|
}
|
|
512
|
-
function
|
|
513
|
-
if (arguments.length === 2)
|
|
531
|
+
function W(e, t, r) {
|
|
532
|
+
if (r || arguments.length === 2)
|
|
514
533
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
515
534
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
516
535
|
return e.concat(o || t);
|
|
@@ -518,13 +537,13 @@ function De(e, t, r) {
|
|
|
518
537
|
function N(e) {
|
|
519
538
|
return typeof e == "function";
|
|
520
539
|
}
|
|
521
|
-
function
|
|
540
|
+
function It(e) {
|
|
522
541
|
var t = function(n) {
|
|
523
542
|
Error.call(n), n.stack = new Error().stack;
|
|
524
543
|
}, r = e(t);
|
|
525
544
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
526
545
|
}
|
|
527
|
-
var
|
|
546
|
+
var Te = It(function(e) {
|
|
528
547
|
return function(r) {
|
|
529
548
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
530
549
|
` + r.map(function(n, i) {
|
|
@@ -533,13 +552,13 @@ var we = Lt(function(e) {
|
|
|
533
552
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
534
553
|
};
|
|
535
554
|
});
|
|
536
|
-
function
|
|
555
|
+
function Re(e, t) {
|
|
537
556
|
if (e) {
|
|
538
557
|
var r = e.indexOf(t);
|
|
539
558
|
0 <= r && e.splice(r, 1);
|
|
540
559
|
}
|
|
541
560
|
}
|
|
542
|
-
var
|
|
561
|
+
var ye = function() {
|
|
543
562
|
function e(t) {
|
|
544
563
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
545
564
|
}
|
|
@@ -551,7 +570,7 @@ var ve = function() {
|
|
|
551
570
|
if (s)
|
|
552
571
|
if (this._parentage = null, Array.isArray(s))
|
|
553
572
|
try {
|
|
554
|
-
for (var a =
|
|
573
|
+
for (var a = Me(s), h = a.next(); !h.done; h = a.next()) {
|
|
555
574
|
var u = h.value;
|
|
556
575
|
u.remove(this);
|
|
557
576
|
}
|
|
@@ -572,18 +591,18 @@ var ve = function() {
|
|
|
572
591
|
try {
|
|
573
592
|
l();
|
|
574
593
|
} catch (p) {
|
|
575
|
-
o = p instanceof
|
|
594
|
+
o = p instanceof Te ? p.errors : [p];
|
|
576
595
|
}
|
|
577
596
|
var c = this._finalizers;
|
|
578
597
|
if (c) {
|
|
579
598
|
this._finalizers = null;
|
|
580
599
|
try {
|
|
581
|
-
for (var f =
|
|
600
|
+
for (var f = Me(c), d = f.next(); !d.done; d = f.next()) {
|
|
582
601
|
var m = d.value;
|
|
583
602
|
try {
|
|
584
|
-
|
|
603
|
+
rt(m);
|
|
585
604
|
} catch (p) {
|
|
586
|
-
o = o ?? [], p instanceof
|
|
605
|
+
o = o ?? [], p instanceof Te ? o = W(W([], $e(o)), $e(p.errors)) : o.push(p);
|
|
587
606
|
}
|
|
588
607
|
}
|
|
589
608
|
} catch (p) {
|
|
@@ -598,13 +617,13 @@ var ve = function() {
|
|
|
598
617
|
}
|
|
599
618
|
}
|
|
600
619
|
if (o)
|
|
601
|
-
throw new
|
|
620
|
+
throw new Te(o);
|
|
602
621
|
}
|
|
603
622
|
}, e.prototype.add = function(t) {
|
|
604
623
|
var r;
|
|
605
624
|
if (t && t !== this)
|
|
606
625
|
if (this.closed)
|
|
607
|
-
|
|
626
|
+
rt(t);
|
|
608
627
|
else {
|
|
609
628
|
if (t instanceof e) {
|
|
610
629
|
if (t.closed || t._hasParent(this))
|
|
@@ -621,52 +640,56 @@ var ve = function() {
|
|
|
621
640
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
622
641
|
}, e.prototype._removeParent = function(t) {
|
|
623
642
|
var r = this._parentage;
|
|
624
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
643
|
+
r === t ? this._parentage = null : Array.isArray(r) && Re(r, t);
|
|
625
644
|
}, e.prototype.remove = function(t) {
|
|
626
645
|
var r = this._finalizers;
|
|
627
|
-
r &&
|
|
646
|
+
r && Re(r, t), t instanceof e && t._removeParent(this);
|
|
628
647
|
}, e.EMPTY = function() {
|
|
629
648
|
var t = new e();
|
|
630
649
|
return t.closed = !0, t;
|
|
631
650
|
}(), e;
|
|
632
|
-
}(),
|
|
633
|
-
function
|
|
634
|
-
return e instanceof
|
|
651
|
+
}(), Ct = ye.EMPTY;
|
|
652
|
+
function Lt(e) {
|
|
653
|
+
return e instanceof ye || e && "closed" in e && N(e.remove) && N(e.add) && N(e.unsubscribe);
|
|
635
654
|
}
|
|
636
|
-
function
|
|
655
|
+
function rt(e) {
|
|
637
656
|
N(e) ? e() : e.unsubscribe();
|
|
638
657
|
}
|
|
639
|
-
var
|
|
640
|
-
|
|
641
|
-
|
|
658
|
+
var Mt = {
|
|
659
|
+
onUnhandledError: null,
|
|
660
|
+
onStoppedNotification: null,
|
|
661
|
+
Promise: void 0,
|
|
662
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
663
|
+
useDeprecatedNextContext: !1
|
|
664
|
+
}, Cr = {
|
|
642
665
|
setTimeout: function(e, t) {
|
|
643
666
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
644
667
|
r[n - 2] = arguments[n];
|
|
645
|
-
return setTimeout.apply(void 0,
|
|
668
|
+
return setTimeout.apply(void 0, W([e, t], $e(r)));
|
|
646
669
|
},
|
|
647
670
|
clearTimeout: function(e) {
|
|
648
671
|
return clearTimeout(e);
|
|
649
672
|
},
|
|
650
673
|
delegate: void 0
|
|
651
674
|
};
|
|
652
|
-
function
|
|
653
|
-
|
|
675
|
+
function Lr(e) {
|
|
676
|
+
Cr.setTimeout(function() {
|
|
654
677
|
throw e;
|
|
655
678
|
});
|
|
656
679
|
}
|
|
657
|
-
function
|
|
680
|
+
function nt() {
|
|
658
681
|
}
|
|
659
682
|
function fe(e) {
|
|
660
683
|
e();
|
|
661
684
|
}
|
|
662
|
-
var
|
|
663
|
-
|
|
685
|
+
var $t = function(e) {
|
|
686
|
+
I(t, e);
|
|
664
687
|
function t(r) {
|
|
665
688
|
var n = e.call(this) || this;
|
|
666
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
689
|
+
return n.isStopped = !1, r ? (n.destination = r, Lt(r) && r.add(n)) : n.destination = Ur, n;
|
|
667
690
|
}
|
|
668
691
|
return t.create = function(r, n, i) {
|
|
669
|
-
return new
|
|
692
|
+
return new Ue(r, n, i);
|
|
670
693
|
}, t.prototype.next = function(r) {
|
|
671
694
|
this.isStopped || this._next(r);
|
|
672
695
|
}, t.prototype.error = function(r) {
|
|
@@ -690,7 +713,11 @@ var Rt = function(e) {
|
|
|
690
713
|
this.unsubscribe();
|
|
691
714
|
}
|
|
692
715
|
}, t;
|
|
693
|
-
}(
|
|
716
|
+
}(ye), Mr = Function.prototype.bind;
|
|
717
|
+
function He(e, t) {
|
|
718
|
+
return Mr.call(e, t);
|
|
719
|
+
}
|
|
720
|
+
var $r = function() {
|
|
694
721
|
function e(t) {
|
|
695
722
|
this.partialObserver = t;
|
|
696
723
|
}
|
|
@@ -721,29 +748,41 @@ var Rt = function(e) {
|
|
|
721
748
|
ue(r);
|
|
722
749
|
}
|
|
723
750
|
}, e;
|
|
724
|
-
}(),
|
|
725
|
-
|
|
751
|
+
}(), Ue = function(e) {
|
|
752
|
+
I(t, e);
|
|
726
753
|
function t(r, n, i) {
|
|
727
754
|
var o = e.call(this) || this, s;
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
755
|
+
if (N(r) || !r)
|
|
756
|
+
s = {
|
|
757
|
+
next: r ?? void 0,
|
|
758
|
+
error: n ?? void 0,
|
|
759
|
+
complete: i ?? void 0
|
|
760
|
+
};
|
|
761
|
+
else {
|
|
762
|
+
var a;
|
|
763
|
+
o && Mt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
764
|
+
return o.unsubscribe();
|
|
765
|
+
}, s = {
|
|
766
|
+
next: r.next && He(r.next, a),
|
|
767
|
+
error: r.error && He(r.error, a),
|
|
768
|
+
complete: r.complete && He(r.complete, a)
|
|
769
|
+
}) : s = r;
|
|
770
|
+
}
|
|
771
|
+
return o.destination = new $r(s), o;
|
|
733
772
|
}
|
|
734
773
|
return t;
|
|
735
|
-
}(
|
|
774
|
+
}($t);
|
|
736
775
|
function ue(e) {
|
|
737
|
-
|
|
776
|
+
Lr(e);
|
|
738
777
|
}
|
|
739
778
|
function Rr(e) {
|
|
740
779
|
throw e;
|
|
741
780
|
}
|
|
742
781
|
var Ur = {
|
|
743
782
|
closed: !0,
|
|
744
|
-
next:
|
|
783
|
+
next: nt,
|
|
745
784
|
error: Rr,
|
|
746
|
-
complete:
|
|
785
|
+
complete: nt
|
|
747
786
|
}, Dr = function() {
|
|
748
787
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
749
788
|
}();
|
|
@@ -757,7 +796,7 @@ function Fr(e) {
|
|
|
757
796
|
}, r);
|
|
758
797
|
};
|
|
759
798
|
}
|
|
760
|
-
var
|
|
799
|
+
var it = function() {
|
|
761
800
|
function e(t) {
|
|
762
801
|
t && (this._subscribe = t);
|
|
763
802
|
}
|
|
@@ -765,7 +804,7 @@ var st = function() {
|
|
|
765
804
|
var r = new e();
|
|
766
805
|
return r.source = this, r.operator = t, r;
|
|
767
806
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
768
|
-
var i = this, o =
|
|
807
|
+
var i = this, o = jr(t) ? t : new Ue(t, r, n);
|
|
769
808
|
return fe(function() {
|
|
770
809
|
var s = i, a = s.operator, h = s.source;
|
|
771
810
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -778,8 +817,8 @@ var st = function() {
|
|
|
778
817
|
}
|
|
779
818
|
}, e.prototype.forEach = function(t, r) {
|
|
780
819
|
var n = this;
|
|
781
|
-
return r =
|
|
782
|
-
var s = new
|
|
820
|
+
return r = ot(r), new r(function(i, o) {
|
|
821
|
+
var s = new Ue({
|
|
783
822
|
next: function(a) {
|
|
784
823
|
try {
|
|
785
824
|
t(a);
|
|
@@ -803,7 +842,7 @@ var st = function() {
|
|
|
803
842
|
return Fr(t)(this);
|
|
804
843
|
}, e.prototype.toPromise = function(t) {
|
|
805
844
|
var r = this;
|
|
806
|
-
return t =
|
|
845
|
+
return t = ot(t), new t(function(n, i) {
|
|
807
846
|
var o;
|
|
808
847
|
r.subscribe(function(s) {
|
|
809
848
|
return o = s;
|
|
@@ -817,28 +856,28 @@ var st = function() {
|
|
|
817
856
|
return new e(t);
|
|
818
857
|
}, e;
|
|
819
858
|
}();
|
|
820
|
-
function
|
|
859
|
+
function ot(e) {
|
|
821
860
|
var t;
|
|
822
|
-
return (t = e ??
|
|
861
|
+
return (t = e ?? Mt.Promise) !== null && t !== void 0 ? t : Promise;
|
|
823
862
|
}
|
|
824
|
-
function
|
|
863
|
+
function kr(e) {
|
|
825
864
|
return e && N(e.next) && N(e.error) && N(e.complete);
|
|
826
865
|
}
|
|
827
|
-
function
|
|
828
|
-
return e && e instanceof
|
|
866
|
+
function jr(e) {
|
|
867
|
+
return e && e instanceof $t || kr(e) && Lt(e);
|
|
829
868
|
}
|
|
830
|
-
var Vr =
|
|
869
|
+
var Vr = It(function(e) {
|
|
831
870
|
return function() {
|
|
832
871
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
833
872
|
};
|
|
834
|
-
}),
|
|
835
|
-
|
|
873
|
+
}), Rt = function(e) {
|
|
874
|
+
I(t, e);
|
|
836
875
|
function t() {
|
|
837
876
|
var r = e.call(this) || this;
|
|
838
877
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
839
878
|
}
|
|
840
879
|
return t.prototype.lift = function(r) {
|
|
841
|
-
var n = new
|
|
880
|
+
var n = new st(this, this);
|
|
842
881
|
return n.operator = r, n;
|
|
843
882
|
}, t.prototype._throwIfClosed = function() {
|
|
844
883
|
if (this.closed)
|
|
@@ -850,7 +889,7 @@ var Vr = Lt(function(e) {
|
|
|
850
889
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
851
890
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
852
891
|
try {
|
|
853
|
-
for (var s =
|
|
892
|
+
for (var s = Me(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
854
893
|
var h = a.value;
|
|
855
894
|
h.next(r);
|
|
856
895
|
}
|
|
@@ -899,20 +938,20 @@ var Vr = Lt(function(e) {
|
|
|
899
938
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
900
939
|
}, t.prototype._innerSubscribe = function(r) {
|
|
901
940
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
902
|
-
return o || s ?
|
|
903
|
-
n.currentObservers = null,
|
|
941
|
+
return o || s ? Ct : (this.currentObservers = null, a.push(r), new ye(function() {
|
|
942
|
+
n.currentObservers = null, Re(a, r);
|
|
904
943
|
}));
|
|
905
944
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
906
945
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
907
946
|
i ? r.error(o) : s && r.complete();
|
|
908
947
|
}, t.prototype.asObservable = function() {
|
|
909
|
-
var r = new
|
|
948
|
+
var r = new it();
|
|
910
949
|
return r.source = this, r;
|
|
911
950
|
}, t.create = function(r, n) {
|
|
912
|
-
return new
|
|
951
|
+
return new st(r, n);
|
|
913
952
|
}, t;
|
|
914
|
-
}(
|
|
915
|
-
|
|
953
|
+
}(it), st = function(e) {
|
|
954
|
+
I(t, e);
|
|
916
955
|
function t(r, n) {
|
|
917
956
|
var i = e.call(this) || this;
|
|
918
957
|
return i.destination = r, i.source = n, i;
|
|
@@ -928,17 +967,17 @@ var Vr = Lt(function(e) {
|
|
|
928
967
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
929
968
|
}, t.prototype._subscribe = function(r) {
|
|
930
969
|
var n, i;
|
|
931
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
970
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ct;
|
|
932
971
|
}, t;
|
|
933
|
-
}(
|
|
972
|
+
}(Rt), Ut = {
|
|
934
973
|
now: function() {
|
|
935
|
-
return (
|
|
974
|
+
return (Ut.delegate || Date).now();
|
|
936
975
|
},
|
|
937
976
|
delegate: void 0
|
|
938
977
|
}, Xr = function(e) {
|
|
939
|
-
|
|
978
|
+
I(t, e);
|
|
940
979
|
function t(r, n, i) {
|
|
941
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
980
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ut);
|
|
942
981
|
var o = e.call(this) || this;
|
|
943
982
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
944
983
|
}
|
|
@@ -958,31 +997,31 @@ var Vr = Lt(function(e) {
|
|
|
958
997
|
u && o.splice(0, u + 1);
|
|
959
998
|
}
|
|
960
999
|
}, t;
|
|
961
|
-
}(
|
|
962
|
-
const
|
|
963
|
-
if (
|
|
1000
|
+
}(Rt);
|
|
1001
|
+
const at = [], ut = {}, Wr = (e, t = 0) => {
|
|
1002
|
+
if (at.indexOf(e) == -1) {
|
|
964
1003
|
const r = new Xr(t);
|
|
965
|
-
|
|
1004
|
+
ut[e] = r, at.push(e);
|
|
966
1005
|
}
|
|
967
|
-
return
|
|
968
|
-
},
|
|
1006
|
+
return ut[e];
|
|
1007
|
+
}, k = [];
|
|
969
1008
|
function zr(e, t) {
|
|
970
1009
|
return {
|
|
971
|
-
subscribe:
|
|
1010
|
+
subscribe: ve(e, t).subscribe
|
|
972
1011
|
};
|
|
973
1012
|
}
|
|
974
|
-
function
|
|
1013
|
+
function ve(e, t = H) {
|
|
975
1014
|
let r;
|
|
976
1015
|
const n = /* @__PURE__ */ new Set();
|
|
977
1016
|
function i(a) {
|
|
978
|
-
if (
|
|
979
|
-
const h = !
|
|
1017
|
+
if (wt(e, a) && (e = a, r)) {
|
|
1018
|
+
const h = !k.length;
|
|
980
1019
|
for (const u of n)
|
|
981
|
-
u[1](),
|
|
1020
|
+
u[1](), k.push(u, e);
|
|
982
1021
|
if (h) {
|
|
983
|
-
for (let u = 0; u <
|
|
984
|
-
|
|
985
|
-
|
|
1022
|
+
for (let u = 0; u < k.length; u += 2)
|
|
1023
|
+
k[u][0](k[u + 1]);
|
|
1024
|
+
k.length = 0;
|
|
986
1025
|
}
|
|
987
1026
|
}
|
|
988
1027
|
}
|
|
@@ -997,7 +1036,7 @@ function _e(e, t = H) {
|
|
|
997
1036
|
}
|
|
998
1037
|
return { set: i, update: o, subscribe: s };
|
|
999
1038
|
}
|
|
1000
|
-
function
|
|
1039
|
+
function q(e, t, r) {
|
|
1001
1040
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1002
1041
|
if (!i.every(Boolean))
|
|
1003
1042
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -1011,9 +1050,9 @@ function J(e, t, r) {
|
|
|
1011
1050
|
return;
|
|
1012
1051
|
c();
|
|
1013
1052
|
const m = t(n ? u[0] : u, s, a);
|
|
1014
|
-
o ? s(m) : c =
|
|
1053
|
+
o ? s(m) : c = ze(m) ? m : H;
|
|
1015
1054
|
}, d = i.map(
|
|
1016
|
-
(m, p) =>
|
|
1055
|
+
(m, p) => lr(
|
|
1017
1056
|
m,
|
|
1018
1057
|
(S) => {
|
|
1019
1058
|
u[p] = S, l &= ~(1 << p), h && f();
|
|
@@ -1024,7 +1063,7 @@ function J(e, t, r) {
|
|
|
1024
1063
|
)
|
|
1025
1064
|
);
|
|
1026
1065
|
return h = !0, f(), function() {
|
|
1027
|
-
|
|
1066
|
+
ie(d), c(), h = !1;
|
|
1028
1067
|
};
|
|
1029
1068
|
});
|
|
1030
1069
|
}
|
|
@@ -1048,29 +1087,29 @@ function en(e) {
|
|
|
1048
1087
|
function tn(e) {
|
|
1049
1088
|
return Array.isArray(e) ? [] : {};
|
|
1050
1089
|
}
|
|
1051
|
-
function
|
|
1052
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1090
|
+
function re(e, t) {
|
|
1091
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? z(tn(e), e, t) : e;
|
|
1053
1092
|
}
|
|
1054
1093
|
function rn(e, t, r) {
|
|
1055
1094
|
return e.concat(t).map(function(n) {
|
|
1056
|
-
return
|
|
1095
|
+
return re(n, r);
|
|
1057
1096
|
});
|
|
1058
1097
|
}
|
|
1059
1098
|
function nn(e, t) {
|
|
1060
1099
|
if (!t.customMerge)
|
|
1061
|
-
return
|
|
1100
|
+
return z;
|
|
1062
1101
|
var r = t.customMerge(e);
|
|
1063
|
-
return typeof r == "function" ? r :
|
|
1102
|
+
return typeof r == "function" ? r : z;
|
|
1064
1103
|
}
|
|
1065
1104
|
function on(e) {
|
|
1066
1105
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1067
1106
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1068
1107
|
}) : [];
|
|
1069
1108
|
}
|
|
1070
|
-
function
|
|
1109
|
+
function ht(e) {
|
|
1071
1110
|
return Object.keys(e).concat(on(e));
|
|
1072
1111
|
}
|
|
1073
|
-
function
|
|
1112
|
+
function Dt(e, t) {
|
|
1074
1113
|
try {
|
|
1075
1114
|
return t in e;
|
|
1076
1115
|
} catch {
|
|
@@ -1078,179 +1117,129 @@ function Gt(e, t) {
|
|
|
1078
1117
|
}
|
|
1079
1118
|
}
|
|
1080
1119
|
function sn(e, t) {
|
|
1081
|
-
return
|
|
1120
|
+
return Dt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1082
1121
|
}
|
|
1083
1122
|
function an(e, t, r) {
|
|
1084
1123
|
var n = {};
|
|
1085
|
-
return r.isMergeableObject(e) &&
|
|
1086
|
-
n[i] =
|
|
1087
|
-
}),
|
|
1088
|
-
sn(e, i) || (
|
|
1124
|
+
return r.isMergeableObject(e) && ht(e).forEach(function(i) {
|
|
1125
|
+
n[i] = re(e[i], r);
|
|
1126
|
+
}), ht(t).forEach(function(i) {
|
|
1127
|
+
sn(e, i) || (Dt(e, i) && r.isMergeableObject(t[i]) ? n[i] = nn(i, r)(e[i], t[i], r) : n[i] = re(t[i], r));
|
|
1089
1128
|
}), n;
|
|
1090
1129
|
}
|
|
1091
|
-
function
|
|
1092
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || rn, r.isMergeableObject = r.isMergeableObject || Qr, r.cloneUnlessOtherwiseSpecified =
|
|
1130
|
+
function z(e, t, r) {
|
|
1131
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || rn, r.isMergeableObject = r.isMergeableObject || Qr, r.cloneUnlessOtherwiseSpecified = re;
|
|
1093
1132
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1094
|
-
return o ? n ? r.arrayMerge(e, t, r) : an(e, t, r) :
|
|
1133
|
+
return o ? n ? r.arrayMerge(e, t, r) : an(e, t, r) : re(t, r);
|
|
1095
1134
|
}
|
|
1096
|
-
|
|
1135
|
+
z.all = function(t, r) {
|
|
1097
1136
|
if (!Array.isArray(t))
|
|
1098
1137
|
throw new Error("first argument should be an array");
|
|
1099
1138
|
return t.reduce(function(n, i) {
|
|
1100
|
-
return
|
|
1139
|
+
return z(n, i, r);
|
|
1101
1140
|
}, {});
|
|
1102
1141
|
};
|
|
1103
|
-
var un =
|
|
1142
|
+
var un = z, hn = un;
|
|
1104
1143
|
const ln = /* @__PURE__ */ Zr(hn);
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
r.__proto__ = n;
|
|
1108
|
-
} || function(r, n) {
|
|
1109
|
-
for (var i in n)
|
|
1110
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1111
|
-
}, je(e, t);
|
|
1112
|
-
};
|
|
1113
|
-
function xe(e, t) {
|
|
1114
|
-
if (typeof t != "function" && t !== null)
|
|
1115
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1116
|
-
je(e, t);
|
|
1117
|
-
function r() {
|
|
1118
|
-
this.constructor = e;
|
|
1119
|
-
}
|
|
1120
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1121
|
-
}
|
|
1122
|
-
var O = function() {
|
|
1123
|
-
return O = Object.assign || function(t) {
|
|
1124
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1125
|
-
r = arguments[n];
|
|
1126
|
-
for (var o in r)
|
|
1127
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1128
|
-
}
|
|
1129
|
-
return t;
|
|
1130
|
-
}, O.apply(this, arguments);
|
|
1131
|
-
};
|
|
1132
|
-
function cn(e, t) {
|
|
1133
|
-
var r = {};
|
|
1134
|
-
for (var n in e)
|
|
1135
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1136
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1137
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1138
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1139
|
-
return r;
|
|
1140
|
-
}
|
|
1141
|
-
function Ae(e, t, r) {
|
|
1142
|
-
if (r || arguments.length === 2)
|
|
1143
|
-
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1144
|
-
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1145
|
-
return e.concat(o || Array.prototype.slice.call(t));
|
|
1146
|
-
}
|
|
1147
|
-
function Pe(e, t) {
|
|
1148
|
-
var r = t && t.cache ? t.cache : yn, n = t && t.serializer ? t.serializer : bn, i = t && t.strategy ? t.strategy : dn;
|
|
1144
|
+
function Ae(e, t) {
|
|
1145
|
+
var r = t && t.cache ? t.cache : bn, n = t && t.serializer ? t.serializer : mn, i = t && t.strategy ? t.strategy : fn;
|
|
1149
1146
|
return i(e, {
|
|
1150
1147
|
cache: r,
|
|
1151
1148
|
serializer: n
|
|
1152
1149
|
});
|
|
1153
1150
|
}
|
|
1154
|
-
function
|
|
1151
|
+
function cn(e) {
|
|
1155
1152
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1156
1153
|
}
|
|
1157
|
-
function
|
|
1158
|
-
var i =
|
|
1154
|
+
function Gt(e, t, r, n) {
|
|
1155
|
+
var i = cn(n) ? n : r(n), o = t.get(i);
|
|
1159
1156
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1160
1157
|
}
|
|
1161
1158
|
function Ft(e, t, r) {
|
|
1162
1159
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1163
1160
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1164
1161
|
}
|
|
1165
|
-
function
|
|
1162
|
+
function Ze(e, t, r, n, i) {
|
|
1166
1163
|
return r.bind(t, e, n, i);
|
|
1167
1164
|
}
|
|
1168
|
-
function
|
|
1169
|
-
var r = e.length === 1 ?
|
|
1170
|
-
return
|
|
1165
|
+
function fn(e, t) {
|
|
1166
|
+
var r = e.length === 1 ? Gt : Ft;
|
|
1167
|
+
return Ze(e, this, r, t.cache.create(), t.serializer);
|
|
1168
|
+
}
|
|
1169
|
+
function pn(e, t) {
|
|
1170
|
+
return Ze(e, this, Ft, t.cache.create(), t.serializer);
|
|
1171
1171
|
}
|
|
1172
|
-
function
|
|
1173
|
-
return
|
|
1172
|
+
function dn(e, t) {
|
|
1173
|
+
return Ze(e, this, Gt, t.cache.create(), t.serializer);
|
|
1174
1174
|
}
|
|
1175
|
-
var
|
|
1175
|
+
var mn = function() {
|
|
1176
1176
|
return JSON.stringify(arguments);
|
|
1177
|
-
}
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
}()
|
|
1189
|
-
), yn = {
|
|
1177
|
+
};
|
|
1178
|
+
function Qe() {
|
|
1179
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1180
|
+
}
|
|
1181
|
+
Qe.prototype.get = function(e) {
|
|
1182
|
+
return this.cache[e];
|
|
1183
|
+
};
|
|
1184
|
+
Qe.prototype.set = function(e, t) {
|
|
1185
|
+
this.cache[e] = t;
|
|
1186
|
+
};
|
|
1187
|
+
var bn = {
|
|
1190
1188
|
create: function() {
|
|
1191
|
-
return new
|
|
1189
|
+
return new Qe();
|
|
1192
1190
|
}
|
|
1193
|
-
},
|
|
1194
|
-
variadic:
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1198
|
-
r = arguments[n];
|
|
1199
|
-
for (var o in r)
|
|
1200
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1201
|
-
}
|
|
1202
|
-
return t;
|
|
1203
|
-
}, be.apply(this, arguments);
|
|
1204
|
-
};
|
|
1205
|
-
var b;
|
|
1191
|
+
}, Pe = {
|
|
1192
|
+
variadic: pn,
|
|
1193
|
+
monadic: dn
|
|
1194
|
+
}, b;
|
|
1206
1195
|
(function(e) {
|
|
1207
1196
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
1208
1197
|
})(b || (b = {}));
|
|
1209
|
-
var
|
|
1198
|
+
var _;
|
|
1210
1199
|
(function(e) {
|
|
1211
1200
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
1212
|
-
})(
|
|
1213
|
-
var
|
|
1201
|
+
})(_ || (_ = {}));
|
|
1202
|
+
var Z;
|
|
1214
1203
|
(function(e) {
|
|
1215
1204
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1216
|
-
})(
|
|
1217
|
-
function
|
|
1218
|
-
return e.type ===
|
|
1205
|
+
})(Z || (Z = {}));
|
|
1206
|
+
function lt(e) {
|
|
1207
|
+
return e.type === _.literal;
|
|
1219
1208
|
}
|
|
1220
|
-
function
|
|
1221
|
-
return e.type ===
|
|
1209
|
+
function gn(e) {
|
|
1210
|
+
return e.type === _.argument;
|
|
1222
1211
|
}
|
|
1223
1212
|
function kt(e) {
|
|
1224
|
-
return e.type ===
|
|
1213
|
+
return e.type === _.number;
|
|
1214
|
+
}
|
|
1215
|
+
function jt(e) {
|
|
1216
|
+
return e.type === _.date;
|
|
1225
1217
|
}
|
|
1226
1218
|
function Vt(e) {
|
|
1227
|
-
return e.type ===
|
|
1219
|
+
return e.type === _.time;
|
|
1228
1220
|
}
|
|
1229
1221
|
function Xt(e) {
|
|
1230
|
-
return e.type ===
|
|
1222
|
+
return e.type === _.select;
|
|
1231
1223
|
}
|
|
1232
1224
|
function Wt(e) {
|
|
1233
|
-
return e.type ===
|
|
1225
|
+
return e.type === _.plural;
|
|
1234
1226
|
}
|
|
1235
|
-
function
|
|
1236
|
-
return e.type ===
|
|
1227
|
+
function yn(e) {
|
|
1228
|
+
return e.type === _.pound;
|
|
1237
1229
|
}
|
|
1238
|
-
function
|
|
1239
|
-
return e.type ===
|
|
1230
|
+
function zt(e) {
|
|
1231
|
+
return e.type === _.tag;
|
|
1240
1232
|
}
|
|
1241
1233
|
function Zt(e) {
|
|
1242
|
-
return e.type ===
|
|
1234
|
+
return !!(e && typeof e == "object" && e.type === Z.number);
|
|
1243
1235
|
}
|
|
1244
|
-
function
|
|
1245
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1236
|
+
function De(e) {
|
|
1237
|
+
return !!(e && typeof e == "object" && e.type === Z.dateTime);
|
|
1246
1238
|
}
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
}
|
|
1250
|
-
var Jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, xn = /(?:[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;
|
|
1251
|
-
function En(e) {
|
|
1239
|
+
var Qt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, vn = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
1240
|
+
function _n(e) {
|
|
1252
1241
|
var t = {};
|
|
1253
|
-
return e.replace(
|
|
1242
|
+
return e.replace(vn, function(r) {
|
|
1254
1243
|
var n = r.length;
|
|
1255
1244
|
switch (r[0]) {
|
|
1256
1245
|
case "G":
|
|
@@ -1339,21 +1328,11 @@ function En(e) {
|
|
|
1339
1328
|
return "";
|
|
1340
1329
|
}), t;
|
|
1341
1330
|
}
|
|
1342
|
-
var
|
|
1343
|
-
|
|
1344
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1345
|
-
r = arguments[n];
|
|
1346
|
-
for (var o in r)
|
|
1347
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1348
|
-
}
|
|
1349
|
-
return t;
|
|
1350
|
-
}, _.apply(this, arguments);
|
|
1351
|
-
};
|
|
1352
|
-
var Sn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1353
|
-
function Tn(e) {
|
|
1331
|
+
var xn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1332
|
+
function En(e) {
|
|
1354
1333
|
if (e.length === 0)
|
|
1355
1334
|
throw new Error("Number skeleton cannot be empty");
|
|
1356
|
-
for (var t = e.split(
|
|
1335
|
+
for (var t = e.split(xn).filter(function(f) {
|
|
1357
1336
|
return f.length > 0;
|
|
1358
1337
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1359
1338
|
var o = i[n], s = o.split("/");
|
|
@@ -1368,17 +1347,17 @@ function Tn(e) {
|
|
|
1368
1347
|
}
|
|
1369
1348
|
return r;
|
|
1370
1349
|
}
|
|
1371
|
-
function
|
|
1350
|
+
function Sn(e) {
|
|
1372
1351
|
return e.replace(/^(.*?)-/, "");
|
|
1373
1352
|
}
|
|
1374
|
-
var
|
|
1375
|
-
function
|
|
1353
|
+
var ct = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Jt = /^(@+)?(\+|#+)?[rs]?$/g, Tn = /(\*)(0+)|(#+)(0+)|(0+)/g, qt = /^(0+)$/;
|
|
1354
|
+
function ft(e) {
|
|
1376
1355
|
var t = {};
|
|
1377
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1356
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Jt, function(r, n, i) {
|
|
1378
1357
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1379
1358
|
}), t;
|
|
1380
1359
|
}
|
|
1381
|
-
function
|
|
1360
|
+
function Yt(e) {
|
|
1382
1361
|
switch (e) {
|
|
1383
1362
|
case "sign-auto":
|
|
1384
1363
|
return {
|
|
@@ -1418,7 +1397,7 @@ function Kt(e) {
|
|
|
1418
1397
|
};
|
|
1419
1398
|
}
|
|
1420
1399
|
}
|
|
1421
|
-
function
|
|
1400
|
+
function Hn(e) {
|
|
1422
1401
|
var t;
|
|
1423
1402
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1424
1403
|
notation: "engineering"
|
|
@@ -1426,17 +1405,17 @@ function An(e) {
|
|
|
1426
1405
|
notation: "scientific"
|
|
1427
1406
|
}, e = e.slice(1)), t) {
|
|
1428
1407
|
var r = e.slice(0, 2);
|
|
1429
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1408
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !qt.test(e))
|
|
1430
1409
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1431
1410
|
t.minimumIntegerDigits = e.length;
|
|
1432
1411
|
}
|
|
1433
1412
|
return t;
|
|
1434
1413
|
}
|
|
1435
|
-
function
|
|
1436
|
-
var t = {}, r =
|
|
1414
|
+
function pt(e) {
|
|
1415
|
+
var t = {}, r = Yt(e);
|
|
1437
1416
|
return r || t;
|
|
1438
1417
|
}
|
|
1439
|
-
function
|
|
1418
|
+
function An(e) {
|
|
1440
1419
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1441
1420
|
var i = n[r];
|
|
1442
1421
|
switch (i.stem) {
|
|
@@ -1460,7 +1439,7 @@ function Pn(e) {
|
|
|
1460
1439
|
continue;
|
|
1461
1440
|
case "measure-unit":
|
|
1462
1441
|
case "unit":
|
|
1463
|
-
t.style = "unit", t.unit =
|
|
1442
|
+
t.style = "unit", t.unit = Sn(i.options[0]);
|
|
1464
1443
|
continue;
|
|
1465
1444
|
case "compact-short":
|
|
1466
1445
|
case "K":
|
|
@@ -1471,13 +1450,13 @@ function Pn(e) {
|
|
|
1471
1450
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1472
1451
|
continue;
|
|
1473
1452
|
case "scientific":
|
|
1474
|
-
t =
|
|
1475
|
-
return
|
|
1453
|
+
t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1454
|
+
return v(v({}, h), pt(u));
|
|
1476
1455
|
}, {}));
|
|
1477
1456
|
continue;
|
|
1478
1457
|
case "engineering":
|
|
1479
|
-
t =
|
|
1480
|
-
return
|
|
1458
|
+
t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1459
|
+
return v(v({}, h), pt(u));
|
|
1481
1460
|
}, {}));
|
|
1482
1461
|
continue;
|
|
1483
1462
|
case "notation-simple":
|
|
@@ -1522,7 +1501,7 @@ function Pn(e) {
|
|
|
1522
1501
|
case "integer-width":
|
|
1523
1502
|
if (i.options.length > 1)
|
|
1524
1503
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1525
|
-
i.options[0].replace(
|
|
1504
|
+
i.options[0].replace(Tn, function(h, u, l, c, f, d) {
|
|
1526
1505
|
if (u)
|
|
1527
1506
|
t.minimumIntegerDigits = l.length;
|
|
1528
1507
|
else {
|
|
@@ -1535,28 +1514,28 @@ function Pn(e) {
|
|
|
1535
1514
|
});
|
|
1536
1515
|
continue;
|
|
1537
1516
|
}
|
|
1538
|
-
if (
|
|
1517
|
+
if (qt.test(i.stem)) {
|
|
1539
1518
|
t.minimumIntegerDigits = i.stem.length;
|
|
1540
1519
|
continue;
|
|
1541
1520
|
}
|
|
1542
|
-
if (
|
|
1521
|
+
if (ct.test(i.stem)) {
|
|
1543
1522
|
if (i.options.length > 1)
|
|
1544
1523
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1545
|
-
i.stem.replace(
|
|
1524
|
+
i.stem.replace(ct, function(h, u, l, c, f, d) {
|
|
1546
1525
|
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && d ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1547
1526
|
});
|
|
1548
1527
|
var o = i.options[0];
|
|
1549
|
-
o === "w" ? t =
|
|
1528
|
+
o === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = v(v({}, t), ft(o)));
|
|
1550
1529
|
continue;
|
|
1551
1530
|
}
|
|
1552
|
-
if (
|
|
1553
|
-
t =
|
|
1531
|
+
if (Jt.test(i.stem)) {
|
|
1532
|
+
t = v(v({}, t), ft(i.stem));
|
|
1554
1533
|
continue;
|
|
1555
1534
|
}
|
|
1556
|
-
var s =
|
|
1557
|
-
s && (t =
|
|
1558
|
-
var a =
|
|
1559
|
-
a && (t =
|
|
1535
|
+
var s = Yt(i.stem);
|
|
1536
|
+
s && (t = v(v({}, t), s));
|
|
1537
|
+
var a = Hn(i.stem);
|
|
1538
|
+
a && (t = v(v({}, t), a));
|
|
1560
1539
|
}
|
|
1561
1540
|
return t;
|
|
1562
1541
|
}
|
|
@@ -2975,13 +2954,13 @@ var he = {
|
|
|
2975
2954
|
"h"
|
|
2976
2955
|
]
|
|
2977
2956
|
};
|
|
2978
|
-
function
|
|
2957
|
+
function Pn(e, t) {
|
|
2979
2958
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2980
2959
|
var i = e.charAt(n);
|
|
2981
2960
|
if (i === "j") {
|
|
2982
2961
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2983
2962
|
o++, n++;
|
|
2984
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2963
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = wn(t);
|
|
2985
2964
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2986
2965
|
r += h;
|
|
2987
2966
|
for (; s-- > 0; )
|
|
@@ -2991,7 +2970,7 @@ function Bn(e, t) {
|
|
|
2991
2970
|
}
|
|
2992
2971
|
return r;
|
|
2993
2972
|
}
|
|
2994
|
-
function
|
|
2973
|
+
function wn(e) {
|
|
2995
2974
|
var t = e.hourCycle;
|
|
2996
2975
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2997
2976
|
e.hourCycles && // @ts-ignore
|
|
@@ -3013,20 +2992,20 @@ function On(e) {
|
|
|
3013
2992
|
var i = he[n || ""] || he[r || ""] || he["".concat(r, "-001")] || he["001"];
|
|
3014
2993
|
return i[0];
|
|
3015
2994
|
}
|
|
3016
|
-
var
|
|
2995
|
+
var we, Bn = new RegExp("^".concat(Qt.source, "*")), Nn = new RegExp("".concat(Qt.source, "*$"));
|
|
3017
2996
|
function g(e, t) {
|
|
3018
2997
|
return { start: e, end: t };
|
|
3019
2998
|
}
|
|
3020
|
-
var
|
|
2999
|
+
var On = !!String.prototype.startsWith && "_a".startsWith("a", 1), In = !!String.fromCodePoint, Cn = !!Object.fromEntries, Ln = !!String.prototype.codePointAt, Mn = !!String.prototype.trimStart, $n = !!String.prototype.trimEnd, Rn = !!Number.isSafeInteger, Un = Rn ? Number.isSafeInteger : function(e) {
|
|
3021
3000
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3022
|
-
},
|
|
3001
|
+
}, Ge = !0;
|
|
3023
3002
|
try {
|
|
3024
|
-
var
|
|
3025
|
-
|
|
3003
|
+
var Dn = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3004
|
+
Ge = ((we = Dn.exec("a")) === null || we === void 0 ? void 0 : we[0]) === "a";
|
|
3026
3005
|
} catch {
|
|
3027
|
-
|
|
3006
|
+
Ge = !1;
|
|
3028
3007
|
}
|
|
3029
|
-
var
|
|
3008
|
+
var dt = On ? (
|
|
3030
3009
|
// Native
|
|
3031
3010
|
function(t, r, n) {
|
|
3032
3011
|
return t.startsWith(r, n);
|
|
@@ -3036,7 +3015,7 @@ var bt = Cn ? (
|
|
|
3036
3015
|
function(t, r, n) {
|
|
3037
3016
|
return t.slice(n, n + r.length) === r;
|
|
3038
3017
|
}
|
|
3039
|
-
),
|
|
3018
|
+
), Fe = In ? String.fromCodePoint : (
|
|
3040
3019
|
// IE11
|
|
3041
3020
|
function() {
|
|
3042
3021
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3048,9 +3027,9 @@ var bt = Cn ? (
|
|
|
3048
3027
|
}
|
|
3049
3028
|
return n;
|
|
3050
3029
|
}
|
|
3051
|
-
),
|
|
3030
|
+
), mt = (
|
|
3052
3031
|
// native
|
|
3053
|
-
|
|
3032
|
+
Cn ? Object.fromEntries : (
|
|
3054
3033
|
// Ponyfill
|
|
3055
3034
|
function(t) {
|
|
3056
3035
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3060,7 +3039,7 @@ var bt = Cn ? (
|
|
|
3060
3039
|
return r;
|
|
3061
3040
|
}
|
|
3062
3041
|
)
|
|
3063
|
-
),
|
|
3042
|
+
), Kt = Ln ? (
|
|
3064
3043
|
// Native
|
|
3065
3044
|
function(t, r) {
|
|
3066
3045
|
return t.codePointAt(r);
|
|
@@ -3074,7 +3053,7 @@ var bt = Cn ? (
|
|
|
3074
3053
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3075
3054
|
}
|
|
3076
3055
|
}
|
|
3077
|
-
),
|
|
3056
|
+
), Gn = Mn ? (
|
|
3078
3057
|
// Native
|
|
3079
3058
|
function(t) {
|
|
3080
3059
|
return t.trimStart();
|
|
@@ -3082,9 +3061,9 @@ var bt = Cn ? (
|
|
|
3082
3061
|
) : (
|
|
3083
3062
|
// Ponyfill
|
|
3084
3063
|
function(t) {
|
|
3085
|
-
return t.replace(
|
|
3064
|
+
return t.replace(Bn, "");
|
|
3086
3065
|
}
|
|
3087
|
-
),
|
|
3066
|
+
), Fn = $n ? (
|
|
3088
3067
|
// Native
|
|
3089
3068
|
function(t) {
|
|
3090
3069
|
return t.trimEnd();
|
|
@@ -3092,32 +3071,32 @@ var bt = Cn ? (
|
|
|
3092
3071
|
) : (
|
|
3093
3072
|
// Ponyfill
|
|
3094
3073
|
function(t) {
|
|
3095
|
-
return t.replace(
|
|
3074
|
+
return t.replace(Nn, "");
|
|
3096
3075
|
}
|
|
3097
3076
|
);
|
|
3098
|
-
function
|
|
3077
|
+
function er(e, t) {
|
|
3099
3078
|
return new RegExp(e, t);
|
|
3100
3079
|
}
|
|
3101
|
-
var
|
|
3102
|
-
if (
|
|
3103
|
-
var
|
|
3104
|
-
|
|
3080
|
+
var ke;
|
|
3081
|
+
if (Ge) {
|
|
3082
|
+
var bt = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3083
|
+
ke = function(t, r) {
|
|
3105
3084
|
var n;
|
|
3106
|
-
|
|
3107
|
-
var i =
|
|
3085
|
+
bt.lastIndex = r;
|
|
3086
|
+
var i = bt.exec(t);
|
|
3108
3087
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3109
3088
|
};
|
|
3110
3089
|
} else
|
|
3111
|
-
|
|
3090
|
+
ke = function(t, r) {
|
|
3112
3091
|
for (var n = []; ; ) {
|
|
3113
|
-
var i =
|
|
3114
|
-
if (i === void 0 ||
|
|
3092
|
+
var i = Kt(t, r);
|
|
3093
|
+
if (i === void 0 || tr(i) || Xn(i))
|
|
3115
3094
|
break;
|
|
3116
3095
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3117
3096
|
}
|
|
3118
|
-
return
|
|
3097
|
+
return Fe.apply(void 0, n);
|
|
3119
3098
|
};
|
|
3120
|
-
var
|
|
3099
|
+
var kn = (
|
|
3121
3100
|
/** @class */
|
|
3122
3101
|
function() {
|
|
3123
3102
|
function e(t, r) {
|
|
@@ -3141,14 +3120,14 @@ var Vn = (
|
|
|
3141
3120
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3142
3121
|
var a = this.clonePosition();
|
|
3143
3122
|
this.bump(), i.push({
|
|
3144
|
-
type:
|
|
3123
|
+
type: _.pound,
|
|
3145
3124
|
location: g(a, this.clonePosition())
|
|
3146
3125
|
});
|
|
3147
3126
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3148
3127
|
if (n)
|
|
3149
3128
|
break;
|
|
3150
3129
|
return this.error(b.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
|
3151
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3130
|
+
} else if (o === 60 && !this.ignoreTag && je(this.peek() || 0)) {
|
|
3152
3131
|
var s = this.parseTag(t, r);
|
|
3153
3132
|
if (s.err)
|
|
3154
3133
|
return s;
|
|
@@ -3169,7 +3148,7 @@ var Vn = (
|
|
|
3169
3148
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3170
3149
|
return {
|
|
3171
3150
|
val: {
|
|
3172
|
-
type:
|
|
3151
|
+
type: _.literal,
|
|
3173
3152
|
value: "<".concat(i, "/>"),
|
|
3174
3153
|
location: g(n, this.clonePosition())
|
|
3175
3154
|
},
|
|
@@ -3181,12 +3160,12 @@ var Vn = (
|
|
|
3181
3160
|
return o;
|
|
3182
3161
|
var s = o.val, a = this.clonePosition();
|
|
3183
3162
|
if (this.bumpIf("</")) {
|
|
3184
|
-
if (this.isEOF() || !
|
|
3163
|
+
if (this.isEOF() || !je(this.char()))
|
|
3185
3164
|
return this.error(b.INVALID_TAG, g(a, this.clonePosition()));
|
|
3186
3165
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3187
3166
|
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, g(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3188
3167
|
val: {
|
|
3189
|
-
type:
|
|
3168
|
+
type: _.tag,
|
|
3190
3169
|
value: i,
|
|
3191
3170
|
children: s,
|
|
3192
3171
|
location: g(n, this.clonePosition())
|
|
@@ -3199,7 +3178,7 @@ var Vn = (
|
|
|
3199
3178
|
return this.error(b.INVALID_TAG, g(n, this.clonePosition()));
|
|
3200
3179
|
}, e.prototype.parseTagName = function() {
|
|
3201
3180
|
var t = this.offset();
|
|
3202
|
-
for (this.bump(); !this.isEOF() &&
|
|
3181
|
+
for (this.bump(); !this.isEOF() && Vn(this.char()); )
|
|
3203
3182
|
this.bump();
|
|
3204
3183
|
return this.message.slice(t, this.offset());
|
|
3205
3184
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3223,12 +3202,12 @@ var Vn = (
|
|
|
3223
3202
|
}
|
|
3224
3203
|
var h = g(n, this.clonePosition());
|
|
3225
3204
|
return {
|
|
3226
|
-
val: { type:
|
|
3205
|
+
val: { type: _.literal, value: i, location: h },
|
|
3227
3206
|
err: null
|
|
3228
3207
|
};
|
|
3229
3208
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3230
3209
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3231
|
-
!
|
|
3210
|
+
!jn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3232
3211
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3233
3212
|
if (this.isEOF() || this.char() !== 39)
|
|
3234
3213
|
return null;
|
|
@@ -3262,12 +3241,12 @@ var Vn = (
|
|
|
3262
3241
|
r.push(n);
|
|
3263
3242
|
this.bump();
|
|
3264
3243
|
}
|
|
3265
|
-
return
|
|
3244
|
+
return Fe.apply(void 0, r);
|
|
3266
3245
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3267
3246
|
if (this.isEOF())
|
|
3268
3247
|
return null;
|
|
3269
3248
|
var n = this.char();
|
|
3270
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3249
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
|
|
3271
3250
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3272
3251
|
var n = this.clonePosition();
|
|
3273
3252
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3283,7 +3262,7 @@ var Vn = (
|
|
|
3283
3262
|
case 125:
|
|
3284
3263
|
return this.bump(), {
|
|
3285
3264
|
val: {
|
|
3286
|
-
type:
|
|
3265
|
+
type: _.argument,
|
|
3287
3266
|
// value does not include the opening and closing braces.
|
|
3288
3267
|
value: i,
|
|
3289
3268
|
location: g(n, this.clonePosition())
|
|
@@ -3296,7 +3275,7 @@ var Vn = (
|
|
|
3296
3275
|
return this.error(b.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3297
3276
|
}
|
|
3298
3277
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3299
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3278
|
+
var t = this.clonePosition(), r = this.offset(), n = ke(this.message, r), i = r + n.length;
|
|
3300
3279
|
this.bumpTo(i);
|
|
3301
3280
|
var o = this.clonePosition(), s = g(t, o);
|
|
3302
3281
|
return { value: n, location: s };
|
|
@@ -3315,7 +3294,7 @@ var Vn = (
|
|
|
3315
3294
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3316
3295
|
if (c.err)
|
|
3317
3296
|
return c;
|
|
3318
|
-
var f =
|
|
3297
|
+
var f = Fn(c.val);
|
|
3319
3298
|
if (f.length === 0)
|
|
3320
3299
|
return this.error(b.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
|
3321
3300
|
var d = g(l, this.clonePosition());
|
|
@@ -3325,25 +3304,25 @@ var Vn = (
|
|
|
3325
3304
|
if (m.err)
|
|
3326
3305
|
return m;
|
|
3327
3306
|
var p = g(i, this.clonePosition());
|
|
3328
|
-
if (u &&
|
|
3329
|
-
var S =
|
|
3307
|
+
if (u && dt(u?.style, "::", 0)) {
|
|
3308
|
+
var S = Gn(u.style.slice(2));
|
|
3330
3309
|
if (a === "number") {
|
|
3331
3310
|
var c = this.parseNumberSkeletonFromString(S, u.styleLocation);
|
|
3332
3311
|
return c.err ? c : {
|
|
3333
|
-
val: { type:
|
|
3312
|
+
val: { type: _.number, value: n, location: p, style: c.val },
|
|
3334
3313
|
err: null
|
|
3335
3314
|
};
|
|
3336
3315
|
} else {
|
|
3337
3316
|
if (S.length === 0)
|
|
3338
3317
|
return this.error(b.EXPECT_DATE_TIME_SKELETON, p);
|
|
3339
3318
|
var $ = S;
|
|
3340
|
-
this.locale && ($ =
|
|
3319
|
+
this.locale && ($ = Pn(S, this.locale));
|
|
3341
3320
|
var f = {
|
|
3342
|
-
type:
|
|
3321
|
+
type: Z.dateTime,
|
|
3343
3322
|
pattern: $,
|
|
3344
3323
|
location: u.styleLocation,
|
|
3345
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3346
|
-
}, C = a === "date" ?
|
|
3324
|
+
parsedOptions: this.shouldParseSkeletons ? _n($) : {}
|
|
3325
|
+
}, C = a === "date" ? _.date : _.time;
|
|
3347
3326
|
return {
|
|
3348
3327
|
val: { type: C, value: n, location: p, style: f },
|
|
3349
3328
|
err: null
|
|
@@ -3352,7 +3331,7 @@ var Vn = (
|
|
|
3352
3331
|
}
|
|
3353
3332
|
return {
|
|
3354
3333
|
val: {
|
|
3355
|
-
type: a === "number" ?
|
|
3334
|
+
type: a === "number" ? _.number : a === "date" ? _.date : _.time,
|
|
3356
3335
|
value: n,
|
|
3357
3336
|
location: p,
|
|
3358
3337
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
@@ -3363,11 +3342,11 @@ var Vn = (
|
|
|
3363
3342
|
case "plural":
|
|
3364
3343
|
case "selectordinal":
|
|
3365
3344
|
case "select": {
|
|
3366
|
-
var
|
|
3345
|
+
var A = this.clonePosition();
|
|
3367
3346
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3368
|
-
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, g(
|
|
3347
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, g(A, v({}, A)));
|
|
3369
3348
|
this.bumpSpace();
|
|
3370
|
-
var R = this.parseIdentifierIfPossible(),
|
|
3349
|
+
var R = this.parseIdentifierIfPossible(), w = 0;
|
|
3371
3350
|
if (a !== "select" && R.value === "offset") {
|
|
3372
3351
|
if (!this.bumpIf(":"))
|
|
3373
3352
|
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
|
|
@@ -3375,7 +3354,7 @@ var Vn = (
|
|
|
3375
3354
|
var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3376
3355
|
if (c.err)
|
|
3377
3356
|
return c;
|
|
3378
|
-
this.bumpSpace(), R = this.parseIdentifierIfPossible(),
|
|
3357
|
+
this.bumpSpace(), R = this.parseIdentifierIfPossible(), w = c.val;
|
|
3379
3358
|
}
|
|
3380
3359
|
var D = this.tryParsePluralOrSelectOptions(t, a, r, R);
|
|
3381
3360
|
if (D.err)
|
|
@@ -3386,18 +3365,18 @@ var Vn = (
|
|
|
3386
3365
|
var y = g(i, this.clonePosition());
|
|
3387
3366
|
return a === "select" ? {
|
|
3388
3367
|
val: {
|
|
3389
|
-
type:
|
|
3368
|
+
type: _.select,
|
|
3390
3369
|
value: n,
|
|
3391
|
-
options:
|
|
3370
|
+
options: mt(D.val),
|
|
3392
3371
|
location: y
|
|
3393
3372
|
},
|
|
3394
3373
|
err: null
|
|
3395
3374
|
} : {
|
|
3396
3375
|
val: {
|
|
3397
|
-
type:
|
|
3376
|
+
type: _.plural,
|
|
3398
3377
|
value: n,
|
|
3399
|
-
options:
|
|
3400
|
-
offset:
|
|
3378
|
+
options: mt(D.val),
|
|
3379
|
+
offset: w,
|
|
3401
3380
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3402
3381
|
location: y
|
|
3403
3382
|
},
|
|
@@ -3447,16 +3426,16 @@ var Vn = (
|
|
|
3447
3426
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3448
3427
|
var n = [];
|
|
3449
3428
|
try {
|
|
3450
|
-
n =
|
|
3429
|
+
n = En(t);
|
|
3451
3430
|
} catch {
|
|
3452
3431
|
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3453
3432
|
}
|
|
3454
3433
|
return {
|
|
3455
3434
|
val: {
|
|
3456
|
-
type:
|
|
3435
|
+
type: Z.number,
|
|
3457
3436
|
tokens: n,
|
|
3458
3437
|
location: r,
|
|
3459
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3438
|
+
parsedOptions: this.shouldParseSkeletons ? An(n) : {}
|
|
3460
3439
|
},
|
|
3461
3440
|
err: null
|
|
3462
3441
|
};
|
|
@@ -3504,7 +3483,7 @@ var Vn = (
|
|
|
3504
3483
|
break;
|
|
3505
3484
|
}
|
|
3506
3485
|
var h = g(i, this.clonePosition());
|
|
3507
|
-
return o ? (s *= n,
|
|
3486
|
+
return o ? (s *= n, Un(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3508
3487
|
}, e.prototype.offset = function() {
|
|
3509
3488
|
return this.position.offset;
|
|
3510
3489
|
}, e.prototype.isEOF = function() {
|
|
@@ -3519,7 +3498,7 @@ var Vn = (
|
|
|
3519
3498
|
var t = this.position.offset;
|
|
3520
3499
|
if (t >= this.message.length)
|
|
3521
3500
|
throw Error("out of bound");
|
|
3522
|
-
var r =
|
|
3501
|
+
var r = Kt(this.message, t);
|
|
3523
3502
|
if (r === void 0)
|
|
3524
3503
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3525
3504
|
return r;
|
|
@@ -3538,7 +3517,7 @@ var Vn = (
|
|
|
3538
3517
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3539
3518
|
}
|
|
3540
3519
|
}, e.prototype.bumpIf = function(t) {
|
|
3541
|
-
if (
|
|
3520
|
+
if (dt(this.message, t, this.offset())) {
|
|
3542
3521
|
for (var r = 0; r < t.length; r++)
|
|
3543
3522
|
this.bump();
|
|
3544
3523
|
return !0;
|
|
@@ -3560,7 +3539,7 @@ var Vn = (
|
|
|
3560
3539
|
break;
|
|
3561
3540
|
}
|
|
3562
3541
|
}, e.prototype.bumpSpace = function() {
|
|
3563
|
-
for (; !this.isEOF() &&
|
|
3542
|
+
for (; !this.isEOF() && tr(this.char()); )
|
|
3564
3543
|
this.bump();
|
|
3565
3544
|
}, e.prototype.peek = function() {
|
|
3566
3545
|
if (this.isEOF())
|
|
@@ -3570,47 +3549,47 @@ var Vn = (
|
|
|
3570
3549
|
}, e;
|
|
3571
3550
|
}()
|
|
3572
3551
|
);
|
|
3573
|
-
function
|
|
3552
|
+
function je(e) {
|
|
3574
3553
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3575
3554
|
}
|
|
3576
|
-
function
|
|
3577
|
-
return
|
|
3555
|
+
function jn(e) {
|
|
3556
|
+
return je(e) || e === 47;
|
|
3578
3557
|
}
|
|
3579
|
-
function
|
|
3558
|
+
function Vn(e) {
|
|
3580
3559
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
3581
3560
|
}
|
|
3582
|
-
function
|
|
3561
|
+
function tr(e) {
|
|
3583
3562
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3584
3563
|
}
|
|
3585
|
-
function
|
|
3564
|
+
function Xn(e) {
|
|
3586
3565
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3587
3566
|
}
|
|
3588
|
-
function
|
|
3567
|
+
function Ve(e) {
|
|
3589
3568
|
e.forEach(function(t) {
|
|
3590
|
-
if (delete t.location,
|
|
3569
|
+
if (delete t.location, Xt(t) || Wt(t))
|
|
3591
3570
|
for (var r in t.options)
|
|
3592
|
-
delete t.options[r].location,
|
|
3571
|
+
delete t.options[r].location, Ve(t.options[r].value);
|
|
3593
3572
|
else
|
|
3594
|
-
kt(t) &&
|
|
3573
|
+
kt(t) && Zt(t.style) || (jt(t) || Vt(t)) && De(t.style) ? delete t.style.location : zt(t) && Ve(t.children);
|
|
3595
3574
|
});
|
|
3596
3575
|
}
|
|
3597
|
-
function
|
|
3598
|
-
t === void 0 && (t = {}), t =
|
|
3599
|
-
var r = new
|
|
3576
|
+
function Wn(e, t) {
|
|
3577
|
+
t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3578
|
+
var r = new kn(e, t).parse();
|
|
3600
3579
|
if (r.err) {
|
|
3601
3580
|
var n = SyntaxError(b[r.err.kind]);
|
|
3602
3581
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3603
3582
|
}
|
|
3604
|
-
return t?.captureLocation ||
|
|
3583
|
+
return t?.captureLocation || Ve(r.val), r.val;
|
|
3605
3584
|
}
|
|
3606
|
-
var
|
|
3585
|
+
var Q;
|
|
3607
3586
|
(function(e) {
|
|
3608
3587
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3609
|
-
})(
|
|
3610
|
-
var
|
|
3588
|
+
})(Q || (Q = {}));
|
|
3589
|
+
var _e = (
|
|
3611
3590
|
/** @class */
|
|
3612
3591
|
function(e) {
|
|
3613
|
-
|
|
3592
|
+
I(t, e);
|
|
3614
3593
|
function t(r, n, i) {
|
|
3615
3594
|
var o = e.call(this, r) || this;
|
|
3616
3595
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3619,48 +3598,48 @@ var Ee = (
|
|
|
3619
3598
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3620
3599
|
}, t;
|
|
3621
3600
|
}(Error)
|
|
3622
|
-
),
|
|
3601
|
+
), gt = (
|
|
3623
3602
|
/** @class */
|
|
3624
3603
|
function(e) {
|
|
3625
|
-
|
|
3604
|
+
I(t, e);
|
|
3626
3605
|
function t(r, n, i, o) {
|
|
3627
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3606
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Q.INVALID_VALUE, o) || this;
|
|
3628
3607
|
}
|
|
3629
3608
|
return t;
|
|
3630
|
-
}(
|
|
3631
|
-
),
|
|
3609
|
+
}(_e)
|
|
3610
|
+
), zn = (
|
|
3632
3611
|
/** @class */
|
|
3633
3612
|
function(e) {
|
|
3634
|
-
|
|
3613
|
+
I(t, e);
|
|
3635
3614
|
function t(r, n, i) {
|
|
3636
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3615
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Q.INVALID_VALUE, i) || this;
|
|
3637
3616
|
}
|
|
3638
3617
|
return t;
|
|
3639
|
-
}(
|
|
3640
|
-
),
|
|
3618
|
+
}(_e)
|
|
3619
|
+
), Zn = (
|
|
3641
3620
|
/** @class */
|
|
3642
3621
|
function(e) {
|
|
3643
|
-
|
|
3622
|
+
I(t, e);
|
|
3644
3623
|
function t(r, n) {
|
|
3645
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3624
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Q.MISSING_VALUE, n) || this;
|
|
3646
3625
|
}
|
|
3647
3626
|
return t;
|
|
3648
|
-
}(
|
|
3627
|
+
}(_e)
|
|
3649
3628
|
), E;
|
|
3650
3629
|
(function(e) {
|
|
3651
3630
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3652
3631
|
})(E || (E = {}));
|
|
3653
|
-
function
|
|
3632
|
+
function Qn(e) {
|
|
3654
3633
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3655
3634
|
var n = t[t.length - 1];
|
|
3656
3635
|
return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
|
|
3657
3636
|
}, []);
|
|
3658
3637
|
}
|
|
3659
|
-
function
|
|
3638
|
+
function Jn(e) {
|
|
3660
3639
|
return typeof e == "function";
|
|
3661
3640
|
}
|
|
3662
3641
|
function pe(e, t, r, n, i, o, s) {
|
|
3663
|
-
if (e.length === 1 &&
|
|
3642
|
+
if (e.length === 1 && lt(e[0]))
|
|
3664
3643
|
return [
|
|
3665
3644
|
{
|
|
3666
3645
|
type: E.literal,
|
|
@@ -3669,14 +3648,14 @@ function pe(e, t, r, n, i, o, s) {
|
|
|
3669
3648
|
];
|
|
3670
3649
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3671
3650
|
var l = u[h];
|
|
3672
|
-
if (
|
|
3651
|
+
if (lt(l)) {
|
|
3673
3652
|
a.push({
|
|
3674
3653
|
type: E.literal,
|
|
3675
3654
|
value: l.value
|
|
3676
3655
|
});
|
|
3677
3656
|
continue;
|
|
3678
3657
|
}
|
|
3679
|
-
if (
|
|
3658
|
+
if (yn(l)) {
|
|
3680
3659
|
typeof o == "number" && a.push({
|
|
3681
3660
|
type: E.literal,
|
|
3682
3661
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3685,25 +3664,25 @@ function pe(e, t, r, n, i, o, s) {
|
|
|
3685
3664
|
}
|
|
3686
3665
|
var c = l.value;
|
|
3687
3666
|
if (!(i && c in i))
|
|
3688
|
-
throw new
|
|
3667
|
+
throw new Zn(c, s);
|
|
3689
3668
|
var f = i[c];
|
|
3690
|
-
if (
|
|
3669
|
+
if (gn(l)) {
|
|
3691
3670
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3692
3671
|
type: typeof f == "string" ? E.literal : E.object,
|
|
3693
3672
|
value: f
|
|
3694
3673
|
});
|
|
3695
3674
|
continue;
|
|
3696
3675
|
}
|
|
3697
|
-
if (
|
|
3698
|
-
var d = typeof l.style == "string" ? n.date[l.style] :
|
|
3676
|
+
if (jt(l)) {
|
|
3677
|
+
var d = typeof l.style == "string" ? n.date[l.style] : De(l.style) ? l.style.parsedOptions : void 0;
|
|
3699
3678
|
a.push({
|
|
3700
3679
|
type: E.literal,
|
|
3701
3680
|
value: r.getDateTimeFormat(t, d).format(f)
|
|
3702
3681
|
});
|
|
3703
3682
|
continue;
|
|
3704
3683
|
}
|
|
3705
|
-
if (
|
|
3706
|
-
var d = typeof l.style == "string" ? n.time[l.style] :
|
|
3684
|
+
if (Vt(l)) {
|
|
3685
|
+
var d = typeof l.style == "string" ? n.time[l.style] : De(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3707
3686
|
a.push({
|
|
3708
3687
|
type: E.literal,
|
|
3709
3688
|
value: r.getDateTimeFormat(t, d).format(f)
|
|
@@ -3711,63 +3690,63 @@ function pe(e, t, r, n, i, o, s) {
|
|
|
3711
3690
|
continue;
|
|
3712
3691
|
}
|
|
3713
3692
|
if (kt(l)) {
|
|
3714
|
-
var d = typeof l.style == "string" ? n.number[l.style] :
|
|
3693
|
+
var d = typeof l.style == "string" ? n.number[l.style] : Zt(l.style) ? l.style.parsedOptions : void 0;
|
|
3715
3694
|
d && d.scale && (f = f * (d.scale || 1)), a.push({
|
|
3716
3695
|
type: E.literal,
|
|
3717
3696
|
value: r.getNumberFormat(t, d).format(f)
|
|
3718
3697
|
});
|
|
3719
3698
|
continue;
|
|
3720
3699
|
}
|
|
3721
|
-
if (
|
|
3700
|
+
if (zt(l)) {
|
|
3722
3701
|
var m = l.children, p = l.value, S = i[p];
|
|
3723
|
-
if (!
|
|
3724
|
-
throw new
|
|
3725
|
-
var $ = pe(m, t, r, n, i, o), C = S($.map(function(
|
|
3726
|
-
return
|
|
3702
|
+
if (!Jn(S))
|
|
3703
|
+
throw new zn(p, "function", s);
|
|
3704
|
+
var $ = pe(m, t, r, n, i, o), C = S($.map(function(w) {
|
|
3705
|
+
return w.value;
|
|
3727
3706
|
}));
|
|
3728
|
-
Array.isArray(C) || (C = [C]), a.push.apply(a, C.map(function(
|
|
3707
|
+
Array.isArray(C) || (C = [C]), a.push.apply(a, C.map(function(w) {
|
|
3729
3708
|
return {
|
|
3730
|
-
type: typeof
|
|
3731
|
-
value:
|
|
3709
|
+
type: typeof w == "string" ? E.literal : E.object,
|
|
3710
|
+
value: w
|
|
3732
3711
|
};
|
|
3733
3712
|
}));
|
|
3734
3713
|
}
|
|
3735
|
-
if (
|
|
3736
|
-
var
|
|
3737
|
-
if (!
|
|
3738
|
-
throw new
|
|
3739
|
-
a.push.apply(a, pe(
|
|
3714
|
+
if (Xt(l)) {
|
|
3715
|
+
var A = l.options[f] || l.options.other;
|
|
3716
|
+
if (!A)
|
|
3717
|
+
throw new gt(l.value, f, Object.keys(l.options), s);
|
|
3718
|
+
a.push.apply(a, pe(A.value, t, r, n, i));
|
|
3740
3719
|
continue;
|
|
3741
3720
|
}
|
|
3742
|
-
if (
|
|
3743
|
-
var
|
|
3744
|
-
if (!
|
|
3721
|
+
if (Wt(l)) {
|
|
3722
|
+
var A = l.options["=".concat(f)];
|
|
3723
|
+
if (!A) {
|
|
3745
3724
|
if (!Intl.PluralRules)
|
|
3746
|
-
throw new
|
|
3725
|
+
throw new _e(`Intl.PluralRules is not available in this environment.
|
|
3747
3726
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3748
|
-
`,
|
|
3727
|
+
`, Q.MISSING_INTL_API, s);
|
|
3749
3728
|
var R = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3750
|
-
|
|
3729
|
+
A = l.options[R] || l.options.other;
|
|
3751
3730
|
}
|
|
3752
|
-
if (!
|
|
3753
|
-
throw new
|
|
3754
|
-
a.push.apply(a, pe(
|
|
3731
|
+
if (!A)
|
|
3732
|
+
throw new gt(l.value, f, Object.keys(l.options), s);
|
|
3733
|
+
a.push.apply(a, pe(A.value, t, r, n, i, f - (l.offset || 0)));
|
|
3755
3734
|
continue;
|
|
3756
3735
|
}
|
|
3757
3736
|
}
|
|
3758
|
-
return
|
|
3737
|
+
return Qn(a);
|
|
3759
3738
|
}
|
|
3760
|
-
function
|
|
3761
|
-
return t ?
|
|
3762
|
-
return r[n] =
|
|
3739
|
+
function qn(e, t) {
|
|
3740
|
+
return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3741
|
+
return r[n] = v(v({}, e[n]), t[n] || {}), r;
|
|
3763
3742
|
}, {})) : e;
|
|
3764
3743
|
}
|
|
3765
|
-
function
|
|
3744
|
+
function Yn(e, t) {
|
|
3766
3745
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3767
|
-
return r[n] =
|
|
3768
|
-
},
|
|
3746
|
+
return r[n] = qn(e[n], t[n]), r;
|
|
3747
|
+
}, v({}, e)) : e;
|
|
3769
3748
|
}
|
|
3770
|
-
function
|
|
3749
|
+
function Be(e) {
|
|
3771
3750
|
return {
|
|
3772
3751
|
create: function() {
|
|
3773
3752
|
return {
|
|
@@ -3781,39 +3760,39 @@ function Ne(e) {
|
|
|
3781
3760
|
}
|
|
3782
3761
|
};
|
|
3783
3762
|
}
|
|
3784
|
-
function
|
|
3763
|
+
function Kn(e) {
|
|
3785
3764
|
return e === void 0 && (e = {
|
|
3786
3765
|
number: {},
|
|
3787
3766
|
dateTime: {},
|
|
3788
3767
|
pluralRules: {}
|
|
3789
3768
|
}), {
|
|
3790
|
-
getNumberFormat:
|
|
3769
|
+
getNumberFormat: Ae(function() {
|
|
3791
3770
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3792
3771
|
r[n] = arguments[n];
|
|
3793
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3772
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, W([void 0], r, !1)))();
|
|
3794
3773
|
}, {
|
|
3795
|
-
cache:
|
|
3796
|
-
strategy:
|
|
3774
|
+
cache: Be(e.number),
|
|
3775
|
+
strategy: Pe.variadic
|
|
3797
3776
|
}),
|
|
3798
|
-
getDateTimeFormat:
|
|
3777
|
+
getDateTimeFormat: Ae(function() {
|
|
3799
3778
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3800
3779
|
r[n] = arguments[n];
|
|
3801
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3780
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, W([void 0], r, !1)))();
|
|
3802
3781
|
}, {
|
|
3803
|
-
cache:
|
|
3804
|
-
strategy:
|
|
3782
|
+
cache: Be(e.dateTime),
|
|
3783
|
+
strategy: Pe.variadic
|
|
3805
3784
|
}),
|
|
3806
|
-
getPluralRules:
|
|
3785
|
+
getPluralRules: Ae(function() {
|
|
3807
3786
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3808
3787
|
r[n] = arguments[n];
|
|
3809
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3788
|
+
return new ((t = Intl.PluralRules).bind.apply(t, W([void 0], r, !1)))();
|
|
3810
3789
|
}, {
|
|
3811
|
-
cache:
|
|
3812
|
-
strategy:
|
|
3790
|
+
cache: Be(e.pluralRules),
|
|
3791
|
+
strategy: Pe.variadic
|
|
3813
3792
|
})
|
|
3814
3793
|
};
|
|
3815
3794
|
}
|
|
3816
|
-
var
|
|
3795
|
+
var ei = (
|
|
3817
3796
|
/** @class */
|
|
3818
3797
|
function() {
|
|
3819
3798
|
function e(t, r, n, i) {
|
|
@@ -3845,13 +3824,13 @@ var ri = (
|
|
|
3845
3824
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3846
3825
|
var s = i || {};
|
|
3847
3826
|
s.formatters;
|
|
3848
|
-
var a =
|
|
3849
|
-
this.ast = e.__parse(t,
|
|
3827
|
+
var a = Ir(s, ["formatters"]);
|
|
3828
|
+
this.ast = e.__parse(t, v(v({}, a), { locale: this.resolvedLocale }));
|
|
3850
3829
|
} else
|
|
3851
3830
|
this.ast = t;
|
|
3852
3831
|
if (!Array.isArray(this.ast))
|
|
3853
3832
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3854
|
-
this.formats =
|
|
3833
|
+
this.formats = Yn(e.formats, n), this.formatters = i && i.formatters || Kn(this.formatterCache);
|
|
3855
3834
|
}
|
|
3856
3835
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3857
3836
|
get: function() {
|
|
@@ -3864,7 +3843,7 @@ var ri = (
|
|
|
3864
3843
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3865
3844
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3866
3845
|
}
|
|
3867
|
-
}, e.__parse =
|
|
3846
|
+
}, e.__parse = Wn, e.formats = {
|
|
3868
3847
|
number: {
|
|
3869
3848
|
integer: {
|
|
3870
3849
|
maximumFractionDigits: 0
|
|
@@ -3925,7 +3904,7 @@ var ri = (
|
|
|
3925
3904
|
}, e;
|
|
3926
3905
|
}()
|
|
3927
3906
|
);
|
|
3928
|
-
function
|
|
3907
|
+
function ti(e, t) {
|
|
3929
3908
|
if (t == null)
|
|
3930
3909
|
return;
|
|
3931
3910
|
if (t in e)
|
|
@@ -3946,92 +3925,92 @@ function ni(e, t) {
|
|
|
3946
3925
|
n = void 0;
|
|
3947
3926
|
return n;
|
|
3948
3927
|
}
|
|
3949
|
-
const L = {},
|
|
3928
|
+
const L = {}, ri = (e, t, r) => r && (t in L || (L[t] = {}), e in L[t] || (L[t][e] = r), r), rr = (e, t) => {
|
|
3950
3929
|
if (t == null)
|
|
3951
3930
|
return;
|
|
3952
3931
|
if (t in L && e in L[t])
|
|
3953
3932
|
return L[t][e];
|
|
3954
|
-
const r =
|
|
3933
|
+
const r = xe(t);
|
|
3955
3934
|
for (let n = 0; n < r.length; n++) {
|
|
3956
|
-
const i = r[n], o =
|
|
3935
|
+
const i = r[n], o = ii(i, e);
|
|
3957
3936
|
if (o)
|
|
3958
|
-
return
|
|
3937
|
+
return ri(e, t, o);
|
|
3959
3938
|
}
|
|
3960
3939
|
};
|
|
3961
|
-
let
|
|
3962
|
-
const oe =
|
|
3963
|
-
function
|
|
3964
|
-
return
|
|
3940
|
+
let Je;
|
|
3941
|
+
const oe = ve({});
|
|
3942
|
+
function ni(e) {
|
|
3943
|
+
return Je[e] || null;
|
|
3965
3944
|
}
|
|
3966
|
-
function
|
|
3967
|
-
return e in
|
|
3945
|
+
function nr(e) {
|
|
3946
|
+
return e in Je;
|
|
3968
3947
|
}
|
|
3969
|
-
function
|
|
3970
|
-
if (!
|
|
3948
|
+
function ii(e, t) {
|
|
3949
|
+
if (!nr(e))
|
|
3971
3950
|
return null;
|
|
3972
|
-
const r =
|
|
3973
|
-
return
|
|
3951
|
+
const r = ni(e);
|
|
3952
|
+
return ti(r, t);
|
|
3974
3953
|
}
|
|
3975
|
-
function
|
|
3954
|
+
function oi(e) {
|
|
3976
3955
|
if (e == null)
|
|
3977
3956
|
return;
|
|
3978
|
-
const t =
|
|
3957
|
+
const t = xe(e);
|
|
3979
3958
|
for (let r = 0; r < t.length; r++) {
|
|
3980
3959
|
const n = t[r];
|
|
3981
|
-
if (
|
|
3960
|
+
if (nr(n))
|
|
3982
3961
|
return n;
|
|
3983
3962
|
}
|
|
3984
3963
|
}
|
|
3985
|
-
function
|
|
3964
|
+
function si(e, ...t) {
|
|
3986
3965
|
delete L[e], oe.update((r) => (r[e] = ln.all([r[e] || {}, ...t]), r));
|
|
3987
3966
|
}
|
|
3988
|
-
|
|
3967
|
+
q(
|
|
3989
3968
|
[oe],
|
|
3990
3969
|
([e]) => Object.keys(e)
|
|
3991
3970
|
);
|
|
3992
|
-
oe.subscribe((e) =>
|
|
3971
|
+
oe.subscribe((e) => Je = e);
|
|
3993
3972
|
const de = {};
|
|
3994
|
-
function
|
|
3973
|
+
function ai(e, t) {
|
|
3995
3974
|
de[e].delete(t), de[e].size === 0 && delete de[e];
|
|
3996
3975
|
}
|
|
3997
|
-
function
|
|
3976
|
+
function ir(e) {
|
|
3998
3977
|
return de[e];
|
|
3999
3978
|
}
|
|
4000
|
-
function
|
|
4001
|
-
return
|
|
4002
|
-
const r =
|
|
3979
|
+
function ui(e) {
|
|
3980
|
+
return xe(e).map((t) => {
|
|
3981
|
+
const r = ir(t);
|
|
4003
3982
|
return [t, r ? [...r] : []];
|
|
4004
3983
|
}).filter(([, t]) => t.length > 0);
|
|
4005
3984
|
}
|
|
4006
|
-
function
|
|
4007
|
-
return e == null ? !1 :
|
|
3985
|
+
function Xe(e) {
|
|
3986
|
+
return e == null ? !1 : xe(e).some(
|
|
4008
3987
|
(t) => {
|
|
4009
3988
|
var r;
|
|
4010
|
-
return (r =
|
|
3989
|
+
return (r = ir(t)) == null ? void 0 : r.size;
|
|
4011
3990
|
}
|
|
4012
3991
|
);
|
|
4013
3992
|
}
|
|
4014
|
-
function
|
|
3993
|
+
function hi(e, t) {
|
|
4015
3994
|
return Promise.all(
|
|
4016
|
-
t.map((n) => (
|
|
4017
|
-
).then((n) =>
|
|
4018
|
-
}
|
|
4019
|
-
const
|
|
4020
|
-
function
|
|
4021
|
-
if (!
|
|
4022
|
-
return e in
|
|
4023
|
-
const t =
|
|
4024
|
-
return
|
|
3995
|
+
t.map((n) => (ai(e, n), n().then((i) => i.default || i)))
|
|
3996
|
+
).then((n) => si(e, ...n));
|
|
3997
|
+
}
|
|
3998
|
+
const K = {};
|
|
3999
|
+
function or(e) {
|
|
4000
|
+
if (!Xe(e))
|
|
4001
|
+
return e in K ? K[e] : Promise.resolve();
|
|
4002
|
+
const t = ui(e);
|
|
4003
|
+
return K[e] = Promise.all(
|
|
4025
4004
|
t.map(
|
|
4026
|
-
([r, n]) =>
|
|
4005
|
+
([r, n]) => hi(r, n)
|
|
4027
4006
|
)
|
|
4028
4007
|
).then(() => {
|
|
4029
|
-
if (
|
|
4030
|
-
return
|
|
4031
|
-
delete
|
|
4032
|
-
}),
|
|
4008
|
+
if (Xe(e))
|
|
4009
|
+
return or(e);
|
|
4010
|
+
delete K[e];
|
|
4011
|
+
}), K[e];
|
|
4033
4012
|
}
|
|
4034
|
-
const
|
|
4013
|
+
const li = {
|
|
4035
4014
|
number: {
|
|
4036
4015
|
scientific: { notation: "scientific" },
|
|
4037
4016
|
engineering: { notation: "engineering" },
|
|
@@ -4060,135 +4039,135 @@ const fi = {
|
|
|
4060
4039
|
timeZoneName: "short"
|
|
4061
4040
|
}
|
|
4062
4041
|
}
|
|
4063
|
-
},
|
|
4042
|
+
}, ci = {
|
|
4064
4043
|
fallbackLocale: null,
|
|
4065
4044
|
loadingDelay: 200,
|
|
4066
|
-
formats:
|
|
4045
|
+
formats: li,
|
|
4067
4046
|
warnOnMissingMessages: !0,
|
|
4068
4047
|
handleMissingMessage: void 0,
|
|
4069
4048
|
ignoreTag: !0
|
|
4070
|
-
},
|
|
4071
|
-
function
|
|
4072
|
-
return
|
|
4049
|
+
}, fi = ci;
|
|
4050
|
+
function J() {
|
|
4051
|
+
return fi;
|
|
4073
4052
|
}
|
|
4074
|
-
const
|
|
4075
|
-
var
|
|
4053
|
+
const Ne = ve(!1);
|
|
4054
|
+
var pi = Object.defineProperty, di = Object.defineProperties, mi = Object.getOwnPropertyDescriptors, yt = Object.getOwnPropertySymbols, bi = Object.prototype.hasOwnProperty, gi = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, yi = (e, t) => {
|
|
4076
4055
|
for (var r in t || (t = {}))
|
|
4077
|
-
|
|
4078
|
-
if (
|
|
4079
|
-
for (var r of
|
|
4080
|
-
|
|
4056
|
+
bi.call(t, r) && vt(e, r, t[r]);
|
|
4057
|
+
if (yt)
|
|
4058
|
+
for (var r of yt(t))
|
|
4059
|
+
gi.call(t, r) && vt(e, r, t[r]);
|
|
4081
4060
|
return e;
|
|
4082
|
-
},
|
|
4083
|
-
let
|
|
4084
|
-
const
|
|
4085
|
-
function
|
|
4061
|
+
}, vi = (e, t) => di(e, mi(t));
|
|
4062
|
+
let We;
|
|
4063
|
+
const be = ve(null);
|
|
4064
|
+
function _t(e) {
|
|
4086
4065
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4087
4066
|
}
|
|
4088
|
-
function
|
|
4089
|
-
const r =
|
|
4090
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4067
|
+
function xe(e, t = J().fallbackLocale) {
|
|
4068
|
+
const r = _t(e);
|
|
4069
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ..._t(t)])] : r;
|
|
4091
4070
|
}
|
|
4092
4071
|
function U() {
|
|
4093
|
-
return
|
|
4072
|
+
return We ?? void 0;
|
|
4094
4073
|
}
|
|
4095
|
-
|
|
4096
|
-
|
|
4074
|
+
be.subscribe((e) => {
|
|
4075
|
+
We = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4097
4076
|
});
|
|
4098
|
-
const
|
|
4099
|
-
if (e &&
|
|
4100
|
-
const { loadingDelay: t } =
|
|
4077
|
+
const _i = (e) => {
|
|
4078
|
+
if (e && oi(e) && Xe(e)) {
|
|
4079
|
+
const { loadingDelay: t } = J();
|
|
4101
4080
|
let r;
|
|
4102
4081
|
return typeof window < "u" && U() != null && t ? r = window.setTimeout(
|
|
4103
|
-
() =>
|
|
4082
|
+
() => Ne.set(!0),
|
|
4104
4083
|
t
|
|
4105
|
-
) :
|
|
4106
|
-
|
|
4084
|
+
) : Ne.set(!0), or(e).then(() => {
|
|
4085
|
+
be.set(e);
|
|
4107
4086
|
}).finally(() => {
|
|
4108
|
-
clearTimeout(r),
|
|
4087
|
+
clearTimeout(r), Ne.set(!1);
|
|
4109
4088
|
});
|
|
4110
4089
|
}
|
|
4111
|
-
return
|
|
4112
|
-
}, se =
|
|
4113
|
-
set:
|
|
4114
|
-
}),
|
|
4090
|
+
return be.set(e);
|
|
4091
|
+
}, se = vi(yi({}, be), {
|
|
4092
|
+
set: _i
|
|
4093
|
+
}), Ee = (e) => {
|
|
4115
4094
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4116
4095
|
return (n) => {
|
|
4117
4096
|
const i = JSON.stringify(n);
|
|
4118
4097
|
return i in t ? t[i] : t[i] = e(n);
|
|
4119
4098
|
};
|
|
4120
4099
|
};
|
|
4121
|
-
var
|
|
4100
|
+
var xi = Object.defineProperty, ge = Object.getOwnPropertySymbols, sr = Object.prototype.hasOwnProperty, ar = Object.prototype.propertyIsEnumerable, xt = (e, t, r) => t in e ? xi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
|
|
4122
4101
|
for (var r in t || (t = {}))
|
|
4123
|
-
|
|
4124
|
-
if (
|
|
4125
|
-
for (var r of
|
|
4126
|
-
|
|
4102
|
+
sr.call(t, r) && xt(e, r, t[r]);
|
|
4103
|
+
if (ge)
|
|
4104
|
+
for (var r of ge(t))
|
|
4105
|
+
ar.call(t, r) && xt(e, r, t[r]);
|
|
4127
4106
|
return e;
|
|
4128
|
-
},
|
|
4107
|
+
}, Y = (e, t) => {
|
|
4129
4108
|
var r = {};
|
|
4130
4109
|
for (var n in e)
|
|
4131
|
-
|
|
4132
|
-
if (e != null &&
|
|
4133
|
-
for (var n of
|
|
4134
|
-
t.indexOf(n) < 0 &&
|
|
4110
|
+
sr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4111
|
+
if (e != null && ge)
|
|
4112
|
+
for (var n of ge(e))
|
|
4113
|
+
t.indexOf(n) < 0 && ar.call(e, n) && (r[n] = e[n]);
|
|
4135
4114
|
return r;
|
|
4136
4115
|
};
|
|
4137
|
-
const
|
|
4138
|
-
const { formats: r } =
|
|
4116
|
+
const ne = (e, t) => {
|
|
4117
|
+
const { formats: r } = J();
|
|
4139
4118
|
if (e in r && t in r[e])
|
|
4140
4119
|
return r[e][t];
|
|
4141
4120
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4142
|
-
},
|
|
4121
|
+
}, Ei = Ee(
|
|
4143
4122
|
(e) => {
|
|
4144
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4123
|
+
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4145
4124
|
if (r == null)
|
|
4146
4125
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4147
|
-
return n && (i =
|
|
4126
|
+
return n && (i = ne("number", n)), new Intl.NumberFormat(r, i);
|
|
4148
4127
|
}
|
|
4149
|
-
),
|
|
4128
|
+
), Si = Ee(
|
|
4150
4129
|
(e) => {
|
|
4151
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4130
|
+
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4152
4131
|
if (r == null)
|
|
4153
4132
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4154
|
-
return n ? i =
|
|
4133
|
+
return n ? i = ne("date", n) : Object.keys(i).length === 0 && (i = ne("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4155
4134
|
}
|
|
4156
|
-
),
|
|
4135
|
+
), Ti = Ee(
|
|
4157
4136
|
(e) => {
|
|
4158
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4137
|
+
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4159
4138
|
if (r == null)
|
|
4160
4139
|
throw new Error(
|
|
4161
4140
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4162
4141
|
);
|
|
4163
|
-
return n ? i =
|
|
4142
|
+
return n ? i = ne("time", n) : Object.keys(i).length === 0 && (i = ne("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4164
4143
|
}
|
|
4165
|
-
),
|
|
4144
|
+
), Hi = (e = {}) => {
|
|
4166
4145
|
var t = e, {
|
|
4167
4146
|
locale: r = U()
|
|
4168
|
-
} = t, n =
|
|
4147
|
+
} = t, n = Y(t, [
|
|
4169
4148
|
"locale"
|
|
4170
4149
|
]);
|
|
4171
|
-
return
|
|
4172
|
-
},
|
|
4150
|
+
return Ei(qe({ locale: r }, n));
|
|
4151
|
+
}, Ai = (e = {}) => {
|
|
4173
4152
|
var t = e, {
|
|
4174
4153
|
locale: r = U()
|
|
4175
|
-
} = t, n =
|
|
4154
|
+
} = t, n = Y(t, [
|
|
4176
4155
|
"locale"
|
|
4177
4156
|
]);
|
|
4178
|
-
return
|
|
4179
|
-
},
|
|
4157
|
+
return Si(qe({ locale: r }, n));
|
|
4158
|
+
}, Pi = (e = {}) => {
|
|
4180
4159
|
var t = e, {
|
|
4181
4160
|
locale: r = U()
|
|
4182
|
-
} = t, n =
|
|
4161
|
+
} = t, n = Y(t, [
|
|
4183
4162
|
"locale"
|
|
4184
4163
|
]);
|
|
4185
|
-
return
|
|
4186
|
-
},
|
|
4164
|
+
return Ti(qe({ locale: r }, n));
|
|
4165
|
+
}, wi = Ee(
|
|
4187
4166
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4188
|
-
(e, t = U()) => new
|
|
4189
|
-
ignoreTag:
|
|
4167
|
+
(e, t = U()) => new ei(e, t, J().formats, {
|
|
4168
|
+
ignoreTag: J().ignoreTag
|
|
4190
4169
|
})
|
|
4191
|
-
),
|
|
4170
|
+
), Bi = (e, t = {}) => {
|
|
4192
4171
|
var r, n, i, o;
|
|
4193
4172
|
let s = t;
|
|
4194
4173
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4201,9 +4180,9 @@ const re = (e, t) => {
|
|
|
4201
4180
|
throw new Error(
|
|
4202
4181
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4203
4182
|
);
|
|
4204
|
-
let l =
|
|
4183
|
+
let l = rr(e, h);
|
|
4205
4184
|
if (!l)
|
|
4206
|
-
l = (o = (i = (n = (r =
|
|
4185
|
+
l = (o = (i = (n = (r = J()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4207
4186
|
else if (typeof l != "string")
|
|
4208
4187
|
return console.warn(
|
|
4209
4188
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4212,7 +4191,7 @@ const re = (e, t) => {
|
|
|
4212
4191
|
return l;
|
|
4213
4192
|
let c = l;
|
|
4214
4193
|
try {
|
|
4215
|
-
c =
|
|
4194
|
+
c = wi(l, h).format(a);
|
|
4216
4195
|
} catch (f) {
|
|
4217
4196
|
f instanceof Error && console.warn(
|
|
4218
4197
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4220,21 +4199,21 @@ const re = (e, t) => {
|
|
|
4220
4199
|
);
|
|
4221
4200
|
}
|
|
4222
4201
|
return c;
|
|
4223
|
-
},
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4202
|
+
}, Ni = (e, t) => Pi(t).format(e), Oi = (e, t) => Ai(t).format(e), Ii = (e, t) => Hi(t).format(e), Ci = (e, t = U()) => rr(e, t);
|
|
4203
|
+
q([se, oe], () => Bi);
|
|
4204
|
+
q([se], () => Ni);
|
|
4205
|
+
q([se], () => Oi);
|
|
4206
|
+
q([se], () => Ii);
|
|
4207
|
+
q([se, oe], () => Ci);
|
|
4229
4208
|
window.emWidgets = { topic: Wr };
|
|
4230
|
-
const
|
|
4231
|
-
function
|
|
4209
|
+
const Et = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4210
|
+
function Li(e, t) {
|
|
4232
4211
|
if (e) {
|
|
4233
4212
|
const r = document.createElement("style");
|
|
4234
4213
|
r.innerHTML = t, e.appendChild(r);
|
|
4235
4214
|
}
|
|
4236
4215
|
}
|
|
4237
|
-
function
|
|
4216
|
+
function Mi(e, t) {
|
|
4238
4217
|
const r = new URL(t);
|
|
4239
4218
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4240
4219
|
const i = document.createElement("style");
|
|
@@ -4243,7 +4222,7 @@ function Ri(e, t) {
|
|
|
4243
4222
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4244
4223
|
});
|
|
4245
4224
|
}
|
|
4246
|
-
function
|
|
4225
|
+
function $i(e, t, r) {
|
|
4247
4226
|
if (window.emMessageBus) {
|
|
4248
4227
|
const n = document.createElement("style");
|
|
4249
4228
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4251,24 +4230,24 @@ function Ui(e, t, r) {
|
|
|
4251
4230
|
});
|
|
4252
4231
|
}
|
|
4253
4232
|
}
|
|
4254
|
-
function
|
|
4255
|
-
|
|
4233
|
+
function Ri(e) {
|
|
4234
|
+
cr(e, "svelte-1b8j2p", ':host{padding:0;margin:0;font-family:inherit}.PlayerAccountNotificationsContainer{padding:0 5px;display:grid;grid-gap:20px;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s;container-type:inline-size;container-name:notifications-container}.PlayerAccountNotificationBox{background:var(--emw--color-pale, var(--emw--color-gray-50, #f1f1f1));display:block;padding:20px;border-radius:var(--emw--border-radius-medium, 10px);width:100%;color:var(--emw--color-black, #000);box-sizing:border-box;text-decoration:none;word-break:break-word;word-wrap:break-word;overflow-wrap:anywhere;white-space:normal}.PlayerAccountNotificationBoxHeader{display:grid;width:100%;grid-template-areas:"nav main aside";grid-template-rows:auto;grid-template-columns:34px calc(100% - 34px);align-items:center}.PlayerAccountNotificationBoxHeader .PlayerAccountNotificationIcon{width:24px;margin-right:10px;flex:1}.PlayerAccountNotificationBoxHeader .PlayerAccountNotificationTitle{font-size:16px;flex:2}.PlayerAccountNotificationText{margin:0;font-size:14px;font-weight:300}.PlayerAccountNotificationText a{text-decoration:none;color:var(--emw--color-white, #FFFFFF)}.PlayerAccountNotificationsMobileContainer{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-gap:20px;padding:20px}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationBoxHeader{grid-template-columns:40px calc(100% - 40px)}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationTitle{font-size:14px}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationIcon{width:30px;margin-right:10px}.skeletonContainer{container-type:inline-size}.skeletonContainer .skeletonWrapper{animation:fadeIn ease 0.3s}@container (max-width: 768px){.skeletonContainer .skeletonWrapper{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-gap:20px}.skeletonContainer .skeletonWrapper .skeletonNotification{width:100%}}@container (max-width: 425px){.skeletonContainer .skeletonWrapper{display:grid;grid-template-columns:repeat(1, minmax(0, 1fr));grid-gap:20px;padding:0px 10px}.skeletonContainer .skeletonWrapper .skeletonNotification{width:100%}}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}');
|
|
4256
4235
|
}
|
|
4257
|
-
function
|
|
4236
|
+
function St(e, t, r) {
|
|
4258
4237
|
const n = e.slice();
|
|
4259
4238
|
return n[24] = t[r], n;
|
|
4260
4239
|
}
|
|
4261
|
-
function
|
|
4240
|
+
function Tt(e, t, r) {
|
|
4262
4241
|
const n = e.slice();
|
|
4263
4242
|
return n[21] = t[r], n;
|
|
4264
4243
|
}
|
|
4265
|
-
function
|
|
4244
|
+
function Ui(e) {
|
|
4266
4245
|
let t, r = me(
|
|
4267
4246
|
/*notificationsData*/
|
|
4268
4247
|
e[1]
|
|
4269
4248
|
), n = [];
|
|
4270
4249
|
for (let i = 0; i < r.length; i += 1)
|
|
4271
|
-
n[i] =
|
|
4250
|
+
n[i] = Ht(St(e, r, i));
|
|
4272
4251
|
return {
|
|
4273
4252
|
c() {
|
|
4274
4253
|
t = T("div");
|
|
@@ -4292,8 +4271,8 @@ function Gi(e) {
|
|
|
4292
4271
|
);
|
|
4293
4272
|
let s;
|
|
4294
4273
|
for (s = 0; s < r.length; s += 1) {
|
|
4295
|
-
const a =
|
|
4296
|
-
n[s] ? n[s].p(a, o) : (n[s] =
|
|
4274
|
+
const a = St(i, r, s);
|
|
4275
|
+
n[s] ? n[s].p(a, o) : (n[s] = Ht(a), n[s].c(), n[s].m(t, null));
|
|
4297
4276
|
}
|
|
4298
4277
|
for (; s < n.length; s += 1)
|
|
4299
4278
|
n[s].d(1);
|
|
@@ -4301,14 +4280,14 @@ function Gi(e) {
|
|
|
4301
4280
|
}
|
|
4302
4281
|
},
|
|
4303
4282
|
d(i) {
|
|
4304
|
-
i &&
|
|
4283
|
+
i && O(t), Bt(n, i);
|
|
4305
4284
|
}
|
|
4306
4285
|
};
|
|
4307
4286
|
}
|
|
4308
|
-
function
|
|
4287
|
+
function Di(e) {
|
|
4309
4288
|
let t, r, n = me({ length: 3 }), i = [];
|
|
4310
4289
|
for (let o = 0; o < n.length; o += 1)
|
|
4311
|
-
i[o] =
|
|
4290
|
+
i[o] = At(Tt(e, n, o));
|
|
4312
4291
|
return {
|
|
4313
4292
|
c() {
|
|
4314
4293
|
t = T("div"), r = T("div");
|
|
@@ -4317,7 +4296,7 @@ function Fi(e) {
|
|
|
4317
4296
|
x(r, "class", "skeletonWrapper"), x(t, "class", "skeletonContainer");
|
|
4318
4297
|
},
|
|
4319
4298
|
m(o, s) {
|
|
4320
|
-
M(o, t, s),
|
|
4299
|
+
M(o, t, s), P(t, r);
|
|
4321
4300
|
for (let a = 0; a < i.length; a += 1)
|
|
4322
4301
|
i[a] && i[a].m(r, null);
|
|
4323
4302
|
},
|
|
@@ -4327,8 +4306,8 @@ function Fi(e) {
|
|
|
4327
4306
|
n = me({ length: 3 });
|
|
4328
4307
|
let a;
|
|
4329
4308
|
for (a = 0; a < n.length; a += 1) {
|
|
4330
|
-
const h =
|
|
4331
|
-
i[a] ? i[a].p(h, s) : (i[a] =
|
|
4309
|
+
const h = Tt(o, n, a);
|
|
4310
|
+
i[a] ? i[a].p(h, s) : (i[a] = At(h), i[a].c(), i[a].m(r, null));
|
|
4332
4311
|
}
|
|
4333
4312
|
for (; a < i.length; a += 1)
|
|
4334
4313
|
i[a].d(1);
|
|
@@ -4336,11 +4315,11 @@ function Fi(e) {
|
|
|
4336
4315
|
}
|
|
4337
4316
|
},
|
|
4338
4317
|
d(o) {
|
|
4339
|
-
o &&
|
|
4318
|
+
o && O(t), Bt(i, o);
|
|
4340
4319
|
}
|
|
4341
4320
|
};
|
|
4342
4321
|
}
|
|
4343
|
-
function
|
|
4322
|
+
function Ht(e) {
|
|
4344
4323
|
let t, r, n, i, o, s, a, h = (
|
|
4345
4324
|
/*notification*/
|
|
4346
4325
|
e[24].title + ""
|
|
@@ -4350,9 +4329,9 @@ function At(e) {
|
|
|
4350
4329
|
), d;
|
|
4351
4330
|
return {
|
|
4352
4331
|
c() {
|
|
4353
|
-
t = T("div"), r = T("div"), n = T("img"), s = le(), a = T("p"), u =
|
|
4332
|
+
t = T("div"), r = T("div"), n = T("img"), s = le(), a = T("p"), u = Nt(h), l = le(), c = T("p"), d = le(), x(n, "class", "PlayerAccountNotificationIcon"), x(n, "width", "24px"), x(n, "height", "24px"), Ke(n.src, i = /*notification*/
|
|
4354
4333
|
e[24].icon) || x(n, "src", i), x(n, "alt", o = /*notification*/
|
|
4355
|
-
e[24].title), x(a, "class", "PlayerAccountNotificationTitle"), x(r, "class", "PlayerAccountNotificationBoxHeader"), x(c, "class", "PlayerAccountNotificationText"), x(t, "class", "PlayerAccountNotificationBox"),
|
|
4334
|
+
e[24].title), x(a, "class", "PlayerAccountNotificationTitle"), x(r, "class", "PlayerAccountNotificationBoxHeader"), x(c, "class", "PlayerAccountNotificationText"), x(t, "class", "PlayerAccountNotificationBox"), et(
|
|
4356
4335
|
t,
|
|
4357
4336
|
"background",
|
|
4358
4337
|
/*notification*/
|
|
@@ -4360,19 +4339,19 @@ function At(e) {
|
|
|
4360
4339
|
);
|
|
4361
4340
|
},
|
|
4362
4341
|
m(m, p) {
|
|
4363
|
-
M(m, t, p),
|
|
4342
|
+
M(m, t, p), P(t, r), P(r, n), P(r, s), P(r, a), P(a, u), P(t, l), P(t, c), c.innerHTML = f, P(t, d);
|
|
4364
4343
|
},
|
|
4365
4344
|
p(m, p) {
|
|
4366
4345
|
p & /*notificationsData*/
|
|
4367
|
-
2 && !
|
|
4346
|
+
2 && !Ke(n.src, i = /*notification*/
|
|
4368
4347
|
m[24].icon) && x(n, "src", i), p & /*notificationsData*/
|
|
4369
4348
|
2 && o !== (o = /*notification*/
|
|
4370
4349
|
m[24].title) && x(n, "alt", o), p & /*notificationsData*/
|
|
4371
4350
|
2 && h !== (h = /*notification*/
|
|
4372
|
-
m[24].title + "") &&
|
|
4351
|
+
m[24].title + "") && mr(u, h), p & /*notificationsData*/
|
|
4373
4352
|
2 && f !== (f = /*notification*/
|
|
4374
4353
|
m[24].description + "") && (c.innerHTML = f), p & /*notificationsData*/
|
|
4375
|
-
2 &&
|
|
4354
|
+
2 && et(
|
|
4376
4355
|
t,
|
|
4377
4356
|
"background",
|
|
4378
4357
|
/*notification*/
|
|
@@ -4380,11 +4359,11 @@ function At(e) {
|
|
|
4380
4359
|
);
|
|
4381
4360
|
},
|
|
4382
4361
|
d(m) {
|
|
4383
|
-
m &&
|
|
4362
|
+
m && O(t);
|
|
4384
4363
|
}
|
|
4385
4364
|
};
|
|
4386
4365
|
}
|
|
4387
|
-
function
|
|
4366
|
+
function Gi(e) {
|
|
4388
4367
|
let t;
|
|
4389
4368
|
return {
|
|
4390
4369
|
c() {
|
|
@@ -4401,11 +4380,11 @@ function ji(e) {
|
|
|
4401
4380
|
},
|
|
4402
4381
|
p: H,
|
|
4403
4382
|
d(r) {
|
|
4404
|
-
r &&
|
|
4383
|
+
r && O(t);
|
|
4405
4384
|
}
|
|
4406
4385
|
};
|
|
4407
4386
|
}
|
|
4408
|
-
function
|
|
4387
|
+
function Fi(e) {
|
|
4409
4388
|
let t;
|
|
4410
4389
|
return {
|
|
4411
4390
|
c() {
|
|
@@ -4416,16 +4395,16 @@ function ki(e) {
|
|
|
4416
4395
|
},
|
|
4417
4396
|
p: H,
|
|
4418
4397
|
d(r) {
|
|
4419
|
-
r &&
|
|
4398
|
+
r && O(t);
|
|
4420
4399
|
}
|
|
4421
4400
|
};
|
|
4422
4401
|
}
|
|
4423
|
-
function
|
|
4402
|
+
function At(e) {
|
|
4424
4403
|
let t, r;
|
|
4425
4404
|
function n(s, a) {
|
|
4426
4405
|
return (
|
|
4427
4406
|
/*isMobile*/
|
|
4428
|
-
s[3] ?
|
|
4407
|
+
s[3] ? Gi : Fi
|
|
4429
4408
|
);
|
|
4430
4409
|
}
|
|
4431
4410
|
let o = n(e)(e);
|
|
@@ -4434,29 +4413,29 @@ function Pt(e) {
|
|
|
4434
4413
|
t = T("div"), o.c(), r = le(), x(t, "class", "skeletonNotification");
|
|
4435
4414
|
},
|
|
4436
4415
|
m(s, a) {
|
|
4437
|
-
M(s, t, a), o.m(t, null),
|
|
4416
|
+
M(s, t, a), o.m(t, null), P(t, r);
|
|
4438
4417
|
},
|
|
4439
4418
|
p(s, a) {
|
|
4440
4419
|
o.p(s, a);
|
|
4441
4420
|
},
|
|
4442
4421
|
d(s) {
|
|
4443
|
-
s &&
|
|
4422
|
+
s && O(t), o.d();
|
|
4444
4423
|
}
|
|
4445
4424
|
};
|
|
4446
4425
|
}
|
|
4447
|
-
function
|
|
4426
|
+
function ki(e) {
|
|
4448
4427
|
let t;
|
|
4449
4428
|
function r(o, s) {
|
|
4450
4429
|
if (
|
|
4451
4430
|
/*skeletonLoading*/
|
|
4452
4431
|
o[2]
|
|
4453
4432
|
)
|
|
4454
|
-
return
|
|
4433
|
+
return Di;
|
|
4455
4434
|
if (
|
|
4456
4435
|
/*notificationsData*/
|
|
4457
4436
|
o[1]?.length
|
|
4458
4437
|
)
|
|
4459
|
-
return
|
|
4438
|
+
return Ui;
|
|
4460
4439
|
}
|
|
4461
4440
|
let n = r(e), i = n && n(e);
|
|
4462
4441
|
return {
|
|
@@ -4472,23 +4451,23 @@ function Vi(e) {
|
|
|
4472
4451
|
i: H,
|
|
4473
4452
|
o: H,
|
|
4474
4453
|
d(o) {
|
|
4475
|
-
o &&
|
|
4454
|
+
o && O(t), i && i.d(), e[13](null);
|
|
4476
4455
|
}
|
|
4477
4456
|
};
|
|
4478
4457
|
}
|
|
4479
|
-
function
|
|
4480
|
-
let { lang: n = "" } = t, { cmsendpoint: i = "" } = t, { env: o = "" } = t, { userroles: s = "" } = t, { customnotif: a = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: u = "" } = t, { mbsource: l } = t, c, f = !0, d = window.navigator.userAgent, m =
|
|
4458
|
+
function ji(e, t, r) {
|
|
4459
|
+
let { lang: n = "" } = t, { cmsendpoint: i = "" } = t, { env: o = "" } = t, { userroles: s = "" } = t, { customnotif: a = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: u = "" } = t, { mbsource: l } = t, c, f = !0, d = window.navigator.userAgent, m = Et(d) !== "PC", p = [], S = [], $ = A();
|
|
4481
4460
|
const C = window.matchMedia("(min-width: 768px)");
|
|
4482
|
-
function
|
|
4483
|
-
const y =
|
|
4461
|
+
function A() {
|
|
4462
|
+
const y = Et(d);
|
|
4484
4463
|
if (y)
|
|
4485
4464
|
return y === "PC" ? "dk" : "mtWeb";
|
|
4486
4465
|
}
|
|
4487
4466
|
const R = () => {
|
|
4488
4467
|
const y = new URL(`${i}/${n}/support-information`);
|
|
4489
4468
|
y.searchParams.append("env", o), y.searchParams.append("userRoles", s), y.searchParams.append("device", $), fetch(y.href).then((G) => G.json()).then((G) => {
|
|
4490
|
-
G.length && (r(1, p = G[0].children), p?.forEach((
|
|
4491
|
-
S.length && (
|
|
4469
|
+
G.length && (r(1, p = G[0].children), p?.forEach((ur) => {
|
|
4470
|
+
S.length && (ur.backgroundColor = S[0], S.shift());
|
|
4492
4471
|
}));
|
|
4493
4472
|
}).catch((G) => {
|
|
4494
4473
|
console.error(G);
|
|
@@ -4500,13 +4479,13 @@ function Xi(e, t, r) {
|
|
|
4500
4479
|
1e3
|
|
4501
4480
|
);
|
|
4502
4481
|
});
|
|
4503
|
-
},
|
|
4482
|
+
}, w = () => {
|
|
4504
4483
|
a.replace(" ", ""), S = a.split(",");
|
|
4505
4484
|
};
|
|
4506
|
-
|
|
4485
|
+
yr(() => () => {
|
|
4507
4486
|
});
|
|
4508
4487
|
function D(y) {
|
|
4509
|
-
|
|
4488
|
+
Oe[y ? "unshift" : "push"](() => {
|
|
4510
4489
|
c = y, r(0, c);
|
|
4511
4490
|
});
|
|
4512
4491
|
}
|
|
@@ -4514,12 +4493,12 @@ function Xi(e, t, r) {
|
|
|
4514
4493
|
"lang" in y && r(5, n = y.lang), "cmsendpoint" in y && r(6, i = y.cmsendpoint), "env" in y && r(7, o = y.env), "userroles" in y && r(8, s = y.userroles), "customnotif" in y && r(9, a = y.customnotif), "clientstyling" in y && r(10, h = y.clientstyling), "clientstylingurl" in y && r(11, u = y.clientstylingurl), "mbsource" in y && r(12, l = y.mbsource);
|
|
4515
4494
|
}, e.$$.update = () => {
|
|
4516
4495
|
e.$$.dirty & /*customnotif*/
|
|
4517
|
-
512 && a &&
|
|
4518
|
-
2 && p &&
|
|
4496
|
+
512 && a && w(), e.$$.dirty & /*notificationsData*/
|
|
4497
|
+
2 && p && w(), e.$$.dirty & /*userroles, cmsendpoint, env, lang*/
|
|
4519
4498
|
480 && s && i && o && n && R(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4520
|
-
1025 && h && c &&
|
|
4521
|
-
2049 && u && c &&
|
|
4522
|
-
4097 && l && c &&
|
|
4499
|
+
1025 && h && c && Li(c, h), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4500
|
+
2049 && u && c && Mi(c, u), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4501
|
+
4097 && l && c && $i(c, `${l}.Style`);
|
|
4523
4502
|
}, [
|
|
4524
4503
|
c,
|
|
4525
4504
|
p,
|
|
@@ -4537,14 +4516,14 @@ function Xi(e, t, r) {
|
|
|
4537
4516
|
D
|
|
4538
4517
|
];
|
|
4539
4518
|
}
|
|
4540
|
-
class
|
|
4519
|
+
class Vi extends Nr {
|
|
4541
4520
|
constructor(t) {
|
|
4542
|
-
super(),
|
|
4521
|
+
super(), wr(
|
|
4543
4522
|
this,
|
|
4544
4523
|
t,
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4524
|
+
ji,
|
|
4525
|
+
ki,
|
|
4526
|
+
wt,
|
|
4548
4527
|
{
|
|
4549
4528
|
lang: 5,
|
|
4550
4529
|
cmsendpoint: 6,
|
|
@@ -4555,7 +4534,7 @@ class Wi extends Nr {
|
|
|
4555
4534
|
clientstylingurl: 11,
|
|
4556
4535
|
mbsource: 12
|
|
4557
4536
|
},
|
|
4558
|
-
|
|
4537
|
+
Ri
|
|
4559
4538
|
);
|
|
4560
4539
|
}
|
|
4561
4540
|
get lang() {
|
|
@@ -4607,7 +4586,7 @@ class Wi extends Nr {
|
|
|
4607
4586
|
this.$$set({ mbsource: t }), B();
|
|
4608
4587
|
}
|
|
4609
4588
|
}
|
|
4610
|
-
|
|
4589
|
+
Br(Vi, { lang: {}, cmsendpoint: {}, env: {}, userroles: {}, customnotif: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
|
|
4611
4590
|
export {
|
|
4612
|
-
|
|
4591
|
+
Vi as P
|
|
4613
4592
|
};
|