@everymatrix/general-player-sms-verification-form 1.67.3 → 1.68.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-B-2j6bc1.js → GeneralPlayerSmsVerificationForm-68RetrDV.js} +679 -677
- package/components/GeneralPlayerSmsVerificationForm-CzHUxHp5.cjs +3 -0
- package/components/{GeneralPlayerSmsVerificationForm-DRI1hBtZ.js → GeneralPlayerSmsVerificationForm-DrZLqUeL.js} +686 -684
- 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-CWv-zsso.cjs +0 -16
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var Yt = Object.defineProperty, Kt = Object.defineProperties;
|
|
2
|
+
var er = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var et = Object.getOwnPropertySymbols;
|
|
4
|
+
var tr = Object.prototype.hasOwnProperty, rr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ie = (e, t, r) => t in e ? Yt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
tr.call(t, r) && Ie(e, r, t[r]);
|
|
8
|
+
if (et)
|
|
9
|
+
for (var r of et(t))
|
|
10
|
+
rr.call(t, r) && Ie(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var $ = (e, t, r) => (
|
|
14
|
-
var
|
|
12
|
+
}, rt = (e, t) => Kt(e, er(t));
|
|
13
|
+
var $ = (e, t, r) => (Ie(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var ge = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (l) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(l));
|
|
@@ -29,25 +29,25 @@ var be = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function D() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Tt(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function nt() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function oe(e) {
|
|
39
|
+
e.forEach(Tt);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function qe(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Ht(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function nr(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function At(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const n of t)
|
|
53
53
|
n(void 0);
|
|
@@ -56,20 +56,20 @@ function Ht(e, ...t) {
|
|
|
56
56
|
const r = e.subscribe(...t);
|
|
57
57
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
e.$$.on_destroy.push(
|
|
59
|
+
function ir(e, t, r) {
|
|
60
|
+
e.$$.on_destroy.push(At(t, r));
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function y(e, t) {
|
|
63
63
|
e.appendChild(t);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const n =
|
|
65
|
+
function or(e, t, r) {
|
|
66
|
+
const n = sr(e);
|
|
67
67
|
if (!n.getElementById(t)) {
|
|
68
|
-
const i =
|
|
69
|
-
i.id = t, i.textContent = r,
|
|
68
|
+
const i = N("style");
|
|
69
|
+
i.id = t, i.textContent = r, ar(n, i);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function sr(e) {
|
|
73
73
|
if (!e)
|
|
74
74
|
return document;
|
|
75
75
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -79,45 +79,45 @@ function or(e) {
|
|
|
79
79
|
t
|
|
80
80
|
) : e.ownerDocument;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
return
|
|
82
|
+
function ar(e, t) {
|
|
83
|
+
return y(
|
|
84
84
|
/** @type {Document} */
|
|
85
85
|
e.head || e,
|
|
86
86
|
t
|
|
87
87
|
), t.sheet;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function J(e, t, r) {
|
|
90
90
|
e.insertBefore(t, r || null);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function V(e) {
|
|
93
93
|
e.parentNode && e.parentNode.removeChild(e);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function N(e) {
|
|
96
96
|
return document.createElement(e);
|
|
97
97
|
}
|
|
98
98
|
function M(e) {
|
|
99
99
|
return document.createTextNode(e);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function W() {
|
|
102
102
|
return M(" ");
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function ve(e, t, r, n) {
|
|
105
105
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function A(e, t, r) {
|
|
108
108
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function ur(e) {
|
|
111
111
|
return Array.from(e.childNodes);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function k(e, t) {
|
|
114
114
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
115
115
|
t);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function it(e, t) {
|
|
118
118
|
e.value = t == null ? "" : t;
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function lr(e) {
|
|
121
121
|
const t = {};
|
|
122
122
|
return e.childNodes.forEach(
|
|
123
123
|
/** @param {Element} node */
|
|
@@ -126,87 +126,87 @@ function ur(e) {
|
|
|
126
126
|
}
|
|
127
127
|
), t;
|
|
128
128
|
}
|
|
129
|
-
let
|
|
130
|
-
function
|
|
131
|
-
|
|
129
|
+
let me;
|
|
130
|
+
function de(e) {
|
|
131
|
+
me = e;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
if (!
|
|
133
|
+
function hr() {
|
|
134
|
+
if (!me)
|
|
135
135
|
throw new Error("Function called outside component initialization");
|
|
136
|
-
return
|
|
136
|
+
return me;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
139
|
-
|
|
138
|
+
function cr(e) {
|
|
139
|
+
hr().$$.on_mount.push(e);
|
|
140
140
|
}
|
|
141
|
-
const
|
|
142
|
-
let
|
|
143
|
-
const
|
|
144
|
-
let
|
|
145
|
-
function
|
|
146
|
-
|
|
141
|
+
const K = [], De = [];
|
|
142
|
+
let ee = [];
|
|
143
|
+
const ot = [], fr = /* @__PURE__ */ Promise.resolve();
|
|
144
|
+
let Fe = !1;
|
|
145
|
+
function dr() {
|
|
146
|
+
Fe || (Fe = !0, fr.then(U));
|
|
147
147
|
}
|
|
148
|
-
function
|
|
149
|
-
|
|
148
|
+
function Ge(e) {
|
|
149
|
+
ee.push(e);
|
|
150
150
|
}
|
|
151
|
-
const
|
|
152
|
-
let
|
|
151
|
+
const Oe = /* @__PURE__ */ new Set();
|
|
152
|
+
let q = 0;
|
|
153
153
|
function U() {
|
|
154
|
-
if (
|
|
154
|
+
if (q !== 0)
|
|
155
155
|
return;
|
|
156
|
-
const e =
|
|
156
|
+
const e = me;
|
|
157
157
|
do {
|
|
158
158
|
try {
|
|
159
|
-
for (;
|
|
160
|
-
const t =
|
|
161
|
-
|
|
159
|
+
for (; q < K.length; ) {
|
|
160
|
+
const t = K[q];
|
|
161
|
+
q++, de(t), mr(t.$$);
|
|
162
162
|
}
|
|
163
163
|
} catch (t) {
|
|
164
|
-
throw
|
|
164
|
+
throw K.length = 0, q = 0, t;
|
|
165
165
|
}
|
|
166
|
-
for (
|
|
167
|
-
|
|
168
|
-
for (let t = 0; t <
|
|
169
|
-
const r =
|
|
170
|
-
|
|
166
|
+
for (de(null), K.length = 0, q = 0; De.length; )
|
|
167
|
+
De.pop()();
|
|
168
|
+
for (let t = 0; t < ee.length; t += 1) {
|
|
169
|
+
const r = ee[t];
|
|
170
|
+
Oe.has(r) || (Oe.add(r), r());
|
|
171
171
|
}
|
|
172
|
-
|
|
173
|
-
} while (
|
|
174
|
-
for (;
|
|
175
|
-
|
|
176
|
-
|
|
172
|
+
ee.length = 0;
|
|
173
|
+
} while (K.length);
|
|
174
|
+
for (; ot.length; )
|
|
175
|
+
ot.pop()();
|
|
176
|
+
Fe = !1, Oe.clear(), de(e);
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function mr(e) {
|
|
179
179
|
if (e.fragment !== null) {
|
|
180
|
-
e.update(),
|
|
180
|
+
e.update(), oe(e.before_update);
|
|
181
181
|
const t = e.dirty;
|
|
182
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
182
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ge);
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function pr(e) {
|
|
186
186
|
const t = [], r = [];
|
|
187
|
-
|
|
187
|
+
ee.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ee = t;
|
|
188
188
|
}
|
|
189
|
-
const
|
|
190
|
-
function
|
|
191
|
-
e && e.i && (
|
|
189
|
+
const br = /* @__PURE__ */ new Set();
|
|
190
|
+
function gr(e, t) {
|
|
191
|
+
e && e.i && (br.delete(e), e.i(t));
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function vr(e, t, r) {
|
|
194
194
|
const { fragment: n, after_update: i } = e.$$;
|
|
195
|
-
n && n.m(t, r),
|
|
196
|
-
const o = e.$$.on_mount.map(
|
|
197
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
198
|
-
}), i.forEach(
|
|
195
|
+
n && n.m(t, r), Ge(() => {
|
|
196
|
+
const o = e.$$.on_mount.map(Tt).filter(qe);
|
|
197
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : oe(o), e.$$.on_mount = [];
|
|
198
|
+
}), i.forEach(Ge);
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function yr(e, t) {
|
|
201
201
|
const r = e.$$;
|
|
202
|
-
r.fragment !== null && (
|
|
202
|
+
r.fragment !== null && (pr(r.after_update), oe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
203
203
|
}
|
|
204
|
-
function
|
|
205
|
-
e.$$.dirty[0] === -1 && (
|
|
204
|
+
function Er(e, t) {
|
|
205
|
+
e.$$.dirty[0] === -1 && (K.push(e), dr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
206
206
|
}
|
|
207
|
-
function
|
|
208
|
-
const l =
|
|
209
|
-
|
|
207
|
+
function _r(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
208
|
+
const l = me;
|
|
209
|
+
de(e);
|
|
210
210
|
const u = e.$$ = {
|
|
211
211
|
fragment: null,
|
|
212
212
|
ctx: [],
|
|
@@ -214,7 +214,7 @@ function Er(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
214
214
|
props: o,
|
|
215
215
|
update: D,
|
|
216
216
|
not_equal: i,
|
|
217
|
-
bound:
|
|
217
|
+
bound: nt(),
|
|
218
218
|
// lifecycle
|
|
219
219
|
on_mount: [],
|
|
220
220
|
on_destroy: [],
|
|
@@ -223,25 +223,25 @@ function Er(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
223
223
|
after_update: [],
|
|
224
224
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
225
225
|
// everything else
|
|
226
|
-
callbacks:
|
|
226
|
+
callbacks: nt(),
|
|
227
227
|
dirty: a,
|
|
228
228
|
skip_bound: !1,
|
|
229
229
|
root: t.target || l.$$.root
|
|
230
230
|
};
|
|
231
231
|
s && s(u.root);
|
|
232
232
|
let h = !1;
|
|
233
|
-
if (u.ctx = r(e, t.props || {}, (c, d, ...g) => {
|
|
234
|
-
const
|
|
235
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] =
|
|
236
|
-
}), u.update(), h = !0,
|
|
233
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, d, ...g) => {
|
|
234
|
+
const v = g.length ? g[0] : d;
|
|
235
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = v) && (!u.skip_bound && u.bound[c] && u.bound[c](v), h && Er(e, c)), d;
|
|
236
|
+
}) : [], u.update(), h = !0, oe(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
237
237
|
if (t.hydrate) {
|
|
238
|
-
const c =
|
|
239
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
238
|
+
const c = ur(t.target);
|
|
239
|
+
u.fragment && u.fragment.l(c), c.forEach(V);
|
|
240
240
|
} else
|
|
241
241
|
u.fragment && u.fragment.c();
|
|
242
|
-
t.intro &&
|
|
242
|
+
t.intro && gr(e.$$.fragment), vr(e, t.target, t.anchor), U();
|
|
243
243
|
}
|
|
244
|
-
|
|
244
|
+
de(l);
|
|
245
245
|
}
|
|
246
246
|
let Bt;
|
|
247
247
|
typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
@@ -281,42 +281,42 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
connectedCallback() {
|
|
284
|
-
return
|
|
284
|
+
return ge(this, null, function* () {
|
|
285
285
|
if (this.$$cn = !0, !this.$$c) {
|
|
286
286
|
let t = function(o) {
|
|
287
287
|
return () => {
|
|
288
288
|
let s;
|
|
289
289
|
return {
|
|
290
290
|
c: function() {
|
|
291
|
-
s =
|
|
291
|
+
s = N("slot"), o !== "default" && A(s, "name", o);
|
|
292
292
|
},
|
|
293
293
|
/**
|
|
294
294
|
* @param {HTMLElement} target
|
|
295
295
|
* @param {HTMLElement} [anchor]
|
|
296
296
|
*/
|
|
297
297
|
m: function(u, h) {
|
|
298
|
-
|
|
298
|
+
J(u, s, h);
|
|
299
299
|
},
|
|
300
300
|
d: function(u) {
|
|
301
|
-
u &&
|
|
301
|
+
u && V(s);
|
|
302
302
|
}
|
|
303
303
|
};
|
|
304
304
|
};
|
|
305
305
|
};
|
|
306
306
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
307
307
|
return;
|
|
308
|
-
const r = {}, n =
|
|
308
|
+
const r = {}, n = lr(this);
|
|
309
309
|
for (const o of this.$$s)
|
|
310
310
|
o in n && (r[o] = [t(o)]);
|
|
311
311
|
for (const o of this.attributes) {
|
|
312
312
|
const s = this.$$g_p(o.name);
|
|
313
|
-
s in this.$$d || (this.$$d[s] =
|
|
313
|
+
s in this.$$d || (this.$$d[s] = Ee(s, o.value, this.$$p_d, "toProp"));
|
|
314
314
|
}
|
|
315
315
|
for (const o in this.$$p_d)
|
|
316
316
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
317
317
|
this.$$c = new this.$$ctor({
|
|
318
318
|
target: this.shadowRoot || this,
|
|
319
|
-
props: tt(
|
|
319
|
+
props: rt(tt({}, this.$$d), {
|
|
320
320
|
$$slots: r,
|
|
321
321
|
$$scope: {
|
|
322
322
|
ctx: []
|
|
@@ -327,7 +327,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
327
327
|
this.$$r = !0;
|
|
328
328
|
for (const o in this.$$p_d)
|
|
329
329
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
330
|
-
const s =
|
|
330
|
+
const s = Ee(
|
|
331
331
|
o,
|
|
332
332
|
this.$$d[o],
|
|
333
333
|
this.$$p_d,
|
|
@@ -351,7 +351,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
351
351
|
// and setting attributes through setAttribute etc, this is helpful
|
|
352
352
|
attributeChangedCallback(t, r, n) {
|
|
353
353
|
var i;
|
|
354
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
354
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = Ee(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
355
355
|
}
|
|
356
356
|
disconnectedCallback() {
|
|
357
357
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -364,7 +364,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
364
364
|
) || t;
|
|
365
365
|
}
|
|
366
366
|
});
|
|
367
|
-
function
|
|
367
|
+
function Ee(e, t, r, n) {
|
|
368
368
|
var o;
|
|
369
369
|
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
370
370
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -412,7 +412,7 @@ function xr(e, t, r, n, i, o) {
|
|
|
412
412
|
},
|
|
413
413
|
set(l) {
|
|
414
414
|
var u;
|
|
415
|
-
l =
|
|
415
|
+
l = Ee(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
|
|
416
416
|
}
|
|
417
417
|
});
|
|
418
418
|
}), n.forEach((a) => {
|
|
@@ -425,7 +425,7 @@ function xr(e, t, r, n, i, o) {
|
|
|
425
425
|
}), e.element = /** @type {any} */
|
|
426
426
|
s, s;
|
|
427
427
|
}
|
|
428
|
-
class
|
|
428
|
+
class Sr {
|
|
429
429
|
constructor() {
|
|
430
430
|
/**
|
|
431
431
|
* ### PRIVATE API
|
|
@@ -446,7 +446,7 @@ class _r {
|
|
|
446
446
|
}
|
|
447
447
|
/** @returns {void} */
|
|
448
448
|
$destroy() {
|
|
449
|
-
|
|
449
|
+
yr(this, 1), this.$destroy = D;
|
|
450
450
|
}
|
|
451
451
|
/**
|
|
452
452
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -455,7 +455,7 @@ class _r {
|
|
|
455
455
|
* @returns {() => void}
|
|
456
456
|
*/
|
|
457
457
|
$on(t, r) {
|
|
458
|
-
if (!
|
|
458
|
+
if (!qe(r))
|
|
459
459
|
return D;
|
|
460
460
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
461
461
|
return n.push(r), () => {
|
|
@@ -468,29 +468,29 @@ class _r {
|
|
|
468
468
|
* @returns {void}
|
|
469
469
|
*/
|
|
470
470
|
$set(t) {
|
|
471
|
-
this.$$set && !
|
|
471
|
+
this.$$set && !nr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
const
|
|
475
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
476
|
-
const
|
|
477
|
-
function
|
|
474
|
+
const Tr = "4";
|
|
475
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Tr);
|
|
476
|
+
const Y = [];
|
|
477
|
+
function Hr(e, t) {
|
|
478
478
|
return {
|
|
479
|
-
subscribe:
|
|
479
|
+
subscribe: Ae(e, t).subscribe
|
|
480
480
|
};
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function Ae(e, t = D) {
|
|
483
483
|
let r;
|
|
484
484
|
const n = /* @__PURE__ */ new Set();
|
|
485
485
|
function i(a) {
|
|
486
|
-
if (
|
|
487
|
-
const l = !
|
|
486
|
+
if (Ht(e, a) && (e = a, r)) {
|
|
487
|
+
const l = !Y.length;
|
|
488
488
|
for (const u of n)
|
|
489
|
-
u[1](),
|
|
489
|
+
u[1](), Y.push(u, e);
|
|
490
490
|
if (l) {
|
|
491
|
-
for (let u = 0; u <
|
|
492
|
-
|
|
493
|
-
|
|
491
|
+
for (let u = 0; u < Y.length; u += 2)
|
|
492
|
+
Y[u][0](Y[u + 1]);
|
|
493
|
+
Y.length = 0;
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
496
|
}
|
|
@@ -505,12 +505,12 @@ function Te(e, t = D) {
|
|
|
505
505
|
}
|
|
506
506
|
return { set: i, update: o, subscribe: s };
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function se(e, t, r) {
|
|
509
509
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
510
510
|
if (!i.every(Boolean))
|
|
511
511
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
512
512
|
const o = t.length < 2;
|
|
513
|
-
return
|
|
513
|
+
return Hr(r, (s, a) => {
|
|
514
514
|
let l = !1;
|
|
515
515
|
const u = [];
|
|
516
516
|
let h = 0, c = D;
|
|
@@ -518,11 +518,11 @@ function oe(e, t, r) {
|
|
|
518
518
|
if (h)
|
|
519
519
|
return;
|
|
520
520
|
c();
|
|
521
|
-
const
|
|
522
|
-
o ? s(
|
|
521
|
+
const v = t(n ? u[0] : u, s, a);
|
|
522
|
+
o ? s(v) : c = qe(v) ? v : D;
|
|
523
523
|
}, g = i.map(
|
|
524
|
-
(
|
|
525
|
-
|
|
524
|
+
(v, _) => At(
|
|
525
|
+
v,
|
|
526
526
|
(T) => {
|
|
527
527
|
u[_] = T, h &= ~(1 << _), l && d();
|
|
528
528
|
},
|
|
@@ -532,126 +532,112 @@ function oe(e, t, r) {
|
|
|
532
532
|
)
|
|
533
533
|
);
|
|
534
534
|
return l = !0, d(), function() {
|
|
535
|
-
|
|
535
|
+
oe(g), c(), l = !1;
|
|
536
536
|
};
|
|
537
537
|
});
|
|
538
538
|
}
|
|
539
|
-
function
|
|
540
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
539
|
+
function Ar(e) {
|
|
540
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
541
541
|
}
|
|
542
542
|
var Br = function(t) {
|
|
543
|
-
return
|
|
543
|
+
return wr(t) && !Pr(t);
|
|
544
544
|
};
|
|
545
|
-
function
|
|
545
|
+
function wr(e) {
|
|
546
546
|
return !!e && typeof e == "object";
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function Pr(e) {
|
|
549
549
|
var t = Object.prototype.toString.call(e);
|
|
550
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
550
|
+
return t === "[object RegExp]" || t === "[object Date]" || Or(e);
|
|
551
551
|
}
|
|
552
|
-
var
|
|
553
|
-
function
|
|
554
|
-
return e.$$typeof ===
|
|
552
|
+
var Cr = typeof Symbol == "function" && Symbol.for, Ir = Cr ? Symbol.for("react.element") : 60103;
|
|
553
|
+
function Or(e) {
|
|
554
|
+
return e.$$typeof === Ir;
|
|
555
555
|
}
|
|
556
556
|
function Nr(e) {
|
|
557
557
|
return Array.isArray(e) ? [] : {};
|
|
558
558
|
}
|
|
559
|
-
function
|
|
560
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
559
|
+
function pe(e, t) {
|
|
560
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? te(Nr(e), e, t) : e;
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function Mr(e, t, r) {
|
|
563
563
|
return e.concat(t).map(function(n) {
|
|
564
|
-
return
|
|
564
|
+
return pe(n, r);
|
|
565
565
|
});
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function Lr(e, t) {
|
|
568
568
|
if (!t.customMerge)
|
|
569
|
-
return
|
|
569
|
+
return te;
|
|
570
570
|
var r = t.customMerge(e);
|
|
571
|
-
return typeof r == "function" ? r :
|
|
571
|
+
return typeof r == "function" ? r : te;
|
|
572
572
|
}
|
|
573
|
-
function
|
|
573
|
+
function Rr(e) {
|
|
574
574
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
575
575
|
return Object.propertyIsEnumerable.call(e, t);
|
|
576
576
|
}) : [];
|
|
577
577
|
}
|
|
578
|
-
function
|
|
579
|
-
return Object.keys(e).concat(
|
|
578
|
+
function st(e) {
|
|
579
|
+
return Object.keys(e).concat(Rr(e));
|
|
580
580
|
}
|
|
581
|
-
function
|
|
581
|
+
function wt(e, t) {
|
|
582
582
|
try {
|
|
583
583
|
return t in e;
|
|
584
584
|
} catch (r) {
|
|
585
585
|
return !1;
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
|
-
function
|
|
589
|
-
return
|
|
588
|
+
function $r(e, t) {
|
|
589
|
+
return wt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
590
590
|
}
|
|
591
|
-
function
|
|
591
|
+
function Ur(e, t, r) {
|
|
592
592
|
var n = {};
|
|
593
|
-
return r.isMergeableObject(e) &&
|
|
594
|
-
n[i] =
|
|
595
|
-
}),
|
|
596
|
-
|
|
593
|
+
return r.isMergeableObject(e) && st(e).forEach(function(i) {
|
|
594
|
+
n[i] = pe(e[i], r);
|
|
595
|
+
}), st(t).forEach(function(i) {
|
|
596
|
+
$r(e, i) || (wt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Lr(i, r)(e[i], t[i], r) : n[i] = pe(t[i], r));
|
|
597
597
|
}), n;
|
|
598
598
|
}
|
|
599
|
-
function
|
|
600
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
599
|
+
function te(e, t, r) {
|
|
600
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Mr, r.isMergeableObject = r.isMergeableObject || Br, r.cloneUnlessOtherwiseSpecified = pe;
|
|
601
601
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
602
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
602
|
+
return o ? n ? r.arrayMerge(e, t, r) : Ur(e, t, r) : pe(t, r);
|
|
603
603
|
}
|
|
604
|
-
|
|
604
|
+
te.all = function(t, r) {
|
|
605
605
|
if (!Array.isArray(t))
|
|
606
606
|
throw new Error("first argument should be an array");
|
|
607
607
|
return t.reduce(function(n, i) {
|
|
608
|
-
return
|
|
608
|
+
return te(n, i, r);
|
|
609
609
|
}, {});
|
|
610
610
|
};
|
|
611
|
-
var
|
|
612
|
-
const
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
617
|
-
purpose with or without fee is hereby granted.
|
|
618
|
-
|
|
619
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
620
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
621
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
622
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
623
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
624
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
625
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
626
|
-
***************************************************************************** */
|
|
627
|
-
var Fe = function(e, t) {
|
|
628
|
-
return Fe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
611
|
+
var Dr = te, Fr = Dr;
|
|
612
|
+
const Gr = /* @__PURE__ */ Ar(Fr);
|
|
613
|
+
var ke = function(e, t) {
|
|
614
|
+
return ke = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
629
615
|
r.__proto__ = n;
|
|
630
616
|
} || function(r, n) {
|
|
631
617
|
for (var i in n)
|
|
632
618
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
633
|
-
},
|
|
619
|
+
}, ke(e, t);
|
|
634
620
|
};
|
|
635
|
-
function
|
|
621
|
+
function Be(e, t) {
|
|
636
622
|
if (typeof t != "function" && t !== null)
|
|
637
623
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
638
|
-
|
|
624
|
+
ke(e, t);
|
|
639
625
|
function r() {
|
|
640
626
|
this.constructor = e;
|
|
641
627
|
}
|
|
642
628
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
643
629
|
}
|
|
644
|
-
var
|
|
645
|
-
return
|
|
630
|
+
var G = function() {
|
|
631
|
+
return G = Object.assign || function(t) {
|
|
646
632
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
647
633
|
r = arguments[n];
|
|
648
634
|
for (var o in r)
|
|
649
635
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
650
636
|
}
|
|
651
637
|
return t;
|
|
652
|
-
},
|
|
638
|
+
}, G.apply(this, arguments);
|
|
653
639
|
};
|
|
654
|
-
function
|
|
640
|
+
function kr(e, t) {
|
|
655
641
|
var r = {};
|
|
656
642
|
for (var n in e)
|
|
657
643
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -660,46 +646,43 @@ function Gr(e, t) {
|
|
|
660
646
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
661
647
|
return r;
|
|
662
648
|
}
|
|
663
|
-
function
|
|
664
|
-
if (arguments.length === 2)
|
|
649
|
+
function Ne(e, t, r) {
|
|
650
|
+
if (r || arguments.length === 2)
|
|
665
651
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
666
652
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
667
|
-
return e.concat(o || t);
|
|
653
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
668
654
|
}
|
|
669
|
-
function
|
|
670
|
-
var r = t && t.cache ? t.cache :
|
|
655
|
+
function Me(e, t) {
|
|
656
|
+
var r = t && t.cache ? t.cache : Jr, n = t && t.serializer ? t.serializer : Wr, i = t && t.strategy ? t.strategy : Xr;
|
|
671
657
|
return i(e, {
|
|
672
658
|
cache: r,
|
|
673
659
|
serializer: n
|
|
674
660
|
});
|
|
675
661
|
}
|
|
676
|
-
function
|
|
662
|
+
function jr(e) {
|
|
677
663
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
678
664
|
}
|
|
679
|
-
function
|
|
680
|
-
var i =
|
|
665
|
+
function Vr(e, t, r, n) {
|
|
666
|
+
var i = jr(n) ? n : r(n), o = t.get(i);
|
|
681
667
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
682
668
|
}
|
|
683
669
|
function Pt(e, t, r) {
|
|
684
670
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
685
671
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
686
672
|
}
|
|
687
|
-
function
|
|
673
|
+
function Ct(e, t, r, n, i) {
|
|
688
674
|
return r.bind(t, e, n, i);
|
|
689
675
|
}
|
|
690
|
-
function jr(e, t) {
|
|
691
|
-
var r = e.length === 1 ? wt : Pt;
|
|
692
|
-
return Qe(e, this, r, t.cache.create(), t.serializer);
|
|
693
|
-
}
|
|
694
|
-
function Vr(e, t) {
|
|
695
|
-
return Qe(e, this, Pt, t.cache.create(), t.serializer);
|
|
696
|
-
}
|
|
697
676
|
function Xr(e, t) {
|
|
698
|
-
|
|
677
|
+
var r = e.length === 1 ? Vr : Pt;
|
|
678
|
+
return Ct(e, this, r, t.cache.create(), t.serializer);
|
|
679
|
+
}
|
|
680
|
+
function zr(e, t) {
|
|
681
|
+
return Ct(e, this, Pt, t.cache.create(), t.serializer);
|
|
699
682
|
}
|
|
700
|
-
var
|
|
683
|
+
var Wr = function() {
|
|
701
684
|
return JSON.stringify(arguments);
|
|
702
|
-
},
|
|
685
|
+
}, Zr = (
|
|
703
686
|
/** @class */
|
|
704
687
|
function() {
|
|
705
688
|
function e() {
|
|
@@ -711,62 +694,71 @@ var zr = function() {
|
|
|
711
694
|
this.cache[t] = r;
|
|
712
695
|
}, e;
|
|
713
696
|
}()
|
|
714
|
-
),
|
|
697
|
+
), Jr = {
|
|
715
698
|
create: function() {
|
|
716
|
-
return new
|
|
699
|
+
return new Zr();
|
|
717
700
|
}
|
|
718
|
-
},
|
|
719
|
-
variadic:
|
|
720
|
-
|
|
721
|
-
|
|
701
|
+
}, Le = {
|
|
702
|
+
variadic: zr
|
|
703
|
+
}, Se = function() {
|
|
704
|
+
return Se = Object.assign || function(t) {
|
|
705
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
706
|
+
r = arguments[n];
|
|
707
|
+
for (var o in r)
|
|
708
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
709
|
+
}
|
|
710
|
+
return t;
|
|
711
|
+
}, Se.apply(this, arguments);
|
|
712
|
+
};
|
|
713
|
+
var m;
|
|
722
714
|
(function(e) {
|
|
723
715
|
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";
|
|
724
716
|
})(m || (m = {}));
|
|
725
|
-
var
|
|
717
|
+
var E;
|
|
726
718
|
(function(e) {
|
|
727
719
|
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";
|
|
728
|
-
})(
|
|
729
|
-
var
|
|
720
|
+
})(E || (E = {}));
|
|
721
|
+
var re;
|
|
730
722
|
(function(e) {
|
|
731
723
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
732
|
-
})(
|
|
733
|
-
function
|
|
734
|
-
return e.type ===
|
|
735
|
-
}
|
|
736
|
-
function Jr(e) {
|
|
737
|
-
return e.type === x.argument;
|
|
724
|
+
})(re || (re = {}));
|
|
725
|
+
function at(e) {
|
|
726
|
+
return e.type === E.literal;
|
|
738
727
|
}
|
|
739
|
-
function
|
|
740
|
-
return e.type ===
|
|
728
|
+
function Qr(e) {
|
|
729
|
+
return e.type === E.argument;
|
|
741
730
|
}
|
|
742
731
|
function It(e) {
|
|
743
|
-
return e.type ===
|
|
744
|
-
}
|
|
745
|
-
function Nt(e) {
|
|
746
|
-
return e.type === x.time;
|
|
732
|
+
return e.type === E.number;
|
|
747
733
|
}
|
|
748
734
|
function Ot(e) {
|
|
749
|
-
return e.type ===
|
|
735
|
+
return e.type === E.date;
|
|
750
736
|
}
|
|
751
|
-
function
|
|
752
|
-
return e.type ===
|
|
737
|
+
function Nt(e) {
|
|
738
|
+
return e.type === E.time;
|
|
753
739
|
}
|
|
754
|
-
function
|
|
755
|
-
return e.type ===
|
|
740
|
+
function Mt(e) {
|
|
741
|
+
return e.type === E.select;
|
|
756
742
|
}
|
|
757
743
|
function Lt(e) {
|
|
758
|
-
return e.type ===
|
|
744
|
+
return e.type === E.plural;
|
|
745
|
+
}
|
|
746
|
+
function qr(e) {
|
|
747
|
+
return e.type === E.pound;
|
|
759
748
|
}
|
|
760
749
|
function Rt(e) {
|
|
761
|
-
return
|
|
750
|
+
return e.type === E.tag;
|
|
762
751
|
}
|
|
763
|
-
function
|
|
764
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
752
|
+
function $t(e) {
|
|
753
|
+
return !!(e && typeof e == "object" && e.type === re.number);
|
|
754
|
+
}
|
|
755
|
+
function je(e) {
|
|
756
|
+
return !!(e && typeof e == "object" && e.type === re.dateTime);
|
|
765
757
|
}
|
|
766
|
-
var
|
|
767
|
-
function
|
|
758
|
+
var Ut = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Yr = /(?:[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;
|
|
759
|
+
function Kr(e) {
|
|
768
760
|
var t = {};
|
|
769
|
-
return e.replace(
|
|
761
|
+
return e.replace(Yr, function(r) {
|
|
770
762
|
var n = r.length;
|
|
771
763
|
switch (r[0]) {
|
|
772
764
|
case "G":
|
|
@@ -855,11 +847,21 @@ function Yr(e) {
|
|
|
855
847
|
return "";
|
|
856
848
|
}), t;
|
|
857
849
|
}
|
|
858
|
-
var
|
|
859
|
-
function
|
|
850
|
+
var S = function() {
|
|
851
|
+
return S = Object.assign || function(t) {
|
|
852
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
853
|
+
r = arguments[n];
|
|
854
|
+
for (var o in r)
|
|
855
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
856
|
+
}
|
|
857
|
+
return t;
|
|
858
|
+
}, S.apply(this, arguments);
|
|
859
|
+
};
|
|
860
|
+
var en = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
861
|
+
function tn(e) {
|
|
860
862
|
if (e.length === 0)
|
|
861
863
|
throw new Error("Number skeleton cannot be empty");
|
|
862
|
-
for (var t = e.split(
|
|
864
|
+
for (var t = e.split(en).filter(function(d) {
|
|
863
865
|
return d.length > 0;
|
|
864
866
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
865
867
|
var o = i[n], s = o.split("/");
|
|
@@ -874,17 +876,17 @@ function en(e) {
|
|
|
874
876
|
}
|
|
875
877
|
return r;
|
|
876
878
|
}
|
|
877
|
-
function
|
|
879
|
+
function rn(e) {
|
|
878
880
|
return e.replace(/^(.*?)-/, "");
|
|
879
881
|
}
|
|
880
|
-
var
|
|
881
|
-
function
|
|
882
|
+
var ut = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Dt = /^(@+)?(\+|#+)?[rs]?$/g, nn = /(\*)(0+)|(#+)(0+)|(0+)/g, Ft = /^(0+)$/;
|
|
883
|
+
function lt(e) {
|
|
882
884
|
var t = {};
|
|
883
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
885
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Dt, function(r, n, i) {
|
|
884
886
|
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)), "";
|
|
885
887
|
}), t;
|
|
886
888
|
}
|
|
887
|
-
function
|
|
889
|
+
function Gt(e) {
|
|
888
890
|
switch (e) {
|
|
889
891
|
case "sign-auto":
|
|
890
892
|
return {
|
|
@@ -924,7 +926,7 @@ function Ft(e) {
|
|
|
924
926
|
};
|
|
925
927
|
}
|
|
926
928
|
}
|
|
927
|
-
function
|
|
929
|
+
function on(e) {
|
|
928
930
|
var t;
|
|
929
931
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
930
932
|
notation: "engineering"
|
|
@@ -932,17 +934,17 @@ function nn(e) {
|
|
|
932
934
|
notation: "scientific"
|
|
933
935
|
}, e = e.slice(1)), t) {
|
|
934
936
|
var r = e.slice(0, 2);
|
|
935
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
937
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ft.test(e))
|
|
936
938
|
throw new Error("Malformed concise eng/scientific notation");
|
|
937
939
|
t.minimumIntegerDigits = e.length;
|
|
938
940
|
}
|
|
939
941
|
return t;
|
|
940
942
|
}
|
|
941
|
-
function
|
|
942
|
-
var t = {}, r =
|
|
943
|
+
function ht(e) {
|
|
944
|
+
var t = {}, r = Gt(e);
|
|
943
945
|
return r || t;
|
|
944
946
|
}
|
|
945
|
-
function
|
|
947
|
+
function sn(e) {
|
|
946
948
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
947
949
|
var i = n[r];
|
|
948
950
|
switch (i.stem) {
|
|
@@ -966,7 +968,7 @@ function on(e) {
|
|
|
966
968
|
continue;
|
|
967
969
|
case "measure-unit":
|
|
968
970
|
case "unit":
|
|
969
|
-
t.style = "unit", t.unit =
|
|
971
|
+
t.style = "unit", t.unit = rn(i.options[0]);
|
|
970
972
|
continue;
|
|
971
973
|
case "compact-short":
|
|
972
974
|
case "K":
|
|
@@ -977,13 +979,13 @@ function on(e) {
|
|
|
977
979
|
t.notation = "compact", t.compactDisplay = "long";
|
|
978
980
|
continue;
|
|
979
981
|
case "scientific":
|
|
980
|
-
t =
|
|
981
|
-
return
|
|
982
|
+
t = S(S(S({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
983
|
+
return S(S({}, l), ht(u));
|
|
982
984
|
}, {}));
|
|
983
985
|
continue;
|
|
984
986
|
case "engineering":
|
|
985
|
-
t =
|
|
986
|
-
return
|
|
987
|
+
t = S(S(S({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
988
|
+
return S(S({}, l), ht(u));
|
|
987
989
|
}, {}));
|
|
988
990
|
continue;
|
|
989
991
|
case "notation-simple":
|
|
@@ -1028,7 +1030,7 @@ function on(e) {
|
|
|
1028
1030
|
case "integer-width":
|
|
1029
1031
|
if (i.options.length > 1)
|
|
1030
1032
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1031
|
-
i.options[0].replace(
|
|
1033
|
+
i.options[0].replace(nn, function(l, u, h, c, d, g) {
|
|
1032
1034
|
if (u)
|
|
1033
1035
|
t.minimumIntegerDigits = h.length;
|
|
1034
1036
|
else {
|
|
@@ -1041,32 +1043,32 @@ function on(e) {
|
|
|
1041
1043
|
});
|
|
1042
1044
|
continue;
|
|
1043
1045
|
}
|
|
1044
|
-
if (
|
|
1046
|
+
if (Ft.test(i.stem)) {
|
|
1045
1047
|
t.minimumIntegerDigits = i.stem.length;
|
|
1046
1048
|
continue;
|
|
1047
1049
|
}
|
|
1048
|
-
if (
|
|
1050
|
+
if (ut.test(i.stem)) {
|
|
1049
1051
|
if (i.options.length > 1)
|
|
1050
1052
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1051
|
-
i.stem.replace(
|
|
1053
|
+
i.stem.replace(ut, function(l, u, h, c, d, g) {
|
|
1052
1054
|
return h === "*" ? 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), "";
|
|
1053
1055
|
});
|
|
1054
1056
|
var o = i.options[0];
|
|
1055
|
-
o === "w" ? t =
|
|
1057
|
+
o === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = S(S({}, t), lt(o)));
|
|
1056
1058
|
continue;
|
|
1057
1059
|
}
|
|
1058
|
-
if (
|
|
1059
|
-
t =
|
|
1060
|
+
if (Dt.test(i.stem)) {
|
|
1061
|
+
t = S(S({}, t), lt(i.stem));
|
|
1060
1062
|
continue;
|
|
1061
1063
|
}
|
|
1062
|
-
var s =
|
|
1063
|
-
s && (t =
|
|
1064
|
-
var a =
|
|
1065
|
-
a && (t =
|
|
1064
|
+
var s = Gt(i.stem);
|
|
1065
|
+
s && (t = S(S({}, t), s));
|
|
1066
|
+
var a = on(i.stem);
|
|
1067
|
+
a && (t = S(S({}, t), a));
|
|
1066
1068
|
}
|
|
1067
1069
|
return t;
|
|
1068
1070
|
}
|
|
1069
|
-
var
|
|
1071
|
+
var ye = {
|
|
1070
1072
|
"001": [
|
|
1071
1073
|
"H",
|
|
1072
1074
|
"h"
|
|
@@ -2481,13 +2483,13 @@ var ve = {
|
|
|
2481
2483
|
"h"
|
|
2482
2484
|
]
|
|
2483
2485
|
};
|
|
2484
|
-
function
|
|
2486
|
+
function an(e, t) {
|
|
2485
2487
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2486
2488
|
var i = e.charAt(n);
|
|
2487
2489
|
if (i === "j") {
|
|
2488
2490
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2489
2491
|
o++, n++;
|
|
2490
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
2492
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = un(t);
|
|
2491
2493
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2492
2494
|
r += l;
|
|
2493
2495
|
for (; s-- > 0; )
|
|
@@ -2497,7 +2499,7 @@ function sn(e, t) {
|
|
|
2497
2499
|
}
|
|
2498
2500
|
return r;
|
|
2499
2501
|
}
|
|
2500
|
-
function
|
|
2502
|
+
function un(e) {
|
|
2501
2503
|
var t = e.hourCycle;
|
|
2502
2504
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2503
2505
|
e.hourCycles && // @ts-ignore
|
|
@@ -2516,23 +2518,23 @@ function an(e) {
|
|
|
2516
2518
|
}
|
|
2517
2519
|
var r = e.language, n;
|
|
2518
2520
|
r !== "root" && (n = e.maximize().region);
|
|
2519
|
-
var i =
|
|
2521
|
+
var i = ye[n || ""] || ye[r || ""] || ye["".concat(r, "-001")] || ye["001"];
|
|
2520
2522
|
return i[0];
|
|
2521
2523
|
}
|
|
2522
|
-
var
|
|
2524
|
+
var Re, ln = new RegExp("^".concat(Ut.source, "*")), hn = new RegExp("".concat(Ut.source, "*$"));
|
|
2523
2525
|
function b(e, t) {
|
|
2524
2526
|
return { start: e, end: t };
|
|
2525
2527
|
}
|
|
2526
|
-
var
|
|
2528
|
+
var cn = !!String.prototype.startsWith && "_a".startsWith("a", 1), fn = !!String.fromCodePoint, dn = !!Object.fromEntries, mn = !!String.prototype.codePointAt, pn = !!String.prototype.trimStart, bn = !!String.prototype.trimEnd, gn = !!Number.isSafeInteger, vn = gn ? Number.isSafeInteger : function(e) {
|
|
2527
2529
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2528
|
-
},
|
|
2530
|
+
}, Ve = !0;
|
|
2529
2531
|
try {
|
|
2530
|
-
var
|
|
2531
|
-
|
|
2532
|
+
var yn = jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2533
|
+
Ve = ((Re = yn.exec("a")) === null || Re === void 0 ? void 0 : Re[0]) === "a";
|
|
2532
2534
|
} catch (e) {
|
|
2533
|
-
|
|
2535
|
+
Ve = !1;
|
|
2534
2536
|
}
|
|
2535
|
-
var
|
|
2537
|
+
var ct = cn ? (
|
|
2536
2538
|
// Native
|
|
2537
2539
|
function(t, r, n) {
|
|
2538
2540
|
return t.startsWith(r, n);
|
|
@@ -2542,7 +2544,7 @@ var ht = hn ? (
|
|
|
2542
2544
|
function(t, r, n) {
|
|
2543
2545
|
return t.slice(n, n + r.length) === r;
|
|
2544
2546
|
}
|
|
2545
|
-
),
|
|
2547
|
+
), Xe = fn ? String.fromCodePoint : (
|
|
2546
2548
|
// IE11
|
|
2547
2549
|
function() {
|
|
2548
2550
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2554,9 +2556,9 @@ var ht = hn ? (
|
|
|
2554
2556
|
}
|
|
2555
2557
|
return n;
|
|
2556
2558
|
}
|
|
2557
|
-
),
|
|
2559
|
+
), ft = (
|
|
2558
2560
|
// native
|
|
2559
|
-
|
|
2561
|
+
dn ? Object.fromEntries : (
|
|
2560
2562
|
// Ponyfill
|
|
2561
2563
|
function(t) {
|
|
2562
2564
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2566,7 +2568,7 @@ var ht = hn ? (
|
|
|
2566
2568
|
return r;
|
|
2567
2569
|
}
|
|
2568
2570
|
)
|
|
2569
|
-
),
|
|
2571
|
+
), kt = mn ? (
|
|
2570
2572
|
// Native
|
|
2571
2573
|
function(t, r) {
|
|
2572
2574
|
return t.codePointAt(r);
|
|
@@ -2580,7 +2582,7 @@ var ht = hn ? (
|
|
|
2580
2582
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2581
2583
|
}
|
|
2582
2584
|
}
|
|
2583
|
-
),
|
|
2585
|
+
), En = pn ? (
|
|
2584
2586
|
// Native
|
|
2585
2587
|
function(t) {
|
|
2586
2588
|
return t.trimStart();
|
|
@@ -2588,9 +2590,9 @@ var ht = hn ? (
|
|
|
2588
2590
|
) : (
|
|
2589
2591
|
// Ponyfill
|
|
2590
2592
|
function(t) {
|
|
2591
|
-
return t.replace(
|
|
2593
|
+
return t.replace(ln, "");
|
|
2592
2594
|
}
|
|
2593
|
-
),
|
|
2595
|
+
), _n = bn ? (
|
|
2594
2596
|
// Native
|
|
2595
2597
|
function(t) {
|
|
2596
2598
|
return t.trimEnd();
|
|
@@ -2598,30 +2600,30 @@ var ht = hn ? (
|
|
|
2598
2600
|
) : (
|
|
2599
2601
|
// Ponyfill
|
|
2600
2602
|
function(t) {
|
|
2601
|
-
return t.replace(
|
|
2603
|
+
return t.replace(hn, "");
|
|
2602
2604
|
}
|
|
2603
2605
|
);
|
|
2604
|
-
function
|
|
2606
|
+
function jt(e, t) {
|
|
2605
2607
|
return new RegExp(e, t);
|
|
2606
2608
|
}
|
|
2607
|
-
var
|
|
2608
|
-
if (
|
|
2609
|
-
var
|
|
2610
|
-
|
|
2609
|
+
var ze;
|
|
2610
|
+
if (Ve) {
|
|
2611
|
+
var dt = jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2612
|
+
ze = function(t, r) {
|
|
2611
2613
|
var n;
|
|
2612
|
-
|
|
2613
|
-
var i =
|
|
2614
|
+
dt.lastIndex = r;
|
|
2615
|
+
var i = dt.exec(t);
|
|
2614
2616
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2615
2617
|
};
|
|
2616
2618
|
} else
|
|
2617
|
-
|
|
2619
|
+
ze = function(t, r) {
|
|
2618
2620
|
for (var n = []; ; ) {
|
|
2619
|
-
var i =
|
|
2620
|
-
if (i === void 0 ||
|
|
2621
|
+
var i = kt(t, r);
|
|
2622
|
+
if (i === void 0 || Vt(i) || Hn(i))
|
|
2621
2623
|
break;
|
|
2622
2624
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2623
2625
|
}
|
|
2624
|
-
return
|
|
2626
|
+
return Xe.apply(void 0, n);
|
|
2625
2627
|
};
|
|
2626
2628
|
var xn = (
|
|
2627
2629
|
/** @class */
|
|
@@ -2647,14 +2649,14 @@ var xn = (
|
|
|
2647
2649
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2648
2650
|
var a = this.clonePosition();
|
|
2649
2651
|
this.bump(), i.push({
|
|
2650
|
-
type:
|
|
2652
|
+
type: E.pound,
|
|
2651
2653
|
location: b(a, this.clonePosition())
|
|
2652
2654
|
});
|
|
2653
2655
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2654
2656
|
if (n)
|
|
2655
2657
|
break;
|
|
2656
2658
|
return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2657
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2659
|
+
} else if (o === 60 && !this.ignoreTag && We(this.peek() || 0)) {
|
|
2658
2660
|
var s = this.parseTag(t, r);
|
|
2659
2661
|
if (s.err)
|
|
2660
2662
|
return s;
|
|
@@ -2675,7 +2677,7 @@ var xn = (
|
|
|
2675
2677
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2676
2678
|
return {
|
|
2677
2679
|
val: {
|
|
2678
|
-
type:
|
|
2680
|
+
type: E.literal,
|
|
2679
2681
|
value: "<".concat(i, "/>"),
|
|
2680
2682
|
location: b(n, this.clonePosition())
|
|
2681
2683
|
},
|
|
@@ -2687,12 +2689,12 @@ var xn = (
|
|
|
2687
2689
|
return o;
|
|
2688
2690
|
var s = o.val, a = this.clonePosition();
|
|
2689
2691
|
if (this.bumpIf("</")) {
|
|
2690
|
-
if (this.isEOF() || !
|
|
2692
|
+
if (this.isEOF() || !We(this.char()))
|
|
2691
2693
|
return this.error(m.INVALID_TAG, b(a, this.clonePosition()));
|
|
2692
2694
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2693
2695
|
return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2694
2696
|
val: {
|
|
2695
|
-
type:
|
|
2697
|
+
type: E.tag,
|
|
2696
2698
|
value: i,
|
|
2697
2699
|
children: s,
|
|
2698
2700
|
location: b(n, this.clonePosition())
|
|
@@ -2705,7 +2707,7 @@ var xn = (
|
|
|
2705
2707
|
return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
|
|
2706
2708
|
}, e.prototype.parseTagName = function() {
|
|
2707
2709
|
var t = this.offset();
|
|
2708
|
-
for (this.bump(); !this.isEOF() &&
|
|
2710
|
+
for (this.bump(); !this.isEOF() && Tn(this.char()); )
|
|
2709
2711
|
this.bump();
|
|
2710
2712
|
return this.message.slice(t, this.offset());
|
|
2711
2713
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2729,12 +2731,12 @@ var xn = (
|
|
|
2729
2731
|
}
|
|
2730
2732
|
var l = b(n, this.clonePosition());
|
|
2731
2733
|
return {
|
|
2732
|
-
val: { type:
|
|
2734
|
+
val: { type: E.literal, value: i, location: l },
|
|
2733
2735
|
err: null
|
|
2734
2736
|
};
|
|
2735
2737
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2736
2738
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2737
|
-
!
|
|
2739
|
+
!Sn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2738
2740
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2739
2741
|
if (this.isEOF() || this.char() !== 39)
|
|
2740
2742
|
return null;
|
|
@@ -2768,12 +2770,12 @@ var xn = (
|
|
|
2768
2770
|
r.push(n);
|
|
2769
2771
|
this.bump();
|
|
2770
2772
|
}
|
|
2771
|
-
return
|
|
2773
|
+
return Xe.apply(void 0, r);
|
|
2772
2774
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2773
2775
|
if (this.isEOF())
|
|
2774
2776
|
return null;
|
|
2775
2777
|
var n = this.char();
|
|
2776
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2778
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Xe(n));
|
|
2777
2779
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2778
2780
|
var n = this.clonePosition();
|
|
2779
2781
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2789,7 +2791,7 @@ var xn = (
|
|
|
2789
2791
|
case 125:
|
|
2790
2792
|
return this.bump(), {
|
|
2791
2793
|
val: {
|
|
2792
|
-
type:
|
|
2794
|
+
type: E.argument,
|
|
2793
2795
|
// value does not include the opening and closing braces.
|
|
2794
2796
|
value: i,
|
|
2795
2797
|
location: b(n, this.clonePosition())
|
|
@@ -2802,7 +2804,7 @@ var xn = (
|
|
|
2802
2804
|
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2803
2805
|
}
|
|
2804
2806
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2805
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2807
|
+
var t = this.clonePosition(), r = this.offset(), n = ze(this.message, r), i = r + n.length;
|
|
2806
2808
|
this.bumpTo(i);
|
|
2807
2809
|
var o = this.clonePosition(), s = b(t, o);
|
|
2808
2810
|
return { value: n, location: s };
|
|
@@ -2821,35 +2823,35 @@ var xn = (
|
|
|
2821
2823
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2822
2824
|
if (c.err)
|
|
2823
2825
|
return c;
|
|
2824
|
-
var d =
|
|
2826
|
+
var d = _n(c.val);
|
|
2825
2827
|
if (d.length === 0)
|
|
2826
2828
|
return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2827
2829
|
var g = b(h, this.clonePosition());
|
|
2828
2830
|
u = { style: d, styleLocation: g };
|
|
2829
2831
|
}
|
|
2830
|
-
var
|
|
2831
|
-
if (
|
|
2832
|
-
return
|
|
2832
|
+
var v = this.tryParseArgumentClose(i);
|
|
2833
|
+
if (v.err)
|
|
2834
|
+
return v;
|
|
2833
2835
|
var _ = b(i, this.clonePosition());
|
|
2834
|
-
if (u &&
|
|
2835
|
-
var T =
|
|
2836
|
+
if (u && ct(u == null ? void 0 : u.style, "::", 0)) {
|
|
2837
|
+
var T = En(u.style.slice(2));
|
|
2836
2838
|
if (a === "number") {
|
|
2837
2839
|
var c = this.parseNumberSkeletonFromString(T, u.styleLocation);
|
|
2838
2840
|
return c.err ? c : {
|
|
2839
|
-
val: { type:
|
|
2841
|
+
val: { type: E.number, value: n, location: _, style: c.val },
|
|
2840
2842
|
err: null
|
|
2841
2843
|
};
|
|
2842
2844
|
} else {
|
|
2843
2845
|
if (T.length === 0)
|
|
2844
2846
|
return this.error(m.EXPECT_DATE_TIME_SKELETON, _);
|
|
2845
2847
|
var H = T;
|
|
2846
|
-
this.locale && (H =
|
|
2848
|
+
this.locale && (H = an(T, this.locale));
|
|
2847
2849
|
var d = {
|
|
2848
|
-
type:
|
|
2850
|
+
type: re.dateTime,
|
|
2849
2851
|
pattern: H,
|
|
2850
2852
|
location: u.styleLocation,
|
|
2851
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2852
|
-
}, L = a === "date" ?
|
|
2853
|
+
parsedOptions: this.shouldParseSkeletons ? Kr(H) : {}
|
|
2854
|
+
}, L = a === "date" ? E.date : E.time;
|
|
2853
2855
|
return {
|
|
2854
2856
|
val: { type: L, value: n, location: _, style: d },
|
|
2855
2857
|
err: null
|
|
@@ -2858,7 +2860,7 @@ var xn = (
|
|
|
2858
2860
|
}
|
|
2859
2861
|
return {
|
|
2860
2862
|
val: {
|
|
2861
|
-
type: a === "number" ?
|
|
2863
|
+
type: a === "number" ? E.number : a === "date" ? E.date : E.time,
|
|
2862
2864
|
value: n,
|
|
2863
2865
|
location: _,
|
|
2864
2866
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
@@ -2869,43 +2871,43 @@ var xn = (
|
|
|
2869
2871
|
case "plural":
|
|
2870
2872
|
case "selectordinal":
|
|
2871
2873
|
case "select": {
|
|
2872
|
-
var
|
|
2874
|
+
var B = this.clonePosition();
|
|
2873
2875
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2874
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(
|
|
2876
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(B, Se({}, B)));
|
|
2875
2877
|
this.bumpSpace();
|
|
2876
|
-
var
|
|
2877
|
-
if (a !== "select" &&
|
|
2878
|
+
var x = this.parseIdentifierIfPossible(), O = 0;
|
|
2879
|
+
if (a !== "select" && x.value === "offset") {
|
|
2878
2880
|
if (!this.bumpIf(":"))
|
|
2879
2881
|
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
2880
2882
|
this.bumpSpace();
|
|
2881
2883
|
var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2882
2884
|
if (c.err)
|
|
2883
2885
|
return c;
|
|
2884
|
-
this.bumpSpace(),
|
|
2886
|
+
this.bumpSpace(), x = this.parseIdentifierIfPossible(), O = c.val;
|
|
2885
2887
|
}
|
|
2886
|
-
var F = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
2888
|
+
var F = this.tryParsePluralOrSelectOptions(t, a, r, x);
|
|
2887
2889
|
if (F.err)
|
|
2888
2890
|
return F;
|
|
2889
|
-
var
|
|
2890
|
-
if (
|
|
2891
|
-
return
|
|
2892
|
-
var
|
|
2891
|
+
var v = this.tryParseArgumentClose(i);
|
|
2892
|
+
if (v.err)
|
|
2893
|
+
return v;
|
|
2894
|
+
var X = b(i, this.clonePosition());
|
|
2893
2895
|
return a === "select" ? {
|
|
2894
2896
|
val: {
|
|
2895
|
-
type:
|
|
2897
|
+
type: E.select,
|
|
2896
2898
|
value: n,
|
|
2897
|
-
options:
|
|
2898
|
-
location:
|
|
2899
|
+
options: ft(F.val),
|
|
2900
|
+
location: X
|
|
2899
2901
|
},
|
|
2900
2902
|
err: null
|
|
2901
2903
|
} : {
|
|
2902
2904
|
val: {
|
|
2903
|
-
type:
|
|
2905
|
+
type: E.plural,
|
|
2904
2906
|
value: n,
|
|
2905
|
-
options:
|
|
2906
|
-
offset:
|
|
2907
|
+
options: ft(F.val),
|
|
2908
|
+
offset: O,
|
|
2907
2909
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2908
|
-
location:
|
|
2910
|
+
location: X
|
|
2909
2911
|
},
|
|
2910
2912
|
err: null
|
|
2911
2913
|
};
|
|
@@ -2953,16 +2955,16 @@ var xn = (
|
|
|
2953
2955
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2954
2956
|
var n = [];
|
|
2955
2957
|
try {
|
|
2956
|
-
n =
|
|
2958
|
+
n = tn(t);
|
|
2957
2959
|
} catch (i) {
|
|
2958
2960
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
|
2959
2961
|
}
|
|
2960
2962
|
return {
|
|
2961
2963
|
val: {
|
|
2962
|
-
type:
|
|
2964
|
+
type: re.number,
|
|
2963
2965
|
tokens: n,
|
|
2964
2966
|
location: r,
|
|
2965
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2967
|
+
parsedOptions: this.shouldParseSkeletons ? sn(n) : {}
|
|
2966
2968
|
},
|
|
2967
2969
|
err: null
|
|
2968
2970
|
};
|
|
@@ -2984,16 +2986,16 @@ var xn = (
|
|
|
2984
2986
|
var g = this.clonePosition();
|
|
2985
2987
|
if (!this.bumpIf("{"))
|
|
2986
2988
|
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
2987
|
-
var
|
|
2988
|
-
if (
|
|
2989
|
-
return
|
|
2989
|
+
var v = this.parseMessage(t + 1, r, n);
|
|
2990
|
+
if (v.err)
|
|
2991
|
+
return v;
|
|
2990
2992
|
var _ = this.tryParseArgumentClose(g);
|
|
2991
2993
|
if (_.err)
|
|
2992
2994
|
return _;
|
|
2993
2995
|
a.push([
|
|
2994
2996
|
u,
|
|
2995
2997
|
{
|
|
2996
|
-
value:
|
|
2998
|
+
value: v.val,
|
|
2997
2999
|
location: b(g, this.clonePosition())
|
|
2998
3000
|
}
|
|
2999
3001
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
@@ -3010,7 +3012,7 @@ var xn = (
|
|
|
3010
3012
|
break;
|
|
3011
3013
|
}
|
|
3012
3014
|
var l = b(i, this.clonePosition());
|
|
3013
|
-
return o ? (s *= n,
|
|
3015
|
+
return o ? (s *= n, vn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3014
3016
|
}, e.prototype.offset = function() {
|
|
3015
3017
|
return this.position.offset;
|
|
3016
3018
|
}, e.prototype.isEOF = function() {
|
|
@@ -3025,7 +3027,7 @@ var xn = (
|
|
|
3025
3027
|
var t = this.position.offset;
|
|
3026
3028
|
if (t >= this.message.length)
|
|
3027
3029
|
throw Error("out of bound");
|
|
3028
|
-
var r =
|
|
3030
|
+
var r = kt(this.message, t);
|
|
3029
3031
|
if (r === void 0)
|
|
3030
3032
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3031
3033
|
return r;
|
|
@@ -3044,7 +3046,7 @@ var xn = (
|
|
|
3044
3046
|
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);
|
|
3045
3047
|
}
|
|
3046
3048
|
}, e.prototype.bumpIf = function(t) {
|
|
3047
|
-
if (
|
|
3049
|
+
if (ct(this.message, t, this.offset())) {
|
|
3048
3050
|
for (var r = 0; r < t.length; r++)
|
|
3049
3051
|
this.bump();
|
|
3050
3052
|
return !0;
|
|
@@ -3066,7 +3068,7 @@ var xn = (
|
|
|
3066
3068
|
break;
|
|
3067
3069
|
}
|
|
3068
3070
|
}, e.prototype.bumpSpace = function() {
|
|
3069
|
-
for (; !this.isEOF() &&
|
|
3071
|
+
for (; !this.isEOF() && Vt(this.char()); )
|
|
3070
3072
|
this.bump();
|
|
3071
3073
|
}, e.prototype.peek = function() {
|
|
3072
3074
|
if (this.isEOF())
|
|
@@ -3076,47 +3078,47 @@ var xn = (
|
|
|
3076
3078
|
}, e;
|
|
3077
3079
|
}()
|
|
3078
3080
|
);
|
|
3079
|
-
function
|
|
3081
|
+
function We(e) {
|
|
3080
3082
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3081
3083
|
}
|
|
3082
|
-
function _n(e) {
|
|
3083
|
-
return Xe(e) || e === 47;
|
|
3084
|
-
}
|
|
3085
3084
|
function Sn(e) {
|
|
3085
|
+
return We(e) || e === 47;
|
|
3086
|
+
}
|
|
3087
|
+
function Tn(e) {
|
|
3086
3088
|
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;
|
|
3087
3089
|
}
|
|
3088
|
-
function
|
|
3090
|
+
function Vt(e) {
|
|
3089
3091
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3090
3092
|
}
|
|
3091
|
-
function
|
|
3093
|
+
function Hn(e) {
|
|
3092
3094
|
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;
|
|
3093
3095
|
}
|
|
3094
|
-
function
|
|
3096
|
+
function Ze(e) {
|
|
3095
3097
|
e.forEach(function(t) {
|
|
3096
|
-
if (delete t.location,
|
|
3098
|
+
if (delete t.location, Mt(t) || Lt(t))
|
|
3097
3099
|
for (var r in t.options)
|
|
3098
|
-
delete t.options[r].location,
|
|
3100
|
+
delete t.options[r].location, Ze(t.options[r].value);
|
|
3099
3101
|
else
|
|
3100
|
-
|
|
3102
|
+
It(t) && $t(t.style) || (Ot(t) || Nt(t)) && je(t.style) ? delete t.style.location : Rt(t) && Ze(t.children);
|
|
3101
3103
|
});
|
|
3102
3104
|
}
|
|
3103
|
-
function
|
|
3104
|
-
t === void 0 && (t = {}), t =
|
|
3105
|
+
function An(e, t) {
|
|
3106
|
+
t === void 0 && (t = {}), t = Se({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3105
3107
|
var r = new xn(e, t).parse();
|
|
3106
3108
|
if (r.err) {
|
|
3107
3109
|
var n = SyntaxError(m[r.err.kind]);
|
|
3108
3110
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3109
3111
|
}
|
|
3110
|
-
return t != null && t.captureLocation ||
|
|
3112
|
+
return t != null && t.captureLocation || Ze(r.val), r.val;
|
|
3111
3113
|
}
|
|
3112
|
-
var
|
|
3114
|
+
var ne;
|
|
3113
3115
|
(function(e) {
|
|
3114
3116
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3115
|
-
})(
|
|
3116
|
-
var
|
|
3117
|
+
})(ne || (ne = {}));
|
|
3118
|
+
var we = (
|
|
3117
3119
|
/** @class */
|
|
3118
3120
|
function(e) {
|
|
3119
|
-
|
|
3121
|
+
Be(t, e);
|
|
3120
3122
|
function t(r, n, i) {
|
|
3121
3123
|
var o = e.call(this, r) || this;
|
|
3122
3124
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3125,48 +3127,48 @@ var Be = (
|
|
|
3125
3127
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3126
3128
|
}, t;
|
|
3127
3129
|
}(Error)
|
|
3128
|
-
),
|
|
3130
|
+
), mt = (
|
|
3129
3131
|
/** @class */
|
|
3130
3132
|
function(e) {
|
|
3131
|
-
|
|
3133
|
+
Be(t, e);
|
|
3132
3134
|
function t(r, n, i, o) {
|
|
3133
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3135
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ne.INVALID_VALUE, o) || this;
|
|
3134
3136
|
}
|
|
3135
3137
|
return t;
|
|
3136
|
-
}(
|
|
3138
|
+
}(we)
|
|
3137
3139
|
), Bn = (
|
|
3138
3140
|
/** @class */
|
|
3139
3141
|
function(e) {
|
|
3140
|
-
|
|
3142
|
+
Be(t, e);
|
|
3141
3143
|
function t(r, n, i) {
|
|
3142
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3144
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ne.INVALID_VALUE, i) || this;
|
|
3143
3145
|
}
|
|
3144
3146
|
return t;
|
|
3145
|
-
}(
|
|
3146
|
-
),
|
|
3147
|
+
}(we)
|
|
3148
|
+
), wn = (
|
|
3147
3149
|
/** @class */
|
|
3148
3150
|
function(e) {
|
|
3149
|
-
|
|
3151
|
+
Be(t, e);
|
|
3150
3152
|
function t(r, n) {
|
|
3151
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3153
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ne.MISSING_VALUE, n) || this;
|
|
3152
3154
|
}
|
|
3153
3155
|
return t;
|
|
3154
|
-
}(
|
|
3156
|
+
}(we)
|
|
3155
3157
|
), I;
|
|
3156
3158
|
(function(e) {
|
|
3157
3159
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3158
3160
|
})(I || (I = {}));
|
|
3159
|
-
function
|
|
3161
|
+
function Pn(e) {
|
|
3160
3162
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3161
3163
|
var n = t[t.length - 1];
|
|
3162
3164
|
return !n || n.type !== I.literal || r.type !== I.literal ? t.push(r) : n.value += r.value, t;
|
|
3163
3165
|
}, []);
|
|
3164
3166
|
}
|
|
3165
|
-
function
|
|
3167
|
+
function Cn(e) {
|
|
3166
3168
|
return typeof e == "function";
|
|
3167
3169
|
}
|
|
3168
|
-
function
|
|
3169
|
-
if (e.length === 1 &&
|
|
3170
|
+
function _e(e, t, r, n, i, o, s) {
|
|
3171
|
+
if (e.length === 1 && at(e[0]))
|
|
3170
3172
|
return [
|
|
3171
3173
|
{
|
|
3172
3174
|
type: I.literal,
|
|
@@ -3175,14 +3177,14 @@ function Ee(e, t, r, n, i, o, s) {
|
|
|
3175
3177
|
];
|
|
3176
3178
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3177
3179
|
var h = u[l];
|
|
3178
|
-
if (
|
|
3180
|
+
if (at(h)) {
|
|
3179
3181
|
a.push({
|
|
3180
3182
|
type: I.literal,
|
|
3181
3183
|
value: h.value
|
|
3182
3184
|
});
|
|
3183
3185
|
continue;
|
|
3184
3186
|
}
|
|
3185
|
-
if (
|
|
3187
|
+
if (qr(h)) {
|
|
3186
3188
|
typeof o == "number" && a.push({
|
|
3187
3189
|
type: I.literal,
|
|
3188
3190
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3191,17 +3193,17 @@ function Ee(e, t, r, n, i, o, s) {
|
|
|
3191
3193
|
}
|
|
3192
3194
|
var c = h.value;
|
|
3193
3195
|
if (!(i && c in i))
|
|
3194
|
-
throw new
|
|
3196
|
+
throw new wn(c, s);
|
|
3195
3197
|
var d = i[c];
|
|
3196
|
-
if (
|
|
3198
|
+
if (Qr(h)) {
|
|
3197
3199
|
(!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), a.push({
|
|
3198
3200
|
type: typeof d == "string" ? I.literal : I.object,
|
|
3199
3201
|
value: d
|
|
3200
3202
|
});
|
|
3201
3203
|
continue;
|
|
3202
3204
|
}
|
|
3203
|
-
if (
|
|
3204
|
-
var g = typeof h.style == "string" ? n.date[h.style] :
|
|
3205
|
+
if (Ot(h)) {
|
|
3206
|
+
var g = typeof h.style == "string" ? n.date[h.style] : je(h.style) ? h.style.parsedOptions : void 0;
|
|
3205
3207
|
a.push({
|
|
3206
3208
|
type: I.literal,
|
|
3207
3209
|
value: r.getDateTimeFormat(t, g).format(d)
|
|
@@ -3209,71 +3211,71 @@ function Ee(e, t, r, n, i, o, s) {
|
|
|
3209
3211
|
continue;
|
|
3210
3212
|
}
|
|
3211
3213
|
if (Nt(h)) {
|
|
3212
|
-
var g = typeof h.style == "string" ? n.time[h.style] :
|
|
3214
|
+
var g = typeof h.style == "string" ? n.time[h.style] : je(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3213
3215
|
a.push({
|
|
3214
3216
|
type: I.literal,
|
|
3215
3217
|
value: r.getDateTimeFormat(t, g).format(d)
|
|
3216
3218
|
});
|
|
3217
3219
|
continue;
|
|
3218
3220
|
}
|
|
3219
|
-
if (
|
|
3220
|
-
var g = typeof h.style == "string" ? n.number[h.style] :
|
|
3221
|
+
if (It(h)) {
|
|
3222
|
+
var g = typeof h.style == "string" ? n.number[h.style] : $t(h.style) ? h.style.parsedOptions : void 0;
|
|
3221
3223
|
g && g.scale && (d = d * (g.scale || 1)), a.push({
|
|
3222
3224
|
type: I.literal,
|
|
3223
3225
|
value: r.getNumberFormat(t, g).format(d)
|
|
3224
3226
|
});
|
|
3225
3227
|
continue;
|
|
3226
3228
|
}
|
|
3227
|
-
if (
|
|
3228
|
-
var
|
|
3229
|
-
if (!
|
|
3229
|
+
if (Rt(h)) {
|
|
3230
|
+
var v = h.children, _ = h.value, T = i[_];
|
|
3231
|
+
if (!Cn(T))
|
|
3230
3232
|
throw new Bn(_, "function", s);
|
|
3231
|
-
var H =
|
|
3232
|
-
return
|
|
3233
|
+
var H = _e(v, t, r, n, i, o), L = T(H.map(function(O) {
|
|
3234
|
+
return O.value;
|
|
3233
3235
|
}));
|
|
3234
|
-
Array.isArray(L) || (L = [L]), a.push.apply(a, L.map(function(
|
|
3236
|
+
Array.isArray(L) || (L = [L]), a.push.apply(a, L.map(function(O) {
|
|
3235
3237
|
return {
|
|
3236
|
-
type: typeof
|
|
3237
|
-
value:
|
|
3238
|
+
type: typeof O == "string" ? I.literal : I.object,
|
|
3239
|
+
value: O
|
|
3238
3240
|
};
|
|
3239
3241
|
}));
|
|
3240
3242
|
}
|
|
3241
|
-
if (
|
|
3242
|
-
var
|
|
3243
|
-
if (!
|
|
3244
|
-
throw new
|
|
3245
|
-
a.push.apply(a,
|
|
3243
|
+
if (Mt(h)) {
|
|
3244
|
+
var B = h.options[d] || h.options.other;
|
|
3245
|
+
if (!B)
|
|
3246
|
+
throw new mt(h.value, d, Object.keys(h.options), s);
|
|
3247
|
+
a.push.apply(a, _e(B.value, t, r, n, i));
|
|
3246
3248
|
continue;
|
|
3247
3249
|
}
|
|
3248
|
-
if (
|
|
3249
|
-
var
|
|
3250
|
-
if (!
|
|
3250
|
+
if (Lt(h)) {
|
|
3251
|
+
var B = h.options["=".concat(d)];
|
|
3252
|
+
if (!B) {
|
|
3251
3253
|
if (!Intl.PluralRules)
|
|
3252
|
-
throw new
|
|
3254
|
+
throw new we(`Intl.PluralRules is not available in this environment.
|
|
3253
3255
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3254
|
-
`,
|
|
3255
|
-
var
|
|
3256
|
-
|
|
3256
|
+
`, ne.MISSING_INTL_API, s);
|
|
3257
|
+
var x = r.getPluralRules(t, { type: h.pluralType }).select(d - (h.offset || 0));
|
|
3258
|
+
B = h.options[x] || h.options.other;
|
|
3257
3259
|
}
|
|
3258
|
-
if (!
|
|
3259
|
-
throw new
|
|
3260
|
-
a.push.apply(a,
|
|
3260
|
+
if (!B)
|
|
3261
|
+
throw new mt(h.value, d, Object.keys(h.options), s);
|
|
3262
|
+
a.push.apply(a, _e(B.value, t, r, n, i, d - (h.offset || 0)));
|
|
3261
3263
|
continue;
|
|
3262
3264
|
}
|
|
3263
3265
|
}
|
|
3264
|
-
return
|
|
3266
|
+
return Pn(a);
|
|
3265
3267
|
}
|
|
3266
|
-
function
|
|
3267
|
-
return t ?
|
|
3268
|
-
return r[n] =
|
|
3268
|
+
function In(e, t) {
|
|
3269
|
+
return t ? G(G(G({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3270
|
+
return r[n] = G(G({}, e[n]), t[n] || {}), r;
|
|
3269
3271
|
}, {})) : e;
|
|
3270
3272
|
}
|
|
3271
|
-
function
|
|
3273
|
+
function On(e, t) {
|
|
3272
3274
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3273
|
-
return r[n] =
|
|
3274
|
-
},
|
|
3275
|
+
return r[n] = In(e[n], t[n]), r;
|
|
3276
|
+
}, G({}, e)) : e;
|
|
3275
3277
|
}
|
|
3276
|
-
function
|
|
3278
|
+
function $e(e) {
|
|
3277
3279
|
return {
|
|
3278
3280
|
create: function() {
|
|
3279
3281
|
return {
|
|
@@ -3293,33 +3295,33 @@ function Nn(e) {
|
|
|
3293
3295
|
dateTime: {},
|
|
3294
3296
|
pluralRules: {}
|
|
3295
3297
|
}), {
|
|
3296
|
-
getNumberFormat:
|
|
3298
|
+
getNumberFormat: Me(function() {
|
|
3297
3299
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3298
3300
|
r[n] = arguments[n];
|
|
3299
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3301
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ne([void 0], r, !1)))();
|
|
3300
3302
|
}, {
|
|
3301
|
-
cache:
|
|
3302
|
-
strategy:
|
|
3303
|
+
cache: $e(e.number),
|
|
3304
|
+
strategy: Le.variadic
|
|
3303
3305
|
}),
|
|
3304
|
-
getDateTimeFormat:
|
|
3306
|
+
getDateTimeFormat: Me(function() {
|
|
3305
3307
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3306
3308
|
r[n] = arguments[n];
|
|
3307
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3309
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ne([void 0], r, !1)))();
|
|
3308
3310
|
}, {
|
|
3309
|
-
cache:
|
|
3310
|
-
strategy:
|
|
3311
|
+
cache: $e(e.dateTime),
|
|
3312
|
+
strategy: Le.variadic
|
|
3311
3313
|
}),
|
|
3312
|
-
getPluralRules:
|
|
3314
|
+
getPluralRules: Me(function() {
|
|
3313
3315
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3314
3316
|
r[n] = arguments[n];
|
|
3315
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3317
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ne([void 0], r, !1)))();
|
|
3316
3318
|
}, {
|
|
3317
|
-
cache:
|
|
3318
|
-
strategy:
|
|
3319
|
+
cache: $e(e.pluralRules),
|
|
3320
|
+
strategy: Le.variadic
|
|
3319
3321
|
})
|
|
3320
3322
|
};
|
|
3321
3323
|
}
|
|
3322
|
-
var
|
|
3324
|
+
var Mn = (
|
|
3323
3325
|
/** @class */
|
|
3324
3326
|
function() {
|
|
3325
3327
|
function e(t, r, n, i) {
|
|
@@ -3338,7 +3340,7 @@ var On = (
|
|
|
3338
3340
|
}, []);
|
|
3339
3341
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3340
3342
|
}, this.formatToParts = function(l) {
|
|
3341
|
-
return
|
|
3343
|
+
return _e(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3342
3344
|
}, this.resolvedOptions = function() {
|
|
3343
3345
|
var l;
|
|
3344
3346
|
return {
|
|
@@ -3351,13 +3353,13 @@ var On = (
|
|
|
3351
3353
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3352
3354
|
var s = i || {};
|
|
3353
3355
|
s.formatters;
|
|
3354
|
-
var a =
|
|
3355
|
-
this.ast = e.__parse(t,
|
|
3356
|
+
var a = kr(s, ["formatters"]);
|
|
3357
|
+
this.ast = e.__parse(t, G(G({}, a), { locale: this.resolvedLocale }));
|
|
3356
3358
|
} else
|
|
3357
3359
|
this.ast = t;
|
|
3358
3360
|
if (!Array.isArray(this.ast))
|
|
3359
3361
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3360
|
-
this.formats =
|
|
3362
|
+
this.formats = On(e.formats, n), this.formatters = i && i.formatters || Nn(this.formatterCache);
|
|
3361
3363
|
}
|
|
3362
3364
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3363
3365
|
get: function() {
|
|
@@ -3370,7 +3372,7 @@ var On = (
|
|
|
3370
3372
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3371
3373
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3372
3374
|
}
|
|
3373
|
-
}, e.__parse =
|
|
3375
|
+
}, e.__parse = An, e.formats = {
|
|
3374
3376
|
number: {
|
|
3375
3377
|
integer: {
|
|
3376
3378
|
maximumFractionDigits: 0
|
|
@@ -3431,7 +3433,7 @@ var On = (
|
|
|
3431
3433
|
}, e;
|
|
3432
3434
|
}()
|
|
3433
3435
|
);
|
|
3434
|
-
function
|
|
3436
|
+
function Ln(e, t) {
|
|
3435
3437
|
if (t == null)
|
|
3436
3438
|
return;
|
|
3437
3439
|
if (t in e)
|
|
@@ -3452,92 +3454,92 @@ function Mn(e, t) {
|
|
|
3452
3454
|
n = void 0;
|
|
3453
3455
|
return n;
|
|
3454
3456
|
}
|
|
3455
|
-
const
|
|
3457
|
+
const j = {}, Rn = (e, t, r) => r && (t in j || (j[t] = {}), e in j[t] || (j[t][e] = r), r), Xt = (e, t) => {
|
|
3456
3458
|
if (t == null)
|
|
3457
3459
|
return;
|
|
3458
|
-
if (t in
|
|
3459
|
-
return
|
|
3460
|
-
const r =
|
|
3460
|
+
if (t in j && e in j[t])
|
|
3461
|
+
return j[t][e];
|
|
3462
|
+
const r = Pe(t);
|
|
3461
3463
|
for (let n = 0; n < r.length; n++) {
|
|
3462
|
-
const i = r[n], o =
|
|
3464
|
+
const i = r[n], o = Un(i, e);
|
|
3463
3465
|
if (o)
|
|
3464
|
-
return
|
|
3466
|
+
return Rn(e, t, o);
|
|
3465
3467
|
}
|
|
3466
3468
|
};
|
|
3467
|
-
let
|
|
3468
|
-
const
|
|
3469
|
-
function
|
|
3470
|
-
return
|
|
3469
|
+
let Ye;
|
|
3470
|
+
const ae = Ae({});
|
|
3471
|
+
function $n(e) {
|
|
3472
|
+
return Ye[e] || null;
|
|
3471
3473
|
}
|
|
3472
|
-
function
|
|
3473
|
-
return e in
|
|
3474
|
+
function zt(e) {
|
|
3475
|
+
return e in Ye;
|
|
3474
3476
|
}
|
|
3475
|
-
function
|
|
3476
|
-
if (!
|
|
3477
|
+
function Un(e, t) {
|
|
3478
|
+
if (!zt(e))
|
|
3477
3479
|
return null;
|
|
3478
|
-
const r =
|
|
3479
|
-
return
|
|
3480
|
+
const r = $n(e);
|
|
3481
|
+
return Ln(r, t);
|
|
3480
3482
|
}
|
|
3481
|
-
function
|
|
3483
|
+
function Dn(e) {
|
|
3482
3484
|
if (e == null)
|
|
3483
3485
|
return;
|
|
3484
|
-
const t =
|
|
3486
|
+
const t = Pe(e);
|
|
3485
3487
|
for (let r = 0; r < t.length; r++) {
|
|
3486
3488
|
const n = t[r];
|
|
3487
|
-
if (
|
|
3489
|
+
if (zt(n))
|
|
3488
3490
|
return n;
|
|
3489
3491
|
}
|
|
3490
3492
|
}
|
|
3491
|
-
function
|
|
3492
|
-
delete
|
|
3493
|
+
function Wt(e, ...t) {
|
|
3494
|
+
delete j[e], ae.update((r) => (r[e] = Gr.all([r[e] || {}, ...t]), r));
|
|
3493
3495
|
}
|
|
3494
|
-
|
|
3495
|
-
[
|
|
3496
|
+
se(
|
|
3497
|
+
[ae],
|
|
3496
3498
|
([e]) => Object.keys(e)
|
|
3497
3499
|
);
|
|
3498
|
-
|
|
3500
|
+
ae.subscribe((e) => Ye = e);
|
|
3499
3501
|
const xe = {};
|
|
3500
|
-
function
|
|
3502
|
+
function Fn(e, t) {
|
|
3501
3503
|
xe[e].delete(t), xe[e].size === 0 && delete xe[e];
|
|
3502
3504
|
}
|
|
3503
|
-
function
|
|
3505
|
+
function Zt(e) {
|
|
3504
3506
|
return xe[e];
|
|
3505
3507
|
}
|
|
3506
|
-
function
|
|
3507
|
-
return
|
|
3508
|
-
const r =
|
|
3508
|
+
function Gn(e) {
|
|
3509
|
+
return Pe(e).map((t) => {
|
|
3510
|
+
const r = Zt(t);
|
|
3509
3511
|
return [t, r ? [...r] : []];
|
|
3510
3512
|
}).filter(([, t]) => t.length > 0);
|
|
3511
3513
|
}
|
|
3512
|
-
function
|
|
3513
|
-
return e == null ? !1 :
|
|
3514
|
+
function Je(e) {
|
|
3515
|
+
return e == null ? !1 : Pe(e).some(
|
|
3514
3516
|
(t) => {
|
|
3515
3517
|
var r;
|
|
3516
|
-
return (r =
|
|
3518
|
+
return (r = Zt(t)) == null ? void 0 : r.size;
|
|
3517
3519
|
}
|
|
3518
3520
|
);
|
|
3519
3521
|
}
|
|
3520
|
-
function
|
|
3522
|
+
function kn(e, t) {
|
|
3521
3523
|
return Promise.all(
|
|
3522
|
-
t.map((n) => (
|
|
3523
|
-
).then((n) =>
|
|
3524
|
-
}
|
|
3525
|
-
const
|
|
3526
|
-
function
|
|
3527
|
-
if (!
|
|
3528
|
-
return e in
|
|
3529
|
-
const t =
|
|
3530
|
-
return
|
|
3524
|
+
t.map((n) => (Fn(e, n), n().then((i) => i.default || i)))
|
|
3525
|
+
).then((n) => Wt(e, ...n));
|
|
3526
|
+
}
|
|
3527
|
+
const fe = {};
|
|
3528
|
+
function Jt(e) {
|
|
3529
|
+
if (!Je(e))
|
|
3530
|
+
return e in fe ? fe[e] : Promise.resolve();
|
|
3531
|
+
const t = Gn(e);
|
|
3532
|
+
return fe[e] = Promise.all(
|
|
3531
3533
|
t.map(
|
|
3532
|
-
([r, n]) =>
|
|
3534
|
+
([r, n]) => kn(r, n)
|
|
3533
3535
|
)
|
|
3534
3536
|
).then(() => {
|
|
3535
|
-
if (
|
|
3536
|
-
return
|
|
3537
|
-
delete
|
|
3538
|
-
}),
|
|
3537
|
+
if (Je(e))
|
|
3538
|
+
return Jt(e);
|
|
3539
|
+
delete fe[e];
|
|
3540
|
+
}), fe[e];
|
|
3539
3541
|
}
|
|
3540
|
-
const
|
|
3542
|
+
const jn = {
|
|
3541
3543
|
number: {
|
|
3542
3544
|
scientific: { notation: "scientific" },
|
|
3543
3545
|
engineering: { notation: "engineering" },
|
|
@@ -3566,150 +3568,150 @@ const kn = {
|
|
|
3566
3568
|
timeZoneName: "short"
|
|
3567
3569
|
}
|
|
3568
3570
|
}
|
|
3569
|
-
},
|
|
3571
|
+
}, Vn = {
|
|
3570
3572
|
fallbackLocale: null,
|
|
3571
3573
|
loadingDelay: 200,
|
|
3572
|
-
formats:
|
|
3574
|
+
formats: jn,
|
|
3573
3575
|
warnOnMissingMessages: !0,
|
|
3574
3576
|
handleMissingMessage: void 0,
|
|
3575
3577
|
ignoreTag: !0
|
|
3576
|
-
},
|
|
3577
|
-
function
|
|
3578
|
-
return
|
|
3579
|
-
}
|
|
3580
|
-
const
|
|
3581
|
-
var
|
|
3582
|
-
for (var r in t)
|
|
3583
|
-
|
|
3584
|
-
if (
|
|
3585
|
-
for (var r of
|
|
3586
|
-
|
|
3578
|
+
}, Xn = Vn;
|
|
3579
|
+
function ie() {
|
|
3580
|
+
return Xn;
|
|
3581
|
+
}
|
|
3582
|
+
const Ue = Ae(!1);
|
|
3583
|
+
var zn = Object.defineProperty, Wn = Object.defineProperties, Zn = Object.getOwnPropertyDescriptors, pt = Object.getOwnPropertySymbols, Jn = Object.prototype.hasOwnProperty, Qn = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? zn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qn = (e, t) => {
|
|
3584
|
+
for (var r in t || (t = {}))
|
|
3585
|
+
Jn.call(t, r) && bt(e, r, t[r]);
|
|
3586
|
+
if (pt)
|
|
3587
|
+
for (var r of pt(t))
|
|
3588
|
+
Qn.call(t, r) && bt(e, r, t[r]);
|
|
3587
3589
|
return e;
|
|
3588
|
-
},
|
|
3589
|
-
let
|
|
3590
|
-
const
|
|
3591
|
-
function
|
|
3590
|
+
}, Yn = (e, t) => Wn(e, Zn(t));
|
|
3591
|
+
let Qe;
|
|
3592
|
+
const Te = Ae(null);
|
|
3593
|
+
function gt(e) {
|
|
3592
3594
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3593
3595
|
}
|
|
3594
|
-
function
|
|
3595
|
-
const r =
|
|
3596
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3596
|
+
function Pe(e, t = ie().fallbackLocale) {
|
|
3597
|
+
const r = gt(e);
|
|
3598
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...gt(t)])] : r;
|
|
3597
3599
|
}
|
|
3598
|
-
function
|
|
3599
|
-
return
|
|
3600
|
+
function Q() {
|
|
3601
|
+
return Qe != null ? Qe : void 0;
|
|
3600
3602
|
}
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
+
Te.subscribe((e) => {
|
|
3604
|
+
Qe = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3603
3605
|
});
|
|
3604
|
-
const
|
|
3605
|
-
if (e &&
|
|
3606
|
-
const { loadingDelay: t } =
|
|
3606
|
+
const Kn = (e) => {
|
|
3607
|
+
if (e && Dn(e) && Je(e)) {
|
|
3608
|
+
const { loadingDelay: t } = ie();
|
|
3607
3609
|
let r;
|
|
3608
|
-
return typeof window != "undefined" &&
|
|
3609
|
-
() =>
|
|
3610
|
+
return typeof window != "undefined" && Q() != null && t ? r = window.setTimeout(
|
|
3611
|
+
() => Ue.set(!0),
|
|
3610
3612
|
t
|
|
3611
|
-
) :
|
|
3612
|
-
|
|
3613
|
+
) : Ue.set(!0), Jt(e).then(() => {
|
|
3614
|
+
Te.set(e);
|
|
3613
3615
|
}).finally(() => {
|
|
3614
|
-
clearTimeout(r),
|
|
3616
|
+
clearTimeout(r), Ue.set(!1);
|
|
3615
3617
|
});
|
|
3616
3618
|
}
|
|
3617
|
-
return
|
|
3618
|
-
},
|
|
3619
|
-
set:
|
|
3620
|
-
}),
|
|
3619
|
+
return Te.set(e);
|
|
3620
|
+
}, Z = Yn(qn({}, Te), {
|
|
3621
|
+
set: Kn
|
|
3622
|
+
}), Ce = (e) => {
|
|
3621
3623
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3622
3624
|
return (n) => {
|
|
3623
3625
|
const i = JSON.stringify(n);
|
|
3624
3626
|
return i in t ? t[i] : t[i] = e(n);
|
|
3625
3627
|
};
|
|
3626
3628
|
};
|
|
3627
|
-
var
|
|
3629
|
+
var ei = Object.defineProperty, He = Object.getOwnPropertySymbols, Qt = Object.prototype.hasOwnProperty, qt = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
|
|
3628
3630
|
for (var r in t || (t = {}))
|
|
3629
|
-
|
|
3630
|
-
if (
|
|
3631
|
-
for (var r of
|
|
3632
|
-
|
|
3631
|
+
Qt.call(t, r) && vt(e, r, t[r]);
|
|
3632
|
+
if (He)
|
|
3633
|
+
for (var r of He(t))
|
|
3634
|
+
qt.call(t, r) && vt(e, r, t[r]);
|
|
3633
3635
|
return e;
|
|
3634
|
-
},
|
|
3636
|
+
}, ue = (e, t) => {
|
|
3635
3637
|
var r = {};
|
|
3636
3638
|
for (var n in e)
|
|
3637
|
-
|
|
3638
|
-
if (e != null &&
|
|
3639
|
-
for (var n of
|
|
3640
|
-
t.indexOf(n) < 0 &&
|
|
3639
|
+
Qt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3640
|
+
if (e != null && He)
|
|
3641
|
+
for (var n of He(e))
|
|
3642
|
+
t.indexOf(n) < 0 && qt.call(e, n) && (r[n] = e[n]);
|
|
3641
3643
|
return r;
|
|
3642
3644
|
};
|
|
3643
|
-
const
|
|
3644
|
-
const { formats: r } =
|
|
3645
|
+
const be = (e, t) => {
|
|
3646
|
+
const { formats: r } = ie();
|
|
3645
3647
|
if (e in r && t in r[e])
|
|
3646
3648
|
return r[e][t];
|
|
3647
3649
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3648
|
-
},
|
|
3650
|
+
}, ti = Ce(
|
|
3649
3651
|
(e) => {
|
|
3650
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3652
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
3651
3653
|
if (r == null)
|
|
3652
3654
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3653
|
-
return n && (i =
|
|
3655
|
+
return n && (i = be("number", n)), new Intl.NumberFormat(r, i);
|
|
3654
3656
|
}
|
|
3655
|
-
),
|
|
3657
|
+
), ri = Ce(
|
|
3656
3658
|
(e) => {
|
|
3657
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3659
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
3658
3660
|
if (r == null)
|
|
3659
3661
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3660
|
-
return n ? i =
|
|
3662
|
+
return n ? i = be("date", n) : Object.keys(i).length === 0 && (i = be("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3661
3663
|
}
|
|
3662
|
-
),
|
|
3664
|
+
), ni = Ce(
|
|
3663
3665
|
(e) => {
|
|
3664
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3666
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
3665
3667
|
if (r == null)
|
|
3666
3668
|
throw new Error(
|
|
3667
3669
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3668
3670
|
);
|
|
3669
|
-
return n ? i =
|
|
3671
|
+
return n ? i = be("time", n) : Object.keys(i).length === 0 && (i = be("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3670
3672
|
}
|
|
3671
|
-
),
|
|
3673
|
+
), ii = (e = {}) => {
|
|
3672
3674
|
var t = e, {
|
|
3673
|
-
locale: r =
|
|
3674
|
-
} = t, n =
|
|
3675
|
+
locale: r = Q()
|
|
3676
|
+
} = t, n = ue(t, [
|
|
3675
3677
|
"locale"
|
|
3676
3678
|
]);
|
|
3677
|
-
return
|
|
3678
|
-
},
|
|
3679
|
+
return ti(Ke({ locale: r }, n));
|
|
3680
|
+
}, oi = (e = {}) => {
|
|
3679
3681
|
var t = e, {
|
|
3680
|
-
locale: r =
|
|
3681
|
-
} = t, n =
|
|
3682
|
+
locale: r = Q()
|
|
3683
|
+
} = t, n = ue(t, [
|
|
3682
3684
|
"locale"
|
|
3683
3685
|
]);
|
|
3684
|
-
return
|
|
3685
|
-
},
|
|
3686
|
+
return ri(Ke({ locale: r }, n));
|
|
3687
|
+
}, si = (e = {}) => {
|
|
3686
3688
|
var t = e, {
|
|
3687
|
-
locale: r =
|
|
3688
|
-
} = t, n =
|
|
3689
|
+
locale: r = Q()
|
|
3690
|
+
} = t, n = ue(t, [
|
|
3689
3691
|
"locale"
|
|
3690
3692
|
]);
|
|
3691
|
-
return
|
|
3692
|
-
},
|
|
3693
|
+
return ni(Ke({ locale: r }, n));
|
|
3694
|
+
}, ai = Ce(
|
|
3693
3695
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3694
|
-
(e, t =
|
|
3695
|
-
ignoreTag:
|
|
3696
|
+
(e, t = Q()) => new Mn(e, t, ie().formats, {
|
|
3697
|
+
ignoreTag: ie().ignoreTag
|
|
3696
3698
|
})
|
|
3697
|
-
),
|
|
3699
|
+
), ui = (e, t = {}) => {
|
|
3698
3700
|
var r, n, i, o;
|
|
3699
3701
|
let s = t;
|
|
3700
3702
|
typeof e == "object" && (s = e, e = s.id);
|
|
3701
3703
|
const {
|
|
3702
3704
|
values: a,
|
|
3703
|
-
locale: l =
|
|
3705
|
+
locale: l = Q(),
|
|
3704
3706
|
default: u
|
|
3705
3707
|
} = s;
|
|
3706
3708
|
if (l == null)
|
|
3707
3709
|
throw new Error(
|
|
3708
3710
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3709
3711
|
);
|
|
3710
|
-
let h =
|
|
3712
|
+
let h = Xt(e, l);
|
|
3711
3713
|
if (!h)
|
|
3712
|
-
h = (o = (i = (n = (r =
|
|
3714
|
+
h = (o = (i = (n = (r = ie()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
3713
3715
|
else if (typeof h != "string")
|
|
3714
3716
|
return console.warn(
|
|
3715
3717
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3718,7 +3720,7 @@ const pe = (e, t) => {
|
|
|
3718
3720
|
return h;
|
|
3719
3721
|
let c = h;
|
|
3720
3722
|
try {
|
|
3721
|
-
c =
|
|
3723
|
+
c = ai(h, l).format(a);
|
|
3722
3724
|
} catch (d) {
|
|
3723
3725
|
d instanceof Error && console.warn(
|
|
3724
3726
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3726,20 +3728,20 @@ const pe = (e, t) => {
|
|
|
3726
3728
|
);
|
|
3727
3729
|
}
|
|
3728
3730
|
return c;
|
|
3729
|
-
},
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
function
|
|
3735
|
-
|
|
3736
|
-
r == null && (
|
|
3731
|
+
}, li = (e, t) => si(t).format(e), hi = (e, t) => oi(t).format(e), ci = (e, t) => ii(t).format(e), fi = (e, t = Q()) => Xt(e, t), di = se([Z, ae], () => ui);
|
|
3732
|
+
se([Z], () => li);
|
|
3733
|
+
se([Z], () => hi);
|
|
3734
|
+
se([Z], () => ci);
|
|
3735
|
+
se([Z, ae], () => fi);
|
|
3736
|
+
function mi({ withLocale: e, translations: t }) {
|
|
3737
|
+
Z.subscribe((r) => {
|
|
3738
|
+
r == null && (ae.set(t), Z.set(e));
|
|
3737
3739
|
});
|
|
3738
3740
|
}
|
|
3739
|
-
function
|
|
3740
|
-
|
|
3741
|
+
function yt(e, t) {
|
|
3742
|
+
Wt(e, t);
|
|
3741
3743
|
}
|
|
3742
|
-
const
|
|
3744
|
+
const Et = {
|
|
3743
3745
|
en: {
|
|
3744
3746
|
title: "Please enter the verification code you received on your number",
|
|
3745
3747
|
errorTitle: "Your code was invalid, you can resend the code and try again",
|
|
@@ -3846,13 +3848,13 @@ const yt = {
|
|
|
3846
3848
|
loginSMSHint: "A new verification code has been sent to your phone number"
|
|
3847
3849
|
}
|
|
3848
3850
|
};
|
|
3849
|
-
function
|
|
3851
|
+
function pi(e, t) {
|
|
3850
3852
|
if (e) {
|
|
3851
3853
|
const r = document.createElement("style");
|
|
3852
3854
|
r.innerHTML = t, e.appendChild(r);
|
|
3853
3855
|
}
|
|
3854
3856
|
}
|
|
3855
|
-
function
|
|
3857
|
+
function bi(e, t) {
|
|
3856
3858
|
const r = new URL(t);
|
|
3857
3859
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
3858
3860
|
const i = document.createElement("style");
|
|
@@ -3861,7 +3863,7 @@ function pi(e, t) {
|
|
|
3861
3863
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3862
3864
|
});
|
|
3863
3865
|
}
|
|
3864
|
-
function
|
|
3866
|
+
function gi(e, t, r) {
|
|
3865
3867
|
if (window.emMessageBus) {
|
|
3866
3868
|
const n = document.createElement("style");
|
|
3867
3869
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3869,10 +3871,10 @@ function bi(e, t, r) {
|
|
|
3869
3871
|
});
|
|
3870
3872
|
}
|
|
3871
3873
|
}
|
|
3872
|
-
function gi(e) {
|
|
3873
|
-
ir(e, "svelte-c25n4u", "*,*::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, #22B04E));background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.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, #22B04E));border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));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))}");
|
|
3874
|
-
}
|
|
3875
3874
|
function vi(e) {
|
|
3875
|
+
or(e, "svelte-c25n4u", "*,*::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, #22B04E));background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.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, #22B04E));border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));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))}");
|
|
3876
|
+
}
|
|
3877
|
+
function yi(e) {
|
|
3876
3878
|
let t = (
|
|
3877
3879
|
/*$_*/
|
|
3878
3880
|
e[5]("errorTitle") + ""
|
|
@@ -3882,19 +3884,19 @@ function vi(e) {
|
|
|
3882
3884
|
r = M(t);
|
|
3883
3885
|
},
|
|
3884
3886
|
m(n, i) {
|
|
3885
|
-
|
|
3887
|
+
J(n, r, i);
|
|
3886
3888
|
},
|
|
3887
3889
|
p(n, i) {
|
|
3888
3890
|
i & /*$_*/
|
|
3889
3891
|
32 && t !== (t = /*$_*/
|
|
3890
|
-
n[5]("errorTitle") + "") &&
|
|
3892
|
+
n[5]("errorTitle") + "") && k(r, t);
|
|
3891
3893
|
},
|
|
3892
3894
|
d(n) {
|
|
3893
|
-
n &&
|
|
3895
|
+
n && V(r);
|
|
3894
3896
|
}
|
|
3895
3897
|
};
|
|
3896
3898
|
}
|
|
3897
|
-
function
|
|
3899
|
+
function Ei(e) {
|
|
3898
3900
|
let t = (
|
|
3899
3901
|
/*$_*/
|
|
3900
3902
|
e[5]("title") + ""
|
|
@@ -3904,37 +3906,37 @@ function yi(e) {
|
|
|
3904
3906
|
r = M(t);
|
|
3905
3907
|
},
|
|
3906
3908
|
m(n, i) {
|
|
3907
|
-
|
|
3909
|
+
J(n, r, i);
|
|
3908
3910
|
},
|
|
3909
3911
|
p(n, i) {
|
|
3910
3912
|
i & /*$_*/
|
|
3911
3913
|
32 && t !== (t = /*$_*/
|
|
3912
|
-
n[5]("title") + "") &&
|
|
3914
|
+
n[5]("title") + "") && k(r, t);
|
|
3913
3915
|
},
|
|
3914
3916
|
d(n) {
|
|
3915
|
-
n &&
|
|
3917
|
+
n && V(r);
|
|
3916
3918
|
}
|
|
3917
3919
|
};
|
|
3918
3920
|
}
|
|
3919
|
-
function
|
|
3921
|
+
function _t(e) {
|
|
3920
3922
|
let t, r = (
|
|
3921
3923
|
/*$_*/
|
|
3922
3924
|
e[5]("smsCodeError") + ""
|
|
3923
3925
|
), n;
|
|
3924
3926
|
return {
|
|
3925
3927
|
c() {
|
|
3926
|
-
t =
|
|
3928
|
+
t = N("p"), n = M(r), A(t, "class", "InvalidInput");
|
|
3927
3929
|
},
|
|
3928
3930
|
m(i, o) {
|
|
3929
|
-
|
|
3931
|
+
J(i, t, o), y(t, n);
|
|
3930
3932
|
},
|
|
3931
3933
|
p(i, o) {
|
|
3932
3934
|
o & /*$_*/
|
|
3933
3935
|
32 && r !== (r = /*$_*/
|
|
3934
|
-
i[5]("smsCodeError") + "") &&
|
|
3936
|
+
i[5]("smsCodeError") + "") && k(n, r);
|
|
3935
3937
|
},
|
|
3936
3938
|
d(i) {
|
|
3937
|
-
i &&
|
|
3939
|
+
i && V(t);
|
|
3938
3940
|
}
|
|
3939
3941
|
};
|
|
3940
3942
|
}
|
|
@@ -3945,162 +3947,162 @@ function xt(e) {
|
|
|
3945
3947
|
), n;
|
|
3946
3948
|
return {
|
|
3947
3949
|
c() {
|
|
3948
|
-
t =
|
|
3950
|
+
t = N("p"), n = M(r), A(t, "class", "SmsVerificationResendMessage");
|
|
3949
3951
|
},
|
|
3950
3952
|
m(i, o) {
|
|
3951
|
-
|
|
3953
|
+
J(i, t, o), y(t, n);
|
|
3952
3954
|
},
|
|
3953
3955
|
p(i, o) {
|
|
3954
3956
|
o & /*$_*/
|
|
3955
3957
|
32 && r !== (r = /*$_*/
|
|
3956
|
-
i[5]("resendMessage") + "") &&
|
|
3958
|
+
i[5]("resendMessage") + "") && k(n, r);
|
|
3957
3959
|
},
|
|
3958
3960
|
d(i) {
|
|
3959
|
-
i &&
|
|
3961
|
+
i && V(t);
|
|
3960
3962
|
}
|
|
3961
3963
|
};
|
|
3962
3964
|
}
|
|
3963
|
-
function
|
|
3965
|
+
function St(e) {
|
|
3964
3966
|
let t, r, n = (
|
|
3965
3967
|
/*secondsLeft*/
|
|
3966
3968
|
e[4] < 10 ? "0" : ""
|
|
3967
3969
|
), i, o, s;
|
|
3968
3970
|
return {
|
|
3969
3971
|
c() {
|
|
3970
|
-
t =
|
|
3972
|
+
t = N("span"), r = M("(0:"), i = M(n), o = M(
|
|
3971
3973
|
/*secondsLeft*/
|
|
3972
3974
|
e[4]
|
|
3973
|
-
), s = M(")"),
|
|
3975
|
+
), s = M(")"), A(t, "class", "SmsVerificationResendTimer");
|
|
3974
3976
|
},
|
|
3975
3977
|
m(a, l) {
|
|
3976
|
-
|
|
3978
|
+
J(a, t, l), y(t, r), y(t, i), y(t, o), y(t, s);
|
|
3977
3979
|
},
|
|
3978
3980
|
p(a, l) {
|
|
3979
3981
|
l & /*secondsLeft*/
|
|
3980
3982
|
16 && n !== (n = /*secondsLeft*/
|
|
3981
|
-
a[4] < 10 ? "0" : "") &&
|
|
3982
|
-
16 &&
|
|
3983
|
+
a[4] < 10 ? "0" : "") && k(i, n), l & /*secondsLeft*/
|
|
3984
|
+
16 && k(
|
|
3983
3985
|
o,
|
|
3984
3986
|
/*secondsLeft*/
|
|
3985
3987
|
a[4]
|
|
3986
3988
|
);
|
|
3987
3989
|
},
|
|
3988
3990
|
d(a) {
|
|
3989
|
-
a &&
|
|
3991
|
+
a && V(t);
|
|
3990
3992
|
}
|
|
3991
3993
|
};
|
|
3992
3994
|
}
|
|
3993
|
-
function
|
|
3995
|
+
function _i(e) {
|
|
3994
3996
|
let t, r, n, i, o, s = (
|
|
3995
3997
|
/*$_*/
|
|
3996
3998
|
e[5]("code") + ""
|
|
3997
|
-
), a, l, u, h, c, d, g,
|
|
3999
|
+
), a, l, u, h, c, d, g, v, _, T, H = (
|
|
3998
4000
|
/*$_*/
|
|
3999
4001
|
e[5]("activate") + ""
|
|
4000
|
-
), L,
|
|
4002
|
+
), L, B, x, O = (
|
|
4001
4003
|
/*$_*/
|
|
4002
4004
|
e[5]("resend") + ""
|
|
4003
|
-
), F,
|
|
4004
|
-
function
|
|
4005
|
+
), F, X, le, he;
|
|
4006
|
+
function ce(p, C) {
|
|
4005
4007
|
return (
|
|
4006
4008
|
/*isSmsValid*/
|
|
4007
|
-
p[2] ?
|
|
4009
|
+
p[2] ? Ei : yi
|
|
4008
4010
|
);
|
|
4009
4011
|
}
|
|
4010
|
-
let
|
|
4011
|
-
e[2] &&
|
|
4012
|
+
let z = ce(e), R = z(e), w = !/*isSmsValid*/
|
|
4013
|
+
e[2] && _t(e), P = (
|
|
4012
4014
|
/*timer*/
|
|
4013
4015
|
e[3] && xt(e)
|
|
4014
4016
|
), f = (
|
|
4015
4017
|
/*timer*/
|
|
4016
|
-
e[3] &&
|
|
4018
|
+
e[3] && St(e)
|
|
4017
4019
|
);
|
|
4018
4020
|
return {
|
|
4019
4021
|
c() {
|
|
4020
|
-
t =
|
|
4021
|
-
e[2] ? "" : "InvalidField")),
|
|
4022
|
-
e[3],
|
|
4022
|
+
t = N("div"), r = N("h3"), R.c(), n = W(), i = N("div"), o = N("label"), a = M(s), l = M(":"), u = N("span"), u.textContent = "*", h = W(), c = N("input"), d = W(), w && w.c(), v = W(), P && P.c(), _ = W(), T = N("button"), L = M(H), B = W(), x = N("button"), F = M(O), X = W(), 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*/
|
|
4023
|
+
e[2] ? "" : "InvalidField")), A(T, "class", "Button SmsVerificationValidate"), A(x, "class", "Button SmsVerificationResend"), x.disabled = /*timer*/
|
|
4024
|
+
e[3], A(t, "class", "Container SmsVerificationContainer");
|
|
4023
4025
|
},
|
|
4024
4026
|
m(p, C) {
|
|
4025
|
-
|
|
4027
|
+
J(p, t, C), y(t, r), R.m(r, null), y(t, n), y(t, i), y(i, o), y(o, a), y(o, l), y(o, u), y(i, h), y(i, c), it(
|
|
4026
4028
|
c,
|
|
4027
4029
|
/*smsCode*/
|
|
4028
4030
|
e[1]
|
|
4029
|
-
),
|
|
4030
|
-
|
|
4031
|
+
), y(i, d), w && w.m(i, null), y(t, v), P && P.m(t, null), y(t, _), y(t, T), y(T, L), y(t, B), y(t, x), y(x, F), y(x, X), f && f.m(x, null), e[20](t), le || (he = [
|
|
4032
|
+
ve(
|
|
4031
4033
|
c,
|
|
4032
4034
|
"input",
|
|
4033
4035
|
/*input_input_handler*/
|
|
4034
4036
|
e[18]
|
|
4035
4037
|
),
|
|
4036
|
-
|
|
4038
|
+
ve(
|
|
4037
4039
|
c,
|
|
4038
4040
|
"keydown",
|
|
4039
4041
|
/*keydown_handler*/
|
|
4040
4042
|
e[19]
|
|
4041
4043
|
),
|
|
4042
|
-
|
|
4044
|
+
ve(
|
|
4043
4045
|
T,
|
|
4044
4046
|
"click",
|
|
4045
4047
|
/*activateUser*/
|
|
4046
4048
|
e[6]
|
|
4047
4049
|
),
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
+
ve(
|
|
4051
|
+
x,
|
|
4050
4052
|
"click",
|
|
4051
4053
|
/*resendCode*/
|
|
4052
4054
|
e[7]
|
|
4053
4055
|
)
|
|
4054
|
-
],
|
|
4056
|
+
], le = !0);
|
|
4055
4057
|
},
|
|
4056
4058
|
p(p, [C]) {
|
|
4057
|
-
|
|
4059
|
+
z === (z = ce(p)) && R ? R.p(p, C) : (R.d(1), R = z(p), R && (R.c(), R.m(r, null))), C & /*$_*/
|
|
4058
4060
|
32 && s !== (s = /*$_*/
|
|
4059
|
-
p[5]("code") + "") &&
|
|
4061
|
+
p[5]("code") + "") && k(a, s), C & /*smsCode*/
|
|
4060
4062
|
2 && c.value !== /*smsCode*/
|
|
4061
|
-
p[1] &&
|
|
4063
|
+
p[1] && it(
|
|
4062
4064
|
c,
|
|
4063
4065
|
/*smsCode*/
|
|
4064
4066
|
p[1]
|
|
4065
4067
|
), /*isSmsValid*/
|
|
4066
|
-
p[2] ? w && (w.d(1), w = null) : w ? w.p(p, C) : (w =
|
|
4068
|
+
p[2] ? w && (w.d(1), w = null) : w ? w.p(p, C) : (w = _t(p), w.c(), w.m(i, null)), C & /*isSmsValid*/
|
|
4067
4069
|
4 && g !== (g = "Field SmsVerificationField " + (/*isSmsValid*/
|
|
4068
|
-
p[2] ? "" : "InvalidField")) &&
|
|
4070
|
+
p[2] ? "" : "InvalidField")) && A(i, "class", g), /*timer*/
|
|
4069
4071
|
p[3] ? P ? P.p(p, C) : (P = xt(p), P.c(), P.m(t, _)) : P && (P.d(1), P = null), C & /*$_*/
|
|
4070
4072
|
32 && H !== (H = /*$_*/
|
|
4071
|
-
p[5]("activate") + "") &&
|
|
4072
|
-
32 &&
|
|
4073
|
-
p[5]("resend") + "") &&
|
|
4074
|
-
p[3] ? f ? f.p(p, C) : (f =
|
|
4075
|
-
8 && (
|
|
4073
|
+
p[5]("activate") + "") && k(L, H), C & /*$_*/
|
|
4074
|
+
32 && O !== (O = /*$_*/
|
|
4075
|
+
p[5]("resend") + "") && k(F, O), /*timer*/
|
|
4076
|
+
p[3] ? f ? f.p(p, C) : (f = St(p), f.c(), f.m(x, null)) : f && (f.d(1), f = null), C & /*timer*/
|
|
4077
|
+
8 && (x.disabled = /*timer*/
|
|
4076
4078
|
p[3]);
|
|
4077
4079
|
},
|
|
4078
4080
|
i: D,
|
|
4079
4081
|
o: D,
|
|
4080
4082
|
d(p) {
|
|
4081
|
-
p &&
|
|
4083
|
+
p && V(t), R.d(), w && w.d(), P && P.d(), f && f.d(), e[20](null), le = !1, oe(he);
|
|
4082
4084
|
}
|
|
4083
4085
|
};
|
|
4084
4086
|
}
|
|
4085
4087
|
function xi(e, t, r) {
|
|
4086
4088
|
let n;
|
|
4087
|
-
|
|
4088
|
-
let { endpoint: i = "" } = t, { tokenid: o = "" } = t, { playerid: s = "" } = t, { smstemplate: a = "Please use this code {0} to activate your accout" } = t, { number: l = "" } = t, { mbsource: u } = t, { clientstyling: h = "" } = t, { clientstylingurl: c = "" } = t, { translationurl: d = "" } = t, g,
|
|
4089
|
-
const
|
|
4090
|
-
|
|
4089
|
+
ir(e, di, (f) => r(5, n = f));
|
|
4090
|
+
let { endpoint: i = "" } = t, { tokenid: o = "" } = t, { playerid: s = "" } = t, { smstemplate: a = "Please use this code {0} to activate your accout" } = t, { number: l = "" } = t, { mbsource: u } = t, { clientstyling: h = "" } = t, { clientstylingurl: c = "" } = t, { translationurl: d = "" } = t, g, v = !0, _ = !1, T, H, L = +localStorage.getItem("smsTimer") || 0, B = Date.now() / 1e3 - L, x = 60 - Math.floor(B);
|
|
4091
|
+
const O = { numeric: /^[0-9]{0,6}$/ };
|
|
4092
|
+
mi({ withLocale: "en", translations: {} });
|
|
4091
4093
|
const F = () => {
|
|
4092
4094
|
fetch(d).then((p) => p.json()).then((p) => {
|
|
4093
4095
|
Object.keys(p).forEach((C) => {
|
|
4094
|
-
|
|
4096
|
+
yt(C, p[C]);
|
|
4095
4097
|
});
|
|
4096
4098
|
}).catch((p) => {
|
|
4097
4099
|
console.log(p);
|
|
4098
4100
|
});
|
|
4099
4101
|
};
|
|
4100
|
-
Object.keys(
|
|
4101
|
-
|
|
4102
|
+
Object.keys(Et).forEach((f) => {
|
|
4103
|
+
yt(f, Et[f]);
|
|
4102
4104
|
});
|
|
4103
|
-
const
|
|
4105
|
+
const X = () => ge(this, null, function* () {
|
|
4104
4106
|
try {
|
|
4105
4107
|
if ((yield fetch(`${i}/v1/player/${s}/activateSMS?tokenId=${o}&validationCode=${g}`, {
|
|
4106
4108
|
headers: {
|
|
@@ -4108,7 +4110,7 @@ function xi(e, t, r) {
|
|
|
4108
4110
|
accept: "application/json"
|
|
4109
4111
|
}
|
|
4110
4112
|
})).ok)
|
|
4111
|
-
r(2,
|
|
4113
|
+
r(2, v = !0), window.postMessage({ type: "SmsHasBeenValidated" }, window.location.href);
|
|
4112
4114
|
else
|
|
4113
4115
|
throw window.postMessage(
|
|
4114
4116
|
{
|
|
@@ -4119,12 +4121,12 @@ function xi(e, t, r) {
|
|
|
4119
4121
|
}
|
|
4120
4122
|
},
|
|
4121
4123
|
window.location.href
|
|
4122
|
-
), r(2,
|
|
4124
|
+
), r(2, v = !1), new Error("Could not activate user");
|
|
4123
4125
|
} catch (f) {
|
|
4124
4126
|
console.log(f);
|
|
4125
4127
|
}
|
|
4126
|
-
}),
|
|
4127
|
-
localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))),
|
|
4128
|
+
}), le = () => ge(this, null, function* () {
|
|
4129
|
+
localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))), ce();
|
|
4128
4130
|
try {
|
|
4129
4131
|
const f = yield fetch(`${i}/v1/player/sms/token`, {
|
|
4130
4132
|
method: "POST",
|
|
@@ -4139,38 +4141,38 @@ function xi(e, t, r) {
|
|
|
4139
4141
|
})
|
|
4140
4142
|
}), p = yield f.json();
|
|
4141
4143
|
if (f.ok)
|
|
4142
|
-
r(9, o = p.id), _ = !1,
|
|
4144
|
+
r(9, o = p.id), _ = !1, he();
|
|
4143
4145
|
else
|
|
4144
4146
|
throw _ = !0, new Error("Failed to fetch");
|
|
4145
4147
|
} catch (f) {
|
|
4146
4148
|
_ = !0, console.error(f);
|
|
4147
4149
|
}
|
|
4148
|
-
}),
|
|
4149
|
-
|
|
4150
|
-
},
|
|
4151
|
-
|
|
4150
|
+
}), he = () => {
|
|
4151
|
+
x > 0 ? r(4, x--, x) : (clearInterval(T), r(3, T = !1), r(4, x = 60));
|
|
4152
|
+
}, ce = () => {
|
|
4153
|
+
B < 60 && r(3, T = setInterval(
|
|
4152
4154
|
() => {
|
|
4153
|
-
|
|
4155
|
+
he();
|
|
4154
4156
|
},
|
|
4155
4157
|
1e3
|
|
4156
4158
|
));
|
|
4157
|
-
},
|
|
4158
|
-
!
|
|
4159
|
+
}, z = (f) => {
|
|
4160
|
+
!O.numeric.test(f.key) && f.keyCode !== 8 && f.keyCode !== 9 && f.keyCode !== 46 && f.preventDefault();
|
|
4159
4161
|
};
|
|
4160
|
-
|
|
4162
|
+
cr(() => {
|
|
4161
4163
|
if (!s || !l) {
|
|
4162
4164
|
let f = JSON.parse(localStorage.getItem("playerData"));
|
|
4163
4165
|
r(10, s = f.playerid), r(11, l = f.number);
|
|
4164
4166
|
}
|
|
4165
|
-
return
|
|
4167
|
+
return ce(), () => {
|
|
4166
4168
|
};
|
|
4167
4169
|
});
|
|
4168
4170
|
function R() {
|
|
4169
4171
|
g = this.value, r(1, g);
|
|
4170
4172
|
}
|
|
4171
|
-
const w = (f) =>
|
|
4173
|
+
const w = (f) => z(f);
|
|
4172
4174
|
function P(f) {
|
|
4173
|
-
|
|
4175
|
+
De[f ? "unshift" : "push"](() => {
|
|
4174
4176
|
H = f, r(0, H);
|
|
4175
4177
|
});
|
|
4176
4178
|
}
|
|
@@ -4179,20 +4181,20 @@ function xi(e, t, r) {
|
|
|
4179
4181
|
}, e.$$.update = () => {
|
|
4180
4182
|
e.$$.dirty & /*tokenid, playerid, endpoint*/
|
|
4181
4183
|
5632, e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4182
|
-
32769 && h && H &&
|
|
4183
|
-
65537 && c && H &&
|
|
4184
|
-
16385 && u && H &&
|
|
4184
|
+
32769 && h && H && pi(H, h), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4185
|
+
65537 && c && H && bi(H, c), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4186
|
+
16385 && u && H && gi(H, `${u}.Style`), e.$$.dirty & /*translationurl*/
|
|
4185
4187
|
131072 && d && F();
|
|
4186
4188
|
}, [
|
|
4187
4189
|
H,
|
|
4188
4190
|
g,
|
|
4189
|
-
|
|
4191
|
+
v,
|
|
4190
4192
|
T,
|
|
4191
|
-
|
|
4193
|
+
x,
|
|
4192
4194
|
n,
|
|
4193
|
-
V,
|
|
4194
|
-
ue,
|
|
4195
4195
|
X,
|
|
4196
|
+
le,
|
|
4197
|
+
z,
|
|
4196
4198
|
o,
|
|
4197
4199
|
s,
|
|
4198
4200
|
l,
|
|
@@ -4207,14 +4209,14 @@ function xi(e, t, r) {
|
|
|
4207
4209
|
P
|
|
4208
4210
|
];
|
|
4209
4211
|
}
|
|
4210
|
-
class
|
|
4212
|
+
class Si extends Sr {
|
|
4211
4213
|
constructor(t) {
|
|
4212
|
-
super(),
|
|
4214
|
+
super(), _r(
|
|
4213
4215
|
this,
|
|
4214
4216
|
t,
|
|
4215
4217
|
xi,
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
+
_i,
|
|
4219
|
+
Ht,
|
|
4218
4220
|
{
|
|
4219
4221
|
endpoint: 12,
|
|
4220
4222
|
tokenid: 9,
|
|
@@ -4226,7 +4228,7 @@ class _i extends _r {
|
|
|
4226
4228
|
clientstylingurl: 16,
|
|
4227
4229
|
translationurl: 17
|
|
4228
4230
|
},
|
|
4229
|
-
|
|
4231
|
+
vi
|
|
4230
4232
|
);
|
|
4231
4233
|
}
|
|
4232
4234
|
get endpoint() {
|
|
@@ -4284,7 +4286,7 @@ class _i extends _r {
|
|
|
4284
4286
|
this.$$set({ translationurl: t }), U();
|
|
4285
4287
|
}
|
|
4286
4288
|
}
|
|
4287
|
-
xr(
|
|
4289
|
+
xr(Si, { endpoint: {}, tokenid: {}, playerid: {}, smstemplate: {}, number: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4288
4290
|
export {
|
|
4289
|
-
|
|
4291
|
+
Si as default
|
|
4290
4292
|
};
|