@everymatrix/player-account-closure-nd 1.76.0 → 1.76.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{PlayerAccountClosureNd-CCWHUrLu.js → PlayerAccountClosureNd-CghjFIHo.js} +768 -803
- package/components/{PlayerAccountClosureNd-OOsNIRLS.js → PlayerAccountClosureNd-Zt8dw4vA.js} +776 -811
- package/components/PlayerAccountClosureNd-tgfw3UIO.cjs +18 -0
- package/es2015/player-account-closure-nd.cjs +1 -1
- package/es2015/player-account-closure-nd.js +1 -1
- package/esnext/player-account-closure-nd.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountClosureNd-BxkOB3Ku.cjs +0 -18
package/components/{PlayerAccountClosureNd-CCWHUrLu.js → PlayerAccountClosureNd-CghjFIHo.js}
RENAMED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
function O() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Ct(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Je() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function J(e) {
|
|
10
|
+
e.forEach(Ct);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Xe(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function At(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function nr(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function wt(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const n of t)
|
|
24
24
|
n(void 0);
|
|
@@ -27,20 +27,20 @@ function Bt(e, ...t) {
|
|
|
27
27
|
const r = e.subscribe(...t);
|
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
e.$$.on_destroy.push(
|
|
30
|
+
function ir(e, t, r) {
|
|
31
|
+
e.$$.on_destroy.push(wt(t, r));
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function y(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const n =
|
|
36
|
+
function or(e, t, r) {
|
|
37
|
+
const n = sr(e);
|
|
38
38
|
if (!n.getElementById(t)) {
|
|
39
39
|
const i = H("style");
|
|
40
|
-
i.id = t, i.textContent = r,
|
|
40
|
+
i.id = t, i.textContent = r, ar(n, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function sr(e) {
|
|
44
44
|
if (!e)
|
|
45
45
|
return document;
|
|
46
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -50,8 +50,8 @@ function cr(e) {
|
|
|
50
50
|
t
|
|
51
51
|
) : e.ownerDocument;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
return
|
|
53
|
+
function ar(e, t) {
|
|
54
|
+
return y(
|
|
55
55
|
/** @type {Document} */
|
|
56
56
|
e.head || e,
|
|
57
57
|
t
|
|
@@ -60,7 +60,7 @@ function hr(e, t) {
|
|
|
60
60
|
function ye(e, t, r) {
|
|
61
61
|
e.insertBefore(t, r || null);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function ae(e) {
|
|
64
64
|
e.parentNode && e.parentNode.removeChild(e);
|
|
65
65
|
}
|
|
66
66
|
function H(e) {
|
|
@@ -78,17 +78,17 @@ function D() {
|
|
|
78
78
|
function me(e, t, r, n) {
|
|
79
79
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function E(e, t, r) {
|
|
82
82
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function ur(e) {
|
|
85
85
|
return Array.from(e.childNodes);
|
|
86
86
|
}
|
|
87
87
|
function W(e, t) {
|
|
88
88
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
89
89
|
t);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function lr(e) {
|
|
92
92
|
const t = {};
|
|
93
93
|
return e.childNodes.forEach(
|
|
94
94
|
/** @param {Element} node */
|
|
@@ -97,87 +97,87 @@ function pr(e) {
|
|
|
97
97
|
}
|
|
98
98
|
), t;
|
|
99
99
|
}
|
|
100
|
-
let
|
|
101
|
-
function
|
|
102
|
-
|
|
100
|
+
let ie;
|
|
101
|
+
function ne(e) {
|
|
102
|
+
ie = e;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
if (!
|
|
104
|
+
function cr() {
|
|
105
|
+
if (!ie)
|
|
106
106
|
throw new Error("Function called outside component initialization");
|
|
107
|
-
return
|
|
107
|
+
return ie;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
|
|
109
|
+
function hr(e) {
|
|
110
|
+
cr().$$.on_mount.push(e);
|
|
111
111
|
}
|
|
112
|
-
const z = [],
|
|
112
|
+
const z = [], Pe = [];
|
|
113
113
|
let V = [];
|
|
114
|
-
const
|
|
115
|
-
let
|
|
116
|
-
function
|
|
117
|
-
|
|
114
|
+
const Ke = [], fr = /* @__PURE__ */ Promise.resolve();
|
|
115
|
+
let Oe = !1;
|
|
116
|
+
function dr() {
|
|
117
|
+
Oe || (Oe = !0, fr.then(R));
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function Ne(e) {
|
|
120
120
|
V.push(e);
|
|
121
121
|
}
|
|
122
|
-
const
|
|
122
|
+
const Ae = /* @__PURE__ */ new Set();
|
|
123
123
|
let j = 0;
|
|
124
124
|
function R() {
|
|
125
125
|
if (j !== 0)
|
|
126
126
|
return;
|
|
127
|
-
const e =
|
|
127
|
+
const e = ie;
|
|
128
128
|
do {
|
|
129
129
|
try {
|
|
130
130
|
for (; j < z.length; ) {
|
|
131
131
|
const t = z[j];
|
|
132
|
-
j++,
|
|
132
|
+
j++, ne(t), pr(t.$$);
|
|
133
133
|
}
|
|
134
134
|
} catch (t) {
|
|
135
135
|
throw z.length = 0, j = 0, t;
|
|
136
136
|
}
|
|
137
|
-
for (
|
|
138
|
-
|
|
137
|
+
for (ne(null), z.length = 0, j = 0; Pe.length; )
|
|
138
|
+
Pe.pop()();
|
|
139
139
|
for (let t = 0; t < V.length; t += 1) {
|
|
140
140
|
const r = V[t];
|
|
141
|
-
|
|
141
|
+
Ae.has(r) || (Ae.add(r), r());
|
|
142
142
|
}
|
|
143
143
|
V.length = 0;
|
|
144
144
|
} while (z.length);
|
|
145
|
-
for (;
|
|
146
|
-
|
|
147
|
-
|
|
145
|
+
for (; Ke.length; )
|
|
146
|
+
Ke.pop()();
|
|
147
|
+
Oe = !1, Ae.clear(), ne(e);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function pr(e) {
|
|
150
150
|
if (e.fragment !== null) {
|
|
151
|
-
e.update(),
|
|
151
|
+
e.update(), J(e.before_update);
|
|
152
152
|
const t = e.dirty;
|
|
153
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
153
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ne);
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function mr(e) {
|
|
157
157
|
const t = [], r = [];
|
|
158
158
|
V.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), V = t;
|
|
159
159
|
}
|
|
160
|
-
const
|
|
161
|
-
function
|
|
162
|
-
e && e.i && (
|
|
160
|
+
const br = /* @__PURE__ */ new Set();
|
|
161
|
+
function gr(e, t) {
|
|
162
|
+
e && e.i && (br.delete(e), e.i(t));
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function yr(e, t, r) {
|
|
165
165
|
const { fragment: n, after_update: i } = e.$$;
|
|
166
|
-
n && n.m(t, r),
|
|
167
|
-
const o = e.$$.on_mount.map(
|
|
168
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
169
|
-
}), i.forEach(
|
|
166
|
+
n && n.m(t, r), Ne(() => {
|
|
167
|
+
const o = e.$$.on_mount.map(Ct).filter(Xe);
|
|
168
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : J(o), e.$$.on_mount = [];
|
|
169
|
+
}), i.forEach(Ne);
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function vr(e, t) {
|
|
172
172
|
const r = e.$$;
|
|
173
|
-
r.fragment !== null && (
|
|
173
|
+
r.fragment !== null && (mr(r.after_update), J(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
174
174
|
}
|
|
175
|
-
function
|
|
176
|
-
e.$$.dirty[0] === -1 && (z.push(e),
|
|
175
|
+
function xr(e, t) {
|
|
176
|
+
e.$$.dirty[0] === -1 && (z.push(e), dr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
177
177
|
}
|
|
178
|
-
function
|
|
179
|
-
const l =
|
|
180
|
-
|
|
178
|
+
function Er(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
179
|
+
const l = ie;
|
|
180
|
+
ne(e);
|
|
181
181
|
const u = e.$$ = {
|
|
182
182
|
fragment: null,
|
|
183
183
|
ctx: [],
|
|
@@ -185,7 +185,7 @@ function Cr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
185
185
|
props: o,
|
|
186
186
|
update: O,
|
|
187
187
|
not_equal: i,
|
|
188
|
-
bound:
|
|
188
|
+
bound: Je(),
|
|
189
189
|
// lifecycle
|
|
190
190
|
on_mount: [],
|
|
191
191
|
on_destroy: [],
|
|
@@ -194,28 +194,28 @@ function Cr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
194
194
|
after_update: [],
|
|
195
195
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
196
196
|
// everything else
|
|
197
|
-
callbacks:
|
|
197
|
+
callbacks: Je(),
|
|
198
198
|
dirty: a,
|
|
199
199
|
skip_bound: !1,
|
|
200
200
|
root: t.target || l.$$.root
|
|
201
201
|
};
|
|
202
202
|
s && s(u.root);
|
|
203
203
|
let c = !1;
|
|
204
|
-
if (u.ctx = r
|
|
205
|
-
const m =
|
|
206
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = m) && (!u.skip_bound && u.bound[f] && u.bound[f](m), c &&
|
|
207
|
-
})
|
|
204
|
+
if (u.ctx = r(e, t.props || {}, (f, h, ...d) => {
|
|
205
|
+
const m = d.length ? d[0] : h;
|
|
206
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = m) && (!u.skip_bound && u.bound[f] && u.bound[f](m), c && xr(e, f)), h;
|
|
207
|
+
}), u.update(), c = !0, J(u.before_update), u.fragment = n(u.ctx), t.target) {
|
|
208
208
|
if (t.hydrate) {
|
|
209
|
-
const f =
|
|
210
|
-
u.fragment && u.fragment.l(f), f.forEach(
|
|
209
|
+
const f = ur(t.target);
|
|
210
|
+
u.fragment && u.fragment.l(f), f.forEach(ae);
|
|
211
211
|
} else
|
|
212
212
|
u.fragment && u.fragment.c();
|
|
213
|
-
t.intro &&
|
|
213
|
+
t.intro && gr(e.$$.fragment), yr(e, t.target, t.anchor), R();
|
|
214
214
|
}
|
|
215
|
-
|
|
215
|
+
ne(l);
|
|
216
216
|
}
|
|
217
|
-
let
|
|
218
|
-
typeof HTMLElement == "function" && (
|
|
217
|
+
let St;
|
|
218
|
+
typeof HTMLElement == "function" && (St = class extends HTMLElement {
|
|
219
219
|
/** The Svelte component constructor */
|
|
220
220
|
$$ctor;
|
|
221
221
|
/** Slots */
|
|
@@ -257,7 +257,7 @@ typeof HTMLElement == "function" && (Mt = class extends HTMLElement {
|
|
|
257
257
|
let o;
|
|
258
258
|
return {
|
|
259
259
|
c: function() {
|
|
260
|
-
o = H("slot"), i !== "default" &&
|
|
260
|
+
o = H("slot"), i !== "default" && E(o, "name", i);
|
|
261
261
|
},
|
|
262
262
|
/**
|
|
263
263
|
* @param {HTMLElement} target
|
|
@@ -267,14 +267,14 @@ typeof HTMLElement == "function" && (Mt = class extends HTMLElement {
|
|
|
267
267
|
ye(l, o, u);
|
|
268
268
|
},
|
|
269
269
|
d: function(l) {
|
|
270
|
-
l &&
|
|
270
|
+
l && ae(o);
|
|
271
271
|
}
|
|
272
272
|
};
|
|
273
273
|
};
|
|
274
274
|
};
|
|
275
275
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
276
276
|
return;
|
|
277
|
-
const t = {}, r =
|
|
277
|
+
const t = {}, r = lr(this);
|
|
278
278
|
for (const i of this.$$s)
|
|
279
279
|
i in r && (t[i] = [e(i)]);
|
|
280
280
|
for (const i of this.attributes) {
|
|
@@ -361,8 +361,8 @@ function he(e, t, r, n) {
|
|
|
361
361
|
return t;
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
|
-
function
|
|
365
|
-
let s = class extends
|
|
364
|
+
function _r(e, t, r, n, i, o) {
|
|
365
|
+
let s = class extends St {
|
|
366
366
|
constructor() {
|
|
367
367
|
super(e, r, i), this.$$p_d = t;
|
|
368
368
|
}
|
|
@@ -390,7 +390,7 @@ function Sr(e, t, r, n, i, o) {
|
|
|
390
390
|
}), e.element = /** @type {any} */
|
|
391
391
|
s, s;
|
|
392
392
|
}
|
|
393
|
-
class
|
|
393
|
+
class Cr {
|
|
394
394
|
/**
|
|
395
395
|
* ### PRIVATE API
|
|
396
396
|
*
|
|
@@ -409,7 +409,7 @@ class Tr {
|
|
|
409
409
|
$$set = void 0;
|
|
410
410
|
/** @returns {void} */
|
|
411
411
|
$destroy() {
|
|
412
|
-
|
|
412
|
+
vr(this, 1), this.$destroy = O;
|
|
413
413
|
}
|
|
414
414
|
/**
|
|
415
415
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -418,7 +418,7 @@ class Tr {
|
|
|
418
418
|
* @returns {() => void}
|
|
419
419
|
*/
|
|
420
420
|
$on(t, r) {
|
|
421
|
-
if (!
|
|
421
|
+
if (!Xe(r))
|
|
422
422
|
return O;
|
|
423
423
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
424
424
|
return n.push(r), () => {
|
|
@@ -431,11 +431,11 @@ class Tr {
|
|
|
431
431
|
* @returns {void}
|
|
432
432
|
*/
|
|
433
433
|
$set(t) {
|
|
434
|
-
this.$$set && !
|
|
434
|
+
this.$$set && !nr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
|
-
const
|
|
438
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
437
|
+
const Ar = "4";
|
|
438
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ar);
|
|
439
439
|
/*! *****************************************************************************
|
|
440
440
|
Copyright (c) Microsoft Corporation.
|
|
441
441
|
|
|
@@ -450,24 +450,43 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
450
450
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
451
451
|
PERFORMANCE OF THIS SOFTWARE.
|
|
452
452
|
***************************************************************************** */
|
|
453
|
-
var
|
|
454
|
-
return
|
|
453
|
+
var Ie = function(e, t) {
|
|
454
|
+
return Ie = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
455
455
|
r.__proto__ = n;
|
|
456
456
|
} || function(r, n) {
|
|
457
457
|
for (var i in n)
|
|
458
458
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
459
|
-
},
|
|
459
|
+
}, Ie(e, t);
|
|
460
460
|
};
|
|
461
|
-
function
|
|
461
|
+
function I(e, t) {
|
|
462
462
|
if (typeof t != "function" && t !== null)
|
|
463
463
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
464
|
-
|
|
464
|
+
Ie(e, t);
|
|
465
465
|
function r() {
|
|
466
466
|
this.constructor = e;
|
|
467
467
|
}
|
|
468
468
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
469
469
|
}
|
|
470
|
-
function
|
|
470
|
+
var v = function() {
|
|
471
|
+
return v = Object.assign || function(t) {
|
|
472
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
473
|
+
r = arguments[n];
|
|
474
|
+
for (var o in r)
|
|
475
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
476
|
+
}
|
|
477
|
+
return t;
|
|
478
|
+
}, v.apply(this, arguments);
|
|
479
|
+
};
|
|
480
|
+
function wr(e, t) {
|
|
481
|
+
var r = {};
|
|
482
|
+
for (var n in e)
|
|
483
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
484
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
485
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
486
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
487
|
+
return r;
|
|
488
|
+
}
|
|
489
|
+
function Le(e) {
|
|
471
490
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
472
491
|
if (r)
|
|
473
492
|
return r.call(e);
|
|
@@ -479,7 +498,7 @@ function De(e) {
|
|
|
479
498
|
};
|
|
480
499
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
481
500
|
}
|
|
482
|
-
function
|
|
501
|
+
function $e(e, t) {
|
|
483
502
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
484
503
|
if (!r)
|
|
485
504
|
return e;
|
|
@@ -499,22 +518,22 @@ function Ue(e, t) {
|
|
|
499
518
|
}
|
|
500
519
|
return o;
|
|
501
520
|
}
|
|
502
|
-
function
|
|
503
|
-
if (arguments.length === 2)
|
|
521
|
+
function X(e, t, r) {
|
|
522
|
+
if (r || arguments.length === 2)
|
|
504
523
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
505
524
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
506
525
|
return e.concat(o || t);
|
|
507
526
|
}
|
|
508
|
-
function
|
|
527
|
+
function N(e) {
|
|
509
528
|
return typeof e == "function";
|
|
510
529
|
}
|
|
511
|
-
function
|
|
530
|
+
function Tt(e) {
|
|
512
531
|
var t = function(n) {
|
|
513
532
|
Error.call(n), n.stack = new Error().stack;
|
|
514
533
|
}, r = e(t);
|
|
515
534
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
516
535
|
}
|
|
517
|
-
var
|
|
536
|
+
var we = Tt(function(e) {
|
|
518
537
|
return function(r) {
|
|
519
538
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
520
539
|
` + r.map(function(n, i) {
|
|
@@ -523,13 +542,13 @@ var Te = Pt(function(e) {
|
|
|
523
542
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
524
543
|
};
|
|
525
544
|
});
|
|
526
|
-
function
|
|
545
|
+
function Re(e, t) {
|
|
527
546
|
if (e) {
|
|
528
547
|
var r = e.indexOf(t);
|
|
529
548
|
0 <= r && e.splice(r, 1);
|
|
530
549
|
}
|
|
531
550
|
}
|
|
532
|
-
var
|
|
551
|
+
var ve = function() {
|
|
533
552
|
function e(t) {
|
|
534
553
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
535
554
|
}
|
|
@@ -541,12 +560,12 @@ var xe = function() {
|
|
|
541
560
|
if (s)
|
|
542
561
|
if (this._parentage = null, Array.isArray(s))
|
|
543
562
|
try {
|
|
544
|
-
for (var a =
|
|
563
|
+
for (var a = Le(s), l = a.next(); !l.done; l = a.next()) {
|
|
545
564
|
var u = l.value;
|
|
546
565
|
u.remove(this);
|
|
547
566
|
}
|
|
548
|
-
} catch (
|
|
549
|
-
t = { error:
|
|
567
|
+
} catch (p) {
|
|
568
|
+
t = { error: p };
|
|
550
569
|
} finally {
|
|
551
570
|
try {
|
|
552
571
|
l && !l.done && (r = a.return) && r.call(a);
|
|
@@ -558,29 +577,29 @@ var xe = function() {
|
|
|
558
577
|
else
|
|
559
578
|
s.remove(this);
|
|
560
579
|
var c = this.initialTeardown;
|
|
561
|
-
if (
|
|
580
|
+
if (N(c))
|
|
562
581
|
try {
|
|
563
582
|
c();
|
|
564
|
-
} catch (
|
|
565
|
-
o =
|
|
583
|
+
} catch (p) {
|
|
584
|
+
o = p instanceof we ? p.errors : [p];
|
|
566
585
|
}
|
|
567
586
|
var f = this._finalizers;
|
|
568
587
|
if (f) {
|
|
569
588
|
this._finalizers = null;
|
|
570
589
|
try {
|
|
571
|
-
for (var h =
|
|
572
|
-
var m =
|
|
590
|
+
for (var h = Le(f), d = h.next(); !d.done; d = h.next()) {
|
|
591
|
+
var m = d.value;
|
|
573
592
|
try {
|
|
574
|
-
|
|
575
|
-
} catch (
|
|
576
|
-
o = o ?? [],
|
|
593
|
+
et(m);
|
|
594
|
+
} catch (p) {
|
|
595
|
+
o = o ?? [], p instanceof we ? o = X(X([], $e(o)), $e(p.errors)) : o.push(p);
|
|
577
596
|
}
|
|
578
597
|
}
|
|
579
|
-
} catch (
|
|
580
|
-
n = { error:
|
|
598
|
+
} catch (p) {
|
|
599
|
+
n = { error: p };
|
|
581
600
|
} finally {
|
|
582
601
|
try {
|
|
583
|
-
|
|
602
|
+
d && !d.done && (i = h.return) && i.call(h);
|
|
584
603
|
} finally {
|
|
585
604
|
if (n)
|
|
586
605
|
throw n.error;
|
|
@@ -588,13 +607,13 @@ var xe = function() {
|
|
|
588
607
|
}
|
|
589
608
|
}
|
|
590
609
|
if (o)
|
|
591
|
-
throw new
|
|
610
|
+
throw new we(o);
|
|
592
611
|
}
|
|
593
612
|
}, e.prototype.add = function(t) {
|
|
594
613
|
var r;
|
|
595
614
|
if (t && t !== this)
|
|
596
615
|
if (this.closed)
|
|
597
|
-
|
|
616
|
+
et(t);
|
|
598
617
|
else {
|
|
599
618
|
if (t instanceof e) {
|
|
600
619
|
if (t.closed || t._hasParent(this))
|
|
@@ -611,52 +630,56 @@ var xe = function() {
|
|
|
611
630
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
612
631
|
}, e.prototype._removeParent = function(t) {
|
|
613
632
|
var r = this._parentage;
|
|
614
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
633
|
+
r === t ? this._parentage = null : Array.isArray(r) && Re(r, t);
|
|
615
634
|
}, e.prototype.remove = function(t) {
|
|
616
635
|
var r = this._finalizers;
|
|
617
|
-
r &&
|
|
636
|
+
r && Re(r, t), t instanceof e && t._removeParent(this);
|
|
618
637
|
}, e.EMPTY = function() {
|
|
619
638
|
var t = new e();
|
|
620
639
|
return t.closed = !0, t;
|
|
621
640
|
}(), e;
|
|
622
|
-
}(),
|
|
623
|
-
function
|
|
624
|
-
return e instanceof
|
|
625
|
-
}
|
|
626
|
-
function
|
|
627
|
-
|
|
628
|
-
}
|
|
629
|
-
var
|
|
630
|
-
|
|
631
|
-
|
|
641
|
+
}(), Ht = ve.EMPTY;
|
|
642
|
+
function Bt(e) {
|
|
643
|
+
return e instanceof ve || e && "closed" in e && N(e.remove) && N(e.add) && N(e.unsubscribe);
|
|
644
|
+
}
|
|
645
|
+
function et(e) {
|
|
646
|
+
N(e) ? e() : e.unsubscribe();
|
|
647
|
+
}
|
|
648
|
+
var Sr = {
|
|
649
|
+
onUnhandledError: null,
|
|
650
|
+
onStoppedNotification: null,
|
|
651
|
+
Promise: void 0,
|
|
652
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
653
|
+
useDeprecatedNextContext: !1
|
|
654
|
+
}, Tr = {
|
|
632
655
|
setTimeout: function(e, t) {
|
|
633
656
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
634
657
|
r[n - 2] = arguments[n];
|
|
635
|
-
return setTimeout.apply(void 0,
|
|
658
|
+
return setTimeout.apply(void 0, X([e, t], $e(r)));
|
|
636
659
|
},
|
|
637
660
|
clearTimeout: function(e) {
|
|
638
661
|
return clearTimeout(e);
|
|
639
662
|
},
|
|
640
663
|
delegate: void 0
|
|
641
664
|
};
|
|
642
|
-
function
|
|
643
|
-
|
|
665
|
+
function Hr(e) {
|
|
666
|
+
Tr.setTimeout(function() {
|
|
644
667
|
throw e;
|
|
645
668
|
});
|
|
646
669
|
}
|
|
647
|
-
function
|
|
670
|
+
function tt() {
|
|
648
671
|
}
|
|
649
672
|
function fe(e) {
|
|
650
673
|
e();
|
|
651
674
|
}
|
|
652
|
-
var
|
|
653
|
-
|
|
675
|
+
var Mt = function(e) {
|
|
676
|
+
I(t, e);
|
|
654
677
|
function t(r) {
|
|
655
678
|
var n = e.call(this) || this;
|
|
656
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
679
|
+
return n.isStopped = !1, r ? (n.destination = r, Bt(r) && r.add(n)) : n.destination = Pr, n;
|
|
657
680
|
}
|
|
658
681
|
return t.create = function(r, n, i) {
|
|
659
|
-
return new
|
|
682
|
+
return new De(r, n, i);
|
|
660
683
|
}, t.prototype.next = function(r) {
|
|
661
684
|
this.isStopped || this._next(r);
|
|
662
685
|
}, t.prototype.error = function(r) {
|
|
@@ -680,7 +703,7 @@ var It = function(e) {
|
|
|
680
703
|
this.unsubscribe();
|
|
681
704
|
}
|
|
682
705
|
}, t;
|
|
683
|
-
}(
|
|
706
|
+
}(ve), Br = function() {
|
|
684
707
|
function e(t) {
|
|
685
708
|
this.partialObserver = t;
|
|
686
709
|
}
|
|
@@ -711,43 +734,43 @@ var It = function(e) {
|
|
|
711
734
|
le(r);
|
|
712
735
|
}
|
|
713
736
|
}, e;
|
|
714
|
-
}(),
|
|
715
|
-
|
|
737
|
+
}(), De = function(e) {
|
|
738
|
+
I(t, e);
|
|
716
739
|
function t(r, n, i) {
|
|
717
740
|
var o = e.call(this) || this, s;
|
|
718
|
-
return
|
|
741
|
+
return N(r) || !r ? s = {
|
|
719
742
|
next: r ?? void 0,
|
|
720
743
|
error: n ?? void 0,
|
|
721
744
|
complete: i ?? void 0
|
|
722
|
-
} : s = r, o.destination = new
|
|
745
|
+
} : s = r, o.destination = new Br(s), o;
|
|
723
746
|
}
|
|
724
747
|
return t;
|
|
725
|
-
}(
|
|
748
|
+
}(Mt);
|
|
726
749
|
function le(e) {
|
|
727
|
-
|
|
750
|
+
Hr(e);
|
|
728
751
|
}
|
|
729
|
-
function
|
|
752
|
+
function Mr(e) {
|
|
730
753
|
throw e;
|
|
731
754
|
}
|
|
732
|
-
var
|
|
755
|
+
var Pr = {
|
|
733
756
|
closed: !0,
|
|
734
|
-
next:
|
|
735
|
-
error:
|
|
736
|
-
complete:
|
|
737
|
-
},
|
|
757
|
+
next: tt,
|
|
758
|
+
error: Mr,
|
|
759
|
+
complete: tt
|
|
760
|
+
}, Or = function() {
|
|
738
761
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
739
762
|
}();
|
|
740
|
-
function
|
|
763
|
+
function Nr(e) {
|
|
741
764
|
return e;
|
|
742
765
|
}
|
|
743
|
-
function
|
|
744
|
-
return e.length === 0 ?
|
|
766
|
+
function Ir(e) {
|
|
767
|
+
return e.length === 0 ? Nr : e.length === 1 ? e[0] : function(r) {
|
|
745
768
|
return e.reduce(function(n, i) {
|
|
746
769
|
return i(n);
|
|
747
770
|
}, r);
|
|
748
771
|
};
|
|
749
772
|
}
|
|
750
|
-
var
|
|
773
|
+
var rt = function() {
|
|
751
774
|
function e(t) {
|
|
752
775
|
t && (this._subscribe = t);
|
|
753
776
|
}
|
|
@@ -755,7 +778,7 @@ var st = function() {
|
|
|
755
778
|
var r = new e();
|
|
756
779
|
return r.source = this, r.operator = t, r;
|
|
757
780
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
758
|
-
var i = this, o =
|
|
781
|
+
var i = this, o = $r(t) ? t : new De(t, r, n);
|
|
759
782
|
return fe(function() {
|
|
760
783
|
var s = i, a = s.operator, l = s.source;
|
|
761
784
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -768,8 +791,8 @@ var st = function() {
|
|
|
768
791
|
}
|
|
769
792
|
}, e.prototype.forEach = function(t, r) {
|
|
770
793
|
var n = this;
|
|
771
|
-
return r =
|
|
772
|
-
var s = new
|
|
794
|
+
return r = nt(r), new r(function(i, o) {
|
|
795
|
+
var s = new De({
|
|
773
796
|
next: function(a) {
|
|
774
797
|
try {
|
|
775
798
|
t(a);
|
|
@@ -785,15 +808,15 @@ var st = function() {
|
|
|
785
808
|
}, e.prototype._subscribe = function(t) {
|
|
786
809
|
var r;
|
|
787
810
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
788
|
-
}, e.prototype[
|
|
811
|
+
}, e.prototype[Or] = function() {
|
|
789
812
|
return this;
|
|
790
813
|
}, e.prototype.pipe = function() {
|
|
791
814
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
792
815
|
t[r] = arguments[r];
|
|
793
|
-
return
|
|
816
|
+
return Ir(t)(this);
|
|
794
817
|
}, e.prototype.toPromise = function(t) {
|
|
795
818
|
var r = this;
|
|
796
|
-
return t =
|
|
819
|
+
return t = nt(t), new t(function(n, i) {
|
|
797
820
|
var o;
|
|
798
821
|
r.subscribe(function(s) {
|
|
799
822
|
return o = s;
|
|
@@ -807,32 +830,32 @@ var st = function() {
|
|
|
807
830
|
return new e(t);
|
|
808
831
|
}, e;
|
|
809
832
|
}();
|
|
810
|
-
function
|
|
833
|
+
function nt(e) {
|
|
811
834
|
var t;
|
|
812
|
-
return (t = e ??
|
|
835
|
+
return (t = e ?? Sr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
813
836
|
}
|
|
814
|
-
function
|
|
815
|
-
return e &&
|
|
837
|
+
function Lr(e) {
|
|
838
|
+
return e && N(e.next) && N(e.error) && N(e.complete);
|
|
816
839
|
}
|
|
817
|
-
function
|
|
818
|
-
return e && e instanceof
|
|
840
|
+
function $r(e) {
|
|
841
|
+
return e && e instanceof Mt || Lr(e) && Bt(e);
|
|
819
842
|
}
|
|
820
|
-
var
|
|
843
|
+
var Rr = Tt(function(e) {
|
|
821
844
|
return function() {
|
|
822
845
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
823
846
|
};
|
|
824
|
-
}),
|
|
825
|
-
|
|
847
|
+
}), Pt = function(e) {
|
|
848
|
+
I(t, e);
|
|
826
849
|
function t() {
|
|
827
850
|
var r = e.call(this) || this;
|
|
828
851
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
829
852
|
}
|
|
830
853
|
return t.prototype.lift = function(r) {
|
|
831
|
-
var n = new
|
|
854
|
+
var n = new it(this, this);
|
|
832
855
|
return n.operator = r, n;
|
|
833
856
|
}, t.prototype._throwIfClosed = function() {
|
|
834
857
|
if (this.closed)
|
|
835
|
-
throw new
|
|
858
|
+
throw new Rr();
|
|
836
859
|
}, t.prototype.next = function(r) {
|
|
837
860
|
var n = this;
|
|
838
861
|
fe(function() {
|
|
@@ -840,7 +863,7 @@ var Fr = Pt(function(e) {
|
|
|
840
863
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
841
864
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
842
865
|
try {
|
|
843
|
-
for (var s =
|
|
866
|
+
for (var s = Le(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
844
867
|
var l = a.value;
|
|
845
868
|
l.next(r);
|
|
846
869
|
}
|
|
@@ -889,20 +912,20 @@ var Fr = Pt(function(e) {
|
|
|
889
912
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
890
913
|
}, t.prototype._innerSubscribe = function(r) {
|
|
891
914
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
892
|
-
return o || s ?
|
|
893
|
-
n.currentObservers = null,
|
|
915
|
+
return o || s ? Ht : (this.currentObservers = null, a.push(r), new ve(function() {
|
|
916
|
+
n.currentObservers = null, Re(a, r);
|
|
894
917
|
}));
|
|
895
918
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
896
919
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
897
920
|
i ? r.error(o) : s && r.complete();
|
|
898
921
|
}, t.prototype.asObservable = function() {
|
|
899
|
-
var r = new
|
|
922
|
+
var r = new rt();
|
|
900
923
|
return r.source = this, r;
|
|
901
924
|
}, t.create = function(r, n) {
|
|
902
|
-
return new
|
|
925
|
+
return new it(r, n);
|
|
903
926
|
}, t;
|
|
904
|
-
}(
|
|
905
|
-
|
|
927
|
+
}(rt), it = function(e) {
|
|
928
|
+
I(t, e);
|
|
906
929
|
function t(r, n) {
|
|
907
930
|
var i = e.call(this) || this;
|
|
908
931
|
return i.destination = r, i.source = n, i;
|
|
@@ -918,17 +941,17 @@ var Fr = Pt(function(e) {
|
|
|
918
941
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
919
942
|
}, t.prototype._subscribe = function(r) {
|
|
920
943
|
var n, i;
|
|
921
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
944
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ht;
|
|
922
945
|
}, t;
|
|
923
|
-
}(
|
|
946
|
+
}(Pt), Ot = {
|
|
924
947
|
now: function() {
|
|
925
|
-
return (
|
|
948
|
+
return (Ot.delegate || Date).now();
|
|
926
949
|
},
|
|
927
950
|
delegate: void 0
|
|
928
|
-
},
|
|
929
|
-
|
|
951
|
+
}, Dr = function(e) {
|
|
952
|
+
I(t, e);
|
|
930
953
|
function t(r, n, i) {
|
|
931
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
954
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ot);
|
|
932
955
|
var o = e.call(this) || this;
|
|
933
956
|
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;
|
|
934
957
|
}
|
|
@@ -948,24 +971,24 @@ var Fr = Pt(function(e) {
|
|
|
948
971
|
u && o.splice(0, u + 1);
|
|
949
972
|
}
|
|
950
973
|
}, t;
|
|
951
|
-
}(
|
|
952
|
-
const
|
|
953
|
-
if (
|
|
954
|
-
const r = new
|
|
955
|
-
|
|
974
|
+
}(Pt);
|
|
975
|
+
const ot = [], st = {}, Ur = (e, t = 0) => {
|
|
976
|
+
if (ot.indexOf(e) == -1) {
|
|
977
|
+
const r = new Dr(t);
|
|
978
|
+
st[e] = r, ot.push(e);
|
|
956
979
|
}
|
|
957
|
-
return
|
|
980
|
+
return st[e];
|
|
958
981
|
}, k = [];
|
|
959
|
-
function
|
|
982
|
+
function Fr(e, t) {
|
|
960
983
|
return {
|
|
961
|
-
subscribe:
|
|
984
|
+
subscribe: xe(e, t).subscribe
|
|
962
985
|
};
|
|
963
986
|
}
|
|
964
|
-
function
|
|
987
|
+
function xe(e, t = O) {
|
|
965
988
|
let r;
|
|
966
989
|
const n = /* @__PURE__ */ new Set();
|
|
967
990
|
function i(a) {
|
|
968
|
-
if (
|
|
991
|
+
if (At(e, a) && (e = a, r)) {
|
|
969
992
|
const l = !k.length;
|
|
970
993
|
for (const u of n)
|
|
971
994
|
u[1](), k.push(u, e);
|
|
@@ -987,12 +1010,12 @@ function _e(e, t = O) {
|
|
|
987
1010
|
}
|
|
988
1011
|
return { set: i, update: o, subscribe: s };
|
|
989
1012
|
}
|
|
990
|
-
function
|
|
1013
|
+
function K(e, t, r) {
|
|
991
1014
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
992
1015
|
if (!i.every(Boolean))
|
|
993
1016
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
994
1017
|
const o = t.length < 2;
|
|
995
|
-
return
|
|
1018
|
+
return Fr(r, (s, a) => {
|
|
996
1019
|
let l = !1;
|
|
997
1020
|
const u = [];
|
|
998
1021
|
let c = 0, f = O;
|
|
@@ -1001,170 +1024,131 @@ function J(e, t, r) {
|
|
|
1001
1024
|
return;
|
|
1002
1025
|
f();
|
|
1003
1026
|
const m = t(n ? u[0] : u, s, a);
|
|
1004
|
-
o ? s(m) : f =
|
|
1005
|
-
},
|
|
1006
|
-
(m,
|
|
1027
|
+
o ? s(m) : f = Xe(m) ? m : O;
|
|
1028
|
+
}, d = i.map(
|
|
1029
|
+
(m, p) => wt(
|
|
1007
1030
|
m,
|
|
1008
|
-
(
|
|
1009
|
-
u[
|
|
1031
|
+
(A) => {
|
|
1032
|
+
u[p] = A, c &= ~(1 << p), l && h();
|
|
1010
1033
|
},
|
|
1011
1034
|
() => {
|
|
1012
|
-
c |= 1 <<
|
|
1035
|
+
c |= 1 << p;
|
|
1013
1036
|
}
|
|
1014
1037
|
)
|
|
1015
1038
|
);
|
|
1016
1039
|
return l = !0, h(), function() {
|
|
1017
|
-
|
|
1040
|
+
J(d), f(), l = !1;
|
|
1018
1041
|
};
|
|
1019
1042
|
});
|
|
1020
1043
|
}
|
|
1021
|
-
function
|
|
1022
|
-
return e
|
|
1044
|
+
function Gr(e) {
|
|
1045
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1023
1046
|
}
|
|
1024
|
-
var
|
|
1025
|
-
return
|
|
1047
|
+
var jr = function(t) {
|
|
1048
|
+
return kr(t) && !zr(t);
|
|
1026
1049
|
};
|
|
1027
|
-
function
|
|
1050
|
+
function kr(e) {
|
|
1028
1051
|
return !!e && typeof e == "object";
|
|
1029
1052
|
}
|
|
1030
|
-
function
|
|
1053
|
+
function zr(e) {
|
|
1031
1054
|
var t = Object.prototype.toString.call(e);
|
|
1032
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1055
|
+
return t === "[object RegExp]" || t === "[object Date]" || Xr(e);
|
|
1033
1056
|
}
|
|
1034
|
-
var
|
|
1035
|
-
function
|
|
1036
|
-
return e.$$typeof ===
|
|
1057
|
+
var Wr = typeof Symbol == "function" && Symbol.for, Vr = Wr ? Symbol.for("react.element") : 60103;
|
|
1058
|
+
function Xr(e) {
|
|
1059
|
+
return e.$$typeof === Vr;
|
|
1037
1060
|
}
|
|
1038
|
-
function
|
|
1061
|
+
function Zr(e) {
|
|
1039
1062
|
return Array.isArray(e) ? [] : {};
|
|
1040
1063
|
}
|
|
1041
|
-
function
|
|
1042
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1064
|
+
function oe(e, t) {
|
|
1065
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Z(Zr(e), e, t) : e;
|
|
1043
1066
|
}
|
|
1044
|
-
function
|
|
1067
|
+
function qr(e, t, r) {
|
|
1045
1068
|
return e.concat(t).map(function(n) {
|
|
1046
|
-
return
|
|
1069
|
+
return oe(n, r);
|
|
1047
1070
|
});
|
|
1048
1071
|
}
|
|
1049
|
-
function
|
|
1072
|
+
function Qr(e, t) {
|
|
1050
1073
|
if (!t.customMerge)
|
|
1051
|
-
return
|
|
1074
|
+
return Z;
|
|
1052
1075
|
var r = t.customMerge(e);
|
|
1053
|
-
return typeof r == "function" ? r :
|
|
1076
|
+
return typeof r == "function" ? r : Z;
|
|
1054
1077
|
}
|
|
1055
|
-
function
|
|
1078
|
+
function Yr(e) {
|
|
1056
1079
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1057
1080
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1058
1081
|
}) : [];
|
|
1059
1082
|
}
|
|
1060
|
-
function
|
|
1061
|
-
return Object.keys(e).concat(
|
|
1083
|
+
function at(e) {
|
|
1084
|
+
return Object.keys(e).concat(Yr(e));
|
|
1062
1085
|
}
|
|
1063
|
-
function
|
|
1086
|
+
function Nt(e, t) {
|
|
1064
1087
|
try {
|
|
1065
1088
|
return t in e;
|
|
1066
1089
|
} catch {
|
|
1067
1090
|
return !1;
|
|
1068
1091
|
}
|
|
1069
1092
|
}
|
|
1070
|
-
function
|
|
1071
|
-
return
|
|
1093
|
+
function Jr(e, t) {
|
|
1094
|
+
return Nt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1072
1095
|
}
|
|
1073
|
-
function
|
|
1096
|
+
function Kr(e, t, r) {
|
|
1074
1097
|
var n = {};
|
|
1075
|
-
return r.isMergeableObject(e) &&
|
|
1076
|
-
n[i] =
|
|
1077
|
-
}),
|
|
1078
|
-
|
|
1098
|
+
return r.isMergeableObject(e) && at(e).forEach(function(i) {
|
|
1099
|
+
n[i] = oe(e[i], r);
|
|
1100
|
+
}), at(t).forEach(function(i) {
|
|
1101
|
+
Jr(e, i) || (Nt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Qr(i, r)(e[i], t[i], r) : n[i] = oe(t[i], r));
|
|
1079
1102
|
}), n;
|
|
1080
1103
|
}
|
|
1081
|
-
function
|
|
1082
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1104
|
+
function Z(e, t, r) {
|
|
1105
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || qr, r.isMergeableObject = r.isMergeableObject || jr, r.cloneUnlessOtherwiseSpecified = oe;
|
|
1083
1106
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1084
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1107
|
+
return o ? n ? r.arrayMerge(e, t, r) : Kr(e, t, r) : oe(t, r);
|
|
1085
1108
|
}
|
|
1086
|
-
|
|
1109
|
+
Z.all = function(t, r) {
|
|
1087
1110
|
if (!Array.isArray(t))
|
|
1088
1111
|
throw new Error("first argument should be an array");
|
|
1089
1112
|
return t.reduce(function(n, i) {
|
|
1090
|
-
return
|
|
1113
|
+
return Z(n, i, r);
|
|
1091
1114
|
}, {});
|
|
1092
1115
|
};
|
|
1093
|
-
var
|
|
1094
|
-
const
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
r.__proto__ = n;
|
|
1098
|
-
} || function(r, n) {
|
|
1099
|
-
for (var i in n)
|
|
1100
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1101
|
-
}, ke(e, t);
|
|
1102
|
-
};
|
|
1103
|
-
function Ee(e, t) {
|
|
1104
|
-
if (typeof t != "function" && t !== null)
|
|
1105
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1106
|
-
ke(e, t);
|
|
1107
|
-
function r() {
|
|
1108
|
-
this.constructor = e;
|
|
1109
|
-
}
|
|
1110
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1111
|
-
}
|
|
1112
|
-
var N = function() {
|
|
1113
|
-
return N = Object.assign || function(t) {
|
|
1114
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1115
|
-
r = arguments[n];
|
|
1116
|
-
for (var o in r)
|
|
1117
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1118
|
-
}
|
|
1119
|
-
return t;
|
|
1120
|
-
}, N.apply(this, arguments);
|
|
1121
|
-
};
|
|
1122
|
-
function an(e, t) {
|
|
1123
|
-
var r = {};
|
|
1124
|
-
for (var n in e)
|
|
1125
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1126
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1127
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1128
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1129
|
-
return r;
|
|
1130
|
-
}
|
|
1131
|
-
function He(e, t, r) {
|
|
1132
|
-
if (r || arguments.length === 2)
|
|
1133
|
-
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1134
|
-
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1135
|
-
return e.concat(o || Array.prototype.slice.call(t));
|
|
1136
|
-
}
|
|
1137
|
-
function Be(e, t) {
|
|
1138
|
-
var r = t && t.cache ? t.cache : dn, n = t && t.serializer ? t.serializer : fn, i = t && t.strategy ? t.strategy : cn;
|
|
1116
|
+
var en = Z, tn = en;
|
|
1117
|
+
const rn = /* @__PURE__ */ Gr(tn);
|
|
1118
|
+
function Se(e, t) {
|
|
1119
|
+
var r = t && t.cache ? t.cache : cn, n = t && t.serializer ? t.serializer : un, i = t && t.strategy ? t.strategy : on;
|
|
1139
1120
|
return i(e, {
|
|
1140
1121
|
cache: r,
|
|
1141
1122
|
serializer: n
|
|
1142
1123
|
});
|
|
1143
1124
|
}
|
|
1144
|
-
function
|
|
1125
|
+
function nn(e) {
|
|
1145
1126
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1146
1127
|
}
|
|
1147
|
-
function
|
|
1148
|
-
var i =
|
|
1128
|
+
function It(e, t, r, n) {
|
|
1129
|
+
var i = nn(n) ? n : r(n), o = t.get(i);
|
|
1149
1130
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1150
1131
|
}
|
|
1151
|
-
function
|
|
1132
|
+
function Lt(e, t, r) {
|
|
1152
1133
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1153
1134
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1154
1135
|
}
|
|
1155
|
-
function
|
|
1136
|
+
function Ze(e, t, r, n, i) {
|
|
1156
1137
|
return r.bind(t, e, n, i);
|
|
1157
1138
|
}
|
|
1158
|
-
function
|
|
1159
|
-
var r = e.length === 1 ?
|
|
1160
|
-
return
|
|
1139
|
+
function on(e, t) {
|
|
1140
|
+
var r = e.length === 1 ? It : Lt;
|
|
1141
|
+
return Ze(e, this, r, t.cache.create(), t.serializer);
|
|
1161
1142
|
}
|
|
1162
|
-
function
|
|
1163
|
-
return
|
|
1143
|
+
function sn(e, t) {
|
|
1144
|
+
return Ze(e, this, Lt, t.cache.create(), t.serializer);
|
|
1145
|
+
}
|
|
1146
|
+
function an(e, t) {
|
|
1147
|
+
return Ze(e, this, It, t.cache.create(), t.serializer);
|
|
1164
1148
|
}
|
|
1165
|
-
var
|
|
1149
|
+
var un = function() {
|
|
1166
1150
|
return JSON.stringify(arguments);
|
|
1167
|
-
},
|
|
1151
|
+
}, ln = (
|
|
1168
1152
|
/** @class */
|
|
1169
1153
|
function() {
|
|
1170
1154
|
function e() {
|
|
@@ -1176,71 +1160,62 @@ var fn = function() {
|
|
|
1176
1160
|
this.cache[t] = r;
|
|
1177
1161
|
}, e;
|
|
1178
1162
|
}()
|
|
1179
|
-
),
|
|
1163
|
+
), cn = {
|
|
1180
1164
|
create: function() {
|
|
1181
|
-
return new
|
|
1165
|
+
return new ln();
|
|
1182
1166
|
}
|
|
1183
|
-
},
|
|
1184
|
-
variadic:
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1188
|
-
r = arguments[n];
|
|
1189
|
-
for (var o in r)
|
|
1190
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1191
|
-
}
|
|
1192
|
-
return t;
|
|
1193
|
-
}, be.apply(this, arguments);
|
|
1194
|
-
};
|
|
1195
|
-
var b;
|
|
1167
|
+
}, Te = {
|
|
1168
|
+
variadic: sn,
|
|
1169
|
+
monadic: an
|
|
1170
|
+
}, b;
|
|
1196
1171
|
(function(e) {
|
|
1197
1172
|
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";
|
|
1198
1173
|
})(b || (b = {}));
|
|
1199
|
-
var
|
|
1174
|
+
var C;
|
|
1200
1175
|
(function(e) {
|
|
1201
1176
|
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";
|
|
1202
|
-
})(
|
|
1203
|
-
var
|
|
1177
|
+
})(C || (C = {}));
|
|
1178
|
+
var q;
|
|
1204
1179
|
(function(e) {
|
|
1205
1180
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1206
|
-
})(
|
|
1207
|
-
function
|
|
1208
|
-
return e.type ===
|
|
1181
|
+
})(q || (q = {}));
|
|
1182
|
+
function ut(e) {
|
|
1183
|
+
return e.type === C.literal;
|
|
1209
1184
|
}
|
|
1210
|
-
function
|
|
1211
|
-
return e.type ===
|
|
1185
|
+
function hn(e) {
|
|
1186
|
+
return e.type === C.argument;
|
|
1212
1187
|
}
|
|
1213
|
-
function
|
|
1214
|
-
return e.type ===
|
|
1188
|
+
function $t(e) {
|
|
1189
|
+
return e.type === C.number;
|
|
1215
1190
|
}
|
|
1216
|
-
function
|
|
1217
|
-
return e.type ===
|
|
1191
|
+
function Rt(e) {
|
|
1192
|
+
return e.type === C.date;
|
|
1218
1193
|
}
|
|
1219
|
-
function
|
|
1220
|
-
return e.type ===
|
|
1194
|
+
function Dt(e) {
|
|
1195
|
+
return e.type === C.time;
|
|
1221
1196
|
}
|
|
1222
|
-
function
|
|
1223
|
-
return e.type ===
|
|
1197
|
+
function Ut(e) {
|
|
1198
|
+
return e.type === C.select;
|
|
1224
1199
|
}
|
|
1225
|
-
function
|
|
1226
|
-
return e.type ===
|
|
1200
|
+
function Ft(e) {
|
|
1201
|
+
return e.type === C.plural;
|
|
1227
1202
|
}
|
|
1228
|
-
function
|
|
1229
|
-
return e.type ===
|
|
1203
|
+
function fn(e) {
|
|
1204
|
+
return e.type === C.pound;
|
|
1230
1205
|
}
|
|
1231
|
-
function
|
|
1232
|
-
return e.type ===
|
|
1206
|
+
function Gt(e) {
|
|
1207
|
+
return e.type === C.tag;
|
|
1233
1208
|
}
|
|
1234
|
-
function
|
|
1235
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1209
|
+
function jt(e) {
|
|
1210
|
+
return !!(e && typeof e == "object" && e.type === q.number);
|
|
1236
1211
|
}
|
|
1237
|
-
function
|
|
1238
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1212
|
+
function Ue(e) {
|
|
1213
|
+
return !!(e && typeof e == "object" && e.type === q.dateTime);
|
|
1239
1214
|
}
|
|
1240
|
-
var
|
|
1241
|
-
function
|
|
1215
|
+
var kt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, dn = /(?:[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;
|
|
1216
|
+
function pn(e) {
|
|
1242
1217
|
var t = {};
|
|
1243
|
-
return e.replace(
|
|
1218
|
+
return e.replace(dn, function(r) {
|
|
1244
1219
|
var n = r.length;
|
|
1245
1220
|
switch (r[0]) {
|
|
1246
1221
|
case "G":
|
|
@@ -1329,21 +1304,11 @@ function gn(e) {
|
|
|
1329
1304
|
return "";
|
|
1330
1305
|
}), t;
|
|
1331
1306
|
}
|
|
1332
|
-
var
|
|
1333
|
-
|
|
1334
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1335
|
-
r = arguments[n];
|
|
1336
|
-
for (var o in r)
|
|
1337
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1338
|
-
}
|
|
1339
|
-
return t;
|
|
1340
|
-
}, S.apply(this, arguments);
|
|
1341
|
-
};
|
|
1342
|
-
var yn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1343
|
-
function xn(e) {
|
|
1307
|
+
var mn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1308
|
+
function bn(e) {
|
|
1344
1309
|
if (e.length === 0)
|
|
1345
1310
|
throw new Error("Number skeleton cannot be empty");
|
|
1346
|
-
for (var t = e.split(
|
|
1311
|
+
for (var t = e.split(mn).filter(function(h) {
|
|
1347
1312
|
return h.length > 0;
|
|
1348
1313
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1349
1314
|
var o = i[n], s = o.split("/");
|
|
@@ -1358,17 +1323,17 @@ function xn(e) {
|
|
|
1358
1323
|
}
|
|
1359
1324
|
return r;
|
|
1360
1325
|
}
|
|
1361
|
-
function
|
|
1326
|
+
function gn(e) {
|
|
1362
1327
|
return e.replace(/^(.*?)-/, "");
|
|
1363
1328
|
}
|
|
1364
|
-
var
|
|
1365
|
-
function
|
|
1329
|
+
var lt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, zt = /^(@+)?(\+|#+)?[rs]?$/g, yn = /(\*)(0+)|(#+)(0+)|(0+)/g, Wt = /^(0+)$/;
|
|
1330
|
+
function ct(e) {
|
|
1366
1331
|
var t = {};
|
|
1367
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1332
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(zt, function(r, n, i) {
|
|
1368
1333
|
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)), "";
|
|
1369
1334
|
}), t;
|
|
1370
1335
|
}
|
|
1371
|
-
function
|
|
1336
|
+
function Vt(e) {
|
|
1372
1337
|
switch (e) {
|
|
1373
1338
|
case "sign-auto":
|
|
1374
1339
|
return {
|
|
@@ -1408,7 +1373,7 @@ function Qt(e) {
|
|
|
1408
1373
|
};
|
|
1409
1374
|
}
|
|
1410
1375
|
}
|
|
1411
|
-
function
|
|
1376
|
+
function vn(e) {
|
|
1412
1377
|
var t;
|
|
1413
1378
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1414
1379
|
notation: "engineering"
|
|
@@ -1416,17 +1381,17 @@ function wn(e) {
|
|
|
1416
1381
|
notation: "scientific"
|
|
1417
1382
|
}, e = e.slice(1)), t) {
|
|
1418
1383
|
var r = e.slice(0, 2);
|
|
1419
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1384
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Wt.test(e))
|
|
1420
1385
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1421
1386
|
t.minimumIntegerDigits = e.length;
|
|
1422
1387
|
}
|
|
1423
1388
|
return t;
|
|
1424
1389
|
}
|
|
1425
|
-
function
|
|
1426
|
-
var t = {}, r =
|
|
1390
|
+
function ht(e) {
|
|
1391
|
+
var t = {}, r = Vt(e);
|
|
1427
1392
|
return r || t;
|
|
1428
1393
|
}
|
|
1429
|
-
function
|
|
1394
|
+
function xn(e) {
|
|
1430
1395
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1431
1396
|
var i = n[r];
|
|
1432
1397
|
switch (i.stem) {
|
|
@@ -1450,7 +1415,7 @@ function An(e) {
|
|
|
1450
1415
|
continue;
|
|
1451
1416
|
case "measure-unit":
|
|
1452
1417
|
case "unit":
|
|
1453
|
-
t.style = "unit", t.unit =
|
|
1418
|
+
t.style = "unit", t.unit = gn(i.options[0]);
|
|
1454
1419
|
continue;
|
|
1455
1420
|
case "compact-short":
|
|
1456
1421
|
case "K":
|
|
@@ -1461,13 +1426,13 @@ function An(e) {
|
|
|
1461
1426
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1462
1427
|
continue;
|
|
1463
1428
|
case "scientific":
|
|
1464
|
-
t =
|
|
1465
|
-
return
|
|
1429
|
+
t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1430
|
+
return v(v({}, l), ht(u));
|
|
1466
1431
|
}, {}));
|
|
1467
1432
|
continue;
|
|
1468
1433
|
case "engineering":
|
|
1469
|
-
t =
|
|
1470
|
-
return
|
|
1434
|
+
t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1435
|
+
return v(v({}, l), ht(u));
|
|
1471
1436
|
}, {}));
|
|
1472
1437
|
continue;
|
|
1473
1438
|
case "notation-simple":
|
|
@@ -1512,41 +1477,41 @@ function An(e) {
|
|
|
1512
1477
|
case "integer-width":
|
|
1513
1478
|
if (i.options.length > 1)
|
|
1514
1479
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1515
|
-
i.options[0].replace(
|
|
1480
|
+
i.options[0].replace(yn, function(l, u, c, f, h, d) {
|
|
1516
1481
|
if (u)
|
|
1517
1482
|
t.minimumIntegerDigits = c.length;
|
|
1518
1483
|
else {
|
|
1519
1484
|
if (f && h)
|
|
1520
1485
|
throw new Error("We currently do not support maximum integer digits");
|
|
1521
|
-
if (
|
|
1486
|
+
if (d)
|
|
1522
1487
|
throw new Error("We currently do not support exact integer digits");
|
|
1523
1488
|
}
|
|
1524
1489
|
return "";
|
|
1525
1490
|
});
|
|
1526
1491
|
continue;
|
|
1527
1492
|
}
|
|
1528
|
-
if (
|
|
1493
|
+
if (Wt.test(i.stem)) {
|
|
1529
1494
|
t.minimumIntegerDigits = i.stem.length;
|
|
1530
1495
|
continue;
|
|
1531
1496
|
}
|
|
1532
|
-
if (
|
|
1497
|
+
if (lt.test(i.stem)) {
|
|
1533
1498
|
if (i.options.length > 1)
|
|
1534
1499
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1535
|
-
i.stem.replace(
|
|
1536
|
-
return c === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : h &&
|
|
1500
|
+
i.stem.replace(lt, function(l, u, c, f, h, d) {
|
|
1501
|
+
return c === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : h && d ? (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1537
1502
|
});
|
|
1538
1503
|
var o = i.options[0];
|
|
1539
|
-
o === "w" ? t =
|
|
1504
|
+
o === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = v(v({}, t), ct(o)));
|
|
1540
1505
|
continue;
|
|
1541
1506
|
}
|
|
1542
|
-
if (
|
|
1543
|
-
t =
|
|
1507
|
+
if (zt.test(i.stem)) {
|
|
1508
|
+
t = v(v({}, t), ct(i.stem));
|
|
1544
1509
|
continue;
|
|
1545
1510
|
}
|
|
1546
|
-
var s =
|
|
1547
|
-
s && (t =
|
|
1548
|
-
var a =
|
|
1549
|
-
a && (t =
|
|
1511
|
+
var s = Vt(i.stem);
|
|
1512
|
+
s && (t = v(v({}, t), s));
|
|
1513
|
+
var a = vn(i.stem);
|
|
1514
|
+
a && (t = v(v({}, t), a));
|
|
1550
1515
|
}
|
|
1551
1516
|
return t;
|
|
1552
1517
|
}
|
|
@@ -2965,13 +2930,13 @@ var ce = {
|
|
|
2965
2930
|
"h"
|
|
2966
2931
|
]
|
|
2967
2932
|
};
|
|
2968
|
-
function
|
|
2933
|
+
function En(e, t) {
|
|
2969
2934
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2970
2935
|
var i = e.charAt(n);
|
|
2971
2936
|
if (i === "j") {
|
|
2972
2937
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2973
2938
|
o++, n++;
|
|
2974
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
2939
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = _n(t);
|
|
2975
2940
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2976
2941
|
r += l;
|
|
2977
2942
|
for (; s-- > 0; )
|
|
@@ -2981,7 +2946,7 @@ function Cn(e, t) {
|
|
|
2981
2946
|
}
|
|
2982
2947
|
return r;
|
|
2983
2948
|
}
|
|
2984
|
-
function
|
|
2949
|
+
function _n(e) {
|
|
2985
2950
|
var t = e.hourCycle;
|
|
2986
2951
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2987
2952
|
e.hourCycles && // @ts-ignore
|
|
@@ -3003,20 +2968,20 @@ function Sn(e) {
|
|
|
3003
2968
|
var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
|
|
3004
2969
|
return i[0];
|
|
3005
2970
|
}
|
|
3006
|
-
var
|
|
3007
|
-
function
|
|
2971
|
+
var He, Cn = new RegExp("^".concat(kt.source, "*")), An = new RegExp("".concat(kt.source, "*$"));
|
|
2972
|
+
function g(e, t) {
|
|
3008
2973
|
return { start: e, end: t };
|
|
3009
2974
|
}
|
|
3010
|
-
var
|
|
2975
|
+
var wn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Sn = !!String.fromCodePoint, Tn = !!Object.fromEntries, Hn = !!String.prototype.codePointAt, Bn = !!String.prototype.trimStart, Mn = !!String.prototype.trimEnd, Pn = !!Number.isSafeInteger, On = Pn ? Number.isSafeInteger : function(e) {
|
|
3011
2976
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3012
|
-
},
|
|
2977
|
+
}, Fe = !0;
|
|
3013
2978
|
try {
|
|
3014
|
-
var
|
|
3015
|
-
|
|
2979
|
+
var Nn = Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2980
|
+
Fe = ((He = Nn.exec("a")) === null || He === void 0 ? void 0 : He[0]) === "a";
|
|
3016
2981
|
} catch {
|
|
3017
|
-
|
|
2982
|
+
Fe = !1;
|
|
3018
2983
|
}
|
|
3019
|
-
var
|
|
2984
|
+
var ft = wn ? (
|
|
3020
2985
|
// Native
|
|
3021
2986
|
function(t, r, n) {
|
|
3022
2987
|
return t.startsWith(r, n);
|
|
@@ -3026,7 +2991,7 @@ var bt = Bn ? (
|
|
|
3026
2991
|
function(t, r, n) {
|
|
3027
2992
|
return t.slice(n, n + r.length) === r;
|
|
3028
2993
|
}
|
|
3029
|
-
),
|
|
2994
|
+
), Ge = Sn ? String.fromCodePoint : (
|
|
3030
2995
|
// IE11
|
|
3031
2996
|
function() {
|
|
3032
2997
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3038,9 +3003,9 @@ var bt = Bn ? (
|
|
|
3038
3003
|
}
|
|
3039
3004
|
return n;
|
|
3040
3005
|
}
|
|
3041
|
-
),
|
|
3006
|
+
), dt = (
|
|
3042
3007
|
// native
|
|
3043
|
-
|
|
3008
|
+
Tn ? Object.fromEntries : (
|
|
3044
3009
|
// Ponyfill
|
|
3045
3010
|
function(t) {
|
|
3046
3011
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3050,7 +3015,7 @@ var bt = Bn ? (
|
|
|
3050
3015
|
return r;
|
|
3051
3016
|
}
|
|
3052
3017
|
)
|
|
3053
|
-
),
|
|
3018
|
+
), Xt = Hn ? (
|
|
3054
3019
|
// Native
|
|
3055
3020
|
function(t, r) {
|
|
3056
3021
|
return t.codePointAt(r);
|
|
@@ -3064,7 +3029,7 @@ var bt = Bn ? (
|
|
|
3064
3029
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3065
3030
|
}
|
|
3066
3031
|
}
|
|
3067
|
-
),
|
|
3032
|
+
), In = Bn ? (
|
|
3068
3033
|
// Native
|
|
3069
3034
|
function(t) {
|
|
3070
3035
|
return t.trimStart();
|
|
@@ -3072,9 +3037,9 @@ var bt = Bn ? (
|
|
|
3072
3037
|
) : (
|
|
3073
3038
|
// Ponyfill
|
|
3074
3039
|
function(t) {
|
|
3075
|
-
return t.replace(
|
|
3040
|
+
return t.replace(Cn, "");
|
|
3076
3041
|
}
|
|
3077
|
-
),
|
|
3042
|
+
), Ln = Mn ? (
|
|
3078
3043
|
// Native
|
|
3079
3044
|
function(t) {
|
|
3080
3045
|
return t.trimEnd();
|
|
@@ -3082,32 +3047,32 @@ var bt = Bn ? (
|
|
|
3082
3047
|
) : (
|
|
3083
3048
|
// Ponyfill
|
|
3084
3049
|
function(t) {
|
|
3085
|
-
return t.replace(
|
|
3050
|
+
return t.replace(An, "");
|
|
3086
3051
|
}
|
|
3087
3052
|
);
|
|
3088
|
-
function
|
|
3053
|
+
function Zt(e, t) {
|
|
3089
3054
|
return new RegExp(e, t);
|
|
3090
3055
|
}
|
|
3091
|
-
var
|
|
3092
|
-
if (
|
|
3093
|
-
var
|
|
3094
|
-
|
|
3056
|
+
var je;
|
|
3057
|
+
if (Fe) {
|
|
3058
|
+
var pt = Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3059
|
+
je = function(t, r) {
|
|
3095
3060
|
var n;
|
|
3096
|
-
|
|
3097
|
-
var i =
|
|
3061
|
+
pt.lastIndex = r;
|
|
3062
|
+
var i = pt.exec(t);
|
|
3098
3063
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3099
3064
|
};
|
|
3100
3065
|
} else
|
|
3101
|
-
|
|
3066
|
+
je = function(t, r) {
|
|
3102
3067
|
for (var n = []; ; ) {
|
|
3103
|
-
var i =
|
|
3104
|
-
if (i === void 0 ||
|
|
3068
|
+
var i = Xt(t, r);
|
|
3069
|
+
if (i === void 0 || qt(i) || Un(i))
|
|
3105
3070
|
break;
|
|
3106
3071
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3107
3072
|
}
|
|
3108
|
-
return
|
|
3073
|
+
return Ge.apply(void 0, n);
|
|
3109
3074
|
};
|
|
3110
|
-
var
|
|
3075
|
+
var $n = (
|
|
3111
3076
|
/** @class */
|
|
3112
3077
|
function() {
|
|
3113
3078
|
function e(t, r) {
|
|
@@ -3131,14 +3096,14 @@ var Fn = (
|
|
|
3131
3096
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3132
3097
|
var a = this.clonePosition();
|
|
3133
3098
|
this.bump(), i.push({
|
|
3134
|
-
type:
|
|
3135
|
-
location:
|
|
3099
|
+
type: C.pound,
|
|
3100
|
+
location: g(a, this.clonePosition())
|
|
3136
3101
|
});
|
|
3137
3102
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3138
3103
|
if (n)
|
|
3139
3104
|
break;
|
|
3140
|
-
return this.error(b.UNMATCHED_CLOSING_TAG,
|
|
3141
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3105
|
+
return this.error(b.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
|
3106
|
+
} else if (o === 60 && !this.ignoreTag && ke(this.peek() || 0)) {
|
|
3142
3107
|
var s = this.parseTag(t, r);
|
|
3143
3108
|
if (s.err)
|
|
3144
3109
|
return s;
|
|
@@ -3159,9 +3124,9 @@ var Fn = (
|
|
|
3159
3124
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3160
3125
|
return {
|
|
3161
3126
|
val: {
|
|
3162
|
-
type:
|
|
3127
|
+
type: C.literal,
|
|
3163
3128
|
value: "<".concat(i, "/>"),
|
|
3164
|
-
location:
|
|
3129
|
+
location: g(n, this.clonePosition())
|
|
3165
3130
|
},
|
|
3166
3131
|
err: null
|
|
3167
3132
|
};
|
|
@@ -3171,25 +3136,25 @@ var Fn = (
|
|
|
3171
3136
|
return o;
|
|
3172
3137
|
var s = o.val, a = this.clonePosition();
|
|
3173
3138
|
if (this.bumpIf("</")) {
|
|
3174
|
-
if (this.isEOF() || !
|
|
3175
|
-
return this.error(b.INVALID_TAG,
|
|
3139
|
+
if (this.isEOF() || !ke(this.char()))
|
|
3140
|
+
return this.error(b.INVALID_TAG, g(a, this.clonePosition()));
|
|
3176
3141
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3177
|
-
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG,
|
|
3142
|
+
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, g(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3178
3143
|
val: {
|
|
3179
|
-
type:
|
|
3144
|
+
type: C.tag,
|
|
3180
3145
|
value: i,
|
|
3181
3146
|
children: s,
|
|
3182
|
-
location:
|
|
3147
|
+
location: g(n, this.clonePosition())
|
|
3183
3148
|
},
|
|
3184
3149
|
err: null
|
|
3185
|
-
} : this.error(b.INVALID_TAG,
|
|
3150
|
+
} : this.error(b.INVALID_TAG, g(a, this.clonePosition())));
|
|
3186
3151
|
} else
|
|
3187
|
-
return this.error(b.UNCLOSED_TAG,
|
|
3152
|
+
return this.error(b.UNCLOSED_TAG, g(n, this.clonePosition()));
|
|
3188
3153
|
} else
|
|
3189
|
-
return this.error(b.INVALID_TAG,
|
|
3154
|
+
return this.error(b.INVALID_TAG, g(n, this.clonePosition()));
|
|
3190
3155
|
}, e.prototype.parseTagName = function() {
|
|
3191
3156
|
var t = this.offset();
|
|
3192
|
-
for (this.bump(); !this.isEOF() &&
|
|
3157
|
+
for (this.bump(); !this.isEOF() && Dn(this.char()); )
|
|
3193
3158
|
this.bump();
|
|
3194
3159
|
return this.message.slice(t, this.offset());
|
|
3195
3160
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3211,14 +3176,14 @@ var Fn = (
|
|
|
3211
3176
|
}
|
|
3212
3177
|
break;
|
|
3213
3178
|
}
|
|
3214
|
-
var l =
|
|
3179
|
+
var l = g(n, this.clonePosition());
|
|
3215
3180
|
return {
|
|
3216
|
-
val: { type:
|
|
3181
|
+
val: { type: C.literal, value: i, location: l },
|
|
3217
3182
|
err: null
|
|
3218
3183
|
};
|
|
3219
3184
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3220
3185
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3221
|
-
!
|
|
3186
|
+
!Rn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3222
3187
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3223
3188
|
if (this.isEOF() || this.char() !== 39)
|
|
3224
3189
|
return null;
|
|
@@ -3252,49 +3217,49 @@ var Fn = (
|
|
|
3252
3217
|
r.push(n);
|
|
3253
3218
|
this.bump();
|
|
3254
3219
|
}
|
|
3255
|
-
return
|
|
3220
|
+
return Ge.apply(void 0, r);
|
|
3256
3221
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3257
3222
|
if (this.isEOF())
|
|
3258
3223
|
return null;
|
|
3259
3224
|
var n = this.char();
|
|
3260
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3225
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ge(n));
|
|
3261
3226
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3262
3227
|
var n = this.clonePosition();
|
|
3263
3228
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3264
|
-
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3229
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
3265
3230
|
if (this.char() === 125)
|
|
3266
|
-
return this.bump(), this.error(b.EMPTY_ARGUMENT,
|
|
3231
|
+
return this.bump(), this.error(b.EMPTY_ARGUMENT, g(n, this.clonePosition()));
|
|
3267
3232
|
var i = this.parseIdentifierIfPossible().value;
|
|
3268
3233
|
if (!i)
|
|
3269
|
-
return this.error(b.MALFORMED_ARGUMENT,
|
|
3234
|
+
return this.error(b.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3270
3235
|
if (this.bumpSpace(), this.isEOF())
|
|
3271
|
-
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3236
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
3272
3237
|
switch (this.char()) {
|
|
3273
3238
|
case 125:
|
|
3274
3239
|
return this.bump(), {
|
|
3275
3240
|
val: {
|
|
3276
|
-
type:
|
|
3241
|
+
type: C.argument,
|
|
3277
3242
|
// value does not include the opening and closing braces.
|
|
3278
3243
|
value: i,
|
|
3279
|
-
location:
|
|
3244
|
+
location: g(n, this.clonePosition())
|
|
3280
3245
|
},
|
|
3281
3246
|
err: null
|
|
3282
3247
|
};
|
|
3283
3248
|
case 44:
|
|
3284
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3249
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3285
3250
|
default:
|
|
3286
|
-
return this.error(b.MALFORMED_ARGUMENT,
|
|
3251
|
+
return this.error(b.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3287
3252
|
}
|
|
3288
3253
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3289
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3254
|
+
var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
|
|
3290
3255
|
this.bumpTo(i);
|
|
3291
|
-
var o = this.clonePosition(), s =
|
|
3256
|
+
var o = this.clonePosition(), s = g(t, o);
|
|
3292
3257
|
return { value: n, location: s };
|
|
3293
3258
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3294
3259
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3295
3260
|
switch (a) {
|
|
3296
3261
|
case "":
|
|
3297
|
-
return this.error(b.EXPECT_ARGUMENT_TYPE,
|
|
3262
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, g(s, l));
|
|
3298
3263
|
case "number":
|
|
3299
3264
|
case "date":
|
|
3300
3265
|
case "time": {
|
|
@@ -3305,46 +3270,46 @@ var Fn = (
|
|
|
3305
3270
|
var c = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3306
3271
|
if (f.err)
|
|
3307
3272
|
return f;
|
|
3308
|
-
var h =
|
|
3273
|
+
var h = Ln(f.val);
|
|
3309
3274
|
if (h.length === 0)
|
|
3310
|
-
return this.error(b.EXPECT_ARGUMENT_STYLE,
|
|
3311
|
-
var
|
|
3312
|
-
u = { style: h, styleLocation:
|
|
3275
|
+
return this.error(b.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
|
3276
|
+
var d = g(c, this.clonePosition());
|
|
3277
|
+
u = { style: h, styleLocation: d };
|
|
3313
3278
|
}
|
|
3314
3279
|
var m = this.tryParseArgumentClose(i);
|
|
3315
3280
|
if (m.err)
|
|
3316
3281
|
return m;
|
|
3317
|
-
var
|
|
3318
|
-
if (u &&
|
|
3319
|
-
var
|
|
3282
|
+
var p = g(i, this.clonePosition());
|
|
3283
|
+
if (u && ft(u?.style, "::", 0)) {
|
|
3284
|
+
var A = In(u.style.slice(2));
|
|
3320
3285
|
if (a === "number") {
|
|
3321
|
-
var f = this.parseNumberSkeletonFromString(
|
|
3286
|
+
var f = this.parseNumberSkeletonFromString(A, u.styleLocation);
|
|
3322
3287
|
return f.err ? f : {
|
|
3323
|
-
val: { type:
|
|
3288
|
+
val: { type: C.number, value: n, location: p, style: f.val },
|
|
3324
3289
|
err: null
|
|
3325
3290
|
};
|
|
3326
3291
|
} else {
|
|
3327
|
-
if (
|
|
3328
|
-
return this.error(b.EXPECT_DATE_TIME_SKELETON,
|
|
3329
|
-
var M =
|
|
3330
|
-
this.locale && (M =
|
|
3292
|
+
if (A.length === 0)
|
|
3293
|
+
return this.error(b.EXPECT_DATE_TIME_SKELETON, p);
|
|
3294
|
+
var M = A;
|
|
3295
|
+
this.locale && (M = En(A, this.locale));
|
|
3331
3296
|
var h = {
|
|
3332
|
-
type:
|
|
3297
|
+
type: q.dateTime,
|
|
3333
3298
|
pattern: M,
|
|
3334
3299
|
location: u.styleLocation,
|
|
3335
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3336
|
-
}, T = a === "date" ?
|
|
3300
|
+
parsedOptions: this.shouldParseSkeletons ? pn(M) : {}
|
|
3301
|
+
}, T = a === "date" ? C.date : C.time;
|
|
3337
3302
|
return {
|
|
3338
|
-
val: { type: T, value: n, location:
|
|
3303
|
+
val: { type: T, value: n, location: p, style: h },
|
|
3339
3304
|
err: null
|
|
3340
3305
|
};
|
|
3341
3306
|
}
|
|
3342
3307
|
}
|
|
3343
3308
|
return {
|
|
3344
3309
|
val: {
|
|
3345
|
-
type: a === "number" ?
|
|
3310
|
+
type: a === "number" ? C.number : a === "date" ? C.date : C.time,
|
|
3346
3311
|
value: n,
|
|
3347
|
-
location:
|
|
3312
|
+
location: p,
|
|
3348
3313
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3349
3314
|
},
|
|
3350
3315
|
err: null
|
|
@@ -3353,41 +3318,41 @@ var Fn = (
|
|
|
3353
3318
|
case "plural":
|
|
3354
3319
|
case "selectordinal":
|
|
3355
3320
|
case "select": {
|
|
3356
|
-
var
|
|
3321
|
+
var x = this.clonePosition();
|
|
3357
3322
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3358
|
-
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
3323
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, g(x, v({}, x)));
|
|
3359
3324
|
this.bumpSpace();
|
|
3360
|
-
var
|
|
3361
|
-
if (a !== "select" &&
|
|
3325
|
+
var w = this.parseIdentifierIfPossible(), S = 0;
|
|
3326
|
+
if (a !== "select" && w.value === "offset") {
|
|
3362
3327
|
if (!this.bumpIf(":"))
|
|
3363
|
-
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
3328
|
+
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
|
|
3364
3329
|
this.bumpSpace();
|
|
3365
3330
|
var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3366
3331
|
if (f.err)
|
|
3367
3332
|
return f;
|
|
3368
|
-
this.bumpSpace(),
|
|
3333
|
+
this.bumpSpace(), w = this.parseIdentifierIfPossible(), S = f.val;
|
|
3369
3334
|
}
|
|
3370
|
-
var P = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
3335
|
+
var P = this.tryParsePluralOrSelectOptions(t, a, r, w);
|
|
3371
3336
|
if (P.err)
|
|
3372
3337
|
return P;
|
|
3373
3338
|
var m = this.tryParseArgumentClose(i);
|
|
3374
3339
|
if (m.err)
|
|
3375
3340
|
return m;
|
|
3376
|
-
var _ =
|
|
3341
|
+
var _ = g(i, this.clonePosition());
|
|
3377
3342
|
return a === "select" ? {
|
|
3378
3343
|
val: {
|
|
3379
|
-
type:
|
|
3344
|
+
type: C.select,
|
|
3380
3345
|
value: n,
|
|
3381
|
-
options:
|
|
3346
|
+
options: dt(P.val),
|
|
3382
3347
|
location: _
|
|
3383
3348
|
},
|
|
3384
3349
|
err: null
|
|
3385
3350
|
} : {
|
|
3386
3351
|
val: {
|
|
3387
|
-
type:
|
|
3352
|
+
type: C.plural,
|
|
3388
3353
|
value: n,
|
|
3389
|
-
options:
|
|
3390
|
-
offset:
|
|
3354
|
+
options: dt(P.val),
|
|
3355
|
+
offset: S,
|
|
3391
3356
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3392
3357
|
location: _
|
|
3393
3358
|
},
|
|
@@ -3395,10 +3360,10 @@ var Fn = (
|
|
|
3395
3360
|
};
|
|
3396
3361
|
}
|
|
3397
3362
|
default:
|
|
3398
|
-
return this.error(b.INVALID_ARGUMENT_TYPE,
|
|
3363
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, g(s, l));
|
|
3399
3364
|
}
|
|
3400
3365
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3401
|
-
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3366
|
+
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3402
3367
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3403
3368
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3404
3369
|
var n = this.char();
|
|
@@ -3407,7 +3372,7 @@ var Fn = (
|
|
|
3407
3372
|
this.bump();
|
|
3408
3373
|
var i = this.clonePosition();
|
|
3409
3374
|
if (!this.bumpUntil("'"))
|
|
3410
|
-
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
3375
|
+
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, g(i, this.clonePosition()));
|
|
3411
3376
|
this.bump();
|
|
3412
3377
|
break;
|
|
3413
3378
|
}
|
|
@@ -3437,16 +3402,16 @@ var Fn = (
|
|
|
3437
3402
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3438
3403
|
var n = [];
|
|
3439
3404
|
try {
|
|
3440
|
-
n =
|
|
3405
|
+
n = bn(t);
|
|
3441
3406
|
} catch {
|
|
3442
3407
|
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3443
3408
|
}
|
|
3444
3409
|
return {
|
|
3445
3410
|
val: {
|
|
3446
|
-
type:
|
|
3411
|
+
type: q.number,
|
|
3447
3412
|
tokens: n,
|
|
3448
3413
|
location: r,
|
|
3449
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3414
|
+
parsedOptions: this.shouldParseSkeletons ? xn(n) : {}
|
|
3450
3415
|
},
|
|
3451
3416
|
err: null
|
|
3452
3417
|
};
|
|
@@ -3458,31 +3423,31 @@ var Fn = (
|
|
|
3458
3423
|
var h = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3459
3424
|
if (h.err)
|
|
3460
3425
|
return h;
|
|
3461
|
-
c =
|
|
3426
|
+
c = g(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
3462
3427
|
} else
|
|
3463
3428
|
break;
|
|
3464
3429
|
}
|
|
3465
3430
|
if (l.has(u))
|
|
3466
3431
|
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
|
|
3467
3432
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3468
|
-
var
|
|
3433
|
+
var d = this.clonePosition();
|
|
3469
3434
|
if (!this.bumpIf("{"))
|
|
3470
|
-
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
3435
|
+
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
|
|
3471
3436
|
var m = this.parseMessage(t + 1, r, n);
|
|
3472
3437
|
if (m.err)
|
|
3473
3438
|
return m;
|
|
3474
|
-
var
|
|
3475
|
-
if (
|
|
3476
|
-
return
|
|
3439
|
+
var p = this.tryParseArgumentClose(d);
|
|
3440
|
+
if (p.err)
|
|
3441
|
+
return p;
|
|
3477
3442
|
a.push([
|
|
3478
3443
|
u,
|
|
3479
3444
|
{
|
|
3480
3445
|
value: m.val,
|
|
3481
|
-
location:
|
|
3446
|
+
location: g(d, this.clonePosition())
|
|
3482
3447
|
}
|
|
3483
3448
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, c = o.location;
|
|
3484
3449
|
}
|
|
3485
|
-
return a.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
3450
|
+
return a.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(b.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3486
3451
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3487
3452
|
var n = 1, i = this.clonePosition();
|
|
3488
3453
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3493,8 +3458,8 @@ var Fn = (
|
|
|
3493
3458
|
else
|
|
3494
3459
|
break;
|
|
3495
3460
|
}
|
|
3496
|
-
var l =
|
|
3497
|
-
return o ? (s *= n,
|
|
3461
|
+
var l = g(i, this.clonePosition());
|
|
3462
|
+
return o ? (s *= n, On(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3498
3463
|
}, e.prototype.offset = function() {
|
|
3499
3464
|
return this.position.offset;
|
|
3500
3465
|
}, e.prototype.isEOF = function() {
|
|
@@ -3509,7 +3474,7 @@ var Fn = (
|
|
|
3509
3474
|
var t = this.position.offset;
|
|
3510
3475
|
if (t >= this.message.length)
|
|
3511
3476
|
throw Error("out of bound");
|
|
3512
|
-
var r =
|
|
3477
|
+
var r = Xt(this.message, t);
|
|
3513
3478
|
if (r === void 0)
|
|
3514
3479
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3515
3480
|
return r;
|
|
@@ -3528,7 +3493,7 @@ var Fn = (
|
|
|
3528
3493
|
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);
|
|
3529
3494
|
}
|
|
3530
3495
|
}, e.prototype.bumpIf = function(t) {
|
|
3531
|
-
if (
|
|
3496
|
+
if (ft(this.message, t, this.offset())) {
|
|
3532
3497
|
for (var r = 0; r < t.length; r++)
|
|
3533
3498
|
this.bump();
|
|
3534
3499
|
return !0;
|
|
@@ -3550,7 +3515,7 @@ var Fn = (
|
|
|
3550
3515
|
break;
|
|
3551
3516
|
}
|
|
3552
3517
|
}, e.prototype.bumpSpace = function() {
|
|
3553
|
-
for (; !this.isEOF() &&
|
|
3518
|
+
for (; !this.isEOF() && qt(this.char()); )
|
|
3554
3519
|
this.bump();
|
|
3555
3520
|
}, e.prototype.peek = function() {
|
|
3556
3521
|
if (this.isEOF())
|
|
@@ -3560,47 +3525,47 @@ var Fn = (
|
|
|
3560
3525
|
}, e;
|
|
3561
3526
|
}()
|
|
3562
3527
|
);
|
|
3563
|
-
function
|
|
3528
|
+
function ke(e) {
|
|
3564
3529
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3565
3530
|
}
|
|
3566
|
-
function
|
|
3567
|
-
return
|
|
3531
|
+
function Rn(e) {
|
|
3532
|
+
return ke(e) || e === 47;
|
|
3568
3533
|
}
|
|
3569
|
-
function
|
|
3534
|
+
function Dn(e) {
|
|
3570
3535
|
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;
|
|
3571
3536
|
}
|
|
3572
|
-
function
|
|
3537
|
+
function qt(e) {
|
|
3573
3538
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3574
3539
|
}
|
|
3575
|
-
function
|
|
3540
|
+
function Un(e) {
|
|
3576
3541
|
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;
|
|
3577
3542
|
}
|
|
3578
|
-
function
|
|
3543
|
+
function ze(e) {
|
|
3579
3544
|
e.forEach(function(t) {
|
|
3580
|
-
if (delete t.location,
|
|
3545
|
+
if (delete t.location, Ut(t) || Ft(t))
|
|
3581
3546
|
for (var r in t.options)
|
|
3582
|
-
delete t.options[r].location,
|
|
3547
|
+
delete t.options[r].location, ze(t.options[r].value);
|
|
3583
3548
|
else
|
|
3584
|
-
|
|
3549
|
+
$t(t) && jt(t.style) || (Rt(t) || Dt(t)) && Ue(t.style) ? delete t.style.location : Gt(t) && ze(t.children);
|
|
3585
3550
|
});
|
|
3586
3551
|
}
|
|
3587
|
-
function
|
|
3588
|
-
t === void 0 && (t = {}), t =
|
|
3589
|
-
var r = new
|
|
3552
|
+
function Fn(e, t) {
|
|
3553
|
+
t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3554
|
+
var r = new $n(e, t).parse();
|
|
3590
3555
|
if (r.err) {
|
|
3591
3556
|
var n = SyntaxError(b[r.err.kind]);
|
|
3592
3557
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3593
3558
|
}
|
|
3594
|
-
return t?.captureLocation ||
|
|
3559
|
+
return t?.captureLocation || ze(r.val), r.val;
|
|
3595
3560
|
}
|
|
3596
|
-
var
|
|
3561
|
+
var Q;
|
|
3597
3562
|
(function(e) {
|
|
3598
3563
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3599
|
-
})(
|
|
3600
|
-
var
|
|
3564
|
+
})(Q || (Q = {}));
|
|
3565
|
+
var Ee = (
|
|
3601
3566
|
/** @class */
|
|
3602
3567
|
function(e) {
|
|
3603
|
-
|
|
3568
|
+
I(t, e);
|
|
3604
3569
|
function t(r, n, i) {
|
|
3605
3570
|
var o = e.call(this, r) || this;
|
|
3606
3571
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3609,48 +3574,48 @@ var we = (
|
|
|
3609
3574
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3610
3575
|
}, t;
|
|
3611
3576
|
}(Error)
|
|
3612
|
-
),
|
|
3577
|
+
), mt = (
|
|
3613
3578
|
/** @class */
|
|
3614
3579
|
function(e) {
|
|
3615
|
-
|
|
3580
|
+
I(t, e);
|
|
3616
3581
|
function t(r, n, i, o) {
|
|
3617
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3582
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Q.INVALID_VALUE, o) || this;
|
|
3618
3583
|
}
|
|
3619
3584
|
return t;
|
|
3620
|
-
}(
|
|
3621
|
-
),
|
|
3585
|
+
}(Ee)
|
|
3586
|
+
), Gn = (
|
|
3622
3587
|
/** @class */
|
|
3623
3588
|
function(e) {
|
|
3624
|
-
|
|
3589
|
+
I(t, e);
|
|
3625
3590
|
function t(r, n, i) {
|
|
3626
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3591
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Q.INVALID_VALUE, i) || this;
|
|
3627
3592
|
}
|
|
3628
3593
|
return t;
|
|
3629
|
-
}(
|
|
3630
|
-
),
|
|
3594
|
+
}(Ee)
|
|
3595
|
+
), jn = (
|
|
3631
3596
|
/** @class */
|
|
3632
3597
|
function(e) {
|
|
3633
|
-
|
|
3598
|
+
I(t, e);
|
|
3634
3599
|
function t(r, n) {
|
|
3635
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3600
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Q.MISSING_VALUE, n) || this;
|
|
3636
3601
|
}
|
|
3637
3602
|
return t;
|
|
3638
|
-
}(
|
|
3603
|
+
}(Ee)
|
|
3639
3604
|
), B;
|
|
3640
3605
|
(function(e) {
|
|
3641
3606
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3642
3607
|
})(B || (B = {}));
|
|
3643
|
-
function
|
|
3608
|
+
function kn(e) {
|
|
3644
3609
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3645
3610
|
var n = t[t.length - 1];
|
|
3646
3611
|
return !n || n.type !== B.literal || r.type !== B.literal ? t.push(r) : n.value += r.value, t;
|
|
3647
3612
|
}, []);
|
|
3648
3613
|
}
|
|
3649
|
-
function
|
|
3614
|
+
function zn(e) {
|
|
3650
3615
|
return typeof e == "function";
|
|
3651
3616
|
}
|
|
3652
|
-
function
|
|
3653
|
-
if (e.length === 1 &&
|
|
3617
|
+
function de(e, t, r, n, i, o, s) {
|
|
3618
|
+
if (e.length === 1 && ut(e[0]))
|
|
3654
3619
|
return [
|
|
3655
3620
|
{
|
|
3656
3621
|
type: B.literal,
|
|
@@ -3659,14 +3624,14 @@ function pe(e, t, r, n, i, o, s) {
|
|
|
3659
3624
|
];
|
|
3660
3625
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3661
3626
|
var c = u[l];
|
|
3662
|
-
if (
|
|
3627
|
+
if (ut(c)) {
|
|
3663
3628
|
a.push({
|
|
3664
3629
|
type: B.literal,
|
|
3665
3630
|
value: c.value
|
|
3666
3631
|
});
|
|
3667
3632
|
continue;
|
|
3668
3633
|
}
|
|
3669
|
-
if (
|
|
3634
|
+
if (fn(c)) {
|
|
3670
3635
|
typeof o == "number" && a.push({
|
|
3671
3636
|
type: B.literal,
|
|
3672
3637
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3675,89 +3640,89 @@ function pe(e, t, r, n, i, o, s) {
|
|
|
3675
3640
|
}
|
|
3676
3641
|
var f = c.value;
|
|
3677
3642
|
if (!(i && f in i))
|
|
3678
|
-
throw new
|
|
3643
|
+
throw new jn(f, s);
|
|
3679
3644
|
var h = i[f];
|
|
3680
|
-
if (
|
|
3645
|
+
if (hn(c)) {
|
|
3681
3646
|
(!h || typeof h == "string" || typeof h == "number") && (h = typeof h == "string" || typeof h == "number" ? String(h) : ""), a.push({
|
|
3682
3647
|
type: typeof h == "string" ? B.literal : B.object,
|
|
3683
3648
|
value: h
|
|
3684
3649
|
});
|
|
3685
3650
|
continue;
|
|
3686
3651
|
}
|
|
3687
|
-
if (
|
|
3688
|
-
var
|
|
3652
|
+
if (Rt(c)) {
|
|
3653
|
+
var d = typeof c.style == "string" ? n.date[c.style] : Ue(c.style) ? c.style.parsedOptions : void 0;
|
|
3689
3654
|
a.push({
|
|
3690
3655
|
type: B.literal,
|
|
3691
|
-
value: r.getDateTimeFormat(t,
|
|
3656
|
+
value: r.getDateTimeFormat(t, d).format(h)
|
|
3692
3657
|
});
|
|
3693
3658
|
continue;
|
|
3694
3659
|
}
|
|
3695
|
-
if (
|
|
3696
|
-
var
|
|
3660
|
+
if (Dt(c)) {
|
|
3661
|
+
var d = typeof c.style == "string" ? n.time[c.style] : Ue(c.style) ? c.style.parsedOptions : n.time.medium;
|
|
3697
3662
|
a.push({
|
|
3698
3663
|
type: B.literal,
|
|
3699
|
-
value: r.getDateTimeFormat(t,
|
|
3664
|
+
value: r.getDateTimeFormat(t, d).format(h)
|
|
3700
3665
|
});
|
|
3701
3666
|
continue;
|
|
3702
3667
|
}
|
|
3703
|
-
if (
|
|
3704
|
-
var
|
|
3705
|
-
|
|
3668
|
+
if ($t(c)) {
|
|
3669
|
+
var d = typeof c.style == "string" ? n.number[c.style] : jt(c.style) ? c.style.parsedOptions : void 0;
|
|
3670
|
+
d && d.scale && (h = h * (d.scale || 1)), a.push({
|
|
3706
3671
|
type: B.literal,
|
|
3707
|
-
value: r.getNumberFormat(t,
|
|
3672
|
+
value: r.getNumberFormat(t, d).format(h)
|
|
3708
3673
|
});
|
|
3709
3674
|
continue;
|
|
3710
3675
|
}
|
|
3711
|
-
if (
|
|
3712
|
-
var m = c.children,
|
|
3713
|
-
if (!
|
|
3714
|
-
throw new
|
|
3715
|
-
var M =
|
|
3716
|
-
return
|
|
3676
|
+
if (Gt(c)) {
|
|
3677
|
+
var m = c.children, p = c.value, A = i[p];
|
|
3678
|
+
if (!zn(A))
|
|
3679
|
+
throw new Gn(p, "function", s);
|
|
3680
|
+
var M = de(m, t, r, n, i, o), T = A(M.map(function(S) {
|
|
3681
|
+
return S.value;
|
|
3717
3682
|
}));
|
|
3718
|
-
Array.isArray(T) || (T = [T]), a.push.apply(a, T.map(function(
|
|
3683
|
+
Array.isArray(T) || (T = [T]), a.push.apply(a, T.map(function(S) {
|
|
3719
3684
|
return {
|
|
3720
|
-
type: typeof
|
|
3721
|
-
value:
|
|
3685
|
+
type: typeof S == "string" ? B.literal : B.object,
|
|
3686
|
+
value: S
|
|
3722
3687
|
};
|
|
3723
3688
|
}));
|
|
3724
3689
|
}
|
|
3725
|
-
if (
|
|
3726
|
-
var
|
|
3727
|
-
if (!
|
|
3728
|
-
throw new
|
|
3729
|
-
a.push.apply(a,
|
|
3690
|
+
if (Ut(c)) {
|
|
3691
|
+
var x = c.options[h] || c.options.other;
|
|
3692
|
+
if (!x)
|
|
3693
|
+
throw new mt(c.value, h, Object.keys(c.options), s);
|
|
3694
|
+
a.push.apply(a, de(x.value, t, r, n, i));
|
|
3730
3695
|
continue;
|
|
3731
3696
|
}
|
|
3732
|
-
if (
|
|
3733
|
-
var
|
|
3734
|
-
if (!
|
|
3697
|
+
if (Ft(c)) {
|
|
3698
|
+
var x = c.options["=".concat(h)];
|
|
3699
|
+
if (!x) {
|
|
3735
3700
|
if (!Intl.PluralRules)
|
|
3736
|
-
throw new
|
|
3701
|
+
throw new Ee(`Intl.PluralRules is not available in this environment.
|
|
3737
3702
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3738
|
-
`,
|
|
3739
|
-
var
|
|
3740
|
-
|
|
3703
|
+
`, Q.MISSING_INTL_API, s);
|
|
3704
|
+
var w = r.getPluralRules(t, { type: c.pluralType }).select(h - (c.offset || 0));
|
|
3705
|
+
x = c.options[w] || c.options.other;
|
|
3741
3706
|
}
|
|
3742
|
-
if (!
|
|
3743
|
-
throw new
|
|
3744
|
-
a.push.apply(a,
|
|
3707
|
+
if (!x)
|
|
3708
|
+
throw new mt(c.value, h, Object.keys(c.options), s);
|
|
3709
|
+
a.push.apply(a, de(x.value, t, r, n, i, h - (c.offset || 0)));
|
|
3745
3710
|
continue;
|
|
3746
3711
|
}
|
|
3747
3712
|
}
|
|
3748
|
-
return
|
|
3713
|
+
return kn(a);
|
|
3749
3714
|
}
|
|
3750
|
-
function
|
|
3751
|
-
return t ?
|
|
3752
|
-
return r[n] =
|
|
3715
|
+
function Wn(e, t) {
|
|
3716
|
+
return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3717
|
+
return r[n] = v(v({}, e[n]), t[n] || {}), r;
|
|
3753
3718
|
}, {})) : e;
|
|
3754
3719
|
}
|
|
3755
|
-
function
|
|
3720
|
+
function Vn(e, t) {
|
|
3756
3721
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3757
|
-
return r[n] =
|
|
3758
|
-
},
|
|
3722
|
+
return r[n] = Wn(e[n], t[n]), r;
|
|
3723
|
+
}, v({}, e)) : e;
|
|
3759
3724
|
}
|
|
3760
|
-
function
|
|
3725
|
+
function Be(e) {
|
|
3761
3726
|
return {
|
|
3762
3727
|
create: function() {
|
|
3763
3728
|
return {
|
|
@@ -3771,39 +3736,39 @@ function Oe(e) {
|
|
|
3771
3736
|
}
|
|
3772
3737
|
};
|
|
3773
3738
|
}
|
|
3774
|
-
function
|
|
3739
|
+
function Xn(e) {
|
|
3775
3740
|
return e === void 0 && (e = {
|
|
3776
3741
|
number: {},
|
|
3777
3742
|
dateTime: {},
|
|
3778
3743
|
pluralRules: {}
|
|
3779
3744
|
}), {
|
|
3780
|
-
getNumberFormat:
|
|
3745
|
+
getNumberFormat: Se(function() {
|
|
3781
3746
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3782
3747
|
r[n] = arguments[n];
|
|
3783
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3748
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, X([void 0], r, !1)))();
|
|
3784
3749
|
}, {
|
|
3785
|
-
cache:
|
|
3786
|
-
strategy:
|
|
3750
|
+
cache: Be(e.number),
|
|
3751
|
+
strategy: Te.variadic
|
|
3787
3752
|
}),
|
|
3788
|
-
getDateTimeFormat:
|
|
3753
|
+
getDateTimeFormat: Se(function() {
|
|
3789
3754
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3790
3755
|
r[n] = arguments[n];
|
|
3791
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3756
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, X([void 0], r, !1)))();
|
|
3792
3757
|
}, {
|
|
3793
|
-
cache:
|
|
3794
|
-
strategy:
|
|
3758
|
+
cache: Be(e.dateTime),
|
|
3759
|
+
strategy: Te.variadic
|
|
3795
3760
|
}),
|
|
3796
|
-
getPluralRules:
|
|
3761
|
+
getPluralRules: Se(function() {
|
|
3797
3762
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3798
3763
|
r[n] = arguments[n];
|
|
3799
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3764
|
+
return new ((t = Intl.PluralRules).bind.apply(t, X([void 0], r, !1)))();
|
|
3800
3765
|
}, {
|
|
3801
|
-
cache:
|
|
3802
|
-
strategy:
|
|
3766
|
+
cache: Be(e.pluralRules),
|
|
3767
|
+
strategy: Te.variadic
|
|
3803
3768
|
})
|
|
3804
3769
|
};
|
|
3805
3770
|
}
|
|
3806
|
-
var
|
|
3771
|
+
var Zn = (
|
|
3807
3772
|
/** @class */
|
|
3808
3773
|
function() {
|
|
3809
3774
|
function e(t, r, n, i) {
|
|
@@ -3822,7 +3787,7 @@ var Jn = (
|
|
|
3822
3787
|
}, []);
|
|
3823
3788
|
return c.length <= 1 ? c[0] || "" : c;
|
|
3824
3789
|
}, this.formatToParts = function(l) {
|
|
3825
|
-
return
|
|
3790
|
+
return de(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3826
3791
|
}, this.resolvedOptions = function() {
|
|
3827
3792
|
var l;
|
|
3828
3793
|
return {
|
|
@@ -3835,13 +3800,13 @@ var Jn = (
|
|
|
3835
3800
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3836
3801
|
var s = i || {};
|
|
3837
3802
|
s.formatters;
|
|
3838
|
-
var a =
|
|
3839
|
-
this.ast = e.__parse(t,
|
|
3803
|
+
var a = wr(s, ["formatters"]);
|
|
3804
|
+
this.ast = e.__parse(t, v(v({}, a), { locale: this.resolvedLocale }));
|
|
3840
3805
|
} else
|
|
3841
3806
|
this.ast = t;
|
|
3842
3807
|
if (!Array.isArray(this.ast))
|
|
3843
3808
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3844
|
-
this.formats =
|
|
3809
|
+
this.formats = Vn(e.formats, n), this.formatters = i && i.formatters || Xn(this.formatterCache);
|
|
3845
3810
|
}
|
|
3846
3811
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3847
3812
|
get: function() {
|
|
@@ -3854,7 +3819,7 @@ var Jn = (
|
|
|
3854
3819
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3855
3820
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3856
3821
|
}
|
|
3857
|
-
}, e.__parse =
|
|
3822
|
+
}, e.__parse = Fn, e.formats = {
|
|
3858
3823
|
number: {
|
|
3859
3824
|
integer: {
|
|
3860
3825
|
maximumFractionDigits: 0
|
|
@@ -3915,7 +3880,7 @@ var Jn = (
|
|
|
3915
3880
|
}, e;
|
|
3916
3881
|
}()
|
|
3917
3882
|
);
|
|
3918
|
-
function
|
|
3883
|
+
function qn(e, t) {
|
|
3919
3884
|
if (t == null)
|
|
3920
3885
|
return;
|
|
3921
3886
|
if (t in e)
|
|
@@ -3936,92 +3901,92 @@ function Kn(e, t) {
|
|
|
3936
3901
|
n = void 0;
|
|
3937
3902
|
return n;
|
|
3938
3903
|
}
|
|
3939
|
-
const L = {},
|
|
3904
|
+
const L = {}, Qn = (e, t, r) => r && (t in L || (L[t] = {}), e in L[t] || (L[t][e] = r), r), Qt = (e, t) => {
|
|
3940
3905
|
if (t == null)
|
|
3941
3906
|
return;
|
|
3942
3907
|
if (t in L && e in L[t])
|
|
3943
3908
|
return L[t][e];
|
|
3944
|
-
const r =
|
|
3909
|
+
const r = _e(t);
|
|
3945
3910
|
for (let n = 0; n < r.length; n++) {
|
|
3946
|
-
const i = r[n], o =
|
|
3911
|
+
const i = r[n], o = Jn(i, e);
|
|
3947
3912
|
if (o)
|
|
3948
|
-
return
|
|
3913
|
+
return Qn(e, t, o);
|
|
3949
3914
|
}
|
|
3950
3915
|
};
|
|
3951
|
-
let
|
|
3952
|
-
const ue =
|
|
3953
|
-
function
|
|
3954
|
-
return
|
|
3916
|
+
let qe;
|
|
3917
|
+
const ue = xe({});
|
|
3918
|
+
function Yn(e) {
|
|
3919
|
+
return qe[e] || null;
|
|
3955
3920
|
}
|
|
3956
|
-
function
|
|
3957
|
-
return e in
|
|
3921
|
+
function Yt(e) {
|
|
3922
|
+
return e in qe;
|
|
3958
3923
|
}
|
|
3959
|
-
function
|
|
3960
|
-
if (!
|
|
3924
|
+
function Jn(e, t) {
|
|
3925
|
+
if (!Yt(e))
|
|
3961
3926
|
return null;
|
|
3962
|
-
const r =
|
|
3963
|
-
return
|
|
3927
|
+
const r = Yn(e);
|
|
3928
|
+
return qn(r, t);
|
|
3964
3929
|
}
|
|
3965
|
-
function
|
|
3930
|
+
function Kn(e) {
|
|
3966
3931
|
if (e == null)
|
|
3967
3932
|
return;
|
|
3968
|
-
const t =
|
|
3933
|
+
const t = _e(e);
|
|
3969
3934
|
for (let r = 0; r < t.length; r++) {
|
|
3970
3935
|
const n = t[r];
|
|
3971
|
-
if (
|
|
3936
|
+
if (Yt(n))
|
|
3972
3937
|
return n;
|
|
3973
3938
|
}
|
|
3974
3939
|
}
|
|
3975
|
-
function
|
|
3976
|
-
delete L[e], ue.update((r) => (r[e] =
|
|
3940
|
+
function Jt(e, ...t) {
|
|
3941
|
+
delete L[e], ue.update((r) => (r[e] = rn.all([r[e] || {}, ...t]), r));
|
|
3977
3942
|
}
|
|
3978
|
-
|
|
3943
|
+
K(
|
|
3979
3944
|
[ue],
|
|
3980
3945
|
([e]) => Object.keys(e)
|
|
3981
3946
|
);
|
|
3982
|
-
ue.subscribe((e) =>
|
|
3983
|
-
const
|
|
3984
|
-
function
|
|
3985
|
-
|
|
3947
|
+
ue.subscribe((e) => qe = e);
|
|
3948
|
+
const pe = {};
|
|
3949
|
+
function ei(e, t) {
|
|
3950
|
+
pe[e].delete(t), pe[e].size === 0 && delete pe[e];
|
|
3986
3951
|
}
|
|
3987
|
-
function
|
|
3988
|
-
return
|
|
3952
|
+
function Kt(e) {
|
|
3953
|
+
return pe[e];
|
|
3989
3954
|
}
|
|
3990
|
-
function
|
|
3991
|
-
return
|
|
3992
|
-
const r =
|
|
3955
|
+
function ti(e) {
|
|
3956
|
+
return _e(e).map((t) => {
|
|
3957
|
+
const r = Kt(t);
|
|
3993
3958
|
return [t, r ? [...r] : []];
|
|
3994
3959
|
}).filter(([, t]) => t.length > 0);
|
|
3995
3960
|
}
|
|
3996
|
-
function
|
|
3997
|
-
return e == null ? !1 :
|
|
3961
|
+
function We(e) {
|
|
3962
|
+
return e == null ? !1 : _e(e).some(
|
|
3998
3963
|
(t) => {
|
|
3999
3964
|
var r;
|
|
4000
|
-
return (r =
|
|
3965
|
+
return (r = Kt(t)) == null ? void 0 : r.size;
|
|
4001
3966
|
}
|
|
4002
3967
|
);
|
|
4003
3968
|
}
|
|
4004
|
-
function
|
|
3969
|
+
function ri(e, t) {
|
|
4005
3970
|
return Promise.all(
|
|
4006
|
-
t.map((n) => (
|
|
4007
|
-
).then((n) =>
|
|
4008
|
-
}
|
|
4009
|
-
const
|
|
4010
|
-
function
|
|
4011
|
-
if (!
|
|
4012
|
-
return e in
|
|
4013
|
-
const t =
|
|
4014
|
-
return
|
|
3971
|
+
t.map((n) => (ei(e, n), n().then((i) => i.default || i)))
|
|
3972
|
+
).then((n) => Jt(e, ...n));
|
|
3973
|
+
}
|
|
3974
|
+
const re = {};
|
|
3975
|
+
function er(e) {
|
|
3976
|
+
if (!We(e))
|
|
3977
|
+
return e in re ? re[e] : Promise.resolve();
|
|
3978
|
+
const t = ti(e);
|
|
3979
|
+
return re[e] = Promise.all(
|
|
4015
3980
|
t.map(
|
|
4016
|
-
([r, n]) =>
|
|
3981
|
+
([r, n]) => ri(r, n)
|
|
4017
3982
|
)
|
|
4018
3983
|
).then(() => {
|
|
4019
|
-
if (
|
|
4020
|
-
return
|
|
4021
|
-
delete
|
|
4022
|
-
}),
|
|
3984
|
+
if (We(e))
|
|
3985
|
+
return er(e);
|
|
3986
|
+
delete re[e];
|
|
3987
|
+
}), re[e];
|
|
4023
3988
|
}
|
|
4024
|
-
const
|
|
3989
|
+
const ni = {
|
|
4025
3990
|
number: {
|
|
4026
3991
|
scientific: { notation: "scientific" },
|
|
4027
3992
|
engineering: { notation: "engineering" },
|
|
@@ -4050,57 +4015,57 @@ const ai = {
|
|
|
4050
4015
|
timeZoneName: "short"
|
|
4051
4016
|
}
|
|
4052
4017
|
}
|
|
4053
|
-
},
|
|
4018
|
+
}, ii = {
|
|
4054
4019
|
fallbackLocale: null,
|
|
4055
4020
|
loadingDelay: 200,
|
|
4056
|
-
formats:
|
|
4021
|
+
formats: ni,
|
|
4057
4022
|
warnOnMissingMessages: !0,
|
|
4058
4023
|
handleMissingMessage: void 0,
|
|
4059
4024
|
ignoreTag: !0
|
|
4060
|
-
},
|
|
4061
|
-
function
|
|
4062
|
-
return
|
|
4063
|
-
}
|
|
4064
|
-
const
|
|
4065
|
-
var
|
|
4066
|
-
for (var r in t
|
|
4067
|
-
|
|
4068
|
-
if (
|
|
4069
|
-
for (var r of
|
|
4070
|
-
|
|
4025
|
+
}, oi = ii;
|
|
4026
|
+
function Y() {
|
|
4027
|
+
return oi;
|
|
4028
|
+
}
|
|
4029
|
+
const Me = xe(!1);
|
|
4030
|
+
var si = Object.defineProperty, ai = Object.defineProperties, ui = Object.getOwnPropertyDescriptors, bt = Object.getOwnPropertySymbols, li = Object.prototype.hasOwnProperty, ci = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, hi = (e, t) => {
|
|
4031
|
+
for (var r in t)
|
|
4032
|
+
li.call(t, r) && gt(e, r, t[r]);
|
|
4033
|
+
if (bt)
|
|
4034
|
+
for (var r of bt(t))
|
|
4035
|
+
ci.call(t, r) && gt(e, r, t[r]);
|
|
4071
4036
|
return e;
|
|
4072
|
-
},
|
|
4073
|
-
let
|
|
4074
|
-
const
|
|
4075
|
-
function
|
|
4037
|
+
}, fi = (e, t) => ai(e, ui(t));
|
|
4038
|
+
let Ve;
|
|
4039
|
+
const be = xe(null);
|
|
4040
|
+
function yt(e) {
|
|
4076
4041
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4077
4042
|
}
|
|
4078
|
-
function
|
|
4079
|
-
const r =
|
|
4080
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4043
|
+
function _e(e, t = Y().fallbackLocale) {
|
|
4044
|
+
const r = yt(e);
|
|
4045
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...yt(t)])] : r;
|
|
4081
4046
|
}
|
|
4082
4047
|
function U() {
|
|
4083
|
-
return
|
|
4048
|
+
return Ve ?? void 0;
|
|
4084
4049
|
}
|
|
4085
|
-
|
|
4086
|
-
|
|
4050
|
+
be.subscribe((e) => {
|
|
4051
|
+
Ve = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4087
4052
|
});
|
|
4088
|
-
const
|
|
4089
|
-
if (e &&
|
|
4090
|
-
const { loadingDelay: t } =
|
|
4053
|
+
const di = (e) => {
|
|
4054
|
+
if (e && Kn(e) && We(e)) {
|
|
4055
|
+
const { loadingDelay: t } = Y();
|
|
4091
4056
|
let r;
|
|
4092
4057
|
return typeof window < "u" && U() != null && t ? r = window.setTimeout(
|
|
4093
|
-
() =>
|
|
4058
|
+
() => Me.set(!0),
|
|
4094
4059
|
t
|
|
4095
|
-
) :
|
|
4096
|
-
|
|
4060
|
+
) : Me.set(!0), er(e).then(() => {
|
|
4061
|
+
be.set(e);
|
|
4097
4062
|
}).finally(() => {
|
|
4098
|
-
clearTimeout(r),
|
|
4063
|
+
clearTimeout(r), Me.set(!1);
|
|
4099
4064
|
});
|
|
4100
4065
|
}
|
|
4101
|
-
return
|
|
4102
|
-
},
|
|
4103
|
-
set:
|
|
4066
|
+
return be.set(e);
|
|
4067
|
+
}, ee = fi(hi({}, be), {
|
|
4068
|
+
set: di
|
|
4104
4069
|
}), Ce = (e) => {
|
|
4105
4070
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4106
4071
|
return (n) => {
|
|
@@ -4108,77 +4073,77 @@ const vi = (e) => {
|
|
|
4108
4073
|
return i in t ? t[i] : t[i] = e(n);
|
|
4109
4074
|
};
|
|
4110
4075
|
};
|
|
4111
|
-
var
|
|
4076
|
+
var pi = Object.defineProperty, ge = Object.getOwnPropertySymbols, tr = Object.prototype.hasOwnProperty, rr = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qe = (e, t) => {
|
|
4112
4077
|
for (var r in t || (t = {}))
|
|
4113
|
-
|
|
4078
|
+
tr.call(t, r) && vt(e, r, t[r]);
|
|
4114
4079
|
if (ge)
|
|
4115
4080
|
for (var r of ge(t))
|
|
4116
|
-
|
|
4081
|
+
rr.call(t, r) && vt(e, r, t[r]);
|
|
4117
4082
|
return e;
|
|
4118
|
-
},
|
|
4083
|
+
}, te = (e, t) => {
|
|
4119
4084
|
var r = {};
|
|
4120
4085
|
for (var n in e)
|
|
4121
|
-
|
|
4086
|
+
tr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4122
4087
|
if (e != null && ge)
|
|
4123
4088
|
for (var n of ge(e))
|
|
4124
|
-
t.indexOf(n) < 0 &&
|
|
4089
|
+
t.indexOf(n) < 0 && rr.call(e, n) && (r[n] = e[n]);
|
|
4125
4090
|
return r;
|
|
4126
4091
|
};
|
|
4127
|
-
const
|
|
4128
|
-
const { formats: r } =
|
|
4092
|
+
const se = (e, t) => {
|
|
4093
|
+
const { formats: r } = Y();
|
|
4129
4094
|
if (e in r && t in r[e])
|
|
4130
4095
|
return r[e][t];
|
|
4131
4096
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4132
|
-
},
|
|
4097
|
+
}, mi = Ce(
|
|
4133
4098
|
(e) => {
|
|
4134
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4099
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
4135
4100
|
if (r == null)
|
|
4136
4101
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4137
|
-
return n && (i =
|
|
4102
|
+
return n && (i = se("number", n)), new Intl.NumberFormat(r, i);
|
|
4138
4103
|
}
|
|
4139
|
-
),
|
|
4104
|
+
), bi = Ce(
|
|
4140
4105
|
(e) => {
|
|
4141
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4106
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
4142
4107
|
if (r == null)
|
|
4143
4108
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4144
|
-
return n ? i =
|
|
4109
|
+
return n ? i = se("date", n) : Object.keys(i).length === 0 && (i = se("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4145
4110
|
}
|
|
4146
|
-
),
|
|
4111
|
+
), gi = Ce(
|
|
4147
4112
|
(e) => {
|
|
4148
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4113
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
4149
4114
|
if (r == null)
|
|
4150
4115
|
throw new Error(
|
|
4151
4116
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4152
4117
|
);
|
|
4153
|
-
return n ? i =
|
|
4118
|
+
return n ? i = se("time", n) : Object.keys(i).length === 0 && (i = se("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4154
4119
|
}
|
|
4155
|
-
),
|
|
4120
|
+
), yi = (e = {}) => {
|
|
4156
4121
|
var t = e, {
|
|
4157
4122
|
locale: r = U()
|
|
4158
|
-
} = t, n =
|
|
4123
|
+
} = t, n = te(t, [
|
|
4159
4124
|
"locale"
|
|
4160
4125
|
]);
|
|
4161
|
-
return
|
|
4162
|
-
},
|
|
4126
|
+
return mi(Qe({ locale: r }, n));
|
|
4127
|
+
}, vi = (e = {}) => {
|
|
4163
4128
|
var t = e, {
|
|
4164
4129
|
locale: r = U()
|
|
4165
|
-
} = t, n =
|
|
4130
|
+
} = t, n = te(t, [
|
|
4166
4131
|
"locale"
|
|
4167
4132
|
]);
|
|
4168
|
-
return
|
|
4169
|
-
},
|
|
4133
|
+
return bi(Qe({ locale: r }, n));
|
|
4134
|
+
}, xi = (e = {}) => {
|
|
4170
4135
|
var t = e, {
|
|
4171
4136
|
locale: r = U()
|
|
4172
|
-
} = t, n =
|
|
4137
|
+
} = t, n = te(t, [
|
|
4173
4138
|
"locale"
|
|
4174
4139
|
]);
|
|
4175
|
-
return
|
|
4176
|
-
},
|
|
4140
|
+
return gi(Qe({ locale: r }, n));
|
|
4141
|
+
}, Ei = Ce(
|
|
4177
4142
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4178
|
-
(e, t = U()) => new
|
|
4179
|
-
ignoreTag:
|
|
4143
|
+
(e, t = U()) => new Zn(e, t, Y().formats, {
|
|
4144
|
+
ignoreTag: Y().ignoreTag
|
|
4180
4145
|
})
|
|
4181
|
-
),
|
|
4146
|
+
), _i = (e, t = {}) => {
|
|
4182
4147
|
var r, n, i, o;
|
|
4183
4148
|
let s = t;
|
|
4184
4149
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4191,9 +4156,9 @@ const oe = (e, t) => {
|
|
|
4191
4156
|
throw new Error(
|
|
4192
4157
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4193
4158
|
);
|
|
4194
|
-
let c =
|
|
4159
|
+
let c = Qt(e, l);
|
|
4195
4160
|
if (!c)
|
|
4196
|
-
c = (o = (i = (n = (r =
|
|
4161
|
+
c = (o = (i = (n = (r = Y()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4197
4162
|
else if (typeof c != "string")
|
|
4198
4163
|
return console.warn(
|
|
4199
4164
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4202,7 +4167,7 @@ const oe = (e, t) => {
|
|
|
4202
4167
|
return c;
|
|
4203
4168
|
let f = c;
|
|
4204
4169
|
try {
|
|
4205
|
-
f =
|
|
4170
|
+
f = Ei(c, l).format(a);
|
|
4206
4171
|
} catch (h) {
|
|
4207
4172
|
h instanceof Error && console.warn(
|
|
4208
4173
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4210,20 +4175,20 @@ const oe = (e, t) => {
|
|
|
4210
4175
|
);
|
|
4211
4176
|
}
|
|
4212
4177
|
return f;
|
|
4213
|
-
},
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
window.emWidgets = { topic:
|
|
4219
|
-
const
|
|
4220
|
-
function
|
|
4221
|
-
|
|
4222
|
-
}
|
|
4223
|
-
function
|
|
4224
|
-
|
|
4225
|
-
}
|
|
4226
|
-
const
|
|
4178
|
+
}, Ci = (e, t) => xi(t).format(e), Ai = (e, t) => vi(t).format(e), wi = (e, t) => yi(t).format(e), Si = (e, t = U()) => Qt(e, t), Ti = K([ee, ue], () => _i);
|
|
4179
|
+
K([ee], () => Ci);
|
|
4180
|
+
K([ee], () => Ai);
|
|
4181
|
+
K([ee], () => wi);
|
|
4182
|
+
K([ee, ue], () => Si);
|
|
4183
|
+
window.emWidgets = { topic: Ur };
|
|
4184
|
+
const Hi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4185
|
+
function xt(e, t) {
|
|
4186
|
+
Jt(e, t);
|
|
4187
|
+
}
|
|
4188
|
+
function Bi(e) {
|
|
4189
|
+
ee.set(e);
|
|
4190
|
+
}
|
|
4191
|
+
const Et = {
|
|
4227
4192
|
en: {
|
|
4228
4193
|
titleAccountClosure: "Account Closure",
|
|
4229
4194
|
accountClosureDescription: "Account Closure provides a permanent access restriction to your account if you feel you need a break, or you just want to stop using our services.",
|
|
@@ -4313,13 +4278,13 @@ const Ct = {
|
|
|
4313
4278
|
accountClosureConfirm: "Yes"
|
|
4314
4279
|
}
|
|
4315
4280
|
};
|
|
4316
|
-
function
|
|
4281
|
+
function Mi(e, t) {
|
|
4317
4282
|
if (e) {
|
|
4318
4283
|
const r = document.createElement("style");
|
|
4319
4284
|
r.innerHTML = t, e.appendChild(r);
|
|
4320
4285
|
}
|
|
4321
4286
|
}
|
|
4322
|
-
function
|
|
4287
|
+
function Pi(e, t) {
|
|
4323
4288
|
const r = new URL(t);
|
|
4324
4289
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4325
4290
|
const i = document.createElement("style");
|
|
@@ -4328,7 +4293,7 @@ function Li(e, t) {
|
|
|
4328
4293
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4329
4294
|
});
|
|
4330
4295
|
}
|
|
4331
|
-
function
|
|
4296
|
+
function Oi(e, t, r) {
|
|
4332
4297
|
if (window.emMessageBus) {
|
|
4333
4298
|
const n = document.createElement("style");
|
|
4334
4299
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4336,54 +4301,54 @@ function $i(e, t, r) {
|
|
|
4336
4301
|
});
|
|
4337
4302
|
}
|
|
4338
4303
|
}
|
|
4339
|
-
function
|
|
4340
|
-
|
|
4304
|
+
function Ni(e) {
|
|
4305
|
+
or(e, "svelte-115r8ym", '.AccountClosureWrapper{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));background-color:var(--emw--pam-color-bg, var(--emw--background-color, #F1F1F1));border-radius:var(--emw--border-radius-medium, 10px);padding:50px;height:100vh}.AccountClosureWrapper.AccountClosureWrapperMobile{padding:20px 15px;max-width:unset;border-radius:0}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg .aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.AccountClosureTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weight-normal, 400)}.AccountClosureTitleMobile{font-size:var(--emw--font-size-large, 20px)}.AccountClosureTitleNone{display:none}.AccountClosureDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px}.AccountClosureDescription.AccountClosureDescriptionMobile{font-size:var(--emw--font-size-small, 14px);line-height:18px}.AccountClosureActionButtons{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%;color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF))}.AccountClosureActionButtons.AccountClosureActionButtonsMobile{width:100%;grid-template-columns:1fr}.AccountClosureSave{background:var(--emw--color-primary, #23B04E);border-radius:var(--emw--button-border-radius, 10px);padding:13px 0;color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF));width:100%;max-width:400px;min-width:200px;display:flex;align-items:center;justify-content:center;font-size:var(--emw--font-size-medium, 16px);text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;cursor:pointer;border:none}.AccountClosureSave:hover{filter:brightness(0.9)}.AccountClosureSave.AccountClosureSaveMobile{width:100%;padding:10px 0;font-size:var(--emw--font-size-small, 14px);grid-template-columns:1fr}.ModalWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:300}.ModalWrapper .ModalContent{position:relative;background:var(--emw--color-primary, #23B04E);padding:30px;background-clip:padding-box;border-radius:var(--emw--border-radius-medium, 10px)}.ModalWrapper .ModalContent::before{content:"";position:absolute;top:-6px;left:-8px;width:103%;height:105%;z-index:-1;opacity:0.5;border-radius:inherit;filter:blur(6px)}.ModalWrapper .ModalContent::after{position:absolute;top:-4px;bottom:-4px;left:-4px;right:-4px;content:"";z-index:-1;border-radius:var(--emw--border-radius-medium, 10px)}.ModalWrapper .ModalBody{background:transparent;padding:30px;text-align:center}.ModalWrapper .ModalBody .ModalText{font-size:var(--emw--font-size-x-large, 24px);margin-bottom:40px;color:white}.ModalWrapper .ModalBody .ModalButtons{justify-content:center;display:flex;gap:36px}.ModalWrapper .ModalBody .ModalCancel,.ModalWrapper .ModalBody .ModalConfirm{background:transparent;border:1px solid var(--emw--color-white, #FFFFFF);color:var(--emw--color-white, #FFFFFF);cursor:pointer;border-radius:var(--emw--button-border-radius, 10px);width:200px;height:42px;font-size:var(--emw--font-size-medium, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.ModalWrapper .ModalBody .ModalCancel:hover,.ModalWrapper .ModalBody .ModalConfirm:hover{filter:brightness(0.9)}.ModalWrapper.ModalWrapperMobile .ModalContent{padding:20px;width:80vw;border-top:none}.ModalWrapper.ModalWrapperMobile .ModalBody{padding:0;background:transparent}.ModalWrapper.ModalWrapperMobile .ModalText{font-size:var(--emw--font-size-medium, 16px)}.ModalWrapper.ModalWrapperMobile .ModalButtons{gap:10px}.ModalWrapper.ModalWrapperMobile .ModalCancel,.ModalWrapper.ModalWrapperMobile .ModalConfirm{height:40px;width:50%;font-size:var(--emw--font-size-small, 14px)}');
|
|
4341
4306
|
}
|
|
4342
|
-
function
|
|
4307
|
+
function Ii(e) {
|
|
4343
4308
|
let t, r, n, i, o, s, a, l, u, c, f = (
|
|
4344
4309
|
/*$_*/
|
|
4345
4310
|
e[2]("titleAccountClosure") + ""
|
|
4346
|
-
), h,
|
|
4311
|
+
), h, d, m;
|
|
4347
4312
|
return {
|
|
4348
4313
|
c() {
|
|
4349
|
-
t = H("div"), r = G("svg"), n = G("defs"), i = G("style"), o = $(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), s = G("g"), a = G("g"), l = G("path"), u = D(), c = H("h2"), h = $(f),
|
|
4314
|
+
t = H("div"), r = G("svg"), n = G("defs"), i = G("style"), o = $(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), s = G("g"), a = G("g"), l = G("path"), u = D(), c = H("h2"), h = $(f), E(l, "class", "aaa"), E(l, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), E(l, "transform", "translate(15 15) rotate(180)"), E(a, "transform", "translate(20 158)"), E(s, "transform", "translate(-20 -158)"), E(r, "xmlns", "http://www.w3.org/2000/svg"), E(r, "width", "15"), E(r, "height", "15"), E(r, "viewBox", "0 0 15 15"), E(c, "class", "AccountClosureTitleMobile"), E(c, "part", "AccountClosureTitleMobile"), E(t, "class", "MenuReturnButton"), E(t, "part", "MenuReturnButton");
|
|
4350
4315
|
},
|
|
4351
|
-
m(
|
|
4352
|
-
ye(
|
|
4316
|
+
m(p, A) {
|
|
4317
|
+
ye(p, t, A), y(t, r), y(r, n), y(n, i), y(i, o), y(r, s), y(s, a), y(a, l), y(t, u), y(t, c), y(c, h), d || (m = me(
|
|
4353
4318
|
t,
|
|
4354
4319
|
"click",
|
|
4355
4320
|
/*click_handler*/
|
|
4356
4321
|
e[12]
|
|
4357
|
-
),
|
|
4322
|
+
), d = !0);
|
|
4358
4323
|
},
|
|
4359
|
-
p(
|
|
4360
|
-
|
|
4324
|
+
p(p, A) {
|
|
4325
|
+
A & /*$_*/
|
|
4361
4326
|
4 && f !== (f = /*$_*/
|
|
4362
|
-
|
|
4327
|
+
p[2]("titleAccountClosure") + "") && W(h, f);
|
|
4363
4328
|
},
|
|
4364
|
-
d(
|
|
4365
|
-
|
|
4329
|
+
d(p) {
|
|
4330
|
+
p && ae(t), d = !1, m();
|
|
4366
4331
|
}
|
|
4367
4332
|
};
|
|
4368
4333
|
}
|
|
4369
|
-
function
|
|
4334
|
+
function _t(e) {
|
|
4370
4335
|
let t, r, n, i, o = (
|
|
4371
4336
|
/*$_*/
|
|
4372
4337
|
e[2]("modal") + ""
|
|
4373
4338
|
), s, a, l, u, c = (
|
|
4374
4339
|
/*$_*/
|
|
4375
4340
|
e[2]("accountClosureCancel") + ""
|
|
4376
|
-
), f, h,
|
|
4341
|
+
), f, h, d, m = (
|
|
4377
4342
|
/*$_*/
|
|
4378
4343
|
e[2]("accountClosureConfirm") + ""
|
|
4379
|
-
),
|
|
4344
|
+
), p, A, M;
|
|
4380
4345
|
return {
|
|
4381
4346
|
c() {
|
|
4382
|
-
t = H("div"), r = H("div"), n = H("div"), i = H("p"), s = $(o), a = D(), l = H("div"), u = H("button"), f = $(c), h = D(),
|
|
4347
|
+
t = H("div"), r = H("div"), n = H("div"), i = H("p"), s = $(o), a = D(), l = H("div"), u = H("button"), f = $(c), h = D(), d = H("button"), p = $(m), E(i, "class", "ModalText"), E(u, "class", "ModalCancel"), E(d, "class", "ModalConfirm"), E(l, "class", "ModalButtons"), E(n, "class", "ModalBody"), E(r, "class", "ModalContent"), E(t, "class", "ModalWrapper " + /*isMobile*/
|
|
4383
4348
|
(e[3] ? "ModalWrapperMobile" : ""));
|
|
4384
4349
|
},
|
|
4385
|
-
m(T,
|
|
4386
|
-
ye(T, t,
|
|
4350
|
+
m(T, x) {
|
|
4351
|
+
ye(T, t, x), y(t, r), y(r, n), y(n, i), y(i, s), y(n, a), y(n, l), y(l, u), y(u, f), y(l, h), y(l, d), y(d, p), A || (M = [
|
|
4387
4352
|
me(
|
|
4388
4353
|
u,
|
|
4389
4354
|
"click",
|
|
@@ -4391,100 +4356,100 @@ function St(e) {
|
|
|
4391
4356
|
e[14]
|
|
4392
4357
|
),
|
|
4393
4358
|
me(
|
|
4394
|
-
|
|
4359
|
+
d,
|
|
4395
4360
|
"click",
|
|
4396
4361
|
/*click_handler_3*/
|
|
4397
4362
|
e[15]
|
|
4398
4363
|
)
|
|
4399
|
-
],
|
|
4364
|
+
], A = !0);
|
|
4400
4365
|
},
|
|
4401
|
-
p(T,
|
|
4402
|
-
|
|
4366
|
+
p(T, x) {
|
|
4367
|
+
x & /*$_*/
|
|
4403
4368
|
4 && o !== (o = /*$_*/
|
|
4404
|
-
T[2]("modal") + "") && W(s, o),
|
|
4369
|
+
T[2]("modal") + "") && W(s, o), x & /*$_*/
|
|
4405
4370
|
4 && c !== (c = /*$_*/
|
|
4406
|
-
T[2]("accountClosureCancel") + "") && W(f, c),
|
|
4371
|
+
T[2]("accountClosureCancel") + "") && W(f, c), x & /*$_*/
|
|
4407
4372
|
4 && m !== (m = /*$_*/
|
|
4408
|
-
T[2]("accountClosureConfirm") + "") && W(
|
|
4373
|
+
T[2]("accountClosureConfirm") + "") && W(p, m);
|
|
4409
4374
|
},
|
|
4410
4375
|
d(T) {
|
|
4411
|
-
T &&
|
|
4376
|
+
T && ae(t), A = !1, J(M);
|
|
4412
4377
|
}
|
|
4413
4378
|
};
|
|
4414
4379
|
}
|
|
4415
|
-
function
|
|
4380
|
+
function Li(e) {
|
|
4416
4381
|
let t, r, n, i, o = (
|
|
4417
4382
|
/*$_*/
|
|
4418
4383
|
e[2]("titleAccountClosure") + ""
|
|
4419
4384
|
), s, a, l, u, c = (
|
|
4420
4385
|
/*$_*/
|
|
4421
4386
|
e[2]("accountClosureDescription") + ""
|
|
4422
|
-
), f, h,
|
|
4387
|
+
), f, h, d, m = (
|
|
4423
4388
|
/*$_*/
|
|
4424
4389
|
e[2]("closeAccount") + ""
|
|
4425
|
-
),
|
|
4390
|
+
), p, A, M, T, x = (
|
|
4426
4391
|
/*isMobile*/
|
|
4427
|
-
e[3] &&
|
|
4428
|
-
),
|
|
4392
|
+
e[3] && Ii(e)
|
|
4393
|
+
), w = (
|
|
4429
4394
|
/*closureModal*/
|
|
4430
|
-
e[1] &&
|
|
4395
|
+
e[1] && _t(e)
|
|
4431
4396
|
);
|
|
4432
4397
|
return {
|
|
4433
4398
|
c() {
|
|
4434
|
-
t = H("div"), r = H("div"),
|
|
4435
|
-
(e[3] ? "AccountClosureTitleNone" : "")),
|
|
4436
|
-
(e[3] ? "AccountClosureDescriptionMobile" : "")),
|
|
4437
|
-
(e[3] ? "AccountClosureSaveMobile" : "")),
|
|
4438
|
-
(e[3] ? "AccountClosureActionButtonsMobile" : "")),
|
|
4399
|
+
t = H("div"), r = H("div"), x && x.c(), n = D(), i = H("h2"), s = $(o), a = D(), l = H("div"), u = H("p"), f = D(), h = H("div"), d = H("button"), p = $(m), A = D(), w && w.c(), E(i, "class", "AccountClosureTitle " + /*isMobile*/
|
|
4400
|
+
(e[3] ? "AccountClosureTitleNone" : "")), E(l, "class", "AccountClosureDescription " + /*isMobile*/
|
|
4401
|
+
(e[3] ? "AccountClosureDescriptionMobile" : "")), E(d, "class", "AccountClosureSave " + /*isMobile*/
|
|
4402
|
+
(e[3] ? "AccountClosureSaveMobile" : "")), E(h, "class", "AccountClosureActionButtons " + /*isMobile*/
|
|
4403
|
+
(e[3] ? "AccountClosureActionButtonsMobile" : "")), E(r, "class", "AccountClosureWrapper " + /*isMobile*/
|
|
4439
4404
|
(e[3] ? "AccountClosureWrapperMobile" : ""));
|
|
4440
4405
|
},
|
|
4441
|
-
m(
|
|
4442
|
-
ye(
|
|
4443
|
-
|
|
4406
|
+
m(S, P) {
|
|
4407
|
+
ye(S, t, P), y(t, r), x && x.m(r, null), y(r, n), y(r, i), y(i, s), y(r, a), y(r, l), y(l, u), u.innerHTML = c, y(r, f), y(r, h), y(h, d), y(d, p), y(t, A), w && w.m(t, null), e[16](t), M || (T = me(
|
|
4408
|
+
d,
|
|
4444
4409
|
"click",
|
|
4445
4410
|
/*click_handler_1*/
|
|
4446
4411
|
e[13]
|
|
4447
4412
|
), M = !0);
|
|
4448
4413
|
},
|
|
4449
|
-
p(
|
|
4414
|
+
p(S, [P]) {
|
|
4450
4415
|
/*isMobile*/
|
|
4451
|
-
|
|
4416
|
+
S[3] && x.p(S, P), P & /*$_*/
|
|
4452
4417
|
4 && o !== (o = /*$_*/
|
|
4453
|
-
|
|
4418
|
+
S[2]("titleAccountClosure") + "") && W(s, o), P & /*$_*/
|
|
4454
4419
|
4 && c !== (c = /*$_*/
|
|
4455
|
-
|
|
4420
|
+
S[2]("accountClosureDescription") + "") && (u.innerHTML = c), P & /*$_*/
|
|
4456
4421
|
4 && m !== (m = /*$_*/
|
|
4457
|
-
|
|
4458
|
-
|
|
4422
|
+
S[2]("closeAccount") + "") && W(p, m), /*closureModal*/
|
|
4423
|
+
S[1] ? w ? w.p(S, P) : (w = _t(S), w.c(), w.m(t, null)) : w && (w.d(1), w = null);
|
|
4459
4424
|
},
|
|
4460
4425
|
i: O,
|
|
4461
4426
|
o: O,
|
|
4462
|
-
d(
|
|
4463
|
-
|
|
4427
|
+
d(S) {
|
|
4428
|
+
S && ae(t), x && x.d(), w && w.d(), e[16](null), M = !1, T();
|
|
4464
4429
|
}
|
|
4465
4430
|
};
|
|
4466
4431
|
}
|
|
4467
|
-
function
|
|
4432
|
+
function $i(e, t, r) {
|
|
4468
4433
|
let n;
|
|
4469
|
-
|
|
4470
|
-
let { lang: i = "en" } = t, { clientstyling: o = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: a } = t, { translationurl: l = "" } = t, u = window.navigator.userAgent, c =
|
|
4471
|
-
const
|
|
4434
|
+
ir(e, Ti, (_) => r(2, n = _));
|
|
4435
|
+
let { lang: i = "en" } = t, { clientstyling: o = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: a } = t, { translationurl: l = "" } = t, u = window.navigator.userAgent, c = Hi(u) !== "PC", f = !1, h;
|
|
4436
|
+
const d = () => {
|
|
4472
4437
|
fetch(l).then((F) => F.json()).then((F) => {
|
|
4473
|
-
Object.keys(F).forEach((
|
|
4474
|
-
|
|
4438
|
+
Object.keys(F).forEach((Ye) => {
|
|
4439
|
+
xt(Ye, F[Ye]);
|
|
4475
4440
|
});
|
|
4476
4441
|
}).catch((F) => {
|
|
4477
4442
|
console.log(F);
|
|
4478
4443
|
});
|
|
4479
4444
|
};
|
|
4480
|
-
Object.keys(
|
|
4481
|
-
|
|
4445
|
+
Object.keys(Et).forEach((_) => {
|
|
4446
|
+
xt(_, Et[_]);
|
|
4482
4447
|
});
|
|
4483
4448
|
const m = (_) => {
|
|
4484
4449
|
r(1, f = _), _ === !0 ? window.postMessage({ type: "DisableScroll" }, window.location.href) : window.postMessage({ type: "EnableScroll" }, window.location.href);
|
|
4485
|
-
},
|
|
4450
|
+
}, p = () => {
|
|
4486
4451
|
m(!1), window.postMessage({ type: "AccountClosure" }, window.location.href);
|
|
4487
|
-
},
|
|
4452
|
+
}, A = () => {
|
|
4488
4453
|
window.postMessage(
|
|
4489
4454
|
{
|
|
4490
4455
|
type: "PlayerAccountMenuActive",
|
|
@@ -4493,13 +4458,13 @@ function Fi(e, t, r) {
|
|
|
4493
4458
|
window.location.href
|
|
4494
4459
|
);
|
|
4495
4460
|
}, M = () => {
|
|
4496
|
-
|
|
4461
|
+
Bi(i);
|
|
4497
4462
|
};
|
|
4498
|
-
|
|
4463
|
+
hr(() => () => {
|
|
4499
4464
|
});
|
|
4500
|
-
const T = () =>
|
|
4465
|
+
const T = () => A(), x = () => m(!0), w = () => m(!1), S = () => p();
|
|
4501
4466
|
function P(_) {
|
|
4502
|
-
|
|
4467
|
+
Pe[_ ? "unshift" : "push"](() => {
|
|
4503
4468
|
h = _, r(0, h);
|
|
4504
4469
|
});
|
|
4505
4470
|
}
|
|
@@ -4508,38 +4473,38 @@ function Fi(e, t, r) {
|
|
|
4508
4473
|
}, e.$$.update = () => {
|
|
4509
4474
|
e.$$.dirty & /*lang*/
|
|
4510
4475
|
128 && i && M(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4511
|
-
257 && o && h &&
|
|
4512
|
-
513 && s && h &&
|
|
4513
|
-
1025 && a && h &&
|
|
4514
|
-
2048 && l &&
|
|
4476
|
+
257 && o && h && Mi(h, o), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4477
|
+
513 && s && h && Pi(h, s), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4478
|
+
1025 && a && h && Oi(h, `${a}.Style`), e.$$.dirty & /*translationurl*/
|
|
4479
|
+
2048 && l && d();
|
|
4515
4480
|
}, [
|
|
4516
4481
|
h,
|
|
4517
4482
|
f,
|
|
4518
4483
|
n,
|
|
4519
4484
|
c,
|
|
4520
4485
|
m,
|
|
4521
|
-
|
|
4522
|
-
|
|
4486
|
+
p,
|
|
4487
|
+
A,
|
|
4523
4488
|
i,
|
|
4524
4489
|
o,
|
|
4525
4490
|
s,
|
|
4526
4491
|
a,
|
|
4527
4492
|
l,
|
|
4528
4493
|
T,
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4494
|
+
x,
|
|
4495
|
+
w,
|
|
4496
|
+
S,
|
|
4532
4497
|
P
|
|
4533
4498
|
];
|
|
4534
4499
|
}
|
|
4535
|
-
class
|
|
4500
|
+
class Ri extends Cr {
|
|
4536
4501
|
constructor(t) {
|
|
4537
|
-
super(),
|
|
4502
|
+
super(), Er(
|
|
4538
4503
|
this,
|
|
4539
4504
|
t,
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
|
|
4505
|
+
$i,
|
|
4506
|
+
Li,
|
|
4507
|
+
At,
|
|
4543
4508
|
{
|
|
4544
4509
|
lang: 7,
|
|
4545
4510
|
clientstyling: 8,
|
|
@@ -4547,7 +4512,7 @@ class Gi extends Tr {
|
|
|
4547
4512
|
mbsource: 10,
|
|
4548
4513
|
translationurl: 11
|
|
4549
4514
|
},
|
|
4550
|
-
|
|
4515
|
+
Ni
|
|
4551
4516
|
);
|
|
4552
4517
|
}
|
|
4553
4518
|
get lang() {
|
|
@@ -4581,7 +4546,7 @@ class Gi extends Tr {
|
|
|
4581
4546
|
this.$$set({ translationurl: t }), R();
|
|
4582
4547
|
}
|
|
4583
4548
|
}
|
|
4584
|
-
|
|
4549
|
+
_r(Ri, { lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
4585
4550
|
export {
|
|
4586
|
-
|
|
4551
|
+
Ri as P
|
|
4587
4552
|
};
|