@everymatrix/general-player-login-form-nd 1.76.0 → 1.76.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{GeneralPlayerLoginFormNd-1DxGEPP9.js → GeneralPlayerLoginFormNd-0zK-AsMe.js} +819 -854
- package/components/GeneralPlayerLoginFormNd-BVbXxEl6.cjs +18 -0
- package/components/{GeneralPlayerLoginFormNd-CUIevjh8.js → GeneralPlayerLoginFormNd-BrD1TESB.js} +796 -831
- package/components/{GeneralPlayerSmsVerificationForm-DJahVXQg.js → GeneralPlayerSmsVerificationForm-9nSotkvC.js} +22 -22
- package/components/{GeneralPlayerSmsVerificationForm-BKWeCfRG.js → GeneralPlayerSmsVerificationForm-CvbvUmlt.js} +25 -25
- package/components/{GeneralPlayerSmsVerificationForm-Dx63x365.cjs → GeneralPlayerSmsVerificationForm-uyVJACCg.cjs} +1 -1
- package/es2015/general-player-login-form-nd.cjs +1 -1
- package/es2015/general-player-login-form-nd.js +1 -1
- package/esnext/general-player-login-form-nd.js +1 -1
- package/package.json +1 -1
- package/components/GeneralPlayerLoginFormNd-Dv0P7KwS.cjs +0 -18
package/components/{GeneralPlayerLoginFormNd-CUIevjh8.js → GeneralPlayerLoginFormNd-BrD1TESB.js}
RENAMED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
function Z() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function _r(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Vt() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function Me(e) {
|
|
10
|
+
e.forEach(_r);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Dt(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function wr(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
18
|
let tt;
|
|
19
|
-
function
|
|
19
|
+
function zt(e, t) {
|
|
20
20
|
return e === t ? !0 : (tt || (tt = document.createElement("a")), tt.href = t, e === tt.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function rn(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Er(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const n of t)
|
|
28
28
|
n(void 0);
|
|
@@ -31,20 +31,20 @@ function Tr(e, ...t) {
|
|
|
31
31
|
const r = e.subscribe(...t);
|
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
e.$$.on_destroy.push(
|
|
34
|
+
function nn(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(Er(t, r));
|
|
36
36
|
}
|
|
37
37
|
function m(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const n =
|
|
40
|
+
function on(e, t, r) {
|
|
41
|
+
const n = sn(e);
|
|
42
42
|
if (!n.getElementById(t)) {
|
|
43
|
-
const i =
|
|
44
|
-
i.id = t, i.textContent = r,
|
|
43
|
+
const i = x("style");
|
|
44
|
+
i.id = t, i.textContent = r, an(n, i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function sn(e) {
|
|
48
48
|
if (!e)
|
|
49
49
|
return document;
|
|
50
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -54,7 +54,7 @@ function cn(e) {
|
|
|
54
54
|
t
|
|
55
55
|
) : e.ownerDocument;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function an(e, t) {
|
|
58
58
|
return m(
|
|
59
59
|
/** @type {Document} */
|
|
60
60
|
e.head || e,
|
|
@@ -67,10 +67,10 @@ function L(e, t, r) {
|
|
|
67
67
|
function I(e) {
|
|
68
68
|
e.parentNode && e.parentNode.removeChild(e);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function x(e) {
|
|
71
71
|
return document.createElement(e);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function O(e) {
|
|
74
74
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
75
75
|
}
|
|
76
76
|
function N(e) {
|
|
@@ -79,10 +79,10 @@ function N(e) {
|
|
|
79
79
|
function j() {
|
|
80
80
|
return N(" ");
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function ln() {
|
|
83
83
|
return N("");
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function oe(e, t, r, n) {
|
|
86
86
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
87
87
|
}
|
|
88
88
|
function h(e, t, r) {
|
|
@@ -92,7 +92,7 @@ function W(e, t, r) {
|
|
|
92
92
|
const n = t.toLowerCase();
|
|
93
93
|
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);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function un(e) {
|
|
96
96
|
return Array.from(e.childNodes);
|
|
97
97
|
}
|
|
98
98
|
function te(e, t) {
|
|
@@ -102,7 +102,7 @@ function te(e, t) {
|
|
|
102
102
|
function rt(e, t) {
|
|
103
103
|
e.value = t ?? "";
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function cn(e) {
|
|
106
106
|
const t = {};
|
|
107
107
|
return e.childNodes.forEach(
|
|
108
108
|
/** @param {Element} node */
|
|
@@ -111,87 +111,87 @@ function mn(e) {
|
|
|
111
111
|
}
|
|
112
112
|
), t;
|
|
113
113
|
}
|
|
114
|
-
let
|
|
115
|
-
function
|
|
116
|
-
|
|
114
|
+
let ze;
|
|
115
|
+
function Ve(e) {
|
|
116
|
+
ze = e;
|
|
117
117
|
}
|
|
118
|
-
function
|
|
119
|
-
if (!
|
|
118
|
+
function hn() {
|
|
119
|
+
if (!ze)
|
|
120
120
|
throw new Error("Function called outside component initialization");
|
|
121
|
-
return
|
|
121
|
+
return ze;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
124
|
-
|
|
123
|
+
function fn(e) {
|
|
124
|
+
hn().$$.on_mount.push(e);
|
|
125
125
|
}
|
|
126
126
|
const He = [], ut = [];
|
|
127
127
|
let Be = [];
|
|
128
|
-
const
|
|
129
|
-
let
|
|
130
|
-
function
|
|
131
|
-
|
|
128
|
+
const Xt = [], dn = /* @__PURE__ */ Promise.resolve();
|
|
129
|
+
let St = !1;
|
|
130
|
+
function mn() {
|
|
131
|
+
St || (St = !0, dn.then(K));
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function Pt(e) {
|
|
134
134
|
Be.push(e);
|
|
135
135
|
}
|
|
136
|
-
const
|
|
136
|
+
const bt = /* @__PURE__ */ new Set();
|
|
137
137
|
let Pe = 0;
|
|
138
138
|
function K() {
|
|
139
139
|
if (Pe !== 0)
|
|
140
140
|
return;
|
|
141
|
-
const e =
|
|
141
|
+
const e = ze;
|
|
142
142
|
do {
|
|
143
143
|
try {
|
|
144
144
|
for (; Pe < He.length; ) {
|
|
145
145
|
const t = He[Pe];
|
|
146
|
-
Pe++,
|
|
146
|
+
Pe++, Ve(t), pn(t.$$);
|
|
147
147
|
}
|
|
148
148
|
} catch (t) {
|
|
149
149
|
throw He.length = 0, Pe = 0, t;
|
|
150
150
|
}
|
|
151
|
-
for (
|
|
151
|
+
for (Ve(null), He.length = 0, Pe = 0; ut.length; )
|
|
152
152
|
ut.pop()();
|
|
153
153
|
for (let t = 0; t < Be.length; t += 1) {
|
|
154
154
|
const r = Be[t];
|
|
155
|
-
|
|
155
|
+
bt.has(r) || (bt.add(r), r());
|
|
156
156
|
}
|
|
157
157
|
Be.length = 0;
|
|
158
158
|
} while (He.length);
|
|
159
|
-
for (;
|
|
160
|
-
|
|
161
|
-
|
|
159
|
+
for (; Xt.length; )
|
|
160
|
+
Xt.pop()();
|
|
161
|
+
St = !1, bt.clear(), Ve(e);
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function pn(e) {
|
|
164
164
|
if (e.fragment !== null) {
|
|
165
|
-
e.update(),
|
|
165
|
+
e.update(), Me(e.before_update);
|
|
166
166
|
const t = e.dirty;
|
|
167
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
167
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Pt);
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function gn(e) {
|
|
171
171
|
const t = [], r = [];
|
|
172
172
|
Be.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Be = t;
|
|
173
173
|
}
|
|
174
|
-
const
|
|
175
|
-
function
|
|
176
|
-
e && e.i && (
|
|
174
|
+
const bn = /* @__PURE__ */ new Set();
|
|
175
|
+
function yn(e, t) {
|
|
176
|
+
e && e.i && (bn.delete(e), e.i(t));
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function vn(e, t, r) {
|
|
179
179
|
const { fragment: n, after_update: i } = e.$$;
|
|
180
|
-
n && n.m(t, r),
|
|
181
|
-
const o = e.$$.on_mount.map(
|
|
182
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
183
|
-
}), i.forEach(
|
|
180
|
+
n && n.m(t, r), Pt(() => {
|
|
181
|
+
const o = e.$$.on_mount.map(_r).filter(Dt);
|
|
182
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Me(o), e.$$.on_mount = [];
|
|
183
|
+
}), i.forEach(Pt);
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function _n(e, t) {
|
|
186
186
|
const r = e.$$;
|
|
187
|
-
r.fragment !== null && (
|
|
187
|
+
r.fragment !== null && (gn(r.after_update), Me(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
188
188
|
}
|
|
189
|
-
function
|
|
190
|
-
e.$$.dirty[0] === -1 && (He.push(e),
|
|
189
|
+
function wn(e, t) {
|
|
190
|
+
e.$$.dirty[0] === -1 && (He.push(e), mn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
191
191
|
}
|
|
192
|
-
function
|
|
193
|
-
const c =
|
|
194
|
-
|
|
192
|
+
function En(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
193
|
+
const c = ze;
|
|
194
|
+
Ve(e);
|
|
195
195
|
const l = e.$$ = {
|
|
196
196
|
fragment: null,
|
|
197
197
|
ctx: [],
|
|
@@ -199,7 +199,7 @@ function Tn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
199
199
|
props: o,
|
|
200
200
|
update: Z,
|
|
201
201
|
not_equal: i,
|
|
202
|
-
bound:
|
|
202
|
+
bound: Vt(),
|
|
203
203
|
// lifecycle
|
|
204
204
|
on_mount: [],
|
|
205
205
|
on_destroy: [],
|
|
@@ -208,7 +208,7 @@ function Tn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
208
208
|
after_update: [],
|
|
209
209
|
context: new Map(t.context || (c ? c.$$.context : [])),
|
|
210
210
|
// everything else
|
|
211
|
-
callbacks:
|
|
211
|
+
callbacks: Vt(),
|
|
212
212
|
dirty: a,
|
|
213
213
|
skip_bound: !1,
|
|
214
214
|
root: t.target || c.$$.root
|
|
@@ -216,20 +216,20 @@ function Tn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
216
216
|
s && s(l.root);
|
|
217
217
|
let u = !1;
|
|
218
218
|
if (l.ctx = r ? r(e, t.props || {}, (f, d, ...b) => {
|
|
219
|
-
const
|
|
220
|
-
return l.ctx && i(l.ctx[f], l.ctx[f] =
|
|
221
|
-
}) : [], l.update(), u = !0,
|
|
219
|
+
const v = b.length ? b[0] : d;
|
|
220
|
+
return l.ctx && i(l.ctx[f], l.ctx[f] = v) && (!l.skip_bound && l.bound[f] && l.bound[f](v), u && wn(e, f)), d;
|
|
221
|
+
}) : [], l.update(), u = !0, Me(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
222
222
|
if (t.hydrate) {
|
|
223
|
-
const f =
|
|
223
|
+
const f = un(t.target);
|
|
224
224
|
l.fragment && l.fragment.l(f), f.forEach(I);
|
|
225
225
|
} else
|
|
226
226
|
l.fragment && l.fragment.c();
|
|
227
|
-
t.intro &&
|
|
227
|
+
t.intro && yn(e.$$.fragment), vn(e, t.target, t.anchor), K();
|
|
228
228
|
}
|
|
229
|
-
|
|
229
|
+
Ve(c);
|
|
230
230
|
}
|
|
231
|
-
let
|
|
232
|
-
typeof HTMLElement == "function" && (
|
|
231
|
+
let xr;
|
|
232
|
+
typeof HTMLElement == "function" && (xr = class extends HTMLElement {
|
|
233
233
|
/** The Svelte component constructor */
|
|
234
234
|
$$ctor;
|
|
235
235
|
/** Slots */
|
|
@@ -271,7 +271,7 @@ typeof HTMLElement == "function" && (Hr = class extends HTMLElement {
|
|
|
271
271
|
let o;
|
|
272
272
|
return {
|
|
273
273
|
c: function() {
|
|
274
|
-
o =
|
|
274
|
+
o = x("slot"), i !== "default" && h(o, "name", i);
|
|
275
275
|
},
|
|
276
276
|
/**
|
|
277
277
|
* @param {HTMLElement} target
|
|
@@ -288,7 +288,7 @@ typeof HTMLElement == "function" && (Hr = class extends HTMLElement {
|
|
|
288
288
|
};
|
|
289
289
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
290
290
|
return;
|
|
291
|
-
const t = {}, r =
|
|
291
|
+
const t = {}, r = cn(this);
|
|
292
292
|
for (const i of this.$$s)
|
|
293
293
|
i in r && (t[i] = [e(i)]);
|
|
294
294
|
for (const i of this.attributes) {
|
|
@@ -375,8 +375,8 @@ function ot(e, t, r, n) {
|
|
|
375
375
|
return t;
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
|
-
function
|
|
379
|
-
let s = class extends
|
|
378
|
+
function xn(e, t, r, n, i, o) {
|
|
379
|
+
let s = class extends xr {
|
|
380
380
|
constructor() {
|
|
381
381
|
super(e, r, i), this.$$p_d = t;
|
|
382
382
|
}
|
|
@@ -404,7 +404,7 @@ function Hn(e, t, r, n, i, o) {
|
|
|
404
404
|
}), e.element = /** @type {any} */
|
|
405
405
|
s, s;
|
|
406
406
|
}
|
|
407
|
-
class
|
|
407
|
+
class Sn {
|
|
408
408
|
/**
|
|
409
409
|
* ### PRIVATE API
|
|
410
410
|
*
|
|
@@ -423,7 +423,7 @@ class Bn {
|
|
|
423
423
|
$$set = void 0;
|
|
424
424
|
/** @returns {void} */
|
|
425
425
|
$destroy() {
|
|
426
|
-
|
|
426
|
+
_n(this, 1), this.$destroy = Z;
|
|
427
427
|
}
|
|
428
428
|
/**
|
|
429
429
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -432,7 +432,7 @@ class Bn {
|
|
|
432
432
|
* @returns {() => void}
|
|
433
433
|
*/
|
|
434
434
|
$on(t, r) {
|
|
435
|
-
if (!
|
|
435
|
+
if (!Dt(r))
|
|
436
436
|
return Z;
|
|
437
437
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
438
438
|
return n.push(r), () => {
|
|
@@ -445,11 +445,11 @@ class Bn {
|
|
|
445
445
|
* @returns {void}
|
|
446
446
|
*/
|
|
447
447
|
$set(t) {
|
|
448
|
-
this.$$set && !
|
|
448
|
+
this.$$set && !rn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
|
-
const
|
|
452
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
451
|
+
const Pn = "4";
|
|
452
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Pn);
|
|
453
453
|
/*! *****************************************************************************
|
|
454
454
|
Copyright (c) Microsoft Corporation.
|
|
455
455
|
|
|
@@ -464,24 +464,43 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
464
464
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
465
465
|
PERFORMANCE OF THIS SOFTWARE.
|
|
466
466
|
***************************************************************************** */
|
|
467
|
-
var
|
|
468
|
-
return
|
|
467
|
+
var Tt = function(e, t) {
|
|
468
|
+
return Tt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
469
469
|
r.__proto__ = n;
|
|
470
470
|
} || function(r, n) {
|
|
471
471
|
for (var i in n)
|
|
472
472
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
473
|
-
},
|
|
473
|
+
}, Tt(e, t);
|
|
474
474
|
};
|
|
475
|
-
function
|
|
475
|
+
function ae(e, t) {
|
|
476
476
|
if (typeof t != "function" && t !== null)
|
|
477
477
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
478
|
-
|
|
478
|
+
Tt(e, t);
|
|
479
479
|
function r() {
|
|
480
480
|
this.constructor = e;
|
|
481
481
|
}
|
|
482
482
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
var E = function() {
|
|
485
|
+
return E = Object.assign || function(t) {
|
|
486
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
487
|
+
r = arguments[n];
|
|
488
|
+
for (var o in r)
|
|
489
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
490
|
+
}
|
|
491
|
+
return t;
|
|
492
|
+
}, E.apply(this, arguments);
|
|
493
|
+
};
|
|
494
|
+
function Tn(e, t) {
|
|
495
|
+
var r = {};
|
|
496
|
+
for (var n in e)
|
|
497
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
498
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
499
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
500
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
501
|
+
return r;
|
|
502
|
+
}
|
|
503
|
+
function Ht(e) {
|
|
485
504
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
486
505
|
if (r)
|
|
487
506
|
return r.call(e);
|
|
@@ -493,7 +512,7 @@ function It(e) {
|
|
|
493
512
|
};
|
|
494
513
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
495
514
|
}
|
|
496
|
-
function
|
|
515
|
+
function Bt(e, t) {
|
|
497
516
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
498
517
|
if (!r)
|
|
499
518
|
return e;
|
|
@@ -513,22 +532,22 @@ function Ot(e, t) {
|
|
|
513
532
|
}
|
|
514
533
|
return o;
|
|
515
534
|
}
|
|
516
|
-
function
|
|
517
|
-
if (arguments.length === 2)
|
|
535
|
+
function Ae(e, t, r) {
|
|
536
|
+
if (r || arguments.length === 2)
|
|
518
537
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
519
538
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
520
539
|
return e.concat(o || t);
|
|
521
540
|
}
|
|
522
|
-
function
|
|
541
|
+
function se(e) {
|
|
523
542
|
return typeof e == "function";
|
|
524
543
|
}
|
|
525
|
-
function
|
|
544
|
+
function Sr(e) {
|
|
526
545
|
var t = function(n) {
|
|
527
546
|
Error.call(n), n.stack = new Error().stack;
|
|
528
547
|
}, r = e(t);
|
|
529
548
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
530
549
|
}
|
|
531
|
-
var
|
|
550
|
+
var yt = Sr(function(e) {
|
|
532
551
|
return function(r) {
|
|
533
552
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
534
553
|
` + r.map(function(n, i) {
|
|
@@ -537,13 +556,13 @@ var _t = Br(function(e) {
|
|
|
537
556
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
538
557
|
};
|
|
539
558
|
});
|
|
540
|
-
function
|
|
559
|
+
function At(e, t) {
|
|
541
560
|
if (e) {
|
|
542
561
|
var r = e.indexOf(t);
|
|
543
562
|
0 <= r && e.splice(r, 1);
|
|
544
563
|
}
|
|
545
564
|
}
|
|
546
|
-
var
|
|
565
|
+
var ft = function() {
|
|
547
566
|
function e(t) {
|
|
548
567
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
549
568
|
}
|
|
@@ -555,7 +574,7 @@ var dt = function() {
|
|
|
555
574
|
if (s)
|
|
556
575
|
if (this._parentage = null, Array.isArray(s))
|
|
557
576
|
try {
|
|
558
|
-
for (var a =
|
|
577
|
+
for (var a = Ht(s), c = a.next(); !c.done; c = a.next()) {
|
|
559
578
|
var l = c.value;
|
|
560
579
|
l.remove(this);
|
|
561
580
|
}
|
|
@@ -572,22 +591,22 @@ var dt = function() {
|
|
|
572
591
|
else
|
|
573
592
|
s.remove(this);
|
|
574
593
|
var u = this.initialTeardown;
|
|
575
|
-
if (
|
|
594
|
+
if (se(u))
|
|
576
595
|
try {
|
|
577
596
|
u();
|
|
578
597
|
} catch (g) {
|
|
579
|
-
o = g instanceof
|
|
598
|
+
o = g instanceof yt ? g.errors : [g];
|
|
580
599
|
}
|
|
581
600
|
var f = this._finalizers;
|
|
582
601
|
if (f) {
|
|
583
602
|
this._finalizers = null;
|
|
584
603
|
try {
|
|
585
|
-
for (var d =
|
|
586
|
-
var
|
|
604
|
+
for (var d = Ht(f), b = d.next(); !b.done; b = d.next()) {
|
|
605
|
+
var v = b.value;
|
|
587
606
|
try {
|
|
588
|
-
|
|
607
|
+
Wt(v);
|
|
589
608
|
} catch (g) {
|
|
590
|
-
o = o ?? [], g instanceof
|
|
609
|
+
o = o ?? [], g instanceof yt ? o = Ae(Ae([], Bt(o)), Bt(g.errors)) : o.push(g);
|
|
591
610
|
}
|
|
592
611
|
}
|
|
593
612
|
} catch (g) {
|
|
@@ -602,13 +621,13 @@ var dt = function() {
|
|
|
602
621
|
}
|
|
603
622
|
}
|
|
604
623
|
if (o)
|
|
605
|
-
throw new
|
|
624
|
+
throw new yt(o);
|
|
606
625
|
}
|
|
607
626
|
}, e.prototype.add = function(t) {
|
|
608
627
|
var r;
|
|
609
628
|
if (t && t !== this)
|
|
610
629
|
if (this.closed)
|
|
611
|
-
|
|
630
|
+
Wt(t);
|
|
612
631
|
else {
|
|
613
632
|
if (t instanceof e) {
|
|
614
633
|
if (t.closed || t._hasParent(this))
|
|
@@ -625,52 +644,56 @@ var dt = function() {
|
|
|
625
644
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
626
645
|
}, e.prototype._removeParent = function(t) {
|
|
627
646
|
var r = this._parentage;
|
|
628
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
647
|
+
r === t ? this._parentage = null : Array.isArray(r) && At(r, t);
|
|
629
648
|
}, e.prototype.remove = function(t) {
|
|
630
649
|
var r = this._finalizers;
|
|
631
|
-
r &&
|
|
650
|
+
r && At(r, t), t instanceof e && t._removeParent(this);
|
|
632
651
|
}, e.EMPTY = function() {
|
|
633
652
|
var t = new e();
|
|
634
653
|
return t.closed = !0, t;
|
|
635
654
|
}(), e;
|
|
636
|
-
}(),
|
|
637
|
-
function
|
|
638
|
-
return e instanceof
|
|
639
|
-
}
|
|
640
|
-
function
|
|
641
|
-
|
|
642
|
-
}
|
|
643
|
-
var
|
|
644
|
-
|
|
645
|
-
|
|
655
|
+
}(), Pr = ft.EMPTY;
|
|
656
|
+
function Tr(e) {
|
|
657
|
+
return e instanceof ft || e && "closed" in e && se(e.remove) && se(e.add) && se(e.unsubscribe);
|
|
658
|
+
}
|
|
659
|
+
function Wt(e) {
|
|
660
|
+
se(e) ? e() : e.unsubscribe();
|
|
661
|
+
}
|
|
662
|
+
var Hn = {
|
|
663
|
+
onUnhandledError: null,
|
|
664
|
+
onStoppedNotification: null,
|
|
665
|
+
Promise: void 0,
|
|
666
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
667
|
+
useDeprecatedNextContext: !1
|
|
668
|
+
}, Bn = {
|
|
646
669
|
setTimeout: function(e, t) {
|
|
647
670
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
648
671
|
r[n - 2] = arguments[n];
|
|
649
|
-
return setTimeout.apply(void 0,
|
|
672
|
+
return setTimeout.apply(void 0, Ae([e, t], Bt(r)));
|
|
650
673
|
},
|
|
651
674
|
clearTimeout: function(e) {
|
|
652
675
|
return clearTimeout(e);
|
|
653
676
|
},
|
|
654
677
|
delegate: void 0
|
|
655
678
|
};
|
|
656
|
-
function
|
|
657
|
-
|
|
679
|
+
function An(e) {
|
|
680
|
+
Bn.setTimeout(function() {
|
|
658
681
|
throw e;
|
|
659
682
|
});
|
|
660
683
|
}
|
|
661
|
-
function
|
|
684
|
+
function Zt() {
|
|
662
685
|
}
|
|
663
686
|
function st(e) {
|
|
664
687
|
e();
|
|
665
688
|
}
|
|
666
|
-
var
|
|
667
|
-
|
|
689
|
+
var Hr = function(e) {
|
|
690
|
+
ae(t, e);
|
|
668
691
|
function t(r) {
|
|
669
692
|
var n = e.call(this) || this;
|
|
670
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
693
|
+
return n.isStopped = !1, r ? (n.destination = r, Tr(r) && r.add(n)) : n.destination = On, n;
|
|
671
694
|
}
|
|
672
695
|
return t.create = function(r, n, i) {
|
|
673
|
-
return new
|
|
696
|
+
return new It(r, n, i);
|
|
674
697
|
}, t.prototype.next = function(r) {
|
|
675
698
|
this.isStopped || this._next(r);
|
|
676
699
|
}, t.prototype.error = function(r) {
|
|
@@ -694,7 +717,7 @@ var Or = function(e) {
|
|
|
694
717
|
this.unsubscribe();
|
|
695
718
|
}
|
|
696
719
|
}, t;
|
|
697
|
-
}(
|
|
720
|
+
}(ft), In = function() {
|
|
698
721
|
function e(t) {
|
|
699
722
|
this.partialObserver = t;
|
|
700
723
|
}
|
|
@@ -725,43 +748,43 @@ var Or = function(e) {
|
|
|
725
748
|
nt(r);
|
|
726
749
|
}
|
|
727
750
|
}, e;
|
|
728
|
-
}(),
|
|
729
|
-
|
|
751
|
+
}(), It = function(e) {
|
|
752
|
+
ae(t, e);
|
|
730
753
|
function t(r, n, i) {
|
|
731
754
|
var o = e.call(this) || this, s;
|
|
732
|
-
return
|
|
755
|
+
return se(r) || !r ? s = {
|
|
733
756
|
next: r ?? void 0,
|
|
734
757
|
error: n ?? void 0,
|
|
735
758
|
complete: i ?? void 0
|
|
736
|
-
} : s = r, o.destination = new
|
|
759
|
+
} : s = r, o.destination = new In(s), o;
|
|
737
760
|
}
|
|
738
761
|
return t;
|
|
739
|
-
}(
|
|
762
|
+
}(Hr);
|
|
740
763
|
function nt(e) {
|
|
741
|
-
|
|
764
|
+
An(e);
|
|
742
765
|
}
|
|
743
|
-
function
|
|
766
|
+
function Cn(e) {
|
|
744
767
|
throw e;
|
|
745
768
|
}
|
|
746
|
-
var
|
|
769
|
+
var On = {
|
|
747
770
|
closed: !0,
|
|
748
|
-
next:
|
|
749
|
-
error:
|
|
750
|
-
complete:
|
|
751
|
-
},
|
|
771
|
+
next: Zt,
|
|
772
|
+
error: Cn,
|
|
773
|
+
complete: Zt
|
|
774
|
+
}, Ln = function() {
|
|
752
775
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
753
776
|
}();
|
|
754
|
-
function
|
|
777
|
+
function Mn(e) {
|
|
755
778
|
return e;
|
|
756
779
|
}
|
|
757
|
-
function
|
|
758
|
-
return e.length === 0 ?
|
|
780
|
+
function Nn(e) {
|
|
781
|
+
return e.length === 0 ? Mn : e.length === 1 ? e[0] : function(r) {
|
|
759
782
|
return e.reduce(function(n, i) {
|
|
760
783
|
return i(n);
|
|
761
784
|
}, r);
|
|
762
785
|
};
|
|
763
786
|
}
|
|
764
|
-
var
|
|
787
|
+
var qt = function() {
|
|
765
788
|
function e(t) {
|
|
766
789
|
t && (this._subscribe = t);
|
|
767
790
|
}
|
|
@@ -769,7 +792,7 @@ var Kt = function() {
|
|
|
769
792
|
var r = new e();
|
|
770
793
|
return r.source = this, r.operator = t, r;
|
|
771
794
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
772
|
-
var i = this, o =
|
|
795
|
+
var i = this, o = Un(t) ? t : new It(t, r, n);
|
|
773
796
|
return st(function() {
|
|
774
797
|
var s = i, a = s.operator, c = s.source;
|
|
775
798
|
o.add(a ? a.call(o, c) : c ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -782,8 +805,8 @@ var Kt = function() {
|
|
|
782
805
|
}
|
|
783
806
|
}, e.prototype.forEach = function(t, r) {
|
|
784
807
|
var n = this;
|
|
785
|
-
return r =
|
|
786
|
-
var s = new
|
|
808
|
+
return r = Jt(r), new r(function(i, o) {
|
|
809
|
+
var s = new It({
|
|
787
810
|
next: function(a) {
|
|
788
811
|
try {
|
|
789
812
|
t(a);
|
|
@@ -799,15 +822,15 @@ var Kt = function() {
|
|
|
799
822
|
}, e.prototype._subscribe = function(t) {
|
|
800
823
|
var r;
|
|
801
824
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
802
|
-
}, e.prototype[
|
|
825
|
+
}, e.prototype[Ln] = function() {
|
|
803
826
|
return this;
|
|
804
827
|
}, e.prototype.pipe = function() {
|
|
805
828
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
806
829
|
t[r] = arguments[r];
|
|
807
|
-
return
|
|
830
|
+
return Nn(t)(this);
|
|
808
831
|
}, e.prototype.toPromise = function(t) {
|
|
809
832
|
var r = this;
|
|
810
|
-
return t =
|
|
833
|
+
return t = Jt(t), new t(function(n, i) {
|
|
811
834
|
var o;
|
|
812
835
|
r.subscribe(function(s) {
|
|
813
836
|
return o = s;
|
|
@@ -821,32 +844,32 @@ var Kt = function() {
|
|
|
821
844
|
return new e(t);
|
|
822
845
|
}, e;
|
|
823
846
|
}();
|
|
824
|
-
function
|
|
847
|
+
function Jt(e) {
|
|
825
848
|
var t;
|
|
826
|
-
return (t = e ??
|
|
849
|
+
return (t = e ?? Hn.Promise) !== null && t !== void 0 ? t : Promise;
|
|
827
850
|
}
|
|
828
|
-
function
|
|
829
|
-
return e &&
|
|
851
|
+
function Rn(e) {
|
|
852
|
+
return e && se(e.next) && se(e.error) && se(e.complete);
|
|
830
853
|
}
|
|
831
|
-
function
|
|
832
|
-
return e && e instanceof
|
|
854
|
+
function Un(e) {
|
|
855
|
+
return e && e instanceof Hr || Rn(e) && Tr(e);
|
|
833
856
|
}
|
|
834
|
-
var
|
|
857
|
+
var Fn = Sr(function(e) {
|
|
835
858
|
return function() {
|
|
836
859
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
837
860
|
};
|
|
838
|
-
}),
|
|
839
|
-
|
|
861
|
+
}), Br = function(e) {
|
|
862
|
+
ae(t, e);
|
|
840
863
|
function t() {
|
|
841
864
|
var r = e.call(this) || this;
|
|
842
865
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
843
866
|
}
|
|
844
867
|
return t.prototype.lift = function(r) {
|
|
845
|
-
var n = new
|
|
868
|
+
var n = new Qt(this, this);
|
|
846
869
|
return n.operator = r, n;
|
|
847
870
|
}, t.prototype._throwIfClosed = function() {
|
|
848
871
|
if (this.closed)
|
|
849
|
-
throw new
|
|
872
|
+
throw new Fn();
|
|
850
873
|
}, t.prototype.next = function(r) {
|
|
851
874
|
var n = this;
|
|
852
875
|
st(function() {
|
|
@@ -854,7 +877,7 @@ var $n = Br(function(e) {
|
|
|
854
877
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
855
878
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
856
879
|
try {
|
|
857
|
-
for (var s =
|
|
880
|
+
for (var s = Ht(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
858
881
|
var c = a.value;
|
|
859
882
|
c.next(r);
|
|
860
883
|
}
|
|
@@ -903,20 +926,20 @@ var $n = Br(function(e) {
|
|
|
903
926
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
904
927
|
}, t.prototype._innerSubscribe = function(r) {
|
|
905
928
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
906
|
-
return o || s ?
|
|
907
|
-
n.currentObservers = null,
|
|
929
|
+
return o || s ? Pr : (this.currentObservers = null, a.push(r), new ft(function() {
|
|
930
|
+
n.currentObservers = null, At(a, r);
|
|
908
931
|
}));
|
|
909
932
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
910
933
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
911
934
|
i ? r.error(o) : s && r.complete();
|
|
912
935
|
}, t.prototype.asObservable = function() {
|
|
913
|
-
var r = new
|
|
936
|
+
var r = new qt();
|
|
914
937
|
return r.source = this, r;
|
|
915
938
|
}, t.create = function(r, n) {
|
|
916
|
-
return new
|
|
939
|
+
return new Qt(r, n);
|
|
917
940
|
}, t;
|
|
918
|
-
}(
|
|
919
|
-
|
|
941
|
+
}(qt), Qt = function(e) {
|
|
942
|
+
ae(t, e);
|
|
920
943
|
function t(r, n) {
|
|
921
944
|
var i = e.call(this) || this;
|
|
922
945
|
return i.destination = r, i.source = n, i;
|
|
@@ -932,17 +955,17 @@ var $n = Br(function(e) {
|
|
|
932
955
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
933
956
|
}, t.prototype._subscribe = function(r) {
|
|
934
957
|
var n, i;
|
|
935
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
958
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Pr;
|
|
936
959
|
}, t;
|
|
937
|
-
}(
|
|
960
|
+
}(Br), Ar = {
|
|
938
961
|
now: function() {
|
|
939
|
-
return (
|
|
962
|
+
return (Ar.delegate || Date).now();
|
|
940
963
|
},
|
|
941
964
|
delegate: void 0
|
|
942
|
-
},
|
|
943
|
-
|
|
965
|
+
}, Dn = function(e) {
|
|
966
|
+
ae(t, e);
|
|
944
967
|
function t(r, n, i) {
|
|
945
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
968
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ar);
|
|
946
969
|
var o = e.call(this) || this;
|
|
947
970
|
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;
|
|
948
971
|
}
|
|
@@ -962,24 +985,24 @@ var $n = Br(function(e) {
|
|
|
962
985
|
l && o.splice(0, l + 1);
|
|
963
986
|
}
|
|
964
987
|
}, t;
|
|
965
|
-
}(
|
|
966
|
-
const
|
|
967
|
-
if (
|
|
968
|
-
const r = new
|
|
969
|
-
|
|
988
|
+
}(Br);
|
|
989
|
+
const Yt = [], Kt = {}, kn = (e, t = 0) => {
|
|
990
|
+
if (Yt.indexOf(e) == -1) {
|
|
991
|
+
const r = new Dn(t);
|
|
992
|
+
Kt[e] = r, Yt.push(e);
|
|
970
993
|
}
|
|
971
|
-
return
|
|
994
|
+
return Kt[e];
|
|
972
995
|
}, Te = [];
|
|
973
|
-
function
|
|
996
|
+
function Gn(e, t) {
|
|
974
997
|
return {
|
|
975
|
-
subscribe:
|
|
998
|
+
subscribe: dt(e, t).subscribe
|
|
976
999
|
};
|
|
977
1000
|
}
|
|
978
|
-
function
|
|
1001
|
+
function dt(e, t = Z) {
|
|
979
1002
|
let r;
|
|
980
1003
|
const n = /* @__PURE__ */ new Set();
|
|
981
1004
|
function i(a) {
|
|
982
|
-
if (
|
|
1005
|
+
if (wr(e, a) && (e = a, r)) {
|
|
983
1006
|
const c = !Te.length;
|
|
984
1007
|
for (const l of n)
|
|
985
1008
|
l[1](), Te.push(l, e);
|
|
@@ -1001,12 +1024,12 @@ function mt(e, t = Z) {
|
|
|
1001
1024
|
}
|
|
1002
1025
|
return { set: i, update: o, subscribe: s };
|
|
1003
1026
|
}
|
|
1004
|
-
function
|
|
1027
|
+
function Ne(e, t, r) {
|
|
1005
1028
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1006
1029
|
if (!i.every(Boolean))
|
|
1007
1030
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1008
1031
|
const o = t.length < 2;
|
|
1009
|
-
return
|
|
1032
|
+
return Gn(r, (s, a) => {
|
|
1010
1033
|
let c = !1;
|
|
1011
1034
|
const l = [];
|
|
1012
1035
|
let u = 0, f = Z;
|
|
@@ -1014,13 +1037,13 @@ function Me(e, t, r) {
|
|
|
1014
1037
|
if (u)
|
|
1015
1038
|
return;
|
|
1016
1039
|
f();
|
|
1017
|
-
const
|
|
1018
|
-
o ? s(
|
|
1040
|
+
const v = t(n ? l[0] : l, s, a);
|
|
1041
|
+
o ? s(v) : f = Dt(v) ? v : Z;
|
|
1019
1042
|
}, b = i.map(
|
|
1020
|
-
(
|
|
1021
|
-
|
|
1022
|
-
(
|
|
1023
|
-
l[g] =
|
|
1043
|
+
(v, g) => Er(
|
|
1044
|
+
v,
|
|
1045
|
+
(S) => {
|
|
1046
|
+
l[g] = S, u &= ~(1 << g), c && d();
|
|
1024
1047
|
},
|
|
1025
1048
|
() => {
|
|
1026
1049
|
u |= 1 << g;
|
|
@@ -1028,157 +1051,118 @@ function Me(e, t, r) {
|
|
|
1028
1051
|
)
|
|
1029
1052
|
);
|
|
1030
1053
|
return c = !0, d(), function() {
|
|
1031
|
-
|
|
1054
|
+
Me(b), f(), c = !1;
|
|
1032
1055
|
};
|
|
1033
1056
|
});
|
|
1034
1057
|
}
|
|
1035
|
-
function
|
|
1036
|
-
return e
|
|
1058
|
+
function $n(e) {
|
|
1059
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1037
1060
|
}
|
|
1038
|
-
var
|
|
1039
|
-
return
|
|
1061
|
+
var jn = function(t) {
|
|
1062
|
+
return Vn(t) && !zn(t);
|
|
1040
1063
|
};
|
|
1041
|
-
function
|
|
1064
|
+
function Vn(e) {
|
|
1042
1065
|
return !!e && typeof e == "object";
|
|
1043
1066
|
}
|
|
1044
|
-
function
|
|
1067
|
+
function zn(e) {
|
|
1045
1068
|
var t = Object.prototype.toString.call(e);
|
|
1046
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1069
|
+
return t === "[object RegExp]" || t === "[object Date]" || Zn(e);
|
|
1047
1070
|
}
|
|
1048
|
-
var
|
|
1049
|
-
function
|
|
1050
|
-
return e.$$typeof ===
|
|
1071
|
+
var Xn = typeof Symbol == "function" && Symbol.for, Wn = Xn ? Symbol.for("react.element") : 60103;
|
|
1072
|
+
function Zn(e) {
|
|
1073
|
+
return e.$$typeof === Wn;
|
|
1051
1074
|
}
|
|
1052
|
-
function
|
|
1075
|
+
function qn(e) {
|
|
1053
1076
|
return Array.isArray(e) ? [] : {};
|
|
1054
1077
|
}
|
|
1055
|
-
function
|
|
1056
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1078
|
+
function Xe(e, t) {
|
|
1079
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Ie(qn(e), e, t) : e;
|
|
1057
1080
|
}
|
|
1058
|
-
function
|
|
1081
|
+
function Jn(e, t, r) {
|
|
1059
1082
|
return e.concat(t).map(function(n) {
|
|
1060
|
-
return
|
|
1083
|
+
return Xe(n, r);
|
|
1061
1084
|
});
|
|
1062
1085
|
}
|
|
1063
|
-
function
|
|
1086
|
+
function Qn(e, t) {
|
|
1064
1087
|
if (!t.customMerge)
|
|
1065
|
-
return
|
|
1088
|
+
return Ie;
|
|
1066
1089
|
var r = t.customMerge(e);
|
|
1067
|
-
return typeof r == "function" ? r :
|
|
1090
|
+
return typeof r == "function" ? r : Ie;
|
|
1068
1091
|
}
|
|
1069
|
-
function
|
|
1092
|
+
function Yn(e) {
|
|
1070
1093
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1071
1094
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1072
1095
|
}) : [];
|
|
1073
1096
|
}
|
|
1074
|
-
function
|
|
1075
|
-
return Object.keys(e).concat(
|
|
1097
|
+
function er(e) {
|
|
1098
|
+
return Object.keys(e).concat(Yn(e));
|
|
1076
1099
|
}
|
|
1077
|
-
function
|
|
1100
|
+
function Ir(e, t) {
|
|
1078
1101
|
try {
|
|
1079
1102
|
return t in e;
|
|
1080
1103
|
} catch {
|
|
1081
1104
|
return !1;
|
|
1082
1105
|
}
|
|
1083
1106
|
}
|
|
1084
|
-
function
|
|
1085
|
-
return
|
|
1107
|
+
function Kn(e, t) {
|
|
1108
|
+
return Ir(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1086
1109
|
}
|
|
1087
|
-
function
|
|
1110
|
+
function ei(e, t, r) {
|
|
1088
1111
|
var n = {};
|
|
1089
|
-
return r.isMergeableObject(e) &&
|
|
1090
|
-
n[i] =
|
|
1091
|
-
}),
|
|
1092
|
-
|
|
1112
|
+
return r.isMergeableObject(e) && er(e).forEach(function(i) {
|
|
1113
|
+
n[i] = Xe(e[i], r);
|
|
1114
|
+
}), er(t).forEach(function(i) {
|
|
1115
|
+
Kn(e, i) || (Ir(e, i) && r.isMergeableObject(t[i]) ? n[i] = Qn(i, r)(e[i], t[i], r) : n[i] = Xe(t[i], r));
|
|
1093
1116
|
}), n;
|
|
1094
1117
|
}
|
|
1095
|
-
function
|
|
1096
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1118
|
+
function Ie(e, t, r) {
|
|
1119
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Jn, r.isMergeableObject = r.isMergeableObject || jn, r.cloneUnlessOtherwiseSpecified = Xe;
|
|
1097
1120
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1098
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1121
|
+
return o ? n ? r.arrayMerge(e, t, r) : ei(e, t, r) : Xe(t, r);
|
|
1099
1122
|
}
|
|
1100
|
-
|
|
1123
|
+
Ie.all = function(t, r) {
|
|
1101
1124
|
if (!Array.isArray(t))
|
|
1102
1125
|
throw new Error("first argument should be an array");
|
|
1103
1126
|
return t.reduce(function(n, i) {
|
|
1104
|
-
return
|
|
1127
|
+
return Ie(n, i, r);
|
|
1105
1128
|
}, {});
|
|
1106
1129
|
};
|
|
1107
|
-
var
|
|
1108
|
-
const
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
r.__proto__ = n;
|
|
1112
|
-
} || function(r, n) {
|
|
1113
|
-
for (var i in n)
|
|
1114
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1115
|
-
}, Nt(e, t);
|
|
1116
|
-
};
|
|
1117
|
-
function pt(e, t) {
|
|
1118
|
-
if (typeof t != "function" && t !== null)
|
|
1119
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1120
|
-
Nt(e, t);
|
|
1121
|
-
function r() {
|
|
1122
|
-
this.constructor = e;
|
|
1123
|
-
}
|
|
1124
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1125
|
-
}
|
|
1126
|
-
var ie = function() {
|
|
1127
|
-
return ie = Object.assign || function(t) {
|
|
1128
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1129
|
-
r = arguments[n];
|
|
1130
|
-
for (var o in r)
|
|
1131
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1132
|
-
}
|
|
1133
|
-
return t;
|
|
1134
|
-
}, ie.apply(this, arguments);
|
|
1135
|
-
};
|
|
1136
|
-
function ai(e, t) {
|
|
1137
|
-
var r = {};
|
|
1138
|
-
for (var n in e)
|
|
1139
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1140
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1141
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1142
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1143
|
-
return r;
|
|
1144
|
-
}
|
|
1145
|
-
function wt(e, t, r) {
|
|
1146
|
-
if (r || arguments.length === 2)
|
|
1147
|
-
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1148
|
-
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1149
|
-
return e.concat(o || Array.prototype.slice.call(t));
|
|
1150
|
-
}
|
|
1151
|
-
function Et(e, t) {
|
|
1152
|
-
var r = t && t.cache ? t.cache : mi, n = t && t.serializer ? t.serializer : fi, i = t && t.strategy ? t.strategy : ci;
|
|
1130
|
+
var ti = Ie, ri = ti;
|
|
1131
|
+
const ni = /* @__PURE__ */ $n(ri);
|
|
1132
|
+
function vt(e, t) {
|
|
1133
|
+
var r = t && t.cache ? t.cache : ci, n = t && t.serializer ? t.serializer : li, i = t && t.strategy ? t.strategy : oi;
|
|
1153
1134
|
return i(e, {
|
|
1154
1135
|
cache: r,
|
|
1155
1136
|
serializer: n
|
|
1156
1137
|
});
|
|
1157
1138
|
}
|
|
1158
|
-
function
|
|
1139
|
+
function ii(e) {
|
|
1159
1140
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1160
1141
|
}
|
|
1161
|
-
function
|
|
1162
|
-
var i =
|
|
1142
|
+
function Cr(e, t, r, n) {
|
|
1143
|
+
var i = ii(n) ? n : r(n), o = t.get(i);
|
|
1163
1144
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1164
1145
|
}
|
|
1165
|
-
function
|
|
1146
|
+
function Or(e, t, r) {
|
|
1166
1147
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1167
1148
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1168
1149
|
}
|
|
1169
|
-
function
|
|
1150
|
+
function kt(e, t, r, n, i) {
|
|
1170
1151
|
return r.bind(t, e, n, i);
|
|
1171
1152
|
}
|
|
1172
|
-
function
|
|
1173
|
-
var r = e.length === 1 ?
|
|
1174
|
-
return
|
|
1153
|
+
function oi(e, t) {
|
|
1154
|
+
var r = e.length === 1 ? Cr : Or;
|
|
1155
|
+
return kt(e, this, r, t.cache.create(), t.serializer);
|
|
1175
1156
|
}
|
|
1176
|
-
function
|
|
1177
|
-
return
|
|
1157
|
+
function si(e, t) {
|
|
1158
|
+
return kt(e, this, Or, t.cache.create(), t.serializer);
|
|
1178
1159
|
}
|
|
1179
|
-
|
|
1160
|
+
function ai(e, t) {
|
|
1161
|
+
return kt(e, this, Cr, t.cache.create(), t.serializer);
|
|
1162
|
+
}
|
|
1163
|
+
var li = function() {
|
|
1180
1164
|
return JSON.stringify(arguments);
|
|
1181
|
-
},
|
|
1165
|
+
}, ui = (
|
|
1182
1166
|
/** @class */
|
|
1183
1167
|
function() {
|
|
1184
1168
|
function e() {
|
|
@@ -1190,71 +1174,62 @@ var fi = function() {
|
|
|
1190
1174
|
this.cache[t] = r;
|
|
1191
1175
|
}, e;
|
|
1192
1176
|
}()
|
|
1193
|
-
),
|
|
1177
|
+
), ci = {
|
|
1194
1178
|
create: function() {
|
|
1195
|
-
return new
|
|
1179
|
+
return new ui();
|
|
1196
1180
|
}
|
|
1197
|
-
},
|
|
1198
|
-
variadic:
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1202
|
-
r = arguments[n];
|
|
1203
|
-
for (var o in r)
|
|
1204
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1205
|
-
}
|
|
1206
|
-
return t;
|
|
1207
|
-
}, ct.apply(this, arguments);
|
|
1208
|
-
};
|
|
1209
|
-
var _;
|
|
1181
|
+
}, _t = {
|
|
1182
|
+
variadic: si,
|
|
1183
|
+
monadic: ai
|
|
1184
|
+
}, _;
|
|
1210
1185
|
(function(e) {
|
|
1211
1186
|
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";
|
|
1212
1187
|
})(_ || (_ = {}));
|
|
1213
|
-
var
|
|
1188
|
+
var T;
|
|
1214
1189
|
(function(e) {
|
|
1215
1190
|
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";
|
|
1216
|
-
})(
|
|
1217
|
-
var
|
|
1191
|
+
})(T || (T = {}));
|
|
1192
|
+
var Ce;
|
|
1218
1193
|
(function(e) {
|
|
1219
1194
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1220
|
-
})(
|
|
1221
|
-
function
|
|
1222
|
-
return e.type ===
|
|
1195
|
+
})(Ce || (Ce = {}));
|
|
1196
|
+
function tr(e) {
|
|
1197
|
+
return e.type === T.literal;
|
|
1223
1198
|
}
|
|
1224
|
-
function
|
|
1225
|
-
return e.type ===
|
|
1199
|
+
function hi(e) {
|
|
1200
|
+
return e.type === T.argument;
|
|
1226
1201
|
}
|
|
1227
|
-
function
|
|
1228
|
-
return e.type ===
|
|
1202
|
+
function Lr(e) {
|
|
1203
|
+
return e.type === T.number;
|
|
1229
1204
|
}
|
|
1230
|
-
function
|
|
1231
|
-
return e.type ===
|
|
1205
|
+
function Mr(e) {
|
|
1206
|
+
return e.type === T.date;
|
|
1232
1207
|
}
|
|
1233
|
-
function
|
|
1234
|
-
return e.type ===
|
|
1208
|
+
function Nr(e) {
|
|
1209
|
+
return e.type === T.time;
|
|
1235
1210
|
}
|
|
1236
|
-
function
|
|
1237
|
-
return e.type ===
|
|
1211
|
+
function Rr(e) {
|
|
1212
|
+
return e.type === T.select;
|
|
1238
1213
|
}
|
|
1239
|
-
function
|
|
1240
|
-
return e.type ===
|
|
1214
|
+
function Ur(e) {
|
|
1215
|
+
return e.type === T.plural;
|
|
1241
1216
|
}
|
|
1242
|
-
function
|
|
1243
|
-
return e.type ===
|
|
1217
|
+
function fi(e) {
|
|
1218
|
+
return e.type === T.pound;
|
|
1244
1219
|
}
|
|
1245
|
-
function
|
|
1246
|
-
return e.type ===
|
|
1220
|
+
function Fr(e) {
|
|
1221
|
+
return e.type === T.tag;
|
|
1247
1222
|
}
|
|
1248
|
-
function
|
|
1249
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1223
|
+
function Dr(e) {
|
|
1224
|
+
return !!(e && typeof e == "object" && e.type === Ce.number);
|
|
1250
1225
|
}
|
|
1251
|
-
function
|
|
1252
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1226
|
+
function Ct(e) {
|
|
1227
|
+
return !!(e && typeof e == "object" && e.type === Ce.dateTime);
|
|
1253
1228
|
}
|
|
1254
|
-
var
|
|
1255
|
-
function
|
|
1229
|
+
var kr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, di = /(?:[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;
|
|
1230
|
+
function mi(e) {
|
|
1256
1231
|
var t = {};
|
|
1257
|
-
return e.replace(
|
|
1232
|
+
return e.replace(di, function(r) {
|
|
1258
1233
|
var n = r.length;
|
|
1259
1234
|
switch (r[0]) {
|
|
1260
1235
|
case "G":
|
|
@@ -1343,21 +1318,11 @@ function vi(e) {
|
|
|
1343
1318
|
return "";
|
|
1344
1319
|
}), t;
|
|
1345
1320
|
}
|
|
1346
|
-
var
|
|
1347
|
-
|
|
1348
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1349
|
-
r = arguments[n];
|
|
1350
|
-
for (var o in r)
|
|
1351
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1352
|
-
}
|
|
1353
|
-
return t;
|
|
1354
|
-
}, T.apply(this, arguments);
|
|
1355
|
-
};
|
|
1356
|
-
var yi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1357
|
-
function _i(e) {
|
|
1321
|
+
var pi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1322
|
+
function gi(e) {
|
|
1358
1323
|
if (e.length === 0)
|
|
1359
1324
|
throw new Error("Number skeleton cannot be empty");
|
|
1360
|
-
for (var t = e.split(
|
|
1325
|
+
for (var t = e.split(pi).filter(function(d) {
|
|
1361
1326
|
return d.length > 0;
|
|
1362
1327
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1363
1328
|
var o = i[n], s = o.split("/");
|
|
@@ -1372,17 +1337,17 @@ function _i(e) {
|
|
|
1372
1337
|
}
|
|
1373
1338
|
return r;
|
|
1374
1339
|
}
|
|
1375
|
-
function
|
|
1340
|
+
function bi(e) {
|
|
1376
1341
|
return e.replace(/^(.*?)-/, "");
|
|
1377
1342
|
}
|
|
1378
|
-
var
|
|
1379
|
-
function
|
|
1343
|
+
var rr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Gr = /^(@+)?(\+|#+)?[rs]?$/g, yi = /(\*)(0+)|(#+)(0+)|(0+)/g, $r = /^(0+)$/;
|
|
1344
|
+
function nr(e) {
|
|
1380
1345
|
var t = {};
|
|
1381
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1346
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Gr, function(r, n, i) {
|
|
1382
1347
|
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)), "";
|
|
1383
1348
|
}), t;
|
|
1384
1349
|
}
|
|
1385
|
-
function
|
|
1350
|
+
function jr(e) {
|
|
1386
1351
|
switch (e) {
|
|
1387
1352
|
case "sign-auto":
|
|
1388
1353
|
return {
|
|
@@ -1422,7 +1387,7 @@ function Wr(e) {
|
|
|
1422
1387
|
};
|
|
1423
1388
|
}
|
|
1424
1389
|
}
|
|
1425
|
-
function
|
|
1390
|
+
function vi(e) {
|
|
1426
1391
|
var t;
|
|
1427
1392
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1428
1393
|
notation: "engineering"
|
|
@@ -1430,17 +1395,17 @@ function xi(e) {
|
|
|
1430
1395
|
notation: "scientific"
|
|
1431
1396
|
}, e = e.slice(1)), t) {
|
|
1432
1397
|
var r = e.slice(0, 2);
|
|
1433
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)),
|
|
1398
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !$r.test(e))
|
|
1434
1399
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1435
1400
|
t.minimumIntegerDigits = e.length;
|
|
1436
1401
|
}
|
|
1437
1402
|
return t;
|
|
1438
1403
|
}
|
|
1439
|
-
function
|
|
1440
|
-
var t = {}, r =
|
|
1404
|
+
function ir(e) {
|
|
1405
|
+
var t = {}, r = jr(e);
|
|
1441
1406
|
return r || t;
|
|
1442
1407
|
}
|
|
1443
|
-
function
|
|
1408
|
+
function _i(e) {
|
|
1444
1409
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1445
1410
|
var i = n[r];
|
|
1446
1411
|
switch (i.stem) {
|
|
@@ -1464,7 +1429,7 @@ function Si(e) {
|
|
|
1464
1429
|
continue;
|
|
1465
1430
|
case "measure-unit":
|
|
1466
1431
|
case "unit":
|
|
1467
|
-
t.style = "unit", t.unit =
|
|
1432
|
+
t.style = "unit", t.unit = bi(i.options[0]);
|
|
1468
1433
|
continue;
|
|
1469
1434
|
case "compact-short":
|
|
1470
1435
|
case "K":
|
|
@@ -1475,13 +1440,13 @@ function Si(e) {
|
|
|
1475
1440
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1476
1441
|
continue;
|
|
1477
1442
|
case "scientific":
|
|
1478
|
-
t =
|
|
1479
|
-
return
|
|
1443
|
+
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(c, l) {
|
|
1444
|
+
return E(E({}, c), ir(l));
|
|
1480
1445
|
}, {}));
|
|
1481
1446
|
continue;
|
|
1482
1447
|
case "engineering":
|
|
1483
|
-
t =
|
|
1484
|
-
return
|
|
1448
|
+
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(c, l) {
|
|
1449
|
+
return E(E({}, c), ir(l));
|
|
1485
1450
|
}, {}));
|
|
1486
1451
|
continue;
|
|
1487
1452
|
case "notation-simple":
|
|
@@ -1526,7 +1491,7 @@ function Si(e) {
|
|
|
1526
1491
|
case "integer-width":
|
|
1527
1492
|
if (i.options.length > 1)
|
|
1528
1493
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1529
|
-
i.options[0].replace(
|
|
1494
|
+
i.options[0].replace(yi, function(c, l, u, f, d, b) {
|
|
1530
1495
|
if (l)
|
|
1531
1496
|
t.minimumIntegerDigits = u.length;
|
|
1532
1497
|
else {
|
|
@@ -1539,28 +1504,28 @@ function Si(e) {
|
|
|
1539
1504
|
});
|
|
1540
1505
|
continue;
|
|
1541
1506
|
}
|
|
1542
|
-
if (
|
|
1507
|
+
if ($r.test(i.stem)) {
|
|
1543
1508
|
t.minimumIntegerDigits = i.stem.length;
|
|
1544
1509
|
continue;
|
|
1545
1510
|
}
|
|
1546
|
-
if (
|
|
1511
|
+
if (rr.test(i.stem)) {
|
|
1547
1512
|
if (i.options.length > 1)
|
|
1548
1513
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1549
|
-
i.stem.replace(
|
|
1514
|
+
i.stem.replace(rr, function(c, l, u, f, d, b) {
|
|
1550
1515
|
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), "";
|
|
1551
1516
|
});
|
|
1552
1517
|
var o = i.options[0];
|
|
1553
|
-
o === "w" ? t =
|
|
1518
|
+
o === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = E(E({}, t), nr(o)));
|
|
1554
1519
|
continue;
|
|
1555
1520
|
}
|
|
1556
|
-
if (
|
|
1557
|
-
t =
|
|
1521
|
+
if (Gr.test(i.stem)) {
|
|
1522
|
+
t = E(E({}, t), nr(i.stem));
|
|
1558
1523
|
continue;
|
|
1559
1524
|
}
|
|
1560
|
-
var s =
|
|
1561
|
-
s && (t =
|
|
1562
|
-
var a =
|
|
1563
|
-
a && (t =
|
|
1525
|
+
var s = jr(i.stem);
|
|
1526
|
+
s && (t = E(E({}, t), s));
|
|
1527
|
+
var a = vi(i.stem);
|
|
1528
|
+
a && (t = E(E({}, t), a));
|
|
1564
1529
|
}
|
|
1565
1530
|
return t;
|
|
1566
1531
|
}
|
|
@@ -2979,13 +2944,13 @@ var it = {
|
|
|
2979
2944
|
"h"
|
|
2980
2945
|
]
|
|
2981
2946
|
};
|
|
2982
|
-
function
|
|
2947
|
+
function wi(e, t) {
|
|
2983
2948
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2984
2949
|
var i = e.charAt(n);
|
|
2985
2950
|
if (i === "j") {
|
|
2986
2951
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2987
2952
|
o++, n++;
|
|
2988
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), c = "a", l =
|
|
2953
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), c = "a", l = Ei(t);
|
|
2989
2954
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
|
2990
2955
|
r += c;
|
|
2991
2956
|
for (; s-- > 0; )
|
|
@@ -2995,7 +2960,7 @@ function Pi(e, t) {
|
|
|
2995
2960
|
}
|
|
2996
2961
|
return r;
|
|
2997
2962
|
}
|
|
2998
|
-
function
|
|
2963
|
+
function Ei(e) {
|
|
2999
2964
|
var t = e.hourCycle;
|
|
3000
2965
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3001
2966
|
e.hourCycles && // @ts-ignore
|
|
@@ -3017,20 +2982,20 @@ function Ti(e) {
|
|
|
3017
2982
|
var i = it[n || ""] || it[r || ""] || it["".concat(r, "-001")] || it["001"];
|
|
3018
2983
|
return i[0];
|
|
3019
2984
|
}
|
|
3020
|
-
var
|
|
2985
|
+
var wt, xi = new RegExp("^".concat(kr.source, "*")), Si = new RegExp("".concat(kr.source, "*$"));
|
|
3021
2986
|
function w(e, t) {
|
|
3022
2987
|
return { start: e, end: t };
|
|
3023
2988
|
}
|
|
3024
|
-
var
|
|
2989
|
+
var Pi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ti = !!String.fromCodePoint, Hi = !!Object.fromEntries, Bi = !!String.prototype.codePointAt, Ai = !!String.prototype.trimStart, Ii = !!String.prototype.trimEnd, Ci = !!Number.isSafeInteger, Oi = Ci ? Number.isSafeInteger : function(e) {
|
|
3025
2990
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3026
|
-
},
|
|
2991
|
+
}, Ot = !0;
|
|
3027
2992
|
try {
|
|
3028
|
-
var
|
|
3029
|
-
|
|
2993
|
+
var Li = zr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2994
|
+
Ot = ((wt = Li.exec("a")) === null || wt === void 0 ? void 0 : wt[0]) === "a";
|
|
3030
2995
|
} catch {
|
|
3031
|
-
|
|
2996
|
+
Ot = !1;
|
|
3032
2997
|
}
|
|
3033
|
-
var
|
|
2998
|
+
var or = Pi ? (
|
|
3034
2999
|
// Native
|
|
3035
3000
|
function(t, r, n) {
|
|
3036
3001
|
return t.startsWith(r, n);
|
|
@@ -3040,7 +3005,7 @@ var ur = Ai ? (
|
|
|
3040
3005
|
function(t, r, n) {
|
|
3041
3006
|
return t.slice(n, n + r.length) === r;
|
|
3042
3007
|
}
|
|
3043
|
-
),
|
|
3008
|
+
), Lt = Ti ? String.fromCodePoint : (
|
|
3044
3009
|
// IE11
|
|
3045
3010
|
function() {
|
|
3046
3011
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3052,9 +3017,9 @@ var ur = Ai ? (
|
|
|
3052
3017
|
}
|
|
3053
3018
|
return n;
|
|
3054
3019
|
}
|
|
3055
|
-
),
|
|
3020
|
+
), sr = (
|
|
3056
3021
|
// native
|
|
3057
|
-
|
|
3022
|
+
Hi ? Object.fromEntries : (
|
|
3058
3023
|
// Ponyfill
|
|
3059
3024
|
function(t) {
|
|
3060
3025
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3064,7 +3029,7 @@ var ur = Ai ? (
|
|
|
3064
3029
|
return r;
|
|
3065
3030
|
}
|
|
3066
3031
|
)
|
|
3067
|
-
),
|
|
3032
|
+
), Vr = Bi ? (
|
|
3068
3033
|
// Native
|
|
3069
3034
|
function(t, r) {
|
|
3070
3035
|
return t.codePointAt(r);
|
|
@@ -3078,7 +3043,7 @@ var ur = Ai ? (
|
|
|
3078
3043
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3079
3044
|
}
|
|
3080
3045
|
}
|
|
3081
|
-
),
|
|
3046
|
+
), Mi = Ai ? (
|
|
3082
3047
|
// Native
|
|
3083
3048
|
function(t) {
|
|
3084
3049
|
return t.trimStart();
|
|
@@ -3086,9 +3051,9 @@ var ur = Ai ? (
|
|
|
3086
3051
|
) : (
|
|
3087
3052
|
// Ponyfill
|
|
3088
3053
|
function(t) {
|
|
3089
|
-
return t.replace(
|
|
3054
|
+
return t.replace(xi, "");
|
|
3090
3055
|
}
|
|
3091
|
-
),
|
|
3056
|
+
), Ni = Ii ? (
|
|
3092
3057
|
// Native
|
|
3093
3058
|
function(t) {
|
|
3094
3059
|
return t.trimEnd();
|
|
@@ -3096,32 +3061,32 @@ var ur = Ai ? (
|
|
|
3096
3061
|
) : (
|
|
3097
3062
|
// Ponyfill
|
|
3098
3063
|
function(t) {
|
|
3099
|
-
return t.replace(
|
|
3064
|
+
return t.replace(Si, "");
|
|
3100
3065
|
}
|
|
3101
3066
|
);
|
|
3102
|
-
function
|
|
3067
|
+
function zr(e, t) {
|
|
3103
3068
|
return new RegExp(e, t);
|
|
3104
3069
|
}
|
|
3105
|
-
var
|
|
3106
|
-
if (
|
|
3107
|
-
var
|
|
3108
|
-
|
|
3070
|
+
var Mt;
|
|
3071
|
+
if (Ot) {
|
|
3072
|
+
var ar = zr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3073
|
+
Mt = function(t, r) {
|
|
3109
3074
|
var n;
|
|
3110
|
-
|
|
3111
|
-
var i =
|
|
3075
|
+
ar.lastIndex = r;
|
|
3076
|
+
var i = ar.exec(t);
|
|
3112
3077
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3113
3078
|
};
|
|
3114
3079
|
} else
|
|
3115
|
-
|
|
3080
|
+
Mt = function(t, r) {
|
|
3116
3081
|
for (var n = []; ; ) {
|
|
3117
|
-
var i =
|
|
3118
|
-
if (i === void 0 ||
|
|
3082
|
+
var i = Vr(t, r);
|
|
3083
|
+
if (i === void 0 || Xr(i) || Di(i))
|
|
3119
3084
|
break;
|
|
3120
3085
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3121
3086
|
}
|
|
3122
|
-
return
|
|
3087
|
+
return Lt.apply(void 0, n);
|
|
3123
3088
|
};
|
|
3124
|
-
var
|
|
3089
|
+
var Ri = (
|
|
3125
3090
|
/** @class */
|
|
3126
3091
|
function() {
|
|
3127
3092
|
function e(t, r) {
|
|
@@ -3145,14 +3110,14 @@ var ki = (
|
|
|
3145
3110
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3146
3111
|
var a = this.clonePosition();
|
|
3147
3112
|
this.bump(), i.push({
|
|
3148
|
-
type:
|
|
3113
|
+
type: T.pound,
|
|
3149
3114
|
location: w(a, this.clonePosition())
|
|
3150
3115
|
});
|
|
3151
3116
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3152
3117
|
if (n)
|
|
3153
3118
|
break;
|
|
3154
3119
|
return this.error(_.UNMATCHED_CLOSING_TAG, w(this.clonePosition(), this.clonePosition()));
|
|
3155
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3120
|
+
} else if (o === 60 && !this.ignoreTag && Nt(this.peek() || 0)) {
|
|
3156
3121
|
var s = this.parseTag(t, r);
|
|
3157
3122
|
if (s.err)
|
|
3158
3123
|
return s;
|
|
@@ -3173,7 +3138,7 @@ var ki = (
|
|
|
3173
3138
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3174
3139
|
return {
|
|
3175
3140
|
val: {
|
|
3176
|
-
type:
|
|
3141
|
+
type: T.literal,
|
|
3177
3142
|
value: "<".concat(i, "/>"),
|
|
3178
3143
|
location: w(n, this.clonePosition())
|
|
3179
3144
|
},
|
|
@@ -3185,12 +3150,12 @@ var ki = (
|
|
|
3185
3150
|
return o;
|
|
3186
3151
|
var s = o.val, a = this.clonePosition();
|
|
3187
3152
|
if (this.bumpIf("</")) {
|
|
3188
|
-
if (this.isEOF() || !
|
|
3153
|
+
if (this.isEOF() || !Nt(this.char()))
|
|
3189
3154
|
return this.error(_.INVALID_TAG, w(a, this.clonePosition()));
|
|
3190
3155
|
var c = this.clonePosition(), l = this.parseTagName();
|
|
3191
3156
|
return i !== l ? this.error(_.UNMATCHED_CLOSING_TAG, w(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3192
3157
|
val: {
|
|
3193
|
-
type:
|
|
3158
|
+
type: T.tag,
|
|
3194
3159
|
value: i,
|
|
3195
3160
|
children: s,
|
|
3196
3161
|
location: w(n, this.clonePosition())
|
|
@@ -3203,7 +3168,7 @@ var ki = (
|
|
|
3203
3168
|
return this.error(_.INVALID_TAG, w(n, this.clonePosition()));
|
|
3204
3169
|
}, e.prototype.parseTagName = function() {
|
|
3205
3170
|
var t = this.offset();
|
|
3206
|
-
for (this.bump(); !this.isEOF() &&
|
|
3171
|
+
for (this.bump(); !this.isEOF() && Fi(this.char()); )
|
|
3207
3172
|
this.bump();
|
|
3208
3173
|
return this.message.slice(t, this.offset());
|
|
3209
3174
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3227,12 +3192,12 @@ var ki = (
|
|
|
3227
3192
|
}
|
|
3228
3193
|
var c = w(n, this.clonePosition());
|
|
3229
3194
|
return {
|
|
3230
|
-
val: { type:
|
|
3195
|
+
val: { type: T.literal, value: i, location: c },
|
|
3231
3196
|
err: null
|
|
3232
3197
|
};
|
|
3233
3198
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3234
3199
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3235
|
-
|
|
3200
|
+
!Ui(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3236
3201
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3237
3202
|
if (this.isEOF() || this.char() !== 39)
|
|
3238
3203
|
return null;
|
|
@@ -3266,12 +3231,12 @@ var ki = (
|
|
|
3266
3231
|
r.push(n);
|
|
3267
3232
|
this.bump();
|
|
3268
3233
|
}
|
|
3269
|
-
return
|
|
3234
|
+
return Lt.apply(void 0, r);
|
|
3270
3235
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3271
3236
|
if (this.isEOF())
|
|
3272
3237
|
return null;
|
|
3273
3238
|
var n = this.char();
|
|
3274
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3239
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Lt(n));
|
|
3275
3240
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3276
3241
|
var n = this.clonePosition();
|
|
3277
3242
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3287,7 +3252,7 @@ var ki = (
|
|
|
3287
3252
|
case 125:
|
|
3288
3253
|
return this.bump(), {
|
|
3289
3254
|
val: {
|
|
3290
|
-
type:
|
|
3255
|
+
type: T.argument,
|
|
3291
3256
|
// value does not include the opening and closing braces.
|
|
3292
3257
|
value: i,
|
|
3293
3258
|
location: w(n, this.clonePosition())
|
|
@@ -3300,7 +3265,7 @@ var ki = (
|
|
|
3300
3265
|
return this.error(_.MALFORMED_ARGUMENT, w(n, this.clonePosition()));
|
|
3301
3266
|
}
|
|
3302
3267
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3303
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3268
|
+
var t = this.clonePosition(), r = this.offset(), n = Mt(this.message, r), i = r + n.length;
|
|
3304
3269
|
this.bumpTo(i);
|
|
3305
3270
|
var o = this.clonePosition(), s = w(t, o);
|
|
3306
3271
|
return { value: n, location: s };
|
|
@@ -3319,35 +3284,35 @@ var ki = (
|
|
|
3319
3284
|
var u = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3320
3285
|
if (f.err)
|
|
3321
3286
|
return f;
|
|
3322
|
-
var d =
|
|
3287
|
+
var d = Ni(f.val);
|
|
3323
3288
|
if (d.length === 0)
|
|
3324
3289
|
return this.error(_.EXPECT_ARGUMENT_STYLE, w(this.clonePosition(), this.clonePosition()));
|
|
3325
3290
|
var b = w(u, this.clonePosition());
|
|
3326
3291
|
l = { style: d, styleLocation: b };
|
|
3327
3292
|
}
|
|
3328
|
-
var
|
|
3329
|
-
if (
|
|
3330
|
-
return
|
|
3293
|
+
var v = this.tryParseArgumentClose(i);
|
|
3294
|
+
if (v.err)
|
|
3295
|
+
return v;
|
|
3331
3296
|
var g = w(i, this.clonePosition());
|
|
3332
|
-
if (l &&
|
|
3333
|
-
var
|
|
3297
|
+
if (l && or(l?.style, "::", 0)) {
|
|
3298
|
+
var S = Mi(l.style.slice(2));
|
|
3334
3299
|
if (a === "number") {
|
|
3335
|
-
var f = this.parseNumberSkeletonFromString(
|
|
3300
|
+
var f = this.parseNumberSkeletonFromString(S, l.styleLocation);
|
|
3336
3301
|
return f.err ? f : {
|
|
3337
|
-
val: { type:
|
|
3302
|
+
val: { type: T.number, value: n, location: g, style: f.val },
|
|
3338
3303
|
err: null
|
|
3339
3304
|
};
|
|
3340
3305
|
} else {
|
|
3341
|
-
if (
|
|
3306
|
+
if (S.length === 0)
|
|
3342
3307
|
return this.error(_.EXPECT_DATE_TIME_SKELETON, g);
|
|
3343
|
-
var
|
|
3344
|
-
this.locale && (
|
|
3308
|
+
var C = S;
|
|
3309
|
+
this.locale && (C = wi(S, this.locale));
|
|
3345
3310
|
var d = {
|
|
3346
|
-
type:
|
|
3347
|
-
pattern:
|
|
3311
|
+
type: Ce.dateTime,
|
|
3312
|
+
pattern: C,
|
|
3348
3313
|
location: l.styleLocation,
|
|
3349
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3350
|
-
}, z = a === "date" ?
|
|
3314
|
+
parsedOptions: this.shouldParseSkeletons ? mi(C) : {}
|
|
3315
|
+
}, z = a === "date" ? T.date : T.time;
|
|
3351
3316
|
return {
|
|
3352
3317
|
val: { type: z, value: n, location: g, style: d },
|
|
3353
3318
|
err: null
|
|
@@ -3356,7 +3321,7 @@ var ki = (
|
|
|
3356
3321
|
}
|
|
3357
3322
|
return {
|
|
3358
3323
|
val: {
|
|
3359
|
-
type: a === "number" ?
|
|
3324
|
+
type: a === "number" ? T.number : a === "date" ? T.date : T.time,
|
|
3360
3325
|
value: n,
|
|
3361
3326
|
location: g,
|
|
3362
3327
|
style: (o = l?.style) !== null && o !== void 0 ? o : null
|
|
@@ -3369,7 +3334,7 @@ var ki = (
|
|
|
3369
3334
|
case "select": {
|
|
3370
3335
|
var R = this.clonePosition();
|
|
3371
3336
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3372
|
-
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, w(R,
|
|
3337
|
+
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, w(R, E({}, R)));
|
|
3373
3338
|
this.bumpSpace();
|
|
3374
3339
|
var U = this.parseIdentifierIfPossible(), A = 0;
|
|
3375
3340
|
if (a !== "select" && U.value === "offset") {
|
|
@@ -3384,23 +3349,23 @@ var ki = (
|
|
|
3384
3349
|
var re = this.tryParsePluralOrSelectOptions(t, a, r, U);
|
|
3385
3350
|
if (re.err)
|
|
3386
3351
|
return re;
|
|
3387
|
-
var
|
|
3388
|
-
if (
|
|
3389
|
-
return
|
|
3352
|
+
var v = this.tryParseArgumentClose(i);
|
|
3353
|
+
if (v.err)
|
|
3354
|
+
return v;
|
|
3390
3355
|
var H = w(i, this.clonePosition());
|
|
3391
3356
|
return a === "select" ? {
|
|
3392
3357
|
val: {
|
|
3393
|
-
type:
|
|
3358
|
+
type: T.select,
|
|
3394
3359
|
value: n,
|
|
3395
|
-
options:
|
|
3360
|
+
options: sr(re.val),
|
|
3396
3361
|
location: H
|
|
3397
3362
|
},
|
|
3398
3363
|
err: null
|
|
3399
3364
|
} : {
|
|
3400
3365
|
val: {
|
|
3401
|
-
type:
|
|
3366
|
+
type: T.plural,
|
|
3402
3367
|
value: n,
|
|
3403
|
-
options:
|
|
3368
|
+
options: sr(re.val),
|
|
3404
3369
|
offset: A,
|
|
3405
3370
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3406
3371
|
location: H
|
|
@@ -3451,16 +3416,16 @@ var ki = (
|
|
|
3451
3416
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3452
3417
|
var n = [];
|
|
3453
3418
|
try {
|
|
3454
|
-
n =
|
|
3419
|
+
n = gi(t);
|
|
3455
3420
|
} catch {
|
|
3456
3421
|
return this.error(_.INVALID_NUMBER_SKELETON, r);
|
|
3457
3422
|
}
|
|
3458
3423
|
return {
|
|
3459
3424
|
val: {
|
|
3460
|
-
type:
|
|
3425
|
+
type: Ce.number,
|
|
3461
3426
|
tokens: n,
|
|
3462
3427
|
location: r,
|
|
3463
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3428
|
+
parsedOptions: this.shouldParseSkeletons ? _i(n) : {}
|
|
3464
3429
|
},
|
|
3465
3430
|
err: null
|
|
3466
3431
|
};
|
|
@@ -3482,16 +3447,16 @@ var ki = (
|
|
|
3482
3447
|
var b = this.clonePosition();
|
|
3483
3448
|
if (!this.bumpIf("{"))
|
|
3484
3449
|
return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, w(this.clonePosition(), this.clonePosition()));
|
|
3485
|
-
var
|
|
3486
|
-
if (
|
|
3487
|
-
return
|
|
3450
|
+
var v = this.parseMessage(t + 1, r, n);
|
|
3451
|
+
if (v.err)
|
|
3452
|
+
return v;
|
|
3488
3453
|
var g = this.tryParseArgumentClose(b);
|
|
3489
3454
|
if (g.err)
|
|
3490
3455
|
return g;
|
|
3491
3456
|
a.push([
|
|
3492
3457
|
l,
|
|
3493
3458
|
{
|
|
3494
|
-
value:
|
|
3459
|
+
value: v.val,
|
|
3495
3460
|
location: w(b, this.clonePosition())
|
|
3496
3461
|
}
|
|
3497
3462
|
]), c.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, u = o.location;
|
|
@@ -3508,7 +3473,7 @@ var ki = (
|
|
|
3508
3473
|
break;
|
|
3509
3474
|
}
|
|
3510
3475
|
var c = w(i, this.clonePosition());
|
|
3511
|
-
return o ? (s *= n,
|
|
3476
|
+
return o ? (s *= n, Oi(s) ? { val: s, err: null } : this.error(r, c)) : this.error(t, c);
|
|
3512
3477
|
}, e.prototype.offset = function() {
|
|
3513
3478
|
return this.position.offset;
|
|
3514
3479
|
}, e.prototype.isEOF = function() {
|
|
@@ -3523,7 +3488,7 @@ var ki = (
|
|
|
3523
3488
|
var t = this.position.offset;
|
|
3524
3489
|
if (t >= this.message.length)
|
|
3525
3490
|
throw Error("out of bound");
|
|
3526
|
-
var r =
|
|
3491
|
+
var r = Vr(this.message, t);
|
|
3527
3492
|
if (r === void 0)
|
|
3528
3493
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3529
3494
|
return r;
|
|
@@ -3542,7 +3507,7 @@ var ki = (
|
|
|
3542
3507
|
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);
|
|
3543
3508
|
}
|
|
3544
3509
|
}, e.prototype.bumpIf = function(t) {
|
|
3545
|
-
if (
|
|
3510
|
+
if (or(this.message, t, this.offset())) {
|
|
3546
3511
|
for (var r = 0; r < t.length; r++)
|
|
3547
3512
|
this.bump();
|
|
3548
3513
|
return !0;
|
|
@@ -3564,7 +3529,7 @@ var ki = (
|
|
|
3564
3529
|
break;
|
|
3565
3530
|
}
|
|
3566
3531
|
}, e.prototype.bumpSpace = function() {
|
|
3567
|
-
for (; !this.isEOF() &&
|
|
3532
|
+
for (; !this.isEOF() && Xr(this.char()); )
|
|
3568
3533
|
this.bump();
|
|
3569
3534
|
}, e.prototype.peek = function() {
|
|
3570
3535
|
if (this.isEOF())
|
|
@@ -3574,47 +3539,47 @@ var ki = (
|
|
|
3574
3539
|
}, e;
|
|
3575
3540
|
}()
|
|
3576
3541
|
);
|
|
3577
|
-
function
|
|
3542
|
+
function Nt(e) {
|
|
3578
3543
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3579
3544
|
}
|
|
3580
|
-
function
|
|
3581
|
-
return
|
|
3545
|
+
function Ui(e) {
|
|
3546
|
+
return Nt(e) || e === 47;
|
|
3582
3547
|
}
|
|
3583
|
-
function
|
|
3548
|
+
function Fi(e) {
|
|
3584
3549
|
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;
|
|
3585
3550
|
}
|
|
3586
|
-
function
|
|
3551
|
+
function Xr(e) {
|
|
3587
3552
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3588
3553
|
}
|
|
3589
|
-
function
|
|
3554
|
+
function Di(e) {
|
|
3590
3555
|
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;
|
|
3591
3556
|
}
|
|
3592
|
-
function
|
|
3557
|
+
function Rt(e) {
|
|
3593
3558
|
e.forEach(function(t) {
|
|
3594
|
-
if (delete t.location,
|
|
3559
|
+
if (delete t.location, Rr(t) || Ur(t))
|
|
3595
3560
|
for (var r in t.options)
|
|
3596
|
-
delete t.options[r].location,
|
|
3561
|
+
delete t.options[r].location, Rt(t.options[r].value);
|
|
3597
3562
|
else
|
|
3598
|
-
|
|
3563
|
+
Lr(t) && Dr(t.style) || (Mr(t) || Nr(t)) && Ct(t.style) ? delete t.style.location : Fr(t) && Rt(t.children);
|
|
3599
3564
|
});
|
|
3600
3565
|
}
|
|
3601
|
-
function
|
|
3602
|
-
t === void 0 && (t = {}), t =
|
|
3603
|
-
var r = new
|
|
3566
|
+
function ki(e, t) {
|
|
3567
|
+
t === void 0 && (t = {}), t = E({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3568
|
+
var r = new Ri(e, t).parse();
|
|
3604
3569
|
if (r.err) {
|
|
3605
3570
|
var n = SyntaxError(_[r.err.kind]);
|
|
3606
3571
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3607
3572
|
}
|
|
3608
|
-
return t?.captureLocation ||
|
|
3573
|
+
return t?.captureLocation || Rt(r.val), r.val;
|
|
3609
3574
|
}
|
|
3610
3575
|
var Oe;
|
|
3611
3576
|
(function(e) {
|
|
3612
3577
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3613
3578
|
})(Oe || (Oe = {}));
|
|
3614
|
-
var
|
|
3579
|
+
var mt = (
|
|
3615
3580
|
/** @class */
|
|
3616
3581
|
function(e) {
|
|
3617
|
-
|
|
3582
|
+
ae(t, e);
|
|
3618
3583
|
function t(r, n, i) {
|
|
3619
3584
|
var o = e.call(this, r) || this;
|
|
3620
3585
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3623,48 +3588,48 @@ var gt = (
|
|
|
3623
3588
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3624
3589
|
}, t;
|
|
3625
3590
|
}(Error)
|
|
3626
|
-
),
|
|
3591
|
+
), lr = (
|
|
3627
3592
|
/** @class */
|
|
3628
3593
|
function(e) {
|
|
3629
|
-
|
|
3594
|
+
ae(t, e);
|
|
3630
3595
|
function t(r, n, i, o) {
|
|
3631
3596
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Oe.INVALID_VALUE, o) || this;
|
|
3632
3597
|
}
|
|
3633
3598
|
return t;
|
|
3634
|
-
}(
|
|
3635
|
-
),
|
|
3599
|
+
}(mt)
|
|
3600
|
+
), Gi = (
|
|
3636
3601
|
/** @class */
|
|
3637
3602
|
function(e) {
|
|
3638
|
-
|
|
3603
|
+
ae(t, e);
|
|
3639
3604
|
function t(r, n, i) {
|
|
3640
3605
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Oe.INVALID_VALUE, i) || this;
|
|
3641
3606
|
}
|
|
3642
3607
|
return t;
|
|
3643
|
-
}(
|
|
3644
|
-
),
|
|
3608
|
+
}(mt)
|
|
3609
|
+
), $i = (
|
|
3645
3610
|
/** @class */
|
|
3646
3611
|
function(e) {
|
|
3647
|
-
|
|
3612
|
+
ae(t, e);
|
|
3648
3613
|
function t(r, n) {
|
|
3649
3614
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Oe.MISSING_VALUE, n) || this;
|
|
3650
3615
|
}
|
|
3651
3616
|
return t;
|
|
3652
|
-
}(
|
|
3617
|
+
}(mt)
|
|
3653
3618
|
), V;
|
|
3654
3619
|
(function(e) {
|
|
3655
3620
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3656
3621
|
})(V || (V = {}));
|
|
3657
|
-
function
|
|
3622
|
+
function ji(e) {
|
|
3658
3623
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3659
3624
|
var n = t[t.length - 1];
|
|
3660
3625
|
return !n || n.type !== V.literal || r.type !== V.literal ? t.push(r) : n.value += r.value, t;
|
|
3661
3626
|
}, []);
|
|
3662
3627
|
}
|
|
3663
|
-
function
|
|
3628
|
+
function Vi(e) {
|
|
3664
3629
|
return typeof e == "function";
|
|
3665
3630
|
}
|
|
3666
3631
|
function at(e, t, r, n, i, o, s) {
|
|
3667
|
-
if (e.length === 1 &&
|
|
3632
|
+
if (e.length === 1 && tr(e[0]))
|
|
3668
3633
|
return [
|
|
3669
3634
|
{
|
|
3670
3635
|
type: V.literal,
|
|
@@ -3673,14 +3638,14 @@ function at(e, t, r, n, i, o, s) {
|
|
|
3673
3638
|
];
|
|
3674
3639
|
for (var a = [], c = 0, l = e; c < l.length; c++) {
|
|
3675
3640
|
var u = l[c];
|
|
3676
|
-
if (
|
|
3641
|
+
if (tr(u)) {
|
|
3677
3642
|
a.push({
|
|
3678
3643
|
type: V.literal,
|
|
3679
3644
|
value: u.value
|
|
3680
3645
|
});
|
|
3681
3646
|
continue;
|
|
3682
3647
|
}
|
|
3683
|
-
if (
|
|
3648
|
+
if (fi(u)) {
|
|
3684
3649
|
typeof o == "number" && a.push({
|
|
3685
3650
|
type: V.literal,
|
|
3686
3651
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3689,44 +3654,44 @@ function at(e, t, r, n, i, o, s) {
|
|
|
3689
3654
|
}
|
|
3690
3655
|
var f = u.value;
|
|
3691
3656
|
if (!(i && f in i))
|
|
3692
|
-
throw new
|
|
3657
|
+
throw new $i(f, s);
|
|
3693
3658
|
var d = i[f];
|
|
3694
|
-
if (
|
|
3659
|
+
if (hi(u)) {
|
|
3695
3660
|
(!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), a.push({
|
|
3696
3661
|
type: typeof d == "string" ? V.literal : V.object,
|
|
3697
3662
|
value: d
|
|
3698
3663
|
});
|
|
3699
3664
|
continue;
|
|
3700
3665
|
}
|
|
3701
|
-
if (
|
|
3702
|
-
var b = typeof u.style == "string" ? n.date[u.style] :
|
|
3666
|
+
if (Mr(u)) {
|
|
3667
|
+
var b = typeof u.style == "string" ? n.date[u.style] : Ct(u.style) ? u.style.parsedOptions : void 0;
|
|
3703
3668
|
a.push({
|
|
3704
3669
|
type: V.literal,
|
|
3705
3670
|
value: r.getDateTimeFormat(t, b).format(d)
|
|
3706
3671
|
});
|
|
3707
3672
|
continue;
|
|
3708
3673
|
}
|
|
3709
|
-
if (
|
|
3710
|
-
var b = typeof u.style == "string" ? n.time[u.style] :
|
|
3674
|
+
if (Nr(u)) {
|
|
3675
|
+
var b = typeof u.style == "string" ? n.time[u.style] : Ct(u.style) ? u.style.parsedOptions : n.time.medium;
|
|
3711
3676
|
a.push({
|
|
3712
3677
|
type: V.literal,
|
|
3713
3678
|
value: r.getDateTimeFormat(t, b).format(d)
|
|
3714
3679
|
});
|
|
3715
3680
|
continue;
|
|
3716
3681
|
}
|
|
3717
|
-
if (
|
|
3718
|
-
var b = typeof u.style == "string" ? n.number[u.style] :
|
|
3682
|
+
if (Lr(u)) {
|
|
3683
|
+
var b = typeof u.style == "string" ? n.number[u.style] : Dr(u.style) ? u.style.parsedOptions : void 0;
|
|
3719
3684
|
b && b.scale && (d = d * (b.scale || 1)), a.push({
|
|
3720
3685
|
type: V.literal,
|
|
3721
3686
|
value: r.getNumberFormat(t, b).format(d)
|
|
3722
3687
|
});
|
|
3723
3688
|
continue;
|
|
3724
3689
|
}
|
|
3725
|
-
if (
|
|
3726
|
-
var
|
|
3727
|
-
if (!
|
|
3728
|
-
throw new
|
|
3729
|
-
var
|
|
3690
|
+
if (Fr(u)) {
|
|
3691
|
+
var v = u.children, g = u.value, S = i[g];
|
|
3692
|
+
if (!Vi(S))
|
|
3693
|
+
throw new Gi(g, "function", s);
|
|
3694
|
+
var C = at(v, t, r, n, i, o), z = S(C.map(function(A) {
|
|
3730
3695
|
return A.value;
|
|
3731
3696
|
}));
|
|
3732
3697
|
Array.isArray(z) || (z = [z]), a.push.apply(a, z.map(function(A) {
|
|
@@ -3736,42 +3701,42 @@ function at(e, t, r, n, i, o, s) {
|
|
|
3736
3701
|
};
|
|
3737
3702
|
}));
|
|
3738
3703
|
}
|
|
3739
|
-
if (
|
|
3704
|
+
if (Rr(u)) {
|
|
3740
3705
|
var R = u.options[d] || u.options.other;
|
|
3741
3706
|
if (!R)
|
|
3742
|
-
throw new
|
|
3707
|
+
throw new lr(u.value, d, Object.keys(u.options), s);
|
|
3743
3708
|
a.push.apply(a, at(R.value, t, r, n, i));
|
|
3744
3709
|
continue;
|
|
3745
3710
|
}
|
|
3746
|
-
if (
|
|
3711
|
+
if (Ur(u)) {
|
|
3747
3712
|
var R = u.options["=".concat(d)];
|
|
3748
3713
|
if (!R) {
|
|
3749
3714
|
if (!Intl.PluralRules)
|
|
3750
|
-
throw new
|
|
3715
|
+
throw new mt(`Intl.PluralRules is not available in this environment.
|
|
3751
3716
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3752
3717
|
`, Oe.MISSING_INTL_API, s);
|
|
3753
3718
|
var U = r.getPluralRules(t, { type: u.pluralType }).select(d - (u.offset || 0));
|
|
3754
3719
|
R = u.options[U] || u.options.other;
|
|
3755
3720
|
}
|
|
3756
3721
|
if (!R)
|
|
3757
|
-
throw new
|
|
3722
|
+
throw new lr(u.value, d, Object.keys(u.options), s);
|
|
3758
3723
|
a.push.apply(a, at(R.value, t, r, n, i, d - (u.offset || 0)));
|
|
3759
3724
|
continue;
|
|
3760
3725
|
}
|
|
3761
3726
|
}
|
|
3762
|
-
return
|
|
3727
|
+
return ji(a);
|
|
3763
3728
|
}
|
|
3764
|
-
function
|
|
3765
|
-
return t ?
|
|
3766
|
-
return r[n] =
|
|
3729
|
+
function zi(e, t) {
|
|
3730
|
+
return t ? E(E(E({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3731
|
+
return r[n] = E(E({}, e[n]), t[n] || {}), r;
|
|
3767
3732
|
}, {})) : e;
|
|
3768
3733
|
}
|
|
3769
|
-
function
|
|
3734
|
+
function Xi(e, t) {
|
|
3770
3735
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3771
|
-
return r[n] =
|
|
3772
|
-
},
|
|
3736
|
+
return r[n] = zi(e[n], t[n]), r;
|
|
3737
|
+
}, E({}, e)) : e;
|
|
3773
3738
|
}
|
|
3774
|
-
function
|
|
3739
|
+
function Et(e) {
|
|
3775
3740
|
return {
|
|
3776
3741
|
create: function() {
|
|
3777
3742
|
return {
|
|
@@ -3785,39 +3750,39 @@ function Pt(e) {
|
|
|
3785
3750
|
}
|
|
3786
3751
|
};
|
|
3787
3752
|
}
|
|
3788
|
-
function
|
|
3753
|
+
function Wi(e) {
|
|
3789
3754
|
return e === void 0 && (e = {
|
|
3790
3755
|
number: {},
|
|
3791
3756
|
dateTime: {},
|
|
3792
3757
|
pluralRules: {}
|
|
3793
3758
|
}), {
|
|
3794
|
-
getNumberFormat:
|
|
3759
|
+
getNumberFormat: vt(function() {
|
|
3795
3760
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3796
3761
|
r[n] = arguments[n];
|
|
3797
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3762
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3798
3763
|
}, {
|
|
3799
|
-
cache:
|
|
3800
|
-
strategy:
|
|
3764
|
+
cache: Et(e.number),
|
|
3765
|
+
strategy: _t.variadic
|
|
3801
3766
|
}),
|
|
3802
|
-
getDateTimeFormat:
|
|
3767
|
+
getDateTimeFormat: vt(function() {
|
|
3803
3768
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3804
3769
|
r[n] = arguments[n];
|
|
3805
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3770
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3806
3771
|
}, {
|
|
3807
|
-
cache:
|
|
3808
|
-
strategy:
|
|
3772
|
+
cache: Et(e.dateTime),
|
|
3773
|
+
strategy: _t.variadic
|
|
3809
3774
|
}),
|
|
3810
|
-
getPluralRules:
|
|
3775
|
+
getPluralRules: vt(function() {
|
|
3811
3776
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3812
3777
|
r[n] = arguments[n];
|
|
3813
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3778
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3814
3779
|
}, {
|
|
3815
|
-
cache:
|
|
3816
|
-
strategy:
|
|
3780
|
+
cache: Et(e.pluralRules),
|
|
3781
|
+
strategy: _t.variadic
|
|
3817
3782
|
})
|
|
3818
3783
|
};
|
|
3819
3784
|
}
|
|
3820
|
-
var
|
|
3785
|
+
var Zi = (
|
|
3821
3786
|
/** @class */
|
|
3822
3787
|
function() {
|
|
3823
3788
|
function e(t, r, n, i) {
|
|
@@ -3849,13 +3814,13 @@ var Yi = (
|
|
|
3849
3814
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3850
3815
|
var s = i || {};
|
|
3851
3816
|
s.formatters;
|
|
3852
|
-
var a =
|
|
3853
|
-
this.ast = e.__parse(t,
|
|
3817
|
+
var a = Tn(s, ["formatters"]);
|
|
3818
|
+
this.ast = e.__parse(t, E(E({}, a), { locale: this.resolvedLocale }));
|
|
3854
3819
|
} else
|
|
3855
3820
|
this.ast = t;
|
|
3856
3821
|
if (!Array.isArray(this.ast))
|
|
3857
3822
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3858
|
-
this.formats =
|
|
3823
|
+
this.formats = Xi(e.formats, n), this.formatters = i && i.formatters || Wi(this.formatterCache);
|
|
3859
3824
|
}
|
|
3860
3825
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3861
3826
|
get: function() {
|
|
@@ -3868,7 +3833,7 @@ var Yi = (
|
|
|
3868
3833
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3869
3834
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3870
3835
|
}
|
|
3871
|
-
}, e.__parse =
|
|
3836
|
+
}, e.__parse = ki, e.formats = {
|
|
3872
3837
|
number: {
|
|
3873
3838
|
integer: {
|
|
3874
3839
|
maximumFractionDigits: 0
|
|
@@ -3929,7 +3894,7 @@ var Yi = (
|
|
|
3929
3894
|
}, e;
|
|
3930
3895
|
}()
|
|
3931
3896
|
);
|
|
3932
|
-
function
|
|
3897
|
+
function qi(e, t) {
|
|
3933
3898
|
if (t == null)
|
|
3934
3899
|
return;
|
|
3935
3900
|
if (t in e)
|
|
@@ -3950,92 +3915,92 @@ function Ki(e, t) {
|
|
|
3950
3915
|
n = void 0;
|
|
3951
3916
|
return n;
|
|
3952
3917
|
}
|
|
3953
|
-
const ue = {},
|
|
3918
|
+
const ue = {}, Ji = (e, t, r) => r && (t in ue || (ue[t] = {}), e in ue[t] || (ue[t][e] = r), r), Wr = (e, t) => {
|
|
3954
3919
|
if (t == null)
|
|
3955
3920
|
return;
|
|
3956
3921
|
if (t in ue && e in ue[t])
|
|
3957
3922
|
return ue[t][e];
|
|
3958
|
-
const r =
|
|
3923
|
+
const r = pt(t);
|
|
3959
3924
|
for (let n = 0; n < r.length; n++) {
|
|
3960
|
-
const i = r[n], o =
|
|
3925
|
+
const i = r[n], o = Yi(i, e);
|
|
3961
3926
|
if (o)
|
|
3962
|
-
return
|
|
3927
|
+
return Ji(e, t, o);
|
|
3963
3928
|
}
|
|
3964
3929
|
};
|
|
3965
|
-
let
|
|
3966
|
-
const
|
|
3967
|
-
function
|
|
3968
|
-
return
|
|
3930
|
+
let Gt;
|
|
3931
|
+
const Re = dt({});
|
|
3932
|
+
function Qi(e) {
|
|
3933
|
+
return Gt[e] || null;
|
|
3969
3934
|
}
|
|
3970
|
-
function
|
|
3971
|
-
return e in
|
|
3935
|
+
function Zr(e) {
|
|
3936
|
+
return e in Gt;
|
|
3972
3937
|
}
|
|
3973
|
-
function
|
|
3974
|
-
if (!
|
|
3938
|
+
function Yi(e, t) {
|
|
3939
|
+
if (!Zr(e))
|
|
3975
3940
|
return null;
|
|
3976
|
-
const r =
|
|
3977
|
-
return
|
|
3941
|
+
const r = Qi(e);
|
|
3942
|
+
return qi(r, t);
|
|
3978
3943
|
}
|
|
3979
|
-
function
|
|
3944
|
+
function Ki(e) {
|
|
3980
3945
|
if (e == null)
|
|
3981
3946
|
return;
|
|
3982
|
-
const t =
|
|
3947
|
+
const t = pt(e);
|
|
3983
3948
|
for (let r = 0; r < t.length; r++) {
|
|
3984
3949
|
const n = t[r];
|
|
3985
|
-
if (
|
|
3950
|
+
if (Zr(n))
|
|
3986
3951
|
return n;
|
|
3987
3952
|
}
|
|
3988
3953
|
}
|
|
3989
|
-
function
|
|
3990
|
-
delete ue[e],
|
|
3954
|
+
function qr(e, ...t) {
|
|
3955
|
+
delete ue[e], Re.update((r) => (r[e] = ni.all([r[e] || {}, ...t]), r));
|
|
3991
3956
|
}
|
|
3992
|
-
|
|
3993
|
-
[
|
|
3957
|
+
Ne(
|
|
3958
|
+
[Re],
|
|
3994
3959
|
([e]) => Object.keys(e)
|
|
3995
3960
|
);
|
|
3996
|
-
|
|
3961
|
+
Re.subscribe((e) => Gt = e);
|
|
3997
3962
|
const lt = {};
|
|
3998
|
-
function
|
|
3963
|
+
function eo(e, t) {
|
|
3999
3964
|
lt[e].delete(t), lt[e].size === 0 && delete lt[e];
|
|
4000
3965
|
}
|
|
4001
|
-
function
|
|
3966
|
+
function Jr(e) {
|
|
4002
3967
|
return lt[e];
|
|
4003
3968
|
}
|
|
4004
|
-
function
|
|
4005
|
-
return
|
|
4006
|
-
const r =
|
|
3969
|
+
function to(e) {
|
|
3970
|
+
return pt(e).map((t) => {
|
|
3971
|
+
const r = Jr(t);
|
|
4007
3972
|
return [t, r ? [...r] : []];
|
|
4008
3973
|
}).filter(([, t]) => t.length > 0);
|
|
4009
3974
|
}
|
|
4010
|
-
function
|
|
4011
|
-
return e == null ? !1 :
|
|
3975
|
+
function Ut(e) {
|
|
3976
|
+
return e == null ? !1 : pt(e).some(
|
|
4012
3977
|
(t) => {
|
|
4013
3978
|
var r;
|
|
4014
|
-
return (r =
|
|
3979
|
+
return (r = Jr(t)) == null ? void 0 : r.size;
|
|
4015
3980
|
}
|
|
4016
3981
|
);
|
|
4017
3982
|
}
|
|
4018
|
-
function
|
|
3983
|
+
function ro(e, t) {
|
|
4019
3984
|
return Promise.all(
|
|
4020
|
-
t.map((n) => (
|
|
4021
|
-
).then((n) =>
|
|
4022
|
-
}
|
|
4023
|
-
const
|
|
4024
|
-
function
|
|
4025
|
-
if (!
|
|
4026
|
-
return e in
|
|
4027
|
-
const t =
|
|
4028
|
-
return
|
|
3985
|
+
t.map((n) => (eo(e, n), n().then((i) => i.default || i)))
|
|
3986
|
+
).then((n) => qr(e, ...n));
|
|
3987
|
+
}
|
|
3988
|
+
const je = {};
|
|
3989
|
+
function Qr(e) {
|
|
3990
|
+
if (!Ut(e))
|
|
3991
|
+
return e in je ? je[e] : Promise.resolve();
|
|
3992
|
+
const t = to(e);
|
|
3993
|
+
return je[e] = Promise.all(
|
|
4029
3994
|
t.map(
|
|
4030
|
-
([r, n]) =>
|
|
3995
|
+
([r, n]) => ro(r, n)
|
|
4031
3996
|
)
|
|
4032
3997
|
).then(() => {
|
|
4033
|
-
if (
|
|
4034
|
-
return
|
|
4035
|
-
delete
|
|
4036
|
-
}),
|
|
3998
|
+
if (Ut(e))
|
|
3999
|
+
return Qr(e);
|
|
4000
|
+
delete je[e];
|
|
4001
|
+
}), je[e];
|
|
4037
4002
|
}
|
|
4038
|
-
const
|
|
4003
|
+
const no = {
|
|
4039
4004
|
number: {
|
|
4040
4005
|
scientific: { notation: "scientific" },
|
|
4041
4006
|
engineering: { notation: "engineering" },
|
|
@@ -4064,150 +4029,150 @@ const ao = {
|
|
|
4064
4029
|
timeZoneName: "short"
|
|
4065
4030
|
}
|
|
4066
4031
|
}
|
|
4067
|
-
},
|
|
4032
|
+
}, io = {
|
|
4068
4033
|
fallbackLocale: null,
|
|
4069
4034
|
loadingDelay: 200,
|
|
4070
|
-
formats:
|
|
4035
|
+
formats: no,
|
|
4071
4036
|
warnOnMissingMessages: !0,
|
|
4072
4037
|
handleMissingMessage: void 0,
|
|
4073
4038
|
ignoreTag: !0
|
|
4074
|
-
},
|
|
4075
|
-
function
|
|
4076
|
-
return
|
|
4077
|
-
}
|
|
4078
|
-
const
|
|
4079
|
-
var
|
|
4080
|
-
for (var r in t
|
|
4081
|
-
|
|
4082
|
-
if (
|
|
4083
|
-
for (var r of
|
|
4084
|
-
|
|
4039
|
+
}, oo = io;
|
|
4040
|
+
function Le() {
|
|
4041
|
+
return oo;
|
|
4042
|
+
}
|
|
4043
|
+
const xt = dt(!1);
|
|
4044
|
+
var so = Object.defineProperty, ao = Object.defineProperties, lo = Object.getOwnPropertyDescriptors, ur = Object.getOwnPropertySymbols, uo = Object.prototype.hasOwnProperty, co = Object.prototype.propertyIsEnumerable, cr = (e, t, r) => t in e ? so(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ho = (e, t) => {
|
|
4045
|
+
for (var r in t)
|
|
4046
|
+
uo.call(t, r) && cr(e, r, t[r]);
|
|
4047
|
+
if (ur)
|
|
4048
|
+
for (var r of ur(t))
|
|
4049
|
+
co.call(t, r) && cr(e, r, t[r]);
|
|
4085
4050
|
return e;
|
|
4086
|
-
},
|
|
4087
|
-
let
|
|
4088
|
-
const
|
|
4089
|
-
function
|
|
4051
|
+
}, fo = (e, t) => ao(e, lo(t));
|
|
4052
|
+
let Ft;
|
|
4053
|
+
const ct = dt(null);
|
|
4054
|
+
function hr(e) {
|
|
4090
4055
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4091
4056
|
}
|
|
4092
|
-
function
|
|
4093
|
-
const r =
|
|
4094
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4057
|
+
function pt(e, t = Le().fallbackLocale) {
|
|
4058
|
+
const r = hr(e);
|
|
4059
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...hr(t)])] : r;
|
|
4095
4060
|
}
|
|
4096
|
-
function
|
|
4097
|
-
return
|
|
4061
|
+
function ye() {
|
|
4062
|
+
return Ft ?? void 0;
|
|
4098
4063
|
}
|
|
4099
|
-
|
|
4100
|
-
|
|
4064
|
+
ct.subscribe((e) => {
|
|
4065
|
+
Ft = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4101
4066
|
});
|
|
4102
|
-
const
|
|
4103
|
-
if (e &&
|
|
4104
|
-
const { loadingDelay: t } =
|
|
4067
|
+
const mo = (e) => {
|
|
4068
|
+
if (e && Ki(e) && Ut(e)) {
|
|
4069
|
+
const { loadingDelay: t } = Le();
|
|
4105
4070
|
let r;
|
|
4106
|
-
return typeof window < "u" &&
|
|
4107
|
-
() =>
|
|
4071
|
+
return typeof window < "u" && ye() != null && t ? r = window.setTimeout(
|
|
4072
|
+
() => xt.set(!0),
|
|
4108
4073
|
t
|
|
4109
|
-
) :
|
|
4110
|
-
|
|
4074
|
+
) : xt.set(!0), Qr(e).then(() => {
|
|
4075
|
+
ct.set(e);
|
|
4111
4076
|
}).finally(() => {
|
|
4112
|
-
clearTimeout(r),
|
|
4077
|
+
clearTimeout(r), xt.set(!1);
|
|
4113
4078
|
});
|
|
4114
4079
|
}
|
|
4115
|
-
return
|
|
4116
|
-
}, ce =
|
|
4117
|
-
set:
|
|
4118
|
-
}),
|
|
4080
|
+
return ct.set(e);
|
|
4081
|
+
}, ce = fo(ho({}, ct), {
|
|
4082
|
+
set: mo
|
|
4083
|
+
}), gt = (e) => {
|
|
4119
4084
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4120
4085
|
return (n) => {
|
|
4121
4086
|
const i = JSON.stringify(n);
|
|
4122
4087
|
return i in t ? t[i] : t[i] = e(n);
|
|
4123
4088
|
};
|
|
4124
4089
|
};
|
|
4125
|
-
var
|
|
4090
|
+
var po = Object.defineProperty, ht = Object.getOwnPropertySymbols, Yr = Object.prototype.hasOwnProperty, Kr = Object.prototype.propertyIsEnumerable, fr = (e, t, r) => t in e ? po(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, $t = (e, t) => {
|
|
4126
4091
|
for (var r in t || (t = {}))
|
|
4127
|
-
|
|
4128
|
-
if (
|
|
4129
|
-
for (var r of
|
|
4130
|
-
|
|
4092
|
+
Yr.call(t, r) && fr(e, r, t[r]);
|
|
4093
|
+
if (ht)
|
|
4094
|
+
for (var r of ht(t))
|
|
4095
|
+
Kr.call(t, r) && fr(e, r, t[r]);
|
|
4131
4096
|
return e;
|
|
4132
|
-
},
|
|
4097
|
+
}, Ue = (e, t) => {
|
|
4133
4098
|
var r = {};
|
|
4134
4099
|
for (var n in e)
|
|
4135
|
-
|
|
4136
|
-
if (e != null &&
|
|
4137
|
-
for (var n of
|
|
4138
|
-
t.indexOf(n) < 0 &&
|
|
4100
|
+
Yr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4101
|
+
if (e != null && ht)
|
|
4102
|
+
for (var n of ht(e))
|
|
4103
|
+
t.indexOf(n) < 0 && Kr.call(e, n) && (r[n] = e[n]);
|
|
4139
4104
|
return r;
|
|
4140
4105
|
};
|
|
4141
|
-
const
|
|
4142
|
-
const { formats: r } =
|
|
4106
|
+
const We = (e, t) => {
|
|
4107
|
+
const { formats: r } = Le();
|
|
4143
4108
|
if (e in r && t in r[e])
|
|
4144
4109
|
return r[e][t];
|
|
4145
4110
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4146
|
-
},
|
|
4111
|
+
}, go = gt(
|
|
4147
4112
|
(e) => {
|
|
4148
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4113
|
+
var t = e, { locale: r, format: n } = t, i = Ue(t, ["locale", "format"]);
|
|
4149
4114
|
if (r == null)
|
|
4150
4115
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4151
|
-
return n && (i =
|
|
4116
|
+
return n && (i = We("number", n)), new Intl.NumberFormat(r, i);
|
|
4152
4117
|
}
|
|
4153
|
-
),
|
|
4118
|
+
), bo = gt(
|
|
4154
4119
|
(e) => {
|
|
4155
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4120
|
+
var t = e, { locale: r, format: n } = t, i = Ue(t, ["locale", "format"]);
|
|
4156
4121
|
if (r == null)
|
|
4157
4122
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4158
|
-
return n ? i =
|
|
4123
|
+
return n ? i = We("date", n) : Object.keys(i).length === 0 && (i = We("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4159
4124
|
}
|
|
4160
|
-
),
|
|
4125
|
+
), yo = gt(
|
|
4161
4126
|
(e) => {
|
|
4162
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4127
|
+
var t = e, { locale: r, format: n } = t, i = Ue(t, ["locale", "format"]);
|
|
4163
4128
|
if (r == null)
|
|
4164
4129
|
throw new Error(
|
|
4165
4130
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4166
4131
|
);
|
|
4167
|
-
return n ? i =
|
|
4132
|
+
return n ? i = We("time", n) : Object.keys(i).length === 0 && (i = We("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4168
4133
|
}
|
|
4169
|
-
),
|
|
4134
|
+
), vo = (e = {}) => {
|
|
4170
4135
|
var t = e, {
|
|
4171
|
-
locale: r =
|
|
4172
|
-
} = t, n =
|
|
4136
|
+
locale: r = ye()
|
|
4137
|
+
} = t, n = Ue(t, [
|
|
4173
4138
|
"locale"
|
|
4174
4139
|
]);
|
|
4175
|
-
return
|
|
4176
|
-
},
|
|
4140
|
+
return go($t({ locale: r }, n));
|
|
4141
|
+
}, _o = (e = {}) => {
|
|
4177
4142
|
var t = e, {
|
|
4178
|
-
locale: r =
|
|
4179
|
-
} = t, n =
|
|
4143
|
+
locale: r = ye()
|
|
4144
|
+
} = t, n = Ue(t, [
|
|
4180
4145
|
"locale"
|
|
4181
4146
|
]);
|
|
4182
|
-
return
|
|
4183
|
-
},
|
|
4147
|
+
return bo($t({ locale: r }, n));
|
|
4148
|
+
}, wo = (e = {}) => {
|
|
4184
4149
|
var t = e, {
|
|
4185
|
-
locale: r =
|
|
4186
|
-
} = t, n =
|
|
4150
|
+
locale: r = ye()
|
|
4151
|
+
} = t, n = Ue(t, [
|
|
4187
4152
|
"locale"
|
|
4188
4153
|
]);
|
|
4189
|
-
return
|
|
4190
|
-
},
|
|
4154
|
+
return yo($t({ locale: r }, n));
|
|
4155
|
+
}, Eo = gt(
|
|
4191
4156
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4192
|
-
(e, t =
|
|
4193
|
-
ignoreTag:
|
|
4157
|
+
(e, t = ye()) => new Zi(e, t, Le().formats, {
|
|
4158
|
+
ignoreTag: Le().ignoreTag
|
|
4194
4159
|
})
|
|
4195
|
-
),
|
|
4160
|
+
), xo = (e, t = {}) => {
|
|
4196
4161
|
var r, n, i, o;
|
|
4197
4162
|
let s = t;
|
|
4198
4163
|
typeof e == "object" && (s = e, e = s.id);
|
|
4199
4164
|
const {
|
|
4200
4165
|
values: a,
|
|
4201
|
-
locale: c =
|
|
4166
|
+
locale: c = ye(),
|
|
4202
4167
|
default: l
|
|
4203
4168
|
} = s;
|
|
4204
4169
|
if (c == null)
|
|
4205
4170
|
throw new Error(
|
|
4206
4171
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4207
4172
|
);
|
|
4208
|
-
let u =
|
|
4173
|
+
let u = Wr(e, c);
|
|
4209
4174
|
if (!u)
|
|
4210
|
-
u = (o = (i = (n = (r =
|
|
4175
|
+
u = (o = (i = (n = (r = Le()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: c, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
4211
4176
|
else if (typeof u != "string")
|
|
4212
4177
|
return console.warn(
|
|
4213
4178
|
`[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.`
|
|
@@ -4216,7 +4181,7 @@ const Xe = (e, t) => {
|
|
|
4216
4181
|
return u;
|
|
4217
4182
|
let f = u;
|
|
4218
4183
|
try {
|
|
4219
|
-
f =
|
|
4184
|
+
f = Eo(u, c).format(a);
|
|
4220
4185
|
} catch (d) {
|
|
4221
4186
|
d instanceof Error && console.warn(
|
|
4222
4187
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4224,25 +4189,25 @@ const Xe = (e, t) => {
|
|
|
4224
4189
|
);
|
|
4225
4190
|
}
|
|
4226
4191
|
return f;
|
|
4227
|
-
},
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
window.emWidgets = { topic:
|
|
4233
|
-
const
|
|
4234
|
-
function
|
|
4192
|
+
}, So = (e, t) => wo(t).format(e), Po = (e, t) => _o(t).format(e), To = (e, t) => vo(t).format(e), Ho = (e, t = ye()) => Wr(e, t), Bo = Ne([ce, Re], () => xo);
|
|
4193
|
+
Ne([ce], () => So);
|
|
4194
|
+
Ne([ce], () => Po);
|
|
4195
|
+
Ne([ce], () => To);
|
|
4196
|
+
Ne([ce, Re], () => Ho);
|
|
4197
|
+
window.emWidgets = { topic: kn };
|
|
4198
|
+
const Ao = (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));
|
|
4199
|
+
function Io({ withLocale: e, translations: t }) {
|
|
4235
4200
|
ce.subscribe((r) => {
|
|
4236
|
-
r == null && (
|
|
4201
|
+
r == null && (Re.set(t), ce.set(e));
|
|
4237
4202
|
});
|
|
4238
4203
|
}
|
|
4239
|
-
function
|
|
4240
|
-
|
|
4204
|
+
function dr(e, t) {
|
|
4205
|
+
qr(e, t);
|
|
4241
4206
|
}
|
|
4242
|
-
function
|
|
4207
|
+
function Co(e) {
|
|
4243
4208
|
ce.set(e);
|
|
4244
4209
|
}
|
|
4245
|
-
const
|
|
4210
|
+
const mr = {
|
|
4246
4211
|
en: {
|
|
4247
4212
|
loginTitle: "Welcome",
|
|
4248
4213
|
loginSubtitle: "Don't have an account yet?",
|
|
@@ -4387,13 +4352,13 @@ const vr = {
|
|
|
4387
4352
|
successMessage: "Login successful"
|
|
4388
4353
|
}
|
|
4389
4354
|
};
|
|
4390
|
-
function
|
|
4355
|
+
function Oo(e, t) {
|
|
4391
4356
|
if (e) {
|
|
4392
4357
|
const r = document.createElement("style");
|
|
4393
4358
|
r.innerHTML = t, e.appendChild(r);
|
|
4394
4359
|
}
|
|
4395
4360
|
}
|
|
4396
|
-
function
|
|
4361
|
+
function Lo(e, t) {
|
|
4397
4362
|
const r = new URL(t);
|
|
4398
4363
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4399
4364
|
const i = document.createElement("style");
|
|
@@ -4402,7 +4367,7 @@ function Uo(e, t) {
|
|
|
4402
4367
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4403
4368
|
});
|
|
4404
4369
|
}
|
|
4405
|
-
function
|
|
4370
|
+
function Mo(e, t, r) {
|
|
4406
4371
|
if (window.emMessageBus) {
|
|
4407
4372
|
const n = document.createElement("style");
|
|
4408
4373
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4422,18 +4387,18 @@ if (typeof window < "u") {
|
|
|
4422
4387
|
}
|
|
4423
4388
|
};
|
|
4424
4389
|
};
|
|
4425
|
-
customElements.define = e(customElements.define), import("./GeneralPlayerSmsVerificationForm-
|
|
4390
|
+
customElements.define = e(customElements.define), import("./GeneralPlayerSmsVerificationForm-9nSotkvC.js").then(({ default: t }) => {
|
|
4426
4391
|
!customElements.get("general-player-sms-verification-form") && customElements.define("general-player-sms-verification-form", t.element);
|
|
4427
4392
|
});
|
|
4428
4393
|
}
|
|
4429
|
-
function
|
|
4430
|
-
|
|
4394
|
+
function No(e) {
|
|
4395
|
+
on(e, "svelte-7c22cn", '.grecaptcha-badge{opacity:0}input,select{font-family:inherit}.PlayerLoginFormWrapper{height:100%;border-radius:var(--emw--border-radius-medium, 15px)}.FormContainer{width:100%}.FormLogin{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #F9F8F8));padding:50px}.FormHeaderTitle{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));font-size:var(--emw--font-size-large, 20px);font-weight:var(--emw--font-weight-light, 300);padding:0;text-transform:uppercase;margin:0}.PasswordContainer{position:relative}.FormRequired{color:var(--emw--color-error, var(--emw--color-error, #ed0909))}.FormHeaderSubtitle{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-light, 300);margin:5px 0 0 0}.FormRegisterCallToAction{color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-normal, 400);text-decoration:none;cursor:pointer}.FormContent{padding-top:20px}.UserContainer,.PasswordContainer,.CaptchaContainer{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));display:flex;flex-direction:column;position:relative}.UserContainer label,.PasswordContainer label,.CaptchaContainer label{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-light, 300);padding-bottom:5px}.UserContainer input,.PasswordContainer input,.CaptchaContainer input{width:100%;height:44px;border-radius:15px;border:1px solid var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));box-sizing:border-box;padding:5px 15px;font-size:var(--emw--font-size-medium, 16px);line-height:18px}.UserContainer input:focus,.PasswordContainer input:focus,.CaptchaContainer input:focus{border:2px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));outline:none}.UserContainer.InvalidField input,.PasswordContainer.InvalidField input,.CaptchaContainer.InvalidField input{border:1px solid var(--emw--color-error, var(--emw--color-error, #ed0909));background:var(--emw--color-pale, #FBECF4);outline:none;color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444))}.PasswordContainer input{padding:5px 30px 5px 15px}.TogglePasswordVisibility{height:13px;position:absolute;right:8px;bottom:55px}.TogglePasswordVisibility.InvalidToggle path,.TogglePasswordVisibility.InvalidToggle circle,.TogglePasswordVisibility.InvalidToggle rect{fill:var(--emw--color-error, var(--emw--color-error, #ed0909))}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect{fill:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444))}.SignInButton{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 10px);color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF));font-family:var(--emw--button-typography);width:100%;height:60px;padding:0;text-transform:uppercase;font-size:var(--emw--font-size-medium, 16px);cursor:pointer}.SignInButton[disabled]{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);cursor:not-allowed}.ForgotPasswordButton{border:0;background:transparent;font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-light, 300);color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));margin-top:15px;cursor:pointer}.PasswordContainer,.UserContainer{padding-bottom:40px}.InvalidInput{color:var(--emw--color-error, var(--emw--color-error, #ed0909));font-size:10px;position:absolute;top:55px;padding-top:5px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:var(--emw--font-size-x-small, 12px);color:var(--emw--color-error, var(--emw--color-error, #ed0909))}.FormMobileContainer{height:100%}.FormMobileContainer .FormLogin{padding:40px 20px}.FormMobileContainer .SignInButton,.FormMobileContainer .UserContainer input,.FormMobileContainer .PasswordContainer input,.FormMobileContainer .CaptchaContainer{max-width:unset;border-radius:var(--emw--border-radius-medium, 15px)}.ModalLoaderWrapper{display:flex;height:100%;align-items:center}.ModalLoader{display:block;width:80px;height:80px;margin:0 auto}.ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:Loader 1.2s linear infinite}input::-ms-reveal,input::-ms-clear{display:none}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}');
|
|
4431
4396
|
}
|
|
4432
|
-
function
|
|
4397
|
+
function pr(e) {
|
|
4433
4398
|
let t, r;
|
|
4434
4399
|
return {
|
|
4435
4400
|
c() {
|
|
4436
|
-
t =
|
|
4401
|
+
t = x("script"), zt(t.src, r = "//www.google.com/recaptcha/api.js?render=" + /*captchakey*/
|
|
4437
4402
|
e[1]) || h(t, "src", r), t.async = !0, t.defer = !0;
|
|
4438
4403
|
},
|
|
4439
4404
|
m(n, i) {
|
|
@@ -4441,7 +4406,7 @@ function yr(e) {
|
|
|
4441
4406
|
},
|
|
4442
4407
|
p(n, i) {
|
|
4443
4408
|
i[0] & /*captchakey*/
|
|
4444
|
-
2 && !
|
|
4409
|
+
2 && !zt(t.src, r = "//www.google.com/recaptcha/api.js?render=" + /*captchakey*/
|
|
4445
4410
|
n[1]) && h(t, "src", r);
|
|
4446
4411
|
},
|
|
4447
4412
|
d(n) {
|
|
@@ -4449,18 +4414,18 @@ function yr(e) {
|
|
|
4449
4414
|
}
|
|
4450
4415
|
};
|
|
4451
4416
|
}
|
|
4452
|
-
function
|
|
4417
|
+
function Ro(e) {
|
|
4453
4418
|
let t, r, n;
|
|
4454
4419
|
function i(a, c) {
|
|
4455
4420
|
return (
|
|
4456
4421
|
/*startSmsValidation*/
|
|
4457
|
-
a[21] ?
|
|
4422
|
+
a[21] ? Do : Fo
|
|
4458
4423
|
);
|
|
4459
4424
|
}
|
|
4460
4425
|
let o = i(e), s = o(e);
|
|
4461
4426
|
return {
|
|
4462
4427
|
c() {
|
|
4463
|
-
t =
|
|
4428
|
+
t = x("div"), r = x("div"), s.c(), h(r, "class", "FormLogin"), h(t, "class", n = "FormContainer " + /*mobileView*/
|
|
4464
4429
|
(e[11] ? "FormMobileContainer" : ""));
|
|
4465
4430
|
},
|
|
4466
4431
|
m(a, c) {
|
|
@@ -4476,11 +4441,11 @@ function ko(e) {
|
|
|
4476
4441
|
}
|
|
4477
4442
|
};
|
|
4478
4443
|
}
|
|
4479
|
-
function
|
|
4444
|
+
function Uo(e) {
|
|
4480
4445
|
let t;
|
|
4481
4446
|
return {
|
|
4482
4447
|
c() {
|
|
4483
|
-
t =
|
|
4448
|
+
t = x("div"), t.innerHTML = '<div class="ModalLoader"></div>', h(t, "class", "ModalLoaderWrapper");
|
|
4484
4449
|
},
|
|
4485
4450
|
m(r, n) {
|
|
4486
4451
|
L(r, t, n);
|
|
@@ -4491,7 +4456,7 @@ function $o(e) {
|
|
|
4491
4456
|
}
|
|
4492
4457
|
};
|
|
4493
4458
|
}
|
|
4494
|
-
function
|
|
4459
|
+
function Fo(e) {
|
|
4495
4460
|
let t, r, n = (
|
|
4496
4461
|
/*$_*/
|
|
4497
4462
|
e[22]("loginTitle") + ""
|
|
@@ -4501,158 +4466,158 @@ function Go(e) {
|
|
|
4501
4466
|
), c, l, u, f = (
|
|
4502
4467
|
/*$_*/
|
|
4503
4468
|
e[22]("loginSubtitleRegister") + ""
|
|
4504
|
-
), d, b,
|
|
4469
|
+
), d, b, v, g, S, C, z = (
|
|
4505
4470
|
/*$_*/
|
|
4506
4471
|
e[22]("loginUsername") + ""
|
|
4507
|
-
), R, U, A, re, H,
|
|
4472
|
+
), R, U, A, re, H, ie, he, J, le, B, ne, X = (
|
|
4508
4473
|
/*$_*/
|
|
4509
4474
|
e[22]("loginPassword") + ""
|
|
4510
|
-
),
|
|
4475
|
+
), Fe, Ze, fe, de, M, ve, qe, _e, we, me, De, Ee, Q, pe = (
|
|
4511
4476
|
/*$_*/
|
|
4512
4477
|
e[22]("loginButton") + ""
|
|
4513
4478
|
), xe, Je, ge, be = (
|
|
4514
4479
|
/*$_*/
|
|
4515
4480
|
e[22]("loginForgotPassword") + ""
|
|
4516
|
-
),
|
|
4481
|
+
), ke, Ge, Qe, F = (
|
|
4517
4482
|
/*invalidName*/
|
|
4518
|
-
e[14] &&
|
|
4483
|
+
e[14] && gr(e)
|
|
4519
4484
|
);
|
|
4520
|
-
function Ye(
|
|
4485
|
+
function Ye(y, P) {
|
|
4521
4486
|
return (
|
|
4522
4487
|
/*isPasswordVisible*/
|
|
4523
|
-
|
|
4488
|
+
y[19] ? Go : ko
|
|
4524
4489
|
);
|
|
4525
4490
|
}
|
|
4526
4491
|
let Se = Ye(e), Y = Se(e), D = (
|
|
4527
4492
|
/*invalidPassword*/
|
|
4528
4493
|
e[15] && /*simplepasswordvalidation*/
|
|
4529
|
-
e[2] !== "true" &&
|
|
4494
|
+
e[2] !== "true" && br(e)
|
|
4530
4495
|
), k = (
|
|
4531
4496
|
/*invalidPassword*/
|
|
4532
4497
|
e[15] && /*simplepasswordvalidation*/
|
|
4533
|
-
e[2] === "true" &&
|
|
4534
|
-
),
|
|
4498
|
+
e[2] === "true" && yr(e)
|
|
4499
|
+
), G = (
|
|
4535
4500
|
/*errorMessage*/
|
|
4536
|
-
e[16] &&
|
|
4501
|
+
e[16] && vr(e)
|
|
4537
4502
|
);
|
|
4538
4503
|
return {
|
|
4539
4504
|
c() {
|
|
4540
|
-
t =
|
|
4541
|
-
e[6] ? "username email" : "off"), H.required = !0, h(
|
|
4542
|
-
(e[14] ? "InvalidField" : "")), h(fe, "class", "FormRequired"), h(ne, "for", "current-password"), h(M, "type", "password"), h(M, "name", "current-password"), h(M, "id", "current-password"), h(M, "autocomplete",
|
|
4505
|
+
t = x("div"), r = x("h4"), i = N(n), o = j(), s = x("p"), c = N(a), l = j(), u = x("span"), d = N(f), b = j(), v = x("div"), g = x("form"), S = x("div"), C = x("label"), R = N(z), U = N(":"), A = x("span"), A.textContent = "*", re = j(), H = x("input"), he = j(), F && F.c(), le = j(), B = x("div"), ne = x("label"), Fe = N(X), Ze = N(":"), fe = x("span"), fe.textContent = "*", de = j(), M = x("input"), qe = j(), Y.c(), _e = j(), D && D.c(), we = j(), k && k.c(), De = j(), G && G.c(), Ee = j(), Q = x("button"), xe = N(pe), Je = j(), ge = x("button"), ke = N(be), h(r, "class", "FormHeaderTitle"), h(u, "class", "FormRegisterCallToAction"), h(s, "class", "FormHeaderSubtitle"), h(t, "class", "FormHeader"), h(A, "class", "FormRequired"), h(C, "for", "username"), h(H, "type", "text"), h(H, "id", "email"), h(H, "name", "email"), h(H, "autocomplete", ie = /*savecredentials*/
|
|
4506
|
+
e[6] ? "username email" : "off"), H.required = !0, h(S, "class", J = "UserContainer " + /*invalidName*/
|
|
4507
|
+
(e[14] ? "InvalidField" : "")), h(fe, "class", "FormRequired"), h(ne, "for", "current-password"), h(M, "type", "password"), h(M, "name", "current-password"), h(M, "id", "current-password"), h(M, "autocomplete", ve = /*savecredentials*/
|
|
4543
4508
|
e[6] ? "current-password" : "off"), h(M, "aria-describedby", "password-constraints"), M.required = !0, h(B, "class", me = "PasswordContainer " + /*invalidPassword*/
|
|
4544
4509
|
(e[15] ? "InvalidField" : "")), h(Q, "class", "SignInButton"), Q.disabled = /*isFormDataInvalid*/
|
|
4545
|
-
e[20], h(Q, "id", "signin-button"), h(ge, "class", "ForgotPasswordButton"), h(g, "id", "signin"), h(
|
|
4510
|
+
e[20], h(Q, "id", "signin-button"), h(ge, "class", "ForgotPasswordButton"), h(g, "id", "signin"), h(v, "class", "FormContent");
|
|
4546
4511
|
},
|
|
4547
|
-
m(
|
|
4548
|
-
L(
|
|
4512
|
+
m(y, P) {
|
|
4513
|
+
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, S), m(S, C), m(C, R), m(C, U), m(C, A), m(S, re), m(S, H), rt(
|
|
4549
4514
|
H,
|
|
4550
4515
|
/*userValue*/
|
|
4551
4516
|
e[12]
|
|
4552
|
-
), m(
|
|
4517
|
+
), m(S, he), F && F.m(S, null), m(g, le), m(g, B), m(B, ne), m(ne, Fe), m(ne, Ze), m(ne, fe), m(B, de), m(B, M), rt(
|
|
4553
4518
|
M,
|
|
4554
4519
|
/*userPassword*/
|
|
4555
4520
|
e[13]
|
|
4556
|
-
), e[36](M), m(B, qe), Y.m(B, null), m(B, _e), D && D.m(B, null), m(B, we), k && k.m(B, null), m(g,
|
|
4557
|
-
|
|
4521
|
+
), e[36](M), m(B, qe), Y.m(B, null), m(B, _e), D && D.m(B, null), m(B, we), k && k.m(B, null), m(g, De), G && G.m(g, null), m(g, Ee), m(g, Q), m(Q, xe), m(g, Je), m(g, ge), m(ge, ke), Ge || (Qe = [
|
|
4522
|
+
oe(
|
|
4558
4523
|
u,
|
|
4559
4524
|
"click",
|
|
4560
4525
|
/*click_handler*/
|
|
4561
4526
|
e[33]
|
|
4562
4527
|
),
|
|
4563
|
-
|
|
4528
|
+
oe(
|
|
4564
4529
|
H,
|
|
4565
4530
|
"input",
|
|
4566
4531
|
/*input0_input_handler*/
|
|
4567
4532
|
e[34]
|
|
4568
4533
|
),
|
|
4569
|
-
|
|
4534
|
+
oe(
|
|
4570
4535
|
H,
|
|
4571
4536
|
"input",
|
|
4572
4537
|
/*validateUserName*/
|
|
4573
4538
|
e[28]
|
|
4574
4539
|
),
|
|
4575
|
-
|
|
4540
|
+
oe(
|
|
4576
4541
|
M,
|
|
4577
4542
|
"input",
|
|
4578
4543
|
/*input1_input_handler*/
|
|
4579
4544
|
e[35]
|
|
4580
4545
|
),
|
|
4581
|
-
|
|
4546
|
+
oe(
|
|
4582
4547
|
M,
|
|
4583
4548
|
"input",
|
|
4584
4549
|
/*validatePassword*/
|
|
4585
4550
|
e[29]
|
|
4586
4551
|
),
|
|
4587
|
-
|
|
4552
|
+
oe(
|
|
4588
4553
|
Q,
|
|
4589
4554
|
"click",
|
|
4590
4555
|
/*click_handler_3*/
|
|
4591
4556
|
e[39]
|
|
4592
4557
|
),
|
|
4593
|
-
|
|
4558
|
+
oe(
|
|
4594
4559
|
ge,
|
|
4595
4560
|
"click",
|
|
4596
4561
|
/*click_handler_4*/
|
|
4597
4562
|
e[40]
|
|
4598
4563
|
)
|
|
4599
|
-
],
|
|
4564
|
+
], Ge = !0);
|
|
4600
4565
|
},
|
|
4601
|
-
p(
|
|
4602
|
-
|
|
4566
|
+
p(y, P) {
|
|
4567
|
+
P[0] & /*$_*/
|
|
4603
4568
|
4194304 && n !== (n = /*$_*/
|
|
4604
|
-
|
|
4569
|
+
y[22]("loginTitle") + "") && te(i, n), P[0] & /*$_*/
|
|
4605
4570
|
4194304 && a !== (a = /*$_*/
|
|
4606
|
-
|
|
4571
|
+
y[22]("loginSubtitle") + "") && te(c, a), P[0] & /*$_*/
|
|
4607
4572
|
4194304 && f !== (f = /*$_*/
|
|
4608
|
-
|
|
4573
|
+
y[22]("loginSubtitleRegister") + "") && te(d, f), P[0] & /*$_*/
|
|
4609
4574
|
4194304 && z !== (z = /*$_*/
|
|
4610
|
-
|
|
4611
|
-
64 &&
|
|
4612
|
-
|
|
4575
|
+
y[22]("loginUsername") + "") && te(R, z), P[0] & /*savecredentials*/
|
|
4576
|
+
64 && ie !== (ie = /*savecredentials*/
|
|
4577
|
+
y[6] ? "username email" : "off") && h(H, "autocomplete", ie), P[0] & /*userValue*/
|
|
4613
4578
|
4096 && H.value !== /*userValue*/
|
|
4614
|
-
|
|
4579
|
+
y[12] && rt(
|
|
4615
4580
|
H,
|
|
4616
4581
|
/*userValue*/
|
|
4617
|
-
|
|
4582
|
+
y[12]
|
|
4618
4583
|
), /*invalidName*/
|
|
4619
|
-
|
|
4584
|
+
y[14] ? F ? F.p(y, P) : (F = gr(y), F.c(), F.m(S, null)) : F && (F.d(1), F = null), P[0] & /*invalidName*/
|
|
4620
4585
|
16384 && J !== (J = "UserContainer " + /*invalidName*/
|
|
4621
|
-
(
|
|
4586
|
+
(y[14] ? "InvalidField" : "")) && h(S, "class", J), P[0] & /*$_*/
|
|
4622
4587
|
4194304 && X !== (X = /*$_*/
|
|
4623
|
-
|
|
4624
|
-
64 &&
|
|
4625
|
-
|
|
4588
|
+
y[22]("loginPassword") + "") && te(Fe, X), P[0] & /*savecredentials*/
|
|
4589
|
+
64 && ve !== (ve = /*savecredentials*/
|
|
4590
|
+
y[6] ? "current-password" : "off") && h(M, "autocomplete", ve), P[0] & /*userPassword*/
|
|
4626
4591
|
8192 && M.value !== /*userPassword*/
|
|
4627
|
-
|
|
4592
|
+
y[13] && rt(
|
|
4628
4593
|
M,
|
|
4629
4594
|
/*userPassword*/
|
|
4630
|
-
|
|
4631
|
-
), Se === (Se = Ye(
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4595
|
+
y[13]
|
|
4596
|
+
), Se === (Se = Ye(y)) && Y ? Y.p(y, P) : (Y.d(1), Y = Se(y), Y && (Y.c(), Y.m(B, _e))), /*invalidPassword*/
|
|
4597
|
+
y[15] && /*simplepasswordvalidation*/
|
|
4598
|
+
y[2] !== "true" ? D ? D.p(y, P) : (D = br(y), D.c(), D.m(B, we)) : D && (D.d(1), D = null), /*invalidPassword*/
|
|
4599
|
+
y[15] && /*simplepasswordvalidation*/
|
|
4600
|
+
y[2] === "true" ? k ? k.p(y, P) : (k = yr(y), k.c(), k.m(B, null)) : k && (k.d(1), k = null), P[0] & /*invalidPassword*/
|
|
4636
4601
|
32768 && me !== (me = "PasswordContainer " + /*invalidPassword*/
|
|
4637
|
-
(
|
|
4638
|
-
|
|
4602
|
+
(y[15] ? "InvalidField" : "")) && h(B, "class", me), /*errorMessage*/
|
|
4603
|
+
y[16] ? G ? G.p(y, P) : (G = vr(y), G.c(), G.m(g, Ee)) : G && (G.d(1), G = null), P[0] & /*$_*/
|
|
4639
4604
|
4194304 && pe !== (pe = /*$_*/
|
|
4640
|
-
|
|
4605
|
+
y[22]("loginButton") + "") && te(xe, pe), P[0] & /*isFormDataInvalid*/
|
|
4641
4606
|
1048576 && (Q.disabled = /*isFormDataInvalid*/
|
|
4642
|
-
|
|
4607
|
+
y[20]), P[0] & /*$_*/
|
|
4643
4608
|
4194304 && be !== (be = /*$_*/
|
|
4644
|
-
|
|
4609
|
+
y[22]("loginForgotPassword") + "") && te(ke, be);
|
|
4645
4610
|
},
|
|
4646
|
-
d(
|
|
4647
|
-
|
|
4611
|
+
d(y) {
|
|
4612
|
+
y && (I(t), I(b), I(v)), F && F.d(), e[36](null), Y.d(), D && D.d(), k && k.d(), G && G.d(), Ge = !1, Me(Qe);
|
|
4648
4613
|
}
|
|
4649
4614
|
};
|
|
4650
4615
|
}
|
|
4651
|
-
function
|
|
4616
|
+
function Do(e) {
|
|
4652
4617
|
let t;
|
|
4653
4618
|
return {
|
|
4654
4619
|
c() {
|
|
4655
|
-
t =
|
|
4620
|
+
t = x("general-player-sms-verification-form"), W(
|
|
4656
4621
|
t,
|
|
4657
4622
|
"endpoint",
|
|
4658
4623
|
/*endpoint*/
|
|
@@ -4742,14 +4707,14 @@ function jo(e) {
|
|
|
4742
4707
|
}
|
|
4743
4708
|
};
|
|
4744
4709
|
}
|
|
4745
|
-
function
|
|
4710
|
+
function gr(e) {
|
|
4746
4711
|
let t, r = (
|
|
4747
4712
|
/*$_*/
|
|
4748
4713
|
e[22]("loginUsernameError") + ""
|
|
4749
4714
|
), n;
|
|
4750
4715
|
return {
|
|
4751
4716
|
c() {
|
|
4752
|
-
t =
|
|
4717
|
+
t = x("p"), n = N(r), h(t, "class", "InvalidInput");
|
|
4753
4718
|
},
|
|
4754
4719
|
m(i, o) {
|
|
4755
4720
|
L(i, t, o), m(t, n);
|
|
@@ -4764,14 +4729,14 @@ function _r(e) {
|
|
|
4764
4729
|
}
|
|
4765
4730
|
};
|
|
4766
4731
|
}
|
|
4767
|
-
function
|
|
4732
|
+
function ko(e) {
|
|
4768
4733
|
let t, r, n, i, o, s, a, c, l;
|
|
4769
4734
|
return {
|
|
4770
4735
|
c() {
|
|
4771
|
-
t =
|
|
4736
|
+
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");
|
|
4772
4737
|
},
|
|
4773
4738
|
m(u, f) {
|
|
4774
|
-
L(u, t, f), m(t, r), m(r, n), m(n, i), m(t, o), m(o, s), m(o, a), c || (l =
|
|
4739
|
+
L(u, t, f), m(t, r), m(r, n), m(n, i), m(t, o), m(o, s), m(o, a), c || (l = oe(
|
|
4775
4740
|
t,
|
|
4776
4741
|
"click",
|
|
4777
4742
|
/*click_handler_2*/
|
|
@@ -4784,34 +4749,34 @@ function Vo(e) {
|
|
|
4784
4749
|
}
|
|
4785
4750
|
};
|
|
4786
4751
|
}
|
|
4787
|
-
function
|
|
4788
|
-
let t, r, n, i, o, s, a, c, l, u, f, d, b,
|
|
4752
|
+
function Go(e) {
|
|
4753
|
+
let t, r, n, i, o, s, a, c, l, u, f, d, b, v, g;
|
|
4789
4754
|
return {
|
|
4790
4755
|
c() {
|
|
4791
|
-
t =
|
|
4756
|
+
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");
|
|
4792
4757
|
},
|
|
4793
|
-
m(
|
|
4794
|
-
L(
|
|
4758
|
+
m(S, C) {
|
|
4759
|
+
L(S, t, C), 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 = oe(
|
|
4795
4760
|
t,
|
|
4796
4761
|
"click",
|
|
4797
4762
|
/*click_handler_1*/
|
|
4798
4763
|
e[37]
|
|
4799
|
-
),
|
|
4764
|
+
), v = !0);
|
|
4800
4765
|
},
|
|
4801
4766
|
p: Z,
|
|
4802
|
-
d(
|
|
4803
|
-
|
|
4767
|
+
d(S) {
|
|
4768
|
+
S && I(t), v = !1, g();
|
|
4804
4769
|
}
|
|
4805
4770
|
};
|
|
4806
4771
|
}
|
|
4807
|
-
function
|
|
4772
|
+
function br(e) {
|
|
4808
4773
|
let t, r = (
|
|
4809
4774
|
/*$_*/
|
|
4810
4775
|
e[22]("loginPasswordError") + ""
|
|
4811
4776
|
), n;
|
|
4812
4777
|
return {
|
|
4813
4778
|
c() {
|
|
4814
|
-
t =
|
|
4779
|
+
t = x("p"), n = N(r), h(t, "class", "InvalidInput");
|
|
4815
4780
|
},
|
|
4816
4781
|
m(i, o) {
|
|
4817
4782
|
L(i, t, o), m(t, n);
|
|
@@ -4826,14 +4791,14 @@ function wr(e) {
|
|
|
4826
4791
|
}
|
|
4827
4792
|
};
|
|
4828
4793
|
}
|
|
4829
|
-
function
|
|
4794
|
+
function yr(e) {
|
|
4830
4795
|
let t, r = (
|
|
4831
4796
|
/*$_*/
|
|
4832
4797
|
e[22]("loginSimplePasswordError") + ""
|
|
4833
4798
|
), n;
|
|
4834
4799
|
return {
|
|
4835
4800
|
c() {
|
|
4836
|
-
t =
|
|
4801
|
+
t = x("p"), n = N(r), h(t, "class", "InvalidInput");
|
|
4837
4802
|
},
|
|
4838
4803
|
m(i, o) {
|
|
4839
4804
|
L(i, t, o), m(t, n);
|
|
@@ -4848,11 +4813,11 @@ function Er(e) {
|
|
|
4848
4813
|
}
|
|
4849
4814
|
};
|
|
4850
4815
|
}
|
|
4851
|
-
function
|
|
4816
|
+
function vr(e) {
|
|
4852
4817
|
let t, r;
|
|
4853
4818
|
return {
|
|
4854
4819
|
c() {
|
|
4855
|
-
t =
|
|
4820
|
+
t = x("p"), r = N(
|
|
4856
4821
|
/*errorMessage*/
|
|
4857
4822
|
e[16]
|
|
4858
4823
|
), h(t, "class", "ErrorMessage");
|
|
@@ -4873,21 +4838,21 @@ function xr(e) {
|
|
|
4873
4838
|
}
|
|
4874
4839
|
};
|
|
4875
4840
|
}
|
|
4876
|
-
function
|
|
4841
|
+
function $o(e) {
|
|
4877
4842
|
let t, r, n, i, o, s = (
|
|
4878
4843
|
/*captchakey*/
|
|
4879
|
-
e[1] &&
|
|
4844
|
+
e[1] && pr(e)
|
|
4880
4845
|
);
|
|
4881
4846
|
function a(u, f) {
|
|
4882
4847
|
return (
|
|
4883
4848
|
/*isLoading*/
|
|
4884
|
-
u[17] ?
|
|
4849
|
+
u[17] ? Uo : Ro
|
|
4885
4850
|
);
|
|
4886
4851
|
}
|
|
4887
4852
|
let c = a(e), l = c(e);
|
|
4888
4853
|
return {
|
|
4889
4854
|
c() {
|
|
4890
|
-
s && s.c(), t =
|
|
4855
|
+
s && s.c(), t = ln(), r = j(), n = x("div"), i = j(), o = x("div"), l.c(), h(n, "class", "g-recaptcha"), h(
|
|
4891
4856
|
n,
|
|
4892
4857
|
"data-sitekey",
|
|
4893
4858
|
/*captchakey*/
|
|
@@ -4899,7 +4864,7 @@ function Xo(e) {
|
|
|
4899
4864
|
},
|
|
4900
4865
|
p(u, f) {
|
|
4901
4866
|
/*captchakey*/
|
|
4902
|
-
u[1] ? s ? s.p(u, f) : (s =
|
|
4867
|
+
u[1] ? s ? s.p(u, f) : (s = pr(u), s.c(), s.m(t.parentNode, t)) : s && (s.d(1), s = null), f[0] & /*captchakey*/
|
|
4903
4868
|
2 && h(
|
|
4904
4869
|
n,
|
|
4905
4870
|
"data-sitekey",
|
|
@@ -4914,29 +4879,29 @@ function Xo(e) {
|
|
|
4914
4879
|
}
|
|
4915
4880
|
};
|
|
4916
4881
|
}
|
|
4917
|
-
let
|
|
4918
|
-
function
|
|
4882
|
+
let jo = "Please use this code {0} to activate your account";
|
|
4883
|
+
function Vo(e, t, r) {
|
|
4919
4884
|
let n;
|
|
4920
|
-
|
|
4921
|
-
let { endpoint: i = "" } = t, { captchakey: o = "" } = t, { lang: s = "en" } = t, { smsverification: a = "false" } = t, { simplepasswordvalidation: c = "false" } = t, { mbsource: l } = t, { clientstyling: u = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: d = "" } = t, { savecredentials: b = "" } = t,
|
|
4885
|
+
nn(e, Bo, (p) => r(22, n = p));
|
|
4886
|
+
let { endpoint: i = "" } = t, { captchakey: o = "" } = t, { lang: s = "en" } = t, { smsverification: a = "false" } = t, { simplepasswordvalidation: c = "false" } = t, { mbsource: l } = t, { clientstyling: u = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: d = "" } = t, { savecredentials: b = "" } = t, v, g, S = !1, C, z = !1, R = window.navigator.userAgent, U = "", A = "", re = { username: "", password: "" }, H = !1, ie = !1, he = "", J = !1, le, B = !1, ne = !0, X, Fe = +localStorage.getItem("smsTimer") || 0, Ze = Date.now() / 1e3 - Fe, fe = localStorage.getItem("smsValidation") == "true" && Ze < 60, de = {
|
|
4922
4887
|
user: /^(?!(?:.*\d){9})(?=(?:.*[a-zA-Z]){4})^[a-zA-Z\d]*$/,
|
|
4923
4888
|
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,
|
|
4924
4889
|
password: /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/
|
|
4925
4890
|
};
|
|
4926
|
-
|
|
4891
|
+
Io({ withLocale: "en", translations: {} });
|
|
4927
4892
|
const M = () => {
|
|
4928
4893
|
fetch(d).then((q) => q.json()).then((q) => {
|
|
4929
4894
|
Object.keys(q).forEach((ee) => {
|
|
4930
|
-
|
|
4895
|
+
dr(ee, q[ee]);
|
|
4931
4896
|
});
|
|
4932
4897
|
}).catch((q) => {
|
|
4933
4898
|
console.log(q);
|
|
4934
4899
|
});
|
|
4935
4900
|
};
|
|
4936
|
-
Object.keys(
|
|
4937
|
-
|
|
4901
|
+
Object.keys(mr).forEach((p) => {
|
|
4902
|
+
dr(p, mr[p]);
|
|
4938
4903
|
});
|
|
4939
|
-
const
|
|
4904
|
+
const ve = () => new Promise((p, q) => {
|
|
4940
4905
|
grecaptcha.ready(() => {
|
|
4941
4906
|
grecaptcha.execute(o, { action: "submit" }).then((ee) => {
|
|
4942
4907
|
p(ee);
|
|
@@ -4950,22 +4915,22 @@ function Zo(e, t, r) {
|
|
|
4950
4915
|
r(19, B = !1), me();
|
|
4951
4916
|
}, me = () => {
|
|
4952
4917
|
r(18, le.type = B ? "text" : "password", le);
|
|
4953
|
-
},
|
|
4918
|
+
}, De = () => {
|
|
4954
4919
|
window.postMessage({ type: "ToRegister" }, window.location.href);
|
|
4955
4920
|
}, Ee = (p) => {
|
|
4956
4921
|
p.preventDefault(), window.postMessage({ type: "NavForgotPassword" }, window.location.href);
|
|
4957
4922
|
}, Q = (p) => {
|
|
4958
|
-
p?.preventDefault(),
|
|
4923
|
+
p?.preventDefault(), ve().then((q) => {
|
|
4959
4924
|
pe(U) && xe(A) && (re = {
|
|
4960
4925
|
username: U,
|
|
4961
4926
|
password: A,
|
|
4962
4927
|
token: q
|
|
4963
|
-
}, r(17, J = !0),
|
|
4928
|
+
}, r(17, J = !0), Ge(re));
|
|
4964
4929
|
});
|
|
4965
4930
|
}, pe = (p) => !!((de.user.test(p) || de.email.test(p)) && p.length <= 100), xe = (p) => !!de.password.test(p), Je = () => {
|
|
4966
|
-
r(14, H = !pe(U)), r(20, ne = !(!H && !
|
|
4931
|
+
r(14, H = !pe(U)), r(20, ne = !(!H && !ie && A));
|
|
4967
4932
|
}, ge = () => {
|
|
4968
|
-
r(15,
|
|
4933
|
+
r(15, ie = !xe(A)), r(20, ne = !(!H && !ie && U));
|
|
4969
4934
|
}, be = (p) => {
|
|
4970
4935
|
if (p.data)
|
|
4971
4936
|
switch (p.data.type) {
|
|
@@ -4979,20 +4944,20 @@ function Zo(e, t, r) {
|
|
|
4979
4944
|
Q();
|
|
4980
4945
|
break;
|
|
4981
4946
|
}
|
|
4982
|
-
},
|
|
4947
|
+
}, ke = (p) => {
|
|
4983
4948
|
typeof gtag == "function" && gtag("event", "Login", {
|
|
4984
4949
|
context: "GeneralPlayerLoginRegisterPage"
|
|
4985
4950
|
});
|
|
4986
|
-
},
|
|
4951
|
+
}, Ge = async ({ username: p, password: q, token: ee }) => {
|
|
4987
4952
|
let Ke = {
|
|
4988
4953
|
"Content-Type": "application/json",
|
|
4989
4954
|
"g-recaptcha-response": ee
|
|
4990
|
-
}, et = { username: p, password: q },
|
|
4955
|
+
}, et = { username: p, password: q }, tn = {
|
|
4991
4956
|
method: "POST",
|
|
4992
4957
|
headers: Ke,
|
|
4993
4958
|
body: JSON.stringify(et)
|
|
4994
4959
|
};
|
|
4995
|
-
fetch(`${i}/v1/player/login/player`,
|
|
4960
|
+
fetch(`${i}/v1/player/login/player`, tn).then(($) => ($.status >= 500 && (r(16, he = "Server might not be responsing"), r(17, J = !1), window.postMessage(
|
|
4996
4961
|
{
|
|
4997
4962
|
type: "WidgetNotification",
|
|
4998
4963
|
data: {
|
|
@@ -5001,13 +4966,13 @@ function Zo(e, t, r) {
|
|
|
5001
4966
|
}
|
|
5002
4967
|
},
|
|
5003
4968
|
window.location.href
|
|
5004
|
-
)),
|
|
5005
|
-
if (
|
|
4969
|
+
)), $.json())).then(($) => {
|
|
4970
|
+
if ($.actions !== void 0 && window.postMessage({ type: "PlayerActions" }, window.location.href), a === "true" && $.code === 4 && (r(8, v = $.detail.userId), r(10, C = $.detail.phonePrefix + $.detail.phone), r(21, fe = !0), Qe(C, v), localStorage.setItem("smsValidation", "true"), localStorage.setItem("playerData", JSON.stringify({ playerid: v, number: C }))), $.sessionID) {
|
|
5006
4971
|
if (window.postMessage(
|
|
5007
4972
|
{
|
|
5008
4973
|
type: "UserSessionID",
|
|
5009
|
-
session:
|
|
5010
|
-
userid:
|
|
4974
|
+
session: $.sessionID,
|
|
4975
|
+
userid: $.universalID
|
|
5011
4976
|
},
|
|
5012
4977
|
window.location.href
|
|
5013
4978
|
), window.postMessage(
|
|
@@ -5026,10 +4991,10 @@ function Zo(e, t, r) {
|
|
|
5026
4991
|
});
|
|
5027
4992
|
navigator.credentials.store($e);
|
|
5028
4993
|
}
|
|
5029
|
-
|
|
4994
|
+
ke();
|
|
5030
4995
|
} else
|
|
5031
4996
|
try {
|
|
5032
|
-
let $e =
|
|
4997
|
+
let $e = $.error;
|
|
5033
4998
|
r(16, he = $e), r(17, J = !1), window.postMessage(
|
|
5034
4999
|
{
|
|
5035
5000
|
type: "WidgetNotification",
|
|
@@ -5038,11 +5003,11 @@ function Zo(e, t, r) {
|
|
|
5038
5003
|
window.location.href
|
|
5039
5004
|
);
|
|
5040
5005
|
} catch {
|
|
5041
|
-
let
|
|
5042
|
-
r(16, he =
|
|
5006
|
+
let jt = $.error.substring($.error.indexOf("errorMessage") + 13, $.error.length);
|
|
5007
|
+
r(16, he = jt), r(17, J = !1), window.postMessage(
|
|
5043
5008
|
{
|
|
5044
5009
|
type: "WidgetNotification",
|
|
5045
|
-
data: { type: "error", message:
|
|
5010
|
+
data: { type: "error", message: jt }
|
|
5046
5011
|
},
|
|
5047
5012
|
window.location.href
|
|
5048
5013
|
);
|
|
@@ -5059,26 +5024,26 @@ function Zo(e, t, r) {
|
|
|
5059
5024
|
},
|
|
5060
5025
|
body: JSON.stringify({
|
|
5061
5026
|
userId: q,
|
|
5062
|
-
messageTemplate:
|
|
5027
|
+
messageTemplate: jo,
|
|
5063
5028
|
destination: p
|
|
5064
5029
|
})
|
|
5065
5030
|
}), Ke = await ee.json();
|
|
5066
5031
|
if (ee.ok) {
|
|
5067
5032
|
r(9, g = Ke.id);
|
|
5068
5033
|
let et = Ke.maxValidationAttempts;
|
|
5069
|
-
|
|
5034
|
+
S = !1;
|
|
5070
5035
|
} else
|
|
5071
|
-
throw
|
|
5036
|
+
throw S = !0, new Error("Failed to fetch");
|
|
5072
5037
|
} catch (ee) {
|
|
5073
|
-
|
|
5038
|
+
S = !0, console.error(ee);
|
|
5074
5039
|
}
|
|
5075
5040
|
}, F = () => {
|
|
5076
|
-
|
|
5041
|
+
Co(s);
|
|
5077
5042
|
};
|
|
5078
|
-
|
|
5043
|
+
fn(() => (window.addEventListener("message", be, !1), window.postMessage({ type: "LoginRegisterModalActive" }, window.location.href), r(11, z = Ao(R)), () => {
|
|
5079
5044
|
window.removeEventListener("message", be);
|
|
5080
5045
|
}));
|
|
5081
|
-
const Ye = () =>
|
|
5046
|
+
const Ye = () => De();
|
|
5082
5047
|
function Se() {
|
|
5083
5048
|
U = this.value, r(12, U);
|
|
5084
5049
|
}
|
|
@@ -5090,8 +5055,8 @@ function Zo(e, t, r) {
|
|
|
5090
5055
|
le = p, r(18, le);
|
|
5091
5056
|
});
|
|
5092
5057
|
}
|
|
5093
|
-
const k = () => we(),
|
|
5094
|
-
function
|
|
5058
|
+
const k = () => we(), G = () => _e(), y = (p) => Q(p), P = (p) => Ee(p);
|
|
5059
|
+
function en(p) {
|
|
5095
5060
|
ut[p ? "unshift" : "push"](() => {
|
|
5096
5061
|
X = p, r(7, X);
|
|
5097
5062
|
});
|
|
@@ -5102,9 +5067,9 @@ function Zo(e, t, r) {
|
|
|
5102
5067
|
e.$$.dirty[0] & /*endpoint, lang*/
|
|
5103
5068
|
1073741825 && i && s && F(), e.$$.dirty[0] & /*simplepasswordvalidation*/
|
|
5104
5069
|
4 && c && qe(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5105
|
-
144 && u && X &&
|
|
5106
|
-
160 && f && X &&
|
|
5107
|
-
136 && l && X &&
|
|
5070
|
+
144 && u && X && Oo(X, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5071
|
+
160 && f && X && Lo(X, f), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5072
|
+
136 && l && X && Mo(X, `${l}.Style`), e.$$.dirty[1] & /*translationurl*/
|
|
5108
5073
|
2 && d && M();
|
|
5109
5074
|
}, [
|
|
5110
5075
|
i,
|
|
@@ -5115,14 +5080,14 @@ function Zo(e, t, r) {
|
|
|
5115
5080
|
f,
|
|
5116
5081
|
b,
|
|
5117
5082
|
X,
|
|
5118
|
-
|
|
5083
|
+
v,
|
|
5119
5084
|
g,
|
|
5120
|
-
|
|
5085
|
+
C,
|
|
5121
5086
|
z,
|
|
5122
5087
|
U,
|
|
5123
5088
|
A,
|
|
5124
5089
|
H,
|
|
5125
|
-
|
|
5090
|
+
ie,
|
|
5126
5091
|
he,
|
|
5127
5092
|
J,
|
|
5128
5093
|
le,
|
|
@@ -5132,7 +5097,7 @@ function Zo(e, t, r) {
|
|
|
5132
5097
|
n,
|
|
5133
5098
|
_e,
|
|
5134
5099
|
we,
|
|
5135
|
-
|
|
5100
|
+
De,
|
|
5136
5101
|
Ee,
|
|
5137
5102
|
Q,
|
|
5138
5103
|
Je,
|
|
@@ -5145,20 +5110,20 @@ function Zo(e, t, r) {
|
|
|
5145
5110
|
Y,
|
|
5146
5111
|
D,
|
|
5147
5112
|
k,
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5113
|
+
G,
|
|
5114
|
+
y,
|
|
5115
|
+
P,
|
|
5116
|
+
en
|
|
5152
5117
|
];
|
|
5153
5118
|
}
|
|
5154
|
-
class
|
|
5119
|
+
class zo extends Sn {
|
|
5155
5120
|
constructor(t) {
|
|
5156
|
-
super(),
|
|
5121
|
+
super(), En(
|
|
5157
5122
|
this,
|
|
5158
5123
|
t,
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5124
|
+
Vo,
|
|
5125
|
+
$o,
|
|
5126
|
+
wr,
|
|
5162
5127
|
{
|
|
5163
5128
|
endpoint: 0,
|
|
5164
5129
|
captchakey: 1,
|
|
@@ -5171,7 +5136,7 @@ class qo extends Bn {
|
|
|
5171
5136
|
translationurl: 32,
|
|
5172
5137
|
savecredentials: 6
|
|
5173
5138
|
},
|
|
5174
|
-
|
|
5139
|
+
No,
|
|
5175
5140
|
[-1, -1]
|
|
5176
5141
|
);
|
|
5177
5142
|
}
|
|
@@ -5236,35 +5201,35 @@ class qo extends Bn {
|
|
|
5236
5201
|
this.$$set({ savecredentials: t }), K();
|
|
5237
5202
|
}
|
|
5238
5203
|
}
|
|
5239
|
-
|
|
5204
|
+
xn(zo, { endpoint: {}, captchakey: {}, lang: {}, smsverification: {}, simplepasswordvalidation: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, savecredentials: {} }, [], [], !0);
|
|
5240
5205
|
export {
|
|
5241
5206
|
ce as $,
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5207
|
+
zo as G,
|
|
5208
|
+
Sn as S,
|
|
5209
|
+
Re as a,
|
|
5210
|
+
qr as b,
|
|
5211
|
+
xn as c,
|
|
5212
|
+
on as d,
|
|
5213
|
+
x as e,
|
|
5249
5214
|
K as f,
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5215
|
+
j as g,
|
|
5216
|
+
h,
|
|
5217
|
+
En as i,
|
|
5218
|
+
L as j,
|
|
5219
|
+
m as k,
|
|
5220
|
+
rt as l,
|
|
5221
|
+
oe as m,
|
|
5222
|
+
te as n,
|
|
5223
|
+
Z as o,
|
|
5224
|
+
I as p,
|
|
5225
|
+
nn as q,
|
|
5226
|
+
Me as r,
|
|
5227
|
+
wr as s,
|
|
5263
5228
|
N as t,
|
|
5264
|
-
|
|
5229
|
+
fn as u,
|
|
5265
5230
|
ut as v,
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5231
|
+
Oo as w,
|
|
5232
|
+
Lo as x,
|
|
5233
|
+
Mo as y,
|
|
5234
|
+
Bo as z
|
|
5270
5235
|
};
|