@everymatrix/general-player-login-form-nd 1.76.3 → 1.76.5
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-0zK-AsMe.js → GeneralPlayerLoginFormNd-1DxGEPP9.js} +854 -819
- package/components/{GeneralPlayerLoginFormNd-BrD1TESB.js → GeneralPlayerLoginFormNd-CUIevjh8.js} +831 -796
- package/components/GeneralPlayerLoginFormNd-Dv0P7KwS.cjs +18 -0
- package/components/{GeneralPlayerSmsVerificationForm-CvbvUmlt.js → GeneralPlayerSmsVerificationForm-BKWeCfRG.js} +25 -25
- package/components/{GeneralPlayerSmsVerificationForm-9nSotkvC.js → GeneralPlayerSmsVerificationForm-DJahVXQg.js} +22 -22
- package/components/{GeneralPlayerSmsVerificationForm-uyVJACCg.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-BVbXxEl6.cjs +0 -18
package/components/{GeneralPlayerLoginFormNd-0zK-AsMe.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 Ar(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
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,7 +83,7 @@ function vn(e) {
|
|
|
83
83
|
t
|
|
84
84
|
) : e.ownerDocument;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function Sn(e, t) {
|
|
87
87
|
return m(
|
|
88
88
|
/** @type {Document} */
|
|
89
89
|
e.head || e,
|
|
@@ -96,10 +96,10 @@ 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
|
-
function
|
|
102
|
+
function C(e) {
|
|
103
103
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
104
104
|
}
|
|
105
105
|
function N(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 xn(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 Nn(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,7 +237,7 @@ function Nn(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
|
|
@@ -245,20 +245,20 @@ function Nn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
245
245
|
s && s(l.root);
|
|
246
246
|
let c = !1;
|
|
247
247
|
if (l.ctx = r ? r(e, t.props || {}, (f, d, ...b) => {
|
|
248
|
-
const
|
|
249
|
-
return l.ctx && i(l.ctx[f], l.ctx[f] =
|
|
250
|
-
}) : [], l.update(), c = !0,
|
|
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" && (Ir = 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" && (Ir = 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" && (Ir = 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 Rn(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 Un {
|
|
|
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 Un {
|
|
|
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 Un {
|
|
|
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 Dn(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 = Cr(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,22 +609,22 @@ 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 d =
|
|
642
|
-
var
|
|
622
|
+
for (var d = Ct(f), b = d.next(); !b.done; b = d.next()) {
|
|
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) {
|
|
@@ -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,56 +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
|
|
695
|
-
}
|
|
696
|
-
function
|
|
697
|
-
|
|
698
|
-
}
|
|
699
|
-
var
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
Promise: void 0,
|
|
703
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
704
|
-
useDeprecatedNextContext: !1
|
|
705
|
-
}, Gn = {
|
|
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);
|
|
676
|
+
}
|
|
677
|
+
function ir(e) {
|
|
678
|
+
le(e) ? e() : e.unsubscribe();
|
|
679
|
+
}
|
|
680
|
+
var jn = {
|
|
681
|
+
Promise: void 0
|
|
682
|
+
}, Vn = {
|
|
706
683
|
setTimeout: function(e, t) {
|
|
707
684
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
708
685
|
r[n - 2] = arguments[n];
|
|
709
|
-
return setTimeout.apply(void 0,
|
|
686
|
+
return setTimeout.apply(void 0, Mt([e, t], Lt(r)));
|
|
710
687
|
},
|
|
711
688
|
clearTimeout: function(e) {
|
|
712
689
|
return clearTimeout(e);
|
|
713
690
|
},
|
|
714
691
|
delegate: void 0
|
|
715
692
|
};
|
|
716
|
-
function
|
|
717
|
-
|
|
693
|
+
function zn(e) {
|
|
694
|
+
Vn.setTimeout(function() {
|
|
718
695
|
throw e;
|
|
719
696
|
});
|
|
720
697
|
}
|
|
721
|
-
function
|
|
698
|
+
function or() {
|
|
722
699
|
}
|
|
723
700
|
function st(e) {
|
|
724
701
|
e();
|
|
725
702
|
}
|
|
726
|
-
var
|
|
727
|
-
|
|
703
|
+
var Fr = function(e) {
|
|
704
|
+
Ze(t, e);
|
|
728
705
|
function t(r) {
|
|
729
706
|
var n = e.call(this) || this;
|
|
730
|
-
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;
|
|
731
708
|
}
|
|
732
709
|
return t.create = function(r, n, i) {
|
|
733
|
-
return new
|
|
710
|
+
return new Rt(r, n, i);
|
|
734
711
|
}, t.prototype.next = function(r) {
|
|
735
712
|
this.isStopped || this._next(r);
|
|
736
713
|
}, t.prototype.error = function(r) {
|
|
@@ -754,7 +731,7 @@ var Mr = function(e) {
|
|
|
754
731
|
this.unsubscribe();
|
|
755
732
|
}
|
|
756
733
|
}, t;
|
|
757
|
-
}(
|
|
734
|
+
}(dt), Xn = function() {
|
|
758
735
|
function e(t) {
|
|
759
736
|
this.partialObserver = t;
|
|
760
737
|
}
|
|
@@ -785,43 +762,43 @@ var Mr = function(e) {
|
|
|
785
762
|
nt(r);
|
|
786
763
|
}
|
|
787
764
|
}, e;
|
|
788
|
-
}(),
|
|
789
|
-
|
|
765
|
+
}(), Rt = function(e) {
|
|
766
|
+
Ze(t, e);
|
|
790
767
|
function t(r, n, i) {
|
|
791
768
|
var o = e.call(this) || this, s;
|
|
792
|
-
return
|
|
769
|
+
return le(r) || !r ? s = {
|
|
793
770
|
next: r != null ? r : void 0,
|
|
794
771
|
error: n != null ? n : void 0,
|
|
795
772
|
complete: i != null ? i : void 0
|
|
796
|
-
} : s = r, o.destination = new
|
|
773
|
+
} : s = r, o.destination = new Xn(s), o;
|
|
797
774
|
}
|
|
798
775
|
return t;
|
|
799
|
-
}(
|
|
776
|
+
}(Fr);
|
|
800
777
|
function nt(e) {
|
|
801
|
-
|
|
778
|
+
zn(e);
|
|
802
779
|
}
|
|
803
|
-
function
|
|
780
|
+
function Wn(e) {
|
|
804
781
|
throw e;
|
|
805
782
|
}
|
|
806
|
-
var
|
|
783
|
+
var Zn = {
|
|
807
784
|
closed: !0,
|
|
808
|
-
next:
|
|
809
|
-
error:
|
|
810
|
-
complete:
|
|
811
|
-
},
|
|
785
|
+
next: or,
|
|
786
|
+
error: Wn,
|
|
787
|
+
complete: or
|
|
788
|
+
}, qn = function() {
|
|
812
789
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
813
790
|
}();
|
|
814
|
-
function
|
|
791
|
+
function Jn(e) {
|
|
815
792
|
return e;
|
|
816
793
|
}
|
|
817
|
-
function
|
|
818
|
-
return e.length === 0 ?
|
|
794
|
+
function Qn(e) {
|
|
795
|
+
return e.length === 0 ? Jn : e.length === 1 ? e[0] : function(r) {
|
|
819
796
|
return e.reduce(function(n, i) {
|
|
820
797
|
return i(n);
|
|
821
798
|
}, r);
|
|
822
799
|
};
|
|
823
800
|
}
|
|
824
|
-
var
|
|
801
|
+
var sr = function() {
|
|
825
802
|
function e(t) {
|
|
826
803
|
t && (this._subscribe = t);
|
|
827
804
|
}
|
|
@@ -829,7 +806,7 @@ var rr = function() {
|
|
|
829
806
|
var r = new e();
|
|
830
807
|
return r.source = this, r.operator = t, r;
|
|
831
808
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
832
|
-
var i = this, o =
|
|
809
|
+
var i = this, o = Kn(t) ? t : new Rt(t, r, n);
|
|
833
810
|
return st(function() {
|
|
834
811
|
var s = i, a = s.operator, u = s.source;
|
|
835
812
|
o.add(a ? a.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -842,8 +819,8 @@ var rr = function() {
|
|
|
842
819
|
}
|
|
843
820
|
}, e.prototype.forEach = function(t, r) {
|
|
844
821
|
var n = this;
|
|
845
|
-
return r =
|
|
846
|
-
var s = new
|
|
822
|
+
return r = ar(r), new r(function(i, o) {
|
|
823
|
+
var s = new Rt({
|
|
847
824
|
next: function(a) {
|
|
848
825
|
try {
|
|
849
826
|
t(a);
|
|
@@ -859,15 +836,15 @@ var rr = function() {
|
|
|
859
836
|
}, e.prototype._subscribe = function(t) {
|
|
860
837
|
var r;
|
|
861
838
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
862
|
-
}, e.prototype[
|
|
839
|
+
}, e.prototype[qn] = function() {
|
|
863
840
|
return this;
|
|
864
841
|
}, e.prototype.pipe = function() {
|
|
865
842
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
866
843
|
t[r] = arguments[r];
|
|
867
|
-
return
|
|
844
|
+
return Qn(t)(this);
|
|
868
845
|
}, e.prototype.toPromise = function(t) {
|
|
869
846
|
var r = this;
|
|
870
|
-
return t =
|
|
847
|
+
return t = ar(t), new t(function(n, i) {
|
|
871
848
|
var o;
|
|
872
849
|
r.subscribe(function(s) {
|
|
873
850
|
return o = s;
|
|
@@ -881,32 +858,32 @@ var rr = function() {
|
|
|
881
858
|
return new e(t);
|
|
882
859
|
}, e;
|
|
883
860
|
}();
|
|
884
|
-
function
|
|
861
|
+
function ar(e) {
|
|
885
862
|
var t;
|
|
886
|
-
return (t = e != null ? e :
|
|
863
|
+
return (t = e != null ? e : jn.Promise) !== null && t !== void 0 ? t : Promise;
|
|
887
864
|
}
|
|
888
|
-
function
|
|
889
|
-
return e &&
|
|
865
|
+
function Yn(e) {
|
|
866
|
+
return e && le(e.next) && le(e.error) && le(e.complete);
|
|
890
867
|
}
|
|
891
|
-
function
|
|
892
|
-
return e && e instanceof
|
|
868
|
+
function Kn(e) {
|
|
869
|
+
return e && e instanceof Fr || Yn(e) && Ur(e);
|
|
893
870
|
}
|
|
894
|
-
var
|
|
871
|
+
var ei = Nr(function(e) {
|
|
895
872
|
return function() {
|
|
896
873
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
897
874
|
};
|
|
898
|
-
}),
|
|
899
|
-
|
|
875
|
+
}), Dr = function(e) {
|
|
876
|
+
Ze(t, e);
|
|
900
877
|
function t() {
|
|
901
878
|
var r = e.call(this) || this;
|
|
902
879
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
903
880
|
}
|
|
904
881
|
return t.prototype.lift = function(r) {
|
|
905
|
-
var n = new
|
|
882
|
+
var n = new lr(this, this);
|
|
906
883
|
return n.operator = r, n;
|
|
907
884
|
}, t.prototype._throwIfClosed = function() {
|
|
908
885
|
if (this.closed)
|
|
909
|
-
throw new
|
|
886
|
+
throw new ei();
|
|
910
887
|
}, t.prototype.next = function(r) {
|
|
911
888
|
var n = this;
|
|
912
889
|
st(function() {
|
|
@@ -914,7 +891,7 @@ var Qn = Cr(function(e) {
|
|
|
914
891
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
915
892
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
916
893
|
try {
|
|
917
|
-
for (var s =
|
|
894
|
+
for (var s = Ct(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
918
895
|
var u = a.value;
|
|
919
896
|
u.next(r);
|
|
920
897
|
}
|
|
@@ -963,20 +940,20 @@ var Qn = Cr(function(e) {
|
|
|
963
940
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
964
941
|
}, t.prototype._innerSubscribe = function(r) {
|
|
965
942
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
966
|
-
return o || s ?
|
|
967
|
-
n.currentObservers = null,
|
|
943
|
+
return o || s ? Rr : (this.currentObservers = null, a.push(r), new dt(function() {
|
|
944
|
+
n.currentObservers = null, Nt(a, r);
|
|
968
945
|
}));
|
|
969
946
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
970
947
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
971
948
|
i ? r.error(o) : s && r.complete();
|
|
972
949
|
}, t.prototype.asObservable = function() {
|
|
973
|
-
var r = new
|
|
950
|
+
var r = new sr();
|
|
974
951
|
return r.source = this, r;
|
|
975
952
|
}, t.create = function(r, n) {
|
|
976
|
-
return new
|
|
953
|
+
return new lr(r, n);
|
|
977
954
|
}, t;
|
|
978
|
-
}(
|
|
979
|
-
|
|
955
|
+
}(sr), lr = function(e) {
|
|
956
|
+
Ze(t, e);
|
|
980
957
|
function t(r, n) {
|
|
981
958
|
var i = e.call(this) || this;
|
|
982
959
|
return i.destination = r, i.source = n, i;
|
|
@@ -992,17 +969,17 @@ var Qn = Cr(function(e) {
|
|
|
992
969
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
993
970
|
}, t.prototype._subscribe = function(r) {
|
|
994
971
|
var n, i;
|
|
995
|
-
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;
|
|
996
973
|
}, t;
|
|
997
|
-
}(
|
|
974
|
+
}(Dr), kr = {
|
|
998
975
|
now: function() {
|
|
999
|
-
return (
|
|
976
|
+
return (kr.delegate || Date).now();
|
|
1000
977
|
},
|
|
1001
978
|
delegate: void 0
|
|
1002
|
-
},
|
|
1003
|
-
|
|
979
|
+
}, ti = function(e) {
|
|
980
|
+
Ze(t, e);
|
|
1004
981
|
function t(r, n, i) {
|
|
1005
|
-
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);
|
|
1006
983
|
var o = e.call(this) || this;
|
|
1007
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;
|
|
1008
985
|
}
|
|
@@ -1022,24 +999,24 @@ var Qn = Cr(function(e) {
|
|
|
1022
999
|
l && o.splice(0, l + 1);
|
|
1023
1000
|
}
|
|
1024
1001
|
}, t;
|
|
1025
|
-
}(
|
|
1026
|
-
const
|
|
1027
|
-
if (
|
|
1028
|
-
const r = new
|
|
1029
|
-
|
|
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);
|
|
1030
1007
|
}
|
|
1031
|
-
return
|
|
1008
|
+
return cr[e];
|
|
1032
1009
|
}, He = [];
|
|
1033
|
-
function
|
|
1010
|
+
function ni(e, t) {
|
|
1034
1011
|
return {
|
|
1035
|
-
subscribe:
|
|
1012
|
+
subscribe: mt(e, t).subscribe
|
|
1036
1013
|
};
|
|
1037
1014
|
}
|
|
1038
|
-
function
|
|
1015
|
+
function mt(e, t = Z) {
|
|
1039
1016
|
let r;
|
|
1040
1017
|
const n = /* @__PURE__ */ new Set();
|
|
1041
1018
|
function i(a) {
|
|
1042
|
-
if (
|
|
1019
|
+
if (Cr(e, a) && (e = a, r)) {
|
|
1043
1020
|
const u = !He.length;
|
|
1044
1021
|
for (const l of n)
|
|
1045
1022
|
l[1](), He.push(l, e);
|
|
@@ -1061,12 +1038,12 @@ function dt(e, t = Z) {
|
|
|
1061
1038
|
}
|
|
1062
1039
|
return { set: i, update: o, subscribe: s };
|
|
1063
1040
|
}
|
|
1064
|
-
function
|
|
1041
|
+
function Ne(e, t, r) {
|
|
1065
1042
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1066
1043
|
if (!i.every(Boolean))
|
|
1067
1044
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1068
1045
|
const o = t.length < 2;
|
|
1069
|
-
return
|
|
1046
|
+
return ni(r, (s, a) => {
|
|
1070
1047
|
let u = !1;
|
|
1071
1048
|
const l = [];
|
|
1072
1049
|
let c = 0, f = Z;
|
|
@@ -1074,13 +1051,13 @@ function Re(e, t, r) {
|
|
|
1074
1051
|
if (c)
|
|
1075
1052
|
return;
|
|
1076
1053
|
f();
|
|
1077
|
-
const
|
|
1078
|
-
o ? s(
|
|
1054
|
+
const y = t(n ? l[0] : l, s, a);
|
|
1055
|
+
o ? s(y) : f = Xt(y) ? y : Z;
|
|
1079
1056
|
}, b = i.map(
|
|
1080
|
-
(
|
|
1081
|
-
|
|
1082
|
-
(
|
|
1083
|
-
l[g] =
|
|
1057
|
+
(y, g) => Lr(
|
|
1058
|
+
y,
|
|
1059
|
+
(x) => {
|
|
1060
|
+
l[g] = x, c &= ~(1 << g), u && d();
|
|
1084
1061
|
},
|
|
1085
1062
|
() => {
|
|
1086
1063
|
c |= 1 << g;
|
|
@@ -1088,118 +1065,157 @@ function Re(e, t, r) {
|
|
|
1088
1065
|
)
|
|
1089
1066
|
);
|
|
1090
1067
|
return u = !0, d(), function() {
|
|
1091
|
-
|
|
1068
|
+
Me(b), f(), u = !1;
|
|
1092
1069
|
};
|
|
1093
1070
|
});
|
|
1094
1071
|
}
|
|
1095
|
-
function
|
|
1096
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1072
|
+
function ii(e) {
|
|
1073
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1097
1074
|
}
|
|
1098
|
-
var
|
|
1099
|
-
return
|
|
1075
|
+
var oi = function(t) {
|
|
1076
|
+
return si(t) && !ai(t);
|
|
1100
1077
|
};
|
|
1101
|
-
function
|
|
1078
|
+
function si(e) {
|
|
1102
1079
|
return !!e && typeof e == "object";
|
|
1103
1080
|
}
|
|
1104
|
-
function
|
|
1081
|
+
function ai(e) {
|
|
1105
1082
|
var t = Object.prototype.toString.call(e);
|
|
1106
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1083
|
+
return t === "[object RegExp]" || t === "[object Date]" || ci(e);
|
|
1107
1084
|
}
|
|
1108
|
-
var
|
|
1109
|
-
function
|
|
1110
|
-
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;
|
|
1111
1088
|
}
|
|
1112
|
-
function
|
|
1089
|
+
function hi(e) {
|
|
1113
1090
|
return Array.isArray(e) ? [] : {};
|
|
1114
1091
|
}
|
|
1115
|
-
function
|
|
1116
|
-
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;
|
|
1117
1094
|
}
|
|
1118
|
-
function
|
|
1095
|
+
function fi(e, t, r) {
|
|
1119
1096
|
return e.concat(t).map(function(n) {
|
|
1120
|
-
return
|
|
1097
|
+
return Xe(n, r);
|
|
1121
1098
|
});
|
|
1122
1099
|
}
|
|
1123
|
-
function
|
|
1100
|
+
function di(e, t) {
|
|
1124
1101
|
if (!t.customMerge)
|
|
1125
|
-
return
|
|
1102
|
+
return Ie;
|
|
1126
1103
|
var r = t.customMerge(e);
|
|
1127
|
-
return typeof r == "function" ? r :
|
|
1104
|
+
return typeof r == "function" ? r : Ie;
|
|
1128
1105
|
}
|
|
1129
|
-
function
|
|
1106
|
+
function mi(e) {
|
|
1130
1107
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1131
1108
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1132
1109
|
}) : [];
|
|
1133
1110
|
}
|
|
1134
|
-
function
|
|
1135
|
-
return Object.keys(e).concat(
|
|
1111
|
+
function hr(e) {
|
|
1112
|
+
return Object.keys(e).concat(mi(e));
|
|
1136
1113
|
}
|
|
1137
|
-
function
|
|
1114
|
+
function $r(e, t) {
|
|
1138
1115
|
try {
|
|
1139
1116
|
return t in e;
|
|
1140
1117
|
} catch (r) {
|
|
1141
1118
|
return !1;
|
|
1142
1119
|
}
|
|
1143
1120
|
}
|
|
1144
|
-
function
|
|
1145
|
-
return
|
|
1121
|
+
function pi(e, t) {
|
|
1122
|
+
return $r(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1146
1123
|
}
|
|
1147
|
-
function
|
|
1124
|
+
function gi(e, t, r) {
|
|
1148
1125
|
var n = {};
|
|
1149
|
-
return r.isMergeableObject(e) &&
|
|
1150
|
-
n[i] =
|
|
1151
|
-
}),
|
|
1152
|
-
|
|
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));
|
|
1153
1130
|
}), n;
|
|
1154
1131
|
}
|
|
1155
|
-
function
|
|
1156
|
-
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;
|
|
1157
1134
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1158
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1135
|
+
return o ? n ? r.arrayMerge(e, t, r) : gi(e, t, r) : Xe(t, r);
|
|
1159
1136
|
}
|
|
1160
|
-
|
|
1137
|
+
Ie.all = function(t, r) {
|
|
1161
1138
|
if (!Array.isArray(t))
|
|
1162
1139
|
throw new Error("first argument should be an array");
|
|
1163
1140
|
return t.reduce(function(n, i) {
|
|
1164
|
-
return
|
|
1141
|
+
return Ie(n, i, r);
|
|
1165
1142
|
}, {});
|
|
1166
1143
|
};
|
|
1167
|
-
var
|
|
1168
|
-
const
|
|
1169
|
-
function
|
|
1170
|
-
|
|
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;
|
|
1171
1190
|
return i(e, {
|
|
1172
1191
|
cache: r,
|
|
1173
1192
|
serializer: n
|
|
1174
1193
|
});
|
|
1175
1194
|
}
|
|
1176
|
-
function
|
|
1195
|
+
function wi(e) {
|
|
1177
1196
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1178
1197
|
}
|
|
1179
|
-
function
|
|
1180
|
-
var i =
|
|
1198
|
+
function Ei(e, t, r, n) {
|
|
1199
|
+
var i = wi(n) ? n : r(n), o = t.get(i);
|
|
1181
1200
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1182
1201
|
}
|
|
1183
|
-
function
|
|
1202
|
+
function Gr(e, t, r) {
|
|
1184
1203
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1185
1204
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1186
1205
|
}
|
|
1187
|
-
function
|
|
1206
|
+
function jr(e, t, r, n, i) {
|
|
1188
1207
|
return r.bind(t, e, n, i);
|
|
1189
1208
|
}
|
|
1190
|
-
function
|
|
1191
|
-
var r = e.length === 1 ?
|
|
1192
|
-
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);
|
|
1193
1212
|
}
|
|
1194
|
-
function
|
|
1195
|
-
return
|
|
1213
|
+
function Si(e, t) {
|
|
1214
|
+
return jr(e, this, Gr, t.cache.create(), t.serializer);
|
|
1196
1215
|
}
|
|
1197
|
-
function
|
|
1198
|
-
return $t(e, this, Fr, t.cache.create(), t.serializer);
|
|
1199
|
-
}
|
|
1200
|
-
var wi = function() {
|
|
1216
|
+
var Pi = function() {
|
|
1201
1217
|
return JSON.stringify(arguments);
|
|
1202
|
-
},
|
|
1218
|
+
}, Ti = (
|
|
1203
1219
|
/** @class */
|
|
1204
1220
|
function() {
|
|
1205
1221
|
function e() {
|
|
@@ -1211,62 +1227,71 @@ var wi = function() {
|
|
|
1211
1227
|
this.cache[t] = r;
|
|
1212
1228
|
}, e;
|
|
1213
1229
|
}()
|
|
1214
|
-
),
|
|
1230
|
+
), Hi = {
|
|
1215
1231
|
create: function() {
|
|
1216
|
-
return new
|
|
1232
|
+
return new Ti();
|
|
1217
1233
|
}
|
|
1218
|
-
},
|
|
1219
|
-
variadic:
|
|
1220
|
-
|
|
1221
|
-
|
|
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 _;
|
|
1222
1247
|
(function(e) {
|
|
1223
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";
|
|
1224
1249
|
})(_ || (_ = {}));
|
|
1225
|
-
var
|
|
1250
|
+
var P;
|
|
1226
1251
|
(function(e) {
|
|
1227
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";
|
|
1228
|
-
})(
|
|
1253
|
+
})(P || (P = {}));
|
|
1229
1254
|
var Oe;
|
|
1230
1255
|
(function(e) {
|
|
1231
1256
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1232
1257
|
})(Oe || (Oe = {}));
|
|
1233
|
-
function
|
|
1234
|
-
return e.type ===
|
|
1258
|
+
function fr(e) {
|
|
1259
|
+
return e.type === P.literal;
|
|
1235
1260
|
}
|
|
1236
|
-
function
|
|
1237
|
-
return e.type ===
|
|
1261
|
+
function Bi(e) {
|
|
1262
|
+
return e.type === P.argument;
|
|
1238
1263
|
}
|
|
1239
|
-
function
|
|
1240
|
-
return e.type ===
|
|
1264
|
+
function Vr(e) {
|
|
1265
|
+
return e.type === P.number;
|
|
1241
1266
|
}
|
|
1242
|
-
function
|
|
1243
|
-
return e.type ===
|
|
1267
|
+
function zr(e) {
|
|
1268
|
+
return e.type === P.date;
|
|
1244
1269
|
}
|
|
1245
|
-
function
|
|
1246
|
-
return e.type ===
|
|
1270
|
+
function Xr(e) {
|
|
1271
|
+
return e.type === P.time;
|
|
1247
1272
|
}
|
|
1248
|
-
function
|
|
1249
|
-
return e.type ===
|
|
1273
|
+
function Wr(e) {
|
|
1274
|
+
return e.type === P.select;
|
|
1250
1275
|
}
|
|
1251
|
-
function
|
|
1252
|
-
return e.type ===
|
|
1276
|
+
function Zr(e) {
|
|
1277
|
+
return e.type === P.plural;
|
|
1253
1278
|
}
|
|
1254
|
-
function
|
|
1255
|
-
return e.type ===
|
|
1279
|
+
function Ai(e) {
|
|
1280
|
+
return e.type === P.pound;
|
|
1256
1281
|
}
|
|
1257
|
-
function
|
|
1258
|
-
return e.type ===
|
|
1282
|
+
function qr(e) {
|
|
1283
|
+
return e.type === P.tag;
|
|
1259
1284
|
}
|
|
1260
|
-
function
|
|
1285
|
+
function Jr(e) {
|
|
1261
1286
|
return !!(e && typeof e == "object" && e.type === Oe.number);
|
|
1262
1287
|
}
|
|
1263
|
-
function
|
|
1288
|
+
function Ft(e) {
|
|
1264
1289
|
return !!(e && typeof e == "object" && e.type === Oe.dateTime);
|
|
1265
1290
|
}
|
|
1266
|
-
var
|
|
1267
|
-
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) {
|
|
1268
1293
|
var t = {};
|
|
1269
|
-
return e.replace(
|
|
1294
|
+
return e.replace(Ii, function(r) {
|
|
1270
1295
|
var n = r.length;
|
|
1271
1296
|
switch (r[0]) {
|
|
1272
1297
|
case "G":
|
|
@@ -1355,11 +1380,21 @@ function Hi(e) {
|
|
|
1355
1380
|
return "";
|
|
1356
1381
|
}), t;
|
|
1357
1382
|
}
|
|
1358
|
-
var
|
|
1359
|
-
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) {
|
|
1360
1395
|
if (e.length === 0)
|
|
1361
1396
|
throw new Error("Number skeleton cannot be empty");
|
|
1362
|
-
for (var t = e.split(
|
|
1397
|
+
for (var t = e.split(Ci).filter(function(d) {
|
|
1363
1398
|
return d.length > 0;
|
|
1364
1399
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1365
1400
|
var o = i[n], s = o.split("/");
|
|
@@ -1374,17 +1409,17 @@ function Ai(e) {
|
|
|
1374
1409
|
}
|
|
1375
1410
|
return r;
|
|
1376
1411
|
}
|
|
1377
|
-
function
|
|
1412
|
+
function Mi(e) {
|
|
1378
1413
|
return e.replace(/^(.*?)-/, "");
|
|
1379
1414
|
}
|
|
1380
|
-
var
|
|
1381
|
-
function
|
|
1415
|
+
var dr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Yr = /^(@+)?(\+|#+)?[rs]?$/g, Ni = /(\*)(0+)|(#+)(0+)|(0+)/g, Kr = /^(0+)$/;
|
|
1416
|
+
function mr(e) {
|
|
1382
1417
|
var t = {};
|
|
1383
|
-
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) {
|
|
1384
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)), "";
|
|
1385
1420
|
}), t;
|
|
1386
1421
|
}
|
|
1387
|
-
function
|
|
1422
|
+
function en(e) {
|
|
1388
1423
|
switch (e) {
|
|
1389
1424
|
case "sign-auto":
|
|
1390
1425
|
return {
|
|
@@ -1424,7 +1459,7 @@ function Jr(e) {
|
|
|
1424
1459
|
};
|
|
1425
1460
|
}
|
|
1426
1461
|
}
|
|
1427
|
-
function
|
|
1462
|
+
function Ri(e) {
|
|
1428
1463
|
var t;
|
|
1429
1464
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1430
1465
|
notation: "engineering"
|
|
@@ -1432,17 +1467,17 @@ function Oi(e) {
|
|
|
1432
1467
|
notation: "scientific"
|
|
1433
1468
|
}, e = e.slice(1)), t) {
|
|
1434
1469
|
var r = e.slice(0, 2);
|
|
1435
|
-
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))
|
|
1436
1471
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1437
1472
|
t.minimumIntegerDigits = e.length;
|
|
1438
1473
|
}
|
|
1439
1474
|
return t;
|
|
1440
1475
|
}
|
|
1441
|
-
function
|
|
1442
|
-
var t = {}, r =
|
|
1476
|
+
function pr(e) {
|
|
1477
|
+
var t = {}, r = en(e);
|
|
1443
1478
|
return r || t;
|
|
1444
1479
|
}
|
|
1445
|
-
function
|
|
1480
|
+
function Ui(e) {
|
|
1446
1481
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1447
1482
|
var i = n[r];
|
|
1448
1483
|
switch (i.stem) {
|
|
@@ -1466,7 +1501,7 @@ function Li(e) {
|
|
|
1466
1501
|
continue;
|
|
1467
1502
|
case "measure-unit":
|
|
1468
1503
|
case "unit":
|
|
1469
|
-
t.style = "unit", t.unit =
|
|
1504
|
+
t.style = "unit", t.unit = Mi(i.options[0]);
|
|
1470
1505
|
continue;
|
|
1471
1506
|
case "compact-short":
|
|
1472
1507
|
case "K":
|
|
@@ -1477,13 +1512,13 @@ function Li(e) {
|
|
|
1477
1512
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1478
1513
|
continue;
|
|
1479
1514
|
case "scientific":
|
|
1480
|
-
t =
|
|
1481
|
-
return
|
|
1515
|
+
t = T(T(T({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
|
|
1516
|
+
return T(T({}, u), pr(l));
|
|
1482
1517
|
}, {}));
|
|
1483
1518
|
continue;
|
|
1484
1519
|
case "engineering":
|
|
1485
|
-
t =
|
|
1486
|
-
return
|
|
1520
|
+
t = T(T(T({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
|
|
1521
|
+
return T(T({}, u), pr(l));
|
|
1487
1522
|
}, {}));
|
|
1488
1523
|
continue;
|
|
1489
1524
|
case "notation-simple":
|
|
@@ -1528,7 +1563,7 @@ function Li(e) {
|
|
|
1528
1563
|
case "integer-width":
|
|
1529
1564
|
if (i.options.length > 1)
|
|
1530
1565
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1531
|
-
i.options[0].replace(
|
|
1566
|
+
i.options[0].replace(Ni, function(u, l, c, f, d, b) {
|
|
1532
1567
|
if (l)
|
|
1533
1568
|
t.minimumIntegerDigits = c.length;
|
|
1534
1569
|
else {
|
|
@@ -1541,28 +1576,28 @@ function Li(e) {
|
|
|
1541
1576
|
});
|
|
1542
1577
|
continue;
|
|
1543
1578
|
}
|
|
1544
|
-
if (
|
|
1579
|
+
if (Kr.test(i.stem)) {
|
|
1545
1580
|
t.minimumIntegerDigits = i.stem.length;
|
|
1546
1581
|
continue;
|
|
1547
1582
|
}
|
|
1548
|
-
if (
|
|
1583
|
+
if (dr.test(i.stem)) {
|
|
1549
1584
|
if (i.options.length > 1)
|
|
1550
1585
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1551
|
-
i.stem.replace(
|
|
1586
|
+
i.stem.replace(dr, function(u, l, c, f, d, b) {
|
|
1552
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), "";
|
|
1553
1588
|
});
|
|
1554
1589
|
var o = i.options[0];
|
|
1555
|
-
o === "w" ? t =
|
|
1590
|
+
o === "w" ? t = T(T({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = T(T({}, t), mr(o)));
|
|
1556
1591
|
continue;
|
|
1557
1592
|
}
|
|
1558
|
-
if (
|
|
1559
|
-
t =
|
|
1593
|
+
if (Yr.test(i.stem)) {
|
|
1594
|
+
t = T(T({}, t), mr(i.stem));
|
|
1560
1595
|
continue;
|
|
1561
1596
|
}
|
|
1562
|
-
var s =
|
|
1563
|
-
s && (t =
|
|
1564
|
-
var a =
|
|
1565
|
-
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));
|
|
1566
1601
|
}
|
|
1567
1602
|
return t;
|
|
1568
1603
|
}
|
|
@@ -2981,13 +3016,13 @@ var it = {
|
|
|
2981
3016
|
"h"
|
|
2982
3017
|
]
|
|
2983
3018
|
};
|
|
2984
|
-
function
|
|
3019
|
+
function Fi(e, t) {
|
|
2985
3020
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2986
3021
|
var i = e.charAt(n);
|
|
2987
3022
|
if (i === "j") {
|
|
2988
3023
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2989
3024
|
o++, n++;
|
|
2990
|
-
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);
|
|
2991
3026
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
|
2992
3027
|
r += u;
|
|
2993
3028
|
for (; s-- > 0; )
|
|
@@ -2997,7 +3032,7 @@ function Mi(e, t) {
|
|
|
2997
3032
|
}
|
|
2998
3033
|
return r;
|
|
2999
3034
|
}
|
|
3000
|
-
function
|
|
3035
|
+
function Di(e) {
|
|
3001
3036
|
var t = e.hourCycle;
|
|
3002
3037
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3003
3038
|
e.hourCycles && // @ts-ignore
|
|
@@ -3019,20 +3054,20 @@ function Ni(e) {
|
|
|
3019
3054
|
var i = it[n || ""] || it[r || ""] || it["".concat(r, "-001")] || it["001"];
|
|
3020
3055
|
return i[0];
|
|
3021
3056
|
}
|
|
3022
|
-
var
|
|
3057
|
+
var Tt, ki = new RegExp("^".concat(Qr.source, "*")), $i = new RegExp("".concat(Qr.source, "*$"));
|
|
3023
3058
|
function w(e, t) {
|
|
3024
3059
|
return { start: e, end: t };
|
|
3025
3060
|
}
|
|
3026
|
-
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) {
|
|
3027
3062
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3028
|
-
},
|
|
3063
|
+
}, Dt = !0;
|
|
3029
3064
|
try {
|
|
3030
|
-
var
|
|
3031
|
-
|
|
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";
|
|
3032
3067
|
} catch (e) {
|
|
3033
|
-
|
|
3068
|
+
Dt = !1;
|
|
3034
3069
|
}
|
|
3035
|
-
var
|
|
3070
|
+
var gr = Gi ? (
|
|
3036
3071
|
// Native
|
|
3037
3072
|
function(t, r, n) {
|
|
3038
3073
|
return t.startsWith(r, n);
|
|
@@ -3042,7 +3077,7 @@ var fr = Fi ? (
|
|
|
3042
3077
|
function(t, r, n) {
|
|
3043
3078
|
return t.slice(n, n + r.length) === r;
|
|
3044
3079
|
}
|
|
3045
|
-
),
|
|
3080
|
+
), kt = ji ? String.fromCodePoint : (
|
|
3046
3081
|
// IE11
|
|
3047
3082
|
function() {
|
|
3048
3083
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3054,9 +3089,9 @@ var fr = Fi ? (
|
|
|
3054
3089
|
}
|
|
3055
3090
|
return n;
|
|
3056
3091
|
}
|
|
3057
|
-
),
|
|
3092
|
+
), br = (
|
|
3058
3093
|
// native
|
|
3059
|
-
|
|
3094
|
+
Vi ? Object.fromEntries : (
|
|
3060
3095
|
// Ponyfill
|
|
3061
3096
|
function(t) {
|
|
3062
3097
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3066,7 +3101,7 @@ var fr = Fi ? (
|
|
|
3066
3101
|
return r;
|
|
3067
3102
|
}
|
|
3068
3103
|
)
|
|
3069
|
-
),
|
|
3104
|
+
), tn = zi ? (
|
|
3070
3105
|
// Native
|
|
3071
3106
|
function(t, r) {
|
|
3072
3107
|
return t.codePointAt(r);
|
|
@@ -3080,7 +3115,7 @@ var fr = Fi ? (
|
|
|
3080
3115
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3081
3116
|
}
|
|
3082
3117
|
}
|
|
3083
|
-
),
|
|
3118
|
+
), Qi = Xi ? (
|
|
3084
3119
|
// Native
|
|
3085
3120
|
function(t) {
|
|
3086
3121
|
return t.trimStart();
|
|
@@ -3088,9 +3123,9 @@ var fr = Fi ? (
|
|
|
3088
3123
|
) : (
|
|
3089
3124
|
// Ponyfill
|
|
3090
3125
|
function(t) {
|
|
3091
|
-
return t.replace(
|
|
3126
|
+
return t.replace(ki, "");
|
|
3092
3127
|
}
|
|
3093
|
-
),
|
|
3128
|
+
), Yi = Wi ? (
|
|
3094
3129
|
// Native
|
|
3095
3130
|
function(t) {
|
|
3096
3131
|
return t.trimEnd();
|
|
@@ -3098,32 +3133,32 @@ var fr = Fi ? (
|
|
|
3098
3133
|
) : (
|
|
3099
3134
|
// Ponyfill
|
|
3100
3135
|
function(t) {
|
|
3101
|
-
return t.replace(
|
|
3136
|
+
return t.replace($i, "");
|
|
3102
3137
|
}
|
|
3103
3138
|
);
|
|
3104
|
-
function
|
|
3139
|
+
function rn(e, t) {
|
|
3105
3140
|
return new RegExp(e, t);
|
|
3106
3141
|
}
|
|
3107
|
-
var
|
|
3108
|
-
if (
|
|
3109
|
-
var
|
|
3110
|
-
|
|
3142
|
+
var $t;
|
|
3143
|
+
if (Dt) {
|
|
3144
|
+
var vr = rn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3145
|
+
$t = function(t, r) {
|
|
3111
3146
|
var n;
|
|
3112
|
-
|
|
3113
|
-
var i =
|
|
3147
|
+
vr.lastIndex = r;
|
|
3148
|
+
var i = vr.exec(t);
|
|
3114
3149
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3115
3150
|
};
|
|
3116
3151
|
} else
|
|
3117
|
-
|
|
3152
|
+
$t = function(t, r) {
|
|
3118
3153
|
for (var n = []; ; ) {
|
|
3119
|
-
var i =
|
|
3120
|
-
if (i === void 0 ||
|
|
3154
|
+
var i = tn(t, r);
|
|
3155
|
+
if (i === void 0 || nn(i) || ro(i))
|
|
3121
3156
|
break;
|
|
3122
3157
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3123
3158
|
}
|
|
3124
|
-
return
|
|
3159
|
+
return kt.apply(void 0, n);
|
|
3125
3160
|
};
|
|
3126
|
-
var
|
|
3161
|
+
var Ki = (
|
|
3127
3162
|
/** @class */
|
|
3128
3163
|
function() {
|
|
3129
3164
|
function e(t, r) {
|
|
@@ -3147,14 +3182,14 @@ var qi = (
|
|
|
3147
3182
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3148
3183
|
var a = this.clonePosition();
|
|
3149
3184
|
this.bump(), i.push({
|
|
3150
|
-
type:
|
|
3185
|
+
type: P.pound,
|
|
3151
3186
|
location: w(a, this.clonePosition())
|
|
3152
3187
|
});
|
|
3153
3188
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3154
3189
|
if (n)
|
|
3155
3190
|
break;
|
|
3156
3191
|
return this.error(_.UNMATCHED_CLOSING_TAG, w(this.clonePosition(), this.clonePosition()));
|
|
3157
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3192
|
+
} else if (o === 60 && !this.ignoreTag && Gt(this.peek() || 0)) {
|
|
3158
3193
|
var s = this.parseTag(t, r);
|
|
3159
3194
|
if (s.err)
|
|
3160
3195
|
return s;
|
|
@@ -3175,7 +3210,7 @@ var qi = (
|
|
|
3175
3210
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3176
3211
|
return {
|
|
3177
3212
|
val: {
|
|
3178
|
-
type:
|
|
3213
|
+
type: P.literal,
|
|
3179
3214
|
value: "<".concat(i, "/>"),
|
|
3180
3215
|
location: w(n, this.clonePosition())
|
|
3181
3216
|
},
|
|
@@ -3187,12 +3222,12 @@ var qi = (
|
|
|
3187
3222
|
return o;
|
|
3188
3223
|
var s = o.val, a = this.clonePosition();
|
|
3189
3224
|
if (this.bumpIf("</")) {
|
|
3190
|
-
if (this.isEOF() || !
|
|
3225
|
+
if (this.isEOF() || !Gt(this.char()))
|
|
3191
3226
|
return this.error(_.INVALID_TAG, w(a, this.clonePosition()));
|
|
3192
3227
|
var u = this.clonePosition(), l = this.parseTagName();
|
|
3193
3228
|
return i !== l ? this.error(_.UNMATCHED_CLOSING_TAG, w(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3194
3229
|
val: {
|
|
3195
|
-
type:
|
|
3230
|
+
type: P.tag,
|
|
3196
3231
|
value: i,
|
|
3197
3232
|
children: s,
|
|
3198
3233
|
location: w(n, this.clonePosition())
|
|
@@ -3205,7 +3240,7 @@ var qi = (
|
|
|
3205
3240
|
return this.error(_.INVALID_TAG, w(n, this.clonePosition()));
|
|
3206
3241
|
}, e.prototype.parseTagName = function() {
|
|
3207
3242
|
var t = this.offset();
|
|
3208
|
-
for (this.bump(); !this.isEOF() &&
|
|
3243
|
+
for (this.bump(); !this.isEOF() && to(this.char()); )
|
|
3209
3244
|
this.bump();
|
|
3210
3245
|
return this.message.slice(t, this.offset());
|
|
3211
3246
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3229,12 +3264,12 @@ var qi = (
|
|
|
3229
3264
|
}
|
|
3230
3265
|
var u = w(n, this.clonePosition());
|
|
3231
3266
|
return {
|
|
3232
|
-
val: { type:
|
|
3267
|
+
val: { type: P.literal, value: i, location: u },
|
|
3233
3268
|
err: null
|
|
3234
3269
|
};
|
|
3235
3270
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3236
3271
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3237
|
-
!
|
|
3272
|
+
!eo(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3238
3273
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3239
3274
|
if (this.isEOF() || this.char() !== 39)
|
|
3240
3275
|
return null;
|
|
@@ -3268,12 +3303,12 @@ var qi = (
|
|
|
3268
3303
|
r.push(n);
|
|
3269
3304
|
this.bump();
|
|
3270
3305
|
}
|
|
3271
|
-
return
|
|
3306
|
+
return kt.apply(void 0, r);
|
|
3272
3307
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3273
3308
|
if (this.isEOF())
|
|
3274
3309
|
return null;
|
|
3275
3310
|
var n = this.char();
|
|
3276
|
-
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));
|
|
3277
3312
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3278
3313
|
var n = this.clonePosition();
|
|
3279
3314
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3289,7 +3324,7 @@ var qi = (
|
|
|
3289
3324
|
case 125:
|
|
3290
3325
|
return this.bump(), {
|
|
3291
3326
|
val: {
|
|
3292
|
-
type:
|
|
3327
|
+
type: P.argument,
|
|
3293
3328
|
// value does not include the opening and closing braces.
|
|
3294
3329
|
value: i,
|
|
3295
3330
|
location: w(n, this.clonePosition())
|
|
@@ -3302,7 +3337,7 @@ var qi = (
|
|
|
3302
3337
|
return this.error(_.MALFORMED_ARGUMENT, w(n, this.clonePosition()));
|
|
3303
3338
|
}
|
|
3304
3339
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3305
|
-
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;
|
|
3306
3341
|
this.bumpTo(i);
|
|
3307
3342
|
var o = this.clonePosition(), s = w(t, o);
|
|
3308
3343
|
return { value: n, location: s };
|
|
@@ -3321,35 +3356,35 @@ var qi = (
|
|
|
3321
3356
|
var c = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3322
3357
|
if (f.err)
|
|
3323
3358
|
return f;
|
|
3324
|
-
var d =
|
|
3359
|
+
var d = Yi(f.val);
|
|
3325
3360
|
if (d.length === 0)
|
|
3326
3361
|
return this.error(_.EXPECT_ARGUMENT_STYLE, w(this.clonePosition(), this.clonePosition()));
|
|
3327
3362
|
var b = w(c, this.clonePosition());
|
|
3328
3363
|
l = { style: d, styleLocation: b };
|
|
3329
3364
|
}
|
|
3330
|
-
var
|
|
3331
|
-
if (
|
|
3332
|
-
return
|
|
3365
|
+
var y = this.tryParseArgumentClose(i);
|
|
3366
|
+
if (y.err)
|
|
3367
|
+
return y;
|
|
3333
3368
|
var g = w(i, this.clonePosition());
|
|
3334
|
-
if (l &&
|
|
3335
|
-
var
|
|
3369
|
+
if (l && gr(l == null ? void 0 : l.style, "::", 0)) {
|
|
3370
|
+
var x = Qi(l.style.slice(2));
|
|
3336
3371
|
if (a === "number") {
|
|
3337
|
-
var f = this.parseNumberSkeletonFromString(
|
|
3372
|
+
var f = this.parseNumberSkeletonFromString(x, l.styleLocation);
|
|
3338
3373
|
return f.err ? f : {
|
|
3339
|
-
val: { type:
|
|
3374
|
+
val: { type: P.number, value: n, location: g, style: f.val },
|
|
3340
3375
|
err: null
|
|
3341
3376
|
};
|
|
3342
3377
|
} else {
|
|
3343
|
-
if (
|
|
3378
|
+
if (x.length === 0)
|
|
3344
3379
|
return this.error(_.EXPECT_DATE_TIME_SKELETON, g);
|
|
3345
|
-
var
|
|
3346
|
-
this.locale && (
|
|
3380
|
+
var O = x;
|
|
3381
|
+
this.locale && (O = Fi(x, this.locale));
|
|
3347
3382
|
var d = {
|
|
3348
3383
|
type: Oe.dateTime,
|
|
3349
|
-
pattern:
|
|
3384
|
+
pattern: O,
|
|
3350
3385
|
location: l.styleLocation,
|
|
3351
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3352
|
-
}, z = a === "date" ?
|
|
3386
|
+
parsedOptions: this.shouldParseSkeletons ? Oi(O) : {}
|
|
3387
|
+
}, z = a === "date" ? P.date : P.time;
|
|
3353
3388
|
return {
|
|
3354
3389
|
val: { type: z, value: n, location: g, style: d },
|
|
3355
3390
|
err: null
|
|
@@ -3358,7 +3393,7 @@ var qi = (
|
|
|
3358
3393
|
}
|
|
3359
3394
|
return {
|
|
3360
3395
|
val: {
|
|
3361
|
-
type: a === "number" ?
|
|
3396
|
+
type: a === "number" ? P.number : a === "date" ? P.date : P.time,
|
|
3362
3397
|
value: n,
|
|
3363
3398
|
location: g,
|
|
3364
3399
|
style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
|
|
@@ -3371,7 +3406,7 @@ var qi = (
|
|
|
3371
3406
|
case "select": {
|
|
3372
3407
|
var R = this.clonePosition();
|
|
3373
3408
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3374
|
-
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, w(R,
|
|
3409
|
+
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, w(R, ct({}, R)));
|
|
3375
3410
|
this.bumpSpace();
|
|
3376
3411
|
var U = this.parseIdentifierIfPossible(), A = 0;
|
|
3377
3412
|
if (a !== "select" && U.value === "offset") {
|
|
@@ -3386,23 +3421,23 @@ var qi = (
|
|
|
3386
3421
|
var ne = this.tryParsePluralOrSelectOptions(t, a, r, U);
|
|
3387
3422
|
if (ne.err)
|
|
3388
3423
|
return ne;
|
|
3389
|
-
var
|
|
3390
|
-
if (
|
|
3391
|
-
return
|
|
3424
|
+
var y = this.tryParseArgumentClose(i);
|
|
3425
|
+
if (y.err)
|
|
3426
|
+
return y;
|
|
3392
3427
|
var H = w(i, this.clonePosition());
|
|
3393
3428
|
return a === "select" ? {
|
|
3394
3429
|
val: {
|
|
3395
|
-
type:
|
|
3430
|
+
type: P.select,
|
|
3396
3431
|
value: n,
|
|
3397
|
-
options:
|
|
3432
|
+
options: br(ne.val),
|
|
3398
3433
|
location: H
|
|
3399
3434
|
},
|
|
3400
3435
|
err: null
|
|
3401
3436
|
} : {
|
|
3402
3437
|
val: {
|
|
3403
|
-
type:
|
|
3438
|
+
type: P.plural,
|
|
3404
3439
|
value: n,
|
|
3405
|
-
options:
|
|
3440
|
+
options: br(ne.val),
|
|
3406
3441
|
offset: A,
|
|
3407
3442
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3408
3443
|
location: H
|
|
@@ -3453,7 +3488,7 @@ var qi = (
|
|
|
3453
3488
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3454
3489
|
var n = [];
|
|
3455
3490
|
try {
|
|
3456
|
-
n =
|
|
3491
|
+
n = Li(t);
|
|
3457
3492
|
} catch (i) {
|
|
3458
3493
|
return this.error(_.INVALID_NUMBER_SKELETON, r);
|
|
3459
3494
|
}
|
|
@@ -3462,7 +3497,7 @@ var qi = (
|
|
|
3462
3497
|
type: Oe.number,
|
|
3463
3498
|
tokens: n,
|
|
3464
3499
|
location: r,
|
|
3465
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3500
|
+
parsedOptions: this.shouldParseSkeletons ? Ui(n) : {}
|
|
3466
3501
|
},
|
|
3467
3502
|
err: null
|
|
3468
3503
|
};
|
|
@@ -3484,16 +3519,16 @@ var qi = (
|
|
|
3484
3519
|
var b = this.clonePosition();
|
|
3485
3520
|
if (!this.bumpIf("{"))
|
|
3486
3521
|
return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, w(this.clonePosition(), this.clonePosition()));
|
|
3487
|
-
var
|
|
3488
|
-
if (
|
|
3489
|
-
return
|
|
3522
|
+
var y = this.parseMessage(t + 1, r, n);
|
|
3523
|
+
if (y.err)
|
|
3524
|
+
return y;
|
|
3490
3525
|
var g = this.tryParseArgumentClose(b);
|
|
3491
3526
|
if (g.err)
|
|
3492
3527
|
return g;
|
|
3493
3528
|
a.push([
|
|
3494
3529
|
l,
|
|
3495
3530
|
{
|
|
3496
|
-
value:
|
|
3531
|
+
value: y.val,
|
|
3497
3532
|
location: w(b, this.clonePosition())
|
|
3498
3533
|
}
|
|
3499
3534
|
]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, c = o.location;
|
|
@@ -3510,7 +3545,7 @@ var qi = (
|
|
|
3510
3545
|
break;
|
|
3511
3546
|
}
|
|
3512
3547
|
var u = w(i, this.clonePosition());
|
|
3513
|
-
return o ? (s *= n,
|
|
3548
|
+
return o ? (s *= n, qi(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
|
|
3514
3549
|
}, e.prototype.offset = function() {
|
|
3515
3550
|
return this.position.offset;
|
|
3516
3551
|
}, e.prototype.isEOF = function() {
|
|
@@ -3525,7 +3560,7 @@ var qi = (
|
|
|
3525
3560
|
var t = this.position.offset;
|
|
3526
3561
|
if (t >= this.message.length)
|
|
3527
3562
|
throw Error("out of bound");
|
|
3528
|
-
var r =
|
|
3563
|
+
var r = tn(this.message, t);
|
|
3529
3564
|
if (r === void 0)
|
|
3530
3565
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3531
3566
|
return r;
|
|
@@ -3544,7 +3579,7 @@ var qi = (
|
|
|
3544
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);
|
|
3545
3580
|
}
|
|
3546
3581
|
}, e.prototype.bumpIf = function(t) {
|
|
3547
|
-
if (
|
|
3582
|
+
if (gr(this.message, t, this.offset())) {
|
|
3548
3583
|
for (var r = 0; r < t.length; r++)
|
|
3549
3584
|
this.bump();
|
|
3550
3585
|
return !0;
|
|
@@ -3566,7 +3601,7 @@ var qi = (
|
|
|
3566
3601
|
break;
|
|
3567
3602
|
}
|
|
3568
3603
|
}, e.prototype.bumpSpace = function() {
|
|
3569
|
-
for (; !this.isEOF() &&
|
|
3604
|
+
for (; !this.isEOF() && nn(this.char()); )
|
|
3570
3605
|
this.bump();
|
|
3571
3606
|
}, e.prototype.peek = function() {
|
|
3572
3607
|
if (this.isEOF())
|
|
@@ -3576,47 +3611,47 @@ var qi = (
|
|
|
3576
3611
|
}, e;
|
|
3577
3612
|
}()
|
|
3578
3613
|
);
|
|
3579
|
-
function
|
|
3614
|
+
function Gt(e) {
|
|
3580
3615
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3581
3616
|
}
|
|
3582
|
-
function
|
|
3583
|
-
return
|
|
3617
|
+
function eo(e) {
|
|
3618
|
+
return Gt(e) || e === 47;
|
|
3584
3619
|
}
|
|
3585
|
-
function
|
|
3620
|
+
function to(e) {
|
|
3586
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;
|
|
3587
3622
|
}
|
|
3588
|
-
function
|
|
3623
|
+
function nn(e) {
|
|
3589
3624
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3590
3625
|
}
|
|
3591
|
-
function
|
|
3626
|
+
function ro(e) {
|
|
3592
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;
|
|
3593
3628
|
}
|
|
3594
|
-
function
|
|
3629
|
+
function jt(e) {
|
|
3595
3630
|
e.forEach(function(t) {
|
|
3596
|
-
if (delete t.location,
|
|
3631
|
+
if (delete t.location, Wr(t) || Zr(t))
|
|
3597
3632
|
for (var r in t.options)
|
|
3598
|
-
delete t.options[r].location,
|
|
3633
|
+
delete t.options[r].location, jt(t.options[r].value);
|
|
3599
3634
|
else
|
|
3600
|
-
|
|
3635
|
+
Vr(t) && Jr(t.style) || (zr(t) || Xr(t)) && Ft(t.style) ? delete t.style.location : qr(t) && jt(t.children);
|
|
3601
3636
|
});
|
|
3602
3637
|
}
|
|
3603
|
-
function
|
|
3604
|
-
t === void 0 && (t = {}), t =
|
|
3605
|
-
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();
|
|
3606
3641
|
if (r.err) {
|
|
3607
3642
|
var n = SyntaxError(_[r.err.kind]);
|
|
3608
3643
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3609
3644
|
}
|
|
3610
|
-
return t != null && t.captureLocation ||
|
|
3645
|
+
return t != null && t.captureLocation || jt(r.val), r.val;
|
|
3611
3646
|
}
|
|
3612
|
-
var
|
|
3647
|
+
var Ce;
|
|
3613
3648
|
(function(e) {
|
|
3614
3649
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3615
|
-
})(
|
|
3616
|
-
var
|
|
3650
|
+
})(Ce || (Ce = {}));
|
|
3651
|
+
var gt = (
|
|
3617
3652
|
/** @class */
|
|
3618
3653
|
function(e) {
|
|
3619
|
-
|
|
3654
|
+
pt(t, e);
|
|
3620
3655
|
function t(r, n, i) {
|
|
3621
3656
|
var o = e.call(this, r) || this;
|
|
3622
3657
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3625,48 +3660,48 @@ var mt = (
|
|
|
3625
3660
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3626
3661
|
}, t;
|
|
3627
3662
|
}(Error)
|
|
3628
|
-
),
|
|
3663
|
+
), yr = (
|
|
3629
3664
|
/** @class */
|
|
3630
3665
|
function(e) {
|
|
3631
|
-
|
|
3666
|
+
pt(t, e);
|
|
3632
3667
|
function t(r, n, i, o) {
|
|
3633
|
-
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;
|
|
3634
3669
|
}
|
|
3635
3670
|
return t;
|
|
3636
|
-
}(
|
|
3637
|
-
),
|
|
3671
|
+
}(gt)
|
|
3672
|
+
), io = (
|
|
3638
3673
|
/** @class */
|
|
3639
3674
|
function(e) {
|
|
3640
|
-
|
|
3675
|
+
pt(t, e);
|
|
3641
3676
|
function t(r, n, i) {
|
|
3642
|
-
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;
|
|
3643
3678
|
}
|
|
3644
3679
|
return t;
|
|
3645
|
-
}(
|
|
3646
|
-
),
|
|
3680
|
+
}(gt)
|
|
3681
|
+
), oo = (
|
|
3647
3682
|
/** @class */
|
|
3648
3683
|
function(e) {
|
|
3649
|
-
|
|
3684
|
+
pt(t, e);
|
|
3650
3685
|
function t(r, n) {
|
|
3651
|
-
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;
|
|
3652
3687
|
}
|
|
3653
3688
|
return t;
|
|
3654
|
-
}(
|
|
3689
|
+
}(gt)
|
|
3655
3690
|
), V;
|
|
3656
3691
|
(function(e) {
|
|
3657
3692
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3658
3693
|
})(V || (V = {}));
|
|
3659
|
-
function
|
|
3694
|
+
function so(e) {
|
|
3660
3695
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3661
3696
|
var n = t[t.length - 1];
|
|
3662
3697
|
return !n || n.type !== V.literal || r.type !== V.literal ? t.push(r) : n.value += r.value, t;
|
|
3663
3698
|
}, []);
|
|
3664
3699
|
}
|
|
3665
|
-
function
|
|
3700
|
+
function ao(e) {
|
|
3666
3701
|
return typeof e == "function";
|
|
3667
3702
|
}
|
|
3668
3703
|
function at(e, t, r, n, i, o, s) {
|
|
3669
|
-
if (e.length === 1 &&
|
|
3704
|
+
if (e.length === 1 && fr(e[0]))
|
|
3670
3705
|
return [
|
|
3671
3706
|
{
|
|
3672
3707
|
type: V.literal,
|
|
@@ -3675,14 +3710,14 @@ function at(e, t, r, n, i, o, s) {
|
|
|
3675
3710
|
];
|
|
3676
3711
|
for (var a = [], u = 0, l = e; u < l.length; u++) {
|
|
3677
3712
|
var c = l[u];
|
|
3678
|
-
if (
|
|
3713
|
+
if (fr(c)) {
|
|
3679
3714
|
a.push({
|
|
3680
3715
|
type: V.literal,
|
|
3681
3716
|
value: c.value
|
|
3682
3717
|
});
|
|
3683
3718
|
continue;
|
|
3684
3719
|
}
|
|
3685
|
-
if (
|
|
3720
|
+
if (Ai(c)) {
|
|
3686
3721
|
typeof o == "number" && a.push({
|
|
3687
3722
|
type: V.literal,
|
|
3688
3723
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3691,44 +3726,44 @@ function at(e, t, r, n, i, o, s) {
|
|
|
3691
3726
|
}
|
|
3692
3727
|
var f = c.value;
|
|
3693
3728
|
if (!(i && f in i))
|
|
3694
|
-
throw new
|
|
3729
|
+
throw new oo(f, s);
|
|
3695
3730
|
var d = i[f];
|
|
3696
|
-
if (
|
|
3731
|
+
if (Bi(c)) {
|
|
3697
3732
|
(!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), a.push({
|
|
3698
3733
|
type: typeof d == "string" ? V.literal : V.object,
|
|
3699
3734
|
value: d
|
|
3700
3735
|
});
|
|
3701
3736
|
continue;
|
|
3702
3737
|
}
|
|
3703
|
-
if (
|
|
3704
|
-
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;
|
|
3705
3740
|
a.push({
|
|
3706
3741
|
type: V.literal,
|
|
3707
3742
|
value: r.getDateTimeFormat(t, b).format(d)
|
|
3708
3743
|
});
|
|
3709
3744
|
continue;
|
|
3710
3745
|
}
|
|
3711
|
-
if (
|
|
3712
|
-
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;
|
|
3713
3748
|
a.push({
|
|
3714
3749
|
type: V.literal,
|
|
3715
3750
|
value: r.getDateTimeFormat(t, b).format(d)
|
|
3716
3751
|
});
|
|
3717
3752
|
continue;
|
|
3718
3753
|
}
|
|
3719
|
-
if (
|
|
3720
|
-
var b = typeof c.style == "string" ? n.number[c.style] :
|
|
3754
|
+
if (Vr(c)) {
|
|
3755
|
+
var b = typeof c.style == "string" ? n.number[c.style] : Jr(c.style) ? c.style.parsedOptions : void 0;
|
|
3721
3756
|
b && b.scale && (d = d * (b.scale || 1)), a.push({
|
|
3722
3757
|
type: V.literal,
|
|
3723
3758
|
value: r.getNumberFormat(t, b).format(d)
|
|
3724
3759
|
});
|
|
3725
3760
|
continue;
|
|
3726
3761
|
}
|
|
3727
|
-
if (
|
|
3728
|
-
var
|
|
3729
|
-
if (!
|
|
3730
|
-
throw new
|
|
3731
|
-
var
|
|
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) {
|
|
3732
3767
|
return A.value;
|
|
3733
3768
|
}));
|
|
3734
3769
|
Array.isArray(z) || (z = [z]), a.push.apply(a, z.map(function(A) {
|
|
@@ -3738,42 +3773,42 @@ function at(e, t, r, n, i, o, s) {
|
|
|
3738
3773
|
};
|
|
3739
3774
|
}));
|
|
3740
3775
|
}
|
|
3741
|
-
if (
|
|
3776
|
+
if (Wr(c)) {
|
|
3742
3777
|
var R = c.options[d] || c.options.other;
|
|
3743
3778
|
if (!R)
|
|
3744
|
-
throw new
|
|
3779
|
+
throw new yr(c.value, d, Object.keys(c.options), s);
|
|
3745
3780
|
a.push.apply(a, at(R.value, t, r, n, i));
|
|
3746
3781
|
continue;
|
|
3747
3782
|
}
|
|
3748
|
-
if (
|
|
3783
|
+
if (Zr(c)) {
|
|
3749
3784
|
var R = c.options["=".concat(d)];
|
|
3750
3785
|
if (!R) {
|
|
3751
3786
|
if (!Intl.PluralRules)
|
|
3752
|
-
throw new
|
|
3787
|
+
throw new gt(`Intl.PluralRules is not available in this environment.
|
|
3753
3788
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3754
|
-
`,
|
|
3789
|
+
`, Ce.MISSING_INTL_API, s);
|
|
3755
3790
|
var U = r.getPluralRules(t, { type: c.pluralType }).select(d - (c.offset || 0));
|
|
3756
3791
|
R = c.options[U] || c.options.other;
|
|
3757
3792
|
}
|
|
3758
3793
|
if (!R)
|
|
3759
|
-
throw new
|
|
3794
|
+
throw new yr(c.value, d, Object.keys(c.options), s);
|
|
3760
3795
|
a.push.apply(a, at(R.value, t, r, n, i, d - (c.offset || 0)));
|
|
3761
3796
|
continue;
|
|
3762
3797
|
}
|
|
3763
3798
|
}
|
|
3764
|
-
return
|
|
3799
|
+
return so(a);
|
|
3765
3800
|
}
|
|
3766
|
-
function
|
|
3767
|
-
return t ?
|
|
3768
|
-
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;
|
|
3769
3804
|
}, {})) : e;
|
|
3770
3805
|
}
|
|
3771
|
-
function
|
|
3806
|
+
function uo(e, t) {
|
|
3772
3807
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3773
|
-
return r[n] =
|
|
3774
|
-
},
|
|
3808
|
+
return r[n] = lo(e[n], t[n]), r;
|
|
3809
|
+
}, oe({}, e)) : e;
|
|
3775
3810
|
}
|
|
3776
|
-
function
|
|
3811
|
+
function Ht(e) {
|
|
3777
3812
|
return {
|
|
3778
3813
|
create: function() {
|
|
3779
3814
|
return {
|
|
@@ -3787,39 +3822,39 @@ function St(e) {
|
|
|
3787
3822
|
}
|
|
3788
3823
|
};
|
|
3789
3824
|
}
|
|
3790
|
-
function
|
|
3825
|
+
function co(e) {
|
|
3791
3826
|
return e === void 0 && (e = {
|
|
3792
3827
|
number: {},
|
|
3793
3828
|
dateTime: {},
|
|
3794
3829
|
pluralRules: {}
|
|
3795
3830
|
}), {
|
|
3796
|
-
getNumberFormat:
|
|
3831
|
+
getNumberFormat: St(function() {
|
|
3797
3832
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3798
3833
|
r[n] = arguments[n];
|
|
3799
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3834
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, xt([void 0], r, !1)))();
|
|
3800
3835
|
}, {
|
|
3801
|
-
cache:
|
|
3802
|
-
strategy:
|
|
3836
|
+
cache: Ht(e.number),
|
|
3837
|
+
strategy: Pt.variadic
|
|
3803
3838
|
}),
|
|
3804
|
-
getDateTimeFormat:
|
|
3839
|
+
getDateTimeFormat: St(function() {
|
|
3805
3840
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3806
3841
|
r[n] = arguments[n];
|
|
3807
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3842
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, xt([void 0], r, !1)))();
|
|
3808
3843
|
}, {
|
|
3809
|
-
cache:
|
|
3810
|
-
strategy:
|
|
3844
|
+
cache: Ht(e.dateTime),
|
|
3845
|
+
strategy: Pt.variadic
|
|
3811
3846
|
}),
|
|
3812
|
-
getPluralRules:
|
|
3847
|
+
getPluralRules: St(function() {
|
|
3813
3848
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3814
3849
|
r[n] = arguments[n];
|
|
3815
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3850
|
+
return new ((t = Intl.PluralRules).bind.apply(t, xt([void 0], r, !1)))();
|
|
3816
3851
|
}, {
|
|
3817
|
-
cache:
|
|
3818
|
-
strategy:
|
|
3852
|
+
cache: Ht(e.pluralRules),
|
|
3853
|
+
strategy: Pt.variadic
|
|
3819
3854
|
})
|
|
3820
3855
|
};
|
|
3821
3856
|
}
|
|
3822
|
-
var
|
|
3857
|
+
var ho = (
|
|
3823
3858
|
/** @class */
|
|
3824
3859
|
function() {
|
|
3825
3860
|
function e(t, r, n, i) {
|
|
@@ -3851,13 +3886,13 @@ var ao = (
|
|
|
3851
3886
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3852
3887
|
var s = i || {};
|
|
3853
3888
|
s.formatters;
|
|
3854
|
-
var a =
|
|
3855
|
-
this.ast = e.__parse(t,
|
|
3889
|
+
var a = _i(s, ["formatters"]);
|
|
3890
|
+
this.ast = e.__parse(t, oe(oe({}, a), { locale: this.resolvedLocale }));
|
|
3856
3891
|
} else
|
|
3857
3892
|
this.ast = t;
|
|
3858
3893
|
if (!Array.isArray(this.ast))
|
|
3859
3894
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3860
|
-
this.formats =
|
|
3895
|
+
this.formats = uo(e.formats, n), this.formatters = i && i.formatters || co(this.formatterCache);
|
|
3861
3896
|
}
|
|
3862
3897
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3863
3898
|
get: function() {
|
|
@@ -3870,7 +3905,7 @@ var ao = (
|
|
|
3870
3905
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3871
3906
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3872
3907
|
}
|
|
3873
|
-
}, e.__parse =
|
|
3908
|
+
}, e.__parse = no, e.formats = {
|
|
3874
3909
|
number: {
|
|
3875
3910
|
integer: {
|
|
3876
3911
|
maximumFractionDigits: 0
|
|
@@ -3931,7 +3966,7 @@ var ao = (
|
|
|
3931
3966
|
}, e;
|
|
3932
3967
|
}()
|
|
3933
3968
|
);
|
|
3934
|
-
function
|
|
3969
|
+
function fo(e, t) {
|
|
3935
3970
|
if (t == null)
|
|
3936
3971
|
return;
|
|
3937
3972
|
if (t in e)
|
|
@@ -3952,92 +3987,92 @@ function lo(e, t) {
|
|
|
3952
3987
|
n = void 0;
|
|
3953
3988
|
return n;
|
|
3954
3989
|
}
|
|
3955
|
-
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) => {
|
|
3956
3991
|
if (t == null)
|
|
3957
3992
|
return;
|
|
3958
3993
|
if (t in ce && e in ce[t])
|
|
3959
3994
|
return ce[t][e];
|
|
3960
|
-
const r =
|
|
3995
|
+
const r = bt(t);
|
|
3961
3996
|
for (let n = 0; n < r.length; n++) {
|
|
3962
|
-
const i = r[n], o =
|
|
3997
|
+
const i = r[n], o = go(i, e);
|
|
3963
3998
|
if (o)
|
|
3964
|
-
return
|
|
3999
|
+
return mo(e, t, o);
|
|
3965
4000
|
}
|
|
3966
4001
|
};
|
|
3967
|
-
let
|
|
3968
|
-
const
|
|
3969
|
-
function
|
|
3970
|
-
return
|
|
4002
|
+
let Wt;
|
|
4003
|
+
const Re = mt({});
|
|
4004
|
+
function po(e) {
|
|
4005
|
+
return Wt[e] || null;
|
|
3971
4006
|
}
|
|
3972
|
-
function
|
|
3973
|
-
return e in
|
|
4007
|
+
function sn(e) {
|
|
4008
|
+
return e in Wt;
|
|
3974
4009
|
}
|
|
3975
|
-
function
|
|
3976
|
-
if (!
|
|
4010
|
+
function go(e, t) {
|
|
4011
|
+
if (!sn(e))
|
|
3977
4012
|
return null;
|
|
3978
|
-
const r =
|
|
3979
|
-
return
|
|
4013
|
+
const r = po(e);
|
|
4014
|
+
return fo(r, t);
|
|
3980
4015
|
}
|
|
3981
|
-
function
|
|
4016
|
+
function bo(e) {
|
|
3982
4017
|
if (e == null)
|
|
3983
4018
|
return;
|
|
3984
|
-
const t =
|
|
4019
|
+
const t = bt(e);
|
|
3985
4020
|
for (let r = 0; r < t.length; r++) {
|
|
3986
4021
|
const n = t[r];
|
|
3987
|
-
if (
|
|
4022
|
+
if (sn(n))
|
|
3988
4023
|
return n;
|
|
3989
4024
|
}
|
|
3990
4025
|
}
|
|
3991
|
-
function
|
|
3992
|
-
delete ce[e],
|
|
4026
|
+
function an(e, ...t) {
|
|
4027
|
+
delete ce[e], Re.update((r) => (r[e] = yi.all([r[e] || {}, ...t]), r));
|
|
3993
4028
|
}
|
|
3994
|
-
|
|
3995
|
-
[
|
|
4029
|
+
Ne(
|
|
4030
|
+
[Re],
|
|
3996
4031
|
([e]) => Object.keys(e)
|
|
3997
4032
|
);
|
|
3998
|
-
|
|
4033
|
+
Re.subscribe((e) => Wt = e);
|
|
3999
4034
|
const lt = {};
|
|
4000
|
-
function
|
|
4035
|
+
function vo(e, t) {
|
|
4001
4036
|
lt[e].delete(t), lt[e].size === 0 && delete lt[e];
|
|
4002
4037
|
}
|
|
4003
|
-
function
|
|
4038
|
+
function ln(e) {
|
|
4004
4039
|
return lt[e];
|
|
4005
4040
|
}
|
|
4006
|
-
function
|
|
4007
|
-
return
|
|
4008
|
-
const r =
|
|
4041
|
+
function yo(e) {
|
|
4042
|
+
return bt(e).map((t) => {
|
|
4043
|
+
const r = ln(t);
|
|
4009
4044
|
return [t, r ? [...r] : []];
|
|
4010
4045
|
}).filter(([, t]) => t.length > 0);
|
|
4011
4046
|
}
|
|
4012
|
-
function
|
|
4013
|
-
return e == null ? !1 :
|
|
4047
|
+
function Vt(e) {
|
|
4048
|
+
return e == null ? !1 : bt(e).some(
|
|
4014
4049
|
(t) => {
|
|
4015
4050
|
var r;
|
|
4016
|
-
return (r =
|
|
4051
|
+
return (r = ln(t)) == null ? void 0 : r.size;
|
|
4017
4052
|
}
|
|
4018
4053
|
);
|
|
4019
4054
|
}
|
|
4020
|
-
function
|
|
4055
|
+
function _o(e, t) {
|
|
4021
4056
|
return Promise.all(
|
|
4022
|
-
t.map((n) => (
|
|
4023
|
-
).then((n) =>
|
|
4024
|
-
}
|
|
4025
|
-
const
|
|
4026
|
-
function
|
|
4027
|
-
if (!
|
|
4028
|
-
return e in
|
|
4029
|
-
const t =
|
|
4030
|
-
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(
|
|
4031
4066
|
t.map(
|
|
4032
|
-
([r, n]) =>
|
|
4067
|
+
([r, n]) => _o(r, n)
|
|
4033
4068
|
)
|
|
4034
4069
|
).then(() => {
|
|
4035
|
-
if (
|
|
4036
|
-
return
|
|
4037
|
-
delete
|
|
4038
|
-
}),
|
|
4070
|
+
if (Vt(e))
|
|
4071
|
+
return un(e);
|
|
4072
|
+
delete je[e];
|
|
4073
|
+
}), je[e];
|
|
4039
4074
|
}
|
|
4040
|
-
const
|
|
4075
|
+
const wo = {
|
|
4041
4076
|
number: {
|
|
4042
4077
|
scientific: { notation: "scientific" },
|
|
4043
4078
|
engineering: { notation: "engineering" },
|
|
@@ -4066,150 +4101,150 @@ const bo = {
|
|
|
4066
4101
|
timeZoneName: "short"
|
|
4067
4102
|
}
|
|
4068
4103
|
}
|
|
4069
|
-
},
|
|
4104
|
+
}, Eo = {
|
|
4070
4105
|
fallbackLocale: null,
|
|
4071
4106
|
loadingDelay: 200,
|
|
4072
|
-
formats:
|
|
4107
|
+
formats: wo,
|
|
4073
4108
|
warnOnMissingMessages: !0,
|
|
4074
4109
|
handleMissingMessage: void 0,
|
|
4075
4110
|
ignoreTag: !0
|
|
4076
|
-
},
|
|
4077
|
-
function
|
|
4078
|
-
return
|
|
4079
|
-
}
|
|
4080
|
-
const
|
|
4081
|
-
var
|
|
4082
|
-
for (var r in t)
|
|
4083
|
-
|
|
4084
|
-
if (
|
|
4085
|
-
for (var r of
|
|
4086
|
-
|
|
4111
|
+
}, xo = Eo;
|
|
4112
|
+
function Le() {
|
|
4113
|
+
return xo;
|
|
4114
|
+
}
|
|
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) => {
|
|
4117
|
+
for (var r in t || (t = {}))
|
|
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]);
|
|
4087
4122
|
return e;
|
|
4088
|
-
},
|
|
4089
|
-
let
|
|
4090
|
-
const
|
|
4091
|
-
function
|
|
4123
|
+
}, Io = (e, t) => Po(e, To(t));
|
|
4124
|
+
let zt;
|
|
4125
|
+
const ht = mt(null);
|
|
4126
|
+
function Er(e) {
|
|
4092
4127
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4093
4128
|
}
|
|
4094
|
-
function
|
|
4095
|
-
const r =
|
|
4096
|
-
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;
|
|
4097
4132
|
}
|
|
4098
|
-
function
|
|
4099
|
-
return
|
|
4133
|
+
function ye() {
|
|
4134
|
+
return zt != null ? zt : void 0;
|
|
4100
4135
|
}
|
|
4101
|
-
|
|
4102
|
-
|
|
4136
|
+
ht.subscribe((e) => {
|
|
4137
|
+
zt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4103
4138
|
});
|
|
4104
|
-
const
|
|
4105
|
-
if (e &&
|
|
4106
|
-
const { loadingDelay: t } =
|
|
4139
|
+
const Oo = (e) => {
|
|
4140
|
+
if (e && bo(e) && Vt(e)) {
|
|
4141
|
+
const { loadingDelay: t } = Le();
|
|
4107
4142
|
let r;
|
|
4108
|
-
return typeof window != "undefined" &&
|
|
4109
|
-
() =>
|
|
4143
|
+
return typeof window != "undefined" && ye() != null && t ? r = window.setTimeout(
|
|
4144
|
+
() => Bt.set(!0),
|
|
4110
4145
|
t
|
|
4111
|
-
) :
|
|
4112
|
-
|
|
4146
|
+
) : Bt.set(!0), un(e).then(() => {
|
|
4147
|
+
ht.set(e);
|
|
4113
4148
|
}).finally(() => {
|
|
4114
|
-
clearTimeout(r),
|
|
4149
|
+
clearTimeout(r), Bt.set(!1);
|
|
4115
4150
|
});
|
|
4116
4151
|
}
|
|
4117
|
-
return
|
|
4118
|
-
}, he =
|
|
4119
|
-
set:
|
|
4120
|
-
}),
|
|
4152
|
+
return ht.set(e);
|
|
4153
|
+
}, he = Io(Ao({}, ht), {
|
|
4154
|
+
set: Oo
|
|
4155
|
+
}), vt = (e) => {
|
|
4121
4156
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4122
4157
|
return (n) => {
|
|
4123
4158
|
const i = JSON.stringify(n);
|
|
4124
4159
|
return i in t ? t[i] : t[i] = e(n);
|
|
4125
4160
|
};
|
|
4126
4161
|
};
|
|
4127
|
-
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) => {
|
|
4128
4163
|
for (var r in t || (t = {}))
|
|
4129
|
-
|
|
4130
|
-
if (
|
|
4131
|
-
for (var r of
|
|
4132
|
-
|
|
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]);
|
|
4133
4168
|
return e;
|
|
4134
|
-
},
|
|
4169
|
+
}, Ue = (e, t) => {
|
|
4135
4170
|
var r = {};
|
|
4136
4171
|
for (var n in e)
|
|
4137
|
-
|
|
4138
|
-
if (e != null &&
|
|
4139
|
-
for (var n of
|
|
4140
|
-
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]);
|
|
4141
4176
|
return r;
|
|
4142
4177
|
};
|
|
4143
|
-
const
|
|
4144
|
-
const { formats: r } =
|
|
4178
|
+
const We = (e, t) => {
|
|
4179
|
+
const { formats: r } = Le();
|
|
4145
4180
|
if (e in r && t in r[e])
|
|
4146
4181
|
return r[e][t];
|
|
4147
4182
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4148
|
-
},
|
|
4183
|
+
}, Lo = vt(
|
|
4149
4184
|
(e) => {
|
|
4150
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4185
|
+
var t = e, { locale: r, format: n } = t, i = Ue(t, ["locale", "format"]);
|
|
4151
4186
|
if (r == null)
|
|
4152
4187
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4153
|
-
return n && (i =
|
|
4188
|
+
return n && (i = We("number", n)), new Intl.NumberFormat(r, i);
|
|
4154
4189
|
}
|
|
4155
|
-
),
|
|
4190
|
+
), Mo = vt(
|
|
4156
4191
|
(e) => {
|
|
4157
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4192
|
+
var t = e, { locale: r, format: n } = t, i = Ue(t, ["locale", "format"]);
|
|
4158
4193
|
if (r == null)
|
|
4159
4194
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4160
|
-
return n ? i =
|
|
4195
|
+
return n ? i = We("date", n) : Object.keys(i).length === 0 && (i = We("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4161
4196
|
}
|
|
4162
|
-
),
|
|
4197
|
+
), No = vt(
|
|
4163
4198
|
(e) => {
|
|
4164
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4199
|
+
var t = e, { locale: r, format: n } = t, i = Ue(t, ["locale", "format"]);
|
|
4165
4200
|
if (r == null)
|
|
4166
4201
|
throw new Error(
|
|
4167
4202
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4168
4203
|
);
|
|
4169
|
-
return n ? i =
|
|
4204
|
+
return n ? i = We("time", n) : Object.keys(i).length === 0 && (i = We("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4170
4205
|
}
|
|
4171
|
-
),
|
|
4206
|
+
), Ro = (e = {}) => {
|
|
4172
4207
|
var t = e, {
|
|
4173
|
-
locale: r =
|
|
4174
|
-
} = t, n =
|
|
4208
|
+
locale: r = ye()
|
|
4209
|
+
} = t, n = Ue(t, [
|
|
4175
4210
|
"locale"
|
|
4176
4211
|
]);
|
|
4177
|
-
return
|
|
4178
|
-
},
|
|
4212
|
+
return Lo(Zt({ locale: r }, n));
|
|
4213
|
+
}, Uo = (e = {}) => {
|
|
4179
4214
|
var t = e, {
|
|
4180
|
-
locale: r =
|
|
4181
|
-
} = t, n =
|
|
4215
|
+
locale: r = ye()
|
|
4216
|
+
} = t, n = Ue(t, [
|
|
4182
4217
|
"locale"
|
|
4183
4218
|
]);
|
|
4184
|
-
return
|
|
4185
|
-
},
|
|
4219
|
+
return Mo(Zt({ locale: r }, n));
|
|
4220
|
+
}, Fo = (e = {}) => {
|
|
4186
4221
|
var t = e, {
|
|
4187
|
-
locale: r =
|
|
4188
|
-
} = t, n =
|
|
4222
|
+
locale: r = ye()
|
|
4223
|
+
} = t, n = Ue(t, [
|
|
4189
4224
|
"locale"
|
|
4190
4225
|
]);
|
|
4191
|
-
return
|
|
4192
|
-
},
|
|
4226
|
+
return No(Zt({ locale: r }, n));
|
|
4227
|
+
}, Do = vt(
|
|
4193
4228
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4194
|
-
(e, t =
|
|
4195
|
-
ignoreTag:
|
|
4229
|
+
(e, t = ye()) => new ho(e, t, Le().formats, {
|
|
4230
|
+
ignoreTag: Le().ignoreTag
|
|
4196
4231
|
})
|
|
4197
|
-
),
|
|
4232
|
+
), ko = (e, t = {}) => {
|
|
4198
4233
|
var r, n, i, o;
|
|
4199
4234
|
let s = t;
|
|
4200
4235
|
typeof e == "object" && (s = e, e = s.id);
|
|
4201
4236
|
const {
|
|
4202
4237
|
values: a,
|
|
4203
|
-
locale: u =
|
|
4238
|
+
locale: u = ye(),
|
|
4204
4239
|
default: l
|
|
4205
4240
|
} = s;
|
|
4206
4241
|
if (u == null)
|
|
4207
4242
|
throw new Error(
|
|
4208
4243
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4209
4244
|
);
|
|
4210
|
-
let c =
|
|
4245
|
+
let c = on(e, u);
|
|
4211
4246
|
if (!c)
|
|
4212
|
-
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;
|
|
4213
4248
|
else if (typeof c != "string")
|
|
4214
4249
|
return console.warn(
|
|
4215
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.`
|
|
@@ -4218,7 +4253,7 @@ const Ze = (e, t) => {
|
|
|
4218
4253
|
return c;
|
|
4219
4254
|
let f = c;
|
|
4220
4255
|
try {
|
|
4221
|
-
f =
|
|
4256
|
+
f = Do(c, u).format(a);
|
|
4222
4257
|
} catch (d) {
|
|
4223
4258
|
d instanceof Error && console.warn(
|
|
4224
4259
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4226,25 +4261,25 @@ const Ze = (e, t) => {
|
|
|
4226
4261
|
);
|
|
4227
4262
|
}
|
|
4228
4263
|
return f;
|
|
4229
|
-
},
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
window.emWidgets = { topic:
|
|
4235
|
-
const
|
|
4236
|
-
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 }) {
|
|
4237
4272
|
he.subscribe((r) => {
|
|
4238
|
-
r == null && (
|
|
4273
|
+
r == null && (Re.set(t), he.set(e));
|
|
4239
4274
|
});
|
|
4240
4275
|
}
|
|
4241
|
-
function
|
|
4242
|
-
|
|
4276
|
+
function Sr(e, t) {
|
|
4277
|
+
an(e, t);
|
|
4243
4278
|
}
|
|
4244
|
-
function
|
|
4279
|
+
function Zo(e) {
|
|
4245
4280
|
he.set(e);
|
|
4246
4281
|
}
|
|
4247
|
-
const
|
|
4282
|
+
const Pr = {
|
|
4248
4283
|
en: {
|
|
4249
4284
|
loginTitle: "Welcome",
|
|
4250
4285
|
loginSubtitle: "Don't have an account yet?",
|
|
@@ -4389,13 +4424,13 @@ const wr = {
|
|
|
4389
4424
|
successMessage: "Login successful"
|
|
4390
4425
|
}
|
|
4391
4426
|
};
|
|
4392
|
-
function
|
|
4427
|
+
function qo(e, t) {
|
|
4393
4428
|
if (e) {
|
|
4394
4429
|
const r = document.createElement("style");
|
|
4395
4430
|
r.innerHTML = t, e.appendChild(r);
|
|
4396
4431
|
}
|
|
4397
4432
|
}
|
|
4398
|
-
function
|
|
4433
|
+
function Jo(e, t) {
|
|
4399
4434
|
const r = new URL(t);
|
|
4400
4435
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4401
4436
|
const i = document.createElement("style");
|
|
@@ -4404,7 +4439,7 @@ function Xo(e, t) {
|
|
|
4404
4439
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4405
4440
|
});
|
|
4406
4441
|
}
|
|
4407
|
-
function
|
|
4442
|
+
function Qo(e, t, r) {
|
|
4408
4443
|
if (window.emMessageBus) {
|
|
4409
4444
|
const n = document.createElement("style");
|
|
4410
4445
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4424,18 +4459,18 @@ if (typeof window != "undefined") {
|
|
|
4424
4459
|
}
|
|
4425
4460
|
};
|
|
4426
4461
|
};
|
|
4427
|
-
customElements.define = e(customElements.define), import("./GeneralPlayerSmsVerificationForm-
|
|
4462
|
+
customElements.define = e(customElements.define), import("./GeneralPlayerSmsVerificationForm-BKWeCfRG.js").then(({ default: t }) => {
|
|
4428
4463
|
!customElements.get("general-player-sms-verification-form") && customElements.define("general-player-sms-verification-form", t.element);
|
|
4429
4464
|
});
|
|
4430
4465
|
}
|
|
4431
|
-
function
|
|
4432
|
-
|
|
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)}}');
|
|
4433
4468
|
}
|
|
4434
|
-
function
|
|
4469
|
+
function Tr(e) {
|
|
4435
4470
|
let t, r;
|
|
4436
4471
|
return {
|
|
4437
4472
|
c() {
|
|
4438
|
-
t =
|
|
4473
|
+
t = E("script"), rr(t.src, r = "//www.google.com/recaptcha/api.js?render=" + /*captchakey*/
|
|
4439
4474
|
e[1]) || h(t, "src", r), t.async = !0, t.defer = !0;
|
|
4440
4475
|
},
|
|
4441
4476
|
m(n, i) {
|
|
@@ -4443,7 +4478,7 @@ function Er(e) {
|
|
|
4443
4478
|
},
|
|
4444
4479
|
p(n, i) {
|
|
4445
4480
|
i[0] & /*captchakey*/
|
|
4446
|
-
2 && !
|
|
4481
|
+
2 && !rr(t.src, r = "//www.google.com/recaptcha/api.js?render=" + /*captchakey*/
|
|
4447
4482
|
n[1]) && h(t, "src", r);
|
|
4448
4483
|
},
|
|
4449
4484
|
d(n) {
|
|
@@ -4451,18 +4486,18 @@ function Er(e) {
|
|
|
4451
4486
|
}
|
|
4452
4487
|
};
|
|
4453
4488
|
}
|
|
4454
|
-
function
|
|
4489
|
+
function Ko(e) {
|
|
4455
4490
|
let t, r, n;
|
|
4456
4491
|
function i(a, u) {
|
|
4457
4492
|
return (
|
|
4458
4493
|
/*startSmsValidation*/
|
|
4459
|
-
a[21] ?
|
|
4494
|
+
a[21] ? rs : ts
|
|
4460
4495
|
);
|
|
4461
4496
|
}
|
|
4462
4497
|
let o = i(e), s = o(e);
|
|
4463
4498
|
return {
|
|
4464
4499
|
c() {
|
|
4465
|
-
t =
|
|
4500
|
+
t = E("div"), r = E("div"), s.c(), h(r, "class", "FormLogin"), h(t, "class", n = "FormContainer " + /*mobileView*/
|
|
4466
4501
|
(e[11] ? "FormMobileContainer" : ""));
|
|
4467
4502
|
},
|
|
4468
4503
|
m(a, u) {
|
|
@@ -4478,11 +4513,11 @@ function qo(e) {
|
|
|
4478
4513
|
}
|
|
4479
4514
|
};
|
|
4480
4515
|
}
|
|
4481
|
-
function
|
|
4516
|
+
function es(e) {
|
|
4482
4517
|
let t;
|
|
4483
4518
|
return {
|
|
4484
4519
|
c() {
|
|
4485
|
-
t =
|
|
4520
|
+
t = E("div"), t.innerHTML = '<div class="ModalLoader"></div>', h(t, "class", "ModalLoaderWrapper");
|
|
4486
4521
|
},
|
|
4487
4522
|
m(r, n) {
|
|
4488
4523
|
L(r, t, n);
|
|
@@ -4493,7 +4528,7 @@ function Jo(e) {
|
|
|
4493
4528
|
}
|
|
4494
4529
|
};
|
|
4495
4530
|
}
|
|
4496
|
-
function
|
|
4531
|
+
function ts(e) {
|
|
4497
4532
|
let t, r, n = (
|
|
4498
4533
|
/*$_*/
|
|
4499
4534
|
e[22]("loginTitle") + ""
|
|
@@ -4503,96 +4538,96 @@ function Qo(e) {
|
|
|
4503
4538
|
), u, l, c, f = (
|
|
4504
4539
|
/*$_*/
|
|
4505
4540
|
e[22]("loginSubtitleRegister") + ""
|
|
4506
|
-
), d, b,
|
|
4541
|
+
), d, b, y, g, x, O, z = (
|
|
4507
4542
|
/*$_*/
|
|
4508
4543
|
e[22]("loginUsername") + ""
|
|
4509
|
-
), R, U, A, ne, H,
|
|
4544
|
+
), R, U, A, ne, H, se, fe, J, ue, B, ie, X = (
|
|
4510
4545
|
/*$_*/
|
|
4511
4546
|
e[22]("loginPassword") + ""
|
|
4512
|
-
),
|
|
4547
|
+
), Fe, qe, de, me, M, _e, Je, we, Ee, pe, De, xe, Q, ge = (
|
|
4513
4548
|
/*$_*/
|
|
4514
4549
|
e[22]("loginButton") + ""
|
|
4515
|
-
), Se, Qe, be,
|
|
4550
|
+
), Se, Qe, be, ve = (
|
|
4516
4551
|
/*$_*/
|
|
4517
4552
|
e[22]("loginForgotPassword") + ""
|
|
4518
|
-
),
|
|
4553
|
+
), ke, $e, Ye, F = (
|
|
4519
4554
|
/*invalidName*/
|
|
4520
|
-
e[14] &&
|
|
4555
|
+
e[14] && Hr(e)
|
|
4521
4556
|
);
|
|
4522
|
-
function Ke(
|
|
4557
|
+
function Ke(v, S) {
|
|
4523
4558
|
return (
|
|
4524
4559
|
/*isPasswordVisible*/
|
|
4525
|
-
|
|
4560
|
+
v[19] ? is : ns
|
|
4526
4561
|
);
|
|
4527
4562
|
}
|
|
4528
4563
|
let Pe = Ke(e), Y = Pe(e), D = (
|
|
4529
4564
|
/*invalidPassword*/
|
|
4530
4565
|
e[15] && /*simplepasswordvalidation*/
|
|
4531
|
-
e[2] !== "true" &&
|
|
4566
|
+
e[2] !== "true" && Br(e)
|
|
4532
4567
|
), k = (
|
|
4533
4568
|
/*invalidPassword*/
|
|
4534
4569
|
e[15] && /*simplepasswordvalidation*/
|
|
4535
|
-
e[2] === "true" &&
|
|
4536
|
-
),
|
|
4570
|
+
e[2] === "true" && Ar(e)
|
|
4571
|
+
), $ = (
|
|
4537
4572
|
/*errorMessage*/
|
|
4538
|
-
e[16] &&
|
|
4573
|
+
e[16] && Ir(e)
|
|
4539
4574
|
);
|
|
4540
4575
|
return {
|
|
4541
4576
|
c() {
|
|
4542
|
-
t =
|
|
4543
|
-
e[6] ? "username email" : "off"), H.required = !0, 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*/
|
|
4544
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*/
|
|
4545
4580
|
e[6] ? "current-password" : "off"), h(M, "aria-describedby", "password-constraints"), M.required = !0, h(B, "class", pe = "PasswordContainer " + /*invalidPassword*/
|
|
4546
4581
|
(e[15] ? "InvalidField" : "")), h(Q, "class", "SignInButton"), Q.disabled = /*isFormDataInvalid*/
|
|
4547
|
-
e[20], h(Q, "id", "signin-button"), h(be, "class", "ForgotPasswordButton"), h(g, "id", "signin"), h(
|
|
4582
|
+
e[20], h(Q, "id", "signin-button"), h(be, "class", "ForgotPasswordButton"), h(g, "id", "signin"), h(y, "class", "FormContent");
|
|
4548
4583
|
},
|
|
4549
|
-
m(
|
|
4550
|
-
L(
|
|
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(
|
|
4551
4586
|
H,
|
|
4552
4587
|
/*userValue*/
|
|
4553
4588
|
e[12]
|
|
4554
|
-
), m(
|
|
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(
|
|
4555
4590
|
M,
|
|
4556
4591
|
/*userPassword*/
|
|
4557
4592
|
e[13]
|
|
4558
|
-
), 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,
|
|
4559
|
-
|
|
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(
|
|
4560
4595
|
c,
|
|
4561
4596
|
"click",
|
|
4562
4597
|
/*click_handler*/
|
|
4563
4598
|
e[33]
|
|
4564
4599
|
),
|
|
4565
|
-
|
|
4600
|
+
ae(
|
|
4566
4601
|
H,
|
|
4567
4602
|
"input",
|
|
4568
4603
|
/*input0_input_handler*/
|
|
4569
4604
|
e[34]
|
|
4570
4605
|
),
|
|
4571
|
-
|
|
4606
|
+
ae(
|
|
4572
4607
|
H,
|
|
4573
4608
|
"input",
|
|
4574
4609
|
/*validateUserName*/
|
|
4575
4610
|
e[28]
|
|
4576
4611
|
),
|
|
4577
|
-
|
|
4612
|
+
ae(
|
|
4578
4613
|
M,
|
|
4579
4614
|
"input",
|
|
4580
4615
|
/*input1_input_handler*/
|
|
4581
4616
|
e[35]
|
|
4582
4617
|
),
|
|
4583
|
-
|
|
4618
|
+
ae(
|
|
4584
4619
|
M,
|
|
4585
4620
|
"input",
|
|
4586
4621
|
/*validatePassword*/
|
|
4587
4622
|
e[29]
|
|
4588
4623
|
),
|
|
4589
|
-
|
|
4624
|
+
ae(
|
|
4590
4625
|
Q,
|
|
4591
4626
|
"click",
|
|
4592
4627
|
/*click_handler_3*/
|
|
4593
4628
|
e[39]
|
|
4594
4629
|
),
|
|
4595
|
-
|
|
4630
|
+
ae(
|
|
4596
4631
|
be,
|
|
4597
4632
|
"click",
|
|
4598
4633
|
/*click_handler_4*/
|
|
@@ -4600,61 +4635,61 @@ function Qo(e) {
|
|
|
4600
4635
|
)
|
|
4601
4636
|
], $e = !0);
|
|
4602
4637
|
},
|
|
4603
|
-
p(
|
|
4604
|
-
|
|
4638
|
+
p(v, S) {
|
|
4639
|
+
S[0] & /*$_*/
|
|
4605
4640
|
4194304 && n !== (n = /*$_*/
|
|
4606
|
-
|
|
4641
|
+
v[22]("loginTitle") + "") && re(i, n), S[0] & /*$_*/
|
|
4607
4642
|
4194304 && a !== (a = /*$_*/
|
|
4608
|
-
|
|
4643
|
+
v[22]("loginSubtitle") + "") && re(u, a), S[0] & /*$_*/
|
|
4609
4644
|
4194304 && f !== (f = /*$_*/
|
|
4610
|
-
|
|
4645
|
+
v[22]("loginSubtitleRegister") + "") && re(d, f), S[0] & /*$_*/
|
|
4611
4646
|
4194304 && z !== (z = /*$_*/
|
|
4612
|
-
|
|
4613
|
-
64 &&
|
|
4614
|
-
|
|
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*/
|
|
4615
4650
|
4096 && H.value !== /*userValue*/
|
|
4616
|
-
|
|
4651
|
+
v[12] && rt(
|
|
4617
4652
|
H,
|
|
4618
4653
|
/*userValue*/
|
|
4619
|
-
|
|
4654
|
+
v[12]
|
|
4620
4655
|
), /*invalidName*/
|
|
4621
|
-
|
|
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*/
|
|
4622
4657
|
16384 && J !== (J = "UserContainer " + /*invalidName*/
|
|
4623
|
-
(
|
|
4658
|
+
(v[14] ? "InvalidField" : "")) && h(x, "class", J), S[0] & /*$_*/
|
|
4624
4659
|
4194304 && X !== (X = /*$_*/
|
|
4625
|
-
|
|
4660
|
+
v[22]("loginPassword") + "") && re(Fe, X), S[0] & /*savecredentials*/
|
|
4626
4661
|
64 && _e !== (_e = /*savecredentials*/
|
|
4627
|
-
|
|
4662
|
+
v[6] ? "current-password" : "off") && h(M, "autocomplete", _e), S[0] & /*userPassword*/
|
|
4628
4663
|
8192 && M.value !== /*userPassword*/
|
|
4629
|
-
|
|
4664
|
+
v[13] && rt(
|
|
4630
4665
|
M,
|
|
4631
4666
|
/*userPassword*/
|
|
4632
|
-
|
|
4633
|
-
), Pe === (Pe = Ke(
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4667
|
+
v[13]
|
|
4668
|
+
), Pe === (Pe = Ke(v)) && Y ? Y.p(v, S) : (Y.d(1), Y = Pe(v), Y && (Y.c(), Y.m(B, we))), /*invalidPassword*/
|
|
4669
|
+
v[15] && /*simplepasswordvalidation*/
|
|
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*/
|
|
4671
|
+
v[15] && /*simplepasswordvalidation*/
|
|
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*/
|
|
4638
4673
|
32768 && pe !== (pe = "PasswordContainer " + /*invalidPassword*/
|
|
4639
|
-
(
|
|
4640
|
-
|
|
4674
|
+
(v[15] ? "InvalidField" : "")) && h(B, "class", pe), /*errorMessage*/
|
|
4675
|
+
v[16] ? $ ? $.p(v, S) : ($ = Ir(v), $.c(), $.m(g, xe)) : $ && ($.d(1), $ = null), S[0] & /*$_*/
|
|
4641
4676
|
4194304 && ge !== (ge = /*$_*/
|
|
4642
|
-
|
|
4677
|
+
v[22]("loginButton") + "") && re(Se, ge), S[0] & /*isFormDataInvalid*/
|
|
4643
4678
|
1048576 && (Q.disabled = /*isFormDataInvalid*/
|
|
4644
|
-
|
|
4645
|
-
4194304 &&
|
|
4646
|
-
|
|
4679
|
+
v[20]), S[0] & /*$_*/
|
|
4680
|
+
4194304 && ve !== (ve = /*$_*/
|
|
4681
|
+
v[22]("loginForgotPassword") + "") && re(ke, ve);
|
|
4647
4682
|
},
|
|
4648
|
-
d(
|
|
4649
|
-
|
|
4683
|
+
d(v) {
|
|
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);
|
|
4650
4685
|
}
|
|
4651
4686
|
};
|
|
4652
4687
|
}
|
|
4653
|
-
function
|
|
4688
|
+
function rs(e) {
|
|
4654
4689
|
let t;
|
|
4655
4690
|
return {
|
|
4656
4691
|
c() {
|
|
4657
|
-
t =
|
|
4692
|
+
t = E("general-player-sms-verification-form"), W(
|
|
4658
4693
|
t,
|
|
4659
4694
|
"endpoint",
|
|
4660
4695
|
/*endpoint*/
|
|
@@ -4744,14 +4779,14 @@ function Yo(e) {
|
|
|
4744
4779
|
}
|
|
4745
4780
|
};
|
|
4746
4781
|
}
|
|
4747
|
-
function
|
|
4782
|
+
function Hr(e) {
|
|
4748
4783
|
let t, r = (
|
|
4749
4784
|
/*$_*/
|
|
4750
4785
|
e[22]("loginUsernameError") + ""
|
|
4751
4786
|
), n;
|
|
4752
4787
|
return {
|
|
4753
4788
|
c() {
|
|
4754
|
-
t =
|
|
4789
|
+
t = E("p"), n = N(r), h(t, "class", "InvalidInput");
|
|
4755
4790
|
},
|
|
4756
4791
|
m(i, o) {
|
|
4757
4792
|
L(i, t, o), m(t, n);
|
|
@@ -4766,14 +4801,14 @@ function xr(e) {
|
|
|
4766
4801
|
}
|
|
4767
4802
|
};
|
|
4768
4803
|
}
|
|
4769
|
-
function
|
|
4804
|
+
function ns(e) {
|
|
4770
4805
|
let t, r, n, i, o, s, a, u, l;
|
|
4771
4806
|
return {
|
|
4772
4807
|
c() {
|
|
4773
|
-
t =
|
|
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");
|
|
4774
4809
|
},
|
|
4775
4810
|
m(c, f) {
|
|
4776
|
-
L(c, t, f), m(t, r), m(r, n), m(n, i), m(t, o), m(o, s), m(o, a), u || (l =
|
|
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(
|
|
4777
4812
|
t,
|
|
4778
4813
|
"click",
|
|
4779
4814
|
/*click_handler_2*/
|
|
@@ -4786,34 +4821,34 @@ function Ko(e) {
|
|
|
4786
4821
|
}
|
|
4787
4822
|
};
|
|
4788
4823
|
}
|
|
4789
|
-
function
|
|
4790
|
-
let t, r, n, i, o, s, a, u, l, c, f, d, b,
|
|
4824
|
+
function is(e) {
|
|
4825
|
+
let t, r, n, i, o, s, a, u, l, c, f, d, b, y, g;
|
|
4791
4826
|
return {
|
|
4792
4827
|
c() {
|
|
4793
|
-
t =
|
|
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");
|
|
4794
4829
|
},
|
|
4795
|
-
m(
|
|
4796
|
-
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(
|
|
4797
4832
|
t,
|
|
4798
4833
|
"click",
|
|
4799
4834
|
/*click_handler_1*/
|
|
4800
4835
|
e[37]
|
|
4801
|
-
),
|
|
4836
|
+
), y = !0);
|
|
4802
4837
|
},
|
|
4803
4838
|
p: Z,
|
|
4804
|
-
d(
|
|
4805
|
-
|
|
4839
|
+
d(x) {
|
|
4840
|
+
x && I(t), y = !1, g();
|
|
4806
4841
|
}
|
|
4807
4842
|
};
|
|
4808
4843
|
}
|
|
4809
|
-
function
|
|
4844
|
+
function Br(e) {
|
|
4810
4845
|
let t, r = (
|
|
4811
4846
|
/*$_*/
|
|
4812
4847
|
e[22]("loginPasswordError") + ""
|
|
4813
4848
|
), n;
|
|
4814
4849
|
return {
|
|
4815
4850
|
c() {
|
|
4816
|
-
t =
|
|
4851
|
+
t = E("p"), n = N(r), h(t, "class", "InvalidInput");
|
|
4817
4852
|
},
|
|
4818
4853
|
m(i, o) {
|
|
4819
4854
|
L(i, t, o), m(t, n);
|
|
@@ -4828,14 +4863,14 @@ function Sr(e) {
|
|
|
4828
4863
|
}
|
|
4829
4864
|
};
|
|
4830
4865
|
}
|
|
4831
|
-
function
|
|
4866
|
+
function Ar(e) {
|
|
4832
4867
|
let t, r = (
|
|
4833
4868
|
/*$_*/
|
|
4834
4869
|
e[22]("loginSimplePasswordError") + ""
|
|
4835
4870
|
), n;
|
|
4836
4871
|
return {
|
|
4837
4872
|
c() {
|
|
4838
|
-
t =
|
|
4873
|
+
t = E("p"), n = N(r), h(t, "class", "InvalidInput");
|
|
4839
4874
|
},
|
|
4840
4875
|
m(i, o) {
|
|
4841
4876
|
L(i, t, o), m(t, n);
|
|
@@ -4850,11 +4885,11 @@ function Pr(e) {
|
|
|
4850
4885
|
}
|
|
4851
4886
|
};
|
|
4852
4887
|
}
|
|
4853
|
-
function
|
|
4888
|
+
function Ir(e) {
|
|
4854
4889
|
let t, r;
|
|
4855
4890
|
return {
|
|
4856
4891
|
c() {
|
|
4857
|
-
t =
|
|
4892
|
+
t = E("p"), r = N(
|
|
4858
4893
|
/*errorMessage*/
|
|
4859
4894
|
e[16]
|
|
4860
4895
|
), h(t, "class", "ErrorMessage");
|
|
@@ -4875,21 +4910,21 @@ function Tr(e) {
|
|
|
4875
4910
|
}
|
|
4876
4911
|
};
|
|
4877
4912
|
}
|
|
4878
|
-
function
|
|
4913
|
+
function os(e) {
|
|
4879
4914
|
let t, r, n, i, o, s = (
|
|
4880
4915
|
/*captchakey*/
|
|
4881
|
-
e[1] &&
|
|
4916
|
+
e[1] && Tr(e)
|
|
4882
4917
|
);
|
|
4883
4918
|
function a(c, f) {
|
|
4884
4919
|
return (
|
|
4885
4920
|
/*isLoading*/
|
|
4886
|
-
c[17] ?
|
|
4921
|
+
c[17] ? es : Ko
|
|
4887
4922
|
);
|
|
4888
4923
|
}
|
|
4889
4924
|
let u = a(e), l = u(e);
|
|
4890
4925
|
return {
|
|
4891
4926
|
c() {
|
|
4892
|
-
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(
|
|
4893
4928
|
n,
|
|
4894
4929
|
"data-sitekey",
|
|
4895
4930
|
/*captchakey*/
|
|
@@ -4901,7 +4936,7 @@ function ts(e) {
|
|
|
4901
4936
|
},
|
|
4902
4937
|
p(c, f) {
|
|
4903
4938
|
/*captchakey*/
|
|
4904
|
-
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*/
|
|
4905
4940
|
2 && h(
|
|
4906
4941
|
n,
|
|
4907
4942
|
"data-sitekey",
|
|
@@ -4916,27 +4951,27 @@ function ts(e) {
|
|
|
4916
4951
|
}
|
|
4917
4952
|
};
|
|
4918
4953
|
}
|
|
4919
|
-
let
|
|
4920
|
-
function
|
|
4954
|
+
let ss = "Please use this code {0} to activate your account";
|
|
4955
|
+
function as(e, t, r) {
|
|
4921
4956
|
let n;
|
|
4922
|
-
|
|
4923
|
-
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,
|
|
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 = {
|
|
4924
4959
|
user: /^(?!(?:.*\d){9})(?=(?:.*[a-zA-Z]){4})^[a-zA-Z\d]*$/,
|
|
4925
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,
|
|
4926
4961
|
password: /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/
|
|
4927
4962
|
};
|
|
4928
|
-
|
|
4963
|
+
Wo({ withLocale: "en", translations: {} });
|
|
4929
4964
|
const M = () => {
|
|
4930
4965
|
fetch(d).then((q) => q.json()).then((q) => {
|
|
4931
4966
|
Object.keys(q).forEach((te) => {
|
|
4932
|
-
|
|
4967
|
+
Sr(te, q[te]);
|
|
4933
4968
|
});
|
|
4934
4969
|
}).catch((q) => {
|
|
4935
4970
|
console.log(q);
|
|
4936
4971
|
});
|
|
4937
4972
|
};
|
|
4938
|
-
Object.keys(
|
|
4939
|
-
|
|
4973
|
+
Object.keys(Pr).forEach((p) => {
|
|
4974
|
+
Sr(p, Pr[p]);
|
|
4940
4975
|
});
|
|
4941
4976
|
const _e = () => new Promise((p, q) => {
|
|
4942
4977
|
grecaptcha.ready(() => {
|
|
@@ -4952,7 +4987,7 @@ function ns(e, t, r) {
|
|
|
4952
4987
|
r(19, B = !1), pe();
|
|
4953
4988
|
}, pe = () => {
|
|
4954
4989
|
r(18, ue.type = B ? "text" : "password", ue);
|
|
4955
|
-
},
|
|
4990
|
+
}, De = () => {
|
|
4956
4991
|
window.postMessage({ type: "ToRegister" }, window.location.href);
|
|
4957
4992
|
}, xe = (p) => {
|
|
4958
4993
|
p.preventDefault(), window.postMessage({ type: "NavForgotPassword" }, window.location.href);
|
|
@@ -4965,10 +5000,10 @@ function ns(e, t, r) {
|
|
|
4965
5000
|
}, r(17, J = !0), $e(ne));
|
|
4966
5001
|
});
|
|
4967
5002
|
}, ge = (p) => !!((me.user.test(p) || me.email.test(p)) && p.length <= 100), Se = (p) => !!me.password.test(p), Qe = () => {
|
|
4968
|
-
r(14, H = !ge(U)), r(20, ie = !(!H && !
|
|
5003
|
+
r(14, H = !ge(U)), r(20, ie = !(!H && !se && A));
|
|
4969
5004
|
}, be = () => {
|
|
4970
|
-
r(15,
|
|
4971
|
-
},
|
|
5005
|
+
r(15, se = !Se(A)), r(20, ie = !(!H && !se && U));
|
|
5006
|
+
}, ve = (p) => {
|
|
4972
5007
|
if (p.data)
|
|
4973
5008
|
switch (p.data.type) {
|
|
4974
5009
|
case "ModalLoader":
|
|
@@ -4981,20 +5016,20 @@ function ns(e, t, r) {
|
|
|
4981
5016
|
Q();
|
|
4982
5017
|
break;
|
|
4983
5018
|
}
|
|
4984
|
-
},
|
|
5019
|
+
}, ke = (p) => {
|
|
4985
5020
|
typeof gtag == "function" && gtag("event", "Login", {
|
|
4986
5021
|
context: "GeneralPlayerLoginRegisterPage"
|
|
4987
5022
|
});
|
|
4988
|
-
}, $e = (
|
|
4989
|
-
let
|
|
5023
|
+
}, $e = (qt) => et(this, [qt], function* ({ username: p, password: q, token: te }) {
|
|
5024
|
+
let Jt = {
|
|
4990
5025
|
"Content-Type": "application/json",
|
|
4991
5026
|
"g-recaptcha-response": te
|
|
4992
|
-
},
|
|
5027
|
+
}, yt = { username: p, password: q }, mn = {
|
|
4993
5028
|
method: "POST",
|
|
4994
|
-
headers:
|
|
4995
|
-
body: JSON.stringify(
|
|
5029
|
+
headers: Jt,
|
|
5030
|
+
body: JSON.stringify(yt)
|
|
4996
5031
|
};
|
|
4997
|
-
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(
|
|
4998
5033
|
{
|
|
4999
5034
|
type: "WidgetNotification",
|
|
5000
5035
|
data: {
|
|
@@ -5003,13 +5038,13 @@ function ns(e, t, r) {
|
|
|
5003
5038
|
}
|
|
5004
5039
|
},
|
|
5005
5040
|
window.location.href
|
|
5006
|
-
)),
|
|
5007
|
-
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) {
|
|
5008
5043
|
if (window.postMessage(
|
|
5009
5044
|
{
|
|
5010
5045
|
type: "UserSessionID",
|
|
5011
|
-
session:
|
|
5012
|
-
userid:
|
|
5046
|
+
session: G.sessionID,
|
|
5047
|
+
userid: G.universalID
|
|
5013
5048
|
},
|
|
5014
5049
|
window.location.href
|
|
5015
5050
|
), window.postMessage(
|
|
@@ -5022,29 +5057,29 @@ function ns(e, t, r) {
|
|
|
5022
5057
|
},
|
|
5023
5058
|
window.location.href
|
|
5024
5059
|
), window.PasswordCredential && b == "true") {
|
|
5025
|
-
const
|
|
5026
|
-
password:
|
|
5027
|
-
id:
|
|
5060
|
+
const Ge = new PasswordCredential({
|
|
5061
|
+
password: yt.password,
|
|
5062
|
+
id: yt.username
|
|
5028
5063
|
});
|
|
5029
|
-
navigator.credentials.store(
|
|
5064
|
+
navigator.credentials.store(Ge);
|
|
5030
5065
|
}
|
|
5031
|
-
|
|
5066
|
+
ke();
|
|
5032
5067
|
} else
|
|
5033
5068
|
try {
|
|
5034
|
-
let
|
|
5035
|
-
r(16, fe =
|
|
5069
|
+
let Ge = G.error;
|
|
5070
|
+
r(16, fe = Ge), r(17, J = !1), window.postMessage(
|
|
5036
5071
|
{
|
|
5037
5072
|
type: "WidgetNotification",
|
|
5038
|
-
data: { type: "error", message:
|
|
5073
|
+
data: { type: "error", message: Ge }
|
|
5039
5074
|
},
|
|
5040
5075
|
window.location.href
|
|
5041
5076
|
);
|
|
5042
|
-
} catch (
|
|
5043
|
-
let
|
|
5044
|
-
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(
|
|
5045
5080
|
{
|
|
5046
5081
|
type: "WidgetNotification",
|
|
5047
|
-
data: { type: "error", message:
|
|
5082
|
+
data: { type: "error", message: Qt }
|
|
5048
5083
|
},
|
|
5049
5084
|
window.location.href
|
|
5050
5085
|
);
|
|
@@ -5061,26 +5096,26 @@ function ns(e, t, r) {
|
|
|
5061
5096
|
},
|
|
5062
5097
|
body: JSON.stringify({
|
|
5063
5098
|
userId: q,
|
|
5064
|
-
messageTemplate:
|
|
5099
|
+
messageTemplate: ss,
|
|
5065
5100
|
destination: p
|
|
5066
5101
|
})
|
|
5067
|
-
}),
|
|
5102
|
+
}), qt = yield te.json();
|
|
5068
5103
|
if (te.ok) {
|
|
5069
|
-
r(9, g =
|
|
5070
|
-
let
|
|
5071
|
-
|
|
5104
|
+
r(9, g = qt.id);
|
|
5105
|
+
let Jt = qt.maxValidationAttempts;
|
|
5106
|
+
x = !1;
|
|
5072
5107
|
} else
|
|
5073
|
-
throw
|
|
5108
|
+
throw x = !0, new Error("Failed to fetch");
|
|
5074
5109
|
} catch (te) {
|
|
5075
|
-
|
|
5110
|
+
x = !0, console.error(te);
|
|
5076
5111
|
}
|
|
5077
5112
|
}), F = () => {
|
|
5078
|
-
|
|
5113
|
+
Zo(s);
|
|
5079
5114
|
};
|
|
5080
|
-
|
|
5081
|
-
window.removeEventListener("message",
|
|
5115
|
+
An(() => (window.addEventListener("message", ve, !1), window.postMessage({ type: "LoginRegisterModalActive" }, window.location.href), r(11, z = Xo(R)), () => {
|
|
5116
|
+
window.removeEventListener("message", ve);
|
|
5082
5117
|
}));
|
|
5083
|
-
const Ke = () =>
|
|
5118
|
+
const Ke = () => De();
|
|
5084
5119
|
function Pe() {
|
|
5085
5120
|
U = this.value, r(12, U);
|
|
5086
5121
|
}
|
|
@@ -5092,8 +5127,8 @@ function ns(e, t, r) {
|
|
|
5092
5127
|
ue = p, r(18, ue);
|
|
5093
5128
|
});
|
|
5094
5129
|
}
|
|
5095
|
-
const k = () => Ee(),
|
|
5096
|
-
function
|
|
5130
|
+
const k = () => Ee(), $ = () => we(), v = (p) => Q(p), S = (p) => xe(p);
|
|
5131
|
+
function dn(p) {
|
|
5097
5132
|
ut[p ? "unshift" : "push"](() => {
|
|
5098
5133
|
X = p, r(7, X);
|
|
5099
5134
|
});
|
|
@@ -5104,9 +5139,9 @@ function ns(e, t, r) {
|
|
|
5104
5139
|
e.$$.dirty[0] & /*endpoint, lang*/
|
|
5105
5140
|
1073741825 && i && s && F(), e.$$.dirty[0] & /*simplepasswordvalidation*/
|
|
5106
5141
|
4 && u && Je(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5107
|
-
144 && c && X &&
|
|
5108
|
-
160 && f && X &&
|
|
5109
|
-
136 && l && X &&
|
|
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*/
|
|
5110
5145
|
2 && d && M();
|
|
5111
5146
|
}, [
|
|
5112
5147
|
i,
|
|
@@ -5117,14 +5152,14 @@ function ns(e, t, r) {
|
|
|
5117
5152
|
f,
|
|
5118
5153
|
b,
|
|
5119
5154
|
X,
|
|
5120
|
-
|
|
5155
|
+
y,
|
|
5121
5156
|
g,
|
|
5122
|
-
|
|
5157
|
+
O,
|
|
5123
5158
|
z,
|
|
5124
5159
|
U,
|
|
5125
5160
|
A,
|
|
5126
5161
|
H,
|
|
5127
|
-
|
|
5162
|
+
se,
|
|
5128
5163
|
fe,
|
|
5129
5164
|
J,
|
|
5130
5165
|
ue,
|
|
@@ -5134,7 +5169,7 @@ function ns(e, t, r) {
|
|
|
5134
5169
|
n,
|
|
5135
5170
|
we,
|
|
5136
5171
|
Ee,
|
|
5137
|
-
|
|
5172
|
+
De,
|
|
5138
5173
|
xe,
|
|
5139
5174
|
Q,
|
|
5140
5175
|
Qe,
|
|
@@ -5147,20 +5182,20 @@ function ns(e, t, r) {
|
|
|
5147
5182
|
Y,
|
|
5148
5183
|
D,
|
|
5149
5184
|
k,
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5185
|
+
$,
|
|
5186
|
+
v,
|
|
5187
|
+
S,
|
|
5188
|
+
dn
|
|
5154
5189
|
];
|
|
5155
5190
|
}
|
|
5156
|
-
class
|
|
5191
|
+
class fn extends $n {
|
|
5157
5192
|
constructor(t) {
|
|
5158
|
-
super(),
|
|
5193
|
+
super(), Dn(
|
|
5159
5194
|
this,
|
|
5160
5195
|
t,
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5196
|
+
as,
|
|
5197
|
+
os,
|
|
5198
|
+
Cr,
|
|
5164
5199
|
{
|
|
5165
5200
|
endpoint: 0,
|
|
5166
5201
|
captchakey: 1,
|
|
@@ -5173,7 +5208,7 @@ class ln extends Un {
|
|
|
5173
5208
|
translationurl: 32,
|
|
5174
5209
|
savecredentials: 6
|
|
5175
5210
|
},
|
|
5176
|
-
|
|
5211
|
+
Yo,
|
|
5177
5212
|
[-1, -1]
|
|
5178
5213
|
);
|
|
5179
5214
|
}
|
|
@@ -5238,39 +5273,39 @@ class ln extends Un {
|
|
|
5238
5273
|
this.$$set({ savecredentials: t }), ee();
|
|
5239
5274
|
}
|
|
5240
5275
|
}
|
|
5241
|
-
|
|
5242
|
-
const
|
|
5276
|
+
kn(fn, { endpoint: {}, captchakey: {}, lang: {}, smsverification: {}, simplepasswordvalidation: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, savecredentials: {} }, [], [], !0);
|
|
5277
|
+
const us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5243
5278
|
__proto__: null,
|
|
5244
|
-
default:
|
|
5279
|
+
default: fn
|
|
5245
5280
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5246
5281
|
export {
|
|
5247
5282
|
he as $,
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5283
|
+
us as G,
|
|
5284
|
+
$n as S,
|
|
5285
|
+
Re as a,
|
|
5286
|
+
an as b,
|
|
5287
|
+
En as c,
|
|
5288
|
+
I as d,
|
|
5289
|
+
re as e,
|
|
5255
5290
|
ee as f,
|
|
5256
|
-
|
|
5291
|
+
rt as g,
|
|
5257
5292
|
h,
|
|
5258
|
-
|
|
5293
|
+
Dn as i,
|
|
5259
5294
|
L as j,
|
|
5260
5295
|
m as k,
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5296
|
+
ae as l,
|
|
5297
|
+
E as m,
|
|
5298
|
+
Z as n,
|
|
5299
|
+
j as o,
|
|
5300
|
+
wn as p,
|
|
5301
|
+
An as q,
|
|
5302
|
+
Me as r,
|
|
5303
|
+
Cr as s,
|
|
5269
5304
|
N as t,
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5305
|
+
ut as u,
|
|
5306
|
+
qo as v,
|
|
5307
|
+
Jo as w,
|
|
5308
|
+
Qo as x,
|
|
5309
|
+
kn as y,
|
|
5310
|
+
zo as z
|
|
5276
5311
|
};
|