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