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