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