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