@everymatrix/general-player-sms-verification-form 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/{GeneralPlayerSmsVerificationForm-CXRbl8PW.js → GeneralPlayerSmsVerificationForm-BtKwdIq5.js} +388 -363
- package/components/{GeneralPlayerSmsVerificationForm-BEOcOn2l.js → GeneralPlayerSmsVerificationForm-Dz11YZCi.js} +398 -373
- package/components/GeneralPlayerSmsVerificationForm-S0IP27V6.cjs +16 -0
- package/es2015/general-player-sms-verification-form.cjs +1 -1
- package/es2015/general-player-sms-verification-form.js +1 -1
- package/esnext/general-player-sms-verification-form.js +1 -1
- package/package.json +1 -1
- package/components/GeneralPlayerSmsVerificationForm-LLMx2Emm.cjs +0 -3
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
function U() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function vt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function qe() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
9
|
function ne(e) {
|
|
10
|
-
e.forEach(
|
|
10
|
+
e.forEach(vt);
|
|
11
11
|
}
|
|
12
12
|
function ze(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function yt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function zt(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function Et(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const n of t)
|
|
24
24
|
n(void 0);
|
|
@@ -27,21 +27,22 @@ function vt(e, ...t) {
|
|
|
27
27
|
const r = e.subscribe(...t);
|
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
e.$$.on_destroy.push(
|
|
30
|
+
function Wt(e, t, r) {
|
|
31
|
+
e.$$.on_destroy.push(Et(t, r));
|
|
32
32
|
}
|
|
33
33
|
function E(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const n =
|
|
36
|
+
function Zt(e, t, r) {
|
|
37
|
+
const n = Jt(e);
|
|
38
38
|
if (!n.getElementById(t)) {
|
|
39
|
-
const i =
|
|
40
|
-
i.id = t, i.textContent = r,
|
|
39
|
+
const i = M("style");
|
|
40
|
+
i.id = t, i.textContent = r, Qt(n, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
if (!e)
|
|
43
|
+
function Jt(e) {
|
|
44
|
+
if (!e)
|
|
45
|
+
return document;
|
|
45
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
46
47
|
return t && /** @type {ShadowRoot} */
|
|
47
48
|
t.host ? (
|
|
@@ -49,7 +50,7 @@ function Wt(e) {
|
|
|
49
50
|
t
|
|
50
51
|
) : e.ownerDocument;
|
|
51
52
|
}
|
|
52
|
-
function
|
|
53
|
+
function Qt(e, t) {
|
|
53
54
|
return E(
|
|
54
55
|
/** @type {Document} */
|
|
55
56
|
e.head || e,
|
|
@@ -62,14 +63,14 @@ function W(e, t, r) {
|
|
|
62
63
|
function k(e) {
|
|
63
64
|
e.parentNode && e.parentNode.removeChild(e);
|
|
64
65
|
}
|
|
65
|
-
function
|
|
66
|
+
function M(e) {
|
|
66
67
|
return document.createElement(e);
|
|
67
68
|
}
|
|
68
|
-
function
|
|
69
|
+
function O(e) {
|
|
69
70
|
return document.createTextNode(e);
|
|
70
71
|
}
|
|
71
72
|
function X() {
|
|
72
|
-
return
|
|
73
|
+
return O(" ");
|
|
73
74
|
}
|
|
74
75
|
function pe(e, t, r, n) {
|
|
75
76
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
@@ -77,17 +78,17 @@ function pe(e, t, r, n) {
|
|
|
77
78
|
function A(e, t, r) {
|
|
78
79
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
79
80
|
}
|
|
80
|
-
function
|
|
81
|
+
function qt(e) {
|
|
81
82
|
return Array.from(e.childNodes);
|
|
82
83
|
}
|
|
83
84
|
function F(e, t) {
|
|
84
85
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
85
86
|
t);
|
|
86
87
|
}
|
|
87
|
-
function
|
|
88
|
+
function Ye(e, t) {
|
|
88
89
|
e.value = t ?? "";
|
|
89
90
|
}
|
|
90
|
-
function
|
|
91
|
+
function Yt(e) {
|
|
91
92
|
const t = {};
|
|
92
93
|
return e.childNodes.forEach(
|
|
93
94
|
/** @param {Element} node */
|
|
@@ -100,19 +101,20 @@ let fe;
|
|
|
100
101
|
function ce(e) {
|
|
101
102
|
fe = e;
|
|
102
103
|
}
|
|
103
|
-
function
|
|
104
|
-
if (!fe)
|
|
104
|
+
function Kt() {
|
|
105
|
+
if (!fe)
|
|
106
|
+
throw new Error("Function called outside component initialization");
|
|
105
107
|
return fe;
|
|
106
108
|
}
|
|
107
|
-
function
|
|
108
|
-
|
|
109
|
+
function er(e) {
|
|
110
|
+
Kt().$$.on_mount.push(e);
|
|
109
111
|
}
|
|
110
|
-
const q = [],
|
|
112
|
+
const q = [], Oe = [];
|
|
111
113
|
let Y = [];
|
|
112
|
-
const
|
|
114
|
+
const Ke = [], tr = /* @__PURE__ */ Promise.resolve();
|
|
113
115
|
let Le = !1;
|
|
114
|
-
function
|
|
115
|
-
Le || (Le = !0,
|
|
116
|
+
function rr() {
|
|
117
|
+
Le || (Le = !0, tr.then($));
|
|
116
118
|
}
|
|
117
119
|
function Re(e) {
|
|
118
120
|
Y.push(e);
|
|
@@ -127,52 +129,53 @@ function $() {
|
|
|
127
129
|
try {
|
|
128
130
|
for (; J < q.length; ) {
|
|
129
131
|
const t = q[J];
|
|
130
|
-
J++, ce(t),
|
|
132
|
+
J++, ce(t), nr(t.$$);
|
|
131
133
|
}
|
|
132
134
|
} catch (t) {
|
|
133
135
|
throw q.length = 0, J = 0, t;
|
|
134
136
|
}
|
|
135
|
-
for (ce(null), q.length = 0, J = 0;
|
|
137
|
+
for (ce(null), q.length = 0, J = 0; Oe.length; )
|
|
138
|
+
Oe.pop()();
|
|
136
139
|
for (let t = 0; t < Y.length; t += 1) {
|
|
137
140
|
const r = Y[t];
|
|
138
141
|
Be.has(r) || (Be.add(r), r());
|
|
139
142
|
}
|
|
140
143
|
Y.length = 0;
|
|
141
144
|
} while (q.length);
|
|
142
|
-
for (;
|
|
143
|
-
|
|
145
|
+
for (; Ke.length; )
|
|
146
|
+
Ke.pop()();
|
|
144
147
|
Le = !1, Be.clear(), ce(e);
|
|
145
148
|
}
|
|
146
|
-
function
|
|
149
|
+
function nr(e) {
|
|
147
150
|
if (e.fragment !== null) {
|
|
148
151
|
e.update(), ne(e.before_update);
|
|
149
152
|
const t = e.dirty;
|
|
150
153
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Re);
|
|
151
154
|
}
|
|
152
155
|
}
|
|
153
|
-
function
|
|
156
|
+
function ir(e) {
|
|
154
157
|
const t = [], r = [];
|
|
155
158
|
Y.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Y = t;
|
|
156
159
|
}
|
|
157
|
-
const
|
|
158
|
-
function
|
|
159
|
-
e && e.i && (
|
|
160
|
+
const or = /* @__PURE__ */ new Set();
|
|
161
|
+
function sr(e, t) {
|
|
162
|
+
e && e.i && (or.delete(e), e.i(t));
|
|
160
163
|
}
|
|
161
|
-
function
|
|
164
|
+
function ar(e, t, r) {
|
|
162
165
|
const { fragment: n, after_update: i } = e.$$;
|
|
163
166
|
n && n.m(t, r), Re(() => {
|
|
164
|
-
const o = e.$$.on_mount.map(
|
|
167
|
+
const o = e.$$.on_mount.map(vt).filter(ze);
|
|
165
168
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ne(o), e.$$.on_mount = [];
|
|
166
169
|
}), i.forEach(Re);
|
|
167
170
|
}
|
|
168
|
-
function
|
|
171
|
+
function ur(e, t) {
|
|
169
172
|
const r = e.$$;
|
|
170
|
-
r.fragment !== null && (
|
|
173
|
+
r.fragment !== null && (ir(r.after_update), ne(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
171
174
|
}
|
|
172
|
-
function
|
|
173
|
-
e.$$.dirty[0] === -1 && (q.push(e),
|
|
175
|
+
function lr(e, t) {
|
|
176
|
+
e.$$.dirty[0] === -1 && (q.push(e), rr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
174
177
|
}
|
|
175
|
-
function
|
|
178
|
+
function hr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
176
179
|
const h = fe;
|
|
177
180
|
ce(e);
|
|
178
181
|
const u = e.$$ = {
|
|
@@ -182,7 +185,7 @@ function ur(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
182
185
|
props: o,
|
|
183
186
|
update: U,
|
|
184
187
|
not_equal: i,
|
|
185
|
-
bound:
|
|
188
|
+
bound: qe(),
|
|
186
189
|
// lifecycle
|
|
187
190
|
on_mount: [],
|
|
188
191
|
on_destroy: [],
|
|
@@ -191,7 +194,7 @@ function ur(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
191
194
|
after_update: [],
|
|
192
195
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
193
196
|
// everything else
|
|
194
|
-
callbacks:
|
|
197
|
+
callbacks: qe(),
|
|
195
198
|
dirty: s,
|
|
196
199
|
skip_bound: !1,
|
|
197
200
|
root: t.target || h.$$.root
|
|
@@ -200,19 +203,19 @@ function ur(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
200
203
|
let l = !1;
|
|
201
204
|
if (u.ctx = r ? r(e, t.props || {}, (c, d, ...g) => {
|
|
202
205
|
const y = g.length ? g[0] : d;
|
|
203
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), l &&
|
|
206
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), l && lr(e, c)), d;
|
|
204
207
|
}) : [], u.update(), l = !0, ne(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
205
208
|
if (t.hydrate) {
|
|
206
|
-
const c =
|
|
209
|
+
const c = qt(t.target);
|
|
207
210
|
u.fragment && u.fragment.l(c), c.forEach(k);
|
|
208
211
|
} else
|
|
209
212
|
u.fragment && u.fragment.c();
|
|
210
|
-
t.intro &&
|
|
213
|
+
t.intro && sr(e.$$.fragment), ar(e, t.target, t.anchor), $();
|
|
211
214
|
}
|
|
212
215
|
ce(h);
|
|
213
216
|
}
|
|
214
|
-
let
|
|
215
|
-
typeof HTMLElement == "function" && (
|
|
217
|
+
let xt;
|
|
218
|
+
typeof HTMLElement == "function" && (xt = class extends HTMLElement {
|
|
216
219
|
/** The Svelte component constructor */
|
|
217
220
|
$$ctor;
|
|
218
221
|
/** Slots */
|
|
@@ -254,7 +257,7 @@ typeof HTMLElement == "function" && (yt = class extends HTMLElement {
|
|
|
254
257
|
let o;
|
|
255
258
|
return {
|
|
256
259
|
c: function() {
|
|
257
|
-
o =
|
|
260
|
+
o = M("slot"), i !== "default" && A(o, "name", i);
|
|
258
261
|
},
|
|
259
262
|
/**
|
|
260
263
|
* @param {HTMLElement} target
|
|
@@ -271,7 +274,7 @@ typeof HTMLElement == "function" && (yt = class extends HTMLElement {
|
|
|
271
274
|
};
|
|
272
275
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
273
276
|
return;
|
|
274
|
-
const t = {}, r =
|
|
277
|
+
const t = {}, r = Yt(this);
|
|
275
278
|
for (const i of this.$$s)
|
|
276
279
|
i in r && (t[i] = [e(i)]);
|
|
277
280
|
for (const i of this.attributes) {
|
|
@@ -358,8 +361,8 @@ function ge(e, t, r, n) {
|
|
|
358
361
|
return t;
|
|
359
362
|
}
|
|
360
363
|
}
|
|
361
|
-
function
|
|
362
|
-
let a = class extends
|
|
364
|
+
function cr(e, t, r, n, i, o) {
|
|
365
|
+
let a = class extends xt {
|
|
363
366
|
constructor() {
|
|
364
367
|
super(e, r, i), this.$$p_d = t;
|
|
365
368
|
}
|
|
@@ -387,7 +390,7 @@ function lr(e, t, r, n, i, o) {
|
|
|
387
390
|
}), e.element = /** @type {any} */
|
|
388
391
|
a, a;
|
|
389
392
|
}
|
|
390
|
-
class
|
|
393
|
+
class fr {
|
|
391
394
|
/**
|
|
392
395
|
* ### PRIVATE API
|
|
393
396
|
*
|
|
@@ -406,7 +409,7 @@ class hr {
|
|
|
406
409
|
$$set = void 0;
|
|
407
410
|
/** @returns {void} */
|
|
408
411
|
$destroy() {
|
|
409
|
-
|
|
412
|
+
ur(this, 1), this.$destroy = U;
|
|
410
413
|
}
|
|
411
414
|
/**
|
|
412
415
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -428,13 +431,13 @@ class hr {
|
|
|
428
431
|
* @returns {void}
|
|
429
432
|
*/
|
|
430
433
|
$set(t) {
|
|
431
|
-
this.$$set && !
|
|
434
|
+
this.$$set && !zt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
432
435
|
}
|
|
433
436
|
}
|
|
434
|
-
const
|
|
435
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
437
|
+
const dr = "4";
|
|
438
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(dr);
|
|
436
439
|
const Q = [];
|
|
437
|
-
function
|
|
440
|
+
function mr(e, t) {
|
|
438
441
|
return {
|
|
439
442
|
subscribe: _e(e, t).subscribe
|
|
440
443
|
};
|
|
@@ -443,7 +446,7 @@ function _e(e, t = U) {
|
|
|
443
446
|
let r;
|
|
444
447
|
const n = /* @__PURE__ */ new Set();
|
|
445
448
|
function i(s) {
|
|
446
|
-
if (
|
|
449
|
+
if (yt(e, s) && (e = s, r)) {
|
|
447
450
|
const h = !Q.length;
|
|
448
451
|
for (const u of n)
|
|
449
452
|
u[1](), Q.push(u, e);
|
|
@@ -470,7 +473,7 @@ function ie(e, t, r) {
|
|
|
470
473
|
if (!i.every(Boolean))
|
|
471
474
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
472
475
|
const o = t.length < 2;
|
|
473
|
-
return
|
|
476
|
+
return mr(r, (a, s) => {
|
|
474
477
|
let h = !1;
|
|
475
478
|
const u = [];
|
|
476
479
|
let l = 0, c = U;
|
|
@@ -481,7 +484,7 @@ function ie(e, t, r) {
|
|
|
481
484
|
const y = t(n ? u[0] : u, a, s);
|
|
482
485
|
o ? a(y) : c = ze(y) ? y : U;
|
|
483
486
|
}, g = i.map(
|
|
484
|
-
(y, _) =>
|
|
487
|
+
(y, _) => Et(
|
|
485
488
|
y,
|
|
486
489
|
(T) => {
|
|
487
490
|
u[_] = T, l &= ~(1 << _), h && d();
|
|
@@ -496,70 +499,70 @@ function ie(e, t, r) {
|
|
|
496
499
|
};
|
|
497
500
|
});
|
|
498
501
|
}
|
|
499
|
-
function
|
|
502
|
+
function pr(e) {
|
|
500
503
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
501
504
|
}
|
|
502
|
-
var
|
|
503
|
-
return
|
|
505
|
+
var br = function(t) {
|
|
506
|
+
return gr(t) && !vr(t);
|
|
504
507
|
};
|
|
505
|
-
function
|
|
508
|
+
function gr(e) {
|
|
506
509
|
return !!e && typeof e == "object";
|
|
507
510
|
}
|
|
508
|
-
function
|
|
511
|
+
function vr(e) {
|
|
509
512
|
var t = Object.prototype.toString.call(e);
|
|
510
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
513
|
+
return t === "[object RegExp]" || t === "[object Date]" || xr(e);
|
|
511
514
|
}
|
|
512
|
-
var
|
|
513
|
-
function
|
|
514
|
-
return e.$$typeof ===
|
|
515
|
+
var yr = typeof Symbol == "function" && Symbol.for, Er = yr ? Symbol.for("react.element") : 60103;
|
|
516
|
+
function xr(e) {
|
|
517
|
+
return e.$$typeof === Er;
|
|
515
518
|
}
|
|
516
|
-
function
|
|
519
|
+
function _r(e) {
|
|
517
520
|
return Array.isArray(e) ? [] : {};
|
|
518
521
|
}
|
|
519
522
|
function de(e, t) {
|
|
520
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? K(
|
|
523
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? K(_r(e), e, t) : e;
|
|
521
524
|
}
|
|
522
|
-
function
|
|
525
|
+
function Sr(e, t, r) {
|
|
523
526
|
return e.concat(t).map(function(n) {
|
|
524
527
|
return de(n, r);
|
|
525
528
|
});
|
|
526
529
|
}
|
|
527
|
-
function
|
|
530
|
+
function Tr(e, t) {
|
|
528
531
|
if (!t.customMerge)
|
|
529
532
|
return K;
|
|
530
533
|
var r = t.customMerge(e);
|
|
531
534
|
return typeof r == "function" ? r : K;
|
|
532
535
|
}
|
|
533
|
-
function
|
|
536
|
+
function Hr(e) {
|
|
534
537
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
535
538
|
return Object.propertyIsEnumerable.call(e, t);
|
|
536
539
|
}) : [];
|
|
537
540
|
}
|
|
538
|
-
function
|
|
539
|
-
return Object.keys(e).concat(
|
|
541
|
+
function et(e) {
|
|
542
|
+
return Object.keys(e).concat(Hr(e));
|
|
540
543
|
}
|
|
541
|
-
function
|
|
544
|
+
function _t(e, t) {
|
|
542
545
|
try {
|
|
543
546
|
return t in e;
|
|
544
547
|
} catch {
|
|
545
548
|
return !1;
|
|
546
549
|
}
|
|
547
550
|
}
|
|
548
|
-
function
|
|
549
|
-
return
|
|
551
|
+
function Ar(e, t) {
|
|
552
|
+
return _t(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
550
553
|
}
|
|
551
|
-
function
|
|
554
|
+
function Br(e, t, r) {
|
|
552
555
|
var n = {};
|
|
553
|
-
return r.isMergeableObject(e) &&
|
|
556
|
+
return r.isMergeableObject(e) && et(e).forEach(function(i) {
|
|
554
557
|
n[i] = de(e[i], r);
|
|
555
|
-
}),
|
|
556
|
-
|
|
558
|
+
}), et(t).forEach(function(i) {
|
|
559
|
+
Ar(e, i) || (_t(e, i) && r.isMergeableObject(t[i]) ? n[i] = Tr(i, r)(e[i], t[i], r) : n[i] = de(t[i], r));
|
|
557
560
|
}), n;
|
|
558
561
|
}
|
|
559
562
|
function K(e, t, r) {
|
|
560
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
563
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Sr, r.isMergeableObject = r.isMergeableObject || br, r.cloneUnlessOtherwiseSpecified = de;
|
|
561
564
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
562
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
565
|
+
return o ? n ? r.arrayMerge(e, t, r) : Br(e, t, r) : de(t, r);
|
|
563
566
|
}
|
|
564
567
|
K.all = function(t, r) {
|
|
565
568
|
if (!Array.isArray(t))
|
|
@@ -568,13 +571,28 @@ K.all = function(t, r) {
|
|
|
568
571
|
return K(n, i, r);
|
|
569
572
|
}, {});
|
|
570
573
|
};
|
|
571
|
-
var
|
|
572
|
-
const
|
|
574
|
+
var wr = K, Pr = wr;
|
|
575
|
+
const Cr = /* @__PURE__ */ pr(Pr);
|
|
576
|
+
/*! *****************************************************************************
|
|
577
|
+
Copyright (c) Microsoft Corporation.
|
|
578
|
+
|
|
579
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
580
|
+
purpose with or without fee is hereby granted.
|
|
581
|
+
|
|
582
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
583
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
584
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
585
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
586
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
587
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
588
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
589
|
+
***************************************************************************** */
|
|
573
590
|
var $e = function(e, t) {
|
|
574
591
|
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
575
592
|
r.__proto__ = n;
|
|
576
593
|
} || function(r, n) {
|
|
577
|
-
for (var i in n)
|
|
594
|
+
for (var i in n)
|
|
595
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
578
596
|
}, $e(e, t);
|
|
579
597
|
};
|
|
580
598
|
function Se(e, t) {
|
|
@@ -590,72 +608,77 @@ var v = function() {
|
|
|
590
608
|
return v = Object.assign || function(t) {
|
|
591
609
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
592
610
|
r = arguments[n];
|
|
593
|
-
for (var o in r)
|
|
611
|
+
for (var o in r)
|
|
612
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
594
613
|
}
|
|
595
614
|
return t;
|
|
596
615
|
}, v.apply(this, arguments);
|
|
597
616
|
};
|
|
598
|
-
function
|
|
617
|
+
function Ir(e, t) {
|
|
599
618
|
var r = {};
|
|
600
|
-
for (var n in e)
|
|
619
|
+
for (var n in e)
|
|
620
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
601
621
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
602
622
|
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
603
623
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
604
624
|
return r;
|
|
605
625
|
}
|
|
606
626
|
function we(e, t, r) {
|
|
607
|
-
if (
|
|
608
|
-
(
|
|
609
|
-
|
|
627
|
+
if (arguments.length === 2)
|
|
628
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
629
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
630
|
+
return e.concat(o || t);
|
|
610
631
|
}
|
|
611
632
|
function Pe(e, t) {
|
|
612
|
-
var r = t && t.cache ? t.cache :
|
|
633
|
+
var r = t && t.cache ? t.cache : $r, n = t && t.serializer ? t.serializer : Rr, i = t && t.strategy ? t.strategy : Mr;
|
|
613
634
|
return i(e, {
|
|
614
635
|
cache: r,
|
|
615
636
|
serializer: n
|
|
616
637
|
});
|
|
617
638
|
}
|
|
618
|
-
function
|
|
639
|
+
function Nr(e) {
|
|
619
640
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
620
641
|
}
|
|
621
|
-
function
|
|
622
|
-
var i =
|
|
642
|
+
function St(e, t, r, n) {
|
|
643
|
+
var i = Nr(n) ? n : r(n), o = t.get(i);
|
|
623
644
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
624
645
|
}
|
|
625
|
-
function
|
|
646
|
+
function Tt(e, t, r) {
|
|
626
647
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
627
648
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
628
649
|
}
|
|
629
|
-
function
|
|
650
|
+
function We(e, t, r, n, i) {
|
|
630
651
|
return r.bind(t, e, n, i);
|
|
631
652
|
}
|
|
632
|
-
function
|
|
633
|
-
var r = e.length === 1 ?
|
|
634
|
-
return
|
|
653
|
+
function Mr(e, t) {
|
|
654
|
+
var r = e.length === 1 ? St : Tt;
|
|
655
|
+
return We(e, this, r, t.cache.create(), t.serializer);
|
|
635
656
|
}
|
|
636
657
|
function Or(e, t) {
|
|
637
|
-
return
|
|
658
|
+
return We(e, this, Tt, t.cache.create(), t.serializer);
|
|
659
|
+
}
|
|
660
|
+
function Lr(e, t) {
|
|
661
|
+
return We(e, this, St, t.cache.create(), t.serializer);
|
|
638
662
|
}
|
|
639
|
-
var
|
|
663
|
+
var Rr = function() {
|
|
640
664
|
return JSON.stringify(arguments);
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
}()
|
|
653
|
-
), Rr = {
|
|
665
|
+
};
|
|
666
|
+
function Ze() {
|
|
667
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
668
|
+
}
|
|
669
|
+
Ze.prototype.get = function(e) {
|
|
670
|
+
return this.cache[e];
|
|
671
|
+
};
|
|
672
|
+
Ze.prototype.set = function(e, t) {
|
|
673
|
+
this.cache[e] = t;
|
|
674
|
+
};
|
|
675
|
+
var $r = {
|
|
654
676
|
create: function() {
|
|
655
|
-
return new
|
|
677
|
+
return new Ze();
|
|
656
678
|
}
|
|
657
679
|
}, Ce = {
|
|
658
|
-
variadic: Or
|
|
680
|
+
variadic: Or,
|
|
681
|
+
monadic: Lr
|
|
659
682
|
}, m;
|
|
660
683
|
(function(e) {
|
|
661
684
|
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";
|
|
@@ -668,43 +691,43 @@ var ee;
|
|
|
668
691
|
(function(e) {
|
|
669
692
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
670
693
|
})(ee || (ee = {}));
|
|
671
|
-
function
|
|
694
|
+
function tt(e) {
|
|
672
695
|
return e.type === x.literal;
|
|
673
696
|
}
|
|
674
|
-
function
|
|
697
|
+
function Ur(e) {
|
|
675
698
|
return e.type === x.argument;
|
|
676
699
|
}
|
|
677
|
-
function
|
|
700
|
+
function Ht(e) {
|
|
678
701
|
return e.type === x.number;
|
|
679
702
|
}
|
|
680
|
-
function
|
|
703
|
+
function At(e) {
|
|
681
704
|
return e.type === x.date;
|
|
682
705
|
}
|
|
683
|
-
function
|
|
706
|
+
function Bt(e) {
|
|
684
707
|
return e.type === x.time;
|
|
685
708
|
}
|
|
686
|
-
function
|
|
709
|
+
function wt(e) {
|
|
687
710
|
return e.type === x.select;
|
|
688
711
|
}
|
|
689
|
-
function
|
|
712
|
+
function Pt(e) {
|
|
690
713
|
return e.type === x.plural;
|
|
691
714
|
}
|
|
692
|
-
function
|
|
715
|
+
function Dr(e) {
|
|
693
716
|
return e.type === x.pound;
|
|
694
717
|
}
|
|
695
|
-
function
|
|
718
|
+
function Ct(e) {
|
|
696
719
|
return e.type === x.tag;
|
|
697
720
|
}
|
|
698
|
-
function
|
|
721
|
+
function It(e) {
|
|
699
722
|
return !!(e && typeof e == "object" && e.type === ee.number);
|
|
700
723
|
}
|
|
701
724
|
function Ue(e) {
|
|
702
725
|
return !!(e && typeof e == "object" && e.type === ee.dateTime);
|
|
703
726
|
}
|
|
704
|
-
var
|
|
705
|
-
function
|
|
727
|
+
var Nt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Fr = /(?:[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;
|
|
728
|
+
function Gr(e) {
|
|
706
729
|
var t = {};
|
|
707
|
-
return e.replace(
|
|
730
|
+
return e.replace(Fr, function(r) {
|
|
708
731
|
var n = r.length;
|
|
709
732
|
switch (r[0]) {
|
|
710
733
|
case "G":
|
|
@@ -793,11 +816,11 @@ function Fr(e) {
|
|
|
793
816
|
return "";
|
|
794
817
|
}), t;
|
|
795
818
|
}
|
|
796
|
-
var
|
|
797
|
-
function
|
|
819
|
+
var kr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
820
|
+
function jr(e) {
|
|
798
821
|
if (e.length === 0)
|
|
799
822
|
throw new Error("Number skeleton cannot be empty");
|
|
800
|
-
for (var t = e.split(
|
|
823
|
+
for (var t = e.split(kr).filter(function(d) {
|
|
801
824
|
return d.length > 0;
|
|
802
825
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
803
826
|
var o = i[n], a = o.split("/");
|
|
@@ -812,17 +835,17 @@ function kr(e) {
|
|
|
812
835
|
}
|
|
813
836
|
return r;
|
|
814
837
|
}
|
|
815
|
-
function
|
|
838
|
+
function Vr(e) {
|
|
816
839
|
return e.replace(/^(.*?)-/, "");
|
|
817
840
|
}
|
|
818
|
-
var
|
|
819
|
-
function
|
|
841
|
+
var rt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Mt = /^(@+)?(\+|#+)?[rs]?$/g, Xr = /(\*)(0+)|(#+)(0+)|(0+)/g, Ot = /^(0+)$/;
|
|
842
|
+
function nt(e) {
|
|
820
843
|
var t = {};
|
|
821
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
844
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Mt, function(r, n, i) {
|
|
822
845
|
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)), "";
|
|
823
846
|
}), t;
|
|
824
847
|
}
|
|
825
|
-
function
|
|
848
|
+
function Lt(e) {
|
|
826
849
|
switch (e) {
|
|
827
850
|
case "sign-auto":
|
|
828
851
|
return {
|
|
@@ -862,7 +885,7 @@ function Ot(e) {
|
|
|
862
885
|
};
|
|
863
886
|
}
|
|
864
887
|
}
|
|
865
|
-
function
|
|
888
|
+
function zr(e) {
|
|
866
889
|
var t;
|
|
867
890
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
868
891
|
notation: "engineering"
|
|
@@ -870,17 +893,17 @@ function Xr(e) {
|
|
|
870
893
|
notation: "scientific"
|
|
871
894
|
}, e = e.slice(1)), t) {
|
|
872
895
|
var r = e.slice(0, 2);
|
|
873
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
896
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ot.test(e))
|
|
874
897
|
throw new Error("Malformed concise eng/scientific notation");
|
|
875
898
|
t.minimumIntegerDigits = e.length;
|
|
876
899
|
}
|
|
877
900
|
return t;
|
|
878
901
|
}
|
|
879
|
-
function
|
|
880
|
-
var t = {}, r =
|
|
902
|
+
function it(e) {
|
|
903
|
+
var t = {}, r = Lt(e);
|
|
881
904
|
return r || t;
|
|
882
905
|
}
|
|
883
|
-
function
|
|
906
|
+
function Wr(e) {
|
|
884
907
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
885
908
|
var i = n[r];
|
|
886
909
|
switch (i.stem) {
|
|
@@ -904,7 +927,7 @@ function zr(e) {
|
|
|
904
927
|
continue;
|
|
905
928
|
case "measure-unit":
|
|
906
929
|
case "unit":
|
|
907
|
-
t.style = "unit", t.unit =
|
|
930
|
+
t.style = "unit", t.unit = Vr(i.options[0]);
|
|
908
931
|
continue;
|
|
909
932
|
case "compact-short":
|
|
910
933
|
case "K":
|
|
@@ -916,12 +939,12 @@ function zr(e) {
|
|
|
916
939
|
continue;
|
|
917
940
|
case "scientific":
|
|
918
941
|
t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
919
|
-
return v(v({}, h),
|
|
942
|
+
return v(v({}, h), it(u));
|
|
920
943
|
}, {}));
|
|
921
944
|
continue;
|
|
922
945
|
case "engineering":
|
|
923
946
|
t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
924
|
-
return v(v({}, h),
|
|
947
|
+
return v(v({}, h), it(u));
|
|
925
948
|
}, {}));
|
|
926
949
|
continue;
|
|
927
950
|
case "notation-simple":
|
|
@@ -966,7 +989,7 @@ function zr(e) {
|
|
|
966
989
|
case "integer-width":
|
|
967
990
|
if (i.options.length > 1)
|
|
968
991
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
969
|
-
i.options[0].replace(
|
|
992
|
+
i.options[0].replace(Xr, function(h, u, l, c, d, g) {
|
|
970
993
|
if (u)
|
|
971
994
|
t.minimumIntegerDigits = l.length;
|
|
972
995
|
else {
|
|
@@ -979,27 +1002,27 @@ function zr(e) {
|
|
|
979
1002
|
});
|
|
980
1003
|
continue;
|
|
981
1004
|
}
|
|
982
|
-
if (
|
|
1005
|
+
if (Ot.test(i.stem)) {
|
|
983
1006
|
t.minimumIntegerDigits = i.stem.length;
|
|
984
1007
|
continue;
|
|
985
1008
|
}
|
|
986
|
-
if (
|
|
1009
|
+
if (rt.test(i.stem)) {
|
|
987
1010
|
if (i.options.length > 1)
|
|
988
1011
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
989
|
-
i.stem.replace(
|
|
1012
|
+
i.stem.replace(rt, function(h, u, l, c, d, g) {
|
|
990
1013
|
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : d && g ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + g.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
991
1014
|
});
|
|
992
1015
|
var o = i.options[0];
|
|
993
|
-
o === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = v(v({}, t),
|
|
1016
|
+
o === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = v(v({}, t), nt(o)));
|
|
994
1017
|
continue;
|
|
995
1018
|
}
|
|
996
|
-
if (
|
|
997
|
-
t = v(v({}, t),
|
|
1019
|
+
if (Mt.test(i.stem)) {
|
|
1020
|
+
t = v(v({}, t), nt(i.stem));
|
|
998
1021
|
continue;
|
|
999
1022
|
}
|
|
1000
|
-
var a =
|
|
1023
|
+
var a = Lt(i.stem);
|
|
1001
1024
|
a && (t = v(v({}, t), a));
|
|
1002
|
-
var s =
|
|
1025
|
+
var s = zr(i.stem);
|
|
1003
1026
|
s && (t = v(v({}, t), s));
|
|
1004
1027
|
}
|
|
1005
1028
|
return t;
|
|
@@ -2419,22 +2442,23 @@ var be = {
|
|
|
2419
2442
|
"h"
|
|
2420
2443
|
]
|
|
2421
2444
|
};
|
|
2422
|
-
function
|
|
2445
|
+
function Zr(e, t) {
|
|
2423
2446
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2424
2447
|
var i = e.charAt(n);
|
|
2425
2448
|
if (i === "j") {
|
|
2426
2449
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2427
2450
|
o++, n++;
|
|
2428
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2451
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Jr(t);
|
|
2429
2452
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2430
2453
|
r += h;
|
|
2431
2454
|
for (; a-- > 0; )
|
|
2432
2455
|
r = u + r;
|
|
2433
|
-
} else
|
|
2456
|
+
} else
|
|
2457
|
+
i === "J" ? r += "H" : r += i;
|
|
2434
2458
|
}
|
|
2435
2459
|
return r;
|
|
2436
2460
|
}
|
|
2437
|
-
function
|
|
2461
|
+
function Jr(e) {
|
|
2438
2462
|
var t = e.hourCycle;
|
|
2439
2463
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2440
2464
|
e.hourCycles && // @ts-ignore
|
|
@@ -2456,20 +2480,20 @@ function Zr(e) {
|
|
|
2456
2480
|
var i = be[n || ""] || be[r || ""] || be["".concat(r, "-001")] || be["001"];
|
|
2457
2481
|
return i[0];
|
|
2458
2482
|
}
|
|
2459
|
-
var Ie,
|
|
2483
|
+
var Ie, Qr = new RegExp("^".concat(Nt.source, "*")), qr = new RegExp("".concat(Nt.source, "*$"));
|
|
2460
2484
|
function b(e, t) {
|
|
2461
2485
|
return { start: e, end: t };
|
|
2462
2486
|
}
|
|
2463
|
-
var
|
|
2487
|
+
var Yr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Kr = !!String.fromCodePoint, en = !!Object.fromEntries, tn = !!String.prototype.codePointAt, rn = !!String.prototype.trimStart, nn = !!String.prototype.trimEnd, on = !!Number.isSafeInteger, sn = on ? Number.isSafeInteger : function(e) {
|
|
2464
2488
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2465
2489
|
}, De = !0;
|
|
2466
2490
|
try {
|
|
2467
|
-
var
|
|
2468
|
-
De = ((Ie =
|
|
2491
|
+
var an = $t("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2492
|
+
De = ((Ie = an.exec("a")) === null || Ie === void 0 ? void 0 : Ie[0]) === "a";
|
|
2469
2493
|
} catch {
|
|
2470
2494
|
De = !1;
|
|
2471
2495
|
}
|
|
2472
|
-
var
|
|
2496
|
+
var ot = Yr ? (
|
|
2473
2497
|
// Native
|
|
2474
2498
|
function(t, r, n) {
|
|
2475
2499
|
return t.startsWith(r, n);
|
|
@@ -2479,7 +2503,7 @@ var nt = qr ? (
|
|
|
2479
2503
|
function(t, r, n) {
|
|
2480
2504
|
return t.slice(n, n + r.length) === r;
|
|
2481
2505
|
}
|
|
2482
|
-
), Fe =
|
|
2506
|
+
), Fe = Kr ? String.fromCodePoint : (
|
|
2483
2507
|
// IE11
|
|
2484
2508
|
function() {
|
|
2485
2509
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2491,9 +2515,9 @@ var nt = qr ? (
|
|
|
2491
2515
|
}
|
|
2492
2516
|
return n;
|
|
2493
2517
|
}
|
|
2494
|
-
),
|
|
2518
|
+
), st = (
|
|
2495
2519
|
// native
|
|
2496
|
-
|
|
2520
|
+
en ? Object.fromEntries : (
|
|
2497
2521
|
// Ponyfill
|
|
2498
2522
|
function(t) {
|
|
2499
2523
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2503,7 +2527,7 @@ var nt = qr ? (
|
|
|
2503
2527
|
return r;
|
|
2504
2528
|
}
|
|
2505
2529
|
)
|
|
2506
|
-
),
|
|
2530
|
+
), Rt = tn ? (
|
|
2507
2531
|
// Native
|
|
2508
2532
|
function(t, r) {
|
|
2509
2533
|
return t.codePointAt(r);
|
|
@@ -2517,7 +2541,7 @@ var nt = qr ? (
|
|
|
2517
2541
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2518
2542
|
}
|
|
2519
2543
|
}
|
|
2520
|
-
),
|
|
2544
|
+
), un = rn ? (
|
|
2521
2545
|
// Native
|
|
2522
2546
|
function(t) {
|
|
2523
2547
|
return t.trimStart();
|
|
@@ -2525,9 +2549,9 @@ var nt = qr ? (
|
|
|
2525
2549
|
) : (
|
|
2526
2550
|
// Ponyfill
|
|
2527
2551
|
function(t) {
|
|
2528
|
-
return t.replace(
|
|
2552
|
+
return t.replace(Qr, "");
|
|
2529
2553
|
}
|
|
2530
|
-
),
|
|
2554
|
+
), ln = nn ? (
|
|
2531
2555
|
// Native
|
|
2532
2556
|
function(t) {
|
|
2533
2557
|
return t.trimEnd();
|
|
@@ -2535,32 +2559,32 @@ var nt = qr ? (
|
|
|
2535
2559
|
) : (
|
|
2536
2560
|
// Ponyfill
|
|
2537
2561
|
function(t) {
|
|
2538
|
-
return t.replace(
|
|
2562
|
+
return t.replace(qr, "");
|
|
2539
2563
|
}
|
|
2540
2564
|
);
|
|
2541
|
-
function
|
|
2565
|
+
function $t(e, t) {
|
|
2542
2566
|
return new RegExp(e, t);
|
|
2543
2567
|
}
|
|
2544
2568
|
var Ge;
|
|
2545
2569
|
if (De) {
|
|
2546
|
-
var
|
|
2570
|
+
var at = $t("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2547
2571
|
Ge = function(t, r) {
|
|
2548
2572
|
var n;
|
|
2549
|
-
|
|
2550
|
-
var i =
|
|
2573
|
+
at.lastIndex = r;
|
|
2574
|
+
var i = at.exec(t);
|
|
2551
2575
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2552
2576
|
};
|
|
2553
2577
|
} else
|
|
2554
2578
|
Ge = function(t, r) {
|
|
2555
2579
|
for (var n = []; ; ) {
|
|
2556
|
-
var i =
|
|
2557
|
-
if (i === void 0 ||
|
|
2580
|
+
var i = Rt(t, r);
|
|
2581
|
+
if (i === void 0 || Ut(i) || dn(i))
|
|
2558
2582
|
break;
|
|
2559
2583
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2560
2584
|
}
|
|
2561
2585
|
return Fe.apply(void 0, n);
|
|
2562
2586
|
};
|
|
2563
|
-
var
|
|
2587
|
+
var hn = (
|
|
2564
2588
|
/** @class */
|
|
2565
2589
|
function() {
|
|
2566
2590
|
function e(t, r) {
|
|
@@ -2642,7 +2666,7 @@ var ln = (
|
|
|
2642
2666
|
return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
|
|
2643
2667
|
}, e.prototype.parseTagName = function() {
|
|
2644
2668
|
var t = this.offset();
|
|
2645
|
-
for (this.bump(); !this.isEOF() &&
|
|
2669
|
+
for (this.bump(); !this.isEOF() && fn(this.char()); )
|
|
2646
2670
|
this.bump();
|
|
2647
2671
|
return this.message.slice(t, this.offset());
|
|
2648
2672
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2671,7 +2695,7 @@ var ln = (
|
|
|
2671
2695
|
};
|
|
2672
2696
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2673
2697
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2674
|
-
!
|
|
2698
|
+
!cn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2675
2699
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2676
2700
|
if (this.isEOF() || this.char() !== 39)
|
|
2677
2701
|
return null;
|
|
@@ -2758,7 +2782,7 @@ var ln = (
|
|
|
2758
2782
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2759
2783
|
if (c.err)
|
|
2760
2784
|
return c;
|
|
2761
|
-
var d =
|
|
2785
|
+
var d = ln(c.val);
|
|
2762
2786
|
if (d.length === 0)
|
|
2763
2787
|
return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2764
2788
|
var g = b(l, this.clonePosition());
|
|
@@ -2768,8 +2792,8 @@ var ln = (
|
|
|
2768
2792
|
if (y.err)
|
|
2769
2793
|
return y;
|
|
2770
2794
|
var _ = b(i, this.clonePosition());
|
|
2771
|
-
if (u &&
|
|
2772
|
-
var T =
|
|
2795
|
+
if (u && ot(u?.style, "::", 0)) {
|
|
2796
|
+
var T = un(u.style.slice(2));
|
|
2773
2797
|
if (s === "number") {
|
|
2774
2798
|
var c = this.parseNumberSkeletonFromString(T, u.styleLocation);
|
|
2775
2799
|
return c.err ? c : {
|
|
@@ -2780,12 +2804,12 @@ var ln = (
|
|
|
2780
2804
|
if (T.length === 0)
|
|
2781
2805
|
return this.error(m.EXPECT_DATE_TIME_SKELETON, _);
|
|
2782
2806
|
var H = T;
|
|
2783
|
-
this.locale && (H =
|
|
2807
|
+
this.locale && (H = Zr(T, this.locale));
|
|
2784
2808
|
var d = {
|
|
2785
2809
|
type: ee.dateTime,
|
|
2786
2810
|
pattern: H,
|
|
2787
2811
|
location: u.styleLocation,
|
|
2788
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2812
|
+
parsedOptions: this.shouldParseSkeletons ? Gr(H) : {}
|
|
2789
2813
|
}, L = s === "date" ? x.date : x.time;
|
|
2790
2814
|
return {
|
|
2791
2815
|
val: { type: L, value: n, location: _, style: d },
|
|
@@ -2831,7 +2855,7 @@ var ln = (
|
|
|
2831
2855
|
val: {
|
|
2832
2856
|
type: x.select,
|
|
2833
2857
|
value: n,
|
|
2834
|
-
options:
|
|
2858
|
+
options: st(D.val),
|
|
2835
2859
|
location: j
|
|
2836
2860
|
},
|
|
2837
2861
|
err: null
|
|
@@ -2839,7 +2863,7 @@ var ln = (
|
|
|
2839
2863
|
val: {
|
|
2840
2864
|
type: x.plural,
|
|
2841
2865
|
value: n,
|
|
2842
|
-
options:
|
|
2866
|
+
options: st(D.val),
|
|
2843
2867
|
offset: N,
|
|
2844
2868
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2845
2869
|
location: j
|
|
@@ -2890,7 +2914,7 @@ var ln = (
|
|
|
2890
2914
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2891
2915
|
var n = [];
|
|
2892
2916
|
try {
|
|
2893
|
-
n =
|
|
2917
|
+
n = jr(t);
|
|
2894
2918
|
} catch {
|
|
2895
2919
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
|
2896
2920
|
}
|
|
@@ -2899,7 +2923,7 @@ var ln = (
|
|
|
2899
2923
|
type: ee.number,
|
|
2900
2924
|
tokens: n,
|
|
2901
2925
|
location: r,
|
|
2902
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2926
|
+
parsedOptions: this.shouldParseSkeletons ? Wr(n) : {}
|
|
2903
2927
|
},
|
|
2904
2928
|
err: null
|
|
2905
2929
|
};
|
|
@@ -2947,7 +2971,7 @@ var ln = (
|
|
|
2947
2971
|
break;
|
|
2948
2972
|
}
|
|
2949
2973
|
var h = b(i, this.clonePosition());
|
|
2950
|
-
return o ? (a *= n,
|
|
2974
|
+
return o ? (a *= n, sn(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
|
|
2951
2975
|
}, e.prototype.offset = function() {
|
|
2952
2976
|
return this.position.offset;
|
|
2953
2977
|
}, e.prototype.isEOF = function() {
|
|
@@ -2962,7 +2986,7 @@ var ln = (
|
|
|
2962
2986
|
var t = this.position.offset;
|
|
2963
2987
|
if (t >= this.message.length)
|
|
2964
2988
|
throw Error("out of bound");
|
|
2965
|
-
var r =
|
|
2989
|
+
var r = Rt(this.message, t);
|
|
2966
2990
|
if (r === void 0)
|
|
2967
2991
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
2968
2992
|
return r;
|
|
@@ -2981,7 +3005,7 @@ var ln = (
|
|
|
2981
3005
|
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);
|
|
2982
3006
|
}
|
|
2983
3007
|
}, e.prototype.bumpIf = function(t) {
|
|
2984
|
-
if (
|
|
3008
|
+
if (ot(this.message, t, this.offset())) {
|
|
2985
3009
|
for (var r = 0; r < t.length; r++)
|
|
2986
3010
|
this.bump();
|
|
2987
3011
|
return !0;
|
|
@@ -3003,7 +3027,7 @@ var ln = (
|
|
|
3003
3027
|
break;
|
|
3004
3028
|
}
|
|
3005
3029
|
}, e.prototype.bumpSpace = function() {
|
|
3006
|
-
for (; !this.isEOF() &&
|
|
3030
|
+
for (; !this.isEOF() && Ut(this.char()); )
|
|
3007
3031
|
this.bump();
|
|
3008
3032
|
}, e.prototype.peek = function() {
|
|
3009
3033
|
if (this.isEOF())
|
|
@@ -3016,29 +3040,30 @@ var ln = (
|
|
|
3016
3040
|
function ke(e) {
|
|
3017
3041
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3018
3042
|
}
|
|
3019
|
-
function
|
|
3043
|
+
function cn(e) {
|
|
3020
3044
|
return ke(e) || e === 47;
|
|
3021
3045
|
}
|
|
3022
|
-
function
|
|
3046
|
+
function fn(e) {
|
|
3023
3047
|
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;
|
|
3024
3048
|
}
|
|
3025
|
-
function
|
|
3049
|
+
function Ut(e) {
|
|
3026
3050
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3027
3051
|
}
|
|
3028
|
-
function
|
|
3052
|
+
function dn(e) {
|
|
3029
3053
|
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;
|
|
3030
3054
|
}
|
|
3031
3055
|
function je(e) {
|
|
3032
3056
|
e.forEach(function(t) {
|
|
3033
|
-
if (delete t.location,
|
|
3057
|
+
if (delete t.location, wt(t) || Pt(t))
|
|
3034
3058
|
for (var r in t.options)
|
|
3035
3059
|
delete t.options[r].location, je(t.options[r].value);
|
|
3036
|
-
else
|
|
3060
|
+
else
|
|
3061
|
+
Ht(t) && It(t.style) || (At(t) || Bt(t)) && Ue(t.style) ? delete t.style.location : Ct(t) && je(t.children);
|
|
3037
3062
|
});
|
|
3038
3063
|
}
|
|
3039
|
-
function
|
|
3064
|
+
function mn(e, t) {
|
|
3040
3065
|
t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3041
|
-
var r = new
|
|
3066
|
+
var r = new hn(e, t).parse();
|
|
3042
3067
|
if (r.err) {
|
|
3043
3068
|
var n = SyntaxError(m[r.err.kind]);
|
|
3044
3069
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
@@ -3061,7 +3086,7 @@ var Te = (
|
|
|
3061
3086
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3062
3087
|
}, t;
|
|
3063
3088
|
}(Error)
|
|
3064
|
-
),
|
|
3089
|
+
), ut = (
|
|
3065
3090
|
/** @class */
|
|
3066
3091
|
function(e) {
|
|
3067
3092
|
Se(t, e);
|
|
@@ -3070,7 +3095,7 @@ var Te = (
|
|
|
3070
3095
|
}
|
|
3071
3096
|
return t;
|
|
3072
3097
|
}(Te)
|
|
3073
|
-
),
|
|
3098
|
+
), pn = (
|
|
3074
3099
|
/** @class */
|
|
3075
3100
|
function(e) {
|
|
3076
3101
|
Se(t, e);
|
|
@@ -3079,7 +3104,7 @@ var Te = (
|
|
|
3079
3104
|
}
|
|
3080
3105
|
return t;
|
|
3081
3106
|
}(Te)
|
|
3082
|
-
),
|
|
3107
|
+
), bn = (
|
|
3083
3108
|
/** @class */
|
|
3084
3109
|
function(e) {
|
|
3085
3110
|
Se(t, e);
|
|
@@ -3092,17 +3117,17 @@ var Te = (
|
|
|
3092
3117
|
(function(e) {
|
|
3093
3118
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3094
3119
|
})(I || (I = {}));
|
|
3095
|
-
function
|
|
3120
|
+
function gn(e) {
|
|
3096
3121
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3097
3122
|
var n = t[t.length - 1];
|
|
3098
3123
|
return !n || n.type !== I.literal || r.type !== I.literal ? t.push(r) : n.value += r.value, t;
|
|
3099
3124
|
}, []);
|
|
3100
3125
|
}
|
|
3101
|
-
function
|
|
3126
|
+
function vn(e) {
|
|
3102
3127
|
return typeof e == "function";
|
|
3103
3128
|
}
|
|
3104
3129
|
function ve(e, t, r, n, i, o, a) {
|
|
3105
|
-
if (e.length === 1 &&
|
|
3130
|
+
if (e.length === 1 && tt(e[0]))
|
|
3106
3131
|
return [
|
|
3107
3132
|
{
|
|
3108
3133
|
type: I.literal,
|
|
@@ -3111,14 +3136,14 @@ function ve(e, t, r, n, i, o, a) {
|
|
|
3111
3136
|
];
|
|
3112
3137
|
for (var s = [], h = 0, u = e; h < u.length; h++) {
|
|
3113
3138
|
var l = u[h];
|
|
3114
|
-
if (
|
|
3139
|
+
if (tt(l)) {
|
|
3115
3140
|
s.push({
|
|
3116
3141
|
type: I.literal,
|
|
3117
3142
|
value: l.value
|
|
3118
3143
|
});
|
|
3119
3144
|
continue;
|
|
3120
3145
|
}
|
|
3121
|
-
if (
|
|
3146
|
+
if (Dr(l)) {
|
|
3122
3147
|
typeof o == "number" && s.push({
|
|
3123
3148
|
type: I.literal,
|
|
3124
3149
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3127,16 +3152,16 @@ function ve(e, t, r, n, i, o, a) {
|
|
|
3127
3152
|
}
|
|
3128
3153
|
var c = l.value;
|
|
3129
3154
|
if (!(i && c in i))
|
|
3130
|
-
throw new
|
|
3155
|
+
throw new bn(c, a);
|
|
3131
3156
|
var d = i[c];
|
|
3132
|
-
if (
|
|
3157
|
+
if (Ur(l)) {
|
|
3133
3158
|
(!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), s.push({
|
|
3134
3159
|
type: typeof d == "string" ? I.literal : I.object,
|
|
3135
3160
|
value: d
|
|
3136
3161
|
});
|
|
3137
3162
|
continue;
|
|
3138
3163
|
}
|
|
3139
|
-
if (
|
|
3164
|
+
if (At(l)) {
|
|
3140
3165
|
var g = typeof l.style == "string" ? n.date[l.style] : Ue(l.style) ? l.style.parsedOptions : void 0;
|
|
3141
3166
|
s.push({
|
|
3142
3167
|
type: I.literal,
|
|
@@ -3144,7 +3169,7 @@ function ve(e, t, r, n, i, o, a) {
|
|
|
3144
3169
|
});
|
|
3145
3170
|
continue;
|
|
3146
3171
|
}
|
|
3147
|
-
if (
|
|
3172
|
+
if (Bt(l)) {
|
|
3148
3173
|
var g = typeof l.style == "string" ? n.time[l.style] : Ue(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3149
3174
|
s.push({
|
|
3150
3175
|
type: I.literal,
|
|
@@ -3152,18 +3177,18 @@ function ve(e, t, r, n, i, o, a) {
|
|
|
3152
3177
|
});
|
|
3153
3178
|
continue;
|
|
3154
3179
|
}
|
|
3155
|
-
if (
|
|
3156
|
-
var g = typeof l.style == "string" ? n.number[l.style] :
|
|
3180
|
+
if (Ht(l)) {
|
|
3181
|
+
var g = typeof l.style == "string" ? n.number[l.style] : It(l.style) ? l.style.parsedOptions : void 0;
|
|
3157
3182
|
g && g.scale && (d = d * (g.scale || 1)), s.push({
|
|
3158
3183
|
type: I.literal,
|
|
3159
3184
|
value: r.getNumberFormat(t, g).format(d)
|
|
3160
3185
|
});
|
|
3161
3186
|
continue;
|
|
3162
3187
|
}
|
|
3163
|
-
if (
|
|
3188
|
+
if (Ct(l)) {
|
|
3164
3189
|
var y = l.children, _ = l.value, T = i[_];
|
|
3165
|
-
if (!
|
|
3166
|
-
throw new
|
|
3190
|
+
if (!vn(T))
|
|
3191
|
+
throw new pn(_, "function", a);
|
|
3167
3192
|
var H = ve(y, t, r, n, i, o), L = T(H.map(function(N) {
|
|
3168
3193
|
return N.value;
|
|
3169
3194
|
}));
|
|
@@ -3174,14 +3199,14 @@ function ve(e, t, r, n, i, o, a) {
|
|
|
3174
3199
|
};
|
|
3175
3200
|
}));
|
|
3176
3201
|
}
|
|
3177
|
-
if (
|
|
3202
|
+
if (wt(l)) {
|
|
3178
3203
|
var B = l.options[d] || l.options.other;
|
|
3179
3204
|
if (!B)
|
|
3180
|
-
throw new
|
|
3205
|
+
throw new ut(l.value, d, Object.keys(l.options), a);
|
|
3181
3206
|
s.push.apply(s, ve(B.value, t, r, n, i));
|
|
3182
3207
|
continue;
|
|
3183
3208
|
}
|
|
3184
|
-
if (
|
|
3209
|
+
if (Pt(l)) {
|
|
3185
3210
|
var B = l.options["=".concat(d)];
|
|
3186
3211
|
if (!B) {
|
|
3187
3212
|
if (!Intl.PluralRules)
|
|
@@ -3192,21 +3217,21 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3192
3217
|
B = l.options[S] || l.options.other;
|
|
3193
3218
|
}
|
|
3194
3219
|
if (!B)
|
|
3195
|
-
throw new
|
|
3220
|
+
throw new ut(l.value, d, Object.keys(l.options), a);
|
|
3196
3221
|
s.push.apply(s, ve(B.value, t, r, n, i, d - (l.offset || 0)));
|
|
3197
3222
|
continue;
|
|
3198
3223
|
}
|
|
3199
3224
|
}
|
|
3200
|
-
return
|
|
3225
|
+
return gn(s);
|
|
3201
3226
|
}
|
|
3202
|
-
function
|
|
3227
|
+
function yn(e, t) {
|
|
3203
3228
|
return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3204
3229
|
return r[n] = v(v({}, e[n]), t[n] || {}), r;
|
|
3205
3230
|
}, {})) : e;
|
|
3206
3231
|
}
|
|
3207
|
-
function
|
|
3232
|
+
function En(e, t) {
|
|
3208
3233
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3209
|
-
return r[n] =
|
|
3234
|
+
return r[n] = yn(e[n], t[n]), r;
|
|
3210
3235
|
}, v({}, e)) : e;
|
|
3211
3236
|
}
|
|
3212
3237
|
function Ne(e) {
|
|
@@ -3223,7 +3248,7 @@ function Ne(e) {
|
|
|
3223
3248
|
}
|
|
3224
3249
|
};
|
|
3225
3250
|
}
|
|
3226
|
-
function
|
|
3251
|
+
function xn(e) {
|
|
3227
3252
|
return e === void 0 && (e = {
|
|
3228
3253
|
number: {},
|
|
3229
3254
|
dateTime: {},
|
|
@@ -3255,7 +3280,7 @@ function En(e) {
|
|
|
3255
3280
|
})
|
|
3256
3281
|
};
|
|
3257
3282
|
}
|
|
3258
|
-
var
|
|
3283
|
+
var _n = (
|
|
3259
3284
|
/** @class */
|
|
3260
3285
|
function() {
|
|
3261
3286
|
function e(t, r, n, i) {
|
|
@@ -3287,13 +3312,13 @@ var xn = (
|
|
|
3287
3312
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3288
3313
|
var a = i || {};
|
|
3289
3314
|
a.formatters;
|
|
3290
|
-
var s =
|
|
3315
|
+
var s = Ir(a, ["formatters"]);
|
|
3291
3316
|
this.ast = e.__parse(t, v(v({}, s), { locale: this.resolvedLocale }));
|
|
3292
3317
|
} else
|
|
3293
3318
|
this.ast = t;
|
|
3294
3319
|
if (!Array.isArray(this.ast))
|
|
3295
3320
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3296
|
-
this.formats =
|
|
3321
|
+
this.formats = En(e.formats, n), this.formatters = i && i.formatters || xn(this.formatterCache);
|
|
3297
3322
|
}
|
|
3298
3323
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3299
3324
|
get: function() {
|
|
@@ -3306,7 +3331,7 @@ var xn = (
|
|
|
3306
3331
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3307
3332
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3308
3333
|
}
|
|
3309
|
-
}, e.__parse =
|
|
3334
|
+
}, e.__parse = mn, e.formats = {
|
|
3310
3335
|
number: {
|
|
3311
3336
|
integer: {
|
|
3312
3337
|
maximumFractionDigits: 0
|
|
@@ -3367,7 +3392,7 @@ var xn = (
|
|
|
3367
3392
|
}, e;
|
|
3368
3393
|
}()
|
|
3369
3394
|
);
|
|
3370
|
-
function
|
|
3395
|
+
function Sn(e, t) {
|
|
3371
3396
|
if (t == null)
|
|
3372
3397
|
return;
|
|
3373
3398
|
if (t in e)
|
|
@@ -3388,60 +3413,60 @@ function _n(e, t) {
|
|
|
3388
3413
|
n = void 0;
|
|
3389
3414
|
return n;
|
|
3390
3415
|
}
|
|
3391
|
-
const G = {},
|
|
3416
|
+
const G = {}, Tn = (e, t, r) => r && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = r), r), Dt = (e, t) => {
|
|
3392
3417
|
if (t == null)
|
|
3393
3418
|
return;
|
|
3394
3419
|
if (t in G && e in G[t])
|
|
3395
3420
|
return G[t][e];
|
|
3396
3421
|
const r = He(t);
|
|
3397
3422
|
for (let n = 0; n < r.length; n++) {
|
|
3398
|
-
const i = r[n], o =
|
|
3423
|
+
const i = r[n], o = An(i, e);
|
|
3399
3424
|
if (o)
|
|
3400
|
-
return
|
|
3425
|
+
return Tn(e, t, o);
|
|
3401
3426
|
}
|
|
3402
3427
|
};
|
|
3403
|
-
let
|
|
3428
|
+
let Je;
|
|
3404
3429
|
const oe = _e({});
|
|
3405
|
-
function
|
|
3406
|
-
return
|
|
3430
|
+
function Hn(e) {
|
|
3431
|
+
return Je[e] || null;
|
|
3407
3432
|
}
|
|
3408
|
-
function
|
|
3409
|
-
return e in
|
|
3433
|
+
function Ft(e) {
|
|
3434
|
+
return e in Je;
|
|
3410
3435
|
}
|
|
3411
|
-
function
|
|
3412
|
-
if (!
|
|
3436
|
+
function An(e, t) {
|
|
3437
|
+
if (!Ft(e))
|
|
3413
3438
|
return null;
|
|
3414
|
-
const r =
|
|
3415
|
-
return
|
|
3439
|
+
const r = Hn(e);
|
|
3440
|
+
return Sn(r, t);
|
|
3416
3441
|
}
|
|
3417
|
-
function
|
|
3442
|
+
function Bn(e) {
|
|
3418
3443
|
if (e == null)
|
|
3419
3444
|
return;
|
|
3420
3445
|
const t = He(e);
|
|
3421
3446
|
for (let r = 0; r < t.length; r++) {
|
|
3422
3447
|
const n = t[r];
|
|
3423
|
-
if (
|
|
3448
|
+
if (Ft(n))
|
|
3424
3449
|
return n;
|
|
3425
3450
|
}
|
|
3426
3451
|
}
|
|
3427
|
-
function
|
|
3428
|
-
delete G[e], oe.update((r) => (r[e] =
|
|
3452
|
+
function Gt(e, ...t) {
|
|
3453
|
+
delete G[e], oe.update((r) => (r[e] = Cr.all([r[e] || {}, ...t]), r));
|
|
3429
3454
|
}
|
|
3430
3455
|
ie(
|
|
3431
3456
|
[oe],
|
|
3432
3457
|
([e]) => Object.keys(e)
|
|
3433
3458
|
);
|
|
3434
|
-
oe.subscribe((e) =>
|
|
3459
|
+
oe.subscribe((e) => Je = e);
|
|
3435
3460
|
const ye = {};
|
|
3436
|
-
function
|
|
3461
|
+
function wn(e, t) {
|
|
3437
3462
|
ye[e].delete(t), ye[e].size === 0 && delete ye[e];
|
|
3438
3463
|
}
|
|
3439
|
-
function
|
|
3464
|
+
function kt(e) {
|
|
3440
3465
|
return ye[e];
|
|
3441
3466
|
}
|
|
3442
|
-
function
|
|
3467
|
+
function Pn(e) {
|
|
3443
3468
|
return He(e).map((t) => {
|
|
3444
|
-
const r =
|
|
3469
|
+
const r = kt(t);
|
|
3445
3470
|
return [t, r ? [...r] : []];
|
|
3446
3471
|
}).filter(([, t]) => t.length > 0);
|
|
3447
3472
|
}
|
|
@@ -3449,31 +3474,31 @@ function Ve(e) {
|
|
|
3449
3474
|
return e == null ? !1 : He(e).some(
|
|
3450
3475
|
(t) => {
|
|
3451
3476
|
var r;
|
|
3452
|
-
return (r =
|
|
3477
|
+
return (r = kt(t)) == null ? void 0 : r.size;
|
|
3453
3478
|
}
|
|
3454
3479
|
);
|
|
3455
3480
|
}
|
|
3456
|
-
function
|
|
3481
|
+
function Cn(e, t) {
|
|
3457
3482
|
return Promise.all(
|
|
3458
|
-
t.map((n) => (
|
|
3459
|
-
).then((n) =>
|
|
3483
|
+
t.map((n) => (wn(e, n), n().then((i) => i.default || i)))
|
|
3484
|
+
).then((n) => Gt(e, ...n));
|
|
3460
3485
|
}
|
|
3461
3486
|
const he = {};
|
|
3462
|
-
function
|
|
3487
|
+
function jt(e) {
|
|
3463
3488
|
if (!Ve(e))
|
|
3464
3489
|
return e in he ? he[e] : Promise.resolve();
|
|
3465
|
-
const t =
|
|
3490
|
+
const t = Pn(e);
|
|
3466
3491
|
return he[e] = Promise.all(
|
|
3467
3492
|
t.map(
|
|
3468
|
-
([r, n]) =>
|
|
3493
|
+
([r, n]) => Cn(r, n)
|
|
3469
3494
|
)
|
|
3470
3495
|
).then(() => {
|
|
3471
3496
|
if (Ve(e))
|
|
3472
|
-
return
|
|
3497
|
+
return jt(e);
|
|
3473
3498
|
delete he[e];
|
|
3474
3499
|
}), he[e];
|
|
3475
3500
|
}
|
|
3476
|
-
const
|
|
3501
|
+
const In = {
|
|
3477
3502
|
number: {
|
|
3478
3503
|
scientific: { notation: "scientific" },
|
|
3479
3504
|
engineering: { notation: "engineering" },
|
|
@@ -3502,34 +3527,34 @@ const Cn = {
|
|
|
3502
3527
|
timeZoneName: "short"
|
|
3503
3528
|
}
|
|
3504
3529
|
}
|
|
3505
|
-
},
|
|
3530
|
+
}, Nn = {
|
|
3506
3531
|
fallbackLocale: null,
|
|
3507
3532
|
loadingDelay: 200,
|
|
3508
|
-
formats:
|
|
3533
|
+
formats: In,
|
|
3509
3534
|
warnOnMissingMessages: !0,
|
|
3510
3535
|
handleMissingMessage: void 0,
|
|
3511
3536
|
ignoreTag: !0
|
|
3512
|
-
},
|
|
3537
|
+
}, Mn = Nn;
|
|
3513
3538
|
function re() {
|
|
3514
|
-
return
|
|
3539
|
+
return Mn;
|
|
3515
3540
|
}
|
|
3516
|
-
const
|
|
3517
|
-
var On = Object.defineProperty,
|
|
3541
|
+
const Me = _e(!1);
|
|
3542
|
+
var On = Object.defineProperty, Ln = Object.defineProperties, Rn = Object.getOwnPropertyDescriptors, lt = Object.getOwnPropertySymbols, $n = Object.prototype.hasOwnProperty, Un = Object.prototype.propertyIsEnumerable, ht = (e, t, r) => t in e ? On(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Dn = (e, t) => {
|
|
3518
3543
|
for (var r in t || (t = {}))
|
|
3519
|
-
|
|
3520
|
-
if (
|
|
3521
|
-
for (var r of
|
|
3522
|
-
|
|
3544
|
+
$n.call(t, r) && ht(e, r, t[r]);
|
|
3545
|
+
if (lt)
|
|
3546
|
+
for (var r of lt(t))
|
|
3547
|
+
Un.call(t, r) && ht(e, r, t[r]);
|
|
3523
3548
|
return e;
|
|
3524
|
-
},
|
|
3549
|
+
}, Fn = (e, t) => Ln(e, Rn(t));
|
|
3525
3550
|
let Xe;
|
|
3526
3551
|
const Ee = _e(null);
|
|
3527
|
-
function
|
|
3552
|
+
function ct(e) {
|
|
3528
3553
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3529
3554
|
}
|
|
3530
3555
|
function He(e, t = re().fallbackLocale) {
|
|
3531
|
-
const r =
|
|
3532
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3556
|
+
const r = ct(e);
|
|
3557
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...ct(t)])] : r;
|
|
3533
3558
|
}
|
|
3534
3559
|
function Z() {
|
|
3535
3560
|
return Xe ?? void 0;
|
|
@@ -3537,22 +3562,22 @@ function Z() {
|
|
|
3537
3562
|
Ee.subscribe((e) => {
|
|
3538
3563
|
Xe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3539
3564
|
});
|
|
3540
|
-
const
|
|
3541
|
-
if (e &&
|
|
3565
|
+
const Gn = (e) => {
|
|
3566
|
+
if (e && Bn(e) && Ve(e)) {
|
|
3542
3567
|
const { loadingDelay: t } = re();
|
|
3543
3568
|
let r;
|
|
3544
3569
|
return typeof window < "u" && Z() != null && t ? r = window.setTimeout(
|
|
3545
|
-
() =>
|
|
3570
|
+
() => Me.set(!0),
|
|
3546
3571
|
t
|
|
3547
|
-
) :
|
|
3572
|
+
) : Me.set(!0), jt(e).then(() => {
|
|
3548
3573
|
Ee.set(e);
|
|
3549
3574
|
}).finally(() => {
|
|
3550
|
-
clearTimeout(r),
|
|
3575
|
+
clearTimeout(r), Me.set(!1);
|
|
3551
3576
|
});
|
|
3552
3577
|
}
|
|
3553
3578
|
return Ee.set(e);
|
|
3554
|
-
}, z = Dn(
|
|
3555
|
-
set:
|
|
3579
|
+
}, z = Fn(Dn({}, Ee), {
|
|
3580
|
+
set: Gn
|
|
3556
3581
|
}), Ae = (e) => {
|
|
3557
3582
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3558
3583
|
return (n) => {
|
|
@@ -3560,20 +3585,20 @@ const Fn = (e) => {
|
|
|
3560
3585
|
return i in t ? t[i] : t[i] = e(n);
|
|
3561
3586
|
};
|
|
3562
3587
|
};
|
|
3563
|
-
var
|
|
3588
|
+
var kn = Object.defineProperty, xe = Object.getOwnPropertySymbols, Vt = Object.prototype.hasOwnProperty, Xt = Object.prototype.propertyIsEnumerable, ft = (e, t, r) => t in e ? kn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qe = (e, t) => {
|
|
3564
3589
|
for (var r in t || (t = {}))
|
|
3565
|
-
|
|
3590
|
+
Vt.call(t, r) && ft(e, r, t[r]);
|
|
3566
3591
|
if (xe)
|
|
3567
3592
|
for (var r of xe(t))
|
|
3568
|
-
|
|
3593
|
+
Xt.call(t, r) && ft(e, r, t[r]);
|
|
3569
3594
|
return e;
|
|
3570
3595
|
}, se = (e, t) => {
|
|
3571
3596
|
var r = {};
|
|
3572
3597
|
for (var n in e)
|
|
3573
|
-
|
|
3598
|
+
Vt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3574
3599
|
if (e != null && xe)
|
|
3575
3600
|
for (var n of xe(e))
|
|
3576
|
-
t.indexOf(n) < 0 &&
|
|
3601
|
+
t.indexOf(n) < 0 && Xt.call(e, n) && (r[n] = e[n]);
|
|
3577
3602
|
return r;
|
|
3578
3603
|
};
|
|
3579
3604
|
const me = (e, t) => {
|
|
@@ -3581,21 +3606,21 @@ const me = (e, t) => {
|
|
|
3581
3606
|
if (e in r && t in r[e])
|
|
3582
3607
|
return r[e][t];
|
|
3583
3608
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3584
|
-
},
|
|
3609
|
+
}, jn = Ae(
|
|
3585
3610
|
(e) => {
|
|
3586
3611
|
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
3587
3612
|
if (r == null)
|
|
3588
3613
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3589
3614
|
return n && (i = me("number", n)), new Intl.NumberFormat(r, i);
|
|
3590
3615
|
}
|
|
3591
|
-
),
|
|
3616
|
+
), Vn = Ae(
|
|
3592
3617
|
(e) => {
|
|
3593
3618
|
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
3594
3619
|
if (r == null)
|
|
3595
3620
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3596
3621
|
return n ? i = me("date", n) : Object.keys(i).length === 0 && (i = me("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3597
3622
|
}
|
|
3598
|
-
),
|
|
3623
|
+
), Xn = Ae(
|
|
3599
3624
|
(e) => {
|
|
3600
3625
|
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
3601
3626
|
if (r == null)
|
|
@@ -3604,33 +3629,33 @@ const me = (e, t) => {
|
|
|
3604
3629
|
);
|
|
3605
3630
|
return n ? i = me("time", n) : Object.keys(i).length === 0 && (i = me("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3606
3631
|
}
|
|
3607
|
-
),
|
|
3632
|
+
), zn = (e = {}) => {
|
|
3608
3633
|
var t = e, {
|
|
3609
3634
|
locale: r = Z()
|
|
3610
3635
|
} = t, n = se(t, [
|
|
3611
3636
|
"locale"
|
|
3612
3637
|
]);
|
|
3613
|
-
return
|
|
3614
|
-
},
|
|
3638
|
+
return jn(Qe({ locale: r }, n));
|
|
3639
|
+
}, Wn = (e = {}) => {
|
|
3615
3640
|
var t = e, {
|
|
3616
3641
|
locale: r = Z()
|
|
3617
3642
|
} = t, n = se(t, [
|
|
3618
3643
|
"locale"
|
|
3619
3644
|
]);
|
|
3620
|
-
return
|
|
3621
|
-
},
|
|
3645
|
+
return Vn(Qe({ locale: r }, n));
|
|
3646
|
+
}, Zn = (e = {}) => {
|
|
3622
3647
|
var t = e, {
|
|
3623
3648
|
locale: r = Z()
|
|
3624
3649
|
} = t, n = se(t, [
|
|
3625
3650
|
"locale"
|
|
3626
3651
|
]);
|
|
3627
|
-
return
|
|
3628
|
-
},
|
|
3652
|
+
return Xn(Qe({ locale: r }, n));
|
|
3653
|
+
}, Jn = Ae(
|
|
3629
3654
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3630
|
-
(e, t = Z()) => new
|
|
3655
|
+
(e, t = Z()) => new _n(e, t, re().formats, {
|
|
3631
3656
|
ignoreTag: re().ignoreTag
|
|
3632
3657
|
})
|
|
3633
|
-
),
|
|
3658
|
+
), Qn = (e, t = {}) => {
|
|
3634
3659
|
var r, n, i, o;
|
|
3635
3660
|
let a = t;
|
|
3636
3661
|
typeof e == "object" && (a = e, e = a.id);
|
|
@@ -3643,7 +3668,7 @@ const me = (e, t) => {
|
|
|
3643
3668
|
throw new Error(
|
|
3644
3669
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3645
3670
|
);
|
|
3646
|
-
let l =
|
|
3671
|
+
let l = Dt(e, h);
|
|
3647
3672
|
if (!l)
|
|
3648
3673
|
l = (o = (i = (n = (r = re()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
3649
3674
|
else if (typeof l != "string")
|
|
@@ -3654,7 +3679,7 @@ const me = (e, t) => {
|
|
|
3654
3679
|
return l;
|
|
3655
3680
|
let c = l;
|
|
3656
3681
|
try {
|
|
3657
|
-
c =
|
|
3682
|
+
c = Jn(l, h).format(s);
|
|
3658
3683
|
} catch (d) {
|
|
3659
3684
|
d instanceof Error && console.warn(
|
|
3660
3685
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3662,20 +3687,20 @@ const me = (e, t) => {
|
|
|
3662
3687
|
);
|
|
3663
3688
|
}
|
|
3664
3689
|
return c;
|
|
3665
|
-
},
|
|
3666
|
-
ie([z], () => Qn);
|
|
3690
|
+
}, qn = (e, t) => Zn(t).format(e), Yn = (e, t) => Wn(t).format(e), Kn = (e, t) => zn(t).format(e), ei = (e, t = Z()) => Dt(e, t), ti = ie([z, oe], () => Qn);
|
|
3667
3691
|
ie([z], () => qn);
|
|
3668
3692
|
ie([z], () => Yn);
|
|
3669
|
-
ie([z
|
|
3670
|
-
|
|
3693
|
+
ie([z], () => Kn);
|
|
3694
|
+
ie([z, oe], () => ei);
|
|
3695
|
+
function ri({ withLocale: e, translations: t }) {
|
|
3671
3696
|
z.subscribe((r) => {
|
|
3672
3697
|
r == null && (oe.set(t), z.set(e));
|
|
3673
3698
|
});
|
|
3674
3699
|
}
|
|
3675
|
-
function
|
|
3676
|
-
|
|
3700
|
+
function dt(e, t) {
|
|
3701
|
+
Gt(e, t);
|
|
3677
3702
|
}
|
|
3678
|
-
const
|
|
3703
|
+
const mt = {
|
|
3679
3704
|
en: {
|
|
3680
3705
|
title: "Please enter the verification code you received on your number",
|
|
3681
3706
|
errorTitle: "Your code was invalid, you can resend the code and try again",
|
|
@@ -3782,13 +3807,13 @@ const ft = {
|
|
|
3782
3807
|
loginSMSHint: "A new verification code has been sent to your phone number"
|
|
3783
3808
|
}
|
|
3784
3809
|
};
|
|
3785
|
-
function
|
|
3810
|
+
function ni(e, t) {
|
|
3786
3811
|
if (e) {
|
|
3787
3812
|
const r = document.createElement("style");
|
|
3788
3813
|
r.innerHTML = t, e.appendChild(r);
|
|
3789
3814
|
}
|
|
3790
3815
|
}
|
|
3791
|
-
function
|
|
3816
|
+
function ii(e, t) {
|
|
3792
3817
|
const r = new URL(t);
|
|
3793
3818
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
3794
3819
|
const i = document.createElement("style");
|
|
@@ -3797,7 +3822,7 @@ function ni(e, t) {
|
|
|
3797
3822
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3798
3823
|
});
|
|
3799
3824
|
}
|
|
3800
|
-
function
|
|
3825
|
+
function oi(e, t, r) {
|
|
3801
3826
|
if (window.emMessageBus) {
|
|
3802
3827
|
const n = document.createElement("style");
|
|
3803
3828
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3805,17 +3830,17 @@ function ii(e, t, r) {
|
|
|
3805
3830
|
});
|
|
3806
3831
|
}
|
|
3807
3832
|
}
|
|
3808
|
-
function oi(e) {
|
|
3809
|
-
zt(e, "svelte-uutjwi", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Title{font-size:14px;margin:0;padding-bottom:20px}.Field{color:var(--emw--registration-contrast, var(--emw--color-gray-300, #58586B));display:flex;flex-direction:column;padding-bottom:30px;position:relative}.Field label{font-size:14px;font-weight:300;padding-bottom:5px}.Field input,.Field select{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.Field.InvalidField input{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C))}.Field.Hidden{display:none}.LoginSMSHint{margin-top:20px}.InvalidInput{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:10px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:12px;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.Button{color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.Button[disabled]{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-100, #E6E6E6);cursor:not-allowed}.Button.SmsVerificationResend{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #F9F8F8));color:var(--emw--registration-typography, var(--emw--color-contrast, #07072A))}");
|
|
3810
|
-
}
|
|
3811
3833
|
function si(e) {
|
|
3834
|
+
Zt(e, "svelte-uutjwi", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Title{font-size:14px;margin:0;padding-bottom:20px}.Field{color:var(--emw--registration-contrast, var(--emw--color-gray-300, #58586B));display:flex;flex-direction:column;padding-bottom:30px;position:relative}.Field label{font-size:14px;font-weight:300;padding-bottom:5px}.Field input,.Field select{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.Field.InvalidField input{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C))}.Field.Hidden{display:none}.LoginSMSHint{margin-top:20px}.InvalidInput{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:10px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:12px;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.Button{color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.Button[disabled]{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-100, #E6E6E6);cursor:not-allowed}.Button.SmsVerificationResend{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #F9F8F8));color:var(--emw--registration-typography, var(--emw--color-contrast, #07072A))}");
|
|
3835
|
+
}
|
|
3836
|
+
function ai(e) {
|
|
3812
3837
|
let t = (
|
|
3813
3838
|
/*$_*/
|
|
3814
3839
|
e[5]("errorTitle") + ""
|
|
3815
3840
|
), r;
|
|
3816
3841
|
return {
|
|
3817
3842
|
c() {
|
|
3818
|
-
r =
|
|
3843
|
+
r = O(t);
|
|
3819
3844
|
},
|
|
3820
3845
|
m(n, i) {
|
|
3821
3846
|
W(n, r, i);
|
|
@@ -3830,14 +3855,14 @@ function si(e) {
|
|
|
3830
3855
|
}
|
|
3831
3856
|
};
|
|
3832
3857
|
}
|
|
3833
|
-
function
|
|
3858
|
+
function ui(e) {
|
|
3834
3859
|
let t = (
|
|
3835
3860
|
/*$_*/
|
|
3836
3861
|
e[5]("title") + ""
|
|
3837
3862
|
), r;
|
|
3838
3863
|
return {
|
|
3839
3864
|
c() {
|
|
3840
|
-
r =
|
|
3865
|
+
r = O(t);
|
|
3841
3866
|
},
|
|
3842
3867
|
m(n, i) {
|
|
3843
3868
|
W(n, r, i);
|
|
@@ -3852,14 +3877,14 @@ function ai(e) {
|
|
|
3852
3877
|
}
|
|
3853
3878
|
};
|
|
3854
3879
|
}
|
|
3855
|
-
function
|
|
3880
|
+
function pt(e) {
|
|
3856
3881
|
let t, r = (
|
|
3857
3882
|
/*$_*/
|
|
3858
3883
|
e[5]("smsCodeError") + ""
|
|
3859
3884
|
), n;
|
|
3860
3885
|
return {
|
|
3861
3886
|
c() {
|
|
3862
|
-
t =
|
|
3887
|
+
t = M("p"), n = O(r), A(t, "class", "InvalidInput");
|
|
3863
3888
|
},
|
|
3864
3889
|
m(i, o) {
|
|
3865
3890
|
W(i, t, o), E(t, n);
|
|
@@ -3874,14 +3899,14 @@ function dt(e) {
|
|
|
3874
3899
|
}
|
|
3875
3900
|
};
|
|
3876
3901
|
}
|
|
3877
|
-
function
|
|
3902
|
+
function bt(e) {
|
|
3878
3903
|
let t, r = (
|
|
3879
3904
|
/*$_*/
|
|
3880
3905
|
e[5]("resendMessage") + ""
|
|
3881
3906
|
), n;
|
|
3882
3907
|
return {
|
|
3883
3908
|
c() {
|
|
3884
|
-
t =
|
|
3909
|
+
t = M("p"), n = O(r), A(t, "class", "SmsVerificationResendMessage");
|
|
3885
3910
|
},
|
|
3886
3911
|
m(i, o) {
|
|
3887
3912
|
W(i, t, o), E(t, n);
|
|
@@ -3896,17 +3921,17 @@ function mt(e) {
|
|
|
3896
3921
|
}
|
|
3897
3922
|
};
|
|
3898
3923
|
}
|
|
3899
|
-
function
|
|
3924
|
+
function gt(e) {
|
|
3900
3925
|
let t, r, n = (
|
|
3901
3926
|
/*secondsLeft*/
|
|
3902
3927
|
e[4] < 10 ? "0" : ""
|
|
3903
3928
|
), i, o, a;
|
|
3904
3929
|
return {
|
|
3905
3930
|
c() {
|
|
3906
|
-
t =
|
|
3931
|
+
t = M("span"), r = O("(0:"), i = O(n), o = O(
|
|
3907
3932
|
/*secondsLeft*/
|
|
3908
3933
|
e[4]
|
|
3909
|
-
), a =
|
|
3934
|
+
), a = O(")"), A(t, "class", "SmsVerificationResendTimer");
|
|
3910
3935
|
},
|
|
3911
3936
|
m(s, h) {
|
|
3912
3937
|
W(s, t, h), E(t, r), E(t, i), E(t, o), E(t, a);
|
|
@@ -3926,7 +3951,7 @@ function pt(e) {
|
|
|
3926
3951
|
}
|
|
3927
3952
|
};
|
|
3928
3953
|
}
|
|
3929
|
-
function
|
|
3954
|
+
function li(e) {
|
|
3930
3955
|
let t, r, n, i, o, a = (
|
|
3931
3956
|
/*$_*/
|
|
3932
3957
|
e[5]("code") + ""
|
|
@@ -3940,25 +3965,25 @@ function ui(e) {
|
|
|
3940
3965
|
function le(p, C) {
|
|
3941
3966
|
return (
|
|
3942
3967
|
/*isSmsValid*/
|
|
3943
|
-
p[2] ?
|
|
3968
|
+
p[2] ? ui : ai
|
|
3944
3969
|
);
|
|
3945
3970
|
}
|
|
3946
3971
|
let V = le(e), R = V(e), w = !/*isSmsValid*/
|
|
3947
|
-
e[2] &&
|
|
3972
|
+
e[2] && pt(e), P = (
|
|
3948
3973
|
/*timer*/
|
|
3949
|
-
e[3] &&
|
|
3974
|
+
e[3] && bt(e)
|
|
3950
3975
|
), f = (
|
|
3951
3976
|
/*timer*/
|
|
3952
|
-
e[3] &&
|
|
3977
|
+
e[3] && gt(e)
|
|
3953
3978
|
);
|
|
3954
3979
|
return {
|
|
3955
3980
|
c() {
|
|
3956
|
-
t =
|
|
3981
|
+
t = M("div"), r = M("h3"), R.c(), n = X(), i = M("div"), o = M("label"), s = O(a), h = O(":"), u = M("span"), u.textContent = "*", l = X(), c = M("input"), d = X(), w && w.c(), y = X(), P && P.c(), _ = X(), T = M("button"), L = O(H), B = X(), S = M("button"), D = O(N), j = X(), f && f.c(), A(r, "class", "Title"), A(u, "class", "FormRequired"), A(o, "for", "SmsCode"), A(c, "type", "text"), A(c, "id", "SmsCode"), A(c, "inputmode", "numeric"), A(c, "pattern", "[0-9]*"), A(c, "maxlength", "6"), A(i, "class", g = "Field SmsVerificationField " + (/*isSmsValid*/
|
|
3957
3982
|
e[2] ? "" : "InvalidField")), A(T, "class", "Button SmsVerificationValidate"), A(S, "class", "Button SmsVerificationResend"), S.disabled = /*timer*/
|
|
3958
3983
|
e[3], A(t, "class", "Container SmsVerificationContainer");
|
|
3959
3984
|
},
|
|
3960
3985
|
m(p, C) {
|
|
3961
|
-
W(p, t, C), E(t, r), R.m(r, null), E(t, n), E(t, i), E(i, o), E(o, s), E(o, h), E(o, u), E(i, l), E(i, c),
|
|
3986
|
+
W(p, t, C), E(t, r), R.m(r, null), E(t, n), E(t, i), E(i, o), E(o, s), E(o, h), E(o, u), E(i, l), E(i, c), Ye(
|
|
3962
3987
|
c,
|
|
3963
3988
|
/*smsCode*/
|
|
3964
3989
|
e[1]
|
|
@@ -3994,20 +4019,20 @@ function ui(e) {
|
|
|
3994
4019
|
32 && a !== (a = /*$_*/
|
|
3995
4020
|
p[5]("code") + "") && F(s, a), C & /*smsCode*/
|
|
3996
4021
|
2 && c.value !== /*smsCode*/
|
|
3997
|
-
p[1] &&
|
|
4022
|
+
p[1] && Ye(
|
|
3998
4023
|
c,
|
|
3999
4024
|
/*smsCode*/
|
|
4000
4025
|
p[1]
|
|
4001
4026
|
), /*isSmsValid*/
|
|
4002
|
-
p[2] ? w && (w.d(1), w = null) : w ? w.p(p, C) : (w =
|
|
4027
|
+
p[2] ? w && (w.d(1), w = null) : w ? w.p(p, C) : (w = pt(p), w.c(), w.m(i, null)), C & /*isSmsValid*/
|
|
4003
4028
|
4 && g !== (g = "Field SmsVerificationField " + (/*isSmsValid*/
|
|
4004
4029
|
p[2] ? "" : "InvalidField")) && A(i, "class", g), /*timer*/
|
|
4005
|
-
p[3] ? P ? P.p(p, C) : (P =
|
|
4030
|
+
p[3] ? P ? P.p(p, C) : (P = bt(p), P.c(), P.m(t, _)) : P && (P.d(1), P = null), C & /*$_*/
|
|
4006
4031
|
32 && H !== (H = /*$_*/
|
|
4007
4032
|
p[5]("activate") + "") && F(L, H), C & /*$_*/
|
|
4008
4033
|
32 && N !== (N = /*$_*/
|
|
4009
4034
|
p[5]("resend") + "") && F(D, N), /*timer*/
|
|
4010
|
-
p[3] ? f ? f.p(p, C) : (f =
|
|
4035
|
+
p[3] ? f ? f.p(p, C) : (f = gt(p), f.c(), f.m(S, null)) : f && (f.d(1), f = null), C & /*timer*/
|
|
4011
4036
|
8 && (S.disabled = /*timer*/
|
|
4012
4037
|
p[3]);
|
|
4013
4038
|
},
|
|
@@ -4018,23 +4043,23 @@ function ui(e) {
|
|
|
4018
4043
|
}
|
|
4019
4044
|
};
|
|
4020
4045
|
}
|
|
4021
|
-
function
|
|
4046
|
+
function hi(e, t, r) {
|
|
4022
4047
|
let n;
|
|
4023
|
-
|
|
4048
|
+
Wt(e, ti, (f) => r(5, n = f));
|
|
4024
4049
|
let { endpoint: i = "" } = t, { tokenid: o = "" } = t, { playerid: a = "" } = t, { smstemplate: s = "Please use this code {0} to activate your accout" } = t, { number: h = "" } = t, { mbsource: u } = t, { clientstyling: l = "" } = t, { clientstylingurl: c = "" } = t, { translationurl: d = "" } = t, g, y = !0, _ = !1, T, H, L = +localStorage.getItem("smsTimer") || 0, B = Date.now() / 1e3 - L, S = 60 - Math.floor(B);
|
|
4025
4050
|
const N = { numeric: /^[0-9]{0,6}$/ };
|
|
4026
|
-
|
|
4051
|
+
ri({ withLocale: "en", translations: {} });
|
|
4027
4052
|
const D = () => {
|
|
4028
4053
|
fetch(d).then((p) => p.json()).then((p) => {
|
|
4029
4054
|
Object.keys(p).forEach((C) => {
|
|
4030
|
-
|
|
4055
|
+
dt(C, p[C]);
|
|
4031
4056
|
});
|
|
4032
4057
|
}).catch((p) => {
|
|
4033
4058
|
console.log(p);
|
|
4034
4059
|
});
|
|
4035
4060
|
};
|
|
4036
|
-
Object.keys(
|
|
4037
|
-
|
|
4061
|
+
Object.keys(mt).forEach((f) => {
|
|
4062
|
+
dt(f, mt[f]);
|
|
4038
4063
|
});
|
|
4039
4064
|
const j = async () => {
|
|
4040
4065
|
try {
|
|
@@ -4093,7 +4118,7 @@ function li(e, t, r) {
|
|
|
4093
4118
|
}, V = (f) => {
|
|
4094
4119
|
!N.numeric.test(f.key) && f.keyCode !== 8 && f.keyCode !== 9 && f.keyCode !== 46 && f.preventDefault();
|
|
4095
4120
|
};
|
|
4096
|
-
|
|
4121
|
+
er(() => {
|
|
4097
4122
|
if (!a || !h) {
|
|
4098
4123
|
let f = JSON.parse(localStorage.getItem("playerData"));
|
|
4099
4124
|
r(10, a = f.playerid), r(11, h = f.number);
|
|
@@ -4106,7 +4131,7 @@ function li(e, t, r) {
|
|
|
4106
4131
|
}
|
|
4107
4132
|
const w = (f) => V(f);
|
|
4108
4133
|
function P(f) {
|
|
4109
|
-
|
|
4134
|
+
Oe[f ? "unshift" : "push"](() => {
|
|
4110
4135
|
H = f, r(0, H);
|
|
4111
4136
|
});
|
|
4112
4137
|
}
|
|
@@ -4115,9 +4140,9 @@ function li(e, t, r) {
|
|
|
4115
4140
|
}, e.$$.update = () => {
|
|
4116
4141
|
e.$$.dirty & /*tokenid, playerid, endpoint*/
|
|
4117
4142
|
5632, e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4118
|
-
32769 && l && H &&
|
|
4119
|
-
65537 && c && H &&
|
|
4120
|
-
16385 && u && H &&
|
|
4143
|
+
32769 && l && H && ni(H, l), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4144
|
+
65537 && c && H && ii(H, c), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4145
|
+
16385 && u && H && oi(H, `${u}.Style`), e.$$.dirty & /*translationurl*/
|
|
4121
4146
|
131072 && d && D();
|
|
4122
4147
|
}, [
|
|
4123
4148
|
H,
|
|
@@ -4143,14 +4168,14 @@ function li(e, t, r) {
|
|
|
4143
4168
|
P
|
|
4144
4169
|
];
|
|
4145
4170
|
}
|
|
4146
|
-
class
|
|
4171
|
+
class ci extends fr {
|
|
4147
4172
|
constructor(t) {
|
|
4148
|
-
super(),
|
|
4173
|
+
super(), hr(
|
|
4149
4174
|
this,
|
|
4150
4175
|
t,
|
|
4176
|
+
hi,
|
|
4151
4177
|
li,
|
|
4152
|
-
|
|
4153
|
-
gt,
|
|
4178
|
+
yt,
|
|
4154
4179
|
{
|
|
4155
4180
|
endpoint: 12,
|
|
4156
4181
|
tokenid: 9,
|
|
@@ -4162,7 +4187,7 @@ class hi extends hr {
|
|
|
4162
4187
|
clientstylingurl: 16,
|
|
4163
4188
|
translationurl: 17
|
|
4164
4189
|
},
|
|
4165
|
-
|
|
4190
|
+
si
|
|
4166
4191
|
);
|
|
4167
4192
|
}
|
|
4168
4193
|
get endpoint() {
|
|
@@ -4220,7 +4245,7 @@ class hi extends hr {
|
|
|
4220
4245
|
this.$$set({ translationurl: t }), $();
|
|
4221
4246
|
}
|
|
4222
4247
|
}
|
|
4223
|
-
|
|
4248
|
+
cr(ci, { endpoint: {}, tokenid: {}, playerid: {}, smstemplate: {}, number: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4224
4249
|
export {
|
|
4225
|
-
|
|
4250
|
+
ci as G
|
|
4226
4251
|
};
|