@everymatrix/general-player-register-form-nd 1.74.8 → 1.74.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/GeneralPlayerRegisterFormNd-BTl6uATk.cjs +18 -0
- package/components/{GeneralPlayerRegisterFormNd-DsMvfO2O.js → GeneralPlayerRegisterFormNd-C1JQ8ARs.js} +702 -716
- package/components/{GeneralPlayerRegisterFormNd-B81vMd6o.js → GeneralPlayerRegisterFormNd-GoBYaeYc.js} +692 -706
- package/components/{GeneralPlayerRegisterFormStep1-ChHWqbZT.js → GeneralPlayerRegisterFormStep1-BqlRLeii.js} +4 -4
- package/components/{GeneralPlayerRegisterFormStep1-ChAgwOVE.js → GeneralPlayerRegisterFormStep1-BukkWYjI.js} +4 -4
- package/components/{GeneralPlayerRegisterFormStep1-B1yUji7Q.cjs → GeneralPlayerRegisterFormStep1-PNHf13iF.cjs} +1 -1
- package/components/{GeneralPlayerRegisterFormStep2-DOr7-P-1.cjs → GeneralPlayerRegisterFormStep2-CSz_dCaX.cjs} +2 -2
- package/components/{GeneralPlayerRegisterFormStep2-m-1TTcWc.js → GeneralPlayerRegisterFormStep2-DBnZ9YrY.js} +991 -991
- package/components/{GeneralPlayerRegisterFormStep2-wd8bqKAA.js → GeneralPlayerRegisterFormStep2-To7K540j.js} +986 -986
- package/components/{GeneralPlayerRegisterFormStep3-DRKlVOfe.cjs → GeneralPlayerRegisterFormStep3-Bo5g25HL.cjs} +1 -1
- package/components/{GeneralPlayerRegisterFormStep3-CakxX22B.js → GeneralPlayerRegisterFormStep3-CcFGaz76.js} +5 -5
- package/components/{GeneralPlayerRegisterFormStep3-BWdiFMfP.js → GeneralPlayerRegisterFormStep3-CzA9W6SQ.js} +5 -5
- package/components/{GeneralPlayerSmsVerificationForm-7Ta2HmaS.js → GeneralPlayerSmsVerificationForm-Cz9dvc1N.js} +5 -5
- package/components/{GeneralPlayerSmsVerificationForm-yHLU83KN.cjs → GeneralPlayerSmsVerificationForm-DcYEcOTa.cjs} +1 -1
- package/components/{GeneralPlayerSmsVerificationForm-BLNcr3Lk.js → GeneralPlayerSmsVerificationForm-DhT7I5pU.js} +5 -5
- package/es2015/general-player-register-form-nd.cjs +1 -1
- package/es2015/general-player-register-form-nd.js +1 -1
- package/esnext/general-player-register-form-nd.js +1 -1
- package/package.json +1 -1
- package/components/GeneralPlayerRegisterFormNd-DVeAF24W.cjs +0 -18
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var Ve = (e, t, r) => t in e ?
|
|
1
|
+
var sn = Object.defineProperty, on = Object.defineProperties;
|
|
2
|
+
var an = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var It = Object.getOwnPropertySymbols;
|
|
4
|
+
var un = Object.prototype.hasOwnProperty, ln = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ve = (e, t, r) => t in e ? sn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Rt = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
un.call(t, r) && Ve(e, r, t[r]);
|
|
8
|
+
if (It)
|
|
9
|
+
for (var r of It(t))
|
|
10
|
+
ln.call(t, r) && Ve(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, Lt = (e, t) => on(e, an(t));
|
|
13
13
|
var F = (e, t, r) => (Ve(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var Se = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (l) => {
|
|
@@ -29,29 +29,29 @@ var Se = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function k() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function fr(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Nt() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
38
|
function be(e) {
|
|
39
|
-
e.forEach(
|
|
39
|
+
e.forEach(fr);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function mt(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function cr(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
47
|
let xe;
|
|
48
|
-
function
|
|
48
|
+
function Ys(e, t) {
|
|
49
49
|
return e === t ? !0 : (xe || (xe = document.createElement("a")), xe.href = t, e === xe.href);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function hn(e) {
|
|
52
52
|
return Object.keys(e).length === 0;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function mr(e, ...t) {
|
|
55
55
|
if (e == null) {
|
|
56
56
|
for (const n of t)
|
|
57
57
|
n(void 0);
|
|
@@ -60,20 +60,20 @@ function dr(e, ...t) {
|
|
|
60
60
|
const r = e.subscribe(...t);
|
|
61
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
e.$$.on_destroy.push(
|
|
63
|
+
function fn(e, t, r) {
|
|
64
|
+
e.$$.on_destroy.push(mr(t, r));
|
|
65
65
|
}
|
|
66
66
|
function E(e, t) {
|
|
67
67
|
e.appendChild(t);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
const n =
|
|
69
|
+
function cn(e, t, r) {
|
|
70
|
+
const n = mn(e);
|
|
71
71
|
if (!n.getElementById(t)) {
|
|
72
72
|
const i = B("style");
|
|
73
|
-
i.id = t, i.textContent = r,
|
|
73
|
+
i.id = t, i.textContent = r, dn(n, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function mn(e) {
|
|
77
77
|
if (!e)
|
|
78
78
|
return document;
|
|
79
79
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -83,7 +83,7 @@ function gn(e) {
|
|
|
83
83
|
t
|
|
84
84
|
) : e.ownerDocument;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function dn(e, t) {
|
|
87
87
|
return E(
|
|
88
88
|
/** @type {Document} */
|
|
89
89
|
e.head || e,
|
|
@@ -93,10 +93,10 @@ function bn(e, t) {
|
|
|
93
93
|
function U(e, t, r) {
|
|
94
94
|
e.insertBefore(t, r || null);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function M(e) {
|
|
97
97
|
e.parentNode && e.parentNode.removeChild(e);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Ks(e, t) {
|
|
100
100
|
for (let r = 0; r < e.length; r += 1)
|
|
101
101
|
e[r] && e[r].d(t);
|
|
102
102
|
}
|
|
@@ -112,10 +112,10 @@ function V(e) {
|
|
|
112
112
|
function G() {
|
|
113
113
|
return V(" ");
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function pn() {
|
|
116
116
|
return V("");
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function gn(e, t, r, n) {
|
|
119
119
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
120
120
|
}
|
|
121
121
|
function x(e, t, r) {
|
|
@@ -125,17 +125,17 @@ function m(e, t, r) {
|
|
|
125
125
|
const n = t.toLowerCase();
|
|
126
126
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : x(e, t, r);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function bn(e) {
|
|
129
129
|
return Array.from(e.childNodes);
|
|
130
130
|
}
|
|
131
131
|
function ee(e, t) {
|
|
132
132
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
133
133
|
t);
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function eo(e, t) {
|
|
136
136
|
e.value = t == null ? "" : t;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function to(e, t, r) {
|
|
139
139
|
for (let n = 0; n < e.options.length; n += 1) {
|
|
140
140
|
const i = e.options[n];
|
|
141
141
|
if (i.__value === t) {
|
|
@@ -145,11 +145,11 @@ function no(e, t, r) {
|
|
|
145
145
|
}
|
|
146
146
|
(!r || t !== void 0) && (e.selectedIndex = -1);
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function ro(e) {
|
|
149
149
|
const t = e.querySelector(":checked");
|
|
150
150
|
return t && t.__value;
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function yn(e) {
|
|
153
153
|
const t = {};
|
|
154
154
|
return e.childNodes.forEach(
|
|
155
155
|
/** @param {Element} node */
|
|
@@ -158,26 +158,26 @@ function En(e) {
|
|
|
158
158
|
}
|
|
159
159
|
), t;
|
|
160
160
|
}
|
|
161
|
-
let
|
|
161
|
+
let de;
|
|
162
162
|
function me(e) {
|
|
163
|
-
|
|
163
|
+
de = e;
|
|
164
164
|
}
|
|
165
|
-
function
|
|
166
|
-
if (!
|
|
165
|
+
function vn() {
|
|
166
|
+
if (!de)
|
|
167
167
|
throw new Error("Function called outside component initialization");
|
|
168
|
-
return
|
|
168
|
+
return de;
|
|
169
169
|
}
|
|
170
|
-
function
|
|
171
|
-
|
|
170
|
+
function _n(e) {
|
|
171
|
+
vn().$$.on_mount.push(e);
|
|
172
172
|
}
|
|
173
173
|
const K = [], Ie = [];
|
|
174
174
|
let te = [];
|
|
175
|
-
const
|
|
176
|
-
let
|
|
177
|
-
function
|
|
178
|
-
|
|
175
|
+
const Mt = [], En = /* @__PURE__ */ Promise.resolve();
|
|
176
|
+
let Ye = !1;
|
|
177
|
+
function wn() {
|
|
178
|
+
Ye || (Ye = !0, En.then(P));
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function Ke(e) {
|
|
181
181
|
te.push(e);
|
|
182
182
|
}
|
|
183
183
|
const Xe = /* @__PURE__ */ new Set();
|
|
@@ -185,12 +185,12 @@ let Q = 0;
|
|
|
185
185
|
function P() {
|
|
186
186
|
if (Q !== 0)
|
|
187
187
|
return;
|
|
188
|
-
const e =
|
|
188
|
+
const e = de;
|
|
189
189
|
do {
|
|
190
190
|
try {
|
|
191
191
|
for (; Q < K.length; ) {
|
|
192
192
|
const t = K[Q];
|
|
193
|
-
Q++, me(t),
|
|
193
|
+
Q++, me(t), Sn(t.$$);
|
|
194
194
|
}
|
|
195
195
|
} catch (t) {
|
|
196
196
|
throw K.length = 0, Q = 0, t;
|
|
@@ -203,44 +203,44 @@ function P() {
|
|
|
203
203
|
}
|
|
204
204
|
te.length = 0;
|
|
205
205
|
} while (K.length);
|
|
206
|
-
for (;
|
|
207
|
-
|
|
208
|
-
|
|
206
|
+
for (; Mt.length; )
|
|
207
|
+
Mt.pop()();
|
|
208
|
+
Ye = !1, Xe.clear(), me(e);
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function Sn(e) {
|
|
211
211
|
if (e.fragment !== null) {
|
|
212
212
|
e.update(), be(e.before_update);
|
|
213
213
|
const t = e.dirty;
|
|
214
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
214
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ke);
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function xn(e) {
|
|
218
218
|
const t = [], r = [];
|
|
219
219
|
te.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), te = t;
|
|
220
220
|
}
|
|
221
|
-
const
|
|
222
|
-
function
|
|
223
|
-
e && e.i && (
|
|
221
|
+
const Tn = /* @__PURE__ */ new Set();
|
|
222
|
+
function Hn(e, t) {
|
|
223
|
+
e && e.i && (Tn.delete(e), e.i(t));
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function no(e) {
|
|
226
226
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function Bn(e, t, r) {
|
|
229
229
|
const { fragment: n, after_update: i } = e.$$;
|
|
230
|
-
n && n.m(t, r),
|
|
231
|
-
const s = e.$$.on_mount.map(
|
|
230
|
+
n && n.m(t, r), Ke(() => {
|
|
231
|
+
const s = e.$$.on_mount.map(fr).filter(mt);
|
|
232
232
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : be(s), e.$$.on_mount = [];
|
|
233
|
-
}), i.forEach(
|
|
233
|
+
}), i.forEach(Ke);
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function Pn(e, t) {
|
|
236
236
|
const r = e.$$;
|
|
237
|
-
r.fragment !== null && (
|
|
237
|
+
r.fragment !== null && (xn(r.after_update), be(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
238
238
|
}
|
|
239
|
-
function
|
|
240
|
-
e.$$.dirty[0] === -1 && (K.push(e),
|
|
239
|
+
function An(e, t) {
|
|
240
|
+
e.$$.dirty[0] === -1 && (K.push(e), wn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
241
241
|
}
|
|
242
|
-
function
|
|
243
|
-
const l =
|
|
242
|
+
function On(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
243
|
+
const l = de;
|
|
244
244
|
me(e);
|
|
245
245
|
const u = e.$$ = {
|
|
246
246
|
fragment: null,
|
|
@@ -249,7 +249,7 @@ function Rn(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
249
249
|
props: s,
|
|
250
250
|
update: k,
|
|
251
251
|
not_equal: i,
|
|
252
|
-
bound:
|
|
252
|
+
bound: Nt(),
|
|
253
253
|
// lifecycle
|
|
254
254
|
on_mount: [],
|
|
255
255
|
on_destroy: [],
|
|
@@ -258,28 +258,28 @@ function Rn(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
258
258
|
after_update: [],
|
|
259
259
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
260
260
|
// everything else
|
|
261
|
-
callbacks:
|
|
261
|
+
callbacks: Nt(),
|
|
262
262
|
dirty: a,
|
|
263
263
|
skip_bound: !1,
|
|
264
264
|
root: t.target || l.$$.root
|
|
265
265
|
};
|
|
266
266
|
o && o(u.root);
|
|
267
267
|
let h = !1;
|
|
268
|
-
if (u.ctx = r ? r(e, t.props || {}, (c,
|
|
269
|
-
const g = y.length ? y[0] :
|
|
270
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] = g) && (!u.skip_bound && u.bound[c] && u.bound[c](g), h &&
|
|
268
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, d, ...y) => {
|
|
269
|
+
const g = y.length ? y[0] : d;
|
|
270
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = g) && (!u.skip_bound && u.bound[c] && u.bound[c](g), h && An(e, c)), d;
|
|
271
271
|
}) : [], u.update(), h = !0, be(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
272
272
|
if (t.hydrate) {
|
|
273
|
-
const c =
|
|
274
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
273
|
+
const c = bn(t.target);
|
|
274
|
+
u.fragment && u.fragment.l(c), c.forEach(M);
|
|
275
275
|
} else
|
|
276
276
|
u.fragment && u.fragment.c();
|
|
277
|
-
t.intro &&
|
|
277
|
+
t.intro && Hn(e.$$.fragment), Bn(e, t.target, t.anchor), P();
|
|
278
278
|
}
|
|
279
279
|
me(l);
|
|
280
280
|
}
|
|
281
|
-
let
|
|
282
|
-
typeof HTMLElement == "function" && (
|
|
281
|
+
let dr;
|
|
282
|
+
typeof HTMLElement == "function" && (dr = class extends HTMLElement {
|
|
283
283
|
constructor(t, r, n) {
|
|
284
284
|
super();
|
|
285
285
|
/** The Svelte component constructor */
|
|
@@ -333,14 +333,14 @@ typeof HTMLElement == "function" && (gr = class extends HTMLElement {
|
|
|
333
333
|
U(u, o, h);
|
|
334
334
|
},
|
|
335
335
|
d: function(u) {
|
|
336
|
-
u &&
|
|
336
|
+
u && M(o);
|
|
337
337
|
}
|
|
338
338
|
};
|
|
339
339
|
};
|
|
340
340
|
};
|
|
341
341
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
342
342
|
return;
|
|
343
|
-
const r = {}, n =
|
|
343
|
+
const r = {}, n = yn(this);
|
|
344
344
|
for (const s of this.$$s)
|
|
345
345
|
s in n && (r[s] = [t(s)]);
|
|
346
346
|
for (const s of this.attributes) {
|
|
@@ -351,7 +351,7 @@ typeof HTMLElement == "function" && (gr = class extends HTMLElement {
|
|
|
351
351
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
352
352
|
this.$$c = new this.$$ctor({
|
|
353
353
|
target: this.shadowRoot || this,
|
|
354
|
-
props:
|
|
354
|
+
props: Lt(Rt({}, this.$$d), {
|
|
355
355
|
$$slots: r,
|
|
356
356
|
$$scope: {
|
|
357
357
|
ctx: []
|
|
@@ -429,8 +429,8 @@ function Pe(e, t, r, n) {
|
|
|
429
429
|
return t;
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
|
-
function
|
|
433
|
-
let o = class extends
|
|
432
|
+
function Cn(e, t, r, n, i, s) {
|
|
433
|
+
let o = class extends dr {
|
|
434
434
|
constructor() {
|
|
435
435
|
super(e, r, i), this.$$p_d = t;
|
|
436
436
|
}
|
|
@@ -460,7 +460,7 @@ function Ln(e, t, r, n, i, s) {
|
|
|
460
460
|
}), e.element = /** @type {any} */
|
|
461
461
|
o, o;
|
|
462
462
|
}
|
|
463
|
-
class
|
|
463
|
+
class In {
|
|
464
464
|
constructor() {
|
|
465
465
|
/**
|
|
466
466
|
* ### PRIVATE API
|
|
@@ -481,7 +481,7 @@ class Mn {
|
|
|
481
481
|
}
|
|
482
482
|
/** @returns {void} */
|
|
483
483
|
$destroy() {
|
|
484
|
-
|
|
484
|
+
Pn(this, 1), this.$destroy = k;
|
|
485
485
|
}
|
|
486
486
|
/**
|
|
487
487
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -490,7 +490,7 @@ class Mn {
|
|
|
490
490
|
* @returns {() => void}
|
|
491
491
|
*/
|
|
492
492
|
$on(t, r) {
|
|
493
|
-
if (!
|
|
493
|
+
if (!mt(r))
|
|
494
494
|
return k;
|
|
495
495
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
496
496
|
return n.push(r), () => {
|
|
@@ -503,11 +503,11 @@ class Mn {
|
|
|
503
503
|
* @returns {void}
|
|
504
504
|
*/
|
|
505
505
|
$set(t) {
|
|
506
|
-
this.$$set && !
|
|
506
|
+
this.$$set && !hn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
|
-
const
|
|
510
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
509
|
+
const Rn = "4";
|
|
510
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Rn);
|
|
511
511
|
/*! *****************************************************************************
|
|
512
512
|
Copyright (c) Microsoft Corporation.
|
|
513
513
|
|
|
@@ -522,18 +522,18 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
522
522
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
523
523
|
PERFORMANCE OF THIS SOFTWARE.
|
|
524
524
|
***************************************************************************** */
|
|
525
|
-
var
|
|
526
|
-
return
|
|
525
|
+
var et = function(e, t) {
|
|
526
|
+
return et = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
527
527
|
r.__proto__ = n;
|
|
528
528
|
} || function(r, n) {
|
|
529
529
|
for (var i in n)
|
|
530
530
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
531
|
-
},
|
|
531
|
+
}, et(e, t);
|
|
532
532
|
};
|
|
533
|
-
function
|
|
533
|
+
function W(e, t) {
|
|
534
534
|
if (typeof t != "function" && t !== null)
|
|
535
535
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
536
|
-
|
|
536
|
+
et(e, t);
|
|
537
537
|
function r() {
|
|
538
538
|
this.constructor = e;
|
|
539
539
|
}
|
|
@@ -549,7 +549,7 @@ var w = function() {
|
|
|
549
549
|
return t;
|
|
550
550
|
}, w.apply(this, arguments);
|
|
551
551
|
};
|
|
552
|
-
function
|
|
552
|
+
function Ln(e, t) {
|
|
553
553
|
var r = {};
|
|
554
554
|
for (var n in e)
|
|
555
555
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -558,7 +558,7 @@ function Dn(e, t) {
|
|
|
558
558
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
559
559
|
return r;
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function tt(e) {
|
|
562
562
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
563
563
|
if (r)
|
|
564
564
|
return r.call(e);
|
|
@@ -570,7 +570,7 @@ function rt(e) {
|
|
|
570
570
|
};
|
|
571
571
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
572
572
|
}
|
|
573
|
-
function
|
|
573
|
+
function rt(e, t) {
|
|
574
574
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
575
575
|
if (!r)
|
|
576
576
|
return e;
|
|
@@ -599,13 +599,13 @@ function re(e, t, r) {
|
|
|
599
599
|
function X(e) {
|
|
600
600
|
return typeof e == "function";
|
|
601
601
|
}
|
|
602
|
-
function
|
|
602
|
+
function pr(e) {
|
|
603
603
|
var t = function(n) {
|
|
604
604
|
Error.call(n), n.stack = new Error().stack;
|
|
605
605
|
}, r = e(t);
|
|
606
606
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
607
607
|
}
|
|
608
|
-
var
|
|
608
|
+
var We = pr(function(e) {
|
|
609
609
|
return function(r) {
|
|
610
610
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
611
611
|
` + r.map(function(n, i) {
|
|
@@ -614,13 +614,13 @@ var ze = br(function(e) {
|
|
|
614
614
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
615
615
|
};
|
|
616
616
|
});
|
|
617
|
-
function
|
|
617
|
+
function nt(e, t) {
|
|
618
618
|
if (e) {
|
|
619
619
|
var r = e.indexOf(t);
|
|
620
620
|
0 <= r && e.splice(r, 1);
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
|
-
var
|
|
623
|
+
var Ne = function() {
|
|
624
624
|
function e(t) {
|
|
625
625
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
626
626
|
}
|
|
@@ -632,12 +632,12 @@ var Me = function() {
|
|
|
632
632
|
if (o)
|
|
633
633
|
if (this._parentage = null, Array.isArray(o))
|
|
634
634
|
try {
|
|
635
|
-
for (var a =
|
|
635
|
+
for (var a = tt(o), l = a.next(); !l.done; l = a.next()) {
|
|
636
636
|
var u = l.value;
|
|
637
637
|
u.remove(this);
|
|
638
638
|
}
|
|
639
|
-
} catch (
|
|
640
|
-
t = { error:
|
|
639
|
+
} catch (p) {
|
|
640
|
+
t = { error: p };
|
|
641
641
|
} finally {
|
|
642
642
|
try {
|
|
643
643
|
l && !l.done && (r = a.return) && r.call(a);
|
|
@@ -652,26 +652,26 @@ var Me = function() {
|
|
|
652
652
|
if (X(h))
|
|
653
653
|
try {
|
|
654
654
|
h();
|
|
655
|
-
} catch (
|
|
656
|
-
s =
|
|
655
|
+
} catch (p) {
|
|
656
|
+
s = p instanceof We ? p.errors : [p];
|
|
657
657
|
}
|
|
658
658
|
var c = this._finalizers;
|
|
659
659
|
if (c) {
|
|
660
660
|
this._finalizers = null;
|
|
661
661
|
try {
|
|
662
|
-
for (var
|
|
662
|
+
for (var d = tt(c), y = d.next(); !y.done; y = d.next()) {
|
|
663
663
|
var g = y.value;
|
|
664
664
|
try {
|
|
665
|
-
|
|
666
|
-
} catch (
|
|
667
|
-
s = s != null ? s : [],
|
|
665
|
+
Dt(g);
|
|
666
|
+
} catch (p) {
|
|
667
|
+
s = s != null ? s : [], p instanceof We ? s = re(re([], rt(s)), rt(p.errors)) : s.push(p);
|
|
668
668
|
}
|
|
669
669
|
}
|
|
670
|
-
} catch (
|
|
671
|
-
n = { error:
|
|
670
|
+
} catch (p) {
|
|
671
|
+
n = { error: p };
|
|
672
672
|
} finally {
|
|
673
673
|
try {
|
|
674
|
-
y && !y.done && (i =
|
|
674
|
+
y && !y.done && (i = d.return) && i.call(d);
|
|
675
675
|
} finally {
|
|
676
676
|
if (n)
|
|
677
677
|
throw n.error;
|
|
@@ -679,13 +679,13 @@ var Me = function() {
|
|
|
679
679
|
}
|
|
680
680
|
}
|
|
681
681
|
if (s)
|
|
682
|
-
throw new
|
|
682
|
+
throw new We(s);
|
|
683
683
|
}
|
|
684
684
|
}, e.prototype.add = function(t) {
|
|
685
685
|
var r;
|
|
686
686
|
if (t && t !== this)
|
|
687
687
|
if (this.closed)
|
|
688
|
-
|
|
688
|
+
Dt(t);
|
|
689
689
|
else {
|
|
690
690
|
if (t instanceof e) {
|
|
691
691
|
if (t.closed || t._hasParent(this))
|
|
@@ -702,56 +702,56 @@ var Me = function() {
|
|
|
702
702
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
703
703
|
}, e.prototype._removeParent = function(t) {
|
|
704
704
|
var r = this._parentage;
|
|
705
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
705
|
+
r === t ? this._parentage = null : Array.isArray(r) && nt(r, t);
|
|
706
706
|
}, e.prototype.remove = function(t) {
|
|
707
707
|
var r = this._finalizers;
|
|
708
|
-
r &&
|
|
708
|
+
r && nt(r, t), t instanceof e && t._removeParent(this);
|
|
709
709
|
}, e.EMPTY = function() {
|
|
710
710
|
var t = new e();
|
|
711
711
|
return t.closed = !0, t;
|
|
712
712
|
}(), e;
|
|
713
|
-
}(),
|
|
714
|
-
function
|
|
715
|
-
return e instanceof
|
|
713
|
+
}(), gr = Ne.EMPTY;
|
|
714
|
+
function br(e) {
|
|
715
|
+
return e instanceof Ne || e && "closed" in e && X(e.remove) && X(e.add) && X(e.unsubscribe);
|
|
716
716
|
}
|
|
717
|
-
function
|
|
717
|
+
function Dt(e) {
|
|
718
718
|
X(e) ? e() : e.unsubscribe();
|
|
719
719
|
}
|
|
720
|
-
var
|
|
720
|
+
var Nn = {
|
|
721
721
|
onUnhandledError: null,
|
|
722
722
|
onStoppedNotification: null,
|
|
723
723
|
Promise: void 0,
|
|
724
724
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
725
725
|
useDeprecatedNextContext: !1
|
|
726
|
-
},
|
|
726
|
+
}, Mn = {
|
|
727
727
|
setTimeout: function(e, t) {
|
|
728
728
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
729
729
|
r[n - 2] = arguments[n];
|
|
730
|
-
return setTimeout.apply(void 0, re([e, t],
|
|
730
|
+
return setTimeout.apply(void 0, re([e, t], rt(r)));
|
|
731
731
|
},
|
|
732
732
|
clearTimeout: function(e) {
|
|
733
733
|
return clearTimeout(e);
|
|
734
734
|
},
|
|
735
735
|
delegate: void 0
|
|
736
736
|
};
|
|
737
|
-
function
|
|
738
|
-
|
|
737
|
+
function Dn(e) {
|
|
738
|
+
Mn.setTimeout(function() {
|
|
739
739
|
throw e;
|
|
740
740
|
});
|
|
741
741
|
}
|
|
742
|
-
function
|
|
742
|
+
function Ft() {
|
|
743
743
|
}
|
|
744
744
|
function Ae(e) {
|
|
745
745
|
e();
|
|
746
746
|
}
|
|
747
|
-
var
|
|
748
|
-
|
|
747
|
+
var yr = function(e) {
|
|
748
|
+
W(t, e);
|
|
749
749
|
function t(r) {
|
|
750
750
|
var n = e.call(this) || this;
|
|
751
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
751
|
+
return n.isStopped = !1, r ? (n.destination = r, br(r) && r.add(n)) : n.destination = Gn, n;
|
|
752
752
|
}
|
|
753
753
|
return t.create = function(r, n, i) {
|
|
754
|
-
return new
|
|
754
|
+
return new it(r, n, i);
|
|
755
755
|
}, t.prototype.next = function(r) {
|
|
756
756
|
this.isStopped || this._next(r);
|
|
757
757
|
}, t.prototype.error = function(r) {
|
|
@@ -775,11 +775,7 @@ var Er = function(e) {
|
|
|
775
775
|
this.unsubscribe();
|
|
776
776
|
}
|
|
777
777
|
}, t;
|
|
778
|
-
}(
|
|
779
|
-
function We(e, t) {
|
|
780
|
-
return Gn.call(e, t);
|
|
781
|
-
}
|
|
782
|
-
var kn = function() {
|
|
778
|
+
}(Ne), Fn = function() {
|
|
783
779
|
function e(t) {
|
|
784
780
|
this.partialObserver = t;
|
|
785
781
|
}
|
|
@@ -810,55 +806,43 @@ var kn = function() {
|
|
|
810
806
|
He(r);
|
|
811
807
|
}
|
|
812
808
|
}, e;
|
|
813
|
-
}(),
|
|
814
|
-
|
|
809
|
+
}(), it = function(e) {
|
|
810
|
+
W(t, e);
|
|
815
811
|
function t(r, n, i) {
|
|
816
812
|
var s = e.call(this) || this, o;
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
};
|
|
823
|
-
else {
|
|
824
|
-
var a;
|
|
825
|
-
s && _r.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
826
|
-
return s.unsubscribe();
|
|
827
|
-
}, o = {
|
|
828
|
-
next: r.next && We(r.next, a),
|
|
829
|
-
error: r.error && We(r.error, a),
|
|
830
|
-
complete: r.complete && We(r.complete, a)
|
|
831
|
-
}) : o = r;
|
|
832
|
-
}
|
|
833
|
-
return s.destination = new kn(o), s;
|
|
813
|
+
return X(r) || !r ? o = {
|
|
814
|
+
next: r != null ? r : void 0,
|
|
815
|
+
error: n != null ? n : void 0,
|
|
816
|
+
complete: i != null ? i : void 0
|
|
817
|
+
} : o = r, s.destination = new Fn(o), s;
|
|
834
818
|
}
|
|
835
819
|
return t;
|
|
836
|
-
}(
|
|
820
|
+
}(yr);
|
|
837
821
|
function He(e) {
|
|
838
|
-
|
|
822
|
+
Dn(e);
|
|
839
823
|
}
|
|
840
|
-
function
|
|
824
|
+
function Un(e) {
|
|
841
825
|
throw e;
|
|
842
826
|
}
|
|
843
|
-
var
|
|
827
|
+
var Gn = {
|
|
844
828
|
closed: !0,
|
|
845
|
-
next:
|
|
846
|
-
error:
|
|
847
|
-
complete:
|
|
848
|
-
},
|
|
829
|
+
next: Ft,
|
|
830
|
+
error: Un,
|
|
831
|
+
complete: Ft
|
|
832
|
+
}, kn = function() {
|
|
849
833
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
850
834
|
}();
|
|
851
|
-
function
|
|
835
|
+
function jn(e) {
|
|
852
836
|
return e;
|
|
853
837
|
}
|
|
854
|
-
function
|
|
855
|
-
return e.length === 0 ?
|
|
838
|
+
function $n(e) {
|
|
839
|
+
return e.length === 0 ? jn : e.length === 1 ? e[0] : function(r) {
|
|
856
840
|
return e.reduce(function(n, i) {
|
|
857
841
|
return i(n);
|
|
858
842
|
}, r);
|
|
859
843
|
};
|
|
860
844
|
}
|
|
861
|
-
var
|
|
845
|
+
var Ut = function() {
|
|
862
846
|
function e(t) {
|
|
863
847
|
t && (this._subscribe = t);
|
|
864
848
|
}
|
|
@@ -866,7 +850,7 @@ var kt = function() {
|
|
|
866
850
|
var r = new e();
|
|
867
851
|
return r.source = this, r.operator = t, r;
|
|
868
852
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
869
|
-
var i = this, s =
|
|
853
|
+
var i = this, s = Xn(t) ? t : new it(t, r, n);
|
|
870
854
|
return Ae(function() {
|
|
871
855
|
var o = i, a = o.operator, l = o.source;
|
|
872
856
|
s.add(a ? a.call(s, l) : l ? i._subscribe(s) : i._trySubscribe(s));
|
|
@@ -879,8 +863,8 @@ var kt = function() {
|
|
|
879
863
|
}
|
|
880
864
|
}, e.prototype.forEach = function(t, r) {
|
|
881
865
|
var n = this;
|
|
882
|
-
return r =
|
|
883
|
-
var o = new
|
|
866
|
+
return r = Gt(r), new r(function(i, s) {
|
|
867
|
+
var o = new it({
|
|
884
868
|
next: function(a) {
|
|
885
869
|
try {
|
|
886
870
|
t(a);
|
|
@@ -896,15 +880,15 @@ var kt = function() {
|
|
|
896
880
|
}, e.prototype._subscribe = function(t) {
|
|
897
881
|
var r;
|
|
898
882
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
899
|
-
}, e.prototype[
|
|
883
|
+
}, e.prototype[kn] = function() {
|
|
900
884
|
return this;
|
|
901
885
|
}, e.prototype.pipe = function() {
|
|
902
886
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
903
887
|
t[r] = arguments[r];
|
|
904
|
-
return
|
|
888
|
+
return $n(t)(this);
|
|
905
889
|
}, e.prototype.toPromise = function(t) {
|
|
906
890
|
var r = this;
|
|
907
|
-
return t =
|
|
891
|
+
return t = Gt(t), new t(function(n, i) {
|
|
908
892
|
var s;
|
|
909
893
|
r.subscribe(function(o) {
|
|
910
894
|
return s = o;
|
|
@@ -918,32 +902,32 @@ var kt = function() {
|
|
|
918
902
|
return new e(t);
|
|
919
903
|
}, e;
|
|
920
904
|
}();
|
|
921
|
-
function
|
|
905
|
+
function Gt(e) {
|
|
922
906
|
var t;
|
|
923
|
-
return (t = e != null ? e :
|
|
907
|
+
return (t = e != null ? e : Nn.Promise) !== null && t !== void 0 ? t : Promise;
|
|
924
908
|
}
|
|
925
|
-
function
|
|
909
|
+
function Vn(e) {
|
|
926
910
|
return e && X(e.next) && X(e.error) && X(e.complete);
|
|
927
911
|
}
|
|
928
|
-
function
|
|
929
|
-
return e && e instanceof
|
|
912
|
+
function Xn(e) {
|
|
913
|
+
return e && e instanceof yr || Vn(e) && br(e);
|
|
930
914
|
}
|
|
931
|
-
var
|
|
915
|
+
var Wn = pr(function(e) {
|
|
932
916
|
return function() {
|
|
933
917
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
934
918
|
};
|
|
935
|
-
}),
|
|
936
|
-
|
|
919
|
+
}), vr = function(e) {
|
|
920
|
+
W(t, e);
|
|
937
921
|
function t() {
|
|
938
922
|
var r = e.call(this) || this;
|
|
939
923
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
940
924
|
}
|
|
941
925
|
return t.prototype.lift = function(r) {
|
|
942
|
-
var n = new
|
|
926
|
+
var n = new kt(this, this);
|
|
943
927
|
return n.operator = r, n;
|
|
944
928
|
}, t.prototype._throwIfClosed = function() {
|
|
945
929
|
if (this.closed)
|
|
946
|
-
throw new
|
|
930
|
+
throw new Wn();
|
|
947
931
|
}, t.prototype.next = function(r) {
|
|
948
932
|
var n = this;
|
|
949
933
|
Ae(function() {
|
|
@@ -951,7 +935,7 @@ var Jn = br(function(e) {
|
|
|
951
935
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
952
936
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
953
937
|
try {
|
|
954
|
-
for (var o =
|
|
938
|
+
for (var o = tt(n.currentObservers), a = o.next(); !a.done; a = o.next()) {
|
|
955
939
|
var l = a.value;
|
|
956
940
|
l.next(r);
|
|
957
941
|
}
|
|
@@ -1000,20 +984,20 @@ var Jn = br(function(e) {
|
|
|
1000
984
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
1001
985
|
}, t.prototype._innerSubscribe = function(r) {
|
|
1002
986
|
var n = this, i = this, s = i.hasError, o = i.isStopped, a = i.observers;
|
|
1003
|
-
return s || o ?
|
|
1004
|
-
n.currentObservers = null,
|
|
987
|
+
return s || o ? gr : (this.currentObservers = null, a.push(r), new Ne(function() {
|
|
988
|
+
n.currentObservers = null, nt(a, r);
|
|
1005
989
|
}));
|
|
1006
990
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
1007
991
|
var n = this, i = n.hasError, s = n.thrownError, o = n.isStopped;
|
|
1008
992
|
i ? r.error(s) : o && r.complete();
|
|
1009
993
|
}, t.prototype.asObservable = function() {
|
|
1010
|
-
var r = new
|
|
994
|
+
var r = new Ut();
|
|
1011
995
|
return r.source = this, r;
|
|
1012
996
|
}, t.create = function(r, n) {
|
|
1013
|
-
return new
|
|
997
|
+
return new kt(r, n);
|
|
1014
998
|
}, t;
|
|
1015
|
-
}(
|
|
1016
|
-
|
|
999
|
+
}(Ut), kt = function(e) {
|
|
1000
|
+
W(t, e);
|
|
1017
1001
|
function t(r, n) {
|
|
1018
1002
|
var i = e.call(this) || this;
|
|
1019
1003
|
return i.destination = r, i.source = n, i;
|
|
@@ -1029,17 +1013,17 @@ var Jn = br(function(e) {
|
|
|
1029
1013
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1030
1014
|
}, t.prototype._subscribe = function(r) {
|
|
1031
1015
|
var n, i;
|
|
1032
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1016
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : gr;
|
|
1033
1017
|
}, t;
|
|
1034
|
-
}(
|
|
1018
|
+
}(vr), _r = {
|
|
1035
1019
|
now: function() {
|
|
1036
|
-
return (
|
|
1020
|
+
return (_r.delegate || Date).now();
|
|
1037
1021
|
},
|
|
1038
1022
|
delegate: void 0
|
|
1039
|
-
},
|
|
1040
|
-
|
|
1023
|
+
}, zn = function(e) {
|
|
1024
|
+
W(t, e);
|
|
1041
1025
|
function t(r, n, i) {
|
|
1042
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1026
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = _r);
|
|
1043
1027
|
var s = e.call(this) || this;
|
|
1044
1028
|
return s._bufferSize = r, s._windowTime = n, s._timestampProvider = i, s._buffer = [], s._infiniteTimeWindow = !0, s._infiniteTimeWindow = n === 1 / 0, s._bufferSize = Math.max(1, r), s._windowTime = Math.max(1, n), s;
|
|
1045
1029
|
}
|
|
@@ -1059,24 +1043,24 @@ var Jn = br(function(e) {
|
|
|
1059
1043
|
u && s.splice(0, u + 1);
|
|
1060
1044
|
}
|
|
1061
1045
|
}, t;
|
|
1062
|
-
}(
|
|
1063
|
-
const
|
|
1064
|
-
if (
|
|
1065
|
-
const r = new
|
|
1066
|
-
|
|
1046
|
+
}(vr);
|
|
1047
|
+
const jt = [], $t = {}, Zn = (e, t = 0) => {
|
|
1048
|
+
if (jt.indexOf(e) == -1) {
|
|
1049
|
+
const r = new zn(t);
|
|
1050
|
+
$t[e] = r, jt.push(e);
|
|
1067
1051
|
}
|
|
1068
|
-
return
|
|
1052
|
+
return $t[e];
|
|
1069
1053
|
}, Y = [];
|
|
1070
|
-
function
|
|
1054
|
+
function Jn(e, t) {
|
|
1071
1055
|
return {
|
|
1072
|
-
subscribe:
|
|
1056
|
+
subscribe: Me(e, t).subscribe
|
|
1073
1057
|
};
|
|
1074
1058
|
}
|
|
1075
|
-
function
|
|
1059
|
+
function Me(e, t = k) {
|
|
1076
1060
|
let r;
|
|
1077
1061
|
const n = /* @__PURE__ */ new Set();
|
|
1078
1062
|
function i(a) {
|
|
1079
|
-
if (
|
|
1063
|
+
if (cr(e, a) && (e = a, r)) {
|
|
1080
1064
|
const l = !Y.length;
|
|
1081
1065
|
for (const u of n)
|
|
1082
1066
|
u[1](), Y.push(u, e);
|
|
@@ -1103,96 +1087,96 @@ function ae(e, t, r) {
|
|
|
1103
1087
|
if (!i.every(Boolean))
|
|
1104
1088
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1105
1089
|
const s = t.length < 2;
|
|
1106
|
-
return
|
|
1090
|
+
return Jn(r, (o, a) => {
|
|
1107
1091
|
let l = !1;
|
|
1108
1092
|
const u = [];
|
|
1109
1093
|
let h = 0, c = k;
|
|
1110
|
-
const
|
|
1094
|
+
const d = () => {
|
|
1111
1095
|
if (h)
|
|
1112
1096
|
return;
|
|
1113
1097
|
c();
|
|
1114
1098
|
const g = t(n ? u[0] : u, o, a);
|
|
1115
|
-
s ? o(g) : c =
|
|
1099
|
+
s ? o(g) : c = mt(g) ? g : k;
|
|
1116
1100
|
}, y = i.map(
|
|
1117
|
-
(g,
|
|
1101
|
+
(g, p) => mr(
|
|
1118
1102
|
g,
|
|
1119
1103
|
(b) => {
|
|
1120
|
-
u[
|
|
1104
|
+
u[p] = b, h &= ~(1 << p), l && d();
|
|
1121
1105
|
},
|
|
1122
1106
|
() => {
|
|
1123
|
-
h |= 1 <<
|
|
1107
|
+
h |= 1 << p;
|
|
1124
1108
|
}
|
|
1125
1109
|
)
|
|
1126
1110
|
);
|
|
1127
|
-
return l = !0,
|
|
1111
|
+
return l = !0, d(), function() {
|
|
1128
1112
|
be(y), c(), l = !1;
|
|
1129
1113
|
};
|
|
1130
1114
|
});
|
|
1131
1115
|
}
|
|
1132
|
-
function
|
|
1133
|
-
return e
|
|
1116
|
+
function qn(e) {
|
|
1117
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1134
1118
|
}
|
|
1135
|
-
var
|
|
1136
|
-
return
|
|
1119
|
+
var Qn = function(t) {
|
|
1120
|
+
return Yn(t) && !Kn(t);
|
|
1137
1121
|
};
|
|
1138
|
-
function
|
|
1122
|
+
function Yn(e) {
|
|
1139
1123
|
return !!e && typeof e == "object";
|
|
1140
1124
|
}
|
|
1141
|
-
function
|
|
1125
|
+
function Kn(e) {
|
|
1142
1126
|
var t = Object.prototype.toString.call(e);
|
|
1143
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1127
|
+
return t === "[object RegExp]" || t === "[object Date]" || ri(e);
|
|
1144
1128
|
}
|
|
1145
|
-
var
|
|
1146
|
-
function
|
|
1147
|
-
return e.$$typeof ===
|
|
1129
|
+
var ei = typeof Symbol == "function" && Symbol.for, ti = ei ? Symbol.for("react.element") : 60103;
|
|
1130
|
+
function ri(e) {
|
|
1131
|
+
return e.$$typeof === ti;
|
|
1148
1132
|
}
|
|
1149
|
-
function
|
|
1133
|
+
function ni(e) {
|
|
1150
1134
|
return Array.isArray(e) ? [] : {};
|
|
1151
1135
|
}
|
|
1152
|
-
function
|
|
1153
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? ne(
|
|
1136
|
+
function pe(e, t) {
|
|
1137
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ne(ni(e), e, t) : e;
|
|
1154
1138
|
}
|
|
1155
|
-
function
|
|
1139
|
+
function ii(e, t, r) {
|
|
1156
1140
|
return e.concat(t).map(function(n) {
|
|
1157
|
-
return
|
|
1141
|
+
return pe(n, r);
|
|
1158
1142
|
});
|
|
1159
1143
|
}
|
|
1160
|
-
function
|
|
1144
|
+
function si(e, t) {
|
|
1161
1145
|
if (!t.customMerge)
|
|
1162
1146
|
return ne;
|
|
1163
1147
|
var r = t.customMerge(e);
|
|
1164
1148
|
return typeof r == "function" ? r : ne;
|
|
1165
1149
|
}
|
|
1166
|
-
function
|
|
1150
|
+
function oi(e) {
|
|
1167
1151
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1168
1152
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1169
1153
|
}) : [];
|
|
1170
1154
|
}
|
|
1171
|
-
function
|
|
1172
|
-
return Object.keys(e).concat(
|
|
1155
|
+
function Vt(e) {
|
|
1156
|
+
return Object.keys(e).concat(oi(e));
|
|
1173
1157
|
}
|
|
1174
|
-
function
|
|
1158
|
+
function Er(e, t) {
|
|
1175
1159
|
try {
|
|
1176
1160
|
return t in e;
|
|
1177
1161
|
} catch (r) {
|
|
1178
1162
|
return !1;
|
|
1179
1163
|
}
|
|
1180
1164
|
}
|
|
1181
|
-
function
|
|
1182
|
-
return
|
|
1165
|
+
function ai(e, t) {
|
|
1166
|
+
return Er(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1183
1167
|
}
|
|
1184
|
-
function
|
|
1168
|
+
function ui(e, t, r) {
|
|
1185
1169
|
var n = {};
|
|
1186
|
-
return r.isMergeableObject(e) &&
|
|
1187
|
-
n[i] =
|
|
1188
|
-
}),
|
|
1189
|
-
|
|
1170
|
+
return r.isMergeableObject(e) && Vt(e).forEach(function(i) {
|
|
1171
|
+
n[i] = pe(e[i], r);
|
|
1172
|
+
}), Vt(t).forEach(function(i) {
|
|
1173
|
+
ai(e, i) || (Er(e, i) && r.isMergeableObject(t[i]) ? n[i] = si(i, r)(e[i], t[i], r) : n[i] = pe(t[i], r));
|
|
1190
1174
|
}), n;
|
|
1191
1175
|
}
|
|
1192
1176
|
function ne(e, t, r) {
|
|
1193
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1177
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || ii, r.isMergeableObject = r.isMergeableObject || Qn, r.cloneUnlessOtherwiseSpecified = pe;
|
|
1194
1178
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
1195
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
1179
|
+
return s ? n ? r.arrayMerge(e, t, r) : ui(e, t, r) : pe(t, r);
|
|
1196
1180
|
}
|
|
1197
1181
|
ne.all = function(t, r) {
|
|
1198
1182
|
if (!Array.isArray(t))
|
|
@@ -1201,58 +1185,60 @@ ne.all = function(t, r) {
|
|
|
1201
1185
|
return ne(n, i, r);
|
|
1202
1186
|
}, {});
|
|
1203
1187
|
};
|
|
1204
|
-
var
|
|
1205
|
-
const
|
|
1206
|
-
function
|
|
1207
|
-
var r = t && t.cache ? t.cache :
|
|
1188
|
+
var li = ne, hi = li;
|
|
1189
|
+
const fi = /* @__PURE__ */ qn(hi);
|
|
1190
|
+
function ze(e, t) {
|
|
1191
|
+
var r = t && t.cache ? t.cache : yi, n = t && t.serializer ? t.serializer : gi, i = t && t.strategy ? t.strategy : mi;
|
|
1208
1192
|
return i(e, {
|
|
1209
1193
|
cache: r,
|
|
1210
1194
|
serializer: n
|
|
1211
1195
|
});
|
|
1212
1196
|
}
|
|
1213
|
-
function
|
|
1197
|
+
function ci(e) {
|
|
1214
1198
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1215
1199
|
}
|
|
1216
|
-
function
|
|
1217
|
-
var i =
|
|
1200
|
+
function wr(e, t, r, n) {
|
|
1201
|
+
var i = ci(n) ? n : r(n), s = t.get(i);
|
|
1218
1202
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
1219
1203
|
}
|
|
1220
|
-
function
|
|
1204
|
+
function Sr(e, t, r) {
|
|
1221
1205
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
1222
1206
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
1223
1207
|
}
|
|
1224
1208
|
function dt(e, t, r, n, i) {
|
|
1225
1209
|
return r.bind(t, e, n, i);
|
|
1226
1210
|
}
|
|
1227
|
-
function
|
|
1228
|
-
var r = e.length === 1 ?
|
|
1211
|
+
function mi(e, t) {
|
|
1212
|
+
var r = e.length === 1 ? wr : Sr;
|
|
1229
1213
|
return dt(e, this, r, t.cache.create(), t.serializer);
|
|
1230
1214
|
}
|
|
1231
|
-
function
|
|
1232
|
-
return dt(e, this,
|
|
1215
|
+
function di(e, t) {
|
|
1216
|
+
return dt(e, this, Sr, t.cache.create(), t.serializer);
|
|
1233
1217
|
}
|
|
1234
|
-
function
|
|
1235
|
-
return dt(e, this,
|
|
1218
|
+
function pi(e, t) {
|
|
1219
|
+
return dt(e, this, wr, t.cache.create(), t.serializer);
|
|
1236
1220
|
}
|
|
1237
|
-
var
|
|
1221
|
+
var gi = function() {
|
|
1238
1222
|
return JSON.stringify(arguments);
|
|
1239
|
-
}
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1223
|
+
}, bi = (
|
|
1224
|
+
/** @class */
|
|
1225
|
+
function() {
|
|
1226
|
+
function e() {
|
|
1227
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1228
|
+
}
|
|
1229
|
+
return e.prototype.get = function(t) {
|
|
1230
|
+
return this.cache[t];
|
|
1231
|
+
}, e.prototype.set = function(t, r) {
|
|
1232
|
+
this.cache[t] = r;
|
|
1233
|
+
}, e;
|
|
1234
|
+
}()
|
|
1235
|
+
), yi = {
|
|
1250
1236
|
create: function() {
|
|
1251
|
-
return new
|
|
1237
|
+
return new bi();
|
|
1252
1238
|
}
|
|
1253
|
-
},
|
|
1254
|
-
variadic:
|
|
1255
|
-
monadic:
|
|
1239
|
+
}, Ze = {
|
|
1240
|
+
variadic: di,
|
|
1241
|
+
monadic: pi
|
|
1256
1242
|
}, v;
|
|
1257
1243
|
(function(e) {
|
|
1258
1244
|
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";
|
|
@@ -1265,43 +1251,43 @@ var ie;
|
|
|
1265
1251
|
(function(e) {
|
|
1266
1252
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1267
1253
|
})(ie || (ie = {}));
|
|
1268
|
-
function
|
|
1254
|
+
function Xt(e) {
|
|
1269
1255
|
return e.type === T.literal;
|
|
1270
1256
|
}
|
|
1271
|
-
function
|
|
1257
|
+
function vi(e) {
|
|
1272
1258
|
return e.type === T.argument;
|
|
1273
1259
|
}
|
|
1274
|
-
function
|
|
1260
|
+
function xr(e) {
|
|
1275
1261
|
return e.type === T.number;
|
|
1276
1262
|
}
|
|
1277
|
-
function
|
|
1263
|
+
function Tr(e) {
|
|
1278
1264
|
return e.type === T.date;
|
|
1279
1265
|
}
|
|
1280
|
-
function
|
|
1266
|
+
function Hr(e) {
|
|
1281
1267
|
return e.type === T.time;
|
|
1282
1268
|
}
|
|
1283
|
-
function
|
|
1269
|
+
function Br(e) {
|
|
1284
1270
|
return e.type === T.select;
|
|
1285
1271
|
}
|
|
1286
|
-
function
|
|
1272
|
+
function Pr(e) {
|
|
1287
1273
|
return e.type === T.plural;
|
|
1288
1274
|
}
|
|
1289
|
-
function
|
|
1275
|
+
function _i(e) {
|
|
1290
1276
|
return e.type === T.pound;
|
|
1291
1277
|
}
|
|
1292
|
-
function
|
|
1278
|
+
function Ar(e) {
|
|
1293
1279
|
return e.type === T.tag;
|
|
1294
1280
|
}
|
|
1295
|
-
function
|
|
1281
|
+
function Or(e) {
|
|
1296
1282
|
return !!(e && typeof e == "object" && e.type === ie.number);
|
|
1297
1283
|
}
|
|
1298
|
-
function
|
|
1284
|
+
function st(e) {
|
|
1299
1285
|
return !!(e && typeof e == "object" && e.type === ie.dateTime);
|
|
1300
1286
|
}
|
|
1301
|
-
var
|
|
1302
|
-
function
|
|
1287
|
+
var Cr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ei = /(?:[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;
|
|
1288
|
+
function wi(e) {
|
|
1303
1289
|
var t = {};
|
|
1304
|
-
return e.replace(
|
|
1290
|
+
return e.replace(Ei, function(r) {
|
|
1305
1291
|
var n = r.length;
|
|
1306
1292
|
switch (r[0]) {
|
|
1307
1293
|
case "G":
|
|
@@ -1390,12 +1376,12 @@ function xi(e) {
|
|
|
1390
1376
|
return "";
|
|
1391
1377
|
}), t;
|
|
1392
1378
|
}
|
|
1393
|
-
var
|
|
1394
|
-
function
|
|
1379
|
+
var Si = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1380
|
+
function xi(e) {
|
|
1395
1381
|
if (e.length === 0)
|
|
1396
1382
|
throw new Error("Number skeleton cannot be empty");
|
|
1397
|
-
for (var t = e.split(
|
|
1398
|
-
return
|
|
1383
|
+
for (var t = e.split(Si).filter(function(d) {
|
|
1384
|
+
return d.length > 0;
|
|
1399
1385
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1400
1386
|
var s = i[n], o = s.split("/");
|
|
1401
1387
|
if (o.length === 0)
|
|
@@ -1409,17 +1395,17 @@ function Hi(e) {
|
|
|
1409
1395
|
}
|
|
1410
1396
|
return r;
|
|
1411
1397
|
}
|
|
1412
|
-
function
|
|
1398
|
+
function Ti(e) {
|
|
1413
1399
|
return e.replace(/^(.*?)-/, "");
|
|
1414
1400
|
}
|
|
1415
|
-
var
|
|
1416
|
-
function
|
|
1401
|
+
var Wt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ir = /^(@+)?(\+|#+)?[rs]?$/g, Hi = /(\*)(0+)|(#+)(0+)|(0+)/g, Rr = /^(0+)$/;
|
|
1402
|
+
function zt(e) {
|
|
1417
1403
|
var t = {};
|
|
1418
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1404
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ir, function(r, n, i) {
|
|
1419
1405
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1420
1406
|
}), t;
|
|
1421
1407
|
}
|
|
1422
|
-
function
|
|
1408
|
+
function Lr(e) {
|
|
1423
1409
|
switch (e) {
|
|
1424
1410
|
case "sign-auto":
|
|
1425
1411
|
return {
|
|
@@ -1459,7 +1445,7 @@ function Dr(e) {
|
|
|
1459
1445
|
};
|
|
1460
1446
|
}
|
|
1461
1447
|
}
|
|
1462
|
-
function
|
|
1448
|
+
function Bi(e) {
|
|
1463
1449
|
var t;
|
|
1464
1450
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1465
1451
|
notation: "engineering"
|
|
@@ -1467,17 +1453,17 @@ function Ai(e) {
|
|
|
1467
1453
|
notation: "scientific"
|
|
1468
1454
|
}, e = e.slice(1)), t) {
|
|
1469
1455
|
var r = e.slice(0, 2);
|
|
1470
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1456
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Rr.test(e))
|
|
1471
1457
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1472
1458
|
t.minimumIntegerDigits = e.length;
|
|
1473
1459
|
}
|
|
1474
1460
|
return t;
|
|
1475
1461
|
}
|
|
1476
|
-
function
|
|
1477
|
-
var t = {}, r =
|
|
1462
|
+
function Zt(e) {
|
|
1463
|
+
var t = {}, r = Lr(e);
|
|
1478
1464
|
return r || t;
|
|
1479
1465
|
}
|
|
1480
|
-
function
|
|
1466
|
+
function Pi(e) {
|
|
1481
1467
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1482
1468
|
var i = n[r];
|
|
1483
1469
|
switch (i.stem) {
|
|
@@ -1501,7 +1487,7 @@ function Oi(e) {
|
|
|
1501
1487
|
continue;
|
|
1502
1488
|
case "measure-unit":
|
|
1503
1489
|
case "unit":
|
|
1504
|
-
t.style = "unit", t.unit =
|
|
1490
|
+
t.style = "unit", t.unit = Ti(i.options[0]);
|
|
1505
1491
|
continue;
|
|
1506
1492
|
case "compact-short":
|
|
1507
1493
|
case "K":
|
|
@@ -1513,12 +1499,12 @@ function Oi(e) {
|
|
|
1513
1499
|
continue;
|
|
1514
1500
|
case "scientific":
|
|
1515
1501
|
t = w(w(w({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1516
|
-
return w(w({}, l),
|
|
1502
|
+
return w(w({}, l), Zt(u));
|
|
1517
1503
|
}, {}));
|
|
1518
1504
|
continue;
|
|
1519
1505
|
case "engineering":
|
|
1520
1506
|
t = w(w(w({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1521
|
-
return w(w({}, l),
|
|
1507
|
+
return w(w({}, l), Zt(u));
|
|
1522
1508
|
}, {}));
|
|
1523
1509
|
continue;
|
|
1524
1510
|
case "notation-simple":
|
|
@@ -1563,11 +1549,11 @@ function Oi(e) {
|
|
|
1563
1549
|
case "integer-width":
|
|
1564
1550
|
if (i.options.length > 1)
|
|
1565
1551
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1566
|
-
i.options[0].replace(
|
|
1552
|
+
i.options[0].replace(Hi, function(l, u, h, c, d, y) {
|
|
1567
1553
|
if (u)
|
|
1568
1554
|
t.minimumIntegerDigits = h.length;
|
|
1569
1555
|
else {
|
|
1570
|
-
if (c &&
|
|
1556
|
+
if (c && d)
|
|
1571
1557
|
throw new Error("We currently do not support maximum integer digits");
|
|
1572
1558
|
if (y)
|
|
1573
1559
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1576,27 +1562,27 @@ function Oi(e) {
|
|
|
1576
1562
|
});
|
|
1577
1563
|
continue;
|
|
1578
1564
|
}
|
|
1579
|
-
if (
|
|
1565
|
+
if (Rr.test(i.stem)) {
|
|
1580
1566
|
t.minimumIntegerDigits = i.stem.length;
|
|
1581
1567
|
continue;
|
|
1582
1568
|
}
|
|
1583
|
-
if (
|
|
1569
|
+
if (Wt.test(i.stem)) {
|
|
1584
1570
|
if (i.options.length > 1)
|
|
1585
1571
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1586
|
-
i.stem.replace(
|
|
1587
|
-
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length :
|
|
1572
|
+
i.stem.replace(Wt, function(l, u, h, c, d, y) {
|
|
1573
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : d && y ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + y.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1588
1574
|
});
|
|
1589
1575
|
var s = i.options[0];
|
|
1590
|
-
s === "w" ? t = w(w({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = w(w({}, t),
|
|
1576
|
+
s === "w" ? t = w(w({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = w(w({}, t), zt(s)));
|
|
1591
1577
|
continue;
|
|
1592
1578
|
}
|
|
1593
|
-
if (
|
|
1594
|
-
t = w(w({}, t),
|
|
1579
|
+
if (Ir.test(i.stem)) {
|
|
1580
|
+
t = w(w({}, t), zt(i.stem));
|
|
1595
1581
|
continue;
|
|
1596
1582
|
}
|
|
1597
|
-
var o =
|
|
1583
|
+
var o = Lr(i.stem);
|
|
1598
1584
|
o && (t = w(w({}, t), o));
|
|
1599
|
-
var a =
|
|
1585
|
+
var a = Bi(i.stem);
|
|
1600
1586
|
a && (t = w(w({}, t), a));
|
|
1601
1587
|
}
|
|
1602
1588
|
return t;
|
|
@@ -3016,13 +3002,13 @@ var Be = {
|
|
|
3016
3002
|
"h"
|
|
3017
3003
|
]
|
|
3018
3004
|
};
|
|
3019
|
-
function
|
|
3005
|
+
function Ai(e, t) {
|
|
3020
3006
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3021
3007
|
var i = e.charAt(n);
|
|
3022
3008
|
if (i === "j") {
|
|
3023
3009
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3024
3010
|
s++, n++;
|
|
3025
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", u =
|
|
3011
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = Oi(t);
|
|
3026
3012
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3027
3013
|
r += l;
|
|
3028
3014
|
for (; o-- > 0; )
|
|
@@ -3032,7 +3018,7 @@ function Ci(e, t) {
|
|
|
3032
3018
|
}
|
|
3033
3019
|
return r;
|
|
3034
3020
|
}
|
|
3035
|
-
function
|
|
3021
|
+
function Oi(e) {
|
|
3036
3022
|
var t = e.hourCycle;
|
|
3037
3023
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3038
3024
|
e.hourCycles && // @ts-ignore
|
|
@@ -3054,20 +3040,20 @@ function Ii(e) {
|
|
|
3054
3040
|
var i = Be[n || ""] || Be[r || ""] || Be["".concat(r, "-001")] || Be["001"];
|
|
3055
3041
|
return i[0];
|
|
3056
3042
|
}
|
|
3057
|
-
var
|
|
3043
|
+
var Je, Ci = new RegExp("^".concat(Cr.source, "*")), Ii = new RegExp("".concat(Cr.source, "*$"));
|
|
3058
3044
|
function _(e, t) {
|
|
3059
3045
|
return { start: e, end: t };
|
|
3060
3046
|
}
|
|
3061
|
-
var
|
|
3047
|
+
var Ri = !!String.prototype.startsWith && "_a".startsWith("a", 1), Li = !!String.fromCodePoint, Ni = !!Object.fromEntries, Mi = !!String.prototype.codePointAt, Di = !!String.prototype.trimStart, Fi = !!String.prototype.trimEnd, Ui = !!Number.isSafeInteger, Gi = Ui ? Number.isSafeInteger : function(e) {
|
|
3062
3048
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3063
|
-
},
|
|
3049
|
+
}, ot = !0;
|
|
3064
3050
|
try {
|
|
3065
|
-
var
|
|
3066
|
-
|
|
3051
|
+
var ki = Mr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3052
|
+
ot = ((Je = ki.exec("a")) === null || Je === void 0 ? void 0 : Je[0]) === "a";
|
|
3067
3053
|
} catch (e) {
|
|
3068
|
-
|
|
3054
|
+
ot = !1;
|
|
3069
3055
|
}
|
|
3070
|
-
var
|
|
3056
|
+
var Jt = Ri ? (
|
|
3071
3057
|
// Native
|
|
3072
3058
|
function(t, r, n) {
|
|
3073
3059
|
return t.startsWith(r, n);
|
|
@@ -3077,7 +3063,7 @@ var Qt = Mi ? (
|
|
|
3077
3063
|
function(t, r, n) {
|
|
3078
3064
|
return t.slice(n, n + r.length) === r;
|
|
3079
3065
|
}
|
|
3080
|
-
),
|
|
3066
|
+
), at = Li ? String.fromCodePoint : (
|
|
3081
3067
|
// IE11
|
|
3082
3068
|
function() {
|
|
3083
3069
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3089,9 +3075,9 @@ var Qt = Mi ? (
|
|
|
3089
3075
|
}
|
|
3090
3076
|
return n;
|
|
3091
3077
|
}
|
|
3092
|
-
),
|
|
3078
|
+
), qt = (
|
|
3093
3079
|
// native
|
|
3094
|
-
|
|
3080
|
+
Ni ? Object.fromEntries : (
|
|
3095
3081
|
// Ponyfill
|
|
3096
3082
|
function(t) {
|
|
3097
3083
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3101,7 +3087,7 @@ var Qt = Mi ? (
|
|
|
3101
3087
|
return r;
|
|
3102
3088
|
}
|
|
3103
3089
|
)
|
|
3104
|
-
),
|
|
3090
|
+
), Nr = Mi ? (
|
|
3105
3091
|
// Native
|
|
3106
3092
|
function(t, r) {
|
|
3107
3093
|
return t.codePointAt(r);
|
|
@@ -3115,7 +3101,7 @@ var Qt = Mi ? (
|
|
|
3115
3101
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
3116
3102
|
}
|
|
3117
3103
|
}
|
|
3118
|
-
),
|
|
3104
|
+
), ji = Di ? (
|
|
3119
3105
|
// Native
|
|
3120
3106
|
function(t) {
|
|
3121
3107
|
return t.trimStart();
|
|
@@ -3123,9 +3109,9 @@ var Qt = Mi ? (
|
|
|
3123
3109
|
) : (
|
|
3124
3110
|
// Ponyfill
|
|
3125
3111
|
function(t) {
|
|
3126
|
-
return t.replace(
|
|
3112
|
+
return t.replace(Ci, "");
|
|
3127
3113
|
}
|
|
3128
|
-
),
|
|
3114
|
+
), $i = Fi ? (
|
|
3129
3115
|
// Native
|
|
3130
3116
|
function(t) {
|
|
3131
3117
|
return t.trimEnd();
|
|
@@ -3133,32 +3119,32 @@ var Qt = Mi ? (
|
|
|
3133
3119
|
) : (
|
|
3134
3120
|
// Ponyfill
|
|
3135
3121
|
function(t) {
|
|
3136
|
-
return t.replace(
|
|
3122
|
+
return t.replace(Ii, "");
|
|
3137
3123
|
}
|
|
3138
3124
|
);
|
|
3139
|
-
function
|
|
3125
|
+
function Mr(e, t) {
|
|
3140
3126
|
return new RegExp(e, t);
|
|
3141
3127
|
}
|
|
3142
|
-
var
|
|
3143
|
-
if (
|
|
3144
|
-
var
|
|
3145
|
-
|
|
3128
|
+
var ut;
|
|
3129
|
+
if (ot) {
|
|
3130
|
+
var Qt = Mr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3131
|
+
ut = function(t, r) {
|
|
3146
3132
|
var n;
|
|
3147
|
-
|
|
3148
|
-
var i =
|
|
3133
|
+
Qt.lastIndex = r;
|
|
3134
|
+
var i = Qt.exec(t);
|
|
3149
3135
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3150
3136
|
};
|
|
3151
3137
|
} else
|
|
3152
|
-
|
|
3138
|
+
ut = function(t, r) {
|
|
3153
3139
|
for (var n = []; ; ) {
|
|
3154
|
-
var i =
|
|
3155
|
-
if (i === void 0 ||
|
|
3140
|
+
var i = Nr(t, r);
|
|
3141
|
+
if (i === void 0 || Dr(i) || zi(i))
|
|
3156
3142
|
break;
|
|
3157
3143
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3158
3144
|
}
|
|
3159
|
-
return
|
|
3145
|
+
return at.apply(void 0, n);
|
|
3160
3146
|
};
|
|
3161
|
-
var
|
|
3147
|
+
var Vi = (
|
|
3162
3148
|
/** @class */
|
|
3163
3149
|
function() {
|
|
3164
3150
|
function e(t, r) {
|
|
@@ -3189,7 +3175,7 @@ var zi = (
|
|
|
3189
3175
|
if (n)
|
|
3190
3176
|
break;
|
|
3191
3177
|
return this.error(v.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
|
|
3192
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
3178
|
+
} else if (s === 60 && !this.ignoreTag && lt(this.peek() || 0)) {
|
|
3193
3179
|
var o = this.parseTag(t, r);
|
|
3194
3180
|
if (o.err)
|
|
3195
3181
|
return o;
|
|
@@ -3222,7 +3208,7 @@ var zi = (
|
|
|
3222
3208
|
return s;
|
|
3223
3209
|
var o = s.val, a = this.clonePosition();
|
|
3224
3210
|
if (this.bumpIf("</")) {
|
|
3225
|
-
if (this.isEOF() || !
|
|
3211
|
+
if (this.isEOF() || !lt(this.char()))
|
|
3226
3212
|
return this.error(v.INVALID_TAG, _(a, this.clonePosition()));
|
|
3227
3213
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3228
3214
|
return i !== u ? this.error(v.UNMATCHED_CLOSING_TAG, _(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -3240,7 +3226,7 @@ var zi = (
|
|
|
3240
3226
|
return this.error(v.INVALID_TAG, _(n, this.clonePosition()));
|
|
3241
3227
|
}, e.prototype.parseTagName = function() {
|
|
3242
3228
|
var t = this.offset();
|
|
3243
|
-
for (this.bump(); !this.isEOF() &&
|
|
3229
|
+
for (this.bump(); !this.isEOF() && Wi(this.char()); )
|
|
3244
3230
|
this.bump();
|
|
3245
3231
|
return this.message.slice(t, this.offset());
|
|
3246
3232
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3269,7 +3255,7 @@ var zi = (
|
|
|
3269
3255
|
};
|
|
3270
3256
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3271
3257
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3272
|
-
!
|
|
3258
|
+
!Xi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3273
3259
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3274
3260
|
if (this.isEOF() || this.char() !== 39)
|
|
3275
3261
|
return null;
|
|
@@ -3303,12 +3289,12 @@ var zi = (
|
|
|
3303
3289
|
r.push(n);
|
|
3304
3290
|
this.bump();
|
|
3305
3291
|
}
|
|
3306
|
-
return
|
|
3292
|
+
return at.apply(void 0, r);
|
|
3307
3293
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3308
3294
|
if (this.isEOF())
|
|
3309
3295
|
return null;
|
|
3310
3296
|
var n = this.char();
|
|
3311
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3297
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), at(n));
|
|
3312
3298
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3313
3299
|
var n = this.clonePosition();
|
|
3314
3300
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3337,7 +3323,7 @@ var zi = (
|
|
|
3337
3323
|
return this.error(v.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
|
|
3338
3324
|
}
|
|
3339
3325
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3340
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3326
|
+
var t = this.clonePosition(), r = this.offset(), n = ut(this.message, r), i = r + n.length;
|
|
3341
3327
|
this.bumpTo(i);
|
|
3342
3328
|
var s = this.clonePosition(), o = _(t, s);
|
|
3343
3329
|
return { value: n, location: o };
|
|
@@ -3356,37 +3342,37 @@ var zi = (
|
|
|
3356
3342
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3357
3343
|
if (c.err)
|
|
3358
3344
|
return c;
|
|
3359
|
-
var
|
|
3360
|
-
if (
|
|
3345
|
+
var d = $i(c.val);
|
|
3346
|
+
if (d.length === 0)
|
|
3361
3347
|
return this.error(v.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
|
3362
3348
|
var y = _(h, this.clonePosition());
|
|
3363
|
-
u = { style:
|
|
3349
|
+
u = { style: d, styleLocation: y };
|
|
3364
3350
|
}
|
|
3365
3351
|
var g = this.tryParseArgumentClose(i);
|
|
3366
3352
|
if (g.err)
|
|
3367
3353
|
return g;
|
|
3368
|
-
var
|
|
3369
|
-
if (u &&
|
|
3370
|
-
var b =
|
|
3354
|
+
var p = _(i, this.clonePosition());
|
|
3355
|
+
if (u && Jt(u == null ? void 0 : u.style, "::", 0)) {
|
|
3356
|
+
var b = ji(u.style.slice(2));
|
|
3371
3357
|
if (a === "number") {
|
|
3372
3358
|
var c = this.parseNumberSkeletonFromString(b, u.styleLocation);
|
|
3373
3359
|
return c.err ? c : {
|
|
3374
|
-
val: { type: T.number, value: n, location:
|
|
3360
|
+
val: { type: T.number, value: n, location: p, style: c.val },
|
|
3375
3361
|
err: null
|
|
3376
3362
|
};
|
|
3377
3363
|
} else {
|
|
3378
3364
|
if (b.length === 0)
|
|
3379
|
-
return this.error(v.EXPECT_DATE_TIME_SKELETON,
|
|
3365
|
+
return this.error(v.EXPECT_DATE_TIME_SKELETON, p);
|
|
3380
3366
|
var S = b;
|
|
3381
|
-
this.locale && (S =
|
|
3382
|
-
var
|
|
3367
|
+
this.locale && (S = Ai(b, this.locale));
|
|
3368
|
+
var d = {
|
|
3383
3369
|
type: ie.dateTime,
|
|
3384
3370
|
pattern: S,
|
|
3385
3371
|
location: u.styleLocation,
|
|
3386
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3372
|
+
parsedOptions: this.shouldParseSkeletons ? wi(S) : {}
|
|
3387
3373
|
}, O = a === "date" ? T.date : T.time;
|
|
3388
3374
|
return {
|
|
3389
|
-
val: { type: O, value: n, location:
|
|
3375
|
+
val: { type: O, value: n, location: p, style: d },
|
|
3390
3376
|
err: null
|
|
3391
3377
|
};
|
|
3392
3378
|
}
|
|
@@ -3395,7 +3381,7 @@ var zi = (
|
|
|
3395
3381
|
val: {
|
|
3396
3382
|
type: a === "number" ? T.number : a === "date" ? T.date : T.time,
|
|
3397
3383
|
value: n,
|
|
3398
|
-
location:
|
|
3384
|
+
location: p,
|
|
3399
3385
|
style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
|
|
3400
3386
|
},
|
|
3401
3387
|
err: null
|
|
@@ -3408,7 +3394,7 @@ var zi = (
|
|
|
3408
3394
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3409
3395
|
return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, _(A, w({}, A)));
|
|
3410
3396
|
this.bumpSpace();
|
|
3411
|
-
var L = this.parseIdentifierIfPossible(),
|
|
3397
|
+
var L = this.parseIdentifierIfPossible(), N = 0;
|
|
3412
3398
|
if (a !== "select" && L.value === "offset") {
|
|
3413
3399
|
if (!this.bumpIf(":"))
|
|
3414
3400
|
return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
|
|
@@ -3416,7 +3402,7 @@ var zi = (
|
|
|
3416
3402
|
var c = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3417
3403
|
if (c.err)
|
|
3418
3404
|
return c;
|
|
3419
|
-
this.bumpSpace(), L = this.parseIdentifierIfPossible(),
|
|
3405
|
+
this.bumpSpace(), L = this.parseIdentifierIfPossible(), N = c.val;
|
|
3420
3406
|
}
|
|
3421
3407
|
var C = this.tryParsePluralOrSelectOptions(t, a, r, L);
|
|
3422
3408
|
if (C.err)
|
|
@@ -3429,7 +3415,7 @@ var zi = (
|
|
|
3429
3415
|
val: {
|
|
3430
3416
|
type: T.select,
|
|
3431
3417
|
value: n,
|
|
3432
|
-
options:
|
|
3418
|
+
options: qt(C.val),
|
|
3433
3419
|
location: D
|
|
3434
3420
|
},
|
|
3435
3421
|
err: null
|
|
@@ -3437,8 +3423,8 @@ var zi = (
|
|
|
3437
3423
|
val: {
|
|
3438
3424
|
type: T.plural,
|
|
3439
3425
|
value: n,
|
|
3440
|
-
options:
|
|
3441
|
-
offset:
|
|
3426
|
+
options: qt(C.val),
|
|
3427
|
+
offset: N,
|
|
3442
3428
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3443
3429
|
location: D
|
|
3444
3430
|
},
|
|
@@ -3488,7 +3474,7 @@ var zi = (
|
|
|
3488
3474
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3489
3475
|
var n = [];
|
|
3490
3476
|
try {
|
|
3491
|
-
n =
|
|
3477
|
+
n = xi(t);
|
|
3492
3478
|
} catch (i) {
|
|
3493
3479
|
return this.error(v.INVALID_NUMBER_SKELETON, r);
|
|
3494
3480
|
}
|
|
@@ -3497,7 +3483,7 @@ var zi = (
|
|
|
3497
3483
|
type: ie.number,
|
|
3498
3484
|
tokens: n,
|
|
3499
3485
|
location: r,
|
|
3500
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3486
|
+
parsedOptions: this.shouldParseSkeletons ? Pi(n) : {}
|
|
3501
3487
|
},
|
|
3502
3488
|
err: null
|
|
3503
3489
|
};
|
|
@@ -3506,9 +3492,9 @@ var zi = (
|
|
|
3506
3492
|
if (u.length === 0) {
|
|
3507
3493
|
var c = this.clonePosition();
|
|
3508
3494
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3509
|
-
var
|
|
3510
|
-
if (
|
|
3511
|
-
return
|
|
3495
|
+
var d = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_SELECTOR, v.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3496
|
+
if (d.err)
|
|
3497
|
+
return d;
|
|
3512
3498
|
h = _(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3513
3499
|
} else
|
|
3514
3500
|
break;
|
|
@@ -3522,9 +3508,9 @@ var zi = (
|
|
|
3522
3508
|
var g = this.parseMessage(t + 1, r, n);
|
|
3523
3509
|
if (g.err)
|
|
3524
3510
|
return g;
|
|
3525
|
-
var
|
|
3526
|
-
if (
|
|
3527
|
-
return
|
|
3511
|
+
var p = this.tryParseArgumentClose(y);
|
|
3512
|
+
if (p.err)
|
|
3513
|
+
return p;
|
|
3528
3514
|
a.push([
|
|
3529
3515
|
u,
|
|
3530
3516
|
{
|
|
@@ -3545,7 +3531,7 @@ var zi = (
|
|
|
3545
3531
|
break;
|
|
3546
3532
|
}
|
|
3547
3533
|
var l = _(i, this.clonePosition());
|
|
3548
|
-
return s ? (o *= n,
|
|
3534
|
+
return s ? (o *= n, Gi(o) ? { val: o, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3549
3535
|
}, e.prototype.offset = function() {
|
|
3550
3536
|
return this.position.offset;
|
|
3551
3537
|
}, e.prototype.isEOF = function() {
|
|
@@ -3560,7 +3546,7 @@ var zi = (
|
|
|
3560
3546
|
var t = this.position.offset;
|
|
3561
3547
|
if (t >= this.message.length)
|
|
3562
3548
|
throw Error("out of bound");
|
|
3563
|
-
var r =
|
|
3549
|
+
var r = Nr(this.message, t);
|
|
3564
3550
|
if (r === void 0)
|
|
3565
3551
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3566
3552
|
return r;
|
|
@@ -3579,7 +3565,7 @@ var zi = (
|
|
|
3579
3565
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3580
3566
|
}
|
|
3581
3567
|
}, e.prototype.bumpIf = function(t) {
|
|
3582
|
-
if (
|
|
3568
|
+
if (Jt(this.message, t, this.offset())) {
|
|
3583
3569
|
for (var r = 0; r < t.length; r++)
|
|
3584
3570
|
this.bump();
|
|
3585
3571
|
return !0;
|
|
@@ -3601,7 +3587,7 @@ var zi = (
|
|
|
3601
3587
|
break;
|
|
3602
3588
|
}
|
|
3603
3589
|
}, e.prototype.bumpSpace = function() {
|
|
3604
|
-
for (; !this.isEOF() &&
|
|
3590
|
+
for (; !this.isEOF() && Dr(this.char()); )
|
|
3605
3591
|
this.bump();
|
|
3606
3592
|
}, e.prototype.peek = function() {
|
|
3607
3593
|
if (this.isEOF())
|
|
@@ -3611,38 +3597,38 @@ var zi = (
|
|
|
3611
3597
|
}, e;
|
|
3612
3598
|
}()
|
|
3613
3599
|
);
|
|
3614
|
-
function
|
|
3600
|
+
function lt(e) {
|
|
3615
3601
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3616
3602
|
}
|
|
3617
|
-
function
|
|
3618
|
-
return
|
|
3603
|
+
function Xi(e) {
|
|
3604
|
+
return lt(e) || e === 47;
|
|
3619
3605
|
}
|
|
3620
|
-
function
|
|
3606
|
+
function Wi(e) {
|
|
3621
3607
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
3622
3608
|
}
|
|
3623
|
-
function
|
|
3609
|
+
function Dr(e) {
|
|
3624
3610
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3625
3611
|
}
|
|
3626
|
-
function
|
|
3612
|
+
function zi(e) {
|
|
3627
3613
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3628
3614
|
}
|
|
3629
|
-
function
|
|
3615
|
+
function ht(e) {
|
|
3630
3616
|
e.forEach(function(t) {
|
|
3631
|
-
if (delete t.location,
|
|
3617
|
+
if (delete t.location, Br(t) || Pr(t))
|
|
3632
3618
|
for (var r in t.options)
|
|
3633
|
-
delete t.options[r].location,
|
|
3619
|
+
delete t.options[r].location, ht(t.options[r].value);
|
|
3634
3620
|
else
|
|
3635
|
-
|
|
3621
|
+
xr(t) && Or(t.style) || (Tr(t) || Hr(t)) && st(t.style) ? delete t.style.location : Ar(t) && ht(t.children);
|
|
3636
3622
|
});
|
|
3637
3623
|
}
|
|
3638
|
-
function
|
|
3624
|
+
function Zi(e, t) {
|
|
3639
3625
|
t === void 0 && (t = {}), t = w({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3640
|
-
var r = new
|
|
3626
|
+
var r = new Vi(e, t).parse();
|
|
3641
3627
|
if (r.err) {
|
|
3642
3628
|
var n = SyntaxError(v[r.err.kind]);
|
|
3643
3629
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3644
3630
|
}
|
|
3645
|
-
return t != null && t.captureLocation ||
|
|
3631
|
+
return t != null && t.captureLocation || ht(r.val), r.val;
|
|
3646
3632
|
}
|
|
3647
3633
|
var se;
|
|
3648
3634
|
(function(e) {
|
|
@@ -3651,7 +3637,7 @@ var se;
|
|
|
3651
3637
|
var De = (
|
|
3652
3638
|
/** @class */
|
|
3653
3639
|
function(e) {
|
|
3654
|
-
|
|
3640
|
+
W(t, e);
|
|
3655
3641
|
function t(r, n, i) {
|
|
3656
3642
|
var s = e.call(this, r) || this;
|
|
3657
3643
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3660,28 +3646,28 @@ var De = (
|
|
|
3660
3646
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3661
3647
|
}, t;
|
|
3662
3648
|
}(Error)
|
|
3663
|
-
),
|
|
3649
|
+
), Yt = (
|
|
3664
3650
|
/** @class */
|
|
3665
3651
|
function(e) {
|
|
3666
|
-
|
|
3652
|
+
W(t, e);
|
|
3667
3653
|
function t(r, n, i, s) {
|
|
3668
3654
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), se.INVALID_VALUE, s) || this;
|
|
3669
3655
|
}
|
|
3670
3656
|
return t;
|
|
3671
3657
|
}(De)
|
|
3672
|
-
),
|
|
3658
|
+
), Ji = (
|
|
3673
3659
|
/** @class */
|
|
3674
3660
|
function(e) {
|
|
3675
|
-
|
|
3661
|
+
W(t, e);
|
|
3676
3662
|
function t(r, n, i) {
|
|
3677
3663
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), se.INVALID_VALUE, i) || this;
|
|
3678
3664
|
}
|
|
3679
3665
|
return t;
|
|
3680
3666
|
}(De)
|
|
3681
|
-
),
|
|
3667
|
+
), qi = (
|
|
3682
3668
|
/** @class */
|
|
3683
3669
|
function(e) {
|
|
3684
|
-
|
|
3670
|
+
W(t, e);
|
|
3685
3671
|
function t(r, n) {
|
|
3686
3672
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), se.MISSING_VALUE, n) || this;
|
|
3687
3673
|
}
|
|
@@ -3691,17 +3677,17 @@ var De = (
|
|
|
3691
3677
|
(function(e) {
|
|
3692
3678
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3693
3679
|
})(R || (R = {}));
|
|
3694
|
-
function
|
|
3680
|
+
function Qi(e) {
|
|
3695
3681
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3696
3682
|
var n = t[t.length - 1];
|
|
3697
3683
|
return !n || n.type !== R.literal || r.type !== R.literal ? t.push(r) : n.value += r.value, t;
|
|
3698
3684
|
}, []);
|
|
3699
3685
|
}
|
|
3700
|
-
function
|
|
3686
|
+
function Yi(e) {
|
|
3701
3687
|
return typeof e == "function";
|
|
3702
3688
|
}
|
|
3703
3689
|
function Oe(e, t, r, n, i, s, o) {
|
|
3704
|
-
if (e.length === 1 &&
|
|
3690
|
+
if (e.length === 1 && Xt(e[0]))
|
|
3705
3691
|
return [
|
|
3706
3692
|
{
|
|
3707
3693
|
type: R.literal,
|
|
@@ -3710,14 +3696,14 @@ function Oe(e, t, r, n, i, s, o) {
|
|
|
3710
3696
|
];
|
|
3711
3697
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3712
3698
|
var h = u[l];
|
|
3713
|
-
if (
|
|
3699
|
+
if (Xt(h)) {
|
|
3714
3700
|
a.push({
|
|
3715
3701
|
type: R.literal,
|
|
3716
3702
|
value: h.value
|
|
3717
3703
|
});
|
|
3718
3704
|
continue;
|
|
3719
3705
|
}
|
|
3720
|
-
if (
|
|
3706
|
+
if (_i(h)) {
|
|
3721
3707
|
typeof s == "number" && a.push({
|
|
3722
3708
|
type: R.literal,
|
|
3723
3709
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3726,89 +3712,89 @@ function Oe(e, t, r, n, i, s, o) {
|
|
|
3726
3712
|
}
|
|
3727
3713
|
var c = h.value;
|
|
3728
3714
|
if (!(i && c in i))
|
|
3729
|
-
throw new
|
|
3730
|
-
var
|
|
3731
|
-
if (
|
|
3732
|
-
(!
|
|
3733
|
-
type: typeof
|
|
3734
|
-
value:
|
|
3715
|
+
throw new qi(c, o);
|
|
3716
|
+
var d = i[c];
|
|
3717
|
+
if (vi(h)) {
|
|
3718
|
+
(!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), a.push({
|
|
3719
|
+
type: typeof d == "string" ? R.literal : R.object,
|
|
3720
|
+
value: d
|
|
3735
3721
|
});
|
|
3736
3722
|
continue;
|
|
3737
3723
|
}
|
|
3738
|
-
if (
|
|
3739
|
-
var y = typeof h.style == "string" ? n.date[h.style] :
|
|
3724
|
+
if (Tr(h)) {
|
|
3725
|
+
var y = typeof h.style == "string" ? n.date[h.style] : st(h.style) ? h.style.parsedOptions : void 0;
|
|
3740
3726
|
a.push({
|
|
3741
3727
|
type: R.literal,
|
|
3742
|
-
value: r.getDateTimeFormat(t, y).format(
|
|
3728
|
+
value: r.getDateTimeFormat(t, y).format(d)
|
|
3743
3729
|
});
|
|
3744
3730
|
continue;
|
|
3745
3731
|
}
|
|
3746
|
-
if (
|
|
3747
|
-
var y = typeof h.style == "string" ? n.time[h.style] :
|
|
3732
|
+
if (Hr(h)) {
|
|
3733
|
+
var y = typeof h.style == "string" ? n.time[h.style] : st(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3748
3734
|
a.push({
|
|
3749
3735
|
type: R.literal,
|
|
3750
|
-
value: r.getDateTimeFormat(t, y).format(
|
|
3736
|
+
value: r.getDateTimeFormat(t, y).format(d)
|
|
3751
3737
|
});
|
|
3752
3738
|
continue;
|
|
3753
3739
|
}
|
|
3754
|
-
if (
|
|
3755
|
-
var y = typeof h.style == "string" ? n.number[h.style] :
|
|
3756
|
-
y && y.scale && (
|
|
3740
|
+
if (xr(h)) {
|
|
3741
|
+
var y = typeof h.style == "string" ? n.number[h.style] : Or(h.style) ? h.style.parsedOptions : void 0;
|
|
3742
|
+
y && y.scale && (d = d * (y.scale || 1)), a.push({
|
|
3757
3743
|
type: R.literal,
|
|
3758
|
-
value: r.getNumberFormat(t, y).format(
|
|
3744
|
+
value: r.getNumberFormat(t, y).format(d)
|
|
3759
3745
|
});
|
|
3760
3746
|
continue;
|
|
3761
3747
|
}
|
|
3762
|
-
if (
|
|
3763
|
-
var g = h.children,
|
|
3764
|
-
if (!
|
|
3765
|
-
throw new
|
|
3766
|
-
var S = Oe(g, t, r, n, i, s), O = b(S.map(function(
|
|
3767
|
-
return
|
|
3748
|
+
if (Ar(h)) {
|
|
3749
|
+
var g = h.children, p = h.value, b = i[p];
|
|
3750
|
+
if (!Yi(b))
|
|
3751
|
+
throw new Ji(p, "function", o);
|
|
3752
|
+
var S = Oe(g, t, r, n, i, s), O = b(S.map(function(N) {
|
|
3753
|
+
return N.value;
|
|
3768
3754
|
}));
|
|
3769
|
-
Array.isArray(O) || (O = [O]), a.push.apply(a, O.map(function(
|
|
3755
|
+
Array.isArray(O) || (O = [O]), a.push.apply(a, O.map(function(N) {
|
|
3770
3756
|
return {
|
|
3771
|
-
type: typeof
|
|
3772
|
-
value:
|
|
3757
|
+
type: typeof N == "string" ? R.literal : R.object,
|
|
3758
|
+
value: N
|
|
3773
3759
|
};
|
|
3774
3760
|
}));
|
|
3775
3761
|
}
|
|
3776
|
-
if (
|
|
3777
|
-
var A = h.options[
|
|
3762
|
+
if (Br(h)) {
|
|
3763
|
+
var A = h.options[d] || h.options.other;
|
|
3778
3764
|
if (!A)
|
|
3779
|
-
throw new
|
|
3765
|
+
throw new Yt(h.value, d, Object.keys(h.options), o);
|
|
3780
3766
|
a.push.apply(a, Oe(A.value, t, r, n, i));
|
|
3781
3767
|
continue;
|
|
3782
3768
|
}
|
|
3783
|
-
if (
|
|
3784
|
-
var A = h.options["=".concat(
|
|
3769
|
+
if (Pr(h)) {
|
|
3770
|
+
var A = h.options["=".concat(d)];
|
|
3785
3771
|
if (!A) {
|
|
3786
3772
|
if (!Intl.PluralRules)
|
|
3787
3773
|
throw new De(`Intl.PluralRules is not available in this environment.
|
|
3788
3774
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3789
3775
|
`, se.MISSING_INTL_API, o);
|
|
3790
|
-
var L = r.getPluralRules(t, { type: h.pluralType }).select(
|
|
3776
|
+
var L = r.getPluralRules(t, { type: h.pluralType }).select(d - (h.offset || 0));
|
|
3791
3777
|
A = h.options[L] || h.options.other;
|
|
3792
3778
|
}
|
|
3793
3779
|
if (!A)
|
|
3794
|
-
throw new
|
|
3795
|
-
a.push.apply(a, Oe(A.value, t, r, n, i,
|
|
3780
|
+
throw new Yt(h.value, d, Object.keys(h.options), o);
|
|
3781
|
+
a.push.apply(a, Oe(A.value, t, r, n, i, d - (h.offset || 0)));
|
|
3796
3782
|
continue;
|
|
3797
3783
|
}
|
|
3798
3784
|
}
|
|
3799
|
-
return
|
|
3785
|
+
return Qi(a);
|
|
3800
3786
|
}
|
|
3801
|
-
function
|
|
3787
|
+
function Ki(e, t) {
|
|
3802
3788
|
return t ? w(w(w({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3803
3789
|
return r[n] = w(w({}, e[n]), t[n] || {}), r;
|
|
3804
3790
|
}, {})) : e;
|
|
3805
3791
|
}
|
|
3806
|
-
function
|
|
3792
|
+
function es(e, t) {
|
|
3807
3793
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3808
|
-
return r[n] =
|
|
3794
|
+
return r[n] = Ki(e[n], t[n]), r;
|
|
3809
3795
|
}, w({}, e)) : e;
|
|
3810
3796
|
}
|
|
3811
|
-
function
|
|
3797
|
+
function qe(e) {
|
|
3812
3798
|
return {
|
|
3813
3799
|
create: function() {
|
|
3814
3800
|
return {
|
|
@@ -3822,39 +3808,39 @@ function Qe(e) {
|
|
|
3822
3808
|
}
|
|
3823
3809
|
};
|
|
3824
3810
|
}
|
|
3825
|
-
function
|
|
3811
|
+
function ts(e) {
|
|
3826
3812
|
return e === void 0 && (e = {
|
|
3827
3813
|
number: {},
|
|
3828
3814
|
dateTime: {},
|
|
3829
3815
|
pluralRules: {}
|
|
3830
3816
|
}), {
|
|
3831
|
-
getNumberFormat:
|
|
3817
|
+
getNumberFormat: ze(function() {
|
|
3832
3818
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3833
3819
|
r[n] = arguments[n];
|
|
3834
3820
|
return new ((t = Intl.NumberFormat).bind.apply(t, re([void 0], r, !1)))();
|
|
3835
3821
|
}, {
|
|
3836
|
-
cache:
|
|
3837
|
-
strategy:
|
|
3822
|
+
cache: qe(e.number),
|
|
3823
|
+
strategy: Ze.variadic
|
|
3838
3824
|
}),
|
|
3839
|
-
getDateTimeFormat:
|
|
3825
|
+
getDateTimeFormat: ze(function() {
|
|
3840
3826
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3841
3827
|
r[n] = arguments[n];
|
|
3842
3828
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, re([void 0], r, !1)))();
|
|
3843
3829
|
}, {
|
|
3844
|
-
cache:
|
|
3845
|
-
strategy:
|
|
3830
|
+
cache: qe(e.dateTime),
|
|
3831
|
+
strategy: Ze.variadic
|
|
3846
3832
|
}),
|
|
3847
|
-
getPluralRules:
|
|
3833
|
+
getPluralRules: ze(function() {
|
|
3848
3834
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3849
3835
|
r[n] = arguments[n];
|
|
3850
3836
|
return new ((t = Intl.PluralRules).bind.apply(t, re([void 0], r, !1)))();
|
|
3851
3837
|
}, {
|
|
3852
|
-
cache:
|
|
3853
|
-
strategy:
|
|
3838
|
+
cache: qe(e.pluralRules),
|
|
3839
|
+
strategy: Ze.variadic
|
|
3854
3840
|
})
|
|
3855
3841
|
};
|
|
3856
3842
|
}
|
|
3857
|
-
var
|
|
3843
|
+
var rs = (
|
|
3858
3844
|
/** @class */
|
|
3859
3845
|
function() {
|
|
3860
3846
|
function e(t, r, n, i) {
|
|
@@ -3868,8 +3854,8 @@ var is = (
|
|
|
3868
3854
|
var u = s.formatToParts(l);
|
|
3869
3855
|
if (u.length === 1)
|
|
3870
3856
|
return u[0].value;
|
|
3871
|
-
var h = u.reduce(function(c,
|
|
3872
|
-
return !c.length ||
|
|
3857
|
+
var h = u.reduce(function(c, d) {
|
|
3858
|
+
return !c.length || d.type !== R.literal || typeof c[c.length - 1] != "string" ? c.push(d.value) : c[c.length - 1] += d.value, c;
|
|
3873
3859
|
}, []);
|
|
3874
3860
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3875
3861
|
}, this.formatToParts = function(l) {
|
|
@@ -3886,13 +3872,13 @@ var is = (
|
|
|
3886
3872
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3887
3873
|
var o = i || {};
|
|
3888
3874
|
o.formatters;
|
|
3889
|
-
var a =
|
|
3875
|
+
var a = Ln(o, ["formatters"]);
|
|
3890
3876
|
this.ast = e.__parse(t, w(w({}, a), { locale: this.resolvedLocale }));
|
|
3891
3877
|
} else
|
|
3892
3878
|
this.ast = t;
|
|
3893
3879
|
if (!Array.isArray(this.ast))
|
|
3894
3880
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3895
|
-
this.formats =
|
|
3881
|
+
this.formats = es(e.formats, n), this.formatters = i && i.formatters || ts(this.formatterCache);
|
|
3896
3882
|
}
|
|
3897
3883
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3898
3884
|
get: function() {
|
|
@@ -3905,7 +3891,7 @@ var is = (
|
|
|
3905
3891
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3906
3892
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3907
3893
|
}
|
|
3908
|
-
}, e.__parse =
|
|
3894
|
+
}, e.__parse = Zi, e.formats = {
|
|
3909
3895
|
number: {
|
|
3910
3896
|
integer: {
|
|
3911
3897
|
maximumFractionDigits: 0
|
|
@@ -3966,7 +3952,7 @@ var is = (
|
|
|
3966
3952
|
}, e;
|
|
3967
3953
|
}()
|
|
3968
3954
|
);
|
|
3969
|
-
function
|
|
3955
|
+
function ns(e, t) {
|
|
3970
3956
|
if (t == null)
|
|
3971
3957
|
return;
|
|
3972
3958
|
if (t in e)
|
|
@@ -3987,92 +3973,92 @@ function ss(e, t) {
|
|
|
3987
3973
|
n = void 0;
|
|
3988
3974
|
return n;
|
|
3989
3975
|
}
|
|
3990
|
-
const Z = {},
|
|
3976
|
+
const Z = {}, is = (e, t, r) => r && (t in Z || (Z[t] = {}), e in Z[t] || (Z[t][e] = r), r), Fr = (e, t) => {
|
|
3991
3977
|
if (t == null)
|
|
3992
3978
|
return;
|
|
3993
3979
|
if (t in Z && e in Z[t])
|
|
3994
3980
|
return Z[t][e];
|
|
3995
3981
|
const r = Fe(t);
|
|
3996
3982
|
for (let n = 0; n < r.length; n++) {
|
|
3997
|
-
const i = r[n], s =
|
|
3983
|
+
const i = r[n], s = os(i, e);
|
|
3998
3984
|
if (s)
|
|
3999
|
-
return
|
|
3985
|
+
return is(e, t, s);
|
|
4000
3986
|
}
|
|
4001
3987
|
};
|
|
4002
|
-
let
|
|
4003
|
-
const ue =
|
|
4004
|
-
function
|
|
4005
|
-
return
|
|
3988
|
+
let pt;
|
|
3989
|
+
const ue = Me({});
|
|
3990
|
+
function ss(e) {
|
|
3991
|
+
return pt[e] || null;
|
|
4006
3992
|
}
|
|
4007
|
-
function
|
|
4008
|
-
return e in
|
|
3993
|
+
function Ur(e) {
|
|
3994
|
+
return e in pt;
|
|
4009
3995
|
}
|
|
4010
|
-
function
|
|
4011
|
-
if (!
|
|
3996
|
+
function os(e, t) {
|
|
3997
|
+
if (!Ur(e))
|
|
4012
3998
|
return null;
|
|
4013
|
-
const r =
|
|
4014
|
-
return
|
|
3999
|
+
const r = ss(e);
|
|
4000
|
+
return ns(r, t);
|
|
4015
4001
|
}
|
|
4016
|
-
function
|
|
4002
|
+
function as(e) {
|
|
4017
4003
|
if (e == null)
|
|
4018
4004
|
return;
|
|
4019
4005
|
const t = Fe(e);
|
|
4020
4006
|
for (let r = 0; r < t.length; r++) {
|
|
4021
4007
|
const n = t[r];
|
|
4022
|
-
if (
|
|
4008
|
+
if (Ur(n))
|
|
4023
4009
|
return n;
|
|
4024
4010
|
}
|
|
4025
4011
|
}
|
|
4026
|
-
function
|
|
4027
|
-
delete Z[e], ue.update((r) => (r[e] =
|
|
4012
|
+
function Gr(e, ...t) {
|
|
4013
|
+
delete Z[e], ue.update((r) => (r[e] = fi.all([r[e] || {}, ...t]), r));
|
|
4028
4014
|
}
|
|
4029
4015
|
ae(
|
|
4030
4016
|
[ue],
|
|
4031
4017
|
([e]) => Object.keys(e)
|
|
4032
4018
|
);
|
|
4033
|
-
ue.subscribe((e) =>
|
|
4019
|
+
ue.subscribe((e) => pt = e);
|
|
4034
4020
|
const Ce = {};
|
|
4035
|
-
function
|
|
4021
|
+
function us(e, t) {
|
|
4036
4022
|
Ce[e].delete(t), Ce[e].size === 0 && delete Ce[e];
|
|
4037
4023
|
}
|
|
4038
|
-
function
|
|
4024
|
+
function kr(e) {
|
|
4039
4025
|
return Ce[e];
|
|
4040
4026
|
}
|
|
4041
|
-
function
|
|
4027
|
+
function ls(e) {
|
|
4042
4028
|
return Fe(e).map((t) => {
|
|
4043
|
-
const r =
|
|
4029
|
+
const r = kr(t);
|
|
4044
4030
|
return [t, r ? [...r] : []];
|
|
4045
4031
|
}).filter(([, t]) => t.length > 0);
|
|
4046
4032
|
}
|
|
4047
|
-
function
|
|
4033
|
+
function ft(e) {
|
|
4048
4034
|
return e == null ? !1 : Fe(e).some(
|
|
4049
4035
|
(t) => {
|
|
4050
4036
|
var r;
|
|
4051
|
-
return (r =
|
|
4037
|
+
return (r = kr(t)) == null ? void 0 : r.size;
|
|
4052
4038
|
}
|
|
4053
4039
|
);
|
|
4054
4040
|
}
|
|
4055
|
-
function
|
|
4041
|
+
function hs(e, t) {
|
|
4056
4042
|
return Promise.all(
|
|
4057
|
-
t.map((n) => (
|
|
4058
|
-
).then((n) =>
|
|
4043
|
+
t.map((n) => (us(e, n), n().then((i) => i.default || i)))
|
|
4044
|
+
).then((n) => Gr(e, ...n));
|
|
4059
4045
|
}
|
|
4060
4046
|
const ce = {};
|
|
4061
|
-
function
|
|
4062
|
-
if (!
|
|
4047
|
+
function jr(e) {
|
|
4048
|
+
if (!ft(e))
|
|
4063
4049
|
return e in ce ? ce[e] : Promise.resolve();
|
|
4064
|
-
const t =
|
|
4050
|
+
const t = ls(e);
|
|
4065
4051
|
return ce[e] = Promise.all(
|
|
4066
4052
|
t.map(
|
|
4067
|
-
([r, n]) =>
|
|
4053
|
+
([r, n]) => hs(r, n)
|
|
4068
4054
|
)
|
|
4069
4055
|
).then(() => {
|
|
4070
|
-
if (
|
|
4071
|
-
return
|
|
4056
|
+
if (ft(e))
|
|
4057
|
+
return jr(e);
|
|
4072
4058
|
delete ce[e];
|
|
4073
4059
|
}), ce[e];
|
|
4074
4060
|
}
|
|
4075
|
-
const
|
|
4061
|
+
const fs = {
|
|
4076
4062
|
number: {
|
|
4077
4063
|
scientific: { notation: "scientific" },
|
|
4078
4064
|
engineering: { notation: "engineering" },
|
|
@@ -4101,57 +4087,57 @@ const ms = {
|
|
|
4101
4087
|
timeZoneName: "short"
|
|
4102
4088
|
}
|
|
4103
4089
|
}
|
|
4104
|
-
},
|
|
4090
|
+
}, cs = {
|
|
4105
4091
|
fallbackLocale: null,
|
|
4106
4092
|
loadingDelay: 200,
|
|
4107
|
-
formats:
|
|
4093
|
+
formats: fs,
|
|
4108
4094
|
warnOnMissingMessages: !0,
|
|
4109
4095
|
handleMissingMessage: void 0,
|
|
4110
4096
|
ignoreTag: !0
|
|
4111
|
-
},
|
|
4097
|
+
}, ms = cs;
|
|
4112
4098
|
function oe() {
|
|
4113
|
-
return
|
|
4114
|
-
}
|
|
4115
|
-
const
|
|
4116
|
-
var
|
|
4117
|
-
for (var r in t
|
|
4118
|
-
|
|
4119
|
-
if (
|
|
4120
|
-
for (var r of
|
|
4121
|
-
|
|
4099
|
+
return ms;
|
|
4100
|
+
}
|
|
4101
|
+
const Qe = Me(!1);
|
|
4102
|
+
var ds = Object.defineProperty, ps = Object.defineProperties, gs = Object.getOwnPropertyDescriptors, Kt = Object.getOwnPropertySymbols, bs = Object.prototype.hasOwnProperty, ys = Object.prototype.propertyIsEnumerable, er = (e, t, r) => t in e ? ds(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, vs = (e, t) => {
|
|
4103
|
+
for (var r in t)
|
|
4104
|
+
bs.call(t, r) && er(e, r, t[r]);
|
|
4105
|
+
if (Kt)
|
|
4106
|
+
for (var r of Kt(t))
|
|
4107
|
+
ys.call(t, r) && er(e, r, t[r]);
|
|
4122
4108
|
return e;
|
|
4123
|
-
},
|
|
4124
|
-
let
|
|
4125
|
-
const Re =
|
|
4126
|
-
function
|
|
4109
|
+
}, _s = (e, t) => ps(e, gs(t));
|
|
4110
|
+
let ct;
|
|
4111
|
+
const Re = Me(null);
|
|
4112
|
+
function tr(e) {
|
|
4127
4113
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4128
4114
|
}
|
|
4129
4115
|
function Fe(e, t = oe().fallbackLocale) {
|
|
4130
|
-
const r =
|
|
4131
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4116
|
+
const r = tr(e);
|
|
4117
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...tr(t)])] : r;
|
|
4132
4118
|
}
|
|
4133
4119
|
function q() {
|
|
4134
|
-
return
|
|
4120
|
+
return ct != null ? ct : void 0;
|
|
4135
4121
|
}
|
|
4136
4122
|
Re.subscribe((e) => {
|
|
4137
|
-
|
|
4123
|
+
ct = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4138
4124
|
});
|
|
4139
|
-
const
|
|
4140
|
-
if (e &&
|
|
4125
|
+
const Es = (e) => {
|
|
4126
|
+
if (e && as(e) && ft(e)) {
|
|
4141
4127
|
const { loadingDelay: t } = oe();
|
|
4142
4128
|
let r;
|
|
4143
4129
|
return typeof window != "undefined" && q() != null && t ? r = window.setTimeout(
|
|
4144
|
-
() =>
|
|
4130
|
+
() => Qe.set(!0),
|
|
4145
4131
|
t
|
|
4146
|
-
) :
|
|
4132
|
+
) : Qe.set(!0), jr(e).then(() => {
|
|
4147
4133
|
Re.set(e);
|
|
4148
4134
|
}).finally(() => {
|
|
4149
|
-
clearTimeout(r),
|
|
4135
|
+
clearTimeout(r), Qe.set(!1);
|
|
4150
4136
|
});
|
|
4151
4137
|
}
|
|
4152
4138
|
return Re.set(e);
|
|
4153
|
-
}, J =
|
|
4154
|
-
set:
|
|
4139
|
+
}, J = _s(vs({}, Re), {
|
|
4140
|
+
set: Es
|
|
4155
4141
|
}), Ue = (e) => {
|
|
4156
4142
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4157
4143
|
return (n) => {
|
|
@@ -4159,20 +4145,20 @@ const Ss = (e) => {
|
|
|
4159
4145
|
return i in t ? t[i] : t[i] = e(n);
|
|
4160
4146
|
};
|
|
4161
4147
|
};
|
|
4162
|
-
var
|
|
4148
|
+
var ws = Object.defineProperty, Le = Object.getOwnPropertySymbols, $r = Object.prototype.hasOwnProperty, Vr = Object.prototype.propertyIsEnumerable, rr = (e, t, r) => t in e ? ws(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, gt = (e, t) => {
|
|
4163
4149
|
for (var r in t || (t = {}))
|
|
4164
|
-
|
|
4150
|
+
$r.call(t, r) && rr(e, r, t[r]);
|
|
4165
4151
|
if (Le)
|
|
4166
4152
|
for (var r of Le(t))
|
|
4167
|
-
|
|
4153
|
+
Vr.call(t, r) && rr(e, r, t[r]);
|
|
4168
4154
|
return e;
|
|
4169
4155
|
}, le = (e, t) => {
|
|
4170
4156
|
var r = {};
|
|
4171
4157
|
for (var n in e)
|
|
4172
|
-
|
|
4158
|
+
$r.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4173
4159
|
if (e != null && Le)
|
|
4174
4160
|
for (var n of Le(e))
|
|
4175
|
-
t.indexOf(n) < 0 &&
|
|
4161
|
+
t.indexOf(n) < 0 && Vr.call(e, n) && (r[n] = e[n]);
|
|
4176
4162
|
return r;
|
|
4177
4163
|
};
|
|
4178
4164
|
const ge = (e, t) => {
|
|
@@ -4180,21 +4166,21 @@ const ge = (e, t) => {
|
|
|
4180
4166
|
if (e in r && t in r[e])
|
|
4181
4167
|
return r[e][t];
|
|
4182
4168
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4183
|
-
},
|
|
4169
|
+
}, Ss = Ue(
|
|
4184
4170
|
(e) => {
|
|
4185
4171
|
var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
|
|
4186
4172
|
if (r == null)
|
|
4187
4173
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4188
4174
|
return n && (i = ge("number", n)), new Intl.NumberFormat(r, i);
|
|
4189
4175
|
}
|
|
4190
|
-
),
|
|
4176
|
+
), xs = Ue(
|
|
4191
4177
|
(e) => {
|
|
4192
4178
|
var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
|
|
4193
4179
|
if (r == null)
|
|
4194
4180
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4195
4181
|
return n ? i = ge("date", n) : Object.keys(i).length === 0 && (i = ge("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4196
4182
|
}
|
|
4197
|
-
),
|
|
4183
|
+
), Ts = Ue(
|
|
4198
4184
|
(e) => {
|
|
4199
4185
|
var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
|
|
4200
4186
|
if (r == null)
|
|
@@ -4203,33 +4189,33 @@ const ge = (e, t) => {
|
|
|
4203
4189
|
);
|
|
4204
4190
|
return n ? i = ge("time", n) : Object.keys(i).length === 0 && (i = ge("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4205
4191
|
}
|
|
4206
|
-
),
|
|
4192
|
+
), Hs = (e = {}) => {
|
|
4207
4193
|
var t = e, {
|
|
4208
4194
|
locale: r = q()
|
|
4209
4195
|
} = t, n = le(t, [
|
|
4210
4196
|
"locale"
|
|
4211
4197
|
]);
|
|
4212
|
-
return
|
|
4213
|
-
},
|
|
4198
|
+
return Ss(gt({ locale: r }, n));
|
|
4199
|
+
}, Bs = (e = {}) => {
|
|
4214
4200
|
var t = e, {
|
|
4215
4201
|
locale: r = q()
|
|
4216
4202
|
} = t, n = le(t, [
|
|
4217
4203
|
"locale"
|
|
4218
4204
|
]);
|
|
4219
|
-
return
|
|
4220
|
-
},
|
|
4205
|
+
return xs(gt({ locale: r }, n));
|
|
4206
|
+
}, Ps = (e = {}) => {
|
|
4221
4207
|
var t = e, {
|
|
4222
4208
|
locale: r = q()
|
|
4223
4209
|
} = t, n = le(t, [
|
|
4224
4210
|
"locale"
|
|
4225
4211
|
]);
|
|
4226
|
-
return
|
|
4227
|
-
},
|
|
4212
|
+
return Ts(gt({ locale: r }, n));
|
|
4213
|
+
}, As = Ue(
|
|
4228
4214
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4229
|
-
(e, t = q()) => new
|
|
4215
|
+
(e, t = q()) => new rs(e, t, oe().formats, {
|
|
4230
4216
|
ignoreTag: oe().ignoreTag
|
|
4231
4217
|
})
|
|
4232
|
-
),
|
|
4218
|
+
), Os = (e, t = {}) => {
|
|
4233
4219
|
var r, n, i, s;
|
|
4234
4220
|
let o = t;
|
|
4235
4221
|
typeof e == "object" && (o = e, e = o.id);
|
|
@@ -4242,7 +4228,7 @@ const ge = (e, t) => {
|
|
|
4242
4228
|
throw new Error(
|
|
4243
4229
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4244
4230
|
);
|
|
4245
|
-
let h =
|
|
4231
|
+
let h = Fr(e, l);
|
|
4246
4232
|
if (!h)
|
|
4247
4233
|
h = (s = (i = (n = (r = oe()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
4248
4234
|
else if (typeof h != "string")
|
|
@@ -4253,33 +4239,33 @@ const ge = (e, t) => {
|
|
|
4253
4239
|
return h;
|
|
4254
4240
|
let c = h;
|
|
4255
4241
|
try {
|
|
4256
|
-
c =
|
|
4257
|
-
} catch (
|
|
4258
|
-
|
|
4242
|
+
c = As(h, l).format(a);
|
|
4243
|
+
} catch (d) {
|
|
4244
|
+
d instanceof Error && console.warn(
|
|
4259
4245
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4260
|
-
|
|
4246
|
+
d.message
|
|
4261
4247
|
);
|
|
4262
4248
|
}
|
|
4263
4249
|
return c;
|
|
4264
|
-
},
|
|
4250
|
+
}, Cs = (e, t) => Ps(t).format(e), Is = (e, t) => Bs(t).format(e), Rs = (e, t) => Hs(t).format(e), Ls = (e, t = q()) => Fr(e, t), Ns = ae([J, ue], () => Os);
|
|
4251
|
+
ae([J], () => Cs);
|
|
4252
|
+
ae([J], () => Is);
|
|
4265
4253
|
ae([J], () => Rs);
|
|
4266
|
-
ae([J], () => Ls);
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
const sr = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4271
|
-
function Fs({ withLocale: e, translations: t }) {
|
|
4254
|
+
ae([J, ue], () => Ls);
|
|
4255
|
+
window.emWidgets = { topic: Zn };
|
|
4256
|
+
const nr = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4257
|
+
function Ms({ withLocale: e, translations: t }) {
|
|
4272
4258
|
J.subscribe((r) => {
|
|
4273
4259
|
r == null && (ue.set(t), J.set(e));
|
|
4274
4260
|
});
|
|
4275
4261
|
}
|
|
4276
|
-
function
|
|
4277
|
-
|
|
4262
|
+
function ir(e, t) {
|
|
4263
|
+
Gr(e, t);
|
|
4278
4264
|
}
|
|
4279
|
-
function
|
|
4265
|
+
function Ds(e) {
|
|
4280
4266
|
J.set(e);
|
|
4281
4267
|
}
|
|
4282
|
-
const
|
|
4268
|
+
const sr = {
|
|
4283
4269
|
en: {
|
|
4284
4270
|
goToLoginButton: "Go To Login",
|
|
4285
4271
|
error: "We encountered an issue. Please go to Login to receive your SMS code."
|
|
@@ -4325,13 +4311,13 @@ const ar = {
|
|
|
4325
4311
|
error: "We encountered an issue. Please go to Login to receive your SMS code."
|
|
4326
4312
|
}
|
|
4327
4313
|
};
|
|
4328
|
-
function
|
|
4314
|
+
function Fs(e, t) {
|
|
4329
4315
|
if (e) {
|
|
4330
4316
|
const r = document.createElement("style");
|
|
4331
4317
|
r.innerHTML = t, e.appendChild(r);
|
|
4332
4318
|
}
|
|
4333
4319
|
}
|
|
4334
|
-
function
|
|
4320
|
+
function Us(e, t) {
|
|
4335
4321
|
const r = new URL(t);
|
|
4336
4322
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4337
4323
|
const i = document.createElement("style");
|
|
@@ -4340,7 +4326,7 @@ function ks(e, t) {
|
|
|
4340
4326
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4341
4327
|
});
|
|
4342
4328
|
}
|
|
4343
|
-
function
|
|
4329
|
+
function Gs(e, t, r) {
|
|
4344
4330
|
if (window.emMessageBus) {
|
|
4345
4331
|
const n = document.createElement("style");
|
|
4346
4332
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4360,7 +4346,7 @@ if (typeof window != "undefined") {
|
|
|
4360
4346
|
}
|
|
4361
4347
|
};
|
|
4362
4348
|
};
|
|
4363
|
-
customElements.define = e(customElements.define), import("./GeneralPlayerRegisterFormStep1-
|
|
4349
|
+
customElements.define = e(customElements.define), import("./GeneralPlayerRegisterFormStep1-BukkWYjI.js").then(({ default: t }) => {
|
|
4364
4350
|
!customElements.get("general-player-register-form-step1") && customElements.define("general-player-register-form-step1", t.element);
|
|
4365
4351
|
});
|
|
4366
4352
|
}
|
|
@@ -4376,7 +4362,7 @@ if (typeof window != "undefined") {
|
|
|
4376
4362
|
}
|
|
4377
4363
|
};
|
|
4378
4364
|
};
|
|
4379
|
-
customElements.define = e(customElements.define), import("./GeneralPlayerRegisterFormStep2-
|
|
4365
|
+
customElements.define = e(customElements.define), import("./GeneralPlayerRegisterFormStep2-To7K540j.js").then(({ default: t }) => {
|
|
4380
4366
|
!customElements.get("general-player-register-form-step2") && customElements.define("general-player-register-form-step2", t.element);
|
|
4381
4367
|
});
|
|
4382
4368
|
}
|
|
@@ -4392,7 +4378,7 @@ if (typeof window != "undefined") {
|
|
|
4392
4378
|
}
|
|
4393
4379
|
};
|
|
4394
4380
|
};
|
|
4395
|
-
customElements.define = e(customElements.define), import("./GeneralPlayerRegisterFormStep3-
|
|
4381
|
+
customElements.define = e(customElements.define), import("./GeneralPlayerRegisterFormStep3-CcFGaz76.js").then(({ default: t }) => {
|
|
4396
4382
|
!customElements.get("general-player-register-form-step3") && customElements.define("general-player-register-form-step3", t.element);
|
|
4397
4383
|
});
|
|
4398
4384
|
}
|
|
@@ -4408,70 +4394,70 @@ if (typeof window != "undefined") {
|
|
|
4408
4394
|
}
|
|
4409
4395
|
};
|
|
4410
4396
|
};
|
|
4411
|
-
customElements.define = e(customElements.define), import("./GeneralPlayerSmsVerificationForm-
|
|
4397
|
+
customElements.define = e(customElements.define), import("./GeneralPlayerSmsVerificationForm-DhT7I5pU.js").then(({ default: t }) => {
|
|
4412
4398
|
!customElements.get("general-player-sms-verification-form") && customElements.define("general-player-sms-verification-form", t.element);
|
|
4413
4399
|
});
|
|
4414
4400
|
}
|
|
4415
|
-
function
|
|
4416
|
-
|
|
4401
|
+
function ks(e) {
|
|
4402
|
+
cn(e, "svelte-2vt9w2", ".RegisterFormWrapper{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #F9F8F8));border-radius:15px}.RegisterFormContainer{padding:25px;height:404px;overflow-y:auto;scrollbar-color:var(--emw--color-gray-100, #E6E6E6) var(--emw--color-gray-50, #F9F8F8);scrollbar-width:thin}.RegisterFormContainer.RegisterFormContainerMobile{padding:40px 20px;height:65vh;overflow-y:scroll}.RegisterFormContainer::-webkit-scrollbar{width:6px}.RegisterFormContainer::-webkit-scrollbar-track{background:var(--emw--color-gray-50, #F9F8F8)}.RegisterFormContainer::-webkit-scrollbar-thumb{background:var(--emw--color-gray-100, #E6E6E6)}.RegisterSteps{display:flex;gap:10px;padding:20px 0 30px}.RegisterFirstStepDash,.RegisterSecondStepDash,.RegisterThirdStepDash{width:50px;height:2px;background-color:var(--emw--color-gray-100, #E6E6E6)}.RegisterStepDashColor{background-color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.RegisterStepNext{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;margin-top:24px}.SMSErrorText{height:80%;display:flex;align-items:center}.RegisterConfirmation{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;margin-top:60px}.RegisterConfirmation svg{width:74px}.RegisterConfirmation .RegisterConfirmationTitle{color:var(--emw--color-valid, var(--emw--color-valid, #48952a));font-size:24px;font-weight:var(--emw--font-weight-normal, 400);text-transform:uppercase;margin-bottom:0}.RegisterConfirmation .RegisterConfirmationSubtitle{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));font-size:var(--emw--font-size-medium, 16px);line-height:19px;margin-bottom:24px}.RegisterConfirmation .RegisterConfirmationNote{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));font-size:var(--emw--font-size-medium, 16px);line-height:22px}.RegisterConfirmationGoToLogin{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));width:100%;height:60px;padding:0;text-transform:uppercase;font-size:var(--emw--font-size-medium, 16px);cursor:pointer;margin-top:24px}");
|
|
4417
4403
|
}
|
|
4418
|
-
function
|
|
4404
|
+
function js(e) {
|
|
4419
4405
|
let t, r, n, i, s, o, a, l = (
|
|
4420
4406
|
/*showRegisterStepOne*/
|
|
4421
4407
|
(e[18] || /*showRegisterStepTwo*/
|
|
4422
4408
|
e[19] || /*showRegisterStepThree*/
|
|
4423
|
-
e[20]) &&
|
|
4409
|
+
e[20]) && or(e)
|
|
4424
4410
|
), u = (
|
|
4425
4411
|
/*showRegisterStepOne*/
|
|
4426
|
-
e[18] &&
|
|
4412
|
+
e[18] && ar(e)
|
|
4427
4413
|
), h = (
|
|
4428
4414
|
/*showRegisterStepTwo*/
|
|
4429
|
-
e[19] &&
|
|
4415
|
+
e[19] && ur(e)
|
|
4430
4416
|
), c = (
|
|
4431
4417
|
/*showRegisterStepThree*/
|
|
4432
|
-
e[20] &&
|
|
4418
|
+
e[20] && lr(e)
|
|
4433
4419
|
);
|
|
4434
|
-
function
|
|
4420
|
+
function d(b, S) {
|
|
4435
4421
|
if (
|
|
4436
4422
|
/*smsverification*/
|
|
4437
4423
|
b[7] && /*showSmsVerification*/
|
|
4438
4424
|
b[21]
|
|
4439
4425
|
)
|
|
4440
|
-
return
|
|
4426
|
+
return Vs;
|
|
4441
4427
|
if (
|
|
4442
4428
|
/*smsSendApiFailed*/
|
|
4443
4429
|
b[31]
|
|
4444
4430
|
)
|
|
4445
|
-
return
|
|
4431
|
+
return $s;
|
|
4446
4432
|
}
|
|
4447
|
-
let y =
|
|
4433
|
+
let y = d(e), g = y && y(e), p = (
|
|
4448
4434
|
/*showConfirmation*/
|
|
4449
|
-
e[22] &&
|
|
4435
|
+
e[22] && hr(e)
|
|
4450
4436
|
);
|
|
4451
4437
|
return {
|
|
4452
4438
|
c() {
|
|
4453
|
-
t = B("div"), r = B("div"), l && l.c(), n = G(), u && u.c(), i = G(), h && h.c(), s = G(), c && c.c(), o = G(), g && g.c(), a = G(),
|
|
4439
|
+
t = B("div"), r = B("div"), l && l.c(), n = G(), u && u.c(), i = G(), h && h.c(), s = G(), c && c.c(), o = G(), g && g.c(), a = G(), p && p.c(), x(r, "class", "RegisterFormContainer " + /*isMobile*/
|
|
4454
4440
|
(e[35] ? "RegisterFormContainerMobile" : "")), x(t, "class", "RegisterFormWrapper");
|
|
4455
4441
|
},
|
|
4456
4442
|
m(b, S) {
|
|
4457
|
-
U(b, t, S), E(t, r), l && l.m(r, null), E(r, n), u && u.m(r, null), E(r, i), h && h.m(r, null), E(r, s), c && c.m(r, null), E(r, o), g && g.m(r, null), E(r, a),
|
|
4443
|
+
U(b, t, S), E(t, r), l && l.m(r, null), E(r, n), u && u.m(r, null), E(r, i), h && h.m(r, null), E(r, s), c && c.m(r, null), E(r, o), g && g.m(r, null), E(r, a), p && p.m(r, null);
|
|
4458
4444
|
},
|
|
4459
4445
|
p(b, S) {
|
|
4460
4446
|
/*showRegisterStepOne*/
|
|
4461
4447
|
b[18] || /*showRegisterStepTwo*/
|
|
4462
4448
|
b[19] || /*showRegisterStepThree*/
|
|
4463
|
-
b[20] ? l ? l.p(b, S) : (l =
|
|
4464
|
-
b[18] ? u ? u.p(b, S) : (u =
|
|
4465
|
-
b[19] ? h ? h.p(b, S) : (h =
|
|
4466
|
-
b[20] ? c ? c.p(b, S) : (c =
|
|
4467
|
-
b[22] ?
|
|
4449
|
+
b[20] ? l ? l.p(b, S) : (l = or(b), l.c(), l.m(r, n)) : l && (l.d(1), l = null), /*showRegisterStepOne*/
|
|
4450
|
+
b[18] ? u ? u.p(b, S) : (u = ar(b), u.c(), u.m(r, i)) : u && (u.d(1), u = null), /*showRegisterStepTwo*/
|
|
4451
|
+
b[19] ? h ? h.p(b, S) : (h = ur(b), h.c(), h.m(r, s)) : h && (h.d(1), h = null), /*showRegisterStepThree*/
|
|
4452
|
+
b[20] ? c ? c.p(b, S) : (c = lr(b), c.c(), c.m(r, o)) : c && (c.d(1), c = null), y === (y = d(b)) && g ? g.p(b, S) : (g && g.d(1), g = y && y(b), g && (g.c(), g.m(r, a))), /*showConfirmation*/
|
|
4453
|
+
b[22] ? p ? p.p(b, S) : (p = hr(b), p.c(), p.m(r, null)) : p && (p.d(1), p = null);
|
|
4468
4454
|
},
|
|
4469
4455
|
d(b) {
|
|
4470
|
-
b &&
|
|
4456
|
+
b && M(t), l && l.d(), u && u.d(), h && h.d(), c && c.d(), g && g.d(), p && p.d();
|
|
4471
4457
|
}
|
|
4472
4458
|
};
|
|
4473
4459
|
}
|
|
4474
|
-
function
|
|
4460
|
+
function or(e) {
|
|
4475
4461
|
let t, r, n, i, s, o, a, l, u;
|
|
4476
4462
|
return {
|
|
4477
4463
|
c() {
|
|
@@ -4509,11 +4495,11 @@ function ur(e) {
|
|
|
4509
4495
|
(h[20] ? "RegisterStepDashColor" : "")) && x(l, "class", u);
|
|
4510
4496
|
},
|
|
4511
4497
|
d(h) {
|
|
4512
|
-
h &&
|
|
4498
|
+
h && M(t), e[41](null);
|
|
4513
4499
|
}
|
|
4514
4500
|
};
|
|
4515
4501
|
}
|
|
4516
|
-
function
|
|
4502
|
+
function ar(e) {
|
|
4517
4503
|
let t, r;
|
|
4518
4504
|
return {
|
|
4519
4505
|
c() {
|
|
@@ -4636,11 +4622,11 @@ function lr(e) {
|
|
|
4636
4622
|
);
|
|
4637
4623
|
},
|
|
4638
4624
|
d(n) {
|
|
4639
|
-
n &&
|
|
4625
|
+
n && M(t);
|
|
4640
4626
|
}
|
|
4641
4627
|
};
|
|
4642
4628
|
}
|
|
4643
|
-
function
|
|
4629
|
+
function ur(e) {
|
|
4644
4630
|
let t, r;
|
|
4645
4631
|
return {
|
|
4646
4632
|
c() {
|
|
@@ -4763,11 +4749,11 @@ function hr(e) {
|
|
|
4763
4749
|
);
|
|
4764
4750
|
},
|
|
4765
4751
|
d(n) {
|
|
4766
|
-
n &&
|
|
4752
|
+
n && M(t);
|
|
4767
4753
|
}
|
|
4768
4754
|
};
|
|
4769
4755
|
}
|
|
4770
|
-
function
|
|
4756
|
+
function lr(e) {
|
|
4771
4757
|
let t, r;
|
|
4772
4758
|
return {
|
|
4773
4759
|
c() {
|
|
@@ -4923,11 +4909,11 @@ function fr(e) {
|
|
|
4923
4909
|
);
|
|
4924
4910
|
},
|
|
4925
4911
|
d(n) {
|
|
4926
|
-
n &&
|
|
4912
|
+
n && M(t);
|
|
4927
4913
|
}
|
|
4928
4914
|
};
|
|
4929
4915
|
}
|
|
4930
|
-
function
|
|
4916
|
+
function $s(e) {
|
|
4931
4917
|
let t, r = (
|
|
4932
4918
|
/*$_*/
|
|
4933
4919
|
e[34]("error") + ""
|
|
@@ -4945,22 +4931,22 @@ function Xs(e) {
|
|
|
4945
4931
|
i[34]("error") + "") && ee(n, r);
|
|
4946
4932
|
},
|
|
4947
4933
|
d(i) {
|
|
4948
|
-
i &&
|
|
4934
|
+
i && M(t);
|
|
4949
4935
|
}
|
|
4950
4936
|
};
|
|
4951
4937
|
}
|
|
4952
|
-
function
|
|
4938
|
+
function Vs(e) {
|
|
4953
4939
|
let t;
|
|
4954
4940
|
function r(s, o) {
|
|
4955
4941
|
return (
|
|
4956
4942
|
/*smsSendApiFailed*/
|
|
4957
|
-
s[31] ?
|
|
4943
|
+
s[31] ? Xs : Ws
|
|
4958
4944
|
);
|
|
4959
4945
|
}
|
|
4960
4946
|
let n = r(e), i = n(e);
|
|
4961
4947
|
return {
|
|
4962
4948
|
c() {
|
|
4963
|
-
i.c(), t =
|
|
4949
|
+
i.c(), t = pn();
|
|
4964
4950
|
},
|
|
4965
4951
|
m(s, o) {
|
|
4966
4952
|
i.m(s, o), U(s, t, o);
|
|
@@ -4969,11 +4955,11 @@ function zs(e) {
|
|
|
4969
4955
|
n === (n = r(s)) && i ? i.p(s, o) : (i.d(1), i = n(s), i && (i.c(), i.m(t.parentNode, t)));
|
|
4970
4956
|
},
|
|
4971
4957
|
d(s) {
|
|
4972
|
-
s &&
|
|
4958
|
+
s && M(t), i.d(s);
|
|
4973
4959
|
}
|
|
4974
4960
|
};
|
|
4975
4961
|
}
|
|
4976
|
-
function
|
|
4962
|
+
function Xs(e) {
|
|
4977
4963
|
let t, r = (
|
|
4978
4964
|
/*$_*/
|
|
4979
4965
|
e[34]("error") + ""
|
|
@@ -4991,11 +4977,11 @@ function Ws(e) {
|
|
|
4991
4977
|
i[34]("error") + "") && ee(n, r);
|
|
4992
4978
|
},
|
|
4993
4979
|
d(i) {
|
|
4994
|
-
i &&
|
|
4980
|
+
i && M(t);
|
|
4995
4981
|
}
|
|
4996
4982
|
};
|
|
4997
4983
|
}
|
|
4998
|
-
function
|
|
4984
|
+
function Ws(e) {
|
|
4999
4985
|
let t;
|
|
5000
4986
|
return {
|
|
5001
4987
|
c() {
|
|
@@ -5096,30 +5082,30 @@ function Zs(e) {
|
|
|
5096
5082
|
);
|
|
5097
5083
|
},
|
|
5098
5084
|
d(r) {
|
|
5099
|
-
r &&
|
|
5085
|
+
r && M(t);
|
|
5100
5086
|
}
|
|
5101
5087
|
};
|
|
5102
5088
|
}
|
|
5103
|
-
function
|
|
5104
|
-
let t, r, n, i, s, o, a, l, u, h, c,
|
|
5089
|
+
function hr(e) {
|
|
5090
|
+
let t, r, n, i, s, o, a, l, u, h, c, d, y, g, p, b, S, O = (
|
|
5105
5091
|
/*$_*/
|
|
5106
5092
|
e[34]("goToLoginButton") + ""
|
|
5107
|
-
), A, L,
|
|
5093
|
+
), A, L, N;
|
|
5108
5094
|
return {
|
|
5109
5095
|
c() {
|
|
5110
5096
|
t = B("div"), r = Te("svg"), n = Te("defs"), i = Te("style"), s = V(".a{fill:#var(--emw--color-valid, var(--emw--color-green, #48952a));}"), o = Te("path"), a = G(), l = B("h2"), u = V(
|
|
5111
5097
|
/*accountCreationTitle*/
|
|
5112
5098
|
e[23]
|
|
5113
|
-
), h = G(), c = B("p"),
|
|
5099
|
+
), h = G(), c = B("p"), d = V(
|
|
5114
5100
|
/*accountCreationSubTitle*/
|
|
5115
5101
|
e[24]
|
|
5116
|
-
), y = G(), g = B("p"),
|
|
5102
|
+
), y = G(), g = B("p"), p = V(
|
|
5117
5103
|
/*accountCreationMessage*/
|
|
5118
5104
|
e[25]
|
|
5119
5105
|
), b = G(), S = B("button"), A = V(O), x(o, "class", "a"), x(o, "d", "M29.325,51,0,21.675l5.95-5.95,23.375,22.95L68,0l5.95,5.95Z"), x(r, "xmlns", "http://www.w3.org/2000/svg"), x(r, "viewBox", "0 0 73.95 51"), x(l, "class", "RegisterConfirmationTitle"), x(c, "class", "RegisterConfirmationSubtitle"), x(g, "class", "RegisterConfirmationNote"), x(S, "class", "RegisterConfirmationGoToLogin"), x(t, "class", "RegisterConfirmation");
|
|
5120
5106
|
},
|
|
5121
5107
|
m(C, D) {
|
|
5122
|
-
U(C, t, D), E(t, r), E(r, n), E(n, i), E(i, s), E(r, o), E(t, a), E(t, l), E(l, u), E(t, h), E(t, c), E(c,
|
|
5108
|
+
U(C, t, D), E(t, r), E(r, n), E(n, i), E(i, s), E(r, o), E(t, a), E(t, l), E(l, u), E(t, h), E(t, c), E(c, d), E(t, y), E(t, g), E(g, p), E(t, b), E(t, S), E(S, A), L || (N = gn(
|
|
5123
5109
|
S,
|
|
5124
5110
|
"click",
|
|
5125
5111
|
/*switchToLogin*/
|
|
@@ -5134,12 +5120,12 @@ function cr(e) {
|
|
|
5134
5120
|
C[23]
|
|
5135
5121
|
), D[0] & /*accountCreationSubTitle*/
|
|
5136
5122
|
16777216 && ee(
|
|
5137
|
-
|
|
5123
|
+
d,
|
|
5138
5124
|
/*accountCreationSubTitle*/
|
|
5139
5125
|
C[24]
|
|
5140
5126
|
), D[0] & /*accountCreationMessage*/
|
|
5141
5127
|
33554432 && ee(
|
|
5142
|
-
|
|
5128
|
+
p,
|
|
5143
5129
|
/*accountCreationMessage*/
|
|
5144
5130
|
C[25]
|
|
5145
5131
|
), D[1] & /*$_*/
|
|
@@ -5147,14 +5133,14 @@ function cr(e) {
|
|
|
5147
5133
|
C[34]("goToLoginButton") + "") && ee(A, O);
|
|
5148
5134
|
},
|
|
5149
5135
|
d(C) {
|
|
5150
|
-
C &&
|
|
5136
|
+
C && M(t), L = !1, N();
|
|
5151
5137
|
}
|
|
5152
5138
|
};
|
|
5153
5139
|
}
|
|
5154
|
-
function
|
|
5140
|
+
function zs(e) {
|
|
5155
5141
|
let t;
|
|
5156
5142
|
function r(s, o) {
|
|
5157
|
-
return
|
|
5143
|
+
return js;
|
|
5158
5144
|
}
|
|
5159
5145
|
let i = r()(e);
|
|
5160
5146
|
return {
|
|
@@ -5170,48 +5156,48 @@ function Js(e) {
|
|
|
5170
5156
|
i: k,
|
|
5171
5157
|
o: k,
|
|
5172
5158
|
d(s) {
|
|
5173
|
-
s &&
|
|
5159
|
+
s && M(t), i.d(), e[42](null);
|
|
5174
5160
|
}
|
|
5175
5161
|
};
|
|
5176
5162
|
}
|
|
5177
|
-
let
|
|
5178
|
-
function
|
|
5163
|
+
let Zs = "Please use this code {0} to activate your account";
|
|
5164
|
+
function Js(e, t, r) {
|
|
5179
5165
|
let n;
|
|
5180
|
-
|
|
5181
|
-
let { endpoint: i = "" } = t, { cmsendpoint: s = "" } = t, { env: o = "" } = t, { session: a = "" } = t, { trackedanalyticsdata: l = "" } = t, { captchakey: u = "" } = t, { lang: h = "en" } = t, { licenseyears: c = "" } = t, { disabledfields:
|
|
5182
|
-
|
|
5183
|
-
const
|
|
5166
|
+
fn(e, Ns, (f) => r(34, n = f));
|
|
5167
|
+
let { endpoint: i = "" } = t, { cmsendpoint: s = "" } = t, { env: o = "" } = t, { session: a = "" } = t, { trackedanalyticsdata: l = "" } = t, { captchakey: u = "" } = t, { lang: h = "en" } = t, { licenseyears: c = "" } = t, { disabledfields: d = "" } = t, { defaultoptions: y = "" } = t, { smsverification: g = "false" } = t, { simplepasswordvalidation: p = "false" } = t, { userroles: b = "" } = t, { mbsource: S } = t, { clientstyling: O = "" } = t, { clientstylingurl: A = "" } = t, { translationurl: L = "" } = t, { savecredentials: N = "" } = t, { custominputtextswitch: C = "false" } = t, { personalidlength: D = "13" } = t, j, bt = "", Ge = !0, he = !1, ye = !1, ke = !1, je = !1, ve, yt = !1, vt = "", _t = "", Et = "", wt = window.navigator.userAgent, Wr = nr(wt) !== "PC", $ = {}, St = !1, xt = !1, $e = "false", Tt = "false", Ht = "false", Bt = "false", Pt = "", At, _e = !1, Ot, Ee;
|
|
5168
|
+
Ms({ withLocale: "en", translations: {} });
|
|
5169
|
+
const zr = () => {
|
|
5184
5170
|
fetch(L).then((H) => H.json()).then((H) => {
|
|
5185
5171
|
Object.keys(H).forEach((I) => {
|
|
5186
|
-
|
|
5172
|
+
ir(I, H[I]);
|
|
5187
5173
|
});
|
|
5188
5174
|
}).catch((H) => {
|
|
5189
5175
|
console.log(H);
|
|
5190
5176
|
});
|
|
5191
5177
|
};
|
|
5192
|
-
Object.keys(
|
|
5193
|
-
|
|
5178
|
+
Object.keys(sr).forEach((f) => {
|
|
5179
|
+
ir(f, sr[f]);
|
|
5194
5180
|
});
|
|
5195
|
-
const
|
|
5181
|
+
const Zr = () => {
|
|
5196
5182
|
fetch(`${i}/v1/player/consentRequirements`).then((f) => f.json()).then((f) => {
|
|
5197
5183
|
f.items.length > 0 ? (r(26, $e = "true"), f.items.forEach((H) => {
|
|
5198
5184
|
switch (H.tagCode) {
|
|
5199
5185
|
case "termsandconditions":
|
|
5200
|
-
r(27,
|
|
5186
|
+
r(27, Tt = "true");
|
|
5201
5187
|
break;
|
|
5202
5188
|
case "sms":
|
|
5203
|
-
r(28,
|
|
5189
|
+
r(28, Ht = "true");
|
|
5204
5190
|
break;
|
|
5205
5191
|
case "emailmarketing":
|
|
5206
|
-
r(29,
|
|
5192
|
+
r(29, Bt = "true");
|
|
5207
5193
|
break;
|
|
5208
5194
|
}
|
|
5209
5195
|
})) : r(26, $e = "false");
|
|
5210
5196
|
});
|
|
5211
|
-
},
|
|
5212
|
-
let f = new URL(`${s}/${h}/login-register-content?env=${o}`), H =
|
|
5197
|
+
}, Jr = () => {
|
|
5198
|
+
let f = new URL(`${s}/${h}/login-register-content?env=${o}`), H = nr(wt);
|
|
5213
5199
|
H && (H === "PC" ? f.searchParams.append("device", "dk") : f.searchParams.append("device", "mtWeb")), fetch(f.href).then((I) => I.json()).then((I) => {
|
|
5214
|
-
ve = I.registerData, r(23,
|
|
5200
|
+
ve = I.registerData, r(23, vt = ve.title), r(24, _t = ve.subtitle), r(25, Et = ve.content);
|
|
5215
5201
|
}).catch((I) => {
|
|
5216
5202
|
console.error(I);
|
|
5217
5203
|
});
|
|
@@ -5219,19 +5205,19 @@ function Qs(e, t, r) {
|
|
|
5219
5205
|
Ee.scrollIntoView();
|
|
5220
5206
|
}, fe = (f) => {
|
|
5221
5207
|
for (const H in f)
|
|
5222
|
-
$[H] = f[H], H === "mobile" && r(32,
|
|
5208
|
+
$[H] = f[H], H === "mobile" && r(32, Ot = `${f[H].prefix}${f[H].number}`);
|
|
5223
5209
|
$.affiliateMarker = $.promoCode ? $.promoCode : l != null ? l : "";
|
|
5224
|
-
},
|
|
5210
|
+
}, Ct = (f) => {
|
|
5225
5211
|
if (f.data)
|
|
5226
5212
|
switch (f.data.type) {
|
|
5227
5213
|
case "RegisterStepOne":
|
|
5228
|
-
fe(f.data.registerStepOneData), we(), r(18, Ge = !1), r(19, he = !0),
|
|
5214
|
+
fe(f.data.registerStepOneData), we(), r(18, Ge = !1), r(19, he = !0), St == !1 ? St = !0 : window.postMessage({ type: "StepTwoDataBackup", userData: $ }, window.location.href);
|
|
5229
5215
|
break;
|
|
5230
5216
|
case "RegisterStepTwo":
|
|
5231
|
-
fe(f.data.registerStepTwoData), we(), r(19, he = !1), r(20, ye = !0),
|
|
5217
|
+
fe(f.data.registerStepTwoData), we(), r(19, he = !1), r(20, ye = !0), xt == !1 ? xt = !0 : window.postMessage({ type: "StepThreeDataBackup", userData: $ }, window.location.href);
|
|
5232
5218
|
break;
|
|
5233
5219
|
case "RegisterStepThree":
|
|
5234
|
-
fe(f.data.registerStepThreeData),
|
|
5220
|
+
fe(f.data.registerStepThreeData), Qr($);
|
|
5235
5221
|
break;
|
|
5236
5222
|
case "SmsHasBeenValidated":
|
|
5237
5223
|
r(22, je = !0), r(21, ke = !1);
|
|
@@ -5243,9 +5229,9 @@ function Qs(e, t, r) {
|
|
|
5243
5229
|
fe(f.data.registerStepThreeData), we(), r(19, he = !0), r(20, ye = !1), window.postMessage({ type: "StepTwoDataBackup", userData: $ }, window.location.href);
|
|
5244
5230
|
break;
|
|
5245
5231
|
}
|
|
5246
|
-
},
|
|
5232
|
+
}, qr = () => {
|
|
5247
5233
|
typeof gtag == "function" && gtag("event", "Register", { context: "GeneralPlayerRegisterForm" });
|
|
5248
|
-
},
|
|
5234
|
+
}, Qr = (f) => Se(this, null, function* () {
|
|
5249
5235
|
f.language = h;
|
|
5250
5236
|
let H = {
|
|
5251
5237
|
method: "PUT",
|
|
@@ -5255,16 +5241,16 @@ function Qs(e, t, r) {
|
|
|
5255
5241
|
Accept: "application/json"
|
|
5256
5242
|
},
|
|
5257
5243
|
body: JSON.stringify(f)
|
|
5258
|
-
}, I = yield fetch(`${i}/v1/player/register`, H),
|
|
5259
|
-
I.ok ? (r(20, ye = !1), g === "false" ? r(22, je = !0) : (r(17,
|
|
5244
|
+
}, I = yield fetch(`${i}/v1/player/register`, H), z = yield I.json();
|
|
5245
|
+
I.ok ? (r(20, ye = !1), g === "false" ? r(22, je = !0) : (r(17, bt = z.id), Yr(f, z.id)), f.username, f.password, qr()) : (Pt = z.error.substring(z.error.indexOf("errorMessage") + 13, z.error.length), yt = !0, window.postMessage(
|
|
5260
5246
|
{
|
|
5261
5247
|
type: "ShowRegistrationError",
|
|
5262
|
-
showError:
|
|
5263
|
-
error:
|
|
5248
|
+
showError: yt,
|
|
5249
|
+
error: Pt
|
|
5264
5250
|
},
|
|
5265
5251
|
window.location.href
|
|
5266
5252
|
));
|
|
5267
|
-
}),
|
|
5253
|
+
}), Yr = (f, H) => Se(this, null, function* () {
|
|
5268
5254
|
localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3)));
|
|
5269
5255
|
try {
|
|
5270
5256
|
const I = yield fetch(`${i}/v1/player/sms/token`, {
|
|
@@ -5275,107 +5261,107 @@ function Qs(e, t, r) {
|
|
|
5275
5261
|
},
|
|
5276
5262
|
body: JSON.stringify({
|
|
5277
5263
|
userId: H,
|
|
5278
|
-
messageTemplate:
|
|
5264
|
+
messageTemplate: Zs,
|
|
5279
5265
|
destination: `${f.mobile.prefix}${f.mobile.number}`
|
|
5280
5266
|
})
|
|
5281
|
-
}),
|
|
5267
|
+
}), z = yield I.json();
|
|
5282
5268
|
if (I.ok) {
|
|
5283
|
-
r(30,
|
|
5284
|
-
let
|
|
5269
|
+
r(30, At = z.id);
|
|
5270
|
+
let qs = z.maxValidationAttempts;
|
|
5285
5271
|
r(21, ke = !0), r(31, _e = !1);
|
|
5286
5272
|
} else
|
|
5287
5273
|
throw r(31, _e = !0), new Error("Failed to fetch");
|
|
5288
5274
|
} catch (I) {
|
|
5289
5275
|
r(31, _e = !0), console.error(I);
|
|
5290
5276
|
}
|
|
5291
|
-
}),
|
|
5292
|
-
|
|
5293
|
-
},
|
|
5277
|
+
}), Kr = () => {
|
|
5278
|
+
d.split(",");
|
|
5279
|
+
}, en = () => {
|
|
5294
5280
|
window.postMessage({ type: "ToLogin" }, window.location.href);
|
|
5295
|
-
},
|
|
5296
|
-
|
|
5281
|
+
}, tn = () => {
|
|
5282
|
+
Ds(h);
|
|
5297
5283
|
};
|
|
5298
|
-
|
|
5299
|
-
window.removeEventListener("message",
|
|
5284
|
+
_n(() => (window.addEventListener("message", Ct, !1), () => {
|
|
5285
|
+
window.removeEventListener("message", Ct);
|
|
5300
5286
|
}));
|
|
5301
|
-
function
|
|
5287
|
+
function rn(f) {
|
|
5302
5288
|
Ie[f ? "unshift" : "push"](() => {
|
|
5303
5289
|
Ee = f, r(33, Ee);
|
|
5304
5290
|
});
|
|
5305
5291
|
}
|
|
5306
|
-
function
|
|
5292
|
+
function nn(f) {
|
|
5307
5293
|
Ie[f ? "unshift" : "push"](() => {
|
|
5308
5294
|
j = f, r(16, j);
|
|
5309
5295
|
});
|
|
5310
5296
|
}
|
|
5311
5297
|
return e.$$set = (f) => {
|
|
5312
|
-
"endpoint" in f && r(0, i = f.endpoint), "cmsendpoint" in f && r(37, s = f.cmsendpoint), "env" in f && r(38, o = f.env), "session" in f && r(1, a = f.session), "trackedanalyticsdata" in f && r(39, l = f.trackedanalyticsdata), "captchakey" in f && r(2, u = f.captchakey), "lang" in f && r(3, h = f.lang), "licenseyears" in f && r(4, c = f.licenseyears), "disabledfields" in f && r(5,
|
|
5298
|
+
"endpoint" in f && r(0, i = f.endpoint), "cmsendpoint" in f && r(37, s = f.cmsendpoint), "env" in f && r(38, o = f.env), "session" in f && r(1, a = f.session), "trackedanalyticsdata" in f && r(39, l = f.trackedanalyticsdata), "captchakey" in f && r(2, u = f.captchakey), "lang" in f && r(3, h = f.lang), "licenseyears" in f && r(4, c = f.licenseyears), "disabledfields" in f && r(5, d = f.disabledfields), "defaultoptions" in f && r(6, y = f.defaultoptions), "smsverification" in f && r(7, g = f.smsverification), "simplepasswordvalidation" in f && r(8, p = f.simplepasswordvalidation), "userroles" in f && r(40, b = f.userroles), "mbsource" in f && r(9, S = f.mbsource), "clientstyling" in f && r(10, O = f.clientstyling), "clientstylingurl" in f && r(11, A = f.clientstylingurl), "translationurl" in f && r(12, L = f.translationurl), "savecredentials" in f && r(13, N = f.savecredentials), "custominputtextswitch" in f && r(14, C = f.custominputtextswitch), "personalidlength" in f && r(15, D = f.personalidlength);
|
|
5313
5299
|
}, e.$$.update = () => {
|
|
5314
5300
|
e.$$.dirty[0] & /*endpoint*/
|
|
5315
|
-
1 && i &&
|
|
5301
|
+
1 && i && Zr(), e.$$.dirty[0] & /*lang*/
|
|
5316
5302
|
8 | e.$$.dirty[1] & /*cmsendpoint, env, userroles*/
|
|
5317
|
-
704 && s && h && o && b &&
|
|
5303
|
+
704 && s && h && o && b && Jr(), e.$$.dirty[0] & /*playerid, session*/
|
|
5318
5304
|
131074, e.$$.dirty[0] & /*lang*/
|
|
5319
|
-
8 && h &&
|
|
5320
|
-
32 &&
|
|
5321
|
-
66560 && O && j &&
|
|
5322
|
-
67584 && A && j &&
|
|
5323
|
-
66048 && S && j &&
|
|
5324
|
-
4096 && L &&
|
|
5305
|
+
8 && h && tn(), e.$$.dirty[0] & /*disabledfields*/
|
|
5306
|
+
32 && d && Kr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5307
|
+
66560 && O && j && Fs(j, O), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5308
|
+
67584 && A && j && Us(j, A), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5309
|
+
66048 && S && j && Gs(j, `${S}.Style`), e.$$.dirty[0] & /*translationurl*/
|
|
5310
|
+
4096 && L && zr();
|
|
5325
5311
|
}, [
|
|
5326
5312
|
i,
|
|
5327
5313
|
a,
|
|
5328
5314
|
u,
|
|
5329
5315
|
h,
|
|
5330
5316
|
c,
|
|
5331
|
-
|
|
5317
|
+
d,
|
|
5332
5318
|
y,
|
|
5333
5319
|
g,
|
|
5334
|
-
|
|
5320
|
+
p,
|
|
5335
5321
|
S,
|
|
5336
5322
|
O,
|
|
5337
5323
|
A,
|
|
5338
5324
|
L,
|
|
5339
|
-
|
|
5325
|
+
N,
|
|
5340
5326
|
C,
|
|
5341
5327
|
D,
|
|
5342
5328
|
j,
|
|
5343
|
-
|
|
5329
|
+
bt,
|
|
5344
5330
|
Ge,
|
|
5345
5331
|
he,
|
|
5346
5332
|
ye,
|
|
5347
5333
|
ke,
|
|
5348
5334
|
je,
|
|
5335
|
+
vt,
|
|
5336
|
+
_t,
|
|
5349
5337
|
Et,
|
|
5350
|
-
wt,
|
|
5351
|
-
St,
|
|
5352
5338
|
$e,
|
|
5339
|
+
Tt,
|
|
5340
|
+
Ht,
|
|
5353
5341
|
Bt,
|
|
5354
|
-
Pt,
|
|
5355
5342
|
At,
|
|
5356
|
-
Ct,
|
|
5357
5343
|
_e,
|
|
5358
|
-
|
|
5344
|
+
Ot,
|
|
5359
5345
|
Ee,
|
|
5360
5346
|
n,
|
|
5361
|
-
|
|
5362
|
-
|
|
5347
|
+
Wr,
|
|
5348
|
+
en,
|
|
5363
5349
|
s,
|
|
5364
5350
|
o,
|
|
5365
5351
|
l,
|
|
5366
5352
|
b,
|
|
5367
|
-
|
|
5368
|
-
|
|
5353
|
+
rn,
|
|
5354
|
+
nn
|
|
5369
5355
|
];
|
|
5370
5356
|
}
|
|
5371
|
-
class
|
|
5357
|
+
class Xr extends In {
|
|
5372
5358
|
constructor(t) {
|
|
5373
|
-
super(),
|
|
5359
|
+
super(), On(
|
|
5374
5360
|
this,
|
|
5375
5361
|
t,
|
|
5376
|
-
Qs,
|
|
5377
5362
|
Js,
|
|
5378
|
-
|
|
5363
|
+
zs,
|
|
5364
|
+
cr,
|
|
5379
5365
|
{
|
|
5380
5366
|
endpoint: 0,
|
|
5381
5367
|
cmsendpoint: 37,
|
|
@@ -5398,7 +5384,7 @@ class Zr extends Mn {
|
|
|
5398
5384
|
custominputtextswitch: 14,
|
|
5399
5385
|
personalidlength: 15
|
|
5400
5386
|
},
|
|
5401
|
-
|
|
5387
|
+
ks,
|
|
5402
5388
|
[-1, -1, -1]
|
|
5403
5389
|
);
|
|
5404
5390
|
}
|
|
@@ -5523,47 +5509,47 @@ class Zr extends Mn {
|
|
|
5523
5509
|
this.$$set({ personalidlength: t }), P();
|
|
5524
5510
|
}
|
|
5525
5511
|
}
|
|
5526
|
-
|
|
5527
|
-
const
|
|
5512
|
+
Cn(Xr, { endpoint: {}, cmsendpoint: {}, env: {}, session: {}, trackedanalyticsdata: {}, captchakey: {}, lang: {}, licenseyears: {}, disabledfields: {}, defaultoptions: {}, smsverification: {}, simplepasswordvalidation: {}, userroles: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, savecredentials: {}, custominputtextswitch: {}, personalidlength: {} }, [], [], !0);
|
|
5513
|
+
const io = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5528
5514
|
__proto__: null,
|
|
5529
|
-
default:
|
|
5515
|
+
default: Xr
|
|
5530
5516
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5531
5517
|
export {
|
|
5532
5518
|
J as $,
|
|
5533
|
-
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
|
|
5519
|
+
Ke as A,
|
|
5520
|
+
to as B,
|
|
5521
|
+
no as C,
|
|
5522
|
+
Ks as D,
|
|
5523
|
+
pn as E,
|
|
5524
|
+
ro as F,
|
|
5539
5525
|
ue as G,
|
|
5540
|
-
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
|
|
5526
|
+
Ys as H,
|
|
5527
|
+
io as I,
|
|
5528
|
+
In as S,
|
|
5529
|
+
Gr as a,
|
|
5530
|
+
cn as b,
|
|
5531
|
+
Cn as c,
|
|
5546
5532
|
G as d,
|
|
5547
5533
|
B as e,
|
|
5548
5534
|
P as f,
|
|
5549
5535
|
x as g,
|
|
5550
5536
|
U as h,
|
|
5551
|
-
|
|
5537
|
+
On as i,
|
|
5552
5538
|
E as j,
|
|
5553
|
-
|
|
5554
|
-
|
|
5539
|
+
eo as k,
|
|
5540
|
+
gn as l,
|
|
5555
5541
|
ee as m,
|
|
5556
5542
|
k as n,
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5543
|
+
M as o,
|
|
5544
|
+
fn as p,
|
|
5545
|
+
_n as q,
|
|
5560
5546
|
be as r,
|
|
5561
|
-
|
|
5547
|
+
cr as s,
|
|
5562
5548
|
V as t,
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5549
|
+
Ie as u,
|
|
5550
|
+
Fs as v,
|
|
5551
|
+
Us as w,
|
|
5566
5552
|
Gs as x,
|
|
5567
5553
|
Te as y,
|
|
5568
|
-
|
|
5554
|
+
Ns as z
|
|
5569
5555
|
};
|