@everymatrix/player-email-verification 1.60.1 → 1.60.2
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/{PlayerEmailVerification-64YgAa6l.js → PlayerEmailVerification-B8FDJz7U.js} +328 -330
- package/components/PlayerEmailVerification-BgaLOCyP.cjs +16 -0
- package/components/{PlayerEmailVerification-DIJ00Em1.js → PlayerEmailVerification-Cpwx80XQ.js} +315 -317
- package/es2015/player-email-verification.cjs +1 -1
- package/es2015/player-email-verification.js +1 -1
- package/esnext/player-email-verification.js +1 -1
- package/package.json +1 -1
- package/components/PlayerEmailVerification-CC6x_teP.cjs +0 -16
package/components/{PlayerEmailVerification-64YgAa6l.js → PlayerEmailVerification-B8FDJz7U.js}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var ae = (e, t, r) => t in e ?
|
|
1
|
+
var Ot = Object.defineProperty, It = Object.defineProperties;
|
|
2
|
+
var wt = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var we = Object.getOwnPropertySymbols;
|
|
4
|
+
var $t = Object.prototype.hasOwnProperty, Lt = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var ae = (e, t, r) => t in e ? Ot(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, $e = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
$t.call(t, r) && ae(e, r, t[r]);
|
|
8
|
+
if (we)
|
|
9
|
+
for (var r of we(t))
|
|
10
|
+
Lt.call(t, r) && ae(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, Le = (e, t) => It(e, wt(t));
|
|
13
13
|
var v = (e, t, r) => (ae(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
-
var
|
|
14
|
+
var Me = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (u) => {
|
|
16
16
|
try {
|
|
17
17
|
h(r.next(u));
|
|
@@ -29,25 +29,25 @@ var Re = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function _() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function et(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Ce() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
38
|
function z(e) {
|
|
39
|
-
e.forEach(
|
|
39
|
+
e.forEach(et);
|
|
40
40
|
}
|
|
41
41
|
function Be(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function tt(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Mt(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function rt(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const n of t)
|
|
53
53
|
n(void 0);
|
|
@@ -56,25 +56,25 @@ function it(e, ...t) {
|
|
|
56
56
|
const r = e.subscribe(...t);
|
|
57
57
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
e.$$.on_destroy.push(
|
|
59
|
+
function Ct(e, t, r) {
|
|
60
|
+
e.$$.on_destroy.push(rt(t, r));
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function nt(e, t, r) {
|
|
63
63
|
e.insertBefore(t, r || null);
|
|
64
64
|
}
|
|
65
65
|
function Ae(e) {
|
|
66
66
|
e.parentNode && e.parentNode.removeChild(e);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function it(e) {
|
|
69
69
|
return document.createElement(e);
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function Rt(e, t, r) {
|
|
72
72
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function Ut(e) {
|
|
75
75
|
return Array.from(e.childNodes);
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function Gt(e) {
|
|
78
78
|
const t = {};
|
|
79
79
|
return e.childNodes.forEach(
|
|
80
80
|
/** @param {Element} node */
|
|
@@ -87,12 +87,12 @@ let Pe;
|
|
|
87
87
|
function k(e) {
|
|
88
88
|
Pe = e;
|
|
89
89
|
}
|
|
90
|
-
const I = [],
|
|
90
|
+
const I = [], Re = [];
|
|
91
91
|
let $ = [];
|
|
92
|
-
const
|
|
92
|
+
const Ue = [], Dt = /* @__PURE__ */ Promise.resolve();
|
|
93
93
|
let de = !1;
|
|
94
|
-
function
|
|
95
|
-
de || (de = !0,
|
|
94
|
+
function Ft() {
|
|
95
|
+
de || (de = !0, Dt.then(w));
|
|
96
96
|
}
|
|
97
97
|
function be(e) {
|
|
98
98
|
$.push(e);
|
|
@@ -107,53 +107,53 @@ function w() {
|
|
|
107
107
|
try {
|
|
108
108
|
for (; N < I.length; ) {
|
|
109
109
|
const t = I[N];
|
|
110
|
-
N++, k(t),
|
|
110
|
+
N++, k(t), jt(t.$$);
|
|
111
111
|
}
|
|
112
112
|
} catch (t) {
|
|
113
113
|
throw I.length = 0, N = 0, t;
|
|
114
114
|
}
|
|
115
|
-
for (k(null), I.length = 0, N = 0;
|
|
116
|
-
|
|
115
|
+
for (k(null), I.length = 0, N = 0; Re.length; )
|
|
116
|
+
Re.pop()();
|
|
117
117
|
for (let t = 0; t < $.length; t += 1) {
|
|
118
118
|
const r = $[t];
|
|
119
119
|
he.has(r) || (he.add(r), r());
|
|
120
120
|
}
|
|
121
121
|
$.length = 0;
|
|
122
122
|
} while (I.length);
|
|
123
|
-
for (;
|
|
124
|
-
|
|
123
|
+
for (; Ue.length; )
|
|
124
|
+
Ue.pop()();
|
|
125
125
|
de = !1, he.clear(), k(e);
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function jt(e) {
|
|
128
128
|
if (e.fragment !== null) {
|
|
129
129
|
e.update(), z(e.before_update);
|
|
130
130
|
const t = e.dirty;
|
|
131
131
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(be);
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function Vt(e) {
|
|
135
135
|
const t = [], r = [];
|
|
136
136
|
$.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), $ = t;
|
|
137
137
|
}
|
|
138
|
-
const
|
|
139
|
-
function
|
|
140
|
-
e && e.i && (
|
|
138
|
+
const kt = /* @__PURE__ */ new Set();
|
|
139
|
+
function Xt(e, t) {
|
|
140
|
+
e && e.i && (kt.delete(e), e.i(t));
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function Wt(e, t, r) {
|
|
143
143
|
const { fragment: n, after_update: i } = e.$$;
|
|
144
144
|
n && n.m(t, r), be(() => {
|
|
145
|
-
const s = e.$$.on_mount.map(
|
|
145
|
+
const s = e.$$.on_mount.map(et).filter(Be);
|
|
146
146
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : z(s), e.$$.on_mount = [];
|
|
147
147
|
}), i.forEach(be);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function zt(e, t) {
|
|
150
150
|
const r = e.$$;
|
|
151
|
-
r.fragment !== null && (
|
|
151
|
+
r.fragment !== null && (Vt(r.after_update), z(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
154
|
-
e.$$.dirty[0] === -1 && (I.push(e),
|
|
153
|
+
function Zt(e, t) {
|
|
154
|
+
e.$$.dirty[0] === -1 && (I.push(e), Ft(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function Qt(e, t, r, n, i, s, o = null, h = [-1]) {
|
|
157
157
|
const u = Pe;
|
|
158
158
|
k(e);
|
|
159
159
|
const a = e.$$ = {
|
|
@@ -163,7 +163,7 @@ function qt(e, t, r, n, i, s, o = null, h = [-1]) {
|
|
|
163
163
|
props: s,
|
|
164
164
|
update: _,
|
|
165
165
|
not_equal: i,
|
|
166
|
-
bound:
|
|
166
|
+
bound: Ce(),
|
|
167
167
|
// lifecycle
|
|
168
168
|
on_mount: [],
|
|
169
169
|
on_destroy: [],
|
|
@@ -172,7 +172,7 @@ function qt(e, t, r, n, i, s, o = null, h = [-1]) {
|
|
|
172
172
|
after_update: [],
|
|
173
173
|
context: new Map(t.context || (u ? u.$$.context : [])),
|
|
174
174
|
// everything else
|
|
175
|
-
callbacks:
|
|
175
|
+
callbacks: Ce(),
|
|
176
176
|
dirty: h,
|
|
177
177
|
skip_bound: !1,
|
|
178
178
|
root: t.target || u.$$.root
|
|
@@ -181,19 +181,19 @@ function qt(e, t, r, n, i, s, o = null, h = [-1]) {
|
|
|
181
181
|
let l = !1;
|
|
182
182
|
if (a.ctx = r ? r(e, t.props || {}, (f, c, ...b) => {
|
|
183
183
|
const g = b.length ? b[0] : c;
|
|
184
|
-
return a.ctx && i(a.ctx[f], a.ctx[f] = g) && (!a.skip_bound && a.bound[f] && a.bound[f](g), l &&
|
|
184
|
+
return a.ctx && i(a.ctx[f], a.ctx[f] = g) && (!a.skip_bound && a.bound[f] && a.bound[f](g), l && Zt(e, f)), c;
|
|
185
185
|
}) : [], a.update(), l = !0, z(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
186
186
|
if (t.hydrate) {
|
|
187
|
-
const f =
|
|
187
|
+
const f = Ut(t.target);
|
|
188
188
|
a.fragment && a.fragment.l(f), f.forEach(Ae);
|
|
189
189
|
} else
|
|
190
190
|
a.fragment && a.fragment.c();
|
|
191
|
-
t.intro &&
|
|
191
|
+
t.intro && Xt(e.$$.fragment), Wt(e, t.target, t.anchor), w();
|
|
192
192
|
}
|
|
193
193
|
k(u);
|
|
194
194
|
}
|
|
195
|
-
let
|
|
196
|
-
typeof HTMLElement == "function" && (
|
|
195
|
+
let st;
|
|
196
|
+
typeof HTMLElement == "function" && (st = class extends HTMLElement {
|
|
197
197
|
constructor(t, r, n) {
|
|
198
198
|
super();
|
|
199
199
|
/** The Svelte component constructor */
|
|
@@ -230,21 +230,21 @@ typeof HTMLElement == "function" && (at = class extends HTMLElement {
|
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
connectedCallback() {
|
|
233
|
-
return
|
|
233
|
+
return Me(this, null, function* () {
|
|
234
234
|
if (this.$$cn = !0, !this.$$c) {
|
|
235
235
|
let t = function(s) {
|
|
236
236
|
return () => {
|
|
237
237
|
let o;
|
|
238
238
|
return {
|
|
239
239
|
c: function() {
|
|
240
|
-
o =
|
|
240
|
+
o = it("slot"), s !== "default" && Rt(o, "name", s);
|
|
241
241
|
},
|
|
242
242
|
/**
|
|
243
243
|
* @param {HTMLElement} target
|
|
244
244
|
* @param {HTMLElement} [anchor]
|
|
245
245
|
*/
|
|
246
246
|
m: function(a, l) {
|
|
247
|
-
|
|
247
|
+
nt(a, o, l);
|
|
248
248
|
},
|
|
249
249
|
d: function(a) {
|
|
250
250
|
a && Ae(o);
|
|
@@ -254,7 +254,7 @@ typeof HTMLElement == "function" && (at = class extends HTMLElement {
|
|
|
254
254
|
};
|
|
255
255
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
256
256
|
return;
|
|
257
|
-
const r = {}, n =
|
|
257
|
+
const r = {}, n = Gt(this);
|
|
258
258
|
for (const s of this.$$s)
|
|
259
259
|
s in n && (r[s] = [t(s)]);
|
|
260
260
|
for (const s of this.attributes) {
|
|
@@ -265,7 +265,7 @@ typeof HTMLElement == "function" && (at = class extends HTMLElement {
|
|
|
265
265
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
266
266
|
this.$$c = new this.$$ctor({
|
|
267
267
|
target: this.shadowRoot || this,
|
|
268
|
-
props:
|
|
268
|
+
props: Le($e({}, this.$$d), {
|
|
269
269
|
$$slots: r,
|
|
270
270
|
$$scope: {
|
|
271
271
|
ctx: []
|
|
@@ -343,8 +343,8 @@ function q(e, t, r, n) {
|
|
|
343
343
|
return t;
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
|
-
function
|
|
347
|
-
let o = class extends
|
|
346
|
+
function Jt(e, t, r, n, i, s) {
|
|
347
|
+
let o = class extends st {
|
|
348
348
|
constructor() {
|
|
349
349
|
super(e, r, i), this.$$p_d = t;
|
|
350
350
|
}
|
|
@@ -374,7 +374,7 @@ function Yt(e, t, r, n, i, s) {
|
|
|
374
374
|
}), e.element = /** @type {any} */
|
|
375
375
|
o, o;
|
|
376
376
|
}
|
|
377
|
-
class
|
|
377
|
+
class qt {
|
|
378
378
|
constructor() {
|
|
379
379
|
/**
|
|
380
380
|
* ### PRIVATE API
|
|
@@ -395,7 +395,7 @@ class Kt {
|
|
|
395
395
|
}
|
|
396
396
|
/** @returns {void} */
|
|
397
397
|
$destroy() {
|
|
398
|
-
|
|
398
|
+
zt(this, 1), this.$destroy = _;
|
|
399
399
|
}
|
|
400
400
|
/**
|
|
401
401
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -417,13 +417,13 @@ class Kt {
|
|
|
417
417
|
* @returns {void}
|
|
418
418
|
*/
|
|
419
419
|
$set(t) {
|
|
420
|
-
this.$$set && !
|
|
420
|
+
this.$$set && !Mt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
const
|
|
424
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
423
|
+
const Yt = "4";
|
|
424
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Yt);
|
|
425
425
|
const O = [];
|
|
426
|
-
function
|
|
426
|
+
function Kt(e, t) {
|
|
427
427
|
return {
|
|
428
428
|
subscribe: re(e, t).subscribe
|
|
429
429
|
};
|
|
@@ -432,7 +432,7 @@ function re(e, t = _) {
|
|
|
432
432
|
let r;
|
|
433
433
|
const n = /* @__PURE__ */ new Set();
|
|
434
434
|
function i(h) {
|
|
435
|
-
if (
|
|
435
|
+
if (tt(e, h) && (e = h, r)) {
|
|
436
436
|
const u = !O.length;
|
|
437
437
|
for (const a of n)
|
|
438
438
|
a[1](), O.push(a, e);
|
|
@@ -459,7 +459,7 @@ function U(e, t, r) {
|
|
|
459
459
|
if (!i.every(Boolean))
|
|
460
460
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
461
461
|
const s = t.length < 2;
|
|
462
|
-
return
|
|
462
|
+
return Kt(r, (o, h) => {
|
|
463
463
|
let u = !1;
|
|
464
464
|
const a = [];
|
|
465
465
|
let l = 0, f = _;
|
|
@@ -470,7 +470,7 @@ function U(e, t, r) {
|
|
|
470
470
|
const g = t(n ? a[0] : a, o, h);
|
|
471
471
|
s ? o(g) : f = Be(g) ? g : _;
|
|
472
472
|
}, b = i.map(
|
|
473
|
-
(g, y) =>
|
|
473
|
+
(g, y) => rt(
|
|
474
474
|
g,
|
|
475
475
|
(T) => {
|
|
476
476
|
a[y] = T, l &= ~(1 << y), u && c();
|
|
@@ -485,70 +485,70 @@ function U(e, t, r) {
|
|
|
485
485
|
};
|
|
486
486
|
});
|
|
487
487
|
}
|
|
488
|
-
function
|
|
488
|
+
function er(e) {
|
|
489
489
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
490
490
|
}
|
|
491
|
-
var
|
|
492
|
-
return
|
|
491
|
+
var tr = function(t) {
|
|
492
|
+
return rr(t) && !nr(t);
|
|
493
493
|
};
|
|
494
|
-
function
|
|
494
|
+
function rr(e) {
|
|
495
495
|
return !!e && typeof e == "object";
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function nr(e) {
|
|
498
498
|
var t = Object.prototype.toString.call(e);
|
|
499
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
499
|
+
return t === "[object RegExp]" || t === "[object Date]" || or(e);
|
|
500
500
|
}
|
|
501
|
-
var
|
|
502
|
-
function
|
|
503
|
-
return e.$$typeof ===
|
|
501
|
+
var ir = typeof Symbol == "function" && Symbol.for, sr = ir ? Symbol.for("react.element") : 60103;
|
|
502
|
+
function or(e) {
|
|
503
|
+
return e.$$typeof === sr;
|
|
504
504
|
}
|
|
505
|
-
function
|
|
505
|
+
function ar(e) {
|
|
506
506
|
return Array.isArray(e) ? [] : {};
|
|
507
507
|
}
|
|
508
508
|
function X(e, t) {
|
|
509
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? L(
|
|
509
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? L(ar(e), e, t) : e;
|
|
510
510
|
}
|
|
511
|
-
function
|
|
511
|
+
function hr(e, t, r) {
|
|
512
512
|
return e.concat(t).map(function(n) {
|
|
513
513
|
return X(n, r);
|
|
514
514
|
});
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function ur(e, t) {
|
|
517
517
|
if (!t.customMerge)
|
|
518
518
|
return L;
|
|
519
519
|
var r = t.customMerge(e);
|
|
520
520
|
return typeof r == "function" ? r : L;
|
|
521
521
|
}
|
|
522
|
-
function
|
|
522
|
+
function lr(e) {
|
|
523
523
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
524
524
|
return Object.propertyIsEnumerable.call(e, t);
|
|
525
525
|
}) : [];
|
|
526
526
|
}
|
|
527
|
-
function
|
|
528
|
-
return Object.keys(e).concat(
|
|
527
|
+
function Ge(e) {
|
|
528
|
+
return Object.keys(e).concat(lr(e));
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function ot(e, t) {
|
|
531
531
|
try {
|
|
532
532
|
return t in e;
|
|
533
533
|
} catch (r) {
|
|
534
534
|
return !1;
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
|
-
function
|
|
538
|
-
return
|
|
537
|
+
function fr(e, t) {
|
|
538
|
+
return ot(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
539
539
|
}
|
|
540
|
-
function
|
|
540
|
+
function cr(e, t, r) {
|
|
541
541
|
var n = {};
|
|
542
|
-
return r.isMergeableObject(e) &&
|
|
542
|
+
return r.isMergeableObject(e) && Ge(e).forEach(function(i) {
|
|
543
543
|
n[i] = X(e[i], r);
|
|
544
|
-
}),
|
|
545
|
-
|
|
544
|
+
}), Ge(t).forEach(function(i) {
|
|
545
|
+
fr(e, i) || (ot(e, i) && r.isMergeableObject(t[i]) ? n[i] = ur(i, r)(e[i], t[i], r) : n[i] = X(t[i], r));
|
|
546
546
|
}), n;
|
|
547
547
|
}
|
|
548
548
|
function L(e, t, r) {
|
|
549
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
549
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || hr, r.isMergeableObject = r.isMergeableObject || tr, r.cloneUnlessOtherwiseSpecified = X;
|
|
550
550
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
551
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
551
|
+
return s ? n ? r.arrayMerge(e, t, r) : cr(e, t, r) : X(t, r);
|
|
552
552
|
}
|
|
553
553
|
L.all = function(t, r) {
|
|
554
554
|
if (!Array.isArray(t))
|
|
@@ -557,8 +557,8 @@ L.all = function(t, r) {
|
|
|
557
557
|
return L(n, i, r);
|
|
558
558
|
}, {});
|
|
559
559
|
};
|
|
560
|
-
var
|
|
561
|
-
const
|
|
560
|
+
var mr = L, pr = mr;
|
|
561
|
+
const dr = /* @__PURE__ */ er(pr);
|
|
562
562
|
/*! *****************************************************************************
|
|
563
563
|
Copyright (c) Microsoft Corporation.
|
|
564
564
|
|
|
@@ -600,7 +600,7 @@ var d = function() {
|
|
|
600
600
|
return t;
|
|
601
601
|
}, d.apply(this, arguments);
|
|
602
602
|
};
|
|
603
|
-
function
|
|
603
|
+
function br(e, t) {
|
|
604
604
|
var r = {};
|
|
605
605
|
for (var n in e)
|
|
606
606
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -616,55 +616,53 @@ function ue(e, t, r) {
|
|
|
616
616
|
return e.concat(s || t);
|
|
617
617
|
}
|
|
618
618
|
function le(e, t) {
|
|
619
|
-
var r = t && t.cache ? t.cache :
|
|
619
|
+
var r = t && t.cache ? t.cache : Hr, n = t && t.serializer ? t.serializer : vr, i = t && t.strategy ? t.strategy : xr;
|
|
620
620
|
return i(e, {
|
|
621
621
|
cache: r,
|
|
622
622
|
serializer: n
|
|
623
623
|
});
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function gr(e) {
|
|
626
626
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
627
627
|
}
|
|
628
|
-
function
|
|
629
|
-
var i =
|
|
628
|
+
function Er(e, t, r, n) {
|
|
629
|
+
var i = gr(n) ? n : r(n), s = t.get(i);
|
|
630
630
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
631
631
|
}
|
|
632
|
-
function
|
|
632
|
+
function at(e, t, r) {
|
|
633
633
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
634
634
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
635
635
|
}
|
|
636
|
-
function
|
|
636
|
+
function ht(e, t, r, n, i) {
|
|
637
637
|
return r.bind(t, e, n, i);
|
|
638
638
|
}
|
|
639
|
-
function
|
|
640
|
-
var r = e.length === 1 ?
|
|
641
|
-
return
|
|
642
|
-
}
|
|
643
|
-
function vr(e, t) {
|
|
644
|
-
return Ne(e, this, lt, t.cache.create(), t.serializer);
|
|
639
|
+
function xr(e, t) {
|
|
640
|
+
var r = e.length === 1 ? Er : at;
|
|
641
|
+
return ht(e, this, r, t.cache.create(), t.serializer);
|
|
645
642
|
}
|
|
646
|
-
function
|
|
647
|
-
return
|
|
643
|
+
function yr(e, t) {
|
|
644
|
+
return ht(e, this, at, t.cache.create(), t.serializer);
|
|
648
645
|
}
|
|
649
|
-
var
|
|
646
|
+
var vr = function() {
|
|
650
647
|
return JSON.stringify(arguments);
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
648
|
+
}, _r = (
|
|
649
|
+
/** @class */
|
|
650
|
+
function() {
|
|
651
|
+
function e() {
|
|
652
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
653
|
+
}
|
|
654
|
+
return e.prototype.get = function(t) {
|
|
655
|
+
return this.cache[t];
|
|
656
|
+
}, e.prototype.set = function(t, r) {
|
|
657
|
+
this.cache[t] = r;
|
|
658
|
+
}, e;
|
|
659
|
+
}()
|
|
660
|
+
), Hr = {
|
|
662
661
|
create: function() {
|
|
663
|
-
return new
|
|
662
|
+
return new _r();
|
|
664
663
|
}
|
|
665
664
|
}, fe = {
|
|
666
|
-
variadic:
|
|
667
|
-
monadic: _r
|
|
665
|
+
variadic: yr
|
|
668
666
|
}, m;
|
|
669
667
|
(function(e) {
|
|
670
668
|
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";
|
|
@@ -677,43 +675,43 @@ var M;
|
|
|
677
675
|
(function(e) {
|
|
678
676
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
679
677
|
})(M || (M = {}));
|
|
680
|
-
function
|
|
678
|
+
function De(e) {
|
|
681
679
|
return e.type === E.literal;
|
|
682
680
|
}
|
|
683
|
-
function
|
|
681
|
+
function Tr(e) {
|
|
684
682
|
return e.type === E.argument;
|
|
685
683
|
}
|
|
686
|
-
function
|
|
684
|
+
function ut(e) {
|
|
687
685
|
return e.type === E.number;
|
|
688
686
|
}
|
|
689
|
-
function
|
|
687
|
+
function lt(e) {
|
|
690
688
|
return e.type === E.date;
|
|
691
689
|
}
|
|
692
|
-
function
|
|
690
|
+
function ft(e) {
|
|
693
691
|
return e.type === E.time;
|
|
694
692
|
}
|
|
695
|
-
function
|
|
693
|
+
function ct(e) {
|
|
696
694
|
return e.type === E.select;
|
|
697
695
|
}
|
|
698
|
-
function
|
|
696
|
+
function mt(e) {
|
|
699
697
|
return e.type === E.plural;
|
|
700
698
|
}
|
|
701
|
-
function
|
|
699
|
+
function Sr(e) {
|
|
702
700
|
return e.type === E.pound;
|
|
703
701
|
}
|
|
704
|
-
function
|
|
702
|
+
function pt(e) {
|
|
705
703
|
return e.type === E.tag;
|
|
706
704
|
}
|
|
707
|
-
function
|
|
705
|
+
function dt(e) {
|
|
708
706
|
return !!(e && typeof e == "object" && e.type === M.number);
|
|
709
707
|
}
|
|
710
708
|
function Ee(e) {
|
|
711
709
|
return !!(e && typeof e == "object" && e.type === M.dateTime);
|
|
712
710
|
}
|
|
713
|
-
var
|
|
714
|
-
function
|
|
711
|
+
var bt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Br = /(?:[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;
|
|
712
|
+
function Ar(e) {
|
|
715
713
|
var t = {};
|
|
716
|
-
return e.replace(
|
|
714
|
+
return e.replace(Br, function(r) {
|
|
717
715
|
var n = r.length;
|
|
718
716
|
switch (r[0]) {
|
|
719
717
|
case "G":
|
|
@@ -802,11 +800,11 @@ function Pr(e) {
|
|
|
802
800
|
return "";
|
|
803
801
|
}), t;
|
|
804
802
|
}
|
|
805
|
-
var
|
|
806
|
-
function
|
|
803
|
+
var Pr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
804
|
+
function Nr(e) {
|
|
807
805
|
if (e.length === 0)
|
|
808
806
|
throw new Error("Number skeleton cannot be empty");
|
|
809
|
-
for (var t = e.split(
|
|
807
|
+
for (var t = e.split(Pr).filter(function(c) {
|
|
810
808
|
return c.length > 0;
|
|
811
809
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
812
810
|
var s = i[n], o = s.split("/");
|
|
@@ -821,17 +819,17 @@ function Or(e) {
|
|
|
821
819
|
}
|
|
822
820
|
return r;
|
|
823
821
|
}
|
|
824
|
-
function
|
|
822
|
+
function Or(e) {
|
|
825
823
|
return e.replace(/^(.*?)-/, "");
|
|
826
824
|
}
|
|
827
|
-
var
|
|
828
|
-
function
|
|
825
|
+
var Fe = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, gt = /^(@+)?(\+|#+)?[rs]?$/g, Ir = /(\*)(0+)|(#+)(0+)|(0+)/g, Et = /^(0+)$/;
|
|
826
|
+
function je(e) {
|
|
829
827
|
var t = {};
|
|
830
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
828
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(gt, function(r, n, i) {
|
|
831
829
|
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)), "";
|
|
832
830
|
}), t;
|
|
833
831
|
}
|
|
834
|
-
function
|
|
832
|
+
function xt(e) {
|
|
835
833
|
switch (e) {
|
|
836
834
|
case "sign-auto":
|
|
837
835
|
return {
|
|
@@ -871,7 +869,7 @@ function vt(e) {
|
|
|
871
869
|
};
|
|
872
870
|
}
|
|
873
871
|
}
|
|
874
|
-
function
|
|
872
|
+
function wr(e) {
|
|
875
873
|
var t;
|
|
876
874
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
877
875
|
notation: "engineering"
|
|
@@ -879,17 +877,17 @@ function $r(e) {
|
|
|
879
877
|
notation: "scientific"
|
|
880
878
|
}, e = e.slice(1)), t) {
|
|
881
879
|
var r = e.slice(0, 2);
|
|
882
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
880
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Et.test(e))
|
|
883
881
|
throw new Error("Malformed concise eng/scientific notation");
|
|
884
882
|
t.minimumIntegerDigits = e.length;
|
|
885
883
|
}
|
|
886
884
|
return t;
|
|
887
885
|
}
|
|
888
|
-
function
|
|
889
|
-
var t = {}, r =
|
|
886
|
+
function Ve(e) {
|
|
887
|
+
var t = {}, r = xt(e);
|
|
890
888
|
return r || t;
|
|
891
889
|
}
|
|
892
|
-
function
|
|
890
|
+
function $r(e) {
|
|
893
891
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
894
892
|
var i = n[r];
|
|
895
893
|
switch (i.stem) {
|
|
@@ -913,7 +911,7 @@ function Lr(e) {
|
|
|
913
911
|
continue;
|
|
914
912
|
case "measure-unit":
|
|
915
913
|
case "unit":
|
|
916
|
-
t.style = "unit", t.unit =
|
|
914
|
+
t.style = "unit", t.unit = Or(i.options[0]);
|
|
917
915
|
continue;
|
|
918
916
|
case "compact-short":
|
|
919
917
|
case "K":
|
|
@@ -925,12 +923,12 @@ function Lr(e) {
|
|
|
925
923
|
continue;
|
|
926
924
|
case "scientific":
|
|
927
925
|
t = d(d(d({}, t), { notation: "scientific" }), i.options.reduce(function(u, a) {
|
|
928
|
-
return d(d({}, u),
|
|
926
|
+
return d(d({}, u), Ve(a));
|
|
929
927
|
}, {}));
|
|
930
928
|
continue;
|
|
931
929
|
case "engineering":
|
|
932
930
|
t = d(d(d({}, t), { notation: "engineering" }), i.options.reduce(function(u, a) {
|
|
933
|
-
return d(d({}, u),
|
|
931
|
+
return d(d({}, u), Ve(a));
|
|
934
932
|
}, {}));
|
|
935
933
|
continue;
|
|
936
934
|
case "notation-simple":
|
|
@@ -975,7 +973,7 @@ function Lr(e) {
|
|
|
975
973
|
case "integer-width":
|
|
976
974
|
if (i.options.length > 1)
|
|
977
975
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
978
|
-
i.options[0].replace(
|
|
976
|
+
i.options[0].replace(Ir, function(u, a, l, f, c, b) {
|
|
979
977
|
if (a)
|
|
980
978
|
t.minimumIntegerDigits = l.length;
|
|
981
979
|
else {
|
|
@@ -988,27 +986,27 @@ function Lr(e) {
|
|
|
988
986
|
});
|
|
989
987
|
continue;
|
|
990
988
|
}
|
|
991
|
-
if (
|
|
989
|
+
if (Et.test(i.stem)) {
|
|
992
990
|
t.minimumIntegerDigits = i.stem.length;
|
|
993
991
|
continue;
|
|
994
992
|
}
|
|
995
|
-
if (
|
|
993
|
+
if (Fe.test(i.stem)) {
|
|
996
994
|
if (i.options.length > 1)
|
|
997
995
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
998
|
-
i.stem.replace(
|
|
996
|
+
i.stem.replace(Fe, function(u, a, l, f, c, b) {
|
|
999
997
|
return l === "*" ? t.minimumFractionDigits = a.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && b ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + b.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1000
998
|
});
|
|
1001
999
|
var s = i.options[0];
|
|
1002
|
-
s === "w" ? t = d(d({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = d(d({}, t),
|
|
1000
|
+
s === "w" ? t = d(d({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = d(d({}, t), je(s)));
|
|
1003
1001
|
continue;
|
|
1004
1002
|
}
|
|
1005
|
-
if (
|
|
1006
|
-
t = d(d({}, t),
|
|
1003
|
+
if (gt.test(i.stem)) {
|
|
1004
|
+
t = d(d({}, t), je(i.stem));
|
|
1007
1005
|
continue;
|
|
1008
1006
|
}
|
|
1009
|
-
var o =
|
|
1007
|
+
var o = xt(i.stem);
|
|
1010
1008
|
o && (t = d(d({}, t), o));
|
|
1011
|
-
var h =
|
|
1009
|
+
var h = wr(i.stem);
|
|
1012
1010
|
h && (t = d(d({}, t), h));
|
|
1013
1011
|
}
|
|
1014
1012
|
return t;
|
|
@@ -2428,13 +2426,13 @@ var J = {
|
|
|
2428
2426
|
"h"
|
|
2429
2427
|
]
|
|
2430
2428
|
};
|
|
2431
|
-
function
|
|
2429
|
+
function Lr(e, t) {
|
|
2432
2430
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2433
2431
|
var i = e.charAt(n);
|
|
2434
2432
|
if (i === "j") {
|
|
2435
2433
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2436
2434
|
s++, n++;
|
|
2437
|
-
var o = 1 + (s & 1), h = s < 2 ? 1 : 3 + (s >> 1), u = "a", a =
|
|
2435
|
+
var o = 1 + (s & 1), h = s < 2 ? 1 : 3 + (s >> 1), u = "a", a = Mr(t);
|
|
2438
2436
|
for ((a == "H" || a == "k") && (h = 0); h-- > 0; )
|
|
2439
2437
|
r += u;
|
|
2440
2438
|
for (; o-- > 0; )
|
|
@@ -2444,7 +2442,7 @@ function Mr(e, t) {
|
|
|
2444
2442
|
}
|
|
2445
2443
|
return r;
|
|
2446
2444
|
}
|
|
2447
|
-
function
|
|
2445
|
+
function Mr(e) {
|
|
2448
2446
|
var t = e.hourCycle;
|
|
2449
2447
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2450
2448
|
e.hourCycles && // @ts-ignore
|
|
@@ -2466,20 +2464,20 @@ function Cr(e) {
|
|
|
2466
2464
|
var i = J[n || ""] || J[r || ""] || J["".concat(r, "-001")] || J["001"];
|
|
2467
2465
|
return i[0];
|
|
2468
2466
|
}
|
|
2469
|
-
var ce,
|
|
2467
|
+
var ce, Cr = new RegExp("^".concat(bt.source, "*")), Rr = new RegExp("".concat(bt.source, "*$"));
|
|
2470
2468
|
function p(e, t) {
|
|
2471
2469
|
return { start: e, end: t };
|
|
2472
2470
|
}
|
|
2473
|
-
var
|
|
2471
|
+
var Ur = !!String.prototype.startsWith && "_a".startsWith("a", 1), Gr = !!String.fromCodePoint, Dr = !!Object.fromEntries, Fr = !!String.prototype.codePointAt, jr = !!String.prototype.trimStart, Vr = !!String.prototype.trimEnd, kr = !!Number.isSafeInteger, Xr = kr ? Number.isSafeInteger : function(e) {
|
|
2474
2472
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2475
2473
|
}, xe = !0;
|
|
2476
2474
|
try {
|
|
2477
|
-
var
|
|
2478
|
-
xe = ((ce =
|
|
2475
|
+
var Wr = vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2476
|
+
xe = ((ce = Wr.exec("a")) === null || ce === void 0 ? void 0 : ce[0]) === "a";
|
|
2479
2477
|
} catch (e) {
|
|
2480
2478
|
xe = !1;
|
|
2481
2479
|
}
|
|
2482
|
-
var
|
|
2480
|
+
var ke = Ur ? (
|
|
2483
2481
|
// Native
|
|
2484
2482
|
function(t, r, n) {
|
|
2485
2483
|
return t.startsWith(r, n);
|
|
@@ -2489,7 +2487,7 @@ var We = Gr ? (
|
|
|
2489
2487
|
function(t, r, n) {
|
|
2490
2488
|
return t.slice(n, n + r.length) === r;
|
|
2491
2489
|
}
|
|
2492
|
-
), ye =
|
|
2490
|
+
), ye = Gr ? String.fromCodePoint : (
|
|
2493
2491
|
// IE11
|
|
2494
2492
|
function() {
|
|
2495
2493
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2501,9 +2499,9 @@ var We = Gr ? (
|
|
|
2501
2499
|
}
|
|
2502
2500
|
return n;
|
|
2503
2501
|
}
|
|
2504
|
-
),
|
|
2502
|
+
), Xe = (
|
|
2505
2503
|
// native
|
|
2506
|
-
|
|
2504
|
+
Dr ? Object.fromEntries : (
|
|
2507
2505
|
// Ponyfill
|
|
2508
2506
|
function(t) {
|
|
2509
2507
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2513,7 +2511,7 @@ var We = Gr ? (
|
|
|
2513
2511
|
return r;
|
|
2514
2512
|
}
|
|
2515
2513
|
)
|
|
2516
|
-
),
|
|
2514
|
+
), yt = Fr ? (
|
|
2517
2515
|
// Native
|
|
2518
2516
|
function(t, r) {
|
|
2519
2517
|
return t.codePointAt(r);
|
|
@@ -2527,7 +2525,7 @@ var We = Gr ? (
|
|
|
2527
2525
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2528
2526
|
}
|
|
2529
2527
|
}
|
|
2530
|
-
),
|
|
2528
|
+
), zr = jr ? (
|
|
2531
2529
|
// Native
|
|
2532
2530
|
function(t) {
|
|
2533
2531
|
return t.trimStart();
|
|
@@ -2535,9 +2533,9 @@ var We = Gr ? (
|
|
|
2535
2533
|
) : (
|
|
2536
2534
|
// Ponyfill
|
|
2537
2535
|
function(t) {
|
|
2538
|
-
return t.replace(
|
|
2536
|
+
return t.replace(Cr, "");
|
|
2539
2537
|
}
|
|
2540
|
-
),
|
|
2538
|
+
), Zr = Vr ? (
|
|
2541
2539
|
// Native
|
|
2542
2540
|
function(t) {
|
|
2543
2541
|
return t.trimEnd();
|
|
@@ -2545,32 +2543,32 @@ var We = Gr ? (
|
|
|
2545
2543
|
) : (
|
|
2546
2544
|
// Ponyfill
|
|
2547
2545
|
function(t) {
|
|
2548
|
-
return t.replace(
|
|
2546
|
+
return t.replace(Rr, "");
|
|
2549
2547
|
}
|
|
2550
2548
|
);
|
|
2551
|
-
function
|
|
2549
|
+
function vt(e, t) {
|
|
2552
2550
|
return new RegExp(e, t);
|
|
2553
2551
|
}
|
|
2554
2552
|
var ve;
|
|
2555
2553
|
if (xe) {
|
|
2556
|
-
var
|
|
2554
|
+
var We = vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2557
2555
|
ve = function(t, r) {
|
|
2558
2556
|
var n;
|
|
2559
|
-
|
|
2560
|
-
var i =
|
|
2557
|
+
We.lastIndex = r;
|
|
2558
|
+
var i = We.exec(t);
|
|
2561
2559
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2562
2560
|
};
|
|
2563
2561
|
} else
|
|
2564
2562
|
ve = function(t, r) {
|
|
2565
2563
|
for (var n = []; ; ) {
|
|
2566
|
-
var i =
|
|
2567
|
-
if (i === void 0 ||
|
|
2564
|
+
var i = yt(t, r);
|
|
2565
|
+
if (i === void 0 || _t(i) || Yr(i))
|
|
2568
2566
|
break;
|
|
2569
2567
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2570
2568
|
}
|
|
2571
2569
|
return ye.apply(void 0, n);
|
|
2572
2570
|
};
|
|
2573
|
-
var
|
|
2571
|
+
var Qr = (
|
|
2574
2572
|
/** @class */
|
|
2575
2573
|
function() {
|
|
2576
2574
|
function e(t, r) {
|
|
@@ -2652,7 +2650,7 @@ var Jr = (
|
|
|
2652
2650
|
return this.error(m.INVALID_TAG, p(n, this.clonePosition()));
|
|
2653
2651
|
}, e.prototype.parseTagName = function() {
|
|
2654
2652
|
var t = this.offset();
|
|
2655
|
-
for (this.bump(); !this.isEOF() &&
|
|
2653
|
+
for (this.bump(); !this.isEOF() && qr(this.char()); )
|
|
2656
2654
|
this.bump();
|
|
2657
2655
|
return this.message.slice(t, this.offset());
|
|
2658
2656
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2681,7 +2679,7 @@ var Jr = (
|
|
|
2681
2679
|
};
|
|
2682
2680
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2683
2681
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2684
|
-
!
|
|
2682
|
+
!Jr(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2685
2683
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2686
2684
|
if (this.isEOF() || this.char() !== 39)
|
|
2687
2685
|
return null;
|
|
@@ -2768,7 +2766,7 @@ var Jr = (
|
|
|
2768
2766
|
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2769
2767
|
if (f.err)
|
|
2770
2768
|
return f;
|
|
2771
|
-
var c =
|
|
2769
|
+
var c = Zr(f.val);
|
|
2772
2770
|
if (c.length === 0)
|
|
2773
2771
|
return this.error(m.EXPECT_ARGUMENT_STYLE, p(this.clonePosition(), this.clonePosition()));
|
|
2774
2772
|
var b = p(l, this.clonePosition());
|
|
@@ -2778,8 +2776,8 @@ var Jr = (
|
|
|
2778
2776
|
if (g.err)
|
|
2779
2777
|
return g;
|
|
2780
2778
|
var y = p(i, this.clonePosition());
|
|
2781
|
-
if (a &&
|
|
2782
|
-
var T =
|
|
2779
|
+
if (a && ke(a == null ? void 0 : a.style, "::", 0)) {
|
|
2780
|
+
var T = zr(a.style.slice(2));
|
|
2783
2781
|
if (h === "number") {
|
|
2784
2782
|
var f = this.parseNumberSkeletonFromString(T, a.styleLocation);
|
|
2785
2783
|
return f.err ? f : {
|
|
@@ -2790,12 +2788,12 @@ var Jr = (
|
|
|
2790
2788
|
if (T.length === 0)
|
|
2791
2789
|
return this.error(m.EXPECT_DATE_TIME_SKELETON, y);
|
|
2792
2790
|
var F = T;
|
|
2793
|
-
this.locale && (F =
|
|
2791
|
+
this.locale && (F = Lr(T, this.locale));
|
|
2794
2792
|
var c = {
|
|
2795
2793
|
type: M.dateTime,
|
|
2796
2794
|
pattern: F,
|
|
2797
2795
|
location: a.styleLocation,
|
|
2798
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2796
|
+
parsedOptions: this.shouldParseSkeletons ? Ar(F) : {}
|
|
2799
2797
|
}, P = h === "date" ? E.date : E.time;
|
|
2800
2798
|
return {
|
|
2801
2799
|
val: { type: P, value: n, location: y, style: c },
|
|
@@ -2836,23 +2834,23 @@ var Jr = (
|
|
|
2836
2834
|
var g = this.tryParseArgumentClose(i);
|
|
2837
2835
|
if (g.err)
|
|
2838
2836
|
return g;
|
|
2839
|
-
var
|
|
2837
|
+
var Ie = p(i, this.clonePosition());
|
|
2840
2838
|
return h === "select" ? {
|
|
2841
2839
|
val: {
|
|
2842
2840
|
type: E.select,
|
|
2843
2841
|
value: n,
|
|
2844
|
-
options:
|
|
2845
|
-
location:
|
|
2842
|
+
options: Xe(Q.val),
|
|
2843
|
+
location: Ie
|
|
2846
2844
|
},
|
|
2847
2845
|
err: null
|
|
2848
2846
|
} : {
|
|
2849
2847
|
val: {
|
|
2850
2848
|
type: E.plural,
|
|
2851
2849
|
value: n,
|
|
2852
|
-
options:
|
|
2850
|
+
options: Xe(Q.val),
|
|
2853
2851
|
offset: B,
|
|
2854
2852
|
pluralType: h === "plural" ? "cardinal" : "ordinal",
|
|
2855
|
-
location:
|
|
2853
|
+
location: Ie
|
|
2856
2854
|
},
|
|
2857
2855
|
err: null
|
|
2858
2856
|
};
|
|
@@ -2900,7 +2898,7 @@ var Jr = (
|
|
|
2900
2898
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2901
2899
|
var n = [];
|
|
2902
2900
|
try {
|
|
2903
|
-
n =
|
|
2901
|
+
n = Nr(t);
|
|
2904
2902
|
} catch (i) {
|
|
2905
2903
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
|
2906
2904
|
}
|
|
@@ -2909,7 +2907,7 @@ var Jr = (
|
|
|
2909
2907
|
type: M.number,
|
|
2910
2908
|
tokens: n,
|
|
2911
2909
|
location: r,
|
|
2912
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2910
|
+
parsedOptions: this.shouldParseSkeletons ? $r(n) : {}
|
|
2913
2911
|
},
|
|
2914
2912
|
err: null
|
|
2915
2913
|
};
|
|
@@ -2957,7 +2955,7 @@ var Jr = (
|
|
|
2957
2955
|
break;
|
|
2958
2956
|
}
|
|
2959
2957
|
var u = p(i, this.clonePosition());
|
|
2960
|
-
return s ? (o *= n,
|
|
2958
|
+
return s ? (o *= n, Xr(o) ? { val: o, err: null } : this.error(r, u)) : this.error(t, u);
|
|
2961
2959
|
}, e.prototype.offset = function() {
|
|
2962
2960
|
return this.position.offset;
|
|
2963
2961
|
}, e.prototype.isEOF = function() {
|
|
@@ -2972,7 +2970,7 @@ var Jr = (
|
|
|
2972
2970
|
var t = this.position.offset;
|
|
2973
2971
|
if (t >= this.message.length)
|
|
2974
2972
|
throw Error("out of bound");
|
|
2975
|
-
var r =
|
|
2973
|
+
var r = yt(this.message, t);
|
|
2976
2974
|
if (r === void 0)
|
|
2977
2975
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
2978
2976
|
return r;
|
|
@@ -2991,7 +2989,7 @@ var Jr = (
|
|
|
2991
2989
|
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);
|
|
2992
2990
|
}
|
|
2993
2991
|
}, e.prototype.bumpIf = function(t) {
|
|
2994
|
-
if (
|
|
2992
|
+
if (ke(this.message, t, this.offset())) {
|
|
2995
2993
|
for (var r = 0; r < t.length; r++)
|
|
2996
2994
|
this.bump();
|
|
2997
2995
|
return !0;
|
|
@@ -3013,7 +3011,7 @@ var Jr = (
|
|
|
3013
3011
|
break;
|
|
3014
3012
|
}
|
|
3015
3013
|
}, e.prototype.bumpSpace = function() {
|
|
3016
|
-
for (; !this.isEOF() &&
|
|
3014
|
+
for (; !this.isEOF() && _t(this.char()); )
|
|
3017
3015
|
this.bump();
|
|
3018
3016
|
}, e.prototype.peek = function() {
|
|
3019
3017
|
if (this.isEOF())
|
|
@@ -3026,30 +3024,30 @@ var Jr = (
|
|
|
3026
3024
|
function _e(e) {
|
|
3027
3025
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3028
3026
|
}
|
|
3029
|
-
function
|
|
3027
|
+
function Jr(e) {
|
|
3030
3028
|
return _e(e) || e === 47;
|
|
3031
3029
|
}
|
|
3032
|
-
function
|
|
3030
|
+
function qr(e) {
|
|
3033
3031
|
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;
|
|
3034
3032
|
}
|
|
3035
|
-
function
|
|
3033
|
+
function _t(e) {
|
|
3036
3034
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3037
3035
|
}
|
|
3038
|
-
function
|
|
3036
|
+
function Yr(e) {
|
|
3039
3037
|
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;
|
|
3040
3038
|
}
|
|
3041
3039
|
function He(e) {
|
|
3042
3040
|
e.forEach(function(t) {
|
|
3043
|
-
if (delete t.location,
|
|
3041
|
+
if (delete t.location, ct(t) || mt(t))
|
|
3044
3042
|
for (var r in t.options)
|
|
3045
3043
|
delete t.options[r].location, He(t.options[r].value);
|
|
3046
3044
|
else
|
|
3047
|
-
|
|
3045
|
+
ut(t) && dt(t.style) || (lt(t) || ft(t)) && Ee(t.style) ? delete t.style.location : pt(t) && He(t.children);
|
|
3048
3046
|
});
|
|
3049
3047
|
}
|
|
3050
|
-
function
|
|
3048
|
+
function Kr(e, t) {
|
|
3051
3049
|
t === void 0 && (t = {}), t = d({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3052
|
-
var r = new
|
|
3050
|
+
var r = new Qr(e, t).parse();
|
|
3053
3051
|
if (r.err) {
|
|
3054
3052
|
var n = SyntaxError(m[r.err.kind]);
|
|
3055
3053
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
@@ -3072,7 +3070,7 @@ var ie = (
|
|
|
3072
3070
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3073
3071
|
}, t;
|
|
3074
3072
|
}(Error)
|
|
3075
|
-
),
|
|
3073
|
+
), ze = (
|
|
3076
3074
|
/** @class */
|
|
3077
3075
|
function(e) {
|
|
3078
3076
|
ne(t, e);
|
|
@@ -3081,7 +3079,7 @@ var ie = (
|
|
|
3081
3079
|
}
|
|
3082
3080
|
return t;
|
|
3083
3081
|
}(ie)
|
|
3084
|
-
),
|
|
3082
|
+
), en = (
|
|
3085
3083
|
/** @class */
|
|
3086
3084
|
function(e) {
|
|
3087
3085
|
ne(t, e);
|
|
@@ -3090,7 +3088,7 @@ var ie = (
|
|
|
3090
3088
|
}
|
|
3091
3089
|
return t;
|
|
3092
3090
|
}(ie)
|
|
3093
|
-
),
|
|
3091
|
+
), tn = (
|
|
3094
3092
|
/** @class */
|
|
3095
3093
|
function(e) {
|
|
3096
3094
|
ne(t, e);
|
|
@@ -3103,17 +3101,17 @@ var ie = (
|
|
|
3103
3101
|
(function(e) {
|
|
3104
3102
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3105
3103
|
})(x || (x = {}));
|
|
3106
|
-
function
|
|
3104
|
+
function rn(e) {
|
|
3107
3105
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3108
3106
|
var n = t[t.length - 1];
|
|
3109
3107
|
return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
|
|
3110
3108
|
}, []);
|
|
3111
3109
|
}
|
|
3112
|
-
function
|
|
3110
|
+
function nn(e) {
|
|
3113
3111
|
return typeof e == "function";
|
|
3114
3112
|
}
|
|
3115
3113
|
function Y(e, t, r, n, i, s, o) {
|
|
3116
|
-
if (e.length === 1 &&
|
|
3114
|
+
if (e.length === 1 && De(e[0]))
|
|
3117
3115
|
return [
|
|
3118
3116
|
{
|
|
3119
3117
|
type: x.literal,
|
|
@@ -3122,14 +3120,14 @@ function Y(e, t, r, n, i, s, o) {
|
|
|
3122
3120
|
];
|
|
3123
3121
|
for (var h = [], u = 0, a = e; u < a.length; u++) {
|
|
3124
3122
|
var l = a[u];
|
|
3125
|
-
if (
|
|
3123
|
+
if (De(l)) {
|
|
3126
3124
|
h.push({
|
|
3127
3125
|
type: x.literal,
|
|
3128
3126
|
value: l.value
|
|
3129
3127
|
});
|
|
3130
3128
|
continue;
|
|
3131
3129
|
}
|
|
3132
|
-
if (
|
|
3130
|
+
if (Sr(l)) {
|
|
3133
3131
|
typeof s == "number" && h.push({
|
|
3134
3132
|
type: x.literal,
|
|
3135
3133
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3138,16 +3136,16 @@ function Y(e, t, r, n, i, s, o) {
|
|
|
3138
3136
|
}
|
|
3139
3137
|
var f = l.value;
|
|
3140
3138
|
if (!(i && f in i))
|
|
3141
|
-
throw new
|
|
3139
|
+
throw new tn(f, o);
|
|
3142
3140
|
var c = i[f];
|
|
3143
|
-
if (
|
|
3141
|
+
if (Tr(l)) {
|
|
3144
3142
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), h.push({
|
|
3145
3143
|
type: typeof c == "string" ? x.literal : x.object,
|
|
3146
3144
|
value: c
|
|
3147
3145
|
});
|
|
3148
3146
|
continue;
|
|
3149
3147
|
}
|
|
3150
|
-
if (
|
|
3148
|
+
if (lt(l)) {
|
|
3151
3149
|
var b = typeof l.style == "string" ? n.date[l.style] : Ee(l.style) ? l.style.parsedOptions : void 0;
|
|
3152
3150
|
h.push({
|
|
3153
3151
|
type: x.literal,
|
|
@@ -3155,7 +3153,7 @@ function Y(e, t, r, n, i, s, o) {
|
|
|
3155
3153
|
});
|
|
3156
3154
|
continue;
|
|
3157
3155
|
}
|
|
3158
|
-
if (
|
|
3156
|
+
if (ft(l)) {
|
|
3159
3157
|
var b = typeof l.style == "string" ? n.time[l.style] : Ee(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3160
3158
|
h.push({
|
|
3161
3159
|
type: x.literal,
|
|
@@ -3163,18 +3161,18 @@ function Y(e, t, r, n, i, s, o) {
|
|
|
3163
3161
|
});
|
|
3164
3162
|
continue;
|
|
3165
3163
|
}
|
|
3166
|
-
if (
|
|
3167
|
-
var b = typeof l.style == "string" ? n.number[l.style] :
|
|
3164
|
+
if (ut(l)) {
|
|
3165
|
+
var b = typeof l.style == "string" ? n.number[l.style] : dt(l.style) ? l.style.parsedOptions : void 0;
|
|
3168
3166
|
b && b.scale && (c = c * (b.scale || 1)), h.push({
|
|
3169
3167
|
type: x.literal,
|
|
3170
3168
|
value: r.getNumberFormat(t, b).format(c)
|
|
3171
3169
|
});
|
|
3172
3170
|
continue;
|
|
3173
3171
|
}
|
|
3174
|
-
if (
|
|
3172
|
+
if (pt(l)) {
|
|
3175
3173
|
var g = l.children, y = l.value, T = i[y];
|
|
3176
|
-
if (!
|
|
3177
|
-
throw new
|
|
3174
|
+
if (!nn(T))
|
|
3175
|
+
throw new en(y, "function", o);
|
|
3178
3176
|
var F = Y(g, t, r, n, i, s), P = T(F.map(function(B) {
|
|
3179
3177
|
return B.value;
|
|
3180
3178
|
}));
|
|
@@ -3185,14 +3183,14 @@ function Y(e, t, r, n, i, s, o) {
|
|
|
3185
3183
|
};
|
|
3186
3184
|
}));
|
|
3187
3185
|
}
|
|
3188
|
-
if (
|
|
3186
|
+
if (ct(l)) {
|
|
3189
3187
|
var H = l.options[c] || l.options.other;
|
|
3190
3188
|
if (!H)
|
|
3191
|
-
throw new
|
|
3189
|
+
throw new ze(l.value, c, Object.keys(l.options), o);
|
|
3192
3190
|
h.push.apply(h, Y(H.value, t, r, n, i));
|
|
3193
3191
|
continue;
|
|
3194
3192
|
}
|
|
3195
|
-
if (
|
|
3193
|
+
if (mt(l)) {
|
|
3196
3194
|
var H = l.options["=".concat(c)];
|
|
3197
3195
|
if (!H) {
|
|
3198
3196
|
if (!Intl.PluralRules)
|
|
@@ -3203,21 +3201,21 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3203
3201
|
H = l.options[j] || l.options.other;
|
|
3204
3202
|
}
|
|
3205
3203
|
if (!H)
|
|
3206
|
-
throw new
|
|
3204
|
+
throw new ze(l.value, c, Object.keys(l.options), o);
|
|
3207
3205
|
h.push.apply(h, Y(H.value, t, r, n, i, c - (l.offset || 0)));
|
|
3208
3206
|
continue;
|
|
3209
3207
|
}
|
|
3210
3208
|
}
|
|
3211
|
-
return
|
|
3209
|
+
return rn(h);
|
|
3212
3210
|
}
|
|
3213
|
-
function
|
|
3211
|
+
function sn(e, t) {
|
|
3214
3212
|
return t ? d(d(d({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3215
3213
|
return r[n] = d(d({}, e[n]), t[n] || {}), r;
|
|
3216
3214
|
}, {})) : e;
|
|
3217
3215
|
}
|
|
3218
|
-
function
|
|
3216
|
+
function on(e, t) {
|
|
3219
3217
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3220
|
-
return r[n] =
|
|
3218
|
+
return r[n] = sn(e[n], t[n]), r;
|
|
3221
3219
|
}, d({}, e)) : e;
|
|
3222
3220
|
}
|
|
3223
3221
|
function me(e) {
|
|
@@ -3234,7 +3232,7 @@ function me(e) {
|
|
|
3234
3232
|
}
|
|
3235
3233
|
};
|
|
3236
3234
|
}
|
|
3237
|
-
function
|
|
3235
|
+
function an(e) {
|
|
3238
3236
|
return e === void 0 && (e = {
|
|
3239
3237
|
number: {},
|
|
3240
3238
|
dateTime: {},
|
|
@@ -3266,7 +3264,7 @@ function hn(e) {
|
|
|
3266
3264
|
})
|
|
3267
3265
|
};
|
|
3268
3266
|
}
|
|
3269
|
-
var
|
|
3267
|
+
var hn = (
|
|
3270
3268
|
/** @class */
|
|
3271
3269
|
function() {
|
|
3272
3270
|
function e(t, r, n, i) {
|
|
@@ -3298,13 +3296,13 @@ var un = (
|
|
|
3298
3296
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3299
3297
|
var o = i || {};
|
|
3300
3298
|
o.formatters;
|
|
3301
|
-
var h =
|
|
3299
|
+
var h = br(o, ["formatters"]);
|
|
3302
3300
|
this.ast = e.__parse(t, d(d({}, h), { locale: this.resolvedLocale }));
|
|
3303
3301
|
} else
|
|
3304
3302
|
this.ast = t;
|
|
3305
3303
|
if (!Array.isArray(this.ast))
|
|
3306
3304
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3307
|
-
this.formats =
|
|
3305
|
+
this.formats = on(e.formats, n), this.formatters = i && i.formatters || an(this.formatterCache);
|
|
3308
3306
|
}
|
|
3309
3307
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3310
3308
|
get: function() {
|
|
@@ -3317,7 +3315,7 @@ var un = (
|
|
|
3317
3315
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3318
3316
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3319
3317
|
}
|
|
3320
|
-
}, e.__parse =
|
|
3318
|
+
}, e.__parse = Kr, e.formats = {
|
|
3321
3319
|
number: {
|
|
3322
3320
|
integer: {
|
|
3323
3321
|
maximumFractionDigits: 0
|
|
@@ -3378,7 +3376,7 @@ var un = (
|
|
|
3378
3376
|
}, e;
|
|
3379
3377
|
}()
|
|
3380
3378
|
);
|
|
3381
|
-
function
|
|
3379
|
+
function un(e, t) {
|
|
3382
3380
|
if (t == null)
|
|
3383
3381
|
return;
|
|
3384
3382
|
if (t in e)
|
|
@@ -3399,60 +3397,60 @@ function ln(e, t) {
|
|
|
3399
3397
|
n = void 0;
|
|
3400
3398
|
return n;
|
|
3401
3399
|
}
|
|
3402
|
-
const S = {},
|
|
3400
|
+
const S = {}, ln = (e, t, r) => r && (t in S || (S[t] = {}), e in S[t] || (S[t][e] = r), r), Ht = (e, t) => {
|
|
3403
3401
|
if (t == null)
|
|
3404
3402
|
return;
|
|
3405
3403
|
if (t in S && e in S[t])
|
|
3406
3404
|
return S[t][e];
|
|
3407
3405
|
const r = se(t);
|
|
3408
3406
|
for (let n = 0; n < r.length; n++) {
|
|
3409
|
-
const i = r[n], s =
|
|
3407
|
+
const i = r[n], s = cn(i, e);
|
|
3410
3408
|
if (s)
|
|
3411
|
-
return
|
|
3409
|
+
return ln(e, t, s);
|
|
3412
3410
|
}
|
|
3413
3411
|
};
|
|
3414
|
-
let
|
|
3412
|
+
let Ne;
|
|
3415
3413
|
const Z = re({});
|
|
3416
|
-
function
|
|
3417
|
-
return
|
|
3414
|
+
function fn(e) {
|
|
3415
|
+
return Ne[e] || null;
|
|
3418
3416
|
}
|
|
3419
|
-
function
|
|
3420
|
-
return e in
|
|
3417
|
+
function Tt(e) {
|
|
3418
|
+
return e in Ne;
|
|
3421
3419
|
}
|
|
3422
|
-
function
|
|
3423
|
-
if (!
|
|
3420
|
+
function cn(e, t) {
|
|
3421
|
+
if (!Tt(e))
|
|
3424
3422
|
return null;
|
|
3425
|
-
const r =
|
|
3426
|
-
return
|
|
3423
|
+
const r = fn(e);
|
|
3424
|
+
return un(r, t);
|
|
3427
3425
|
}
|
|
3428
|
-
function
|
|
3426
|
+
function mn(e) {
|
|
3429
3427
|
if (e == null)
|
|
3430
3428
|
return;
|
|
3431
3429
|
const t = se(e);
|
|
3432
3430
|
for (let r = 0; r < t.length; r++) {
|
|
3433
3431
|
const n = t[r];
|
|
3434
|
-
if (
|
|
3432
|
+
if (Tt(n))
|
|
3435
3433
|
return n;
|
|
3436
3434
|
}
|
|
3437
3435
|
}
|
|
3438
|
-
function
|
|
3439
|
-
delete S[e], Z.update((r) => (r[e] =
|
|
3436
|
+
function St(e, ...t) {
|
|
3437
|
+
delete S[e], Z.update((r) => (r[e] = dr.all([r[e] || {}, ...t]), r));
|
|
3440
3438
|
}
|
|
3441
3439
|
U(
|
|
3442
3440
|
[Z],
|
|
3443
3441
|
([e]) => Object.keys(e)
|
|
3444
3442
|
);
|
|
3445
|
-
Z.subscribe((e) =>
|
|
3443
|
+
Z.subscribe((e) => Ne = e);
|
|
3446
3444
|
const K = {};
|
|
3447
|
-
function
|
|
3445
|
+
function pn(e, t) {
|
|
3448
3446
|
K[e].delete(t), K[e].size === 0 && delete K[e];
|
|
3449
3447
|
}
|
|
3450
|
-
function
|
|
3448
|
+
function Bt(e) {
|
|
3451
3449
|
return K[e];
|
|
3452
3450
|
}
|
|
3453
|
-
function
|
|
3451
|
+
function dn(e) {
|
|
3454
3452
|
return se(e).map((t) => {
|
|
3455
|
-
const r =
|
|
3453
|
+
const r = Bt(t);
|
|
3456
3454
|
return [t, r ? [...r] : []];
|
|
3457
3455
|
}).filter(([, t]) => t.length > 0);
|
|
3458
3456
|
}
|
|
@@ -3460,31 +3458,31 @@ function Te(e) {
|
|
|
3460
3458
|
return e == null ? !1 : se(e).some(
|
|
3461
3459
|
(t) => {
|
|
3462
3460
|
var r;
|
|
3463
|
-
return (r =
|
|
3461
|
+
return (r = Bt(t)) == null ? void 0 : r.size;
|
|
3464
3462
|
}
|
|
3465
3463
|
);
|
|
3466
3464
|
}
|
|
3467
|
-
function
|
|
3465
|
+
function bn(e, t) {
|
|
3468
3466
|
return Promise.all(
|
|
3469
|
-
t.map((n) => (
|
|
3470
|
-
).then((n) =>
|
|
3467
|
+
t.map((n) => (pn(e, n), n().then((i) => i.default || i)))
|
|
3468
|
+
).then((n) => St(e, ...n));
|
|
3471
3469
|
}
|
|
3472
3470
|
const V = {};
|
|
3473
|
-
function
|
|
3471
|
+
function At(e) {
|
|
3474
3472
|
if (!Te(e))
|
|
3475
3473
|
return e in V ? V[e] : Promise.resolve();
|
|
3476
|
-
const t =
|
|
3474
|
+
const t = dn(e);
|
|
3477
3475
|
return V[e] = Promise.all(
|
|
3478
3476
|
t.map(
|
|
3479
|
-
([r, n]) =>
|
|
3477
|
+
([r, n]) => bn(r, n)
|
|
3480
3478
|
)
|
|
3481
3479
|
).then(() => {
|
|
3482
3480
|
if (Te(e))
|
|
3483
|
-
return
|
|
3481
|
+
return At(e);
|
|
3484
3482
|
delete V[e];
|
|
3485
3483
|
}), V[e];
|
|
3486
3484
|
}
|
|
3487
|
-
const
|
|
3485
|
+
const gn = {
|
|
3488
3486
|
number: {
|
|
3489
3487
|
scientific: { notation: "scientific" },
|
|
3490
3488
|
engineering: { notation: "engineering" },
|
|
@@ -3513,34 +3511,34 @@ const En = {
|
|
|
3513
3511
|
timeZoneName: "short"
|
|
3514
3512
|
}
|
|
3515
3513
|
}
|
|
3516
|
-
},
|
|
3514
|
+
}, En = {
|
|
3517
3515
|
fallbackLocale: null,
|
|
3518
3516
|
loadingDelay: 200,
|
|
3519
|
-
formats:
|
|
3517
|
+
formats: gn,
|
|
3520
3518
|
warnOnMissingMessages: !0,
|
|
3521
3519
|
handleMissingMessage: void 0,
|
|
3522
3520
|
ignoreTag: !0
|
|
3523
|
-
},
|
|
3521
|
+
}, xn = En;
|
|
3524
3522
|
function R() {
|
|
3525
|
-
return
|
|
3523
|
+
return xn;
|
|
3526
3524
|
}
|
|
3527
3525
|
const pe = re(!1);
|
|
3528
|
-
var
|
|
3526
|
+
var yn = Object.defineProperty, vn = Object.defineProperties, _n = Object.getOwnPropertyDescriptors, Ze = Object.getOwnPropertySymbols, Hn = Object.prototype.hasOwnProperty, Tn = Object.prototype.propertyIsEnumerable, Qe = (e, t, r) => t in e ? yn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Sn = (e, t) => {
|
|
3529
3527
|
for (var r in t || (t = {}))
|
|
3530
|
-
|
|
3531
|
-
if (
|
|
3532
|
-
for (var r of
|
|
3533
|
-
|
|
3528
|
+
Hn.call(t, r) && Qe(e, r, t[r]);
|
|
3529
|
+
if (Ze)
|
|
3530
|
+
for (var r of Ze(t))
|
|
3531
|
+
Tn.call(t, r) && Qe(e, r, t[r]);
|
|
3534
3532
|
return e;
|
|
3535
|
-
},
|
|
3533
|
+
}, Bn = (e, t) => vn(e, _n(t));
|
|
3536
3534
|
let Se;
|
|
3537
3535
|
const ee = re(null);
|
|
3538
|
-
function
|
|
3536
|
+
function Je(e) {
|
|
3539
3537
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3540
3538
|
}
|
|
3541
3539
|
function se(e, t = R().fallbackLocale) {
|
|
3542
|
-
const r =
|
|
3543
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3540
|
+
const r = Je(e);
|
|
3541
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Je(t)])] : r;
|
|
3544
3542
|
}
|
|
3545
3543
|
function A() {
|
|
3546
3544
|
return Se != null ? Se : void 0;
|
|
@@ -3548,22 +3546,22 @@ function A() {
|
|
|
3548
3546
|
ee.subscribe((e) => {
|
|
3549
3547
|
Se = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3550
3548
|
});
|
|
3551
|
-
const
|
|
3552
|
-
if (e &&
|
|
3549
|
+
const An = (e) => {
|
|
3550
|
+
if (e && mn(e) && Te(e)) {
|
|
3553
3551
|
const { loadingDelay: t } = R();
|
|
3554
3552
|
let r;
|
|
3555
3553
|
return typeof window != "undefined" && A() != null && t ? r = window.setTimeout(
|
|
3556
3554
|
() => pe.set(!0),
|
|
3557
3555
|
t
|
|
3558
|
-
) : pe.set(!0),
|
|
3556
|
+
) : pe.set(!0), At(e).then(() => {
|
|
3559
3557
|
ee.set(e);
|
|
3560
3558
|
}).finally(() => {
|
|
3561
3559
|
clearTimeout(r), pe.set(!1);
|
|
3562
3560
|
});
|
|
3563
3561
|
}
|
|
3564
3562
|
return ee.set(e);
|
|
3565
|
-
}, G =
|
|
3566
|
-
set:
|
|
3563
|
+
}, G = Bn(Sn({}, ee), {
|
|
3564
|
+
set: An
|
|
3567
3565
|
}), oe = (e) => {
|
|
3568
3566
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3569
3567
|
return (n) => {
|
|
@@ -3571,20 +3569,20 @@ const Pn = (e) => {
|
|
|
3571
3569
|
return i in t ? t[i] : t[i] = e(n);
|
|
3572
3570
|
};
|
|
3573
3571
|
};
|
|
3574
|
-
var
|
|
3572
|
+
var Pn = Object.defineProperty, te = Object.getOwnPropertySymbols, Pt = Object.prototype.hasOwnProperty, Nt = Object.prototype.propertyIsEnumerable, qe = (e, t, r) => t in e ? Pn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Oe = (e, t) => {
|
|
3575
3573
|
for (var r in t || (t = {}))
|
|
3576
|
-
|
|
3574
|
+
Pt.call(t, r) && qe(e, r, t[r]);
|
|
3577
3575
|
if (te)
|
|
3578
3576
|
for (var r of te(t))
|
|
3579
|
-
|
|
3577
|
+
Nt.call(t, r) && qe(e, r, t[r]);
|
|
3580
3578
|
return e;
|
|
3581
3579
|
}, D = (e, t) => {
|
|
3582
3580
|
var r = {};
|
|
3583
3581
|
for (var n in e)
|
|
3584
|
-
|
|
3582
|
+
Pt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3585
3583
|
if (e != null && te)
|
|
3586
3584
|
for (var n of te(e))
|
|
3587
|
-
t.indexOf(n) < 0 &&
|
|
3585
|
+
t.indexOf(n) < 0 && Nt.call(e, n) && (r[n] = e[n]);
|
|
3588
3586
|
return r;
|
|
3589
3587
|
};
|
|
3590
3588
|
const W = (e, t) => {
|
|
@@ -3592,21 +3590,21 @@ const W = (e, t) => {
|
|
|
3592
3590
|
if (e in r && t in r[e])
|
|
3593
3591
|
return r[e][t];
|
|
3594
3592
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3595
|
-
},
|
|
3593
|
+
}, Nn = oe(
|
|
3596
3594
|
(e) => {
|
|
3597
3595
|
var t = e, { locale: r, format: n } = t, i = D(t, ["locale", "format"]);
|
|
3598
3596
|
if (r == null)
|
|
3599
3597
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3600
3598
|
return n && (i = W("number", n)), new Intl.NumberFormat(r, i);
|
|
3601
3599
|
}
|
|
3602
|
-
),
|
|
3600
|
+
), On = oe(
|
|
3603
3601
|
(e) => {
|
|
3604
3602
|
var t = e, { locale: r, format: n } = t, i = D(t, ["locale", "format"]);
|
|
3605
3603
|
if (r == null)
|
|
3606
3604
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3607
3605
|
return n ? i = W("date", n) : Object.keys(i).length === 0 && (i = W("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3608
3606
|
}
|
|
3609
|
-
),
|
|
3607
|
+
), In = oe(
|
|
3610
3608
|
(e) => {
|
|
3611
3609
|
var t = e, { locale: r, format: n } = t, i = D(t, ["locale", "format"]);
|
|
3612
3610
|
if (r == null)
|
|
@@ -3615,33 +3613,33 @@ const W = (e, t) => {
|
|
|
3615
3613
|
);
|
|
3616
3614
|
return n ? i = W("time", n) : Object.keys(i).length === 0 && (i = W("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3617
3615
|
}
|
|
3618
|
-
),
|
|
3616
|
+
), wn = (e = {}) => {
|
|
3619
3617
|
var t = e, {
|
|
3620
3618
|
locale: r = A()
|
|
3621
3619
|
} = t, n = D(t, [
|
|
3622
3620
|
"locale"
|
|
3623
3621
|
]);
|
|
3624
|
-
return
|
|
3625
|
-
},
|
|
3622
|
+
return Nn(Oe({ locale: r }, n));
|
|
3623
|
+
}, $n = (e = {}) => {
|
|
3626
3624
|
var t = e, {
|
|
3627
3625
|
locale: r = A()
|
|
3628
3626
|
} = t, n = D(t, [
|
|
3629
3627
|
"locale"
|
|
3630
3628
|
]);
|
|
3631
|
-
return
|
|
3632
|
-
},
|
|
3629
|
+
return On(Oe({ locale: r }, n));
|
|
3630
|
+
}, Ln = (e = {}) => {
|
|
3633
3631
|
var t = e, {
|
|
3634
3632
|
locale: r = A()
|
|
3635
3633
|
} = t, n = D(t, [
|
|
3636
3634
|
"locale"
|
|
3637
3635
|
]);
|
|
3638
|
-
return
|
|
3639
|
-
},
|
|
3636
|
+
return In(Oe({ locale: r }, n));
|
|
3637
|
+
}, Mn = oe(
|
|
3640
3638
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3641
|
-
(e, t = A()) => new
|
|
3639
|
+
(e, t = A()) => new hn(e, t, R().formats, {
|
|
3642
3640
|
ignoreTag: R().ignoreTag
|
|
3643
3641
|
})
|
|
3644
|
-
),
|
|
3642
|
+
), Cn = (e, t = {}) => {
|
|
3645
3643
|
var r, n, i, s;
|
|
3646
3644
|
let o = t;
|
|
3647
3645
|
typeof e == "object" && (o = e, e = o.id);
|
|
@@ -3654,7 +3652,7 @@ const W = (e, t) => {
|
|
|
3654
3652
|
throw new Error(
|
|
3655
3653
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3656
3654
|
);
|
|
3657
|
-
let l =
|
|
3655
|
+
let l = Ht(e, u);
|
|
3658
3656
|
if (!l)
|
|
3659
3657
|
l = (s = (i = (n = (r = R()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
|
|
3660
3658
|
else if (typeof l != "string")
|
|
@@ -3665,7 +3663,7 @@ const W = (e, t) => {
|
|
|
3665
3663
|
return l;
|
|
3666
3664
|
let f = l;
|
|
3667
3665
|
try {
|
|
3668
|
-
f =
|
|
3666
|
+
f = Mn(l, u).format(h);
|
|
3669
3667
|
} catch (c) {
|
|
3670
3668
|
c instanceof Error && console.warn(
|
|
3671
3669
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3673,18 +3671,18 @@ const W = (e, t) => {
|
|
|
3673
3671
|
);
|
|
3674
3672
|
}
|
|
3675
3673
|
return f;
|
|
3676
|
-
},
|
|
3674
|
+
}, Rn = (e, t) => Ln(t).format(e), Un = (e, t) => $n(t).format(e), Gn = (e, t) => wn(t).format(e), Dn = (e, t = A()) => Ht(e, t), Fn = U([G, Z], () => Cn);
|
|
3675
|
+
U([G], () => Rn);
|
|
3677
3676
|
U([G], () => Un);
|
|
3678
3677
|
U([G], () => Gn);
|
|
3679
|
-
U([G], () => Dn);
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
At(e, t);
|
|
3678
|
+
U([G, Z], () => Dn);
|
|
3679
|
+
function Ye(e, t) {
|
|
3680
|
+
St(e, t);
|
|
3683
3681
|
}
|
|
3684
|
-
function
|
|
3682
|
+
function jn(e) {
|
|
3685
3683
|
G.set(e);
|
|
3686
3684
|
}
|
|
3687
|
-
const
|
|
3685
|
+
const Ke = {
|
|
3688
3686
|
en: {
|
|
3689
3687
|
errServerUnavailable: "Server unavailable",
|
|
3690
3688
|
errEmailVerification: "Sorry! Your e-mail could not be verified. Please try again",
|
|
@@ -3698,14 +3696,14 @@ const tt = {
|
|
|
3698
3696
|
msgEmailVerificationSuccess: "Succes! E-mailul tău a fost verificat cu succes"
|
|
3699
3697
|
}
|
|
3700
3698
|
};
|
|
3701
|
-
function
|
|
3699
|
+
function Vn(e) {
|
|
3702
3700
|
let t;
|
|
3703
3701
|
return {
|
|
3704
3702
|
c() {
|
|
3705
|
-
t =
|
|
3703
|
+
t = it("div");
|
|
3706
3704
|
},
|
|
3707
3705
|
m(r, n) {
|
|
3708
|
-
|
|
3706
|
+
nt(r, t, n);
|
|
3709
3707
|
},
|
|
3710
3708
|
p: _,
|
|
3711
3709
|
i: _,
|
|
@@ -3715,24 +3713,24 @@ function kn(e) {
|
|
|
3715
3713
|
}
|
|
3716
3714
|
};
|
|
3717
3715
|
}
|
|
3718
|
-
function
|
|
3716
|
+
function kn(e, t, r) {
|
|
3719
3717
|
let n;
|
|
3720
|
-
|
|
3718
|
+
Ct(e, Fn, (f) => r(4, n = f));
|
|
3721
3719
|
let { lang: i = "en" } = t, { endpoint: s = "" } = t, { key: o = "" } = t, { translationurl: h = "" } = t;
|
|
3722
3720
|
const u = () => {
|
|
3723
3721
|
fetch(h).then((c) => c.json()).then((c) => {
|
|
3724
3722
|
Object.keys(c).forEach((b) => {
|
|
3725
|
-
|
|
3723
|
+
Ye(b, c[b]);
|
|
3726
3724
|
});
|
|
3727
3725
|
}).catch((c) => {
|
|
3728
3726
|
console.log(c);
|
|
3729
3727
|
});
|
|
3730
3728
|
};
|
|
3731
|
-
Object.keys(
|
|
3732
|
-
|
|
3729
|
+
Object.keys(Ke).forEach((f) => {
|
|
3730
|
+
Ye(f, Ke[f]);
|
|
3733
3731
|
});
|
|
3734
3732
|
const a = () => {
|
|
3735
|
-
|
|
3733
|
+
jn(i);
|
|
3736
3734
|
}, l = () => {
|
|
3737
3735
|
let f = new URL(`${s}/v1/player/activatePlayerByHashKey`), b = {
|
|
3738
3736
|
method: "POST",
|
|
@@ -3791,9 +3789,9 @@ function Xn(e, t, r) {
|
|
|
3791
3789
|
6 && s && o && l();
|
|
3792
3790
|
}, [i, s, o, h];
|
|
3793
3791
|
}
|
|
3794
|
-
class
|
|
3792
|
+
class Xn extends qt {
|
|
3795
3793
|
constructor(t) {
|
|
3796
|
-
super(),
|
|
3794
|
+
super(), Qt(this, t, kn, Vn, tt, {
|
|
3797
3795
|
lang: 0,
|
|
3798
3796
|
endpoint: 1,
|
|
3799
3797
|
key: 2,
|
|
@@ -3825,7 +3823,7 @@ class Wn extends Kt {
|
|
|
3825
3823
|
this.$$set({ translationurl: t }), w();
|
|
3826
3824
|
}
|
|
3827
3825
|
}
|
|
3828
|
-
|
|
3826
|
+
Jt(Xn, { lang: {}, endpoint: {}, key: {}, translationurl: {} }, [], [], !0);
|
|
3829
3827
|
export {
|
|
3830
|
-
|
|
3828
|
+
Xn as default
|
|
3831
3829
|
};
|