@everymatrix/player-account-vault 0.19.1 → 0.19.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{PlayerAccountVault-CSP65fa1.js → PlayerAccountVault-6Mqhrl7f.js} +950 -961
- package/components/{PlayerAccountVault-C3Oq-BhF.js → PlayerAccountVault-BOsBGYrX.js} +1031 -1042
- package/components/PlayerAccountVault-Y2Ksm-5p.cjs +16 -0
- package/es2015/player-account-vault.cjs +1 -1
- package/es2015/player-account-vault.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountVault-DmQJYjR3.cjs +0 -16
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
function
|
|
1
|
+
function ae() {
|
|
2
2
|
}
|
|
3
3
|
function xn(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Vt() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
9
|
function _e(e) {
|
|
10
10
|
e.forEach(xn);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Ut(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function vn(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Zn(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function En(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const r of t)
|
|
24
24
|
r(void 0);
|
|
25
|
-
return
|
|
25
|
+
return ae;
|
|
26
26
|
}
|
|
27
27
|
const n = e.subscribe(...t);
|
|
28
28
|
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
e.$$.on_destroy.push(
|
|
30
|
+
function qn(e, t, n) {
|
|
31
|
+
e.$$.on_destroy.push(En(t, n));
|
|
32
32
|
}
|
|
33
33
|
function m(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const r =
|
|
36
|
+
function Jn(e, t, n) {
|
|
37
|
+
const r = Qn(e);
|
|
38
38
|
if (!r.getElementById(t)) {
|
|
39
39
|
const i = E("style");
|
|
40
|
-
i.id = t, i.textContent = n,
|
|
40
|
+
i.id = t, i.textContent = n, Yn(r, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function Qn(e) {
|
|
44
44
|
if (!e)
|
|
45
45
|
return document;
|
|
46
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -50,61 +50,61 @@ function Yn(e) {
|
|
|
50
50
|
t
|
|
51
51
|
) : e.ownerDocument;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function Yn(e, t) {
|
|
54
54
|
return m(
|
|
55
55
|
/** @type {Document} */
|
|
56
56
|
e.head || e,
|
|
57
57
|
t
|
|
58
58
|
), t.sheet;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function Q(e, t, n) {
|
|
61
61
|
e.insertBefore(t, n || null);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Z(e) {
|
|
64
64
|
e.parentNode && e.parentNode.removeChild(e);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function vt(e, t) {
|
|
67
67
|
for (let n = 0; n < e.length; n += 1)
|
|
68
68
|
e[n] && e[n].d(t);
|
|
69
69
|
}
|
|
70
70
|
function E(e) {
|
|
71
71
|
return document.createElement(e);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function zt(e) {
|
|
74
74
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function j(e) {
|
|
77
77
|
return document.createTextNode(e);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
return
|
|
79
|
+
function R() {
|
|
80
|
+
return j(" ");
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
return
|
|
82
|
+
function _n() {
|
|
83
|
+
return j("");
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function ee(e, t, n, r) {
|
|
86
86
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function T(e, t, n) {
|
|
89
89
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function ht(e) {
|
|
92
92
|
return e === "" ? null : +e;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function Kn(e) {
|
|
95
95
|
return Array.from(e.childNodes);
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function W(e, t) {
|
|
98
98
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
99
99
|
t);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function xe(e, t) {
|
|
102
102
|
e.value = t ?? "";
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function Xt(e, t, n, r) {
|
|
105
105
|
n == null ? e.style.removeProperty(t) : e.style.setProperty(t, n, "");
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function ot(e, t, n) {
|
|
108
108
|
for (let r = 0; r < e.options.length; r += 1) {
|
|
109
109
|
const i = e.options[r];
|
|
110
110
|
if (i.__value === t) {
|
|
@@ -114,14 +114,14 @@ function st(e, t, n) {
|
|
|
114
114
|
}
|
|
115
115
|
(!n || t !== void 0) && (e.selectedIndex = -1);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function Wt(e) {
|
|
118
118
|
const t = e.querySelector(":checked");
|
|
119
119
|
return t && t.__value;
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function $(e, t, n) {
|
|
122
122
|
e.classList.toggle(t, !!n);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function er(e) {
|
|
125
125
|
const t = {};
|
|
126
126
|
return e.childNodes.forEach(
|
|
127
127
|
/** @param {Element} node */
|
|
@@ -130,90 +130,90 @@ function tr(e) {
|
|
|
130
130
|
}
|
|
131
131
|
), t;
|
|
132
132
|
}
|
|
133
|
-
let
|
|
133
|
+
let Ft;
|
|
134
134
|
function Ye(e) {
|
|
135
|
-
|
|
135
|
+
Ft = e;
|
|
136
136
|
}
|
|
137
|
-
const
|
|
138
|
-
let
|
|
139
|
-
const
|
|
140
|
-
let
|
|
141
|
-
function
|
|
142
|
-
|
|
137
|
+
const Re = [], ft = [];
|
|
138
|
+
let De = [];
|
|
139
|
+
const Zt = [], tr = /* @__PURE__ */ Promise.resolve();
|
|
140
|
+
let St = !1;
|
|
141
|
+
function nr() {
|
|
142
|
+
St || (St = !0, tr.then(le));
|
|
143
143
|
}
|
|
144
144
|
function Ke(e) {
|
|
145
|
-
|
|
145
|
+
De.push(e);
|
|
146
146
|
}
|
|
147
|
-
const
|
|
148
|
-
let
|
|
149
|
-
function
|
|
150
|
-
if (
|
|
147
|
+
const Et = /* @__PURE__ */ new Set();
|
|
148
|
+
let Oe = 0;
|
|
149
|
+
function le() {
|
|
150
|
+
if (Oe !== 0)
|
|
151
151
|
return;
|
|
152
|
-
const e =
|
|
152
|
+
const e = Ft;
|
|
153
153
|
do {
|
|
154
154
|
try {
|
|
155
|
-
for (;
|
|
156
|
-
const t =
|
|
157
|
-
|
|
155
|
+
for (; Oe < Re.length; ) {
|
|
156
|
+
const t = Re[Oe];
|
|
157
|
+
Oe++, Ye(t), rr(t.$$);
|
|
158
158
|
}
|
|
159
159
|
} catch (t) {
|
|
160
|
-
throw
|
|
160
|
+
throw Re.length = 0, Oe = 0, t;
|
|
161
161
|
}
|
|
162
|
-
for (Ye(null),
|
|
163
|
-
|
|
164
|
-
for (let t = 0; t <
|
|
165
|
-
const n =
|
|
166
|
-
|
|
162
|
+
for (Ye(null), Re.length = 0, Oe = 0; ft.length; )
|
|
163
|
+
ft.pop()();
|
|
164
|
+
for (let t = 0; t < De.length; t += 1) {
|
|
165
|
+
const n = De[t];
|
|
166
|
+
Et.has(n) || (Et.add(n), n());
|
|
167
167
|
}
|
|
168
|
-
|
|
169
|
-
} while (
|
|
170
|
-
for (;
|
|
171
|
-
|
|
172
|
-
|
|
168
|
+
De.length = 0;
|
|
169
|
+
} while (Re.length);
|
|
170
|
+
for (; Zt.length; )
|
|
171
|
+
Zt.pop()();
|
|
172
|
+
St = !1, Et.clear(), Ye(e);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function rr(e) {
|
|
175
175
|
if (e.fragment !== null) {
|
|
176
176
|
e.update(), _e(e.before_update);
|
|
177
177
|
const t = e.dirty;
|
|
178
178
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ke);
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function ir(e) {
|
|
182
182
|
const t = [], n = [];
|
|
183
|
-
|
|
183
|
+
De.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), De = t;
|
|
184
184
|
}
|
|
185
|
-
const
|
|
186
|
-
function
|
|
187
|
-
e && e.i && (
|
|
185
|
+
const ar = /* @__PURE__ */ new Set();
|
|
186
|
+
function or(e, t) {
|
|
187
|
+
e && e.i && (ar.delete(e), e.i(t));
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function Le(e) {
|
|
190
190
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function sr(e, t, n) {
|
|
193
193
|
const { fragment: r, after_update: i } = e.$$;
|
|
194
194
|
r && r.m(t, n), Ke(() => {
|
|
195
|
-
const a = e.$$.on_mount.map(xn).filter(
|
|
195
|
+
const a = e.$$.on_mount.map(xn).filter(Ut);
|
|
196
196
|
e.$$.on_destroy ? e.$$.on_destroy.push(...a) : _e(a), e.$$.on_mount = [];
|
|
197
197
|
}), i.forEach(Ke);
|
|
198
198
|
}
|
|
199
199
|
function ur(e, t) {
|
|
200
200
|
const n = e.$$;
|
|
201
|
-
n.fragment !== null && (
|
|
201
|
+
n.fragment !== null && (ir(n.after_update), _e(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
202
202
|
}
|
|
203
|
-
function
|
|
204
|
-
e.$$.dirty[0] === -1 && (
|
|
203
|
+
function lr(e, t) {
|
|
204
|
+
e.$$.dirty[0] === -1 && (Re.push(e), nr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
205
205
|
}
|
|
206
|
-
function
|
|
207
|
-
const c =
|
|
206
|
+
function cr(e, t, n, r, i, a, o = null, s = [-1]) {
|
|
207
|
+
const c = Ft;
|
|
208
208
|
Ye(e);
|
|
209
|
-
const
|
|
209
|
+
const l = e.$$ = {
|
|
210
210
|
fragment: null,
|
|
211
211
|
ctx: [],
|
|
212
212
|
// state
|
|
213
213
|
props: a,
|
|
214
|
-
update:
|
|
214
|
+
update: ae,
|
|
215
215
|
not_equal: i,
|
|
216
|
-
bound:
|
|
216
|
+
bound: Vt(),
|
|
217
217
|
// lifecycle
|
|
218
218
|
on_mount: [],
|
|
219
219
|
on_destroy: [],
|
|
@@ -222,28 +222,28 @@ function hr(e, t, n, r, i, a, o = null, s = [-1]) {
|
|
|
222
222
|
after_update: [],
|
|
223
223
|
context: new Map(t.context || (c ? c.$$.context : [])),
|
|
224
224
|
// everything else
|
|
225
|
-
callbacks:
|
|
225
|
+
callbacks: Vt(),
|
|
226
226
|
dirty: s,
|
|
227
227
|
skip_bound: !1,
|
|
228
228
|
root: t.target || c.$$.root
|
|
229
229
|
};
|
|
230
|
-
o && o(
|
|
231
|
-
let
|
|
232
|
-
if (
|
|
233
|
-
const
|
|
234
|
-
return
|
|
235
|
-
})
|
|
230
|
+
o && o(l.root);
|
|
231
|
+
let u = !1;
|
|
232
|
+
if (l.ctx = n(e, t.props || {}, (h, d, ...b) => {
|
|
233
|
+
const x = b.length ? b[0] : d;
|
|
234
|
+
return l.ctx && i(l.ctx[h], l.ctx[h] = x) && (!l.skip_bound && l.bound[h] && l.bound[h](x), u && lr(e, h)), d;
|
|
235
|
+
}), l.update(), u = !0, _e(l.before_update), l.fragment = r(l.ctx), t.target) {
|
|
236
236
|
if (t.hydrate) {
|
|
237
|
-
const
|
|
238
|
-
|
|
237
|
+
const h = Kn(t.target);
|
|
238
|
+
l.fragment && l.fragment.l(h), h.forEach(Z);
|
|
239
239
|
} else
|
|
240
|
-
|
|
241
|
-
t.intro &&
|
|
240
|
+
l.fragment && l.fragment.c();
|
|
241
|
+
t.intro && or(e.$$.fragment), sr(e, t.target, t.anchor), le();
|
|
242
242
|
}
|
|
243
243
|
Ye(c);
|
|
244
244
|
}
|
|
245
|
-
let
|
|
246
|
-
typeof HTMLElement == "function" && (
|
|
245
|
+
let wn;
|
|
246
|
+
typeof HTMLElement == "function" && (wn = class extends HTMLElement {
|
|
247
247
|
/** The Svelte component constructor */
|
|
248
248
|
$$ctor;
|
|
249
249
|
/** Slots */
|
|
@@ -285,24 +285,24 @@ typeof HTMLElement == "function" && (Tn = class extends HTMLElement {
|
|
|
285
285
|
let a;
|
|
286
286
|
return {
|
|
287
287
|
c: function() {
|
|
288
|
-
a = E("slot"), i !== "default" &&
|
|
288
|
+
a = E("slot"), i !== "default" && T(a, "name", i);
|
|
289
289
|
},
|
|
290
290
|
/**
|
|
291
291
|
* @param {HTMLElement} target
|
|
292
292
|
* @param {HTMLElement} [anchor]
|
|
293
293
|
*/
|
|
294
|
-
m: function(c,
|
|
295
|
-
|
|
294
|
+
m: function(c, l) {
|
|
295
|
+
Q(c, a, l);
|
|
296
296
|
},
|
|
297
297
|
d: function(c) {
|
|
298
|
-
c &&
|
|
298
|
+
c && Z(a);
|
|
299
299
|
}
|
|
300
300
|
};
|
|
301
301
|
};
|
|
302
302
|
};
|
|
303
303
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
304
304
|
return;
|
|
305
|
-
const t = {}, n =
|
|
305
|
+
const t = {}, n = er(this);
|
|
306
306
|
for (const i of this.$$s)
|
|
307
307
|
i in n && (t[i] = [e(i)]);
|
|
308
308
|
for (const i of this.attributes) {
|
|
@@ -389,8 +389,8 @@ function ut(e, t, n, r) {
|
|
|
389
389
|
return t;
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
|
-
function
|
|
393
|
-
let o = class extends
|
|
392
|
+
function hr(e, t, n, r, i, a) {
|
|
393
|
+
let o = class extends wn {
|
|
394
394
|
constructor() {
|
|
395
395
|
super(e, n, i), this.$$p_d = t;
|
|
396
396
|
}
|
|
@@ -418,7 +418,7 @@ function fr(e, t, n, r, i, a) {
|
|
|
418
418
|
}), e.element = /** @type {any} */
|
|
419
419
|
o, o;
|
|
420
420
|
}
|
|
421
|
-
class
|
|
421
|
+
class fr {
|
|
422
422
|
/**
|
|
423
423
|
* ### PRIVATE API
|
|
424
424
|
*
|
|
@@ -437,7 +437,7 @@ class pr {
|
|
|
437
437
|
$$set = void 0;
|
|
438
438
|
/** @returns {void} */
|
|
439
439
|
$destroy() {
|
|
440
|
-
ur(this, 1), this.$destroy =
|
|
440
|
+
ur(this, 1), this.$destroy = ae;
|
|
441
441
|
}
|
|
442
442
|
/**
|
|
443
443
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -446,8 +446,8 @@ class pr {
|
|
|
446
446
|
* @returns {() => void}
|
|
447
447
|
*/
|
|
448
448
|
$on(t, n) {
|
|
449
|
-
if (!
|
|
450
|
-
return
|
|
449
|
+
if (!Ut(n))
|
|
450
|
+
return ae;
|
|
451
451
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
452
452
|
return r.push(n), () => {
|
|
453
453
|
const i = r.indexOf(n);
|
|
@@ -459,148 +459,148 @@ class pr {
|
|
|
459
459
|
* @returns {void}
|
|
460
460
|
*/
|
|
461
461
|
$set(t) {
|
|
462
|
-
this.$$set && !
|
|
462
|
+
this.$$set && !Zn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
|
-
const
|
|
466
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
467
|
-
const
|
|
468
|
-
function
|
|
465
|
+
const pr = "4";
|
|
466
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(pr);
|
|
467
|
+
const Me = [];
|
|
468
|
+
function mr(e, t) {
|
|
469
469
|
return {
|
|
470
|
-
subscribe:
|
|
470
|
+
subscribe: dt(e, t).subscribe
|
|
471
471
|
};
|
|
472
472
|
}
|
|
473
|
-
function
|
|
473
|
+
function dt(e, t = ae) {
|
|
474
474
|
let n;
|
|
475
475
|
const r = /* @__PURE__ */ new Set();
|
|
476
476
|
function i(s) {
|
|
477
|
-
if (
|
|
478
|
-
const c = !
|
|
479
|
-
for (const
|
|
480
|
-
|
|
477
|
+
if (vn(e, s) && (e = s, n)) {
|
|
478
|
+
const c = !Me.length;
|
|
479
|
+
for (const l of r)
|
|
480
|
+
l[1](), Me.push(l, e);
|
|
481
481
|
if (c) {
|
|
482
|
-
for (let
|
|
483
|
-
|
|
484
|
-
|
|
482
|
+
for (let l = 0; l < Me.length; l += 2)
|
|
483
|
+
Me[l][0](Me[l + 1]);
|
|
484
|
+
Me.length = 0;
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
488
|
function a(s) {
|
|
489
489
|
i(s(e));
|
|
490
490
|
}
|
|
491
|
-
function o(s, c =
|
|
492
|
-
const
|
|
493
|
-
return r.add(
|
|
494
|
-
r.delete(
|
|
491
|
+
function o(s, c = ae) {
|
|
492
|
+
const l = [s, c];
|
|
493
|
+
return r.add(l), r.size === 1 && (n = t(i, a) || ae), s(e), () => {
|
|
494
|
+
r.delete(l), r.size === 0 && n && (n(), n = null);
|
|
495
495
|
};
|
|
496
496
|
}
|
|
497
497
|
return { set: i, update: a, subscribe: o };
|
|
498
498
|
}
|
|
499
|
-
function
|
|
499
|
+
function $e(e, t, n) {
|
|
500
500
|
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
501
501
|
if (!i.every(Boolean))
|
|
502
502
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
503
503
|
const a = t.length < 2;
|
|
504
|
-
return
|
|
504
|
+
return mr(n, (o, s) => {
|
|
505
505
|
let c = !1;
|
|
506
|
-
const
|
|
507
|
-
let
|
|
506
|
+
const l = [];
|
|
507
|
+
let u = 0, h = ae;
|
|
508
508
|
const d = () => {
|
|
509
|
-
if (
|
|
509
|
+
if (u)
|
|
510
510
|
return;
|
|
511
|
-
|
|
512
|
-
const
|
|
513
|
-
a ? o(
|
|
514
|
-
},
|
|
515
|
-
(
|
|
516
|
-
|
|
517
|
-
(
|
|
518
|
-
|
|
511
|
+
h();
|
|
512
|
+
const x = t(r ? l[0] : l, o, s);
|
|
513
|
+
a ? o(x) : h = Ut(x) ? x : ae;
|
|
514
|
+
}, b = i.map(
|
|
515
|
+
(x, I) => En(
|
|
516
|
+
x,
|
|
517
|
+
(F) => {
|
|
518
|
+
l[I] = F, u &= ~(1 << I), c && d();
|
|
519
519
|
},
|
|
520
520
|
() => {
|
|
521
|
-
|
|
521
|
+
u |= 1 << I;
|
|
522
522
|
}
|
|
523
523
|
)
|
|
524
524
|
);
|
|
525
525
|
return c = !0, d(), function() {
|
|
526
|
-
_e(
|
|
526
|
+
_e(b), h(), c = !1;
|
|
527
527
|
};
|
|
528
528
|
});
|
|
529
529
|
}
|
|
530
|
-
function
|
|
531
|
-
return e
|
|
530
|
+
function dr(e) {
|
|
531
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
532
532
|
}
|
|
533
|
-
var
|
|
534
|
-
return
|
|
533
|
+
var gr = function(t) {
|
|
534
|
+
return br(t) && !yr(t);
|
|
535
535
|
};
|
|
536
|
-
function
|
|
536
|
+
function br(e) {
|
|
537
537
|
return !!e && typeof e == "object";
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function yr(e) {
|
|
540
540
|
var t = Object.prototype.toString.call(e);
|
|
541
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
541
|
+
return t === "[object RegExp]" || t === "[object Date]" || Er(e);
|
|
542
542
|
}
|
|
543
|
-
var xr = typeof Symbol == "function" && Symbol.for,
|
|
544
|
-
function
|
|
545
|
-
return e.$$typeof ===
|
|
543
|
+
var xr = typeof Symbol == "function" && Symbol.for, vr = xr ? Symbol.for("react.element") : 60103;
|
|
544
|
+
function Er(e) {
|
|
545
|
+
return e.$$typeof === vr;
|
|
546
546
|
}
|
|
547
|
-
function
|
|
547
|
+
function _r(e) {
|
|
548
548
|
return Array.isArray(e) ? [] : {};
|
|
549
549
|
}
|
|
550
550
|
function et(e, t) {
|
|
551
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
551
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Ue(_r(e), e, t) : e;
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function wr(e, t, n) {
|
|
554
554
|
return e.concat(t).map(function(r) {
|
|
555
555
|
return et(r, n);
|
|
556
556
|
});
|
|
557
557
|
}
|
|
558
|
-
function
|
|
558
|
+
function Tr(e, t) {
|
|
559
559
|
if (!t.customMerge)
|
|
560
|
-
return
|
|
560
|
+
return Ue;
|
|
561
561
|
var n = t.customMerge(e);
|
|
562
|
-
return typeof n == "function" ? n :
|
|
562
|
+
return typeof n == "function" ? n : Ue;
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function Hr(e) {
|
|
565
565
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
566
566
|
return Object.propertyIsEnumerable.call(e, t);
|
|
567
567
|
}) : [];
|
|
568
568
|
}
|
|
569
|
-
function
|
|
570
|
-
return Object.keys(e).concat(
|
|
569
|
+
function qt(e) {
|
|
570
|
+
return Object.keys(e).concat(Hr(e));
|
|
571
571
|
}
|
|
572
|
-
function
|
|
572
|
+
function Tn(e, t) {
|
|
573
573
|
try {
|
|
574
574
|
return t in e;
|
|
575
575
|
} catch {
|
|
576
576
|
return !1;
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
|
-
function
|
|
580
|
-
return
|
|
579
|
+
function Ar(e, t) {
|
|
580
|
+
return Tn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
581
581
|
}
|
|
582
|
-
function
|
|
582
|
+
function Br(e, t, n) {
|
|
583
583
|
var r = {};
|
|
584
|
-
return n.isMergeableObject(e) &&
|
|
584
|
+
return n.isMergeableObject(e) && qt(e).forEach(function(i) {
|
|
585
585
|
r[i] = et(e[i], n);
|
|
586
|
-
}),
|
|
587
|
-
|
|
586
|
+
}), qt(t).forEach(function(i) {
|
|
587
|
+
Ar(e, i) || (Tn(e, i) && n.isMergeableObject(t[i]) ? r[i] = Tr(i, n)(e[i], t[i], n) : r[i] = et(t[i], n));
|
|
588
588
|
}), r;
|
|
589
589
|
}
|
|
590
|
-
function
|
|
591
|
-
n = n || {}, n.arrayMerge = n.arrayMerge ||
|
|
590
|
+
function Ue(e, t, n) {
|
|
591
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || wr, n.isMergeableObject = n.isMergeableObject || gr, n.cloneUnlessOtherwiseSpecified = et;
|
|
592
592
|
var r = Array.isArray(t), i = Array.isArray(e), a = r === i;
|
|
593
|
-
return a ? r ? n.arrayMerge(e, t, n) :
|
|
593
|
+
return a ? r ? n.arrayMerge(e, t, n) : Br(e, t, n) : et(t, n);
|
|
594
594
|
}
|
|
595
|
-
|
|
595
|
+
Ue.all = function(t, n) {
|
|
596
596
|
if (!Array.isArray(t))
|
|
597
597
|
throw new Error("first argument should be an array");
|
|
598
598
|
return t.reduce(function(r, i) {
|
|
599
|
-
return
|
|
599
|
+
return Ue(r, i, n);
|
|
600
600
|
}, {});
|
|
601
601
|
};
|
|
602
|
-
var
|
|
603
|
-
const
|
|
602
|
+
var Sr = Ue, Cr = Sr;
|
|
603
|
+
const Pr = /* @__PURE__ */ dr(Cr);
|
|
604
604
|
/*! *****************************************************************************
|
|
605
605
|
Copyright (c) Microsoft Corporation.
|
|
606
606
|
|
|
@@ -615,34 +615,34 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
615
615
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
616
616
|
PERFORMANCE OF THIS SOFTWARE.
|
|
617
617
|
***************************************************************************** */
|
|
618
|
-
var
|
|
619
|
-
return
|
|
618
|
+
var Ct = function(e, t) {
|
|
619
|
+
return Ct = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
620
620
|
n.__proto__ = r;
|
|
621
621
|
} || function(n, r) {
|
|
622
622
|
for (var i in r)
|
|
623
623
|
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
624
|
-
},
|
|
624
|
+
}, Ct(e, t);
|
|
625
625
|
};
|
|
626
|
-
function
|
|
626
|
+
function gt(e, t) {
|
|
627
627
|
if (typeof t != "function" && t !== null)
|
|
628
628
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
629
|
-
|
|
629
|
+
Ct(e, t);
|
|
630
630
|
function n() {
|
|
631
631
|
this.constructor = e;
|
|
632
632
|
}
|
|
633
633
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
634
634
|
}
|
|
635
|
-
var
|
|
636
|
-
return
|
|
635
|
+
var A = function() {
|
|
636
|
+
return A = Object.assign || function(t) {
|
|
637
637
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
638
638
|
n = arguments[r];
|
|
639
639
|
for (var a in n)
|
|
640
640
|
Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
|
|
641
641
|
}
|
|
642
642
|
return t;
|
|
643
|
-
},
|
|
643
|
+
}, A.apply(this, arguments);
|
|
644
644
|
};
|
|
645
|
-
function
|
|
645
|
+
function Ir(e, t) {
|
|
646
646
|
var n = {};
|
|
647
647
|
for (var r in e)
|
|
648
648
|
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
@@ -651,108 +651,110 @@ function Nr(e, t) {
|
|
|
651
651
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
652
652
|
return n;
|
|
653
653
|
}
|
|
654
|
-
function
|
|
654
|
+
function _t(e, t, n) {
|
|
655
655
|
if (arguments.length === 2)
|
|
656
656
|
for (var r = 0, i = t.length, a; r < i; r++)
|
|
657
657
|
(a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
|
|
658
658
|
return e.concat(a || t);
|
|
659
659
|
}
|
|
660
|
-
function
|
|
661
|
-
var n = t && t.cache ? t.cache : Ur, r = t && t.serializer ? t.serializer :
|
|
660
|
+
function wt(e, t) {
|
|
661
|
+
var n = t && t.cache ? t.cache : Ur, r = t && t.serializer ? t.serializer : Rr, i = t && t.strategy ? t.strategy : Or;
|
|
662
662
|
return i(e, {
|
|
663
663
|
cache: n,
|
|
664
664
|
serializer: r
|
|
665
665
|
});
|
|
666
666
|
}
|
|
667
|
-
function
|
|
667
|
+
function Nr(e) {
|
|
668
668
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
669
669
|
}
|
|
670
|
-
function
|
|
671
|
-
var i =
|
|
670
|
+
function Hn(e, t, n, r) {
|
|
671
|
+
var i = Nr(r) ? r : n(r), a = t.get(i);
|
|
672
672
|
return typeof a > "u" && (a = e.call(this, r), t.set(i, a)), a;
|
|
673
673
|
}
|
|
674
|
-
function
|
|
674
|
+
function An(e, t, n) {
|
|
675
675
|
var r = Array.prototype.slice.call(arguments, 3), i = n(r), a = t.get(i);
|
|
676
676
|
return typeof a > "u" && (a = e.apply(this, r), t.set(i, a)), a;
|
|
677
677
|
}
|
|
678
|
-
function
|
|
678
|
+
function Gt(e, t, n, r, i) {
|
|
679
679
|
return n.bind(t, e, r, i);
|
|
680
680
|
}
|
|
681
|
+
function Or(e, t) {
|
|
682
|
+
var n = e.length === 1 ? Hn : An;
|
|
683
|
+
return Gt(e, this, n, t.cache.create(), t.serializer);
|
|
684
|
+
}
|
|
681
685
|
function Lr(e, t) {
|
|
682
|
-
|
|
683
|
-
return kt(e, this, n, t.cache.create(), t.serializer);
|
|
686
|
+
return Gt(e, this, An, t.cache.create(), t.serializer);
|
|
684
687
|
}
|
|
685
688
|
function Mr(e, t) {
|
|
686
|
-
return
|
|
687
|
-
}
|
|
688
|
-
function Rr(e, t) {
|
|
689
|
-
return kt(e, this, An, t.cache.create(), t.serializer);
|
|
689
|
+
return Gt(e, this, Hn, t.cache.create(), t.serializer);
|
|
690
690
|
}
|
|
691
|
-
var
|
|
691
|
+
var Rr = function() {
|
|
692
692
|
return JSON.stringify(arguments);
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
693
|
+
}, Dr = (
|
|
694
|
+
/** @class */
|
|
695
|
+
function() {
|
|
696
|
+
function e() {
|
|
697
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
698
|
+
}
|
|
699
|
+
return e.prototype.get = function(t) {
|
|
700
|
+
return this.cache[t];
|
|
701
|
+
}, e.prototype.set = function(t, n) {
|
|
702
|
+
this.cache[t] = n;
|
|
703
|
+
}, e;
|
|
704
|
+
}()
|
|
705
|
+
), Ur = {
|
|
704
706
|
create: function() {
|
|
705
|
-
return new
|
|
707
|
+
return new Dr();
|
|
706
708
|
}
|
|
707
|
-
},
|
|
708
|
-
variadic:
|
|
709
|
-
monadic:
|
|
710
|
-
},
|
|
709
|
+
}, Tt = {
|
|
710
|
+
variadic: Lr,
|
|
711
|
+
monadic: Mr
|
|
712
|
+
}, _;
|
|
711
713
|
(function(e) {
|
|
712
714
|
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";
|
|
713
|
-
})(
|
|
715
|
+
})(_ || (_ = {}));
|
|
714
716
|
var C;
|
|
715
717
|
(function(e) {
|
|
716
718
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
717
719
|
})(C || (C = {}));
|
|
718
|
-
var
|
|
720
|
+
var Fe;
|
|
719
721
|
(function(e) {
|
|
720
722
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
721
|
-
})(
|
|
722
|
-
function
|
|
723
|
+
})(Fe || (Fe = {}));
|
|
724
|
+
function Jt(e) {
|
|
723
725
|
return e.type === C.literal;
|
|
724
726
|
}
|
|
725
727
|
function Fr(e) {
|
|
726
728
|
return e.type === C.argument;
|
|
727
729
|
}
|
|
728
|
-
function
|
|
730
|
+
function Bn(e) {
|
|
729
731
|
return e.type === C.number;
|
|
730
732
|
}
|
|
731
|
-
function
|
|
733
|
+
function Sn(e) {
|
|
732
734
|
return e.type === C.date;
|
|
733
735
|
}
|
|
734
|
-
function
|
|
736
|
+
function Cn(e) {
|
|
735
737
|
return e.type === C.time;
|
|
736
738
|
}
|
|
737
|
-
function
|
|
739
|
+
function Pn(e) {
|
|
738
740
|
return e.type === C.select;
|
|
739
741
|
}
|
|
740
|
-
function
|
|
742
|
+
function In(e) {
|
|
741
743
|
return e.type === C.plural;
|
|
742
744
|
}
|
|
743
745
|
function Gr(e) {
|
|
744
746
|
return e.type === C.pound;
|
|
745
747
|
}
|
|
746
|
-
function
|
|
748
|
+
function Nn(e) {
|
|
747
749
|
return e.type === C.tag;
|
|
748
750
|
}
|
|
749
|
-
function
|
|
750
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
751
|
+
function On(e) {
|
|
752
|
+
return !!(e && typeof e == "object" && e.type === Fe.number);
|
|
751
753
|
}
|
|
752
|
-
function
|
|
753
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
754
|
+
function Pt(e) {
|
|
755
|
+
return !!(e && typeof e == "object" && e.type === Fe.dateTime);
|
|
754
756
|
}
|
|
755
|
-
var
|
|
757
|
+
var Ln = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, kr = /(?:[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;
|
|
756
758
|
function $r(e) {
|
|
757
759
|
var t = {};
|
|
758
760
|
return e.replace(kr, function(n) {
|
|
@@ -854,9 +856,9 @@ function Vr(e) {
|
|
|
854
856
|
var a = i[r], o = a.split("/");
|
|
855
857
|
if (o.length === 0)
|
|
856
858
|
throw new Error("Invalid number skeleton");
|
|
857
|
-
for (var s = o[0], c = o.slice(1),
|
|
858
|
-
var
|
|
859
|
-
if (
|
|
859
|
+
for (var s = o[0], c = o.slice(1), l = 0, u = c; l < u.length; l++) {
|
|
860
|
+
var h = u[l];
|
|
861
|
+
if (h.length === 0)
|
|
860
862
|
throw new Error("Invalid number skeleton");
|
|
861
863
|
}
|
|
862
864
|
n.push({ stem: s, options: c });
|
|
@@ -866,14 +868,14 @@ function Vr(e) {
|
|
|
866
868
|
function zr(e) {
|
|
867
869
|
return e.replace(/^(.*?)-/, "");
|
|
868
870
|
}
|
|
869
|
-
var
|
|
870
|
-
function
|
|
871
|
+
var Qt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Mn = /^(@+)?(\+|#+)?[rs]?$/g, Xr = /(\*)(0+)|(#+)(0+)|(0+)/g, Rn = /^(0+)$/;
|
|
872
|
+
function Yt(e) {
|
|
871
873
|
var t = {};
|
|
872
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
874
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Mn, function(n, r, i) {
|
|
873
875
|
return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
|
|
874
876
|
}), t;
|
|
875
877
|
}
|
|
876
|
-
function
|
|
878
|
+
function Dn(e) {
|
|
877
879
|
switch (e) {
|
|
878
880
|
case "sign-auto":
|
|
879
881
|
return {
|
|
@@ -921,14 +923,14 @@ function Wr(e) {
|
|
|
921
923
|
notation: "scientific"
|
|
922
924
|
}, e = e.slice(1)), t) {
|
|
923
925
|
var n = e.slice(0, 2);
|
|
924
|
-
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
926
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Rn.test(e))
|
|
925
927
|
throw new Error("Malformed concise eng/scientific notation");
|
|
926
928
|
t.minimumIntegerDigits = e.length;
|
|
927
929
|
}
|
|
928
930
|
return t;
|
|
929
931
|
}
|
|
930
|
-
function
|
|
931
|
-
var t = {}, n =
|
|
932
|
+
function Kt(e) {
|
|
933
|
+
var t = {}, n = Dn(e);
|
|
932
934
|
return n || t;
|
|
933
935
|
}
|
|
934
936
|
function Zr(e) {
|
|
@@ -966,13 +968,13 @@ function Zr(e) {
|
|
|
966
968
|
t.notation = "compact", t.compactDisplay = "long";
|
|
967
969
|
continue;
|
|
968
970
|
case "scientific":
|
|
969
|
-
t =
|
|
970
|
-
return
|
|
971
|
+
t = A(A(A({}, t), { notation: "scientific" }), i.options.reduce(function(c, l) {
|
|
972
|
+
return A(A({}, c), Kt(l));
|
|
971
973
|
}, {}));
|
|
972
974
|
continue;
|
|
973
975
|
case "engineering":
|
|
974
|
-
t =
|
|
975
|
-
return
|
|
976
|
+
t = A(A(A({}, t), { notation: "engineering" }), i.options.reduce(function(c, l) {
|
|
977
|
+
return A(A({}, c), Kt(l));
|
|
976
978
|
}, {}));
|
|
977
979
|
continue;
|
|
978
980
|
case "notation-simple":
|
|
@@ -1017,45 +1019,45 @@ function Zr(e) {
|
|
|
1017
1019
|
case "integer-width":
|
|
1018
1020
|
if (i.options.length > 1)
|
|
1019
1021
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1020
|
-
i.options[0].replace(Xr, function(c,
|
|
1021
|
-
if (
|
|
1022
|
-
t.minimumIntegerDigits =
|
|
1022
|
+
i.options[0].replace(Xr, function(c, l, u, h, d, b) {
|
|
1023
|
+
if (l)
|
|
1024
|
+
t.minimumIntegerDigits = u.length;
|
|
1023
1025
|
else {
|
|
1024
|
-
if (
|
|
1026
|
+
if (h && d)
|
|
1025
1027
|
throw new Error("We currently do not support maximum integer digits");
|
|
1026
|
-
if (
|
|
1028
|
+
if (b)
|
|
1027
1029
|
throw new Error("We currently do not support exact integer digits");
|
|
1028
1030
|
}
|
|
1029
1031
|
return "";
|
|
1030
1032
|
});
|
|
1031
1033
|
continue;
|
|
1032
1034
|
}
|
|
1033
|
-
if (
|
|
1035
|
+
if (Rn.test(i.stem)) {
|
|
1034
1036
|
t.minimumIntegerDigits = i.stem.length;
|
|
1035
1037
|
continue;
|
|
1036
1038
|
}
|
|
1037
|
-
if (
|
|
1039
|
+
if (Qt.test(i.stem)) {
|
|
1038
1040
|
if (i.options.length > 1)
|
|
1039
1041
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1040
|
-
i.stem.replace(
|
|
1041
|
-
return
|
|
1042
|
+
i.stem.replace(Qt, function(c, l, u, h, d, b) {
|
|
1043
|
+
return u === "*" ? t.minimumFractionDigits = l.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length : d && b ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + b.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1042
1044
|
});
|
|
1043
1045
|
var a = i.options[0];
|
|
1044
|
-
a === "w" ? t =
|
|
1046
|
+
a === "w" ? t = A(A({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = A(A({}, t), Yt(a)));
|
|
1045
1047
|
continue;
|
|
1046
1048
|
}
|
|
1047
|
-
if (
|
|
1048
|
-
t =
|
|
1049
|
+
if (Mn.test(i.stem)) {
|
|
1050
|
+
t = A(A({}, t), Yt(i.stem));
|
|
1049
1051
|
continue;
|
|
1050
1052
|
}
|
|
1051
|
-
var o =
|
|
1052
|
-
o && (t =
|
|
1053
|
+
var o = Dn(i.stem);
|
|
1054
|
+
o && (t = A(A({}, t), o));
|
|
1053
1055
|
var s = Wr(i.stem);
|
|
1054
|
-
s && (t =
|
|
1056
|
+
s && (t = A(A({}, t), s));
|
|
1055
1057
|
}
|
|
1056
1058
|
return t;
|
|
1057
1059
|
}
|
|
1058
|
-
var
|
|
1060
|
+
var st = {
|
|
1059
1061
|
"001": [
|
|
1060
1062
|
"H",
|
|
1061
1063
|
"h"
|
|
@@ -2476,11 +2478,11 @@ function qr(e, t) {
|
|
|
2476
2478
|
if (i === "j") {
|
|
2477
2479
|
for (var a = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2478
2480
|
a++, r++;
|
|
2479
|
-
var o = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), c = "a",
|
|
2480
|
-
for ((
|
|
2481
|
+
var o = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), c = "a", l = Jr(t);
|
|
2482
|
+
for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
|
|
2481
2483
|
n += c;
|
|
2482
2484
|
for (; o-- > 0; )
|
|
2483
|
-
n =
|
|
2485
|
+
n = l + n;
|
|
2484
2486
|
} else
|
|
2485
2487
|
i === "J" ? n += "H" : n += i;
|
|
2486
2488
|
}
|
|
@@ -2505,23 +2507,23 @@ function Jr(e) {
|
|
|
2505
2507
|
}
|
|
2506
2508
|
var n = e.language, r;
|
|
2507
2509
|
n !== "root" && (r = e.maximize().region);
|
|
2508
|
-
var i =
|
|
2510
|
+
var i = st[r || ""] || st[n || ""] || st["".concat(n, "-001")] || st["001"];
|
|
2509
2511
|
return i[0];
|
|
2510
2512
|
}
|
|
2511
|
-
var
|
|
2512
|
-
function
|
|
2513
|
+
var Ht, Qr = new RegExp("^".concat(Ln.source, "*")), Yr = new RegExp("".concat(Ln.source, "*$"));
|
|
2514
|
+
function w(e, t) {
|
|
2513
2515
|
return { start: e, end: t };
|
|
2514
2516
|
}
|
|
2515
2517
|
var Kr = !!String.prototype.startsWith && "_a".startsWith("a", 1), ei = !!String.fromCodePoint, ti = !!Object.fromEntries, ni = !!String.prototype.codePointAt, ri = !!String.prototype.trimStart, ii = !!String.prototype.trimEnd, ai = !!Number.isSafeInteger, oi = ai ? Number.isSafeInteger : function(e) {
|
|
2516
2518
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2517
|
-
},
|
|
2519
|
+
}, It = !0;
|
|
2518
2520
|
try {
|
|
2519
|
-
var si =
|
|
2520
|
-
|
|
2521
|
+
var si = Fn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2522
|
+
It = ((Ht = si.exec("a")) === null || Ht === void 0 ? void 0 : Ht[0]) === "a";
|
|
2521
2523
|
} catch {
|
|
2522
|
-
|
|
2524
|
+
It = !1;
|
|
2523
2525
|
}
|
|
2524
|
-
var
|
|
2526
|
+
var en = Kr ? (
|
|
2525
2527
|
// Native
|
|
2526
2528
|
function(t, n, r) {
|
|
2527
2529
|
return t.startsWith(n, r);
|
|
@@ -2531,7 +2533,7 @@ var tn = Kr ? (
|
|
|
2531
2533
|
function(t, n, r) {
|
|
2532
2534
|
return t.slice(r, r + n.length) === n;
|
|
2533
2535
|
}
|
|
2534
|
-
),
|
|
2536
|
+
), Nt = ei ? String.fromCodePoint : (
|
|
2535
2537
|
// IE11
|
|
2536
2538
|
function() {
|
|
2537
2539
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
@@ -2543,7 +2545,7 @@ var tn = Kr ? (
|
|
|
2543
2545
|
}
|
|
2544
2546
|
return r;
|
|
2545
2547
|
}
|
|
2546
|
-
),
|
|
2548
|
+
), tn = (
|
|
2547
2549
|
// native
|
|
2548
2550
|
ti ? Object.fromEntries : (
|
|
2549
2551
|
// Ponyfill
|
|
@@ -2555,7 +2557,7 @@ var tn = Kr ? (
|
|
|
2555
2557
|
return n;
|
|
2556
2558
|
}
|
|
2557
2559
|
)
|
|
2558
|
-
),
|
|
2560
|
+
), Un = ni ? (
|
|
2559
2561
|
// Native
|
|
2560
2562
|
function(t, n) {
|
|
2561
2563
|
return t.codePointAt(n);
|
|
@@ -2569,7 +2571,7 @@ var tn = Kr ? (
|
|
|
2569
2571
|
return i < 55296 || i > 56319 || n + 1 === r || (a = t.charCodeAt(n + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
|
|
2570
2572
|
}
|
|
2571
2573
|
}
|
|
2572
|
-
),
|
|
2574
|
+
), ui = ri ? (
|
|
2573
2575
|
// Native
|
|
2574
2576
|
function(t) {
|
|
2575
2577
|
return t.trimStart();
|
|
@@ -2579,7 +2581,7 @@ var tn = Kr ? (
|
|
|
2579
2581
|
function(t) {
|
|
2580
2582
|
return t.replace(Qr, "");
|
|
2581
2583
|
}
|
|
2582
|
-
),
|
|
2584
|
+
), li = ii ? (
|
|
2583
2585
|
// Native
|
|
2584
2586
|
function(t) {
|
|
2585
2587
|
return t.trimEnd();
|
|
@@ -2590,27 +2592,27 @@ var tn = Kr ? (
|
|
|
2590
2592
|
return t.replace(Yr, "");
|
|
2591
2593
|
}
|
|
2592
2594
|
);
|
|
2593
|
-
function
|
|
2595
|
+
function Fn(e, t) {
|
|
2594
2596
|
return new RegExp(e, t);
|
|
2595
2597
|
}
|
|
2596
|
-
var
|
|
2597
|
-
if (
|
|
2598
|
-
var
|
|
2599
|
-
|
|
2598
|
+
var Ot;
|
|
2599
|
+
if (It) {
|
|
2600
|
+
var nn = Fn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2601
|
+
Ot = function(t, n) {
|
|
2600
2602
|
var r;
|
|
2601
|
-
|
|
2602
|
-
var i =
|
|
2603
|
+
nn.lastIndex = n;
|
|
2604
|
+
var i = nn.exec(t);
|
|
2603
2605
|
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2604
2606
|
};
|
|
2605
2607
|
} else
|
|
2606
|
-
|
|
2608
|
+
Ot = function(t, n) {
|
|
2607
2609
|
for (var r = []; ; ) {
|
|
2608
|
-
var i =
|
|
2609
|
-
if (i === void 0 ||
|
|
2610
|
+
var i = Un(t, n);
|
|
2611
|
+
if (i === void 0 || Gn(i) || pi(i))
|
|
2610
2612
|
break;
|
|
2611
2613
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2612
2614
|
}
|
|
2613
|
-
return
|
|
2615
|
+
return Nt.apply(void 0, r);
|
|
2614
2616
|
};
|
|
2615
2617
|
var ci = (
|
|
2616
2618
|
/** @class */
|
|
@@ -2637,13 +2639,13 @@ var ci = (
|
|
|
2637
2639
|
var s = this.clonePosition();
|
|
2638
2640
|
this.bump(), i.push({
|
|
2639
2641
|
type: C.pound,
|
|
2640
|
-
location:
|
|
2642
|
+
location: w(s, this.clonePosition())
|
|
2641
2643
|
});
|
|
2642
2644
|
} else if (a === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2643
2645
|
if (r)
|
|
2644
2646
|
break;
|
|
2645
|
-
return this.error(
|
|
2646
|
-
} else if (a === 60 && !this.ignoreTag &&
|
|
2647
|
+
return this.error(_.UNMATCHED_CLOSING_TAG, w(this.clonePosition(), this.clonePosition()));
|
|
2648
|
+
} else if (a === 60 && !this.ignoreTag && Lt(this.peek() || 0)) {
|
|
2647
2649
|
var o = this.parseTag(t, n);
|
|
2648
2650
|
if (o.err)
|
|
2649
2651
|
return o;
|
|
@@ -2666,7 +2668,7 @@ var ci = (
|
|
|
2666
2668
|
val: {
|
|
2667
2669
|
type: C.literal,
|
|
2668
2670
|
value: "<".concat(i, "/>"),
|
|
2669
|
-
location:
|
|
2671
|
+
location: w(r, this.clonePosition())
|
|
2670
2672
|
},
|
|
2671
2673
|
err: null
|
|
2672
2674
|
};
|
|
@@ -2676,22 +2678,22 @@ var ci = (
|
|
|
2676
2678
|
return a;
|
|
2677
2679
|
var o = a.val, s = this.clonePosition();
|
|
2678
2680
|
if (this.bumpIf("</")) {
|
|
2679
|
-
if (this.isEOF() || !
|
|
2680
|
-
return this.error(
|
|
2681
|
-
var c = this.clonePosition(),
|
|
2682
|
-
return i !==
|
|
2681
|
+
if (this.isEOF() || !Lt(this.char()))
|
|
2682
|
+
return this.error(_.INVALID_TAG, w(s, this.clonePosition()));
|
|
2683
|
+
var c = this.clonePosition(), l = this.parseTagName();
|
|
2684
|
+
return i !== l ? this.error(_.UNMATCHED_CLOSING_TAG, w(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2683
2685
|
val: {
|
|
2684
2686
|
type: C.tag,
|
|
2685
2687
|
value: i,
|
|
2686
2688
|
children: o,
|
|
2687
|
-
location:
|
|
2689
|
+
location: w(r, this.clonePosition())
|
|
2688
2690
|
},
|
|
2689
2691
|
err: null
|
|
2690
|
-
} : this.error(
|
|
2692
|
+
} : this.error(_.INVALID_TAG, w(s, this.clonePosition())));
|
|
2691
2693
|
} else
|
|
2692
|
-
return this.error(
|
|
2694
|
+
return this.error(_.UNCLOSED_TAG, w(r, this.clonePosition()));
|
|
2693
2695
|
} else
|
|
2694
|
-
return this.error(
|
|
2696
|
+
return this.error(_.INVALID_TAG, w(r, this.clonePosition()));
|
|
2695
2697
|
}, e.prototype.parseTagName = function() {
|
|
2696
2698
|
var t = this.offset();
|
|
2697
2699
|
for (this.bump(); !this.isEOF() && fi(this.char()); )
|
|
@@ -2716,7 +2718,7 @@ var ci = (
|
|
|
2716
2718
|
}
|
|
2717
2719
|
break;
|
|
2718
2720
|
}
|
|
2719
|
-
var c =
|
|
2721
|
+
var c = w(r, this.clonePosition());
|
|
2720
2722
|
return {
|
|
2721
2723
|
val: { type: C.literal, value: i, location: c },
|
|
2722
2724
|
err: null
|
|
@@ -2757,23 +2759,23 @@ var ci = (
|
|
|
2757
2759
|
n.push(r);
|
|
2758
2760
|
this.bump();
|
|
2759
2761
|
}
|
|
2760
|
-
return
|
|
2762
|
+
return Nt.apply(void 0, n);
|
|
2761
2763
|
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
2762
2764
|
if (this.isEOF())
|
|
2763
2765
|
return null;
|
|
2764
2766
|
var r = this.char();
|
|
2765
|
-
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(),
|
|
2767
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Nt(r));
|
|
2766
2768
|
}, e.prototype.parseArgument = function(t, n) {
|
|
2767
2769
|
var r = this.clonePosition();
|
|
2768
2770
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2769
|
-
return this.error(
|
|
2771
|
+
return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, w(r, this.clonePosition()));
|
|
2770
2772
|
if (this.char() === 125)
|
|
2771
|
-
return this.bump(), this.error(
|
|
2773
|
+
return this.bump(), this.error(_.EMPTY_ARGUMENT, w(r, this.clonePosition()));
|
|
2772
2774
|
var i = this.parseIdentifierIfPossible().value;
|
|
2773
2775
|
if (!i)
|
|
2774
|
-
return this.error(
|
|
2776
|
+
return this.error(_.MALFORMED_ARGUMENT, w(r, this.clonePosition()));
|
|
2775
2777
|
if (this.bumpSpace(), this.isEOF())
|
|
2776
|
-
return this.error(
|
|
2778
|
+
return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, w(r, this.clonePosition()));
|
|
2777
2779
|
switch (this.char()) {
|
|
2778
2780
|
case 125:
|
|
2779
2781
|
return this.bump(), {
|
|
@@ -2781,66 +2783,66 @@ var ci = (
|
|
|
2781
2783
|
type: C.argument,
|
|
2782
2784
|
// value does not include the opening and closing braces.
|
|
2783
2785
|
value: i,
|
|
2784
|
-
location:
|
|
2786
|
+
location: w(r, this.clonePosition())
|
|
2785
2787
|
},
|
|
2786
2788
|
err: null
|
|
2787
2789
|
};
|
|
2788
2790
|
case 44:
|
|
2789
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2791
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, w(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
|
|
2790
2792
|
default:
|
|
2791
|
-
return this.error(
|
|
2793
|
+
return this.error(_.MALFORMED_ARGUMENT, w(r, this.clonePosition()));
|
|
2792
2794
|
}
|
|
2793
2795
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2794
|
-
var t = this.clonePosition(), n = this.offset(), r =
|
|
2796
|
+
var t = this.clonePosition(), n = this.offset(), r = Ot(this.message, n), i = n + r.length;
|
|
2795
2797
|
this.bumpTo(i);
|
|
2796
|
-
var a = this.clonePosition(), o =
|
|
2798
|
+
var a = this.clonePosition(), o = w(t, a);
|
|
2797
2799
|
return { value: r, location: o };
|
|
2798
2800
|
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
2799
2801
|
var a, o = this.clonePosition(), s = this.parseIdentifierIfPossible().value, c = this.clonePosition();
|
|
2800
2802
|
switch (s) {
|
|
2801
2803
|
case "":
|
|
2802
|
-
return this.error(
|
|
2804
|
+
return this.error(_.EXPECT_ARGUMENT_TYPE, w(o, c));
|
|
2803
2805
|
case "number":
|
|
2804
2806
|
case "date":
|
|
2805
2807
|
case "time": {
|
|
2806
2808
|
this.bumpSpace();
|
|
2807
|
-
var
|
|
2809
|
+
var l = null;
|
|
2808
2810
|
if (this.bumpIf(",")) {
|
|
2809
2811
|
this.bumpSpace();
|
|
2810
|
-
var
|
|
2811
|
-
if (
|
|
2812
|
-
return
|
|
2813
|
-
var d =
|
|
2812
|
+
var u = this.clonePosition(), h = this.parseSimpleArgStyleIfPossible();
|
|
2813
|
+
if (h.err)
|
|
2814
|
+
return h;
|
|
2815
|
+
var d = li(h.val);
|
|
2814
2816
|
if (d.length === 0)
|
|
2815
|
-
return this.error(
|
|
2816
|
-
var
|
|
2817
|
-
|
|
2817
|
+
return this.error(_.EXPECT_ARGUMENT_STYLE, w(this.clonePosition(), this.clonePosition()));
|
|
2818
|
+
var b = w(u, this.clonePosition());
|
|
2819
|
+
l = { style: d, styleLocation: b };
|
|
2818
2820
|
}
|
|
2819
|
-
var
|
|
2820
|
-
if (
|
|
2821
|
-
return
|
|
2822
|
-
var I =
|
|
2823
|
-
if (
|
|
2824
|
-
var
|
|
2821
|
+
var x = this.tryParseArgumentClose(i);
|
|
2822
|
+
if (x.err)
|
|
2823
|
+
return x;
|
|
2824
|
+
var I = w(i, this.clonePosition());
|
|
2825
|
+
if (l && en(l?.style, "::", 0)) {
|
|
2826
|
+
var F = ui(l.style.slice(2));
|
|
2825
2827
|
if (s === "number") {
|
|
2826
|
-
var
|
|
2827
|
-
return
|
|
2828
|
-
val: { type: C.number, value: r, location: I, style:
|
|
2828
|
+
var h = this.parseNumberSkeletonFromString(F, l.styleLocation);
|
|
2829
|
+
return h.err ? h : {
|
|
2830
|
+
val: { type: C.number, value: r, location: I, style: h.val },
|
|
2829
2831
|
err: null
|
|
2830
2832
|
};
|
|
2831
2833
|
} else {
|
|
2832
|
-
if (
|
|
2833
|
-
return this.error(
|
|
2834
|
-
var N =
|
|
2835
|
-
this.locale && (N = qr(
|
|
2834
|
+
if (F.length === 0)
|
|
2835
|
+
return this.error(_.EXPECT_DATE_TIME_SKELETON, I);
|
|
2836
|
+
var N = F;
|
|
2837
|
+
this.locale && (N = qr(F, this.locale));
|
|
2836
2838
|
var d = {
|
|
2837
|
-
type:
|
|
2839
|
+
type: Fe.dateTime,
|
|
2838
2840
|
pattern: N,
|
|
2839
|
-
location:
|
|
2841
|
+
location: l.styleLocation,
|
|
2840
2842
|
parsedOptions: this.shouldParseSkeletons ? $r(N) : {}
|
|
2841
|
-
},
|
|
2843
|
+
}, D = s === "date" ? C.date : C.time;
|
|
2842
2844
|
return {
|
|
2843
|
-
val: { type:
|
|
2845
|
+
val: { type: D, value: r, location: I, style: d },
|
|
2844
2846
|
err: null
|
|
2845
2847
|
};
|
|
2846
2848
|
}
|
|
@@ -2850,7 +2852,7 @@ var ci = (
|
|
|
2850
2852
|
type: s === "number" ? C.number : s === "date" ? C.date : C.time,
|
|
2851
2853
|
value: r,
|
|
2852
2854
|
location: I,
|
|
2853
|
-
style: (a =
|
|
2855
|
+
style: (a = l?.style) !== null && a !== void 0 ? a : null
|
|
2854
2856
|
},
|
|
2855
2857
|
err: null
|
|
2856
2858
|
};
|
|
@@ -2858,52 +2860,52 @@ var ci = (
|
|
|
2858
2860
|
case "plural":
|
|
2859
2861
|
case "selectordinal":
|
|
2860
2862
|
case "select": {
|
|
2861
|
-
var
|
|
2863
|
+
var U = this.clonePosition();
|
|
2862
2864
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2863
|
-
return this.error(
|
|
2865
|
+
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, w(U, A({}, U)));
|
|
2864
2866
|
this.bumpSpace();
|
|
2865
2867
|
var P = this.parseIdentifierIfPossible(), O = 0;
|
|
2866
2868
|
if (s !== "select" && P.value === "offset") {
|
|
2867
2869
|
if (!this.bumpIf(":"))
|
|
2868
|
-
return this.error(
|
|
2870
|
+
return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w(this.clonePosition(), this.clonePosition()));
|
|
2869
2871
|
this.bumpSpace();
|
|
2870
|
-
var
|
|
2871
|
-
if (
|
|
2872
|
-
return
|
|
2873
|
-
this.bumpSpace(), P = this.parseIdentifierIfPossible(), O =
|
|
2872
|
+
var h = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2873
|
+
if (h.err)
|
|
2874
|
+
return h;
|
|
2875
|
+
this.bumpSpace(), P = this.parseIdentifierIfPossible(), O = h.val;
|
|
2874
2876
|
}
|
|
2875
|
-
var
|
|
2876
|
-
if (
|
|
2877
|
-
return
|
|
2878
|
-
var
|
|
2879
|
-
if (
|
|
2880
|
-
return
|
|
2881
|
-
var
|
|
2877
|
+
var q = this.tryParsePluralOrSelectOptions(t, s, n, P);
|
|
2878
|
+
if (q.err)
|
|
2879
|
+
return q;
|
|
2880
|
+
var x = this.tryParseArgumentClose(i);
|
|
2881
|
+
if (x.err)
|
|
2882
|
+
return x;
|
|
2883
|
+
var te = w(i, this.clonePosition());
|
|
2882
2884
|
return s === "select" ? {
|
|
2883
2885
|
val: {
|
|
2884
2886
|
type: C.select,
|
|
2885
2887
|
value: r,
|
|
2886
|
-
options:
|
|
2887
|
-
location:
|
|
2888
|
+
options: tn(q.val),
|
|
2889
|
+
location: te
|
|
2888
2890
|
},
|
|
2889
2891
|
err: null
|
|
2890
2892
|
} : {
|
|
2891
2893
|
val: {
|
|
2892
2894
|
type: C.plural,
|
|
2893
2895
|
value: r,
|
|
2894
|
-
options:
|
|
2896
|
+
options: tn(q.val),
|
|
2895
2897
|
offset: O,
|
|
2896
2898
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2897
|
-
location:
|
|
2899
|
+
location: te
|
|
2898
2900
|
},
|
|
2899
2901
|
err: null
|
|
2900
2902
|
};
|
|
2901
2903
|
}
|
|
2902
2904
|
default:
|
|
2903
|
-
return this.error(
|
|
2905
|
+
return this.error(_.INVALID_ARGUMENT_TYPE, w(o, c));
|
|
2904
2906
|
}
|
|
2905
2907
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2906
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2908
|
+
return this.isEOF() || this.char() !== 125 ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, w(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2907
2909
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2908
2910
|
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
|
|
2909
2911
|
var r = this.char();
|
|
@@ -2912,7 +2914,7 @@ var ci = (
|
|
|
2912
2914
|
this.bump();
|
|
2913
2915
|
var i = this.clonePosition();
|
|
2914
2916
|
if (!this.bumpUntil("'"))
|
|
2915
|
-
return this.error(
|
|
2917
|
+
return this.error(_.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, w(i, this.clonePosition()));
|
|
2916
2918
|
this.bump();
|
|
2917
2919
|
break;
|
|
2918
2920
|
}
|
|
@@ -2944,11 +2946,11 @@ var ci = (
|
|
|
2944
2946
|
try {
|
|
2945
2947
|
r = Vr(t);
|
|
2946
2948
|
} catch {
|
|
2947
|
-
return this.error(
|
|
2949
|
+
return this.error(_.INVALID_NUMBER_SKELETON, n);
|
|
2948
2950
|
}
|
|
2949
2951
|
return {
|
|
2950
2952
|
val: {
|
|
2951
|
-
type:
|
|
2953
|
+
type: Fe.number,
|
|
2952
2954
|
tokens: r,
|
|
2953
2955
|
location: n,
|
|
2954
2956
|
parsedOptions: this.shouldParseSkeletons ? Zr(r) : {}
|
|
@@ -2956,38 +2958,38 @@ var ci = (
|
|
|
2956
2958
|
err: null
|
|
2957
2959
|
};
|
|
2958
2960
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
2959
|
-
for (var a, o = !1, s = [], c = /* @__PURE__ */ new Set(),
|
|
2960
|
-
if (
|
|
2961
|
-
var
|
|
2961
|
+
for (var a, o = !1, s = [], c = /* @__PURE__ */ new Set(), l = i.value, u = i.location; ; ) {
|
|
2962
|
+
if (l.length === 0) {
|
|
2963
|
+
var h = this.clonePosition();
|
|
2962
2964
|
if (n !== "select" && this.bumpIf("=")) {
|
|
2963
|
-
var d = this.tryParseDecimalInteger(
|
|
2965
|
+
var d = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_SELECTOR, _.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2964
2966
|
if (d.err)
|
|
2965
2967
|
return d;
|
|
2966
|
-
|
|
2968
|
+
u = w(h, this.clonePosition()), l = this.message.slice(h.offset, this.offset());
|
|
2967
2969
|
} else
|
|
2968
2970
|
break;
|
|
2969
2971
|
}
|
|
2970
|
-
if (c.has(
|
|
2971
|
-
return this.error(n === "select" ?
|
|
2972
|
-
|
|
2973
|
-
var
|
|
2972
|
+
if (c.has(l))
|
|
2973
|
+
return this.error(n === "select" ? _.DUPLICATE_SELECT_ARGUMENT_SELECTOR : _.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
|
|
2974
|
+
l === "other" && (o = !0), this.bumpSpace();
|
|
2975
|
+
var b = this.clonePosition();
|
|
2974
2976
|
if (!this.bumpIf("{"))
|
|
2975
|
-
return this.error(n === "select" ?
|
|
2976
|
-
var
|
|
2977
|
-
if (
|
|
2978
|
-
return
|
|
2979
|
-
var I = this.tryParseArgumentClose(
|
|
2977
|
+
return this.error(n === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, w(this.clonePosition(), this.clonePosition()));
|
|
2978
|
+
var x = this.parseMessage(t + 1, n, r);
|
|
2979
|
+
if (x.err)
|
|
2980
|
+
return x;
|
|
2981
|
+
var I = this.tryParseArgumentClose(b);
|
|
2980
2982
|
if (I.err)
|
|
2981
2983
|
return I;
|
|
2982
2984
|
s.push([
|
|
2983
|
-
|
|
2985
|
+
l,
|
|
2984
2986
|
{
|
|
2985
|
-
value:
|
|
2986
|
-
location:
|
|
2987
|
+
value: x.val,
|
|
2988
|
+
location: w(b, this.clonePosition())
|
|
2987
2989
|
}
|
|
2988
|
-
]), c.add(
|
|
2990
|
+
]), c.add(l), this.bumpSpace(), a = this.parseIdentifierIfPossible(), l = a.value, u = a.location;
|
|
2989
2991
|
}
|
|
2990
|
-
return s.length === 0 ? this.error(n === "select" ?
|
|
2992
|
+
return s.length === 0 ? this.error(n === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR : _.EXPECT_PLURAL_ARGUMENT_SELECTOR, w(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(_.MISSING_OTHER_CLAUSE, w(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
2991
2993
|
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
2992
2994
|
var r = 1, i = this.clonePosition();
|
|
2993
2995
|
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
@@ -2998,7 +3000,7 @@ var ci = (
|
|
|
2998
3000
|
else
|
|
2999
3001
|
break;
|
|
3000
3002
|
}
|
|
3001
|
-
var c =
|
|
3003
|
+
var c = w(i, this.clonePosition());
|
|
3002
3004
|
return a ? (o *= r, oi(o) ? { val: o, err: null } : this.error(n, c)) : this.error(t, c);
|
|
3003
3005
|
}, e.prototype.offset = function() {
|
|
3004
3006
|
return this.position.offset;
|
|
@@ -3014,7 +3016,7 @@ var ci = (
|
|
|
3014
3016
|
var t = this.position.offset;
|
|
3015
3017
|
if (t >= this.message.length)
|
|
3016
3018
|
throw Error("out of bound");
|
|
3017
|
-
var n =
|
|
3019
|
+
var n = Un(this.message, t);
|
|
3018
3020
|
if (n === void 0)
|
|
3019
3021
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3020
3022
|
return n;
|
|
@@ -3033,7 +3035,7 @@ var ci = (
|
|
|
3033
3035
|
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);
|
|
3034
3036
|
}
|
|
3035
3037
|
}, e.prototype.bumpIf = function(t) {
|
|
3036
|
-
if (
|
|
3038
|
+
if (en(this.message, t, this.offset())) {
|
|
3037
3039
|
for (var n = 0; n < t.length; n++)
|
|
3038
3040
|
this.bump();
|
|
3039
3041
|
return !0;
|
|
@@ -3055,7 +3057,7 @@ var ci = (
|
|
|
3055
3057
|
break;
|
|
3056
3058
|
}
|
|
3057
3059
|
}, e.prototype.bumpSpace = function() {
|
|
3058
|
-
for (; !this.isEOF() &&
|
|
3060
|
+
for (; !this.isEOF() && Gn(this.char()); )
|
|
3059
3061
|
this.bump();
|
|
3060
3062
|
}, e.prototype.peek = function() {
|
|
3061
3063
|
if (this.isEOF())
|
|
@@ -3065,47 +3067,47 @@ var ci = (
|
|
|
3065
3067
|
}, e;
|
|
3066
3068
|
}()
|
|
3067
3069
|
);
|
|
3068
|
-
function
|
|
3070
|
+
function Lt(e) {
|
|
3069
3071
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3070
3072
|
}
|
|
3071
3073
|
function hi(e) {
|
|
3072
|
-
return
|
|
3074
|
+
return Lt(e) || e === 47;
|
|
3073
3075
|
}
|
|
3074
3076
|
function fi(e) {
|
|
3075
3077
|
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;
|
|
3076
3078
|
}
|
|
3077
|
-
function
|
|
3079
|
+
function Gn(e) {
|
|
3078
3080
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3079
3081
|
}
|
|
3080
3082
|
function pi(e) {
|
|
3081
3083
|
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;
|
|
3082
3084
|
}
|
|
3083
|
-
function
|
|
3085
|
+
function Mt(e) {
|
|
3084
3086
|
e.forEach(function(t) {
|
|
3085
|
-
if (delete t.location,
|
|
3087
|
+
if (delete t.location, Pn(t) || In(t))
|
|
3086
3088
|
for (var n in t.options)
|
|
3087
|
-
delete t.options[n].location,
|
|
3089
|
+
delete t.options[n].location, Mt(t.options[n].value);
|
|
3088
3090
|
else
|
|
3089
|
-
|
|
3091
|
+
Bn(t) && On(t.style) || (Sn(t) || Cn(t)) && Pt(t.style) ? delete t.style.location : Nn(t) && Mt(t.children);
|
|
3090
3092
|
});
|
|
3091
3093
|
}
|
|
3092
3094
|
function mi(e, t) {
|
|
3093
|
-
t === void 0 && (t = {}), t =
|
|
3095
|
+
t === void 0 && (t = {}), t = A({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3094
3096
|
var n = new ci(e, t).parse();
|
|
3095
3097
|
if (n.err) {
|
|
3096
|
-
var r = SyntaxError(
|
|
3098
|
+
var r = SyntaxError(_[n.err.kind]);
|
|
3097
3099
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3098
3100
|
}
|
|
3099
|
-
return t?.captureLocation ||
|
|
3101
|
+
return t?.captureLocation || Mt(n.val), n.val;
|
|
3100
3102
|
}
|
|
3101
|
-
var
|
|
3103
|
+
var Ge;
|
|
3102
3104
|
(function(e) {
|
|
3103
3105
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3104
|
-
})(
|
|
3105
|
-
var
|
|
3106
|
+
})(Ge || (Ge = {}));
|
|
3107
|
+
var bt = (
|
|
3106
3108
|
/** @class */
|
|
3107
3109
|
function(e) {
|
|
3108
|
-
|
|
3110
|
+
gt(t, e);
|
|
3109
3111
|
function t(n, r, i) {
|
|
3110
3112
|
var a = e.call(this, n) || this;
|
|
3111
3113
|
return a.code = r, a.originalMessage = i, a;
|
|
@@ -3114,155 +3116,155 @@ var yt = (
|
|
|
3114
3116
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3115
3117
|
}, t;
|
|
3116
3118
|
}(Error)
|
|
3117
|
-
),
|
|
3119
|
+
), rn = (
|
|
3118
3120
|
/** @class */
|
|
3119
3121
|
function(e) {
|
|
3120
|
-
|
|
3122
|
+
gt(t, e);
|
|
3121
3123
|
function t(n, r, i, a) {
|
|
3122
|
-
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3124
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ge.INVALID_VALUE, a) || this;
|
|
3123
3125
|
}
|
|
3124
3126
|
return t;
|
|
3125
|
-
}(
|
|
3127
|
+
}(bt)
|
|
3126
3128
|
), di = (
|
|
3127
3129
|
/** @class */
|
|
3128
3130
|
function(e) {
|
|
3129
|
-
|
|
3131
|
+
gt(t, e);
|
|
3130
3132
|
function t(n, r, i) {
|
|
3131
|
-
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r),
|
|
3133
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Ge.INVALID_VALUE, i) || this;
|
|
3132
3134
|
}
|
|
3133
3135
|
return t;
|
|
3134
|
-
}(
|
|
3136
|
+
}(bt)
|
|
3135
3137
|
), gi = (
|
|
3136
3138
|
/** @class */
|
|
3137
3139
|
function(e) {
|
|
3138
|
-
|
|
3140
|
+
gt(t, e);
|
|
3139
3141
|
function t(n, r) {
|
|
3140
|
-
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'),
|
|
3142
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Ge.MISSING_VALUE, r) || this;
|
|
3141
3143
|
}
|
|
3142
3144
|
return t;
|
|
3143
|
-
}(
|
|
3144
|
-
),
|
|
3145
|
+
}(bt)
|
|
3146
|
+
), X;
|
|
3145
3147
|
(function(e) {
|
|
3146
3148
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3147
|
-
})(
|
|
3149
|
+
})(X || (X = {}));
|
|
3148
3150
|
function bi(e) {
|
|
3149
3151
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3150
3152
|
var r = t[t.length - 1];
|
|
3151
|
-
return !r || r.type !==
|
|
3153
|
+
return !r || r.type !== X.literal || n.type !== X.literal ? t.push(n) : r.value += n.value, t;
|
|
3152
3154
|
}, []);
|
|
3153
3155
|
}
|
|
3154
3156
|
function yi(e) {
|
|
3155
3157
|
return typeof e == "function";
|
|
3156
3158
|
}
|
|
3157
|
-
function
|
|
3158
|
-
if (e.length === 1 &&
|
|
3159
|
+
function lt(e, t, n, r, i, a, o) {
|
|
3160
|
+
if (e.length === 1 && Jt(e[0]))
|
|
3159
3161
|
return [
|
|
3160
3162
|
{
|
|
3161
|
-
type:
|
|
3163
|
+
type: X.literal,
|
|
3162
3164
|
value: e[0].value
|
|
3163
3165
|
}
|
|
3164
3166
|
];
|
|
3165
|
-
for (var s = [], c = 0,
|
|
3166
|
-
var
|
|
3167
|
-
if (
|
|
3167
|
+
for (var s = [], c = 0, l = e; c < l.length; c++) {
|
|
3168
|
+
var u = l[c];
|
|
3169
|
+
if (Jt(u)) {
|
|
3168
3170
|
s.push({
|
|
3169
|
-
type:
|
|
3170
|
-
value:
|
|
3171
|
+
type: X.literal,
|
|
3172
|
+
value: u.value
|
|
3171
3173
|
});
|
|
3172
3174
|
continue;
|
|
3173
3175
|
}
|
|
3174
|
-
if (Gr(
|
|
3176
|
+
if (Gr(u)) {
|
|
3175
3177
|
typeof a == "number" && s.push({
|
|
3176
|
-
type:
|
|
3178
|
+
type: X.literal,
|
|
3177
3179
|
value: n.getNumberFormat(t).format(a)
|
|
3178
3180
|
});
|
|
3179
3181
|
continue;
|
|
3180
3182
|
}
|
|
3181
|
-
var
|
|
3182
|
-
if (!(i &&
|
|
3183
|
-
throw new gi(
|
|
3184
|
-
var d = i[
|
|
3185
|
-
if (Fr(
|
|
3183
|
+
var h = u.value;
|
|
3184
|
+
if (!(i && h in i))
|
|
3185
|
+
throw new gi(h, o);
|
|
3186
|
+
var d = i[h];
|
|
3187
|
+
if (Fr(u)) {
|
|
3186
3188
|
(!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), s.push({
|
|
3187
|
-
type: typeof d == "string" ?
|
|
3189
|
+
type: typeof d == "string" ? X.literal : X.object,
|
|
3188
3190
|
value: d
|
|
3189
3191
|
});
|
|
3190
3192
|
continue;
|
|
3191
3193
|
}
|
|
3192
|
-
if (
|
|
3193
|
-
var
|
|
3194
|
+
if (Sn(u)) {
|
|
3195
|
+
var b = typeof u.style == "string" ? r.date[u.style] : Pt(u.style) ? u.style.parsedOptions : void 0;
|
|
3194
3196
|
s.push({
|
|
3195
|
-
type:
|
|
3196
|
-
value: n.getDateTimeFormat(t,
|
|
3197
|
+
type: X.literal,
|
|
3198
|
+
value: n.getDateTimeFormat(t, b).format(d)
|
|
3197
3199
|
});
|
|
3198
3200
|
continue;
|
|
3199
3201
|
}
|
|
3200
|
-
if (
|
|
3201
|
-
var
|
|
3202
|
+
if (Cn(u)) {
|
|
3203
|
+
var b = typeof u.style == "string" ? r.time[u.style] : Pt(u.style) ? u.style.parsedOptions : r.time.medium;
|
|
3202
3204
|
s.push({
|
|
3203
|
-
type:
|
|
3204
|
-
value: n.getDateTimeFormat(t,
|
|
3205
|
+
type: X.literal,
|
|
3206
|
+
value: n.getDateTimeFormat(t, b).format(d)
|
|
3205
3207
|
});
|
|
3206
3208
|
continue;
|
|
3207
3209
|
}
|
|
3208
|
-
if (
|
|
3209
|
-
var
|
|
3210
|
-
|
|
3211
|
-
type:
|
|
3212
|
-
value: n.getNumberFormat(t,
|
|
3210
|
+
if (Bn(u)) {
|
|
3211
|
+
var b = typeof u.style == "string" ? r.number[u.style] : On(u.style) ? u.style.parsedOptions : void 0;
|
|
3212
|
+
b && b.scale && (d = d * (b.scale || 1)), s.push({
|
|
3213
|
+
type: X.literal,
|
|
3214
|
+
value: n.getNumberFormat(t, b).format(d)
|
|
3213
3215
|
});
|
|
3214
3216
|
continue;
|
|
3215
3217
|
}
|
|
3216
|
-
if (
|
|
3217
|
-
var
|
|
3218
|
-
if (!yi(
|
|
3218
|
+
if (Nn(u)) {
|
|
3219
|
+
var x = u.children, I = u.value, F = i[I];
|
|
3220
|
+
if (!yi(F))
|
|
3219
3221
|
throw new di(I, "function", o);
|
|
3220
|
-
var N =
|
|
3222
|
+
var N = lt(x, t, n, r, i, a), D = F(N.map(function(O) {
|
|
3221
3223
|
return O.value;
|
|
3222
3224
|
}));
|
|
3223
|
-
Array.isArray(
|
|
3225
|
+
Array.isArray(D) || (D = [D]), s.push.apply(s, D.map(function(O) {
|
|
3224
3226
|
return {
|
|
3225
|
-
type: typeof O == "string" ?
|
|
3227
|
+
type: typeof O == "string" ? X.literal : X.object,
|
|
3226
3228
|
value: O
|
|
3227
3229
|
};
|
|
3228
3230
|
}));
|
|
3229
3231
|
}
|
|
3230
|
-
if (
|
|
3231
|
-
var
|
|
3232
|
-
if (!
|
|
3233
|
-
throw new
|
|
3234
|
-
s.push.apply(s,
|
|
3232
|
+
if (Pn(u)) {
|
|
3233
|
+
var U = u.options[d] || u.options.other;
|
|
3234
|
+
if (!U)
|
|
3235
|
+
throw new rn(u.value, d, Object.keys(u.options), o);
|
|
3236
|
+
s.push.apply(s, lt(U.value, t, n, r, i));
|
|
3235
3237
|
continue;
|
|
3236
3238
|
}
|
|
3237
|
-
if (
|
|
3238
|
-
var
|
|
3239
|
-
if (!
|
|
3239
|
+
if (In(u)) {
|
|
3240
|
+
var U = u.options["=".concat(d)];
|
|
3241
|
+
if (!U) {
|
|
3240
3242
|
if (!Intl.PluralRules)
|
|
3241
|
-
throw new
|
|
3243
|
+
throw new bt(`Intl.PluralRules is not available in this environment.
|
|
3242
3244
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3243
|
-
`,
|
|
3244
|
-
var P = n.getPluralRules(t, { type:
|
|
3245
|
-
|
|
3245
|
+
`, Ge.MISSING_INTL_API, o);
|
|
3246
|
+
var P = n.getPluralRules(t, { type: u.pluralType }).select(d - (u.offset || 0));
|
|
3247
|
+
U = u.options[P] || u.options.other;
|
|
3246
3248
|
}
|
|
3247
|
-
if (!
|
|
3248
|
-
throw new
|
|
3249
|
-
s.push.apply(s,
|
|
3249
|
+
if (!U)
|
|
3250
|
+
throw new rn(u.value, d, Object.keys(u.options), o);
|
|
3251
|
+
s.push.apply(s, lt(U.value, t, n, r, i, d - (u.offset || 0)));
|
|
3250
3252
|
continue;
|
|
3251
3253
|
}
|
|
3252
3254
|
}
|
|
3253
3255
|
return bi(s);
|
|
3254
3256
|
}
|
|
3255
|
-
function
|
|
3256
|
-
return t ?
|
|
3257
|
-
return n[r] =
|
|
3257
|
+
function xi(e, t) {
|
|
3258
|
+
return t ? A(A(A({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3259
|
+
return n[r] = A(A({}, e[r]), t[r] || {}), n;
|
|
3258
3260
|
}, {})) : e;
|
|
3259
3261
|
}
|
|
3260
|
-
function
|
|
3262
|
+
function vi(e, t) {
|
|
3261
3263
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3262
|
-
return n[r] =
|
|
3263
|
-
},
|
|
3264
|
+
return n[r] = xi(e[r], t[r]), n;
|
|
3265
|
+
}, A({}, e)) : e;
|
|
3264
3266
|
}
|
|
3265
|
-
function
|
|
3267
|
+
function At(e) {
|
|
3266
3268
|
return {
|
|
3267
3269
|
create: function() {
|
|
3268
3270
|
return {
|
|
@@ -3282,29 +3284,29 @@ function Ei(e) {
|
|
|
3282
3284
|
dateTime: {},
|
|
3283
3285
|
pluralRules: {}
|
|
3284
3286
|
}), {
|
|
3285
|
-
getNumberFormat:
|
|
3287
|
+
getNumberFormat: wt(function() {
|
|
3286
3288
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3287
3289
|
n[r] = arguments[r];
|
|
3288
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3290
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, _t([void 0], n, !1)))();
|
|
3289
3291
|
}, {
|
|
3290
|
-
cache:
|
|
3291
|
-
strategy:
|
|
3292
|
+
cache: At(e.number),
|
|
3293
|
+
strategy: Tt.variadic
|
|
3292
3294
|
}),
|
|
3293
|
-
getDateTimeFormat:
|
|
3295
|
+
getDateTimeFormat: wt(function() {
|
|
3294
3296
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3295
3297
|
n[r] = arguments[r];
|
|
3296
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3298
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, _t([void 0], n, !1)))();
|
|
3297
3299
|
}, {
|
|
3298
|
-
cache:
|
|
3299
|
-
strategy:
|
|
3300
|
+
cache: At(e.dateTime),
|
|
3301
|
+
strategy: Tt.variadic
|
|
3300
3302
|
}),
|
|
3301
|
-
getPluralRules:
|
|
3303
|
+
getPluralRules: wt(function() {
|
|
3302
3304
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3303
3305
|
n[r] = arguments[r];
|
|
3304
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3306
|
+
return new ((t = Intl.PluralRules).bind.apply(t, _t([void 0], n, !1)))();
|
|
3305
3307
|
}, {
|
|
3306
|
-
cache:
|
|
3307
|
-
strategy:
|
|
3308
|
+
cache: At(e.pluralRules),
|
|
3309
|
+
strategy: Tt.variadic
|
|
3308
3310
|
})
|
|
3309
3311
|
};
|
|
3310
3312
|
}
|
|
@@ -3319,15 +3321,15 @@ var _i = (
|
|
|
3319
3321
|
dateTime: {},
|
|
3320
3322
|
pluralRules: {}
|
|
3321
3323
|
}, this.format = function(c) {
|
|
3322
|
-
var
|
|
3323
|
-
if (
|
|
3324
|
-
return
|
|
3325
|
-
var
|
|
3326
|
-
return !
|
|
3324
|
+
var l = a.formatToParts(c);
|
|
3325
|
+
if (l.length === 1)
|
|
3326
|
+
return l[0].value;
|
|
3327
|
+
var u = l.reduce(function(h, d) {
|
|
3328
|
+
return !h.length || d.type !== X.literal || typeof h[h.length - 1] != "string" ? h.push(d.value) : h[h.length - 1] += d.value, h;
|
|
3327
3329
|
}, []);
|
|
3328
|
-
return
|
|
3330
|
+
return u.length <= 1 ? u[0] || "" : u;
|
|
3329
3331
|
}, this.formatToParts = function(c) {
|
|
3330
|
-
return
|
|
3332
|
+
return lt(a.ast, a.locales, a.formatters, a.formats, c, void 0, a.message);
|
|
3331
3333
|
}, this.resolvedOptions = function() {
|
|
3332
3334
|
var c;
|
|
3333
3335
|
return {
|
|
@@ -3340,13 +3342,13 @@ var _i = (
|
|
|
3340
3342
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3341
3343
|
var o = i || {};
|
|
3342
3344
|
o.formatters;
|
|
3343
|
-
var s =
|
|
3344
|
-
this.ast = e.__parse(t,
|
|
3345
|
+
var s = Ir(o, ["formatters"]);
|
|
3346
|
+
this.ast = e.__parse(t, A(A({}, s), { locale: this.resolvedLocale }));
|
|
3345
3347
|
} else
|
|
3346
3348
|
this.ast = t;
|
|
3347
3349
|
if (!Array.isArray(this.ast))
|
|
3348
3350
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3349
|
-
this.formats =
|
|
3351
|
+
this.formats = vi(e.formats, r), this.formatters = i && i.formatters || Ei(this.formatterCache);
|
|
3350
3352
|
}
|
|
3351
3353
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3352
3354
|
get: function() {
|
|
@@ -3441,28 +3443,28 @@ function wi(e, t) {
|
|
|
3441
3443
|
r = void 0;
|
|
3442
3444
|
return r;
|
|
3443
3445
|
}
|
|
3444
|
-
const
|
|
3446
|
+
const ve = {}, Ti = (e, t, n) => n && (t in ve || (ve[t] = {}), e in ve[t] || (ve[t][e] = n), n), kn = (e, t) => {
|
|
3445
3447
|
if (t == null)
|
|
3446
3448
|
return;
|
|
3447
|
-
if (t in
|
|
3448
|
-
return
|
|
3449
|
-
const n =
|
|
3449
|
+
if (t in ve && e in ve[t])
|
|
3450
|
+
return ve[t][e];
|
|
3451
|
+
const n = yt(t);
|
|
3450
3452
|
for (let r = 0; r < n.length; r++) {
|
|
3451
3453
|
const i = n[r], a = Ai(i, e);
|
|
3452
3454
|
if (a)
|
|
3453
3455
|
return Ti(e, t, a);
|
|
3454
3456
|
}
|
|
3455
3457
|
};
|
|
3456
|
-
let
|
|
3457
|
-
const
|
|
3458
|
+
let kt;
|
|
3459
|
+
const je = dt({});
|
|
3458
3460
|
function Hi(e) {
|
|
3459
|
-
return
|
|
3461
|
+
return kt[e] || null;
|
|
3460
3462
|
}
|
|
3461
|
-
function
|
|
3462
|
-
return e in
|
|
3463
|
+
function $n(e) {
|
|
3464
|
+
return e in kt;
|
|
3463
3465
|
}
|
|
3464
3466
|
function Ai(e, t) {
|
|
3465
|
-
if (
|
|
3467
|
+
if (!$n(e))
|
|
3466
3468
|
return null;
|
|
3467
3469
|
const n = Hi(e);
|
|
3468
3470
|
return wi(n, t);
|
|
@@ -3470,50 +3472,50 @@ function Ai(e, t) {
|
|
|
3470
3472
|
function Bi(e) {
|
|
3471
3473
|
if (e == null)
|
|
3472
3474
|
return;
|
|
3473
|
-
const t =
|
|
3475
|
+
const t = yt(e);
|
|
3474
3476
|
for (let n = 0; n < t.length; n++) {
|
|
3475
3477
|
const r = t[n];
|
|
3476
|
-
if (
|
|
3478
|
+
if ($n(r))
|
|
3477
3479
|
return r;
|
|
3478
3480
|
}
|
|
3479
3481
|
}
|
|
3480
|
-
function
|
|
3481
|
-
delete
|
|
3482
|
+
function jn(e, ...t) {
|
|
3483
|
+
delete ve[e], je.update((n) => (n[e] = Pr.all([n[e] || {}, ...t]), n));
|
|
3482
3484
|
}
|
|
3483
|
-
|
|
3484
|
-
[
|
|
3485
|
+
$e(
|
|
3486
|
+
[je],
|
|
3485
3487
|
([e]) => Object.keys(e)
|
|
3486
3488
|
);
|
|
3487
|
-
|
|
3488
|
-
const
|
|
3489
|
+
je.subscribe((e) => kt = e);
|
|
3490
|
+
const ct = {};
|
|
3489
3491
|
function Si(e, t) {
|
|
3490
|
-
|
|
3492
|
+
ct[e].delete(t), ct[e].size === 0 && delete ct[e];
|
|
3491
3493
|
}
|
|
3492
|
-
function
|
|
3493
|
-
return
|
|
3494
|
+
function Vn(e) {
|
|
3495
|
+
return ct[e];
|
|
3494
3496
|
}
|
|
3495
3497
|
function Ci(e) {
|
|
3496
|
-
return
|
|
3497
|
-
const n =
|
|
3498
|
+
return yt(e).map((t) => {
|
|
3499
|
+
const n = Vn(t);
|
|
3498
3500
|
return [t, n ? [...n] : []];
|
|
3499
3501
|
}).filter(([, t]) => t.length > 0);
|
|
3500
3502
|
}
|
|
3501
|
-
function
|
|
3502
|
-
return e == null ? !1 :
|
|
3503
|
+
function Rt(e) {
|
|
3504
|
+
return e == null ? !1 : yt(e).some(
|
|
3503
3505
|
(t) => {
|
|
3504
3506
|
var n;
|
|
3505
|
-
return (n =
|
|
3507
|
+
return (n = Vn(t)) == null ? void 0 : n.size;
|
|
3506
3508
|
}
|
|
3507
3509
|
);
|
|
3508
3510
|
}
|
|
3509
3511
|
function Pi(e, t) {
|
|
3510
3512
|
return Promise.all(
|
|
3511
3513
|
t.map((r) => (Si(e, r), r().then((i) => i.default || i)))
|
|
3512
|
-
).then((r) =>
|
|
3514
|
+
).then((r) => jn(e, ...r));
|
|
3513
3515
|
}
|
|
3514
3516
|
const Qe = {};
|
|
3515
|
-
function
|
|
3516
|
-
if (!
|
|
3517
|
+
function zn(e) {
|
|
3518
|
+
if (!Rt(e))
|
|
3517
3519
|
return e in Qe ? Qe[e] : Promise.resolve();
|
|
3518
3520
|
const t = Ci(e);
|
|
3519
3521
|
return Qe[e] = Promise.all(
|
|
@@ -3521,8 +3523,8 @@ function Xn(e) {
|
|
|
3521
3523
|
([n, r]) => Pi(n, r)
|
|
3522
3524
|
)
|
|
3523
3525
|
).then(() => {
|
|
3524
|
-
if (
|
|
3525
|
-
return
|
|
3526
|
+
if (Rt(e))
|
|
3527
|
+
return zn(e);
|
|
3526
3528
|
delete Qe[e];
|
|
3527
3529
|
}), Qe[e];
|
|
3528
3530
|
}
|
|
@@ -3563,48 +3565,48 @@ const Ii = {
|
|
|
3563
3565
|
handleMissingMessage: void 0,
|
|
3564
3566
|
ignoreTag: !0
|
|
3565
3567
|
}, Oi = Ni;
|
|
3566
|
-
function
|
|
3568
|
+
function ke() {
|
|
3567
3569
|
return Oi;
|
|
3568
3570
|
}
|
|
3569
|
-
const
|
|
3570
|
-
var Li = Object.defineProperty, Mi = Object.defineProperties, Ri = Object.getOwnPropertyDescriptors,
|
|
3571
|
-
for (var n in t
|
|
3572
|
-
Di.call(t, n) &&
|
|
3573
|
-
if (
|
|
3574
|
-
for (var n of
|
|
3575
|
-
Ui.call(t, n) &&
|
|
3571
|
+
const Bt = dt(!1);
|
|
3572
|
+
var Li = Object.defineProperty, Mi = Object.defineProperties, Ri = Object.getOwnPropertyDescriptors, an = Object.getOwnPropertySymbols, Di = Object.prototype.hasOwnProperty, Ui = Object.prototype.propertyIsEnumerable, on = (e, t, n) => t in e ? Li(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Fi = (e, t) => {
|
|
3573
|
+
for (var n in t)
|
|
3574
|
+
Di.call(t, n) && on(e, n, t[n]);
|
|
3575
|
+
if (an)
|
|
3576
|
+
for (var n of an(t))
|
|
3577
|
+
Ui.call(t, n) && on(e, n, t[n]);
|
|
3576
3578
|
return e;
|
|
3577
3579
|
}, Gi = (e, t) => Mi(e, Ri(t));
|
|
3578
|
-
let
|
|
3579
|
-
const
|
|
3580
|
-
function
|
|
3580
|
+
let Dt;
|
|
3581
|
+
const pt = dt(null);
|
|
3582
|
+
function sn(e) {
|
|
3581
3583
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3582
3584
|
}
|
|
3583
|
-
function
|
|
3584
|
-
const n =
|
|
3585
|
-
return t ? [.../* @__PURE__ */ new Set([...n, ...
|
|
3585
|
+
function yt(e, t = ke().fallbackLocale) {
|
|
3586
|
+
const n = sn(e);
|
|
3587
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...sn(t)])] : n;
|
|
3586
3588
|
}
|
|
3587
|
-
function
|
|
3588
|
-
return
|
|
3589
|
+
function He() {
|
|
3590
|
+
return Dt ?? void 0;
|
|
3589
3591
|
}
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
+
pt.subscribe((e) => {
|
|
3593
|
+
Dt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3592
3594
|
});
|
|
3593
3595
|
const ki = (e) => {
|
|
3594
|
-
if (e && Bi(e) &&
|
|
3595
|
-
const { loadingDelay: t } =
|
|
3596
|
+
if (e && Bi(e) && Rt(e)) {
|
|
3597
|
+
const { loadingDelay: t } = ke();
|
|
3596
3598
|
let n;
|
|
3597
|
-
return typeof window < "u" &&
|
|
3598
|
-
() =>
|
|
3599
|
+
return typeof window < "u" && He() != null && t ? n = window.setTimeout(
|
|
3600
|
+
() => Bt.set(!0),
|
|
3599
3601
|
t
|
|
3600
|
-
) :
|
|
3601
|
-
|
|
3602
|
+
) : Bt.set(!0), zn(e).then(() => {
|
|
3603
|
+
pt.set(e);
|
|
3602
3604
|
}).finally(() => {
|
|
3603
|
-
clearTimeout(n),
|
|
3605
|
+
clearTimeout(n), Bt.set(!1);
|
|
3604
3606
|
});
|
|
3605
3607
|
}
|
|
3606
|
-
return
|
|
3607
|
-
}, Ee = Gi(Fi({},
|
|
3608
|
+
return pt.set(e);
|
|
3609
|
+
}, Ee = Gi(Fi({}, pt), {
|
|
3608
3610
|
set: ki
|
|
3609
3611
|
}), xt = (e) => {
|
|
3610
3612
|
const t = /* @__PURE__ */ Object.create(null);
|
|
@@ -3613,44 +3615,44 @@ const ki = (e) => {
|
|
|
3613
3615
|
return i in t ? t[i] : t[i] = e(r);
|
|
3614
3616
|
};
|
|
3615
3617
|
};
|
|
3616
|
-
var $i = Object.defineProperty,
|
|
3618
|
+
var $i = Object.defineProperty, mt = Object.getOwnPropertySymbols, Xn = Object.prototype.hasOwnProperty, Wn = Object.prototype.propertyIsEnumerable, un = (e, t, n) => t in e ? $i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, $t = (e, t) => {
|
|
3617
3619
|
for (var n in t || (t = {}))
|
|
3618
|
-
|
|
3619
|
-
if (
|
|
3620
|
-
for (var n of
|
|
3621
|
-
|
|
3620
|
+
Xn.call(t, n) && un(e, n, t[n]);
|
|
3621
|
+
if (mt)
|
|
3622
|
+
for (var n of mt(t))
|
|
3623
|
+
Wn.call(t, n) && un(e, n, t[n]);
|
|
3622
3624
|
return e;
|
|
3623
|
-
},
|
|
3625
|
+
}, Ve = (e, t) => {
|
|
3624
3626
|
var n = {};
|
|
3625
3627
|
for (var r in e)
|
|
3626
|
-
|
|
3627
|
-
if (e != null &&
|
|
3628
|
-
for (var r of
|
|
3629
|
-
t.indexOf(r) < 0 &&
|
|
3628
|
+
Xn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3629
|
+
if (e != null && mt)
|
|
3630
|
+
for (var r of mt(e))
|
|
3631
|
+
t.indexOf(r) < 0 && Wn.call(e, r) && (n[r] = e[r]);
|
|
3630
3632
|
return n;
|
|
3631
3633
|
};
|
|
3632
3634
|
const tt = (e, t) => {
|
|
3633
|
-
const { formats: n } =
|
|
3635
|
+
const { formats: n } = ke();
|
|
3634
3636
|
if (e in n && t in n[e])
|
|
3635
3637
|
return n[e][t];
|
|
3636
3638
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3637
3639
|
}, ji = xt(
|
|
3638
3640
|
(e) => {
|
|
3639
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3641
|
+
var t = e, { locale: n, format: r } = t, i = Ve(t, ["locale", "format"]);
|
|
3640
3642
|
if (n == null)
|
|
3641
3643
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3642
3644
|
return r && (i = tt("number", r)), new Intl.NumberFormat(n, i);
|
|
3643
3645
|
}
|
|
3644
3646
|
), Vi = xt(
|
|
3645
3647
|
(e) => {
|
|
3646
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3648
|
+
var t = e, { locale: n, format: r } = t, i = Ve(t, ["locale", "format"]);
|
|
3647
3649
|
if (n == null)
|
|
3648
3650
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3649
3651
|
return r ? i = tt("date", r) : Object.keys(i).length === 0 && (i = tt("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3650
3652
|
}
|
|
3651
3653
|
), zi = xt(
|
|
3652
3654
|
(e) => {
|
|
3653
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3655
|
+
var t = e, { locale: n, format: r } = t, i = Ve(t, ["locale", "format"]);
|
|
3654
3656
|
if (n == null)
|
|
3655
3657
|
throw new Error(
|
|
3656
3658
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
@@ -3659,29 +3661,29 @@ const tt = (e, t) => {
|
|
|
3659
3661
|
}
|
|
3660
3662
|
), Xi = (e = {}) => {
|
|
3661
3663
|
var t = e, {
|
|
3662
|
-
locale: n =
|
|
3663
|
-
} = t, r =
|
|
3664
|
+
locale: n = He()
|
|
3665
|
+
} = t, r = Ve(t, [
|
|
3664
3666
|
"locale"
|
|
3665
3667
|
]);
|
|
3666
|
-
return ji(
|
|
3668
|
+
return ji($t({ locale: n }, r));
|
|
3667
3669
|
}, Wi = (e = {}) => {
|
|
3668
3670
|
var t = e, {
|
|
3669
|
-
locale: n =
|
|
3670
|
-
} = t, r =
|
|
3671
|
+
locale: n = He()
|
|
3672
|
+
} = t, r = Ve(t, [
|
|
3671
3673
|
"locale"
|
|
3672
3674
|
]);
|
|
3673
|
-
return Vi(
|
|
3675
|
+
return Vi($t({ locale: n }, r));
|
|
3674
3676
|
}, Zi = (e = {}) => {
|
|
3675
3677
|
var t = e, {
|
|
3676
|
-
locale: n =
|
|
3677
|
-
} = t, r =
|
|
3678
|
+
locale: n = He()
|
|
3679
|
+
} = t, r = Ve(t, [
|
|
3678
3680
|
"locale"
|
|
3679
3681
|
]);
|
|
3680
|
-
return zi(
|
|
3682
|
+
return zi($t({ locale: n }, r));
|
|
3681
3683
|
}, qi = xt(
|
|
3682
3684
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3683
|
-
(e, t =
|
|
3684
|
-
ignoreTag:
|
|
3685
|
+
(e, t = He()) => new _i(e, t, ke().formats, {
|
|
3686
|
+
ignoreTag: ke().ignoreTag
|
|
3685
3687
|
})
|
|
3686
3688
|
), Ji = (e, t = {}) => {
|
|
3687
3689
|
var n, r, i, a;
|
|
@@ -3689,49 +3691,49 @@ const tt = (e, t) => {
|
|
|
3689
3691
|
typeof e == "object" && (o = e, e = o.id);
|
|
3690
3692
|
const {
|
|
3691
3693
|
values: s,
|
|
3692
|
-
locale: c =
|
|
3693
|
-
default:
|
|
3694
|
+
locale: c = He(),
|
|
3695
|
+
default: l
|
|
3694
3696
|
} = o;
|
|
3695
3697
|
if (c == null)
|
|
3696
3698
|
throw new Error(
|
|
3697
3699
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3698
3700
|
);
|
|
3699
|
-
let
|
|
3700
|
-
if (!
|
|
3701
|
-
|
|
3702
|
-
else if (typeof
|
|
3701
|
+
let u = kn(e, c);
|
|
3702
|
+
if (!u)
|
|
3703
|
+
u = (a = (i = (r = (n = ke()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: l })) != null ? i : l) != null ? a : e;
|
|
3704
|
+
else if (typeof u != "string")
|
|
3703
3705
|
return console.warn(
|
|
3704
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
3705
|
-
),
|
|
3706
|
+
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3707
|
+
), u;
|
|
3706
3708
|
if (!s)
|
|
3707
|
-
return
|
|
3708
|
-
let
|
|
3709
|
+
return u;
|
|
3710
|
+
let h = u;
|
|
3709
3711
|
try {
|
|
3710
|
-
|
|
3712
|
+
h = qi(u, c).format(s);
|
|
3711
3713
|
} catch (d) {
|
|
3712
3714
|
d instanceof Error && console.warn(
|
|
3713
3715
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3714
3716
|
d.message
|
|
3715
3717
|
);
|
|
3716
3718
|
}
|
|
3717
|
-
return
|
|
3718
|
-
}, Qi = (e, t) => Zi(t).format(e), Yi = (e, t) => Wi(t).format(e), Ki = (e, t) => Xi(t).format(e), ea = (e, t =
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3719
|
+
return h;
|
|
3720
|
+
}, Qi = (e, t) => Zi(t).format(e), Yi = (e, t) => Wi(t).format(e), Ki = (e, t) => Xi(t).format(e), ea = (e, t = He()) => kn(e, t), ta = $e([Ee, je], () => Ji);
|
|
3721
|
+
$e([Ee], () => Qi);
|
|
3722
|
+
$e([Ee], () => Yi);
|
|
3723
|
+
$e([Ee], () => Ki);
|
|
3724
|
+
$e([Ee, je], () => ea);
|
|
3723
3725
|
function na({ withLocale: e, translations: t }) {
|
|
3724
3726
|
Ee.subscribe((n) => {
|
|
3725
|
-
n == null && (
|
|
3727
|
+
n == null && (je.set(t), Ee.set(e));
|
|
3726
3728
|
});
|
|
3727
3729
|
}
|
|
3728
|
-
function
|
|
3729
|
-
|
|
3730
|
+
function ln(e, t) {
|
|
3731
|
+
jn(e, t);
|
|
3730
3732
|
}
|
|
3731
3733
|
function ra(e) {
|
|
3732
3734
|
Ee.set(e);
|
|
3733
3735
|
}
|
|
3734
|
-
const
|
|
3736
|
+
const cn = {
|
|
3735
3737
|
en: {
|
|
3736
3738
|
vaultExchange: "Vault Exchange",
|
|
3737
3739
|
debitPlaceHolder: "Debit amount",
|
|
@@ -3781,150 +3783,150 @@ const hn = {
|
|
|
3781
3783
|
}
|
|
3782
3784
|
};
|
|
3783
3785
|
function ia(e) {
|
|
3784
|
-
|
|
3786
|
+
Jn(e, "svelte-y4tbuy", "*{margin:0;padding:0}.player-account-vault{max-width:400px;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:auto;font-family:inherit;overflow:hidden;border:1px solid var(--emfe-w-color-primary, #22B04E);border-radius:var(--emw--border-radius-medium, 6px);box-shadow:var(--emfe-w-color-primary, #22B04E) 0px 0px 10px;gap:var(--emw--spacing-medium, 15px)}.player-account-vault .playerVaultContainer{width:100%;display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:var(--emw--spacing-small, 10px);color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));border-radius:var(--emw--border-radius-small, 5px);padding:var(--emw--spacing-medium, 10px);box-sizing:border-box}.player-account-vault .playerVaultContainer .balanceContainer{display:flex;flex-direction:column;justify-content:center;align-items:flex-end;font-size:var(--emw--font-size-medium, 20px);font-weight:var(--emw--font-weight-normal, 400);gap:var(--emw--spacing-small, 10px);font-family:inherit}.player-account-vault .playerVaultContainer .balanceContainer .playerBalance{font-size:var(--emw--font-size-large, 25px)}.player-account-vault .playerVaultContainer .headerContainer{margin-right:auto;margin-bottom:auto}.player-account-vault .playerVaultContainer .headerContainer h1{width:100%;text-align:center;font-family:inherit;font-size:var(--emw--font-size-medium, 20px);font-weight:var(--emw--font-weight-normal, 400)}.player-account-vault .containerExchanges{width:100%;height:100%;display:flex;flex-direction:row;justify-content:space-between;align-items:center;box-sizing:border-box;position:relative;gap:var(--emw--spacing-small, 10px);background:var(--emfe-w-color-primary, #22B04E);padding:var(--emw--spacing-medium, 20px) var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 25px) var(--emw--spacing-medium, 10px)}.player-account-vault .containerExchanges .containerExchangeFrom,.player-account-vault .containerExchanges .containerExchangeTo{width:inherit;height:inherit;display:flex;flex-direction:column;justify-content:center;align-self:center;gap:var(--emw--spacing-small, 10px)}.player-account-vault .containerExchanges .containerExchangeFrom .exchangeHeader,.player-account-vault .containerExchanges .containerExchangeTo .exchangeHeader{font-size:inherit;font-family:inherit;color:var(--emfe-w-color-white, #fff);font-family:inherit}.player-account-vault .containerExchanges .containerExchangeFrom .flexingContainerRow,.player-account-vault .containerExchanges .containerExchangeTo .flexingContainerRow{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:var(--emw--spacing-small, 10px)}.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect{display:flex;flex-direction:column;justify-content:space-evenly;align-items:center;gap:var(--emw--spacing-small, 10px);max-width:200px}.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect input,.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect select,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect input,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect select{text-align:center;padding:5px 0px;margin:0;border:2px solid var(--emw--button-border-color, #22B04E);color:var(--emfe-w-color-black, #000000)}.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect input,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect input{width:100%}.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect select,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect select{width:100%}.player-account-vault .containerExchanges .exchangeDetailsWrapper{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--emw--spacing-medium, 20px) var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 25px) var(--emw--spacing-medium, 10px)}.player-account-vault .containerExchanges .containerIconExchange{margin:auto;padding-top:20px}.player-account-vault .containerExchanges .containerIconExchange .iconExchange{width:20px;height:20px;transform:rotateZ(-90deg)}.player-account-vault .containerExchanges .containerIconExchange .iconExchange path{fill:var(--emfe-w-color-white, #fff)}.player-account-vault .containerExchanges .containerIconVault{width:15px;height:15px;position:absolute;top:85%;right:5%;padding:var(--emw--spacing-medium, 10px);background:var(--emfe-w-color-primary, #22B04E);border:3px solid var(--emfe-w-color-white, #fff);border-radius:var(--emw--border-radius-medium, 10px);cursor:pointer}.player-account-vault .containerExchanges .containerIconVault .iconToggleVault{transform:rotateZ(0deg);transition:all 0.3s ease-in-out}.player-account-vault .containerExchanges .containerIconVault .iconToggleVault path{fill:var(--emfe-w-color-white, #fff)}.player-account-vault .containerExchanges .containerIconVault.active .iconToggleVault{transform:rotateZ(180deg)}.player-account-vault .vaultDropDown{width:100%;height:0px;margin:0px;display:flex;flex-direction:column;box-sizing:border-box;overflow:auto;scrollbar-width:none;transition:all 0.5s ease-in-out;opacity:0;gap:var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-medium, 15px);color:var(--emw--color-white, #fff);font-family:inherit}.player-account-vault .vaultDropDown div{display:inherit;flex-direction:row;justify-content:space-between;padding:var(--emw--spacing-medium, 15px) var(--emw--spacing-large, 30px);background:var(--emfe-w-color-primary, #22B04E);border-radius:var(--emw--border-radius-medium, 6px);box-shadow:var(--emfe-w-color-primary, #52474d) 0px 0px 6px}.player-account-vault .vaultDropDown.active{padding:var(--emw--spacing-large, 20px) var(--emw--spacing-medium, 10px);opacity:1}.player-account-vault .notificationsContainer{width:100%;max-height:0px;padding:0px;box-sizing:border-box;transition:all 0.5s ease-in-out}.player-account-vault .notificationsContainer div{text-align:center;padding:var(--emw--spacing-medium, 15px);border-radius:var(--emw--border-radius-medium, 6px);box-shadow:var(--emfe-w-color-primary, #52474d) 0px 0px 6px;color:var(--emfe-w-color-white, #fff);opacity:0;transform:scale(0);transition:inherit;box-sizing:inherit;font-family:inherit}.player-account-vault .notificationsContainer .error{transform:scale(1);opacity:1;background-color:var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909))}.player-account-vault .notificationsContainer .success{transform:scale(1);opacity:1;background-color:var(--emfe-w-color-success, var(--emfe-w-color-primary, #22B04E))}.player-account-vault .notificationsContainer .action{transform:scale(1);opacity:1;background-color:var(--emfe-w-color-success, var(--emfe-w-color-primary, #abb022))}.player-account-vault .notificationsContainer.error,.player-account-vault .notificationsContainer.success,.player-account-vault .notificationsContainer.action{max-height:200px;padding:var(--emw--spacing-medium, 10px)}.player-account-vault .actionsContainer{width:100%;height:100%;display:flex;flex-direction:row;justify-content:space-between;align-items:center;box-sizing:border-box;padding:var(--emw--spacing-medium, 10px)}.player-account-vault .actionsContainer button{width:100px;height:30px;border:none;cursor:pointer;font-family:inherit;font-size:var(--emw--font-size-medium, 15px);border-radius:var(--emw--button-border-radius, 5px);background:var(--emfe-w-color-primary, #22B04E);color:var(--emfe-w-button-typography, var(--emw--button-text-color, #FFFFFF))}.player-account-vault .actionsContainer .disabled{cursor:default;background:var(--emfe-w-color-gray-150, #828282)}@media only screen and (max-width: 300px){.player-account-vault .playerVaultContainer .headerContainer h1{text-align:left;font-size:var(--emw--font-size-medium, 15px)}.player-account-vault .playerVaultContainer .balanceContainer p{text-align:right;font-size:var(--emw--font-size-medium, 15px)}.player-account-vault .playerVaultContainer .balanceContainer .playerBalance{font-size:var(--emw--font-size-medium, 20px)}}");
|
|
3785
3787
|
}
|
|
3786
|
-
function
|
|
3788
|
+
function hn(e, t, n) {
|
|
3787
3789
|
const r = e.slice();
|
|
3788
3790
|
return r[64] = t[n], r[65] = t, r[66] = n, r;
|
|
3789
3791
|
}
|
|
3790
|
-
function
|
|
3792
|
+
function fn(e, t, n) {
|
|
3791
3793
|
const r = e.slice();
|
|
3792
3794
|
return r[67] = t[n], r;
|
|
3793
3795
|
}
|
|
3794
|
-
function
|
|
3796
|
+
function pn(e, t, n) {
|
|
3795
3797
|
const r = e.slice();
|
|
3796
3798
|
return r[67] = t[n], r;
|
|
3797
3799
|
}
|
|
3798
|
-
function
|
|
3800
|
+
function mn(e) {
|
|
3799
3801
|
let t, n = (
|
|
3800
3802
|
/*balance*/
|
|
3801
3803
|
e[67].currency + ""
|
|
3802
3804
|
), r, i, a;
|
|
3803
3805
|
return {
|
|
3804
3806
|
c() {
|
|
3805
|
-
t = E("option"), r =
|
|
3806
|
-
e[67].currency,
|
|
3807
|
+
t = E("option"), r = j(n), i = R(), t.__value = a = /*balance*/
|
|
3808
|
+
e[67].currency, xe(t, t.__value);
|
|
3807
3809
|
},
|
|
3808
3810
|
m(o, s) {
|
|
3809
|
-
|
|
3811
|
+
Q(o, t, s), m(t, r), m(t, i);
|
|
3810
3812
|
},
|
|
3811
3813
|
p(o, s) {
|
|
3812
3814
|
s[0] & /*playerFilteredBalances*/
|
|
3813
3815
|
8192 && n !== (n = /*balance*/
|
|
3814
|
-
o[67].currency + "") &&
|
|
3816
|
+
o[67].currency + "") && W(r, n), s[0] & /*playerFilteredBalances*/
|
|
3815
3817
|
8192 && a !== (a = /*balance*/
|
|
3816
|
-
o[67].currency) && (t.__value = a,
|
|
3818
|
+
o[67].currency) && (t.__value = a, xe(t, t.__value));
|
|
3817
3819
|
},
|
|
3818
3820
|
d(o) {
|
|
3819
|
-
o &&
|
|
3821
|
+
o && Z(t);
|
|
3820
3822
|
}
|
|
3821
3823
|
};
|
|
3822
3824
|
}
|
|
3823
|
-
function
|
|
3825
|
+
function dn(e) {
|
|
3824
3826
|
let t, n = (
|
|
3825
3827
|
/*balance*/
|
|
3826
|
-
e[67].amount > 0 &&
|
|
3828
|
+
e[67].amount > 0 && mn(e)
|
|
3827
3829
|
);
|
|
3828
3830
|
return {
|
|
3829
3831
|
c() {
|
|
3830
|
-
n && n.c(), t =
|
|
3832
|
+
n && n.c(), t = _n();
|
|
3831
3833
|
},
|
|
3832
3834
|
m(r, i) {
|
|
3833
|
-
n && n.m(r, i),
|
|
3835
|
+
n && n.m(r, i), Q(r, t, i);
|
|
3834
3836
|
},
|
|
3835
3837
|
p(r, i) {
|
|
3836
3838
|
/*balance*/
|
|
3837
|
-
r[67].amount > 0 ? n ? n.p(r, i) : (n =
|
|
3839
|
+
r[67].amount > 0 ? n ? n.p(r, i) : (n = mn(r), n.c(), n.m(t.parentNode, t)) : n && (n.d(1), n = null);
|
|
3838
3840
|
},
|
|
3839
3841
|
d(r) {
|
|
3840
|
-
r &&
|
|
3842
|
+
r && Z(t), n && n.d(r);
|
|
3841
3843
|
}
|
|
3842
3844
|
};
|
|
3843
3845
|
}
|
|
3844
|
-
function
|
|
3846
|
+
function gn(e) {
|
|
3845
3847
|
let t, n = (
|
|
3846
3848
|
/*balance*/
|
|
3847
3849
|
e[67].currency + ""
|
|
3848
3850
|
), r, i, a;
|
|
3849
3851
|
return {
|
|
3850
3852
|
c() {
|
|
3851
|
-
t = E("option"), r =
|
|
3852
|
-
e[67].currency,
|
|
3853
|
+
t = E("option"), r = j(n), i = R(), t.__value = a = /*balance*/
|
|
3854
|
+
e[67].currency, xe(t, t.__value);
|
|
3853
3855
|
},
|
|
3854
3856
|
m(o, s) {
|
|
3855
|
-
|
|
3857
|
+
Q(o, t, s), m(t, r), m(t, i);
|
|
3856
3858
|
},
|
|
3857
3859
|
p(o, s) {
|
|
3858
3860
|
s[0] & /*playerFilteredBalances*/
|
|
3859
3861
|
8192 && n !== (n = /*balance*/
|
|
3860
|
-
o[67].currency + "") &&
|
|
3862
|
+
o[67].currency + "") && W(r, n), s[0] & /*playerFilteredBalances*/
|
|
3861
3863
|
8192 && a !== (a = /*balance*/
|
|
3862
|
-
o[67].currency) && (t.__value = a,
|
|
3864
|
+
o[67].currency) && (t.__value = a, xe(t, t.__value));
|
|
3863
3865
|
},
|
|
3864
3866
|
d(o) {
|
|
3865
|
-
o &&
|
|
3867
|
+
o && Z(t);
|
|
3866
3868
|
}
|
|
3867
3869
|
};
|
|
3868
3870
|
}
|
|
3869
|
-
function
|
|
3871
|
+
function bn(e) {
|
|
3870
3872
|
let t, n = (
|
|
3871
3873
|
/*selectedCurrencyFrom*/
|
|
3872
3874
|
e[1] !== /*balance*/
|
|
3873
|
-
e[67].currency &&
|
|
3875
|
+
e[67].currency && gn(e)
|
|
3874
3876
|
);
|
|
3875
3877
|
return {
|
|
3876
3878
|
c() {
|
|
3877
|
-
n && n.c(), t =
|
|
3879
|
+
n && n.c(), t = _n();
|
|
3878
3880
|
},
|
|
3879
3881
|
m(r, i) {
|
|
3880
|
-
n && n.m(r, i),
|
|
3882
|
+
n && n.m(r, i), Q(r, t, i);
|
|
3881
3883
|
},
|
|
3882
3884
|
p(r, i) {
|
|
3883
3885
|
/*selectedCurrencyFrom*/
|
|
3884
3886
|
r[1] !== /*balance*/
|
|
3885
|
-
r[67].currency ? n ? n.p(r, i) : (n =
|
|
3887
|
+
r[67].currency ? n ? n.p(r, i) : (n = gn(r), n.c(), n.m(t.parentNode, t)) : n && (n.d(1), n = null);
|
|
3886
3888
|
},
|
|
3887
3889
|
d(r) {
|
|
3888
|
-
r &&
|
|
3890
|
+
r && Z(t), n && n.d(r);
|
|
3889
3891
|
}
|
|
3890
3892
|
};
|
|
3891
3893
|
}
|
|
3892
|
-
function
|
|
3894
|
+
function yn(e) {
|
|
3893
3895
|
let t, n, r = (
|
|
3894
3896
|
/*vault*/
|
|
3895
3897
|
e[64].currency + ""
|
|
3896
3898
|
), i, a, o, s = (
|
|
3897
3899
|
/*vault*/
|
|
3898
3900
|
e[64].amount + ""
|
|
3899
|
-
), c,
|
|
3901
|
+
), c, l, u = (
|
|
3900
3902
|
/*index*/
|
|
3901
3903
|
e[66]
|
|
3902
3904
|
);
|
|
3903
|
-
const
|
|
3905
|
+
const h = () => (
|
|
3904
3906
|
/*div_binding*/
|
|
3905
|
-
e[37](t,
|
|
3907
|
+
e[37](t, u)
|
|
3906
3908
|
), d = () => (
|
|
3907
3909
|
/*div_binding*/
|
|
3908
|
-
e[37](null,
|
|
3910
|
+
e[37](null, u)
|
|
3909
3911
|
);
|
|
3910
3912
|
return {
|
|
3911
3913
|
c() {
|
|
3912
|
-
t = E("div"), n = E("p"), i =
|
|
3914
|
+
t = E("div"), n = E("p"), i = j(r), a = R(), o = E("p"), c = j(s), l = R(), T(t, "class", "vaultItem");
|
|
3913
3915
|
},
|
|
3914
|
-
m(
|
|
3915
|
-
|
|
3916
|
+
m(b, x) {
|
|
3917
|
+
Q(b, t, x), m(t, n), m(n, i), m(t, a), m(t, o), m(o, c), m(t, l), h();
|
|
3916
3918
|
},
|
|
3917
|
-
p(
|
|
3918
|
-
e =
|
|
3919
|
+
p(b, x) {
|
|
3920
|
+
e = b, x[0] & /*dropDownVaults*/
|
|
3919
3921
|
16384 && r !== (r = /*vault*/
|
|
3920
|
-
e[64].currency + "") &&
|
|
3922
|
+
e[64].currency + "") && W(i, r), x[0] & /*dropDownVaults*/
|
|
3921
3923
|
16384 && s !== (s = /*vault*/
|
|
3922
|
-
e[64].amount + "") &&
|
|
3923
|
-
e[66] && (d(),
|
|
3924
|
-
e[66],
|
|
3924
|
+
e[64].amount + "") && W(c, s), u !== /*index*/
|
|
3925
|
+
e[66] && (d(), u = /*index*/
|
|
3926
|
+
e[66], h());
|
|
3925
3927
|
},
|
|
3926
|
-
d(
|
|
3927
|
-
|
|
3928
|
+
d(b) {
|
|
3929
|
+
b && Z(t), d();
|
|
3928
3930
|
}
|
|
3929
3931
|
};
|
|
3930
3932
|
}
|
|
@@ -3935,32 +3937,32 @@ function aa(e) {
|
|
|
3935
3937
|
), r, i, a, o = (
|
|
3936
3938
|
/*$_*/
|
|
3937
3939
|
e[18]("Reset") + ""
|
|
3938
|
-
), s, c,
|
|
3940
|
+
), s, c, l;
|
|
3939
3941
|
return {
|
|
3940
3942
|
c() {
|
|
3941
|
-
t = E("button"), r =
|
|
3942
|
-
e[6],
|
|
3943
|
+
t = E("button"), r = j(n), i = R(), a = E("button"), s = j(o), t.disabled = /*exchangeDisabled*/
|
|
3944
|
+
e[6], $(
|
|
3943
3945
|
t,
|
|
3944
3946
|
"disabled",
|
|
3945
3947
|
/*exchangeDisabled*/
|
|
3946
3948
|
e[6]
|
|
3947
3949
|
), a.disabled = /*exchangeDisabled*/
|
|
3948
|
-
e[6],
|
|
3950
|
+
e[6], $(
|
|
3949
3951
|
a,
|
|
3950
3952
|
"disabled",
|
|
3951
3953
|
/*exchangeDisabled*/
|
|
3952
3954
|
e[6]
|
|
3953
3955
|
);
|
|
3954
3956
|
},
|
|
3955
|
-
m(
|
|
3956
|
-
|
|
3957
|
-
|
|
3957
|
+
m(u, h) {
|
|
3958
|
+
Q(u, t, h), m(t, r), Q(u, i, h), Q(u, a, h), m(a, s), c || (l = [
|
|
3959
|
+
ee(
|
|
3958
3960
|
t,
|
|
3959
3961
|
"click",
|
|
3960
3962
|
/*walletExchange*/
|
|
3961
3963
|
e[21]
|
|
3962
3964
|
),
|
|
3963
|
-
|
|
3965
|
+
ee(
|
|
3964
3966
|
a,
|
|
3965
3967
|
"click",
|
|
3966
3968
|
/*resetUiToDefault*/
|
|
@@ -3968,31 +3970,31 @@ function aa(e) {
|
|
|
3968
3970
|
)
|
|
3969
3971
|
], c = !0);
|
|
3970
3972
|
},
|
|
3971
|
-
p(
|
|
3972
|
-
|
|
3973
|
+
p(u, h) {
|
|
3974
|
+
h[0] & /*$_*/
|
|
3973
3975
|
262144 && n !== (n = /*$_*/
|
|
3974
|
-
|
|
3976
|
+
u[18]("Exchange") + "") && W(r, n), h[0] & /*exchangeDisabled*/
|
|
3975
3977
|
64 && (t.disabled = /*exchangeDisabled*/
|
|
3976
|
-
|
|
3977
|
-
64 &&
|
|
3978
|
+
u[6]), h[0] & /*exchangeDisabled*/
|
|
3979
|
+
64 && $(
|
|
3978
3980
|
t,
|
|
3979
3981
|
"disabled",
|
|
3980
3982
|
/*exchangeDisabled*/
|
|
3981
|
-
|
|
3982
|
-
),
|
|
3983
|
+
u[6]
|
|
3984
|
+
), h[0] & /*$_*/
|
|
3983
3985
|
262144 && o !== (o = /*$_*/
|
|
3984
|
-
|
|
3986
|
+
u[18]("Reset") + "") && W(s, o), h[0] & /*exchangeDisabled*/
|
|
3985
3987
|
64 && (a.disabled = /*exchangeDisabled*/
|
|
3986
|
-
|
|
3987
|
-
64 &&
|
|
3988
|
+
u[6]), h[0] & /*exchangeDisabled*/
|
|
3989
|
+
64 && $(
|
|
3988
3990
|
a,
|
|
3989
3991
|
"disabled",
|
|
3990
3992
|
/*exchangeDisabled*/
|
|
3991
|
-
|
|
3993
|
+
u[6]
|
|
3992
3994
|
);
|
|
3993
3995
|
},
|
|
3994
|
-
d(
|
|
3995
|
-
|
|
3996
|
+
d(u) {
|
|
3997
|
+
u && (Z(t), Z(i), Z(a)), c = !1, _e(l);
|
|
3996
3998
|
}
|
|
3997
3999
|
};
|
|
3998
4000
|
}
|
|
@@ -4003,20 +4005,20 @@ function oa(e) {
|
|
|
4003
4005
|
), r, i, a, o = (
|
|
4004
4006
|
/*$_*/
|
|
4005
4007
|
e[18]("Decline") + ""
|
|
4006
|
-
), s, c,
|
|
4008
|
+
), s, c, l;
|
|
4007
4009
|
return {
|
|
4008
4010
|
c() {
|
|
4009
|
-
t = E("button"), r =
|
|
4011
|
+
t = E("button"), r = j(n), i = R(), a = E("button"), s = j(o);
|
|
4010
4012
|
},
|
|
4011
|
-
m(
|
|
4012
|
-
|
|
4013
|
-
|
|
4013
|
+
m(u, h) {
|
|
4014
|
+
Q(u, t, h), m(t, r), Q(u, i, h), Q(u, a, h), m(a, s), c || (l = [
|
|
4015
|
+
ee(
|
|
4014
4016
|
t,
|
|
4015
4017
|
"click",
|
|
4016
4018
|
/*feeAcceptStep*/
|
|
4017
4019
|
e[22]
|
|
4018
4020
|
),
|
|
4019
|
-
|
|
4021
|
+
ee(
|
|
4020
4022
|
a,
|
|
4021
4023
|
"click",
|
|
4022
4024
|
/*resetUiToDefault*/
|
|
@@ -4024,15 +4026,15 @@ function oa(e) {
|
|
|
4024
4026
|
)
|
|
4025
4027
|
], c = !0);
|
|
4026
4028
|
},
|
|
4027
|
-
p(
|
|
4028
|
-
|
|
4029
|
+
p(u, h) {
|
|
4030
|
+
h[0] & /*$_*/
|
|
4029
4031
|
262144 && n !== (n = /*$_*/
|
|
4030
|
-
|
|
4032
|
+
u[18]("Accept") + "") && W(r, n), h[0] & /*$_*/
|
|
4031
4033
|
262144 && o !== (o = /*$_*/
|
|
4032
|
-
|
|
4034
|
+
u[18]("Decline") + "") && W(s, o);
|
|
4033
4035
|
},
|
|
4034
|
-
d(
|
|
4035
|
-
|
|
4036
|
+
d(u) {
|
|
4037
|
+
u && (Z(t), Z(i), Z(a)), c = !1, _e(l);
|
|
4036
4038
|
}
|
|
4037
4039
|
};
|
|
4038
4040
|
}
|
|
@@ -4040,344 +4042,344 @@ function sa(e) {
|
|
|
4040
4042
|
let t, n, r, i, a = (
|
|
4041
4043
|
/*$_*/
|
|
4042
4044
|
e[18]("vaultExchange") + ""
|
|
4043
|
-
), o, s, c,
|
|
4045
|
+
), o, s, c, l, u = (
|
|
4044
4046
|
/*$_*/
|
|
4045
4047
|
e[18]("currentBalance") + ""
|
|
4046
|
-
),
|
|
4048
|
+
), h, d, b, x = (
|
|
4047
4049
|
/*playerBalance*/
|
|
4048
4050
|
e[15].amount + ""
|
|
4049
|
-
), I,
|
|
4051
|
+
), I, F, N = (
|
|
4050
4052
|
/*playerBalance*/
|
|
4051
4053
|
e[15].currency + ""
|
|
4052
|
-
),
|
|
4054
|
+
), D, U, P, O, q, te = (
|
|
4053
4055
|
/*$_*/
|
|
4054
4056
|
e[18]("exchangeFrom") + ""
|
|
4055
|
-
),
|
|
4057
|
+
), oe, we, ce, he, V, J, fe, G, Ae, Y, ze, ne, pe, Be = (
|
|
4056
4058
|
/*$_*/
|
|
4057
4059
|
e[18]("exchangeTo") + ""
|
|
4058
|
-
),
|
|
4060
|
+
), Xe, We, me, k, Se, Ce, nt, re, Ze, ge, be, qe, Pe, Je, M, de, rt, K, ie, Ie, Ne = (
|
|
4059
4061
|
/*$_*/
|
|
4060
4062
|
e[18](
|
|
4061
4063
|
/*errorCode*/
|
|
4062
4064
|
e[3]
|
|
4063
4065
|
) + ""
|
|
4064
|
-
),
|
|
4066
|
+
), it, Te, p, y, S = Le(
|
|
4065
4067
|
/*playerFilteredBalances*/
|
|
4066
4068
|
e[13]
|
|
4067
|
-
),
|
|
4068
|
-
for (let
|
|
4069
|
-
|
|
4070
|
-
let
|
|
4069
|
+
), v = [];
|
|
4070
|
+
for (let f = 0; f < S.length; f += 1)
|
|
4071
|
+
v[f] = dn(pn(e, S, f));
|
|
4072
|
+
let B = Le(
|
|
4071
4073
|
/*playerFilteredBalances*/
|
|
4072
4074
|
e[13]
|
|
4073
|
-
),
|
|
4074
|
-
for (let
|
|
4075
|
-
|
|
4076
|
-
let
|
|
4075
|
+
), L = [];
|
|
4076
|
+
for (let f = 0; f < B.length; f += 1)
|
|
4077
|
+
L[f] = bn(fn(e, B, f));
|
|
4078
|
+
let se = Le(
|
|
4077
4079
|
/*dropDownVaults*/
|
|
4078
4080
|
e[14]
|
|
4079
|
-
),
|
|
4080
|
-
for (let
|
|
4081
|
-
|
|
4082
|
-
function
|
|
4081
|
+
), z = [];
|
|
4082
|
+
for (let f = 0; f < se.length; f += 1)
|
|
4083
|
+
z[f] = yn(hn(e, se, f));
|
|
4084
|
+
function jt(f, H) {
|
|
4083
4085
|
return (
|
|
4084
4086
|
/*hasTransactionFee*/
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
+
f[12] && !/*isFeeAccepted*/
|
|
4088
|
+
f[11] ? oa : aa
|
|
4087
4089
|
);
|
|
4088
4090
|
}
|
|
4089
|
-
let
|
|
4091
|
+
let at = jt(e), ue = at(e);
|
|
4090
4092
|
return {
|
|
4091
4093
|
c() {
|
|
4092
|
-
t = E("div"), n = E("div"), r = E("div"), i = E("h1"), o =
|
|
4093
|
-
for (let
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
for (let
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
for (let
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
e[18]("debitPlaceHolder")),
|
|
4094
|
+
t = E("div"), n = E("div"), r = E("div"), i = E("h1"), o = j(a), s = R(), c = E("div"), l = E("p"), h = j(u), d = R(), b = E("p"), I = j(x), F = R(), D = j(N), U = R(), P = E("div"), O = E("div"), q = E("p"), oe = j(te), we = R(), ce = E("div"), he = E("div"), V = E("input"), fe = R(), G = E("select");
|
|
4095
|
+
for (let f = 0; f < v.length; f += 1)
|
|
4096
|
+
v[f].c();
|
|
4097
|
+
Ae = R(), Y = E("div"), Y.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="6 5 20 20" class="iconExchange"><path d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z"></path></svg>', ze = R(), ne = E("div"), pe = E("p"), Xe = j(Be), We = R(), me = E("div"), k = E("input"), nt = R(), re = E("select");
|
|
4098
|
+
for (let f = 0; f < L.length; f += 1)
|
|
4099
|
+
L[f].c();
|
|
4100
|
+
Ze = R(), ge = E("div"), be = zt("svg"), qe = zt("path"), Je = R(), M = E("div");
|
|
4101
|
+
for (let f = 0; f < z.length; f += 1)
|
|
4102
|
+
z[f].c();
|
|
4103
|
+
rt = R(), K = E("div"), ie = E("div"), Ie = E("p"), it = R(), Te = E("div"), ue.c(), T(r, "class", "headerContainer"), T(b, "class", "playerBalance"), T(c, "class", "balanceContainer"), T(n, "class", "playerVaultContainer"), T(q, "class", "exchangeHeader"), T(V, "placeholder", J = /*$_*/
|
|
4104
|
+
e[18]("debitPlaceHolder")), T(V, "type", "number"), T(V, "min", "0"), /*selectedCurrencyFrom*/
|
|
4103
4105
|
e[1] === void 0 && Ke(() => (
|
|
4104
4106
|
/*select0_change_handler*/
|
|
4105
|
-
e[33].call(
|
|
4106
|
-
)),
|
|
4107
|
-
e[4] === 0,
|
|
4108
|
-
e[18]("creditPlaceHolder")),
|
|
4107
|
+
e[33].call(G)
|
|
4108
|
+
)), T(he, "class", "containerInputSelect"), T(ce, "class", "flexingContainerRow"), T(O, "class", "containerExchangeFrom"), T(Y, "class", "containerIconExchange"), T(pe, "class", "exchangeHeader"), k.disabled = Se = /*inputExchangeFrom*/
|
|
4109
|
+
e[4] === 0, T(k, "placeholder", Ce = /*$_*/
|
|
4110
|
+
e[18]("creditPlaceHolder")), T(k, "type", "number"), T(k, "min", "0"), k.readOnly = !0, /*selectedCurrencyTo*/
|
|
4109
4111
|
e[2] === void 0 && Ke(() => (
|
|
4110
4112
|
/*select1_change_handler*/
|
|
4111
|
-
e[35].call(
|
|
4112
|
-
)),
|
|
4113
|
+
e[35].call(re)
|
|
4114
|
+
)), T(me, "class", "containerInputSelect"), T(ne, "class", "containerExchangeTo"), T(qe, "d", "M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z"), T(be, "xmlns", "http://www.w3.org/2000/svg"), T(be, "viewBox", "6 5 20 20"), T(be, "class", "iconToggleVault"), T(ge, "class", Pe = "containerIconVault " + /*isVaultDropDownToggled*/
|
|
4113
4115
|
(e[7] && /*dropDownVaults*/
|
|
4114
|
-
e[14].length > 0 ? "active" : "")),
|
|
4116
|
+
e[14].length > 0 ? "active" : "")), T(P, "class", "containerExchanges"), T(M, "class", de = "vaultDropDown " + /*isVaultDropDownToggled*/
|
|
4115
4117
|
(e[7] && /*dropDownVaults*/
|
|
4116
|
-
e[14].length > 0 ? "active" : "")),
|
|
4117
|
-
|
|
4118
|
+
e[14].length > 0 ? "active" : "")), Xt(
|
|
4119
|
+
M,
|
|
4118
4120
|
"height",
|
|
4119
4121
|
/*calculateHeight*/
|
|
4120
4122
|
e[0]
|
|
4121
|
-
),
|
|
4122
|
-
|
|
4123
|
+
), $(
|
|
4124
|
+
ie,
|
|
4123
4125
|
"error",
|
|
4124
4126
|
/*isError*/
|
|
4125
4127
|
e[8]
|
|
4126
|
-
),
|
|
4127
|
-
|
|
4128
|
+
), $(
|
|
4129
|
+
ie,
|
|
4128
4130
|
"success",
|
|
4129
4131
|
/*isSuccess*/
|
|
4130
4132
|
e[9]
|
|
4131
|
-
),
|
|
4132
|
-
|
|
4133
|
+
), $(
|
|
4134
|
+
ie,
|
|
4133
4135
|
"action",
|
|
4134
4136
|
/*isAction*/
|
|
4135
4137
|
e[10]
|
|
4136
|
-
),
|
|
4137
|
-
|
|
4138
|
+
), T(K, "class", "notificationsContainer"), $(
|
|
4139
|
+
K,
|
|
4138
4140
|
"error",
|
|
4139
4141
|
/*isError*/
|
|
4140
4142
|
e[8]
|
|
4141
|
-
),
|
|
4142
|
-
|
|
4143
|
+
), $(
|
|
4144
|
+
K,
|
|
4143
4145
|
"success",
|
|
4144
4146
|
/*isSuccess*/
|
|
4145
4147
|
e[9]
|
|
4146
|
-
),
|
|
4147
|
-
|
|
4148
|
+
), $(
|
|
4149
|
+
K,
|
|
4148
4150
|
"action",
|
|
4149
4151
|
/*isAction*/
|
|
4150
4152
|
e[10]
|
|
4151
|
-
),
|
|
4153
|
+
), T(Te, "class", "actionsContainer"), T(t, "class", "player-account-vault");
|
|
4152
4154
|
},
|
|
4153
|
-
m(
|
|
4154
|
-
|
|
4155
|
-
|
|
4155
|
+
m(f, H) {
|
|
4156
|
+
Q(f, t, H), m(t, n), m(n, r), m(r, i), m(i, o), m(n, s), m(n, c), m(c, l), m(l, h), m(c, d), m(c, b), m(b, I), m(b, F), m(b, D), m(t, U), m(t, P), m(P, O), m(O, q), m(q, oe), m(O, we), m(O, ce), m(ce, he), m(he, V), xe(
|
|
4157
|
+
V,
|
|
4156
4158
|
/*inputExchangeFrom*/
|
|
4157
4159
|
e[4]
|
|
4158
|
-
), m(
|
|
4159
|
-
for (let g = 0; g <
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4160
|
+
), m(he, fe), m(he, G);
|
|
4161
|
+
for (let g = 0; g < v.length; g += 1)
|
|
4162
|
+
v[g] && v[g].m(G, null);
|
|
4163
|
+
ot(
|
|
4164
|
+
G,
|
|
4163
4165
|
/*selectedCurrencyFrom*/
|
|
4164
4166
|
e[1],
|
|
4165
4167
|
!0
|
|
4166
|
-
), m(P,
|
|
4167
|
-
|
|
4168
|
+
), m(P, Ae), m(P, Y), m(P, ze), m(P, ne), m(ne, pe), m(pe, Xe), m(ne, We), m(ne, me), m(me, k), xe(
|
|
4169
|
+
k,
|
|
4168
4170
|
/*inputExchangeTo*/
|
|
4169
4171
|
e[5]
|
|
4170
|
-
), m(
|
|
4171
|
-
for (let g = 0; g <
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4172
|
+
), m(me, nt), m(me, re);
|
|
4173
|
+
for (let g = 0; g < L.length; g += 1)
|
|
4174
|
+
L[g] && L[g].m(re, null);
|
|
4175
|
+
ot(
|
|
4176
|
+
re,
|
|
4175
4177
|
/*selectedCurrencyTo*/
|
|
4176
4178
|
e[2],
|
|
4177
4179
|
!0
|
|
4178
|
-
), m(P,
|
|
4179
|
-
for (let g = 0; g <
|
|
4180
|
-
|
|
4181
|
-
e[38](
|
|
4182
|
-
|
|
4183
|
-
|
|
4180
|
+
), m(P, Ze), m(P, ge), m(ge, be), m(be, qe), m(t, Je), m(t, M);
|
|
4181
|
+
for (let g = 0; g < z.length; g += 1)
|
|
4182
|
+
z[g] && z[g].m(M, null);
|
|
4183
|
+
e[38](M), m(t, rt), m(t, K), m(K, ie), m(ie, Ie), Ie.innerHTML = Ne, m(t, it), m(t, Te), ue.m(Te, null), p || (y = [
|
|
4184
|
+
ee(
|
|
4185
|
+
V,
|
|
4184
4186
|
"input",
|
|
4185
4187
|
/*input0_input_handler*/
|
|
4186
4188
|
e[32]
|
|
4187
4189
|
),
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
+
ee(
|
|
4191
|
+
V,
|
|
4190
4192
|
"input",
|
|
4191
4193
|
/*debouncedExchangeInterogation*/
|
|
4192
4194
|
e[20]
|
|
4193
4195
|
),
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
+
ee(
|
|
4197
|
+
G,
|
|
4196
4198
|
"change",
|
|
4197
4199
|
/*select0_change_handler*/
|
|
4198
4200
|
e[33]
|
|
4199
4201
|
),
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
+
ee(
|
|
4203
|
+
G,
|
|
4202
4204
|
"change",
|
|
4203
4205
|
/*debouncedExchangeInterogation*/
|
|
4204
4206
|
e[20]
|
|
4205
4207
|
),
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
+
ee(
|
|
4209
|
+
k,
|
|
4208
4210
|
"input",
|
|
4209
4211
|
/*input1_input_handler*/
|
|
4210
4212
|
e[34]
|
|
4211
4213
|
),
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
+
ee(
|
|
4215
|
+
re,
|
|
4214
4216
|
"change",
|
|
4215
4217
|
/*select1_change_handler*/
|
|
4216
4218
|
e[35]
|
|
4217
4219
|
),
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
+
ee(
|
|
4221
|
+
re,
|
|
4220
4222
|
"change",
|
|
4221
4223
|
/*debouncedExchangeInterogation*/
|
|
4222
4224
|
e[20]
|
|
4223
4225
|
),
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
+
ee(
|
|
4227
|
+
ge,
|
|
4226
4228
|
"click",
|
|
4227
4229
|
/*click_handler*/
|
|
4228
4230
|
e[36]
|
|
4229
4231
|
)
|
|
4230
|
-
],
|
|
4232
|
+
], p = !0);
|
|
4231
4233
|
},
|
|
4232
|
-
p(
|
|
4233
|
-
if (
|
|
4234
|
+
p(f, H) {
|
|
4235
|
+
if (H[0] & /*$_*/
|
|
4234
4236
|
262144 && a !== (a = /*$_*/
|
|
4235
|
-
|
|
4236
|
-
262144 &&
|
|
4237
|
-
|
|
4238
|
-
32768 &&
|
|
4239
|
-
|
|
4237
|
+
f[18]("vaultExchange") + "") && W(o, a), H[0] & /*$_*/
|
|
4238
|
+
262144 && u !== (u = /*$_*/
|
|
4239
|
+
f[18]("currentBalance") + "") && W(h, u), H[0] & /*playerBalance*/
|
|
4240
|
+
32768 && x !== (x = /*playerBalance*/
|
|
4241
|
+
f[15].amount + "") && W(I, x), H[0] & /*playerBalance*/
|
|
4240
4242
|
32768 && N !== (N = /*playerBalance*/
|
|
4241
|
-
|
|
4242
|
-
262144 &&
|
|
4243
|
-
|
|
4244
|
-
262144 &&
|
|
4245
|
-
|
|
4246
|
-
16 &&
|
|
4247
|
-
|
|
4248
|
-
|
|
4243
|
+
f[15].currency + "") && W(D, N), H[0] & /*$_*/
|
|
4244
|
+
262144 && te !== (te = /*$_*/
|
|
4245
|
+
f[18]("exchangeFrom") + "") && W(oe, te), H[0] & /*$_*/
|
|
4246
|
+
262144 && J !== (J = /*$_*/
|
|
4247
|
+
f[18]("debitPlaceHolder")) && T(V, "placeholder", J), H[0] & /*inputExchangeFrom*/
|
|
4248
|
+
16 && ht(V.value) !== /*inputExchangeFrom*/
|
|
4249
|
+
f[4] && xe(
|
|
4250
|
+
V,
|
|
4249
4251
|
/*inputExchangeFrom*/
|
|
4250
|
-
|
|
4251
|
-
),
|
|
4252
|
+
f[4]
|
|
4253
|
+
), H[0] & /*playerFilteredBalances*/
|
|
4252
4254
|
8192) {
|
|
4253
|
-
|
|
4255
|
+
S = Le(
|
|
4254
4256
|
/*playerFilteredBalances*/
|
|
4255
|
-
|
|
4257
|
+
f[13]
|
|
4256
4258
|
);
|
|
4257
4259
|
let g;
|
|
4258
|
-
for (g = 0; g <
|
|
4259
|
-
const ye =
|
|
4260
|
-
|
|
4260
|
+
for (g = 0; g < S.length; g += 1) {
|
|
4261
|
+
const ye = pn(f, S, g);
|
|
4262
|
+
v[g] ? v[g].p(ye, H) : (v[g] = dn(ye), v[g].c(), v[g].m(G, null));
|
|
4261
4263
|
}
|
|
4262
|
-
for (; g <
|
|
4263
|
-
|
|
4264
|
-
|
|
4264
|
+
for (; g < v.length; g += 1)
|
|
4265
|
+
v[g].d(1);
|
|
4266
|
+
v.length = S.length;
|
|
4265
4267
|
}
|
|
4266
|
-
if (
|
|
4267
|
-
8194 &&
|
|
4268
|
-
|
|
4268
|
+
if (H[0] & /*selectedCurrencyFrom, playerFilteredBalances*/
|
|
4269
|
+
8194 && ot(
|
|
4270
|
+
G,
|
|
4269
4271
|
/*selectedCurrencyFrom*/
|
|
4270
|
-
|
|
4271
|
-
),
|
|
4272
|
-
262144 &&
|
|
4273
|
-
|
|
4274
|
-
16 &&
|
|
4275
|
-
|
|
4276
|
-
262144 &&
|
|
4277
|
-
|
|
4278
|
-
32 &&
|
|
4279
|
-
|
|
4280
|
-
|
|
4272
|
+
f[1]
|
|
4273
|
+
), H[0] & /*$_*/
|
|
4274
|
+
262144 && Be !== (Be = /*$_*/
|
|
4275
|
+
f[18]("exchangeTo") + "") && W(Xe, Be), H[0] & /*inputExchangeFrom*/
|
|
4276
|
+
16 && Se !== (Se = /*inputExchangeFrom*/
|
|
4277
|
+
f[4] === 0) && (k.disabled = Se), H[0] & /*$_*/
|
|
4278
|
+
262144 && Ce !== (Ce = /*$_*/
|
|
4279
|
+
f[18]("creditPlaceHolder")) && T(k, "placeholder", Ce), H[0] & /*inputExchangeTo*/
|
|
4280
|
+
32 && ht(k.value) !== /*inputExchangeTo*/
|
|
4281
|
+
f[5] && xe(
|
|
4282
|
+
k,
|
|
4281
4283
|
/*inputExchangeTo*/
|
|
4282
|
-
|
|
4283
|
-
),
|
|
4284
|
+
f[5]
|
|
4285
|
+
), H[0] & /*playerFilteredBalances, selectedCurrencyFrom*/
|
|
4284
4286
|
8194) {
|
|
4285
|
-
|
|
4287
|
+
B = Le(
|
|
4286
4288
|
/*playerFilteredBalances*/
|
|
4287
|
-
|
|
4289
|
+
f[13]
|
|
4288
4290
|
);
|
|
4289
4291
|
let g;
|
|
4290
|
-
for (g = 0; g <
|
|
4291
|
-
const ye =
|
|
4292
|
-
|
|
4292
|
+
for (g = 0; g < B.length; g += 1) {
|
|
4293
|
+
const ye = fn(f, B, g);
|
|
4294
|
+
L[g] ? L[g].p(ye, H) : (L[g] = bn(ye), L[g].c(), L[g].m(re, null));
|
|
4293
4295
|
}
|
|
4294
|
-
for (; g <
|
|
4295
|
-
|
|
4296
|
-
|
|
4296
|
+
for (; g < L.length; g += 1)
|
|
4297
|
+
L[g].d(1);
|
|
4298
|
+
L.length = B.length;
|
|
4297
4299
|
}
|
|
4298
|
-
if (
|
|
4299
|
-
8196 &&
|
|
4300
|
-
|
|
4300
|
+
if (H[0] & /*selectedCurrencyTo, playerFilteredBalances*/
|
|
4301
|
+
8196 && ot(
|
|
4302
|
+
re,
|
|
4301
4303
|
/*selectedCurrencyTo*/
|
|
4302
|
-
|
|
4303
|
-
),
|
|
4304
|
+
f[2]
|
|
4305
|
+
), H[0] & /*isVaultDropDownToggled, dropDownVaults*/
|
|
4304
4306
|
16512 && Pe !== (Pe = "containerIconVault " + /*isVaultDropDownToggled*/
|
|
4305
|
-
(
|
|
4306
|
-
|
|
4307
|
+
(f[7] && /*dropDownVaults*/
|
|
4308
|
+
f[14].length > 0 ? "active" : "")) && T(ge, "class", Pe), H[0] & /*elements, dropDownVaults*/
|
|
4307
4309
|
147456) {
|
|
4308
|
-
|
|
4310
|
+
se = Le(
|
|
4309
4311
|
/*dropDownVaults*/
|
|
4310
|
-
|
|
4312
|
+
f[14]
|
|
4311
4313
|
);
|
|
4312
4314
|
let g;
|
|
4313
|
-
for (g = 0; g <
|
|
4314
|
-
const ye =
|
|
4315
|
-
|
|
4315
|
+
for (g = 0; g < se.length; g += 1) {
|
|
4316
|
+
const ye = hn(f, se, g);
|
|
4317
|
+
z[g] ? z[g].p(ye, H) : (z[g] = yn(ye), z[g].c(), z[g].m(M, null));
|
|
4316
4318
|
}
|
|
4317
|
-
for (; g <
|
|
4318
|
-
|
|
4319
|
-
|
|
4319
|
+
for (; g < z.length; g += 1)
|
|
4320
|
+
z[g].d(1);
|
|
4321
|
+
z.length = se.length;
|
|
4320
4322
|
}
|
|
4321
|
-
|
|
4322
|
-
16512 &&
|
|
4323
|
-
(
|
|
4324
|
-
|
|
4325
|
-
1 &&
|
|
4326
|
-
|
|
4323
|
+
H[0] & /*isVaultDropDownToggled, dropDownVaults*/
|
|
4324
|
+
16512 && de !== (de = "vaultDropDown " + /*isVaultDropDownToggled*/
|
|
4325
|
+
(f[7] && /*dropDownVaults*/
|
|
4326
|
+
f[14].length > 0 ? "active" : "")) && T(M, "class", de), H[0] & /*calculateHeight*/
|
|
4327
|
+
1 && Xt(
|
|
4328
|
+
M,
|
|
4327
4329
|
"height",
|
|
4328
4330
|
/*calculateHeight*/
|
|
4329
|
-
|
|
4330
|
-
),
|
|
4331
|
-
262152 &&
|
|
4332
|
-
|
|
4331
|
+
f[0]
|
|
4332
|
+
), H[0] & /*$_, errorCode*/
|
|
4333
|
+
262152 && Ne !== (Ne = /*$_*/
|
|
4334
|
+
f[18](
|
|
4333
4335
|
/*errorCode*/
|
|
4334
|
-
|
|
4335
|
-
) + "") && (
|
|
4336
|
-
256 &&
|
|
4337
|
-
|
|
4336
|
+
f[3]
|
|
4337
|
+
) + "") && (Ie.innerHTML = Ne), H[0] & /*isError*/
|
|
4338
|
+
256 && $(
|
|
4339
|
+
ie,
|
|
4338
4340
|
"error",
|
|
4339
4341
|
/*isError*/
|
|
4340
|
-
|
|
4341
|
-
),
|
|
4342
|
-
512 &&
|
|
4343
|
-
|
|
4342
|
+
f[8]
|
|
4343
|
+
), H[0] & /*isSuccess*/
|
|
4344
|
+
512 && $(
|
|
4345
|
+
ie,
|
|
4344
4346
|
"success",
|
|
4345
4347
|
/*isSuccess*/
|
|
4346
|
-
|
|
4347
|
-
),
|
|
4348
|
-
1024 &&
|
|
4349
|
-
|
|
4348
|
+
f[9]
|
|
4349
|
+
), H[0] & /*isAction*/
|
|
4350
|
+
1024 && $(
|
|
4351
|
+
ie,
|
|
4350
4352
|
"action",
|
|
4351
4353
|
/*isAction*/
|
|
4352
|
-
|
|
4353
|
-
),
|
|
4354
|
-
256 &&
|
|
4355
|
-
|
|
4354
|
+
f[10]
|
|
4355
|
+
), H[0] & /*isError*/
|
|
4356
|
+
256 && $(
|
|
4357
|
+
K,
|
|
4356
4358
|
"error",
|
|
4357
4359
|
/*isError*/
|
|
4358
|
-
|
|
4359
|
-
),
|
|
4360
|
-
512 &&
|
|
4361
|
-
|
|
4360
|
+
f[8]
|
|
4361
|
+
), H[0] & /*isSuccess*/
|
|
4362
|
+
512 && $(
|
|
4363
|
+
K,
|
|
4362
4364
|
"success",
|
|
4363
4365
|
/*isSuccess*/
|
|
4364
|
-
|
|
4365
|
-
),
|
|
4366
|
-
1024 &&
|
|
4367
|
-
|
|
4366
|
+
f[9]
|
|
4367
|
+
), H[0] & /*isAction*/
|
|
4368
|
+
1024 && $(
|
|
4369
|
+
K,
|
|
4368
4370
|
"action",
|
|
4369
4371
|
/*isAction*/
|
|
4370
|
-
|
|
4371
|
-
),
|
|
4372
|
+
f[10]
|
|
4373
|
+
), at === (at = jt(f)) && ue ? ue.p(f, H) : (ue.d(1), ue = at(f), ue && (ue.c(), ue.m(Te, null)));
|
|
4372
4374
|
},
|
|
4373
|
-
i:
|
|
4374
|
-
o:
|
|
4375
|
-
d(
|
|
4376
|
-
|
|
4375
|
+
i: ae,
|
|
4376
|
+
o: ae,
|
|
4377
|
+
d(f) {
|
|
4378
|
+
f && Z(t), vt(v, f), vt(L, f), vt(z, f), e[38](null), ue.d(), p = !1, _e(y);
|
|
4377
4379
|
}
|
|
4378
4380
|
};
|
|
4379
4381
|
}
|
|
4380
|
-
function
|
|
4382
|
+
function ua(e, t) {
|
|
4381
4383
|
let n;
|
|
4382
4384
|
return function(...r) {
|
|
4383
4385
|
n && clearTimeout(n), n = setTimeout(
|
|
@@ -4388,101 +4390,88 @@ function la(e, t) {
|
|
|
4388
4390
|
);
|
|
4389
4391
|
};
|
|
4390
4392
|
}
|
|
4391
|
-
function
|
|
4393
|
+
function la(e, t, n) {
|
|
4392
4394
|
let r;
|
|
4393
|
-
|
|
4394
|
-
let { session: i = "" } = t, { userid: a = "" } = t, { endpoint: o = "" } = t, { lang: s = "en" } = t, { clientstyling: c = "" } = t, { clientstylingurl:
|
|
4395
|
-
const
|
|
4395
|
+
qn(e, ta, (p) => n(18, r = p));
|
|
4396
|
+
let { session: i = "" } = t, { userid: a = "" } = t, { endpoint: o = "" } = t, { lang: s = "en" } = t, { clientstyling: c = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: u = "" } = t, { playercurrency: h = "" } = t, d = "", b = "", x = "", I = "", F = "", N = 0, D = 0, U = 0, P = !0, O = !1, q = !1, te = !1, oe = !1, we = !0, ce = !1, he = [], V = [], J = [], fe = [], G = [], Ae = [], Y = {}, ze = {}, ne = null, pe = [];
|
|
4397
|
+
const Be = () => {
|
|
4396
4398
|
ra(s);
|
|
4397
4399
|
};
|
|
4398
4400
|
na({ withLocale: "en", translations: {} });
|
|
4399
|
-
const
|
|
4400
|
-
fetch(
|
|
4401
|
-
Object.keys(
|
|
4402
|
-
|
|
4401
|
+
const Xe = () => {
|
|
4402
|
+
fetch(u).then((y) => y.json()).then((y) => {
|
|
4403
|
+
Object.keys(y).forEach((S) => {
|
|
4404
|
+
ln(S, y[S]);
|
|
4403
4405
|
});
|
|
4404
|
-
}).catch((
|
|
4405
|
-
console.error("There was a problem with the translations request.",
|
|
4406
|
+
}).catch((y) => {
|
|
4407
|
+
console.error("There was a problem with the translations request.", y);
|
|
4406
4408
|
});
|
|
4407
4409
|
};
|
|
4408
|
-
Object.keys(
|
|
4409
|
-
|
|
4410
|
+
Object.keys(cn).forEach((p) => {
|
|
4411
|
+
ln(p, cn[p]);
|
|
4410
4412
|
});
|
|
4411
|
-
const
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
let h = new URL(u), b = document.createElement("style");
|
|
4416
|
-
fetch(h.href).then((x) => x.text()).then((x) => {
|
|
4417
|
-
b.innerHTML = x, setTimeout(
|
|
4418
|
-
() => {
|
|
4419
|
-
ee.appendChild(b);
|
|
4420
|
-
},
|
|
4421
|
-
1
|
|
4422
|
-
);
|
|
4423
|
-
});
|
|
4424
|
-
}, Te = (h) => {
|
|
4425
|
-
O && F.length === 0 || (h.preventDefault(), n(7, O = !O), n(0, d = O ? He() : "0px"));
|
|
4426
|
-
}, He = () => {
|
|
4427
|
-
if (F.length === 0)
|
|
4413
|
+
const We = (p) => {
|
|
4414
|
+
O && G.length === 0 || (p.preventDefault(), n(7, O = !O), n(0, d = O ? me() : "0px"));
|
|
4415
|
+
}, me = () => {
|
|
4416
|
+
if (G.length === 0)
|
|
4428
4417
|
return n(0, d = "0px");
|
|
4429
|
-
const
|
|
4430
|
-
return n(0, d = `${
|
|
4431
|
-
},
|
|
4432
|
-
let
|
|
4433
|
-
fetch(
|
|
4418
|
+
const p = pe[0]?.clientHeight, y = G.length, S = 30, v = parseFloat(getComputedStyle(ne).getPropertyValue("gap"));
|
|
4419
|
+
return n(0, d = `${y * p + y * v + S}px`);
|
|
4420
|
+
}, k = () => new Promise((p, y) => {
|
|
4421
|
+
let S = new URL(`${o}/v2/player/${a}/balance`);
|
|
4422
|
+
fetch(S, {
|
|
4434
4423
|
method: "GET",
|
|
4435
4424
|
headers: {
|
|
4436
4425
|
"X-SessionID": i,
|
|
4437
4426
|
"Content-Type": "application/json",
|
|
4438
4427
|
Accept: "application/json"
|
|
4439
4428
|
}
|
|
4440
|
-
}).then((
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
}),
|
|
4429
|
+
}).then((B) => de(B)).then((B) => {
|
|
4430
|
+
B && (n(13, J = []), V = [], fe = [], n(14, G = []), he = B.items, Ce().then((L) => {
|
|
4431
|
+
L.forEach((se) => {
|
|
4432
|
+
Ae.push(se.code);
|
|
4433
|
+
}), Se(B), p();
|
|
4445
4434
|
}));
|
|
4446
|
-
}).catch((
|
|
4447
|
-
|
|
4435
|
+
}).catch((B) => {
|
|
4436
|
+
y(), M("error", r("generalError")), console.error("There was an error with the player balance request.", B);
|
|
4448
4437
|
});
|
|
4449
|
-
}),
|
|
4450
|
-
if (
|
|
4451
|
-
if (
|
|
4452
|
-
switch (n(13,
|
|
4438
|
+
}), Se = (p) => {
|
|
4439
|
+
if (he.forEach((y) => {
|
|
4440
|
+
if (y.type === "Real" && !(!Ae.includes(y.currency) && Ae.length > 0))
|
|
4441
|
+
switch (n(13, J = J.concat(y)), y.walletAccountType) {
|
|
4453
4442
|
case "Ordinary":
|
|
4454
|
-
|
|
4443
|
+
V = V.concat(y);
|
|
4455
4444
|
break;
|
|
4456
4445
|
case "Vault":
|
|
4457
|
-
if (
|
|
4446
|
+
if (fe = fe.concat(y), y.amount === 0)
|
|
4458
4447
|
return;
|
|
4459
|
-
n(14,
|
|
4448
|
+
n(14, G = G.concat(y));
|
|
4460
4449
|
break;
|
|
4461
4450
|
}
|
|
4462
|
-
}), n(15,
|
|
4463
|
-
return
|
|
4464
|
-
n(1,
|
|
4465
|
-
},
|
|
4466
|
-
let
|
|
4467
|
-
fetch(
|
|
4451
|
+
}), n(15, Y = Object.entries(p.totalCashAmount).map(([y, S]) => ({ currency: y, amount: S }))[0]), Y.amount === 0 && !fe.find((y) => y.amount > 0))
|
|
4452
|
+
return M("error", r("userHasNoBalances"));
|
|
4453
|
+
n(1, b = Y.amount === 0 ? fe.find((y) => y.amount > 0).currency : Y.currency), n(2, x = Y.amount === 0 ? Y.currency : fe.find((y) => y.type === "Real").currency);
|
|
4454
|
+
}, Ce = () => new Promise((p, y) => {
|
|
4455
|
+
let S = new URL(`${o}/v1/player/${a}/wallet-exchange/currencies`);
|
|
4456
|
+
fetch(S, {
|
|
4468
4457
|
method: "GET",
|
|
4469
4458
|
headers: {
|
|
4470
4459
|
"X-SessionId": i,
|
|
4471
4460
|
"Content-Type": "application/json",
|
|
4472
4461
|
Accept: "application/json"
|
|
4473
4462
|
}
|
|
4474
|
-
}).then((
|
|
4475
|
-
|
|
4476
|
-
}).catch((
|
|
4477
|
-
|
|
4463
|
+
}).then((B) => de(B)).then((B) => {
|
|
4464
|
+
B.length !== 0 && p(B.currencies);
|
|
4465
|
+
}).catch((B) => {
|
|
4466
|
+
y(), M("error", r("generalError")), console.error("There was an error on the allowed currencies request.", B);
|
|
4478
4467
|
});
|
|
4479
|
-
}),
|
|
4480
|
-
|
|
4481
|
-
const
|
|
4482
|
-
N >
|
|
4483
|
-
}),
|
|
4484
|
-
|
|
4485
|
-
let
|
|
4468
|
+
}), nt = () => new Promise((p, y) => {
|
|
4469
|
+
b === x && n(2, x = J.find((v) => v.currency !== b)?.currency), N <= 0 && (Je(), y());
|
|
4470
|
+
const S = J.find((v) => v.currency === b);
|
|
4471
|
+
N > S.amount && n(4, N = S.amount), p();
|
|
4472
|
+
}), re = () => {
|
|
4473
|
+
nt().then(() => {
|
|
4474
|
+
let p = new URL(`${o}/v2/player/${a}/check/wallet-exchange`), S = {
|
|
4486
4475
|
method: "POST",
|
|
4487
4476
|
headers: {
|
|
4488
4477
|
"X-SessionID": i,
|
|
@@ -4492,31 +4481,31 @@ function ua(e, t, n) {
|
|
|
4492
4481
|
body: JSON.stringify({
|
|
4493
4482
|
userId: a,
|
|
4494
4483
|
amount: N,
|
|
4495
|
-
currency:
|
|
4496
|
-
fromCurrency:
|
|
4497
|
-
toCurrency:
|
|
4498
|
-
payload: { PlayerCurrency:
|
|
4484
|
+
currency: b,
|
|
4485
|
+
fromCurrency: b,
|
|
4486
|
+
toCurrency: x,
|
|
4487
|
+
payload: { PlayerCurrency: h }
|
|
4499
4488
|
})
|
|
4500
4489
|
};
|
|
4501
|
-
fetch(
|
|
4502
|
-
if (!
|
|
4490
|
+
fetch(p, S).then((v) => de(v)).then((v) => {
|
|
4491
|
+
if (!v)
|
|
4503
4492
|
return;
|
|
4504
|
-
if (n(12,
|
|
4505
|
-
n(12,
|
|
4506
|
-
let
|
|
4507
|
-
|
|
4493
|
+
if (n(12, ce = !1), n(11, we = !1), n(10, oe = !1), v.feeDetails && v.feeDetails.fees.length > 0) {
|
|
4494
|
+
n(12, ce = !0);
|
|
4495
|
+
let L = v.feeDetails.fees.find((se) => se.id);
|
|
4496
|
+
qe(L);
|
|
4508
4497
|
} else
|
|
4509
4498
|
n(6, P = !1);
|
|
4510
|
-
const
|
|
4511
|
-
n(5,
|
|
4512
|
-
}).catch((
|
|
4513
|
-
|
|
4499
|
+
const B = v.walletActions.find((L) => L.directionName === "Credit").amount;
|
|
4500
|
+
n(5, D = Ze(B));
|
|
4501
|
+
}).catch((v) => {
|
|
4502
|
+
M("error", r("generalError")), console.error("There was a problem with the wallet exchange request.", v);
|
|
4514
4503
|
});
|
|
4515
|
-
}).catch((
|
|
4516
|
-
|
|
4504
|
+
}).catch((p) => {
|
|
4505
|
+
M("error", r("walletExchangeError"));
|
|
4517
4506
|
});
|
|
4518
|
-
},
|
|
4519
|
-
let
|
|
4507
|
+
}, Ze = (p) => Math.abs(p) < 1e-6 || Math.abs(p) >= 1e6 ? p.toFixed(12).replace(/\.?0+$/, "") : p.toString(), ge = ua(re, 500), be = () => {
|
|
4508
|
+
let p = new URL(`${o}/v2/player/${a}/wallet-exchange`), S = {
|
|
4520
4509
|
method: "PUT",
|
|
4521
4510
|
headers: {
|
|
4522
4511
|
"X-SessionID": i,
|
|
@@ -4526,160 +4515,160 @@ function ua(e, t, n) {
|
|
|
4526
4515
|
body: JSON.stringify({
|
|
4527
4516
|
userId: a,
|
|
4528
4517
|
amount: N,
|
|
4529
|
-
currency:
|
|
4530
|
-
fromCurrency:
|
|
4531
|
-
toCurrency:
|
|
4532
|
-
payload: { PlayerCurrency:
|
|
4518
|
+
currency: b,
|
|
4519
|
+
fromCurrency: b,
|
|
4520
|
+
toCurrency: x,
|
|
4521
|
+
payload: { PlayerCurrency: h }
|
|
4533
4522
|
})
|
|
4534
4523
|
};
|
|
4535
|
-
fetch(
|
|
4536
|
-
|
|
4537
|
-
!
|
|
4538
|
-
}).catch((
|
|
4539
|
-
console.error("There was an error with fetching the players balance.",
|
|
4524
|
+
fetch(p, S).then((v) => de(v)).then((v) => {
|
|
4525
|
+
v && (n(10, oe = !1), n(4, N = 0), n(5, D = 0), M("success", "exchangeSuccess"), k().then((B) => {
|
|
4526
|
+
!B || !O || me();
|
|
4527
|
+
}).catch((B) => {
|
|
4528
|
+
console.error("There was an error with fetching the players balance.", B);
|
|
4540
4529
|
}));
|
|
4541
|
-
}).catch((
|
|
4542
|
-
|
|
4530
|
+
}).catch((v) => {
|
|
4531
|
+
M("error", r("generalError")), console.error("There was an error with the wallet exchange request.", v);
|
|
4543
4532
|
});
|
|
4544
|
-
},
|
|
4545
|
-
|
|
4546
|
-
values: { amount:
|
|
4533
|
+
}, qe = (p) => {
|
|
4534
|
+
U = p.amount, I = p.currency, n(11, we = !1), M("action", r("feeAcceptNotification", {
|
|
4535
|
+
values: { amount: U, currency: I }
|
|
4547
4536
|
}));
|
|
4548
|
-
},
|
|
4549
|
-
n(10,
|
|
4550
|
-
let
|
|
4551
|
-
exchageAmount:
|
|
4552
|
-
exchageCurrency:
|
|
4553
|
-
exchangedAmount:
|
|
4554
|
-
exchangedCurrency:
|
|
4555
|
-
feeAmount:
|
|
4537
|
+
}, Pe = () => {
|
|
4538
|
+
n(10, oe = !1), n(6, P = !1), n(11, we = !0);
|
|
4539
|
+
let y = {
|
|
4540
|
+
exchageAmount: Ze(N - U),
|
|
4541
|
+
exchageCurrency: b,
|
|
4542
|
+
exchangedAmount: D,
|
|
4543
|
+
exchangedCurrency: x,
|
|
4544
|
+
feeAmount: U,
|
|
4556
4545
|
feeCurrency: I
|
|
4557
4546
|
};
|
|
4558
|
-
|
|
4559
|
-
},
|
|
4560
|
-
n(10,
|
|
4561
|
-
},
|
|
4562
|
-
switch (
|
|
4547
|
+
M("action", r("feeExchangeNotification", { values: y }));
|
|
4548
|
+
}, Je = () => {
|
|
4549
|
+
n(10, oe = !1), n(12, ce = !1), n(6, P = !0), n(5, D = 0), n(4, N = 0);
|
|
4550
|
+
}, M = (p, y) => {
|
|
4551
|
+
switch (p) {
|
|
4563
4552
|
case "error":
|
|
4564
|
-
n(8,
|
|
4553
|
+
n(8, q = !0), n(6, P = !0), window.postMessage(
|
|
4565
4554
|
{
|
|
4566
4555
|
type: "WidgetNotification",
|
|
4567
|
-
data: { type: "error", message:
|
|
4556
|
+
data: { type: "error", message: y }
|
|
4568
4557
|
},
|
|
4569
4558
|
window.location.href
|
|
4570
4559
|
), setTimeout(
|
|
4571
4560
|
() => {
|
|
4572
|
-
n(8,
|
|
4561
|
+
n(8, q = !1);
|
|
4573
4562
|
},
|
|
4574
4563
|
2e3
|
|
4575
4564
|
);
|
|
4576
4565
|
break;
|
|
4577
4566
|
case "success":
|
|
4578
|
-
n(9,
|
|
4567
|
+
n(9, te = !0), n(6, P = !0), window.postMessage(
|
|
4579
4568
|
{
|
|
4580
4569
|
type: "WidgetNotification",
|
|
4581
|
-
data: { type: "success", message:
|
|
4570
|
+
data: { type: "success", message: y }
|
|
4582
4571
|
},
|
|
4583
4572
|
window.location.href
|
|
4584
4573
|
), setTimeout(
|
|
4585
4574
|
() => {
|
|
4586
|
-
n(9,
|
|
4575
|
+
n(9, te = !1);
|
|
4587
4576
|
},
|
|
4588
4577
|
2e3
|
|
4589
4578
|
);
|
|
4590
4579
|
break;
|
|
4591
4580
|
case "action":
|
|
4592
|
-
n(10,
|
|
4581
|
+
n(10, oe = !0);
|
|
4593
4582
|
break;
|
|
4594
4583
|
}
|
|
4595
|
-
n(3,
|
|
4596
|
-
},
|
|
4597
|
-
function
|
|
4598
|
-
N =
|
|
4584
|
+
n(3, F = y);
|
|
4585
|
+
}, de = async (p) => p.status >= 300 ? (ze = await p.json(), n(3, F = ze.thirdPartyResponse.errorCode), M("error", F || "generalError")) : p.json();
|
|
4586
|
+
function rt() {
|
|
4587
|
+
N = ht(this.value), n(4, N);
|
|
4599
4588
|
}
|
|
4600
|
-
function
|
|
4601
|
-
|
|
4589
|
+
function K() {
|
|
4590
|
+
b = Wt(this), n(1, b), n(13, J);
|
|
4602
4591
|
}
|
|
4603
|
-
function
|
|
4604
|
-
|
|
4592
|
+
function ie() {
|
|
4593
|
+
D = ht(this.value), n(5, D);
|
|
4605
4594
|
}
|
|
4606
|
-
function
|
|
4607
|
-
|
|
4595
|
+
function Ie() {
|
|
4596
|
+
x = Wt(this), n(2, x), n(13, J);
|
|
4608
4597
|
}
|
|
4609
|
-
const
|
|
4610
|
-
|
|
4598
|
+
const Ne = (p) => {
|
|
4599
|
+
We(p);
|
|
4611
4600
|
};
|
|
4612
|
-
function
|
|
4613
|
-
|
|
4614
|
-
|
|
4601
|
+
function it(p, y) {
|
|
4602
|
+
ft[p ? "unshift" : "push"](() => {
|
|
4603
|
+
pe[y] = p, n(17, pe);
|
|
4615
4604
|
});
|
|
4616
4605
|
}
|
|
4617
|
-
function
|
|
4618
|
-
|
|
4619
|
-
|
|
4606
|
+
function Te(p) {
|
|
4607
|
+
ft[p ? "unshift" : "push"](() => {
|
|
4608
|
+
ne = p, n(16, ne);
|
|
4620
4609
|
});
|
|
4621
4610
|
}
|
|
4622
|
-
return e.$$set = (
|
|
4623
|
-
"session" in
|
|
4611
|
+
return e.$$set = (p) => {
|
|
4612
|
+
"session" in p && n(24, i = p.session), "userid" in p && n(25, a = p.userid), "endpoint" in p && n(26, o = p.endpoint), "lang" in p && n(27, s = p.lang), "clientstyling" in p && n(28, c = p.clientstyling), "clientstylingurl" in p && n(29, l = p.clientstylingurl), "translationurl" in p && n(30, u = p.translationurl), "playercurrency" in p && n(31, h = p.playercurrency);
|
|
4624
4613
|
}, e.$$.update = () => {
|
|
4625
4614
|
e.$$.dirty[0] & /*session*/
|
|
4626
4615
|
16777216, e.$$.dirty[0] & /*lang*/
|
|
4627
|
-
134217728 && s &&
|
|
4616
|
+
134217728 && s && Be(), e.$$.dirty[0] & /*session, userid, endpoint*/
|
|
4628
4617
|
117440512 | e.$$.dirty[1] & /*playercurrency*/
|
|
4629
|
-
1 && i && a && o &&
|
|
4630
|
-
268435456
|
|
4631
|
-
536870912
|
|
4632
|
-
1073741824 &&
|
|
4618
|
+
1 && i && a && o && h && k(), e.$$.dirty[0] & /*clientstyling*/
|
|
4619
|
+
268435456, e.$$.dirty[0] & /*clientstylingurl*/
|
|
4620
|
+
536870912, e.$$.dirty[0] & /*translationurl*/
|
|
4621
|
+
1073741824 && u && Xe();
|
|
4633
4622
|
}, [
|
|
4634
4623
|
d,
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4624
|
+
b,
|
|
4625
|
+
x,
|
|
4626
|
+
F,
|
|
4638
4627
|
N,
|
|
4639
|
-
|
|
4628
|
+
D,
|
|
4640
4629
|
P,
|
|
4641
4630
|
O,
|
|
4642
|
-
Z,
|
|
4643
|
-
K,
|
|
4644
|
-
ie,
|
|
4645
|
-
we,
|
|
4646
|
-
se,
|
|
4647
4631
|
q,
|
|
4648
|
-
|
|
4649
|
-
|
|
4632
|
+
te,
|
|
4633
|
+
oe,
|
|
4634
|
+
we,
|
|
4650
4635
|
ce,
|
|
4651
|
-
|
|
4636
|
+
J,
|
|
4637
|
+
G,
|
|
4638
|
+
Y,
|
|
4639
|
+
ne,
|
|
4640
|
+
pe,
|
|
4652
4641
|
r,
|
|
4653
|
-
|
|
4642
|
+
We,
|
|
4643
|
+
ge,
|
|
4644
|
+
be,
|
|
4654
4645
|
Pe,
|
|
4655
|
-
|
|
4656
|
-
Ie,
|
|
4657
|
-
qe,
|
|
4646
|
+
Je,
|
|
4658
4647
|
i,
|
|
4659
4648
|
a,
|
|
4660
4649
|
o,
|
|
4661
4650
|
s,
|
|
4662
4651
|
c,
|
|
4663
|
-
u,
|
|
4664
4652
|
l,
|
|
4665
|
-
|
|
4653
|
+
u,
|
|
4654
|
+
h,
|
|
4655
|
+
rt,
|
|
4656
|
+
K,
|
|
4657
|
+
ie,
|
|
4658
|
+
Ie,
|
|
4666
4659
|
Ne,
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
Ae,
|
|
4670
|
-
Je,
|
|
4671
|
-
ot,
|
|
4672
|
-
de
|
|
4660
|
+
it,
|
|
4661
|
+
Te
|
|
4673
4662
|
];
|
|
4674
4663
|
}
|
|
4675
|
-
class ca extends
|
|
4664
|
+
class ca extends fr {
|
|
4676
4665
|
constructor(t) {
|
|
4677
|
-
super(),
|
|
4666
|
+
super(), cr(
|
|
4678
4667
|
this,
|
|
4679
4668
|
t,
|
|
4680
|
-
|
|
4669
|
+
la,
|
|
4681
4670
|
sa,
|
|
4682
|
-
|
|
4671
|
+
vn,
|
|
4683
4672
|
{
|
|
4684
4673
|
session: 24,
|
|
4685
4674
|
userid: 25,
|
|
@@ -4698,52 +4687,52 @@ class ca extends pr {
|
|
|
4698
4687
|
return this.$$.ctx[24];
|
|
4699
4688
|
}
|
|
4700
4689
|
set session(t) {
|
|
4701
|
-
this.$$set({ session: t }),
|
|
4690
|
+
this.$$set({ session: t }), le();
|
|
4702
4691
|
}
|
|
4703
4692
|
get userid() {
|
|
4704
4693
|
return this.$$.ctx[25];
|
|
4705
4694
|
}
|
|
4706
4695
|
set userid(t) {
|
|
4707
|
-
this.$$set({ userid: t }),
|
|
4696
|
+
this.$$set({ userid: t }), le();
|
|
4708
4697
|
}
|
|
4709
4698
|
get endpoint() {
|
|
4710
4699
|
return this.$$.ctx[26];
|
|
4711
4700
|
}
|
|
4712
4701
|
set endpoint(t) {
|
|
4713
|
-
this.$$set({ endpoint: t }),
|
|
4702
|
+
this.$$set({ endpoint: t }), le();
|
|
4714
4703
|
}
|
|
4715
4704
|
get lang() {
|
|
4716
4705
|
return this.$$.ctx[27];
|
|
4717
4706
|
}
|
|
4718
4707
|
set lang(t) {
|
|
4719
|
-
this.$$set({ lang: t }),
|
|
4708
|
+
this.$$set({ lang: t }), le();
|
|
4720
4709
|
}
|
|
4721
4710
|
get clientstyling() {
|
|
4722
4711
|
return this.$$.ctx[28];
|
|
4723
4712
|
}
|
|
4724
4713
|
set clientstyling(t) {
|
|
4725
|
-
this.$$set({ clientstyling: t }),
|
|
4714
|
+
this.$$set({ clientstyling: t }), le();
|
|
4726
4715
|
}
|
|
4727
4716
|
get clientstylingurl() {
|
|
4728
4717
|
return this.$$.ctx[29];
|
|
4729
4718
|
}
|
|
4730
4719
|
set clientstylingurl(t) {
|
|
4731
|
-
this.$$set({ clientstylingurl: t }),
|
|
4720
|
+
this.$$set({ clientstylingurl: t }), le();
|
|
4732
4721
|
}
|
|
4733
4722
|
get translationurl() {
|
|
4734
4723
|
return this.$$.ctx[30];
|
|
4735
4724
|
}
|
|
4736
4725
|
set translationurl(t) {
|
|
4737
|
-
this.$$set({ translationurl: t }),
|
|
4726
|
+
this.$$set({ translationurl: t }), le();
|
|
4738
4727
|
}
|
|
4739
4728
|
get playercurrency() {
|
|
4740
4729
|
return this.$$.ctx[31];
|
|
4741
4730
|
}
|
|
4742
4731
|
set playercurrency(t) {
|
|
4743
|
-
this.$$set({ playercurrency: t }),
|
|
4732
|
+
this.$$set({ playercurrency: t }), le();
|
|
4744
4733
|
}
|
|
4745
4734
|
}
|
|
4746
|
-
|
|
4735
|
+
hr(ca, { session: {}, userid: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, playercurrency: {} }, [], [], !0);
|
|
4747
4736
|
export {
|
|
4748
4737
|
ca as P
|
|
4749
4738
|
};
|