@everymatrix/general-player-login-form 1.53.0 → 1.53.10
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/{GeneralPlayerLoginForm-DnwXmexh.js → GeneralPlayerLoginForm-MMmgBHKW.js} +1047 -1102
- package/components/{GeneralPlayerSmsVerificationForm-B6d2Y3hF.js → GeneralPlayerSmsVerificationForm-COg-pr9r.js} +133 -149
- package/esnext/general-player-login-form.js +14 -0
- package/package.json +8 -12
- package/components/GeneralPlayerLoginForm-BoIsFJsw.cjs +0 -5
- package/components/GeneralPlayerSmsVerificationForm-BmimxoUw.cjs +0 -1
- package/es2015/general-player-login-form.cjs +0 -1
- package/es2015/general-player-login-form.js +0 -16
package/components/{GeneralPlayerLoginForm-DnwXmexh.js → GeneralPlayerLoginForm-MMmgBHKW.js}
RENAMED
|
@@ -1,57 +1,28 @@
|
|
|
1
|
-
var gn = Object.defineProperty, bn = Object.defineProperties;
|
|
2
|
-
var vn = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var Jt = Object.getOwnPropertySymbols;
|
|
4
|
-
var yn = Object.prototype.hasOwnProperty, _n = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var vt = (e, t, r) => t in e ? gn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qt = (e, t) => {
|
|
6
|
-
for (var r in t || (t = {}))
|
|
7
|
-
yn.call(t, r) && vt(e, r, t[r]);
|
|
8
|
-
if (Jt)
|
|
9
|
-
for (var r of Jt(t))
|
|
10
|
-
_n.call(t, r) && vt(e, r, t[r]);
|
|
11
|
-
return e;
|
|
12
|
-
}, Yt = (e, t) => bn(e, vn(t));
|
|
13
|
-
var Y = (e, t, r) => vt(e, typeof t != "symbol" ? t + "" : t, r);
|
|
14
|
-
var et = (e, t, r) => new Promise((n, i) => {
|
|
15
|
-
var o = (u) => {
|
|
16
|
-
try {
|
|
17
|
-
a(r.next(u));
|
|
18
|
-
} catch (l) {
|
|
19
|
-
i(l);
|
|
20
|
-
}
|
|
21
|
-
}, s = (u) => {
|
|
22
|
-
try {
|
|
23
|
-
a(r.throw(u));
|
|
24
|
-
} catch (l) {
|
|
25
|
-
i(l);
|
|
26
|
-
}
|
|
27
|
-
}, a = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(o, s);
|
|
28
|
-
a((r = r.apply(e, t)).next());
|
|
29
|
-
});
|
|
30
1
|
function Z() {
|
|
31
2
|
}
|
|
32
|
-
function
|
|
3
|
+
function Er(e) {
|
|
33
4
|
return e();
|
|
34
5
|
}
|
|
35
|
-
function
|
|
6
|
+
function Vt() {
|
|
36
7
|
return /* @__PURE__ */ Object.create(null);
|
|
37
8
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
9
|
+
function Oe(e) {
|
|
10
|
+
e.forEach(Er);
|
|
40
11
|
}
|
|
41
|
-
function
|
|
12
|
+
function Dt(e) {
|
|
42
13
|
return typeof e == "function";
|
|
43
14
|
}
|
|
44
|
-
function
|
|
15
|
+
function wr(e, t) {
|
|
45
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
17
|
}
|
|
47
18
|
let tt;
|
|
48
|
-
function
|
|
19
|
+
function zt(e, t) {
|
|
49
20
|
return e === t ? !0 : (tt || (tt = document.createElement("a")), tt.href = t, e === tt.href);
|
|
50
21
|
}
|
|
51
|
-
function
|
|
22
|
+
function on(e) {
|
|
52
23
|
return Object.keys(e).length === 0;
|
|
53
24
|
}
|
|
54
|
-
function
|
|
25
|
+
function xr(e, ...t) {
|
|
55
26
|
if (e == null) {
|
|
56
27
|
for (const n of t)
|
|
57
28
|
n(void 0);
|
|
@@ -60,24 +31,24 @@ function Or(e, ...t) {
|
|
|
60
31
|
const r = e.subscribe(...t);
|
|
61
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
62
33
|
}
|
|
63
|
-
function
|
|
64
|
-
e.$$.on_destroy.push(
|
|
34
|
+
function sn(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(xr(t, r));
|
|
65
36
|
}
|
|
66
|
-
const
|
|
37
|
+
const an = typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : (
|
|
67
38
|
// @ts-ignore Node typings have this
|
|
68
39
|
global
|
|
69
40
|
);
|
|
70
|
-
function
|
|
41
|
+
function m(e, t) {
|
|
71
42
|
e.appendChild(t);
|
|
72
43
|
}
|
|
73
|
-
function
|
|
74
|
-
const n =
|
|
44
|
+
function ln(e, t, r) {
|
|
45
|
+
const n = un(e);
|
|
75
46
|
if (!n.getElementById(t)) {
|
|
76
47
|
const i = S("style");
|
|
77
|
-
i.id = t, i.textContent = r,
|
|
48
|
+
i.id = t, i.textContent = r, cn(n, i);
|
|
78
49
|
}
|
|
79
50
|
}
|
|
80
|
-
function
|
|
51
|
+
function un(e) {
|
|
81
52
|
if (!e) return document;
|
|
82
53
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
83
54
|
return t && /** @type {ShadowRoot} */
|
|
@@ -86,8 +57,8 @@ function Pn(e) {
|
|
|
86
57
|
t
|
|
87
58
|
) : e.ownerDocument;
|
|
88
59
|
}
|
|
89
|
-
function
|
|
90
|
-
return
|
|
60
|
+
function cn(e, t) {
|
|
61
|
+
return m(
|
|
91
62
|
/** @type {Document} */
|
|
92
63
|
e.head || e,
|
|
93
64
|
t
|
|
@@ -111,30 +82,30 @@ function N(e) {
|
|
|
111
82
|
function z() {
|
|
112
83
|
return N(" ");
|
|
113
84
|
}
|
|
114
|
-
function
|
|
85
|
+
function hn() {
|
|
115
86
|
return N("");
|
|
116
87
|
}
|
|
117
|
-
function
|
|
88
|
+
function se(e, t, r, n) {
|
|
118
89
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
119
90
|
}
|
|
120
91
|
function h(e, t, r) {
|
|
121
92
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
122
93
|
}
|
|
123
|
-
function
|
|
94
|
+
function Y(e, t, r) {
|
|
124
95
|
const n = t.toLowerCase();
|
|
125
96
|
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);
|
|
126
97
|
}
|
|
127
|
-
function
|
|
98
|
+
function fn(e) {
|
|
128
99
|
return Array.from(e.childNodes);
|
|
129
100
|
}
|
|
130
|
-
function
|
|
101
|
+
function te(e, t) {
|
|
131
102
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
132
103
|
t);
|
|
133
104
|
}
|
|
134
105
|
function rt(e, t) {
|
|
135
|
-
e.value = t
|
|
106
|
+
e.value = t ?? "";
|
|
136
107
|
}
|
|
137
|
-
function
|
|
108
|
+
function dn(e) {
|
|
138
109
|
const t = {};
|
|
139
110
|
return e.childNodes.forEach(
|
|
140
111
|
/** @param {Element} node */
|
|
@@ -143,85 +114,85 @@ function An(e) {
|
|
|
143
114
|
}
|
|
144
115
|
), t;
|
|
145
116
|
}
|
|
146
|
-
let
|
|
147
|
-
function
|
|
148
|
-
|
|
117
|
+
let Xe;
|
|
118
|
+
function ze(e) {
|
|
119
|
+
Xe = e;
|
|
149
120
|
}
|
|
150
|
-
function
|
|
151
|
-
if (!
|
|
152
|
-
return
|
|
121
|
+
function mn() {
|
|
122
|
+
if (!Xe) throw new Error("Function called outside component initialization");
|
|
123
|
+
return Xe;
|
|
153
124
|
}
|
|
154
|
-
function
|
|
155
|
-
|
|
125
|
+
function pn(e) {
|
|
126
|
+
mn().$$.on_mount.push(e);
|
|
156
127
|
}
|
|
157
|
-
const
|
|
158
|
-
let
|
|
159
|
-
const
|
|
160
|
-
let
|
|
161
|
-
function
|
|
162
|
-
|
|
128
|
+
const Pe = [], ut = [];
|
|
129
|
+
let Te = [];
|
|
130
|
+
const Xt = [], gn = /* @__PURE__ */ Promise.resolve();
|
|
131
|
+
let St = !1;
|
|
132
|
+
function bn() {
|
|
133
|
+
St || (St = !0, gn.then(ee));
|
|
163
134
|
}
|
|
164
|
-
function
|
|
165
|
-
|
|
135
|
+
function Pt(e) {
|
|
136
|
+
Te.push(e);
|
|
166
137
|
}
|
|
167
|
-
const
|
|
168
|
-
let
|
|
169
|
-
function
|
|
170
|
-
if (
|
|
138
|
+
const bt = /* @__PURE__ */ new Set();
|
|
139
|
+
let xe = 0;
|
|
140
|
+
function ee() {
|
|
141
|
+
if (xe !== 0)
|
|
171
142
|
return;
|
|
172
|
-
const e =
|
|
143
|
+
const e = Xe;
|
|
173
144
|
do {
|
|
174
145
|
try {
|
|
175
|
-
for (;
|
|
176
|
-
const t =
|
|
177
|
-
|
|
146
|
+
for (; xe < Pe.length; ) {
|
|
147
|
+
const t = Pe[xe];
|
|
148
|
+
xe++, ze(t), yn(t.$$);
|
|
178
149
|
}
|
|
179
150
|
} catch (t) {
|
|
180
|
-
throw
|
|
151
|
+
throw Pe.length = 0, xe = 0, t;
|
|
181
152
|
}
|
|
182
|
-
for (
|
|
183
|
-
for (let t = 0; t <
|
|
184
|
-
const r =
|
|
185
|
-
|
|
153
|
+
for (ze(null), Pe.length = 0, xe = 0; ut.length; ) ut.pop()();
|
|
154
|
+
for (let t = 0; t < Te.length; t += 1) {
|
|
155
|
+
const r = Te[t];
|
|
156
|
+
bt.has(r) || (bt.add(r), r());
|
|
186
157
|
}
|
|
187
|
-
|
|
188
|
-
} while (
|
|
189
|
-
for (;
|
|
190
|
-
|
|
191
|
-
|
|
158
|
+
Te.length = 0;
|
|
159
|
+
} while (Pe.length);
|
|
160
|
+
for (; Xt.length; )
|
|
161
|
+
Xt.pop()();
|
|
162
|
+
St = !1, bt.clear(), ze(e);
|
|
192
163
|
}
|
|
193
|
-
function
|
|
164
|
+
function yn(e) {
|
|
194
165
|
if (e.fragment !== null) {
|
|
195
|
-
e.update(),
|
|
166
|
+
e.update(), Oe(e.before_update);
|
|
196
167
|
const t = e.dirty;
|
|
197
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
168
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Pt);
|
|
198
169
|
}
|
|
199
170
|
}
|
|
200
|
-
function
|
|
171
|
+
function vn(e) {
|
|
201
172
|
const t = [], r = [];
|
|
202
|
-
|
|
173
|
+
Te.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Te = t;
|
|
203
174
|
}
|
|
204
|
-
const
|
|
205
|
-
function
|
|
206
|
-
e && e.i && (
|
|
175
|
+
const _n = /* @__PURE__ */ new Set();
|
|
176
|
+
function En(e, t) {
|
|
177
|
+
e && e.i && (_n.delete(e), e.i(t));
|
|
207
178
|
}
|
|
208
|
-
function
|
|
179
|
+
function wn(e, t, r) {
|
|
209
180
|
const { fragment: n, after_update: i } = e.$$;
|
|
210
|
-
n && n.m(t, r),
|
|
211
|
-
const o = e.$$.on_mount.map(
|
|
212
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
213
|
-
}), i.forEach(
|
|
181
|
+
n && n.m(t, r), Pt(() => {
|
|
182
|
+
const o = e.$$.on_mount.map(Er).filter(Dt);
|
|
183
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Oe(o), e.$$.on_mount = [];
|
|
184
|
+
}), i.forEach(Pt);
|
|
214
185
|
}
|
|
215
|
-
function
|
|
186
|
+
function xn(e, t) {
|
|
216
187
|
const r = e.$$;
|
|
217
|
-
r.fragment !== null && (
|
|
188
|
+
r.fragment !== null && (vn(r.after_update), Oe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
218
189
|
}
|
|
219
|
-
function
|
|
220
|
-
e.$$.dirty[0] === -1 && (
|
|
190
|
+
function Sn(e, t) {
|
|
191
|
+
e.$$.dirty[0] === -1 && (Pe.push(e), bn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
221
192
|
}
|
|
222
|
-
function
|
|
223
|
-
const
|
|
224
|
-
|
|
193
|
+
function Pn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
194
|
+
const c = Xe;
|
|
195
|
+
ze(e);
|
|
225
196
|
const l = e.$$ = {
|
|
226
197
|
fragment: null,
|
|
227
198
|
ctx: [],
|
|
@@ -229,159 +200,155 @@ function $n(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
229
200
|
props: o,
|
|
230
201
|
update: Z,
|
|
231
202
|
not_equal: i,
|
|
232
|
-
bound:
|
|
203
|
+
bound: Vt(),
|
|
233
204
|
// lifecycle
|
|
234
205
|
on_mount: [],
|
|
235
206
|
on_destroy: [],
|
|
236
207
|
on_disconnect: [],
|
|
237
208
|
before_update: [],
|
|
238
209
|
after_update: [],
|
|
239
|
-
context: new Map(t.context || (
|
|
210
|
+
context: new Map(t.context || (c ? c.$$.context : [])),
|
|
240
211
|
// everything else
|
|
241
|
-
callbacks:
|
|
212
|
+
callbacks: Vt(),
|
|
242
213
|
dirty: a,
|
|
243
214
|
skip_bound: !1,
|
|
244
|
-
root: t.target ||
|
|
215
|
+
root: t.target || c.$$.root
|
|
245
216
|
};
|
|
246
217
|
s && s(l.root);
|
|
247
|
-
let
|
|
218
|
+
let u = !1;
|
|
248
219
|
if (l.ctx = r ? r(e, t.props || {}, (f, d, ...b) => {
|
|
249
|
-
const
|
|
250
|
-
return l.ctx && i(l.ctx[f], l.ctx[f] =
|
|
251
|
-
}) : [], l.update(),
|
|
220
|
+
const v = b.length ? b[0] : d;
|
|
221
|
+
return l.ctx && i(l.ctx[f], l.ctx[f] = v) && (!l.skip_bound && l.bound[f] && l.bound[f](v), u && Sn(e, f)), d;
|
|
222
|
+
}) : [], l.update(), u = !0, Oe(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
252
223
|
if (t.hydrate) {
|
|
253
|
-
const f =
|
|
224
|
+
const f = fn(t.target);
|
|
254
225
|
l.fragment && l.fragment.l(f), f.forEach(I);
|
|
255
226
|
} else
|
|
256
227
|
l.fragment && l.fragment.c();
|
|
257
|
-
t.intro &&
|
|
228
|
+
t.intro && En(e.$$.fragment), wn(e, t.target, t.anchor), ee();
|
|
258
229
|
}
|
|
259
|
-
|
|
260
|
-
}
|
|
261
|
-
let
|
|
262
|
-
typeof HTMLElement == "function" && (
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
230
|
+
ze(c);
|
|
231
|
+
}
|
|
232
|
+
let Sr;
|
|
233
|
+
typeof HTMLElement == "function" && (Sr = class extends HTMLElement {
|
|
234
|
+
/** The Svelte component constructor */
|
|
235
|
+
$$ctor;
|
|
236
|
+
/** Slots */
|
|
237
|
+
$$s;
|
|
238
|
+
/** The Svelte component instance */
|
|
239
|
+
$$c;
|
|
240
|
+
/** Whether or not the custom element is connected */
|
|
241
|
+
$$cn = !1;
|
|
242
|
+
/** Component props data */
|
|
243
|
+
$$d = {};
|
|
244
|
+
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
245
|
+
$$r = !1;
|
|
246
|
+
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
247
|
+
$$p_d = {};
|
|
248
|
+
/** @type {Record<string, Function[]>} Event listeners */
|
|
249
|
+
$$l = {};
|
|
250
|
+
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
251
|
+
$$l_u = /* @__PURE__ */ new Map();
|
|
252
|
+
constructor(e, t, r) {
|
|
253
|
+
super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
|
|
284
254
|
}
|
|
285
|
-
addEventListener(t, r
|
|
286
|
-
if (this.$$l[
|
|
287
|
-
const
|
|
288
|
-
this.$$l_u.set(
|
|
255
|
+
addEventListener(e, t, r) {
|
|
256
|
+
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
257
|
+
const n = this.$$c.$on(e, t);
|
|
258
|
+
this.$$l_u.set(t, n);
|
|
289
259
|
}
|
|
290
|
-
super.addEventListener(t, r
|
|
260
|
+
super.addEventListener(e, t, r);
|
|
291
261
|
}
|
|
292
|
-
removeEventListener(t, r
|
|
293
|
-
if (super.removeEventListener(t, r
|
|
294
|
-
const
|
|
295
|
-
|
|
262
|
+
removeEventListener(e, t, r) {
|
|
263
|
+
if (super.removeEventListener(e, t, r), this.$$c) {
|
|
264
|
+
const n = this.$$l_u.get(t);
|
|
265
|
+
n && (n(), this.$$l_u.delete(t));
|
|
296
266
|
}
|
|
297
267
|
}
|
|
298
|
-
connectedCallback() {
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
}
|
|
318
|
-
};
|
|
268
|
+
async connectedCallback() {
|
|
269
|
+
if (this.$$cn = !0, !this.$$c) {
|
|
270
|
+
let e = function(i) {
|
|
271
|
+
return () => {
|
|
272
|
+
let o;
|
|
273
|
+
return {
|
|
274
|
+
c: function() {
|
|
275
|
+
o = S("slot"), i !== "default" && h(o, "name", i);
|
|
276
|
+
},
|
|
277
|
+
/**
|
|
278
|
+
* @param {HTMLElement} target
|
|
279
|
+
* @param {HTMLElement} [anchor]
|
|
280
|
+
*/
|
|
281
|
+
m: function(c, l) {
|
|
282
|
+
L(c, o, l);
|
|
283
|
+
},
|
|
284
|
+
d: function(c) {
|
|
285
|
+
c && I(o);
|
|
286
|
+
}
|
|
319
287
|
};
|
|
320
288
|
};
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
289
|
+
};
|
|
290
|
+
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
291
|
+
return;
|
|
292
|
+
const t = {}, r = dn(this);
|
|
293
|
+
for (const i of this.$$s)
|
|
294
|
+
i in r && (t[i] = [e(i)]);
|
|
295
|
+
for (const i of this.attributes) {
|
|
296
|
+
const o = this.$$g_p(i.name);
|
|
297
|
+
o in this.$$d || (this.$$d[o] = ot(o, i.value, this.$$p_d, "toProp"));
|
|
298
|
+
}
|
|
299
|
+
for (const i in this.$$p_d)
|
|
300
|
+
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
301
|
+
this.$$c = new this.$$ctor({
|
|
302
|
+
target: this.shadowRoot || this,
|
|
303
|
+
props: {
|
|
304
|
+
...this.$$d,
|
|
305
|
+
$$slots: t,
|
|
306
|
+
$$scope: {
|
|
307
|
+
ctx: []
|
|
308
|
+
}
|
|
329
309
|
}
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
this.$$
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
this.$$r = !0;
|
|
343
|
-
for (const o in this.$$p_d)
|
|
344
|
-
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
345
|
-
const s = ot(
|
|
346
|
-
o,
|
|
347
|
-
this.$$d[o],
|
|
348
|
-
this.$$p_d,
|
|
349
|
-
"toAttribute"
|
|
350
|
-
);
|
|
351
|
-
s == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, s);
|
|
352
|
-
}
|
|
353
|
-
this.$$r = !1;
|
|
354
|
-
};
|
|
355
|
-
this.$$c.$$.after_update.push(i), i();
|
|
356
|
-
for (const o in this.$$l)
|
|
357
|
-
for (const s of this.$$l[o]) {
|
|
358
|
-
const a = this.$$c.$on(o, s);
|
|
359
|
-
this.$$l_u.set(s, a);
|
|
310
|
+
});
|
|
311
|
+
const n = () => {
|
|
312
|
+
this.$$r = !0;
|
|
313
|
+
for (const i in this.$$p_d)
|
|
314
|
+
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
315
|
+
const o = ot(
|
|
316
|
+
i,
|
|
317
|
+
this.$$d[i],
|
|
318
|
+
this.$$p_d,
|
|
319
|
+
"toAttribute"
|
|
320
|
+
);
|
|
321
|
+
o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
|
|
360
322
|
}
|
|
361
|
-
this.$$
|
|
362
|
-
}
|
|
363
|
-
|
|
323
|
+
this.$$r = !1;
|
|
324
|
+
};
|
|
325
|
+
this.$$c.$$.after_update.push(n), n();
|
|
326
|
+
for (const i in this.$$l)
|
|
327
|
+
for (const o of this.$$l[i]) {
|
|
328
|
+
const s = this.$$c.$on(i, o);
|
|
329
|
+
this.$$l_u.set(o, s);
|
|
330
|
+
}
|
|
331
|
+
this.$$l = {};
|
|
332
|
+
}
|
|
364
333
|
}
|
|
365
334
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
366
335
|
// and setting attributes through setAttribute etc, this is helpful
|
|
367
|
-
attributeChangedCallback(t, r
|
|
368
|
-
|
|
369
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ot(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
336
|
+
attributeChangedCallback(e, t, r) {
|
|
337
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ot(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
370
338
|
}
|
|
371
339
|
disconnectedCallback() {
|
|
372
340
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
373
341
|
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
374
342
|
});
|
|
375
343
|
}
|
|
376
|
-
$$g_p(
|
|
344
|
+
$$g_p(e) {
|
|
377
345
|
return Object.keys(this.$$p_d).find(
|
|
378
|
-
(
|
|
379
|
-
) ||
|
|
346
|
+
(t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
|
|
347
|
+
) || e;
|
|
380
348
|
}
|
|
381
349
|
});
|
|
382
350
|
function ot(e, t, r, n) {
|
|
383
|
-
|
|
384
|
-
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
351
|
+
const i = r[e]?.type;
|
|
385
352
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
386
353
|
return t;
|
|
387
354
|
if (n === "toAttribute")
|
|
@@ -392,7 +359,7 @@ function ot(e, t, r, n) {
|
|
|
392
359
|
case "Boolean":
|
|
393
360
|
return t ? "" : null;
|
|
394
361
|
case "Number":
|
|
395
|
-
return t
|
|
362
|
+
return t ?? null;
|
|
396
363
|
default:
|
|
397
364
|
return t;
|
|
398
365
|
}
|
|
@@ -409,8 +376,8 @@ function ot(e, t, r, n) {
|
|
|
409
376
|
return t;
|
|
410
377
|
}
|
|
411
378
|
}
|
|
412
|
-
function
|
|
413
|
-
let s = class extends
|
|
379
|
+
function Tn(e, t, r, n, i, o) {
|
|
380
|
+
let s = class extends Sr {
|
|
414
381
|
constructor() {
|
|
415
382
|
super(e, r, i), this.$$p_d = t;
|
|
416
383
|
}
|
|
@@ -425,43 +392,39 @@ function Gn(e, t, r, n, i, o) {
|
|
|
425
392
|
get() {
|
|
426
393
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
427
394
|
},
|
|
428
|
-
set(
|
|
429
|
-
|
|
430
|
-
u = ot(a, u, t), this.$$d[a] = u, (l = this.$$c) == null || l.$set({ [a]: u });
|
|
395
|
+
set(c) {
|
|
396
|
+
c = ot(a, c, t), this.$$d[a] = c, this.$$c?.$set({ [a]: c });
|
|
431
397
|
}
|
|
432
398
|
});
|
|
433
399
|
}), n.forEach((a) => {
|
|
434
400
|
Object.defineProperty(s.prototype, a, {
|
|
435
401
|
get() {
|
|
436
|
-
|
|
437
|
-
return (u = this.$$c) == null ? void 0 : u[a];
|
|
402
|
+
return this.$$c?.[a];
|
|
438
403
|
}
|
|
439
404
|
});
|
|
440
405
|
}), e.element = /** @type {any} */
|
|
441
406
|
s, s;
|
|
442
407
|
}
|
|
443
|
-
class
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
Y(this, "$$set");
|
|
461
|
-
}
|
|
408
|
+
class Hn {
|
|
409
|
+
/**
|
|
410
|
+
* ### PRIVATE API
|
|
411
|
+
*
|
|
412
|
+
* Do not use, may change at any time
|
|
413
|
+
*
|
|
414
|
+
* @type {any}
|
|
415
|
+
*/
|
|
416
|
+
$$ = void 0;
|
|
417
|
+
/**
|
|
418
|
+
* ### PRIVATE API
|
|
419
|
+
*
|
|
420
|
+
* Do not use, may change at any time
|
|
421
|
+
*
|
|
422
|
+
* @type {any}
|
|
423
|
+
*/
|
|
424
|
+
$$set = void 0;
|
|
462
425
|
/** @returns {void} */
|
|
463
426
|
$destroy() {
|
|
464
|
-
|
|
427
|
+
xn(this, 1), this.$destroy = Z;
|
|
465
428
|
}
|
|
466
429
|
/**
|
|
467
430
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -470,7 +433,7 @@ class jn {
|
|
|
470
433
|
* @returns {() => void}
|
|
471
434
|
*/
|
|
472
435
|
$on(t, r) {
|
|
473
|
-
if (!
|
|
436
|
+
if (!Dt(r))
|
|
474
437
|
return Z;
|
|
475
438
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
476
439
|
return n.push(r), () => {
|
|
@@ -483,22 +446,22 @@ class jn {
|
|
|
483
446
|
* @returns {void}
|
|
484
447
|
*/
|
|
485
448
|
$set(t) {
|
|
486
|
-
this.$$set && !
|
|
449
|
+
this.$$set && !on(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
487
450
|
}
|
|
488
451
|
}
|
|
489
|
-
const
|
|
490
|
-
typeof window
|
|
491
|
-
var
|
|
492
|
-
return
|
|
452
|
+
const Bn = "4";
|
|
453
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Bn);
|
|
454
|
+
var Tt = function(e, t) {
|
|
455
|
+
return Tt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
493
456
|
r.__proto__ = n;
|
|
494
457
|
} || function(r, n) {
|
|
495
458
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
496
|
-
},
|
|
459
|
+
}, Tt(e, t);
|
|
497
460
|
};
|
|
498
|
-
function
|
|
461
|
+
function le(e, t) {
|
|
499
462
|
if (typeof t != "function" && t !== null)
|
|
500
463
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
501
|
-
|
|
464
|
+
Tt(e, t);
|
|
502
465
|
function r() {
|
|
503
466
|
this.constructor = e;
|
|
504
467
|
}
|
|
@@ -513,7 +476,7 @@ var w = function() {
|
|
|
513
476
|
return t;
|
|
514
477
|
}, w.apply(this, arguments);
|
|
515
478
|
};
|
|
516
|
-
function
|
|
479
|
+
function An(e, t) {
|
|
517
480
|
var r = {};
|
|
518
481
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
519
482
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -521,7 +484,7 @@ function zn(e, t) {
|
|
|
521
484
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
522
485
|
return r;
|
|
523
486
|
}
|
|
524
|
-
function
|
|
487
|
+
function Ht(e) {
|
|
525
488
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
526
489
|
if (r) return r.call(e);
|
|
527
490
|
if (e && typeof e.length == "number") return {
|
|
@@ -531,7 +494,7 @@ function It(e) {
|
|
|
531
494
|
};
|
|
532
495
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
533
496
|
}
|
|
534
|
-
function
|
|
497
|
+
function Bt(e, t) {
|
|
535
498
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
536
499
|
if (!r) return e;
|
|
537
500
|
var n = r.call(e), i, o = [], s;
|
|
@@ -548,21 +511,21 @@ function Ct(e, t) {
|
|
|
548
511
|
}
|
|
549
512
|
return o;
|
|
550
513
|
}
|
|
551
|
-
function
|
|
514
|
+
function He(e, t, r) {
|
|
552
515
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
|
|
553
516
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
554
517
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
555
518
|
}
|
|
556
|
-
function
|
|
519
|
+
function ae(e) {
|
|
557
520
|
return typeof e == "function";
|
|
558
521
|
}
|
|
559
|
-
function
|
|
522
|
+
function Pr(e) {
|
|
560
523
|
var t = function(n) {
|
|
561
524
|
Error.call(n), n.stack = new Error().stack;
|
|
562
525
|
}, r = e(t);
|
|
563
526
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
564
527
|
}
|
|
565
|
-
var
|
|
528
|
+
var yt = Pr(function(e) {
|
|
566
529
|
return function(r) {
|
|
567
530
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
568
531
|
` + r.map(function(n, i) {
|
|
@@ -571,7 +534,7 @@ var _t = Mr(function(e) {
|
|
|
571
534
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
572
535
|
};
|
|
573
536
|
});
|
|
574
|
-
function
|
|
537
|
+
function At(e, t) {
|
|
575
538
|
if (e) {
|
|
576
539
|
var r = e.indexOf(t);
|
|
577
540
|
0 <= r && e.splice(r, 1);
|
|
@@ -589,38 +552,38 @@ var ft = function() {
|
|
|
589
552
|
if (s)
|
|
590
553
|
if (this._parentage = null, Array.isArray(s))
|
|
591
554
|
try {
|
|
592
|
-
for (var a =
|
|
593
|
-
var l =
|
|
555
|
+
for (var a = Ht(s), c = a.next(); !c.done; c = a.next()) {
|
|
556
|
+
var l = c.value;
|
|
594
557
|
l.remove(this);
|
|
595
558
|
}
|
|
596
559
|
} catch (g) {
|
|
597
560
|
t = { error: g };
|
|
598
561
|
} finally {
|
|
599
562
|
try {
|
|
600
|
-
|
|
563
|
+
c && !c.done && (r = a.return) && r.call(a);
|
|
601
564
|
} finally {
|
|
602
565
|
if (t) throw t.error;
|
|
603
566
|
}
|
|
604
567
|
}
|
|
605
568
|
else
|
|
606
569
|
s.remove(this);
|
|
607
|
-
var
|
|
608
|
-
if (
|
|
570
|
+
var u = this.initialTeardown;
|
|
571
|
+
if (ae(u))
|
|
609
572
|
try {
|
|
610
|
-
|
|
573
|
+
u();
|
|
611
574
|
} catch (g) {
|
|
612
|
-
o = g instanceof
|
|
575
|
+
o = g instanceof yt ? g.errors : [g];
|
|
613
576
|
}
|
|
614
577
|
var f = this._finalizers;
|
|
615
578
|
if (f) {
|
|
616
579
|
this._finalizers = null;
|
|
617
580
|
try {
|
|
618
|
-
for (var d =
|
|
619
|
-
var
|
|
581
|
+
for (var d = Ht(f), b = d.next(); !b.done; b = d.next()) {
|
|
582
|
+
var v = b.value;
|
|
620
583
|
try {
|
|
621
|
-
|
|
584
|
+
Wt(v);
|
|
622
585
|
} catch (g) {
|
|
623
|
-
o = o
|
|
586
|
+
o = o ?? [], g instanceof yt ? o = He(He([], Bt(o)), Bt(g.errors)) : o.push(g);
|
|
624
587
|
}
|
|
625
588
|
}
|
|
626
589
|
} catch (g) {
|
|
@@ -634,13 +597,13 @@ var ft = function() {
|
|
|
634
597
|
}
|
|
635
598
|
}
|
|
636
599
|
if (o)
|
|
637
|
-
throw new
|
|
600
|
+
throw new yt(o);
|
|
638
601
|
}
|
|
639
602
|
}, e.prototype.add = function(t) {
|
|
640
603
|
var r;
|
|
641
604
|
if (t && t !== this)
|
|
642
605
|
if (this.closed)
|
|
643
|
-
|
|
606
|
+
Wt(t);
|
|
644
607
|
else {
|
|
645
608
|
if (t instanceof e) {
|
|
646
609
|
if (t.closed || t._hasParent(this))
|
|
@@ -657,56 +620,56 @@ var ft = function() {
|
|
|
657
620
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
658
621
|
}, e.prototype._removeParent = function(t) {
|
|
659
622
|
var r = this._parentage;
|
|
660
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
623
|
+
r === t ? this._parentage = null : Array.isArray(r) && At(r, t);
|
|
661
624
|
}, e.prototype.remove = function(t) {
|
|
662
625
|
var r = this._finalizers;
|
|
663
|
-
r &&
|
|
626
|
+
r && At(r, t), t instanceof e && t._removeParent(this);
|
|
664
627
|
}, e.EMPTY = function() {
|
|
665
628
|
var t = new e();
|
|
666
629
|
return t.closed = !0, t;
|
|
667
630
|
}(), e;
|
|
668
|
-
}(),
|
|
669
|
-
function
|
|
670
|
-
return e instanceof ft || e && "closed" in e &&
|
|
631
|
+
}(), Tr = ft.EMPTY;
|
|
632
|
+
function Hr(e) {
|
|
633
|
+
return e instanceof ft || e && "closed" in e && ae(e.remove) && ae(e.add) && ae(e.unsubscribe);
|
|
671
634
|
}
|
|
672
|
-
function
|
|
673
|
-
|
|
635
|
+
function Wt(e) {
|
|
636
|
+
ae(e) ? e() : e.unsubscribe();
|
|
674
637
|
}
|
|
675
|
-
var
|
|
638
|
+
var In = {
|
|
676
639
|
onUnhandledError: null,
|
|
677
640
|
onStoppedNotification: null,
|
|
678
641
|
Promise: void 0,
|
|
679
642
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
680
643
|
useDeprecatedNextContext: !1
|
|
681
|
-
},
|
|
644
|
+
}, Cn = {
|
|
682
645
|
setTimeout: function(e, t) {
|
|
683
646
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
684
647
|
r[n - 2] = arguments[n];
|
|
685
|
-
return setTimeout.apply(void 0,
|
|
648
|
+
return setTimeout.apply(void 0, He([e, t], Bt(r)));
|
|
686
649
|
},
|
|
687
650
|
clearTimeout: function(e) {
|
|
688
651
|
return clearTimeout(e);
|
|
689
652
|
},
|
|
690
653
|
delegate: void 0
|
|
691
654
|
};
|
|
692
|
-
function
|
|
693
|
-
|
|
655
|
+
function On(e) {
|
|
656
|
+
Cn.setTimeout(function() {
|
|
694
657
|
throw e;
|
|
695
658
|
});
|
|
696
659
|
}
|
|
697
|
-
function
|
|
660
|
+
function Zt() {
|
|
698
661
|
}
|
|
699
662
|
function st(e) {
|
|
700
663
|
e();
|
|
701
664
|
}
|
|
702
|
-
var
|
|
703
|
-
|
|
665
|
+
var Br = function(e) {
|
|
666
|
+
le(t, e);
|
|
704
667
|
function t(r) {
|
|
705
668
|
var n = e.call(this) || this;
|
|
706
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
669
|
+
return n.isStopped = !1, r ? (n.destination = r, Hr(r) && r.add(n)) : n.destination = Nn, n;
|
|
707
670
|
}
|
|
708
671
|
return t.create = function(r, n, i) {
|
|
709
|
-
return new
|
|
672
|
+
return new It(r, n, i);
|
|
710
673
|
}, t.prototype.next = function(r) {
|
|
711
674
|
this.isStopped || this._next(r);
|
|
712
675
|
}, t.prototype.error = function(r) {
|
|
@@ -730,11 +693,7 @@ var Fr = function(e) {
|
|
|
730
693
|
this.unsubscribe();
|
|
731
694
|
}
|
|
732
695
|
}, t;
|
|
733
|
-
}(ft),
|
|
734
|
-
function Et(e, t) {
|
|
735
|
-
return Zn.call(e, t);
|
|
736
|
-
}
|
|
737
|
-
var qn = function() {
|
|
696
|
+
}(ft), Ln = function() {
|
|
738
697
|
function e(t) {
|
|
739
698
|
this.partialObserver = t;
|
|
740
699
|
}
|
|
@@ -765,55 +724,43 @@ var qn = function() {
|
|
|
765
724
|
nt(r);
|
|
766
725
|
}
|
|
767
726
|
}, e;
|
|
768
|
-
}(),
|
|
769
|
-
|
|
727
|
+
}(), It = function(e) {
|
|
728
|
+
le(t, e);
|
|
770
729
|
function t(r, n, i) {
|
|
771
730
|
var o = e.call(this) || this, s;
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
};
|
|
778
|
-
else {
|
|
779
|
-
var a;
|
|
780
|
-
o && Ur.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
781
|
-
return o.unsubscribe();
|
|
782
|
-
}, s = {
|
|
783
|
-
next: r.next && Et(r.next, a),
|
|
784
|
-
error: r.error && Et(r.error, a),
|
|
785
|
-
complete: r.complete && Et(r.complete, a)
|
|
786
|
-
}) : s = r;
|
|
787
|
-
}
|
|
788
|
-
return o.destination = new qn(s), o;
|
|
731
|
+
return ae(r) || !r ? s = {
|
|
732
|
+
next: r ?? void 0,
|
|
733
|
+
error: n ?? void 0,
|
|
734
|
+
complete: i ?? void 0
|
|
735
|
+
} : s = r, o.destination = new Ln(s), o;
|
|
789
736
|
}
|
|
790
737
|
return t;
|
|
791
|
-
}(
|
|
738
|
+
}(Br);
|
|
792
739
|
function nt(e) {
|
|
793
|
-
|
|
740
|
+
On(e);
|
|
794
741
|
}
|
|
795
|
-
function
|
|
742
|
+
function Mn(e) {
|
|
796
743
|
throw e;
|
|
797
744
|
}
|
|
798
|
-
var
|
|
745
|
+
var Nn = {
|
|
799
746
|
closed: !0,
|
|
800
|
-
next:
|
|
801
|
-
error:
|
|
802
|
-
complete:
|
|
803
|
-
},
|
|
747
|
+
next: Zt,
|
|
748
|
+
error: Mn,
|
|
749
|
+
complete: Zt
|
|
750
|
+
}, Rn = function() {
|
|
804
751
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
805
752
|
}();
|
|
806
|
-
function
|
|
753
|
+
function Un(e) {
|
|
807
754
|
return e;
|
|
808
755
|
}
|
|
809
|
-
function
|
|
810
|
-
return e.length === 0 ?
|
|
756
|
+
function Fn(e) {
|
|
757
|
+
return e.length === 0 ? Un : e.length === 1 ? e[0] : function(r) {
|
|
811
758
|
return e.reduce(function(n, i) {
|
|
812
759
|
return i(n);
|
|
813
760
|
}, r);
|
|
814
761
|
};
|
|
815
762
|
}
|
|
816
|
-
var
|
|
763
|
+
var qt = function() {
|
|
817
764
|
function e(t) {
|
|
818
765
|
t && (this._subscribe = t);
|
|
819
766
|
}
|
|
@@ -821,10 +768,10 @@ var ir = function() {
|
|
|
821
768
|
var r = new e();
|
|
822
769
|
return r.source = this, r.operator = t, r;
|
|
823
770
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
824
|
-
var i = this, o =
|
|
771
|
+
var i = this, o = kn(t) ? t : new It(t, r, n);
|
|
825
772
|
return st(function() {
|
|
826
|
-
var s = i, a = s.operator,
|
|
827
|
-
o.add(a ? a.call(o,
|
|
773
|
+
var s = i, a = s.operator, c = s.source;
|
|
774
|
+
o.add(a ? a.call(o, c) : c ? i._subscribe(o) : i._trySubscribe(o));
|
|
828
775
|
}), o;
|
|
829
776
|
}, e.prototype._trySubscribe = function(t) {
|
|
830
777
|
try {
|
|
@@ -834,13 +781,13 @@ var ir = function() {
|
|
|
834
781
|
}
|
|
835
782
|
}, e.prototype.forEach = function(t, r) {
|
|
836
783
|
var n = this;
|
|
837
|
-
return r =
|
|
838
|
-
var s = new
|
|
784
|
+
return r = Jt(r), new r(function(i, o) {
|
|
785
|
+
var s = new It({
|
|
839
786
|
next: function(a) {
|
|
840
787
|
try {
|
|
841
788
|
t(a);
|
|
842
|
-
} catch (
|
|
843
|
-
o(
|
|
789
|
+
} catch (c) {
|
|
790
|
+
o(c), s.unsubscribe();
|
|
844
791
|
}
|
|
845
792
|
},
|
|
846
793
|
error: o,
|
|
@@ -851,15 +798,15 @@ var ir = function() {
|
|
|
851
798
|
}, e.prototype._subscribe = function(t) {
|
|
852
799
|
var r;
|
|
853
800
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
854
|
-
}, e.prototype[
|
|
801
|
+
}, e.prototype[Rn] = function() {
|
|
855
802
|
return this;
|
|
856
803
|
}, e.prototype.pipe = function() {
|
|
857
804
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
858
805
|
t[r] = arguments[r];
|
|
859
|
-
return
|
|
806
|
+
return Fn(t)(this);
|
|
860
807
|
}, e.prototype.toPromise = function(t) {
|
|
861
808
|
var r = this;
|
|
862
|
-
return t =
|
|
809
|
+
return t = Jt(t), new t(function(n, i) {
|
|
863
810
|
var o;
|
|
864
811
|
r.subscribe(function(s) {
|
|
865
812
|
return o = s;
|
|
@@ -873,32 +820,32 @@ var ir = function() {
|
|
|
873
820
|
return new e(t);
|
|
874
821
|
}, e;
|
|
875
822
|
}();
|
|
876
|
-
function
|
|
823
|
+
function Jt(e) {
|
|
877
824
|
var t;
|
|
878
|
-
return (t = e
|
|
825
|
+
return (t = e ?? In.Promise) !== null && t !== void 0 ? t : Promise;
|
|
879
826
|
}
|
|
880
|
-
function
|
|
881
|
-
return e &&
|
|
827
|
+
function Dn(e) {
|
|
828
|
+
return e && ae(e.next) && ae(e.error) && ae(e.complete);
|
|
882
829
|
}
|
|
883
|
-
function
|
|
884
|
-
return e && e instanceof
|
|
830
|
+
function kn(e) {
|
|
831
|
+
return e && e instanceof Br || Dn(e) && Hr(e);
|
|
885
832
|
}
|
|
886
|
-
var
|
|
833
|
+
var $n = Pr(function(e) {
|
|
887
834
|
return function() {
|
|
888
835
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
889
836
|
};
|
|
890
|
-
}),
|
|
891
|
-
|
|
837
|
+
}), Ar = function(e) {
|
|
838
|
+
le(t, e);
|
|
892
839
|
function t() {
|
|
893
840
|
var r = e.call(this) || this;
|
|
894
841
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
895
842
|
}
|
|
896
843
|
return t.prototype.lift = function(r) {
|
|
897
|
-
var n = new
|
|
844
|
+
var n = new Qt(this, this);
|
|
898
845
|
return n.operator = r, n;
|
|
899
846
|
}, t.prototype._throwIfClosed = function() {
|
|
900
847
|
if (this.closed)
|
|
901
|
-
throw new
|
|
848
|
+
throw new $n();
|
|
902
849
|
}, t.prototype.next = function(r) {
|
|
903
850
|
var n = this;
|
|
904
851
|
st(function() {
|
|
@@ -906,9 +853,9 @@ var ni = Mr(function(e) {
|
|
|
906
853
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
907
854
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
908
855
|
try {
|
|
909
|
-
for (var s =
|
|
910
|
-
var
|
|
911
|
-
|
|
856
|
+
for (var s = Ht(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
857
|
+
var c = a.value;
|
|
858
|
+
c.next(r);
|
|
912
859
|
}
|
|
913
860
|
} catch (l) {
|
|
914
861
|
i = { error: l };
|
|
@@ -954,20 +901,20 @@ var ni = Mr(function(e) {
|
|
|
954
901
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
955
902
|
}, t.prototype._innerSubscribe = function(r) {
|
|
956
903
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
957
|
-
return o || s ?
|
|
958
|
-
n.currentObservers = null,
|
|
904
|
+
return o || s ? Tr : (this.currentObservers = null, a.push(r), new ft(function() {
|
|
905
|
+
n.currentObservers = null, At(a, r);
|
|
959
906
|
}));
|
|
960
907
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
961
908
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
962
909
|
i ? r.error(o) : s && r.complete();
|
|
963
910
|
}, t.prototype.asObservable = function() {
|
|
964
|
-
var r = new
|
|
911
|
+
var r = new qt();
|
|
965
912
|
return r.source = this, r;
|
|
966
913
|
}, t.create = function(r, n) {
|
|
967
|
-
return new
|
|
914
|
+
return new Qt(r, n);
|
|
968
915
|
}, t;
|
|
969
|
-
}(
|
|
970
|
-
|
|
916
|
+
}(qt), Qt = function(e) {
|
|
917
|
+
le(t, e);
|
|
971
918
|
function t(r, n) {
|
|
972
919
|
var i = e.call(this) || this;
|
|
973
920
|
return i.destination = r, i.source = n, i;
|
|
@@ -983,45 +930,45 @@ var ni = Mr(function(e) {
|
|
|
983
930
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
984
931
|
}, t.prototype._subscribe = function(r) {
|
|
985
932
|
var n, i;
|
|
986
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
933
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Tr;
|
|
987
934
|
}, t;
|
|
988
|
-
}(
|
|
935
|
+
}(Ar), Ir = {
|
|
989
936
|
now: function() {
|
|
990
|
-
return (
|
|
937
|
+
return (Ir.delegate || Date).now();
|
|
991
938
|
},
|
|
992
939
|
delegate: void 0
|
|
993
|
-
},
|
|
994
|
-
|
|
940
|
+
}, Gn = function(e) {
|
|
941
|
+
le(t, e);
|
|
995
942
|
function t(r, n, i) {
|
|
996
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
943
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ir);
|
|
997
944
|
var o = e.call(this) || this;
|
|
998
945
|
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;
|
|
999
946
|
}
|
|
1000
947
|
return t.prototype.next = function(r) {
|
|
1001
|
-
var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider,
|
|
1002
|
-
i || (o.push(r), !s && o.push(a.now() +
|
|
948
|
+
var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, c = n._windowTime;
|
|
949
|
+
i || (o.push(r), !s && o.push(a.now() + c)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
1003
950
|
}, t.prototype._subscribe = function(r) {
|
|
1004
951
|
this._throwIfClosed(), this._trimBuffer();
|
|
1005
|
-
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(),
|
|
1006
|
-
r.next(a[
|
|
952
|
+
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), c = 0; c < a.length && !r.closed; c += o ? 1 : 2)
|
|
953
|
+
r.next(a[c]);
|
|
1007
954
|
return this._checkFinalizedStatuses(r), n;
|
|
1008
955
|
}, t.prototype._trimBuffer = function() {
|
|
1009
956
|
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
|
|
1010
957
|
if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
|
|
1011
|
-
for (var
|
|
1012
|
-
l =
|
|
958
|
+
for (var c = i.now(), l = 0, u = 1; u < o.length && o[u] <= c; u += 2)
|
|
959
|
+
l = u;
|
|
1013
960
|
l && o.splice(0, l + 1);
|
|
1014
961
|
}
|
|
1015
962
|
}, t;
|
|
1016
|
-
}(
|
|
1017
|
-
const
|
|
1018
|
-
if (
|
|
1019
|
-
const r = new
|
|
1020
|
-
|
|
963
|
+
}(Ar);
|
|
964
|
+
const Yt = [], Kt = {}, jn = (e, t = 0) => {
|
|
965
|
+
if (Yt.indexOf(e) == -1) {
|
|
966
|
+
const r = new Gn(t);
|
|
967
|
+
Kt[e] = r, Yt.push(e);
|
|
1021
968
|
}
|
|
1022
|
-
return
|
|
1023
|
-
},
|
|
1024
|
-
function
|
|
969
|
+
return Kt[e];
|
|
970
|
+
}, Se = [];
|
|
971
|
+
function Vn(e, t) {
|
|
1025
972
|
return {
|
|
1026
973
|
subscribe: dt(e, t).subscribe
|
|
1027
974
|
};
|
|
@@ -1030,183 +977,185 @@ function dt(e, t = Z) {
|
|
|
1030
977
|
let r;
|
|
1031
978
|
const n = /* @__PURE__ */ new Set();
|
|
1032
979
|
function i(a) {
|
|
1033
|
-
if (
|
|
1034
|
-
const
|
|
980
|
+
if (wr(e, a) && (e = a, r)) {
|
|
981
|
+
const c = !Se.length;
|
|
1035
982
|
for (const l of n)
|
|
1036
|
-
l[1](),
|
|
1037
|
-
if (
|
|
1038
|
-
for (let l = 0; l <
|
|
1039
|
-
|
|
1040
|
-
|
|
983
|
+
l[1](), Se.push(l, e);
|
|
984
|
+
if (c) {
|
|
985
|
+
for (let l = 0; l < Se.length; l += 2)
|
|
986
|
+
Se[l][0](Se[l + 1]);
|
|
987
|
+
Se.length = 0;
|
|
1041
988
|
}
|
|
1042
989
|
}
|
|
1043
990
|
}
|
|
1044
991
|
function o(a) {
|
|
1045
992
|
i(a(e));
|
|
1046
993
|
}
|
|
1047
|
-
function s(a,
|
|
1048
|
-
const l = [a,
|
|
994
|
+
function s(a, c = Z) {
|
|
995
|
+
const l = [a, c];
|
|
1049
996
|
return n.add(l), n.size === 1 && (r = t(i, o) || Z), a(e), () => {
|
|
1050
997
|
n.delete(l), n.size === 0 && r && (r(), r = null);
|
|
1051
998
|
};
|
|
1052
999
|
}
|
|
1053
1000
|
return { set: i, update: o, subscribe: s };
|
|
1054
1001
|
}
|
|
1055
|
-
function
|
|
1002
|
+
function Le(e, t, r) {
|
|
1056
1003
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1057
1004
|
if (!i.every(Boolean))
|
|
1058
1005
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1059
1006
|
const o = t.length < 2;
|
|
1060
|
-
return
|
|
1061
|
-
let
|
|
1007
|
+
return Vn(r, (s, a) => {
|
|
1008
|
+
let c = !1;
|
|
1062
1009
|
const l = [];
|
|
1063
|
-
let
|
|
1010
|
+
let u = 0, f = Z;
|
|
1064
1011
|
const d = () => {
|
|
1065
|
-
if (
|
|
1012
|
+
if (u)
|
|
1066
1013
|
return;
|
|
1067
1014
|
f();
|
|
1068
|
-
const
|
|
1069
|
-
o ? s(
|
|
1015
|
+
const v = t(n ? l[0] : l, s, a);
|
|
1016
|
+
o ? s(v) : f = Dt(v) ? v : Z;
|
|
1070
1017
|
}, b = i.map(
|
|
1071
|
-
(
|
|
1072
|
-
|
|
1018
|
+
(v, g) => xr(
|
|
1019
|
+
v,
|
|
1073
1020
|
(x) => {
|
|
1074
|
-
l[g] = x,
|
|
1021
|
+
l[g] = x, u &= ~(1 << g), c && d();
|
|
1075
1022
|
},
|
|
1076
1023
|
() => {
|
|
1077
|
-
|
|
1024
|
+
u |= 1 << g;
|
|
1078
1025
|
}
|
|
1079
1026
|
)
|
|
1080
1027
|
);
|
|
1081
|
-
return
|
|
1082
|
-
|
|
1028
|
+
return c = !0, d(), function() {
|
|
1029
|
+
Oe(b), f(), c = !1;
|
|
1083
1030
|
};
|
|
1084
1031
|
});
|
|
1085
1032
|
}
|
|
1086
|
-
function
|
|
1087
|
-
return e
|
|
1033
|
+
function zn(e) {
|
|
1034
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1088
1035
|
}
|
|
1089
|
-
var
|
|
1090
|
-
return
|
|
1036
|
+
var Xn = function(t) {
|
|
1037
|
+
return Wn(t) && !Zn(t);
|
|
1091
1038
|
};
|
|
1092
|
-
function
|
|
1039
|
+
function Wn(e) {
|
|
1093
1040
|
return !!e && typeof e == "object";
|
|
1094
1041
|
}
|
|
1095
|
-
function
|
|
1042
|
+
function Zn(e) {
|
|
1096
1043
|
var t = Object.prototype.toString.call(e);
|
|
1097
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1044
|
+
return t === "[object RegExp]" || t === "[object Date]" || Qn(e);
|
|
1098
1045
|
}
|
|
1099
|
-
var
|
|
1100
|
-
function
|
|
1101
|
-
return e.$$typeof ===
|
|
1046
|
+
var qn = typeof Symbol == "function" && Symbol.for, Jn = qn ? Symbol.for("react.element") : 60103;
|
|
1047
|
+
function Qn(e) {
|
|
1048
|
+
return e.$$typeof === Jn;
|
|
1102
1049
|
}
|
|
1103
|
-
function
|
|
1050
|
+
function Yn(e) {
|
|
1104
1051
|
return Array.isArray(e) ? [] : {};
|
|
1105
1052
|
}
|
|
1106
|
-
function
|
|
1107
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1053
|
+
function We(e, t) {
|
|
1054
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Be(Yn(e), e, t) : e;
|
|
1108
1055
|
}
|
|
1109
|
-
function
|
|
1056
|
+
function Kn(e, t, r) {
|
|
1110
1057
|
return e.concat(t).map(function(n) {
|
|
1111
|
-
return
|
|
1058
|
+
return We(n, r);
|
|
1112
1059
|
});
|
|
1113
1060
|
}
|
|
1114
|
-
function
|
|
1061
|
+
function ei(e, t) {
|
|
1115
1062
|
if (!t.customMerge)
|
|
1116
|
-
return
|
|
1063
|
+
return Be;
|
|
1117
1064
|
var r = t.customMerge(e);
|
|
1118
|
-
return typeof r == "function" ? r :
|
|
1065
|
+
return typeof r == "function" ? r : Be;
|
|
1119
1066
|
}
|
|
1120
|
-
function
|
|
1067
|
+
function ti(e) {
|
|
1121
1068
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1122
1069
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1123
1070
|
}) : [];
|
|
1124
1071
|
}
|
|
1125
|
-
function
|
|
1126
|
-
return Object.keys(e).concat(
|
|
1072
|
+
function er(e) {
|
|
1073
|
+
return Object.keys(e).concat(ti(e));
|
|
1127
1074
|
}
|
|
1128
|
-
function
|
|
1075
|
+
function Cr(e, t) {
|
|
1129
1076
|
try {
|
|
1130
1077
|
return t in e;
|
|
1131
|
-
} catch
|
|
1078
|
+
} catch {
|
|
1132
1079
|
return !1;
|
|
1133
1080
|
}
|
|
1134
1081
|
}
|
|
1135
|
-
function
|
|
1136
|
-
return
|
|
1082
|
+
function ri(e, t) {
|
|
1083
|
+
return Cr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1137
1084
|
}
|
|
1138
|
-
function
|
|
1085
|
+
function ni(e, t, r) {
|
|
1139
1086
|
var n = {};
|
|
1140
|
-
return r.isMergeableObject(e) &&
|
|
1141
|
-
n[i] =
|
|
1142
|
-
}),
|
|
1143
|
-
|
|
1087
|
+
return r.isMergeableObject(e) && er(e).forEach(function(i) {
|
|
1088
|
+
n[i] = We(e[i], r);
|
|
1089
|
+
}), er(t).forEach(function(i) {
|
|
1090
|
+
ri(e, i) || (Cr(e, i) && r.isMergeableObject(t[i]) ? n[i] = ei(i, r)(e[i], t[i], r) : n[i] = We(t[i], r));
|
|
1144
1091
|
}), n;
|
|
1145
1092
|
}
|
|
1146
|
-
function
|
|
1147
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1093
|
+
function Be(e, t, r) {
|
|
1094
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Kn, r.isMergeableObject = r.isMergeableObject || Xn, r.cloneUnlessOtherwiseSpecified = We;
|
|
1148
1095
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1149
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1096
|
+
return o ? n ? r.arrayMerge(e, t, r) : ni(e, t, r) : We(t, r);
|
|
1150
1097
|
}
|
|
1151
|
-
|
|
1098
|
+
Be.all = function(t, r) {
|
|
1152
1099
|
if (!Array.isArray(t))
|
|
1153
1100
|
throw new Error("first argument should be an array");
|
|
1154
1101
|
return t.reduce(function(n, i) {
|
|
1155
|
-
return
|
|
1102
|
+
return Be(n, i, r);
|
|
1156
1103
|
}, {});
|
|
1157
1104
|
};
|
|
1158
|
-
var
|
|
1159
|
-
const
|
|
1160
|
-
function
|
|
1161
|
-
var r = t && t.cache ? t.cache :
|
|
1105
|
+
var ii = Be, oi = ii;
|
|
1106
|
+
const si = /* @__PURE__ */ zn(oi);
|
|
1107
|
+
function vt(e, t) {
|
|
1108
|
+
var r = t && t.cache ? t.cache : di, n = t && t.serializer ? t.serializer : hi, i = t && t.strategy ? t.strategy : li;
|
|
1162
1109
|
return i(e, {
|
|
1163
1110
|
cache: r,
|
|
1164
1111
|
serializer: n
|
|
1165
1112
|
});
|
|
1166
1113
|
}
|
|
1167
|
-
function
|
|
1114
|
+
function ai(e) {
|
|
1168
1115
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1169
1116
|
}
|
|
1170
|
-
function
|
|
1171
|
-
var i =
|
|
1172
|
-
return typeof o
|
|
1117
|
+
function Or(e, t, r, n) {
|
|
1118
|
+
var i = ai(n) ? n : r(n), o = t.get(i);
|
|
1119
|
+
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1173
1120
|
}
|
|
1174
|
-
function
|
|
1121
|
+
function Lr(e, t, r) {
|
|
1175
1122
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1176
|
-
return typeof o
|
|
1123
|
+
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1177
1124
|
}
|
|
1178
|
-
function
|
|
1125
|
+
function kt(e, t, r, n, i) {
|
|
1179
1126
|
return r.bind(t, e, n, i);
|
|
1180
1127
|
}
|
|
1181
|
-
function
|
|
1182
|
-
var r = e.length === 1 ?
|
|
1183
|
-
return
|
|
1128
|
+
function li(e, t) {
|
|
1129
|
+
var r = e.length === 1 ? Or : Lr;
|
|
1130
|
+
return kt(e, this, r, t.cache.create(), t.serializer);
|
|
1184
1131
|
}
|
|
1185
|
-
function
|
|
1186
|
-
return
|
|
1132
|
+
function ui(e, t) {
|
|
1133
|
+
return kt(e, this, Lr, t.cache.create(), t.serializer);
|
|
1187
1134
|
}
|
|
1188
|
-
function
|
|
1189
|
-
return
|
|
1135
|
+
function ci(e, t) {
|
|
1136
|
+
return kt(e, this, Or, t.cache.create(), t.serializer);
|
|
1190
1137
|
}
|
|
1191
|
-
var
|
|
1138
|
+
var hi = function() {
|
|
1192
1139
|
return JSON.stringify(arguments);
|
|
1193
|
-
}
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1140
|
+
}, fi = (
|
|
1141
|
+
/** @class */
|
|
1142
|
+
function() {
|
|
1143
|
+
function e() {
|
|
1144
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1145
|
+
}
|
|
1146
|
+
return e.prototype.get = function(t) {
|
|
1147
|
+
return this.cache[t];
|
|
1148
|
+
}, e.prototype.set = function(t, r) {
|
|
1149
|
+
this.cache[t] = r;
|
|
1150
|
+
}, e;
|
|
1151
|
+
}()
|
|
1152
|
+
), di = {
|
|
1204
1153
|
create: function() {
|
|
1205
|
-
return new
|
|
1154
|
+
return new fi();
|
|
1206
1155
|
}
|
|
1207
|
-
},
|
|
1208
|
-
variadic:
|
|
1209
|
-
monadic:
|
|
1156
|
+
}, _t = {
|
|
1157
|
+
variadic: ui,
|
|
1158
|
+
monadic: ci
|
|
1210
1159
|
}, _;
|
|
1211
1160
|
(function(e) {
|
|
1212
1161
|
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";
|
|
@@ -1215,47 +1164,47 @@ var T;
|
|
|
1215
1164
|
(function(e) {
|
|
1216
1165
|
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";
|
|
1217
1166
|
})(T || (T = {}));
|
|
1218
|
-
var
|
|
1167
|
+
var Ae;
|
|
1219
1168
|
(function(e) {
|
|
1220
1169
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1221
|
-
})(
|
|
1222
|
-
function
|
|
1170
|
+
})(Ae || (Ae = {}));
|
|
1171
|
+
function tr(e) {
|
|
1223
1172
|
return e.type === T.literal;
|
|
1224
1173
|
}
|
|
1225
|
-
function
|
|
1174
|
+
function mi(e) {
|
|
1226
1175
|
return e.type === T.argument;
|
|
1227
1176
|
}
|
|
1228
|
-
function
|
|
1177
|
+
function Mr(e) {
|
|
1229
1178
|
return e.type === T.number;
|
|
1230
1179
|
}
|
|
1231
|
-
function
|
|
1180
|
+
function Nr(e) {
|
|
1232
1181
|
return e.type === T.date;
|
|
1233
1182
|
}
|
|
1234
|
-
function
|
|
1183
|
+
function Rr(e) {
|
|
1235
1184
|
return e.type === T.time;
|
|
1236
1185
|
}
|
|
1237
|
-
function
|
|
1186
|
+
function Ur(e) {
|
|
1238
1187
|
return e.type === T.select;
|
|
1239
1188
|
}
|
|
1240
|
-
function
|
|
1189
|
+
function Fr(e) {
|
|
1241
1190
|
return e.type === T.plural;
|
|
1242
1191
|
}
|
|
1243
|
-
function
|
|
1192
|
+
function pi(e) {
|
|
1244
1193
|
return e.type === T.pound;
|
|
1245
1194
|
}
|
|
1246
|
-
function
|
|
1195
|
+
function Dr(e) {
|
|
1247
1196
|
return e.type === T.tag;
|
|
1248
1197
|
}
|
|
1249
|
-
function
|
|
1250
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1198
|
+
function kr(e) {
|
|
1199
|
+
return !!(e && typeof e == "object" && e.type === Ae.number);
|
|
1251
1200
|
}
|
|
1252
|
-
function
|
|
1253
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1201
|
+
function Ct(e) {
|
|
1202
|
+
return !!(e && typeof e == "object" && e.type === Ae.dateTime);
|
|
1254
1203
|
}
|
|
1255
|
-
var
|
|
1256
|
-
function
|
|
1204
|
+
var $r = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, gi = /(?:[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;
|
|
1205
|
+
function bi(e) {
|
|
1257
1206
|
var t = {};
|
|
1258
|
-
return e.replace(
|
|
1207
|
+
return e.replace(gi, function(r) {
|
|
1259
1208
|
var n = r.length;
|
|
1260
1209
|
switch (r[0]) {
|
|
1261
1210
|
case "G":
|
|
@@ -1344,36 +1293,36 @@ function Oi(e) {
|
|
|
1344
1293
|
return "";
|
|
1345
1294
|
}), t;
|
|
1346
1295
|
}
|
|
1347
|
-
var
|
|
1348
|
-
function
|
|
1296
|
+
var yi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1297
|
+
function vi(e) {
|
|
1349
1298
|
if (e.length === 0)
|
|
1350
1299
|
throw new Error("Number skeleton cannot be empty");
|
|
1351
|
-
for (var t = e.split(
|
|
1300
|
+
for (var t = e.split(yi).filter(function(d) {
|
|
1352
1301
|
return d.length > 0;
|
|
1353
1302
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1354
1303
|
var o = i[n], s = o.split("/");
|
|
1355
1304
|
if (s.length === 0)
|
|
1356
1305
|
throw new Error("Invalid number skeleton");
|
|
1357
|
-
for (var a = s[0],
|
|
1358
|
-
var f =
|
|
1306
|
+
for (var a = s[0], c = s.slice(1), l = 0, u = c; l < u.length; l++) {
|
|
1307
|
+
var f = u[l];
|
|
1359
1308
|
if (f.length === 0)
|
|
1360
1309
|
throw new Error("Invalid number skeleton");
|
|
1361
1310
|
}
|
|
1362
|
-
r.push({ stem: a, options:
|
|
1311
|
+
r.push({ stem: a, options: c });
|
|
1363
1312
|
}
|
|
1364
1313
|
return r;
|
|
1365
1314
|
}
|
|
1366
|
-
function
|
|
1315
|
+
function _i(e) {
|
|
1367
1316
|
return e.replace(/^(.*?)-/, "");
|
|
1368
1317
|
}
|
|
1369
|
-
var
|
|
1370
|
-
function
|
|
1318
|
+
var rr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Gr = /^(@+)?(\+|#+)?[rs]?$/g, Ei = /(\*)(0+)|(#+)(0+)|(0+)/g, jr = /^(0+)$/;
|
|
1319
|
+
function nr(e) {
|
|
1371
1320
|
var t = {};
|
|
1372
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1321
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Gr, function(r, n, i) {
|
|
1373
1322
|
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)), "";
|
|
1374
1323
|
}), t;
|
|
1375
1324
|
}
|
|
1376
|
-
function
|
|
1325
|
+
function Vr(e) {
|
|
1377
1326
|
switch (e) {
|
|
1378
1327
|
case "sign-auto":
|
|
1379
1328
|
return {
|
|
@@ -1413,7 +1362,7 @@ function en(e) {
|
|
|
1413
1362
|
};
|
|
1414
1363
|
}
|
|
1415
1364
|
}
|
|
1416
|
-
function
|
|
1365
|
+
function wi(e) {
|
|
1417
1366
|
var t;
|
|
1418
1367
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1419
1368
|
notation: "engineering"
|
|
@@ -1421,17 +1370,17 @@ function Ui(e) {
|
|
|
1421
1370
|
notation: "scientific"
|
|
1422
1371
|
}, e = e.slice(1)), t) {
|
|
1423
1372
|
var r = e.slice(0, 2);
|
|
1424
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1373
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !jr.test(e))
|
|
1425
1374
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1426
1375
|
t.minimumIntegerDigits = e.length;
|
|
1427
1376
|
}
|
|
1428
1377
|
return t;
|
|
1429
1378
|
}
|
|
1430
|
-
function
|
|
1431
|
-
var t = {}, r =
|
|
1379
|
+
function ir(e) {
|
|
1380
|
+
var t = {}, r = Vr(e);
|
|
1432
1381
|
return r || t;
|
|
1433
1382
|
}
|
|
1434
|
-
function
|
|
1383
|
+
function xi(e) {
|
|
1435
1384
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1436
1385
|
var i = n[r];
|
|
1437
1386
|
switch (i.stem) {
|
|
@@ -1455,7 +1404,7 @@ function Fi(e) {
|
|
|
1455
1404
|
continue;
|
|
1456
1405
|
case "measure-unit":
|
|
1457
1406
|
case "unit":
|
|
1458
|
-
t.style = "unit", t.unit =
|
|
1407
|
+
t.style = "unit", t.unit = _i(i.options[0]);
|
|
1459
1408
|
continue;
|
|
1460
1409
|
case "compact-short":
|
|
1461
1410
|
case "K":
|
|
@@ -1466,13 +1415,13 @@ function Fi(e) {
|
|
|
1466
1415
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1467
1416
|
continue;
|
|
1468
1417
|
case "scientific":
|
|
1469
|
-
t = w(w(w({}, t), { notation: "scientific" }), i.options.reduce(function(
|
|
1470
|
-
return w(w({},
|
|
1418
|
+
t = w(w(w({}, t), { notation: "scientific" }), i.options.reduce(function(c, l) {
|
|
1419
|
+
return w(w({}, c), ir(l));
|
|
1471
1420
|
}, {}));
|
|
1472
1421
|
continue;
|
|
1473
1422
|
case "engineering":
|
|
1474
|
-
t = w(w(w({}, t), { notation: "engineering" }), i.options.reduce(function(
|
|
1475
|
-
return w(w({},
|
|
1423
|
+
t = w(w(w({}, t), { notation: "engineering" }), i.options.reduce(function(c, l) {
|
|
1424
|
+
return w(w({}, c), ir(l));
|
|
1476
1425
|
}, {}));
|
|
1477
1426
|
continue;
|
|
1478
1427
|
case "notation-simple":
|
|
@@ -1517,9 +1466,9 @@ function Fi(e) {
|
|
|
1517
1466
|
case "integer-width":
|
|
1518
1467
|
if (i.options.length > 1)
|
|
1519
1468
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1520
|
-
i.options[0].replace(
|
|
1469
|
+
i.options[0].replace(Ei, function(c, l, u, f, d, b) {
|
|
1521
1470
|
if (l)
|
|
1522
|
-
t.minimumIntegerDigits =
|
|
1471
|
+
t.minimumIntegerDigits = u.length;
|
|
1523
1472
|
else {
|
|
1524
1473
|
if (f && d)
|
|
1525
1474
|
throw new Error("We currently do not support maximum integer digits");
|
|
@@ -1530,27 +1479,27 @@ function Fi(e) {
|
|
|
1530
1479
|
});
|
|
1531
1480
|
continue;
|
|
1532
1481
|
}
|
|
1533
|
-
if (
|
|
1482
|
+
if (jr.test(i.stem)) {
|
|
1534
1483
|
t.minimumIntegerDigits = i.stem.length;
|
|
1535
1484
|
continue;
|
|
1536
1485
|
}
|
|
1537
|
-
if (
|
|
1486
|
+
if (rr.test(i.stem)) {
|
|
1538
1487
|
if (i.options.length > 1)
|
|
1539
1488
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1540
|
-
i.stem.replace(
|
|
1541
|
-
return
|
|
1489
|
+
i.stem.replace(rr, function(c, l, u, f, d, b) {
|
|
1490
|
+
return u === "*" ? 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), "";
|
|
1542
1491
|
});
|
|
1543
1492
|
var o = i.options[0];
|
|
1544
|
-
o === "w" ? t = w(w({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = w(w({}, t),
|
|
1493
|
+
o === "w" ? t = w(w({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = w(w({}, t), nr(o)));
|
|
1545
1494
|
continue;
|
|
1546
1495
|
}
|
|
1547
|
-
if (
|
|
1548
|
-
t = w(w({}, t),
|
|
1496
|
+
if (Gr.test(i.stem)) {
|
|
1497
|
+
t = w(w({}, t), nr(i.stem));
|
|
1549
1498
|
continue;
|
|
1550
1499
|
}
|
|
1551
|
-
var s =
|
|
1500
|
+
var s = Vr(i.stem);
|
|
1552
1501
|
s && (t = w(w({}, t), s));
|
|
1553
|
-
var a =
|
|
1502
|
+
var a = wi(i.stem);
|
|
1554
1503
|
a && (t = w(w({}, t), a));
|
|
1555
1504
|
}
|
|
1556
1505
|
return t;
|
|
@@ -2970,22 +2919,22 @@ var it = {
|
|
|
2970
2919
|
"h"
|
|
2971
2920
|
]
|
|
2972
2921
|
};
|
|
2973
|
-
function
|
|
2922
|
+
function Si(e, t) {
|
|
2974
2923
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2975
2924
|
var i = e.charAt(n);
|
|
2976
2925
|
if (i === "j") {
|
|
2977
2926
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2978
2927
|
o++, n++;
|
|
2979
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1),
|
|
2928
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), c = "a", l = Pi(t);
|
|
2980
2929
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
|
2981
|
-
r +=
|
|
2930
|
+
r += c;
|
|
2982
2931
|
for (; s-- > 0; )
|
|
2983
2932
|
r = l + r;
|
|
2984
2933
|
} else i === "J" ? r += "H" : r += i;
|
|
2985
2934
|
}
|
|
2986
2935
|
return r;
|
|
2987
2936
|
}
|
|
2988
|
-
function
|
|
2937
|
+
function Pi(e) {
|
|
2989
2938
|
var t = e.hourCycle;
|
|
2990
2939
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2991
2940
|
e.hourCycles && // @ts-ignore
|
|
@@ -3007,20 +2956,20 @@ function ki(e) {
|
|
|
3007
2956
|
var i = it[n || ""] || it[r || ""] || it["".concat(r, "-001")] || it["001"];
|
|
3008
2957
|
return i[0];
|
|
3009
2958
|
}
|
|
3010
|
-
var
|
|
2959
|
+
var Et, Ti = new RegExp("^".concat($r.source, "*")), Hi = new RegExp("".concat($r.source, "*$"));
|
|
3011
2960
|
function E(e, t) {
|
|
3012
2961
|
return { start: e, end: t };
|
|
3013
2962
|
}
|
|
3014
|
-
var
|
|
2963
|
+
var Bi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ai = !!String.fromCodePoint, Ii = !!Object.fromEntries, Ci = !!String.prototype.codePointAt, Oi = !!String.prototype.trimStart, Li = !!String.prototype.trimEnd, Mi = !!Number.isSafeInteger, Ni = Mi ? Number.isSafeInteger : function(e) {
|
|
3015
2964
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3016
|
-
},
|
|
2965
|
+
}, Ot = !0;
|
|
3017
2966
|
try {
|
|
3018
|
-
var
|
|
3019
|
-
|
|
3020
|
-
} catch
|
|
3021
|
-
|
|
2967
|
+
var Ri = Xr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2968
|
+
Ot = ((Et = Ri.exec("a")) === null || Et === void 0 ? void 0 : Et[0]) === "a";
|
|
2969
|
+
} catch {
|
|
2970
|
+
Ot = !1;
|
|
3022
2971
|
}
|
|
3023
|
-
var
|
|
2972
|
+
var or = Bi ? (
|
|
3024
2973
|
// Native
|
|
3025
2974
|
function(t, r, n) {
|
|
3026
2975
|
return t.startsWith(r, n);
|
|
@@ -3030,7 +2979,7 @@ var mr = ji ? (
|
|
|
3030
2979
|
function(t, r, n) {
|
|
3031
2980
|
return t.slice(n, n + r.length) === r;
|
|
3032
2981
|
}
|
|
3033
|
-
),
|
|
2982
|
+
), Lt = Ai ? String.fromCodePoint : (
|
|
3034
2983
|
// IE11
|
|
3035
2984
|
function() {
|
|
3036
2985
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3042,9 +2991,9 @@ var mr = ji ? (
|
|
|
3042
2991
|
}
|
|
3043
2992
|
return n;
|
|
3044
2993
|
}
|
|
3045
|
-
),
|
|
2994
|
+
), sr = (
|
|
3046
2995
|
// native
|
|
3047
|
-
|
|
2996
|
+
Ii ? Object.fromEntries : (
|
|
3048
2997
|
// Ponyfill
|
|
3049
2998
|
function(t) {
|
|
3050
2999
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3054,7 +3003,7 @@ var mr = ji ? (
|
|
|
3054
3003
|
return r;
|
|
3055
3004
|
}
|
|
3056
3005
|
)
|
|
3057
|
-
),
|
|
3006
|
+
), zr = Ci ? (
|
|
3058
3007
|
// Native
|
|
3059
3008
|
function(t, r) {
|
|
3060
3009
|
return t.codePointAt(r);
|
|
@@ -3068,7 +3017,7 @@ var mr = ji ? (
|
|
|
3068
3017
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3069
3018
|
}
|
|
3070
3019
|
}
|
|
3071
|
-
),
|
|
3020
|
+
), Ui = Oi ? (
|
|
3072
3021
|
// Native
|
|
3073
3022
|
function(t) {
|
|
3074
3023
|
return t.trimStart();
|
|
@@ -3076,9 +3025,9 @@ var mr = ji ? (
|
|
|
3076
3025
|
) : (
|
|
3077
3026
|
// Ponyfill
|
|
3078
3027
|
function(t) {
|
|
3079
|
-
return t.replace(
|
|
3028
|
+
return t.replace(Ti, "");
|
|
3080
3029
|
}
|
|
3081
|
-
),
|
|
3030
|
+
), Fi = Li ? (
|
|
3082
3031
|
// Native
|
|
3083
3032
|
function(t) {
|
|
3084
3033
|
return t.trimEnd();
|
|
@@ -3086,32 +3035,32 @@ var mr = ji ? (
|
|
|
3086
3035
|
) : (
|
|
3087
3036
|
// Ponyfill
|
|
3088
3037
|
function(t) {
|
|
3089
|
-
return t.replace(
|
|
3038
|
+
return t.replace(Hi, "");
|
|
3090
3039
|
}
|
|
3091
3040
|
);
|
|
3092
|
-
function
|
|
3041
|
+
function Xr(e, t) {
|
|
3093
3042
|
return new RegExp(e, t);
|
|
3094
3043
|
}
|
|
3095
|
-
var
|
|
3096
|
-
if (
|
|
3097
|
-
var
|
|
3098
|
-
|
|
3044
|
+
var Mt;
|
|
3045
|
+
if (Ot) {
|
|
3046
|
+
var ar = Xr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3047
|
+
Mt = function(t, r) {
|
|
3099
3048
|
var n;
|
|
3100
|
-
|
|
3101
|
-
var i =
|
|
3049
|
+
ar.lastIndex = r;
|
|
3050
|
+
var i = ar.exec(t);
|
|
3102
3051
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3103
3052
|
};
|
|
3104
3053
|
} else
|
|
3105
|
-
|
|
3054
|
+
Mt = function(t, r) {
|
|
3106
3055
|
for (var n = []; ; ) {
|
|
3107
|
-
var i =
|
|
3108
|
-
if (i === void 0 ||
|
|
3056
|
+
var i = zr(t, r);
|
|
3057
|
+
if (i === void 0 || Wr(i) || Gi(i))
|
|
3109
3058
|
break;
|
|
3110
3059
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3111
3060
|
}
|
|
3112
|
-
return
|
|
3061
|
+
return Lt.apply(void 0, n);
|
|
3113
3062
|
};
|
|
3114
|
-
var
|
|
3063
|
+
var Di = (
|
|
3115
3064
|
/** @class */
|
|
3116
3065
|
function() {
|
|
3117
3066
|
function e(t, r) {
|
|
@@ -3142,7 +3091,7 @@ var eo = (
|
|
|
3142
3091
|
if (n)
|
|
3143
3092
|
break;
|
|
3144
3093
|
return this.error(_.UNMATCHED_CLOSING_TAG, E(this.clonePosition(), this.clonePosition()));
|
|
3145
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3094
|
+
} else if (o === 60 && !this.ignoreTag && Nt(this.peek() || 0)) {
|
|
3146
3095
|
var s = this.parseTag(t, r);
|
|
3147
3096
|
if (s.err)
|
|
3148
3097
|
return s;
|
|
@@ -3175,10 +3124,10 @@ var eo = (
|
|
|
3175
3124
|
return o;
|
|
3176
3125
|
var s = o.val, a = this.clonePosition();
|
|
3177
3126
|
if (this.bumpIf("</")) {
|
|
3178
|
-
if (this.isEOF() || !
|
|
3127
|
+
if (this.isEOF() || !Nt(this.char()))
|
|
3179
3128
|
return this.error(_.INVALID_TAG, E(a, this.clonePosition()));
|
|
3180
|
-
var
|
|
3181
|
-
return i !== l ? this.error(_.UNMATCHED_CLOSING_TAG, E(
|
|
3129
|
+
var c = this.clonePosition(), l = this.parseTagName();
|
|
3130
|
+
return i !== l ? this.error(_.UNMATCHED_CLOSING_TAG, E(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3182
3131
|
val: {
|
|
3183
3132
|
type: T.tag,
|
|
3184
3133
|
value: i,
|
|
@@ -3193,7 +3142,7 @@ var eo = (
|
|
|
3193
3142
|
return this.error(_.INVALID_TAG, E(n, this.clonePosition()));
|
|
3194
3143
|
}, e.prototype.parseTagName = function() {
|
|
3195
3144
|
var t = this.offset();
|
|
3196
|
-
for (this.bump(); !this.isEOF() &&
|
|
3145
|
+
for (this.bump(); !this.isEOF() && $i(this.char()); )
|
|
3197
3146
|
this.bump();
|
|
3198
3147
|
return this.message.slice(t, this.offset());
|
|
3199
3148
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3215,14 +3164,14 @@ var eo = (
|
|
|
3215
3164
|
}
|
|
3216
3165
|
break;
|
|
3217
3166
|
}
|
|
3218
|
-
var
|
|
3167
|
+
var c = E(n, this.clonePosition());
|
|
3219
3168
|
return {
|
|
3220
|
-
val: { type: T.literal, value: i, location:
|
|
3169
|
+
val: { type: T.literal, value: i, location: c },
|
|
3221
3170
|
err: null
|
|
3222
3171
|
};
|
|
3223
3172
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3224
3173
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3225
|
-
!
|
|
3174
|
+
!ki(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3226
3175
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3227
3176
|
if (this.isEOF() || this.char() !== 39)
|
|
3228
3177
|
return null;
|
|
@@ -3256,12 +3205,12 @@ var eo = (
|
|
|
3256
3205
|
r.push(n);
|
|
3257
3206
|
this.bump();
|
|
3258
3207
|
}
|
|
3259
|
-
return
|
|
3208
|
+
return Lt.apply(void 0, r);
|
|
3260
3209
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3261
3210
|
if (this.isEOF())
|
|
3262
3211
|
return null;
|
|
3263
3212
|
var n = this.char();
|
|
3264
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3213
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Lt(n));
|
|
3265
3214
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3266
3215
|
var n = this.clonePosition();
|
|
3267
3216
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3290,15 +3239,15 @@ var eo = (
|
|
|
3290
3239
|
return this.error(_.MALFORMED_ARGUMENT, E(n, this.clonePosition()));
|
|
3291
3240
|
}
|
|
3292
3241
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3293
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3242
|
+
var t = this.clonePosition(), r = this.offset(), n = Mt(this.message, r), i = r + n.length;
|
|
3294
3243
|
this.bumpTo(i);
|
|
3295
3244
|
var o = this.clonePosition(), s = E(t, o);
|
|
3296
3245
|
return { value: n, location: s };
|
|
3297
3246
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3298
|
-
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value,
|
|
3247
|
+
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, c = this.clonePosition();
|
|
3299
3248
|
switch (a) {
|
|
3300
3249
|
case "":
|
|
3301
|
-
return this.error(_.EXPECT_ARGUMENT_TYPE, E(s,
|
|
3250
|
+
return this.error(_.EXPECT_ARGUMENT_TYPE, E(s, c));
|
|
3302
3251
|
case "number":
|
|
3303
3252
|
case "date":
|
|
3304
3253
|
case "time": {
|
|
@@ -3306,21 +3255,21 @@ var eo = (
|
|
|
3306
3255
|
var l = null;
|
|
3307
3256
|
if (this.bumpIf(",")) {
|
|
3308
3257
|
this.bumpSpace();
|
|
3309
|
-
var
|
|
3258
|
+
var u = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3310
3259
|
if (f.err)
|
|
3311
3260
|
return f;
|
|
3312
|
-
var d =
|
|
3261
|
+
var d = Fi(f.val);
|
|
3313
3262
|
if (d.length === 0)
|
|
3314
3263
|
return this.error(_.EXPECT_ARGUMENT_STYLE, E(this.clonePosition(), this.clonePosition()));
|
|
3315
|
-
var b = E(
|
|
3264
|
+
var b = E(u, this.clonePosition());
|
|
3316
3265
|
l = { style: d, styleLocation: b };
|
|
3317
3266
|
}
|
|
3318
|
-
var
|
|
3319
|
-
if (
|
|
3320
|
-
return
|
|
3267
|
+
var v = this.tryParseArgumentClose(i);
|
|
3268
|
+
if (v.err)
|
|
3269
|
+
return v;
|
|
3321
3270
|
var g = E(i, this.clonePosition());
|
|
3322
|
-
if (l &&
|
|
3323
|
-
var x =
|
|
3271
|
+
if (l && or(l?.style, "::", 0)) {
|
|
3272
|
+
var x = Ui(l.style.slice(2));
|
|
3324
3273
|
if (a === "number") {
|
|
3325
3274
|
var f = this.parseNumberSkeletonFromString(x, l.styleLocation);
|
|
3326
3275
|
return f.err ? f : {
|
|
@@ -3331,12 +3280,12 @@ var eo = (
|
|
|
3331
3280
|
if (x.length === 0)
|
|
3332
3281
|
return this.error(_.EXPECT_DATE_TIME_SKELETON, g);
|
|
3333
3282
|
var M = x;
|
|
3334
|
-
this.locale && (M =
|
|
3283
|
+
this.locale && (M = Si(x, this.locale));
|
|
3335
3284
|
var d = {
|
|
3336
|
-
type:
|
|
3285
|
+
type: Ae.dateTime,
|
|
3337
3286
|
pattern: M,
|
|
3338
3287
|
location: l.styleLocation,
|
|
3339
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3288
|
+
parsedOptions: this.shouldParseSkeletons ? bi(M) : {}
|
|
3340
3289
|
}, q = a === "date" ? T.date : T.time;
|
|
3341
3290
|
return {
|
|
3342
3291
|
val: { type: q, value: n, location: g, style: d },
|
|
@@ -3349,7 +3298,7 @@ var eo = (
|
|
|
3349
3298
|
type: a === "number" ? T.number : a === "date" ? T.date : T.time,
|
|
3350
3299
|
value: n,
|
|
3351
3300
|
location: g,
|
|
3352
|
-
style: (o = l
|
|
3301
|
+
style: (o = l?.style) !== null && o !== void 0 ? o : null
|
|
3353
3302
|
},
|
|
3354
3303
|
err: null
|
|
3355
3304
|
};
|
|
@@ -3374,15 +3323,15 @@ var eo = (
|
|
|
3374
3323
|
var J = this.tryParsePluralOrSelectOptions(t, a, r, R);
|
|
3375
3324
|
if (J.err)
|
|
3376
3325
|
return J;
|
|
3377
|
-
var
|
|
3378
|
-
if (
|
|
3379
|
-
return
|
|
3326
|
+
var v = this.tryParseArgumentClose(i);
|
|
3327
|
+
if (v.err)
|
|
3328
|
+
return v;
|
|
3380
3329
|
var B = E(i, this.clonePosition());
|
|
3381
3330
|
return a === "select" ? {
|
|
3382
3331
|
val: {
|
|
3383
3332
|
type: T.select,
|
|
3384
3333
|
value: n,
|
|
3385
|
-
options:
|
|
3334
|
+
options: sr(J.val),
|
|
3386
3335
|
location: B
|
|
3387
3336
|
},
|
|
3388
3337
|
err: null
|
|
@@ -3390,7 +3339,7 @@ var eo = (
|
|
|
3390
3339
|
val: {
|
|
3391
3340
|
type: T.plural,
|
|
3392
3341
|
value: n,
|
|
3393
|
-
options:
|
|
3342
|
+
options: sr(J.val),
|
|
3394
3343
|
offset: G,
|
|
3395
3344
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3396
3345
|
location: B
|
|
@@ -3399,7 +3348,7 @@ var eo = (
|
|
|
3399
3348
|
};
|
|
3400
3349
|
}
|
|
3401
3350
|
default:
|
|
3402
|
-
return this.error(_.INVALID_ARGUMENT_TYPE, E(s,
|
|
3351
|
+
return this.error(_.INVALID_ARGUMENT_TYPE, E(s, c));
|
|
3403
3352
|
}
|
|
3404
3353
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3405
3354
|
return this.isEOF() || this.char() !== 125 ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, E(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -3441,50 +3390,50 @@ var eo = (
|
|
|
3441
3390
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3442
3391
|
var n = [];
|
|
3443
3392
|
try {
|
|
3444
|
-
n =
|
|
3445
|
-
} catch
|
|
3393
|
+
n = vi(t);
|
|
3394
|
+
} catch {
|
|
3446
3395
|
return this.error(_.INVALID_NUMBER_SKELETON, r);
|
|
3447
3396
|
}
|
|
3448
3397
|
return {
|
|
3449
3398
|
val: {
|
|
3450
|
-
type:
|
|
3399
|
+
type: Ae.number,
|
|
3451
3400
|
tokens: n,
|
|
3452
3401
|
location: r,
|
|
3453
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3402
|
+
parsedOptions: this.shouldParseSkeletons ? xi(n) : {}
|
|
3454
3403
|
},
|
|
3455
3404
|
err: null
|
|
3456
3405
|
};
|
|
3457
3406
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3458
|
-
for (var o, s = !1, a = [],
|
|
3407
|
+
for (var o, s = !1, a = [], c = /* @__PURE__ */ new Set(), l = i.value, u = i.location; ; ) {
|
|
3459
3408
|
if (l.length === 0) {
|
|
3460
3409
|
var f = this.clonePosition();
|
|
3461
3410
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3462
3411
|
var d = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_SELECTOR, _.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3463
3412
|
if (d.err)
|
|
3464
3413
|
return d;
|
|
3465
|
-
|
|
3414
|
+
u = E(f, this.clonePosition()), l = this.message.slice(f.offset, this.offset());
|
|
3466
3415
|
} else
|
|
3467
3416
|
break;
|
|
3468
3417
|
}
|
|
3469
|
-
if (
|
|
3470
|
-
return this.error(r === "select" ? _.DUPLICATE_SELECT_ARGUMENT_SELECTOR : _.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,
|
|
3418
|
+
if (c.has(l))
|
|
3419
|
+
return this.error(r === "select" ? _.DUPLICATE_SELECT_ARGUMENT_SELECTOR : _.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
|
|
3471
3420
|
l === "other" && (s = !0), this.bumpSpace();
|
|
3472
3421
|
var b = this.clonePosition();
|
|
3473
3422
|
if (!this.bumpIf("{"))
|
|
3474
3423
|
return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, E(this.clonePosition(), this.clonePosition()));
|
|
3475
|
-
var
|
|
3476
|
-
if (
|
|
3477
|
-
return
|
|
3424
|
+
var v = this.parseMessage(t + 1, r, n);
|
|
3425
|
+
if (v.err)
|
|
3426
|
+
return v;
|
|
3478
3427
|
var g = this.tryParseArgumentClose(b);
|
|
3479
3428
|
if (g.err)
|
|
3480
3429
|
return g;
|
|
3481
3430
|
a.push([
|
|
3482
3431
|
l,
|
|
3483
3432
|
{
|
|
3484
|
-
value:
|
|
3433
|
+
value: v.val,
|
|
3485
3434
|
location: E(b, this.clonePosition())
|
|
3486
3435
|
}
|
|
3487
|
-
]),
|
|
3436
|
+
]), c.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, u = o.location;
|
|
3488
3437
|
}
|
|
3489
3438
|
return a.length === 0 ? this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR : _.EXPECT_PLURAL_ARGUMENT_SELECTOR, E(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(_.MISSING_OTHER_CLAUSE, E(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3490
3439
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
@@ -3497,8 +3446,8 @@ var eo = (
|
|
|
3497
3446
|
else
|
|
3498
3447
|
break;
|
|
3499
3448
|
}
|
|
3500
|
-
var
|
|
3501
|
-
return o ? (s *= n,
|
|
3449
|
+
var c = E(i, this.clonePosition());
|
|
3450
|
+
return o ? (s *= n, Ni(s) ? { val: s, err: null } : this.error(r, c)) : this.error(t, c);
|
|
3502
3451
|
}, e.prototype.offset = function() {
|
|
3503
3452
|
return this.position.offset;
|
|
3504
3453
|
}, e.prototype.isEOF = function() {
|
|
@@ -3513,7 +3462,7 @@ var eo = (
|
|
|
3513
3462
|
var t = this.position.offset;
|
|
3514
3463
|
if (t >= this.message.length)
|
|
3515
3464
|
throw Error("out of bound");
|
|
3516
|
-
var r =
|
|
3465
|
+
var r = zr(this.message, t);
|
|
3517
3466
|
if (r === void 0)
|
|
3518
3467
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3519
3468
|
return r;
|
|
@@ -3532,7 +3481,7 @@ var eo = (
|
|
|
3532
3481
|
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);
|
|
3533
3482
|
}
|
|
3534
3483
|
}, e.prototype.bumpIf = function(t) {
|
|
3535
|
-
if (
|
|
3484
|
+
if (or(this.message, t, this.offset())) {
|
|
3536
3485
|
for (var r = 0; r < t.length; r++)
|
|
3537
3486
|
this.bump();
|
|
3538
3487
|
return !0;
|
|
@@ -3554,56 +3503,56 @@ var eo = (
|
|
|
3554
3503
|
break;
|
|
3555
3504
|
}
|
|
3556
3505
|
}, e.prototype.bumpSpace = function() {
|
|
3557
|
-
for (; !this.isEOF() &&
|
|
3506
|
+
for (; !this.isEOF() && Wr(this.char()); )
|
|
3558
3507
|
this.bump();
|
|
3559
3508
|
}, e.prototype.peek = function() {
|
|
3560
3509
|
if (this.isEOF())
|
|
3561
3510
|
return null;
|
|
3562
3511
|
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
3563
|
-
return n
|
|
3512
|
+
return n ?? null;
|
|
3564
3513
|
}, e;
|
|
3565
3514
|
}()
|
|
3566
3515
|
);
|
|
3567
|
-
function
|
|
3516
|
+
function Nt(e) {
|
|
3568
3517
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3569
3518
|
}
|
|
3570
|
-
function
|
|
3571
|
-
return
|
|
3519
|
+
function ki(e) {
|
|
3520
|
+
return Nt(e) || e === 47;
|
|
3572
3521
|
}
|
|
3573
|
-
function
|
|
3522
|
+
function $i(e) {
|
|
3574
3523
|
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;
|
|
3575
3524
|
}
|
|
3576
|
-
function
|
|
3525
|
+
function Wr(e) {
|
|
3577
3526
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3578
3527
|
}
|
|
3579
|
-
function
|
|
3528
|
+
function Gi(e) {
|
|
3580
3529
|
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;
|
|
3581
3530
|
}
|
|
3582
|
-
function
|
|
3531
|
+
function Rt(e) {
|
|
3583
3532
|
e.forEach(function(t) {
|
|
3584
|
-
if (delete t.location,
|
|
3533
|
+
if (delete t.location, Ur(t) || Fr(t))
|
|
3585
3534
|
for (var r in t.options)
|
|
3586
|
-
delete t.options[r].location,
|
|
3587
|
-
else
|
|
3535
|
+
delete t.options[r].location, Rt(t.options[r].value);
|
|
3536
|
+
else Mr(t) && kr(t.style) || (Nr(t) || Rr(t)) && Ct(t.style) ? delete t.style.location : Dr(t) && Rt(t.children);
|
|
3588
3537
|
});
|
|
3589
3538
|
}
|
|
3590
|
-
function
|
|
3539
|
+
function ji(e, t) {
|
|
3591
3540
|
t === void 0 && (t = {}), t = w({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3592
|
-
var r = new
|
|
3541
|
+
var r = new Di(e, t).parse();
|
|
3593
3542
|
if (r.err) {
|
|
3594
3543
|
var n = SyntaxError(_[r.err.kind]);
|
|
3595
3544
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3596
3545
|
}
|
|
3597
|
-
return t
|
|
3546
|
+
return t?.captureLocation || Rt(r.val), r.val;
|
|
3598
3547
|
}
|
|
3599
|
-
var
|
|
3548
|
+
var Ie;
|
|
3600
3549
|
(function(e) {
|
|
3601
3550
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3602
|
-
})(
|
|
3551
|
+
})(Ie || (Ie = {}));
|
|
3603
3552
|
var mt = (
|
|
3604
3553
|
/** @class */
|
|
3605
3554
|
function(e) {
|
|
3606
|
-
|
|
3555
|
+
le(t, e);
|
|
3607
3556
|
function t(r, n, i) {
|
|
3608
3557
|
var o = e.call(this, r) || this;
|
|
3609
3558
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3612,30 +3561,30 @@ var mt = (
|
|
|
3612
3561
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3613
3562
|
}, t;
|
|
3614
3563
|
}(Error)
|
|
3615
|
-
),
|
|
3564
|
+
), lr = (
|
|
3616
3565
|
/** @class */
|
|
3617
3566
|
function(e) {
|
|
3618
|
-
|
|
3567
|
+
le(t, e);
|
|
3619
3568
|
function t(r, n, i, o) {
|
|
3620
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3569
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ie.INVALID_VALUE, o) || this;
|
|
3621
3570
|
}
|
|
3622
3571
|
return t;
|
|
3623
3572
|
}(mt)
|
|
3624
|
-
),
|
|
3573
|
+
), Vi = (
|
|
3625
3574
|
/** @class */
|
|
3626
3575
|
function(e) {
|
|
3627
|
-
|
|
3576
|
+
le(t, e);
|
|
3628
3577
|
function t(r, n, i) {
|
|
3629
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3578
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Ie.INVALID_VALUE, i) || this;
|
|
3630
3579
|
}
|
|
3631
3580
|
return t;
|
|
3632
3581
|
}(mt)
|
|
3633
|
-
),
|
|
3582
|
+
), zi = (
|
|
3634
3583
|
/** @class */
|
|
3635
3584
|
function(e) {
|
|
3636
|
-
|
|
3585
|
+
le(t, e);
|
|
3637
3586
|
function t(r, n) {
|
|
3638
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3587
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Ie.MISSING_VALUE, n) || this;
|
|
3639
3588
|
}
|
|
3640
3589
|
return t;
|
|
3641
3590
|
}(mt)
|
|
@@ -3643,79 +3592,79 @@ var mt = (
|
|
|
3643
3592
|
(function(e) {
|
|
3644
3593
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3645
3594
|
})(X || (X = {}));
|
|
3646
|
-
function
|
|
3595
|
+
function Xi(e) {
|
|
3647
3596
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3648
3597
|
var n = t[t.length - 1];
|
|
3649
3598
|
return !n || n.type !== X.literal || r.type !== X.literal ? t.push(r) : n.value += r.value, t;
|
|
3650
3599
|
}, []);
|
|
3651
3600
|
}
|
|
3652
|
-
function
|
|
3601
|
+
function Wi(e) {
|
|
3653
3602
|
return typeof e == "function";
|
|
3654
3603
|
}
|
|
3655
3604
|
function at(e, t, r, n, i, o, s) {
|
|
3656
|
-
if (e.length === 1 &&
|
|
3605
|
+
if (e.length === 1 && tr(e[0]))
|
|
3657
3606
|
return [
|
|
3658
3607
|
{
|
|
3659
3608
|
type: X.literal,
|
|
3660
3609
|
value: e[0].value
|
|
3661
3610
|
}
|
|
3662
3611
|
];
|
|
3663
|
-
for (var a = [],
|
|
3664
|
-
var
|
|
3665
|
-
if (
|
|
3612
|
+
for (var a = [], c = 0, l = e; c < l.length; c++) {
|
|
3613
|
+
var u = l[c];
|
|
3614
|
+
if (tr(u)) {
|
|
3666
3615
|
a.push({
|
|
3667
3616
|
type: X.literal,
|
|
3668
|
-
value:
|
|
3617
|
+
value: u.value
|
|
3669
3618
|
});
|
|
3670
3619
|
continue;
|
|
3671
3620
|
}
|
|
3672
|
-
if (
|
|
3621
|
+
if (pi(u)) {
|
|
3673
3622
|
typeof o == "number" && a.push({
|
|
3674
3623
|
type: X.literal,
|
|
3675
3624
|
value: r.getNumberFormat(t).format(o)
|
|
3676
3625
|
});
|
|
3677
3626
|
continue;
|
|
3678
3627
|
}
|
|
3679
|
-
var f =
|
|
3628
|
+
var f = u.value;
|
|
3680
3629
|
if (!(i && f in i))
|
|
3681
|
-
throw new
|
|
3630
|
+
throw new zi(f, s);
|
|
3682
3631
|
var d = i[f];
|
|
3683
|
-
if (
|
|
3632
|
+
if (mi(u)) {
|
|
3684
3633
|
(!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), a.push({
|
|
3685
3634
|
type: typeof d == "string" ? X.literal : X.object,
|
|
3686
3635
|
value: d
|
|
3687
3636
|
});
|
|
3688
3637
|
continue;
|
|
3689
3638
|
}
|
|
3690
|
-
if (
|
|
3691
|
-
var b = typeof
|
|
3639
|
+
if (Nr(u)) {
|
|
3640
|
+
var b = typeof u.style == "string" ? n.date[u.style] : Ct(u.style) ? u.style.parsedOptions : void 0;
|
|
3692
3641
|
a.push({
|
|
3693
3642
|
type: X.literal,
|
|
3694
3643
|
value: r.getDateTimeFormat(t, b).format(d)
|
|
3695
3644
|
});
|
|
3696
3645
|
continue;
|
|
3697
3646
|
}
|
|
3698
|
-
if (
|
|
3699
|
-
var b = typeof
|
|
3647
|
+
if (Rr(u)) {
|
|
3648
|
+
var b = typeof u.style == "string" ? n.time[u.style] : Ct(u.style) ? u.style.parsedOptions : n.time.medium;
|
|
3700
3649
|
a.push({
|
|
3701
3650
|
type: X.literal,
|
|
3702
3651
|
value: r.getDateTimeFormat(t, b).format(d)
|
|
3703
3652
|
});
|
|
3704
3653
|
continue;
|
|
3705
3654
|
}
|
|
3706
|
-
if (
|
|
3707
|
-
var b = typeof
|
|
3655
|
+
if (Mr(u)) {
|
|
3656
|
+
var b = typeof u.style == "string" ? n.number[u.style] : kr(u.style) ? u.style.parsedOptions : void 0;
|
|
3708
3657
|
b && b.scale && (d = d * (b.scale || 1)), a.push({
|
|
3709
3658
|
type: X.literal,
|
|
3710
3659
|
value: r.getNumberFormat(t, b).format(d)
|
|
3711
3660
|
});
|
|
3712
3661
|
continue;
|
|
3713
3662
|
}
|
|
3714
|
-
if (
|
|
3715
|
-
var
|
|
3716
|
-
if (!
|
|
3717
|
-
throw new
|
|
3718
|
-
var M = at(
|
|
3663
|
+
if (Dr(u)) {
|
|
3664
|
+
var v = u.children, g = u.value, x = i[g];
|
|
3665
|
+
if (!Wi(x))
|
|
3666
|
+
throw new Vi(g, "function", s);
|
|
3667
|
+
var M = at(v, t, r, n, i, o), q = x(M.map(function(G) {
|
|
3719
3668
|
return G.value;
|
|
3720
3669
|
}));
|
|
3721
3670
|
Array.isArray(q) || (q = [q]), a.push.apply(a, q.map(function(G) {
|
|
@@ -3725,42 +3674,42 @@ function at(e, t, r, n, i, o, s) {
|
|
|
3725
3674
|
};
|
|
3726
3675
|
}));
|
|
3727
3676
|
}
|
|
3728
|
-
if (
|
|
3729
|
-
var H =
|
|
3677
|
+
if (Ur(u)) {
|
|
3678
|
+
var H = u.options[d] || u.options.other;
|
|
3730
3679
|
if (!H)
|
|
3731
|
-
throw new
|
|
3680
|
+
throw new lr(u.value, d, Object.keys(u.options), s);
|
|
3732
3681
|
a.push.apply(a, at(H.value, t, r, n, i));
|
|
3733
3682
|
continue;
|
|
3734
3683
|
}
|
|
3735
|
-
if (
|
|
3736
|
-
var H =
|
|
3684
|
+
if (Fr(u)) {
|
|
3685
|
+
var H = u.options["=".concat(d)];
|
|
3737
3686
|
if (!H) {
|
|
3738
3687
|
if (!Intl.PluralRules)
|
|
3739
3688
|
throw new mt(`Intl.PluralRules is not available in this environment.
|
|
3740
3689
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3741
|
-
`,
|
|
3742
|
-
var R = r.getPluralRules(t, { type:
|
|
3743
|
-
H =
|
|
3690
|
+
`, Ie.MISSING_INTL_API, s);
|
|
3691
|
+
var R = r.getPluralRules(t, { type: u.pluralType }).select(d - (u.offset || 0));
|
|
3692
|
+
H = u.options[R] || u.options.other;
|
|
3744
3693
|
}
|
|
3745
3694
|
if (!H)
|
|
3746
|
-
throw new
|
|
3747
|
-
a.push.apply(a, at(H.value, t, r, n, i, d - (
|
|
3695
|
+
throw new lr(u.value, d, Object.keys(u.options), s);
|
|
3696
|
+
a.push.apply(a, at(H.value, t, r, n, i, d - (u.offset || 0)));
|
|
3748
3697
|
continue;
|
|
3749
3698
|
}
|
|
3750
3699
|
}
|
|
3751
|
-
return
|
|
3700
|
+
return Xi(a);
|
|
3752
3701
|
}
|
|
3753
|
-
function
|
|
3702
|
+
function Zi(e, t) {
|
|
3754
3703
|
return t ? w(w(w({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3755
3704
|
return r[n] = w(w({}, e[n]), t[n] || {}), r;
|
|
3756
3705
|
}, {})) : e;
|
|
3757
3706
|
}
|
|
3758
|
-
function
|
|
3707
|
+
function qi(e, t) {
|
|
3759
3708
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3760
|
-
return r[n] =
|
|
3709
|
+
return r[n] = Zi(e[n], t[n]), r;
|
|
3761
3710
|
}, w({}, e)) : e;
|
|
3762
3711
|
}
|
|
3763
|
-
function
|
|
3712
|
+
function wt(e) {
|
|
3764
3713
|
return {
|
|
3765
3714
|
create: function() {
|
|
3766
3715
|
return {
|
|
@@ -3774,39 +3723,39 @@ function Pt(e) {
|
|
|
3774
3723
|
}
|
|
3775
3724
|
};
|
|
3776
3725
|
}
|
|
3777
|
-
function
|
|
3726
|
+
function Ji(e) {
|
|
3778
3727
|
return e === void 0 && (e = {
|
|
3779
3728
|
number: {},
|
|
3780
3729
|
dateTime: {},
|
|
3781
3730
|
pluralRules: {}
|
|
3782
3731
|
}), {
|
|
3783
|
-
getNumberFormat:
|
|
3732
|
+
getNumberFormat: vt(function() {
|
|
3784
3733
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3785
3734
|
r[n] = arguments[n];
|
|
3786
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3735
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, He([void 0], r, !1)))();
|
|
3787
3736
|
}, {
|
|
3788
|
-
cache:
|
|
3789
|
-
strategy:
|
|
3737
|
+
cache: wt(e.number),
|
|
3738
|
+
strategy: _t.variadic
|
|
3790
3739
|
}),
|
|
3791
|
-
getDateTimeFormat:
|
|
3740
|
+
getDateTimeFormat: vt(function() {
|
|
3792
3741
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3793
3742
|
r[n] = arguments[n];
|
|
3794
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3743
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, He([void 0], r, !1)))();
|
|
3795
3744
|
}, {
|
|
3796
|
-
cache:
|
|
3797
|
-
strategy:
|
|
3745
|
+
cache: wt(e.dateTime),
|
|
3746
|
+
strategy: _t.variadic
|
|
3798
3747
|
}),
|
|
3799
|
-
getPluralRules:
|
|
3748
|
+
getPluralRules: vt(function() {
|
|
3800
3749
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3801
3750
|
r[n] = arguments[n];
|
|
3802
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3751
|
+
return new ((t = Intl.PluralRules).bind.apply(t, He([void 0], r, !1)))();
|
|
3803
3752
|
}, {
|
|
3804
|
-
cache:
|
|
3805
|
-
strategy:
|
|
3753
|
+
cache: wt(e.pluralRules),
|
|
3754
|
+
strategy: _t.variadic
|
|
3806
3755
|
})
|
|
3807
3756
|
};
|
|
3808
3757
|
}
|
|
3809
|
-
var
|
|
3758
|
+
var Qi = (
|
|
3810
3759
|
/** @class */
|
|
3811
3760
|
function() {
|
|
3812
3761
|
function e(t, r, n, i) {
|
|
@@ -3816,20 +3765,20 @@ var fo = (
|
|
|
3816
3765
|
number: {},
|
|
3817
3766
|
dateTime: {},
|
|
3818
3767
|
pluralRules: {}
|
|
3819
|
-
}, this.format = function(
|
|
3820
|
-
var l = o.formatToParts(
|
|
3768
|
+
}, this.format = function(c) {
|
|
3769
|
+
var l = o.formatToParts(c);
|
|
3821
3770
|
if (l.length === 1)
|
|
3822
3771
|
return l[0].value;
|
|
3823
|
-
var
|
|
3772
|
+
var u = l.reduce(function(f, d) {
|
|
3824
3773
|
return !f.length || d.type !== X.literal || typeof f[f.length - 1] != "string" ? f.push(d.value) : f[f.length - 1] += d.value, f;
|
|
3825
3774
|
}, []);
|
|
3826
|
-
return
|
|
3827
|
-
}, this.formatToParts = function(
|
|
3828
|
-
return at(o.ast, o.locales, o.formatters, o.formats,
|
|
3775
|
+
return u.length <= 1 ? u[0] || "" : u;
|
|
3776
|
+
}, this.formatToParts = function(c) {
|
|
3777
|
+
return at(o.ast, o.locales, o.formatters, o.formats, c, void 0, o.message);
|
|
3829
3778
|
}, this.resolvedOptions = function() {
|
|
3830
|
-
var
|
|
3779
|
+
var c;
|
|
3831
3780
|
return {
|
|
3832
|
-
locale: ((
|
|
3781
|
+
locale: ((c = o.resolvedLocale) === null || c === void 0 ? void 0 : c.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
3833
3782
|
};
|
|
3834
3783
|
}, this.getAst = function() {
|
|
3835
3784
|
return o.ast;
|
|
@@ -3838,13 +3787,13 @@ var fo = (
|
|
|
3838
3787
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3839
3788
|
var s = i || {};
|
|
3840
3789
|
s.formatters;
|
|
3841
|
-
var a =
|
|
3790
|
+
var a = An(s, ["formatters"]);
|
|
3842
3791
|
this.ast = e.__parse(t, w(w({}, a), { locale: this.resolvedLocale }));
|
|
3843
3792
|
} else
|
|
3844
3793
|
this.ast = t;
|
|
3845
3794
|
if (!Array.isArray(this.ast))
|
|
3846
3795
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3847
|
-
this.formats =
|
|
3796
|
+
this.formats = qi(e.formats, n), this.formatters = i && i.formatters || Ji(this.formatterCache);
|
|
3848
3797
|
}
|
|
3849
3798
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3850
3799
|
get: function() {
|
|
@@ -3853,11 +3802,11 @@ var fo = (
|
|
|
3853
3802
|
enumerable: !1,
|
|
3854
3803
|
configurable: !0
|
|
3855
3804
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3856
|
-
if (typeof Intl.Locale
|
|
3805
|
+
if (!(typeof Intl.Locale > "u")) {
|
|
3857
3806
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3858
3807
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3859
3808
|
}
|
|
3860
|
-
}, e.__parse =
|
|
3809
|
+
}, e.__parse = ji, e.formats = {
|
|
3861
3810
|
number: {
|
|
3862
3811
|
integer: {
|
|
3863
3812
|
maximumFractionDigits: 0
|
|
@@ -3918,7 +3867,7 @@ var fo = (
|
|
|
3918
3867
|
}, e;
|
|
3919
3868
|
}()
|
|
3920
3869
|
);
|
|
3921
|
-
function
|
|
3870
|
+
function Yi(e, t) {
|
|
3922
3871
|
if (t == null)
|
|
3923
3872
|
return;
|
|
3924
3873
|
if (t in e)
|
|
@@ -3939,92 +3888,92 @@ function mo(e, t) {
|
|
|
3939
3888
|
n = void 0;
|
|
3940
3889
|
return n;
|
|
3941
3890
|
}
|
|
3942
|
-
const
|
|
3891
|
+
const ce = {}, Ki = (e, t, r) => r && (t in ce || (ce[t] = {}), e in ce[t] || (ce[t][e] = r), r), Zr = (e, t) => {
|
|
3943
3892
|
if (t == null)
|
|
3944
3893
|
return;
|
|
3945
|
-
if (t in
|
|
3946
|
-
return
|
|
3894
|
+
if (t in ce && e in ce[t])
|
|
3895
|
+
return ce[t][e];
|
|
3947
3896
|
const r = pt(t);
|
|
3948
3897
|
for (let n = 0; n < r.length; n++) {
|
|
3949
|
-
const i = r[n], o =
|
|
3898
|
+
const i = r[n], o = to(i, e);
|
|
3950
3899
|
if (o)
|
|
3951
|
-
return
|
|
3900
|
+
return Ki(e, t, o);
|
|
3952
3901
|
}
|
|
3953
3902
|
};
|
|
3954
|
-
let
|
|
3955
|
-
const
|
|
3956
|
-
function
|
|
3957
|
-
return
|
|
3903
|
+
let $t;
|
|
3904
|
+
const Me = dt({});
|
|
3905
|
+
function eo(e) {
|
|
3906
|
+
return $t[e] || null;
|
|
3958
3907
|
}
|
|
3959
|
-
function
|
|
3960
|
-
return e in
|
|
3908
|
+
function qr(e) {
|
|
3909
|
+
return e in $t;
|
|
3961
3910
|
}
|
|
3962
|
-
function
|
|
3963
|
-
if (!
|
|
3911
|
+
function to(e, t) {
|
|
3912
|
+
if (!qr(e))
|
|
3964
3913
|
return null;
|
|
3965
|
-
const r =
|
|
3966
|
-
return
|
|
3914
|
+
const r = eo(e);
|
|
3915
|
+
return Yi(r, t);
|
|
3967
3916
|
}
|
|
3968
|
-
function
|
|
3917
|
+
function ro(e) {
|
|
3969
3918
|
if (e == null)
|
|
3970
3919
|
return;
|
|
3971
3920
|
const t = pt(e);
|
|
3972
3921
|
for (let r = 0; r < t.length; r++) {
|
|
3973
3922
|
const n = t[r];
|
|
3974
|
-
if (
|
|
3923
|
+
if (qr(n))
|
|
3975
3924
|
return n;
|
|
3976
3925
|
}
|
|
3977
3926
|
}
|
|
3978
|
-
function
|
|
3979
|
-
delete
|
|
3927
|
+
function Jr(e, ...t) {
|
|
3928
|
+
delete ce[e], Me.update((r) => (r[e] = si.all([r[e] || {}, ...t]), r));
|
|
3980
3929
|
}
|
|
3981
|
-
|
|
3982
|
-
[
|
|
3930
|
+
Le(
|
|
3931
|
+
[Me],
|
|
3983
3932
|
([e]) => Object.keys(e)
|
|
3984
3933
|
);
|
|
3985
|
-
|
|
3934
|
+
Me.subscribe((e) => $t = e);
|
|
3986
3935
|
const lt = {};
|
|
3987
|
-
function
|
|
3936
|
+
function no(e, t) {
|
|
3988
3937
|
lt[e].delete(t), lt[e].size === 0 && delete lt[e];
|
|
3989
3938
|
}
|
|
3990
|
-
function
|
|
3939
|
+
function Qr(e) {
|
|
3991
3940
|
return lt[e];
|
|
3992
3941
|
}
|
|
3993
|
-
function
|
|
3942
|
+
function io(e) {
|
|
3994
3943
|
return pt(e).map((t) => {
|
|
3995
|
-
const r =
|
|
3944
|
+
const r = Qr(t);
|
|
3996
3945
|
return [t, r ? [...r] : []];
|
|
3997
3946
|
}).filter(([, t]) => t.length > 0);
|
|
3998
3947
|
}
|
|
3999
|
-
function
|
|
3948
|
+
function Ut(e) {
|
|
4000
3949
|
return e == null ? !1 : pt(e).some(
|
|
4001
3950
|
(t) => {
|
|
4002
3951
|
var r;
|
|
4003
|
-
return (r =
|
|
3952
|
+
return (r = Qr(t)) == null ? void 0 : r.size;
|
|
4004
3953
|
}
|
|
4005
3954
|
);
|
|
4006
3955
|
}
|
|
4007
|
-
function
|
|
3956
|
+
function oo(e, t) {
|
|
4008
3957
|
return Promise.all(
|
|
4009
|
-
t.map((n) => (
|
|
4010
|
-
).then((n) =>
|
|
4011
|
-
}
|
|
4012
|
-
const
|
|
4013
|
-
function
|
|
4014
|
-
if (!
|
|
4015
|
-
return e in
|
|
4016
|
-
const t =
|
|
4017
|
-
return
|
|
3958
|
+
t.map((n) => (no(e, n), n().then((i) => i.default || i)))
|
|
3959
|
+
).then((n) => Jr(e, ...n));
|
|
3960
|
+
}
|
|
3961
|
+
const Ve = {};
|
|
3962
|
+
function Yr(e) {
|
|
3963
|
+
if (!Ut(e))
|
|
3964
|
+
return e in Ve ? Ve[e] : Promise.resolve();
|
|
3965
|
+
const t = io(e);
|
|
3966
|
+
return Ve[e] = Promise.all(
|
|
4018
3967
|
t.map(
|
|
4019
|
-
([r, n]) =>
|
|
3968
|
+
([r, n]) => oo(r, n)
|
|
4020
3969
|
)
|
|
4021
3970
|
).then(() => {
|
|
4022
|
-
if (
|
|
4023
|
-
return
|
|
4024
|
-
delete
|
|
4025
|
-
}),
|
|
3971
|
+
if (Ut(e))
|
|
3972
|
+
return Yr(e);
|
|
3973
|
+
delete Ve[e];
|
|
3974
|
+
}), Ve[e];
|
|
4026
3975
|
}
|
|
4027
|
-
const
|
|
3976
|
+
const so = {
|
|
4028
3977
|
number: {
|
|
4029
3978
|
scientific: { notation: "scientific" },
|
|
4030
3979
|
engineering: { notation: "engineering" },
|
|
@@ -4053,57 +4002,57 @@ const wo = {
|
|
|
4053
4002
|
timeZoneName: "short"
|
|
4054
4003
|
}
|
|
4055
4004
|
}
|
|
4056
|
-
},
|
|
4005
|
+
}, ao = {
|
|
4057
4006
|
fallbackLocale: null,
|
|
4058
4007
|
loadingDelay: 200,
|
|
4059
|
-
formats:
|
|
4008
|
+
formats: so,
|
|
4060
4009
|
warnOnMissingMessages: !0,
|
|
4061
4010
|
handleMissingMessage: void 0,
|
|
4062
4011
|
ignoreTag: !0
|
|
4063
|
-
},
|
|
4064
|
-
function
|
|
4065
|
-
return
|
|
4066
|
-
}
|
|
4067
|
-
const
|
|
4068
|
-
var
|
|
4069
|
-
for (var r in t
|
|
4070
|
-
|
|
4071
|
-
if (
|
|
4072
|
-
for (var r of
|
|
4073
|
-
|
|
4012
|
+
}, lo = ao;
|
|
4013
|
+
function Ce() {
|
|
4014
|
+
return lo;
|
|
4015
|
+
}
|
|
4016
|
+
const xt = dt(!1);
|
|
4017
|
+
var uo = Object.defineProperty, co = Object.defineProperties, ho = Object.getOwnPropertyDescriptors, ur = Object.getOwnPropertySymbols, fo = Object.prototype.hasOwnProperty, mo = Object.prototype.propertyIsEnumerable, cr = (e, t, r) => t in e ? uo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, po = (e, t) => {
|
|
4018
|
+
for (var r in t)
|
|
4019
|
+
fo.call(t, r) && cr(e, r, t[r]);
|
|
4020
|
+
if (ur)
|
|
4021
|
+
for (var r of ur(t))
|
|
4022
|
+
mo.call(t, r) && cr(e, r, t[r]);
|
|
4074
4023
|
return e;
|
|
4075
|
-
},
|
|
4076
|
-
let
|
|
4024
|
+
}, go = (e, t) => co(e, ho(t));
|
|
4025
|
+
let Ft;
|
|
4077
4026
|
const ct = dt(null);
|
|
4078
|
-
function
|
|
4027
|
+
function hr(e) {
|
|
4079
4028
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4080
4029
|
}
|
|
4081
|
-
function pt(e, t =
|
|
4082
|
-
const r =
|
|
4083
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4030
|
+
function pt(e, t = Ce().fallbackLocale) {
|
|
4031
|
+
const r = hr(e);
|
|
4032
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...hr(t)])] : r;
|
|
4084
4033
|
}
|
|
4085
|
-
function
|
|
4086
|
-
return
|
|
4034
|
+
function ge() {
|
|
4035
|
+
return Ft ?? void 0;
|
|
4087
4036
|
}
|
|
4088
4037
|
ct.subscribe((e) => {
|
|
4089
|
-
|
|
4038
|
+
Ft = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4090
4039
|
});
|
|
4091
|
-
const
|
|
4092
|
-
if (e &&
|
|
4093
|
-
const { loadingDelay: t } =
|
|
4040
|
+
const bo = (e) => {
|
|
4041
|
+
if (e && ro(e) && Ut(e)) {
|
|
4042
|
+
const { loadingDelay: t } = Ce();
|
|
4094
4043
|
let r;
|
|
4095
|
-
return typeof window
|
|
4096
|
-
() =>
|
|
4044
|
+
return typeof window < "u" && ge() != null && t ? r = window.setTimeout(
|
|
4045
|
+
() => xt.set(!0),
|
|
4097
4046
|
t
|
|
4098
|
-
) :
|
|
4047
|
+
) : xt.set(!0), Yr(e).then(() => {
|
|
4099
4048
|
ct.set(e);
|
|
4100
4049
|
}).finally(() => {
|
|
4101
|
-
clearTimeout(r),
|
|
4050
|
+
clearTimeout(r), xt.set(!1);
|
|
4102
4051
|
});
|
|
4103
4052
|
}
|
|
4104
4053
|
return ct.set(e);
|
|
4105
|
-
},
|
|
4106
|
-
set:
|
|
4054
|
+
}, he = go(po({}, ct), {
|
|
4055
|
+
set: bo
|
|
4107
4056
|
}), gt = (e) => {
|
|
4108
4057
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4109
4058
|
return (n) => {
|
|
@@ -4111,101 +4060,101 @@ const Oo = (e) => {
|
|
|
4111
4060
|
return i in t ? t[i] : t[i] = e(n);
|
|
4112
4061
|
};
|
|
4113
4062
|
};
|
|
4114
|
-
var
|
|
4063
|
+
var yo = Object.defineProperty, ht = Object.getOwnPropertySymbols, Kr = Object.prototype.hasOwnProperty, en = Object.prototype.propertyIsEnumerable, fr = (e, t, r) => t in e ? yo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Gt = (e, t) => {
|
|
4115
4064
|
for (var r in t || (t = {}))
|
|
4116
|
-
|
|
4065
|
+
Kr.call(t, r) && fr(e, r, t[r]);
|
|
4117
4066
|
if (ht)
|
|
4118
4067
|
for (var r of ht(t))
|
|
4119
|
-
|
|
4068
|
+
en.call(t, r) && fr(e, r, t[r]);
|
|
4120
4069
|
return e;
|
|
4121
|
-
},
|
|
4070
|
+
}, Ne = (e, t) => {
|
|
4122
4071
|
var r = {};
|
|
4123
4072
|
for (var n in e)
|
|
4124
|
-
|
|
4073
|
+
Kr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4125
4074
|
if (e != null && ht)
|
|
4126
4075
|
for (var n of ht(e))
|
|
4127
|
-
t.indexOf(n) < 0 &&
|
|
4076
|
+
t.indexOf(n) < 0 && en.call(e, n) && (r[n] = e[n]);
|
|
4128
4077
|
return r;
|
|
4129
4078
|
};
|
|
4130
|
-
const
|
|
4131
|
-
const { formats: r } =
|
|
4079
|
+
const Ze = (e, t) => {
|
|
4080
|
+
const { formats: r } = Ce();
|
|
4132
4081
|
if (e in r && t in r[e])
|
|
4133
4082
|
return r[e][t];
|
|
4134
4083
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4135
|
-
},
|
|
4084
|
+
}, vo = gt(
|
|
4136
4085
|
(e) => {
|
|
4137
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4086
|
+
var t = e, { locale: r, format: n } = t, i = Ne(t, ["locale", "format"]);
|
|
4138
4087
|
if (r == null)
|
|
4139
4088
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4140
|
-
return n && (i =
|
|
4089
|
+
return n && (i = Ze("number", n)), new Intl.NumberFormat(r, i);
|
|
4141
4090
|
}
|
|
4142
|
-
),
|
|
4091
|
+
), _o = gt(
|
|
4143
4092
|
(e) => {
|
|
4144
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4093
|
+
var t = e, { locale: r, format: n } = t, i = Ne(t, ["locale", "format"]);
|
|
4145
4094
|
if (r == null)
|
|
4146
4095
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4147
|
-
return n ? i =
|
|
4096
|
+
return n ? i = Ze("date", n) : Object.keys(i).length === 0 && (i = Ze("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4148
4097
|
}
|
|
4149
|
-
),
|
|
4098
|
+
), Eo = gt(
|
|
4150
4099
|
(e) => {
|
|
4151
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4100
|
+
var t = e, { locale: r, format: n } = t, i = Ne(t, ["locale", "format"]);
|
|
4152
4101
|
if (r == null)
|
|
4153
4102
|
throw new Error(
|
|
4154
4103
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4155
4104
|
);
|
|
4156
|
-
return n ? i =
|
|
4105
|
+
return n ? i = Ze("time", n) : Object.keys(i).length === 0 && (i = Ze("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4157
4106
|
}
|
|
4158
|
-
),
|
|
4107
|
+
), wo = (e = {}) => {
|
|
4159
4108
|
var t = e, {
|
|
4160
|
-
locale: r =
|
|
4161
|
-
} = t, n =
|
|
4109
|
+
locale: r = ge()
|
|
4110
|
+
} = t, n = Ne(t, [
|
|
4162
4111
|
"locale"
|
|
4163
4112
|
]);
|
|
4164
|
-
return
|
|
4165
|
-
},
|
|
4113
|
+
return vo(Gt({ locale: r }, n));
|
|
4114
|
+
}, xo = (e = {}) => {
|
|
4166
4115
|
var t = e, {
|
|
4167
|
-
locale: r =
|
|
4168
|
-
} = t, n =
|
|
4116
|
+
locale: r = ge()
|
|
4117
|
+
} = t, n = Ne(t, [
|
|
4169
4118
|
"locale"
|
|
4170
4119
|
]);
|
|
4171
|
-
return
|
|
4172
|
-
},
|
|
4120
|
+
return _o(Gt({ locale: r }, n));
|
|
4121
|
+
}, So = (e = {}) => {
|
|
4173
4122
|
var t = e, {
|
|
4174
|
-
locale: r =
|
|
4175
|
-
} = t, n =
|
|
4123
|
+
locale: r = ge()
|
|
4124
|
+
} = t, n = Ne(t, [
|
|
4176
4125
|
"locale"
|
|
4177
4126
|
]);
|
|
4178
|
-
return
|
|
4179
|
-
},
|
|
4127
|
+
return Eo(Gt({ locale: r }, n));
|
|
4128
|
+
}, Po = gt(
|
|
4180
4129
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4181
|
-
(e, t =
|
|
4182
|
-
ignoreTag:
|
|
4130
|
+
(e, t = ge()) => new Qi(e, t, Ce().formats, {
|
|
4131
|
+
ignoreTag: Ce().ignoreTag
|
|
4183
4132
|
})
|
|
4184
|
-
),
|
|
4133
|
+
), To = (e, t = {}) => {
|
|
4185
4134
|
var r, n, i, o;
|
|
4186
4135
|
let s = t;
|
|
4187
4136
|
typeof e == "object" && (s = e, e = s.id);
|
|
4188
4137
|
const {
|
|
4189
4138
|
values: a,
|
|
4190
|
-
locale:
|
|
4139
|
+
locale: c = ge(),
|
|
4191
4140
|
default: l
|
|
4192
4141
|
} = s;
|
|
4193
|
-
if (
|
|
4142
|
+
if (c == null)
|
|
4194
4143
|
throw new Error(
|
|
4195
4144
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4196
4145
|
);
|
|
4197
|
-
let
|
|
4198
|
-
if (!
|
|
4199
|
-
|
|
4200
|
-
else if (typeof
|
|
4146
|
+
let u = Zr(e, c);
|
|
4147
|
+
if (!u)
|
|
4148
|
+
u = (o = (i = (n = (r = Ce()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: c, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
4149
|
+
else if (typeof u != "string")
|
|
4201
4150
|
return console.warn(
|
|
4202
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
4203
|
-
),
|
|
4151
|
+
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
4152
|
+
), u;
|
|
4204
4153
|
if (!a)
|
|
4205
|
-
return
|
|
4206
|
-
let f =
|
|
4154
|
+
return u;
|
|
4155
|
+
let f = u;
|
|
4207
4156
|
try {
|
|
4208
|
-
f =
|
|
4157
|
+
f = Po(u, c).format(a);
|
|
4209
4158
|
} catch (d) {
|
|
4210
4159
|
d instanceof Error && console.warn(
|
|
4211
4160
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4213,14 +4162,14 @@ const qe = (e, t) => {
|
|
|
4213
4162
|
);
|
|
4214
4163
|
}
|
|
4215
4164
|
return f;
|
|
4216
|
-
},
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
window.emWidgets = { topic:
|
|
4222
|
-
const
|
|
4223
|
-
if (typeof window
|
|
4165
|
+
}, Ho = (e, t) => So(t).format(e), Bo = (e, t) => xo(t).format(e), Ao = (e, t) => wo(t).format(e), Io = (e, t = ge()) => Zr(e, t), Co = Le([he, Me], () => To);
|
|
4166
|
+
Le([he], () => Ho);
|
|
4167
|
+
Le([he], () => Bo);
|
|
4168
|
+
Le([he], () => Ao);
|
|
4169
|
+
Le([he, Me], () => Io);
|
|
4170
|
+
window.emWidgets = { topic: jn };
|
|
4171
|
+
const Oo = (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));
|
|
4172
|
+
if (typeof window < "u") {
|
|
4224
4173
|
let e = function(t) {
|
|
4225
4174
|
return function(...r) {
|
|
4226
4175
|
try {
|
|
@@ -4232,22 +4181,22 @@ if (typeof window != "undefined") {
|
|
|
4232
4181
|
}
|
|
4233
4182
|
};
|
|
4234
4183
|
};
|
|
4235
|
-
customElements.define = e(customElements.define), import("./GeneralPlayerSmsVerificationForm-
|
|
4184
|
+
customElements.define = e(customElements.define), import("./GeneralPlayerSmsVerificationForm-COg-pr9r.js").then(({ default: t }) => {
|
|
4236
4185
|
!customElements.get("general-player-sms-verification-form") && customElements.define("general-player-sms-verification-form", t.element);
|
|
4237
4186
|
});
|
|
4238
4187
|
}
|
|
4239
|
-
function
|
|
4240
|
-
|
|
4241
|
-
r == null && (
|
|
4188
|
+
function Lo({ withLocale: e, translations: t }) {
|
|
4189
|
+
he.subscribe((r) => {
|
|
4190
|
+
r == null && (Me.set(t), he.set(e));
|
|
4242
4191
|
});
|
|
4243
4192
|
}
|
|
4244
|
-
function
|
|
4245
|
-
|
|
4193
|
+
function dr(e, t) {
|
|
4194
|
+
Jr(e, t);
|
|
4246
4195
|
}
|
|
4247
|
-
function
|
|
4248
|
-
|
|
4196
|
+
function Mo(e) {
|
|
4197
|
+
he.set(e);
|
|
4249
4198
|
}
|
|
4250
|
-
const
|
|
4199
|
+
const mr = {
|
|
4251
4200
|
en: {
|
|
4252
4201
|
loginTitle: "Welcome",
|
|
4253
4202
|
loginSubtitle: "Don't have an account yet?",
|
|
@@ -4391,15 +4340,15 @@ const xr = {
|
|
|
4391
4340
|
loginForgotPassword: "I forgot my password",
|
|
4392
4341
|
successMessage: "Login successful"
|
|
4393
4342
|
}
|
|
4394
|
-
}, { document:
|
|
4395
|
-
function
|
|
4396
|
-
|
|
4343
|
+
}, { document: pr } = an;
|
|
4344
|
+
function No(e) {
|
|
4345
|
+
ln(e, "svelte-b3dr9t", '.grecaptcha-badge{opacity:0}.PlayerLoginFormWrapper{height:100%}.FormContainer{width:100%}.FormLogin{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #F9F8F8));padding:50px}.FormHeaderTitle{color:var(--emw--registration-typography, var(--emw--color-contrast, #07072A));font-size:20px;font-weight:300;padding:0;text-transform:uppercase;margin:0}.PasswordContainer{position:relative}.FormRequired{color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.FormHeaderSubtitle{color:var(--emw--registration-contrast, var(--emw--color-gray-300, #58586B));font-size:14px;font-weight:300;margin:5px 0 0 0}.FormRegisterCallToAction{color:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));font-size:14px;font-weight:400;text-decoration:none;cursor:pointer}.FormContent{padding-top:20px}.UserContainer,.PasswordContainer,.CaptchaContainer{color:var(--emw--registration-contrast, var(--emw--color-gray-300, #58586B));display:flex;flex-direction:column;position:relative}.UserContainer label,.PasswordContainer label,.CaptchaContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.UserContainer input,.PasswordContainer input,.CaptchaContainer input{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.UserContainer.InvalidField input,.PasswordContainer.InvalidField input,.CaptchaContainer.InvalidField input{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C))}.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--registration-color-primary, var(--emw--color-primary, #D0046C))}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect{fill:var(--emw--registration-contrast, var(--emw--color-gray-300, #58586B))}.SignInButton{color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;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:14px;font-weight:300;color:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));margin-top:15px;cursor:pointer}.PasswordContainer,.UserContainer{padding-bottom:40px}.InvalidInput{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:10px;position:absolute;top:55px;padding-top:5px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:12px;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.FormMobileContainer{height:100%}.FormMobileContainer .FormLogin{padding:40px 20px}.FormMobileContainer .SignInButton,.FormMobileContainer .UserContainer input,.FormMobileContainer .PasswordContainer input,.FormMobileContainer .CaptchaContainer{max-width:unset}.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, #D0046C));border-color:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C)) transparent var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C)) 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)}}');
|
|
4397
4346
|
}
|
|
4398
|
-
function
|
|
4347
|
+
function gr(e) {
|
|
4399
4348
|
let t, r;
|
|
4400
4349
|
return {
|
|
4401
4350
|
c() {
|
|
4402
|
-
t = S("script"),
|
|
4351
|
+
t = S("script"), zt(t.src, r = "//www.google.com/recaptcha/api.js?render=" + /*captchakey*/
|
|
4403
4352
|
e[1]) || h(t, "src", r), t.async = !0, t.defer = !0;
|
|
4404
4353
|
},
|
|
4405
4354
|
m(n, i) {
|
|
@@ -4407,7 +4356,7 @@ function Pr(e) {
|
|
|
4407
4356
|
},
|
|
4408
4357
|
p(n, i) {
|
|
4409
4358
|
i[0] & /*captchakey*/
|
|
4410
|
-
2 && !
|
|
4359
|
+
2 && !zt(t.src, r = "//www.google.com/recaptcha/api.js?render=" + /*captchakey*/
|
|
4411
4360
|
n[1]) && h(t, "src", r);
|
|
4412
4361
|
},
|
|
4413
4362
|
d(n) {
|
|
@@ -4415,12 +4364,12 @@ function Pr(e) {
|
|
|
4415
4364
|
}
|
|
4416
4365
|
};
|
|
4417
4366
|
}
|
|
4418
|
-
function
|
|
4367
|
+
function Ro(e) {
|
|
4419
4368
|
let t, r, n;
|
|
4420
|
-
function i(a,
|
|
4369
|
+
function i(a, c) {
|
|
4421
4370
|
return (
|
|
4422
4371
|
/*startSmsValidation*/
|
|
4423
|
-
a[20] ?
|
|
4372
|
+
a[20] ? Do : Fo
|
|
4424
4373
|
);
|
|
4425
4374
|
}
|
|
4426
4375
|
let o = i(e), s = o(e);
|
|
@@ -4429,11 +4378,11 @@ function Qo(e) {
|
|
|
4429
4378
|
t = S("div"), r = S("div"), s.c(), h(r, "class", "FormLogin"), h(t, "class", n = "FormContainer " + /*mobileView*/
|
|
4430
4379
|
(e[10] ? "FormMobileContainer" : ""));
|
|
4431
4380
|
},
|
|
4432
|
-
m(a,
|
|
4433
|
-
L(a, t,
|
|
4381
|
+
m(a, c) {
|
|
4382
|
+
L(a, t, c), m(t, r), s.m(r, null);
|
|
4434
4383
|
},
|
|
4435
|
-
p(a,
|
|
4436
|
-
o === (o = i(a)) && s ? s.p(a,
|
|
4384
|
+
p(a, c) {
|
|
4385
|
+
o === (o = i(a)) && s ? s.p(a, c) : (s.d(1), s = o(a), s && (s.c(), s.m(r, null))), c[0] & /*mobileView*/
|
|
4437
4386
|
1024 && n !== (n = "FormContainer " + /*mobileView*/
|
|
4438
4387
|
(a[10] ? "FormMobileContainer" : "")) && h(t, "class", n);
|
|
4439
4388
|
},
|
|
@@ -4442,7 +4391,7 @@ function Qo(e) {
|
|
|
4442
4391
|
}
|
|
4443
4392
|
};
|
|
4444
4393
|
}
|
|
4445
|
-
function
|
|
4394
|
+
function Uo(e) {
|
|
4446
4395
|
let t;
|
|
4447
4396
|
return {
|
|
4448
4397
|
c() {
|
|
@@ -4457,193 +4406,193 @@ function Yo(e) {
|
|
|
4457
4406
|
}
|
|
4458
4407
|
};
|
|
4459
4408
|
}
|
|
4460
|
-
function
|
|
4409
|
+
function Fo(e) {
|
|
4461
4410
|
let t, r, n = (
|
|
4462
4411
|
/*$_*/
|
|
4463
4412
|
e[21]("loginTitle") + ""
|
|
4464
4413
|
), i, o, s, a = (
|
|
4465
4414
|
/*$_*/
|
|
4466
4415
|
e[21]("loginSubtitle") + ""
|
|
4467
|
-
),
|
|
4416
|
+
), c, l, u, f = (
|
|
4468
4417
|
/*$_*/
|
|
4469
4418
|
e[21]("loginSubtitleRegister") + ""
|
|
4470
|
-
), d, b,
|
|
4419
|
+
), d, b, v, g, x, M, q = (
|
|
4471
4420
|
/*$_*/
|
|
4472
4421
|
e[21]("loginUsername") + ""
|
|
4473
|
-
), H, R, G, J, B,
|
|
4422
|
+
), H, R, G, J, B, ie, re, ne, fe, A, W, be = (
|
|
4474
4423
|
/*$_*/
|
|
4475
4424
|
e[21]("loginPassword") + ""
|
|
4476
|
-
),
|
|
4425
|
+
), Re, Ue, oe, qe, C, ye, Fe, ve, _e, de, De, me, K, pe = (
|
|
4477
4426
|
/*$_*/
|
|
4478
4427
|
e[21]("loginButton") + ""
|
|
4479
|
-
),
|
|
4428
|
+
), ke, Je, ue, Ee = (
|
|
4480
4429
|
/*$_*/
|
|
4481
4430
|
e[21]("loginForgotPassword") + ""
|
|
4482
|
-
),
|
|
4431
|
+
), $e, Ge, Qe, U = (
|
|
4483
4432
|
/*invalidName*/
|
|
4484
|
-
e[13] &&
|
|
4433
|
+
e[13] && br(e)
|
|
4485
4434
|
);
|
|
4486
|
-
function
|
|
4435
|
+
function Ye(y, P) {
|
|
4487
4436
|
return (
|
|
4488
4437
|
/*isPasswordVisible*/
|
|
4489
|
-
|
|
4438
|
+
y[18] ? $o : ko
|
|
4490
4439
|
);
|
|
4491
4440
|
}
|
|
4492
|
-
let
|
|
4441
|
+
let we = Ye(e), Q = we(e), F = (
|
|
4493
4442
|
/*invalidPassword*/
|
|
4494
4443
|
e[14] && /*simplepasswordvalidation*/
|
|
4495
|
-
e[2] !== "true" &&
|
|
4444
|
+
e[2] !== "true" && yr(e)
|
|
4496
4445
|
), D = (
|
|
4497
4446
|
/*invalidPassword*/
|
|
4498
4447
|
e[14] && /*simplepasswordvalidation*/
|
|
4499
|
-
e[2] === "true" &&
|
|
4448
|
+
e[2] === "true" && vr(e)
|
|
4500
4449
|
), k = (
|
|
4501
4450
|
/*errorMessage*/
|
|
4502
|
-
e[15] &&
|
|
4451
|
+
e[15] && _r(e)
|
|
4503
4452
|
);
|
|
4504
4453
|
return {
|
|
4505
4454
|
c() {
|
|
4506
|
-
t = S("div"), r = S("h4"), i = N(n), o = z(), s = S("p"),
|
|
4507
|
-
e[5] ? "username email" : "off"), B.required = !0, h(x, "class",
|
|
4508
|
-
(e[13] ? "InvalidField" : "")), h(
|
|
4509
|
-
e[5] ? "current-password" : "off"), h(C, "aria-describedby", "password-constraints"), C.required = !0, h(A, "class",
|
|
4510
|
-
(e[14] ? "InvalidField" : "")), h(
|
|
4511
|
-
e[19], h(
|
|
4455
|
+
t = S("div"), r = S("h4"), i = N(n), o = z(), s = S("p"), c = N(a), l = z(), u = S("span"), d = N(f), b = z(), v = S("div"), g = S("form"), x = S("div"), M = S("label"), H = N(q), R = N(":"), G = S("span"), G.textContent = "*", J = z(), B = S("input"), re = z(), U && U.c(), fe = z(), A = S("div"), W = S("label"), Re = N(be), Ue = N(":"), oe = S("span"), oe.textContent = "*", qe = z(), C = S("input"), Fe = z(), Q.c(), ve = z(), F && F.c(), _e = z(), D && D.c(), De = z(), k && k.c(), me = z(), K = S("button"), ke = N(pe), Je = z(), ue = S("button"), $e = N(Ee), h(r, "class", "FormHeaderTitle"), h(u, "class", "FormRegisterCallToAction"), h(s, "class", "FormHeaderSubtitle"), h(t, "class", "FormHeader"), h(G, "class", "FormRequired"), h(M, "for", "username"), h(B, "type", "text"), h(B, "id", "email"), h(B, "name", "email"), h(B, "autocapitalize", "none"), h(B, "autocomplete", ie = /*savecredentials*/
|
|
4456
|
+
e[5] ? "username email" : "off"), B.required = !0, h(x, "class", ne = "UserContainer " + /*invalidName*/
|
|
4457
|
+
(e[13] ? "InvalidField" : "")), h(oe, "class", "FormRequired"), h(W, "for", "current-password"), h(C, "type", "password"), h(C, "name", "current-password"), h(C, "id", "current-password"), h(C, "autocapitalize", "none"), h(C, "autocomplete", ye = /*savecredentials*/
|
|
4458
|
+
e[5] ? "current-password" : "off"), h(C, "aria-describedby", "password-constraints"), C.required = !0, h(A, "class", de = "PasswordContainer " + /*invalidPassword*/
|
|
4459
|
+
(e[14] ? "InvalidField" : "")), h(K, "class", "SignInButton"), K.disabled = /*isFormDataInvalid*/
|
|
4460
|
+
e[19], h(K, "id", "signin-button"), h(ue, "class", "ForgotPasswordButton"), h(g, "id", "signin"), h(v, "class", "FormContent");
|
|
4512
4461
|
},
|
|
4513
|
-
m(
|
|
4514
|
-
L(
|
|
4462
|
+
m(y, P) {
|
|
4463
|
+
L(y, t, P), m(t, r), m(r, i), m(t, o), m(t, s), m(s, c), m(s, l), m(s, u), m(u, d), L(y, b, P), L(y, v, P), m(v, g), m(g, x), m(x, M), m(M, H), m(M, R), m(M, G), m(x, J), m(x, B), rt(
|
|
4515
4464
|
B,
|
|
4516
4465
|
/*userValue*/
|
|
4517
4466
|
e[11]
|
|
4518
|
-
),
|
|
4467
|
+
), m(x, re), U && U.m(x, null), m(g, fe), m(g, A), m(A, W), m(W, Re), m(W, Ue), m(W, oe), m(A, qe), m(A, C), rt(
|
|
4519
4468
|
C,
|
|
4520
4469
|
/*userPassword*/
|
|
4521
4470
|
e[12]
|
|
4522
|
-
), e[35](C),
|
|
4523
|
-
|
|
4524
|
-
|
|
4471
|
+
), e[35](C), m(A, Fe), Q.m(A, null), m(A, ve), F && F.m(A, null), m(A, _e), D && D.m(A, null), m(g, De), k && k.m(g, null), m(g, me), m(g, K), m(K, ke), m(g, Je), m(g, ue), m(ue, $e), Ge || (Qe = [
|
|
4472
|
+
se(
|
|
4473
|
+
u,
|
|
4525
4474
|
"click",
|
|
4526
4475
|
/*click_handler*/
|
|
4527
4476
|
e[32]
|
|
4528
4477
|
),
|
|
4529
|
-
|
|
4478
|
+
se(
|
|
4530
4479
|
B,
|
|
4531
4480
|
"input",
|
|
4532
4481
|
/*input0_input_handler*/
|
|
4533
4482
|
e[33]
|
|
4534
4483
|
),
|
|
4535
|
-
|
|
4484
|
+
se(
|
|
4536
4485
|
B,
|
|
4537
4486
|
"input",
|
|
4538
4487
|
/*validateUserName*/
|
|
4539
4488
|
e[27]
|
|
4540
4489
|
),
|
|
4541
|
-
|
|
4490
|
+
se(
|
|
4542
4491
|
C,
|
|
4543
4492
|
"input",
|
|
4544
4493
|
/*input1_input_handler*/
|
|
4545
4494
|
e[34]
|
|
4546
4495
|
),
|
|
4547
|
-
|
|
4496
|
+
se(
|
|
4548
4497
|
C,
|
|
4549
4498
|
"input",
|
|
4550
4499
|
/*validatePassword*/
|
|
4551
4500
|
e[28]
|
|
4552
4501
|
),
|
|
4553
|
-
|
|
4554
|
-
|
|
4502
|
+
se(
|
|
4503
|
+
K,
|
|
4555
4504
|
"click",
|
|
4556
4505
|
/*click_handler_3*/
|
|
4557
4506
|
e[38]
|
|
4558
4507
|
),
|
|
4559
|
-
|
|
4560
|
-
|
|
4508
|
+
se(
|
|
4509
|
+
ue,
|
|
4561
4510
|
"click",
|
|
4562
4511
|
/*click_handler_4*/
|
|
4563
4512
|
e[39]
|
|
4564
4513
|
)
|
|
4565
|
-
],
|
|
4514
|
+
], Ge = !0);
|
|
4566
4515
|
},
|
|
4567
|
-
p(
|
|
4516
|
+
p(y, P) {
|
|
4568
4517
|
P[0] & /*$_*/
|
|
4569
4518
|
2097152 && n !== (n = /*$_*/
|
|
4570
|
-
|
|
4519
|
+
y[21]("loginTitle") + "") && te(i, n), P[0] & /*$_*/
|
|
4571
4520
|
2097152 && a !== (a = /*$_*/
|
|
4572
|
-
|
|
4521
|
+
y[21]("loginSubtitle") + "") && te(c, a), P[0] & /*$_*/
|
|
4573
4522
|
2097152 && f !== (f = /*$_*/
|
|
4574
|
-
|
|
4523
|
+
y[21]("loginSubtitleRegister") + "") && te(d, f), P[0] & /*$_*/
|
|
4575
4524
|
2097152 && q !== (q = /*$_*/
|
|
4576
|
-
|
|
4577
|
-
32 &&
|
|
4578
|
-
|
|
4525
|
+
y[21]("loginUsername") + "") && te(H, q), P[0] & /*savecredentials*/
|
|
4526
|
+
32 && ie !== (ie = /*savecredentials*/
|
|
4527
|
+
y[5] ? "username email" : "off") && h(B, "autocomplete", ie), P[0] & /*userValue*/
|
|
4579
4528
|
2048 && B.value !== /*userValue*/
|
|
4580
|
-
|
|
4529
|
+
y[11] && rt(
|
|
4581
4530
|
B,
|
|
4582
4531
|
/*userValue*/
|
|
4583
|
-
|
|
4532
|
+
y[11]
|
|
4584
4533
|
), /*invalidName*/
|
|
4585
|
-
|
|
4586
|
-
8192 &&
|
|
4587
|
-
(
|
|
4588
|
-
2097152 &&
|
|
4589
|
-
|
|
4534
|
+
y[13] ? U ? U.p(y, P) : (U = br(y), U.c(), U.m(x, null)) : U && (U.d(1), U = null), P[0] & /*invalidName*/
|
|
4535
|
+
8192 && ne !== (ne = "UserContainer " + /*invalidName*/
|
|
4536
|
+
(y[13] ? "InvalidField" : "")) && h(x, "class", ne), P[0] & /*$_*/
|
|
4537
|
+
2097152 && be !== (be = /*$_*/
|
|
4538
|
+
y[21]("loginPassword") + "") && te(Re, be), P[0] & /*savecredentials*/
|
|
4590
4539
|
32 && ye !== (ye = /*savecredentials*/
|
|
4591
|
-
|
|
4540
|
+
y[5] ? "current-password" : "off") && h(C, "autocomplete", ye), P[0] & /*userPassword*/
|
|
4592
4541
|
4096 && C.value !== /*userPassword*/
|
|
4593
|
-
|
|
4542
|
+
y[12] && rt(
|
|
4594
4543
|
C,
|
|
4595
4544
|
/*userPassword*/
|
|
4596
|
-
|
|
4597
|
-
),
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
16384 &&
|
|
4603
|
-
(
|
|
4604
|
-
|
|
4605
|
-
2097152 &&
|
|
4606
|
-
|
|
4607
|
-
524288 && (
|
|
4608
|
-
|
|
4609
|
-
2097152 &&
|
|
4610
|
-
|
|
4545
|
+
y[12]
|
|
4546
|
+
), we === (we = Ye(y)) && Q ? Q.p(y, P) : (Q.d(1), Q = we(y), Q && (Q.c(), Q.m(A, ve))), /*invalidPassword*/
|
|
4547
|
+
y[14] && /*simplepasswordvalidation*/
|
|
4548
|
+
y[2] !== "true" ? F ? F.p(y, P) : (F = yr(y), F.c(), F.m(A, _e)) : F && (F.d(1), F = null), /*invalidPassword*/
|
|
4549
|
+
y[14] && /*simplepasswordvalidation*/
|
|
4550
|
+
y[2] === "true" ? D ? D.p(y, P) : (D = vr(y), D.c(), D.m(A, null)) : D && (D.d(1), D = null), P[0] & /*invalidPassword*/
|
|
4551
|
+
16384 && de !== (de = "PasswordContainer " + /*invalidPassword*/
|
|
4552
|
+
(y[14] ? "InvalidField" : "")) && h(A, "class", de), /*errorMessage*/
|
|
4553
|
+
y[15] ? k ? k.p(y, P) : (k = _r(y), k.c(), k.m(g, me)) : k && (k.d(1), k = null), P[0] & /*$_*/
|
|
4554
|
+
2097152 && pe !== (pe = /*$_*/
|
|
4555
|
+
y[21]("loginButton") + "") && te(ke, pe), P[0] & /*isFormDataInvalid*/
|
|
4556
|
+
524288 && (K.disabled = /*isFormDataInvalid*/
|
|
4557
|
+
y[19]), P[0] & /*$_*/
|
|
4558
|
+
2097152 && Ee !== (Ee = /*$_*/
|
|
4559
|
+
y[21]("loginForgotPassword") + "") && te($e, Ee);
|
|
4611
4560
|
},
|
|
4612
|
-
d(
|
|
4613
|
-
|
|
4561
|
+
d(y) {
|
|
4562
|
+
y && (I(t), I(b), I(v)), U && U.d(), e[35](null), Q.d(), F && F.d(), D && D.d(), k && k.d(), Ge = !1, Oe(Qe);
|
|
4614
4563
|
}
|
|
4615
4564
|
};
|
|
4616
4565
|
}
|
|
4617
|
-
function
|
|
4566
|
+
function Do(e) {
|
|
4618
4567
|
let t;
|
|
4619
4568
|
return {
|
|
4620
4569
|
c() {
|
|
4621
|
-
t = S("general-player-sms-verification-form"),
|
|
4570
|
+
t = S("general-player-sms-verification-form"), Y(
|
|
4622
4571
|
t,
|
|
4623
4572
|
"endpoint",
|
|
4624
4573
|
/*endpoint*/
|
|
4625
4574
|
e[0]
|
|
4626
|
-
),
|
|
4575
|
+
), Y(
|
|
4627
4576
|
t,
|
|
4628
4577
|
"number",
|
|
4629
4578
|
/*number*/
|
|
4630
4579
|
e[9]
|
|
4631
|
-
),
|
|
4580
|
+
), Y(
|
|
4632
4581
|
t,
|
|
4633
4582
|
"clientstyling",
|
|
4634
4583
|
/*clientstyling*/
|
|
4635
4584
|
e[3]
|
|
4636
|
-
),
|
|
4585
|
+
), Y(
|
|
4637
4586
|
t,
|
|
4638
4587
|
"clientstylingurl",
|
|
4639
4588
|
/*clientstylingurl*/
|
|
4640
4589
|
e[4]
|
|
4641
|
-
),
|
|
4590
|
+
), Y(
|
|
4642
4591
|
t,
|
|
4643
4592
|
"playerid",
|
|
4644
4593
|
/*playerId*/
|
|
4645
4594
|
e[7]
|
|
4646
|
-
),
|
|
4595
|
+
), Y(
|
|
4647
4596
|
t,
|
|
4648
4597
|
"tokenid",
|
|
4649
4598
|
/*smsTokenId*/
|
|
@@ -4655,37 +4604,37 @@ function es(e) {
|
|
|
4655
4604
|
},
|
|
4656
4605
|
p(r, n) {
|
|
4657
4606
|
n[0] & /*endpoint*/
|
|
4658
|
-
1 &&
|
|
4607
|
+
1 && Y(
|
|
4659
4608
|
t,
|
|
4660
4609
|
"endpoint",
|
|
4661
4610
|
/*endpoint*/
|
|
4662
4611
|
r[0]
|
|
4663
4612
|
), n[0] & /*number*/
|
|
4664
|
-
512 &&
|
|
4613
|
+
512 && Y(
|
|
4665
4614
|
t,
|
|
4666
4615
|
"number",
|
|
4667
4616
|
/*number*/
|
|
4668
4617
|
r[9]
|
|
4669
4618
|
), n[0] & /*clientstyling*/
|
|
4670
|
-
8 &&
|
|
4619
|
+
8 && Y(
|
|
4671
4620
|
t,
|
|
4672
4621
|
"clientstyling",
|
|
4673
4622
|
/*clientstyling*/
|
|
4674
4623
|
r[3]
|
|
4675
4624
|
), n[0] & /*clientstylingurl*/
|
|
4676
|
-
16 &&
|
|
4625
|
+
16 && Y(
|
|
4677
4626
|
t,
|
|
4678
4627
|
"clientstylingurl",
|
|
4679
4628
|
/*clientstylingurl*/
|
|
4680
4629
|
r[4]
|
|
4681
4630
|
), n[0] & /*playerId*/
|
|
4682
|
-
128 &&
|
|
4631
|
+
128 && Y(
|
|
4683
4632
|
t,
|
|
4684
4633
|
"playerid",
|
|
4685
4634
|
/*playerId*/
|
|
4686
4635
|
r[7]
|
|
4687
4636
|
), n[0] & /*smsTokenId*/
|
|
4688
|
-
256 &&
|
|
4637
|
+
256 && Y(
|
|
4689
4638
|
t,
|
|
4690
4639
|
"tokenid",
|
|
4691
4640
|
/*smsTokenId*/
|
|
@@ -4697,7 +4646,7 @@ function es(e) {
|
|
|
4697
4646
|
}
|
|
4698
4647
|
};
|
|
4699
4648
|
}
|
|
4700
|
-
function
|
|
4649
|
+
function br(e) {
|
|
4701
4650
|
let t, r = (
|
|
4702
4651
|
/*$_*/
|
|
4703
4652
|
e[21]("loginUsernameError") + ""
|
|
@@ -4707,59 +4656,59 @@ function Tr(e) {
|
|
|
4707
4656
|
t = S("p"), n = N(r), h(t, "class", "InvalidInput");
|
|
4708
4657
|
},
|
|
4709
4658
|
m(i, o) {
|
|
4710
|
-
L(i, t, o),
|
|
4659
|
+
L(i, t, o), m(t, n);
|
|
4711
4660
|
},
|
|
4712
4661
|
p(i, o) {
|
|
4713
4662
|
o[0] & /*$_*/
|
|
4714
4663
|
2097152 && r !== (r = /*$_*/
|
|
4715
|
-
i[21]("loginUsernameError") + "") &&
|
|
4664
|
+
i[21]("loginUsernameError") + "") && te(n, r);
|
|
4716
4665
|
},
|
|
4717
4666
|
d(i) {
|
|
4718
4667
|
i && I(t);
|
|
4719
4668
|
}
|
|
4720
4669
|
};
|
|
4721
4670
|
}
|
|
4722
|
-
function
|
|
4723
|
-
let t, r, n, i, o, s, a,
|
|
4671
|
+
function ko(e) {
|
|
4672
|
+
let t, r, n, i, o, s, a, c, l;
|
|
4724
4673
|
return {
|
|
4725
4674
|
c() {
|
|
4726
4675
|
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");
|
|
4727
4676
|
},
|
|
4728
|
-
m(
|
|
4729
|
-
L(
|
|
4677
|
+
m(u, f) {
|
|
4678
|
+
L(u, t, f), m(t, r), m(r, n), m(n, i), m(t, o), m(o, s), m(o, a), c || (l = se(
|
|
4730
4679
|
t,
|
|
4731
4680
|
"click",
|
|
4732
4681
|
/*click_handler_2*/
|
|
4733
4682
|
e[37]
|
|
4734
|
-
),
|
|
4683
|
+
), c = !0);
|
|
4735
4684
|
},
|
|
4736
4685
|
p: Z,
|
|
4737
|
-
d(
|
|
4738
|
-
|
|
4686
|
+
d(u) {
|
|
4687
|
+
u && I(t), c = !1, l();
|
|
4739
4688
|
}
|
|
4740
4689
|
};
|
|
4741
4690
|
}
|
|
4742
|
-
function
|
|
4743
|
-
let t, r, n, i, o, s, a,
|
|
4691
|
+
function $o(e) {
|
|
4692
|
+
let t, r, n, i, o, s, a, c, l, u, f, d, b, v, g;
|
|
4744
4693
|
return {
|
|
4745
4694
|
c() {
|
|
4746
|
-
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"),
|
|
4695
|
+
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"), c = O("path"), l = O("path"), u = 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(c, "class", "a"), h(c, "d", "M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"), h(c, "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(u, "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");
|
|
4747
4696
|
},
|
|
4748
4697
|
m(x, M) {
|
|
4749
|
-
L(x, t, M),
|
|
4698
|
+
L(x, t, M), m(t, r), m(r, n), m(n, i), m(t, o), m(o, s), m(o, a), m(a, c), m(a, l), m(o, u), m(u, f), m(u, d), m(o, b), v || (g = se(
|
|
4750
4699
|
t,
|
|
4751
4700
|
"click",
|
|
4752
4701
|
/*click_handler_1*/
|
|
4753
4702
|
e[36]
|
|
4754
|
-
),
|
|
4703
|
+
), v = !0);
|
|
4755
4704
|
},
|
|
4756
4705
|
p: Z,
|
|
4757
4706
|
d(x) {
|
|
4758
|
-
x && I(t),
|
|
4707
|
+
x && I(t), v = !1, g();
|
|
4759
4708
|
}
|
|
4760
4709
|
};
|
|
4761
4710
|
}
|
|
4762
|
-
function
|
|
4711
|
+
function yr(e) {
|
|
4763
4712
|
let t, r = (
|
|
4764
4713
|
/*$_*/
|
|
4765
4714
|
e[21]("loginPasswordError") + ""
|
|
@@ -4769,19 +4718,19 @@ function Hr(e) {
|
|
|
4769
4718
|
t = S("p"), n = N(r), h(t, "class", "InvalidInput");
|
|
4770
4719
|
},
|
|
4771
4720
|
m(i, o) {
|
|
4772
|
-
L(i, t, o),
|
|
4721
|
+
L(i, t, o), m(t, n);
|
|
4773
4722
|
},
|
|
4774
4723
|
p(i, o) {
|
|
4775
4724
|
o[0] & /*$_*/
|
|
4776
4725
|
2097152 && r !== (r = /*$_*/
|
|
4777
|
-
i[21]("loginPasswordError") + "") &&
|
|
4726
|
+
i[21]("loginPasswordError") + "") && te(n, r);
|
|
4778
4727
|
},
|
|
4779
4728
|
d(i) {
|
|
4780
4729
|
i && I(t);
|
|
4781
4730
|
}
|
|
4782
4731
|
};
|
|
4783
4732
|
}
|
|
4784
|
-
function
|
|
4733
|
+
function vr(e) {
|
|
4785
4734
|
let t, r = (
|
|
4786
4735
|
/*$_*/
|
|
4787
4736
|
e[21]("loginSimplePasswordError") + ""
|
|
@@ -4791,19 +4740,19 @@ function Br(e) {
|
|
|
4791
4740
|
t = S("p"), n = N(r), h(t, "class", "InvalidInput");
|
|
4792
4741
|
},
|
|
4793
4742
|
m(i, o) {
|
|
4794
|
-
L(i, t, o),
|
|
4743
|
+
L(i, t, o), m(t, n);
|
|
4795
4744
|
},
|
|
4796
4745
|
p(i, o) {
|
|
4797
4746
|
o[0] & /*$_*/
|
|
4798
4747
|
2097152 && r !== (r = /*$_*/
|
|
4799
|
-
i[21]("loginSimplePasswordError") + "") &&
|
|
4748
|
+
i[21]("loginSimplePasswordError") + "") && te(n, r);
|
|
4800
4749
|
},
|
|
4801
4750
|
d(i) {
|
|
4802
4751
|
i && I(t);
|
|
4803
4752
|
}
|
|
4804
4753
|
};
|
|
4805
4754
|
}
|
|
4806
|
-
function
|
|
4755
|
+
function _r(e) {
|
|
4807
4756
|
let t, r;
|
|
4808
4757
|
return {
|
|
4809
4758
|
c() {
|
|
@@ -4813,11 +4762,11 @@ function Ar(e) {
|
|
|
4813
4762
|
), h(t, "class", "ErrorMessage");
|
|
4814
4763
|
},
|
|
4815
4764
|
m(n, i) {
|
|
4816
|
-
L(n, t, i),
|
|
4765
|
+
L(n, t, i), m(t, r);
|
|
4817
4766
|
},
|
|
4818
4767
|
p(n, i) {
|
|
4819
4768
|
i[0] & /*errorMessage*/
|
|
4820
|
-
32768 &&
|
|
4769
|
+
32768 && te(
|
|
4821
4770
|
r,
|
|
4822
4771
|
/*errorMessage*/
|
|
4823
4772
|
n[15]
|
|
@@ -4828,126 +4777,126 @@ function Ar(e) {
|
|
|
4828
4777
|
}
|
|
4829
4778
|
};
|
|
4830
4779
|
}
|
|
4831
|
-
function
|
|
4780
|
+
function Go(e) {
|
|
4832
4781
|
let t, r, n, i, o, s = (
|
|
4833
4782
|
/*captchakey*/
|
|
4834
|
-
e[1] &&
|
|
4783
|
+
e[1] && gr(e)
|
|
4835
4784
|
);
|
|
4836
|
-
function a(
|
|
4785
|
+
function a(u, f) {
|
|
4837
4786
|
return (
|
|
4838
4787
|
/*isLoading*/
|
|
4839
|
-
|
|
4788
|
+
u[16] ? Uo : Ro
|
|
4840
4789
|
);
|
|
4841
4790
|
}
|
|
4842
|
-
let
|
|
4791
|
+
let c = a(e), l = c(e);
|
|
4843
4792
|
return {
|
|
4844
4793
|
c() {
|
|
4845
|
-
s && s.c(), t =
|
|
4794
|
+
s && s.c(), t = hn(), r = z(), n = S("div"), i = z(), o = S("div"), l.c(), h(n, "class", "g-recaptcha"), h(
|
|
4846
4795
|
n,
|
|
4847
4796
|
"data-sitekey",
|
|
4848
4797
|
/*captchakey*/
|
|
4849
4798
|
e[1]
|
|
4850
4799
|
), h(o, "class", "PlayerLoginFormWrapper");
|
|
4851
4800
|
},
|
|
4852
|
-
m(
|
|
4853
|
-
s && s.m(
|
|
4801
|
+
m(u, f) {
|
|
4802
|
+
s && s.m(pr.head, null), m(pr.head, t), L(u, r, f), L(u, n, f), L(u, i, f), L(u, o, f), l.m(o, null), e[40](o);
|
|
4854
4803
|
},
|
|
4855
|
-
p(
|
|
4804
|
+
p(u, f) {
|
|
4856
4805
|
/*captchakey*/
|
|
4857
|
-
|
|
4806
|
+
u[1] ? s ? s.p(u, f) : (s = gr(u), s.c(), s.m(t.parentNode, t)) : s && (s.d(1), s = null), f[0] & /*captchakey*/
|
|
4858
4807
|
2 && h(
|
|
4859
4808
|
n,
|
|
4860
4809
|
"data-sitekey",
|
|
4861
4810
|
/*captchakey*/
|
|
4862
|
-
|
|
4863
|
-
),
|
|
4811
|
+
u[1]
|
|
4812
|
+
), c === (c = a(u)) && l ? l.p(u, f) : (l.d(1), l = c(u), l && (l.c(), l.m(o, null)));
|
|
4864
4813
|
},
|
|
4865
4814
|
i: Z,
|
|
4866
4815
|
o: Z,
|
|
4867
|
-
d(
|
|
4868
|
-
|
|
4816
|
+
d(u) {
|
|
4817
|
+
u && (I(r), I(n), I(i), I(o)), s && s.d(u), I(t), l.d(), e[40](null);
|
|
4869
4818
|
}
|
|
4870
4819
|
};
|
|
4871
4820
|
}
|
|
4872
|
-
let
|
|
4873
|
-
function
|
|
4821
|
+
let jo = "Please use this code {0} to activate your account";
|
|
4822
|
+
function Vo(e, t, r) {
|
|
4874
4823
|
let n;
|
|
4875
|
-
|
|
4876
|
-
let { endpoint: i = "" } = t, { captchakey: o = "" } = t, { lang: s = "en" } = t, { smsverification: a = "false" } = t, { simplepasswordvalidation:
|
|
4824
|
+
sn(e, Co, (p) => r(21, n = p));
|
|
4825
|
+
let { endpoint: i = "" } = t, { captchakey: o = "" } = t, { lang: s = "en" } = t, { smsverification: a = "false" } = t, { simplepasswordvalidation: c = "false" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: f = "" } = t, { savecredentials: d = "" } = t, b, v, g = !1, x, M = !1, q = window.navigator.userAgent, H = "", R = "", G = { username: "", password: "" }, J = !1, B = !1, ie = "", re = !1, ne, fe = !1, A = !0, W, be = +localStorage.getItem("smsTimer") || 0, Re = Date.now() / 1e3 - be, Ue = localStorage.getItem("smsValidation") == "true" && Re < 60, oe = {
|
|
4877
4826
|
user: /^(?!(?:.*\d){9})(?=(?:.*[a-zA-Z]){4})^[a-zA-Z\d]*$/,
|
|
4878
4827
|
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,
|
|
4879
4828
|
password: /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/
|
|
4880
4829
|
};
|
|
4881
|
-
|
|
4882
|
-
const
|
|
4830
|
+
Lo({ withLocale: "en", translations: {} });
|
|
4831
|
+
const qe = () => {
|
|
4883
4832
|
fetch(f).then(($) => $.json()).then(($) => {
|
|
4884
4833
|
Object.keys($).forEach((j) => {
|
|
4885
|
-
|
|
4834
|
+
dr(j, $[j]);
|
|
4886
4835
|
});
|
|
4887
4836
|
}).catch(($) => {
|
|
4888
4837
|
console.log($);
|
|
4889
4838
|
});
|
|
4890
4839
|
};
|
|
4891
|
-
Object.keys(
|
|
4892
|
-
|
|
4840
|
+
Object.keys(mr).forEach((p) => {
|
|
4841
|
+
dr(p, mr[p]);
|
|
4893
4842
|
});
|
|
4894
|
-
const C = () => new Promise((
|
|
4843
|
+
const C = () => new Promise((p, $) => {
|
|
4895
4844
|
grecaptcha.ready(() => {
|
|
4896
4845
|
grecaptcha.execute(o, { action: "submit" }).then((j) => {
|
|
4897
|
-
|
|
4846
|
+
p(j);
|
|
4898
4847
|
});
|
|
4899
4848
|
});
|
|
4900
4849
|
}), ye = () => {
|
|
4901
|
-
|
|
4902
|
-
},
|
|
4903
|
-
r(18,
|
|
4850
|
+
c == "true" && (oe.password = /^(?!.* ).{8,20}$/);
|
|
4851
|
+
}, Fe = () => {
|
|
4852
|
+
r(18, fe = !0), _e();
|
|
4853
|
+
}, ve = () => {
|
|
4854
|
+
r(18, fe = !1), _e();
|
|
4904
4855
|
}, _e = () => {
|
|
4905
|
-
r(
|
|
4906
|
-
},
|
|
4907
|
-
r(17, ie.type = de ? "text" : "password", ie);
|
|
4908
|
-
}, me = () => {
|
|
4856
|
+
r(17, ne.type = fe ? "text" : "password", ne);
|
|
4857
|
+
}, de = () => {
|
|
4909
4858
|
window.postMessage({ type: "ToRegister" }, window.location.href);
|
|
4910
|
-
},
|
|
4911
|
-
|
|
4912
|
-
},
|
|
4913
|
-
|
|
4914
|
-
|
|
4859
|
+
}, De = (p) => {
|
|
4860
|
+
p.preventDefault(), window.postMessage({ type: "NavForgotPassword" }, window.location.href);
|
|
4861
|
+
}, me = (p) => {
|
|
4862
|
+
p?.preventDefault(), C().then(($) => {
|
|
4863
|
+
K(H) && pe(R) && (G = {
|
|
4915
4864
|
username: H,
|
|
4916
4865
|
password: R,
|
|
4917
4866
|
token: $
|
|
4918
|
-
}, r(16,
|
|
4867
|
+
}, r(16, re = !0), $e(G));
|
|
4919
4868
|
});
|
|
4920
|
-
},
|
|
4921
|
-
r(13, J = !
|
|
4922
|
-
},
|
|
4923
|
-
r(14, B = !
|
|
4924
|
-
},
|
|
4925
|
-
if (
|
|
4926
|
-
switch (
|
|
4869
|
+
}, K = (p) => !!((oe.user.test(p) || oe.email.test(p)) && p.length <= 100), pe = (p) => !!oe.password.test(p), ke = () => {
|
|
4870
|
+
r(13, J = !K(H)), r(19, A = !(!J && !B && R));
|
|
4871
|
+
}, Je = () => {
|
|
4872
|
+
r(14, B = !pe(R)), r(19, A = !(!J && !B && H));
|
|
4873
|
+
}, ue = (p) => {
|
|
4874
|
+
if (p.data)
|
|
4875
|
+
switch (p.data.type) {
|
|
4927
4876
|
case "ModalLoader":
|
|
4928
|
-
r(16,
|
|
4877
|
+
r(16, re = !1);
|
|
4929
4878
|
break;
|
|
4930
4879
|
case "UserSessionID":
|
|
4931
|
-
r(16,
|
|
4880
|
+
r(16, re = !1);
|
|
4932
4881
|
break;
|
|
4933
4882
|
case "SmsHasBeenValidated":
|
|
4934
|
-
|
|
4883
|
+
me();
|
|
4935
4884
|
break;
|
|
4936
4885
|
}
|
|
4937
|
-
},
|
|
4886
|
+
}, Ee = (p) => {
|
|
4938
4887
|
typeof gtag == "function" && gtag("event", "Login", {
|
|
4939
4888
|
context: "GeneralPlayerLoginRegisterPage"
|
|
4940
4889
|
});
|
|
4941
|
-
},
|
|
4942
|
-
let
|
|
4890
|
+
}, $e = async ({ username: p, password: $, token: j }) => {
|
|
4891
|
+
let Ke = {
|
|
4943
4892
|
"Content-Type": "application/json",
|
|
4944
4893
|
"g-recaptcha-response": j
|
|
4945
|
-
},
|
|
4894
|
+
}, et = { username: p, password: $ }, nn = {
|
|
4946
4895
|
method: "POST",
|
|
4947
|
-
headers:
|
|
4948
|
-
body: JSON.stringify(
|
|
4896
|
+
headers: Ke,
|
|
4897
|
+
body: JSON.stringify(et)
|
|
4949
4898
|
};
|
|
4950
|
-
fetch(`${i}/v1/player/login/player`,
|
|
4899
|
+
fetch(`${i}/v1/player/login/player`, nn).then((V) => (V.status >= 500 && (r(15, ie = "Server might not be responsing"), r(16, re = !1), window.postMessage(
|
|
4951
4900
|
{
|
|
4952
4901
|
type: "WidgetNotification",
|
|
4953
4902
|
data: {
|
|
@@ -4957,7 +4906,7 @@ function os(e, t, r) {
|
|
|
4957
4906
|
},
|
|
4958
4907
|
window.location.href
|
|
4959
4908
|
)), V.json())).then((V) => {
|
|
4960
|
-
if (V.actions !== void 0 && window.postMessage({ type: "PlayerActions" }, window.location.href), a === "true" && V.code === 4 && (r(7, b = V.detail.userId), r(9, x = V.detail.phonePrefix + V.detail.phone), r(20,
|
|
4909
|
+
if (V.actions !== void 0 && window.postMessage({ type: "PlayerActions" }, window.location.href), a === "true" && V.code === 4 && (r(7, b = V.detail.userId), r(9, x = V.detail.phonePrefix + V.detail.phone), r(20, Ue = !0), Ge(x, b), localStorage.setItem("smsValidation", "true"), localStorage.setItem("playerData", JSON.stringify({ playerid: b, number: x }))), V.sessionID) {
|
|
4961
4910
|
if (window.postMessage(
|
|
4962
4911
|
{
|
|
4963
4912
|
type: "UserSessionID",
|
|
@@ -4975,38 +4924,38 @@ function os(e, t, r) {
|
|
|
4975
4924
|
},
|
|
4976
4925
|
window.location.href
|
|
4977
4926
|
), window.PasswordCredential && d == "true") {
|
|
4978
|
-
const
|
|
4979
|
-
password:
|
|
4980
|
-
id:
|
|
4927
|
+
const je = new PasswordCredential({
|
|
4928
|
+
password: et.password,
|
|
4929
|
+
id: et.username
|
|
4981
4930
|
});
|
|
4982
|
-
navigator.credentials.store(
|
|
4931
|
+
navigator.credentials.store(je);
|
|
4983
4932
|
}
|
|
4984
|
-
|
|
4933
|
+
Ee();
|
|
4985
4934
|
} else
|
|
4986
4935
|
try {
|
|
4987
|
-
let
|
|
4988
|
-
r(15,
|
|
4936
|
+
let je = V.error;
|
|
4937
|
+
r(15, ie = je), r(16, re = !1), window.postMessage(
|
|
4989
4938
|
{
|
|
4990
4939
|
type: "WidgetNotification",
|
|
4991
|
-
data: { type: "error", message:
|
|
4940
|
+
data: { type: "error", message: je }
|
|
4992
4941
|
},
|
|
4993
4942
|
window.location.href
|
|
4994
4943
|
);
|
|
4995
|
-
} catch
|
|
4996
|
-
let
|
|
4997
|
-
r(15,
|
|
4944
|
+
} catch {
|
|
4945
|
+
let jt = V.error.substring(V.error.indexOf("errorMessage") + 13, V.error.length);
|
|
4946
|
+
r(15, ie = jt), r(16, re = !1), window.postMessage(
|
|
4998
4947
|
{
|
|
4999
4948
|
type: "WidgetNotification",
|
|
5000
|
-
data: { type: "error", message:
|
|
4949
|
+
data: { type: "error", message: jt }
|
|
5001
4950
|
},
|
|
5002
4951
|
window.location.href
|
|
5003
4952
|
);
|
|
5004
4953
|
}
|
|
5005
4954
|
});
|
|
5006
|
-
}
|
|
4955
|
+
}, Ge = async (p, $) => {
|
|
5007
4956
|
localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3)));
|
|
5008
4957
|
try {
|
|
5009
|
-
const j =
|
|
4958
|
+
const j = await fetch(`${i}/v1/player/sms/token`, {
|
|
5010
4959
|
method: "POST",
|
|
5011
4960
|
headers: {
|
|
5012
4961
|
"Content-Type": "application/json",
|
|
@@ -5014,27 +4963,27 @@ function os(e, t, r) {
|
|
|
5014
4963
|
},
|
|
5015
4964
|
body: JSON.stringify({
|
|
5016
4965
|
userId: $,
|
|
5017
|
-
messageTemplate:
|
|
5018
|
-
destination:
|
|
4966
|
+
messageTemplate: jo,
|
|
4967
|
+
destination: p
|
|
5019
4968
|
})
|
|
5020
|
-
}),
|
|
4969
|
+
}), Ke = await j.json();
|
|
5021
4970
|
if (j.ok) {
|
|
5022
|
-
r(8,
|
|
5023
|
-
let
|
|
4971
|
+
r(8, v = Ke.id);
|
|
4972
|
+
let et = Ke.maxValidationAttempts;
|
|
5024
4973
|
g = !1;
|
|
5025
4974
|
} else
|
|
5026
4975
|
throw g = !0, new Error("Failed to fetch");
|
|
5027
4976
|
} catch (j) {
|
|
5028
4977
|
g = !0, console.error(j);
|
|
5029
4978
|
}
|
|
5030
|
-
}
|
|
5031
|
-
|
|
4979
|
+
}, Qe = () => {
|
|
4980
|
+
Mo(s);
|
|
5032
4981
|
}, U = () => {
|
|
5033
|
-
let
|
|
5034
|
-
|
|
5035
|
-
},
|
|
5036
|
-
let
|
|
5037
|
-
fetch(
|
|
4982
|
+
let p = document.createElement("style");
|
|
4983
|
+
p.innerHTML = l, W.appendChild(p);
|
|
4984
|
+
}, Ye = () => {
|
|
4985
|
+
let p = new URL(u), $ = document.createElement("style");
|
|
4986
|
+
fetch(p.href).then((j) => j.text()).then((j) => {
|
|
5038
4987
|
$.innerHTML = j, setTimeout(
|
|
5039
4988
|
() => {
|
|
5040
4989
|
W.appendChild($);
|
|
@@ -5047,88 +4996,88 @@ function os(e, t, r) {
|
|
|
5047
4996
|
);
|
|
5048
4997
|
});
|
|
5049
4998
|
};
|
|
5050
|
-
|
|
5051
|
-
window.removeEventListener("message",
|
|
4999
|
+
pn(() => (window.addEventListener("message", ue, !1), window.postMessage({ type: "LoginRegisterModalActive" }, window.location.href), r(10, M = Oo(q)), () => {
|
|
5000
|
+
window.removeEventListener("message", ue);
|
|
5052
5001
|
}));
|
|
5053
|
-
const
|
|
5002
|
+
const we = () => de();
|
|
5054
5003
|
function Q() {
|
|
5055
5004
|
H = this.value, r(11, H);
|
|
5056
5005
|
}
|
|
5057
5006
|
function F() {
|
|
5058
5007
|
R = this.value, r(12, R);
|
|
5059
5008
|
}
|
|
5060
|
-
function D(
|
|
5061
|
-
ut[
|
|
5062
|
-
|
|
5009
|
+
function D(p) {
|
|
5010
|
+
ut[p ? "unshift" : "push"](() => {
|
|
5011
|
+
ne = p, r(17, ne);
|
|
5063
5012
|
});
|
|
5064
5013
|
}
|
|
5065
|
-
const k = () =>
|
|
5066
|
-
function
|
|
5067
|
-
ut[
|
|
5068
|
-
W =
|
|
5014
|
+
const k = () => ve(), y = () => Fe(), P = (p) => me(p), tn = (p) => De(p);
|
|
5015
|
+
function rn(p) {
|
|
5016
|
+
ut[p ? "unshift" : "push"](() => {
|
|
5017
|
+
W = p, r(6, W);
|
|
5069
5018
|
});
|
|
5070
5019
|
}
|
|
5071
|
-
return e.$$set = (
|
|
5072
|
-
"endpoint" in
|
|
5020
|
+
return e.$$set = (p) => {
|
|
5021
|
+
"endpoint" in p && r(0, i = p.endpoint), "captchakey" in p && r(1, o = p.captchakey), "lang" in p && r(29, s = p.lang), "smsverification" in p && r(30, a = p.smsverification), "simplepasswordvalidation" in p && r(2, c = p.simplepasswordvalidation), "clientstyling" in p && r(3, l = p.clientstyling), "clientstylingurl" in p && r(4, u = p.clientstylingurl), "translationurl" in p && r(31, f = p.translationurl), "savecredentials" in p && r(5, d = p.savecredentials);
|
|
5073
5022
|
}, e.$$.update = () => {
|
|
5074
5023
|
e.$$.dirty[0] & /*endpoint, lang*/
|
|
5075
|
-
536870913 && i && s &&
|
|
5076
|
-
4 &&
|
|
5024
|
+
536870913 && i && s && Qe(), e.$$.dirty[0] & /*simplepasswordvalidation*/
|
|
5025
|
+
4 && c && ye(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5077
5026
|
72 && l && W && U(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5078
|
-
80 &&
|
|
5079
|
-
1 && f &&
|
|
5027
|
+
80 && u && W && Ye(), e.$$.dirty[1] & /*translationurl*/
|
|
5028
|
+
1 && f && qe();
|
|
5080
5029
|
}, [
|
|
5081
5030
|
i,
|
|
5082
5031
|
o,
|
|
5083
|
-
u,
|
|
5084
|
-
l,
|
|
5085
5032
|
c,
|
|
5033
|
+
l,
|
|
5034
|
+
u,
|
|
5086
5035
|
d,
|
|
5087
5036
|
W,
|
|
5088
5037
|
b,
|
|
5089
|
-
|
|
5038
|
+
v,
|
|
5090
5039
|
x,
|
|
5091
5040
|
M,
|
|
5092
5041
|
H,
|
|
5093
5042
|
R,
|
|
5094
5043
|
J,
|
|
5095
5044
|
B,
|
|
5096
|
-
oe,
|
|
5097
|
-
ne,
|
|
5098
5045
|
ie,
|
|
5099
|
-
|
|
5046
|
+
re,
|
|
5047
|
+
ne,
|
|
5048
|
+
fe,
|
|
5100
5049
|
A,
|
|
5101
|
-
|
|
5050
|
+
Ue,
|
|
5102
5051
|
n,
|
|
5052
|
+
Fe,
|
|
5053
|
+
ve,
|
|
5054
|
+
de,
|
|
5103
5055
|
De,
|
|
5104
|
-
_e,
|
|
5105
5056
|
me,
|
|
5106
5057
|
ke,
|
|
5107
|
-
|
|
5108
|
-
$e,
|
|
5109
|
-
Qe,
|
|
5058
|
+
Je,
|
|
5110
5059
|
s,
|
|
5111
5060
|
a,
|
|
5112
5061
|
f,
|
|
5113
|
-
|
|
5062
|
+
we,
|
|
5114
5063
|
Q,
|
|
5115
5064
|
F,
|
|
5116
5065
|
D,
|
|
5117
5066
|
k,
|
|
5118
|
-
|
|
5067
|
+
y,
|
|
5119
5068
|
P,
|
|
5120
|
-
|
|
5121
|
-
|
|
5069
|
+
tn,
|
|
5070
|
+
rn
|
|
5122
5071
|
];
|
|
5123
5072
|
}
|
|
5124
|
-
class
|
|
5073
|
+
class zo extends Hn {
|
|
5125
5074
|
constructor(t) {
|
|
5126
|
-
super(),
|
|
5075
|
+
super(), Pn(
|
|
5127
5076
|
this,
|
|
5128
5077
|
t,
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
|
|
5078
|
+
Vo,
|
|
5079
|
+
Go,
|
|
5080
|
+
wr,
|
|
5132
5081
|
{
|
|
5133
5082
|
endpoint: 0,
|
|
5134
5083
|
captchakey: 1,
|
|
@@ -5140,7 +5089,7 @@ class fn extends jn {
|
|
|
5140
5089
|
translationurl: 31,
|
|
5141
5090
|
savecredentials: 5
|
|
5142
5091
|
},
|
|
5143
|
-
|
|
5092
|
+
No,
|
|
5144
5093
|
[-1, -1]
|
|
5145
5094
|
);
|
|
5146
5095
|
}
|
|
@@ -5148,87 +5097,83 @@ class fn extends jn {
|
|
|
5148
5097
|
return this.$$.ctx[0];
|
|
5149
5098
|
}
|
|
5150
5099
|
set endpoint(t) {
|
|
5151
|
-
this.$$set({ endpoint: t }),
|
|
5100
|
+
this.$$set({ endpoint: t }), ee();
|
|
5152
5101
|
}
|
|
5153
5102
|
get captchakey() {
|
|
5154
5103
|
return this.$$.ctx[1];
|
|
5155
5104
|
}
|
|
5156
5105
|
set captchakey(t) {
|
|
5157
|
-
this.$$set({ captchakey: t }),
|
|
5106
|
+
this.$$set({ captchakey: t }), ee();
|
|
5158
5107
|
}
|
|
5159
5108
|
get lang() {
|
|
5160
5109
|
return this.$$.ctx[29];
|
|
5161
5110
|
}
|
|
5162
5111
|
set lang(t) {
|
|
5163
|
-
this.$$set({ lang: t }),
|
|
5112
|
+
this.$$set({ lang: t }), ee();
|
|
5164
5113
|
}
|
|
5165
5114
|
get smsverification() {
|
|
5166
5115
|
return this.$$.ctx[30];
|
|
5167
5116
|
}
|
|
5168
5117
|
set smsverification(t) {
|
|
5169
|
-
this.$$set({ smsverification: t }),
|
|
5118
|
+
this.$$set({ smsverification: t }), ee();
|
|
5170
5119
|
}
|
|
5171
5120
|
get simplepasswordvalidation() {
|
|
5172
5121
|
return this.$$.ctx[2];
|
|
5173
5122
|
}
|
|
5174
5123
|
set simplepasswordvalidation(t) {
|
|
5175
|
-
this.$$set({ simplepasswordvalidation: t }),
|
|
5124
|
+
this.$$set({ simplepasswordvalidation: t }), ee();
|
|
5176
5125
|
}
|
|
5177
5126
|
get clientstyling() {
|
|
5178
5127
|
return this.$$.ctx[3];
|
|
5179
5128
|
}
|
|
5180
5129
|
set clientstyling(t) {
|
|
5181
|
-
this.$$set({ clientstyling: t }),
|
|
5130
|
+
this.$$set({ clientstyling: t }), ee();
|
|
5182
5131
|
}
|
|
5183
5132
|
get clientstylingurl() {
|
|
5184
5133
|
return this.$$.ctx[4];
|
|
5185
5134
|
}
|
|
5186
5135
|
set clientstylingurl(t) {
|
|
5187
|
-
this.$$set({ clientstylingurl: t }),
|
|
5136
|
+
this.$$set({ clientstylingurl: t }), ee();
|
|
5188
5137
|
}
|
|
5189
5138
|
get translationurl() {
|
|
5190
5139
|
return this.$$.ctx[31];
|
|
5191
5140
|
}
|
|
5192
5141
|
set translationurl(t) {
|
|
5193
|
-
this.$$set({ translationurl: t }),
|
|
5142
|
+
this.$$set({ translationurl: t }), ee();
|
|
5194
5143
|
}
|
|
5195
5144
|
get savecredentials() {
|
|
5196
5145
|
return this.$$.ctx[5];
|
|
5197
5146
|
}
|
|
5198
5147
|
set savecredentials(t) {
|
|
5199
|
-
this.$$set({ savecredentials: t }),
|
|
5148
|
+
this.$$set({ savecredentials: t }), ee();
|
|
5200
5149
|
}
|
|
5201
5150
|
}
|
|
5202
|
-
|
|
5203
|
-
const as = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5204
|
-
__proto__: null,
|
|
5205
|
-
default: fn
|
|
5206
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
5151
|
+
Tn(zo, { endpoint: {}, captchakey: {}, lang: {}, smsverification: {}, simplepasswordvalidation: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, savecredentials: {} }, [], [], !0);
|
|
5207
5152
|
export {
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5153
|
+
he as $,
|
|
5154
|
+
zo as G,
|
|
5155
|
+
Hn as S,
|
|
5156
|
+
Me as a,
|
|
5157
|
+
Jr as b,
|
|
5158
|
+
Tn as c,
|
|
5159
|
+
ln as d,
|
|
5215
5160
|
S as e,
|
|
5216
|
-
|
|
5161
|
+
ee as f,
|
|
5217
5162
|
z as g,
|
|
5218
5163
|
h,
|
|
5219
|
-
|
|
5164
|
+
Pn as i,
|
|
5220
5165
|
L as j,
|
|
5221
|
-
|
|
5166
|
+
m as k,
|
|
5222
5167
|
rt as l,
|
|
5223
|
-
|
|
5224
|
-
|
|
5168
|
+
se as m,
|
|
5169
|
+
te as n,
|
|
5225
5170
|
Z as o,
|
|
5226
5171
|
I as p,
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
|
|
5172
|
+
sn as q,
|
|
5173
|
+
Oe as r,
|
|
5174
|
+
wr as s,
|
|
5230
5175
|
N as t,
|
|
5231
|
-
|
|
5176
|
+
pn as u,
|
|
5232
5177
|
ut as v,
|
|
5233
|
-
|
|
5178
|
+
Co as w
|
|
5234
5179
|
};
|