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