@everymatrix/general-player-sms-verification-form 1.55.0 → 1.56.0
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-Ba2loy8y.js → GeneralPlayerSmsVerificationForm-BEOcOn2l.js} +817 -803
- package/components/{GeneralPlayerSmsVerificationForm-Bocty56w.js → GeneralPlayerSmsVerificationForm-CXRbl8PW.js} +802 -788
- package/components/GeneralPlayerSmsVerificationForm-LLMx2Emm.cjs +3 -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-CFar80th.cjs +0 -3
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
function
|
|
1
|
+
function U() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function bt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Je() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function ne(e) {
|
|
10
|
+
e.forEach(bt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function ze(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function gt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Vt(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function vt(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const n of t)
|
|
24
24
|
n(void 0);
|
|
25
|
-
return
|
|
25
|
+
return U;
|
|
26
26
|
}
|
|
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 Xt(e, t, r) {
|
|
31
|
+
e.$$.on_destroy.push(vt(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 = Wt(e);
|
|
38
38
|
if (!n.getElementById(t)) {
|
|
39
|
-
const i =
|
|
40
|
-
i.id = t, i.textContent = r,
|
|
39
|
+
const i = O("style");
|
|
40
|
+
i.id = t, i.textContent = r, Zt(n, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function Wt(e) {
|
|
44
44
|
if (!e) return document;
|
|
45
45
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
46
46
|
return t && /** @type {ShadowRoot} */
|
|
@@ -49,7 +49,7 @@ function Qt(e) {
|
|
|
49
49
|
t
|
|
50
50
|
) : e.ownerDocument;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Zt(e, t) {
|
|
53
53
|
return E(
|
|
54
54
|
/** @type {Document} */
|
|
55
55
|
e.head || e,
|
|
@@ -62,32 +62,32 @@ function W(e, t, r) {
|
|
|
62
62
|
function k(e) {
|
|
63
63
|
e.parentNode && e.parentNode.removeChild(e);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function O(e) {
|
|
66
66
|
return document.createElement(e);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function M(e) {
|
|
69
69
|
return document.createTextNode(e);
|
|
70
70
|
}
|
|
71
71
|
function X() {
|
|
72
|
-
return
|
|
72
|
+
return M(" ");
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function pe(e, t, r, n) {
|
|
75
75
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
76
76
|
}
|
|
77
77
|
function A(e, t, r) {
|
|
78
78
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function Jt(e) {
|
|
81
81
|
return Array.from(e.childNodes);
|
|
82
82
|
}
|
|
83
83
|
function F(e, t) {
|
|
84
84
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
85
85
|
t);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function Qe(e, t) {
|
|
88
88
|
e.value = t ?? "";
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function Qt(e) {
|
|
91
91
|
const t = {};
|
|
92
92
|
return e.childNodes.forEach(
|
|
93
93
|
/** @param {Element} node */
|
|
@@ -96,93 +96,93 @@ function Kt(e) {
|
|
|
96
96
|
}
|
|
97
97
|
), t;
|
|
98
98
|
}
|
|
99
|
-
let
|
|
100
|
-
function
|
|
101
|
-
|
|
99
|
+
let fe;
|
|
100
|
+
function ce(e) {
|
|
101
|
+
fe = e;
|
|
102
102
|
}
|
|
103
|
+
function qt() {
|
|
104
|
+
if (!fe) throw new Error("Function called outside component initialization");
|
|
105
|
+
return fe;
|
|
106
|
+
}
|
|
107
|
+
function Yt(e) {
|
|
108
|
+
qt().$$.on_mount.push(e);
|
|
109
|
+
}
|
|
110
|
+
const q = [], Me = [];
|
|
111
|
+
let Y = [];
|
|
112
|
+
const qe = [], Kt = /* @__PURE__ */ Promise.resolve();
|
|
113
|
+
let Le = !1;
|
|
103
114
|
function er() {
|
|
104
|
-
|
|
105
|
-
return ce;
|
|
115
|
+
Le || (Le = !0, Kt.then($));
|
|
106
116
|
}
|
|
107
|
-
function
|
|
108
|
-
|
|
109
|
-
}
|
|
110
|
-
const
|
|
111
|
-
let
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
function nr() {
|
|
115
|
-
Re || (Re = !0, rr.then(D));
|
|
116
|
-
}
|
|
117
|
-
function $e(e) {
|
|
118
|
-
ee.push(e);
|
|
119
|
-
}
|
|
120
|
-
const we = /* @__PURE__ */ new Set();
|
|
121
|
-
let q = 0;
|
|
122
|
-
function D() {
|
|
123
|
-
if (q !== 0)
|
|
117
|
+
function Re(e) {
|
|
118
|
+
Y.push(e);
|
|
119
|
+
}
|
|
120
|
+
const Be = /* @__PURE__ */ new Set();
|
|
121
|
+
let J = 0;
|
|
122
|
+
function $() {
|
|
123
|
+
if (J !== 0)
|
|
124
124
|
return;
|
|
125
|
-
const e =
|
|
125
|
+
const e = fe;
|
|
126
126
|
do {
|
|
127
127
|
try {
|
|
128
|
-
for (;
|
|
129
|
-
const t =
|
|
130
|
-
|
|
128
|
+
for (; J < q.length; ) {
|
|
129
|
+
const t = q[J];
|
|
130
|
+
J++, ce(t), tr(t.$$);
|
|
131
131
|
}
|
|
132
132
|
} catch (t) {
|
|
133
|
-
throw
|
|
133
|
+
throw q.length = 0, J = 0, t;
|
|
134
134
|
}
|
|
135
|
-
for (
|
|
136
|
-
for (let t = 0; t <
|
|
137
|
-
const r =
|
|
138
|
-
|
|
135
|
+
for (ce(null), q.length = 0, J = 0; Me.length; ) Me.pop()();
|
|
136
|
+
for (let t = 0; t < Y.length; t += 1) {
|
|
137
|
+
const r = Y[t];
|
|
138
|
+
Be.has(r) || (Be.add(r), r());
|
|
139
139
|
}
|
|
140
|
-
|
|
141
|
-
} while (
|
|
142
|
-
for (;
|
|
143
|
-
|
|
144
|
-
|
|
140
|
+
Y.length = 0;
|
|
141
|
+
} while (q.length);
|
|
142
|
+
for (; qe.length; )
|
|
143
|
+
qe.pop()();
|
|
144
|
+
Le = !1, Be.clear(), ce(e);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function tr(e) {
|
|
147
147
|
if (e.fragment !== null) {
|
|
148
|
-
e.update(),
|
|
148
|
+
e.update(), ne(e.before_update);
|
|
149
149
|
const t = e.dirty;
|
|
150
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
150
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Re);
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function rr(e) {
|
|
154
154
|
const t = [], r = [];
|
|
155
|
-
|
|
155
|
+
Y.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Y = t;
|
|
156
156
|
}
|
|
157
|
-
const
|
|
158
|
-
function
|
|
159
|
-
e && e.i && (
|
|
157
|
+
const nr = /* @__PURE__ */ new Set();
|
|
158
|
+
function ir(e, t) {
|
|
159
|
+
e && e.i && (nr.delete(e), e.i(t));
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function or(e, t, r) {
|
|
162
162
|
const { fragment: n, after_update: i } = e.$$;
|
|
163
|
-
n && n.m(t, r),
|
|
164
|
-
const o = e.$$.on_mount.map(
|
|
165
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
166
|
-
}), i.forEach(
|
|
163
|
+
n && n.m(t, r), Re(() => {
|
|
164
|
+
const o = e.$$.on_mount.map(bt).filter(ze);
|
|
165
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ne(o), e.$$.on_mount = [];
|
|
166
|
+
}), i.forEach(Re);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function sr(e, t) {
|
|
169
169
|
const r = e.$$;
|
|
170
|
-
r.fragment !== null && (
|
|
170
|
+
r.fragment !== null && (rr(r.after_update), ne(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
171
171
|
}
|
|
172
|
-
function
|
|
173
|
-
e.$$.dirty[0] === -1 && (
|
|
172
|
+
function ar(e, t) {
|
|
173
|
+
e.$$.dirty[0] === -1 && (q.push(e), er(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
174
174
|
}
|
|
175
|
-
function
|
|
176
|
-
const h =
|
|
177
|
-
|
|
175
|
+
function ur(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
176
|
+
const h = fe;
|
|
177
|
+
ce(e);
|
|
178
178
|
const u = e.$$ = {
|
|
179
179
|
fragment: null,
|
|
180
180
|
ctx: [],
|
|
181
181
|
// state
|
|
182
182
|
props: o,
|
|
183
|
-
update:
|
|
183
|
+
update: U,
|
|
184
184
|
not_equal: i,
|
|
185
|
-
bound:
|
|
185
|
+
bound: Je(),
|
|
186
186
|
// lifecycle
|
|
187
187
|
on_mount: [],
|
|
188
188
|
on_destroy: [],
|
|
@@ -191,28 +191,28 @@ function cr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
191
191
|
after_update: [],
|
|
192
192
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
193
193
|
// everything else
|
|
194
|
-
callbacks:
|
|
194
|
+
callbacks: Je(),
|
|
195
195
|
dirty: s,
|
|
196
196
|
skip_bound: !1,
|
|
197
197
|
root: t.target || h.$$.root
|
|
198
198
|
};
|
|
199
199
|
a && a(u.root);
|
|
200
200
|
let l = !1;
|
|
201
|
-
if (u.ctx = r ? r(e, t.props || {}, (
|
|
202
|
-
const
|
|
203
|
-
return u.ctx && i(u.ctx[
|
|
204
|
-
}) : [], u.update(), l = !0,
|
|
201
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, d, ...g) => {
|
|
202
|
+
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 && ar(e, c)), d;
|
|
204
|
+
}) : [], u.update(), l = !0, ne(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
205
205
|
if (t.hydrate) {
|
|
206
|
-
const
|
|
207
|
-
u.fragment && u.fragment.l(
|
|
206
|
+
const c = Jt(t.target);
|
|
207
|
+
u.fragment && u.fragment.l(c), c.forEach(k);
|
|
208
208
|
} else
|
|
209
209
|
u.fragment && u.fragment.c();
|
|
210
|
-
t.intro &&
|
|
210
|
+
t.intro && ir(e.$$.fragment), or(e, t.target, t.anchor), $();
|
|
211
211
|
}
|
|
212
|
-
|
|
212
|
+
ce(h);
|
|
213
213
|
}
|
|
214
|
-
let
|
|
215
|
-
typeof HTMLElement == "function" && (
|
|
214
|
+
let yt;
|
|
215
|
+
typeof HTMLElement == "function" && (yt = class extends HTMLElement {
|
|
216
216
|
/** The Svelte component constructor */
|
|
217
217
|
$$ctor;
|
|
218
218
|
/** Slots */
|
|
@@ -254,7 +254,7 @@ typeof HTMLElement == "function" && (_t = class extends HTMLElement {
|
|
|
254
254
|
let o;
|
|
255
255
|
return {
|
|
256
256
|
c: function() {
|
|
257
|
-
o =
|
|
257
|
+
o = O("slot"), i !== "default" && A(o, "name", i);
|
|
258
258
|
},
|
|
259
259
|
/**
|
|
260
260
|
* @param {HTMLElement} target
|
|
@@ -271,12 +271,12 @@ typeof HTMLElement == "function" && (_t = class extends HTMLElement {
|
|
|
271
271
|
};
|
|
272
272
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
273
273
|
return;
|
|
274
|
-
const t = {}, r =
|
|
274
|
+
const t = {}, r = Qt(this);
|
|
275
275
|
for (const i of this.$$s)
|
|
276
276
|
i in r && (t[i] = [e(i)]);
|
|
277
277
|
for (const i of this.attributes) {
|
|
278
278
|
const o = this.$$g_p(i.name);
|
|
279
|
-
o in this.$$d || (this.$$d[o] =
|
|
279
|
+
o in this.$$d || (this.$$d[o] = ge(o, i.value, this.$$p_d, "toProp"));
|
|
280
280
|
}
|
|
281
281
|
for (const i in this.$$p_d)
|
|
282
282
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -294,7 +294,7 @@ typeof HTMLElement == "function" && (_t = class extends HTMLElement {
|
|
|
294
294
|
this.$$r = !0;
|
|
295
295
|
for (const i in this.$$p_d)
|
|
296
296
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
297
|
-
const o =
|
|
297
|
+
const o = ge(
|
|
298
298
|
i,
|
|
299
299
|
this.$$d[i],
|
|
300
300
|
this.$$p_d,
|
|
@@ -316,7 +316,7 @@ typeof HTMLElement == "function" && (_t = class extends HTMLElement {
|
|
|
316
316
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
317
317
|
// and setting attributes through setAttribute etc, this is helpful
|
|
318
318
|
attributeChangedCallback(e, t, r) {
|
|
319
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
319
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ge(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
320
320
|
}
|
|
321
321
|
disconnectedCallback() {
|
|
322
322
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -329,7 +329,7 @@ typeof HTMLElement == "function" && (_t = class extends HTMLElement {
|
|
|
329
329
|
) || e;
|
|
330
330
|
}
|
|
331
331
|
});
|
|
332
|
-
function
|
|
332
|
+
function ge(e, t, r, n) {
|
|
333
333
|
const i = r[e]?.type;
|
|
334
334
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
335
335
|
return t;
|
|
@@ -358,8 +358,8 @@ function ve(e, t, r, n) {
|
|
|
358
358
|
return t;
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
|
-
function
|
|
362
|
-
let a = class extends
|
|
361
|
+
function lr(e, t, r, n, i, o) {
|
|
362
|
+
let a = class extends yt {
|
|
363
363
|
constructor() {
|
|
364
364
|
super(e, r, i), this.$$p_d = t;
|
|
365
365
|
}
|
|
@@ -375,7 +375,7 @@ function fr(e, t, r, n, i, o) {
|
|
|
375
375
|
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
376
376
|
},
|
|
377
377
|
set(h) {
|
|
378
|
-
h =
|
|
378
|
+
h = ge(s, h, t), this.$$d[s] = h, this.$$c?.$set({ [s]: h });
|
|
379
379
|
}
|
|
380
380
|
});
|
|
381
381
|
}), n.forEach((s) => {
|
|
@@ -387,7 +387,7 @@ function fr(e, t, r, n, i, o) {
|
|
|
387
387
|
}), e.element = /** @type {any} */
|
|
388
388
|
a, a;
|
|
389
389
|
}
|
|
390
|
-
class
|
|
390
|
+
class hr {
|
|
391
391
|
/**
|
|
392
392
|
* ### PRIVATE API
|
|
393
393
|
*
|
|
@@ -406,7 +406,7 @@ class dr {
|
|
|
406
406
|
$$set = void 0;
|
|
407
407
|
/** @returns {void} */
|
|
408
408
|
$destroy() {
|
|
409
|
-
|
|
409
|
+
sr(this, 1), this.$destroy = U;
|
|
410
410
|
}
|
|
411
411
|
/**
|
|
412
412
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -415,8 +415,8 @@ class dr {
|
|
|
415
415
|
* @returns {() => void}
|
|
416
416
|
*/
|
|
417
417
|
$on(t, r) {
|
|
418
|
-
if (!
|
|
419
|
-
return
|
|
418
|
+
if (!ze(r))
|
|
419
|
+
return U;
|
|
420
420
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
421
421
|
return n.push(r), () => {
|
|
422
422
|
const i = n.indexOf(r);
|
|
@@ -428,63 +428,63 @@ class dr {
|
|
|
428
428
|
* @returns {void}
|
|
429
429
|
*/
|
|
430
430
|
$set(t) {
|
|
431
|
-
this.$$set && !
|
|
431
|
+
this.$$set && !Vt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
|
-
const
|
|
435
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
436
|
-
const
|
|
437
|
-
function
|
|
434
|
+
const cr = "4";
|
|
435
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(cr);
|
|
436
|
+
const Q = [];
|
|
437
|
+
function fr(e, t) {
|
|
438
438
|
return {
|
|
439
|
-
subscribe:
|
|
439
|
+
subscribe: _e(e, t).subscribe
|
|
440
440
|
};
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function _e(e, t = U) {
|
|
443
443
|
let r;
|
|
444
444
|
const n = /* @__PURE__ */ new Set();
|
|
445
445
|
function i(s) {
|
|
446
|
-
if (
|
|
447
|
-
const h = !
|
|
446
|
+
if (gt(e, s) && (e = s, r)) {
|
|
447
|
+
const h = !Q.length;
|
|
448
448
|
for (const u of n)
|
|
449
|
-
u[1](),
|
|
449
|
+
u[1](), Q.push(u, e);
|
|
450
450
|
if (h) {
|
|
451
|
-
for (let u = 0; u <
|
|
452
|
-
|
|
453
|
-
|
|
451
|
+
for (let u = 0; u < Q.length; u += 2)
|
|
452
|
+
Q[u][0](Q[u + 1]);
|
|
453
|
+
Q.length = 0;
|
|
454
454
|
}
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
457
|
function o(s) {
|
|
458
458
|
i(s(e));
|
|
459
459
|
}
|
|
460
|
-
function a(s, h =
|
|
460
|
+
function a(s, h = U) {
|
|
461
461
|
const u = [s, h];
|
|
462
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
462
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || U), s(e), () => {
|
|
463
463
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
464
464
|
};
|
|
465
465
|
}
|
|
466
466
|
return { set: i, update: o, subscribe: a };
|
|
467
467
|
}
|
|
468
|
-
function
|
|
468
|
+
function ie(e, t, r) {
|
|
469
469
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
470
470
|
if (!i.every(Boolean))
|
|
471
471
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
472
472
|
const o = t.length < 2;
|
|
473
|
-
return
|
|
473
|
+
return fr(r, (a, s) => {
|
|
474
474
|
let h = !1;
|
|
475
475
|
const u = [];
|
|
476
|
-
let l = 0,
|
|
476
|
+
let l = 0, c = U;
|
|
477
477
|
const d = () => {
|
|
478
478
|
if (l)
|
|
479
479
|
return;
|
|
480
|
-
|
|
481
|
-
const
|
|
482
|
-
o ? a(
|
|
483
|
-
},
|
|
484
|
-
(
|
|
485
|
-
|
|
486
|
-
(
|
|
487
|
-
u[_] =
|
|
480
|
+
c();
|
|
481
|
+
const y = t(n ? u[0] : u, a, s);
|
|
482
|
+
o ? a(y) : c = ze(y) ? y : U;
|
|
483
|
+
}, g = i.map(
|
|
484
|
+
(y, _) => vt(
|
|
485
|
+
y,
|
|
486
|
+
(T) => {
|
|
487
|
+
u[_] = T, l &= ~(1 << _), h && d();
|
|
488
488
|
},
|
|
489
489
|
() => {
|
|
490
490
|
l |= 1 << _;
|
|
@@ -492,110 +492,110 @@ function se(e, t, r) {
|
|
|
492
492
|
)
|
|
493
493
|
);
|
|
494
494
|
return h = !0, d(), function() {
|
|
495
|
-
|
|
495
|
+
ne(g), c(), h = !1;
|
|
496
496
|
};
|
|
497
497
|
});
|
|
498
498
|
}
|
|
499
|
-
function
|
|
499
|
+
function dr(e) {
|
|
500
500
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
501
501
|
}
|
|
502
|
-
var
|
|
503
|
-
return
|
|
502
|
+
var mr = function(t) {
|
|
503
|
+
return pr(t) && !br(t);
|
|
504
504
|
};
|
|
505
|
-
function
|
|
505
|
+
function pr(e) {
|
|
506
506
|
return !!e && typeof e == "object";
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function br(e) {
|
|
509
509
|
var t = Object.prototype.toString.call(e);
|
|
510
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
510
|
+
return t === "[object RegExp]" || t === "[object Date]" || yr(e);
|
|
511
511
|
}
|
|
512
|
-
var
|
|
513
|
-
function
|
|
514
|
-
return e.$$typeof ===
|
|
512
|
+
var gr = typeof Symbol == "function" && Symbol.for, vr = gr ? Symbol.for("react.element") : 60103;
|
|
513
|
+
function yr(e) {
|
|
514
|
+
return e.$$typeof === vr;
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function Er(e) {
|
|
517
517
|
return Array.isArray(e) ? [] : {};
|
|
518
518
|
}
|
|
519
|
-
function
|
|
520
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
519
|
+
function de(e, t) {
|
|
520
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? K(Er(e), e, t) : e;
|
|
521
521
|
}
|
|
522
|
-
function
|
|
522
|
+
function xr(e, t, r) {
|
|
523
523
|
return e.concat(t).map(function(n) {
|
|
524
|
-
return
|
|
524
|
+
return de(n, r);
|
|
525
525
|
});
|
|
526
526
|
}
|
|
527
|
-
function
|
|
527
|
+
function _r(e, t) {
|
|
528
528
|
if (!t.customMerge)
|
|
529
|
-
return
|
|
529
|
+
return K;
|
|
530
530
|
var r = t.customMerge(e);
|
|
531
|
-
return typeof r == "function" ? r :
|
|
531
|
+
return typeof r == "function" ? r : K;
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function Sr(e) {
|
|
534
534
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
535
535
|
return Object.propertyIsEnumerable.call(e, t);
|
|
536
536
|
}) : [];
|
|
537
537
|
}
|
|
538
|
-
function
|
|
539
|
-
return Object.keys(e).concat(
|
|
538
|
+
function Ye(e) {
|
|
539
|
+
return Object.keys(e).concat(Sr(e));
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function Et(e, t) {
|
|
542
542
|
try {
|
|
543
543
|
return t in e;
|
|
544
544
|
} catch {
|
|
545
545
|
return !1;
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
|
-
function
|
|
549
|
-
return
|
|
548
|
+
function Tr(e, t) {
|
|
549
|
+
return Et(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
550
550
|
}
|
|
551
|
-
function
|
|
551
|
+
function Hr(e, t, r) {
|
|
552
552
|
var n = {};
|
|
553
|
-
return r.isMergeableObject(e) &&
|
|
554
|
-
n[i] =
|
|
555
|
-
}),
|
|
556
|
-
|
|
553
|
+
return r.isMergeableObject(e) && Ye(e).forEach(function(i) {
|
|
554
|
+
n[i] = de(e[i], r);
|
|
555
|
+
}), Ye(t).forEach(function(i) {
|
|
556
|
+
Tr(e, i) || (Et(e, i) && r.isMergeableObject(t[i]) ? n[i] = _r(i, r)(e[i], t[i], r) : n[i] = de(t[i], r));
|
|
557
557
|
}), n;
|
|
558
558
|
}
|
|
559
|
-
function
|
|
560
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
559
|
+
function K(e, t, r) {
|
|
560
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || xr, r.isMergeableObject = r.isMergeableObject || mr, r.cloneUnlessOtherwiseSpecified = de;
|
|
561
561
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
562
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
562
|
+
return o ? n ? r.arrayMerge(e, t, r) : Hr(e, t, r) : de(t, r);
|
|
563
563
|
}
|
|
564
|
-
|
|
564
|
+
K.all = function(t, r) {
|
|
565
565
|
if (!Array.isArray(t))
|
|
566
566
|
throw new Error("first argument should be an array");
|
|
567
567
|
return t.reduce(function(n, i) {
|
|
568
|
-
return
|
|
568
|
+
return K(n, i, r);
|
|
569
569
|
}, {});
|
|
570
570
|
};
|
|
571
|
-
var
|
|
572
|
-
const
|
|
573
|
-
var
|
|
574
|
-
return
|
|
571
|
+
var Ar = K, Br = Ar;
|
|
572
|
+
const wr = /* @__PURE__ */ dr(Br);
|
|
573
|
+
var $e = function(e, t) {
|
|
574
|
+
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
575
575
|
r.__proto__ = n;
|
|
576
576
|
} || function(r, n) {
|
|
577
577
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
578
|
-
},
|
|
578
|
+
}, $e(e, t);
|
|
579
579
|
};
|
|
580
|
-
function
|
|
580
|
+
function Se(e, t) {
|
|
581
581
|
if (typeof t != "function" && t !== null)
|
|
582
582
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
583
|
-
|
|
583
|
+
$e(e, t);
|
|
584
584
|
function r() {
|
|
585
585
|
this.constructor = e;
|
|
586
586
|
}
|
|
587
587
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
588
588
|
}
|
|
589
|
-
var
|
|
590
|
-
return
|
|
589
|
+
var v = function() {
|
|
590
|
+
return v = Object.assign || function(t) {
|
|
591
591
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
592
592
|
r = arguments[n];
|
|
593
593
|
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
594
594
|
}
|
|
595
595
|
return t;
|
|
596
|
-
},
|
|
596
|
+
}, v.apply(this, arguments);
|
|
597
597
|
};
|
|
598
|
-
function
|
|
598
|
+
function Pr(e, t) {
|
|
599
599
|
var r = {};
|
|
600
600
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
601
601
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -603,61 +603,59 @@ function Nr(e, t) {
|
|
|
603
603
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
604
604
|
return r;
|
|
605
605
|
}
|
|
606
|
-
function
|
|
606
|
+
function we(e, t, r) {
|
|
607
607
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
|
|
608
608
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
609
609
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
610
610
|
}
|
|
611
|
-
function
|
|
612
|
-
var r = t && t.cache ? t.cache :
|
|
611
|
+
function Pe(e, t) {
|
|
612
|
+
var r = t && t.cache ? t.cache : Rr, n = t && t.serializer ? t.serializer : Mr, i = t && t.strategy ? t.strategy : Nr;
|
|
613
613
|
return i(e, {
|
|
614
614
|
cache: r,
|
|
615
615
|
serializer: n
|
|
616
616
|
});
|
|
617
617
|
}
|
|
618
|
-
function
|
|
618
|
+
function Cr(e) {
|
|
619
619
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
620
620
|
}
|
|
621
|
-
function
|
|
622
|
-
var i =
|
|
621
|
+
function Ir(e, t, r, n) {
|
|
622
|
+
var i = Cr(n) ? n : r(n), o = t.get(i);
|
|
623
623
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function xt(e, t, r) {
|
|
626
626
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
627
627
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
628
628
|
}
|
|
629
|
-
function
|
|
629
|
+
function _t(e, t, r, n, i) {
|
|
630
630
|
return r.bind(t, e, n, i);
|
|
631
631
|
}
|
|
632
|
-
function
|
|
633
|
-
var r = e.length === 1 ?
|
|
634
|
-
return
|
|
635
|
-
}
|
|
636
|
-
function Lr(e, t) {
|
|
637
|
-
return Ze(e, this, Ht, t.cache.create(), t.serializer);
|
|
632
|
+
function Nr(e, t) {
|
|
633
|
+
var r = e.length === 1 ? Ir : xt;
|
|
634
|
+
return _t(e, this, r, t.cache.create(), t.serializer);
|
|
638
635
|
}
|
|
639
|
-
function
|
|
640
|
-
return
|
|
636
|
+
function Or(e, t) {
|
|
637
|
+
return _t(e, this, xt, t.cache.create(), t.serializer);
|
|
641
638
|
}
|
|
642
|
-
var
|
|
639
|
+
var Mr = function() {
|
|
643
640
|
return JSON.stringify(arguments);
|
|
644
|
-
}
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
641
|
+
}, Lr = (
|
|
642
|
+
/** @class */
|
|
643
|
+
function() {
|
|
644
|
+
function e() {
|
|
645
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
646
|
+
}
|
|
647
|
+
return e.prototype.get = function(t) {
|
|
648
|
+
return this.cache[t];
|
|
649
|
+
}, e.prototype.set = function(t, r) {
|
|
650
|
+
this.cache[t] = r;
|
|
651
|
+
}, e;
|
|
652
|
+
}()
|
|
653
|
+
), Rr = {
|
|
655
654
|
create: function() {
|
|
656
|
-
return new
|
|
655
|
+
return new Lr();
|
|
657
656
|
}
|
|
658
|
-
},
|
|
659
|
-
variadic:
|
|
660
|
-
monadic: Rr
|
|
657
|
+
}, Ce = {
|
|
658
|
+
variadic: Or
|
|
661
659
|
}, m;
|
|
662
660
|
(function(e) {
|
|
663
661
|
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";
|
|
@@ -666,47 +664,47 @@ var x;
|
|
|
666
664
|
(function(e) {
|
|
667
665
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
668
666
|
})(x || (x = {}));
|
|
669
|
-
var
|
|
667
|
+
var ee;
|
|
670
668
|
(function(e) {
|
|
671
669
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
672
|
-
})(
|
|
673
|
-
function
|
|
670
|
+
})(ee || (ee = {}));
|
|
671
|
+
function Ke(e) {
|
|
674
672
|
return e.type === x.literal;
|
|
675
673
|
}
|
|
676
|
-
function
|
|
674
|
+
function $r(e) {
|
|
677
675
|
return e.type === x.argument;
|
|
678
676
|
}
|
|
679
|
-
function
|
|
677
|
+
function St(e) {
|
|
680
678
|
return e.type === x.number;
|
|
681
679
|
}
|
|
682
|
-
function
|
|
680
|
+
function Tt(e) {
|
|
683
681
|
return e.type === x.date;
|
|
684
682
|
}
|
|
685
|
-
function
|
|
683
|
+
function Ht(e) {
|
|
686
684
|
return e.type === x.time;
|
|
687
685
|
}
|
|
688
|
-
function
|
|
686
|
+
function At(e) {
|
|
689
687
|
return e.type === x.select;
|
|
690
688
|
}
|
|
691
|
-
function
|
|
689
|
+
function Bt(e) {
|
|
692
690
|
return e.type === x.plural;
|
|
693
691
|
}
|
|
694
|
-
function
|
|
692
|
+
function Ur(e) {
|
|
695
693
|
return e.type === x.pound;
|
|
696
694
|
}
|
|
697
|
-
function
|
|
695
|
+
function wt(e) {
|
|
698
696
|
return e.type === x.tag;
|
|
699
697
|
}
|
|
700
|
-
function
|
|
701
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
698
|
+
function Pt(e) {
|
|
699
|
+
return !!(e && typeof e == "object" && e.type === ee.number);
|
|
702
700
|
}
|
|
703
|
-
function
|
|
704
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
701
|
+
function Ue(e) {
|
|
702
|
+
return !!(e && typeof e == "object" && e.type === ee.dateTime);
|
|
705
703
|
}
|
|
706
|
-
var
|
|
707
|
-
function
|
|
704
|
+
var Ct = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Dr = /(?:[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;
|
|
705
|
+
function Fr(e) {
|
|
708
706
|
var t = {};
|
|
709
|
-
return e.replace(
|
|
707
|
+
return e.replace(Dr, function(r) {
|
|
710
708
|
var n = r.length;
|
|
711
709
|
switch (r[0]) {
|
|
712
710
|
case "G":
|
|
@@ -795,36 +793,36 @@ function kr(e) {
|
|
|
795
793
|
return "";
|
|
796
794
|
}), t;
|
|
797
795
|
}
|
|
798
|
-
var
|
|
799
|
-
function
|
|
796
|
+
var Gr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
797
|
+
function kr(e) {
|
|
800
798
|
if (e.length === 0)
|
|
801
799
|
throw new Error("Number skeleton cannot be empty");
|
|
802
|
-
for (var t = e.split(
|
|
800
|
+
for (var t = e.split(Gr).filter(function(d) {
|
|
803
801
|
return d.length > 0;
|
|
804
802
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
805
803
|
var o = i[n], a = o.split("/");
|
|
806
804
|
if (a.length === 0)
|
|
807
805
|
throw new Error("Invalid number skeleton");
|
|
808
806
|
for (var s = a[0], h = a.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
809
|
-
var
|
|
810
|
-
if (
|
|
807
|
+
var c = l[u];
|
|
808
|
+
if (c.length === 0)
|
|
811
809
|
throw new Error("Invalid number skeleton");
|
|
812
810
|
}
|
|
813
811
|
r.push({ stem: s, options: h });
|
|
814
812
|
}
|
|
815
813
|
return r;
|
|
816
814
|
}
|
|
817
|
-
function
|
|
815
|
+
function jr(e) {
|
|
818
816
|
return e.replace(/^(.*?)-/, "");
|
|
819
817
|
}
|
|
820
|
-
var
|
|
821
|
-
function
|
|
818
|
+
var et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, It = /^(@+)?(\+|#+)?[rs]?$/g, Vr = /(\*)(0+)|(#+)(0+)|(0+)/g, Nt = /^(0+)$/;
|
|
819
|
+
function tt(e) {
|
|
822
820
|
var t = {};
|
|
823
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
821
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(It, function(r, n, i) {
|
|
824
822
|
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)), "";
|
|
825
823
|
}), t;
|
|
826
824
|
}
|
|
827
|
-
function
|
|
825
|
+
function Ot(e) {
|
|
828
826
|
switch (e) {
|
|
829
827
|
case "sign-auto":
|
|
830
828
|
return {
|
|
@@ -864,7 +862,7 @@ function Rt(e) {
|
|
|
864
862
|
};
|
|
865
863
|
}
|
|
866
864
|
}
|
|
867
|
-
function
|
|
865
|
+
function Xr(e) {
|
|
868
866
|
var t;
|
|
869
867
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
870
868
|
notation: "engineering"
|
|
@@ -872,17 +870,17 @@ function Wr(e) {
|
|
|
872
870
|
notation: "scientific"
|
|
873
871
|
}, e = e.slice(1)), t) {
|
|
874
872
|
var r = e.slice(0, 2);
|
|
875
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
873
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Nt.test(e))
|
|
876
874
|
throw new Error("Malformed concise eng/scientific notation");
|
|
877
875
|
t.minimumIntegerDigits = e.length;
|
|
878
876
|
}
|
|
879
877
|
return t;
|
|
880
878
|
}
|
|
881
|
-
function
|
|
882
|
-
var t = {}, r =
|
|
879
|
+
function rt(e) {
|
|
880
|
+
var t = {}, r = Ot(e);
|
|
883
881
|
return r || t;
|
|
884
882
|
}
|
|
885
|
-
function
|
|
883
|
+
function zr(e) {
|
|
886
884
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
887
885
|
var i = n[r];
|
|
888
886
|
switch (i.stem) {
|
|
@@ -906,7 +904,7 @@ function Zr(e) {
|
|
|
906
904
|
continue;
|
|
907
905
|
case "measure-unit":
|
|
908
906
|
case "unit":
|
|
909
|
-
t.style = "unit", t.unit =
|
|
907
|
+
t.style = "unit", t.unit = jr(i.options[0]);
|
|
910
908
|
continue;
|
|
911
909
|
case "compact-short":
|
|
912
910
|
case "K":
|
|
@@ -917,13 +915,13 @@ function Zr(e) {
|
|
|
917
915
|
t.notation = "compact", t.compactDisplay = "long";
|
|
918
916
|
continue;
|
|
919
917
|
case "scientific":
|
|
920
|
-
t =
|
|
921
|
-
return
|
|
918
|
+
t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
919
|
+
return v(v({}, h), rt(u));
|
|
922
920
|
}, {}));
|
|
923
921
|
continue;
|
|
924
922
|
case "engineering":
|
|
925
|
-
t =
|
|
926
|
-
return
|
|
923
|
+
t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
924
|
+
return v(v({}, h), rt(u));
|
|
927
925
|
}, {}));
|
|
928
926
|
continue;
|
|
929
927
|
case "notation-simple":
|
|
@@ -968,45 +966,45 @@ function Zr(e) {
|
|
|
968
966
|
case "integer-width":
|
|
969
967
|
if (i.options.length > 1)
|
|
970
968
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
971
|
-
i.options[0].replace(
|
|
969
|
+
i.options[0].replace(Vr, function(h, u, l, c, d, g) {
|
|
972
970
|
if (u)
|
|
973
971
|
t.minimumIntegerDigits = l.length;
|
|
974
972
|
else {
|
|
975
|
-
if (
|
|
973
|
+
if (c && d)
|
|
976
974
|
throw new Error("We currently do not support maximum integer digits");
|
|
977
|
-
if (
|
|
975
|
+
if (g)
|
|
978
976
|
throw new Error("We currently do not support exact integer digits");
|
|
979
977
|
}
|
|
980
978
|
return "";
|
|
981
979
|
});
|
|
982
980
|
continue;
|
|
983
981
|
}
|
|
984
|
-
if (
|
|
982
|
+
if (Nt.test(i.stem)) {
|
|
985
983
|
t.minimumIntegerDigits = i.stem.length;
|
|
986
984
|
continue;
|
|
987
985
|
}
|
|
988
|
-
if (
|
|
986
|
+
if (et.test(i.stem)) {
|
|
989
987
|
if (i.options.length > 1)
|
|
990
988
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
991
|
-
i.stem.replace(
|
|
992
|
-
return l === "*" ? t.minimumFractionDigits = u.length :
|
|
989
|
+
i.stem.replace(et, function(h, u, l, c, d, g) {
|
|
990
|
+
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), "";
|
|
993
991
|
});
|
|
994
992
|
var o = i.options[0];
|
|
995
|
-
o === "w" ? t =
|
|
993
|
+
o === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = v(v({}, t), tt(o)));
|
|
996
994
|
continue;
|
|
997
995
|
}
|
|
998
|
-
if (
|
|
999
|
-
t =
|
|
996
|
+
if (It.test(i.stem)) {
|
|
997
|
+
t = v(v({}, t), tt(i.stem));
|
|
1000
998
|
continue;
|
|
1001
999
|
}
|
|
1002
|
-
var a =
|
|
1003
|
-
a && (t =
|
|
1004
|
-
var s =
|
|
1005
|
-
s && (t =
|
|
1000
|
+
var a = Ot(i.stem);
|
|
1001
|
+
a && (t = v(v({}, t), a));
|
|
1002
|
+
var s = Xr(i.stem);
|
|
1003
|
+
s && (t = v(v({}, t), s));
|
|
1006
1004
|
}
|
|
1007
1005
|
return t;
|
|
1008
1006
|
}
|
|
1009
|
-
var
|
|
1007
|
+
var be = {
|
|
1010
1008
|
"001": [
|
|
1011
1009
|
"H",
|
|
1012
1010
|
"h"
|
|
@@ -2421,13 +2419,13 @@ var ge = {
|
|
|
2421
2419
|
"h"
|
|
2422
2420
|
]
|
|
2423
2421
|
};
|
|
2424
|
-
function
|
|
2422
|
+
function Wr(e, t) {
|
|
2425
2423
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2426
2424
|
var i = e.charAt(n);
|
|
2427
2425
|
if (i === "j") {
|
|
2428
2426
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2429
2427
|
o++, n++;
|
|
2430
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2428
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Zr(t);
|
|
2431
2429
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2432
2430
|
r += h;
|
|
2433
2431
|
for (; a-- > 0; )
|
|
@@ -2436,7 +2434,7 @@ function Jr(e, t) {
|
|
|
2436
2434
|
}
|
|
2437
2435
|
return r;
|
|
2438
2436
|
}
|
|
2439
|
-
function
|
|
2437
|
+
function Zr(e) {
|
|
2440
2438
|
var t = e.hourCycle;
|
|
2441
2439
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2442
2440
|
e.hourCycles && // @ts-ignore
|
|
@@ -2455,23 +2453,23 @@ function Qr(e) {
|
|
|
2455
2453
|
}
|
|
2456
2454
|
var r = e.language, n;
|
|
2457
2455
|
r !== "root" && (n = e.maximize().region);
|
|
2458
|
-
var i =
|
|
2456
|
+
var i = be[n || ""] || be[r || ""] || be["".concat(r, "-001")] || be["001"];
|
|
2459
2457
|
return i[0];
|
|
2460
2458
|
}
|
|
2461
|
-
var
|
|
2462
|
-
function
|
|
2459
|
+
var Ie, Jr = new RegExp("^".concat(Ct.source, "*")), Qr = new RegExp("".concat(Ct.source, "*$"));
|
|
2460
|
+
function b(e, t) {
|
|
2463
2461
|
return { start: e, end: t };
|
|
2464
2462
|
}
|
|
2465
|
-
var
|
|
2463
|
+
var qr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Yr = !!String.fromCodePoint, Kr = !!Object.fromEntries, en = !!String.prototype.codePointAt, tn = !!String.prototype.trimStart, rn = !!String.prototype.trimEnd, nn = !!Number.isSafeInteger, on = nn ? Number.isSafeInteger : function(e) {
|
|
2466
2464
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2467
|
-
},
|
|
2465
|
+
}, De = !0;
|
|
2468
2466
|
try {
|
|
2469
|
-
var
|
|
2470
|
-
|
|
2467
|
+
var sn = Lt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2468
|
+
De = ((Ie = sn.exec("a")) === null || Ie === void 0 ? void 0 : Ie[0]) === "a";
|
|
2471
2469
|
} catch {
|
|
2472
|
-
|
|
2470
|
+
De = !1;
|
|
2473
2471
|
}
|
|
2474
|
-
var
|
|
2472
|
+
var nt = qr ? (
|
|
2475
2473
|
// Native
|
|
2476
2474
|
function(t, r, n) {
|
|
2477
2475
|
return t.startsWith(r, n);
|
|
@@ -2481,7 +2479,7 @@ var st = Kr ? (
|
|
|
2481
2479
|
function(t, r, n) {
|
|
2482
2480
|
return t.slice(n, n + r.length) === r;
|
|
2483
2481
|
}
|
|
2484
|
-
),
|
|
2482
|
+
), Fe = Yr ? String.fromCodePoint : (
|
|
2485
2483
|
// IE11
|
|
2486
2484
|
function() {
|
|
2487
2485
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2493,9 +2491,9 @@ var st = Kr ? (
|
|
|
2493
2491
|
}
|
|
2494
2492
|
return n;
|
|
2495
2493
|
}
|
|
2496
|
-
),
|
|
2494
|
+
), it = (
|
|
2497
2495
|
// native
|
|
2498
|
-
|
|
2496
|
+
Kr ? Object.fromEntries : (
|
|
2499
2497
|
// Ponyfill
|
|
2500
2498
|
function(t) {
|
|
2501
2499
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2505,7 +2503,7 @@ var st = Kr ? (
|
|
|
2505
2503
|
return r;
|
|
2506
2504
|
}
|
|
2507
2505
|
)
|
|
2508
|
-
),
|
|
2506
|
+
), Mt = en ? (
|
|
2509
2507
|
// Native
|
|
2510
2508
|
function(t, r) {
|
|
2511
2509
|
return t.codePointAt(r);
|
|
@@ -2519,7 +2517,7 @@ var st = Kr ? (
|
|
|
2519
2517
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2520
2518
|
}
|
|
2521
2519
|
}
|
|
2522
|
-
),
|
|
2520
|
+
), an = tn ? (
|
|
2523
2521
|
// Native
|
|
2524
2522
|
function(t) {
|
|
2525
2523
|
return t.trimStart();
|
|
@@ -2527,9 +2525,9 @@ var st = Kr ? (
|
|
|
2527
2525
|
) : (
|
|
2528
2526
|
// Ponyfill
|
|
2529
2527
|
function(t) {
|
|
2530
|
-
return t.replace(
|
|
2528
|
+
return t.replace(Jr, "");
|
|
2531
2529
|
}
|
|
2532
|
-
),
|
|
2530
|
+
), un = rn ? (
|
|
2533
2531
|
// Native
|
|
2534
2532
|
function(t) {
|
|
2535
2533
|
return t.trimEnd();
|
|
@@ -2537,32 +2535,32 @@ var st = Kr ? (
|
|
|
2537
2535
|
) : (
|
|
2538
2536
|
// Ponyfill
|
|
2539
2537
|
function(t) {
|
|
2540
|
-
return t.replace(
|
|
2538
|
+
return t.replace(Qr, "");
|
|
2541
2539
|
}
|
|
2542
2540
|
);
|
|
2543
|
-
function
|
|
2541
|
+
function Lt(e, t) {
|
|
2544
2542
|
return new RegExp(e, t);
|
|
2545
2543
|
}
|
|
2546
|
-
var
|
|
2547
|
-
if (
|
|
2548
|
-
var
|
|
2549
|
-
|
|
2544
|
+
var Ge;
|
|
2545
|
+
if (De) {
|
|
2546
|
+
var ot = Lt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2547
|
+
Ge = function(t, r) {
|
|
2550
2548
|
var n;
|
|
2551
|
-
|
|
2552
|
-
var i =
|
|
2549
|
+
ot.lastIndex = r;
|
|
2550
|
+
var i = ot.exec(t);
|
|
2553
2551
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2554
2552
|
};
|
|
2555
2553
|
} else
|
|
2556
|
-
|
|
2554
|
+
Ge = function(t, r) {
|
|
2557
2555
|
for (var n = []; ; ) {
|
|
2558
|
-
var i =
|
|
2559
|
-
if (i === void 0 ||
|
|
2556
|
+
var i = Mt(t, r);
|
|
2557
|
+
if (i === void 0 || Rt(i) || fn(i))
|
|
2560
2558
|
break;
|
|
2561
2559
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2562
2560
|
}
|
|
2563
|
-
return
|
|
2561
|
+
return Fe.apply(void 0, n);
|
|
2564
2562
|
};
|
|
2565
|
-
var
|
|
2563
|
+
var ln = (
|
|
2566
2564
|
/** @class */
|
|
2567
2565
|
function() {
|
|
2568
2566
|
function e(t, r) {
|
|
@@ -2587,13 +2585,13 @@ var cn = (
|
|
|
2587
2585
|
var s = this.clonePosition();
|
|
2588
2586
|
this.bump(), i.push({
|
|
2589
2587
|
type: x.pound,
|
|
2590
|
-
location:
|
|
2588
|
+
location: b(s, this.clonePosition())
|
|
2591
2589
|
});
|
|
2592
2590
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2593
2591
|
if (n)
|
|
2594
2592
|
break;
|
|
2595
|
-
return this.error(m.UNMATCHED_CLOSING_TAG,
|
|
2596
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2593
|
+
return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2594
|
+
} else if (o === 60 && !this.ignoreTag && ke(this.peek() || 0)) {
|
|
2597
2595
|
var a = this.parseTag(t, r);
|
|
2598
2596
|
if (a.err)
|
|
2599
2597
|
return a;
|
|
@@ -2616,7 +2614,7 @@ var cn = (
|
|
|
2616
2614
|
val: {
|
|
2617
2615
|
type: x.literal,
|
|
2618
2616
|
value: "<".concat(i, "/>"),
|
|
2619
|
-
location:
|
|
2617
|
+
location: b(n, this.clonePosition())
|
|
2620
2618
|
},
|
|
2621
2619
|
err: null
|
|
2622
2620
|
};
|
|
@@ -2626,25 +2624,25 @@ var cn = (
|
|
|
2626
2624
|
return o;
|
|
2627
2625
|
var a = o.val, s = this.clonePosition();
|
|
2628
2626
|
if (this.bumpIf("</")) {
|
|
2629
|
-
if (this.isEOF() || !
|
|
2630
|
-
return this.error(m.INVALID_TAG,
|
|
2627
|
+
if (this.isEOF() || !ke(this.char()))
|
|
2628
|
+
return this.error(m.INVALID_TAG, b(s, this.clonePosition()));
|
|
2631
2629
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
2632
|
-
return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG,
|
|
2630
|
+
return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2633
2631
|
val: {
|
|
2634
2632
|
type: x.tag,
|
|
2635
2633
|
value: i,
|
|
2636
2634
|
children: a,
|
|
2637
|
-
location:
|
|
2635
|
+
location: b(n, this.clonePosition())
|
|
2638
2636
|
},
|
|
2639
2637
|
err: null
|
|
2640
|
-
} : this.error(m.INVALID_TAG,
|
|
2638
|
+
} : this.error(m.INVALID_TAG, b(s, this.clonePosition())));
|
|
2641
2639
|
} else
|
|
2642
|
-
return this.error(m.UNCLOSED_TAG,
|
|
2640
|
+
return this.error(m.UNCLOSED_TAG, b(n, this.clonePosition()));
|
|
2643
2641
|
} else
|
|
2644
|
-
return this.error(m.INVALID_TAG,
|
|
2642
|
+
return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
|
|
2645
2643
|
}, e.prototype.parseTagName = function() {
|
|
2646
2644
|
var t = this.offset();
|
|
2647
|
-
for (this.bump(); !this.isEOF() &&
|
|
2645
|
+
for (this.bump(); !this.isEOF() && cn(this.char()); )
|
|
2648
2646
|
this.bump();
|
|
2649
2647
|
return this.message.slice(t, this.offset());
|
|
2650
2648
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2666,14 +2664,14 @@ var cn = (
|
|
|
2666
2664
|
}
|
|
2667
2665
|
break;
|
|
2668
2666
|
}
|
|
2669
|
-
var h =
|
|
2667
|
+
var h = b(n, this.clonePosition());
|
|
2670
2668
|
return {
|
|
2671
2669
|
val: { type: x.literal, value: i, location: h },
|
|
2672
2670
|
err: null
|
|
2673
2671
|
};
|
|
2674
2672
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2675
2673
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2676
|
-
!
|
|
2674
|
+
!hn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2677
2675
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2678
2676
|
if (this.isEOF() || this.char() !== 39)
|
|
2679
2677
|
return null;
|
|
@@ -2707,23 +2705,23 @@ var cn = (
|
|
|
2707
2705
|
r.push(n);
|
|
2708
2706
|
this.bump();
|
|
2709
2707
|
}
|
|
2710
|
-
return
|
|
2708
|
+
return Fe.apply(void 0, r);
|
|
2711
2709
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2712
2710
|
if (this.isEOF())
|
|
2713
2711
|
return null;
|
|
2714
2712
|
var n = this.char();
|
|
2715
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2713
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
|
|
2716
2714
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2717
2715
|
var n = this.clonePosition();
|
|
2718
2716
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2719
|
-
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2717
|
+
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
2720
2718
|
if (this.char() === 125)
|
|
2721
|
-
return this.bump(), this.error(m.EMPTY_ARGUMENT,
|
|
2719
|
+
return this.bump(), this.error(m.EMPTY_ARGUMENT, b(n, this.clonePosition()));
|
|
2722
2720
|
var i = this.parseIdentifierIfPossible().value;
|
|
2723
2721
|
if (!i)
|
|
2724
|
-
return this.error(m.MALFORMED_ARGUMENT,
|
|
2722
|
+
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2725
2723
|
if (this.bumpSpace(), this.isEOF())
|
|
2726
|
-
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2724
|
+
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
2727
2725
|
switch (this.char()) {
|
|
2728
2726
|
case 125:
|
|
2729
2727
|
return this.bump(), {
|
|
@@ -2731,25 +2729,25 @@ var cn = (
|
|
|
2731
2729
|
type: x.argument,
|
|
2732
2730
|
// value does not include the opening and closing braces.
|
|
2733
2731
|
value: i,
|
|
2734
|
-
location:
|
|
2732
|
+
location: b(n, this.clonePosition())
|
|
2735
2733
|
},
|
|
2736
2734
|
err: null
|
|
2737
2735
|
};
|
|
2738
2736
|
case 44:
|
|
2739
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2737
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2740
2738
|
default:
|
|
2741
|
-
return this.error(m.MALFORMED_ARGUMENT,
|
|
2739
|
+
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2742
2740
|
}
|
|
2743
2741
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2744
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2742
|
+
var t = this.clonePosition(), r = this.offset(), n = Ge(this.message, r), i = r + n.length;
|
|
2745
2743
|
this.bumpTo(i);
|
|
2746
|
-
var o = this.clonePosition(), a =
|
|
2744
|
+
var o = this.clonePosition(), a = b(t, o);
|
|
2747
2745
|
return { value: n, location: a };
|
|
2748
2746
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2749
2747
|
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
2750
2748
|
switch (s) {
|
|
2751
2749
|
case "":
|
|
2752
|
-
return this.error(m.EXPECT_ARGUMENT_TYPE,
|
|
2750
|
+
return this.error(m.EXPECT_ARGUMENT_TYPE, b(a, h));
|
|
2753
2751
|
case "number":
|
|
2754
2752
|
case "date":
|
|
2755
2753
|
case "time": {
|
|
@@ -2757,40 +2755,40 @@ var cn = (
|
|
|
2757
2755
|
var u = null;
|
|
2758
2756
|
if (this.bumpIf(",")) {
|
|
2759
2757
|
this.bumpSpace();
|
|
2760
|
-
var l = this.clonePosition(),
|
|
2761
|
-
if (
|
|
2762
|
-
return
|
|
2763
|
-
var d =
|
|
2758
|
+
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2759
|
+
if (c.err)
|
|
2760
|
+
return c;
|
|
2761
|
+
var d = un(c.val);
|
|
2764
2762
|
if (d.length === 0)
|
|
2765
|
-
return this.error(m.EXPECT_ARGUMENT_STYLE,
|
|
2766
|
-
var
|
|
2767
|
-
u = { style: d, styleLocation:
|
|
2763
|
+
return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2764
|
+
var g = b(l, this.clonePosition());
|
|
2765
|
+
u = { style: d, styleLocation: g };
|
|
2768
2766
|
}
|
|
2769
|
-
var
|
|
2770
|
-
if (
|
|
2771
|
-
return
|
|
2772
|
-
var _ =
|
|
2773
|
-
if (u &&
|
|
2774
|
-
var
|
|
2767
|
+
var y = this.tryParseArgumentClose(i);
|
|
2768
|
+
if (y.err)
|
|
2769
|
+
return y;
|
|
2770
|
+
var _ = b(i, this.clonePosition());
|
|
2771
|
+
if (u && nt(u?.style, "::", 0)) {
|
|
2772
|
+
var T = an(u.style.slice(2));
|
|
2775
2773
|
if (s === "number") {
|
|
2776
|
-
var
|
|
2777
|
-
return
|
|
2778
|
-
val: { type: x.number, value: n, location: _, style:
|
|
2774
|
+
var c = this.parseNumberSkeletonFromString(T, u.styleLocation);
|
|
2775
|
+
return c.err ? c : {
|
|
2776
|
+
val: { type: x.number, value: n, location: _, style: c.val },
|
|
2779
2777
|
err: null
|
|
2780
2778
|
};
|
|
2781
2779
|
} else {
|
|
2782
|
-
if (
|
|
2780
|
+
if (T.length === 0)
|
|
2783
2781
|
return this.error(m.EXPECT_DATE_TIME_SKELETON, _);
|
|
2784
|
-
var
|
|
2785
|
-
this.locale && (
|
|
2782
|
+
var H = T;
|
|
2783
|
+
this.locale && (H = Wr(T, this.locale));
|
|
2786
2784
|
var d = {
|
|
2787
|
-
type:
|
|
2788
|
-
pattern:
|
|
2785
|
+
type: ee.dateTime,
|
|
2786
|
+
pattern: H,
|
|
2789
2787
|
location: u.styleLocation,
|
|
2790
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2791
|
-
},
|
|
2788
|
+
parsedOptions: this.shouldParseSkeletons ? Fr(H) : {}
|
|
2789
|
+
}, L = s === "date" ? x.date : x.time;
|
|
2792
2790
|
return {
|
|
2793
|
-
val: { type:
|
|
2791
|
+
val: { type: L, value: n, location: _, style: d },
|
|
2794
2792
|
err: null
|
|
2795
2793
|
};
|
|
2796
2794
|
}
|
|
@@ -2808,32 +2806,32 @@ var cn = (
|
|
|
2808
2806
|
case "plural":
|
|
2809
2807
|
case "selectordinal":
|
|
2810
2808
|
case "select": {
|
|
2811
|
-
var
|
|
2809
|
+
var B = this.clonePosition();
|
|
2812
2810
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2813
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
2811
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(B, v({}, B)));
|
|
2814
2812
|
this.bumpSpace();
|
|
2815
|
-
var
|
|
2816
|
-
if (s !== "select" &&
|
|
2813
|
+
var S = this.parseIdentifierIfPossible(), N = 0;
|
|
2814
|
+
if (s !== "select" && S.value === "offset") {
|
|
2817
2815
|
if (!this.bumpIf(":"))
|
|
2818
|
-
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
2816
|
+
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
2819
2817
|
this.bumpSpace();
|
|
2820
|
-
var
|
|
2821
|
-
if (
|
|
2822
|
-
return
|
|
2823
|
-
this.bumpSpace(),
|
|
2818
|
+
var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2819
|
+
if (c.err)
|
|
2820
|
+
return c;
|
|
2821
|
+
this.bumpSpace(), S = this.parseIdentifierIfPossible(), N = c.val;
|
|
2824
2822
|
}
|
|
2825
|
-
var
|
|
2826
|
-
if (
|
|
2827
|
-
return
|
|
2828
|
-
var
|
|
2829
|
-
if (
|
|
2830
|
-
return
|
|
2831
|
-
var j =
|
|
2823
|
+
var D = this.tryParsePluralOrSelectOptions(t, s, r, S);
|
|
2824
|
+
if (D.err)
|
|
2825
|
+
return D;
|
|
2826
|
+
var y = this.tryParseArgumentClose(i);
|
|
2827
|
+
if (y.err)
|
|
2828
|
+
return y;
|
|
2829
|
+
var j = b(i, this.clonePosition());
|
|
2832
2830
|
return s === "select" ? {
|
|
2833
2831
|
val: {
|
|
2834
2832
|
type: x.select,
|
|
2835
2833
|
value: n,
|
|
2836
|
-
options:
|
|
2834
|
+
options: it(D.val),
|
|
2837
2835
|
location: j
|
|
2838
2836
|
},
|
|
2839
2837
|
err: null
|
|
@@ -2841,8 +2839,8 @@ var cn = (
|
|
|
2841
2839
|
val: {
|
|
2842
2840
|
type: x.plural,
|
|
2843
2841
|
value: n,
|
|
2844
|
-
options:
|
|
2845
|
-
offset:
|
|
2842
|
+
options: it(D.val),
|
|
2843
|
+
offset: N,
|
|
2846
2844
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2847
2845
|
location: j
|
|
2848
2846
|
},
|
|
@@ -2850,10 +2848,10 @@ var cn = (
|
|
|
2850
2848
|
};
|
|
2851
2849
|
}
|
|
2852
2850
|
default:
|
|
2853
|
-
return this.error(m.INVALID_ARGUMENT_TYPE,
|
|
2851
|
+
return this.error(m.INVALID_ARGUMENT_TYPE, b(a, h));
|
|
2854
2852
|
}
|
|
2855
2853
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2856
|
-
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2854
|
+
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2857
2855
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2858
2856
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2859
2857
|
var n = this.char();
|
|
@@ -2862,7 +2860,7 @@ var cn = (
|
|
|
2862
2860
|
this.bump();
|
|
2863
2861
|
var i = this.clonePosition();
|
|
2864
2862
|
if (!this.bumpUntil("'"))
|
|
2865
|
-
return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
2863
|
+
return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
|
|
2866
2864
|
this.bump();
|
|
2867
2865
|
break;
|
|
2868
2866
|
}
|
|
@@ -2892,52 +2890,52 @@ var cn = (
|
|
|
2892
2890
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2893
2891
|
var n = [];
|
|
2894
2892
|
try {
|
|
2895
|
-
n =
|
|
2893
|
+
n = kr(t);
|
|
2896
2894
|
} catch {
|
|
2897
2895
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
|
2898
2896
|
}
|
|
2899
2897
|
return {
|
|
2900
2898
|
val: {
|
|
2901
|
-
type:
|
|
2899
|
+
type: ee.number,
|
|
2902
2900
|
tokens: n,
|
|
2903
2901
|
location: r,
|
|
2904
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2902
|
+
parsedOptions: this.shouldParseSkeletons ? zr(n) : {}
|
|
2905
2903
|
},
|
|
2906
2904
|
err: null
|
|
2907
2905
|
};
|
|
2908
2906
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
2909
2907
|
for (var o, a = !1, s = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
2910
2908
|
if (u.length === 0) {
|
|
2911
|
-
var
|
|
2909
|
+
var c = this.clonePosition();
|
|
2912
2910
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2913
2911
|
var d = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2914
2912
|
if (d.err)
|
|
2915
2913
|
return d;
|
|
2916
|
-
l =
|
|
2914
|
+
l = b(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
2917
2915
|
} else
|
|
2918
2916
|
break;
|
|
2919
2917
|
}
|
|
2920
2918
|
if (h.has(u))
|
|
2921
2919
|
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
2922
2920
|
u === "other" && (a = !0), this.bumpSpace();
|
|
2923
|
-
var
|
|
2921
|
+
var g = this.clonePosition();
|
|
2924
2922
|
if (!this.bumpIf("{"))
|
|
2925
|
-
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
2926
|
-
var
|
|
2927
|
-
if (
|
|
2928
|
-
return
|
|
2929
|
-
var _ = this.tryParseArgumentClose(
|
|
2923
|
+
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
2924
|
+
var y = this.parseMessage(t + 1, r, n);
|
|
2925
|
+
if (y.err)
|
|
2926
|
+
return y;
|
|
2927
|
+
var _ = this.tryParseArgumentClose(g);
|
|
2930
2928
|
if (_.err)
|
|
2931
2929
|
return _;
|
|
2932
2930
|
s.push([
|
|
2933
2931
|
u,
|
|
2934
2932
|
{
|
|
2935
|
-
value:
|
|
2936
|
-
location:
|
|
2933
|
+
value: y.val,
|
|
2934
|
+
location: b(g, this.clonePosition())
|
|
2937
2935
|
}
|
|
2938
2936
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
2939
2937
|
}
|
|
2940
|
-
return s.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
2938
|
+
return s.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(m.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
2941
2939
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
2942
2940
|
var n = 1, i = this.clonePosition();
|
|
2943
2941
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -2948,8 +2946,8 @@ var cn = (
|
|
|
2948
2946
|
else
|
|
2949
2947
|
break;
|
|
2950
2948
|
}
|
|
2951
|
-
var h =
|
|
2952
|
-
return o ? (a *= n,
|
|
2949
|
+
var h = b(i, this.clonePosition());
|
|
2950
|
+
return o ? (a *= n, on(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
|
|
2953
2951
|
}, e.prototype.offset = function() {
|
|
2954
2952
|
return this.position.offset;
|
|
2955
2953
|
}, e.prototype.isEOF = function() {
|
|
@@ -2964,7 +2962,7 @@ var cn = (
|
|
|
2964
2962
|
var t = this.position.offset;
|
|
2965
2963
|
if (t >= this.message.length)
|
|
2966
2964
|
throw Error("out of bound");
|
|
2967
|
-
var r =
|
|
2965
|
+
var r = Mt(this.message, t);
|
|
2968
2966
|
if (r === void 0)
|
|
2969
2967
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
2970
2968
|
return r;
|
|
@@ -2983,7 +2981,7 @@ var cn = (
|
|
|
2983
2981
|
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);
|
|
2984
2982
|
}
|
|
2985
2983
|
}, e.prototype.bumpIf = function(t) {
|
|
2986
|
-
if (
|
|
2984
|
+
if (nt(this.message, t, this.offset())) {
|
|
2987
2985
|
for (var r = 0; r < t.length; r++)
|
|
2988
2986
|
this.bump();
|
|
2989
2987
|
return !0;
|
|
@@ -3005,7 +3003,7 @@ var cn = (
|
|
|
3005
3003
|
break;
|
|
3006
3004
|
}
|
|
3007
3005
|
}, e.prototype.bumpSpace = function() {
|
|
3008
|
-
for (; !this.isEOF() &&
|
|
3006
|
+
for (; !this.isEOF() && Rt(this.char()); )
|
|
3009
3007
|
this.bump();
|
|
3010
3008
|
}, e.prototype.peek = function() {
|
|
3011
3009
|
if (this.isEOF())
|
|
@@ -3015,46 +3013,46 @@ var cn = (
|
|
|
3015
3013
|
}, e;
|
|
3016
3014
|
}()
|
|
3017
3015
|
);
|
|
3018
|
-
function
|
|
3016
|
+
function ke(e) {
|
|
3019
3017
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3020
3018
|
}
|
|
3021
|
-
function
|
|
3022
|
-
return
|
|
3019
|
+
function hn(e) {
|
|
3020
|
+
return ke(e) || e === 47;
|
|
3023
3021
|
}
|
|
3024
|
-
function
|
|
3022
|
+
function cn(e) {
|
|
3025
3023
|
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;
|
|
3026
3024
|
}
|
|
3027
|
-
function
|
|
3025
|
+
function Rt(e) {
|
|
3028
3026
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3029
3027
|
}
|
|
3030
|
-
function
|
|
3028
|
+
function fn(e) {
|
|
3031
3029
|
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;
|
|
3032
3030
|
}
|
|
3033
|
-
function
|
|
3031
|
+
function je(e) {
|
|
3034
3032
|
e.forEach(function(t) {
|
|
3035
|
-
if (delete t.location,
|
|
3033
|
+
if (delete t.location, At(t) || Bt(t))
|
|
3036
3034
|
for (var r in t.options)
|
|
3037
|
-
delete t.options[r].location,
|
|
3038
|
-
else
|
|
3035
|
+
delete t.options[r].location, je(t.options[r].value);
|
|
3036
|
+
else St(t) && Pt(t.style) || (Tt(t) || Ht(t)) && Ue(t.style) ? delete t.style.location : wt(t) && je(t.children);
|
|
3039
3037
|
});
|
|
3040
3038
|
}
|
|
3041
|
-
function
|
|
3042
|
-
t === void 0 && (t = {}), t =
|
|
3043
|
-
var r = new
|
|
3039
|
+
function dn(e, t) {
|
|
3040
|
+
t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3041
|
+
var r = new ln(e, t).parse();
|
|
3044
3042
|
if (r.err) {
|
|
3045
3043
|
var n = SyntaxError(m[r.err.kind]);
|
|
3046
3044
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3047
3045
|
}
|
|
3048
|
-
return t?.captureLocation ||
|
|
3046
|
+
return t?.captureLocation || je(r.val), r.val;
|
|
3049
3047
|
}
|
|
3050
|
-
var
|
|
3048
|
+
var te;
|
|
3051
3049
|
(function(e) {
|
|
3052
3050
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3053
|
-
})(
|
|
3054
|
-
var
|
|
3051
|
+
})(te || (te = {}));
|
|
3052
|
+
var Te = (
|
|
3055
3053
|
/** @class */
|
|
3056
3054
|
function(e) {
|
|
3057
|
-
|
|
3055
|
+
Se(t, e);
|
|
3058
3056
|
function t(r, n, i) {
|
|
3059
3057
|
var o = e.call(this, r) || this;
|
|
3060
3058
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3063,155 +3061,155 @@ var He = (
|
|
|
3063
3061
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3064
3062
|
}, t;
|
|
3065
3063
|
}(Error)
|
|
3066
|
-
),
|
|
3064
|
+
), st = (
|
|
3067
3065
|
/** @class */
|
|
3068
3066
|
function(e) {
|
|
3069
|
-
|
|
3067
|
+
Se(t, e);
|
|
3070
3068
|
function t(r, n, i, o) {
|
|
3071
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3069
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), te.INVALID_VALUE, o) || this;
|
|
3072
3070
|
}
|
|
3073
3071
|
return t;
|
|
3074
|
-
}(
|
|
3075
|
-
),
|
|
3072
|
+
}(Te)
|
|
3073
|
+
), mn = (
|
|
3076
3074
|
/** @class */
|
|
3077
3075
|
function(e) {
|
|
3078
|
-
|
|
3076
|
+
Se(t, e);
|
|
3079
3077
|
function t(r, n, i) {
|
|
3080
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3078
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), te.INVALID_VALUE, i) || this;
|
|
3081
3079
|
}
|
|
3082
3080
|
return t;
|
|
3083
|
-
}(
|
|
3084
|
-
),
|
|
3081
|
+
}(Te)
|
|
3082
|
+
), pn = (
|
|
3085
3083
|
/** @class */
|
|
3086
3084
|
function(e) {
|
|
3087
|
-
|
|
3085
|
+
Se(t, e);
|
|
3088
3086
|
function t(r, n) {
|
|
3089
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3087
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), te.MISSING_VALUE, n) || this;
|
|
3090
3088
|
}
|
|
3091
3089
|
return t;
|
|
3092
|
-
}(
|
|
3093
|
-
),
|
|
3090
|
+
}(Te)
|
|
3091
|
+
), I;
|
|
3094
3092
|
(function(e) {
|
|
3095
3093
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3096
|
-
})(
|
|
3097
|
-
function
|
|
3094
|
+
})(I || (I = {}));
|
|
3095
|
+
function bn(e) {
|
|
3098
3096
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3099
3097
|
var n = t[t.length - 1];
|
|
3100
|
-
return !n || n.type !==
|
|
3098
|
+
return !n || n.type !== I.literal || r.type !== I.literal ? t.push(r) : n.value += r.value, t;
|
|
3101
3099
|
}, []);
|
|
3102
3100
|
}
|
|
3103
|
-
function
|
|
3101
|
+
function gn(e) {
|
|
3104
3102
|
return typeof e == "function";
|
|
3105
3103
|
}
|
|
3106
|
-
function
|
|
3107
|
-
if (e.length === 1 &&
|
|
3104
|
+
function ve(e, t, r, n, i, o, a) {
|
|
3105
|
+
if (e.length === 1 && Ke(e[0]))
|
|
3108
3106
|
return [
|
|
3109
3107
|
{
|
|
3110
|
-
type:
|
|
3108
|
+
type: I.literal,
|
|
3111
3109
|
value: e[0].value
|
|
3112
3110
|
}
|
|
3113
3111
|
];
|
|
3114
3112
|
for (var s = [], h = 0, u = e; h < u.length; h++) {
|
|
3115
3113
|
var l = u[h];
|
|
3116
|
-
if (
|
|
3114
|
+
if (Ke(l)) {
|
|
3117
3115
|
s.push({
|
|
3118
|
-
type:
|
|
3116
|
+
type: I.literal,
|
|
3119
3117
|
value: l.value
|
|
3120
3118
|
});
|
|
3121
3119
|
continue;
|
|
3122
3120
|
}
|
|
3123
|
-
if (
|
|
3121
|
+
if (Ur(l)) {
|
|
3124
3122
|
typeof o == "number" && s.push({
|
|
3125
|
-
type:
|
|
3123
|
+
type: I.literal,
|
|
3126
3124
|
value: r.getNumberFormat(t).format(o)
|
|
3127
3125
|
});
|
|
3128
3126
|
continue;
|
|
3129
3127
|
}
|
|
3130
|
-
var
|
|
3131
|
-
if (!(i &&
|
|
3132
|
-
throw new
|
|
3133
|
-
var d = i[
|
|
3134
|
-
if (
|
|
3128
|
+
var c = l.value;
|
|
3129
|
+
if (!(i && c in i))
|
|
3130
|
+
throw new pn(c, a);
|
|
3131
|
+
var d = i[c];
|
|
3132
|
+
if ($r(l)) {
|
|
3135
3133
|
(!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), s.push({
|
|
3136
|
-
type: typeof d == "string" ?
|
|
3134
|
+
type: typeof d == "string" ? I.literal : I.object,
|
|
3137
3135
|
value: d
|
|
3138
3136
|
});
|
|
3139
3137
|
continue;
|
|
3140
3138
|
}
|
|
3141
|
-
if (
|
|
3142
|
-
var
|
|
3139
|
+
if (Tt(l)) {
|
|
3140
|
+
var g = typeof l.style == "string" ? n.date[l.style] : Ue(l.style) ? l.style.parsedOptions : void 0;
|
|
3143
3141
|
s.push({
|
|
3144
|
-
type:
|
|
3145
|
-
value: r.getDateTimeFormat(t,
|
|
3142
|
+
type: I.literal,
|
|
3143
|
+
value: r.getDateTimeFormat(t, g).format(d)
|
|
3146
3144
|
});
|
|
3147
3145
|
continue;
|
|
3148
3146
|
}
|
|
3149
|
-
if (
|
|
3150
|
-
var
|
|
3147
|
+
if (Ht(l)) {
|
|
3148
|
+
var g = typeof l.style == "string" ? n.time[l.style] : Ue(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3151
3149
|
s.push({
|
|
3152
|
-
type:
|
|
3153
|
-
value: r.getDateTimeFormat(t,
|
|
3150
|
+
type: I.literal,
|
|
3151
|
+
value: r.getDateTimeFormat(t, g).format(d)
|
|
3154
3152
|
});
|
|
3155
3153
|
continue;
|
|
3156
3154
|
}
|
|
3157
|
-
if (
|
|
3158
|
-
var
|
|
3159
|
-
|
|
3160
|
-
type:
|
|
3161
|
-
value: r.getNumberFormat(t,
|
|
3155
|
+
if (St(l)) {
|
|
3156
|
+
var g = typeof l.style == "string" ? n.number[l.style] : Pt(l.style) ? l.style.parsedOptions : void 0;
|
|
3157
|
+
g && g.scale && (d = d * (g.scale || 1)), s.push({
|
|
3158
|
+
type: I.literal,
|
|
3159
|
+
value: r.getNumberFormat(t, g).format(d)
|
|
3162
3160
|
});
|
|
3163
3161
|
continue;
|
|
3164
3162
|
}
|
|
3165
|
-
if (
|
|
3166
|
-
var
|
|
3167
|
-
if (!
|
|
3168
|
-
throw new
|
|
3169
|
-
var
|
|
3170
|
-
return
|
|
3163
|
+
if (wt(l)) {
|
|
3164
|
+
var y = l.children, _ = l.value, T = i[_];
|
|
3165
|
+
if (!gn(T))
|
|
3166
|
+
throw new mn(_, "function", a);
|
|
3167
|
+
var H = ve(y, t, r, n, i, o), L = T(H.map(function(N) {
|
|
3168
|
+
return N.value;
|
|
3171
3169
|
}));
|
|
3172
|
-
Array.isArray(
|
|
3170
|
+
Array.isArray(L) || (L = [L]), s.push.apply(s, L.map(function(N) {
|
|
3173
3171
|
return {
|
|
3174
|
-
type: typeof
|
|
3175
|
-
value:
|
|
3172
|
+
type: typeof N == "string" ? I.literal : I.object,
|
|
3173
|
+
value: N
|
|
3176
3174
|
};
|
|
3177
3175
|
}));
|
|
3178
3176
|
}
|
|
3179
|
-
if (
|
|
3180
|
-
var
|
|
3181
|
-
if (!
|
|
3182
|
-
throw new
|
|
3183
|
-
s.push.apply(s,
|
|
3177
|
+
if (At(l)) {
|
|
3178
|
+
var B = l.options[d] || l.options.other;
|
|
3179
|
+
if (!B)
|
|
3180
|
+
throw new st(l.value, d, Object.keys(l.options), a);
|
|
3181
|
+
s.push.apply(s, ve(B.value, t, r, n, i));
|
|
3184
3182
|
continue;
|
|
3185
3183
|
}
|
|
3186
|
-
if (
|
|
3187
|
-
var
|
|
3188
|
-
if (!
|
|
3184
|
+
if (Bt(l)) {
|
|
3185
|
+
var B = l.options["=".concat(d)];
|
|
3186
|
+
if (!B) {
|
|
3189
3187
|
if (!Intl.PluralRules)
|
|
3190
|
-
throw new
|
|
3188
|
+
throw new Te(`Intl.PluralRules is not available in this environment.
|
|
3191
3189
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3192
|
-
`,
|
|
3193
|
-
var
|
|
3194
|
-
|
|
3190
|
+
`, te.MISSING_INTL_API, a);
|
|
3191
|
+
var S = r.getPluralRules(t, { type: l.pluralType }).select(d - (l.offset || 0));
|
|
3192
|
+
B = l.options[S] || l.options.other;
|
|
3195
3193
|
}
|
|
3196
|
-
if (!
|
|
3197
|
-
throw new
|
|
3198
|
-
s.push.apply(s,
|
|
3194
|
+
if (!B)
|
|
3195
|
+
throw new st(l.value, d, Object.keys(l.options), a);
|
|
3196
|
+
s.push.apply(s, ve(B.value, t, r, n, i, d - (l.offset || 0)));
|
|
3199
3197
|
continue;
|
|
3200
3198
|
}
|
|
3201
3199
|
}
|
|
3202
|
-
return
|
|
3200
|
+
return bn(s);
|
|
3203
3201
|
}
|
|
3204
|
-
function
|
|
3205
|
-
return t ?
|
|
3206
|
-
return r[n] =
|
|
3202
|
+
function vn(e, t) {
|
|
3203
|
+
return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3204
|
+
return r[n] = v(v({}, e[n]), t[n] || {}), r;
|
|
3207
3205
|
}, {})) : e;
|
|
3208
3206
|
}
|
|
3209
|
-
function
|
|
3207
|
+
function yn(e, t) {
|
|
3210
3208
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3211
|
-
return r[n] =
|
|
3212
|
-
},
|
|
3209
|
+
return r[n] = vn(e[n], t[n]), r;
|
|
3210
|
+
}, v({}, e)) : e;
|
|
3213
3211
|
}
|
|
3214
|
-
function
|
|
3212
|
+
function Ne(e) {
|
|
3215
3213
|
return {
|
|
3216
3214
|
create: function() {
|
|
3217
3215
|
return {
|
|
@@ -3225,39 +3223,39 @@ function Oe(e) {
|
|
|
3225
3223
|
}
|
|
3226
3224
|
};
|
|
3227
3225
|
}
|
|
3228
|
-
function
|
|
3226
|
+
function En(e) {
|
|
3229
3227
|
return e === void 0 && (e = {
|
|
3230
3228
|
number: {},
|
|
3231
3229
|
dateTime: {},
|
|
3232
3230
|
pluralRules: {}
|
|
3233
3231
|
}), {
|
|
3234
|
-
getNumberFormat:
|
|
3232
|
+
getNumberFormat: Pe(function() {
|
|
3235
3233
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3236
3234
|
r[n] = arguments[n];
|
|
3237
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3235
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, we([void 0], r, !1)))();
|
|
3238
3236
|
}, {
|
|
3239
|
-
cache:
|
|
3240
|
-
strategy:
|
|
3237
|
+
cache: Ne(e.number),
|
|
3238
|
+
strategy: Ce.variadic
|
|
3241
3239
|
}),
|
|
3242
|
-
getDateTimeFormat:
|
|
3240
|
+
getDateTimeFormat: Pe(function() {
|
|
3243
3241
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3244
3242
|
r[n] = arguments[n];
|
|
3245
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3243
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, we([void 0], r, !1)))();
|
|
3246
3244
|
}, {
|
|
3247
|
-
cache:
|
|
3248
|
-
strategy:
|
|
3245
|
+
cache: Ne(e.dateTime),
|
|
3246
|
+
strategy: Ce.variadic
|
|
3249
3247
|
}),
|
|
3250
|
-
getPluralRules:
|
|
3248
|
+
getPluralRules: Pe(function() {
|
|
3251
3249
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3252
3250
|
r[n] = arguments[n];
|
|
3253
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3251
|
+
return new ((t = Intl.PluralRules).bind.apply(t, we([void 0], r, !1)))();
|
|
3254
3252
|
}, {
|
|
3255
|
-
cache:
|
|
3256
|
-
strategy:
|
|
3253
|
+
cache: Ne(e.pluralRules),
|
|
3254
|
+
strategy: Ce.variadic
|
|
3257
3255
|
})
|
|
3258
3256
|
};
|
|
3259
3257
|
}
|
|
3260
|
-
var
|
|
3258
|
+
var xn = (
|
|
3261
3259
|
/** @class */
|
|
3262
3260
|
function() {
|
|
3263
3261
|
function e(t, r, n, i) {
|
|
@@ -3271,12 +3269,12 @@ var Sn = (
|
|
|
3271
3269
|
var u = o.formatToParts(h);
|
|
3272
3270
|
if (u.length === 1)
|
|
3273
3271
|
return u[0].value;
|
|
3274
|
-
var l = u.reduce(function(
|
|
3275
|
-
return !
|
|
3272
|
+
var l = u.reduce(function(c, d) {
|
|
3273
|
+
return !c.length || d.type !== I.literal || typeof c[c.length - 1] != "string" ? c.push(d.value) : c[c.length - 1] += d.value, c;
|
|
3276
3274
|
}, []);
|
|
3277
3275
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3278
3276
|
}, this.formatToParts = function(h) {
|
|
3279
|
-
return
|
|
3277
|
+
return ve(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
3280
3278
|
}, this.resolvedOptions = function() {
|
|
3281
3279
|
var h;
|
|
3282
3280
|
return {
|
|
@@ -3289,13 +3287,13 @@ var Sn = (
|
|
|
3289
3287
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3290
3288
|
var a = i || {};
|
|
3291
3289
|
a.formatters;
|
|
3292
|
-
var s =
|
|
3293
|
-
this.ast = e.__parse(t,
|
|
3290
|
+
var s = Pr(a, ["formatters"]);
|
|
3291
|
+
this.ast = e.__parse(t, v(v({}, s), { locale: this.resolvedLocale }));
|
|
3294
3292
|
} else
|
|
3295
3293
|
this.ast = t;
|
|
3296
3294
|
if (!Array.isArray(this.ast))
|
|
3297
3295
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3298
|
-
this.formats =
|
|
3296
|
+
this.formats = yn(e.formats, n), this.formatters = i && i.formatters || En(this.formatterCache);
|
|
3299
3297
|
}
|
|
3300
3298
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3301
3299
|
get: function() {
|
|
@@ -3308,7 +3306,7 @@ var Sn = (
|
|
|
3308
3306
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3309
3307
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3310
3308
|
}
|
|
3311
|
-
}, e.__parse =
|
|
3309
|
+
}, e.__parse = dn, e.formats = {
|
|
3312
3310
|
number: {
|
|
3313
3311
|
integer: {
|
|
3314
3312
|
maximumFractionDigits: 0
|
|
@@ -3369,7 +3367,7 @@ var Sn = (
|
|
|
3369
3367
|
}, e;
|
|
3370
3368
|
}()
|
|
3371
3369
|
);
|
|
3372
|
-
function
|
|
3370
|
+
function _n(e, t) {
|
|
3373
3371
|
if (t == null)
|
|
3374
3372
|
return;
|
|
3375
3373
|
if (t in e)
|
|
@@ -3390,92 +3388,92 @@ function Tn(e, t) {
|
|
|
3390
3388
|
n = void 0;
|
|
3391
3389
|
return n;
|
|
3392
3390
|
}
|
|
3393
|
-
const G = {},
|
|
3391
|
+
const G = {}, Sn = (e, t, r) => r && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = r), r), $t = (e, t) => {
|
|
3394
3392
|
if (t == null)
|
|
3395
3393
|
return;
|
|
3396
3394
|
if (t in G && e in G[t])
|
|
3397
3395
|
return G[t][e];
|
|
3398
|
-
const r =
|
|
3396
|
+
const r = He(t);
|
|
3399
3397
|
for (let n = 0; n < r.length; n++) {
|
|
3400
|
-
const i = r[n], o =
|
|
3398
|
+
const i = r[n], o = Hn(i, e);
|
|
3401
3399
|
if (o)
|
|
3402
|
-
return
|
|
3400
|
+
return Sn(e, t, o);
|
|
3403
3401
|
}
|
|
3404
3402
|
};
|
|
3405
|
-
let
|
|
3406
|
-
const
|
|
3407
|
-
function
|
|
3408
|
-
return
|
|
3403
|
+
let We;
|
|
3404
|
+
const oe = _e({});
|
|
3405
|
+
function Tn(e) {
|
|
3406
|
+
return We[e] || null;
|
|
3409
3407
|
}
|
|
3410
|
-
function
|
|
3411
|
-
return e in
|
|
3408
|
+
function Ut(e) {
|
|
3409
|
+
return e in We;
|
|
3412
3410
|
}
|
|
3413
|
-
function
|
|
3414
|
-
if (!
|
|
3411
|
+
function Hn(e, t) {
|
|
3412
|
+
if (!Ut(e))
|
|
3415
3413
|
return null;
|
|
3416
|
-
const r =
|
|
3417
|
-
return
|
|
3414
|
+
const r = Tn(e);
|
|
3415
|
+
return _n(r, t);
|
|
3418
3416
|
}
|
|
3419
|
-
function
|
|
3417
|
+
function An(e) {
|
|
3420
3418
|
if (e == null)
|
|
3421
3419
|
return;
|
|
3422
|
-
const t =
|
|
3420
|
+
const t = He(e);
|
|
3423
3421
|
for (let r = 0; r < t.length; r++) {
|
|
3424
3422
|
const n = t[r];
|
|
3425
|
-
if (
|
|
3423
|
+
if (Ut(n))
|
|
3426
3424
|
return n;
|
|
3427
3425
|
}
|
|
3428
3426
|
}
|
|
3429
|
-
function
|
|
3430
|
-
delete G[e],
|
|
3427
|
+
function Dt(e, ...t) {
|
|
3428
|
+
delete G[e], oe.update((r) => (r[e] = wr.all([r[e] || {}, ...t]), r));
|
|
3431
3429
|
}
|
|
3432
|
-
|
|
3433
|
-
[
|
|
3430
|
+
ie(
|
|
3431
|
+
[oe],
|
|
3434
3432
|
([e]) => Object.keys(e)
|
|
3435
3433
|
);
|
|
3436
|
-
|
|
3437
|
-
const
|
|
3438
|
-
function
|
|
3439
|
-
|
|
3434
|
+
oe.subscribe((e) => We = e);
|
|
3435
|
+
const ye = {};
|
|
3436
|
+
function Bn(e, t) {
|
|
3437
|
+
ye[e].delete(t), ye[e].size === 0 && delete ye[e];
|
|
3440
3438
|
}
|
|
3441
|
-
function
|
|
3442
|
-
return
|
|
3439
|
+
function Ft(e) {
|
|
3440
|
+
return ye[e];
|
|
3443
3441
|
}
|
|
3444
|
-
function
|
|
3445
|
-
return
|
|
3446
|
-
const r =
|
|
3442
|
+
function wn(e) {
|
|
3443
|
+
return He(e).map((t) => {
|
|
3444
|
+
const r = Ft(t);
|
|
3447
3445
|
return [t, r ? [...r] : []];
|
|
3448
3446
|
}).filter(([, t]) => t.length > 0);
|
|
3449
3447
|
}
|
|
3450
|
-
function
|
|
3451
|
-
return e == null ? !1 :
|
|
3448
|
+
function Ve(e) {
|
|
3449
|
+
return e == null ? !1 : He(e).some(
|
|
3452
3450
|
(t) => {
|
|
3453
3451
|
var r;
|
|
3454
|
-
return (r =
|
|
3452
|
+
return (r = Ft(t)) == null ? void 0 : r.size;
|
|
3455
3453
|
}
|
|
3456
3454
|
);
|
|
3457
3455
|
}
|
|
3458
|
-
function
|
|
3456
|
+
function Pn(e, t) {
|
|
3459
3457
|
return Promise.all(
|
|
3460
|
-
t.map((n) => (
|
|
3461
|
-
).then((n) =>
|
|
3458
|
+
t.map((n) => (Bn(e, n), n().then((i) => i.default || i)))
|
|
3459
|
+
).then((n) => Dt(e, ...n));
|
|
3462
3460
|
}
|
|
3463
|
-
const
|
|
3464
|
-
function
|
|
3465
|
-
if (!
|
|
3466
|
-
return e in
|
|
3467
|
-
const t =
|
|
3468
|
-
return
|
|
3461
|
+
const he = {};
|
|
3462
|
+
function Gt(e) {
|
|
3463
|
+
if (!Ve(e))
|
|
3464
|
+
return e in he ? he[e] : Promise.resolve();
|
|
3465
|
+
const t = wn(e);
|
|
3466
|
+
return he[e] = Promise.all(
|
|
3469
3467
|
t.map(
|
|
3470
|
-
([r, n]) =>
|
|
3468
|
+
([r, n]) => Pn(r, n)
|
|
3471
3469
|
)
|
|
3472
3470
|
).then(() => {
|
|
3473
|
-
if (
|
|
3474
|
-
return
|
|
3475
|
-
delete
|
|
3476
|
-
}),
|
|
3471
|
+
if (Ve(e))
|
|
3472
|
+
return Gt(e);
|
|
3473
|
+
delete he[e];
|
|
3474
|
+
}), he[e];
|
|
3477
3475
|
}
|
|
3478
|
-
const
|
|
3476
|
+
const Cn = {
|
|
3479
3477
|
number: {
|
|
3480
3478
|
scientific: { notation: "scientific" },
|
|
3481
3479
|
engineering: { notation: "engineering" },
|
|
@@ -3504,135 +3502,135 @@ const Nn = {
|
|
|
3504
3502
|
timeZoneName: "short"
|
|
3505
3503
|
}
|
|
3506
3504
|
}
|
|
3507
|
-
},
|
|
3505
|
+
}, In = {
|
|
3508
3506
|
fallbackLocale: null,
|
|
3509
3507
|
loadingDelay: 200,
|
|
3510
|
-
formats:
|
|
3508
|
+
formats: Cn,
|
|
3511
3509
|
warnOnMissingMessages: !0,
|
|
3512
3510
|
handleMissingMessage: void 0,
|
|
3513
3511
|
ignoreTag: !0
|
|
3514
|
-
},
|
|
3515
|
-
function
|
|
3516
|
-
return
|
|
3512
|
+
}, Nn = In;
|
|
3513
|
+
function re() {
|
|
3514
|
+
return Nn;
|
|
3517
3515
|
}
|
|
3518
|
-
const
|
|
3519
|
-
var
|
|
3516
|
+
const Oe = _e(!1);
|
|
3517
|
+
var On = Object.defineProperty, Mn = Object.defineProperties, Ln = Object.getOwnPropertyDescriptors, at = Object.getOwnPropertySymbols, Rn = Object.prototype.hasOwnProperty, $n = Object.prototype.propertyIsEnumerable, ut = (e, t, r) => t in e ? On(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Un = (e, t) => {
|
|
3520
3518
|
for (var r in t || (t = {}))
|
|
3521
|
-
|
|
3522
|
-
if (
|
|
3523
|
-
for (var r of
|
|
3524
|
-
|
|
3519
|
+
Rn.call(t, r) && ut(e, r, t[r]);
|
|
3520
|
+
if (at)
|
|
3521
|
+
for (var r of at(t))
|
|
3522
|
+
$n.call(t, r) && ut(e, r, t[r]);
|
|
3525
3523
|
return e;
|
|
3526
|
-
},
|
|
3527
|
-
let
|
|
3528
|
-
const
|
|
3529
|
-
function
|
|
3524
|
+
}, Dn = (e, t) => Mn(e, Ln(t));
|
|
3525
|
+
let Xe;
|
|
3526
|
+
const Ee = _e(null);
|
|
3527
|
+
function lt(e) {
|
|
3530
3528
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3531
3529
|
}
|
|
3532
|
-
function
|
|
3533
|
-
const r =
|
|
3534
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3530
|
+
function He(e, t = re().fallbackLocale) {
|
|
3531
|
+
const r = lt(e);
|
|
3532
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...lt(t)])] : r;
|
|
3535
3533
|
}
|
|
3536
3534
|
function Z() {
|
|
3537
|
-
return
|
|
3535
|
+
return Xe ?? void 0;
|
|
3538
3536
|
}
|
|
3539
|
-
|
|
3540
|
-
|
|
3537
|
+
Ee.subscribe((e) => {
|
|
3538
|
+
Xe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3541
3539
|
});
|
|
3542
|
-
const
|
|
3543
|
-
if (e &&
|
|
3544
|
-
const { loadingDelay: t } =
|
|
3540
|
+
const Fn = (e) => {
|
|
3541
|
+
if (e && An(e) && Ve(e)) {
|
|
3542
|
+
const { loadingDelay: t } = re();
|
|
3545
3543
|
let r;
|
|
3546
3544
|
return typeof window < "u" && Z() != null && t ? r = window.setTimeout(
|
|
3547
|
-
() =>
|
|
3545
|
+
() => Oe.set(!0),
|
|
3548
3546
|
t
|
|
3549
|
-
) :
|
|
3550
|
-
|
|
3547
|
+
) : Oe.set(!0), Gt(e).then(() => {
|
|
3548
|
+
Ee.set(e);
|
|
3551
3549
|
}).finally(() => {
|
|
3552
|
-
clearTimeout(r),
|
|
3550
|
+
clearTimeout(r), Oe.set(!1);
|
|
3553
3551
|
});
|
|
3554
3552
|
}
|
|
3555
|
-
return
|
|
3556
|
-
}, z =
|
|
3557
|
-
set:
|
|
3558
|
-
}),
|
|
3553
|
+
return Ee.set(e);
|
|
3554
|
+
}, z = Dn(Un({}, Ee), {
|
|
3555
|
+
set: Fn
|
|
3556
|
+
}), Ae = (e) => {
|
|
3559
3557
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3560
3558
|
return (n) => {
|
|
3561
3559
|
const i = JSON.stringify(n);
|
|
3562
3560
|
return i in t ? t[i] : t[i] = e(n);
|
|
3563
3561
|
};
|
|
3564
3562
|
};
|
|
3565
|
-
var
|
|
3563
|
+
var Gn = Object.defineProperty, xe = Object.getOwnPropertySymbols, kt = Object.prototype.hasOwnProperty, jt = Object.prototype.propertyIsEnumerable, ht = (e, t, r) => t in e ? Gn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ze = (e, t) => {
|
|
3566
3564
|
for (var r in t || (t = {}))
|
|
3567
|
-
|
|
3568
|
-
if (
|
|
3569
|
-
for (var r of
|
|
3570
|
-
|
|
3565
|
+
kt.call(t, r) && ht(e, r, t[r]);
|
|
3566
|
+
if (xe)
|
|
3567
|
+
for (var r of xe(t))
|
|
3568
|
+
jt.call(t, r) && ht(e, r, t[r]);
|
|
3571
3569
|
return e;
|
|
3572
|
-
},
|
|
3570
|
+
}, se = (e, t) => {
|
|
3573
3571
|
var r = {};
|
|
3574
3572
|
for (var n in e)
|
|
3575
|
-
|
|
3576
|
-
if (e != null &&
|
|
3577
|
-
for (var n of
|
|
3578
|
-
t.indexOf(n) < 0 &&
|
|
3573
|
+
kt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3574
|
+
if (e != null && xe)
|
|
3575
|
+
for (var n of xe(e))
|
|
3576
|
+
t.indexOf(n) < 0 && jt.call(e, n) && (r[n] = e[n]);
|
|
3579
3577
|
return r;
|
|
3580
3578
|
};
|
|
3581
|
-
const
|
|
3582
|
-
const { formats: r } =
|
|
3579
|
+
const me = (e, t) => {
|
|
3580
|
+
const { formats: r } = re();
|
|
3583
3581
|
if (e in r && t in r[e])
|
|
3584
3582
|
return r[e][t];
|
|
3585
3583
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3586
|
-
},
|
|
3584
|
+
}, kn = Ae(
|
|
3587
3585
|
(e) => {
|
|
3588
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3586
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
3589
3587
|
if (r == null)
|
|
3590
3588
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3591
|
-
return n && (i =
|
|
3589
|
+
return n && (i = me("number", n)), new Intl.NumberFormat(r, i);
|
|
3592
3590
|
}
|
|
3593
|
-
),
|
|
3591
|
+
), jn = Ae(
|
|
3594
3592
|
(e) => {
|
|
3595
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3593
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
3596
3594
|
if (r == null)
|
|
3597
3595
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3598
|
-
return n ? i =
|
|
3596
|
+
return n ? i = me("date", n) : Object.keys(i).length === 0 && (i = me("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3599
3597
|
}
|
|
3600
|
-
),
|
|
3598
|
+
), Vn = Ae(
|
|
3601
3599
|
(e) => {
|
|
3602
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3600
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
3603
3601
|
if (r == null)
|
|
3604
3602
|
throw new Error(
|
|
3605
3603
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3606
3604
|
);
|
|
3607
|
-
return n ? i =
|
|
3605
|
+
return n ? i = me("time", n) : Object.keys(i).length === 0 && (i = me("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3608
3606
|
}
|
|
3609
|
-
),
|
|
3607
|
+
), Xn = (e = {}) => {
|
|
3610
3608
|
var t = e, {
|
|
3611
3609
|
locale: r = Z()
|
|
3612
|
-
} = t, n =
|
|
3610
|
+
} = t, n = se(t, [
|
|
3613
3611
|
"locale"
|
|
3614
3612
|
]);
|
|
3615
|
-
return
|
|
3616
|
-
},
|
|
3613
|
+
return kn(Ze({ locale: r }, n));
|
|
3614
|
+
}, zn = (e = {}) => {
|
|
3617
3615
|
var t = e, {
|
|
3618
3616
|
locale: r = Z()
|
|
3619
|
-
} = t, n =
|
|
3617
|
+
} = t, n = se(t, [
|
|
3620
3618
|
"locale"
|
|
3621
3619
|
]);
|
|
3622
|
-
return
|
|
3623
|
-
},
|
|
3620
|
+
return jn(Ze({ locale: r }, n));
|
|
3621
|
+
}, Wn = (e = {}) => {
|
|
3624
3622
|
var t = e, {
|
|
3625
3623
|
locale: r = Z()
|
|
3626
|
-
} = t, n =
|
|
3624
|
+
} = t, n = se(t, [
|
|
3627
3625
|
"locale"
|
|
3628
3626
|
]);
|
|
3629
|
-
return
|
|
3630
|
-
},
|
|
3627
|
+
return Vn(Ze({ locale: r }, n));
|
|
3628
|
+
}, Zn = Ae(
|
|
3631
3629
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3632
|
-
(e, t = Z()) => new
|
|
3633
|
-
ignoreTag:
|
|
3630
|
+
(e, t = Z()) => new xn(e, t, re().formats, {
|
|
3631
|
+
ignoreTag: re().ignoreTag
|
|
3634
3632
|
})
|
|
3635
|
-
),
|
|
3633
|
+
), Jn = (e, t = {}) => {
|
|
3636
3634
|
var r, n, i, o;
|
|
3637
3635
|
let a = t;
|
|
3638
3636
|
typeof e == "object" && (a = e, e = a.id);
|
|
@@ -3645,39 +3643,39 @@ const de = (e, t) => {
|
|
|
3645
3643
|
throw new Error(
|
|
3646
3644
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3647
3645
|
);
|
|
3648
|
-
let l =
|
|
3646
|
+
let l = $t(e, h);
|
|
3649
3647
|
if (!l)
|
|
3650
|
-
l = (o = (i = (n = (r =
|
|
3648
|
+
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;
|
|
3651
3649
|
else if (typeof l != "string")
|
|
3652
3650
|
return console.warn(
|
|
3653
3651
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3654
3652
|
), l;
|
|
3655
3653
|
if (!s)
|
|
3656
3654
|
return l;
|
|
3657
|
-
let
|
|
3655
|
+
let c = l;
|
|
3658
3656
|
try {
|
|
3659
|
-
|
|
3657
|
+
c = Zn(l, h).format(s);
|
|
3660
3658
|
} catch (d) {
|
|
3661
3659
|
d instanceof Error && console.warn(
|
|
3662
3660
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3663
3661
|
d.message
|
|
3664
3662
|
);
|
|
3665
3663
|
}
|
|
3666
|
-
return
|
|
3667
|
-
},
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
function
|
|
3664
|
+
return c;
|
|
3665
|
+
}, Qn = (e, t) => Wn(t).format(e), qn = (e, t) => zn(t).format(e), Yn = (e, t) => Xn(t).format(e), Kn = (e, t = Z()) => $t(e, t), ei = ie([z, oe], () => Jn);
|
|
3666
|
+
ie([z], () => Qn);
|
|
3667
|
+
ie([z], () => qn);
|
|
3668
|
+
ie([z], () => Yn);
|
|
3669
|
+
ie([z, oe], () => Kn);
|
|
3670
|
+
function ti({ withLocale: e, translations: t }) {
|
|
3673
3671
|
z.subscribe((r) => {
|
|
3674
|
-
r == null && (
|
|
3672
|
+
r == null && (oe.set(t), z.set(e));
|
|
3675
3673
|
});
|
|
3676
3674
|
}
|
|
3677
|
-
function
|
|
3678
|
-
|
|
3675
|
+
function ct(e, t) {
|
|
3676
|
+
Dt(e, t);
|
|
3679
3677
|
}
|
|
3680
|
-
const
|
|
3678
|
+
const ft = {
|
|
3681
3679
|
en: {
|
|
3682
3680
|
title: "Please enter the verification code you received on your number",
|
|
3683
3681
|
errorTitle: "Your code was invalid, you can resend the code and try again",
|
|
@@ -3784,17 +3782,40 @@ const pt = {
|
|
|
3784
3782
|
loginSMSHint: "A new verification code has been sent to your phone number"
|
|
3785
3783
|
}
|
|
3786
3784
|
};
|
|
3787
|
-
function
|
|
3788
|
-
|
|
3785
|
+
function ri(e, t) {
|
|
3786
|
+
if (e) {
|
|
3787
|
+
const r = document.createElement("style");
|
|
3788
|
+
r.innerHTML = t, e.appendChild(r);
|
|
3789
|
+
}
|
|
3790
|
+
}
|
|
3791
|
+
function ni(e, t) {
|
|
3792
|
+
const r = new URL(t);
|
|
3793
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
3794
|
+
const i = document.createElement("style");
|
|
3795
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
3796
|
+
}).catch((n) => {
|
|
3797
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
3798
|
+
});
|
|
3799
|
+
}
|
|
3800
|
+
function ii(e, t, r) {
|
|
3801
|
+
if (window.emMessageBus) {
|
|
3802
|
+
const n = document.createElement("style");
|
|
3803
|
+
window.emMessageBus.subscribe(t, (i) => {
|
|
3804
|
+
n.innerHTML = i, e && e.appendChild(n);
|
|
3805
|
+
});
|
|
3806
|
+
}
|
|
3789
3807
|
}
|
|
3790
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
|
+
function si(e) {
|
|
3791
3812
|
let t = (
|
|
3792
3813
|
/*$_*/
|
|
3793
3814
|
e[5]("errorTitle") + ""
|
|
3794
3815
|
), r;
|
|
3795
3816
|
return {
|
|
3796
3817
|
c() {
|
|
3797
|
-
r =
|
|
3818
|
+
r = M(t);
|
|
3798
3819
|
},
|
|
3799
3820
|
m(n, i) {
|
|
3800
3821
|
W(n, r, i);
|
|
@@ -3809,14 +3830,14 @@ function oi(e) {
|
|
|
3809
3830
|
}
|
|
3810
3831
|
};
|
|
3811
3832
|
}
|
|
3812
|
-
function
|
|
3833
|
+
function ai(e) {
|
|
3813
3834
|
let t = (
|
|
3814
3835
|
/*$_*/
|
|
3815
3836
|
e[5]("title") + ""
|
|
3816
3837
|
), r;
|
|
3817
3838
|
return {
|
|
3818
3839
|
c() {
|
|
3819
|
-
r =
|
|
3840
|
+
r = M(t);
|
|
3820
3841
|
},
|
|
3821
3842
|
m(n, i) {
|
|
3822
3843
|
W(n, r, i);
|
|
@@ -3831,14 +3852,14 @@ function si(e) {
|
|
|
3831
3852
|
}
|
|
3832
3853
|
};
|
|
3833
3854
|
}
|
|
3834
|
-
function
|
|
3855
|
+
function dt(e) {
|
|
3835
3856
|
let t, r = (
|
|
3836
3857
|
/*$_*/
|
|
3837
3858
|
e[5]("smsCodeError") + ""
|
|
3838
3859
|
), n;
|
|
3839
3860
|
return {
|
|
3840
3861
|
c() {
|
|
3841
|
-
t =
|
|
3862
|
+
t = O("p"), n = M(r), A(t, "class", "InvalidInput");
|
|
3842
3863
|
},
|
|
3843
3864
|
m(i, o) {
|
|
3844
3865
|
W(i, t, o), E(t, n);
|
|
@@ -3853,14 +3874,14 @@ function bt(e) {
|
|
|
3853
3874
|
}
|
|
3854
3875
|
};
|
|
3855
3876
|
}
|
|
3856
|
-
function
|
|
3877
|
+
function mt(e) {
|
|
3857
3878
|
let t, r = (
|
|
3858
3879
|
/*$_*/
|
|
3859
3880
|
e[5]("resendMessage") + ""
|
|
3860
3881
|
), n;
|
|
3861
3882
|
return {
|
|
3862
3883
|
c() {
|
|
3863
|
-
t =
|
|
3884
|
+
t = O("p"), n = M(r), A(t, "class", "SmsVerificationResendMessage");
|
|
3864
3885
|
},
|
|
3865
3886
|
m(i, o) {
|
|
3866
3887
|
W(i, t, o), E(t, n);
|
|
@@ -3875,17 +3896,17 @@ function gt(e) {
|
|
|
3875
3896
|
}
|
|
3876
3897
|
};
|
|
3877
3898
|
}
|
|
3878
|
-
function
|
|
3899
|
+
function pt(e) {
|
|
3879
3900
|
let t, r, n = (
|
|
3880
3901
|
/*secondsLeft*/
|
|
3881
3902
|
e[4] < 10 ? "0" : ""
|
|
3882
3903
|
), i, o, a;
|
|
3883
3904
|
return {
|
|
3884
3905
|
c() {
|
|
3885
|
-
t =
|
|
3906
|
+
t = O("span"), r = M("(0:"), i = M(n), o = M(
|
|
3886
3907
|
/*secondsLeft*/
|
|
3887
3908
|
e[4]
|
|
3888
|
-
), a =
|
|
3909
|
+
), a = M(")"), A(t, "class", "SmsVerificationResendTimer");
|
|
3889
3910
|
},
|
|
3890
3911
|
m(s, h) {
|
|
3891
3912
|
W(s, t, h), E(t, r), E(t, i), E(t, o), E(t, a);
|
|
@@ -3905,125 +3926,125 @@ function vt(e) {
|
|
|
3905
3926
|
}
|
|
3906
3927
|
};
|
|
3907
3928
|
}
|
|
3908
|
-
function
|
|
3929
|
+
function ui(e) {
|
|
3909
3930
|
let t, r, n, i, o, a = (
|
|
3910
3931
|
/*$_*/
|
|
3911
3932
|
e[5]("code") + ""
|
|
3912
|
-
), s, h, u, l,
|
|
3933
|
+
), s, h, u, l, c, d, g, y, _, T, H = (
|
|
3913
3934
|
/*$_*/
|
|
3914
3935
|
e[5]("activate") + ""
|
|
3915
|
-
),
|
|
3936
|
+
), L, B, S, N = (
|
|
3916
3937
|
/*$_*/
|
|
3917
3938
|
e[5]("resend") + ""
|
|
3918
|
-
),
|
|
3919
|
-
function
|
|
3939
|
+
), D, j, ae, ue;
|
|
3940
|
+
function le(p, C) {
|
|
3920
3941
|
return (
|
|
3921
3942
|
/*isSmsValid*/
|
|
3922
|
-
|
|
3943
|
+
p[2] ? ai : si
|
|
3923
3944
|
);
|
|
3924
3945
|
}
|
|
3925
|
-
let V =
|
|
3926
|
-
e[2] &&
|
|
3946
|
+
let V = le(e), R = V(e), w = !/*isSmsValid*/
|
|
3947
|
+
e[2] && dt(e), P = (
|
|
3927
3948
|
/*timer*/
|
|
3928
|
-
e[3] &&
|
|
3929
|
-
),
|
|
3949
|
+
e[3] && mt(e)
|
|
3950
|
+
), f = (
|
|
3930
3951
|
/*timer*/
|
|
3931
|
-
e[3] &&
|
|
3952
|
+
e[3] && pt(e)
|
|
3932
3953
|
);
|
|
3933
3954
|
return {
|
|
3934
3955
|
c() {
|
|
3935
|
-
t =
|
|
3936
|
-
e[2] ? "" : "InvalidField")), A(
|
|
3956
|
+
t = O("div"), r = O("h3"), R.c(), n = X(), i = O("div"), o = O("label"), s = M(a), h = M(":"), u = O("span"), u.textContent = "*", l = X(), c = O("input"), d = X(), w && w.c(), y = X(), P && P.c(), _ = X(), T = O("button"), L = M(H), B = X(), S = O("button"), D = M(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
|
+
e[2] ? "" : "InvalidField")), A(T, "class", "Button SmsVerificationValidate"), A(S, "class", "Button SmsVerificationResend"), S.disabled = /*timer*/
|
|
3937
3958
|
e[3], A(t, "class", "Container SmsVerificationContainer");
|
|
3938
3959
|
},
|
|
3939
|
-
m(
|
|
3940
|
-
W(
|
|
3941
|
-
|
|
3960
|
+
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), Qe(
|
|
3962
|
+
c,
|
|
3942
3963
|
/*smsCode*/
|
|
3943
3964
|
e[1]
|
|
3944
|
-
), E(i, d),
|
|
3945
|
-
|
|
3946
|
-
|
|
3965
|
+
), E(i, d), w && w.m(i, null), E(t, y), P && P.m(t, null), E(t, _), E(t, T), E(T, L), E(t, B), E(t, S), E(S, D), E(S, j), f && f.m(S, null), e[20](t), ae || (ue = [
|
|
3966
|
+
pe(
|
|
3967
|
+
c,
|
|
3947
3968
|
"input",
|
|
3948
3969
|
/*input_input_handler*/
|
|
3949
|
-
e[
|
|
3970
|
+
e[18]
|
|
3950
3971
|
),
|
|
3951
|
-
|
|
3952
|
-
|
|
3972
|
+
pe(
|
|
3973
|
+
c,
|
|
3953
3974
|
"keydown",
|
|
3954
3975
|
/*keydown_handler*/
|
|
3955
|
-
e[
|
|
3976
|
+
e[19]
|
|
3956
3977
|
),
|
|
3957
|
-
|
|
3958
|
-
|
|
3978
|
+
pe(
|
|
3979
|
+
T,
|
|
3959
3980
|
"click",
|
|
3960
3981
|
/*activateUser*/
|
|
3961
3982
|
e[6]
|
|
3962
3983
|
),
|
|
3963
|
-
|
|
3964
|
-
|
|
3984
|
+
pe(
|
|
3985
|
+
S,
|
|
3965
3986
|
"click",
|
|
3966
3987
|
/*resendCode*/
|
|
3967
3988
|
e[7]
|
|
3968
3989
|
)
|
|
3969
|
-
],
|
|
3990
|
+
], ae = !0);
|
|
3970
3991
|
},
|
|
3971
|
-
p(
|
|
3972
|
-
V === (V =
|
|
3992
|
+
p(p, [C]) {
|
|
3993
|
+
V === (V = le(p)) && R ? R.p(p, C) : (R.d(1), R = V(p), R && (R.c(), R.m(r, null))), C & /*$_*/
|
|
3973
3994
|
32 && a !== (a = /*$_*/
|
|
3974
|
-
|
|
3975
|
-
2 &&
|
|
3976
|
-
|
|
3977
|
-
|
|
3995
|
+
p[5]("code") + "") && F(s, a), C & /*smsCode*/
|
|
3996
|
+
2 && c.value !== /*smsCode*/
|
|
3997
|
+
p[1] && Qe(
|
|
3998
|
+
c,
|
|
3978
3999
|
/*smsCode*/
|
|
3979
|
-
|
|
4000
|
+
p[1]
|
|
3980
4001
|
), /*isSmsValid*/
|
|
3981
|
-
|
|
3982
|
-
4 &&
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
32 &&
|
|
3986
|
-
|
|
3987
|
-
32 &&
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
8 && (
|
|
3991
|
-
|
|
4002
|
+
p[2] ? w && (w.d(1), w = null) : w ? w.p(p, C) : (w = dt(p), w.c(), w.m(i, null)), C & /*isSmsValid*/
|
|
4003
|
+
4 && g !== (g = "Field SmsVerificationField " + (/*isSmsValid*/
|
|
4004
|
+
p[2] ? "" : "InvalidField")) && A(i, "class", g), /*timer*/
|
|
4005
|
+
p[3] ? P ? P.p(p, C) : (P = mt(p), P.c(), P.m(t, _)) : P && (P.d(1), P = null), C & /*$_*/
|
|
4006
|
+
32 && H !== (H = /*$_*/
|
|
4007
|
+
p[5]("activate") + "") && F(L, H), C & /*$_*/
|
|
4008
|
+
32 && N !== (N = /*$_*/
|
|
4009
|
+
p[5]("resend") + "") && F(D, N), /*timer*/
|
|
4010
|
+
p[3] ? f ? f.p(p, C) : (f = pt(p), f.c(), f.m(S, null)) : f && (f.d(1), f = null), C & /*timer*/
|
|
4011
|
+
8 && (S.disabled = /*timer*/
|
|
4012
|
+
p[3]);
|
|
3992
4013
|
},
|
|
3993
|
-
i:
|
|
3994
|
-
o:
|
|
3995
|
-
d(
|
|
3996
|
-
|
|
4014
|
+
i: U,
|
|
4015
|
+
o: U,
|
|
4016
|
+
d(p) {
|
|
4017
|
+
p && k(t), R.d(), w && w.d(), P && P.d(), f && f.d(), e[20](null), ae = !1, ne(ue);
|
|
3997
4018
|
}
|
|
3998
4019
|
};
|
|
3999
4020
|
}
|
|
4000
|
-
function
|
|
4021
|
+
function li(e, t, r) {
|
|
4001
4022
|
let n;
|
|
4002
|
-
|
|
4003
|
-
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, {
|
|
4004
|
-
const
|
|
4005
|
-
|
|
4006
|
-
const
|
|
4007
|
-
fetch(
|
|
4008
|
-
Object.keys(
|
|
4009
|
-
|
|
4023
|
+
Xt(e, ei, (f) => r(5, n = f));
|
|
4024
|
+
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
|
+
const N = { numeric: /^[0-9]{0,6}$/ };
|
|
4026
|
+
ti({ withLocale: "en", translations: {} });
|
|
4027
|
+
const D = () => {
|
|
4028
|
+
fetch(d).then((p) => p.json()).then((p) => {
|
|
4029
|
+
Object.keys(p).forEach((C) => {
|
|
4030
|
+
ct(C, p[C]);
|
|
4010
4031
|
});
|
|
4011
|
-
}).catch((
|
|
4012
|
-
console.log(
|
|
4032
|
+
}).catch((p) => {
|
|
4033
|
+
console.log(p);
|
|
4013
4034
|
});
|
|
4014
4035
|
};
|
|
4015
|
-
Object.keys(
|
|
4016
|
-
|
|
4036
|
+
Object.keys(ft).forEach((f) => {
|
|
4037
|
+
ct(f, ft[f]);
|
|
4017
4038
|
});
|
|
4018
|
-
const
|
|
4039
|
+
const j = async () => {
|
|
4019
4040
|
try {
|
|
4020
|
-
if ((await fetch(`${i}/v1/player/${a}/activateSMS?tokenId=${o}&validationCode=${
|
|
4041
|
+
if ((await fetch(`${i}/v1/player/${a}/activateSMS?tokenId=${o}&validationCode=${g}`, {
|
|
4021
4042
|
headers: {
|
|
4022
4043
|
"Content-Type": "application/json",
|
|
4023
4044
|
accept: "application/json"
|
|
4024
4045
|
}
|
|
4025
4046
|
})).ok)
|
|
4026
|
-
r(2,
|
|
4047
|
+
r(2, y = !0), window.postMessage({ type: "SmsHasBeenValidated" }, window.location.href);
|
|
4027
4048
|
else
|
|
4028
4049
|
throw window.postMessage(
|
|
4029
4050
|
{
|
|
@@ -4034,14 +4055,14 @@ function ui(e, t, r) {
|
|
|
4034
4055
|
}
|
|
4035
4056
|
},
|
|
4036
4057
|
window.location.href
|
|
4037
|
-
), r(2,
|
|
4038
|
-
} catch (
|
|
4039
|
-
console.log(
|
|
4058
|
+
), r(2, y = !1), new Error("Could not activate user");
|
|
4059
|
+
} catch (f) {
|
|
4060
|
+
console.log(f);
|
|
4040
4061
|
}
|
|
4041
|
-
},
|
|
4042
|
-
localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))),
|
|
4062
|
+
}, ae = async () => {
|
|
4063
|
+
localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))), le();
|
|
4043
4064
|
try {
|
|
4044
|
-
const
|
|
4065
|
+
const f = await fetch(`${i}/v1/player/sms/token`, {
|
|
4045
4066
|
method: "POST",
|
|
4046
4067
|
headers: {
|
|
4047
4068
|
"Content-Type": "application/json",
|
|
@@ -4052,77 +4073,62 @@ function ui(e, t, r) {
|
|
|
4052
4073
|
messageTemplate: s,
|
|
4053
4074
|
destination: h
|
|
4054
4075
|
})
|
|
4055
|
-
}),
|
|
4056
|
-
if (
|
|
4057
|
-
r(9, o =
|
|
4076
|
+
}), p = await f.json();
|
|
4077
|
+
if (f.ok)
|
|
4078
|
+
r(9, o = p.id), _ = !1, ue();
|
|
4058
4079
|
else
|
|
4059
|
-
throw
|
|
4060
|
-
} catch (
|
|
4061
|
-
|
|
4080
|
+
throw _ = !0, new Error("Failed to fetch");
|
|
4081
|
+
} catch (f) {
|
|
4082
|
+
_ = !0, console.error(f);
|
|
4062
4083
|
}
|
|
4063
|
-
},
|
|
4064
|
-
|
|
4065
|
-
},
|
|
4066
|
-
|
|
4067
|
-
c.innerHTML = u, S.appendChild(c);
|
|
4068
|
-
}, pe = () => {
|
|
4069
|
-
let c = new URL(l), y = document.createElement("style");
|
|
4070
|
-
fetch(c.href).then((Q) => Q.text()).then((Q) => {
|
|
4071
|
-
y.innerHTML = Q, setTimeout(
|
|
4072
|
-
() => {
|
|
4073
|
-
S.appendChild(y);
|
|
4074
|
-
},
|
|
4075
|
-
1
|
|
4076
|
-
), setTimeout(
|
|
4077
|
-
() => {
|
|
4078
|
-
},
|
|
4079
|
-
500
|
|
4080
|
-
);
|
|
4081
|
-
});
|
|
4082
|
-
}, V = () => {
|
|
4083
|
-
N < 60 && r(3, _ = setInterval(
|
|
4084
|
+
}, ue = () => {
|
|
4085
|
+
S > 0 ? r(4, S--, S) : (clearInterval(T), r(3, T = !1), r(4, S = 60));
|
|
4086
|
+
}, le = () => {
|
|
4087
|
+
B < 60 && r(3, T = setInterval(
|
|
4084
4088
|
() => {
|
|
4085
|
-
|
|
4089
|
+
ue();
|
|
4086
4090
|
},
|
|
4087
4091
|
1e3
|
|
4088
4092
|
));
|
|
4089
|
-
},
|
|
4090
|
-
!
|
|
4093
|
+
}, V = (f) => {
|
|
4094
|
+
!N.numeric.test(f.key) && f.keyCode !== 8 && f.keyCode !== 9 && f.keyCode !== 46 && f.preventDefault();
|
|
4091
4095
|
};
|
|
4092
|
-
|
|
4096
|
+
Yt(() => {
|
|
4093
4097
|
if (!a || !h) {
|
|
4094
|
-
let
|
|
4095
|
-
r(10, a =
|
|
4098
|
+
let f = JSON.parse(localStorage.getItem("playerData"));
|
|
4099
|
+
r(10, a = f.playerid), r(11, h = f.number);
|
|
4096
4100
|
}
|
|
4097
|
-
|
|
4101
|
+
return le(), () => {
|
|
4102
|
+
};
|
|
4098
4103
|
});
|
|
4099
|
-
function
|
|
4100
|
-
|
|
4104
|
+
function R() {
|
|
4105
|
+
g = this.value, r(1, g);
|
|
4101
4106
|
}
|
|
4102
|
-
const w = (
|
|
4103
|
-
function P(
|
|
4104
|
-
|
|
4105
|
-
|
|
4107
|
+
const w = (f) => V(f);
|
|
4108
|
+
function P(f) {
|
|
4109
|
+
Me[f ? "unshift" : "push"](() => {
|
|
4110
|
+
H = f, r(0, H);
|
|
4106
4111
|
});
|
|
4107
4112
|
}
|
|
4108
|
-
return e.$$set = (
|
|
4109
|
-
"endpoint" in
|
|
4113
|
+
return e.$$set = (f) => {
|
|
4114
|
+
"endpoint" in f && r(12, i = f.endpoint), "tokenid" in f && r(9, o = f.tokenid), "playerid" in f && r(10, a = f.playerid), "smstemplate" in f && r(13, s = f.smstemplate), "number" in f && r(11, h = f.number), "mbsource" in f && r(14, u = f.mbsource), "clientstyling" in f && r(15, l = f.clientstyling), "clientstylingurl" in f && r(16, c = f.clientstylingurl), "translationurl" in f && r(17, d = f.translationurl);
|
|
4110
4115
|
}, e.$$.update = () => {
|
|
4111
4116
|
e.$$.dirty & /*tokenid, playerid, endpoint*/
|
|
4112
4117
|
5632, e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4118
|
+
32769 && l && H && ri(H, l), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4119
|
+
65537 && c && H && ni(H, c), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4120
|
+
16385 && u && H && ii(H, `${u}.Style`), e.$$.dirty & /*translationurl*/
|
|
4121
|
+
131072 && d && D();
|
|
4116
4122
|
}, [
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
_,
|
|
4123
|
+
H,
|
|
4124
|
+
g,
|
|
4125
|
+
y,
|
|
4121
4126
|
T,
|
|
4127
|
+
S,
|
|
4122
4128
|
n,
|
|
4123
|
-
U,
|
|
4124
4129
|
j,
|
|
4125
|
-
|
|
4130
|
+
ae,
|
|
4131
|
+
V,
|
|
4126
4132
|
o,
|
|
4127
4133
|
a,
|
|
4128
4134
|
h,
|
|
@@ -4130,83 +4136,91 @@ function ui(e, t, r) {
|
|
|
4130
4136
|
s,
|
|
4131
4137
|
u,
|
|
4132
4138
|
l,
|
|
4133
|
-
|
|
4134
|
-
|
|
4139
|
+
c,
|
|
4140
|
+
d,
|
|
4141
|
+
R,
|
|
4135
4142
|
w,
|
|
4136
4143
|
P
|
|
4137
4144
|
];
|
|
4138
4145
|
}
|
|
4139
|
-
class
|
|
4146
|
+
class hi extends hr {
|
|
4140
4147
|
constructor(t) {
|
|
4141
|
-
super(),
|
|
4148
|
+
super(), ur(
|
|
4142
4149
|
this,
|
|
4143
4150
|
t,
|
|
4151
|
+
li,
|
|
4144
4152
|
ui,
|
|
4145
|
-
|
|
4146
|
-
Et,
|
|
4153
|
+
gt,
|
|
4147
4154
|
{
|
|
4148
4155
|
endpoint: 12,
|
|
4149
4156
|
tokenid: 9,
|
|
4150
4157
|
playerid: 10,
|
|
4151
4158
|
smstemplate: 13,
|
|
4152
4159
|
number: 11,
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4160
|
+
mbsource: 14,
|
|
4161
|
+
clientstyling: 15,
|
|
4162
|
+
clientstylingurl: 16,
|
|
4163
|
+
translationurl: 17
|
|
4156
4164
|
},
|
|
4157
|
-
|
|
4165
|
+
oi
|
|
4158
4166
|
);
|
|
4159
4167
|
}
|
|
4160
4168
|
get endpoint() {
|
|
4161
4169
|
return this.$$.ctx[12];
|
|
4162
4170
|
}
|
|
4163
4171
|
set endpoint(t) {
|
|
4164
|
-
this.$$set({ endpoint: t }),
|
|
4172
|
+
this.$$set({ endpoint: t }), $();
|
|
4165
4173
|
}
|
|
4166
4174
|
get tokenid() {
|
|
4167
4175
|
return this.$$.ctx[9];
|
|
4168
4176
|
}
|
|
4169
4177
|
set tokenid(t) {
|
|
4170
|
-
this.$$set({ tokenid: t }),
|
|
4178
|
+
this.$$set({ tokenid: t }), $();
|
|
4171
4179
|
}
|
|
4172
4180
|
get playerid() {
|
|
4173
4181
|
return this.$$.ctx[10];
|
|
4174
4182
|
}
|
|
4175
4183
|
set playerid(t) {
|
|
4176
|
-
this.$$set({ playerid: t }),
|
|
4184
|
+
this.$$set({ playerid: t }), $();
|
|
4177
4185
|
}
|
|
4178
4186
|
get smstemplate() {
|
|
4179
4187
|
return this.$$.ctx[13];
|
|
4180
4188
|
}
|
|
4181
4189
|
set smstemplate(t) {
|
|
4182
|
-
this.$$set({ smstemplate: t }),
|
|
4190
|
+
this.$$set({ smstemplate: t }), $();
|
|
4183
4191
|
}
|
|
4184
4192
|
get number() {
|
|
4185
4193
|
return this.$$.ctx[11];
|
|
4186
4194
|
}
|
|
4187
4195
|
set number(t) {
|
|
4188
|
-
this.$$set({ number: t }),
|
|
4196
|
+
this.$$set({ number: t }), $();
|
|
4189
4197
|
}
|
|
4190
|
-
get
|
|
4198
|
+
get mbsource() {
|
|
4191
4199
|
return this.$$.ctx[14];
|
|
4192
4200
|
}
|
|
4201
|
+
set mbsource(t) {
|
|
4202
|
+
this.$$set({ mbsource: t }), $();
|
|
4203
|
+
}
|
|
4204
|
+
get clientstyling() {
|
|
4205
|
+
return this.$$.ctx[15];
|
|
4206
|
+
}
|
|
4193
4207
|
set clientstyling(t) {
|
|
4194
|
-
this.$$set({ clientstyling: t }),
|
|
4208
|
+
this.$$set({ clientstyling: t }), $();
|
|
4195
4209
|
}
|
|
4196
4210
|
get clientstylingurl() {
|
|
4197
|
-
return this.$$.ctx[
|
|
4211
|
+
return this.$$.ctx[16];
|
|
4198
4212
|
}
|
|
4199
4213
|
set clientstylingurl(t) {
|
|
4200
|
-
this.$$set({ clientstylingurl: t }),
|
|
4214
|
+
this.$$set({ clientstylingurl: t }), $();
|
|
4201
4215
|
}
|
|
4202
4216
|
get translationurl() {
|
|
4203
|
-
return this.$$.ctx[
|
|
4217
|
+
return this.$$.ctx[17];
|
|
4204
4218
|
}
|
|
4205
4219
|
set translationurl(t) {
|
|
4206
|
-
this.$$set({ translationurl: t }),
|
|
4220
|
+
this.$$set({ translationurl: t }), $();
|
|
4207
4221
|
}
|
|
4208
4222
|
}
|
|
4209
|
-
|
|
4223
|
+
lr(hi, { endpoint: {}, tokenid: {}, playerid: {}, smstemplate: {}, number: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4210
4224
|
export {
|
|
4211
|
-
|
|
4225
|
+
hi as G
|
|
4212
4226
|
};
|