@everymatrix/general-player-login-form-nd 1.77.18 → 1.77.20
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/{GeneralPlayerLoginFormNd-CUIevjh8.js → GeneralPlayerLoginFormNd-B01BY938.js} +788 -831
- package/components/GeneralPlayerLoginFormNd-BV7zK-4o.cjs +18 -0
- package/components/{GeneralPlayerLoginFormNd-1DxGEPP9.js → GeneralPlayerLoginFormNd-Dz48iQSX.js} +812 -855
- package/components/{GeneralPlayerSmsVerificationForm-Dx63x365.cjs → GeneralPlayerSmsVerificationForm-Cq1-KjdA.cjs} +1 -1
- package/components/{GeneralPlayerSmsVerificationForm-BKWeCfRG.js → GeneralPlayerSmsVerificationForm-D2b0nmmS.js} +1 -1
- package/components/{GeneralPlayerSmsVerificationForm-DJahVXQg.js → GeneralPlayerSmsVerificationForm-Ddx2w2-K.js} +1 -1
- package/es2015/general-player-login-form-nd.cjs +1 -1
- package/es2015/general-player-login-form-nd.js +1 -1
- package/esnext/general-player-login-form-nd.js +1 -1
- package/package.json +1 -1
- package/components/GeneralPlayerLoginFormNd-Dv0P7KwS.cjs +0 -18
package/components/{GeneralPlayerLoginFormNd-1DxGEPP9.js → GeneralPlayerLoginFormNd-Dz48iQSX.js}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var cn = Object.defineProperty, hn = Object.defineProperties;
|
|
2
|
+
var fn = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Wt = Object.getOwnPropertySymbols;
|
|
4
|
+
var mn = Object.prototype.hasOwnProperty, dn = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var vt = (e, t, r) => t in e ? cn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Zt = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
mn.call(t, r) && vt(e, r, t[r]);
|
|
8
|
+
if (Wt)
|
|
9
|
+
for (var r of Wt(t))
|
|
10
|
+
dn.call(t, r) && vt(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var K = (e, t, r) => (
|
|
12
|
+
}, qt = (e, t) => hn(e, fn(t));
|
|
13
|
+
var K = (e, t, r) => (vt(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var et = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (u) => {
|
|
16
16
|
try {
|
|
@@ -29,29 +29,29 @@ var et = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function Z() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Tr(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Jt() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function Ne(e) {
|
|
39
|
+
e.forEach(Tr);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Gt(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Hr(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
47
|
let tt;
|
|
48
|
-
function
|
|
48
|
+
function Qt(e, t) {
|
|
49
49
|
return e === t ? !0 : (tt || (tt = document.createElement("a")), tt.href = t, e === tt.href);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function pn(e) {
|
|
52
52
|
return Object.keys(e).length === 0;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Br(e, ...t) {
|
|
55
55
|
if (e == null) {
|
|
56
56
|
for (const n of t)
|
|
57
57
|
n(void 0);
|
|
@@ -60,20 +60,20 @@ function Lr(e, ...t) {
|
|
|
60
60
|
const r = e.subscribe(...t);
|
|
61
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
e.$$.on_destroy.push(
|
|
63
|
+
function gn(e, t, r) {
|
|
64
|
+
e.$$.on_destroy.push(Br(t, r));
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function d(e, t) {
|
|
67
67
|
e.appendChild(t);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
const n =
|
|
69
|
+
function bn(e, t, r) {
|
|
70
|
+
const n = vn(e);
|
|
71
71
|
if (!n.getElementById(t)) {
|
|
72
|
-
const i =
|
|
73
|
-
i.id = t, i.textContent = r,
|
|
72
|
+
const i = x("style");
|
|
73
|
+
i.id = t, i.textContent = r, yn(n, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function vn(e) {
|
|
77
77
|
if (!e)
|
|
78
78
|
return document;
|
|
79
79
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -83,8 +83,8 @@ function xn(e) {
|
|
|
83
83
|
t
|
|
84
84
|
) : e.ownerDocument;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
87
|
-
return
|
|
86
|
+
function yn(e, t) {
|
|
87
|
+
return d(
|
|
88
88
|
/** @type {Document} */
|
|
89
89
|
e.head || e,
|
|
90
90
|
t
|
|
@@ -96,7 +96,7 @@ function L(e, t, r) {
|
|
|
96
96
|
function I(e) {
|
|
97
97
|
e.parentNode && e.parentNode.removeChild(e);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function x(e) {
|
|
100
100
|
return document.createElement(e);
|
|
101
101
|
}
|
|
102
102
|
function C(e) {
|
|
@@ -108,10 +108,10 @@ function N(e) {
|
|
|
108
108
|
function j() {
|
|
109
109
|
return N(" ");
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function _n() {
|
|
112
112
|
return N("");
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function se(e, t, r, n) {
|
|
115
115
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
116
116
|
}
|
|
117
117
|
function h(e, t, r) {
|
|
@@ -121,7 +121,7 @@ function W(e, t, r) {
|
|
|
121
121
|
const n = t.toLowerCase();
|
|
122
122
|
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);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function wn(e) {
|
|
125
125
|
return Array.from(e.childNodes);
|
|
126
126
|
}
|
|
127
127
|
function re(e, t) {
|
|
@@ -131,7 +131,7 @@ function re(e, t) {
|
|
|
131
131
|
function rt(e, t) {
|
|
132
132
|
e.value = t == null ? "" : t;
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function En(e) {
|
|
135
135
|
const t = {};
|
|
136
136
|
return e.childNodes.forEach(
|
|
137
137
|
/** @param {Element} node */
|
|
@@ -140,87 +140,87 @@ function Hn(e) {
|
|
|
140
140
|
}
|
|
141
141
|
), t;
|
|
142
142
|
}
|
|
143
|
-
let
|
|
144
|
-
function
|
|
145
|
-
|
|
143
|
+
let Xe;
|
|
144
|
+
function ze(e) {
|
|
145
|
+
Xe = e;
|
|
146
146
|
}
|
|
147
|
-
function
|
|
148
|
-
if (!
|
|
147
|
+
function xn() {
|
|
148
|
+
if (!Xe)
|
|
149
149
|
throw new Error("Function called outside component initialization");
|
|
150
|
-
return
|
|
150
|
+
return Xe;
|
|
151
151
|
}
|
|
152
|
-
function
|
|
153
|
-
|
|
152
|
+
function Sn(e) {
|
|
153
|
+
xn().$$.on_mount.push(e);
|
|
154
154
|
}
|
|
155
155
|
const Be = [], ut = [];
|
|
156
156
|
let Ae = [];
|
|
157
|
-
const
|
|
158
|
-
let
|
|
159
|
-
function
|
|
160
|
-
|
|
157
|
+
const Yt = [], Pn = /* @__PURE__ */ Promise.resolve();
|
|
158
|
+
let Tt = !1;
|
|
159
|
+
function Tn() {
|
|
160
|
+
Tt || (Tt = !0, Pn.then(ee));
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function Ht(e) {
|
|
163
163
|
Ae.push(e);
|
|
164
164
|
}
|
|
165
|
-
const
|
|
165
|
+
const yt = /* @__PURE__ */ new Set();
|
|
166
166
|
let Te = 0;
|
|
167
167
|
function ee() {
|
|
168
168
|
if (Te !== 0)
|
|
169
169
|
return;
|
|
170
|
-
const e =
|
|
170
|
+
const e = Xe;
|
|
171
171
|
do {
|
|
172
172
|
try {
|
|
173
173
|
for (; Te < Be.length; ) {
|
|
174
174
|
const t = Be[Te];
|
|
175
|
-
Te++,
|
|
175
|
+
Te++, ze(t), Hn(t.$$);
|
|
176
176
|
}
|
|
177
177
|
} catch (t) {
|
|
178
178
|
throw Be.length = 0, Te = 0, t;
|
|
179
179
|
}
|
|
180
|
-
for (
|
|
180
|
+
for (ze(null), Be.length = 0, Te = 0; ut.length; )
|
|
181
181
|
ut.pop()();
|
|
182
182
|
for (let t = 0; t < Ae.length; t += 1) {
|
|
183
183
|
const r = Ae[t];
|
|
184
|
-
|
|
184
|
+
yt.has(r) || (yt.add(r), r());
|
|
185
185
|
}
|
|
186
186
|
Ae.length = 0;
|
|
187
187
|
} while (Be.length);
|
|
188
|
-
for (;
|
|
189
|
-
|
|
190
|
-
|
|
188
|
+
for (; Yt.length; )
|
|
189
|
+
Yt.pop()();
|
|
190
|
+
Tt = !1, yt.clear(), ze(e);
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function Hn(e) {
|
|
193
193
|
if (e.fragment !== null) {
|
|
194
|
-
e.update(),
|
|
194
|
+
e.update(), Ne(e.before_update);
|
|
195
195
|
const t = e.dirty;
|
|
196
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
196
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ht);
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function Bn(e) {
|
|
200
200
|
const t = [], r = [];
|
|
201
201
|
Ae.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Ae = t;
|
|
202
202
|
}
|
|
203
|
-
const
|
|
204
|
-
function
|
|
205
|
-
e && e.i && (
|
|
203
|
+
const An = /* @__PURE__ */ new Set();
|
|
204
|
+
function In(e, t) {
|
|
205
|
+
e && e.i && (An.delete(e), e.i(t));
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function On(e, t, r) {
|
|
208
208
|
const { fragment: n, after_update: i } = e.$$;
|
|
209
|
-
n && n.m(t, r),
|
|
210
|
-
const o = e.$$.on_mount.map(
|
|
211
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
212
|
-
}), i.forEach(
|
|
209
|
+
n && n.m(t, r), Ht(() => {
|
|
210
|
+
const o = e.$$.on_mount.map(Tr).filter(Gt);
|
|
211
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Ne(o), e.$$.on_mount = [];
|
|
212
|
+
}), i.forEach(Ht);
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function Cn(e, t) {
|
|
215
215
|
const r = e.$$;
|
|
216
|
-
r.fragment !== null && (
|
|
216
|
+
r.fragment !== null && (Bn(r.after_update), Ne(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
217
217
|
}
|
|
218
|
-
function
|
|
219
|
-
e.$$.dirty[0] === -1 && (Be.push(e),
|
|
218
|
+
function Ln(e, t) {
|
|
219
|
+
e.$$.dirty[0] === -1 && (Be.push(e), Tn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
220
220
|
}
|
|
221
|
-
function
|
|
222
|
-
const u =
|
|
223
|
-
|
|
221
|
+
function Mn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
222
|
+
const u = Xe;
|
|
223
|
+
ze(e);
|
|
224
224
|
const l = e.$$ = {
|
|
225
225
|
fragment: null,
|
|
226
226
|
ctx: [],
|
|
@@ -228,7 +228,7 @@ function Dn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
228
228
|
props: o,
|
|
229
229
|
update: Z,
|
|
230
230
|
not_equal: i,
|
|
231
|
-
bound:
|
|
231
|
+
bound: Jt(),
|
|
232
232
|
// lifecycle
|
|
233
233
|
on_mount: [],
|
|
234
234
|
on_destroy: [],
|
|
@@ -237,28 +237,28 @@ function Dn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
237
237
|
after_update: [],
|
|
238
238
|
context: new Map(t.context || (u ? u.$$.context : [])),
|
|
239
239
|
// everything else
|
|
240
|
-
callbacks:
|
|
240
|
+
callbacks: Jt(),
|
|
241
241
|
dirty: a,
|
|
242
242
|
skip_bound: !1,
|
|
243
243
|
root: t.target || u.$$.root
|
|
244
244
|
};
|
|
245
245
|
s && s(l.root);
|
|
246
246
|
let c = !1;
|
|
247
|
-
if (l.ctx = r ? r(e, t.props || {}, (f,
|
|
248
|
-
const y = b.length ? b[0] :
|
|
249
|
-
return l.ctx && i(l.ctx[f], l.ctx[f] = y) && (!l.skip_bound && l.bound[f] && l.bound[f](y), c &&
|
|
250
|
-
}) : [], l.update(), c = !0,
|
|
247
|
+
if (l.ctx = r ? r(e, t.props || {}, (f, m, ...b) => {
|
|
248
|
+
const y = b.length ? b[0] : m;
|
|
249
|
+
return l.ctx && i(l.ctx[f], l.ctx[f] = y) && (!l.skip_bound && l.bound[f] && l.bound[f](y), c && Ln(e, f)), m;
|
|
250
|
+
}) : [], l.update(), c = !0, Ne(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
251
251
|
if (t.hydrate) {
|
|
252
|
-
const f =
|
|
252
|
+
const f = wn(t.target);
|
|
253
253
|
l.fragment && l.fragment.l(f), f.forEach(I);
|
|
254
254
|
} else
|
|
255
255
|
l.fragment && l.fragment.c();
|
|
256
|
-
t.intro &&
|
|
256
|
+
t.intro && In(e.$$.fragment), On(e, t.target, t.anchor), ee();
|
|
257
257
|
}
|
|
258
|
-
|
|
258
|
+
ze(u);
|
|
259
259
|
}
|
|
260
|
-
let
|
|
261
|
-
typeof HTMLElement == "function" && (
|
|
260
|
+
let Ar;
|
|
261
|
+
typeof HTMLElement == "function" && (Ar = class extends HTMLElement {
|
|
262
262
|
constructor(t, r, n) {
|
|
263
263
|
super();
|
|
264
264
|
/** The Svelte component constructor */
|
|
@@ -302,7 +302,7 @@ typeof HTMLElement == "function" && (Mr = class extends HTMLElement {
|
|
|
302
302
|
let s;
|
|
303
303
|
return {
|
|
304
304
|
c: function() {
|
|
305
|
-
s =
|
|
305
|
+
s = x("slot"), o !== "default" && h(s, "name", o);
|
|
306
306
|
},
|
|
307
307
|
/**
|
|
308
308
|
* @param {HTMLElement} target
|
|
@@ -319,7 +319,7 @@ typeof HTMLElement == "function" && (Mr = class extends HTMLElement {
|
|
|
319
319
|
};
|
|
320
320
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
321
321
|
return;
|
|
322
|
-
const r = {}, n =
|
|
322
|
+
const r = {}, n = En(this);
|
|
323
323
|
for (const o of this.$$s)
|
|
324
324
|
o in n && (r[o] = [t(o)]);
|
|
325
325
|
for (const o of this.attributes) {
|
|
@@ -330,7 +330,7 @@ typeof HTMLElement == "function" && (Mr = class extends HTMLElement {
|
|
|
330
330
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
331
331
|
this.$$c = new this.$$ctor({
|
|
332
332
|
target: this.shadowRoot || this,
|
|
333
|
-
props:
|
|
333
|
+
props: qt(Zt({}, this.$$d), {
|
|
334
334
|
$$slots: r,
|
|
335
335
|
$$scope: {
|
|
336
336
|
ctx: []
|
|
@@ -408,8 +408,8 @@ function ot(e, t, r, n) {
|
|
|
408
408
|
return t;
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
|
-
function
|
|
412
|
-
let s = class extends
|
|
411
|
+
function Nn(e, t, r, n, i, o) {
|
|
412
|
+
let s = class extends Ar {
|
|
413
413
|
constructor() {
|
|
414
414
|
super(e, r, i), this.$$p_d = t;
|
|
415
415
|
}
|
|
@@ -439,7 +439,7 @@ function kn(e, t, r, n, i, o) {
|
|
|
439
439
|
}), e.element = /** @type {any} */
|
|
440
440
|
s, s;
|
|
441
441
|
}
|
|
442
|
-
class
|
|
442
|
+
class Rn {
|
|
443
443
|
constructor() {
|
|
444
444
|
/**
|
|
445
445
|
* ### PRIVATE API
|
|
@@ -460,7 +460,7 @@ class $n {
|
|
|
460
460
|
}
|
|
461
461
|
/** @returns {void} */
|
|
462
462
|
$destroy() {
|
|
463
|
-
|
|
463
|
+
Cn(this, 1), this.$destroy = Z;
|
|
464
464
|
}
|
|
465
465
|
/**
|
|
466
466
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -469,7 +469,7 @@ class $n {
|
|
|
469
469
|
* @returns {() => void}
|
|
470
470
|
*/
|
|
471
471
|
$on(t, r) {
|
|
472
|
-
if (!
|
|
472
|
+
if (!Gt(r))
|
|
473
473
|
return Z;
|
|
474
474
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
475
475
|
return n.push(r), () => {
|
|
@@ -482,11 +482,11 @@ class $n {
|
|
|
482
482
|
* @returns {void}
|
|
483
483
|
*/
|
|
484
484
|
$set(t) {
|
|
485
|
-
this.$$set && !
|
|
485
|
+
this.$$set && !pn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
|
-
const
|
|
489
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
488
|
+
const Un = "4";
|
|
489
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Un);
|
|
490
490
|
/*! *****************************************************************************
|
|
491
491
|
Copyright (c) Microsoft Corporation.
|
|
492
492
|
|
|
@@ -501,24 +501,43 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
501
501
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
502
502
|
PERFORMANCE OF THIS SOFTWARE.
|
|
503
503
|
***************************************************************************** */
|
|
504
|
-
var
|
|
505
|
-
return
|
|
504
|
+
var Bt = function(e, t) {
|
|
505
|
+
return Bt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
506
506
|
r.__proto__ = n;
|
|
507
507
|
} || function(r, n) {
|
|
508
508
|
for (var i in n)
|
|
509
509
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
510
|
-
},
|
|
510
|
+
}, Bt(e, t);
|
|
511
511
|
};
|
|
512
|
-
function
|
|
512
|
+
function le(e, t) {
|
|
513
513
|
if (typeof t != "function" && t !== null)
|
|
514
514
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
515
|
-
|
|
515
|
+
Bt(e, t);
|
|
516
516
|
function r() {
|
|
517
517
|
this.constructor = e;
|
|
518
518
|
}
|
|
519
519
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
var E = function() {
|
|
522
|
+
return E = Object.assign || function(t) {
|
|
523
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
524
|
+
r = arguments[n];
|
|
525
|
+
for (var o in r)
|
|
526
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
527
|
+
}
|
|
528
|
+
return t;
|
|
529
|
+
}, E.apply(this, arguments);
|
|
530
|
+
};
|
|
531
|
+
function Fn(e, t) {
|
|
532
|
+
var r = {};
|
|
533
|
+
for (var n in e)
|
|
534
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
535
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
536
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
537
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
538
|
+
return r;
|
|
539
|
+
}
|
|
540
|
+
function At(e) {
|
|
522
541
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
523
542
|
if (r)
|
|
524
543
|
return r.call(e);
|
|
@@ -530,7 +549,7 @@ function Ct(e) {
|
|
|
530
549
|
};
|
|
531
550
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
532
551
|
}
|
|
533
|
-
function
|
|
552
|
+
function It(e, t) {
|
|
534
553
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
535
554
|
if (!r)
|
|
536
555
|
return e;
|
|
@@ -550,22 +569,22 @@ function Lt(e, t) {
|
|
|
550
569
|
}
|
|
551
570
|
return o;
|
|
552
571
|
}
|
|
553
|
-
function
|
|
554
|
-
if (arguments.length === 2)
|
|
572
|
+
function Ie(e, t, r) {
|
|
573
|
+
if (r || arguments.length === 2)
|
|
555
574
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
556
575
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
557
576
|
return e.concat(o || t);
|
|
558
577
|
}
|
|
559
|
-
function
|
|
578
|
+
function ae(e) {
|
|
560
579
|
return typeof e == "function";
|
|
561
580
|
}
|
|
562
|
-
function
|
|
581
|
+
function Ir(e) {
|
|
563
582
|
var t = function(n) {
|
|
564
583
|
Error.call(n), n.stack = new Error().stack;
|
|
565
584
|
}, r = e(t);
|
|
566
585
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
567
586
|
}
|
|
568
|
-
var
|
|
587
|
+
var _t = Ir(function(e) {
|
|
569
588
|
return function(r) {
|
|
570
589
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
571
590
|
` + r.map(function(n, i) {
|
|
@@ -574,13 +593,13 @@ var Et = Nr(function(e) {
|
|
|
574
593
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
575
594
|
};
|
|
576
595
|
});
|
|
577
|
-
function
|
|
596
|
+
function Ot(e, t) {
|
|
578
597
|
if (e) {
|
|
579
598
|
var r = e.indexOf(t);
|
|
580
599
|
0 <= r && e.splice(r, 1);
|
|
581
600
|
}
|
|
582
601
|
}
|
|
583
|
-
var
|
|
602
|
+
var ft = function() {
|
|
584
603
|
function e(t) {
|
|
585
604
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
586
605
|
}
|
|
@@ -592,7 +611,7 @@ var dt = function() {
|
|
|
592
611
|
if (s)
|
|
593
612
|
if (this._parentage = null, Array.isArray(s))
|
|
594
613
|
try {
|
|
595
|
-
for (var a =
|
|
614
|
+
for (var a = At(s), u = a.next(); !u.done; u = a.next()) {
|
|
596
615
|
var l = u.value;
|
|
597
616
|
l.remove(this);
|
|
598
617
|
}
|
|
@@ -609,29 +628,29 @@ var dt = function() {
|
|
|
609
628
|
else
|
|
610
629
|
s.remove(this);
|
|
611
630
|
var c = this.initialTeardown;
|
|
612
|
-
if (
|
|
631
|
+
if (ae(c))
|
|
613
632
|
try {
|
|
614
633
|
c();
|
|
615
634
|
} catch (g) {
|
|
616
|
-
o = g instanceof
|
|
635
|
+
o = g instanceof _t ? g.errors : [g];
|
|
617
636
|
}
|
|
618
637
|
var f = this._finalizers;
|
|
619
638
|
if (f) {
|
|
620
639
|
this._finalizers = null;
|
|
621
640
|
try {
|
|
622
|
-
for (var
|
|
641
|
+
for (var m = At(f), b = m.next(); !b.done; b = m.next()) {
|
|
623
642
|
var y = b.value;
|
|
624
643
|
try {
|
|
625
|
-
|
|
644
|
+
Kt(y);
|
|
626
645
|
} catch (g) {
|
|
627
|
-
o = o != null ? o : [], g instanceof
|
|
646
|
+
o = o != null ? o : [], g instanceof _t ? o = Ie(Ie([], It(o)), It(g.errors)) : o.push(g);
|
|
628
647
|
}
|
|
629
648
|
}
|
|
630
649
|
} catch (g) {
|
|
631
650
|
n = { error: g };
|
|
632
651
|
} finally {
|
|
633
652
|
try {
|
|
634
|
-
b && !b.done && (i =
|
|
653
|
+
b && !b.done && (i = m.return) && i.call(m);
|
|
635
654
|
} finally {
|
|
636
655
|
if (n)
|
|
637
656
|
throw n.error;
|
|
@@ -639,13 +658,13 @@ var dt = function() {
|
|
|
639
658
|
}
|
|
640
659
|
}
|
|
641
660
|
if (o)
|
|
642
|
-
throw new
|
|
661
|
+
throw new _t(o);
|
|
643
662
|
}
|
|
644
663
|
}, e.prototype.add = function(t) {
|
|
645
664
|
var r;
|
|
646
665
|
if (t && t !== this)
|
|
647
666
|
if (this.closed)
|
|
648
|
-
|
|
667
|
+
Kt(t);
|
|
649
668
|
else {
|
|
650
669
|
if (t instanceof e) {
|
|
651
670
|
if (t.closed || t._hasParent(this))
|
|
@@ -662,52 +681,52 @@ var dt = function() {
|
|
|
662
681
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
663
682
|
}, e.prototype._removeParent = function(t) {
|
|
664
683
|
var r = this._parentage;
|
|
665
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
684
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ot(r, t);
|
|
666
685
|
}, e.prototype.remove = function(t) {
|
|
667
686
|
var r = this._finalizers;
|
|
668
|
-
r &&
|
|
687
|
+
r && Ot(r, t), t instanceof e && t._removeParent(this);
|
|
669
688
|
}, e.EMPTY = function() {
|
|
670
689
|
var t = new e();
|
|
671
690
|
return t.closed = !0, t;
|
|
672
691
|
}(), e;
|
|
673
|
-
}(),
|
|
674
|
-
function
|
|
675
|
-
return e instanceof
|
|
692
|
+
}(), Or = ft.EMPTY;
|
|
693
|
+
function Cr(e) {
|
|
694
|
+
return e instanceof ft || e && "closed" in e && ae(e.remove) && ae(e.add) && ae(e.unsubscribe);
|
|
676
695
|
}
|
|
677
|
-
function
|
|
678
|
-
|
|
696
|
+
function Kt(e) {
|
|
697
|
+
ae(e) ? e() : e.unsubscribe();
|
|
679
698
|
}
|
|
680
|
-
var
|
|
699
|
+
var Dn = {
|
|
681
700
|
Promise: void 0
|
|
682
|
-
},
|
|
701
|
+
}, kn = {
|
|
683
702
|
setTimeout: function(e, t) {
|
|
684
703
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
685
704
|
r[n - 2] = arguments[n];
|
|
686
|
-
return setTimeout.apply(void 0,
|
|
705
|
+
return setTimeout.apply(void 0, Ie([e, t], It(r)));
|
|
687
706
|
},
|
|
688
707
|
clearTimeout: function(e) {
|
|
689
708
|
return clearTimeout(e);
|
|
690
709
|
},
|
|
691
710
|
delegate: void 0
|
|
692
711
|
};
|
|
693
|
-
function
|
|
694
|
-
|
|
712
|
+
function Gn(e) {
|
|
713
|
+
kn.setTimeout(function() {
|
|
695
714
|
throw e;
|
|
696
715
|
});
|
|
697
716
|
}
|
|
698
|
-
function
|
|
717
|
+
function er() {
|
|
699
718
|
}
|
|
700
719
|
function st(e) {
|
|
701
720
|
e();
|
|
702
721
|
}
|
|
703
|
-
var
|
|
704
|
-
|
|
722
|
+
var Lr = function(e) {
|
|
723
|
+
le(t, e);
|
|
705
724
|
function t(r) {
|
|
706
725
|
var n = e.call(this) || this;
|
|
707
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
726
|
+
return n.isStopped = !1, r ? (n.destination = r, Cr(r) && r.add(n)) : n.destination = Vn, n;
|
|
708
727
|
}
|
|
709
728
|
return t.create = function(r, n, i) {
|
|
710
|
-
return new
|
|
729
|
+
return new Ct(r, n, i);
|
|
711
730
|
}, t.prototype.next = function(r) {
|
|
712
731
|
this.isStopped || this._next(r);
|
|
713
732
|
}, t.prototype.error = function(r) {
|
|
@@ -731,7 +750,7 @@ var Fr = function(e) {
|
|
|
731
750
|
this.unsubscribe();
|
|
732
751
|
}
|
|
733
752
|
}, t;
|
|
734
|
-
}(
|
|
753
|
+
}(ft), $n = function() {
|
|
735
754
|
function e(t) {
|
|
736
755
|
this.partialObserver = t;
|
|
737
756
|
}
|
|
@@ -762,43 +781,43 @@ var Fr = function(e) {
|
|
|
762
781
|
nt(r);
|
|
763
782
|
}
|
|
764
783
|
}, e;
|
|
765
|
-
}(),
|
|
766
|
-
|
|
784
|
+
}(), Ct = function(e) {
|
|
785
|
+
le(t, e);
|
|
767
786
|
function t(r, n, i) {
|
|
768
787
|
var o = e.call(this) || this, s;
|
|
769
|
-
return
|
|
788
|
+
return ae(r) || !r ? s = {
|
|
770
789
|
next: r != null ? r : void 0,
|
|
771
790
|
error: n != null ? n : void 0,
|
|
772
791
|
complete: i != null ? i : void 0
|
|
773
|
-
} : s = r, o.destination = new
|
|
792
|
+
} : s = r, o.destination = new $n(s), o;
|
|
774
793
|
}
|
|
775
794
|
return t;
|
|
776
|
-
}(
|
|
795
|
+
}(Lr);
|
|
777
796
|
function nt(e) {
|
|
778
|
-
|
|
797
|
+
Gn(e);
|
|
779
798
|
}
|
|
780
|
-
function
|
|
799
|
+
function jn(e) {
|
|
781
800
|
throw e;
|
|
782
801
|
}
|
|
783
|
-
var
|
|
802
|
+
var Vn = {
|
|
784
803
|
closed: !0,
|
|
785
|
-
next:
|
|
786
|
-
error:
|
|
787
|
-
complete:
|
|
788
|
-
},
|
|
804
|
+
next: er,
|
|
805
|
+
error: jn,
|
|
806
|
+
complete: er
|
|
807
|
+
}, zn = function() {
|
|
789
808
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
790
809
|
}();
|
|
791
|
-
function
|
|
810
|
+
function Xn(e) {
|
|
792
811
|
return e;
|
|
793
812
|
}
|
|
794
|
-
function
|
|
795
|
-
return e.length === 0 ?
|
|
813
|
+
function Wn(e) {
|
|
814
|
+
return e.length === 0 ? Xn : e.length === 1 ? e[0] : function(r) {
|
|
796
815
|
return e.reduce(function(n, i) {
|
|
797
816
|
return i(n);
|
|
798
817
|
}, r);
|
|
799
818
|
};
|
|
800
819
|
}
|
|
801
|
-
var
|
|
820
|
+
var tr = function() {
|
|
802
821
|
function e(t) {
|
|
803
822
|
t && (this._subscribe = t);
|
|
804
823
|
}
|
|
@@ -806,7 +825,7 @@ var sr = function() {
|
|
|
806
825
|
var r = new e();
|
|
807
826
|
return r.source = this, r.operator = t, r;
|
|
808
827
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
809
|
-
var i = this, o =
|
|
828
|
+
var i = this, o = qn(t) ? t : new Ct(t, r, n);
|
|
810
829
|
return st(function() {
|
|
811
830
|
var s = i, a = s.operator, u = s.source;
|
|
812
831
|
o.add(a ? a.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -819,8 +838,8 @@ var sr = function() {
|
|
|
819
838
|
}
|
|
820
839
|
}, e.prototype.forEach = function(t, r) {
|
|
821
840
|
var n = this;
|
|
822
|
-
return r =
|
|
823
|
-
var s = new
|
|
841
|
+
return r = rr(r), new r(function(i, o) {
|
|
842
|
+
var s = new Ct({
|
|
824
843
|
next: function(a) {
|
|
825
844
|
try {
|
|
826
845
|
t(a);
|
|
@@ -836,15 +855,15 @@ var sr = function() {
|
|
|
836
855
|
}, e.prototype._subscribe = function(t) {
|
|
837
856
|
var r;
|
|
838
857
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
839
|
-
}, e.prototype[
|
|
858
|
+
}, e.prototype[zn] = function() {
|
|
840
859
|
return this;
|
|
841
860
|
}, e.prototype.pipe = function() {
|
|
842
861
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
843
862
|
t[r] = arguments[r];
|
|
844
|
-
return
|
|
863
|
+
return Wn(t)(this);
|
|
845
864
|
}, e.prototype.toPromise = function(t) {
|
|
846
865
|
var r = this;
|
|
847
|
-
return t =
|
|
866
|
+
return t = rr(t), new t(function(n, i) {
|
|
848
867
|
var o;
|
|
849
868
|
r.subscribe(function(s) {
|
|
850
869
|
return o = s;
|
|
@@ -858,32 +877,32 @@ var sr = function() {
|
|
|
858
877
|
return new e(t);
|
|
859
878
|
}, e;
|
|
860
879
|
}();
|
|
861
|
-
function
|
|
880
|
+
function rr(e) {
|
|
862
881
|
var t;
|
|
863
|
-
return (t = e != null ? e :
|
|
882
|
+
return (t = e != null ? e : Dn.Promise) !== null && t !== void 0 ? t : Promise;
|
|
864
883
|
}
|
|
865
|
-
function
|
|
866
|
-
return e &&
|
|
884
|
+
function Zn(e) {
|
|
885
|
+
return e && ae(e.next) && ae(e.error) && ae(e.complete);
|
|
867
886
|
}
|
|
868
|
-
function
|
|
869
|
-
return e && e instanceof
|
|
887
|
+
function qn(e) {
|
|
888
|
+
return e && e instanceof Lr || Zn(e) && Cr(e);
|
|
870
889
|
}
|
|
871
|
-
var
|
|
890
|
+
var Jn = Ir(function(e) {
|
|
872
891
|
return function() {
|
|
873
892
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
874
893
|
};
|
|
875
|
-
}),
|
|
876
|
-
|
|
894
|
+
}), Mr = function(e) {
|
|
895
|
+
le(t, e);
|
|
877
896
|
function t() {
|
|
878
897
|
var r = e.call(this) || this;
|
|
879
898
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
880
899
|
}
|
|
881
900
|
return t.prototype.lift = function(r) {
|
|
882
|
-
var n = new
|
|
901
|
+
var n = new nr(this, this);
|
|
883
902
|
return n.operator = r, n;
|
|
884
903
|
}, t.prototype._throwIfClosed = function() {
|
|
885
904
|
if (this.closed)
|
|
886
|
-
throw new
|
|
905
|
+
throw new Jn();
|
|
887
906
|
}, t.prototype.next = function(r) {
|
|
888
907
|
var n = this;
|
|
889
908
|
st(function() {
|
|
@@ -891,7 +910,7 @@ var ei = Nr(function(e) {
|
|
|
891
910
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
892
911
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
893
912
|
try {
|
|
894
|
-
for (var s =
|
|
913
|
+
for (var s = At(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
895
914
|
var u = a.value;
|
|
896
915
|
u.next(r);
|
|
897
916
|
}
|
|
@@ -940,20 +959,20 @@ var ei = Nr(function(e) {
|
|
|
940
959
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
941
960
|
}, t.prototype._innerSubscribe = function(r) {
|
|
942
961
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
943
|
-
return o || s ?
|
|
944
|
-
n.currentObservers = null,
|
|
962
|
+
return o || s ? Or : (this.currentObservers = null, a.push(r), new ft(function() {
|
|
963
|
+
n.currentObservers = null, Ot(a, r);
|
|
945
964
|
}));
|
|
946
965
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
947
966
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
948
967
|
i ? r.error(o) : s && r.complete();
|
|
949
968
|
}, t.prototype.asObservable = function() {
|
|
950
|
-
var r = new
|
|
969
|
+
var r = new tr();
|
|
951
970
|
return r.source = this, r;
|
|
952
971
|
}, t.create = function(r, n) {
|
|
953
|
-
return new
|
|
972
|
+
return new nr(r, n);
|
|
954
973
|
}, t;
|
|
955
|
-
}(
|
|
956
|
-
|
|
974
|
+
}(tr), nr = function(e) {
|
|
975
|
+
le(t, e);
|
|
957
976
|
function t(r, n) {
|
|
958
977
|
var i = e.call(this) || this;
|
|
959
978
|
return i.destination = r, i.source = n, i;
|
|
@@ -969,17 +988,17 @@ var ei = Nr(function(e) {
|
|
|
969
988
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
970
989
|
}, t.prototype._subscribe = function(r) {
|
|
971
990
|
var n, i;
|
|
972
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
991
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Or;
|
|
973
992
|
}, t;
|
|
974
|
-
}(
|
|
993
|
+
}(Mr), Nr = {
|
|
975
994
|
now: function() {
|
|
976
|
-
return (
|
|
995
|
+
return (Nr.delegate || Date).now();
|
|
977
996
|
},
|
|
978
997
|
delegate: void 0
|
|
979
|
-
},
|
|
980
|
-
|
|
998
|
+
}, Qn = function(e) {
|
|
999
|
+
le(t, e);
|
|
981
1000
|
function t(r, n, i) {
|
|
982
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1001
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Nr);
|
|
983
1002
|
var o = e.call(this) || this;
|
|
984
1003
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
985
1004
|
}
|
|
@@ -999,15 +1018,15 @@ var ei = Nr(function(e) {
|
|
|
999
1018
|
l && o.splice(0, l + 1);
|
|
1000
1019
|
}
|
|
1001
1020
|
}, t;
|
|
1002
|
-
}(
|
|
1003
|
-
const
|
|
1004
|
-
if (
|
|
1005
|
-
const r = new
|
|
1006
|
-
|
|
1021
|
+
}(Mr);
|
|
1022
|
+
const ir = [], or = {}, Yn = (e, t = 0) => {
|
|
1023
|
+
if (ir.indexOf(e) == -1) {
|
|
1024
|
+
const r = new Qn(t);
|
|
1025
|
+
or[e] = r, ir.push(e);
|
|
1007
1026
|
}
|
|
1008
|
-
return
|
|
1027
|
+
return or[e];
|
|
1009
1028
|
}, He = [];
|
|
1010
|
-
function
|
|
1029
|
+
function Kn(e, t) {
|
|
1011
1030
|
return {
|
|
1012
1031
|
subscribe: mt(e, t).subscribe
|
|
1013
1032
|
};
|
|
@@ -1016,7 +1035,7 @@ function mt(e, t = Z) {
|
|
|
1016
1035
|
let r;
|
|
1017
1036
|
const n = /* @__PURE__ */ new Set();
|
|
1018
1037
|
function i(a) {
|
|
1019
|
-
if (
|
|
1038
|
+
if (Hr(e, a) && (e = a, r)) {
|
|
1020
1039
|
const u = !He.length;
|
|
1021
1040
|
for (const l of n)
|
|
1022
1041
|
l[1](), He.push(l, e);
|
|
@@ -1038,184 +1057,142 @@ function mt(e, t = Z) {
|
|
|
1038
1057
|
}
|
|
1039
1058
|
return { set: i, update: o, subscribe: s };
|
|
1040
1059
|
}
|
|
1041
|
-
function
|
|
1060
|
+
function Re(e, t, r) {
|
|
1042
1061
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1043
1062
|
if (!i.every(Boolean))
|
|
1044
1063
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1045
1064
|
const o = t.length < 2;
|
|
1046
|
-
return
|
|
1065
|
+
return Kn(r, (s, a) => {
|
|
1047
1066
|
let u = !1;
|
|
1048
1067
|
const l = [];
|
|
1049
1068
|
let c = 0, f = Z;
|
|
1050
|
-
const
|
|
1069
|
+
const m = () => {
|
|
1051
1070
|
if (c)
|
|
1052
1071
|
return;
|
|
1053
1072
|
f();
|
|
1054
1073
|
const y = t(n ? l[0] : l, s, a);
|
|
1055
|
-
o ? s(y) : f =
|
|
1074
|
+
o ? s(y) : f = Gt(y) ? y : Z;
|
|
1056
1075
|
}, b = i.map(
|
|
1057
|
-
(y, g) =>
|
|
1076
|
+
(y, g) => Br(
|
|
1058
1077
|
y,
|
|
1059
|
-
(
|
|
1060
|
-
l[g] =
|
|
1078
|
+
(S) => {
|
|
1079
|
+
l[g] = S, c &= ~(1 << g), u && m();
|
|
1061
1080
|
},
|
|
1062
1081
|
() => {
|
|
1063
1082
|
c |= 1 << g;
|
|
1064
1083
|
}
|
|
1065
1084
|
)
|
|
1066
1085
|
);
|
|
1067
|
-
return u = !0,
|
|
1068
|
-
|
|
1086
|
+
return u = !0, m(), function() {
|
|
1087
|
+
Ne(b), f(), u = !1;
|
|
1069
1088
|
};
|
|
1070
1089
|
});
|
|
1071
1090
|
}
|
|
1072
|
-
function
|
|
1091
|
+
function ei(e) {
|
|
1073
1092
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1074
1093
|
}
|
|
1075
|
-
var
|
|
1076
|
-
return
|
|
1094
|
+
var ti = function(t) {
|
|
1095
|
+
return ri(t) && !ni(t);
|
|
1077
1096
|
};
|
|
1078
|
-
function
|
|
1097
|
+
function ri(e) {
|
|
1079
1098
|
return !!e && typeof e == "object";
|
|
1080
1099
|
}
|
|
1081
|
-
function
|
|
1100
|
+
function ni(e) {
|
|
1082
1101
|
var t = Object.prototype.toString.call(e);
|
|
1083
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1102
|
+
return t === "[object RegExp]" || t === "[object Date]" || si(e);
|
|
1084
1103
|
}
|
|
1085
|
-
var
|
|
1086
|
-
function
|
|
1087
|
-
return e.$$typeof ===
|
|
1104
|
+
var ii = typeof Symbol == "function" && Symbol.for, oi = ii ? Symbol.for("react.element") : 60103;
|
|
1105
|
+
function si(e) {
|
|
1106
|
+
return e.$$typeof === oi;
|
|
1088
1107
|
}
|
|
1089
|
-
function
|
|
1108
|
+
function ai(e) {
|
|
1090
1109
|
return Array.isArray(e) ? [] : {};
|
|
1091
1110
|
}
|
|
1092
|
-
function
|
|
1093
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1111
|
+
function We(e, t) {
|
|
1112
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Oe(ai(e), e, t) : e;
|
|
1094
1113
|
}
|
|
1095
|
-
function
|
|
1114
|
+
function li(e, t, r) {
|
|
1096
1115
|
return e.concat(t).map(function(n) {
|
|
1097
|
-
return
|
|
1116
|
+
return We(n, r);
|
|
1098
1117
|
});
|
|
1099
1118
|
}
|
|
1100
|
-
function
|
|
1119
|
+
function ui(e, t) {
|
|
1101
1120
|
if (!t.customMerge)
|
|
1102
|
-
return
|
|
1121
|
+
return Oe;
|
|
1103
1122
|
var r = t.customMerge(e);
|
|
1104
|
-
return typeof r == "function" ? r :
|
|
1123
|
+
return typeof r == "function" ? r : Oe;
|
|
1105
1124
|
}
|
|
1106
|
-
function
|
|
1125
|
+
function ci(e) {
|
|
1107
1126
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1108
1127
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1109
1128
|
}) : [];
|
|
1110
1129
|
}
|
|
1111
|
-
function
|
|
1112
|
-
return Object.keys(e).concat(
|
|
1130
|
+
function sr(e) {
|
|
1131
|
+
return Object.keys(e).concat(ci(e));
|
|
1113
1132
|
}
|
|
1114
|
-
function
|
|
1133
|
+
function Rr(e, t) {
|
|
1115
1134
|
try {
|
|
1116
1135
|
return t in e;
|
|
1117
1136
|
} catch (r) {
|
|
1118
1137
|
return !1;
|
|
1119
1138
|
}
|
|
1120
1139
|
}
|
|
1121
|
-
function
|
|
1122
|
-
return
|
|
1140
|
+
function hi(e, t) {
|
|
1141
|
+
return Rr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1123
1142
|
}
|
|
1124
|
-
function
|
|
1143
|
+
function fi(e, t, r) {
|
|
1125
1144
|
var n = {};
|
|
1126
|
-
return r.isMergeableObject(e) &&
|
|
1127
|
-
n[i] =
|
|
1128
|
-
}),
|
|
1129
|
-
|
|
1145
|
+
return r.isMergeableObject(e) && sr(e).forEach(function(i) {
|
|
1146
|
+
n[i] = We(e[i], r);
|
|
1147
|
+
}), sr(t).forEach(function(i) {
|
|
1148
|
+
hi(e, i) || (Rr(e, i) && r.isMergeableObject(t[i]) ? n[i] = ui(i, r)(e[i], t[i], r) : n[i] = We(t[i], r));
|
|
1130
1149
|
}), n;
|
|
1131
1150
|
}
|
|
1132
|
-
function
|
|
1133
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1151
|
+
function Oe(e, t, r) {
|
|
1152
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || li, r.isMergeableObject = r.isMergeableObject || ti, r.cloneUnlessOtherwiseSpecified = We;
|
|
1134
1153
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1135
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1154
|
+
return o ? n ? r.arrayMerge(e, t, r) : fi(e, t, r) : We(t, r);
|
|
1136
1155
|
}
|
|
1137
|
-
|
|
1156
|
+
Oe.all = function(t, r) {
|
|
1138
1157
|
if (!Array.isArray(t))
|
|
1139
1158
|
throw new Error("first argument should be an array");
|
|
1140
1159
|
return t.reduce(function(n, i) {
|
|
1141
|
-
return
|
|
1160
|
+
return Oe(n, i, r);
|
|
1142
1161
|
}, {});
|
|
1143
1162
|
};
|
|
1144
|
-
var
|
|
1145
|
-
const
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
r.__proto__ = n;
|
|
1149
|
-
} || function(r, n) {
|
|
1150
|
-
for (var i in n)
|
|
1151
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1152
|
-
}, Ut(e, t);
|
|
1153
|
-
};
|
|
1154
|
-
function pt(e, t) {
|
|
1155
|
-
if (typeof t != "function" && t !== null)
|
|
1156
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1157
|
-
Ut(e, t);
|
|
1158
|
-
function r() {
|
|
1159
|
-
this.constructor = e;
|
|
1160
|
-
}
|
|
1161
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1162
|
-
}
|
|
1163
|
-
var oe = function() {
|
|
1164
|
-
return oe = Object.assign || function(t) {
|
|
1165
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1166
|
-
r = arguments[n];
|
|
1167
|
-
for (var o in r)
|
|
1168
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1169
|
-
}
|
|
1170
|
-
return t;
|
|
1171
|
-
}, oe.apply(this, arguments);
|
|
1172
|
-
};
|
|
1173
|
-
function _i(e, t) {
|
|
1174
|
-
var r = {};
|
|
1175
|
-
for (var n in e)
|
|
1176
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1177
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1178
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1179
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1180
|
-
return r;
|
|
1181
|
-
}
|
|
1182
|
-
function xt(e, t, r) {
|
|
1183
|
-
if (r || arguments.length === 2)
|
|
1184
|
-
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1185
|
-
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1186
|
-
return e.concat(o || Array.prototype.slice.call(t));
|
|
1187
|
-
}
|
|
1188
|
-
function St(e, t) {
|
|
1189
|
-
var r = t && t.cache ? t.cache : Hi, n = t && t.serializer ? t.serializer : Pi, i = t && t.strategy ? t.strategy : xi;
|
|
1163
|
+
var mi = Oe, di = mi;
|
|
1164
|
+
const pi = /* @__PURE__ */ ei(di);
|
|
1165
|
+
function wt(e, t) {
|
|
1166
|
+
var r = t && t.cache ? t.cache : Ei, n = t && t.serializer ? t.serializer : _i, i = t && t.strategy ? t.strategy : vi;
|
|
1190
1167
|
return i(e, {
|
|
1191
1168
|
cache: r,
|
|
1192
1169
|
serializer: n
|
|
1193
1170
|
});
|
|
1194
1171
|
}
|
|
1195
|
-
function
|
|
1172
|
+
function gi(e) {
|
|
1196
1173
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1197
1174
|
}
|
|
1198
|
-
function
|
|
1199
|
-
var i =
|
|
1175
|
+
function bi(e, t, r, n) {
|
|
1176
|
+
var i = gi(n) ? n : r(n), o = t.get(i);
|
|
1200
1177
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1201
1178
|
}
|
|
1202
|
-
function
|
|
1179
|
+
function Ur(e, t, r) {
|
|
1203
1180
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1204
1181
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1205
1182
|
}
|
|
1206
|
-
function
|
|
1183
|
+
function Fr(e, t, r, n, i) {
|
|
1207
1184
|
return r.bind(t, e, n, i);
|
|
1208
1185
|
}
|
|
1209
|
-
function
|
|
1210
|
-
var r = e.length === 1 ?
|
|
1211
|
-
return
|
|
1186
|
+
function vi(e, t) {
|
|
1187
|
+
var r = e.length === 1 ? bi : Ur;
|
|
1188
|
+
return Fr(e, this, r, t.cache.create(), t.serializer);
|
|
1212
1189
|
}
|
|
1213
|
-
function
|
|
1214
|
-
return
|
|
1190
|
+
function yi(e, t) {
|
|
1191
|
+
return Fr(e, this, Ur, t.cache.create(), t.serializer);
|
|
1215
1192
|
}
|
|
1216
|
-
var
|
|
1193
|
+
var _i = function() {
|
|
1217
1194
|
return JSON.stringify(arguments);
|
|
1218
|
-
},
|
|
1195
|
+
}, wi = (
|
|
1219
1196
|
/** @class */
|
|
1220
1197
|
function() {
|
|
1221
1198
|
function e() {
|
|
@@ -1227,71 +1204,61 @@ var Pi = function() {
|
|
|
1227
1204
|
this.cache[t] = r;
|
|
1228
1205
|
}, e;
|
|
1229
1206
|
}()
|
|
1230
|
-
),
|
|
1207
|
+
), Ei = {
|
|
1231
1208
|
create: function() {
|
|
1232
|
-
return new
|
|
1209
|
+
return new wi();
|
|
1233
1210
|
}
|
|
1234
|
-
},
|
|
1235
|
-
variadic:
|
|
1236
|
-
},
|
|
1237
|
-
return ct = Object.assign || function(t) {
|
|
1238
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1239
|
-
r = arguments[n];
|
|
1240
|
-
for (var o in r)
|
|
1241
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1242
|
-
}
|
|
1243
|
-
return t;
|
|
1244
|
-
}, ct.apply(this, arguments);
|
|
1245
|
-
};
|
|
1246
|
-
var _;
|
|
1211
|
+
}, Et = {
|
|
1212
|
+
variadic: yi
|
|
1213
|
+
}, _;
|
|
1247
1214
|
(function(e) {
|
|
1248
1215
|
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";
|
|
1249
1216
|
})(_ || (_ = {}));
|
|
1250
|
-
var
|
|
1217
|
+
var T;
|
|
1251
1218
|
(function(e) {
|
|
1252
1219
|
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";
|
|
1253
|
-
})(
|
|
1254
|
-
var
|
|
1220
|
+
})(T || (T = {}));
|
|
1221
|
+
var Ce;
|
|
1255
1222
|
(function(e) {
|
|
1256
1223
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1257
|
-
})(
|
|
1258
|
-
function
|
|
1259
|
-
return e.type ===
|
|
1224
|
+
})(Ce || (Ce = {}));
|
|
1225
|
+
function ar(e) {
|
|
1226
|
+
return e.type === T.literal;
|
|
1260
1227
|
}
|
|
1261
|
-
function
|
|
1262
|
-
return e.type ===
|
|
1228
|
+
function xi(e) {
|
|
1229
|
+
return e.type === T.argument;
|
|
1263
1230
|
}
|
|
1264
|
-
function
|
|
1265
|
-
return e.type ===
|
|
1231
|
+
function Dr(e) {
|
|
1232
|
+
return e.type === T.number;
|
|
1266
1233
|
}
|
|
1267
|
-
function
|
|
1268
|
-
return e.type ===
|
|
1234
|
+
function kr(e) {
|
|
1235
|
+
return e.type === T.date;
|
|
1269
1236
|
}
|
|
1270
|
-
function
|
|
1271
|
-
return e.type ===
|
|
1237
|
+
function Gr(e) {
|
|
1238
|
+
return e.type === T.time;
|
|
1272
1239
|
}
|
|
1273
|
-
function
|
|
1274
|
-
return e.type ===
|
|
1240
|
+
function $r(e) {
|
|
1241
|
+
return e.type === T.select;
|
|
1275
1242
|
}
|
|
1276
|
-
function
|
|
1277
|
-
return e.type ===
|
|
1243
|
+
function jr(e) {
|
|
1244
|
+
return e.type === T.plural;
|
|
1278
1245
|
}
|
|
1279
|
-
function
|
|
1280
|
-
return e.type ===
|
|
1246
|
+
function Si(e) {
|
|
1247
|
+
return e.type === T.pound;
|
|
1281
1248
|
}
|
|
1282
|
-
function
|
|
1283
|
-
return e.type ===
|
|
1249
|
+
function Vr(e) {
|
|
1250
|
+
return e.type === T.tag;
|
|
1284
1251
|
}
|
|
1285
|
-
function
|
|
1286
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1252
|
+
function zr(e) {
|
|
1253
|
+
return !!(e && typeof e == "object" && e.type === Ce.number);
|
|
1287
1254
|
}
|
|
1288
|
-
function
|
|
1289
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1255
|
+
function Lt(e) {
|
|
1256
|
+
return !!(e && typeof e == "object" && e.type === Ce.dateTime);
|
|
1290
1257
|
}
|
|
1291
|
-
var
|
|
1292
|
-
function
|
|
1258
|
+
var Xr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Pi = /(?:[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;
|
|
1259
|
+
function Ti(e) {
|
|
1293
1260
|
var t = {};
|
|
1294
|
-
return e.replace(
|
|
1261
|
+
return e.replace(Pi, function(r) {
|
|
1295
1262
|
var n = r.length;
|
|
1296
1263
|
switch (r[0]) {
|
|
1297
1264
|
case "G":
|
|
@@ -1380,22 +1347,12 @@ function Oi(e) {
|
|
|
1380
1347
|
return "";
|
|
1381
1348
|
}), t;
|
|
1382
1349
|
}
|
|
1383
|
-
var
|
|
1384
|
-
|
|
1385
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1386
|
-
r = arguments[n];
|
|
1387
|
-
for (var o in r)
|
|
1388
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1389
|
-
}
|
|
1390
|
-
return t;
|
|
1391
|
-
}, T.apply(this, arguments);
|
|
1392
|
-
};
|
|
1393
|
-
var Ci = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1394
|
-
function Li(e) {
|
|
1350
|
+
var Hi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1351
|
+
function Bi(e) {
|
|
1395
1352
|
if (e.length === 0)
|
|
1396
1353
|
throw new Error("Number skeleton cannot be empty");
|
|
1397
|
-
for (var t = e.split(
|
|
1398
|
-
return
|
|
1354
|
+
for (var t = e.split(Hi).filter(function(m) {
|
|
1355
|
+
return m.length > 0;
|
|
1399
1356
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1400
1357
|
var o = i[n], s = o.split("/");
|
|
1401
1358
|
if (s.length === 0)
|
|
@@ -1409,17 +1366,17 @@ function Li(e) {
|
|
|
1409
1366
|
}
|
|
1410
1367
|
return r;
|
|
1411
1368
|
}
|
|
1412
|
-
function
|
|
1369
|
+
function Ai(e) {
|
|
1413
1370
|
return e.replace(/^(.*?)-/, "");
|
|
1414
1371
|
}
|
|
1415
|
-
var
|
|
1416
|
-
function
|
|
1372
|
+
var lr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Wr = /^(@+)?(\+|#+)?[rs]?$/g, Ii = /(\*)(0+)|(#+)(0+)|(0+)/g, Zr = /^(0+)$/;
|
|
1373
|
+
function ur(e) {
|
|
1417
1374
|
var t = {};
|
|
1418
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1375
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Wr, function(r, n, i) {
|
|
1419
1376
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1420
1377
|
}), t;
|
|
1421
1378
|
}
|
|
1422
|
-
function
|
|
1379
|
+
function qr(e) {
|
|
1423
1380
|
switch (e) {
|
|
1424
1381
|
case "sign-auto":
|
|
1425
1382
|
return {
|
|
@@ -1459,7 +1416,7 @@ function en(e) {
|
|
|
1459
1416
|
};
|
|
1460
1417
|
}
|
|
1461
1418
|
}
|
|
1462
|
-
function
|
|
1419
|
+
function Oi(e) {
|
|
1463
1420
|
var t;
|
|
1464
1421
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1465
1422
|
notation: "engineering"
|
|
@@ -1467,17 +1424,17 @@ function Ri(e) {
|
|
|
1467
1424
|
notation: "scientific"
|
|
1468
1425
|
}, e = e.slice(1)), t) {
|
|
1469
1426
|
var r = e.slice(0, 2);
|
|
1470
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1427
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Zr.test(e))
|
|
1471
1428
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1472
1429
|
t.minimumIntegerDigits = e.length;
|
|
1473
1430
|
}
|
|
1474
1431
|
return t;
|
|
1475
1432
|
}
|
|
1476
|
-
function
|
|
1477
|
-
var t = {}, r =
|
|
1433
|
+
function cr(e) {
|
|
1434
|
+
var t = {}, r = qr(e);
|
|
1478
1435
|
return r || t;
|
|
1479
1436
|
}
|
|
1480
|
-
function
|
|
1437
|
+
function Ci(e) {
|
|
1481
1438
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1482
1439
|
var i = n[r];
|
|
1483
1440
|
switch (i.stem) {
|
|
@@ -1501,7 +1458,7 @@ function Ui(e) {
|
|
|
1501
1458
|
continue;
|
|
1502
1459
|
case "measure-unit":
|
|
1503
1460
|
case "unit":
|
|
1504
|
-
t.style = "unit", t.unit =
|
|
1461
|
+
t.style = "unit", t.unit = Ai(i.options[0]);
|
|
1505
1462
|
continue;
|
|
1506
1463
|
case "compact-short":
|
|
1507
1464
|
case "K":
|
|
@@ -1512,13 +1469,13 @@ function Ui(e) {
|
|
|
1512
1469
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1513
1470
|
continue;
|
|
1514
1471
|
case "scientific":
|
|
1515
|
-
t =
|
|
1516
|
-
return
|
|
1472
|
+
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
|
|
1473
|
+
return E(E({}, u), cr(l));
|
|
1517
1474
|
}, {}));
|
|
1518
1475
|
continue;
|
|
1519
1476
|
case "engineering":
|
|
1520
|
-
t =
|
|
1521
|
-
return
|
|
1477
|
+
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
|
|
1478
|
+
return E(E({}, u), cr(l));
|
|
1522
1479
|
}, {}));
|
|
1523
1480
|
continue;
|
|
1524
1481
|
case "notation-simple":
|
|
@@ -1563,11 +1520,11 @@ function Ui(e) {
|
|
|
1563
1520
|
case "integer-width":
|
|
1564
1521
|
if (i.options.length > 1)
|
|
1565
1522
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1566
|
-
i.options[0].replace(
|
|
1523
|
+
i.options[0].replace(Ii, function(u, l, c, f, m, b) {
|
|
1567
1524
|
if (l)
|
|
1568
1525
|
t.minimumIntegerDigits = c.length;
|
|
1569
1526
|
else {
|
|
1570
|
-
if (f &&
|
|
1527
|
+
if (f && m)
|
|
1571
1528
|
throw new Error("We currently do not support maximum integer digits");
|
|
1572
1529
|
if (b)
|
|
1573
1530
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1576,28 +1533,28 @@ function Ui(e) {
|
|
|
1576
1533
|
});
|
|
1577
1534
|
continue;
|
|
1578
1535
|
}
|
|
1579
|
-
if (
|
|
1536
|
+
if (Zr.test(i.stem)) {
|
|
1580
1537
|
t.minimumIntegerDigits = i.stem.length;
|
|
1581
1538
|
continue;
|
|
1582
1539
|
}
|
|
1583
|
-
if (
|
|
1540
|
+
if (lr.test(i.stem)) {
|
|
1584
1541
|
if (i.options.length > 1)
|
|
1585
1542
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1586
|
-
i.stem.replace(
|
|
1587
|
-
return c === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length :
|
|
1543
|
+
i.stem.replace(lr, function(u, l, c, f, m, b) {
|
|
1544
|
+
return c === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : m && b ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + b.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1588
1545
|
});
|
|
1589
1546
|
var o = i.options[0];
|
|
1590
|
-
o === "w" ? t =
|
|
1547
|
+
o === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = E(E({}, t), ur(o)));
|
|
1591
1548
|
continue;
|
|
1592
1549
|
}
|
|
1593
|
-
if (
|
|
1594
|
-
t =
|
|
1550
|
+
if (Wr.test(i.stem)) {
|
|
1551
|
+
t = E(E({}, t), ur(i.stem));
|
|
1595
1552
|
continue;
|
|
1596
1553
|
}
|
|
1597
|
-
var s =
|
|
1598
|
-
s && (t =
|
|
1599
|
-
var a =
|
|
1600
|
-
a && (t =
|
|
1554
|
+
var s = qr(i.stem);
|
|
1555
|
+
s && (t = E(E({}, t), s));
|
|
1556
|
+
var a = Oi(i.stem);
|
|
1557
|
+
a && (t = E(E({}, t), a));
|
|
1601
1558
|
}
|
|
1602
1559
|
return t;
|
|
1603
1560
|
}
|
|
@@ -3016,13 +2973,13 @@ var it = {
|
|
|
3016
2973
|
"h"
|
|
3017
2974
|
]
|
|
3018
2975
|
};
|
|
3019
|
-
function
|
|
2976
|
+
function Li(e, t) {
|
|
3020
2977
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3021
2978
|
var i = e.charAt(n);
|
|
3022
2979
|
if (i === "j") {
|
|
3023
2980
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3024
2981
|
o++, n++;
|
|
3025
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", l =
|
|
2982
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = Mi(t);
|
|
3026
2983
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
|
3027
2984
|
r += u;
|
|
3028
2985
|
for (; s-- > 0; )
|
|
@@ -3032,7 +2989,7 @@ function Fi(e, t) {
|
|
|
3032
2989
|
}
|
|
3033
2990
|
return r;
|
|
3034
2991
|
}
|
|
3035
|
-
function
|
|
2992
|
+
function Mi(e) {
|
|
3036
2993
|
var t = e.hourCycle;
|
|
3037
2994
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3038
2995
|
e.hourCycles && // @ts-ignore
|
|
@@ -3054,20 +3011,20 @@ function Di(e) {
|
|
|
3054
3011
|
var i = it[n || ""] || it[r || ""] || it["".concat(r, "-001")] || it["001"];
|
|
3055
3012
|
return i[0];
|
|
3056
3013
|
}
|
|
3057
|
-
var
|
|
3014
|
+
var xt, Ni = new RegExp("^".concat(Xr.source, "*")), Ri = new RegExp("".concat(Xr.source, "*$"));
|
|
3058
3015
|
function w(e, t) {
|
|
3059
3016
|
return { start: e, end: t };
|
|
3060
3017
|
}
|
|
3061
|
-
var
|
|
3018
|
+
var Ui = !!String.prototype.startsWith && "_a".startsWith("a", 1), Fi = !!String.fromCodePoint, Di = !!Object.fromEntries, ki = !!String.prototype.codePointAt, Gi = !!String.prototype.trimStart, $i = !!String.prototype.trimEnd, ji = !!Number.isSafeInteger, Vi = ji ? Number.isSafeInteger : function(e) {
|
|
3062
3019
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3063
|
-
},
|
|
3020
|
+
}, Mt = !0;
|
|
3064
3021
|
try {
|
|
3065
|
-
var
|
|
3066
|
-
|
|
3022
|
+
var zi = Qr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3023
|
+
Mt = ((xt = zi.exec("a")) === null || xt === void 0 ? void 0 : xt[0]) === "a";
|
|
3067
3024
|
} catch (e) {
|
|
3068
|
-
|
|
3025
|
+
Mt = !1;
|
|
3069
3026
|
}
|
|
3070
|
-
var
|
|
3027
|
+
var hr = Ui ? (
|
|
3071
3028
|
// Native
|
|
3072
3029
|
function(t, r, n) {
|
|
3073
3030
|
return t.startsWith(r, n);
|
|
@@ -3077,7 +3034,7 @@ var gr = Gi ? (
|
|
|
3077
3034
|
function(t, r, n) {
|
|
3078
3035
|
return t.slice(n, n + r.length) === r;
|
|
3079
3036
|
}
|
|
3080
|
-
),
|
|
3037
|
+
), Nt = Fi ? String.fromCodePoint : (
|
|
3081
3038
|
// IE11
|
|
3082
3039
|
function() {
|
|
3083
3040
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3089,9 +3046,9 @@ var gr = Gi ? (
|
|
|
3089
3046
|
}
|
|
3090
3047
|
return n;
|
|
3091
3048
|
}
|
|
3092
|
-
),
|
|
3049
|
+
), fr = (
|
|
3093
3050
|
// native
|
|
3094
|
-
|
|
3051
|
+
Di ? Object.fromEntries : (
|
|
3095
3052
|
// Ponyfill
|
|
3096
3053
|
function(t) {
|
|
3097
3054
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3101,7 +3058,7 @@ var gr = Gi ? (
|
|
|
3101
3058
|
return r;
|
|
3102
3059
|
}
|
|
3103
3060
|
)
|
|
3104
|
-
),
|
|
3061
|
+
), Jr = ki ? (
|
|
3105
3062
|
// Native
|
|
3106
3063
|
function(t, r) {
|
|
3107
3064
|
return t.codePointAt(r);
|
|
@@ -3115,7 +3072,7 @@ var gr = Gi ? (
|
|
|
3115
3072
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3116
3073
|
}
|
|
3117
3074
|
}
|
|
3118
|
-
),
|
|
3075
|
+
), Xi = Gi ? (
|
|
3119
3076
|
// Native
|
|
3120
3077
|
function(t) {
|
|
3121
3078
|
return t.trimStart();
|
|
@@ -3123,9 +3080,9 @@ var gr = Gi ? (
|
|
|
3123
3080
|
) : (
|
|
3124
3081
|
// Ponyfill
|
|
3125
3082
|
function(t) {
|
|
3126
|
-
return t.replace(
|
|
3083
|
+
return t.replace(Ni, "");
|
|
3127
3084
|
}
|
|
3128
|
-
),
|
|
3085
|
+
), Wi = $i ? (
|
|
3129
3086
|
// Native
|
|
3130
3087
|
function(t) {
|
|
3131
3088
|
return t.trimEnd();
|
|
@@ -3133,32 +3090,32 @@ var gr = Gi ? (
|
|
|
3133
3090
|
) : (
|
|
3134
3091
|
// Ponyfill
|
|
3135
3092
|
function(t) {
|
|
3136
|
-
return t.replace(
|
|
3093
|
+
return t.replace(Ri, "");
|
|
3137
3094
|
}
|
|
3138
3095
|
);
|
|
3139
|
-
function
|
|
3096
|
+
function Qr(e, t) {
|
|
3140
3097
|
return new RegExp(e, t);
|
|
3141
3098
|
}
|
|
3142
|
-
var
|
|
3143
|
-
if (
|
|
3144
|
-
var
|
|
3145
|
-
|
|
3099
|
+
var Rt;
|
|
3100
|
+
if (Mt) {
|
|
3101
|
+
var mr = Qr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3102
|
+
Rt = function(t, r) {
|
|
3146
3103
|
var n;
|
|
3147
|
-
|
|
3148
|
-
var i =
|
|
3104
|
+
mr.lastIndex = r;
|
|
3105
|
+
var i = mr.exec(t);
|
|
3149
3106
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3150
3107
|
};
|
|
3151
3108
|
} else
|
|
3152
|
-
|
|
3109
|
+
Rt = function(t, r) {
|
|
3153
3110
|
for (var n = []; ; ) {
|
|
3154
|
-
var i =
|
|
3155
|
-
if (i === void 0 ||
|
|
3111
|
+
var i = Jr(t, r);
|
|
3112
|
+
if (i === void 0 || Yr(i) || Qi(i))
|
|
3156
3113
|
break;
|
|
3157
3114
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3158
3115
|
}
|
|
3159
|
-
return
|
|
3116
|
+
return Nt.apply(void 0, n);
|
|
3160
3117
|
};
|
|
3161
|
-
var
|
|
3118
|
+
var Zi = (
|
|
3162
3119
|
/** @class */
|
|
3163
3120
|
function() {
|
|
3164
3121
|
function e(t, r) {
|
|
@@ -3182,14 +3139,14 @@ var Ki = (
|
|
|
3182
3139
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3183
3140
|
var a = this.clonePosition();
|
|
3184
3141
|
this.bump(), i.push({
|
|
3185
|
-
type:
|
|
3142
|
+
type: T.pound,
|
|
3186
3143
|
location: w(a, this.clonePosition())
|
|
3187
3144
|
});
|
|
3188
3145
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3189
3146
|
if (n)
|
|
3190
3147
|
break;
|
|
3191
3148
|
return this.error(_.UNMATCHED_CLOSING_TAG, w(this.clonePosition(), this.clonePosition()));
|
|
3192
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3149
|
+
} else if (o === 60 && !this.ignoreTag && Ut(this.peek() || 0)) {
|
|
3193
3150
|
var s = this.parseTag(t, r);
|
|
3194
3151
|
if (s.err)
|
|
3195
3152
|
return s;
|
|
@@ -3210,7 +3167,7 @@ var Ki = (
|
|
|
3210
3167
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3211
3168
|
return {
|
|
3212
3169
|
val: {
|
|
3213
|
-
type:
|
|
3170
|
+
type: T.literal,
|
|
3214
3171
|
value: "<".concat(i, "/>"),
|
|
3215
3172
|
location: w(n, this.clonePosition())
|
|
3216
3173
|
},
|
|
@@ -3222,12 +3179,12 @@ var Ki = (
|
|
|
3222
3179
|
return o;
|
|
3223
3180
|
var s = o.val, a = this.clonePosition();
|
|
3224
3181
|
if (this.bumpIf("</")) {
|
|
3225
|
-
if (this.isEOF() || !
|
|
3182
|
+
if (this.isEOF() || !Ut(this.char()))
|
|
3226
3183
|
return this.error(_.INVALID_TAG, w(a, this.clonePosition()));
|
|
3227
3184
|
var u = this.clonePosition(), l = this.parseTagName();
|
|
3228
3185
|
return i !== l ? this.error(_.UNMATCHED_CLOSING_TAG, w(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3229
3186
|
val: {
|
|
3230
|
-
type:
|
|
3187
|
+
type: T.tag,
|
|
3231
3188
|
value: i,
|
|
3232
3189
|
children: s,
|
|
3233
3190
|
location: w(n, this.clonePosition())
|
|
@@ -3240,7 +3197,7 @@ var Ki = (
|
|
|
3240
3197
|
return this.error(_.INVALID_TAG, w(n, this.clonePosition()));
|
|
3241
3198
|
}, e.prototype.parseTagName = function() {
|
|
3242
3199
|
var t = this.offset();
|
|
3243
|
-
for (this.bump(); !this.isEOF() &&
|
|
3200
|
+
for (this.bump(); !this.isEOF() && Ji(this.char()); )
|
|
3244
3201
|
this.bump();
|
|
3245
3202
|
return this.message.slice(t, this.offset());
|
|
3246
3203
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3264,12 +3221,12 @@ var Ki = (
|
|
|
3264
3221
|
}
|
|
3265
3222
|
var u = w(n, this.clonePosition());
|
|
3266
3223
|
return {
|
|
3267
|
-
val: { type:
|
|
3224
|
+
val: { type: T.literal, value: i, location: u },
|
|
3268
3225
|
err: null
|
|
3269
3226
|
};
|
|
3270
3227
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3271
3228
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3272
|
-
!
|
|
3229
|
+
!qi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3273
3230
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3274
3231
|
if (this.isEOF() || this.char() !== 39)
|
|
3275
3232
|
return null;
|
|
@@ -3303,12 +3260,12 @@ var Ki = (
|
|
|
3303
3260
|
r.push(n);
|
|
3304
3261
|
this.bump();
|
|
3305
3262
|
}
|
|
3306
|
-
return
|
|
3263
|
+
return Nt.apply(void 0, r);
|
|
3307
3264
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3308
3265
|
if (this.isEOF())
|
|
3309
3266
|
return null;
|
|
3310
3267
|
var n = this.char();
|
|
3311
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3268
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Nt(n));
|
|
3312
3269
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3313
3270
|
var n = this.clonePosition();
|
|
3314
3271
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3324,7 +3281,7 @@ var Ki = (
|
|
|
3324
3281
|
case 125:
|
|
3325
3282
|
return this.bump(), {
|
|
3326
3283
|
val: {
|
|
3327
|
-
type:
|
|
3284
|
+
type: T.argument,
|
|
3328
3285
|
// value does not include the opening and closing braces.
|
|
3329
3286
|
value: i,
|
|
3330
3287
|
location: w(n, this.clonePosition())
|
|
@@ -3337,7 +3294,7 @@ var Ki = (
|
|
|
3337
3294
|
return this.error(_.MALFORMED_ARGUMENT, w(n, this.clonePosition()));
|
|
3338
3295
|
}
|
|
3339
3296
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3340
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3297
|
+
var t = this.clonePosition(), r = this.offset(), n = Rt(this.message, r), i = r + n.length;
|
|
3341
3298
|
this.bumpTo(i);
|
|
3342
3299
|
var o = this.clonePosition(), s = w(t, o);
|
|
3343
3300
|
return { value: n, location: s };
|
|
@@ -3356,44 +3313,44 @@ var Ki = (
|
|
|
3356
3313
|
var c = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3357
3314
|
if (f.err)
|
|
3358
3315
|
return f;
|
|
3359
|
-
var
|
|
3360
|
-
if (
|
|
3316
|
+
var m = Wi(f.val);
|
|
3317
|
+
if (m.length === 0)
|
|
3361
3318
|
return this.error(_.EXPECT_ARGUMENT_STYLE, w(this.clonePosition(), this.clonePosition()));
|
|
3362
3319
|
var b = w(c, this.clonePosition());
|
|
3363
|
-
l = { style:
|
|
3320
|
+
l = { style: m, styleLocation: b };
|
|
3364
3321
|
}
|
|
3365
3322
|
var y = this.tryParseArgumentClose(i);
|
|
3366
3323
|
if (y.err)
|
|
3367
3324
|
return y;
|
|
3368
3325
|
var g = w(i, this.clonePosition());
|
|
3369
|
-
if (l &&
|
|
3370
|
-
var
|
|
3326
|
+
if (l && hr(l == null ? void 0 : l.style, "::", 0)) {
|
|
3327
|
+
var S = Xi(l.style.slice(2));
|
|
3371
3328
|
if (a === "number") {
|
|
3372
|
-
var f = this.parseNumberSkeletonFromString(
|
|
3329
|
+
var f = this.parseNumberSkeletonFromString(S, l.styleLocation);
|
|
3373
3330
|
return f.err ? f : {
|
|
3374
|
-
val: { type:
|
|
3331
|
+
val: { type: T.number, value: n, location: g, style: f.val },
|
|
3375
3332
|
err: null
|
|
3376
3333
|
};
|
|
3377
3334
|
} else {
|
|
3378
|
-
if (
|
|
3335
|
+
if (S.length === 0)
|
|
3379
3336
|
return this.error(_.EXPECT_DATE_TIME_SKELETON, g);
|
|
3380
|
-
var O =
|
|
3381
|
-
this.locale && (O =
|
|
3382
|
-
var
|
|
3383
|
-
type:
|
|
3337
|
+
var O = S;
|
|
3338
|
+
this.locale && (O = Li(S, this.locale));
|
|
3339
|
+
var m = {
|
|
3340
|
+
type: Ce.dateTime,
|
|
3384
3341
|
pattern: O,
|
|
3385
3342
|
location: l.styleLocation,
|
|
3386
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3387
|
-
}, z = a === "date" ?
|
|
3343
|
+
parsedOptions: this.shouldParseSkeletons ? Ti(O) : {}
|
|
3344
|
+
}, z = a === "date" ? T.date : T.time;
|
|
3388
3345
|
return {
|
|
3389
|
-
val: { type: z, value: n, location: g, style:
|
|
3346
|
+
val: { type: z, value: n, location: g, style: m },
|
|
3390
3347
|
err: null
|
|
3391
3348
|
};
|
|
3392
3349
|
}
|
|
3393
3350
|
}
|
|
3394
3351
|
return {
|
|
3395
3352
|
val: {
|
|
3396
|
-
type: a === "number" ?
|
|
3353
|
+
type: a === "number" ? T.number : a === "date" ? T.date : T.time,
|
|
3397
3354
|
value: n,
|
|
3398
3355
|
location: g,
|
|
3399
3356
|
style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
|
|
@@ -3406,7 +3363,7 @@ var Ki = (
|
|
|
3406
3363
|
case "select": {
|
|
3407
3364
|
var R = this.clonePosition();
|
|
3408
3365
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3409
|
-
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, w(R,
|
|
3366
|
+
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, w(R, E({}, R)));
|
|
3410
3367
|
this.bumpSpace();
|
|
3411
3368
|
var U = this.parseIdentifierIfPossible(), A = 0;
|
|
3412
3369
|
if (a !== "select" && U.value === "offset") {
|
|
@@ -3427,17 +3384,17 @@ var Ki = (
|
|
|
3427
3384
|
var H = w(i, this.clonePosition());
|
|
3428
3385
|
return a === "select" ? {
|
|
3429
3386
|
val: {
|
|
3430
|
-
type:
|
|
3387
|
+
type: T.select,
|
|
3431
3388
|
value: n,
|
|
3432
|
-
options:
|
|
3389
|
+
options: fr(ne.val),
|
|
3433
3390
|
location: H
|
|
3434
3391
|
},
|
|
3435
3392
|
err: null
|
|
3436
3393
|
} : {
|
|
3437
3394
|
val: {
|
|
3438
|
-
type:
|
|
3395
|
+
type: T.plural,
|
|
3439
3396
|
value: n,
|
|
3440
|
-
options:
|
|
3397
|
+
options: fr(ne.val),
|
|
3441
3398
|
offset: A,
|
|
3442
3399
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3443
3400
|
location: H
|
|
@@ -3488,16 +3445,16 @@ var Ki = (
|
|
|
3488
3445
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3489
3446
|
var n = [];
|
|
3490
3447
|
try {
|
|
3491
|
-
n =
|
|
3448
|
+
n = Bi(t);
|
|
3492
3449
|
} catch (i) {
|
|
3493
3450
|
return this.error(_.INVALID_NUMBER_SKELETON, r);
|
|
3494
3451
|
}
|
|
3495
3452
|
return {
|
|
3496
3453
|
val: {
|
|
3497
|
-
type:
|
|
3454
|
+
type: Ce.number,
|
|
3498
3455
|
tokens: n,
|
|
3499
3456
|
location: r,
|
|
3500
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3457
|
+
parsedOptions: this.shouldParseSkeletons ? Ci(n) : {}
|
|
3501
3458
|
},
|
|
3502
3459
|
err: null
|
|
3503
3460
|
};
|
|
@@ -3506,9 +3463,9 @@ var Ki = (
|
|
|
3506
3463
|
if (l.length === 0) {
|
|
3507
3464
|
var f = this.clonePosition();
|
|
3508
3465
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3509
|
-
var
|
|
3510
|
-
if (
|
|
3511
|
-
return
|
|
3466
|
+
var m = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_SELECTOR, _.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3467
|
+
if (m.err)
|
|
3468
|
+
return m;
|
|
3512
3469
|
c = w(f, this.clonePosition()), l = this.message.slice(f.offset, this.offset());
|
|
3513
3470
|
} else
|
|
3514
3471
|
break;
|
|
@@ -3545,7 +3502,7 @@ var Ki = (
|
|
|
3545
3502
|
break;
|
|
3546
3503
|
}
|
|
3547
3504
|
var u = w(i, this.clonePosition());
|
|
3548
|
-
return o ? (s *= n,
|
|
3505
|
+
return o ? (s *= n, Vi(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
|
|
3549
3506
|
}, e.prototype.offset = function() {
|
|
3550
3507
|
return this.position.offset;
|
|
3551
3508
|
}, e.prototype.isEOF = function() {
|
|
@@ -3560,7 +3517,7 @@ var Ki = (
|
|
|
3560
3517
|
var t = this.position.offset;
|
|
3561
3518
|
if (t >= this.message.length)
|
|
3562
3519
|
throw Error("out of bound");
|
|
3563
|
-
var r =
|
|
3520
|
+
var r = Jr(this.message, t);
|
|
3564
3521
|
if (r === void 0)
|
|
3565
3522
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3566
3523
|
return r;
|
|
@@ -3579,7 +3536,7 @@ var Ki = (
|
|
|
3579
3536
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3580
3537
|
}
|
|
3581
3538
|
}, e.prototype.bumpIf = function(t) {
|
|
3582
|
-
if (
|
|
3539
|
+
if (hr(this.message, t, this.offset())) {
|
|
3583
3540
|
for (var r = 0; r < t.length; r++)
|
|
3584
3541
|
this.bump();
|
|
3585
3542
|
return !0;
|
|
@@ -3601,7 +3558,7 @@ var Ki = (
|
|
|
3601
3558
|
break;
|
|
3602
3559
|
}
|
|
3603
3560
|
}, e.prototype.bumpSpace = function() {
|
|
3604
|
-
for (; !this.isEOF() &&
|
|
3561
|
+
for (; !this.isEOF() && Yr(this.char()); )
|
|
3605
3562
|
this.bump();
|
|
3606
3563
|
}, e.prototype.peek = function() {
|
|
3607
3564
|
if (this.isEOF())
|
|
@@ -3611,47 +3568,47 @@ var Ki = (
|
|
|
3611
3568
|
}, e;
|
|
3612
3569
|
}()
|
|
3613
3570
|
);
|
|
3614
|
-
function
|
|
3571
|
+
function Ut(e) {
|
|
3615
3572
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3616
3573
|
}
|
|
3617
|
-
function
|
|
3618
|
-
return
|
|
3574
|
+
function qi(e) {
|
|
3575
|
+
return Ut(e) || e === 47;
|
|
3619
3576
|
}
|
|
3620
|
-
function
|
|
3577
|
+
function Ji(e) {
|
|
3621
3578
|
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;
|
|
3622
3579
|
}
|
|
3623
|
-
function
|
|
3580
|
+
function Yr(e) {
|
|
3624
3581
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3625
3582
|
}
|
|
3626
|
-
function
|
|
3583
|
+
function Qi(e) {
|
|
3627
3584
|
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;
|
|
3628
3585
|
}
|
|
3629
|
-
function
|
|
3586
|
+
function Ft(e) {
|
|
3630
3587
|
e.forEach(function(t) {
|
|
3631
|
-
if (delete t.location,
|
|
3588
|
+
if (delete t.location, $r(t) || jr(t))
|
|
3632
3589
|
for (var r in t.options)
|
|
3633
|
-
delete t.options[r].location,
|
|
3590
|
+
delete t.options[r].location, Ft(t.options[r].value);
|
|
3634
3591
|
else
|
|
3635
|
-
|
|
3592
|
+
Dr(t) && zr(t.style) || (kr(t) || Gr(t)) && Lt(t.style) ? delete t.style.location : Vr(t) && Ft(t.children);
|
|
3636
3593
|
});
|
|
3637
3594
|
}
|
|
3638
|
-
function
|
|
3639
|
-
t === void 0 && (t = {}), t =
|
|
3640
|
-
var r = new
|
|
3595
|
+
function Yi(e, t) {
|
|
3596
|
+
t === void 0 && (t = {}), t = E({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3597
|
+
var r = new Zi(e, t).parse();
|
|
3641
3598
|
if (r.err) {
|
|
3642
3599
|
var n = SyntaxError(_[r.err.kind]);
|
|
3643
3600
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3644
3601
|
}
|
|
3645
|
-
return t != null && t.captureLocation ||
|
|
3602
|
+
return t != null && t.captureLocation || Ft(r.val), r.val;
|
|
3646
3603
|
}
|
|
3647
|
-
var
|
|
3604
|
+
var Le;
|
|
3648
3605
|
(function(e) {
|
|
3649
3606
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3650
|
-
})(
|
|
3651
|
-
var
|
|
3607
|
+
})(Le || (Le = {}));
|
|
3608
|
+
var dt = (
|
|
3652
3609
|
/** @class */
|
|
3653
3610
|
function(e) {
|
|
3654
|
-
|
|
3611
|
+
le(t, e);
|
|
3655
3612
|
function t(r, n, i) {
|
|
3656
3613
|
var o = e.call(this, r) || this;
|
|
3657
3614
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3660,48 +3617,48 @@ var gt = (
|
|
|
3660
3617
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3661
3618
|
}, t;
|
|
3662
3619
|
}(Error)
|
|
3663
|
-
),
|
|
3620
|
+
), dr = (
|
|
3664
3621
|
/** @class */
|
|
3665
3622
|
function(e) {
|
|
3666
|
-
|
|
3623
|
+
le(t, e);
|
|
3667
3624
|
function t(r, n, i, o) {
|
|
3668
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3625
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Le.INVALID_VALUE, o) || this;
|
|
3669
3626
|
}
|
|
3670
3627
|
return t;
|
|
3671
|
-
}(
|
|
3672
|
-
),
|
|
3628
|
+
}(dt)
|
|
3629
|
+
), Ki = (
|
|
3673
3630
|
/** @class */
|
|
3674
3631
|
function(e) {
|
|
3675
|
-
|
|
3632
|
+
le(t, e);
|
|
3676
3633
|
function t(r, n, i) {
|
|
3677
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3634
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Le.INVALID_VALUE, i) || this;
|
|
3678
3635
|
}
|
|
3679
3636
|
return t;
|
|
3680
|
-
}(
|
|
3681
|
-
),
|
|
3637
|
+
}(dt)
|
|
3638
|
+
), eo = (
|
|
3682
3639
|
/** @class */
|
|
3683
3640
|
function(e) {
|
|
3684
|
-
|
|
3641
|
+
le(t, e);
|
|
3685
3642
|
function t(r, n) {
|
|
3686
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3643
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Le.MISSING_VALUE, n) || this;
|
|
3687
3644
|
}
|
|
3688
3645
|
return t;
|
|
3689
|
-
}(
|
|
3646
|
+
}(dt)
|
|
3690
3647
|
), V;
|
|
3691
3648
|
(function(e) {
|
|
3692
3649
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3693
3650
|
})(V || (V = {}));
|
|
3694
|
-
function
|
|
3651
|
+
function to(e) {
|
|
3695
3652
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3696
3653
|
var n = t[t.length - 1];
|
|
3697
3654
|
return !n || n.type !== V.literal || r.type !== V.literal ? t.push(r) : n.value += r.value, t;
|
|
3698
3655
|
}, []);
|
|
3699
3656
|
}
|
|
3700
|
-
function
|
|
3657
|
+
function ro(e) {
|
|
3701
3658
|
return typeof e == "function";
|
|
3702
3659
|
}
|
|
3703
3660
|
function at(e, t, r, n, i, o, s) {
|
|
3704
|
-
if (e.length === 1 &&
|
|
3661
|
+
if (e.length === 1 && ar(e[0]))
|
|
3705
3662
|
return [
|
|
3706
3663
|
{
|
|
3707
3664
|
type: V.literal,
|
|
@@ -3710,14 +3667,14 @@ function at(e, t, r, n, i, o, s) {
|
|
|
3710
3667
|
];
|
|
3711
3668
|
for (var a = [], u = 0, l = e; u < l.length; u++) {
|
|
3712
3669
|
var c = l[u];
|
|
3713
|
-
if (
|
|
3670
|
+
if (ar(c)) {
|
|
3714
3671
|
a.push({
|
|
3715
3672
|
type: V.literal,
|
|
3716
3673
|
value: c.value
|
|
3717
3674
|
});
|
|
3718
3675
|
continue;
|
|
3719
3676
|
}
|
|
3720
|
-
if (
|
|
3677
|
+
if (Si(c)) {
|
|
3721
3678
|
typeof o == "number" && a.push({
|
|
3722
3679
|
type: V.literal,
|
|
3723
3680
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3726,44 +3683,44 @@ function at(e, t, r, n, i, o, s) {
|
|
|
3726
3683
|
}
|
|
3727
3684
|
var f = c.value;
|
|
3728
3685
|
if (!(i && f in i))
|
|
3729
|
-
throw new
|
|
3730
|
-
var
|
|
3731
|
-
if (
|
|
3732
|
-
(!
|
|
3733
|
-
type: typeof
|
|
3734
|
-
value:
|
|
3686
|
+
throw new eo(f, s);
|
|
3687
|
+
var m = i[f];
|
|
3688
|
+
if (xi(c)) {
|
|
3689
|
+
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), a.push({
|
|
3690
|
+
type: typeof m == "string" ? V.literal : V.object,
|
|
3691
|
+
value: m
|
|
3735
3692
|
});
|
|
3736
3693
|
continue;
|
|
3737
3694
|
}
|
|
3738
|
-
if (
|
|
3739
|
-
var b = typeof c.style == "string" ? n.date[c.style] :
|
|
3695
|
+
if (kr(c)) {
|
|
3696
|
+
var b = typeof c.style == "string" ? n.date[c.style] : Lt(c.style) ? c.style.parsedOptions : void 0;
|
|
3740
3697
|
a.push({
|
|
3741
3698
|
type: V.literal,
|
|
3742
|
-
value: r.getDateTimeFormat(t, b).format(
|
|
3699
|
+
value: r.getDateTimeFormat(t, b).format(m)
|
|
3743
3700
|
});
|
|
3744
3701
|
continue;
|
|
3745
3702
|
}
|
|
3746
|
-
if (
|
|
3747
|
-
var b = typeof c.style == "string" ? n.time[c.style] :
|
|
3703
|
+
if (Gr(c)) {
|
|
3704
|
+
var b = typeof c.style == "string" ? n.time[c.style] : Lt(c.style) ? c.style.parsedOptions : n.time.medium;
|
|
3748
3705
|
a.push({
|
|
3749
3706
|
type: V.literal,
|
|
3750
|
-
value: r.getDateTimeFormat(t, b).format(
|
|
3707
|
+
value: r.getDateTimeFormat(t, b).format(m)
|
|
3751
3708
|
});
|
|
3752
3709
|
continue;
|
|
3753
3710
|
}
|
|
3754
|
-
if (
|
|
3755
|
-
var b = typeof c.style == "string" ? n.number[c.style] :
|
|
3756
|
-
b && b.scale && (
|
|
3711
|
+
if (Dr(c)) {
|
|
3712
|
+
var b = typeof c.style == "string" ? n.number[c.style] : zr(c.style) ? c.style.parsedOptions : void 0;
|
|
3713
|
+
b && b.scale && (m = m * (b.scale || 1)), a.push({
|
|
3757
3714
|
type: V.literal,
|
|
3758
|
-
value: r.getNumberFormat(t, b).format(
|
|
3715
|
+
value: r.getNumberFormat(t, b).format(m)
|
|
3759
3716
|
});
|
|
3760
3717
|
continue;
|
|
3761
3718
|
}
|
|
3762
|
-
if (
|
|
3763
|
-
var y = c.children, g = c.value,
|
|
3764
|
-
if (!
|
|
3765
|
-
throw new
|
|
3766
|
-
var O = at(y, t, r, n, i, o), z =
|
|
3719
|
+
if (Vr(c)) {
|
|
3720
|
+
var y = c.children, g = c.value, S = i[g];
|
|
3721
|
+
if (!ro(S))
|
|
3722
|
+
throw new Ki(g, "function", s);
|
|
3723
|
+
var O = at(y, t, r, n, i, o), z = S(O.map(function(A) {
|
|
3767
3724
|
return A.value;
|
|
3768
3725
|
}));
|
|
3769
3726
|
Array.isArray(z) || (z = [z]), a.push.apply(a, z.map(function(A) {
|
|
@@ -3773,42 +3730,42 @@ function at(e, t, r, n, i, o, s) {
|
|
|
3773
3730
|
};
|
|
3774
3731
|
}));
|
|
3775
3732
|
}
|
|
3776
|
-
if (
|
|
3777
|
-
var R = c.options[
|
|
3733
|
+
if ($r(c)) {
|
|
3734
|
+
var R = c.options[m] || c.options.other;
|
|
3778
3735
|
if (!R)
|
|
3779
|
-
throw new
|
|
3736
|
+
throw new dr(c.value, m, Object.keys(c.options), s);
|
|
3780
3737
|
a.push.apply(a, at(R.value, t, r, n, i));
|
|
3781
3738
|
continue;
|
|
3782
3739
|
}
|
|
3783
|
-
if (
|
|
3784
|
-
var R = c.options["=".concat(
|
|
3740
|
+
if (jr(c)) {
|
|
3741
|
+
var R = c.options["=".concat(m)];
|
|
3785
3742
|
if (!R) {
|
|
3786
3743
|
if (!Intl.PluralRules)
|
|
3787
|
-
throw new
|
|
3744
|
+
throw new dt(`Intl.PluralRules is not available in this environment.
|
|
3788
3745
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3789
|
-
`,
|
|
3790
|
-
var U = r.getPluralRules(t, { type: c.pluralType }).select(
|
|
3746
|
+
`, Le.MISSING_INTL_API, s);
|
|
3747
|
+
var U = r.getPluralRules(t, { type: c.pluralType }).select(m - (c.offset || 0));
|
|
3791
3748
|
R = c.options[U] || c.options.other;
|
|
3792
3749
|
}
|
|
3793
3750
|
if (!R)
|
|
3794
|
-
throw new
|
|
3795
|
-
a.push.apply(a, at(R.value, t, r, n, i,
|
|
3751
|
+
throw new dr(c.value, m, Object.keys(c.options), s);
|
|
3752
|
+
a.push.apply(a, at(R.value, t, r, n, i, m - (c.offset || 0)));
|
|
3796
3753
|
continue;
|
|
3797
3754
|
}
|
|
3798
3755
|
}
|
|
3799
|
-
return
|
|
3756
|
+
return to(a);
|
|
3800
3757
|
}
|
|
3801
|
-
function
|
|
3802
|
-
return t ?
|
|
3803
|
-
return r[n] =
|
|
3758
|
+
function no(e, t) {
|
|
3759
|
+
return t ? E(E(E({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3760
|
+
return r[n] = E(E({}, e[n]), t[n] || {}), r;
|
|
3804
3761
|
}, {})) : e;
|
|
3805
3762
|
}
|
|
3806
|
-
function
|
|
3763
|
+
function io(e, t) {
|
|
3807
3764
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3808
|
-
return r[n] =
|
|
3809
|
-
},
|
|
3765
|
+
return r[n] = no(e[n], t[n]), r;
|
|
3766
|
+
}, E({}, e)) : e;
|
|
3810
3767
|
}
|
|
3811
|
-
function
|
|
3768
|
+
function St(e) {
|
|
3812
3769
|
return {
|
|
3813
3770
|
create: function() {
|
|
3814
3771
|
return {
|
|
@@ -3822,39 +3779,39 @@ function Ht(e) {
|
|
|
3822
3779
|
}
|
|
3823
3780
|
};
|
|
3824
3781
|
}
|
|
3825
|
-
function
|
|
3782
|
+
function oo(e) {
|
|
3826
3783
|
return e === void 0 && (e = {
|
|
3827
3784
|
number: {},
|
|
3828
3785
|
dateTime: {},
|
|
3829
3786
|
pluralRules: {}
|
|
3830
3787
|
}), {
|
|
3831
|
-
getNumberFormat:
|
|
3788
|
+
getNumberFormat: wt(function() {
|
|
3832
3789
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3833
3790
|
r[n] = arguments[n];
|
|
3834
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3791
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ie([void 0], r, !1)))();
|
|
3835
3792
|
}, {
|
|
3836
|
-
cache:
|
|
3837
|
-
strategy:
|
|
3793
|
+
cache: St(e.number),
|
|
3794
|
+
strategy: Et.variadic
|
|
3838
3795
|
}),
|
|
3839
|
-
getDateTimeFormat:
|
|
3796
|
+
getDateTimeFormat: wt(function() {
|
|
3840
3797
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3841
3798
|
r[n] = arguments[n];
|
|
3842
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3799
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ie([void 0], r, !1)))();
|
|
3843
3800
|
}, {
|
|
3844
|
-
cache:
|
|
3845
|
-
strategy:
|
|
3801
|
+
cache: St(e.dateTime),
|
|
3802
|
+
strategy: Et.variadic
|
|
3846
3803
|
}),
|
|
3847
|
-
getPluralRules:
|
|
3804
|
+
getPluralRules: wt(function() {
|
|
3848
3805
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3849
3806
|
r[n] = arguments[n];
|
|
3850
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3807
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ie([void 0], r, !1)))();
|
|
3851
3808
|
}, {
|
|
3852
|
-
cache:
|
|
3853
|
-
strategy:
|
|
3809
|
+
cache: St(e.pluralRules),
|
|
3810
|
+
strategy: Et.variadic
|
|
3854
3811
|
})
|
|
3855
3812
|
};
|
|
3856
3813
|
}
|
|
3857
|
-
var
|
|
3814
|
+
var so = (
|
|
3858
3815
|
/** @class */
|
|
3859
3816
|
function() {
|
|
3860
3817
|
function e(t, r, n, i) {
|
|
@@ -3868,8 +3825,8 @@ var ho = (
|
|
|
3868
3825
|
var l = o.formatToParts(u);
|
|
3869
3826
|
if (l.length === 1)
|
|
3870
3827
|
return l[0].value;
|
|
3871
|
-
var c = l.reduce(function(f,
|
|
3872
|
-
return !f.length ||
|
|
3828
|
+
var c = l.reduce(function(f, m) {
|
|
3829
|
+
return !f.length || m.type !== V.literal || typeof f[f.length - 1] != "string" ? f.push(m.value) : f[f.length - 1] += m.value, f;
|
|
3873
3830
|
}, []);
|
|
3874
3831
|
return c.length <= 1 ? c[0] || "" : c;
|
|
3875
3832
|
}, this.formatToParts = function(u) {
|
|
@@ -3886,13 +3843,13 @@ var ho = (
|
|
|
3886
3843
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3887
3844
|
var s = i || {};
|
|
3888
3845
|
s.formatters;
|
|
3889
|
-
var a =
|
|
3890
|
-
this.ast = e.__parse(t,
|
|
3846
|
+
var a = Fn(s, ["formatters"]);
|
|
3847
|
+
this.ast = e.__parse(t, E(E({}, a), { locale: this.resolvedLocale }));
|
|
3891
3848
|
} else
|
|
3892
3849
|
this.ast = t;
|
|
3893
3850
|
if (!Array.isArray(this.ast))
|
|
3894
3851
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3895
|
-
this.formats =
|
|
3852
|
+
this.formats = io(e.formats, n), this.formatters = i && i.formatters || oo(this.formatterCache);
|
|
3896
3853
|
}
|
|
3897
3854
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3898
3855
|
get: function() {
|
|
@@ -3905,7 +3862,7 @@ var ho = (
|
|
|
3905
3862
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3906
3863
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3907
3864
|
}
|
|
3908
|
-
}, e.__parse =
|
|
3865
|
+
}, e.__parse = Yi, e.formats = {
|
|
3909
3866
|
number: {
|
|
3910
3867
|
integer: {
|
|
3911
3868
|
maximumFractionDigits: 0
|
|
@@ -3966,7 +3923,7 @@ var ho = (
|
|
|
3966
3923
|
}, e;
|
|
3967
3924
|
}()
|
|
3968
3925
|
);
|
|
3969
|
-
function
|
|
3926
|
+
function ao(e, t) {
|
|
3970
3927
|
if (t == null)
|
|
3971
3928
|
return;
|
|
3972
3929
|
if (t in e)
|
|
@@ -3987,92 +3944,92 @@ function fo(e, t) {
|
|
|
3987
3944
|
n = void 0;
|
|
3988
3945
|
return n;
|
|
3989
3946
|
}
|
|
3990
|
-
const ce = {},
|
|
3947
|
+
const ce = {}, lo = (e, t, r) => r && (t in ce || (ce[t] = {}), e in ce[t] || (ce[t][e] = r), r), Kr = (e, t) => {
|
|
3991
3948
|
if (t == null)
|
|
3992
3949
|
return;
|
|
3993
3950
|
if (t in ce && e in ce[t])
|
|
3994
3951
|
return ce[t][e];
|
|
3995
|
-
const r =
|
|
3952
|
+
const r = pt(t);
|
|
3996
3953
|
for (let n = 0; n < r.length; n++) {
|
|
3997
|
-
const i = r[n], o =
|
|
3954
|
+
const i = r[n], o = co(i, e);
|
|
3998
3955
|
if (o)
|
|
3999
|
-
return
|
|
3956
|
+
return lo(e, t, o);
|
|
4000
3957
|
}
|
|
4001
3958
|
};
|
|
4002
|
-
let
|
|
4003
|
-
const
|
|
4004
|
-
function
|
|
4005
|
-
return
|
|
3959
|
+
let $t;
|
|
3960
|
+
const Ue = mt({});
|
|
3961
|
+
function uo(e) {
|
|
3962
|
+
return $t[e] || null;
|
|
4006
3963
|
}
|
|
4007
|
-
function
|
|
4008
|
-
return e in
|
|
3964
|
+
function en(e) {
|
|
3965
|
+
return e in $t;
|
|
4009
3966
|
}
|
|
4010
|
-
function
|
|
4011
|
-
if (!
|
|
3967
|
+
function co(e, t) {
|
|
3968
|
+
if (!en(e))
|
|
4012
3969
|
return null;
|
|
4013
|
-
const r =
|
|
4014
|
-
return
|
|
3970
|
+
const r = uo(e);
|
|
3971
|
+
return ao(r, t);
|
|
4015
3972
|
}
|
|
4016
|
-
function
|
|
3973
|
+
function ho(e) {
|
|
4017
3974
|
if (e == null)
|
|
4018
3975
|
return;
|
|
4019
|
-
const t =
|
|
3976
|
+
const t = pt(e);
|
|
4020
3977
|
for (let r = 0; r < t.length; r++) {
|
|
4021
3978
|
const n = t[r];
|
|
4022
|
-
if (
|
|
3979
|
+
if (en(n))
|
|
4023
3980
|
return n;
|
|
4024
3981
|
}
|
|
4025
3982
|
}
|
|
4026
|
-
function
|
|
4027
|
-
delete ce[e],
|
|
3983
|
+
function tn(e, ...t) {
|
|
3984
|
+
delete ce[e], Ue.update((r) => (r[e] = pi.all([r[e] || {}, ...t]), r));
|
|
4028
3985
|
}
|
|
4029
|
-
|
|
4030
|
-
[
|
|
3986
|
+
Re(
|
|
3987
|
+
[Ue],
|
|
4031
3988
|
([e]) => Object.keys(e)
|
|
4032
3989
|
);
|
|
4033
|
-
|
|
3990
|
+
Ue.subscribe((e) => $t = e);
|
|
4034
3991
|
const lt = {};
|
|
4035
|
-
function
|
|
3992
|
+
function fo(e, t) {
|
|
4036
3993
|
lt[e].delete(t), lt[e].size === 0 && delete lt[e];
|
|
4037
3994
|
}
|
|
4038
|
-
function
|
|
3995
|
+
function rn(e) {
|
|
4039
3996
|
return lt[e];
|
|
4040
3997
|
}
|
|
4041
|
-
function
|
|
4042
|
-
return
|
|
4043
|
-
const r =
|
|
3998
|
+
function mo(e) {
|
|
3999
|
+
return pt(e).map((t) => {
|
|
4000
|
+
const r = rn(t);
|
|
4044
4001
|
return [t, r ? [...r] : []];
|
|
4045
4002
|
}).filter(([, t]) => t.length > 0);
|
|
4046
4003
|
}
|
|
4047
|
-
function
|
|
4048
|
-
return e == null ? !1 :
|
|
4004
|
+
function Dt(e) {
|
|
4005
|
+
return e == null ? !1 : pt(e).some(
|
|
4049
4006
|
(t) => {
|
|
4050
4007
|
var r;
|
|
4051
|
-
return (r =
|
|
4008
|
+
return (r = rn(t)) == null ? void 0 : r.size;
|
|
4052
4009
|
}
|
|
4053
4010
|
);
|
|
4054
4011
|
}
|
|
4055
|
-
function
|
|
4012
|
+
function po(e, t) {
|
|
4056
4013
|
return Promise.all(
|
|
4057
|
-
t.map((n) => (
|
|
4058
|
-
).then((n) =>
|
|
4059
|
-
}
|
|
4060
|
-
const
|
|
4061
|
-
function
|
|
4062
|
-
if (!
|
|
4063
|
-
return e in
|
|
4064
|
-
const t =
|
|
4065
|
-
return
|
|
4014
|
+
t.map((n) => (fo(e, n), n().then((i) => i.default || i)))
|
|
4015
|
+
).then((n) => tn(e, ...n));
|
|
4016
|
+
}
|
|
4017
|
+
const Ve = {};
|
|
4018
|
+
function nn(e) {
|
|
4019
|
+
if (!Dt(e))
|
|
4020
|
+
return e in Ve ? Ve[e] : Promise.resolve();
|
|
4021
|
+
const t = mo(e);
|
|
4022
|
+
return Ve[e] = Promise.all(
|
|
4066
4023
|
t.map(
|
|
4067
|
-
([r, n]) =>
|
|
4024
|
+
([r, n]) => po(r, n)
|
|
4068
4025
|
)
|
|
4069
4026
|
).then(() => {
|
|
4070
|
-
if (
|
|
4071
|
-
return
|
|
4072
|
-
delete
|
|
4073
|
-
}),
|
|
4027
|
+
if (Dt(e))
|
|
4028
|
+
return nn(e);
|
|
4029
|
+
delete Ve[e];
|
|
4030
|
+
}), Ve[e];
|
|
4074
4031
|
}
|
|
4075
|
-
const
|
|
4032
|
+
const go = {
|
|
4076
4033
|
number: {
|
|
4077
4034
|
scientific: { notation: "scientific" },
|
|
4078
4035
|
engineering: { notation: "engineering" },
|
|
@@ -4101,135 +4058,135 @@ const wo = {
|
|
|
4101
4058
|
timeZoneName: "short"
|
|
4102
4059
|
}
|
|
4103
4060
|
}
|
|
4104
|
-
},
|
|
4061
|
+
}, bo = {
|
|
4105
4062
|
fallbackLocale: null,
|
|
4106
4063
|
loadingDelay: 200,
|
|
4107
|
-
formats:
|
|
4064
|
+
formats: go,
|
|
4108
4065
|
warnOnMissingMessages: !0,
|
|
4109
4066
|
handleMissingMessage: void 0,
|
|
4110
4067
|
ignoreTag: !0
|
|
4111
|
-
},
|
|
4112
|
-
function
|
|
4113
|
-
return
|
|
4068
|
+
}, vo = bo;
|
|
4069
|
+
function Me() {
|
|
4070
|
+
return vo;
|
|
4114
4071
|
}
|
|
4115
|
-
const
|
|
4116
|
-
var
|
|
4072
|
+
const Pt = mt(!1);
|
|
4073
|
+
var yo = Object.defineProperty, _o = Object.defineProperties, wo = Object.getOwnPropertyDescriptors, pr = Object.getOwnPropertySymbols, Eo = Object.prototype.hasOwnProperty, xo = Object.prototype.propertyIsEnumerable, gr = (e, t, r) => t in e ? yo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, So = (e, t) => {
|
|
4117
4074
|
for (var r in t || (t = {}))
|
|
4118
|
-
|
|
4119
|
-
if (
|
|
4120
|
-
for (var r of
|
|
4121
|
-
|
|
4075
|
+
Eo.call(t, r) && gr(e, r, t[r]);
|
|
4076
|
+
if (pr)
|
|
4077
|
+
for (var r of pr(t))
|
|
4078
|
+
xo.call(t, r) && gr(e, r, t[r]);
|
|
4122
4079
|
return e;
|
|
4123
|
-
},
|
|
4124
|
-
let
|
|
4125
|
-
const
|
|
4126
|
-
function
|
|
4080
|
+
}, Po = (e, t) => _o(e, wo(t));
|
|
4081
|
+
let kt;
|
|
4082
|
+
const ct = mt(null);
|
|
4083
|
+
function br(e) {
|
|
4127
4084
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4128
4085
|
}
|
|
4129
|
-
function
|
|
4130
|
-
const r =
|
|
4131
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4086
|
+
function pt(e, t = Me().fallbackLocale) {
|
|
4087
|
+
const r = br(e);
|
|
4088
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...br(t)])] : r;
|
|
4132
4089
|
}
|
|
4133
4090
|
function ye() {
|
|
4134
|
-
return
|
|
4091
|
+
return kt != null ? kt : void 0;
|
|
4135
4092
|
}
|
|
4136
|
-
|
|
4137
|
-
|
|
4093
|
+
ct.subscribe((e) => {
|
|
4094
|
+
kt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4138
4095
|
});
|
|
4139
|
-
const
|
|
4140
|
-
if (e &&
|
|
4141
|
-
const { loadingDelay: t } =
|
|
4096
|
+
const To = (e) => {
|
|
4097
|
+
if (e && ho(e) && Dt(e)) {
|
|
4098
|
+
const { loadingDelay: t } = Me();
|
|
4142
4099
|
let r;
|
|
4143
4100
|
return typeof window != "undefined" && ye() != null && t ? r = window.setTimeout(
|
|
4144
|
-
() =>
|
|
4101
|
+
() => Pt.set(!0),
|
|
4145
4102
|
t
|
|
4146
|
-
) :
|
|
4147
|
-
|
|
4103
|
+
) : Pt.set(!0), nn(e).then(() => {
|
|
4104
|
+
ct.set(e);
|
|
4148
4105
|
}).finally(() => {
|
|
4149
|
-
clearTimeout(r),
|
|
4106
|
+
clearTimeout(r), Pt.set(!1);
|
|
4150
4107
|
});
|
|
4151
4108
|
}
|
|
4152
|
-
return
|
|
4153
|
-
}, he =
|
|
4154
|
-
set:
|
|
4155
|
-
}),
|
|
4109
|
+
return ct.set(e);
|
|
4110
|
+
}, he = Po(So({}, ct), {
|
|
4111
|
+
set: To
|
|
4112
|
+
}), gt = (e) => {
|
|
4156
4113
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4157
4114
|
return (n) => {
|
|
4158
4115
|
const i = JSON.stringify(n);
|
|
4159
4116
|
return i in t ? t[i] : t[i] = e(n);
|
|
4160
4117
|
};
|
|
4161
4118
|
};
|
|
4162
|
-
var
|
|
4119
|
+
var Ho = Object.defineProperty, ht = Object.getOwnPropertySymbols, on = Object.prototype.hasOwnProperty, sn = Object.prototype.propertyIsEnumerable, vr = (e, t, r) => t in e ? Ho(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, jt = (e, t) => {
|
|
4163
4120
|
for (var r in t || (t = {}))
|
|
4164
|
-
|
|
4165
|
-
if (
|
|
4166
|
-
for (var r of
|
|
4167
|
-
|
|
4121
|
+
on.call(t, r) && vr(e, r, t[r]);
|
|
4122
|
+
if (ht)
|
|
4123
|
+
for (var r of ht(t))
|
|
4124
|
+
sn.call(t, r) && vr(e, r, t[r]);
|
|
4168
4125
|
return e;
|
|
4169
|
-
},
|
|
4126
|
+
}, Fe = (e, t) => {
|
|
4170
4127
|
var r = {};
|
|
4171
4128
|
for (var n in e)
|
|
4172
|
-
|
|
4173
|
-
if (e != null &&
|
|
4174
|
-
for (var n of
|
|
4175
|
-
t.indexOf(n) < 0 &&
|
|
4129
|
+
on.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4130
|
+
if (e != null && ht)
|
|
4131
|
+
for (var n of ht(e))
|
|
4132
|
+
t.indexOf(n) < 0 && sn.call(e, n) && (r[n] = e[n]);
|
|
4176
4133
|
return r;
|
|
4177
4134
|
};
|
|
4178
|
-
const
|
|
4179
|
-
const { formats: r } =
|
|
4135
|
+
const Ze = (e, t) => {
|
|
4136
|
+
const { formats: r } = Me();
|
|
4180
4137
|
if (e in r && t in r[e])
|
|
4181
4138
|
return r[e][t];
|
|
4182
4139
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4183
|
-
},
|
|
4140
|
+
}, Bo = gt(
|
|
4184
4141
|
(e) => {
|
|
4185
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4142
|
+
var t = e, { locale: r, format: n } = t, i = Fe(t, ["locale", "format"]);
|
|
4186
4143
|
if (r == null)
|
|
4187
4144
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4188
|
-
return n && (i =
|
|
4145
|
+
return n && (i = Ze("number", n)), new Intl.NumberFormat(r, i);
|
|
4189
4146
|
}
|
|
4190
|
-
),
|
|
4147
|
+
), Ao = gt(
|
|
4191
4148
|
(e) => {
|
|
4192
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4149
|
+
var t = e, { locale: r, format: n } = t, i = Fe(t, ["locale", "format"]);
|
|
4193
4150
|
if (r == null)
|
|
4194
4151
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4195
|
-
return n ? i =
|
|
4152
|
+
return n ? i = Ze("date", n) : Object.keys(i).length === 0 && (i = Ze("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4196
4153
|
}
|
|
4197
|
-
),
|
|
4154
|
+
), Io = gt(
|
|
4198
4155
|
(e) => {
|
|
4199
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4156
|
+
var t = e, { locale: r, format: n } = t, i = Fe(t, ["locale", "format"]);
|
|
4200
4157
|
if (r == null)
|
|
4201
4158
|
throw new Error(
|
|
4202
4159
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4203
4160
|
);
|
|
4204
|
-
return n ? i =
|
|
4161
|
+
return n ? i = Ze("time", n) : Object.keys(i).length === 0 && (i = Ze("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4205
4162
|
}
|
|
4206
|
-
),
|
|
4163
|
+
), Oo = (e = {}) => {
|
|
4207
4164
|
var t = e, {
|
|
4208
4165
|
locale: r = ye()
|
|
4209
|
-
} = t, n =
|
|
4166
|
+
} = t, n = Fe(t, [
|
|
4210
4167
|
"locale"
|
|
4211
4168
|
]);
|
|
4212
|
-
return
|
|
4213
|
-
},
|
|
4169
|
+
return Bo(jt({ locale: r }, n));
|
|
4170
|
+
}, Co = (e = {}) => {
|
|
4214
4171
|
var t = e, {
|
|
4215
4172
|
locale: r = ye()
|
|
4216
|
-
} = t, n =
|
|
4173
|
+
} = t, n = Fe(t, [
|
|
4217
4174
|
"locale"
|
|
4218
4175
|
]);
|
|
4219
|
-
return
|
|
4220
|
-
},
|
|
4176
|
+
return Ao(jt({ locale: r }, n));
|
|
4177
|
+
}, Lo = (e = {}) => {
|
|
4221
4178
|
var t = e, {
|
|
4222
4179
|
locale: r = ye()
|
|
4223
|
-
} = t, n =
|
|
4180
|
+
} = t, n = Fe(t, [
|
|
4224
4181
|
"locale"
|
|
4225
4182
|
]);
|
|
4226
|
-
return
|
|
4227
|
-
},
|
|
4183
|
+
return Io(jt({ locale: r }, n));
|
|
4184
|
+
}, Mo = gt(
|
|
4228
4185
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4229
|
-
(e, t = ye()) => new
|
|
4230
|
-
ignoreTag:
|
|
4186
|
+
(e, t = ye()) => new so(e, t, Me().formats, {
|
|
4187
|
+
ignoreTag: Me().ignoreTag
|
|
4231
4188
|
})
|
|
4232
|
-
),
|
|
4189
|
+
), No = (e, t = {}) => {
|
|
4233
4190
|
var r, n, i, o;
|
|
4234
4191
|
let s = t;
|
|
4235
4192
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4242,9 +4199,9 @@ const We = (e, t) => {
|
|
|
4242
4199
|
throw new Error(
|
|
4243
4200
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4244
4201
|
);
|
|
4245
|
-
let c =
|
|
4202
|
+
let c = Kr(e, u);
|
|
4246
4203
|
if (!c)
|
|
4247
|
-
c = (o = (i = (n = (r =
|
|
4204
|
+
c = (o = (i = (n = (r = Me()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
4248
4205
|
else if (typeof c != "string")
|
|
4249
4206
|
return console.warn(
|
|
4250
4207
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4253,33 +4210,33 @@ const We = (e, t) => {
|
|
|
4253
4210
|
return c;
|
|
4254
4211
|
let f = c;
|
|
4255
4212
|
try {
|
|
4256
|
-
f =
|
|
4257
|
-
} catch (
|
|
4258
|
-
|
|
4213
|
+
f = Mo(c, u).format(a);
|
|
4214
|
+
} catch (m) {
|
|
4215
|
+
m instanceof Error && console.warn(
|
|
4259
4216
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4260
|
-
|
|
4217
|
+
m.message
|
|
4261
4218
|
);
|
|
4262
4219
|
}
|
|
4263
4220
|
return f;
|
|
4264
|
-
},
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
window.emWidgets = { topic:
|
|
4270
|
-
const
|
|
4271
|
-
function
|
|
4221
|
+
}, Ro = (e, t) => Lo(t).format(e), Uo = (e, t) => Co(t).format(e), Fo = (e, t) => Oo(t).format(e), Do = (e, t = ye()) => Kr(e, t), ko = Re([he, Ue], () => No);
|
|
4222
|
+
Re([he], () => Ro);
|
|
4223
|
+
Re([he], () => Uo);
|
|
4224
|
+
Re([he], () => Fo);
|
|
4225
|
+
Re([he, Ue], () => Do);
|
|
4226
|
+
window.emWidgets = { topic: Yn };
|
|
4227
|
+
const Go = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
4228
|
+
function $o({ withLocale: e, translations: t }) {
|
|
4272
4229
|
he.subscribe((r) => {
|
|
4273
|
-
r == null && (
|
|
4230
|
+
r == null && (Ue.set(t), he.set(e));
|
|
4274
4231
|
});
|
|
4275
4232
|
}
|
|
4276
|
-
function
|
|
4277
|
-
|
|
4233
|
+
function yr(e, t) {
|
|
4234
|
+
tn(e, t);
|
|
4278
4235
|
}
|
|
4279
|
-
function
|
|
4236
|
+
function jo(e) {
|
|
4280
4237
|
he.set(e);
|
|
4281
4238
|
}
|
|
4282
|
-
const
|
|
4239
|
+
const _r = {
|
|
4283
4240
|
en: {
|
|
4284
4241
|
loginTitle: "Welcome",
|
|
4285
4242
|
loginSubtitle: "Don't have an account yet?",
|
|
@@ -4424,13 +4381,13 @@ const Pr = {
|
|
|
4424
4381
|
successMessage: "Login successful"
|
|
4425
4382
|
}
|
|
4426
4383
|
};
|
|
4427
|
-
function
|
|
4384
|
+
function Vo(e, t) {
|
|
4428
4385
|
if (e) {
|
|
4429
4386
|
const r = document.createElement("style");
|
|
4430
4387
|
r.innerHTML = t, e.appendChild(r);
|
|
4431
4388
|
}
|
|
4432
4389
|
}
|
|
4433
|
-
function
|
|
4390
|
+
function zo(e, t) {
|
|
4434
4391
|
const r = new URL(t);
|
|
4435
4392
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4436
4393
|
const i = document.createElement("style");
|
|
@@ -4439,7 +4396,7 @@ function Jo(e, t) {
|
|
|
4439
4396
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4440
4397
|
});
|
|
4441
4398
|
}
|
|
4442
|
-
function
|
|
4399
|
+
function Xo(e, t, r) {
|
|
4443
4400
|
if (window.emMessageBus) {
|
|
4444
4401
|
const n = document.createElement("style");
|
|
4445
4402
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4459,18 +4416,18 @@ if (typeof window != "undefined") {
|
|
|
4459
4416
|
}
|
|
4460
4417
|
};
|
|
4461
4418
|
};
|
|
4462
|
-
customElements.define = e(customElements.define), import("./GeneralPlayerSmsVerificationForm-
|
|
4419
|
+
customElements.define = e(customElements.define), import("./GeneralPlayerSmsVerificationForm-D2b0nmmS.js").then(({ default: t }) => {
|
|
4463
4420
|
!customElements.get("general-player-sms-verification-form") && customElements.define("general-player-sms-verification-form", t.element);
|
|
4464
4421
|
});
|
|
4465
4422
|
}
|
|
4466
|
-
function
|
|
4467
|
-
|
|
4423
|
+
function Wo(e) {
|
|
4424
|
+
bn(e, "svelte-7c22cn", '.grecaptcha-badge{opacity:0}input,select{font-family:inherit}.PlayerLoginFormWrapper{height:100%;border-radius:var(--emw--border-radius-medium, 15px)}.FormContainer{width:100%}.FormLogin{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #F9F8F8));padding:50px}.FormHeaderTitle{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));font-size:var(--emw--font-size-large, 20px);font-weight:var(--emw--font-weight-light, 300);padding:0;text-transform:uppercase;margin:0}.PasswordContainer{position:relative}.FormRequired{color:var(--emw--color-error, var(--emw--color-error, #ed0909))}.FormHeaderSubtitle{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-light, 300);margin:5px 0 0 0}.FormRegisterCallToAction{color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-normal, 400);text-decoration:none;cursor:pointer}.FormContent{padding-top:20px}.UserContainer,.PasswordContainer,.CaptchaContainer{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));display:flex;flex-direction:column;position:relative}.UserContainer label,.PasswordContainer label,.CaptchaContainer label{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-light, 300);padding-bottom:5px}.UserContainer input,.PasswordContainer input,.CaptchaContainer input{width:100%;height:44px;border-radius:15px;border:1px solid var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));box-sizing:border-box;padding:5px 15px;font-size:var(--emw--font-size-medium, 16px);line-height:18px}.UserContainer input:focus,.PasswordContainer input:focus,.CaptchaContainer input:focus{border:2px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));outline:none}.UserContainer.InvalidField input,.PasswordContainer.InvalidField input,.CaptchaContainer.InvalidField input{border:1px solid var(--emw--color-error, var(--emw--color-error, #ed0909));background:var(--emw--color-pale, #FBECF4);outline:none;color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444))}.PasswordContainer input{padding:5px 30px 5px 15px}.TogglePasswordVisibility{height:13px;position:absolute;right:8px;bottom:55px}.TogglePasswordVisibility.InvalidToggle path,.TogglePasswordVisibility.InvalidToggle circle,.TogglePasswordVisibility.InvalidToggle rect{fill:var(--emw--color-error, var(--emw--color-error, #ed0909))}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect{fill:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444))}.SignInButton{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 10px);color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF));font-family:var(--emw--button-typography);width:100%;height:60px;padding:0;text-transform:uppercase;font-size:var(--emw--font-size-medium, 16px);cursor:pointer}.SignInButton[disabled]{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);cursor:not-allowed}.ForgotPasswordButton{border:0;background:transparent;font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-light, 300);color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));margin-top:15px;cursor:pointer}.PasswordContainer,.UserContainer{padding-bottom:40px}.InvalidInput{color:var(--emw--color-error, var(--emw--color-error, #ed0909));font-size:10px;position:absolute;top:55px;padding-top:5px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:var(--emw--font-size-x-small, 12px);color:var(--emw--color-error, var(--emw--color-error, #ed0909))}.FormMobileContainer{height:100%}.FormMobileContainer .FormLogin{padding:40px 20px}.FormMobileContainer .SignInButton,.FormMobileContainer .UserContainer input,.FormMobileContainer .PasswordContainer input,.FormMobileContainer .CaptchaContainer{max-width:unset;border-radius:var(--emw--border-radius-medium, 15px)}.ModalLoaderWrapper{display:flex;height:100%;align-items:center}.ModalLoader{display:block;width:80px;height:80px;margin:0 auto}.ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:Loader 1.2s linear infinite}input::-ms-reveal,input::-ms-clear{display:none}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}');
|
|
4468
4425
|
}
|
|
4469
|
-
function
|
|
4426
|
+
function wr(e) {
|
|
4470
4427
|
let t, r;
|
|
4471
4428
|
return {
|
|
4472
4429
|
c() {
|
|
4473
|
-
t =
|
|
4430
|
+
t = x("script"), Qt(t.src, r = "//www.google.com/recaptcha/api.js?render=" + /*captchakey*/
|
|
4474
4431
|
e[1]) || h(t, "src", r), t.async = !0, t.defer = !0;
|
|
4475
4432
|
},
|
|
4476
4433
|
m(n, i) {
|
|
@@ -4478,7 +4435,7 @@ function Tr(e) {
|
|
|
4478
4435
|
},
|
|
4479
4436
|
p(n, i) {
|
|
4480
4437
|
i[0] & /*captchakey*/
|
|
4481
|
-
2 && !
|
|
4438
|
+
2 && !Qt(t.src, r = "//www.google.com/recaptcha/api.js?render=" + /*captchakey*/
|
|
4482
4439
|
n[1]) && h(t, "src", r);
|
|
4483
4440
|
},
|
|
4484
4441
|
d(n) {
|
|
@@ -4486,22 +4443,22 @@ function Tr(e) {
|
|
|
4486
4443
|
}
|
|
4487
4444
|
};
|
|
4488
4445
|
}
|
|
4489
|
-
function
|
|
4446
|
+
function Zo(e) {
|
|
4490
4447
|
let t, r, n;
|
|
4491
4448
|
function i(a, u) {
|
|
4492
4449
|
return (
|
|
4493
4450
|
/*startSmsValidation*/
|
|
4494
|
-
a[21] ?
|
|
4451
|
+
a[21] ? Qo : Jo
|
|
4495
4452
|
);
|
|
4496
4453
|
}
|
|
4497
4454
|
let o = i(e), s = o(e);
|
|
4498
4455
|
return {
|
|
4499
4456
|
c() {
|
|
4500
|
-
t =
|
|
4457
|
+
t = x("div"), r = x("div"), s.c(), h(r, "class", "FormLogin"), h(t, "class", n = "FormContainer " + /*mobileView*/
|
|
4501
4458
|
(e[11] ? "FormMobileContainer" : ""));
|
|
4502
4459
|
},
|
|
4503
4460
|
m(a, u) {
|
|
4504
|
-
L(a, t, u),
|
|
4461
|
+
L(a, t, u), d(t, r), s.m(r, null);
|
|
4505
4462
|
},
|
|
4506
4463
|
p(a, u) {
|
|
4507
4464
|
o === (o = i(a)) && s ? s.p(a, u) : (s.d(1), s = o(a), s && (s.c(), s.m(r, null))), u[0] & /*mobileView*/
|
|
@@ -4513,11 +4470,11 @@ function Ko(e) {
|
|
|
4513
4470
|
}
|
|
4514
4471
|
};
|
|
4515
4472
|
}
|
|
4516
|
-
function
|
|
4473
|
+
function qo(e) {
|
|
4517
4474
|
let t;
|
|
4518
4475
|
return {
|
|
4519
4476
|
c() {
|
|
4520
|
-
t =
|
|
4477
|
+
t = x("div"), t.innerHTML = '<div class="ModalLoader"></div>', h(t, "class", "ModalLoaderWrapper");
|
|
4521
4478
|
},
|
|
4522
4479
|
m(r, n) {
|
|
4523
4480
|
L(r, t, n);
|
|
@@ -4528,7 +4485,7 @@ function es(e) {
|
|
|
4528
4485
|
}
|
|
4529
4486
|
};
|
|
4530
4487
|
}
|
|
4531
|
-
function
|
|
4488
|
+
function Jo(e) {
|
|
4532
4489
|
let t, r, n = (
|
|
4533
4490
|
/*$_*/
|
|
4534
4491
|
e[22]("loginTitle") + ""
|
|
@@ -4538,96 +4495,96 @@ function ts(e) {
|
|
|
4538
4495
|
), u, l, c, f = (
|
|
4539
4496
|
/*$_*/
|
|
4540
4497
|
e[22]("loginSubtitleRegister") + ""
|
|
4541
|
-
),
|
|
4498
|
+
), m, b, y, g, S, O, z = (
|
|
4542
4499
|
/*$_*/
|
|
4543
4500
|
e[22]("loginUsername") + ""
|
|
4544
|
-
), R, U, A, ne, H,
|
|
4501
|
+
), R, U, A, ne, H, oe, fe, J, ue, B, ie, X = (
|
|
4545
4502
|
/*$_*/
|
|
4546
4503
|
e[22]("loginPassword") + ""
|
|
4547
|
-
),
|
|
4504
|
+
), De, qe, me, de, M, _e, Je, we, Ee, pe, ke, xe, Q, ge = (
|
|
4548
4505
|
/*$_*/
|
|
4549
4506
|
e[22]("loginButton") + ""
|
|
4550
4507
|
), Se, Qe, be, ve = (
|
|
4551
4508
|
/*$_*/
|
|
4552
4509
|
e[22]("loginForgotPassword") + ""
|
|
4553
|
-
),
|
|
4510
|
+
), Ge, $e, Ye, F = (
|
|
4554
4511
|
/*invalidName*/
|
|
4555
|
-
e[14] &&
|
|
4512
|
+
e[14] && Er(e)
|
|
4556
4513
|
);
|
|
4557
|
-
function Ke(v,
|
|
4514
|
+
function Ke(v, P) {
|
|
4558
4515
|
return (
|
|
4559
4516
|
/*isPasswordVisible*/
|
|
4560
|
-
v[19] ?
|
|
4517
|
+
v[19] ? Ko : Yo
|
|
4561
4518
|
);
|
|
4562
4519
|
}
|
|
4563
4520
|
let Pe = Ke(e), Y = Pe(e), D = (
|
|
4564
4521
|
/*invalidPassword*/
|
|
4565
4522
|
e[15] && /*simplepasswordvalidation*/
|
|
4566
|
-
e[2] !== "true" &&
|
|
4523
|
+
e[2] !== "true" && xr(e)
|
|
4567
4524
|
), k = (
|
|
4568
4525
|
/*invalidPassword*/
|
|
4569
4526
|
e[15] && /*simplepasswordvalidation*/
|
|
4570
|
-
e[2] === "true" &&
|
|
4571
|
-
),
|
|
4527
|
+
e[2] === "true" && Sr(e)
|
|
4528
|
+
), G = (
|
|
4572
4529
|
/*errorMessage*/
|
|
4573
|
-
e[16] &&
|
|
4530
|
+
e[16] && Pr(e)
|
|
4574
4531
|
);
|
|
4575
4532
|
return {
|
|
4576
4533
|
c() {
|
|
4577
|
-
t =
|
|
4578
|
-
e[6] ? "username email" : "off"), H.required = !0, h(
|
|
4579
|
-
(e[14] ? "InvalidField" : "")), h(
|
|
4534
|
+
t = x("div"), r = x("h4"), i = N(n), o = j(), s = x("p"), u = N(a), l = j(), c = x("span"), m = N(f), b = j(), y = x("div"), g = x("form"), S = x("div"), O = x("label"), R = N(z), U = N(":"), A = x("span"), A.textContent = "*", ne = j(), H = x("input"), fe = j(), F && F.c(), ue = j(), B = x("div"), ie = x("label"), De = N(X), qe = N(":"), me = x("span"), me.textContent = "*", de = j(), M = x("input"), Je = j(), Y.c(), we = j(), D && D.c(), Ee = j(), k && k.c(), ke = j(), G && G.c(), xe = j(), Q = x("button"), Se = N(ge), Qe = j(), be = x("button"), Ge = N(ve), h(r, "class", "FormHeaderTitle"), h(c, "class", "FormRegisterCallToAction"), h(s, "class", "FormHeaderSubtitle"), h(t, "class", "FormHeader"), h(A, "class", "FormRequired"), h(O, "for", "username"), h(H, "type", "text"), h(H, "id", "email"), h(H, "name", "email"), h(H, "autocomplete", oe = /*savecredentials*/
|
|
4535
|
+
e[6] ? "username email" : "off"), H.required = !0, h(S, "class", J = "UserContainer " + /*invalidName*/
|
|
4536
|
+
(e[14] ? "InvalidField" : "")), h(me, "class", "FormRequired"), h(ie, "for", "current-password"), h(M, "type", "password"), h(M, "name", "current-password"), h(M, "id", "current-password"), h(M, "autocomplete", _e = /*savecredentials*/
|
|
4580
4537
|
e[6] ? "current-password" : "off"), h(M, "aria-describedby", "password-constraints"), M.required = !0, h(B, "class", pe = "PasswordContainer " + /*invalidPassword*/
|
|
4581
4538
|
(e[15] ? "InvalidField" : "")), h(Q, "class", "SignInButton"), Q.disabled = /*isFormDataInvalid*/
|
|
4582
4539
|
e[20], h(Q, "id", "signin-button"), h(be, "class", "ForgotPasswordButton"), h(g, "id", "signin"), h(y, "class", "FormContent");
|
|
4583
4540
|
},
|
|
4584
|
-
m(v,
|
|
4585
|
-
L(v, t,
|
|
4541
|
+
m(v, P) {
|
|
4542
|
+
L(v, t, P), d(t, r), d(r, i), d(t, o), d(t, s), d(s, u), d(s, l), d(s, c), d(c, m), L(v, b, P), L(v, y, P), d(y, g), d(g, S), d(S, O), d(O, R), d(O, U), d(O, A), d(S, ne), d(S, H), rt(
|
|
4586
4543
|
H,
|
|
4587
4544
|
/*userValue*/
|
|
4588
4545
|
e[12]
|
|
4589
|
-
),
|
|
4546
|
+
), d(S, fe), F && F.m(S, null), d(g, ue), d(g, B), d(B, ie), d(ie, De), d(ie, qe), d(ie, me), d(B, de), d(B, M), rt(
|
|
4590
4547
|
M,
|
|
4591
4548
|
/*userPassword*/
|
|
4592
4549
|
e[13]
|
|
4593
|
-
), e[36](M),
|
|
4594
|
-
|
|
4550
|
+
), e[36](M), d(B, Je), Y.m(B, null), d(B, we), D && D.m(B, null), d(B, Ee), k && k.m(B, null), d(g, ke), G && G.m(g, null), d(g, xe), d(g, Q), d(Q, Se), d(g, Qe), d(g, be), d(be, Ge), $e || (Ye = [
|
|
4551
|
+
se(
|
|
4595
4552
|
c,
|
|
4596
4553
|
"click",
|
|
4597
4554
|
/*click_handler*/
|
|
4598
4555
|
e[33]
|
|
4599
4556
|
),
|
|
4600
|
-
|
|
4557
|
+
se(
|
|
4601
4558
|
H,
|
|
4602
4559
|
"input",
|
|
4603
4560
|
/*input0_input_handler*/
|
|
4604
4561
|
e[34]
|
|
4605
4562
|
),
|
|
4606
|
-
|
|
4563
|
+
se(
|
|
4607
4564
|
H,
|
|
4608
4565
|
"input",
|
|
4609
4566
|
/*validateUserName*/
|
|
4610
4567
|
e[28]
|
|
4611
4568
|
),
|
|
4612
|
-
|
|
4569
|
+
se(
|
|
4613
4570
|
M,
|
|
4614
4571
|
"input",
|
|
4615
4572
|
/*input1_input_handler*/
|
|
4616
4573
|
e[35]
|
|
4617
4574
|
),
|
|
4618
|
-
|
|
4575
|
+
se(
|
|
4619
4576
|
M,
|
|
4620
4577
|
"input",
|
|
4621
4578
|
/*validatePassword*/
|
|
4622
4579
|
e[29]
|
|
4623
4580
|
),
|
|
4624
|
-
|
|
4581
|
+
se(
|
|
4625
4582
|
Q,
|
|
4626
4583
|
"click",
|
|
4627
4584
|
/*click_handler_3*/
|
|
4628
4585
|
e[39]
|
|
4629
4586
|
),
|
|
4630
|
-
|
|
4587
|
+
se(
|
|
4631
4588
|
be,
|
|
4632
4589
|
"click",
|
|
4633
4590
|
/*click_handler_4*/
|
|
@@ -4635,61 +4592,61 @@ function ts(e) {
|
|
|
4635
4592
|
)
|
|
4636
4593
|
], $e = !0);
|
|
4637
4594
|
},
|
|
4638
|
-
p(v,
|
|
4639
|
-
|
|
4595
|
+
p(v, P) {
|
|
4596
|
+
P[0] & /*$_*/
|
|
4640
4597
|
4194304 && n !== (n = /*$_*/
|
|
4641
|
-
v[22]("loginTitle") + "") && re(i, n),
|
|
4598
|
+
v[22]("loginTitle") + "") && re(i, n), P[0] & /*$_*/
|
|
4642
4599
|
4194304 && a !== (a = /*$_*/
|
|
4643
|
-
v[22]("loginSubtitle") + "") && re(u, a),
|
|
4600
|
+
v[22]("loginSubtitle") + "") && re(u, a), P[0] & /*$_*/
|
|
4644
4601
|
4194304 && f !== (f = /*$_*/
|
|
4645
|
-
v[22]("loginSubtitleRegister") + "") && re(
|
|
4602
|
+
v[22]("loginSubtitleRegister") + "") && re(m, f), P[0] & /*$_*/
|
|
4646
4603
|
4194304 && z !== (z = /*$_*/
|
|
4647
|
-
v[22]("loginUsername") + "") && re(R, z),
|
|
4648
|
-
64 &&
|
|
4649
|
-
v[6] ? "username email" : "off") && h(H, "autocomplete",
|
|
4604
|
+
v[22]("loginUsername") + "") && re(R, z), P[0] & /*savecredentials*/
|
|
4605
|
+
64 && oe !== (oe = /*savecredentials*/
|
|
4606
|
+
v[6] ? "username email" : "off") && h(H, "autocomplete", oe), P[0] & /*userValue*/
|
|
4650
4607
|
4096 && H.value !== /*userValue*/
|
|
4651
4608
|
v[12] && rt(
|
|
4652
4609
|
H,
|
|
4653
4610
|
/*userValue*/
|
|
4654
4611
|
v[12]
|
|
4655
4612
|
), /*invalidName*/
|
|
4656
|
-
v[14] ? F ? F.p(v,
|
|
4613
|
+
v[14] ? F ? F.p(v, P) : (F = Er(v), F.c(), F.m(S, null)) : F && (F.d(1), F = null), P[0] & /*invalidName*/
|
|
4657
4614
|
16384 && J !== (J = "UserContainer " + /*invalidName*/
|
|
4658
|
-
(v[14] ? "InvalidField" : "")) && h(
|
|
4615
|
+
(v[14] ? "InvalidField" : "")) && h(S, "class", J), P[0] & /*$_*/
|
|
4659
4616
|
4194304 && X !== (X = /*$_*/
|
|
4660
|
-
v[22]("loginPassword") + "") && re(
|
|
4617
|
+
v[22]("loginPassword") + "") && re(De, X), P[0] & /*savecredentials*/
|
|
4661
4618
|
64 && _e !== (_e = /*savecredentials*/
|
|
4662
|
-
v[6] ? "current-password" : "off") && h(M, "autocomplete", _e),
|
|
4619
|
+
v[6] ? "current-password" : "off") && h(M, "autocomplete", _e), P[0] & /*userPassword*/
|
|
4663
4620
|
8192 && M.value !== /*userPassword*/
|
|
4664
4621
|
v[13] && rt(
|
|
4665
4622
|
M,
|
|
4666
4623
|
/*userPassword*/
|
|
4667
4624
|
v[13]
|
|
4668
|
-
), Pe === (Pe = Ke(v)) && Y ? Y.p(v,
|
|
4625
|
+
), Pe === (Pe = Ke(v)) && Y ? Y.p(v, P) : (Y.d(1), Y = Pe(v), Y && (Y.c(), Y.m(B, we))), /*invalidPassword*/
|
|
4669
4626
|
v[15] && /*simplepasswordvalidation*/
|
|
4670
|
-
v[2] !== "true" ? D ? D.p(v,
|
|
4627
|
+
v[2] !== "true" ? D ? D.p(v, P) : (D = xr(v), D.c(), D.m(B, Ee)) : D && (D.d(1), D = null), /*invalidPassword*/
|
|
4671
4628
|
v[15] && /*simplepasswordvalidation*/
|
|
4672
|
-
v[2] === "true" ? k ? k.p(v,
|
|
4629
|
+
v[2] === "true" ? k ? k.p(v, P) : (k = Sr(v), k.c(), k.m(B, null)) : k && (k.d(1), k = null), P[0] & /*invalidPassword*/
|
|
4673
4630
|
32768 && pe !== (pe = "PasswordContainer " + /*invalidPassword*/
|
|
4674
4631
|
(v[15] ? "InvalidField" : "")) && h(B, "class", pe), /*errorMessage*/
|
|
4675
|
-
v[16] ?
|
|
4632
|
+
v[16] ? G ? G.p(v, P) : (G = Pr(v), G.c(), G.m(g, xe)) : G && (G.d(1), G = null), P[0] & /*$_*/
|
|
4676
4633
|
4194304 && ge !== (ge = /*$_*/
|
|
4677
|
-
v[22]("loginButton") + "") && re(Se, ge),
|
|
4634
|
+
v[22]("loginButton") + "") && re(Se, ge), P[0] & /*isFormDataInvalid*/
|
|
4678
4635
|
1048576 && (Q.disabled = /*isFormDataInvalid*/
|
|
4679
|
-
v[20]),
|
|
4636
|
+
v[20]), P[0] & /*$_*/
|
|
4680
4637
|
4194304 && ve !== (ve = /*$_*/
|
|
4681
|
-
v[22]("loginForgotPassword") + "") && re(
|
|
4638
|
+
v[22]("loginForgotPassword") + "") && re(Ge, ve);
|
|
4682
4639
|
},
|
|
4683
4640
|
d(v) {
|
|
4684
|
-
v && (I(t), I(b), I(y)), F && F.d(), e[36](null), Y.d(), D && D.d(), k && k.d(),
|
|
4641
|
+
v && (I(t), I(b), I(y)), F && F.d(), e[36](null), Y.d(), D && D.d(), k && k.d(), G && G.d(), $e = !1, Ne(Ye);
|
|
4685
4642
|
}
|
|
4686
4643
|
};
|
|
4687
4644
|
}
|
|
4688
|
-
function
|
|
4645
|
+
function Qo(e) {
|
|
4689
4646
|
let t;
|
|
4690
4647
|
return {
|
|
4691
4648
|
c() {
|
|
4692
|
-
t =
|
|
4649
|
+
t = x("general-player-sms-verification-form"), W(
|
|
4693
4650
|
t,
|
|
4694
4651
|
"endpoint",
|
|
4695
4652
|
/*endpoint*/
|
|
@@ -4779,17 +4736,17 @@ function rs(e) {
|
|
|
4779
4736
|
}
|
|
4780
4737
|
};
|
|
4781
4738
|
}
|
|
4782
|
-
function
|
|
4739
|
+
function Er(e) {
|
|
4783
4740
|
let t, r = (
|
|
4784
4741
|
/*$_*/
|
|
4785
4742
|
e[22]("loginUsernameError") + ""
|
|
4786
4743
|
), n;
|
|
4787
4744
|
return {
|
|
4788
4745
|
c() {
|
|
4789
|
-
t =
|
|
4746
|
+
t = x("p"), n = N(r), h(t, "class", "InvalidInput");
|
|
4790
4747
|
},
|
|
4791
4748
|
m(i, o) {
|
|
4792
|
-
L(i, t, o),
|
|
4749
|
+
L(i, t, o), d(t, n);
|
|
4793
4750
|
},
|
|
4794
4751
|
p(i, o) {
|
|
4795
4752
|
o[0] & /*$_*/
|
|
@@ -4801,14 +4758,14 @@ function Hr(e) {
|
|
|
4801
4758
|
}
|
|
4802
4759
|
};
|
|
4803
4760
|
}
|
|
4804
|
-
function
|
|
4761
|
+
function Yo(e) {
|
|
4805
4762
|
let t, r, n, i, o, s, a, u, l;
|
|
4806
4763
|
return {
|
|
4807
4764
|
c() {
|
|
4808
4765
|
t = C("svg"), r = C("defs"), n = C("style"), i = N(".a{fill:var(--emw--registration-typography, var(--emw--color-background, #07072A));}"), o = C("g"), s = C("path"), a = C("circle"), h(s, "class", "a"), h(s, "d", "M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"), h(s, "transform", "translate(0)"), h(a, "class", "a"), h(a, "cx", "2.779"), h(a, "cy", "2.779"), h(a, "r", "2.779"), h(a, "transform", "translate(20.827 30.303)"), h(o, "transform", "translate(-14.185 -27.832)"), h(t, "class", "TogglePasswordVisibility"), h(t, "xmlns", "http://www.w3.org/2000/svg"), h(t, "width", "18.843"), h(t, "height", "10.5"), h(t, "viewBox", "0 0 18.843 10.5");
|
|
4809
4766
|
},
|
|
4810
4767
|
m(c, f) {
|
|
4811
|
-
L(c, t, f),
|
|
4768
|
+
L(c, t, f), d(t, r), d(r, n), d(n, i), d(t, o), d(o, s), d(o, a), u || (l = se(
|
|
4812
4769
|
t,
|
|
4813
4770
|
"click",
|
|
4814
4771
|
/*click_handler_2*/
|
|
@@ -4821,14 +4778,14 @@ function ns(e) {
|
|
|
4821
4778
|
}
|
|
4822
4779
|
};
|
|
4823
4780
|
}
|
|
4824
|
-
function
|
|
4825
|
-
let t, r, n, i, o, s, a, u, l, c, f,
|
|
4781
|
+
function Ko(e) {
|
|
4782
|
+
let t, r, n, i, o, s, a, u, l, c, f, m, b, y, g;
|
|
4826
4783
|
return {
|
|
4827
4784
|
c() {
|
|
4828
|
-
t = C("svg"), r = C("defs"), n = C("style"), i = N(".a{fill:var(--emw--registration-typography, var(--emw--color-background, #07072A));}"), o = C("g"), s = C("circle"), a = C("g"), u = C("path"), l = C("path"), c = C("g"), f = C("path"),
|
|
4785
|
+
t = C("svg"), r = C("defs"), n = C("style"), i = N(".a{fill:var(--emw--registration-typography, var(--emw--color-background, #07072A));}"), o = C("g"), s = C("circle"), a = C("g"), u = C("path"), l = C("path"), c = C("g"), f = C("path"), m = C("path"), b = C("rect"), h(s, "class", "a"), h(s, "cx", "0.05"), h(s, "cy", "0.05"), h(s, "r", "0.05"), h(s, "transform", "translate(121.017 31.148)"), h(u, "class", "a"), h(u, "d", "M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"), h(u, "transform", "translate(-142.164 -39.123)"), h(l, "class", "a"), h(l, "d", "M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"), h(l, "transform", "translate(-136.413 -42.068)"), h(a, "transform", "translate(117.499 27.37)"), h(f, "class", "a"), h(f, "d", "M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"), h(f, "transform", "translate(-110.856 -33.157)"), h(m, "class", "a"), h(m, "d", "M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"), h(m, "transform", "translate(-130.743 -29.617)"), h(c, "transform", "translate(110.856 24.899)"), h(b, "class", "a"), h(b, "width", "0.972"), h(b, "height", "15.861"), h(b, "rx", "0.486"), h(b, "transform", "translate(114.827 23.858) rotate(-39.315)"), h(o, "transform", "translate(-110.856 -23.242)"), h(t, "class", "TogglePasswordVisibility"), h(t, "xmlns", "http://www.w3.org/2000/svg"), h(t, "width", "18.844"), h(t, "height", "12.887"), h(t, "viewBox", "0 0 18.844 12.887");
|
|
4829
4786
|
},
|
|
4830
|
-
m(
|
|
4831
|
-
L(
|
|
4787
|
+
m(S, O) {
|
|
4788
|
+
L(S, t, O), d(t, r), d(r, n), d(n, i), d(t, o), d(o, s), d(o, a), d(a, u), d(a, l), d(o, c), d(c, f), d(c, m), d(o, b), y || (g = se(
|
|
4832
4789
|
t,
|
|
4833
4790
|
"click",
|
|
4834
4791
|
/*click_handler_1*/
|
|
@@ -4836,22 +4793,22 @@ function is(e) {
|
|
|
4836
4793
|
), y = !0);
|
|
4837
4794
|
},
|
|
4838
4795
|
p: Z,
|
|
4839
|
-
d(
|
|
4840
|
-
|
|
4796
|
+
d(S) {
|
|
4797
|
+
S && I(t), y = !1, g();
|
|
4841
4798
|
}
|
|
4842
4799
|
};
|
|
4843
4800
|
}
|
|
4844
|
-
function
|
|
4801
|
+
function xr(e) {
|
|
4845
4802
|
let t, r = (
|
|
4846
4803
|
/*$_*/
|
|
4847
4804
|
e[22]("loginPasswordError") + ""
|
|
4848
4805
|
), n;
|
|
4849
4806
|
return {
|
|
4850
4807
|
c() {
|
|
4851
|
-
t =
|
|
4808
|
+
t = x("p"), n = N(r), h(t, "class", "InvalidInput");
|
|
4852
4809
|
},
|
|
4853
4810
|
m(i, o) {
|
|
4854
|
-
L(i, t, o),
|
|
4811
|
+
L(i, t, o), d(t, n);
|
|
4855
4812
|
},
|
|
4856
4813
|
p(i, o) {
|
|
4857
4814
|
o[0] & /*$_*/
|
|
@@ -4863,17 +4820,17 @@ function Br(e) {
|
|
|
4863
4820
|
}
|
|
4864
4821
|
};
|
|
4865
4822
|
}
|
|
4866
|
-
function
|
|
4823
|
+
function Sr(e) {
|
|
4867
4824
|
let t, r = (
|
|
4868
4825
|
/*$_*/
|
|
4869
4826
|
e[22]("loginSimplePasswordError") + ""
|
|
4870
4827
|
), n;
|
|
4871
4828
|
return {
|
|
4872
4829
|
c() {
|
|
4873
|
-
t =
|
|
4830
|
+
t = x("p"), n = N(r), h(t, "class", "InvalidInput");
|
|
4874
4831
|
},
|
|
4875
4832
|
m(i, o) {
|
|
4876
|
-
L(i, t, o),
|
|
4833
|
+
L(i, t, o), d(t, n);
|
|
4877
4834
|
},
|
|
4878
4835
|
p(i, o) {
|
|
4879
4836
|
o[0] & /*$_*/
|
|
@@ -4885,17 +4842,17 @@ function Ar(e) {
|
|
|
4885
4842
|
}
|
|
4886
4843
|
};
|
|
4887
4844
|
}
|
|
4888
|
-
function
|
|
4845
|
+
function Pr(e) {
|
|
4889
4846
|
let t, r;
|
|
4890
4847
|
return {
|
|
4891
4848
|
c() {
|
|
4892
|
-
t =
|
|
4849
|
+
t = x("p"), r = N(
|
|
4893
4850
|
/*errorMessage*/
|
|
4894
4851
|
e[16]
|
|
4895
4852
|
), h(t, "class", "ErrorMessage");
|
|
4896
4853
|
},
|
|
4897
4854
|
m(n, i) {
|
|
4898
|
-
L(n, t, i),
|
|
4855
|
+
L(n, t, i), d(t, r);
|
|
4899
4856
|
},
|
|
4900
4857
|
p(n, i) {
|
|
4901
4858
|
i[0] & /*errorMessage*/
|
|
@@ -4910,21 +4867,21 @@ function Ir(e) {
|
|
|
4910
4867
|
}
|
|
4911
4868
|
};
|
|
4912
4869
|
}
|
|
4913
|
-
function
|
|
4870
|
+
function es(e) {
|
|
4914
4871
|
let t, r, n, i, o, s = (
|
|
4915
4872
|
/*captchakey*/
|
|
4916
|
-
e[1] &&
|
|
4873
|
+
e[1] && wr(e)
|
|
4917
4874
|
);
|
|
4918
4875
|
function a(c, f) {
|
|
4919
4876
|
return (
|
|
4920
4877
|
/*isLoading*/
|
|
4921
|
-
c[17] ?
|
|
4878
|
+
c[17] ? qo : Zo
|
|
4922
4879
|
);
|
|
4923
4880
|
}
|
|
4924
4881
|
let u = a(e), l = u(e);
|
|
4925
4882
|
return {
|
|
4926
4883
|
c() {
|
|
4927
|
-
s && s.c(), t =
|
|
4884
|
+
s && s.c(), t = _n(), r = j(), n = x("div"), i = j(), o = x("div"), l.c(), h(n, "class", "g-recaptcha"), h(
|
|
4928
4885
|
n,
|
|
4929
4886
|
"data-sitekey",
|
|
4930
4887
|
/*captchakey*/
|
|
@@ -4932,11 +4889,11 @@ function os(e) {
|
|
|
4932
4889
|
), h(o, "class", "PlayerLoginFormWrapper");
|
|
4933
4890
|
},
|
|
4934
4891
|
m(c, f) {
|
|
4935
|
-
s && s.m(document.head, null),
|
|
4892
|
+
s && s.m(document.head, null), d(document.head, t), L(c, r, f), L(c, n, f), L(c, i, f), L(c, o, f), l.m(o, null), e[41](o);
|
|
4936
4893
|
},
|
|
4937
4894
|
p(c, f) {
|
|
4938
4895
|
/*captchakey*/
|
|
4939
|
-
c[1] ? s ? s.p(c, f) : (s =
|
|
4896
|
+
c[1] ? s ? s.p(c, f) : (s = wr(c), s.c(), s.m(t.parentNode, t)) : s && (s.d(1), s = null), f[0] & /*captchakey*/
|
|
4940
4897
|
2 && h(
|
|
4941
4898
|
n,
|
|
4942
4899
|
"data-sitekey",
|
|
@@ -4951,27 +4908,27 @@ function os(e) {
|
|
|
4951
4908
|
}
|
|
4952
4909
|
};
|
|
4953
4910
|
}
|
|
4954
|
-
let
|
|
4955
|
-
function
|
|
4911
|
+
let ts = "Please use this code {0} to activate your account";
|
|
4912
|
+
function rs(e, t, r) {
|
|
4956
4913
|
let n;
|
|
4957
|
-
|
|
4958
|
-
let { endpoint: i = "" } = t, { captchakey: o = "" } = t, { lang: s = "en" } = t, { smsverification: a = "false" } = t, { simplepasswordvalidation: u = "false" } = t, { mbsource: l } = t, { clientstyling: c = "" } = t, { clientstylingurl: f = "" } = t, { translationurl:
|
|
4914
|
+
gn(e, ko, (p) => r(22, n = p));
|
|
4915
|
+
let { endpoint: i = "" } = t, { captchakey: o = "" } = t, { lang: s = "en" } = t, { smsverification: a = "false" } = t, { simplepasswordvalidation: u = "false" } = t, { mbsource: l } = t, { clientstyling: c = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: m = "" } = t, { savecredentials: b = "" } = t, y, g, S = !1, O, z = !1, R = window.navigator.userAgent, U = "", A = "", ne = { username: "", password: "" }, H = !1, oe = !1, fe = "", J = !1, ue, B = !1, ie = !0, X, De = +localStorage.getItem("smsTimer") || 0, qe = Date.now() / 1e3 - De, me = localStorage.getItem("smsValidation") == "true" && qe < 60, de = {
|
|
4959
4916
|
user: /^(?!(?:.*\d){9})(?=(?:.*[a-zA-Z]){4})^[a-zA-Z\d]*$/,
|
|
4960
4917
|
email: /^[^<>()*{}=/|?`~[\]\\,;:\%#^\s@\"$&!@]+@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z0-9]+\.)+[a-zA-Z]{2,}))$/i,
|
|
4961
4918
|
password: /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/
|
|
4962
4919
|
};
|
|
4963
|
-
|
|
4920
|
+
$o({ withLocale: "en", translations: {} });
|
|
4964
4921
|
const M = () => {
|
|
4965
|
-
fetch(
|
|
4922
|
+
fetch(m).then((q) => q.json()).then((q) => {
|
|
4966
4923
|
Object.keys(q).forEach((te) => {
|
|
4967
|
-
|
|
4924
|
+
yr(te, q[te]);
|
|
4968
4925
|
});
|
|
4969
4926
|
}).catch((q) => {
|
|
4970
4927
|
console.log(q);
|
|
4971
4928
|
});
|
|
4972
4929
|
};
|
|
4973
|
-
Object.keys(
|
|
4974
|
-
|
|
4930
|
+
Object.keys(_r).forEach((p) => {
|
|
4931
|
+
yr(p, _r[p]);
|
|
4975
4932
|
});
|
|
4976
4933
|
const _e = () => new Promise((p, q) => {
|
|
4977
4934
|
grecaptcha.ready(() => {
|
|
@@ -4980,14 +4937,14 @@ function as(e, t, r) {
|
|
|
4980
4937
|
});
|
|
4981
4938
|
});
|
|
4982
4939
|
}), Je = () => {
|
|
4983
|
-
u == "true" && (
|
|
4940
|
+
u == "true" && (de.password = /^(?!.* ).{8,20}$/);
|
|
4984
4941
|
}, we = () => {
|
|
4985
4942
|
r(19, B = !0), pe();
|
|
4986
4943
|
}, Ee = () => {
|
|
4987
4944
|
r(19, B = !1), pe();
|
|
4988
4945
|
}, pe = () => {
|
|
4989
4946
|
r(18, ue.type = B ? "text" : "password", ue);
|
|
4990
|
-
},
|
|
4947
|
+
}, ke = () => {
|
|
4991
4948
|
window.postMessage({ type: "ToRegister" }, window.location.href);
|
|
4992
4949
|
}, xe = (p) => {
|
|
4993
4950
|
p.preventDefault(), window.postMessage({ type: "NavForgotPassword" }, window.location.href);
|
|
@@ -4999,10 +4956,10 @@ function as(e, t, r) {
|
|
|
4999
4956
|
token: q
|
|
5000
4957
|
}, r(17, J = !0), $e(ne));
|
|
5001
4958
|
});
|
|
5002
|
-
}, ge = (p) => !!((
|
|
5003
|
-
r(14, H = !ge(U)), r(20, ie = !(!H && !
|
|
4959
|
+
}, ge = (p) => !!((de.user.test(p) || de.email.test(p)) && p.length <= 100), Se = (p) => !!de.password.test(p), Qe = () => {
|
|
4960
|
+
r(14, H = !ge(U)), r(20, ie = !(!H && !oe && A));
|
|
5004
4961
|
}, be = () => {
|
|
5005
|
-
r(15,
|
|
4962
|
+
r(15, oe = !Se(A)), r(20, ie = !(!H && !oe && U));
|
|
5006
4963
|
}, ve = (p) => {
|
|
5007
4964
|
if (p.data)
|
|
5008
4965
|
switch (p.data.type) {
|
|
@@ -5016,20 +4973,20 @@ function as(e, t, r) {
|
|
|
5016
4973
|
Q();
|
|
5017
4974
|
break;
|
|
5018
4975
|
}
|
|
5019
|
-
},
|
|
4976
|
+
}, Ge = (p) => {
|
|
5020
4977
|
typeof gtag == "function" && gtag("event", "Login", {
|
|
5021
4978
|
context: "GeneralPlayerLoginRegisterPage"
|
|
5022
4979
|
});
|
|
5023
|
-
}, $e = (
|
|
5024
|
-
let
|
|
4980
|
+
}, $e = (Vt) => et(this, [Vt], function* ({ username: p, password: q, token: te }) {
|
|
4981
|
+
let zt = {
|
|
5025
4982
|
"Content-Type": "application/json",
|
|
5026
4983
|
"g-recaptcha-response": te
|
|
5027
|
-
},
|
|
4984
|
+
}, bt = { username: p, password: q }, un = {
|
|
5028
4985
|
method: "POST",
|
|
5029
|
-
headers:
|
|
5030
|
-
body: JSON.stringify(
|
|
4986
|
+
headers: zt,
|
|
4987
|
+
body: JSON.stringify(bt)
|
|
5031
4988
|
};
|
|
5032
|
-
fetch(`${i}/v1/player/login/player`,
|
|
4989
|
+
fetch(`${i}/v1/player/login/player`, un).then(($) => ($.status >= 500 && (r(16, fe = "Server might not be responsing"), r(17, J = !1), window.postMessage(
|
|
5033
4990
|
{
|
|
5034
4991
|
type: "WidgetNotification",
|
|
5035
4992
|
data: {
|
|
@@ -5038,13 +4995,13 @@ function as(e, t, r) {
|
|
|
5038
4995
|
}
|
|
5039
4996
|
},
|
|
5040
4997
|
window.location.href
|
|
5041
|
-
)),
|
|
5042
|
-
if (
|
|
4998
|
+
)), $.json())).then(($) => {
|
|
4999
|
+
if ($.actions !== void 0 && window.postMessage({ type: "PlayerActions" }, window.location.href), a === "true" && $.code === 4 && (r(8, y = $.detail.userId), r(10, O = $.detail.phonePrefix + $.detail.phone), r(21, me = !0), Ye(O, y), localStorage.setItem("smsValidation", "true"), localStorage.setItem("playerData", JSON.stringify({ playerid: y, number: O }))), $.sessionID) {
|
|
5043
5000
|
if (window.postMessage(
|
|
5044
5001
|
{
|
|
5045
5002
|
type: "UserSessionID",
|
|
5046
|
-
session:
|
|
5047
|
-
userid:
|
|
5003
|
+
session: $.sessionID,
|
|
5004
|
+
userid: $.universalID
|
|
5048
5005
|
},
|
|
5049
5006
|
window.location.href
|
|
5050
5007
|
), window.postMessage(
|
|
@@ -5057,29 +5014,29 @@ function as(e, t, r) {
|
|
|
5057
5014
|
},
|
|
5058
5015
|
window.location.href
|
|
5059
5016
|
), window.PasswordCredential && b == "true") {
|
|
5060
|
-
const
|
|
5061
|
-
password:
|
|
5062
|
-
id:
|
|
5017
|
+
const je = new PasswordCredential({
|
|
5018
|
+
password: bt.password,
|
|
5019
|
+
id: bt.username
|
|
5063
5020
|
});
|
|
5064
|
-
navigator.credentials.store(
|
|
5021
|
+
navigator.credentials.store(je);
|
|
5065
5022
|
}
|
|
5066
|
-
|
|
5023
|
+
Ge();
|
|
5067
5024
|
} else
|
|
5068
5025
|
try {
|
|
5069
|
-
let
|
|
5070
|
-
r(16, fe =
|
|
5026
|
+
let je = $.error;
|
|
5027
|
+
r(16, fe = je), r(17, J = !1), window.postMessage(
|
|
5071
5028
|
{
|
|
5072
5029
|
type: "WidgetNotification",
|
|
5073
|
-
data: { type: "error", message:
|
|
5030
|
+
data: { type: "error", message: je }
|
|
5074
5031
|
},
|
|
5075
5032
|
window.location.href
|
|
5076
5033
|
);
|
|
5077
|
-
} catch (
|
|
5078
|
-
let
|
|
5079
|
-
r(16, fe =
|
|
5034
|
+
} catch (je) {
|
|
5035
|
+
let Xt = $.error.substring($.error.indexOf("errorMessage") + 13, $.error.length);
|
|
5036
|
+
r(16, fe = Xt), r(17, J = !1), window.postMessage(
|
|
5080
5037
|
{
|
|
5081
5038
|
type: "WidgetNotification",
|
|
5082
|
-
data: { type: "error", message:
|
|
5039
|
+
data: { type: "error", message: Xt }
|
|
5083
5040
|
},
|
|
5084
5041
|
window.location.href
|
|
5085
5042
|
);
|
|
@@ -5096,26 +5053,26 @@ function as(e, t, r) {
|
|
|
5096
5053
|
},
|
|
5097
5054
|
body: JSON.stringify({
|
|
5098
5055
|
userId: q,
|
|
5099
|
-
messageTemplate:
|
|
5056
|
+
messageTemplate: ts,
|
|
5100
5057
|
destination: p
|
|
5101
5058
|
})
|
|
5102
|
-
}),
|
|
5059
|
+
}), Vt = yield te.json();
|
|
5103
5060
|
if (te.ok) {
|
|
5104
|
-
r(9, g =
|
|
5105
|
-
let
|
|
5106
|
-
|
|
5061
|
+
r(9, g = Vt.id);
|
|
5062
|
+
let zt = Vt.maxValidationAttempts;
|
|
5063
|
+
S = !1;
|
|
5107
5064
|
} else
|
|
5108
|
-
throw
|
|
5065
|
+
throw S = !0, new Error("Failed to fetch");
|
|
5109
5066
|
} catch (te) {
|
|
5110
|
-
|
|
5067
|
+
S = !0, console.error(te);
|
|
5111
5068
|
}
|
|
5112
5069
|
}), F = () => {
|
|
5113
|
-
|
|
5070
|
+
jo(s);
|
|
5114
5071
|
};
|
|
5115
|
-
|
|
5072
|
+
Sn(() => (window.addEventListener("message", ve, !1), window.postMessage({ type: "LoginRegisterModalActive" }, window.location.href), r(11, z = Go(R)), () => {
|
|
5116
5073
|
window.removeEventListener("message", ve);
|
|
5117
5074
|
}));
|
|
5118
|
-
const Ke = () =>
|
|
5075
|
+
const Ke = () => ke();
|
|
5119
5076
|
function Pe() {
|
|
5120
5077
|
U = this.value, r(12, U);
|
|
5121
5078
|
}
|
|
@@ -5127,22 +5084,22 @@ function as(e, t, r) {
|
|
|
5127
5084
|
ue = p, r(18, ue);
|
|
5128
5085
|
});
|
|
5129
5086
|
}
|
|
5130
|
-
const k = () => Ee(),
|
|
5131
|
-
function
|
|
5087
|
+
const k = () => Ee(), G = () => we(), v = (p) => Q(p), P = (p) => xe(p);
|
|
5088
|
+
function ln(p) {
|
|
5132
5089
|
ut[p ? "unshift" : "push"](() => {
|
|
5133
5090
|
X = p, r(7, X);
|
|
5134
5091
|
});
|
|
5135
5092
|
}
|
|
5136
5093
|
return e.$$set = (p) => {
|
|
5137
|
-
"endpoint" in p && r(0, i = p.endpoint), "captchakey" in p && r(1, o = p.captchakey), "lang" in p && r(30, s = p.lang), "smsverification" in p && r(31, a = p.smsverification), "simplepasswordvalidation" in p && r(2, u = p.simplepasswordvalidation), "mbsource" in p && r(3, l = p.mbsource), "clientstyling" in p && r(4, c = p.clientstyling), "clientstylingurl" in p && r(5, f = p.clientstylingurl), "translationurl" in p && r(32,
|
|
5094
|
+
"endpoint" in p && r(0, i = p.endpoint), "captchakey" in p && r(1, o = p.captchakey), "lang" in p && r(30, s = p.lang), "smsverification" in p && r(31, a = p.smsverification), "simplepasswordvalidation" in p && r(2, u = p.simplepasswordvalidation), "mbsource" in p && r(3, l = p.mbsource), "clientstyling" in p && r(4, c = p.clientstyling), "clientstylingurl" in p && r(5, f = p.clientstylingurl), "translationurl" in p && r(32, m = p.translationurl), "savecredentials" in p && r(6, b = p.savecredentials);
|
|
5138
5095
|
}, e.$$.update = () => {
|
|
5139
5096
|
e.$$.dirty[0] & /*endpoint, lang*/
|
|
5140
5097
|
1073741825 && i && s && F(), e.$$.dirty[0] & /*simplepasswordvalidation*/
|
|
5141
5098
|
4 && u && Je(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5142
|
-
144 && c && X &&
|
|
5143
|
-
160 && f && X &&
|
|
5144
|
-
136 && l && X &&
|
|
5145
|
-
2 &&
|
|
5099
|
+
144 && c && X && Vo(X, c), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5100
|
+
160 && f && X && zo(X, f), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5101
|
+
136 && l && X && Xo(X, `${l}.Style`), e.$$.dirty[1] & /*translationurl*/
|
|
5102
|
+
2 && m && M();
|
|
5146
5103
|
}, [
|
|
5147
5104
|
i,
|
|
5148
5105
|
o,
|
|
@@ -5159,43 +5116,43 @@ function as(e, t, r) {
|
|
|
5159
5116
|
U,
|
|
5160
5117
|
A,
|
|
5161
5118
|
H,
|
|
5162
|
-
|
|
5119
|
+
oe,
|
|
5163
5120
|
fe,
|
|
5164
5121
|
J,
|
|
5165
5122
|
ue,
|
|
5166
5123
|
B,
|
|
5167
5124
|
ie,
|
|
5168
|
-
|
|
5125
|
+
me,
|
|
5169
5126
|
n,
|
|
5170
5127
|
we,
|
|
5171
5128
|
Ee,
|
|
5172
|
-
|
|
5129
|
+
ke,
|
|
5173
5130
|
xe,
|
|
5174
5131
|
Q,
|
|
5175
5132
|
Qe,
|
|
5176
5133
|
be,
|
|
5177
5134
|
s,
|
|
5178
5135
|
a,
|
|
5179
|
-
|
|
5136
|
+
m,
|
|
5180
5137
|
Ke,
|
|
5181
5138
|
Pe,
|
|
5182
5139
|
Y,
|
|
5183
5140
|
D,
|
|
5184
5141
|
k,
|
|
5185
|
-
|
|
5142
|
+
G,
|
|
5186
5143
|
v,
|
|
5187
|
-
|
|
5188
|
-
|
|
5144
|
+
P,
|
|
5145
|
+
ln
|
|
5189
5146
|
];
|
|
5190
5147
|
}
|
|
5191
|
-
class
|
|
5148
|
+
class an extends Rn {
|
|
5192
5149
|
constructor(t) {
|
|
5193
|
-
super(),
|
|
5150
|
+
super(), Mn(
|
|
5194
5151
|
this,
|
|
5195
5152
|
t,
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5153
|
+
rs,
|
|
5154
|
+
es,
|
|
5155
|
+
Hr,
|
|
5199
5156
|
{
|
|
5200
5157
|
endpoint: 0,
|
|
5201
5158
|
captchakey: 1,
|
|
@@ -5208,7 +5165,7 @@ class fn extends $n {
|
|
|
5208
5165
|
translationurl: 32,
|
|
5209
5166
|
savecredentials: 6
|
|
5210
5167
|
},
|
|
5211
|
-
|
|
5168
|
+
Wo,
|
|
5212
5169
|
[-1, -1]
|
|
5213
5170
|
);
|
|
5214
5171
|
}
|
|
@@ -5273,39 +5230,39 @@ class fn extends $n {
|
|
|
5273
5230
|
this.$$set({ savecredentials: t }), ee();
|
|
5274
5231
|
}
|
|
5275
5232
|
}
|
|
5276
|
-
|
|
5277
|
-
const
|
|
5233
|
+
Nn(an, { endpoint: {}, captchakey: {}, lang: {}, smsverification: {}, simplepasswordvalidation: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, savecredentials: {} }, [], [], !0);
|
|
5234
|
+
const is = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5278
5235
|
__proto__: null,
|
|
5279
|
-
default:
|
|
5236
|
+
default: an
|
|
5280
5237
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5281
5238
|
export {
|
|
5282
5239
|
he as $,
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5240
|
+
is as G,
|
|
5241
|
+
Rn as S,
|
|
5242
|
+
Ue as a,
|
|
5243
|
+
tn as b,
|
|
5244
|
+
bn as c,
|
|
5288
5245
|
I as d,
|
|
5289
5246
|
re as e,
|
|
5290
5247
|
ee as f,
|
|
5291
5248
|
rt as g,
|
|
5292
5249
|
h,
|
|
5293
|
-
|
|
5250
|
+
Mn as i,
|
|
5294
5251
|
L as j,
|
|
5295
|
-
|
|
5296
|
-
|
|
5297
|
-
|
|
5252
|
+
d as k,
|
|
5253
|
+
se as l,
|
|
5254
|
+
x as m,
|
|
5298
5255
|
Z as n,
|
|
5299
5256
|
j as o,
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
|
|
5257
|
+
gn as p,
|
|
5258
|
+
Sn as q,
|
|
5259
|
+
Ne as r,
|
|
5260
|
+
Hr as s,
|
|
5304
5261
|
N as t,
|
|
5305
5262
|
ut as u,
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5263
|
+
Vo as v,
|
|
5264
|
+
zo as w,
|
|
5265
|
+
Xo as x,
|
|
5266
|
+
Nn as y,
|
|
5267
|
+
ko as z
|
|
5311
5268
|
};
|