@everymatrix/general-player-forgot-password-sms-form 1.86.2 → 1.86.4
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/GeneralPlayerForgotPasswordSmsForm-BMUqvxSK.cjs +22 -0
- package/components/{GeneralPlayerForgotPasswordSmsForm-BRROJX4q.js → GeneralPlayerForgotPasswordSmsForm-BcwNVD4p.js} +690 -694
- package/components/{GeneralPlayerForgotPasswordSmsForm-C_Gj2qx9.js → GeneralPlayerForgotPasswordSmsForm-cFt6LmX9.js} +702 -706
- package/es2015/general-player-forgot-password-sms-form.cjs +1 -1
- package/es2015/general-player-forgot-password-sms-form.js +1 -1
- package/esnext/general-player-forgot-password-sms-form.js +1 -1
- package/package.json +1 -1
- package/components/GeneralPlayerForgotPasswordSmsForm-CIXNp0fQ.cjs +0 -9
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function ae() {
|
|
2
2
|
}
|
|
3
|
-
const
|
|
3
|
+
const gt = (e) => e;
|
|
4
4
|
function Ir(e) {
|
|
5
5
|
return e();
|
|
6
6
|
}
|
|
@@ -10,16 +10,16 @@ function er() {
|
|
|
10
10
|
function he(e) {
|
|
11
11
|
e.forEach(Ir);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function Ge(e) {
|
|
14
14
|
return typeof e == "function";
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function Mr(e, t) {
|
|
17
17
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
18
18
|
}
|
|
19
19
|
function Cn(e) {
|
|
20
20
|
return Object.keys(e).length === 0;
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function Br(e, ...t) {
|
|
23
23
|
if (e == null) {
|
|
24
24
|
for (const n of t)
|
|
25
25
|
n(void 0);
|
|
@@ -29,7 +29,7 @@ function Mr(e, ...t) {
|
|
|
29
29
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
30
30
|
}
|
|
31
31
|
function Rn(e, t, r) {
|
|
32
|
-
e.$$.on_destroy.push(
|
|
32
|
+
e.$$.on_destroy.push(Br(t, r));
|
|
33
33
|
}
|
|
34
34
|
function Ln(e) {
|
|
35
35
|
const t = typeof e == "string" && e.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);
|
|
@@ -40,21 +40,21 @@ function Ln(e) {
|
|
|
40
40
|
];
|
|
41
41
|
}
|
|
42
42
|
const Or = typeof window < "u";
|
|
43
|
-
let
|
|
44
|
-
const
|
|
43
|
+
let zt = Or ? () => window.performance.now() : () => Date.now(), Gt = Or ? (e) => requestAnimationFrame(e) : ae;
|
|
44
|
+
const Oe = /* @__PURE__ */ new Set();
|
|
45
45
|
function kr(e) {
|
|
46
|
-
|
|
47
|
-
t.c(e) || (
|
|
48
|
-
}),
|
|
46
|
+
Oe.forEach((t) => {
|
|
47
|
+
t.c(e) || (Oe.delete(t), t.f());
|
|
48
|
+
}), Oe.size !== 0 && Gt(kr);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Vt(e) {
|
|
51
51
|
let t;
|
|
52
|
-
return
|
|
52
|
+
return Oe.size === 0 && Gt(kr), {
|
|
53
53
|
promise: new Promise((r) => {
|
|
54
|
-
|
|
54
|
+
Oe.add(t = { c: e, f: r });
|
|
55
55
|
}),
|
|
56
56
|
abort() {
|
|
57
|
-
|
|
57
|
+
Oe.delete(t);
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
60
|
}
|
|
@@ -62,13 +62,13 @@ function m(e, t) {
|
|
|
62
62
|
e.appendChild(t);
|
|
63
63
|
}
|
|
64
64
|
function Hn(e, t, r) {
|
|
65
|
-
const n =
|
|
65
|
+
const n = $t(e);
|
|
66
66
|
if (!n.getElementById(t)) {
|
|
67
67
|
const i = P("style");
|
|
68
68
|
i.id = t, i.textContent = r, Ur(n, i);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function $t(e) {
|
|
72
72
|
if (!e)
|
|
73
73
|
return document;
|
|
74
74
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -80,7 +80,7 @@ function Xt(e) {
|
|
|
80
80
|
}
|
|
81
81
|
function An(e) {
|
|
82
82
|
const t = P("style");
|
|
83
|
-
return t.textContent = "/* empty */", Ur(
|
|
83
|
+
return t.textContent = "/* empty */", Ur($t(e), t), t.sheet;
|
|
84
84
|
}
|
|
85
85
|
function Ur(e, t) {
|
|
86
86
|
return m(
|
|
@@ -102,19 +102,19 @@ function Nn(e, t) {
|
|
|
102
102
|
function P(e) {
|
|
103
103
|
return document.createElement(e);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function O(e) {
|
|
106
106
|
return document.createTextNode(e);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
return
|
|
108
|
+
function $() {
|
|
109
|
+
return O(" ");
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function Ee(e, t, r, n) {
|
|
112
112
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
113
113
|
}
|
|
114
114
|
function h(e, t, r) {
|
|
115
115
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function Le(e, t, r) {
|
|
118
118
|
const n = t.toLowerCase();
|
|
119
119
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : h(e, t, r);
|
|
120
120
|
}
|
|
@@ -125,16 +125,16 @@ function W(e, t) {
|
|
|
125
125
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
126
126
|
t);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function ut(e, t) {
|
|
129
129
|
e.value = t ?? "";
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function nt(e, t, r) {
|
|
132
132
|
e.classList.toggle(t, !!r);
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function Mn(e, t, { bubbles: r = !1, cancelable: n = !1 } = {}) {
|
|
135
135
|
return new CustomEvent(e, { detail: t, bubbles: r, cancelable: n });
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function Bn(e) {
|
|
138
138
|
const t = {};
|
|
139
139
|
return e.childNodes.forEach(
|
|
140
140
|
/** @param {Element} node */
|
|
@@ -143,8 +143,8 @@ function Mn(e) {
|
|
|
143
143
|
}
|
|
144
144
|
), t;
|
|
145
145
|
}
|
|
146
|
-
const
|
|
147
|
-
let
|
|
146
|
+
const dt = /* @__PURE__ */ new Map();
|
|
147
|
+
let ct = 0;
|
|
148
148
|
function On(e) {
|
|
149
149
|
let t = 5381, r = e.length;
|
|
150
150
|
for (; r--; )
|
|
@@ -153,9 +153,9 @@ function On(e) {
|
|
|
153
153
|
}
|
|
154
154
|
function kn(e, t) {
|
|
155
155
|
const r = { stylesheet: An(t), rules: {} };
|
|
156
|
-
return
|
|
156
|
+
return dt.set(e, r), r;
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function ft(e, t, r, n, i, o, s, a = 0) {
|
|
159
159
|
const d = 16.666 / n;
|
|
160
160
|
let u = `{
|
|
161
161
|
`;
|
|
@@ -165,74 +165,74 @@ function ht(e, t, r, n, i, o, s, a = 0) {
|
|
|
165
165
|
`;
|
|
166
166
|
}
|
|
167
167
|
const l = u + `100% {${s(r, 1 - r)}}
|
|
168
|
-
}`, c = `__svelte_${On(l)}_${a}`, f =
|
|
168
|
+
}`, c = `__svelte_${On(l)}_${a}`, f = $t(e), { stylesheet: g, rules: b } = dt.get(f) || kn(f, e);
|
|
169
169
|
b[c] || (b[c] = !0, g.insertRule(`@keyframes ${c} ${l}`, g.cssRules.length));
|
|
170
170
|
const y = e.style.animation || "";
|
|
171
|
-
return e.style.animation = `${y ? `${y}, ` : ""}${c} ${n}ms linear ${i}ms 1 both`,
|
|
171
|
+
return e.style.animation = `${y ? `${y}, ` : ""}${c} ${n}ms linear ${i}ms 1 both`, ct += 1, c;
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function ht(e, t) {
|
|
174
174
|
const r = (e.style.animation || "").split(", "), n = r.filter(
|
|
175
175
|
t ? (o) => o.indexOf(t) < 0 : (o) => o.indexOf("__svelte") === -1
|
|
176
176
|
// remove all Svelte animations
|
|
177
177
|
), i = r.length - n.length;
|
|
178
|
-
i && (e.style.animation = n.join(", "),
|
|
178
|
+
i && (e.style.animation = n.join(", "), ct -= i, ct || Un());
|
|
179
179
|
}
|
|
180
180
|
function Un() {
|
|
181
|
-
|
|
182
|
-
|
|
181
|
+
Gt(() => {
|
|
182
|
+
ct || (dt.forEach((e) => {
|
|
183
183
|
const { ownerNode: t } = e.stylesheet;
|
|
184
184
|
t && Y(t);
|
|
185
|
-
}),
|
|
185
|
+
}), dt.clear());
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
|
-
let
|
|
189
|
-
function
|
|
190
|
-
|
|
188
|
+
let Qe;
|
|
189
|
+
function Je(e) {
|
|
190
|
+
Qe = e;
|
|
191
191
|
}
|
|
192
192
|
function Dn() {
|
|
193
|
-
if (!
|
|
193
|
+
if (!Qe)
|
|
194
194
|
throw new Error("Function called outside component initialization");
|
|
195
|
-
return
|
|
195
|
+
return Qe;
|
|
196
196
|
}
|
|
197
197
|
function Fn(e) {
|
|
198
198
|
Dn().$$.on_mount.push(e);
|
|
199
199
|
}
|
|
200
|
-
const
|
|
201
|
-
let
|
|
200
|
+
const Be = [], pt = [];
|
|
201
|
+
let ke = [];
|
|
202
202
|
const tr = [], jn = /* @__PURE__ */ Promise.resolve();
|
|
203
|
-
let
|
|
203
|
+
let Nt = !1;
|
|
204
204
|
function zn() {
|
|
205
|
-
|
|
205
|
+
Nt || (Nt = !0, jn.then(oe));
|
|
206
206
|
}
|
|
207
207
|
function de(e) {
|
|
208
|
-
|
|
208
|
+
ke.push(e);
|
|
209
209
|
}
|
|
210
|
-
const
|
|
211
|
-
let
|
|
210
|
+
const Et = /* @__PURE__ */ new Set();
|
|
211
|
+
let Ie = 0;
|
|
212
212
|
function oe() {
|
|
213
|
-
if (
|
|
213
|
+
if (Ie !== 0)
|
|
214
214
|
return;
|
|
215
|
-
const e =
|
|
215
|
+
const e = Qe;
|
|
216
216
|
do {
|
|
217
217
|
try {
|
|
218
|
-
for (;
|
|
219
|
-
const t =
|
|
220
|
-
|
|
218
|
+
for (; Ie < Be.length; ) {
|
|
219
|
+
const t = Be[Ie];
|
|
220
|
+
Ie++, Je(t), Gn(t.$$);
|
|
221
221
|
}
|
|
222
222
|
} catch (t) {
|
|
223
|
-
throw
|
|
223
|
+
throw Be.length = 0, Ie = 0, t;
|
|
224
224
|
}
|
|
225
|
-
for (
|
|
226
|
-
|
|
227
|
-
for (let t = 0; t <
|
|
228
|
-
const r =
|
|
229
|
-
|
|
225
|
+
for (Je(null), Be.length = 0, Ie = 0; pt.length; )
|
|
226
|
+
pt.pop()();
|
|
227
|
+
for (let t = 0; t < ke.length; t += 1) {
|
|
228
|
+
const r = ke[t];
|
|
229
|
+
Et.has(r) || (Et.add(r), r());
|
|
230
230
|
}
|
|
231
|
-
|
|
232
|
-
} while (
|
|
231
|
+
ke.length = 0;
|
|
232
|
+
} while (Be.length);
|
|
233
233
|
for (; tr.length; )
|
|
234
234
|
tr.pop()();
|
|
235
|
-
|
|
235
|
+
Nt = !1, Et.clear(), Je(e);
|
|
236
236
|
}
|
|
237
237
|
function Gn(e) {
|
|
238
238
|
if (e.fragment !== null) {
|
|
@@ -241,66 +241,66 @@ function Gn(e) {
|
|
|
241
241
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(de);
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function Vn(e) {
|
|
245
245
|
const t = [], r = [];
|
|
246
|
-
|
|
246
|
+
ke.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ke = t;
|
|
247
247
|
}
|
|
248
|
-
let
|
|
249
|
-
function
|
|
250
|
-
return
|
|
251
|
-
|
|
252
|
-
})),
|
|
248
|
+
let Ze;
|
|
249
|
+
function qt() {
|
|
250
|
+
return Ze || (Ze = Promise.resolve(), Ze.then(() => {
|
|
251
|
+
Ze = null;
|
|
252
|
+
})), Ze;
|
|
253
253
|
}
|
|
254
|
-
function
|
|
255
|
-
e.dispatchEvent(
|
|
254
|
+
function He(e, t, r) {
|
|
255
|
+
e.dispatchEvent(Mn(`${t ? "intro" : "outro"}${r}`));
|
|
256
256
|
}
|
|
257
|
-
const
|
|
258
|
-
let
|
|
259
|
-
function
|
|
260
|
-
|
|
257
|
+
const ot = /* @__PURE__ */ new Set();
|
|
258
|
+
let ye;
|
|
259
|
+
function Ke() {
|
|
260
|
+
ye = {
|
|
261
261
|
r: 0,
|
|
262
262
|
c: [],
|
|
263
|
-
p:
|
|
263
|
+
p: ye
|
|
264
264
|
// parent group
|
|
265
265
|
};
|
|
266
266
|
}
|
|
267
|
-
function
|
|
268
|
-
|
|
267
|
+
function et() {
|
|
268
|
+
ye.r || he(ye.c), ye = ye.p;
|
|
269
269
|
}
|
|
270
270
|
function ue(e, t) {
|
|
271
|
-
e && e.i && (
|
|
271
|
+
e && e.i && (ot.delete(e), e.i(t));
|
|
272
272
|
}
|
|
273
|
-
function
|
|
273
|
+
function Ue(e, t, r, n) {
|
|
274
274
|
if (e && e.o) {
|
|
275
|
-
if (
|
|
275
|
+
if (ot.has(e))
|
|
276
276
|
return;
|
|
277
|
-
|
|
278
|
-
|
|
277
|
+
ot.add(e), ye.c.push(() => {
|
|
278
|
+
ot.delete(e), n && (r && e.d(1), n());
|
|
279
279
|
}), e.o(t);
|
|
280
280
|
} else
|
|
281
281
|
n && n();
|
|
282
282
|
}
|
|
283
|
-
const
|
|
284
|
-
function
|
|
283
|
+
const Xt = { duration: 0 };
|
|
284
|
+
function $n(e, t, r) {
|
|
285
285
|
const n = { direction: "in" };
|
|
286
286
|
let i = t(e, r, n), o = !1, s, a, d = 0;
|
|
287
287
|
function u() {
|
|
288
|
-
s &&
|
|
288
|
+
s && ht(e, s);
|
|
289
289
|
}
|
|
290
290
|
function l() {
|
|
291
291
|
const {
|
|
292
292
|
delay: f = 0,
|
|
293
293
|
duration: g = 300,
|
|
294
|
-
easing: b =
|
|
294
|
+
easing: b = gt,
|
|
295
295
|
tick: y = ae,
|
|
296
296
|
css: _
|
|
297
|
-
} = i ||
|
|
298
|
-
_ && (s =
|
|
299
|
-
const S =
|
|
300
|
-
a && a.abort(), o = !0, de(() =>
|
|
297
|
+
} = i || Xt;
|
|
298
|
+
_ && (s = ft(e, 0, 1, g, f, b, _, d++)), y(0, 1);
|
|
299
|
+
const S = zt() + f, x = S + g;
|
|
300
|
+
a && a.abort(), o = !0, de(() => He(e, !0, "start")), a = Vt((w) => {
|
|
301
301
|
if (o) {
|
|
302
302
|
if (w >= x)
|
|
303
|
-
return y(1, 0),
|
|
303
|
+
return y(1, 0), He(e, !0, "end"), u(), o = !1;
|
|
304
304
|
if (w >= S) {
|
|
305
305
|
const H = b((w - S) / g);
|
|
306
306
|
y(H, 1 - H);
|
|
@@ -312,7 +312,7 @@ function Vn(e, t, r) {
|
|
|
312
312
|
let c = !1;
|
|
313
313
|
return {
|
|
314
314
|
start() {
|
|
315
|
-
c || (c = !0,
|
|
315
|
+
c || (c = !0, ht(e), Ge(i) ? (i = i(n), qt().then(l)) : l());
|
|
316
316
|
},
|
|
317
317
|
invalidate() {
|
|
318
318
|
c = !1;
|
|
@@ -325,24 +325,24 @@ function Vn(e, t, r) {
|
|
|
325
325
|
function qn(e, t, r) {
|
|
326
326
|
const n = { direction: "out" };
|
|
327
327
|
let i = t(e, r, n), o = !0, s;
|
|
328
|
-
const a =
|
|
328
|
+
const a = ye;
|
|
329
329
|
a.r += 1;
|
|
330
330
|
let d;
|
|
331
331
|
function u() {
|
|
332
332
|
const {
|
|
333
333
|
delay: l = 0,
|
|
334
334
|
duration: c = 300,
|
|
335
|
-
easing: f =
|
|
335
|
+
easing: f = gt,
|
|
336
336
|
tick: g = ae,
|
|
337
337
|
css: b
|
|
338
|
-
} = i ||
|
|
339
|
-
b && (s =
|
|
340
|
-
const y =
|
|
341
|
-
de(() =>
|
|
342
|
-
e.inert, e.inert = !0),
|
|
338
|
+
} = i || Xt;
|
|
339
|
+
b && (s = ft(e, 1, 0, c, l, f, b));
|
|
340
|
+
const y = zt() + l, _ = y + c;
|
|
341
|
+
de(() => He(e, !1, "start")), "inert" in e && (d = /** @type {HTMLElement} */
|
|
342
|
+
e.inert, e.inert = !0), Vt((S) => {
|
|
343
343
|
if (o) {
|
|
344
344
|
if (S >= _)
|
|
345
|
-
return g(0, 1),
|
|
345
|
+
return g(0, 1), He(e, !1, "end"), --a.r || he(a.c), !1;
|
|
346
346
|
if (S >= y) {
|
|
347
347
|
const x = f((S - y) / c);
|
|
348
348
|
g(1 - x, x);
|
|
@@ -351,18 +351,18 @@ function qn(e, t, r) {
|
|
|
351
351
|
return o;
|
|
352
352
|
});
|
|
353
353
|
}
|
|
354
|
-
return
|
|
354
|
+
return Ge(i) ? qt().then(() => {
|
|
355
355
|
i = i(n), u();
|
|
356
356
|
}) : u(), {
|
|
357
357
|
end(l) {
|
|
358
|
-
l && "inert" in e && (e.inert = d), l && i.tick && i.tick(1, 0), o && (s &&
|
|
358
|
+
l && "inert" in e && (e.inert = d), l && i.tick && i.tick(1, 0), o && (s && ht(e, s), o = !1);
|
|
359
359
|
}
|
|
360
360
|
};
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function we(e, t, r, n) {
|
|
363
363
|
let o = t(e, r, { direction: "both" }), s = n ? 0 : 1, a = null, d = null, u = null, l;
|
|
364
364
|
function c() {
|
|
365
|
-
u &&
|
|
365
|
+
u && ht(e, u);
|
|
366
366
|
}
|
|
367
367
|
function f(b, y) {
|
|
368
368
|
const _ = (
|
|
@@ -383,16 +383,16 @@ function _e(e, t, r, n) {
|
|
|
383
383
|
const {
|
|
384
384
|
delay: y = 0,
|
|
385
385
|
duration: _ = 300,
|
|
386
|
-
easing: S =
|
|
386
|
+
easing: S = gt,
|
|
387
387
|
tick: x = ae,
|
|
388
388
|
css: w
|
|
389
|
-
} = o ||
|
|
390
|
-
start:
|
|
389
|
+
} = o || Xt, H = {
|
|
390
|
+
start: zt() + y,
|
|
391
391
|
b
|
|
392
392
|
};
|
|
393
|
-
b || (H.group =
|
|
394
|
-
e.inert, e.inert = !0)), a || d ? d = H : (w && (c(), u =
|
|
395
|
-
if (d && T > d.start && (a = f(d, _), d = null,
|
|
393
|
+
b || (H.group = ye, ye.r += 1), "inert" in e && (b ? l !== void 0 && (e.inert = l) : (l = /** @type {HTMLElement} */
|
|
394
|
+
e.inert, e.inert = !0)), a || d ? d = H : (w && (c(), u = ft(e, s, b, _, y, S, w)), b && x(0, 1), a = f(H, _), de(() => He(e, b, "start")), Vt((T) => {
|
|
395
|
+
if (d && T > d.start && (a = f(d, _), d = null, He(e, a.b, "start"), w && (c(), u = ft(
|
|
396
396
|
e,
|
|
397
397
|
s,
|
|
398
398
|
a.b,
|
|
@@ -402,10 +402,10 @@ function _e(e, t, r, n) {
|
|
|
402
402
|
o.css
|
|
403
403
|
))), a) {
|
|
404
404
|
if (T >= a.end)
|
|
405
|
-
x(s = a.b, 1 - s),
|
|
405
|
+
x(s = a.b, 1 - s), He(e, a.b, "end"), d || (a.b ? c() : --a.group.r || he(a.group.c)), a = null;
|
|
406
406
|
else if (T >= a.start) {
|
|
407
|
-
const
|
|
408
|
-
s = a.a + a.d * S(
|
|
407
|
+
const j = T - a.start;
|
|
408
|
+
s = a.a + a.d * S(j / a.duration), x(s, 1 - s);
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
411
|
return !!(a || d);
|
|
@@ -413,7 +413,7 @@ function _e(e, t, r, n) {
|
|
|
413
413
|
}
|
|
414
414
|
return {
|
|
415
415
|
run(b) {
|
|
416
|
-
|
|
416
|
+
Ge(o) ? qt().then(() => {
|
|
417
417
|
o = o({ direction: b ? "in" : "out" }), g(b);
|
|
418
418
|
}) : g(b);
|
|
419
419
|
},
|
|
@@ -428,20 +428,20 @@ function rr(e) {
|
|
|
428
428
|
function Xn(e, t, r) {
|
|
429
429
|
const { fragment: n, after_update: i } = e.$$;
|
|
430
430
|
n && n.m(t, r), de(() => {
|
|
431
|
-
const o = e.$$.on_mount.map(Ir).filter(
|
|
431
|
+
const o = e.$$.on_mount.map(Ir).filter(Ge);
|
|
432
432
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : he(o), e.$$.on_mount = [];
|
|
433
433
|
}), i.forEach(de);
|
|
434
434
|
}
|
|
435
435
|
function Wn(e, t) {
|
|
436
436
|
const r = e.$$;
|
|
437
|
-
r.fragment !== null && (
|
|
437
|
+
r.fragment !== null && (Vn(r.after_update), he(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
438
438
|
}
|
|
439
439
|
function Zn(e, t) {
|
|
440
|
-
e.$$.dirty[0] === -1 && (
|
|
440
|
+
e.$$.dirty[0] === -1 && (Be.push(e), zn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
441
441
|
}
|
|
442
442
|
function Yn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
443
|
-
const d =
|
|
444
|
-
|
|
443
|
+
const d = Qe;
|
|
444
|
+
Je(e);
|
|
445
445
|
const u = e.$$ = {
|
|
446
446
|
fragment: null,
|
|
447
447
|
ctx: [],
|
|
@@ -476,7 +476,7 @@ function Yn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
476
476
|
u.fragment && u.fragment.c();
|
|
477
477
|
t.intro && ue(e.$$.fragment), Xn(e, t.target, t.anchor), oe();
|
|
478
478
|
}
|
|
479
|
-
|
|
479
|
+
Je(d);
|
|
480
480
|
}
|
|
481
481
|
let Dr;
|
|
482
482
|
typeof HTMLElement == "function" && (Dr = class extends HTMLElement {
|
|
@@ -538,12 +538,12 @@ typeof HTMLElement == "function" && (Dr = class extends HTMLElement {
|
|
|
538
538
|
};
|
|
539
539
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
540
540
|
return;
|
|
541
|
-
const t = {}, r =
|
|
541
|
+
const t = {}, r = Bn(this);
|
|
542
542
|
for (const i of this.$$s)
|
|
543
543
|
i in r && (t[i] = [e(i)]);
|
|
544
544
|
for (const i of this.attributes) {
|
|
545
545
|
const o = this.$$g_p(i.name);
|
|
546
|
-
o in this.$$d || (this.$$d[o] =
|
|
546
|
+
o in this.$$d || (this.$$d[o] = st(o, i.value, this.$$p_d, "toProp"));
|
|
547
547
|
}
|
|
548
548
|
for (const i in this.$$p_d)
|
|
549
549
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -561,7 +561,7 @@ typeof HTMLElement == "function" && (Dr = class extends HTMLElement {
|
|
|
561
561
|
this.$$r = !0;
|
|
562
562
|
for (const i in this.$$p_d)
|
|
563
563
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
564
|
-
const o =
|
|
564
|
+
const o = st(
|
|
565
565
|
i,
|
|
566
566
|
this.$$d[i],
|
|
567
567
|
this.$$p_d,
|
|
@@ -583,7 +583,7 @@ typeof HTMLElement == "function" && (Dr = class extends HTMLElement {
|
|
|
583
583
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
584
584
|
// and setting attributes through setAttribute etc, this is helpful
|
|
585
585
|
attributeChangedCallback(e, t, r) {
|
|
586
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
586
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = st(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
587
587
|
}
|
|
588
588
|
disconnectedCallback() {
|
|
589
589
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -596,7 +596,7 @@ typeof HTMLElement == "function" && (Dr = class extends HTMLElement {
|
|
|
596
596
|
) || e;
|
|
597
597
|
}
|
|
598
598
|
});
|
|
599
|
-
function
|
|
599
|
+
function st(e, t, r, n) {
|
|
600
600
|
const i = r[e]?.type;
|
|
601
601
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
602
602
|
return t;
|
|
@@ -642,7 +642,7 @@ function Jn(e, t, r, n, i, o) {
|
|
|
642
642
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
643
643
|
},
|
|
644
644
|
set(d) {
|
|
645
|
-
d =
|
|
645
|
+
d = st(a, d, t), this.$$d[a] = d, this.$$c?.$set({ [a]: d });
|
|
646
646
|
}
|
|
647
647
|
});
|
|
648
648
|
}), n.forEach((a) => {
|
|
@@ -682,7 +682,7 @@ class Qn {
|
|
|
682
682
|
* @returns {() => void}
|
|
683
683
|
*/
|
|
684
684
|
$on(t, r) {
|
|
685
|
-
if (
|
|
685
|
+
if (!Ge(r))
|
|
686
686
|
return ae;
|
|
687
687
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
688
688
|
return n.push(r), () => {
|
|
@@ -707,10 +707,10 @@ function ti(e) {
|
|
|
707
707
|
const t = e - 1;
|
|
708
708
|
return t * t * t + 1;
|
|
709
709
|
}
|
|
710
|
-
function
|
|
710
|
+
function St(e) {
|
|
711
711
|
return --e * e * e * e * e + 1;
|
|
712
712
|
}
|
|
713
|
-
function
|
|
713
|
+
function Se(e, { delay: t = 0, duration: r = 400, easing: n = ei, amount: i = 5, opacity: o = 0 } = {}) {
|
|
714
714
|
const s = getComputedStyle(e), a = +s.opacity, d = s.filter === "none" ? "" : s.filter, u = a * (1 - o), [l, c] = Ln(i);
|
|
715
715
|
return {
|
|
716
716
|
delay: t,
|
|
@@ -719,7 +719,7 @@ function Te(e, { delay: t = 0, duration: r = 400, easing: n = ei, amount: i = 5,
|
|
|
719
719
|
css: (f, g) => `opacity: ${a - u * g}; filter: ${d} blur(${g * l}${c});`
|
|
720
720
|
};
|
|
721
721
|
}
|
|
722
|
-
function nr(e, { delay: t = 0, duration: r = 400, easing: n =
|
|
722
|
+
function nr(e, { delay: t = 0, duration: r = 400, easing: n = gt } = {}) {
|
|
723
723
|
const i = +getComputedStyle(e).opacity;
|
|
724
724
|
return {
|
|
725
725
|
delay: t,
|
|
@@ -743,14 +743,14 @@ function ir(e, { delay: t = 0, duration: r = 400, easing: n = ti, start: i = 0,
|
|
|
743
743
|
const Me = [];
|
|
744
744
|
function ri(e, t) {
|
|
745
745
|
return {
|
|
746
|
-
subscribe:
|
|
746
|
+
subscribe: vt(e, t).subscribe
|
|
747
747
|
};
|
|
748
748
|
}
|
|
749
|
-
function
|
|
749
|
+
function vt(e, t = ae) {
|
|
750
750
|
let r;
|
|
751
751
|
const n = /* @__PURE__ */ new Set();
|
|
752
752
|
function i(a) {
|
|
753
|
-
if (
|
|
753
|
+
if (Mr(e, a) && (e = a, r)) {
|
|
754
754
|
const d = !Me.length;
|
|
755
755
|
for (const u of n)
|
|
756
756
|
u[1](), Me.push(u, e);
|
|
@@ -786,9 +786,9 @@ function Ve(e, t, r) {
|
|
|
786
786
|
return;
|
|
787
787
|
c();
|
|
788
788
|
const b = t(n ? u[0] : u, s, a);
|
|
789
|
-
o ? s(b) : c =
|
|
789
|
+
o ? s(b) : c = Ge(b) ? b : ae;
|
|
790
790
|
}, g = i.map(
|
|
791
|
-
(b, y) =>
|
|
791
|
+
(b, y) => Br(
|
|
792
792
|
b,
|
|
793
793
|
(_) => {
|
|
794
794
|
u[y] = _, l &= ~(1 << y), d && f();
|
|
@@ -823,19 +823,19 @@ function ui(e) {
|
|
|
823
823
|
function di(e) {
|
|
824
824
|
return Array.isArray(e) ? [] : {};
|
|
825
825
|
}
|
|
826
|
-
function
|
|
827
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
826
|
+
function tt(e, t) {
|
|
827
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? De(di(e), e, t) : e;
|
|
828
828
|
}
|
|
829
829
|
function ci(e, t, r) {
|
|
830
830
|
return e.concat(t).map(function(n) {
|
|
831
|
-
return
|
|
831
|
+
return tt(n, r);
|
|
832
832
|
});
|
|
833
833
|
}
|
|
834
834
|
function fi(e, t) {
|
|
835
835
|
if (!t.customMerge)
|
|
836
|
-
return
|
|
836
|
+
return De;
|
|
837
837
|
var r = t.customMerge(e);
|
|
838
|
-
return typeof r == "function" ? r :
|
|
838
|
+
return typeof r == "function" ? r : De;
|
|
839
839
|
}
|
|
840
840
|
function hi(e) {
|
|
841
841
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -858,51 +858,65 @@ function pi(e, t) {
|
|
|
858
858
|
function mi(e, t, r) {
|
|
859
859
|
var n = {};
|
|
860
860
|
return r.isMergeableObject(e) && or(e).forEach(function(i) {
|
|
861
|
-
n[i] =
|
|
861
|
+
n[i] = tt(e[i], r);
|
|
862
862
|
}), or(t).forEach(function(i) {
|
|
863
|
-
pi(e, i) || (Fr(e, i) && r.isMergeableObject(t[i]) ? n[i] = fi(i, r)(e[i], t[i], r) : n[i] =
|
|
863
|
+
pi(e, i) || (Fr(e, i) && r.isMergeableObject(t[i]) ? n[i] = fi(i, r)(e[i], t[i], r) : n[i] = tt(t[i], r));
|
|
864
864
|
}), n;
|
|
865
865
|
}
|
|
866
|
-
function
|
|
867
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || ci, r.isMergeableObject = r.isMergeableObject || ii, r.cloneUnlessOtherwiseSpecified =
|
|
866
|
+
function De(e, t, r) {
|
|
867
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || ci, r.isMergeableObject = r.isMergeableObject || ii, r.cloneUnlessOtherwiseSpecified = tt;
|
|
868
868
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
869
|
-
return o ? n ? r.arrayMerge(e, t, r) : mi(e, t, r) :
|
|
869
|
+
return o ? n ? r.arrayMerge(e, t, r) : mi(e, t, r) : tt(t, r);
|
|
870
870
|
}
|
|
871
|
-
|
|
871
|
+
De.all = function(t, r) {
|
|
872
872
|
if (!Array.isArray(t))
|
|
873
873
|
throw new Error("first argument should be an array");
|
|
874
874
|
return t.reduce(function(n, i) {
|
|
875
|
-
return
|
|
875
|
+
return De(n, i, r);
|
|
876
876
|
}, {});
|
|
877
877
|
};
|
|
878
|
-
var bi =
|
|
878
|
+
var bi = De, gi = bi;
|
|
879
879
|
const vi = /* @__PURE__ */ ni(gi);
|
|
880
|
-
|
|
881
|
-
|
|
880
|
+
/*! *****************************************************************************
|
|
881
|
+
Copyright (c) Microsoft Corporation.
|
|
882
|
+
|
|
883
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
884
|
+
purpose with or without fee is hereby granted.
|
|
885
|
+
|
|
886
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
887
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
888
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
889
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
890
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
891
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
892
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
893
|
+
***************************************************************************** */
|
|
894
|
+
var It = function(e, t) {
|
|
895
|
+
return It = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
882
896
|
r.__proto__ = n;
|
|
883
897
|
} || function(r, n) {
|
|
884
898
|
for (var i in n)
|
|
885
899
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
886
|
-
},
|
|
900
|
+
}, It(e, t);
|
|
887
901
|
};
|
|
888
|
-
function
|
|
902
|
+
function yt(e, t) {
|
|
889
903
|
if (typeof t != "function" && t !== null)
|
|
890
904
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
891
|
-
|
|
905
|
+
It(e, t);
|
|
892
906
|
function r() {
|
|
893
907
|
this.constructor = e;
|
|
894
908
|
}
|
|
895
909
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
896
910
|
}
|
|
897
|
-
var
|
|
898
|
-
return
|
|
911
|
+
var B = function() {
|
|
912
|
+
return B = Object.assign || function(t) {
|
|
899
913
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
900
914
|
r = arguments[n];
|
|
901
915
|
for (var o in r)
|
|
902
916
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
903
917
|
}
|
|
904
918
|
return t;
|
|
905
|
-
},
|
|
919
|
+
}, B.apply(this, arguments);
|
|
906
920
|
};
|
|
907
921
|
function yi(e, t) {
|
|
908
922
|
var r = {};
|
|
@@ -913,14 +927,14 @@ function yi(e, t) {
|
|
|
913
927
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
914
928
|
return r;
|
|
915
929
|
}
|
|
916
|
-
function
|
|
917
|
-
if (
|
|
930
|
+
function Tt(e, t, r) {
|
|
931
|
+
if (arguments.length === 2)
|
|
918
932
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
919
933
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
920
|
-
return e.concat(o ||
|
|
934
|
+
return e.concat(o || t);
|
|
921
935
|
}
|
|
922
|
-
function
|
|
923
|
-
var r = t && t.cache ? t.cache :
|
|
936
|
+
function Ct(e, t) {
|
|
937
|
+
var r = t && t.cache ? t.cache : Si, n = t && t.serializer ? t.serializer : Ei, i = t && t.strategy ? t.strategy : _i;
|
|
924
938
|
return i(e, {
|
|
925
939
|
cache: r,
|
|
926
940
|
serializer: n
|
|
@@ -929,103 +943,95 @@ function Lt(e, t) {
|
|
|
929
943
|
function wi(e) {
|
|
930
944
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
931
945
|
}
|
|
932
|
-
function
|
|
946
|
+
function jr(e, t, r, n) {
|
|
933
947
|
var i = wi(n) ? n : r(n), o = t.get(i);
|
|
934
948
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
935
949
|
}
|
|
936
|
-
function
|
|
950
|
+
function zr(e, t, r) {
|
|
937
951
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
938
952
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
939
953
|
}
|
|
940
|
-
function
|
|
954
|
+
function Wt(e, t, r, n, i) {
|
|
941
955
|
return r.bind(t, e, n, i);
|
|
942
956
|
}
|
|
957
|
+
function _i(e, t) {
|
|
958
|
+
var r = e.length === 1 ? jr : zr;
|
|
959
|
+
return Wt(e, this, r, t.cache.create(), t.serializer);
|
|
960
|
+
}
|
|
943
961
|
function Pi(e, t) {
|
|
944
|
-
|
|
945
|
-
return zr(e, this, r, t.cache.create(), t.serializer);
|
|
962
|
+
return Wt(e, this, zr, t.cache.create(), t.serializer);
|
|
946
963
|
}
|
|
947
964
|
function xi(e, t) {
|
|
948
|
-
return
|
|
965
|
+
return Wt(e, this, jr, t.cache.create(), t.serializer);
|
|
949
966
|
}
|
|
950
967
|
var Ei = function() {
|
|
951
968
|
return JSON.stringify(arguments);
|
|
952
|
-
}
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
}()
|
|
964
|
-
), Ti = {
|
|
969
|
+
};
|
|
970
|
+
function Zt() {
|
|
971
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
972
|
+
}
|
|
973
|
+
Zt.prototype.get = function(e) {
|
|
974
|
+
return this.cache[e];
|
|
975
|
+
};
|
|
976
|
+
Zt.prototype.set = function(e, t) {
|
|
977
|
+
this.cache[e] = t;
|
|
978
|
+
};
|
|
979
|
+
var Si = {
|
|
965
980
|
create: function() {
|
|
966
|
-
return new
|
|
981
|
+
return new Zt();
|
|
967
982
|
}
|
|
968
|
-
},
|
|
969
|
-
variadic:
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
973
|
-
r = arguments[n];
|
|
974
|
-
for (var o in r)
|
|
975
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
976
|
-
}
|
|
977
|
-
return t;
|
|
978
|
-
}, bt.apply(this, arguments);
|
|
979
|
-
};
|
|
980
|
-
var A;
|
|
983
|
+
}, Rt = {
|
|
984
|
+
variadic: Pi,
|
|
985
|
+
monadic: xi
|
|
986
|
+
}, A;
|
|
981
987
|
(function(e) {
|
|
982
988
|
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";
|
|
983
989
|
})(A || (A = {}));
|
|
984
|
-
var
|
|
990
|
+
var z;
|
|
985
991
|
(function(e) {
|
|
986
992
|
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";
|
|
987
|
-
})(
|
|
988
|
-
var
|
|
993
|
+
})(z || (z = {}));
|
|
994
|
+
var Fe;
|
|
989
995
|
(function(e) {
|
|
990
996
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
991
|
-
})(
|
|
997
|
+
})(Fe || (Fe = {}));
|
|
992
998
|
function sr(e) {
|
|
993
|
-
return e.type ===
|
|
999
|
+
return e.type === z.literal;
|
|
994
1000
|
}
|
|
995
|
-
function
|
|
996
|
-
return e.type ===
|
|
1001
|
+
function Ti(e) {
|
|
1002
|
+
return e.type === z.argument;
|
|
997
1003
|
}
|
|
998
1004
|
function Gr(e) {
|
|
999
|
-
return e.type ===
|
|
1000
|
-
}
|
|
1001
|
-
function $r(e) {
|
|
1002
|
-
return e.type === j.date;
|
|
1005
|
+
return e.type === z.number;
|
|
1003
1006
|
}
|
|
1004
1007
|
function Vr(e) {
|
|
1005
|
-
return e.type ===
|
|
1008
|
+
return e.type === z.date;
|
|
1009
|
+
}
|
|
1010
|
+
function $r(e) {
|
|
1011
|
+
return e.type === z.time;
|
|
1006
1012
|
}
|
|
1007
1013
|
function qr(e) {
|
|
1008
|
-
return e.type ===
|
|
1014
|
+
return e.type === z.select;
|
|
1009
1015
|
}
|
|
1010
1016
|
function Xr(e) {
|
|
1011
|
-
return e.type ===
|
|
1017
|
+
return e.type === z.plural;
|
|
1012
1018
|
}
|
|
1013
|
-
function
|
|
1014
|
-
return e.type ===
|
|
1019
|
+
function Ci(e) {
|
|
1020
|
+
return e.type === z.pound;
|
|
1015
1021
|
}
|
|
1016
1022
|
function Wr(e) {
|
|
1017
|
-
return e.type ===
|
|
1023
|
+
return e.type === z.tag;
|
|
1018
1024
|
}
|
|
1019
1025
|
function Zr(e) {
|
|
1020
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1026
|
+
return !!(e && typeof e == "object" && e.type === Fe.number);
|
|
1021
1027
|
}
|
|
1022
|
-
function
|
|
1023
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1028
|
+
function Mt(e) {
|
|
1029
|
+
return !!(e && typeof e == "object" && e.type === Fe.dateTime);
|
|
1024
1030
|
}
|
|
1025
|
-
var Yr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
1026
|
-
function
|
|
1031
|
+
var Yr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ri = /(?:[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;
|
|
1032
|
+
function Li(e) {
|
|
1027
1033
|
var t = {};
|
|
1028
|
-
return e.replace(
|
|
1034
|
+
return e.replace(Ri, function(r) {
|
|
1029
1035
|
var n = r.length;
|
|
1030
1036
|
switch (r[0]) {
|
|
1031
1037
|
case "G":
|
|
@@ -1114,21 +1120,11 @@ function Hi(e) {
|
|
|
1114
1120
|
return "";
|
|
1115
1121
|
}), t;
|
|
1116
1122
|
}
|
|
1117
|
-
var
|
|
1118
|
-
|
|
1119
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1120
|
-
r = arguments[n];
|
|
1121
|
-
for (var o in r)
|
|
1122
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1123
|
-
}
|
|
1124
|
-
return t;
|
|
1125
|
-
}, $.apply(this, arguments);
|
|
1126
|
-
};
|
|
1127
|
-
var Ai = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1128
|
-
function Ni(e) {
|
|
1123
|
+
var Hi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1124
|
+
function Ai(e) {
|
|
1129
1125
|
if (e.length === 0)
|
|
1130
1126
|
throw new Error("Number skeleton cannot be empty");
|
|
1131
|
-
for (var t = e.split(
|
|
1127
|
+
for (var t = e.split(Hi).filter(function(f) {
|
|
1132
1128
|
return f.length > 0;
|
|
1133
1129
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1134
1130
|
var o = i[n], s = o.split("/");
|
|
@@ -1143,10 +1139,10 @@ function Ni(e) {
|
|
|
1143
1139
|
}
|
|
1144
1140
|
return r;
|
|
1145
1141
|
}
|
|
1146
|
-
function
|
|
1142
|
+
function Ni(e) {
|
|
1147
1143
|
return e.replace(/^(.*?)-/, "");
|
|
1148
1144
|
}
|
|
1149
|
-
var ar = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Jr = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
1145
|
+
var ar = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Jr = /^(@+)?(\+|#+)?[rs]?$/g, Ii = /(\*)(0+)|(#+)(0+)|(0+)/g, Qr = /^(0+)$/;
|
|
1150
1146
|
function lr(e) {
|
|
1151
1147
|
var t = {};
|
|
1152
1148
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Jr, function(r, n, i) {
|
|
@@ -1211,7 +1207,7 @@ function ur(e) {
|
|
|
1211
1207
|
var t = {}, r = Kr(e);
|
|
1212
1208
|
return r || t;
|
|
1213
1209
|
}
|
|
1214
|
-
function
|
|
1210
|
+
function Bi(e) {
|
|
1215
1211
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1216
1212
|
var i = n[r];
|
|
1217
1213
|
switch (i.stem) {
|
|
@@ -1235,7 +1231,7 @@ function Oi(e) {
|
|
|
1235
1231
|
continue;
|
|
1236
1232
|
case "measure-unit":
|
|
1237
1233
|
case "unit":
|
|
1238
|
-
t.style = "unit", t.unit =
|
|
1234
|
+
t.style = "unit", t.unit = Ni(i.options[0]);
|
|
1239
1235
|
continue;
|
|
1240
1236
|
case "compact-short":
|
|
1241
1237
|
case "K":
|
|
@@ -1246,13 +1242,13 @@ function Oi(e) {
|
|
|
1246
1242
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1247
1243
|
continue;
|
|
1248
1244
|
case "scientific":
|
|
1249
|
-
t =
|
|
1250
|
-
return
|
|
1245
|
+
t = B(B(B({}, t), { notation: "scientific" }), i.options.reduce(function(d, u) {
|
|
1246
|
+
return B(B({}, d), ur(u));
|
|
1251
1247
|
}, {}));
|
|
1252
1248
|
continue;
|
|
1253
1249
|
case "engineering":
|
|
1254
|
-
t =
|
|
1255
|
-
return
|
|
1250
|
+
t = B(B(B({}, t), { notation: "engineering" }), i.options.reduce(function(d, u) {
|
|
1251
|
+
return B(B({}, d), ur(u));
|
|
1256
1252
|
}, {}));
|
|
1257
1253
|
continue;
|
|
1258
1254
|
case "notation-simple":
|
|
@@ -1297,7 +1293,7 @@ function Oi(e) {
|
|
|
1297
1293
|
case "integer-width":
|
|
1298
1294
|
if (i.options.length > 1)
|
|
1299
1295
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1300
|
-
i.options[0].replace(
|
|
1296
|
+
i.options[0].replace(Ii, function(d, u, l, c, f, g) {
|
|
1301
1297
|
if (u)
|
|
1302
1298
|
t.minimumIntegerDigits = l.length;
|
|
1303
1299
|
else {
|
|
@@ -1321,21 +1317,21 @@ function Oi(e) {
|
|
|
1321
1317
|
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && g ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + g.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1322
1318
|
});
|
|
1323
1319
|
var o = i.options[0];
|
|
1324
|
-
o === "w" ? t =
|
|
1320
|
+
o === "w" ? t = B(B({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = B(B({}, t), lr(o)));
|
|
1325
1321
|
continue;
|
|
1326
1322
|
}
|
|
1327
1323
|
if (Jr.test(i.stem)) {
|
|
1328
|
-
t =
|
|
1324
|
+
t = B(B({}, t), lr(i.stem));
|
|
1329
1325
|
continue;
|
|
1330
1326
|
}
|
|
1331
1327
|
var s = Kr(i.stem);
|
|
1332
|
-
s && (t =
|
|
1328
|
+
s && (t = B(B({}, t), s));
|
|
1333
1329
|
var a = Mi(i.stem);
|
|
1334
|
-
a && (t =
|
|
1330
|
+
a && (t = B(B({}, t), a));
|
|
1335
1331
|
}
|
|
1336
1332
|
return t;
|
|
1337
1333
|
}
|
|
1338
|
-
var
|
|
1334
|
+
var it = {
|
|
1339
1335
|
"001": [
|
|
1340
1336
|
"H",
|
|
1341
1337
|
"h"
|
|
@@ -2750,13 +2746,13 @@ var ot = {
|
|
|
2750
2746
|
"h"
|
|
2751
2747
|
]
|
|
2752
2748
|
};
|
|
2753
|
-
function
|
|
2749
|
+
function Oi(e, t) {
|
|
2754
2750
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2755
2751
|
var i = e.charAt(n);
|
|
2756
2752
|
if (i === "j") {
|
|
2757
2753
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2758
2754
|
o++, n++;
|
|
2759
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), d = "a", u =
|
|
2755
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), d = "a", u = ki(t);
|
|
2760
2756
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2761
2757
|
r += d;
|
|
2762
2758
|
for (; s-- > 0; )
|
|
@@ -2766,7 +2762,7 @@ function ki(e, t) {
|
|
|
2766
2762
|
}
|
|
2767
2763
|
return r;
|
|
2768
2764
|
}
|
|
2769
|
-
function
|
|
2765
|
+
function ki(e) {
|
|
2770
2766
|
var t = e.hourCycle;
|
|
2771
2767
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2772
2768
|
e.hourCycles && // @ts-ignore
|
|
@@ -2785,23 +2781,23 @@ function Ui(e) {
|
|
|
2785
2781
|
}
|
|
2786
2782
|
var r = e.language, n;
|
|
2787
2783
|
r !== "root" && (n = e.maximize().region);
|
|
2788
|
-
var i =
|
|
2784
|
+
var i = it[n || ""] || it[r || ""] || it["".concat(r, "-001")] || it["001"];
|
|
2789
2785
|
return i[0];
|
|
2790
2786
|
}
|
|
2791
|
-
var
|
|
2787
|
+
var Lt, Ui = new RegExp("^".concat(Yr.source, "*")), Di = new RegExp("".concat(Yr.source, "*$"));
|
|
2792
2788
|
function N(e, t) {
|
|
2793
2789
|
return { start: e, end: t };
|
|
2794
2790
|
}
|
|
2795
|
-
var
|
|
2791
|
+
var Fi = !!String.prototype.startsWith && "_a".startsWith("a", 1), ji = !!String.fromCodePoint, zi = !!Object.fromEntries, Gi = !!String.prototype.codePointAt, Vi = !!String.prototype.trimStart, $i = !!String.prototype.trimEnd, qi = !!Number.isSafeInteger, Xi = qi ? Number.isSafeInteger : function(e) {
|
|
2796
2792
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2797
|
-
},
|
|
2793
|
+
}, Bt = !0;
|
|
2798
2794
|
try {
|
|
2799
|
-
var
|
|
2800
|
-
|
|
2795
|
+
var Wi = tn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2796
|
+
Bt = ((Lt = Wi.exec("a")) === null || Lt === void 0 ? void 0 : Lt[0]) === "a";
|
|
2801
2797
|
} catch {
|
|
2802
|
-
|
|
2798
|
+
Bt = !1;
|
|
2803
2799
|
}
|
|
2804
|
-
var dr =
|
|
2800
|
+
var dr = Fi ? (
|
|
2805
2801
|
// Native
|
|
2806
2802
|
function(t, r, n) {
|
|
2807
2803
|
return t.startsWith(r, n);
|
|
@@ -2811,7 +2807,7 @@ var dr = ji ? (
|
|
|
2811
2807
|
function(t, r, n) {
|
|
2812
2808
|
return t.slice(n, n + r.length) === r;
|
|
2813
2809
|
}
|
|
2814
|
-
),
|
|
2810
|
+
), Ot = ji ? String.fromCodePoint : (
|
|
2815
2811
|
// IE11
|
|
2816
2812
|
function() {
|
|
2817
2813
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2825,7 +2821,7 @@ var dr = ji ? (
|
|
|
2825
2821
|
}
|
|
2826
2822
|
), cr = (
|
|
2827
2823
|
// native
|
|
2828
|
-
|
|
2824
|
+
zi ? Object.fromEntries : (
|
|
2829
2825
|
// Ponyfill
|
|
2830
2826
|
function(t) {
|
|
2831
2827
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2835,7 +2831,7 @@ var dr = ji ? (
|
|
|
2835
2831
|
return r;
|
|
2836
2832
|
}
|
|
2837
2833
|
)
|
|
2838
|
-
), en =
|
|
2834
|
+
), en = Gi ? (
|
|
2839
2835
|
// Native
|
|
2840
2836
|
function(t, r) {
|
|
2841
2837
|
return t.codePointAt(r);
|
|
@@ -2849,7 +2845,7 @@ var dr = ji ? (
|
|
|
2849
2845
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2850
2846
|
}
|
|
2851
2847
|
}
|
|
2852
|
-
),
|
|
2848
|
+
), Zi = Vi ? (
|
|
2853
2849
|
// Native
|
|
2854
2850
|
function(t) {
|
|
2855
2851
|
return t.trimStart();
|
|
@@ -2857,9 +2853,9 @@ var dr = ji ? (
|
|
|
2857
2853
|
) : (
|
|
2858
2854
|
// Ponyfill
|
|
2859
2855
|
function(t) {
|
|
2860
|
-
return t.replace(
|
|
2856
|
+
return t.replace(Ui, "");
|
|
2861
2857
|
}
|
|
2862
|
-
),
|
|
2858
|
+
), Yi = $i ? (
|
|
2863
2859
|
// Native
|
|
2864
2860
|
function(t) {
|
|
2865
2861
|
return t.trimEnd();
|
|
@@ -2867,32 +2863,32 @@ var dr = ji ? (
|
|
|
2867
2863
|
) : (
|
|
2868
2864
|
// Ponyfill
|
|
2869
2865
|
function(t) {
|
|
2870
|
-
return t.replace(
|
|
2866
|
+
return t.replace(Di, "");
|
|
2871
2867
|
}
|
|
2872
2868
|
);
|
|
2873
2869
|
function tn(e, t) {
|
|
2874
2870
|
return new RegExp(e, t);
|
|
2875
2871
|
}
|
|
2876
|
-
var
|
|
2877
|
-
if (
|
|
2872
|
+
var kt;
|
|
2873
|
+
if (Bt) {
|
|
2878
2874
|
var fr = tn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2879
|
-
|
|
2875
|
+
kt = function(t, r) {
|
|
2880
2876
|
var n;
|
|
2881
2877
|
fr.lastIndex = r;
|
|
2882
2878
|
var i = fr.exec(t);
|
|
2883
2879
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2884
2880
|
};
|
|
2885
2881
|
} else
|
|
2886
|
-
|
|
2882
|
+
kt = function(t, r) {
|
|
2887
2883
|
for (var n = []; ; ) {
|
|
2888
2884
|
var i = en(t, r);
|
|
2889
|
-
if (i === void 0 || rn(i) ||
|
|
2885
|
+
if (i === void 0 || rn(i) || eo(i))
|
|
2890
2886
|
break;
|
|
2891
2887
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2892
2888
|
}
|
|
2893
|
-
return
|
|
2889
|
+
return Ot.apply(void 0, n);
|
|
2894
2890
|
};
|
|
2895
|
-
var
|
|
2891
|
+
var Ji = (
|
|
2896
2892
|
/** @class */
|
|
2897
2893
|
function() {
|
|
2898
2894
|
function e(t, r) {
|
|
@@ -2916,14 +2912,14 @@ var Qi = (
|
|
|
2916
2912
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2917
2913
|
var a = this.clonePosition();
|
|
2918
2914
|
this.bump(), i.push({
|
|
2919
|
-
type:
|
|
2915
|
+
type: z.pound,
|
|
2920
2916
|
location: N(a, this.clonePosition())
|
|
2921
2917
|
});
|
|
2922
2918
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2923
2919
|
if (n)
|
|
2924
2920
|
break;
|
|
2925
2921
|
return this.error(A.UNMATCHED_CLOSING_TAG, N(this.clonePosition(), this.clonePosition()));
|
|
2926
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2922
|
+
} else if (o === 60 && !this.ignoreTag && Ut(this.peek() || 0)) {
|
|
2927
2923
|
var s = this.parseTag(t, r);
|
|
2928
2924
|
if (s.err)
|
|
2929
2925
|
return s;
|
|
@@ -2944,7 +2940,7 @@ var Qi = (
|
|
|
2944
2940
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2945
2941
|
return {
|
|
2946
2942
|
val: {
|
|
2947
|
-
type:
|
|
2943
|
+
type: z.literal,
|
|
2948
2944
|
value: "<".concat(i, "/>"),
|
|
2949
2945
|
location: N(n, this.clonePosition())
|
|
2950
2946
|
},
|
|
@@ -2956,12 +2952,12 @@ var Qi = (
|
|
|
2956
2952
|
return o;
|
|
2957
2953
|
var s = o.val, a = this.clonePosition();
|
|
2958
2954
|
if (this.bumpIf("</")) {
|
|
2959
|
-
if (this.isEOF() || !
|
|
2955
|
+
if (this.isEOF() || !Ut(this.char()))
|
|
2960
2956
|
return this.error(A.INVALID_TAG, N(a, this.clonePosition()));
|
|
2961
2957
|
var d = this.clonePosition(), u = this.parseTagName();
|
|
2962
2958
|
return i !== u ? this.error(A.UNMATCHED_CLOSING_TAG, N(d, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2963
2959
|
val: {
|
|
2964
|
-
type:
|
|
2960
|
+
type: z.tag,
|
|
2965
2961
|
value: i,
|
|
2966
2962
|
children: s,
|
|
2967
2963
|
location: N(n, this.clonePosition())
|
|
@@ -2974,7 +2970,7 @@ var Qi = (
|
|
|
2974
2970
|
return this.error(A.INVALID_TAG, N(n, this.clonePosition()));
|
|
2975
2971
|
}, e.prototype.parseTagName = function() {
|
|
2976
2972
|
var t = this.offset();
|
|
2977
|
-
for (this.bump(); !this.isEOF() &&
|
|
2973
|
+
for (this.bump(); !this.isEOF() && Ki(this.char()); )
|
|
2978
2974
|
this.bump();
|
|
2979
2975
|
return this.message.slice(t, this.offset());
|
|
2980
2976
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2998,12 +2994,12 @@ var Qi = (
|
|
|
2998
2994
|
}
|
|
2999
2995
|
var d = N(n, this.clonePosition());
|
|
3000
2996
|
return {
|
|
3001
|
-
val: { type:
|
|
2997
|
+
val: { type: z.literal, value: i, location: d },
|
|
3002
2998
|
err: null
|
|
3003
2999
|
};
|
|
3004
3000
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3005
3001
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3006
|
-
!
|
|
3002
|
+
!Qi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3007
3003
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3008
3004
|
if (this.isEOF() || this.char() !== 39)
|
|
3009
3005
|
return null;
|
|
@@ -3037,12 +3033,12 @@ var Qi = (
|
|
|
3037
3033
|
r.push(n);
|
|
3038
3034
|
this.bump();
|
|
3039
3035
|
}
|
|
3040
|
-
return
|
|
3036
|
+
return Ot.apply(void 0, r);
|
|
3041
3037
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3042
3038
|
if (this.isEOF())
|
|
3043
3039
|
return null;
|
|
3044
3040
|
var n = this.char();
|
|
3045
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3041
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ot(n));
|
|
3046
3042
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3047
3043
|
var n = this.clonePosition();
|
|
3048
3044
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3058,7 +3054,7 @@ var Qi = (
|
|
|
3058
3054
|
case 125:
|
|
3059
3055
|
return this.bump(), {
|
|
3060
3056
|
val: {
|
|
3061
|
-
type:
|
|
3057
|
+
type: z.argument,
|
|
3062
3058
|
// value does not include the opening and closing braces.
|
|
3063
3059
|
value: i,
|
|
3064
3060
|
location: N(n, this.clonePosition())
|
|
@@ -3071,7 +3067,7 @@ var Qi = (
|
|
|
3071
3067
|
return this.error(A.MALFORMED_ARGUMENT, N(n, this.clonePosition()));
|
|
3072
3068
|
}
|
|
3073
3069
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3074
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3070
|
+
var t = this.clonePosition(), r = this.offset(), n = kt(this.message, r), i = r + n.length;
|
|
3075
3071
|
this.bumpTo(i);
|
|
3076
3072
|
var o = this.clonePosition(), s = N(t, o);
|
|
3077
3073
|
return { value: n, location: s };
|
|
@@ -3090,7 +3086,7 @@ var Qi = (
|
|
|
3090
3086
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3091
3087
|
if (c.err)
|
|
3092
3088
|
return c;
|
|
3093
|
-
var f =
|
|
3089
|
+
var f = Yi(c.val);
|
|
3094
3090
|
if (f.length === 0)
|
|
3095
3091
|
return this.error(A.EXPECT_ARGUMENT_STYLE, N(this.clonePosition(), this.clonePosition()));
|
|
3096
3092
|
var g = N(l, this.clonePosition());
|
|
@@ -3101,24 +3097,24 @@ var Qi = (
|
|
|
3101
3097
|
return b;
|
|
3102
3098
|
var y = N(i, this.clonePosition());
|
|
3103
3099
|
if (u && dr(u?.style, "::", 0)) {
|
|
3104
|
-
var _ =
|
|
3100
|
+
var _ = Zi(u.style.slice(2));
|
|
3105
3101
|
if (a === "number") {
|
|
3106
3102
|
var c = this.parseNumberSkeletonFromString(_, u.styleLocation);
|
|
3107
3103
|
return c.err ? c : {
|
|
3108
|
-
val: { type:
|
|
3104
|
+
val: { type: z.number, value: n, location: y, style: c.val },
|
|
3109
3105
|
err: null
|
|
3110
3106
|
};
|
|
3111
3107
|
} else {
|
|
3112
3108
|
if (_.length === 0)
|
|
3113
3109
|
return this.error(A.EXPECT_DATE_TIME_SKELETON, y);
|
|
3114
3110
|
var S = _;
|
|
3115
|
-
this.locale && (S =
|
|
3111
|
+
this.locale && (S = Oi(_, this.locale));
|
|
3116
3112
|
var f = {
|
|
3117
|
-
type:
|
|
3113
|
+
type: Fe.dateTime,
|
|
3118
3114
|
pattern: S,
|
|
3119
3115
|
location: u.styleLocation,
|
|
3120
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3121
|
-
}, x = a === "date" ?
|
|
3116
|
+
parsedOptions: this.shouldParseSkeletons ? Li(S) : {}
|
|
3117
|
+
}, x = a === "date" ? z.date : z.time;
|
|
3122
3118
|
return {
|
|
3123
3119
|
val: { type: x, value: n, location: y, style: f },
|
|
3124
3120
|
err: null
|
|
@@ -3127,7 +3123,7 @@ var Qi = (
|
|
|
3127
3123
|
}
|
|
3128
3124
|
return {
|
|
3129
3125
|
val: {
|
|
3130
|
-
type: a === "number" ?
|
|
3126
|
+
type: a === "number" ? z.number : a === "date" ? z.date : z.time,
|
|
3131
3127
|
value: n,
|
|
3132
3128
|
location: y,
|
|
3133
3129
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
@@ -3140,7 +3136,7 @@ var Qi = (
|
|
|
3140
3136
|
case "select": {
|
|
3141
3137
|
var w = this.clonePosition();
|
|
3142
3138
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3143
|
-
return this.error(A.EXPECT_SELECT_ARGUMENT_OPTIONS, N(w,
|
|
3139
|
+
return this.error(A.EXPECT_SELECT_ARGUMENT_OPTIONS, N(w, B({}, w)));
|
|
3144
3140
|
this.bumpSpace();
|
|
3145
3141
|
var H = this.parseIdentifierIfPossible(), T = 0;
|
|
3146
3142
|
if (a !== "select" && H.value === "offset") {
|
|
@@ -3152,26 +3148,26 @@ var Qi = (
|
|
|
3152
3148
|
return c;
|
|
3153
3149
|
this.bumpSpace(), H = this.parseIdentifierIfPossible(), T = c.val;
|
|
3154
3150
|
}
|
|
3155
|
-
var
|
|
3156
|
-
if (
|
|
3157
|
-
return
|
|
3151
|
+
var j = this.tryParsePluralOrSelectOptions(t, a, r, H);
|
|
3152
|
+
if (j.err)
|
|
3153
|
+
return j;
|
|
3158
3154
|
var b = this.tryParseArgumentClose(i);
|
|
3159
3155
|
if (b.err)
|
|
3160
3156
|
return b;
|
|
3161
3157
|
var C = N(i, this.clonePosition());
|
|
3162
3158
|
return a === "select" ? {
|
|
3163
3159
|
val: {
|
|
3164
|
-
type:
|
|
3160
|
+
type: z.select,
|
|
3165
3161
|
value: n,
|
|
3166
|
-
options: cr(
|
|
3162
|
+
options: cr(j.val),
|
|
3167
3163
|
location: C
|
|
3168
3164
|
},
|
|
3169
3165
|
err: null
|
|
3170
3166
|
} : {
|
|
3171
3167
|
val: {
|
|
3172
|
-
type:
|
|
3168
|
+
type: z.plural,
|
|
3173
3169
|
value: n,
|
|
3174
|
-
options: cr(
|
|
3170
|
+
options: cr(j.val),
|
|
3175
3171
|
offset: T,
|
|
3176
3172
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3177
3173
|
location: C
|
|
@@ -3222,16 +3218,16 @@ var Qi = (
|
|
|
3222
3218
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3223
3219
|
var n = [];
|
|
3224
3220
|
try {
|
|
3225
|
-
n =
|
|
3221
|
+
n = Ai(t);
|
|
3226
3222
|
} catch {
|
|
3227
3223
|
return this.error(A.INVALID_NUMBER_SKELETON, r);
|
|
3228
3224
|
}
|
|
3229
3225
|
return {
|
|
3230
3226
|
val: {
|
|
3231
|
-
type:
|
|
3227
|
+
type: Fe.number,
|
|
3232
3228
|
tokens: n,
|
|
3233
3229
|
location: r,
|
|
3234
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3230
|
+
parsedOptions: this.shouldParseSkeletons ? Bi(n) : {}
|
|
3235
3231
|
},
|
|
3236
3232
|
err: null
|
|
3237
3233
|
};
|
|
@@ -3279,7 +3275,7 @@ var Qi = (
|
|
|
3279
3275
|
break;
|
|
3280
3276
|
}
|
|
3281
3277
|
var d = N(i, this.clonePosition());
|
|
3282
|
-
return o ? (s *= n,
|
|
3278
|
+
return o ? (s *= n, Xi(s) ? { val: s, err: null } : this.error(r, d)) : this.error(t, d);
|
|
3283
3279
|
}, e.prototype.offset = function() {
|
|
3284
3280
|
return this.position.offset;
|
|
3285
3281
|
}, e.prototype.isEOF = function() {
|
|
@@ -3345,47 +3341,47 @@ var Qi = (
|
|
|
3345
3341
|
}, e;
|
|
3346
3342
|
}()
|
|
3347
3343
|
);
|
|
3348
|
-
function
|
|
3344
|
+
function Ut(e) {
|
|
3349
3345
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3350
3346
|
}
|
|
3351
|
-
function
|
|
3352
|
-
return
|
|
3347
|
+
function Qi(e) {
|
|
3348
|
+
return Ut(e) || e === 47;
|
|
3353
3349
|
}
|
|
3354
|
-
function
|
|
3350
|
+
function Ki(e) {
|
|
3355
3351
|
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;
|
|
3356
3352
|
}
|
|
3357
3353
|
function rn(e) {
|
|
3358
3354
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3359
3355
|
}
|
|
3360
|
-
function
|
|
3356
|
+
function eo(e) {
|
|
3361
3357
|
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;
|
|
3362
3358
|
}
|
|
3363
|
-
function
|
|
3359
|
+
function Dt(e) {
|
|
3364
3360
|
e.forEach(function(t) {
|
|
3365
3361
|
if (delete t.location, qr(t) || Xr(t))
|
|
3366
3362
|
for (var r in t.options)
|
|
3367
|
-
delete t.options[r].location,
|
|
3363
|
+
delete t.options[r].location, Dt(t.options[r].value);
|
|
3368
3364
|
else
|
|
3369
|
-
Gr(t) && Zr(t.style) || (
|
|
3365
|
+
Gr(t) && Zr(t.style) || (Vr(t) || $r(t)) && Mt(t.style) ? delete t.style.location : Wr(t) && Dt(t.children);
|
|
3370
3366
|
});
|
|
3371
3367
|
}
|
|
3372
|
-
function
|
|
3373
|
-
t === void 0 && (t = {}), t =
|
|
3374
|
-
var r = new
|
|
3368
|
+
function to(e, t) {
|
|
3369
|
+
t === void 0 && (t = {}), t = B({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3370
|
+
var r = new Ji(e, t).parse();
|
|
3375
3371
|
if (r.err) {
|
|
3376
3372
|
var n = SyntaxError(A[r.err.kind]);
|
|
3377
3373
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3378
3374
|
}
|
|
3379
|
-
return t?.captureLocation ||
|
|
3375
|
+
return t?.captureLocation || Dt(r.val), r.val;
|
|
3380
3376
|
}
|
|
3381
|
-
var
|
|
3377
|
+
var je;
|
|
3382
3378
|
(function(e) {
|
|
3383
3379
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3384
|
-
})(
|
|
3385
|
-
var
|
|
3380
|
+
})(je || (je = {}));
|
|
3381
|
+
var wt = (
|
|
3386
3382
|
/** @class */
|
|
3387
3383
|
function(e) {
|
|
3388
|
-
|
|
3384
|
+
yt(t, e);
|
|
3389
3385
|
function t(r, n, i) {
|
|
3390
3386
|
var o = e.call(this, r) || this;
|
|
3391
3387
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3397,44 +3393,44 @@ var Pt = (
|
|
|
3397
3393
|
), hr = (
|
|
3398
3394
|
/** @class */
|
|
3399
3395
|
function(e) {
|
|
3400
|
-
|
|
3396
|
+
yt(t, e);
|
|
3401
3397
|
function t(r, n, i, o) {
|
|
3402
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3398
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), je.INVALID_VALUE, o) || this;
|
|
3403
3399
|
}
|
|
3404
3400
|
return t;
|
|
3405
|
-
}(
|
|
3406
|
-
),
|
|
3401
|
+
}(wt)
|
|
3402
|
+
), ro = (
|
|
3407
3403
|
/** @class */
|
|
3408
3404
|
function(e) {
|
|
3409
|
-
|
|
3405
|
+
yt(t, e);
|
|
3410
3406
|
function t(r, n, i) {
|
|
3411
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3407
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), je.INVALID_VALUE, i) || this;
|
|
3412
3408
|
}
|
|
3413
3409
|
return t;
|
|
3414
|
-
}(
|
|
3415
|
-
),
|
|
3410
|
+
}(wt)
|
|
3411
|
+
), no = (
|
|
3416
3412
|
/** @class */
|
|
3417
3413
|
function(e) {
|
|
3418
|
-
|
|
3414
|
+
yt(t, e);
|
|
3419
3415
|
function t(r, n) {
|
|
3420
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3416
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), je.MISSING_VALUE, n) || this;
|
|
3421
3417
|
}
|
|
3422
3418
|
return t;
|
|
3423
|
-
}(
|
|
3419
|
+
}(wt)
|
|
3424
3420
|
), ie;
|
|
3425
3421
|
(function(e) {
|
|
3426
3422
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3427
3423
|
})(ie || (ie = {}));
|
|
3428
|
-
function
|
|
3424
|
+
function io(e) {
|
|
3429
3425
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3430
3426
|
var n = t[t.length - 1];
|
|
3431
3427
|
return !n || n.type !== ie.literal || r.type !== ie.literal ? t.push(r) : n.value += r.value, t;
|
|
3432
3428
|
}, []);
|
|
3433
3429
|
}
|
|
3434
|
-
function
|
|
3430
|
+
function oo(e) {
|
|
3435
3431
|
return typeof e == "function";
|
|
3436
3432
|
}
|
|
3437
|
-
function
|
|
3433
|
+
function at(e, t, r, n, i, o, s) {
|
|
3438
3434
|
if (e.length === 1 && sr(e[0]))
|
|
3439
3435
|
return [
|
|
3440
3436
|
{
|
|
@@ -3451,7 +3447,7 @@ function lt(e, t, r, n, i, o, s) {
|
|
|
3451
3447
|
});
|
|
3452
3448
|
continue;
|
|
3453
3449
|
}
|
|
3454
|
-
if (
|
|
3450
|
+
if (Ci(l)) {
|
|
3455
3451
|
typeof o == "number" && a.push({
|
|
3456
3452
|
type: ie.literal,
|
|
3457
3453
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3460,25 +3456,25 @@ function lt(e, t, r, n, i, o, s) {
|
|
|
3460
3456
|
}
|
|
3461
3457
|
var c = l.value;
|
|
3462
3458
|
if (!(i && c in i))
|
|
3463
|
-
throw new
|
|
3459
|
+
throw new no(c, s);
|
|
3464
3460
|
var f = i[c];
|
|
3465
|
-
if (
|
|
3461
|
+
if (Ti(l)) {
|
|
3466
3462
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3467
3463
|
type: typeof f == "string" ? ie.literal : ie.object,
|
|
3468
3464
|
value: f
|
|
3469
3465
|
});
|
|
3470
3466
|
continue;
|
|
3471
3467
|
}
|
|
3472
|
-
if (
|
|
3473
|
-
var g = typeof l.style == "string" ? n.date[l.style] :
|
|
3468
|
+
if (Vr(l)) {
|
|
3469
|
+
var g = typeof l.style == "string" ? n.date[l.style] : Mt(l.style) ? l.style.parsedOptions : void 0;
|
|
3474
3470
|
a.push({
|
|
3475
3471
|
type: ie.literal,
|
|
3476
3472
|
value: r.getDateTimeFormat(t, g).format(f)
|
|
3477
3473
|
});
|
|
3478
3474
|
continue;
|
|
3479
3475
|
}
|
|
3480
|
-
if (
|
|
3481
|
-
var g = typeof l.style == "string" ? n.time[l.style] :
|
|
3476
|
+
if ($r(l)) {
|
|
3477
|
+
var g = typeof l.style == "string" ? n.time[l.style] : Mt(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3482
3478
|
a.push({
|
|
3483
3479
|
type: ie.literal,
|
|
3484
3480
|
value: r.getDateTimeFormat(t, g).format(f)
|
|
@@ -3495,9 +3491,9 @@ function lt(e, t, r, n, i, o, s) {
|
|
|
3495
3491
|
}
|
|
3496
3492
|
if (Wr(l)) {
|
|
3497
3493
|
var b = l.children, y = l.value, _ = i[y];
|
|
3498
|
-
if (!
|
|
3499
|
-
throw new
|
|
3500
|
-
var S =
|
|
3494
|
+
if (!oo(_))
|
|
3495
|
+
throw new ro(y, "function", s);
|
|
3496
|
+
var S = at(b, t, r, n, i, o), x = _(S.map(function(T) {
|
|
3501
3497
|
return T.value;
|
|
3502
3498
|
}));
|
|
3503
3499
|
Array.isArray(x) || (x = [x]), a.push.apply(a, x.map(function(T) {
|
|
@@ -3511,38 +3507,38 @@ function lt(e, t, r, n, i, o, s) {
|
|
|
3511
3507
|
var w = l.options[f] || l.options.other;
|
|
3512
3508
|
if (!w)
|
|
3513
3509
|
throw new hr(l.value, f, Object.keys(l.options), s);
|
|
3514
|
-
a.push.apply(a,
|
|
3510
|
+
a.push.apply(a, at(w.value, t, r, n, i));
|
|
3515
3511
|
continue;
|
|
3516
3512
|
}
|
|
3517
3513
|
if (Xr(l)) {
|
|
3518
3514
|
var w = l.options["=".concat(f)];
|
|
3519
3515
|
if (!w) {
|
|
3520
3516
|
if (!Intl.PluralRules)
|
|
3521
|
-
throw new
|
|
3517
|
+
throw new wt(`Intl.PluralRules is not available in this environment.
|
|
3522
3518
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3523
|
-
`,
|
|
3519
|
+
`, je.MISSING_INTL_API, s);
|
|
3524
3520
|
var H = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3525
3521
|
w = l.options[H] || l.options.other;
|
|
3526
3522
|
}
|
|
3527
3523
|
if (!w)
|
|
3528
3524
|
throw new hr(l.value, f, Object.keys(l.options), s);
|
|
3529
|
-
a.push.apply(a,
|
|
3525
|
+
a.push.apply(a, at(w.value, t, r, n, i, f - (l.offset || 0)));
|
|
3530
3526
|
continue;
|
|
3531
3527
|
}
|
|
3532
3528
|
}
|
|
3533
|
-
return
|
|
3529
|
+
return io(a);
|
|
3534
3530
|
}
|
|
3535
|
-
function
|
|
3536
|
-
return t ?
|
|
3537
|
-
return r[n] =
|
|
3531
|
+
function so(e, t) {
|
|
3532
|
+
return t ? B(B(B({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3533
|
+
return r[n] = B(B({}, e[n]), t[n] || {}), r;
|
|
3538
3534
|
}, {})) : e;
|
|
3539
3535
|
}
|
|
3540
|
-
function
|
|
3536
|
+
function ao(e, t) {
|
|
3541
3537
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3542
|
-
return r[n] =
|
|
3543
|
-
},
|
|
3538
|
+
return r[n] = so(e[n], t[n]), r;
|
|
3539
|
+
}, B({}, e)) : e;
|
|
3544
3540
|
}
|
|
3545
|
-
function
|
|
3541
|
+
function Ht(e) {
|
|
3546
3542
|
return {
|
|
3547
3543
|
create: function() {
|
|
3548
3544
|
return {
|
|
@@ -3556,39 +3552,39 @@ function Nt(e) {
|
|
|
3556
3552
|
}
|
|
3557
3553
|
};
|
|
3558
3554
|
}
|
|
3559
|
-
function
|
|
3555
|
+
function lo(e) {
|
|
3560
3556
|
return e === void 0 && (e = {
|
|
3561
3557
|
number: {},
|
|
3562
3558
|
dateTime: {},
|
|
3563
3559
|
pluralRules: {}
|
|
3564
3560
|
}), {
|
|
3565
|
-
getNumberFormat:
|
|
3561
|
+
getNumberFormat: Ct(function() {
|
|
3566
3562
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3567
3563
|
r[n] = arguments[n];
|
|
3568
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3564
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Tt([void 0], r, !1)))();
|
|
3569
3565
|
}, {
|
|
3570
|
-
cache:
|
|
3571
|
-
strategy:
|
|
3566
|
+
cache: Ht(e.number),
|
|
3567
|
+
strategy: Rt.variadic
|
|
3572
3568
|
}),
|
|
3573
|
-
getDateTimeFormat:
|
|
3569
|
+
getDateTimeFormat: Ct(function() {
|
|
3574
3570
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3575
3571
|
r[n] = arguments[n];
|
|
3576
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3572
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Tt([void 0], r, !1)))();
|
|
3577
3573
|
}, {
|
|
3578
|
-
cache:
|
|
3579
|
-
strategy:
|
|
3574
|
+
cache: Ht(e.dateTime),
|
|
3575
|
+
strategy: Rt.variadic
|
|
3580
3576
|
}),
|
|
3581
|
-
getPluralRules:
|
|
3577
|
+
getPluralRules: Ct(function() {
|
|
3582
3578
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3583
3579
|
r[n] = arguments[n];
|
|
3584
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3580
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Tt([void 0], r, !1)))();
|
|
3585
3581
|
}, {
|
|
3586
|
-
cache:
|
|
3587
|
-
strategy:
|
|
3582
|
+
cache: Ht(e.pluralRules),
|
|
3583
|
+
strategy: Rt.variadic
|
|
3588
3584
|
})
|
|
3589
3585
|
};
|
|
3590
3586
|
}
|
|
3591
|
-
var
|
|
3587
|
+
var uo = (
|
|
3592
3588
|
/** @class */
|
|
3593
3589
|
function() {
|
|
3594
3590
|
function e(t, r, n, i) {
|
|
@@ -3607,7 +3603,7 @@ var co = (
|
|
|
3607
3603
|
}, []);
|
|
3608
3604
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3609
3605
|
}, this.formatToParts = function(d) {
|
|
3610
|
-
return
|
|
3606
|
+
return at(o.ast, o.locales, o.formatters, o.formats, d, void 0, o.message);
|
|
3611
3607
|
}, this.resolvedOptions = function() {
|
|
3612
3608
|
var d;
|
|
3613
3609
|
return {
|
|
@@ -3621,12 +3617,12 @@ var co = (
|
|
|
3621
3617
|
var s = i || {};
|
|
3622
3618
|
s.formatters;
|
|
3623
3619
|
var a = yi(s, ["formatters"]);
|
|
3624
|
-
this.ast = e.__parse(t,
|
|
3620
|
+
this.ast = e.__parse(t, B(B({}, a), { locale: this.resolvedLocale }));
|
|
3625
3621
|
} else
|
|
3626
3622
|
this.ast = t;
|
|
3627
3623
|
if (!Array.isArray(this.ast))
|
|
3628
3624
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3629
|
-
this.formats =
|
|
3625
|
+
this.formats = ao(e.formats, n), this.formatters = i && i.formatters || lo(this.formatterCache);
|
|
3630
3626
|
}
|
|
3631
3627
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3632
3628
|
get: function() {
|
|
@@ -3639,7 +3635,7 @@ var co = (
|
|
|
3639
3635
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3640
3636
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3641
3637
|
}
|
|
3642
|
-
}, e.__parse =
|
|
3638
|
+
}, e.__parse = to, e.formats = {
|
|
3643
3639
|
number: {
|
|
3644
3640
|
integer: {
|
|
3645
3641
|
maximumFractionDigits: 0
|
|
@@ -3700,7 +3696,7 @@ var co = (
|
|
|
3700
3696
|
}, e;
|
|
3701
3697
|
}()
|
|
3702
3698
|
);
|
|
3703
|
-
function
|
|
3699
|
+
function co(e, t) {
|
|
3704
3700
|
if (t == null)
|
|
3705
3701
|
return;
|
|
3706
3702
|
if (t in e)
|
|
@@ -3721,36 +3717,36 @@ function fo(e, t) {
|
|
|
3721
3717
|
n = void 0;
|
|
3722
3718
|
return n;
|
|
3723
3719
|
}
|
|
3724
|
-
const
|
|
3720
|
+
const xe = {}, fo = (e, t, r) => r && (t in xe || (xe[t] = {}), e in xe[t] || (xe[t][e] = r), r), nn = (e, t) => {
|
|
3725
3721
|
if (t == null)
|
|
3726
3722
|
return;
|
|
3727
|
-
if (t in
|
|
3728
|
-
return
|
|
3729
|
-
const r =
|
|
3723
|
+
if (t in xe && e in xe[t])
|
|
3724
|
+
return xe[t][e];
|
|
3725
|
+
const r = _t(t);
|
|
3730
3726
|
for (let n = 0; n < r.length; n++) {
|
|
3731
|
-
const i = r[n], o =
|
|
3727
|
+
const i = r[n], o = po(i, e);
|
|
3732
3728
|
if (o)
|
|
3733
|
-
return
|
|
3729
|
+
return fo(e, t, o);
|
|
3734
3730
|
}
|
|
3735
3731
|
};
|
|
3736
3732
|
let Yt;
|
|
3737
|
-
const
|
|
3738
|
-
function
|
|
3733
|
+
const $e = vt({});
|
|
3734
|
+
function ho(e) {
|
|
3739
3735
|
return Yt[e] || null;
|
|
3740
3736
|
}
|
|
3741
3737
|
function on(e) {
|
|
3742
3738
|
return e in Yt;
|
|
3743
3739
|
}
|
|
3744
|
-
function
|
|
3740
|
+
function po(e, t) {
|
|
3745
3741
|
if (!on(e))
|
|
3746
3742
|
return null;
|
|
3747
|
-
const r =
|
|
3748
|
-
return
|
|
3743
|
+
const r = ho(e);
|
|
3744
|
+
return co(r, t);
|
|
3749
3745
|
}
|
|
3750
|
-
function
|
|
3746
|
+
function mo(e) {
|
|
3751
3747
|
if (e == null)
|
|
3752
3748
|
return;
|
|
3753
|
-
const t =
|
|
3749
|
+
const t = _t(e);
|
|
3754
3750
|
for (let r = 0; r < t.length; r++) {
|
|
3755
3751
|
const n = t[r];
|
|
3756
3752
|
if (on(n))
|
|
@@ -3758,55 +3754,55 @@ function bo(e) {
|
|
|
3758
3754
|
}
|
|
3759
3755
|
}
|
|
3760
3756
|
function sn(e, ...t) {
|
|
3761
|
-
delete
|
|
3757
|
+
delete xe[e], $e.update((r) => (r[e] = vi.all([r[e] || {}, ...t]), r));
|
|
3762
3758
|
}
|
|
3763
3759
|
Ve(
|
|
3764
|
-
[
|
|
3760
|
+
[$e],
|
|
3765
3761
|
([e]) => Object.keys(e)
|
|
3766
3762
|
);
|
|
3767
|
-
|
|
3768
|
-
const
|
|
3769
|
-
function
|
|
3770
|
-
|
|
3763
|
+
$e.subscribe((e) => Yt = e);
|
|
3764
|
+
const lt = {};
|
|
3765
|
+
function bo(e, t) {
|
|
3766
|
+
lt[e].delete(t), lt[e].size === 0 && delete lt[e];
|
|
3771
3767
|
}
|
|
3772
3768
|
function an(e) {
|
|
3773
|
-
return
|
|
3769
|
+
return lt[e];
|
|
3774
3770
|
}
|
|
3775
|
-
function
|
|
3776
|
-
return
|
|
3771
|
+
function go(e) {
|
|
3772
|
+
return _t(e).map((t) => {
|
|
3777
3773
|
const r = an(t);
|
|
3778
3774
|
return [t, r ? [...r] : []];
|
|
3779
3775
|
}).filter(([, t]) => t.length > 0);
|
|
3780
3776
|
}
|
|
3781
|
-
function
|
|
3782
|
-
return e == null ? !1 :
|
|
3777
|
+
function Ft(e) {
|
|
3778
|
+
return e == null ? !1 : _t(e).some(
|
|
3783
3779
|
(t) => {
|
|
3784
3780
|
var r;
|
|
3785
3781
|
return (r = an(t)) == null ? void 0 : r.size;
|
|
3786
3782
|
}
|
|
3787
3783
|
);
|
|
3788
3784
|
}
|
|
3789
|
-
function
|
|
3785
|
+
function vo(e, t) {
|
|
3790
3786
|
return Promise.all(
|
|
3791
|
-
t.map((n) => (
|
|
3787
|
+
t.map((n) => (bo(e, n), n().then((i) => i.default || i)))
|
|
3792
3788
|
).then((n) => sn(e, ...n));
|
|
3793
3789
|
}
|
|
3794
|
-
const
|
|
3790
|
+
const Ye = {};
|
|
3795
3791
|
function ln(e) {
|
|
3796
|
-
if (!
|
|
3797
|
-
return e in
|
|
3798
|
-
const t =
|
|
3799
|
-
return
|
|
3792
|
+
if (!Ft(e))
|
|
3793
|
+
return e in Ye ? Ye[e] : Promise.resolve();
|
|
3794
|
+
const t = go(e);
|
|
3795
|
+
return Ye[e] = Promise.all(
|
|
3800
3796
|
t.map(
|
|
3801
|
-
([r, n]) =>
|
|
3797
|
+
([r, n]) => vo(r, n)
|
|
3802
3798
|
)
|
|
3803
3799
|
).then(() => {
|
|
3804
|
-
if (
|
|
3800
|
+
if (Ft(e))
|
|
3805
3801
|
return ln(e);
|
|
3806
|
-
delete
|
|
3807
|
-
}),
|
|
3802
|
+
delete Ye[e];
|
|
3803
|
+
}), Ye[e];
|
|
3808
3804
|
}
|
|
3809
|
-
const
|
|
3805
|
+
const yo = {
|
|
3810
3806
|
number: {
|
|
3811
3807
|
scientific: { notation: "scientific" },
|
|
3812
3808
|
engineering: { notation: "engineering" },
|
|
@@ -3835,141 +3831,141 @@ const wo = {
|
|
|
3835
3831
|
timeZoneName: "short"
|
|
3836
3832
|
}
|
|
3837
3833
|
}
|
|
3838
|
-
},
|
|
3834
|
+
}, wo = {
|
|
3839
3835
|
fallbackLocale: null,
|
|
3840
3836
|
loadingDelay: 200,
|
|
3841
|
-
formats:
|
|
3837
|
+
formats: yo,
|
|
3842
3838
|
warnOnMissingMessages: !0,
|
|
3843
3839
|
handleMissingMessage: void 0,
|
|
3844
3840
|
ignoreTag: !0
|
|
3845
|
-
},
|
|
3846
|
-
function
|
|
3847
|
-
return
|
|
3841
|
+
}, _o = wo;
|
|
3842
|
+
function ze() {
|
|
3843
|
+
return _o;
|
|
3848
3844
|
}
|
|
3849
|
-
const
|
|
3850
|
-
var
|
|
3845
|
+
const At = vt(!1);
|
|
3846
|
+
var Po = Object.defineProperty, xo = Object.defineProperties, Eo = Object.getOwnPropertyDescriptors, pr = Object.getOwnPropertySymbols, So = Object.prototype.hasOwnProperty, To = Object.prototype.propertyIsEnumerable, mr = (e, t, r) => t in e ? Po(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Co = (e, t) => {
|
|
3851
3847
|
for (var r in t || (t = {}))
|
|
3852
|
-
|
|
3848
|
+
So.call(t, r) && mr(e, r, t[r]);
|
|
3853
3849
|
if (pr)
|
|
3854
3850
|
for (var r of pr(t))
|
|
3855
|
-
|
|
3851
|
+
To.call(t, r) && mr(e, r, t[r]);
|
|
3856
3852
|
return e;
|
|
3857
|
-
},
|
|
3858
|
-
let
|
|
3859
|
-
const
|
|
3853
|
+
}, Ro = (e, t) => xo(e, Eo(t));
|
|
3854
|
+
let jt;
|
|
3855
|
+
const mt = vt(null);
|
|
3860
3856
|
function br(e) {
|
|
3861
3857
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3862
3858
|
}
|
|
3863
|
-
function
|
|
3859
|
+
function _t(e, t = ze().fallbackLocale) {
|
|
3864
3860
|
const r = br(e);
|
|
3865
3861
|
return t ? [.../* @__PURE__ */ new Set([...r, ...br(t)])] : r;
|
|
3866
3862
|
}
|
|
3867
|
-
function
|
|
3868
|
-
return
|
|
3863
|
+
function Ae() {
|
|
3864
|
+
return jt ?? void 0;
|
|
3869
3865
|
}
|
|
3870
|
-
|
|
3871
|
-
|
|
3866
|
+
mt.subscribe((e) => {
|
|
3867
|
+
jt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3872
3868
|
});
|
|
3873
|
-
const
|
|
3874
|
-
if (e &&
|
|
3875
|
-
const { loadingDelay: t } =
|
|
3869
|
+
const Lo = (e) => {
|
|
3870
|
+
if (e && mo(e) && Ft(e)) {
|
|
3871
|
+
const { loadingDelay: t } = ze();
|
|
3876
3872
|
let r;
|
|
3877
|
-
return typeof window < "u" &&
|
|
3878
|
-
() =>
|
|
3873
|
+
return typeof window < "u" && Ae() != null && t ? r = window.setTimeout(
|
|
3874
|
+
() => At.set(!0),
|
|
3879
3875
|
t
|
|
3880
|
-
) :
|
|
3881
|
-
|
|
3876
|
+
) : At.set(!0), ln(e).then(() => {
|
|
3877
|
+
mt.set(e);
|
|
3882
3878
|
}).finally(() => {
|
|
3883
|
-
clearTimeout(r),
|
|
3879
|
+
clearTimeout(r), At.set(!1);
|
|
3884
3880
|
});
|
|
3885
3881
|
}
|
|
3886
|
-
return
|
|
3887
|
-
},
|
|
3888
|
-
set:
|
|
3889
|
-
}),
|
|
3882
|
+
return mt.set(e);
|
|
3883
|
+
}, Te = Ro(Co({}, mt), {
|
|
3884
|
+
set: Lo
|
|
3885
|
+
}), Pt = (e) => {
|
|
3890
3886
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3891
3887
|
return (n) => {
|
|
3892
3888
|
const i = JSON.stringify(n);
|
|
3893
3889
|
return i in t ? t[i] : t[i] = e(n);
|
|
3894
3890
|
};
|
|
3895
3891
|
};
|
|
3896
|
-
var
|
|
3892
|
+
var Ho = Object.defineProperty, bt = Object.getOwnPropertySymbols, un = Object.prototype.hasOwnProperty, dn = Object.prototype.propertyIsEnumerable, gr = (e, t, r) => t in e ? Ho(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Jt = (e, t) => {
|
|
3897
3893
|
for (var r in t || (t = {}))
|
|
3898
3894
|
un.call(t, r) && gr(e, r, t[r]);
|
|
3899
|
-
if (
|
|
3900
|
-
for (var r of
|
|
3895
|
+
if (bt)
|
|
3896
|
+
for (var r of bt(t))
|
|
3901
3897
|
dn.call(t, r) && gr(e, r, t[r]);
|
|
3902
3898
|
return e;
|
|
3903
|
-
},
|
|
3899
|
+
}, qe = (e, t) => {
|
|
3904
3900
|
var r = {};
|
|
3905
3901
|
for (var n in e)
|
|
3906
3902
|
un.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3907
|
-
if (e != null &&
|
|
3908
|
-
for (var n of
|
|
3903
|
+
if (e != null && bt)
|
|
3904
|
+
for (var n of bt(e))
|
|
3909
3905
|
t.indexOf(n) < 0 && dn.call(e, n) && (r[n] = e[n]);
|
|
3910
3906
|
return r;
|
|
3911
3907
|
};
|
|
3912
|
-
const
|
|
3913
|
-
const { formats: r } =
|
|
3908
|
+
const rt = (e, t) => {
|
|
3909
|
+
const { formats: r } = ze();
|
|
3914
3910
|
if (e in r && t in r[e])
|
|
3915
3911
|
return r[e][t];
|
|
3916
3912
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3917
|
-
},
|
|
3913
|
+
}, Ao = Pt(
|
|
3918
3914
|
(e) => {
|
|
3919
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3915
|
+
var t = e, { locale: r, format: n } = t, i = qe(t, ["locale", "format"]);
|
|
3920
3916
|
if (r == null)
|
|
3921
3917
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3922
|
-
return n && (i =
|
|
3918
|
+
return n && (i = rt("number", n)), new Intl.NumberFormat(r, i);
|
|
3923
3919
|
}
|
|
3924
|
-
),
|
|
3920
|
+
), No = Pt(
|
|
3925
3921
|
(e) => {
|
|
3926
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3922
|
+
var t = e, { locale: r, format: n } = t, i = qe(t, ["locale", "format"]);
|
|
3927
3923
|
if (r == null)
|
|
3928
3924
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3929
|
-
return n ? i =
|
|
3925
|
+
return n ? i = rt("date", n) : Object.keys(i).length === 0 && (i = rt("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3930
3926
|
}
|
|
3931
|
-
),
|
|
3927
|
+
), Io = Pt(
|
|
3932
3928
|
(e) => {
|
|
3933
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3929
|
+
var t = e, { locale: r, format: n } = t, i = qe(t, ["locale", "format"]);
|
|
3934
3930
|
if (r == null)
|
|
3935
3931
|
throw new Error(
|
|
3936
3932
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3937
3933
|
);
|
|
3938
|
-
return n ? i =
|
|
3934
|
+
return n ? i = rt("time", n) : Object.keys(i).length === 0 && (i = rt("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3939
3935
|
}
|
|
3940
3936
|
), Mo = (e = {}) => {
|
|
3941
3937
|
var t = e, {
|
|
3942
|
-
locale: r =
|
|
3943
|
-
} = t, n =
|
|
3938
|
+
locale: r = Ae()
|
|
3939
|
+
} = t, n = qe(t, [
|
|
3944
3940
|
"locale"
|
|
3945
3941
|
]);
|
|
3946
|
-
return
|
|
3947
|
-
},
|
|
3942
|
+
return Ao(Jt({ locale: r }, n));
|
|
3943
|
+
}, Bo = (e = {}) => {
|
|
3948
3944
|
var t = e, {
|
|
3949
|
-
locale: r =
|
|
3950
|
-
} = t, n =
|
|
3945
|
+
locale: r = Ae()
|
|
3946
|
+
} = t, n = qe(t, [
|
|
3951
3947
|
"locale"
|
|
3952
3948
|
]);
|
|
3953
|
-
return
|
|
3954
|
-
},
|
|
3949
|
+
return No(Jt({ locale: r }, n));
|
|
3950
|
+
}, Oo = (e = {}) => {
|
|
3955
3951
|
var t = e, {
|
|
3956
|
-
locale: r =
|
|
3957
|
-
} = t, n =
|
|
3952
|
+
locale: r = Ae()
|
|
3953
|
+
} = t, n = qe(t, [
|
|
3958
3954
|
"locale"
|
|
3959
3955
|
]);
|
|
3960
|
-
return
|
|
3961
|
-
},
|
|
3956
|
+
return Io(Jt({ locale: r }, n));
|
|
3957
|
+
}, ko = Pt(
|
|
3962
3958
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3963
|
-
(e, t =
|
|
3964
|
-
ignoreTag:
|
|
3959
|
+
(e, t = Ae()) => new uo(e, t, ze().formats, {
|
|
3960
|
+
ignoreTag: ze().ignoreTag
|
|
3965
3961
|
})
|
|
3966
|
-
),
|
|
3962
|
+
), Uo = (e, t = {}) => {
|
|
3967
3963
|
var r, n, i, o;
|
|
3968
3964
|
let s = t;
|
|
3969
3965
|
typeof e == "object" && (s = e, e = s.id);
|
|
3970
3966
|
const {
|
|
3971
3967
|
values: a,
|
|
3972
|
-
locale: d =
|
|
3968
|
+
locale: d = Ae(),
|
|
3973
3969
|
default: u
|
|
3974
3970
|
} = s;
|
|
3975
3971
|
if (d == null)
|
|
@@ -3978,7 +3974,7 @@ const nt = (e, t) => {
|
|
|
3978
3974
|
);
|
|
3979
3975
|
let l = nn(e, d);
|
|
3980
3976
|
if (!l)
|
|
3981
|
-
l = (o = (i = (n = (r =
|
|
3977
|
+
l = (o = (i = (n = (r = ze()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: d, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
3982
3978
|
else if (typeof l != "string")
|
|
3983
3979
|
return console.warn(
|
|
3984
3980
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3987,7 +3983,7 @@ const nt = (e, t) => {
|
|
|
3987
3983
|
return l;
|
|
3988
3984
|
let c = l;
|
|
3989
3985
|
try {
|
|
3990
|
-
c =
|
|
3986
|
+
c = ko(l, d).format(a);
|
|
3991
3987
|
} catch (f) {
|
|
3992
3988
|
f instanceof Error && console.warn(
|
|
3993
3989
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3995,29 +3991,29 @@ const nt = (e, t) => {
|
|
|
3995
3991
|
);
|
|
3996
3992
|
}
|
|
3997
3993
|
return c;
|
|
3998
|
-
},
|
|
3999
|
-
Ve([
|
|
4000
|
-
Ve([
|
|
4001
|
-
Ve([
|
|
4002
|
-
Ve([
|
|
3994
|
+
}, Do = (e, t) => Oo(t).format(e), Fo = (e, t) => Bo(t).format(e), jo = (e, t) => Mo(t).format(e), zo = (e, t = Ae()) => nn(e, t), Go = Ve([Te, $e], () => Uo);
|
|
3995
|
+
Ve([Te], () => Do);
|
|
3996
|
+
Ve([Te], () => Fo);
|
|
3997
|
+
Ve([Te], () => jo);
|
|
3998
|
+
Ve([Te, $e], () => zo);
|
|
4003
3999
|
function Vo({ withLocale: e, translations: t }) {
|
|
4004
|
-
|
|
4005
|
-
r == null && (
|
|
4000
|
+
Te.subscribe((r) => {
|
|
4001
|
+
r == null && ($e.set(t), Te.set(e));
|
|
4006
4002
|
});
|
|
4007
4003
|
}
|
|
4008
4004
|
function vr(e, t) {
|
|
4009
4005
|
sn(e, t);
|
|
4010
4006
|
}
|
|
4011
|
-
function
|
|
4012
|
-
|
|
4007
|
+
function $o(e) {
|
|
4008
|
+
Te.set(e);
|
|
4013
4009
|
}
|
|
4014
|
-
function
|
|
4010
|
+
function qo(e, t) {
|
|
4015
4011
|
if (e) {
|
|
4016
4012
|
const r = document.createElement("style");
|
|
4017
4013
|
r.innerHTML = t, e.appendChild(r);
|
|
4018
4014
|
}
|
|
4019
4015
|
}
|
|
4020
|
-
function
|
|
4016
|
+
function Xo(e, t) {
|
|
4021
4017
|
if (!e || !t)
|
|
4022
4018
|
return;
|
|
4023
4019
|
const r = new URL(t);
|
|
@@ -4028,7 +4024,7 @@ function Wo(e, t) {
|
|
|
4028
4024
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4029
4025
|
});
|
|
4030
4026
|
}
|
|
4031
|
-
function
|
|
4027
|
+
function Wo(e, t, r) {
|
|
4032
4028
|
if (window.emMessageBus) {
|
|
4033
4029
|
const n = document.createElement("style");
|
|
4034
4030
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4457,7 +4453,7 @@ function _r(e, t) {
|
|
|
4457
4453
|
} catch {
|
|
4458
4454
|
}
|
|
4459
4455
|
}
|
|
4460
|
-
function
|
|
4456
|
+
function Zo(e) {
|
|
4461
4457
|
try {
|
|
4462
4458
|
const t = localStorage.getItem(Qt(e));
|
|
4463
4459
|
return t != null ? Math.max(0, parseInt(t, 10)) : null;
|
|
@@ -4465,13 +4461,13 @@ function Yo(e) {
|
|
|
4465
4461
|
return null;
|
|
4466
4462
|
}
|
|
4467
4463
|
}
|
|
4468
|
-
function
|
|
4464
|
+
function Yo(e) {
|
|
4469
4465
|
try {
|
|
4470
4466
|
localStorage.removeItem(Qt(e));
|
|
4471
4467
|
} catch {
|
|
4472
4468
|
}
|
|
4473
4469
|
}
|
|
4474
|
-
function
|
|
4470
|
+
function Jo(e) {
|
|
4475
4471
|
Hn(e, "svelte-1nua6jd", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.ResetPwdOverlay{position:fixed;inset:0;background:rgba(17, 24, 39, 0.6);display:grid;place-items:center;z-index:100}.ResetPwdCard{position:relative;width:min(92vw, 520px);background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #f9f8f8));color:var(--emw--color-typography-contrast);border-radius:var(--emw--border-radius-large, 16px);padding:20px;box-shadow:0 10px 30px rgba(0, 0, 0, 0.2)}.ResetPwdClose{position:absolute;top:10px;right:10px;width:20px;height:20px;border:none;background:transparent;color:inherit;font-size:20px;line-height:1;cursor:pointer;transition:background 120ms ease-in-out, filter 120ms ease-in-out}.ResetPwdClose:hover{background:rgba(0, 0, 0, 0.04);filter:brightness(1.02)}.ResetPwdClose:active{filter:brightness(0.98)}.ResetPwdTitle{color:var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444));font-size:var(--emw--font-size-large, 20px);font-weight:var(--emw--font-weight-semi-bold, 600);padding:0;margin:0 0 10px 0}.ResetPwdSub{color:var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444));font-weight:var(--emw--font-weight-light, 300);font-size:var(--emw--font-size-medium, 16px);padding:0;margin-bottom:10px}.ResetPwdStepTitle{color:var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444));font-size:var(--emw--font-size-medium, 1rem);font-weight:var(--emw--font-weight-semi-bold, 700);padding:0;margin:0 0 5px 0}.ResetPwdHelp{font-size:var(--emw--font-size-medium, 14px);color:#4b5563;margin-bottom:20px}.ResetPwdRow{display:flex;gap:12px;align-items:flex-end;margin-bottom:8px;flex-wrap:wrap}.ResetPwdField{display:flex;flex-direction:column;min-width:0;position:relative}.ResetPwdFieldPrefix{flex:0 1 100px}.ResetPwdFieldPhone{flex:1 1 160px}vaadin-combo-box{width:100%;border:1px solid var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444));border-radius:var(--emw--border-radius-small, 6px);font-size:var(--emw--font-size-medium, 16px);background:transparent;color:inherit}vaadin-combo-box input{width:100%;border-radius:var(--emw--border-radius-small, 6px);border:1px solid var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444));padding:5px;font-size:var(--emw--font-size-small, 14px);box-sizing:border-box;padding:5px 15px;font-size:var(--emw--font-size-medium, 16px);line-height:18px}vaadin-combo-box-overlay{z-index:101}.ResetPwdFieldCode{flex:1 1 100%}.ResetPwdFieldMeta{flex:1 1 auto;min-width:200px}.ResetPwdMetaRow{display:flex;gap:12px;justify-content:space-between;margin-bottom:4px;flex-wrap:wrap}.ResetPwdMeta{font-size:var(--emw--font-size-xtra-small, 10px);color:#4b5563}.ResetPwdLabel{display:block;font-size:var(--emw--font-size-small, 12px);font-weight:var(--emw--font-weight-light, 300);padding-bottom:5px}.ResetPwdInput{width:100%;background:transparent;color:inherit;border-radius:var(--emw--border-radius-small, 6px);border:1px solid var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444));padding:6px 12px;box-sizing:border-box;font-size:var(--emw--font-size-medium, 14px);line-height:18px}.ResetPwdInput::placeholder{color:#4b5563}.ResetPwdInput:focus{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e));outline:none}.ResetPwdInput[aria-invalid=true]{box-shadow:0 0 0 2px rgba(185, 28, 28, 0.08);border:1px solid var(--emw--color-error, #fecaca);background:var(--emw--color-pale, #fbecf4);color:var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444))}.ResetPwdCodeGroup{display:flex;gap:12px}.ResetPwdCodeInput{width:32px;height:32px;text-align:center;font-size:var(--emw--font-size-medium, 16px);border:1px solid var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444));border-radius:var(--emw--border-radius-medium, 10px);background:transparent;color:inherit}.ResetPwdCodeInput:focus{outline:none;border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e));box-shadow:0 0 0 2px rgba(17, 24, 39, 0.08)}.ResetPwdCodeInput[aria-invalid=true]{box-shadow:0 0 0 2px rgba(185, 28, 28, 0.08);border:1px solid var(--emw--color-error, #fecaca);background:var(--emw--color-pale, #fbecf4);color:var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444))}.ResetPwdErrors{margin-top:8px;margin-bottom:8px}.ResetPwdError{color:var(--emw--color-error, #b91c1c);font-size:var(--emw--font-size-xtra-small, 9px)}.ResetPwdError+.ResetPwdError{margin-top:4px}.ResetPwdHint{color:#92400e;background:#fef3c7;border:1px solid #fde68a;padding:8px 12px;border-radius:var(--emw--border-radius-medium, 10px);font-size:var(--emw--font-size-xtra-small, 9px);margin-top:4px}.ResetPwdButton{width:100%;margin-top:20px;font-family:var(--emw--button-typography, inherit);background:var(--emw--color-primary, #000000);color:var(--emw--button-typography, var(--emw--button-text-color, #ffffff));border:none;border-radius:var(--emw--button-border-radius, 6px);padding:10px;font-size:var(--emw--font-size-small, 14px);cursor:pointer;transition:filter 120ms ease-in-out}.ResetPwdButton:hover{filter:brightness(1.02)}.ResetPwdButton:active{filter:brightness(0.98)}.ResetPwdButton:disabled{opacity:0.6;cursor:not-allowed}.ResetPwdLink{color:var(--emw--color-typography-contrast);cursor:pointer;background:transparent;text-decoration:underline;border:none;padding:8px 0;font-size:var(--emw--font-size-xtra-small, 10px)}.ResetPwdLink[disabled],.ResetPwdLink[aria-disabled=true]{opacity:0.6;cursor:not-allowed;text-decoration:none}@media(min-width: 768px){.ResetPwdFieldPrefix{flex:0 1 140px}.ResetPwdFieldPhone{flex:1 1 200px}.ResetPwdCodeInput{width:48px;height:48px}}@media(prefers-reduced-motion: reduce){.ResetPwdOverlay,.ResetPwdCard{transition:none !important;animation:none !important}}");
|
|
4476
4472
|
}
|
|
4477
4473
|
function Pr(e, t, r) {
|
|
@@ -4485,7 +4481,7 @@ function xr(e) {
|
|
|
4485
4481
|
), l, c, f, g = (
|
|
4486
4482
|
/*$_*/
|
|
4487
4483
|
e[10]("resetSubtitle") + ""
|
|
4488
|
-
), b, y, _, S, x, w, H, T,
|
|
4484
|
+
), b, y, _, S, x, w, H, T, j, C = (
|
|
4489
4485
|
/*step*/
|
|
4490
4486
|
e[2] === "phone" && Er(e)
|
|
4491
4487
|
), L = (
|
|
@@ -4494,20 +4490,20 @@ function xr(e) {
|
|
|
4494
4490
|
);
|
|
4495
4491
|
return {
|
|
4496
4492
|
c() {
|
|
4497
|
-
t = P("div"), r = P("div"), n = P("button"), i =
|
|
4493
|
+
t = P("div"), r = P("div"), n = P("button"), i = O("×"), a = $(), d = P("h2"), l = O(u), c = $(), f = P("p"), b = O(g), y = $(), C && C.c(), _ = $(), L && L.c(), h(n, "class", "ResetPwdClose"), h(n, "type", "button"), h(n, "aria-label", o = /*$_*/
|
|
4498
4494
|
e[10]("close")), h(n, "title", s = /*$_*/
|
|
4499
4495
|
e[10]("close")), h(d, "id", "ResetPwdTitle"), h(d, "class", "ResetPwdTitle"), h(f, "class", "ResetPwdSub"), h(r, "class", "ResetPwdCard"), h(t, "class", "ResetPwdOverlay"), h(t, "role", "dialog"), h(t, "aria-modal", "true"), h(t, "aria-labelledby", "ResetPwdTitle");
|
|
4500
4496
|
},
|
|
4501
|
-
m(
|
|
4502
|
-
te(
|
|
4497
|
+
m(M, Z) {
|
|
4498
|
+
te(M, t, Z), m(t, r), m(r, n), m(n, i), m(r, a), m(r, d), m(d, l), m(r, c), m(r, f), m(f, b), m(r, y), C && C.m(r, null), m(r, _), L && L.m(r, null), H = !0, T || (j = Ee(
|
|
4503
4499
|
n,
|
|
4504
4500
|
"click",
|
|
4505
4501
|
/*closeModal*/
|
|
4506
4502
|
e[25]
|
|
4507
4503
|
), T = !0);
|
|
4508
4504
|
},
|
|
4509
|
-
p(
|
|
4510
|
-
e =
|
|
4505
|
+
p(M, Z) {
|
|
4506
|
+
e = M, (!H || Z[0] & /*$_*/
|
|
4511
4507
|
1024 && o !== (o = /*$_*/
|
|
4512
4508
|
e[10]("close"))) && h(n, "aria-label", o), (!H || Z[0] & /*$_*/
|
|
4513
4509
|
1024 && s !== (s = /*$_*/
|
|
@@ -4519,16 +4515,16 @@ function xr(e) {
|
|
|
4519
4515
|
e[2] === "phone" ? C ? C.p(e, Z) : (C = Er(e), C.c(), C.m(r, _)) : C && (C.d(1), C = null), /*step*/
|
|
4520
4516
|
e[2] === "code" ? L ? L.p(e, Z) : (L = Cr(e), L.c(), L.m(r, null)) : L && (L.d(1), L = null);
|
|
4521
4517
|
},
|
|
4522
|
-
i(
|
|
4523
|
-
H || (
|
|
4524
|
-
H && (x && x.end(1), S =
|
|
4518
|
+
i(M) {
|
|
4519
|
+
H || (M && de(() => {
|
|
4520
|
+
H && (x && x.end(1), S = $n(
|
|
4525
4521
|
r,
|
|
4526
4522
|
ir,
|
|
4527
4523
|
/*cardIn*/
|
|
4528
4524
|
e[23]
|
|
4529
4525
|
), S.start());
|
|
4530
|
-
}),
|
|
4531
|
-
H && (w || (w =
|
|
4526
|
+
}), M && de(() => {
|
|
4527
|
+
H && (w || (w = we(
|
|
4532
4528
|
t,
|
|
4533
4529
|
nr,
|
|
4534
4530
|
/*overlayFade*/
|
|
@@ -4537,13 +4533,13 @@ function xr(e) {
|
|
|
4537
4533
|
)), w.run(1));
|
|
4538
4534
|
}), H = !0);
|
|
4539
4535
|
},
|
|
4540
|
-
o(
|
|
4541
|
-
S && S.invalidate(),
|
|
4536
|
+
o(M) {
|
|
4537
|
+
S && S.invalidate(), M && (x = qn(
|
|
4542
4538
|
r,
|
|
4543
4539
|
ir,
|
|
4544
4540
|
/*cardOut*/
|
|
4545
4541
|
e[24]
|
|
4546
|
-
)),
|
|
4542
|
+
)), M && (w || (w = we(
|
|
4547
4543
|
t,
|
|
4548
4544
|
nr,
|
|
4549
4545
|
/*overlayFade*/
|
|
@@ -4551,8 +4547,8 @@ function xr(e) {
|
|
|
4551
4547
|
!1
|
|
4552
4548
|
)), w.run(0)), H = !1;
|
|
4553
4549
|
},
|
|
4554
|
-
d(
|
|
4555
|
-
|
|
4550
|
+
d(M) {
|
|
4551
|
+
M && Y(t), C && C.d(), L && L.d(), M && x && x.end(), M && w && w.end(), T = !1, j();
|
|
4556
4552
|
}
|
|
4557
4553
|
};
|
|
4558
4554
|
}
|
|
@@ -4566,7 +4562,7 @@ function Er(e) {
|
|
|
4566
4562
|
), l, c, f, g, b, y = (
|
|
4567
4563
|
/*$_*/
|
|
4568
4564
|
e[10]("phoneLabel") + ""
|
|
4569
|
-
), _, S, x, w, H, T,
|
|
4565
|
+
), _, S, x, w, H, T, j, C, L, M = (
|
|
4570
4566
|
/*loading*/
|
|
4571
4567
|
(e[11] ? (
|
|
4572
4568
|
/*$_*/
|
|
@@ -4575,29 +4571,29 @@ function Er(e) {
|
|
|
4575
4571
|
/*$_*/
|
|
4576
4572
|
e[10]("requestCode")
|
|
4577
4573
|
)) + ""
|
|
4578
|
-
), Z, pe,
|
|
4579
|
-
function
|
|
4574
|
+
), Z, pe, _e;
|
|
4575
|
+
function Ce(I, R) {
|
|
4580
4576
|
return (
|
|
4581
4577
|
/*phoneprefixeditable*/
|
|
4582
|
-
I[0] === "true" ?
|
|
4578
|
+
I[0] === "true" ? Ko : Qo
|
|
4583
4579
|
);
|
|
4584
4580
|
}
|
|
4585
|
-
let ce =
|
|
4581
|
+
let ce = Ce(e), G = ce(e), k = (
|
|
4586
4582
|
/*phoneError*/
|
|
4587
4583
|
e[15] && Sr(e)
|
|
4588
|
-
),
|
|
4584
|
+
), D = (
|
|
4589
4585
|
/*phoneInfo*/
|
|
4590
4586
|
e[16] && Tr(e)
|
|
4591
4587
|
);
|
|
4592
4588
|
return {
|
|
4593
4589
|
c() {
|
|
4594
|
-
t = P("section"), r = P("p"), i =
|
|
4590
|
+
t = P("section"), r = P("p"), i = O(n), o = $(), s = P("div"), a = P("div"), d = P("label"), l = O(u), c = $(), G.c(), f = $(), g = P("div"), b = P("label"), _ = O(y), S = $(), x = P("input"), H = $(), T = P("div"), k && k.c(), j = $(), D && D.c(), C = $(), L = P("button"), Z = O(M), h(r, "class", "ResetPwdHelp"), h(d, "class", "ResetPwdLabel"), h(d, "for", "ResetPwdPrefix"), h(a, "class", "ResetPwdField ResetPwdFieldPrefix"), nt(
|
|
4595
4591
|
a,
|
|
4596
4592
|
"ResetPwdFieldFilled",
|
|
4597
4593
|
/*mobilePrefix*/
|
|
4598
4594
|
e[14]
|
|
4599
4595
|
), h(b, "class", "ResetPwdLabel"), h(b, "for", "ResetPwdPhone"), h(x, "id", "ResetPwdPhone"), h(x, "class", "ResetPwdInput ResetPwdInputPhone"), h(x, "type", "tel"), h(x, "autocomplete", "tel-national"), h(x, "aria-invalid", w = /*phoneError*/
|
|
4600
|
-
e[15] ? "true" : "false"), h(g, "class", "ResetPwdField ResetPwdFieldPhone"),
|
|
4596
|
+
e[15] ? "true" : "false"), h(g, "class", "ResetPwdField ResetPwdFieldPhone"), nt(
|
|
4601
4597
|
g,
|
|
4602
4598
|
"ResetPwdFieldFilled",
|
|
4603
4599
|
/*phone*/
|
|
@@ -4606,18 +4602,18 @@ function Er(e) {
|
|
|
4606
4602
|
e[11], h(t, "class", "ResetPwdSection ResetPwdSectionPhone");
|
|
4607
4603
|
},
|
|
4608
4604
|
m(I, R) {
|
|
4609
|
-
te(I, t, R), m(t, r), m(r, i), m(t, o), m(t, s), m(s, a), m(a, d), m(d, l), m(a, c),
|
|
4605
|
+
te(I, t, R), m(t, r), m(r, i), m(t, o), m(t, s), m(s, a), m(a, d), m(d, l), m(a, c), G.m(a, null), m(s, f), m(s, g), m(g, b), m(b, _), m(g, S), m(g, x), ut(
|
|
4610
4606
|
x,
|
|
4611
4607
|
/*phone*/
|
|
4612
4608
|
e[3]
|
|
4613
|
-
), m(t, H), m(t, T),
|
|
4614
|
-
|
|
4609
|
+
), m(t, H), m(t, T), k && k.m(T, null), m(T, j), D && D.m(T, null), m(t, C), m(t, L), m(L, Z), pe || (_e = [
|
|
4610
|
+
Ee(
|
|
4615
4611
|
x,
|
|
4616
4612
|
"input",
|
|
4617
4613
|
/*input_input_handler_1*/
|
|
4618
4614
|
e[49]
|
|
4619
4615
|
),
|
|
4620
|
-
|
|
4616
|
+
Ee(
|
|
4621
4617
|
L,
|
|
4622
4618
|
"click",
|
|
4623
4619
|
/*handleRequestCode*/
|
|
@@ -4630,8 +4626,8 @@ function Er(e) {
|
|
|
4630
4626
|
1024 && n !== (n = /*$_*/
|
|
4631
4627
|
I[10]("enterPhoneHelp") + "") && W(i, n), R[0] & /*$_*/
|
|
4632
4628
|
1024 && u !== (u = /*$_*/
|
|
4633
|
-
I[10]("countryCodeLabel") + "") && W(l, u), ce === (ce =
|
|
4634
|
-
16384 &&
|
|
4629
|
+
I[10]("countryCodeLabel") + "") && W(l, u), ce === (ce = Ce(I)) && G ? G.p(I, R) : (G.d(1), G = ce(I), G && (G.c(), G.m(a, null))), R[0] & /*mobilePrefix*/
|
|
4630
|
+
16384 && nt(
|
|
4635
4631
|
a,
|
|
4636
4632
|
"ResetPwdFieldFilled",
|
|
4637
4633
|
/*mobilePrefix*/
|
|
@@ -4641,42 +4637,42 @@ function Er(e) {
|
|
|
4641
4637
|
I[10]("phoneLabel") + "") && W(_, y), R[0] & /*phoneError*/
|
|
4642
4638
|
32768 && w !== (w = /*phoneError*/
|
|
4643
4639
|
I[15] ? "true" : "false") && h(x, "aria-invalid", w), R[0] & /*phone*/
|
|
4644
|
-
8 &&
|
|
4640
|
+
8 && ut(
|
|
4645
4641
|
x,
|
|
4646
4642
|
/*phone*/
|
|
4647
4643
|
I[3]
|
|
4648
4644
|
), R[0] & /*phone*/
|
|
4649
|
-
8 &&
|
|
4645
|
+
8 && nt(
|
|
4650
4646
|
g,
|
|
4651
4647
|
"ResetPwdFieldFilled",
|
|
4652
4648
|
/*phone*/
|
|
4653
4649
|
I[3]
|
|
4654
4650
|
), /*phoneError*/
|
|
4655
|
-
I[15] ?
|
|
4656
|
-
32768 && ue(
|
|
4657
|
-
|
|
4658
|
-
}),
|
|
4659
|
-
I[16] ?
|
|
4660
|
-
65536 && ue(
|
|
4661
|
-
|
|
4662
|
-
}),
|
|
4663
|
-
3072 &&
|
|
4651
|
+
I[15] ? k ? (k.p(I, R), R[0] & /*phoneError*/
|
|
4652
|
+
32768 && ue(k, 1)) : (k = Sr(I), k.c(), ue(k, 1), k.m(T, j)) : k && (Ke(), Ue(k, 1, 1, () => {
|
|
4653
|
+
k = null;
|
|
4654
|
+
}), et()), /*phoneInfo*/
|
|
4655
|
+
I[16] ? D ? (D.p(I, R), R[0] & /*phoneInfo*/
|
|
4656
|
+
65536 && ue(D, 1)) : (D = Tr(I), D.c(), ue(D, 1), D.m(T, null)) : D && (Ke(), Ue(D, 1, 1, () => {
|
|
4657
|
+
D = null;
|
|
4658
|
+
}), et()), R[0] & /*loading, $_*/
|
|
4659
|
+
3072 && M !== (M = /*loading*/
|
|
4664
4660
|
(I[11] ? (
|
|
4665
4661
|
/*$_*/
|
|
4666
4662
|
I[10]("requesting")
|
|
4667
4663
|
) : (
|
|
4668
4664
|
/*$_*/
|
|
4669
4665
|
I[10]("requestCode")
|
|
4670
|
-
)) + "") && W(Z,
|
|
4666
|
+
)) + "") && W(Z, M), R[0] & /*loading*/
|
|
4671
4667
|
2048 && (L.disabled = /*loading*/
|
|
4672
4668
|
I[11]);
|
|
4673
4669
|
},
|
|
4674
4670
|
d(I) {
|
|
4675
|
-
I && Y(t),
|
|
4671
|
+
I && Y(t), G.d(), k && k.d(), D && D.d(), pe = !1, he(_e);
|
|
4676
4672
|
}
|
|
4677
4673
|
};
|
|
4678
4674
|
}
|
|
4679
|
-
function
|
|
4675
|
+
function Qo(e) {
|
|
4680
4676
|
let t, r, n, i;
|
|
4681
4677
|
return {
|
|
4682
4678
|
c() {
|
|
@@ -4684,11 +4680,11 @@ function Ko(e) {
|
|
|
4684
4680
|
e[0] !== "true", h(t, "autocomplete", "tel-country-code");
|
|
4685
4681
|
},
|
|
4686
4682
|
m(o, s) {
|
|
4687
|
-
te(o, t, s),
|
|
4683
|
+
te(o, t, s), ut(
|
|
4688
4684
|
t,
|
|
4689
4685
|
/*mobilePrefix*/
|
|
4690
4686
|
e[14]
|
|
4691
|
-
), n || (i =
|
|
4687
|
+
), n || (i = Ee(
|
|
4692
4688
|
t,
|
|
4693
4689
|
"input",
|
|
4694
4690
|
/*input_input_handler*/
|
|
@@ -4700,7 +4696,7 @@ function Ko(e) {
|
|
|
4700
4696
|
1 && r !== (r = /*phoneprefixeditable*/
|
|
4701
4697
|
o[0] !== "true") && (t.readOnly = r), s[0] & /*mobilePrefix*/
|
|
4702
4698
|
16384 && t.value !== /*mobilePrefix*/
|
|
4703
|
-
o[14] &&
|
|
4699
|
+
o[14] && ut(
|
|
4704
4700
|
t,
|
|
4705
4701
|
/*mobilePrefix*/
|
|
4706
4702
|
o[14]
|
|
@@ -4711,22 +4707,22 @@ function Ko(e) {
|
|
|
4711
4707
|
}
|
|
4712
4708
|
};
|
|
4713
4709
|
}
|
|
4714
|
-
function
|
|
4710
|
+
function Ko(e) {
|
|
4715
4711
|
let t, r;
|
|
4716
4712
|
return {
|
|
4717
4713
|
c() {
|
|
4718
|
-
t = P("vaadin-combo-box"),
|
|
4714
|
+
t = P("vaadin-combo-box"), Le(
|
|
4719
4715
|
t,
|
|
4720
4716
|
"items",
|
|
4721
4717
|
/*phoneCodes*/
|
|
4722
4718
|
e[13]
|
|
4723
|
-
),
|
|
4719
|
+
), Le(
|
|
4724
4720
|
t,
|
|
4725
4721
|
"value",
|
|
4726
4722
|
/*mobilePrefix*/
|
|
4727
4723
|
e[14]
|
|
4728
|
-
),
|
|
4729
|
-
e[10]("invalidPrefix")),
|
|
4724
|
+
), Le(t, "errorMessage", r = /*$_*/
|
|
4725
|
+
e[10]("invalidPrefix")), Le(
|
|
4730
4726
|
t,
|
|
4731
4727
|
"onChange",
|
|
4732
4728
|
/*handlePrefixDropdown*/
|
|
@@ -4738,20 +4734,20 @@ function es(e) {
|
|
|
4738
4734
|
},
|
|
4739
4735
|
p(n, i) {
|
|
4740
4736
|
i[0] & /*phoneCodes*/
|
|
4741
|
-
8192 &&
|
|
4737
|
+
8192 && Le(
|
|
4742
4738
|
t,
|
|
4743
4739
|
"items",
|
|
4744
4740
|
/*phoneCodes*/
|
|
4745
4741
|
n[13]
|
|
4746
4742
|
), i[0] & /*mobilePrefix*/
|
|
4747
|
-
16384 &&
|
|
4743
|
+
16384 && Le(
|
|
4748
4744
|
t,
|
|
4749
4745
|
"value",
|
|
4750
4746
|
/*mobilePrefix*/
|
|
4751
4747
|
n[14]
|
|
4752
4748
|
), i[0] & /*$_*/
|
|
4753
4749
|
1024 && r !== (r = /*$_*/
|
|
4754
|
-
n[10]("invalidPrefix")) &&
|
|
4750
|
+
n[10]("invalidPrefix")) && Le(t, "errorMessage", r);
|
|
4755
4751
|
},
|
|
4756
4752
|
d(n) {
|
|
4757
4753
|
n && Y(t);
|
|
@@ -4762,7 +4758,7 @@ function Sr(e) {
|
|
|
4762
4758
|
let t, r, n, i;
|
|
4763
4759
|
return {
|
|
4764
4760
|
c() {
|
|
4765
|
-
t = P("div"), r =
|
|
4761
|
+
t = P("div"), r = O(
|
|
4766
4762
|
/*phoneError*/
|
|
4767
4763
|
e[15]
|
|
4768
4764
|
), h(t, "class", "ResetPwdError");
|
|
@@ -4780,11 +4776,11 @@ function Sr(e) {
|
|
|
4780
4776
|
},
|
|
4781
4777
|
i(o) {
|
|
4782
4778
|
i || (o && de(() => {
|
|
4783
|
-
i && (n || (n =
|
|
4779
|
+
i && (n || (n = we(t, Se, { amount: 5 }, !0)), n.run(1));
|
|
4784
4780
|
}), i = !0);
|
|
4785
4781
|
},
|
|
4786
4782
|
o(o) {
|
|
4787
|
-
o && (n || (n =
|
|
4783
|
+
o && (n || (n = we(t, Se, { amount: 5 }, !1)), n.run(0)), i = !1;
|
|
4788
4784
|
},
|
|
4789
4785
|
d(o) {
|
|
4790
4786
|
o && Y(t), o && n && n.end();
|
|
@@ -4795,7 +4791,7 @@ function Tr(e) {
|
|
|
4795
4791
|
let t, r, n, i;
|
|
4796
4792
|
return {
|
|
4797
4793
|
c() {
|
|
4798
|
-
t = P("div"), r =
|
|
4794
|
+
t = P("div"), r = O(
|
|
4799
4795
|
/*phoneInfo*/
|
|
4800
4796
|
e[16]
|
|
4801
4797
|
), h(t, "class", "ResetPwdHint");
|
|
@@ -4813,11 +4809,11 @@ function Tr(e) {
|
|
|
4813
4809
|
},
|
|
4814
4810
|
i(o) {
|
|
4815
4811
|
i || (o && de(() => {
|
|
4816
|
-
i && (n || (n =
|
|
4812
|
+
i && (n || (n = we(t, Se, { amount: 5 }, !0)), n.run(1));
|
|
4817
4813
|
}), i = !0);
|
|
4818
4814
|
},
|
|
4819
4815
|
o(o) {
|
|
4820
|
-
o && (n || (n =
|
|
4816
|
+
o && (n || (n = we(t, Se, { amount: 5 }, !1)), n.run(0)), i = !1;
|
|
4821
4817
|
},
|
|
4822
4818
|
d(o) {
|
|
4823
4819
|
o && Y(t), o && n && n.end();
|
|
@@ -4837,10 +4833,10 @@ function Cr(e) {
|
|
|
4837
4833
|
), d, u, l, c, f, g = (
|
|
4838
4834
|
/*$_*/
|
|
4839
4835
|
e[10]("verificationCodeLabel") + ""
|
|
4840
|
-
), b, y, _, S, x, w, H, T,
|
|
4836
|
+
), b, y, _, S, x, w, H, T, j, C, L, M, Z, pe = (
|
|
4841
4837
|
/*$_*/
|
|
4842
4838
|
e[10]("attemptsLeft") + ""
|
|
4843
|
-
),
|
|
4839
|
+
), _e, Ce, ce, G, k, D, I, R, ne, q, fe, me, Ne = (
|
|
4844
4840
|
/*loading*/
|
|
4845
4841
|
(e[11] ? (
|
|
4846
4842
|
/*$_*/
|
|
@@ -4849,7 +4845,7 @@ function Cr(e) {
|
|
|
4849
4845
|
/*$_*/
|
|
4850
4846
|
e[10]("submitCode")
|
|
4851
4847
|
)) + ""
|
|
4852
|
-
), be,
|
|
4848
|
+
), be, Pe, ge, Xe, le = rr(Array(
|
|
4853
4849
|
/*codeLength*/
|
|
4854
4850
|
e[26]
|
|
4855
4851
|
)), re = [];
|
|
@@ -4858,7 +4854,7 @@ function Cr(e) {
|
|
|
4858
4854
|
let J = (
|
|
4859
4855
|
/*codeError*/
|
|
4860
4856
|
e[17] && Lr(e)
|
|
4861
|
-
),
|
|
4857
|
+
), U = (
|
|
4862
4858
|
/*codeExpiredHint*/
|
|
4863
4859
|
e[18] && /*remainingSeconds*/
|
|
4864
4860
|
e[9] === 0 && Hr(e)
|
|
@@ -4866,25 +4862,25 @@ function Cr(e) {
|
|
|
4866
4862
|
/*expiresAt*/
|
|
4867
4863
|
e[5] && Ar(e)
|
|
4868
4864
|
);
|
|
4869
|
-
function Q(v,
|
|
4865
|
+
function Q(v, V) {
|
|
4870
4866
|
return (
|
|
4871
4867
|
/*canResendAt*/
|
|
4872
4868
|
v[6] && /*now*/
|
|
4873
4869
|
v[7] < /*canResendAt*/
|
|
4874
|
-
v[6] ?
|
|
4870
|
+
v[6] ? ts : es
|
|
4875
4871
|
);
|
|
4876
4872
|
}
|
|
4877
|
-
let
|
|
4873
|
+
let Re = Q(e), se = Re(e);
|
|
4878
4874
|
return {
|
|
4879
4875
|
c() {
|
|
4880
|
-
t = P("section"), r = P("h3"), i =
|
|
4876
|
+
t = P("section"), r = P("h3"), i = O(n), o = $(), s = P("p"), d = O(a), u = $(), l = P("div"), c = P("div"), f = P("label"), b = O(g), y = $(), _ = P("div");
|
|
4881
4877
|
for (let v = 0; v < re.length; v += 1)
|
|
4882
4878
|
re[v].c();
|
|
4883
|
-
x =
|
|
4879
|
+
x = $(), w = P("div"), J && J.c(), H = $(), U && U.c(), T = $(), j = P("div"), C = P("div"), L = P("div"), M = P("span"), Z = P("strong"), _e = O(pe), Ce = O(":"), ce = $(), G = P("span"), k = O(
|
|
4884
4880
|
/*attemptsRemaining*/
|
|
4885
4881
|
e[4]
|
|
4886
|
-
),
|
|
4887
|
-
e[10]("verificationCodeLabel")), h(c, "class", "ResetPwdField ResetPwdFieldCode"), h(l, "class", "ResetPwdRow"), h(l, "aria-describedby", "ResetPwdRowErrorsCode"), h(w, "id", "ResetPwdRowErrorsCode"), h(w, "class", "ResetPwdErrors"), h(w, "role", "alert"), h(w, "aria-live", "assertive"), h(
|
|
4882
|
+
), D = $(), X && X.c(), I = $(), R = P("button"), se.c(), fe = $(), me = P("button"), be = O(Ne), h(r, "id", "ResetPwdCodeTitle"), h(r, "class", "ResetPwdStepTitle"), h(s, "class", "ResetPwdHelp"), h(f, "class", "ResetPwdLabel"), h(f, "for", "ResetPwdCode"), h(_, "class", "ResetPwdCodeGroup"), h(_, "role", "group"), h(_, "aria-label", S = /*$_*/
|
|
4883
|
+
e[10]("verificationCodeLabel")), h(c, "class", "ResetPwdField ResetPwdFieldCode"), h(l, "class", "ResetPwdRow"), h(l, "aria-describedby", "ResetPwdRowErrorsCode"), h(w, "id", "ResetPwdRowErrorsCode"), h(w, "class", "ResetPwdErrors"), h(w, "role", "alert"), h(w, "aria-live", "assertive"), h(G, "class", "ResetPwdAttempts"), h(M, "class", "ResetPwdMeta"), h(L, "class", "ResetPwdMetaRow"), h(R, "class", "ResetPwdLink"), h(R, "type", "button"), R.disabled = ne = /*loading*/
|
|
4888
4884
|
e[11] || /*canResendAt*/
|
|
4889
4885
|
e[6] && /*now*/
|
|
4890
4886
|
e[7] < /*canResendAt*/
|
|
@@ -4892,22 +4888,22 @@ function Cr(e) {
|
|
|
4892
4888
|
e[11] || /*canResendAt*/
|
|
4893
4889
|
e[6] && /*now*/
|
|
4894
4890
|
e[7] < /*canResendAt*/
|
|
4895
|
-
e[6]), h(C, "class", "ResetPwdField ResetPwdFieldMeta"), h(
|
|
4891
|
+
e[6]), h(C, "class", "ResetPwdField ResetPwdFieldMeta"), h(j, "class", "ResetPwdRow"), h(j, "aria-describedby", "ResetPwdRowErrorsCode"), h(me, "class", "ResetPwdButton"), h(me, "type", "button"), me.disabled = Pe = /*loading*/
|
|
4896
4892
|
e[11] || /*disableSubmitCode*/
|
|
4897
4893
|
e[20], h(t, "class", "ResetPwdSection ResetPwdSectionCode"), h(t, "aria-labelledby", "ResetPwdCodeTitle");
|
|
4898
4894
|
},
|
|
4899
|
-
m(v,
|
|
4900
|
-
te(v, t,
|
|
4895
|
+
m(v, V) {
|
|
4896
|
+
te(v, t, V), m(t, r), m(r, i), m(t, o), m(t, s), m(s, d), m(t, u), m(t, l), m(l, c), m(c, f), m(f, b), m(c, y), m(c, _);
|
|
4901
4897
|
for (let K = 0; K < re.length; K += 1)
|
|
4902
4898
|
re[K] && re[K].m(_, null);
|
|
4903
|
-
m(t, x), m(t, w), J && J.m(w, null), m(w, H),
|
|
4904
|
-
|
|
4899
|
+
m(t, x), m(t, w), J && J.m(w, null), m(w, H), U && U.m(w, null), m(t, T), m(t, j), m(j, C), m(C, L), m(L, M), m(M, Z), m(Z, _e), m(Z, Ce), m(M, ce), m(M, G), m(G, k), m(L, D), X && X.m(L, null), m(C, I), m(C, R), se.m(R, null), m(t, fe), m(t, me), m(me, be), ge || (Xe = [
|
|
4900
|
+
Ee(
|
|
4905
4901
|
R,
|
|
4906
4902
|
"click",
|
|
4907
4903
|
/*handleResend*/
|
|
4908
4904
|
e[32]
|
|
4909
4905
|
),
|
|
4910
|
-
|
|
4906
|
+
Ee(
|
|
4911
4907
|
me,
|
|
4912
4908
|
"click",
|
|
4913
4909
|
/*handleVerifyCode*/
|
|
@@ -4915,17 +4911,17 @@ function Cr(e) {
|
|
|
4915
4911
|
)
|
|
4916
4912
|
], ge = !0);
|
|
4917
4913
|
},
|
|
4918
|
-
p(v,
|
|
4919
|
-
if (
|
|
4914
|
+
p(v, V) {
|
|
4915
|
+
if (V[0] & /*$_*/
|
|
4920
4916
|
1024 && n !== (n = /*$_*/
|
|
4921
|
-
v[10]("enterCodeTitle") + "") && W(i, n),
|
|
4917
|
+
v[10]("enterCodeTitle") + "") && W(i, n), V[0] & /*$_*/
|
|
4922
4918
|
1024 && a !== (a = /*$_*/
|
|
4923
4919
|
v[10]("codeSubtitle").replace("{n}", String(
|
|
4924
4920
|
/*codeLength*/
|
|
4925
4921
|
v[26]
|
|
4926
|
-
)) + "") && W(d, a),
|
|
4922
|
+
)) + "") && W(d, a), V[0] & /*$_*/
|
|
4927
4923
|
1024 && g !== (g = /*$_*/
|
|
4928
|
-
v[10]("verificationCodeLabel") + "") && W(b, g),
|
|
4924
|
+
v[10]("verificationCodeLabel") + "") && W(b, g), V[0] & /*codeDigits, codeError, codeInputs, handleCodeInput, handleCodeKeyDown*/
|
|
4929
4925
|
403308800) {
|
|
4930
4926
|
le = rr(Array(
|
|
4931
4927
|
/*codeLength*/
|
|
@@ -4933,57 +4929,57 @@ function Cr(e) {
|
|
|
4933
4929
|
));
|
|
4934
4930
|
let K;
|
|
4935
4931
|
for (K = 0; K < le.length; K += 1) {
|
|
4936
|
-
const
|
|
4937
|
-
re[K] ? re[K].p(
|
|
4932
|
+
const We = Pr(v, le, K);
|
|
4933
|
+
re[K] ? re[K].p(We, V) : (re[K] = Rr(We), re[K].c(), re[K].m(_, null));
|
|
4938
4934
|
}
|
|
4939
4935
|
for (; K < re.length; K += 1)
|
|
4940
4936
|
re[K].d(1);
|
|
4941
4937
|
re.length = le.length;
|
|
4942
4938
|
}
|
|
4943
|
-
|
|
4939
|
+
V[0] & /*$_*/
|
|
4944
4940
|
1024 && S !== (S = /*$_*/
|
|
4945
4941
|
v[10]("verificationCodeLabel")) && h(_, "aria-label", S), /*codeError*/
|
|
4946
|
-
v[17] ? J ? (J.p(v,
|
|
4947
|
-
131072 && ue(J, 1)) : (J = Lr(v), J.c(), ue(J, 1), J.m(w, H)) : J && (
|
|
4942
|
+
v[17] ? J ? (J.p(v, V), V[0] & /*codeError*/
|
|
4943
|
+
131072 && ue(J, 1)) : (J = Lr(v), J.c(), ue(J, 1), J.m(w, H)) : J && (Ke(), Ue(J, 1, 1, () => {
|
|
4948
4944
|
J = null;
|
|
4949
|
-
}),
|
|
4945
|
+
}), et()), /*codeExpiredHint*/
|
|
4950
4946
|
v[18] && /*remainingSeconds*/
|
|
4951
|
-
v[9] === 0 ?
|
|
4952
|
-
262656 && ue(
|
|
4953
|
-
|
|
4954
|
-
}),
|
|
4947
|
+
v[9] === 0 ? U ? (U.p(v, V), V[0] & /*codeExpiredHint, remainingSeconds*/
|
|
4948
|
+
262656 && ue(U, 1)) : (U = Hr(v), U.c(), ue(U, 1), U.m(w, null)) : U && (Ke(), Ue(U, 1, 1, () => {
|
|
4949
|
+
U = null;
|
|
4950
|
+
}), et()), V[0] & /*$_*/
|
|
4955
4951
|
1024 && pe !== (pe = /*$_*/
|
|
4956
|
-
v[10]("attemptsLeft") + "") && W(
|
|
4952
|
+
v[10]("attemptsLeft") + "") && W(_e, pe), V[0] & /*attemptsRemaining*/
|
|
4957
4953
|
16 && W(
|
|
4958
|
-
|
|
4954
|
+
k,
|
|
4959
4955
|
/*attemptsRemaining*/
|
|
4960
4956
|
v[4]
|
|
4961
4957
|
), /*expiresAt*/
|
|
4962
|
-
v[5] ? X ? X.p(v,
|
|
4958
|
+
v[5] ? X ? X.p(v, V) : (X = Ar(v), X.c(), X.m(L, null)) : X && (X.d(1), X = null), Re === (Re = Q(v)) && se ? se.p(v, V) : (se.d(1), se = Re(v), se && (se.c(), se.m(R, null))), V[0] & /*loading, canResendAt, now*/
|
|
4963
4959
|
2240 && ne !== (ne = /*loading*/
|
|
4964
4960
|
v[11] || /*canResendAt*/
|
|
4965
4961
|
v[6] && /*now*/
|
|
4966
4962
|
v[7] < /*canResendAt*/
|
|
4967
|
-
v[6]) && (R.disabled = ne),
|
|
4963
|
+
v[6]) && (R.disabled = ne), V[0] & /*loading, canResendAt, now*/
|
|
4968
4964
|
2240 && q !== (q = /*loading*/
|
|
4969
4965
|
v[11] || /*canResendAt*/
|
|
4970
4966
|
v[6] && /*now*/
|
|
4971
4967
|
v[7] < /*canResendAt*/
|
|
4972
|
-
v[6]) && h(R, "aria-disabled", q),
|
|
4973
|
-
3072 &&
|
|
4968
|
+
v[6]) && h(R, "aria-disabled", q), V[0] & /*loading, $_*/
|
|
4969
|
+
3072 && Ne !== (Ne = /*loading*/
|
|
4974
4970
|
(v[11] ? (
|
|
4975
4971
|
/*$_*/
|
|
4976
4972
|
v[10]("verifying")
|
|
4977
4973
|
) : (
|
|
4978
4974
|
/*$_*/
|
|
4979
4975
|
v[10]("submitCode")
|
|
4980
|
-
)) + "") && W(be,
|
|
4981
|
-
1050624 &&
|
|
4976
|
+
)) + "") && W(be, Ne), V[0] & /*loading, disableSubmitCode*/
|
|
4977
|
+
1050624 && Pe !== (Pe = /*loading*/
|
|
4982
4978
|
v[11] || /*disableSubmitCode*/
|
|
4983
|
-
v[20]) && (me.disabled =
|
|
4979
|
+
v[20]) && (me.disabled = Pe);
|
|
4984
4980
|
},
|
|
4985
4981
|
d(v) {
|
|
4986
|
-
v && Y(t), Nn(re, v), J && J.d(),
|
|
4982
|
+
v && Y(t), Nn(re, v), J && J.d(), U && U.d(), X && X.d(), se.d(), ge = !1, he(Xe);
|
|
4987
4983
|
}
|
|
4988
4984
|
};
|
|
4989
4985
|
}
|
|
@@ -5030,8 +5026,8 @@ function Rr(e) {
|
|
|
5030
5026
|
},
|
|
5031
5027
|
m(c, f) {
|
|
5032
5028
|
te(c, t, f), a(), o || (s = [
|
|
5033
|
-
|
|
5034
|
-
|
|
5029
|
+
Ee(t, "input", u),
|
|
5030
|
+
Ee(t, "keydown", l)
|
|
5035
5031
|
], o = !0);
|
|
5036
5032
|
},
|
|
5037
5033
|
p(c, f) {
|
|
@@ -5055,7 +5051,7 @@ function Lr(e) {
|
|
|
5055
5051
|
let t, r, n, i;
|
|
5056
5052
|
return {
|
|
5057
5053
|
c() {
|
|
5058
|
-
t = P("div"), r =
|
|
5054
|
+
t = P("div"), r = O(
|
|
5059
5055
|
/*codeError*/
|
|
5060
5056
|
e[17]
|
|
5061
5057
|
), h(t, "class", "ResetPwdError");
|
|
@@ -5073,11 +5069,11 @@ function Lr(e) {
|
|
|
5073
5069
|
},
|
|
5074
5070
|
i(o) {
|
|
5075
5071
|
i || (o && de(() => {
|
|
5076
|
-
i && (n || (n =
|
|
5072
|
+
i && (n || (n = we(t, Se, { amount: 5 }, !0)), n.run(1));
|
|
5077
5073
|
}), i = !0);
|
|
5078
5074
|
},
|
|
5079
5075
|
o(o) {
|
|
5080
|
-
o && (n || (n =
|
|
5076
|
+
o && (n || (n = we(t, Se, { amount: 5 }, !1)), n.run(0)), i = !1;
|
|
5081
5077
|
},
|
|
5082
5078
|
d(o) {
|
|
5083
5079
|
o && Y(t), o && n && n.end();
|
|
@@ -5088,7 +5084,7 @@ function Hr(e) {
|
|
|
5088
5084
|
let t, r, n, i;
|
|
5089
5085
|
return {
|
|
5090
5086
|
c() {
|
|
5091
|
-
t = P("div"), r =
|
|
5087
|
+
t = P("div"), r = O(
|
|
5092
5088
|
/*codeExpiredHint*/
|
|
5093
5089
|
e[18]
|
|
5094
5090
|
), h(t, "class", "ResetPwdHint");
|
|
@@ -5106,11 +5102,11 @@ function Hr(e) {
|
|
|
5106
5102
|
},
|
|
5107
5103
|
i(o) {
|
|
5108
5104
|
i || (o && de(() => {
|
|
5109
|
-
i && (n || (n =
|
|
5105
|
+
i && (n || (n = we(t, Se, { amount: 5 }, !0)), n.run(1));
|
|
5110
5106
|
}), i = !0);
|
|
5111
5107
|
},
|
|
5112
5108
|
o(o) {
|
|
5113
|
-
o && (n || (n =
|
|
5109
|
+
o && (n || (n = we(t, Se, { amount: 5 }, !1)), n.run(0)), i = !1;
|
|
5114
5110
|
},
|
|
5115
5111
|
d(o) {
|
|
5116
5112
|
o && Y(t), o && n && n.end();
|
|
@@ -5124,10 +5120,10 @@ function Ar(e) {
|
|
|
5124
5120
|
), i, o, s, a, d, u;
|
|
5125
5121
|
return {
|
|
5126
5122
|
c() {
|
|
5127
|
-
t = P("span"), r = P("strong"), i =
|
|
5123
|
+
t = P("span"), r = P("strong"), i = O(n), o = O(":"), s = $(), a = P("span"), d = O(
|
|
5128
5124
|
/*remainingSeconds*/
|
|
5129
5125
|
e[9]
|
|
5130
|
-
), u =
|
|
5126
|
+
), u = O("s"), h(a, "class", "ResetPwdExpires"), h(t, "class", "ResetPwdMeta");
|
|
5131
5127
|
},
|
|
5132
5128
|
m(l, c) {
|
|
5133
5129
|
te(l, t, c), m(t, r), m(r, i), m(r, o), m(t, s), m(t, a), m(a, d), m(a, u);
|
|
@@ -5147,14 +5143,14 @@ function Ar(e) {
|
|
|
5147
5143
|
}
|
|
5148
5144
|
};
|
|
5149
5145
|
}
|
|
5150
|
-
function
|
|
5146
|
+
function es(e) {
|
|
5151
5147
|
let t = (
|
|
5152
5148
|
/*$_*/
|
|
5153
5149
|
e[10]("resendCode") + ""
|
|
5154
5150
|
), r;
|
|
5155
5151
|
return {
|
|
5156
5152
|
c() {
|
|
5157
|
-
r =
|
|
5153
|
+
r = O(t);
|
|
5158
5154
|
},
|
|
5159
5155
|
m(n, i) {
|
|
5160
5156
|
te(n, r, i);
|
|
@@ -5169,17 +5165,17 @@ function ts(e) {
|
|
|
5169
5165
|
}
|
|
5170
5166
|
};
|
|
5171
5167
|
}
|
|
5172
|
-
function
|
|
5168
|
+
function ts(e) {
|
|
5173
5169
|
let t = (
|
|
5174
5170
|
/*$_*/
|
|
5175
5171
|
e[10]("resendCode") + ""
|
|
5176
5172
|
), r, n, i, o, s, a;
|
|
5177
5173
|
return {
|
|
5178
5174
|
c() {
|
|
5179
|
-
r =
|
|
5175
|
+
r = O(t), n = O(" ("), i = P("span"), o = O(
|
|
5180
5176
|
/*resendSeconds*/
|
|
5181
5177
|
e[21]
|
|
5182
|
-
), s =
|
|
5178
|
+
), s = O("s"), a = O(")"), h(i, "class", "ResetPwdResend");
|
|
5183
5179
|
},
|
|
5184
5180
|
m(d, u) {
|
|
5185
5181
|
te(d, r, u), te(d, n, u), te(d, i, u), m(i, o), m(i, s), te(d, a, u);
|
|
@@ -5199,7 +5195,7 @@ function rs(e) {
|
|
|
5199
5195
|
}
|
|
5200
5196
|
};
|
|
5201
5197
|
}
|
|
5202
|
-
function
|
|
5198
|
+
function rs(e) {
|
|
5203
5199
|
let t, r = (
|
|
5204
5200
|
/*isModalOpen*/
|
|
5205
5201
|
e[12] && xr(e)
|
|
@@ -5214,22 +5210,22 @@ function ns(e) {
|
|
|
5214
5210
|
p(n, i) {
|
|
5215
5211
|
/*isModalOpen*/
|
|
5216
5212
|
n[12] ? r ? (r.p(n, i), i[0] & /*isModalOpen*/
|
|
5217
|
-
4096 && ue(r, 1)) : (r = xr(n), r.c(), ue(r, 1), r.m(t, null)) : r && (
|
|
5213
|
+
4096 && ue(r, 1)) : (r = xr(n), r.c(), ue(r, 1), r.m(t, null)) : r && (Ke(), Ue(r, 1, 1, () => {
|
|
5218
5214
|
r = null;
|
|
5219
|
-
}),
|
|
5215
|
+
}), et());
|
|
5220
5216
|
},
|
|
5221
5217
|
i(n) {
|
|
5222
5218
|
ue(r);
|
|
5223
5219
|
},
|
|
5224
5220
|
o(n) {
|
|
5225
|
-
|
|
5221
|
+
Ue(r);
|
|
5226
5222
|
},
|
|
5227
5223
|
d(n) {
|
|
5228
5224
|
n && Y(t), r && r.d(), e[53](null);
|
|
5229
5225
|
}
|
|
5230
5226
|
};
|
|
5231
5227
|
}
|
|
5232
|
-
function
|
|
5228
|
+
function ns(e) {
|
|
5233
5229
|
try {
|
|
5234
5230
|
return JSON.parse(e);
|
|
5235
5231
|
} catch {
|
|
@@ -5245,20 +5241,20 @@ function Nr(e, t = "error") {
|
|
|
5245
5241
|
window.location.href
|
|
5246
5242
|
);
|
|
5247
5243
|
}
|
|
5248
|
-
function
|
|
5244
|
+
function is(e, t, r) {
|
|
5249
5245
|
let n, i, o, s, a, d, u, l;
|
|
5250
|
-
Rn(e,
|
|
5251
|
-
let { clientstyling: c = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: g = "" } = t, { mbsource: b } = t, { phoneregex: y = "" } = t, { phoneprefixeditable: _ = "true" } = t, { smscodelength: S = "6" } = t, { smscodemaxattempts: x = "5" } = t, { smscodettl: w = "5" } = t, { resenddelay: H = "1" } = t, { endpoint: T = "" } = t, { lang:
|
|
5252
|
-
const pe = { duration: 140, easing:
|
|
5246
|
+
Rn(e, Go, (p) => r(10, l = p));
|
|
5247
|
+
let { clientstyling: c = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: g = "" } = t, { mbsource: b } = t, { phoneregex: y = "" } = t, { phoneprefixeditable: _ = "true" } = t, { smscodelength: S = "6" } = t, { smscodemaxattempts: x = "5" } = t, { smscodettl: w = "5" } = t, { resenddelay: H = "1" } = t, { endpoint: T = "" } = t, { lang: j = "en" } = t, C, L = "phone", M = !1, Z = !0;
|
|
5248
|
+
const pe = { duration: 140, easing: St }, _e = {
|
|
5253
5249
|
duration: 220,
|
|
5254
5250
|
start: 0.96,
|
|
5255
|
-
easing:
|
|
5256
|
-
},
|
|
5251
|
+
easing: St
|
|
5252
|
+
}, Ce = {
|
|
5257
5253
|
duration: 140,
|
|
5258
5254
|
start: 1,
|
|
5259
|
-
easing:
|
|
5255
|
+
easing: St
|
|
5260
5256
|
};
|
|
5261
|
-
let ce = [],
|
|
5257
|
+
let ce = [], G = "", k = "", D = "", I = "", R = null, ne = "", q = "", fe = /^[\d\.]+$/.test(x) ? Number(x) : 5, me = Number(/^[\d\.]+$/.test(w) ? w : 5) * 60 * 1e3, Ne = Number(/^[\d\.]+$/.test(H) ? H : 1) * 60 * 1e3, be = null, Pe = "", ge = null, Xe = null, le = Date.now();
|
|
5262
5258
|
setInterval(
|
|
5263
5259
|
() => {
|
|
5264
5260
|
r(7, le = Date.now());
|
|
@@ -5281,13 +5277,13 @@ function os(e, t, r) {
|
|
|
5281
5277
|
function J(p) {
|
|
5282
5278
|
return y ? (typeof y == "string" ? new RegExp(y) : y).test(p.trim()) : !1;
|
|
5283
5279
|
}
|
|
5284
|
-
let
|
|
5285
|
-
function
|
|
5286
|
-
const
|
|
5287
|
-
if (
|
|
5288
|
-
r(8, Q[E] =
|
|
5289
|
-
else if (
|
|
5290
|
-
const ve =
|
|
5280
|
+
let U = Number(S), X = [], Q = Array(Number(U)).fill("");
|
|
5281
|
+
function Re(p, E) {
|
|
5282
|
+
const F = p.target.value.replace(/\D/g, "");
|
|
5283
|
+
if (F.length === 1)
|
|
5284
|
+
r(8, Q[E] = F, Q), v(E);
|
|
5285
|
+
else if (F.length > 1) {
|
|
5286
|
+
const ve = F.split("").slice(0, U - E);
|
|
5291
5287
|
ve.forEach((Sn, Tn) => {
|
|
5292
5288
|
r(8, Q[E + Tn] = Sn, Q);
|
|
5293
5289
|
}), K(E + ve.length - 1);
|
|
@@ -5295,81 +5291,81 @@ function os(e, t, r) {
|
|
|
5295
5291
|
ne = Q.join("");
|
|
5296
5292
|
}
|
|
5297
5293
|
function se(p, E) {
|
|
5298
|
-
p.key === "Backspace" ? Q[E] ? r(8, Q[E] = "", Q) : E > 0 && (
|
|
5294
|
+
p.key === "Backspace" ? Q[E] ? r(8, Q[E] = "", Q) : E > 0 && (V(E), r(8, Q[E - 1] = "", Q)) : !/\d/.test(p.key) && p.key !== "Tab" && p.key.length === 1 && p.preventDefault();
|
|
5299
5295
|
}
|
|
5300
5296
|
function v(p) {
|
|
5301
|
-
p <
|
|
5297
|
+
p < U - 1 && X[p + 1]?.focus();
|
|
5302
5298
|
}
|
|
5303
|
-
function
|
|
5299
|
+
function V(p) {
|
|
5304
5300
|
p > 0 && X[p - 1]?.focus();
|
|
5305
5301
|
}
|
|
5306
5302
|
function K(p) {
|
|
5307
|
-
p >= 0 && p <
|
|
5303
|
+
p >= 0 && p < U && X[p]?.focus();
|
|
5308
5304
|
}
|
|
5309
|
-
async function
|
|
5305
|
+
async function We(p, E) {
|
|
5310
5306
|
const ee = await fetch(p, {
|
|
5311
5307
|
method: "POST",
|
|
5312
5308
|
headers: { "Content-Type": "application/json" },
|
|
5313
5309
|
body: void 0
|
|
5314
|
-
}),
|
|
5310
|
+
}), F = await ee.text(), ve = F ? ns(F) : void 0;
|
|
5315
5311
|
if (!ee.ok)
|
|
5316
5312
|
throw new wr(ee.status, ve?.error ?? ee.statusText, ve);
|
|
5317
5313
|
return ve ?? {};
|
|
5318
5314
|
}
|
|
5319
5315
|
async function cn(p) {
|
|
5320
|
-
const { mobileNumber: E, mobilePrefix: ee } = p,
|
|
5321
|
-
ee &&
|
|
5322
|
-
const ve = `${T}/v1/player/resetPasswordByMobilePhone?${
|
|
5323
|
-
return await
|
|
5316
|
+
const { mobileNumber: E, mobilePrefix: ee } = p, F = new URLSearchParams({ mobileNumber: E });
|
|
5317
|
+
ee && F.set("mobilePrefix", ee);
|
|
5318
|
+
const ve = `${T}/v1/player/resetPasswordByMobilePhone?${F.toString()}`;
|
|
5319
|
+
return await We(ve);
|
|
5324
5320
|
}
|
|
5325
5321
|
async function fn(p) {
|
|
5326
|
-
const { tokenId: E, validationCode: ee } = p,
|
|
5327
|
-
return await
|
|
5322
|
+
const { tokenId: E, validationCode: ee } = p, F = new URLSearchParams({ tokenId: E, validationCode: ee }), ve = `${T}/v1/player/resetPasswordByMobilePhone/validate?${F.toString()}`;
|
|
5323
|
+
return await We(ve);
|
|
5328
5324
|
}
|
|
5329
5325
|
async function hn() {
|
|
5330
5326
|
const p = new URL(`${T}/v1/player/operatorSupportedPhoneCodes`), E = await fetch(p.href);
|
|
5331
5327
|
try {
|
|
5332
|
-
return (await E.json()).phoneCodes.map((
|
|
5328
|
+
return (await E.json()).phoneCodes.map((F) => ({ label: F, value: F }));
|
|
5333
5329
|
} catch {
|
|
5334
5330
|
return [];
|
|
5335
5331
|
}
|
|
5336
5332
|
}
|
|
5337
5333
|
function pn(p) {
|
|
5338
5334
|
const E = p.target.value;
|
|
5339
|
-
r(14,
|
|
5335
|
+
r(14, k = E);
|
|
5340
5336
|
}
|
|
5341
5337
|
async function Kt() {
|
|
5342
|
-
r(15,
|
|
5338
|
+
r(15, D = ""), r(16, I = ""), r(17, q = ""), r(11, M = !0);
|
|
5343
5339
|
try {
|
|
5344
|
-
if (!J(
|
|
5345
|
-
r(15,
|
|
5340
|
+
if (!J(G)) {
|
|
5341
|
+
r(15, D = l("invalidPhone"));
|
|
5346
5342
|
return;
|
|
5347
5343
|
}
|
|
5348
5344
|
const p = await cn({
|
|
5349
|
-
mobileNumber:
|
|
5350
|
-
mobilePrefix:
|
|
5345
|
+
mobileNumber: G.trim(),
|
|
5346
|
+
mobilePrefix: k?.trim() || void 0
|
|
5351
5347
|
});
|
|
5352
5348
|
if (p?.tokenId) {
|
|
5353
|
-
R = p.tokenId, r(5, be = Date.now() + me), r(6, ge = Date.now() +
|
|
5354
|
-
const E =
|
|
5349
|
+
R = p.tokenId, r(5, be = Date.now() + me), r(6, ge = Date.now() + Ne), r(18, Pe = ""), ne = "", r(8, Q = Array.from({ length: U }, () => ""));
|
|
5350
|
+
const E = Zo(R);
|
|
5355
5351
|
r(4, fe = E ?? Number(x)), _r(R, fe), r(2, L = "code");
|
|
5356
5352
|
} else
|
|
5357
5353
|
r(16, I = l("genericIfRegistered"));
|
|
5358
5354
|
} catch (p) {
|
|
5359
5355
|
const { message: E, thirdPartyResponse: { message: ee } = {} } = p;
|
|
5360
|
-
r(15,
|
|
5356
|
+
r(15, D = ee || E), Nr(D);
|
|
5361
5357
|
} finally {
|
|
5362
|
-
r(11,
|
|
5358
|
+
r(11, M = !1);
|
|
5363
5359
|
}
|
|
5364
5360
|
}
|
|
5365
|
-
function
|
|
5361
|
+
function xt() {
|
|
5366
5362
|
r(4, fe = Math.max(0, fe - 1)), _r(R, fe);
|
|
5367
5363
|
}
|
|
5368
5364
|
async function mn() {
|
|
5369
|
-
r(17, q = ""), r(11,
|
|
5365
|
+
r(17, q = ""), r(11, M = !0);
|
|
5370
5366
|
try {
|
|
5371
|
-
if (!ne || ne.trim().length !==
|
|
5372
|
-
r(17, q = l("enterDigitsCode").replace("{n}", String(
|
|
5367
|
+
if (!ne || ne.trim().length !== U || !/^\d+$/.test(ne.trim())) {
|
|
5368
|
+
r(17, q = l("enterDigitsCode").replace("{n}", String(U)));
|
|
5373
5369
|
return;
|
|
5374
5370
|
}
|
|
5375
5371
|
if (!R) {
|
|
@@ -5377,23 +5373,23 @@ function os(e, t, r) {
|
|
|
5377
5373
|
return;
|
|
5378
5374
|
}
|
|
5379
5375
|
const p = await fn({ tokenId: R, validationCode: ne.trim() });
|
|
5380
|
-
|
|
5376
|
+
Xe = p.hashKey.charAt(0) === "/" ? p.hashKey.slice(1) : p.hashKey, r(2, L = "password"), Yo(R), window.postMessage(
|
|
5381
5377
|
{
|
|
5382
5378
|
type: "SwitchToResetPasswordScreen",
|
|
5383
|
-
key:
|
|
5379
|
+
key: Xe
|
|
5384
5380
|
},
|
|
5385
5381
|
window.location.href
|
|
5386
5382
|
);
|
|
5387
5383
|
} catch (p) {
|
|
5388
5384
|
if (r(17, q = l("unableToVerify")), p instanceof wr) {
|
|
5389
|
-
const E = p.payload, ee = p.status,
|
|
5385
|
+
const E = p.payload, ee = p.status, F = (E?.error || "").toLowerCase();
|
|
5390
5386
|
switch (ee) {
|
|
5391
5387
|
case 400: {
|
|
5392
|
-
|
|
5388
|
+
F.includes("invalid validation code") ? (xt(), r(17, q = fe > 0 ? l("incorrectCode") : l("tooManyAttempts"))) : F.includes("expired") ? (r(17, q = l("codeExpired")), r(18, Pe = l("codeExpired")), r(5, be = null)) : F.includes("not valid") || F.includes("invalid token") ? r(17, q = l("invalidRequest")) : r(17, q = l("unableToVerify"));
|
|
5393
5389
|
break;
|
|
5394
5390
|
}
|
|
5395
5391
|
case 424: {
|
|
5396
|
-
|
|
5392
|
+
F.includes("input is not match") ? (xt(), r(17, q = l("incorrectCode"))) : F.includes("validation max attempts exceeded") ? (xt(), r(17, q = l("tooManyAttempts"))) : r(17, q = l("unableToVerify"));
|
|
5397
5393
|
break;
|
|
5398
5394
|
}
|
|
5399
5395
|
case 404: {
|
|
@@ -5408,11 +5404,11 @@ function os(e, t, r) {
|
|
|
5408
5404
|
Nr(q);
|
|
5409
5405
|
}
|
|
5410
5406
|
} finally {
|
|
5411
|
-
r(11,
|
|
5407
|
+
r(11, M = !1);
|
|
5412
5408
|
}
|
|
5413
5409
|
}
|
|
5414
5410
|
async function bn() {
|
|
5415
|
-
|
|
5411
|
+
M || ge && le < ge || await Kt();
|
|
5416
5412
|
}
|
|
5417
5413
|
Vo({ withLocale: "en", translations: {} });
|
|
5418
5414
|
const gn = async (p) => {
|
|
@@ -5421,8 +5417,8 @@ function os(e, t, r) {
|
|
|
5421
5417
|
if (!E.ok)
|
|
5422
5418
|
throw new Error(`Fetch failed with status ${E.status}`);
|
|
5423
5419
|
const ee = await E.json();
|
|
5424
|
-
for (const
|
|
5425
|
-
vr(
|
|
5420
|
+
for (const F in ee)
|
|
5421
|
+
vr(F, ee[F]);
|
|
5426
5422
|
} catch (E) {
|
|
5427
5423
|
console.error("Error fetching translation", E);
|
|
5428
5424
|
}
|
|
@@ -5431,46 +5427,46 @@ function os(e, t, r) {
|
|
|
5431
5427
|
vr(p, yr[p]);
|
|
5432
5428
|
});
|
|
5433
5429
|
const vn = () => {
|
|
5434
|
-
|
|
5430
|
+
$o(j);
|
|
5435
5431
|
};
|
|
5436
|
-
Fn(async () => (r(13, ce = await hn()), r(14,
|
|
5432
|
+
Fn(async () => (r(13, ce = await hn()), r(14, k = ce?.[0]?.value), ne && ne.length === U && r(8, Q = ne.split("")), () => {
|
|
5437
5433
|
}));
|
|
5438
5434
|
function yn() {
|
|
5439
|
-
|
|
5435
|
+
k = this.value, r(14, k);
|
|
5440
5436
|
}
|
|
5441
5437
|
function wn() {
|
|
5442
|
-
|
|
5438
|
+
G = this.value, r(3, G);
|
|
5443
5439
|
}
|
|
5444
5440
|
function _n(p, E) {
|
|
5445
|
-
|
|
5441
|
+
pt[p ? "unshift" : "push"](() => {
|
|
5446
5442
|
X[E] = p, r(19, X);
|
|
5447
5443
|
});
|
|
5448
5444
|
}
|
|
5449
|
-
const Pn = (p, E) =>
|
|
5445
|
+
const Pn = (p, E) => Re(E, p), xn = (p, E) => se(E, p);
|
|
5450
5446
|
function En(p) {
|
|
5451
|
-
|
|
5447
|
+
pt[p ? "unshift" : "push"](() => {
|
|
5452
5448
|
C = p, r(1, C);
|
|
5453
5449
|
});
|
|
5454
5450
|
}
|
|
5455
5451
|
return e.$$set = (p) => {
|
|
5456
|
-
"clientstyling" in p && r(33, c = p.clientstyling), "clientstylingurl" in p && r(34, f = p.clientstylingurl), "translationurl" in p && r(35, g = p.translationurl), "mbsource" in p && r(36, b = p.mbsource), "phoneregex" in p && r(37, y = p.phoneregex), "phoneprefixeditable" in p && r(0, _ = p.phoneprefixeditable), "smscodelength" in p && r(38, S = p.smscodelength), "smscodemaxattempts" in p && r(39, x = p.smscodemaxattempts), "smscodettl" in p && r(40, w = p.smscodettl), "resenddelay" in p && r(41, H = p.resenddelay), "endpoint" in p && r(42, T = p.endpoint), "lang" in p && r(43,
|
|
5452
|
+
"clientstyling" in p && r(33, c = p.clientstyling), "clientstylingurl" in p && r(34, f = p.clientstylingurl), "translationurl" in p && r(35, g = p.translationurl), "mbsource" in p && r(36, b = p.mbsource), "phoneregex" in p && r(37, y = p.phoneregex), "phoneprefixeditable" in p && r(0, _ = p.phoneprefixeditable), "smscodelength" in p && r(38, S = p.smscodelength), "smscodemaxattempts" in p && r(39, x = p.smscodemaxattempts), "smscodettl" in p && r(40, w = p.smscodettl), "resenddelay" in p && r(41, H = p.resenddelay), "endpoint" in p && r(42, T = p.endpoint), "lang" in p && r(43, j = p.lang);
|
|
5457
5453
|
}, e.$$.update = () => {
|
|
5458
5454
|
e.$$.dirty[0] & /*customStylingContainer*/
|
|
5459
5455
|
2 | e.$$.dirty[1] & /*clientstyling*/
|
|
5460
|
-
4 && c && C &&
|
|
5456
|
+
4 && c && C && qo(C, c), e.$$.dirty[0] & /*customStylingContainer*/
|
|
5461
5457
|
2 | e.$$.dirty[1] & /*clientstylingurl*/
|
|
5462
|
-
8 && f && C &&
|
|
5458
|
+
8 && f && C && Xo(C, f), e.$$.dirty[0] & /*customStylingContainer*/
|
|
5463
5459
|
2 | e.$$.dirty[1] & /*mbsource*/
|
|
5464
|
-
32 && b && C &&
|
|
5465
|
-
4096 &&
|
|
5460
|
+
32 && b && C && Wo(C, `${b}.Style`), e.$$.dirty[1] & /*lang*/
|
|
5461
|
+
4096 && j && vn(), e.$$.dirty[1] & /*translationurl*/
|
|
5466
5462
|
16 && g && gn(g), e.$$.dirty[0] & /*expiresAt, now*/
|
|
5467
5463
|
160 && r(9, n = be ? Math.max(0, Math.ceil((be - le) / 1e3)) : 0), e.$$.dirty[0] & /*canResendAt, now*/
|
|
5468
5464
|
192 && r(21, i = ge ? Math.max(0, Math.ceil((ge - le) / 1e3)) : 0), e.$$.dirty[0] & /*expiresAt, remainingSeconds*/
|
|
5469
5465
|
544 && r(44, o = !!be && n === 0), e.$$.dirty[0] & /*step, phone, $_*/
|
|
5470
|
-
1036 && r(15,
|
|
5466
|
+
1036 && r(15, D = L === "phone" && G ? J(G) ? "" : l("invalidPhone") : ""), e.$$.dirty[0] & /*codeDigits*/
|
|
5471
5467
|
256 && r(46, s = Q.join("")), e.$$.dirty[0] & /*codeDigits*/
|
|
5472
5468
|
256 && r(47, a = Q.every((p) => /^\d$/.test(p))), e.$$.dirty[1] & /*isCodeFilled, codeCombined*/
|
|
5473
|
-
98304 && r(45, d = a && s.length ===
|
|
5469
|
+
98304 && r(45, d = a && s.length === U), e.$$.dirty[0] & /*codeDigits*/
|
|
5474
5470
|
256 && (ne = Q.join("")), e.$$.dirty[0] & /*attemptsRemaining*/
|
|
5475
5471
|
16 | e.$$.dirty[1] & /*isCodeValid, isTokenExpired*/
|
|
5476
5472
|
24576 && r(20, u = !d || o || fe <= 0);
|
|
@@ -5478,7 +5474,7 @@ function os(e, t, r) {
|
|
|
5478
5474
|
_,
|
|
5479
5475
|
C,
|
|
5480
5476
|
L,
|
|
5481
|
-
|
|
5477
|
+
G,
|
|
5482
5478
|
fe,
|
|
5483
5479
|
be,
|
|
5484
5480
|
ge,
|
|
@@ -5486,23 +5482,23 @@ function os(e, t, r) {
|
|
|
5486
5482
|
Q,
|
|
5487
5483
|
n,
|
|
5488
5484
|
l,
|
|
5489
|
-
|
|
5485
|
+
M,
|
|
5490
5486
|
Z,
|
|
5491
5487
|
ce,
|
|
5492
|
-
|
|
5493
|
-
|
|
5488
|
+
k,
|
|
5489
|
+
D,
|
|
5494
5490
|
I,
|
|
5495
5491
|
q,
|
|
5496
|
-
|
|
5492
|
+
Pe,
|
|
5497
5493
|
X,
|
|
5498
5494
|
u,
|
|
5499
5495
|
i,
|
|
5500
5496
|
pe,
|
|
5501
|
-
|
|
5502
|
-
|
|
5497
|
+
_e,
|
|
5498
|
+
Ce,
|
|
5503
5499
|
re,
|
|
5504
|
-
|
|
5505
|
-
|
|
5500
|
+
U,
|
|
5501
|
+
Re,
|
|
5506
5502
|
se,
|
|
5507
5503
|
pn,
|
|
5508
5504
|
Kt,
|
|
@@ -5518,7 +5514,7 @@ function os(e, t, r) {
|
|
|
5518
5514
|
w,
|
|
5519
5515
|
H,
|
|
5520
5516
|
T,
|
|
5521
|
-
|
|
5517
|
+
j,
|
|
5522
5518
|
o,
|
|
5523
5519
|
d,
|
|
5524
5520
|
s,
|
|
@@ -5531,14 +5527,14 @@ function os(e, t, r) {
|
|
|
5531
5527
|
En
|
|
5532
5528
|
];
|
|
5533
5529
|
}
|
|
5534
|
-
class
|
|
5530
|
+
class os extends Qn {
|
|
5535
5531
|
constructor(t) {
|
|
5536
5532
|
super(), Yn(
|
|
5537
5533
|
this,
|
|
5538
5534
|
t,
|
|
5539
|
-
|
|
5540
|
-
|
|
5541
|
-
|
|
5535
|
+
is,
|
|
5536
|
+
rs,
|
|
5537
|
+
Mr,
|
|
5542
5538
|
{
|
|
5543
5539
|
clientstyling: 33,
|
|
5544
5540
|
clientstylingurl: 34,
|
|
@@ -5553,7 +5549,7 @@ class ss extends Qn {
|
|
|
5553
5549
|
endpoint: 42,
|
|
5554
5550
|
lang: 43
|
|
5555
5551
|
},
|
|
5556
|
-
|
|
5552
|
+
Jo,
|
|
5557
5553
|
[-1, -1, -1]
|
|
5558
5554
|
);
|
|
5559
5555
|
}
|
|
@@ -5630,7 +5626,7 @@ class ss extends Qn {
|
|
|
5630
5626
|
this.$$set({ lang: t }), oe();
|
|
5631
5627
|
}
|
|
5632
5628
|
}
|
|
5633
|
-
Jn(
|
|
5629
|
+
Jn(os, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {}, phoneregex: {}, phoneprefixeditable: {}, smscodelength: {}, smscodemaxattempts: {}, smscodettl: {}, resenddelay: {}, endpoint: {}, lang: {} }, [], [], !0);
|
|
5634
5630
|
export {
|
|
5635
|
-
|
|
5631
|
+
os as G
|
|
5636
5632
|
};
|