@everymatrix/player-account-vault 1.77.20 → 1.77.21
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-C3iBYDgz.js → PlayerAccountVault--UlOBOmV.js} +973 -967
- package/components/PlayerAccountVault-BBwHMjxj.cjs +3 -0
- package/components/{PlayerAccountVault-Dg3TqyvM.js → PlayerAccountVault-BUdtoBGP.js} +975 -969
- package/es2015/player-account-vault.cjs +1 -1
- package/es2015/player-account-vault.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountVault-C-672FjU.cjs +0 -16
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var Qr = Object.defineProperty, Yr = Object.defineProperties;
|
|
2
|
+
var Jr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Dn = Object.getOwnPropertySymbols;
|
|
4
|
+
var ei = Object.prototype.hasOwnProperty, ti = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var zt = (e, t, n) => t in e ? Qr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, je = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var n of
|
|
10
|
-
|
|
7
|
+
ei.call(t, n) && zt(e, n, t[n]);
|
|
8
|
+
if (Dn)
|
|
9
|
+
for (var n of Dn(t))
|
|
10
|
+
ti.call(t, n) && zt(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var ce = (e, t, n) => (
|
|
14
|
-
var
|
|
12
|
+
}, Zt = (e, t) => Yr(e, Jr(t));
|
|
13
|
+
var ce = (e, t, n) => (zt(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
14
|
+
var qt = (e, t, n) => new Promise((r, i) => {
|
|
15
15
|
var a = (l) => {
|
|
16
16
|
try {
|
|
17
17
|
s(n.next(l));
|
|
@@ -29,25 +29,25 @@ var zt = (e, t, n) => new Promise((r, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function N() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Er(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Mn() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function Te(e) {
|
|
39
|
+
e.forEach(Er);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function yt(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function kt(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function ni(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function _r(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const r of t)
|
|
53
53
|
r(void 0);
|
|
@@ -56,24 +56,24 @@ function vr(e, ...t) {
|
|
|
56
56
|
const n = e.subscribe(...t);
|
|
57
57
|
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function ri(e) {
|
|
60
60
|
let t;
|
|
61
|
-
return
|
|
61
|
+
return _r(e, (n) => t = n)(), t;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
return e &&
|
|
63
|
+
function ii(e) {
|
|
64
|
+
return e && yt(e.destroy) ? e.destroy : N;
|
|
65
65
|
}
|
|
66
66
|
function E(e, t) {
|
|
67
67
|
e.appendChild(t);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
const r =
|
|
69
|
+
function Tn(e, t, n) {
|
|
70
|
+
const r = ai(e);
|
|
71
71
|
if (!r.getElementById(t)) {
|
|
72
72
|
const i = A("style");
|
|
73
|
-
i.id = t, i.textContent = n,
|
|
73
|
+
i.id = t, i.textContent = n, oi(r, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function ai(e) {
|
|
77
77
|
if (!e)
|
|
78
78
|
return document;
|
|
79
79
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -83,7 +83,7 @@ function ri(e) {
|
|
|
83
83
|
t
|
|
84
84
|
) : e.ownerDocument;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function oi(e, t) {
|
|
87
87
|
return E(
|
|
88
88
|
/** @type {Document} */
|
|
89
89
|
e.head || e,
|
|
@@ -96,29 +96,29 @@ function H(e, t, n) {
|
|
|
96
96
|
function B(e) {
|
|
97
97
|
e.parentNode && e.parentNode.removeChild(e);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function xr(e, t) {
|
|
100
100
|
for (let n = 0; n < e.length; n += 1)
|
|
101
101
|
e[n] && e[n].d(t);
|
|
102
102
|
}
|
|
103
103
|
function A(e) {
|
|
104
104
|
return document.createElement(e);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function kn(e) {
|
|
107
107
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
108
108
|
}
|
|
109
109
|
function q(e) {
|
|
110
110
|
return document.createTextNode(e);
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function R() {
|
|
113
113
|
return q(" ");
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function si() {
|
|
116
116
|
return q("");
|
|
117
117
|
}
|
|
118
118
|
function ae(e, t, n, r) {
|
|
119
119
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function li(e) {
|
|
122
122
|
return function(t) {
|
|
123
123
|
return t.stopPropagation(), e.call(this, t);
|
|
124
124
|
};
|
|
@@ -126,23 +126,23 @@ function oi(e) {
|
|
|
126
126
|
function y(e, t, n) {
|
|
127
127
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function Nt(e) {
|
|
130
130
|
return e === "" ? null : +e;
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function ui(e) {
|
|
133
133
|
return Array.from(e.childNodes);
|
|
134
134
|
}
|
|
135
135
|
function oe(e, t) {
|
|
136
136
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
137
137
|
t);
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function Ct(e, t) {
|
|
140
140
|
e.value = t == null ? "" : t;
|
|
141
141
|
}
|
|
142
142
|
function he(e, t, n) {
|
|
143
143
|
e.classList.toggle(t, !!n);
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function ci(e) {
|
|
146
146
|
const t = {};
|
|
147
147
|
return e.childNodes.forEach(
|
|
148
148
|
/** @param {Element} node */
|
|
@@ -151,125 +151,125 @@ function li(e) {
|
|
|
151
151
|
}
|
|
152
152
|
), t;
|
|
153
153
|
}
|
|
154
|
-
let
|
|
155
|
-
function
|
|
156
|
-
|
|
154
|
+
let ft;
|
|
155
|
+
function ht(e) {
|
|
156
|
+
ft = e;
|
|
157
157
|
}
|
|
158
|
-
function
|
|
159
|
-
if (!
|
|
158
|
+
function wr() {
|
|
159
|
+
if (!ft)
|
|
160
160
|
throw new Error("Function called outside component initialization");
|
|
161
|
-
return
|
|
161
|
+
return ft;
|
|
162
162
|
}
|
|
163
|
-
function
|
|
164
|
-
|
|
163
|
+
function Ar(e) {
|
|
164
|
+
wr().$$.on_mount.push(e);
|
|
165
165
|
}
|
|
166
|
-
function
|
|
167
|
-
|
|
166
|
+
function hi(e) {
|
|
167
|
+
wr().$$.on_destroy.push(e);
|
|
168
168
|
}
|
|
169
|
-
const
|
|
170
|
-
let
|
|
171
|
-
const
|
|
172
|
-
let
|
|
173
|
-
function
|
|
174
|
-
|
|
169
|
+
const ze = [], qe = [];
|
|
170
|
+
let Ze = [];
|
|
171
|
+
const ln = [], fi = /* @__PURE__ */ Promise.resolve();
|
|
172
|
+
let un = !1;
|
|
173
|
+
function pi() {
|
|
174
|
+
un || (un = !0, fi.then($));
|
|
175
175
|
}
|
|
176
|
-
function
|
|
177
|
-
|
|
176
|
+
function cn(e) {
|
|
177
|
+
Ze.push(e);
|
|
178
178
|
}
|
|
179
|
-
function
|
|
180
|
-
|
|
179
|
+
function Vn(e) {
|
|
180
|
+
ln.push(e);
|
|
181
181
|
}
|
|
182
|
-
const
|
|
183
|
-
let
|
|
182
|
+
const Kt = /* @__PURE__ */ new Set();
|
|
183
|
+
let We = 0;
|
|
184
184
|
function $() {
|
|
185
|
-
if (
|
|
185
|
+
if (We !== 0)
|
|
186
186
|
return;
|
|
187
|
-
const e =
|
|
187
|
+
const e = ft;
|
|
188
188
|
do {
|
|
189
189
|
try {
|
|
190
|
-
for (;
|
|
191
|
-
const t =
|
|
192
|
-
|
|
190
|
+
for (; We < ze.length; ) {
|
|
191
|
+
const t = ze[We];
|
|
192
|
+
We++, ht(t), gi(t.$$);
|
|
193
193
|
}
|
|
194
194
|
} catch (t) {
|
|
195
|
-
throw
|
|
195
|
+
throw ze.length = 0, We = 0, t;
|
|
196
196
|
}
|
|
197
|
-
for (
|
|
198
|
-
|
|
199
|
-
for (let t = 0; t <
|
|
200
|
-
const n =
|
|
201
|
-
|
|
197
|
+
for (ht(null), ze.length = 0, We = 0; qe.length; )
|
|
198
|
+
qe.pop()();
|
|
199
|
+
for (let t = 0; t < Ze.length; t += 1) {
|
|
200
|
+
const n = Ze[t];
|
|
201
|
+
Kt.has(n) || (Kt.add(n), n());
|
|
202
202
|
}
|
|
203
|
-
|
|
204
|
-
} while (
|
|
205
|
-
for (;
|
|
206
|
-
|
|
207
|
-
|
|
203
|
+
Ze.length = 0;
|
|
204
|
+
} while (ze.length);
|
|
205
|
+
for (; ln.length; )
|
|
206
|
+
ln.pop()();
|
|
207
|
+
un = !1, Kt.clear(), ht(e);
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function gi(e) {
|
|
210
210
|
if (e.fragment !== null) {
|
|
211
|
-
e.update(),
|
|
211
|
+
e.update(), Te(e.before_update);
|
|
212
212
|
const t = e.dirty;
|
|
213
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
213
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(cn);
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function di(e) {
|
|
217
217
|
const t = [], n = [];
|
|
218
|
-
|
|
218
|
+
Ze.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Ze = t;
|
|
219
219
|
}
|
|
220
|
-
const
|
|
221
|
-
let
|
|
222
|
-
function
|
|
223
|
-
|
|
220
|
+
const Bt = /* @__PURE__ */ new Set();
|
|
221
|
+
let Me;
|
|
222
|
+
function ke() {
|
|
223
|
+
Me = {
|
|
224
224
|
r: 0,
|
|
225
225
|
c: [],
|
|
226
|
-
p:
|
|
226
|
+
p: Me
|
|
227
227
|
// parent group
|
|
228
228
|
};
|
|
229
229
|
}
|
|
230
|
-
function
|
|
231
|
-
|
|
230
|
+
function Ve() {
|
|
231
|
+
Me.r || Te(Me.c), Me = Me.p;
|
|
232
232
|
}
|
|
233
233
|
function j(e, t) {
|
|
234
|
-
e && e.i && (
|
|
234
|
+
e && e.i && (Bt.delete(e), e.i(t));
|
|
235
235
|
}
|
|
236
236
|
function Z(e, t, n, r) {
|
|
237
237
|
if (e && e.o) {
|
|
238
|
-
if (
|
|
238
|
+
if (Bt.has(e))
|
|
239
239
|
return;
|
|
240
|
-
|
|
241
|
-
|
|
240
|
+
Bt.add(e), Me.c.push(() => {
|
|
241
|
+
Bt.delete(e), r && (n && e.d(1), r());
|
|
242
242
|
}), e.o(t);
|
|
243
243
|
} else
|
|
244
244
|
r && r();
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function Ot(e) {
|
|
247
247
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function Un(e, t, n) {
|
|
250
250
|
const r = e.$$.props[t];
|
|
251
251
|
r !== void 0 && (e.$$.bound[r] = n, n(e.$$.ctx[r]));
|
|
252
252
|
}
|
|
253
|
-
function
|
|
253
|
+
function pt(e) {
|
|
254
254
|
e && e.c();
|
|
255
255
|
}
|
|
256
|
-
function
|
|
256
|
+
function Ke(e, t, n) {
|
|
257
257
|
const { fragment: r, after_update: i } = e.$$;
|
|
258
|
-
r && r.m(t, n),
|
|
259
|
-
const a = e.$$.on_mount.map(
|
|
260
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...a) :
|
|
261
|
-
}), i.forEach(
|
|
258
|
+
r && r.m(t, n), cn(() => {
|
|
259
|
+
const a = e.$$.on_mount.map(Er).filter(yt);
|
|
260
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...a) : Te(a), e.$$.on_mount = [];
|
|
261
|
+
}), i.forEach(cn);
|
|
262
262
|
}
|
|
263
|
-
function
|
|
263
|
+
function Qe(e, t) {
|
|
264
264
|
const n = e.$$;
|
|
265
|
-
n.fragment !== null && (
|
|
265
|
+
n.fragment !== null && (di(n.after_update), Te(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
266
266
|
}
|
|
267
|
-
function
|
|
268
|
-
e.$$.dirty[0] === -1 && (
|
|
267
|
+
function mi(e, t) {
|
|
268
|
+
e.$$.dirty[0] === -1 && (ze.push(e), pi(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
269
269
|
}
|
|
270
|
-
function
|
|
271
|
-
const l =
|
|
272
|
-
|
|
270
|
+
function Sn(e, t, n, r, i, a, o = null, s = [-1]) {
|
|
271
|
+
const l = ft;
|
|
272
|
+
ht(e);
|
|
273
273
|
const u = e.$$ = {
|
|
274
274
|
fragment: null,
|
|
275
275
|
ctx: [],
|
|
@@ -277,7 +277,7 @@ function Cn(e, t, n, r, i, a, o = null, s = [-1]) {
|
|
|
277
277
|
props: a,
|
|
278
278
|
update: N,
|
|
279
279
|
not_equal: i,
|
|
280
|
-
bound:
|
|
280
|
+
bound: Mn(),
|
|
281
281
|
// lifecycle
|
|
282
282
|
on_mount: [],
|
|
283
283
|
on_destroy: [],
|
|
@@ -286,7 +286,7 @@ function Cn(e, t, n, r, i, a, o = null, s = [-1]) {
|
|
|
286
286
|
after_update: [],
|
|
287
287
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
288
288
|
// everything else
|
|
289
|
-
callbacks:
|
|
289
|
+
callbacks: Mn(),
|
|
290
290
|
dirty: s,
|
|
291
291
|
skip_bound: !1,
|
|
292
292
|
root: t.target || l.$$.root
|
|
@@ -295,19 +295,19 @@ function Cn(e, t, n, r, i, a, o = null, s = [-1]) {
|
|
|
295
295
|
let c = !1;
|
|
296
296
|
if (u.ctx = n ? n(e, t.props || {}, (f, h, ...g) => {
|
|
297
297
|
const v = g.length ? g[0] : h;
|
|
298
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = v) && (!u.skip_bound && u.bound[f] && u.bound[f](v), c &&
|
|
299
|
-
}) : [], u.update(), c = !0,
|
|
298
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = v) && (!u.skip_bound && u.bound[f] && u.bound[f](v), c && mi(e, f)), h;
|
|
299
|
+
}) : [], u.update(), c = !0, Te(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
300
300
|
if (t.hydrate) {
|
|
301
|
-
const f =
|
|
301
|
+
const f = ui(t.target);
|
|
302
302
|
u.fragment && u.fragment.l(f), f.forEach(B);
|
|
303
303
|
} else
|
|
304
304
|
u.fragment && u.fragment.c();
|
|
305
|
-
t.intro && j(e.$$.fragment),
|
|
305
|
+
t.intro && j(e.$$.fragment), Ke(e, t.target, t.anchor), $();
|
|
306
306
|
}
|
|
307
|
-
|
|
307
|
+
ht(l);
|
|
308
308
|
}
|
|
309
|
-
let
|
|
310
|
-
typeof HTMLElement == "function" && (
|
|
309
|
+
let Cr;
|
|
310
|
+
typeof HTMLElement == "function" && (Cr = class extends HTMLElement {
|
|
311
311
|
constructor(t, n, r) {
|
|
312
312
|
super();
|
|
313
313
|
/** The Svelte component constructor */
|
|
@@ -344,7 +344,7 @@ typeof HTMLElement == "function" && (wr = class extends HTMLElement {
|
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
connectedCallback() {
|
|
347
|
-
return
|
|
347
|
+
return qt(this, null, function* () {
|
|
348
348
|
if (this.$$cn = !0, !this.$$c) {
|
|
349
349
|
let t = function(a) {
|
|
350
350
|
return () => {
|
|
@@ -368,18 +368,18 @@ typeof HTMLElement == "function" && (wr = class extends HTMLElement {
|
|
|
368
368
|
};
|
|
369
369
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
370
370
|
return;
|
|
371
|
-
const n = {}, r =
|
|
371
|
+
const n = {}, r = ci(this);
|
|
372
372
|
for (const a of this.$$s)
|
|
373
373
|
a in r && (n[a] = [t(a)]);
|
|
374
374
|
for (const a of this.attributes) {
|
|
375
375
|
const o = this.$$g_p(a.name);
|
|
376
|
-
o in this.$$d || (this.$$d[o] =
|
|
376
|
+
o in this.$$d || (this.$$d[o] = Ht(o, a.value, this.$$p_d, "toProp"));
|
|
377
377
|
}
|
|
378
378
|
for (const a in this.$$p_d)
|
|
379
379
|
!(a in this.$$d) && this[a] !== void 0 && (this.$$d[a] = this[a], delete this[a]);
|
|
380
380
|
this.$$c = new this.$$ctor({
|
|
381
381
|
target: this.shadowRoot || this,
|
|
382
|
-
props:
|
|
382
|
+
props: Zt(je({}, this.$$d), {
|
|
383
383
|
$$slots: n,
|
|
384
384
|
$$scope: {
|
|
385
385
|
ctx: []
|
|
@@ -390,7 +390,7 @@ typeof HTMLElement == "function" && (wr = class extends HTMLElement {
|
|
|
390
390
|
this.$$r = !0;
|
|
391
391
|
for (const a in this.$$p_d)
|
|
392
392
|
if (this.$$d[a] = this.$$c.$$.ctx[this.$$c.$$.props[a]], this.$$p_d[a].reflect) {
|
|
393
|
-
const o =
|
|
393
|
+
const o = Ht(
|
|
394
394
|
a,
|
|
395
395
|
this.$$d[a],
|
|
396
396
|
this.$$p_d,
|
|
@@ -414,7 +414,7 @@ typeof HTMLElement == "function" && (wr = class extends HTMLElement {
|
|
|
414
414
|
// and setting attributes through setAttribute etc, this is helpful
|
|
415
415
|
attributeChangedCallback(t, n, r) {
|
|
416
416
|
var i;
|
|
417
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
417
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = Ht(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
418
418
|
}
|
|
419
419
|
disconnectedCallback() {
|
|
420
420
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -427,7 +427,7 @@ typeof HTMLElement == "function" && (wr = class extends HTMLElement {
|
|
|
427
427
|
) || t;
|
|
428
428
|
}
|
|
429
429
|
});
|
|
430
|
-
function
|
|
430
|
+
function Ht(e, t, n, r) {
|
|
431
431
|
var a;
|
|
432
432
|
const i = (a = n[e]) == null ? void 0 : a.type;
|
|
433
433
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
@@ -457,8 +457,8 @@ function Bt(e, t, n, r) {
|
|
|
457
457
|
return t;
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
|
-
function
|
|
461
|
-
let o = class extends
|
|
460
|
+
function Bn(e, t, n, r, i, a) {
|
|
461
|
+
let o = class extends Cr {
|
|
462
462
|
constructor() {
|
|
463
463
|
super(e, n, i), this.$$p_d = t;
|
|
464
464
|
}
|
|
@@ -475,7 +475,7 @@ function Tn(e, t, n, r, i, a) {
|
|
|
475
475
|
},
|
|
476
476
|
set(l) {
|
|
477
477
|
var u;
|
|
478
|
-
l =
|
|
478
|
+
l = Ht(s, l, t), this.$$d[s] = l, (u = this.$$c) == null || u.$set({ [s]: l });
|
|
479
479
|
}
|
|
480
480
|
});
|
|
481
481
|
}), r.forEach((s) => {
|
|
@@ -488,7 +488,7 @@ function Tn(e, t, n, r, i, a) {
|
|
|
488
488
|
}), e.element = /** @type {any} */
|
|
489
489
|
o, o;
|
|
490
490
|
}
|
|
491
|
-
class
|
|
491
|
+
class Hn {
|
|
492
492
|
constructor() {
|
|
493
493
|
/**
|
|
494
494
|
* ### PRIVATE API
|
|
@@ -509,7 +509,7 @@ class Sn {
|
|
|
509
509
|
}
|
|
510
510
|
/** @returns {void} */
|
|
511
511
|
$destroy() {
|
|
512
|
-
|
|
512
|
+
Qe(this, 1), this.$destroy = N;
|
|
513
513
|
}
|
|
514
514
|
/**
|
|
515
515
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -518,7 +518,7 @@ class Sn {
|
|
|
518
518
|
* @returns {() => void}
|
|
519
519
|
*/
|
|
520
520
|
$on(t, n) {
|
|
521
|
-
if (!
|
|
521
|
+
if (!yt(n))
|
|
522
522
|
return N;
|
|
523
523
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
524
524
|
return r.push(n), () => {
|
|
@@ -531,26 +531,26 @@ class Sn {
|
|
|
531
531
|
* @returns {void}
|
|
532
532
|
*/
|
|
533
533
|
$set(t) {
|
|
534
|
-
this.$$set && !
|
|
534
|
+
this.$$set && !ni(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
|
-
const
|
|
538
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
537
|
+
const yi = "4";
|
|
538
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(yi);
|
|
539
539
|
function Pt(e, t) {
|
|
540
540
|
var n;
|
|
541
541
|
t === void 0 && (t = "0");
|
|
542
542
|
var r = 0, i = -1;
|
|
543
|
-
e[0] == "-" && (e = e.substring(1),
|
|
544
|
-
var a =
|
|
545
|
-
return r ? r == 2 ? "-" + Q(a) : e.length < a.length ? Q(a.substring(1)) : "-" + Q(
|
|
543
|
+
e[0] == "-" && (e = e.substring(1), hn(e) || (r++, i = 1, e.length)), t[0] == "-" && (t = t.substring(1), hn(t) || (r++, i = 2, t.length)), e = Q(e), t = Q(t), n = In(Q(e), Q(t)), e = n[0], t = n[1], r == 1 && (i === 1 ? e = Qt(e) : i === 2 && (t = Qt(t)));
|
|
544
|
+
var a = Tr(e, t);
|
|
545
|
+
return r ? r == 2 ? "-" + Q(a) : e.length < a.length ? Q(a.substring(1)) : "-" + Q(Qt(a)) : Q(a);
|
|
546
546
|
}
|
|
547
|
-
function
|
|
548
|
-
if (
|
|
547
|
+
function Qt(e) {
|
|
548
|
+
if (hn(e))
|
|
549
549
|
return e;
|
|
550
550
|
for (var t = "", n = e.length, r = e.split(".")[1], i = r ? r.length : 0, a = 0; a < n; a++)
|
|
551
551
|
e[a] >= "0" && e[a] <= "9" ? t += 9 - parseInt(e[a]) : t += e[a];
|
|
552
552
|
var o = i > 0 ? "0." + new Array(i).join("0") + "1" : "1";
|
|
553
|
-
return
|
|
553
|
+
return Tr(t, o);
|
|
554
554
|
}
|
|
555
555
|
function Q(e) {
|
|
556
556
|
var t = e.split(".");
|
|
@@ -558,13 +558,13 @@ function Q(e) {
|
|
|
558
558
|
t[0] = t[0].substring(1);
|
|
559
559
|
return t[0] + (t[1] ? "." + t[1] : "");
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function In(e, t) {
|
|
562
562
|
var n = e.split("."), r = t.split("."), i = n[0].length, a = r[0].length;
|
|
563
563
|
return i > a ? r[0] = new Array(Math.abs(i - a) + 1).join("0") + (r[0] ? r[0] : "") : n[0] = new Array(Math.abs(i - a) + 1).join("0") + (n[0] ? n[0] : ""), i = n[1] ? n[1].length : 0, a = r[1] ? r[1].length : 0, (i || a) && (i > a ? r[1] = (r[1] ? r[1] : "") + new Array(Math.abs(i - a) + 1).join("0") : n[1] = (n[1] ? n[1] : "") + new Array(Math.abs(i - a) + 1).join("0")), e = n[0] + (n[1] ? "." + n[1] : ""), t = r[0] + (r[1] ? "." + r[1] : ""), [e, t];
|
|
564
564
|
}
|
|
565
|
-
function
|
|
565
|
+
function Tr(e, t) {
|
|
566
566
|
var n;
|
|
567
|
-
n =
|
|
567
|
+
n = In(e, t), e = n[0], t = n[1];
|
|
568
568
|
for (var r = "", i = 0, a = e.length - 1; a >= 0; a--) {
|
|
569
569
|
if (e[a] === ".") {
|
|
570
570
|
r = "." + r;
|
|
@@ -575,17 +575,17 @@ function Ar(e, t) {
|
|
|
575
575
|
}
|
|
576
576
|
return i ? i.toString() + r : r;
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function hn(e) {
|
|
579
579
|
return /^0[0]*[.]{0,1}[0]*$/.test(e);
|
|
580
580
|
}
|
|
581
|
-
function
|
|
581
|
+
function Fn(e) {
|
|
582
582
|
return (typeof e == "number" || typeof e == "bigint") && (e = e.toString()), e[0] == "-" ? e.substring(1) : e;
|
|
583
583
|
}
|
|
584
584
|
var F;
|
|
585
585
|
(function(e) {
|
|
586
586
|
e[e.CEILING = 0] = "CEILING", e[e.DOWN = 1] = "DOWN", e[e.FLOOR = 2] = "FLOOR", e[e.HALF_DOWN = 3] = "HALF_DOWN", e[e.HALF_EVEN = 4] = "HALF_EVEN", e[e.HALF_UP = 5] = "HALF_UP", e[e.UNNECESSARY = 6] = "UNNECESSARY", e[e.UP = 7] = "UP";
|
|
587
587
|
})(F || (F = {}));
|
|
588
|
-
function
|
|
588
|
+
function gt(e, t, n) {
|
|
589
589
|
if (t === void 0 && (t = 0), n === void 0 && (n = F.HALF_EVEN), n === F.UNNECESSARY)
|
|
590
590
|
throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");
|
|
591
591
|
(typeof e == "number" || typeof e == "bigint") && (e = e.toString());
|
|
@@ -596,10 +596,10 @@ function pt(e, t, n) {
|
|
|
596
596
|
if (t = -t, a.length <= t)
|
|
597
597
|
return "0";
|
|
598
598
|
var s = a.substr(0, a.length - t);
|
|
599
|
-
return e = s + "." + a.substr(a.length - t) + o, s =
|
|
599
|
+
return e = s + "." + a.substr(a.length - t) + o, s = gt(e, 0, n), (r ? "-" : "") + s + new Array(t + 1).join("0");
|
|
600
600
|
}
|
|
601
601
|
if (t == 0)
|
|
602
|
-
return a.length,
|
|
602
|
+
return a.length, Gn(i[1], a, r, n) && (a = Yt(a)), (r && parseInt(a) ? "-" : "") + a;
|
|
603
603
|
if (i[1]) {
|
|
604
604
|
if (i[1].length < t)
|
|
605
605
|
return (r ? "-" : "") + a + "." + i[1] + new Array(t - i[1].length + 1).join("0");
|
|
@@ -607,9 +607,9 @@ function pt(e, t, n) {
|
|
|
607
607
|
return (r ? "-" : "") + a + "." + new Array(t + 1).join("0");
|
|
608
608
|
o = i[1].substring(0, t);
|
|
609
609
|
var l = i[1].substring(t);
|
|
610
|
-
return l &&
|
|
610
|
+
return l && Gn(l, o, r, n) && (o = Yt(o), o.length > t) ? (r ? "-" : "") + Yt(a, parseInt(o[0])) + "." + o.substring(1) : (r && (parseInt(a) || parseInt(o)) ? "-" : "") + a + "." + o;
|
|
611
611
|
}
|
|
612
|
-
function
|
|
612
|
+
function Gn(e, t, n, r) {
|
|
613
613
|
if (!e || e === new Array(e.length + 1).join("0") || r === F.DOWN || !n && r === F.FLOOR || n && r === F.CEILING)
|
|
614
614
|
return !1;
|
|
615
615
|
if (r === F.UP || n && r === F.FLOOR || !n && r === F.CEILING)
|
|
@@ -629,7 +629,7 @@ function Un(e, t, n, r) {
|
|
|
629
629
|
return parseInt(t[t.length - 1]) % 2 == 1;
|
|
630
630
|
}
|
|
631
631
|
}
|
|
632
|
-
function
|
|
632
|
+
function Yt(e, t) {
|
|
633
633
|
t === void 0 && (t = 0), t || (t = 1), typeof e == "number" && e.toString();
|
|
634
634
|
for (var n = e.length - 1, r = "", i = n; i >= 0; i--) {
|
|
635
635
|
var a = parseInt(e[i]) + t;
|
|
@@ -646,7 +646,7 @@ function Pe(e) {
|
|
|
646
646
|
e = e.substr(0, e.length - 1);
|
|
647
647
|
return e == "" || e == "." ? e = "0" : e[e.length - 1] == "." && (e = e.substr(0, e.length - 1)), e[0] == "." && (e = "0" + e), t && e != "0" && (e = "-" + e), e;
|
|
648
648
|
}
|
|
649
|
-
function
|
|
649
|
+
function fn(e, t) {
|
|
650
650
|
e = e.toString(), t = t.toString();
|
|
651
651
|
var n = 0;
|
|
652
652
|
e[0] == "-" && (n++, e = e.substr(1)), t[0] == "-" && (n++, t = t.substr(1)), e = Pe(e), t = Pe(t);
|
|
@@ -666,12 +666,12 @@ function cn(e, t) {
|
|
|
666
666
|
u[v] > -1 && u[v] < e.length && (g += parseInt(e[u[v]--]) * parseInt(t[v]));
|
|
667
667
|
g += l, l = Math.floor(g / 10), f = g % 10 + f, c--;
|
|
668
668
|
}
|
|
669
|
-
return f = Pe(
|
|
669
|
+
return f = Pe(bi(f, a)), n == 1 && (f = "-" + f), f;
|
|
670
670
|
}
|
|
671
|
-
function
|
|
671
|
+
function bi(e, t) {
|
|
672
672
|
return t == 0 ? e : (e = t >= e.length ? new Array(t - e.length + 1).join("0") + e : e, e.substr(0, e.length - t) + "." + e.substr(e.length - t, t));
|
|
673
673
|
}
|
|
674
|
-
function
|
|
674
|
+
function pn(e, t, n, r) {
|
|
675
675
|
if (n === void 0 && (n = 8), r === void 0 && (r = F.HALF_EVEN), t == 0)
|
|
676
676
|
throw new Error("Cannot divide by 0");
|
|
677
677
|
if (e = e.toString(), t = t.toString(), e = e.replace(/(\.\d*?[1-9])0+$/g, "$1").replace(/\.0+$/, ""), t = t.replace(/(\.\d*?[1-9])0+$/g, "$1").replace(/\.0+$/, ""), e == 0)
|
|
@@ -702,28 +702,28 @@ function hn(e, t, n, r) {
|
|
|
702
702
|
f = Pt(f, "-" + t), g++;
|
|
703
703
|
c += g, e ? (e[0] == "." && (c += ".", l++, e = e.substring(1)), f = f + e.substring(0, 1), e = e.substring(1)) : (l || (c += "."), l++, f = f + "0");
|
|
704
704
|
}
|
|
705
|
-
return (i == 1 ? "-" : "") + Q(
|
|
705
|
+
return (i == 1 ? "-" : "") + Q(gt(c, n - 2, r));
|
|
706
706
|
}
|
|
707
|
-
function
|
|
708
|
-
return e = e.toString(), t = t.toString(), t =
|
|
707
|
+
function gn(e, t) {
|
|
708
|
+
return e = e.toString(), t = t.toString(), t = dn(t), Pt(e, t);
|
|
709
709
|
}
|
|
710
|
-
function
|
|
710
|
+
function dn(e) {
|
|
711
711
|
return e[0] == "-" ? e = e.substr(1) : e = "-" + e, e;
|
|
712
712
|
}
|
|
713
|
-
function
|
|
713
|
+
function $n(e, t) {
|
|
714
714
|
if (t == 0)
|
|
715
715
|
throw new Error("Cannot divide by 0");
|
|
716
|
-
e = e.toString(), t = t.toString(),
|
|
716
|
+
e = e.toString(), t = t.toString(), jn(e), jn(t);
|
|
717
717
|
var n = "";
|
|
718
718
|
e[0] == "-" && (n = "-", e = e.substr(1)), t[0] == "-" && (t = t.substr(1));
|
|
719
|
-
var r =
|
|
719
|
+
var r = gn(e, fn(t, gt(pn(e, t), 0, F.FLOOR)));
|
|
720
720
|
return n + r;
|
|
721
721
|
}
|
|
722
|
-
function
|
|
722
|
+
function jn(e) {
|
|
723
723
|
if (e.indexOf(".") != -1)
|
|
724
724
|
throw new Error("Modulus of non-integers not supported");
|
|
725
725
|
}
|
|
726
|
-
function
|
|
726
|
+
function Wn(e, t) {
|
|
727
727
|
var n, r, i = !1;
|
|
728
728
|
if (n = [e, t].map(function(o) {
|
|
729
729
|
return Pe(o);
|
|
@@ -731,14 +731,14 @@ function $n(e, t) {
|
|
|
731
731
|
return -1;
|
|
732
732
|
if (e[0] != "-" && t[0] == "-")
|
|
733
733
|
return 1;
|
|
734
|
-
if (e[0] == "-" && t[0] == "-" && (e = e.substr(1), t = t.substr(1), i = !0), r =
|
|
734
|
+
if (e[0] == "-" && t[0] == "-" && (e = e.substr(1), t = t.substr(1), i = !0), r = In(e, t), e = r[0], t = r[1], e.localeCompare(t) == 0)
|
|
735
735
|
return 0;
|
|
736
736
|
for (var a = 0; a < e.length; a++)
|
|
737
737
|
if (e[a] != t[a])
|
|
738
738
|
return e[a] > t[a] ? i ? -1 : 1 : i ? 1 : -1;
|
|
739
739
|
return 0;
|
|
740
740
|
}
|
|
741
|
-
var
|
|
741
|
+
var vi = (
|
|
742
742
|
/** @class */
|
|
743
743
|
function() {
|
|
744
744
|
function e(t) {
|
|
@@ -776,15 +776,15 @@ var yi = (
|
|
|
776
776
|
}, e.round = function(t, n, r) {
|
|
777
777
|
if (n === void 0 && (n = 0), r === void 0 && (r = F.HALF_EVEN), t = e.validate(t), isNaN(n))
|
|
778
778
|
throw Error("Precision is not a number: " + n);
|
|
779
|
-
return
|
|
779
|
+
return gt(t, n, r);
|
|
780
780
|
}, e.prototype.round = function(t, n) {
|
|
781
781
|
if (t === void 0 && (t = 0), n === void 0 && (n = F.HALF_EVEN), isNaN(t))
|
|
782
782
|
throw Error("Precision is not a number: " + t);
|
|
783
|
-
return new e(
|
|
783
|
+
return new e(gt(this.value, t, n));
|
|
784
784
|
}, e.abs = function(t) {
|
|
785
|
-
return t = e.validate(t),
|
|
785
|
+
return t = e.validate(t), Fn(t);
|
|
786
786
|
}, e.prototype.abs = function() {
|
|
787
|
-
return new e(
|
|
787
|
+
return new e(Fn(this.value));
|
|
788
788
|
}, e.floor = function(t) {
|
|
789
789
|
return t = e.validate(t), t.indexOf(".") === -1 ? t : e.round(t, 0, F.FLOOR);
|
|
790
790
|
}, e.prototype.floor = function() {
|
|
@@ -798,29 +798,29 @@ var yi = (
|
|
|
798
798
|
}, e.prototype.add = function(t) {
|
|
799
799
|
return new e(Pt(this.value, t.getValue()));
|
|
800
800
|
}, e.subtract = function(t, n) {
|
|
801
|
-
return t = e.validate(t), n = e.validate(n),
|
|
801
|
+
return t = e.validate(t), n = e.validate(n), gn(t, n);
|
|
802
802
|
}, e.prototype.subtract = function(t) {
|
|
803
|
-
return new e(
|
|
803
|
+
return new e(gn(this.value, t.getValue()));
|
|
804
804
|
}, e.multiply = function(t, n) {
|
|
805
|
-
return t = e.validate(t), n = e.validate(n),
|
|
805
|
+
return t = e.validate(t), n = e.validate(n), fn(t, n);
|
|
806
806
|
}, e.prototype.multiply = function(t) {
|
|
807
|
-
return new e(
|
|
807
|
+
return new e(fn(this.value, t.getValue()));
|
|
808
808
|
}, e.divide = function(t, n, r, i) {
|
|
809
|
-
return t = e.validate(t), n = e.validate(n),
|
|
809
|
+
return t = e.validate(t), n = e.validate(n), pn(t, n, r, i);
|
|
810
810
|
}, e.prototype.divide = function(t, n, r) {
|
|
811
|
-
return new e(
|
|
811
|
+
return new e(pn(this.value, t.getValue(), n, r));
|
|
812
812
|
}, e.modulus = function(t, n) {
|
|
813
|
-
return t = e.validate(t), n = e.validate(n),
|
|
813
|
+
return t = e.validate(t), n = e.validate(n), $n(t, n);
|
|
814
814
|
}, e.prototype.modulus = function(t) {
|
|
815
|
-
return new e(
|
|
815
|
+
return new e($n(this.value, t.getValue()));
|
|
816
816
|
}, e.compareTo = function(t, n) {
|
|
817
|
-
return t = e.validate(t), n = e.validate(n),
|
|
817
|
+
return t = e.validate(t), n = e.validate(n), Wn(t, n);
|
|
818
818
|
}, e.prototype.compareTo = function(t) {
|
|
819
|
-
return
|
|
819
|
+
return Wn(this.value, t.getValue());
|
|
820
820
|
}, e.negate = function(t) {
|
|
821
|
-
return t = e.validate(t),
|
|
821
|
+
return t = e.validate(t), dn(t);
|
|
822
822
|
}, e.prototype.negate = function() {
|
|
823
|
-
return new e(
|
|
823
|
+
return new e(dn(this.value));
|
|
824
824
|
}, e.stripTrailingZero = function(t) {
|
|
825
825
|
return t = e.validate(t), Pe(t);
|
|
826
826
|
}, e.prototype.stripTrailingZero = function() {
|
|
@@ -828,24 +828,24 @@ var yi = (
|
|
|
828
828
|
}, e.RoundingModes = F, e;
|
|
829
829
|
}()
|
|
830
830
|
);
|
|
831
|
-
const
|
|
832
|
-
function
|
|
831
|
+
const Xe = [];
|
|
832
|
+
function Ei(e, t) {
|
|
833
833
|
return {
|
|
834
|
-
subscribe:
|
|
834
|
+
subscribe: Vt(e, t).subscribe
|
|
835
835
|
};
|
|
836
836
|
}
|
|
837
|
-
function
|
|
837
|
+
function Vt(e, t = N) {
|
|
838
838
|
let n;
|
|
839
839
|
const r = /* @__PURE__ */ new Set();
|
|
840
840
|
function i(s) {
|
|
841
|
-
if (
|
|
842
|
-
const l = !
|
|
841
|
+
if (kt(e, s) && (e = s, n)) {
|
|
842
|
+
const l = !Xe.length;
|
|
843
843
|
for (const u of r)
|
|
844
|
-
u[1](),
|
|
844
|
+
u[1](), Xe.push(u, e);
|
|
845
845
|
if (l) {
|
|
846
|
-
for (let u = 0; u <
|
|
847
|
-
|
|
848
|
-
|
|
846
|
+
for (let u = 0; u < Xe.length; u += 2)
|
|
847
|
+
Xe[u][0](Xe[u + 1]);
|
|
848
|
+
Xe.length = 0;
|
|
849
849
|
}
|
|
850
850
|
}
|
|
851
851
|
}
|
|
@@ -860,12 +860,12 @@ function Mt(e, t = N) {
|
|
|
860
860
|
}
|
|
861
861
|
return { set: i, update: a, subscribe: o };
|
|
862
862
|
}
|
|
863
|
-
function
|
|
863
|
+
function nt(e, t, n) {
|
|
864
864
|
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
865
865
|
if (!i.every(Boolean))
|
|
866
866
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
867
867
|
const a = t.length < 2;
|
|
868
|
-
return
|
|
868
|
+
return Ei(n, (o, s) => {
|
|
869
869
|
let l = !1;
|
|
870
870
|
const u = [];
|
|
871
871
|
let c = 0, f = N;
|
|
@@ -874,9 +874,9 @@ function tt(e, t, n) {
|
|
|
874
874
|
return;
|
|
875
875
|
f();
|
|
876
876
|
const v = t(r ? u[0] : u, o, s);
|
|
877
|
-
a ? o(v) : f =
|
|
877
|
+
a ? o(v) : f = yt(v) ? v : N;
|
|
878
878
|
}, g = i.map(
|
|
879
|
-
(v, d) =>
|
|
879
|
+
(v, d) => _r(
|
|
880
880
|
v,
|
|
881
881
|
(_) => {
|
|
882
882
|
u[d] = _, c &= ~(1 << d), l && h();
|
|
@@ -887,126 +887,112 @@ function tt(e, t, n) {
|
|
|
887
887
|
)
|
|
888
888
|
);
|
|
889
889
|
return l = !0, h(), function() {
|
|
890
|
-
|
|
890
|
+
Te(g), f(), l = !1;
|
|
891
891
|
};
|
|
892
892
|
});
|
|
893
893
|
}
|
|
894
|
-
function
|
|
894
|
+
function _i(e) {
|
|
895
895
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
896
896
|
}
|
|
897
|
-
var
|
|
898
|
-
return
|
|
897
|
+
var xi = function(t) {
|
|
898
|
+
return wi(t) && !Ai(t);
|
|
899
899
|
};
|
|
900
|
-
function
|
|
900
|
+
function wi(e) {
|
|
901
901
|
return !!e && typeof e == "object";
|
|
902
902
|
}
|
|
903
|
-
function
|
|
903
|
+
function Ai(e) {
|
|
904
904
|
var t = Object.prototype.toString.call(e);
|
|
905
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
905
|
+
return t === "[object RegExp]" || t === "[object Date]" || Si(e);
|
|
906
906
|
}
|
|
907
|
-
var
|
|
908
|
-
function
|
|
909
|
-
return e.$$typeof ===
|
|
907
|
+
var Ci = typeof Symbol == "function" && Symbol.for, Ti = Ci ? Symbol.for("react.element") : 60103;
|
|
908
|
+
function Si(e) {
|
|
909
|
+
return e.$$typeof === Ti;
|
|
910
910
|
}
|
|
911
|
-
function
|
|
911
|
+
function Bi(e) {
|
|
912
912
|
return Array.isArray(e) ? [] : {};
|
|
913
913
|
}
|
|
914
|
-
function
|
|
915
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
914
|
+
function dt(e, t) {
|
|
915
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Ye(Bi(e), e, t) : e;
|
|
916
916
|
}
|
|
917
|
-
function
|
|
917
|
+
function Hi(e, t, n) {
|
|
918
918
|
return e.concat(t).map(function(r) {
|
|
919
|
-
return
|
|
919
|
+
return dt(r, n);
|
|
920
920
|
});
|
|
921
921
|
}
|
|
922
|
-
function
|
|
922
|
+
function Ii(e, t) {
|
|
923
923
|
if (!t.customMerge)
|
|
924
|
-
return
|
|
924
|
+
return Ye;
|
|
925
925
|
var n = t.customMerge(e);
|
|
926
|
-
return typeof n == "function" ? n :
|
|
926
|
+
return typeof n == "function" ? n : Ye;
|
|
927
927
|
}
|
|
928
|
-
function
|
|
928
|
+
function Li(e) {
|
|
929
929
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
930
930
|
return Object.propertyIsEnumerable.call(e, t);
|
|
931
931
|
}) : [];
|
|
932
932
|
}
|
|
933
|
-
function
|
|
934
|
-
return Object.keys(e).concat(
|
|
933
|
+
function Xn(e) {
|
|
934
|
+
return Object.keys(e).concat(Li(e));
|
|
935
935
|
}
|
|
936
|
-
function
|
|
936
|
+
function Sr(e, t) {
|
|
937
937
|
try {
|
|
938
938
|
return t in e;
|
|
939
939
|
} catch (n) {
|
|
940
940
|
return !1;
|
|
941
941
|
}
|
|
942
942
|
}
|
|
943
|
-
function
|
|
944
|
-
return
|
|
943
|
+
function Ni(e, t) {
|
|
944
|
+
return Sr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
945
945
|
}
|
|
946
|
-
function
|
|
946
|
+
function Oi(e, t, n) {
|
|
947
947
|
var r = {};
|
|
948
|
-
return n.isMergeableObject(e) &&
|
|
949
|
-
r[i] =
|
|
950
|
-
}),
|
|
951
|
-
|
|
948
|
+
return n.isMergeableObject(e) && Xn(e).forEach(function(i) {
|
|
949
|
+
r[i] = dt(e[i], n);
|
|
950
|
+
}), Xn(t).forEach(function(i) {
|
|
951
|
+
Ni(e, i) || (Sr(e, i) && n.isMergeableObject(t[i]) ? r[i] = Ii(i, n)(e[i], t[i], n) : r[i] = dt(t[i], n));
|
|
952
952
|
}), r;
|
|
953
953
|
}
|
|
954
|
-
function
|
|
955
|
-
n = n || {}, n.arrayMerge = n.arrayMerge ||
|
|
954
|
+
function Ye(e, t, n) {
|
|
955
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || Hi, n.isMergeableObject = n.isMergeableObject || xi, n.cloneUnlessOtherwiseSpecified = dt;
|
|
956
956
|
var r = Array.isArray(t), i = Array.isArray(e), a = r === i;
|
|
957
|
-
return a ? r ? n.arrayMerge(e, t, n) :
|
|
957
|
+
return a ? r ? n.arrayMerge(e, t, n) : Oi(e, t, n) : dt(t, n);
|
|
958
958
|
}
|
|
959
|
-
|
|
959
|
+
Ye.all = function(t, n) {
|
|
960
960
|
if (!Array.isArray(t))
|
|
961
961
|
throw new Error("first argument should be an array");
|
|
962
962
|
return t.reduce(function(r, i) {
|
|
963
|
-
return
|
|
963
|
+
return Ye(r, i, n);
|
|
964
964
|
}, {});
|
|
965
965
|
};
|
|
966
|
-
var
|
|
967
|
-
const
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
972
|
-
purpose with or without fee is hereby granted.
|
|
973
|
-
|
|
974
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
975
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
976
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
977
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
978
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
979
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
980
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
981
|
-
***************************************************************************** */
|
|
982
|
-
var gn = function(e, t) {
|
|
983
|
-
return gn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
966
|
+
var Pi = Ye, Ri = Pi;
|
|
967
|
+
const Di = /* @__PURE__ */ _i(Ri);
|
|
968
|
+
var mn = function(e, t) {
|
|
969
|
+
return mn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
984
970
|
n.__proto__ = r;
|
|
985
971
|
} || function(n, r) {
|
|
986
972
|
for (var i in r)
|
|
987
973
|
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
988
|
-
},
|
|
974
|
+
}, mn(e, t);
|
|
989
975
|
};
|
|
990
|
-
function
|
|
976
|
+
function Ut(e, t) {
|
|
991
977
|
if (typeof t != "function" && t !== null)
|
|
992
978
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
993
|
-
|
|
979
|
+
mn(e, t);
|
|
994
980
|
function n() {
|
|
995
981
|
this.constructor = e;
|
|
996
982
|
}
|
|
997
983
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
998
984
|
}
|
|
999
|
-
var
|
|
1000
|
-
return
|
|
985
|
+
var be = function() {
|
|
986
|
+
return be = Object.assign || function(t) {
|
|
1001
987
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
1002
988
|
n = arguments[r];
|
|
1003
989
|
for (var a in n)
|
|
1004
990
|
Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
|
|
1005
991
|
}
|
|
1006
992
|
return t;
|
|
1007
|
-
},
|
|
993
|
+
}, be.apply(this, arguments);
|
|
1008
994
|
};
|
|
1009
|
-
function
|
|
995
|
+
function Mi(e, t) {
|
|
1010
996
|
var n = {};
|
|
1011
997
|
for (var r in e)
|
|
1012
998
|
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
@@ -1015,43 +1001,43 @@ function Ri(e, t) {
|
|
|
1015
1001
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
1016
1002
|
return n;
|
|
1017
1003
|
}
|
|
1018
|
-
function
|
|
1019
|
-
if (arguments.length === 2)
|
|
1004
|
+
function Jt(e, t, n) {
|
|
1005
|
+
if (n || arguments.length === 2)
|
|
1020
1006
|
for (var r = 0, i = t.length, a; r < i; r++)
|
|
1021
1007
|
(a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
|
|
1022
|
-
return e.concat(a || t);
|
|
1008
|
+
return e.concat(a || Array.prototype.slice.call(t));
|
|
1023
1009
|
}
|
|
1024
|
-
function
|
|
1025
|
-
var n = t && t.cache ? t.cache :
|
|
1010
|
+
function en(e, t) {
|
|
1011
|
+
var n = t && t.cache ? t.cache : ji, r = t && t.serializer ? t.serializer : Gi, i = t && t.strategy ? t.strategy : Ui;
|
|
1026
1012
|
return i(e, {
|
|
1027
1013
|
cache: n,
|
|
1028
1014
|
serializer: r
|
|
1029
1015
|
});
|
|
1030
1016
|
}
|
|
1031
|
-
function
|
|
1017
|
+
function ki(e) {
|
|
1032
1018
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1033
1019
|
}
|
|
1034
|
-
function
|
|
1035
|
-
var i =
|
|
1020
|
+
function Vi(e, t, n, r) {
|
|
1021
|
+
var i = ki(r) ? r : n(r), a = t.get(i);
|
|
1036
1022
|
return typeof a == "undefined" && (a = e.call(this, r), t.set(i, a)), a;
|
|
1037
1023
|
}
|
|
1038
|
-
function
|
|
1024
|
+
function Br(e, t, n) {
|
|
1039
1025
|
var r = Array.prototype.slice.call(arguments, 3), i = n(r), a = t.get(i);
|
|
1040
1026
|
return typeof a == "undefined" && (a = e.apply(this, r), t.set(i, a)), a;
|
|
1041
1027
|
}
|
|
1042
|
-
function
|
|
1028
|
+
function Hr(e, t, n, r, i) {
|
|
1043
1029
|
return n.bind(t, e, r, i);
|
|
1044
1030
|
}
|
|
1045
|
-
function
|
|
1046
|
-
var n = e.length === 1 ?
|
|
1047
|
-
return
|
|
1031
|
+
function Ui(e, t) {
|
|
1032
|
+
var n = e.length === 1 ? Vi : Br;
|
|
1033
|
+
return Hr(e, this, n, t.cache.create(), t.serializer);
|
|
1048
1034
|
}
|
|
1049
|
-
function
|
|
1050
|
-
return
|
|
1035
|
+
function Fi(e, t) {
|
|
1036
|
+
return Hr(e, this, Br, t.cache.create(), t.serializer);
|
|
1051
1037
|
}
|
|
1052
|
-
var
|
|
1038
|
+
var Gi = function() {
|
|
1053
1039
|
return JSON.stringify(arguments);
|
|
1054
|
-
},
|
|
1040
|
+
}, $i = (
|
|
1055
1041
|
/** @class */
|
|
1056
1042
|
function() {
|
|
1057
1043
|
function e() {
|
|
@@ -1063,61 +1049,71 @@ var Ui = function() {
|
|
|
1063
1049
|
this.cache[t] = n;
|
|
1064
1050
|
}, e;
|
|
1065
1051
|
}()
|
|
1066
|
-
),
|
|
1052
|
+
), ji = {
|
|
1067
1053
|
create: function() {
|
|
1068
|
-
return new
|
|
1054
|
+
return new $i();
|
|
1069
1055
|
}
|
|
1070
|
-
},
|
|
1071
|
-
variadic:
|
|
1072
|
-
},
|
|
1056
|
+
}, tn = {
|
|
1057
|
+
variadic: Fi
|
|
1058
|
+
}, Rt = function() {
|
|
1059
|
+
return Rt = Object.assign || function(t) {
|
|
1060
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
1061
|
+
n = arguments[r];
|
|
1062
|
+
for (var a in n)
|
|
1063
|
+
Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
|
|
1064
|
+
}
|
|
1065
|
+
return t;
|
|
1066
|
+
}, Rt.apply(this, arguments);
|
|
1067
|
+
};
|
|
1068
|
+
var L;
|
|
1073
1069
|
(function(e) {
|
|
1074
1070
|
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";
|
|
1075
1071
|
})(L || (L = {}));
|
|
1076
|
-
var
|
|
1072
|
+
var V;
|
|
1077
1073
|
(function(e) {
|
|
1078
1074
|
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";
|
|
1079
|
-
})(
|
|
1080
|
-
var
|
|
1075
|
+
})(V || (V = {}));
|
|
1076
|
+
var Je;
|
|
1081
1077
|
(function(e) {
|
|
1082
1078
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1083
|
-
})(
|
|
1084
|
-
function
|
|
1085
|
-
return e.type ===
|
|
1086
|
-
}
|
|
1087
|
-
function $i(e) {
|
|
1088
|
-
return e.type === U.argument;
|
|
1089
|
-
}
|
|
1090
|
-
function Br(e) {
|
|
1091
|
-
return e.type === U.number;
|
|
1079
|
+
})(Je || (Je = {}));
|
|
1080
|
+
function zn(e) {
|
|
1081
|
+
return e.type === V.literal;
|
|
1092
1082
|
}
|
|
1093
|
-
function
|
|
1094
|
-
return e.type ===
|
|
1083
|
+
function Wi(e) {
|
|
1084
|
+
return e.type === V.argument;
|
|
1095
1085
|
}
|
|
1096
1086
|
function Ir(e) {
|
|
1097
|
-
return e.type ===
|
|
1087
|
+
return e.type === V.number;
|
|
1098
1088
|
}
|
|
1099
1089
|
function Lr(e) {
|
|
1100
|
-
return e.type ===
|
|
1090
|
+
return e.type === V.date;
|
|
1101
1091
|
}
|
|
1102
1092
|
function Nr(e) {
|
|
1103
|
-
return e.type ===
|
|
1093
|
+
return e.type === V.time;
|
|
1104
1094
|
}
|
|
1105
|
-
function
|
|
1106
|
-
return e.type ===
|
|
1095
|
+
function Or(e) {
|
|
1096
|
+
return e.type === V.select;
|
|
1107
1097
|
}
|
|
1108
1098
|
function Pr(e) {
|
|
1109
|
-
return e.type ===
|
|
1099
|
+
return e.type === V.plural;
|
|
1110
1100
|
}
|
|
1111
|
-
function
|
|
1112
|
-
return
|
|
1101
|
+
function Xi(e) {
|
|
1102
|
+
return e.type === V.pound;
|
|
1113
1103
|
}
|
|
1114
|
-
function
|
|
1115
|
-
return
|
|
1104
|
+
function Rr(e) {
|
|
1105
|
+
return e.type === V.tag;
|
|
1116
1106
|
}
|
|
1117
|
-
|
|
1118
|
-
|
|
1107
|
+
function Dr(e) {
|
|
1108
|
+
return !!(e && typeof e == "object" && e.type === Je.number);
|
|
1109
|
+
}
|
|
1110
|
+
function yn(e) {
|
|
1111
|
+
return !!(e && typeof e == "object" && e.type === Je.dateTime);
|
|
1112
|
+
}
|
|
1113
|
+
var Mr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, zi = /(?:[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;
|
|
1114
|
+
function Zi(e) {
|
|
1119
1115
|
var t = {};
|
|
1120
|
-
return e.replace(
|
|
1116
|
+
return e.replace(zi, function(n) {
|
|
1121
1117
|
var r = n.length;
|
|
1122
1118
|
switch (n[0]) {
|
|
1123
1119
|
case "G":
|
|
@@ -1206,11 +1202,21 @@ function Xi(e) {
|
|
|
1206
1202
|
return "";
|
|
1207
1203
|
}), t;
|
|
1208
1204
|
}
|
|
1209
|
-
var
|
|
1210
|
-
function
|
|
1205
|
+
var U = function() {
|
|
1206
|
+
return U = Object.assign || function(t) {
|
|
1207
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
1208
|
+
n = arguments[r];
|
|
1209
|
+
for (var a in n)
|
|
1210
|
+
Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
|
|
1211
|
+
}
|
|
1212
|
+
return t;
|
|
1213
|
+
}, U.apply(this, arguments);
|
|
1214
|
+
};
|
|
1215
|
+
var qi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1216
|
+
function Ki(e) {
|
|
1211
1217
|
if (e.length === 0)
|
|
1212
1218
|
throw new Error("Number skeleton cannot be empty");
|
|
1213
|
-
for (var t = e.split(
|
|
1219
|
+
for (var t = e.split(qi).filter(function(h) {
|
|
1214
1220
|
return h.length > 0;
|
|
1215
1221
|
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
1216
1222
|
var a = i[r], o = a.split("/");
|
|
@@ -1225,17 +1231,17 @@ function Zi(e) {
|
|
|
1225
1231
|
}
|
|
1226
1232
|
return n;
|
|
1227
1233
|
}
|
|
1228
|
-
function
|
|
1234
|
+
function Qi(e) {
|
|
1229
1235
|
return e.replace(/^(.*?)-/, "");
|
|
1230
1236
|
}
|
|
1231
|
-
var
|
|
1232
|
-
function
|
|
1237
|
+
var Zn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, kr = /^(@+)?(\+|#+)?[rs]?$/g, Yi = /(\*)(0+)|(#+)(0+)|(0+)/g, Vr = /^(0+)$/;
|
|
1238
|
+
function qn(e) {
|
|
1233
1239
|
var t = {};
|
|
1234
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1240
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(kr, function(n, r, i) {
|
|
1235
1241
|
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)), "";
|
|
1236
1242
|
}), t;
|
|
1237
1243
|
}
|
|
1238
|
-
function
|
|
1244
|
+
function Ur(e) {
|
|
1239
1245
|
switch (e) {
|
|
1240
1246
|
case "sign-auto":
|
|
1241
1247
|
return {
|
|
@@ -1275,7 +1281,7 @@ function kr(e) {
|
|
|
1275
1281
|
};
|
|
1276
1282
|
}
|
|
1277
1283
|
}
|
|
1278
|
-
function
|
|
1284
|
+
function Ji(e) {
|
|
1279
1285
|
var t;
|
|
1280
1286
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1281
1287
|
notation: "engineering"
|
|
@@ -1283,17 +1289,17 @@ function Qi(e) {
|
|
|
1283
1289
|
notation: "scientific"
|
|
1284
1290
|
}, e = e.slice(1)), t) {
|
|
1285
1291
|
var n = e.slice(0, 2);
|
|
1286
|
-
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1292
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Vr.test(e))
|
|
1287
1293
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1288
1294
|
t.minimumIntegerDigits = e.length;
|
|
1289
1295
|
}
|
|
1290
1296
|
return t;
|
|
1291
1297
|
}
|
|
1292
|
-
function
|
|
1293
|
-
var t = {}, n =
|
|
1298
|
+
function Kn(e) {
|
|
1299
|
+
var t = {}, n = Ur(e);
|
|
1294
1300
|
return n || t;
|
|
1295
1301
|
}
|
|
1296
|
-
function
|
|
1302
|
+
function ea(e) {
|
|
1297
1303
|
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
1298
1304
|
var i = r[n];
|
|
1299
1305
|
switch (i.stem) {
|
|
@@ -1317,7 +1323,7 @@ function Yi(e) {
|
|
|
1317
1323
|
continue;
|
|
1318
1324
|
case "measure-unit":
|
|
1319
1325
|
case "unit":
|
|
1320
|
-
t.style = "unit", t.unit =
|
|
1326
|
+
t.style = "unit", t.unit = Qi(i.options[0]);
|
|
1321
1327
|
continue;
|
|
1322
1328
|
case "compact-short":
|
|
1323
1329
|
case "K":
|
|
@@ -1328,13 +1334,13 @@ function Yi(e) {
|
|
|
1328
1334
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1329
1335
|
continue;
|
|
1330
1336
|
case "scientific":
|
|
1331
|
-
t =
|
|
1332
|
-
return
|
|
1337
|
+
t = U(U(U({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1338
|
+
return U(U({}, l), Kn(u));
|
|
1333
1339
|
}, {}));
|
|
1334
1340
|
continue;
|
|
1335
1341
|
case "engineering":
|
|
1336
|
-
t =
|
|
1337
|
-
return
|
|
1342
|
+
t = U(U(U({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1343
|
+
return U(U({}, l), Kn(u));
|
|
1338
1344
|
}, {}));
|
|
1339
1345
|
continue;
|
|
1340
1346
|
case "notation-simple":
|
|
@@ -1379,7 +1385,7 @@ function Yi(e) {
|
|
|
1379
1385
|
case "integer-width":
|
|
1380
1386
|
if (i.options.length > 1)
|
|
1381
1387
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1382
|
-
i.options[0].replace(
|
|
1388
|
+
i.options[0].replace(Yi, function(l, u, c, f, h, g) {
|
|
1383
1389
|
if (u)
|
|
1384
1390
|
t.minimumIntegerDigits = c.length;
|
|
1385
1391
|
else {
|
|
@@ -1392,32 +1398,32 @@ function Yi(e) {
|
|
|
1392
1398
|
});
|
|
1393
1399
|
continue;
|
|
1394
1400
|
}
|
|
1395
|
-
if (
|
|
1401
|
+
if (Vr.test(i.stem)) {
|
|
1396
1402
|
t.minimumIntegerDigits = i.stem.length;
|
|
1397
1403
|
continue;
|
|
1398
1404
|
}
|
|
1399
|
-
if (
|
|
1405
|
+
if (Zn.test(i.stem)) {
|
|
1400
1406
|
if (i.options.length > 1)
|
|
1401
1407
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1402
|
-
i.stem.replace(
|
|
1408
|
+
i.stem.replace(Zn, function(l, u, c, f, h, g) {
|
|
1403
1409
|
return c === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : h && g ? (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length + g.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1404
1410
|
});
|
|
1405
1411
|
var a = i.options[0];
|
|
1406
|
-
a === "w" ? t =
|
|
1412
|
+
a === "w" ? t = U(U({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = U(U({}, t), qn(a)));
|
|
1407
1413
|
continue;
|
|
1408
1414
|
}
|
|
1409
|
-
if (
|
|
1410
|
-
t =
|
|
1415
|
+
if (kr.test(i.stem)) {
|
|
1416
|
+
t = U(U({}, t), qn(i.stem));
|
|
1411
1417
|
continue;
|
|
1412
1418
|
}
|
|
1413
|
-
var o =
|
|
1414
|
-
o && (t =
|
|
1415
|
-
var s =
|
|
1416
|
-
s && (t =
|
|
1419
|
+
var o = Ur(i.stem);
|
|
1420
|
+
o && (t = U(U({}, t), o));
|
|
1421
|
+
var s = Ji(i.stem);
|
|
1422
|
+
s && (t = U(U({}, t), s));
|
|
1417
1423
|
}
|
|
1418
1424
|
return t;
|
|
1419
1425
|
}
|
|
1420
|
-
var
|
|
1426
|
+
var Tt = {
|
|
1421
1427
|
"001": [
|
|
1422
1428
|
"H",
|
|
1423
1429
|
"h"
|
|
@@ -2832,13 +2838,13 @@ var Ct = {
|
|
|
2832
2838
|
"h"
|
|
2833
2839
|
]
|
|
2834
2840
|
};
|
|
2835
|
-
function
|
|
2841
|
+
function ta(e, t) {
|
|
2836
2842
|
for (var n = "", r = 0; r < e.length; r++) {
|
|
2837
2843
|
var i = e.charAt(r);
|
|
2838
2844
|
if (i === "j") {
|
|
2839
2845
|
for (var a = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2840
2846
|
a++, r++;
|
|
2841
|
-
var o = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), l = "a", u =
|
|
2847
|
+
var o = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), l = "a", u = na(t);
|
|
2842
2848
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2843
2849
|
n += l;
|
|
2844
2850
|
for (; o-- > 0; )
|
|
@@ -2848,7 +2854,7 @@ function Ji(e, t) {
|
|
|
2848
2854
|
}
|
|
2849
2855
|
return n;
|
|
2850
2856
|
}
|
|
2851
|
-
function
|
|
2857
|
+
function na(e) {
|
|
2852
2858
|
var t = e.hourCycle;
|
|
2853
2859
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2854
2860
|
e.hourCycles && // @ts-ignore
|
|
@@ -2867,23 +2873,23 @@ function ea(e) {
|
|
|
2867
2873
|
}
|
|
2868
2874
|
var n = e.language, r;
|
|
2869
2875
|
n !== "root" && (r = e.maximize().region);
|
|
2870
|
-
var i =
|
|
2876
|
+
var i = Tt[r || ""] || Tt[n || ""] || Tt["".concat(n, "-001")] || Tt["001"];
|
|
2871
2877
|
return i[0];
|
|
2872
2878
|
}
|
|
2873
|
-
var
|
|
2874
|
-
function
|
|
2879
|
+
var nn, ra = new RegExp("^".concat(Mr.source, "*")), ia = new RegExp("".concat(Mr.source, "*$"));
|
|
2880
|
+
function O(e, t) {
|
|
2875
2881
|
return { start: e, end: t };
|
|
2876
2882
|
}
|
|
2877
|
-
var
|
|
2883
|
+
var aa = !!String.prototype.startsWith && "_a".startsWith("a", 1), oa = !!String.fromCodePoint, sa = !!Object.fromEntries, la = !!String.prototype.codePointAt, ua = !!String.prototype.trimStart, ca = !!String.prototype.trimEnd, ha = !!Number.isSafeInteger, fa = ha ? Number.isSafeInteger : function(e) {
|
|
2878
2884
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2879
|
-
},
|
|
2885
|
+
}, bn = !0;
|
|
2880
2886
|
try {
|
|
2881
|
-
var
|
|
2882
|
-
|
|
2887
|
+
var pa = Gr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2888
|
+
bn = ((nn = pa.exec("a")) === null || nn === void 0 ? void 0 : nn[0]) === "a";
|
|
2883
2889
|
} catch (e) {
|
|
2884
|
-
|
|
2890
|
+
bn = !1;
|
|
2885
2891
|
}
|
|
2886
|
-
var
|
|
2892
|
+
var Qn = aa ? (
|
|
2887
2893
|
// Native
|
|
2888
2894
|
function(t, n, r) {
|
|
2889
2895
|
return t.startsWith(n, r);
|
|
@@ -2893,7 +2899,7 @@ var qn = ra ? (
|
|
|
2893
2899
|
function(t, n, r) {
|
|
2894
2900
|
return t.slice(r, r + n.length) === n;
|
|
2895
2901
|
}
|
|
2896
|
-
),
|
|
2902
|
+
), vn = oa ? String.fromCodePoint : (
|
|
2897
2903
|
// IE11
|
|
2898
2904
|
function() {
|
|
2899
2905
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
@@ -2905,9 +2911,9 @@ var qn = ra ? (
|
|
|
2905
2911
|
}
|
|
2906
2912
|
return r;
|
|
2907
2913
|
}
|
|
2908
|
-
),
|
|
2914
|
+
), Yn = (
|
|
2909
2915
|
// native
|
|
2910
|
-
|
|
2916
|
+
sa ? Object.fromEntries : (
|
|
2911
2917
|
// Ponyfill
|
|
2912
2918
|
function(t) {
|
|
2913
2919
|
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
@@ -2917,7 +2923,7 @@ var qn = ra ? (
|
|
|
2917
2923
|
return n;
|
|
2918
2924
|
}
|
|
2919
2925
|
)
|
|
2920
|
-
),
|
|
2926
|
+
), Fr = la ? (
|
|
2921
2927
|
// Native
|
|
2922
2928
|
function(t, n) {
|
|
2923
2929
|
return t.codePointAt(n);
|
|
@@ -2931,7 +2937,7 @@ var qn = ra ? (
|
|
|
2931
2937
|
return i < 55296 || i > 56319 || n + 1 === r || (a = t.charCodeAt(n + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
|
|
2932
2938
|
}
|
|
2933
2939
|
}
|
|
2934
|
-
),
|
|
2940
|
+
), ga = ua ? (
|
|
2935
2941
|
// Native
|
|
2936
2942
|
function(t) {
|
|
2937
2943
|
return t.trimStart();
|
|
@@ -2939,9 +2945,9 @@ var qn = ra ? (
|
|
|
2939
2945
|
) : (
|
|
2940
2946
|
// Ponyfill
|
|
2941
2947
|
function(t) {
|
|
2942
|
-
return t.replace(
|
|
2948
|
+
return t.replace(ra, "");
|
|
2943
2949
|
}
|
|
2944
|
-
),
|
|
2950
|
+
), da = ca ? (
|
|
2945
2951
|
// Native
|
|
2946
2952
|
function(t) {
|
|
2947
2953
|
return t.trimEnd();
|
|
@@ -2949,32 +2955,32 @@ var qn = ra ? (
|
|
|
2949
2955
|
) : (
|
|
2950
2956
|
// Ponyfill
|
|
2951
2957
|
function(t) {
|
|
2952
|
-
return t.replace(
|
|
2958
|
+
return t.replace(ia, "");
|
|
2953
2959
|
}
|
|
2954
2960
|
);
|
|
2955
|
-
function
|
|
2961
|
+
function Gr(e, t) {
|
|
2956
2962
|
return new RegExp(e, t);
|
|
2957
2963
|
}
|
|
2958
|
-
var
|
|
2959
|
-
if (
|
|
2960
|
-
var
|
|
2961
|
-
|
|
2964
|
+
var En;
|
|
2965
|
+
if (bn) {
|
|
2966
|
+
var Jn = Gr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2967
|
+
En = function(t, n) {
|
|
2962
2968
|
var r;
|
|
2963
|
-
|
|
2964
|
-
var i =
|
|
2969
|
+
Jn.lastIndex = n;
|
|
2970
|
+
var i = Jn.exec(t);
|
|
2965
2971
|
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2966
2972
|
};
|
|
2967
2973
|
} else
|
|
2968
|
-
|
|
2974
|
+
En = function(t, n) {
|
|
2969
2975
|
for (var r = []; ; ) {
|
|
2970
|
-
var i =
|
|
2971
|
-
if (i === void 0 ||
|
|
2976
|
+
var i = Fr(t, n);
|
|
2977
|
+
if (i === void 0 || $r(i) || va(i))
|
|
2972
2978
|
break;
|
|
2973
2979
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2974
2980
|
}
|
|
2975
|
-
return
|
|
2981
|
+
return vn.apply(void 0, r);
|
|
2976
2982
|
};
|
|
2977
|
-
var
|
|
2983
|
+
var ma = (
|
|
2978
2984
|
/** @class */
|
|
2979
2985
|
function() {
|
|
2980
2986
|
function e(t, n) {
|
|
@@ -2998,14 +3004,14 @@ var ga = (
|
|
|
2998
3004
|
if (a === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2999
3005
|
var s = this.clonePosition();
|
|
3000
3006
|
this.bump(), i.push({
|
|
3001
|
-
type:
|
|
3002
|
-
location:
|
|
3007
|
+
type: V.pound,
|
|
3008
|
+
location: O(s, this.clonePosition())
|
|
3003
3009
|
});
|
|
3004
3010
|
} else if (a === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3005
3011
|
if (r)
|
|
3006
3012
|
break;
|
|
3007
|
-
return this.error(L.UNMATCHED_CLOSING_TAG,
|
|
3008
|
-
} else if (a === 60 && !this.ignoreTag &&
|
|
3013
|
+
return this.error(L.UNMATCHED_CLOSING_TAG, O(this.clonePosition(), this.clonePosition()));
|
|
3014
|
+
} else if (a === 60 && !this.ignoreTag && _n(this.peek() || 0)) {
|
|
3009
3015
|
var o = this.parseTag(t, n);
|
|
3010
3016
|
if (o.err)
|
|
3011
3017
|
return o;
|
|
@@ -3026,9 +3032,9 @@ var ga = (
|
|
|
3026
3032
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3027
3033
|
return {
|
|
3028
3034
|
val: {
|
|
3029
|
-
type:
|
|
3035
|
+
type: V.literal,
|
|
3030
3036
|
value: "<".concat(i, "/>"),
|
|
3031
|
-
location:
|
|
3037
|
+
location: O(r, this.clonePosition())
|
|
3032
3038
|
},
|
|
3033
3039
|
err: null
|
|
3034
3040
|
};
|
|
@@ -3038,25 +3044,25 @@ var ga = (
|
|
|
3038
3044
|
return a;
|
|
3039
3045
|
var o = a.val, s = this.clonePosition();
|
|
3040
3046
|
if (this.bumpIf("</")) {
|
|
3041
|
-
if (this.isEOF() || !
|
|
3042
|
-
return this.error(L.INVALID_TAG,
|
|
3047
|
+
if (this.isEOF() || !_n(this.char()))
|
|
3048
|
+
return this.error(L.INVALID_TAG, O(s, this.clonePosition()));
|
|
3043
3049
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3044
|
-
return i !== u ? this.error(L.UNMATCHED_CLOSING_TAG,
|
|
3050
|
+
return i !== u ? this.error(L.UNMATCHED_CLOSING_TAG, O(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3045
3051
|
val: {
|
|
3046
|
-
type:
|
|
3052
|
+
type: V.tag,
|
|
3047
3053
|
value: i,
|
|
3048
3054
|
children: o,
|
|
3049
|
-
location:
|
|
3055
|
+
location: O(r, this.clonePosition())
|
|
3050
3056
|
},
|
|
3051
3057
|
err: null
|
|
3052
|
-
} : this.error(L.INVALID_TAG,
|
|
3058
|
+
} : this.error(L.INVALID_TAG, O(s, this.clonePosition())));
|
|
3053
3059
|
} else
|
|
3054
|
-
return this.error(L.UNCLOSED_TAG,
|
|
3060
|
+
return this.error(L.UNCLOSED_TAG, O(r, this.clonePosition()));
|
|
3055
3061
|
} else
|
|
3056
|
-
return this.error(L.INVALID_TAG,
|
|
3062
|
+
return this.error(L.INVALID_TAG, O(r, this.clonePosition()));
|
|
3057
3063
|
}, e.prototype.parseTagName = function() {
|
|
3058
3064
|
var t = this.offset();
|
|
3059
|
-
for (this.bump(); !this.isEOF() &&
|
|
3065
|
+
for (this.bump(); !this.isEOF() && ba(this.char()); )
|
|
3060
3066
|
this.bump();
|
|
3061
3067
|
return this.message.slice(t, this.offset());
|
|
3062
3068
|
}, e.prototype.parseLiteral = function(t, n) {
|
|
@@ -3078,14 +3084,14 @@ var ga = (
|
|
|
3078
3084
|
}
|
|
3079
3085
|
break;
|
|
3080
3086
|
}
|
|
3081
|
-
var l =
|
|
3087
|
+
var l = O(r, this.clonePosition());
|
|
3082
3088
|
return {
|
|
3083
|
-
val: { type:
|
|
3089
|
+
val: { type: V.literal, value: i, location: l },
|
|
3084
3090
|
err: null
|
|
3085
3091
|
};
|
|
3086
3092
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3087
3093
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3088
|
-
!
|
|
3094
|
+
!ya(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3089
3095
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3090
3096
|
if (this.isEOF() || this.char() !== 39)
|
|
3091
3097
|
return null;
|
|
@@ -3119,49 +3125,49 @@ var ga = (
|
|
|
3119
3125
|
n.push(r);
|
|
3120
3126
|
this.bump();
|
|
3121
3127
|
}
|
|
3122
|
-
return
|
|
3128
|
+
return vn.apply(void 0, n);
|
|
3123
3129
|
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
3124
3130
|
if (this.isEOF())
|
|
3125
3131
|
return null;
|
|
3126
3132
|
var r = this.char();
|
|
3127
|
-
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(),
|
|
3133
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), vn(r));
|
|
3128
3134
|
}, e.prototype.parseArgument = function(t, n) {
|
|
3129
3135
|
var r = this.clonePosition();
|
|
3130
3136
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3131
|
-
return this.error(L.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3137
|
+
return this.error(L.EXPECT_ARGUMENT_CLOSING_BRACE, O(r, this.clonePosition()));
|
|
3132
3138
|
if (this.char() === 125)
|
|
3133
|
-
return this.bump(), this.error(L.EMPTY_ARGUMENT,
|
|
3139
|
+
return this.bump(), this.error(L.EMPTY_ARGUMENT, O(r, this.clonePosition()));
|
|
3134
3140
|
var i = this.parseIdentifierIfPossible().value;
|
|
3135
3141
|
if (!i)
|
|
3136
|
-
return this.error(L.MALFORMED_ARGUMENT,
|
|
3142
|
+
return this.error(L.MALFORMED_ARGUMENT, O(r, this.clonePosition()));
|
|
3137
3143
|
if (this.bumpSpace(), this.isEOF())
|
|
3138
|
-
return this.error(L.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3144
|
+
return this.error(L.EXPECT_ARGUMENT_CLOSING_BRACE, O(r, this.clonePosition()));
|
|
3139
3145
|
switch (this.char()) {
|
|
3140
3146
|
case 125:
|
|
3141
3147
|
return this.bump(), {
|
|
3142
3148
|
val: {
|
|
3143
|
-
type:
|
|
3149
|
+
type: V.argument,
|
|
3144
3150
|
// value does not include the opening and closing braces.
|
|
3145
3151
|
value: i,
|
|
3146
|
-
location:
|
|
3152
|
+
location: O(r, this.clonePosition())
|
|
3147
3153
|
},
|
|
3148
3154
|
err: null
|
|
3149
3155
|
};
|
|
3150
3156
|
case 44:
|
|
3151
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(L.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3157
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(L.EXPECT_ARGUMENT_CLOSING_BRACE, O(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
|
|
3152
3158
|
default:
|
|
3153
|
-
return this.error(L.MALFORMED_ARGUMENT,
|
|
3159
|
+
return this.error(L.MALFORMED_ARGUMENT, O(r, this.clonePosition()));
|
|
3154
3160
|
}
|
|
3155
3161
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3156
|
-
var t = this.clonePosition(), n = this.offset(), r =
|
|
3162
|
+
var t = this.clonePosition(), n = this.offset(), r = En(this.message, n), i = n + r.length;
|
|
3157
3163
|
this.bumpTo(i);
|
|
3158
|
-
var a = this.clonePosition(), o =
|
|
3164
|
+
var a = this.clonePosition(), o = O(t, a);
|
|
3159
3165
|
return { value: r, location: o };
|
|
3160
3166
|
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
3161
3167
|
var a, o = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3162
3168
|
switch (s) {
|
|
3163
3169
|
case "":
|
|
3164
|
-
return this.error(L.EXPECT_ARGUMENT_TYPE,
|
|
3170
|
+
return this.error(L.EXPECT_ARGUMENT_TYPE, O(o, l));
|
|
3165
3171
|
case "number":
|
|
3166
3172
|
case "date":
|
|
3167
3173
|
case "time": {
|
|
@@ -3172,44 +3178,44 @@ var ga = (
|
|
|
3172
3178
|
var c = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3173
3179
|
if (f.err)
|
|
3174
3180
|
return f;
|
|
3175
|
-
var h =
|
|
3181
|
+
var h = da(f.val);
|
|
3176
3182
|
if (h.length === 0)
|
|
3177
|
-
return this.error(L.EXPECT_ARGUMENT_STYLE,
|
|
3178
|
-
var g =
|
|
3183
|
+
return this.error(L.EXPECT_ARGUMENT_STYLE, O(this.clonePosition(), this.clonePosition()));
|
|
3184
|
+
var g = O(c, this.clonePosition());
|
|
3179
3185
|
u = { style: h, styleLocation: g };
|
|
3180
3186
|
}
|
|
3181
3187
|
var v = this.tryParseArgumentClose(i);
|
|
3182
3188
|
if (v.err)
|
|
3183
3189
|
return v;
|
|
3184
|
-
var d =
|
|
3185
|
-
if (u &&
|
|
3186
|
-
var _ =
|
|
3190
|
+
var d = O(i, this.clonePosition());
|
|
3191
|
+
if (u && Qn(u == null ? void 0 : u.style, "::", 0)) {
|
|
3192
|
+
var _ = ga(u.style.slice(2));
|
|
3187
3193
|
if (s === "number") {
|
|
3188
3194
|
var f = this.parseNumberSkeletonFromString(_, u.styleLocation);
|
|
3189
3195
|
return f.err ? f : {
|
|
3190
|
-
val: { type:
|
|
3196
|
+
val: { type: V.number, value: r, location: d, style: f.val },
|
|
3191
3197
|
err: null
|
|
3192
3198
|
};
|
|
3193
3199
|
} else {
|
|
3194
3200
|
if (_.length === 0)
|
|
3195
3201
|
return this.error(L.EXPECT_DATE_TIME_SKELETON, d);
|
|
3196
3202
|
var C = _;
|
|
3197
|
-
this.locale && (C =
|
|
3203
|
+
this.locale && (C = ta(_, this.locale));
|
|
3198
3204
|
var h = {
|
|
3199
|
-
type:
|
|
3205
|
+
type: Je.dateTime,
|
|
3200
3206
|
pattern: C,
|
|
3201
3207
|
location: u.styleLocation,
|
|
3202
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3203
|
-
},
|
|
3208
|
+
parsedOptions: this.shouldParseSkeletons ? Zi(C) : {}
|
|
3209
|
+
}, P = s === "date" ? V.date : V.time;
|
|
3204
3210
|
return {
|
|
3205
|
-
val: { type:
|
|
3211
|
+
val: { type: P, value: r, location: d, style: h },
|
|
3206
3212
|
err: null
|
|
3207
3213
|
};
|
|
3208
3214
|
}
|
|
3209
3215
|
}
|
|
3210
3216
|
return {
|
|
3211
3217
|
val: {
|
|
3212
|
-
type: s === "number" ?
|
|
3218
|
+
type: s === "number" ? V.number : s === "date" ? V.date : V.time,
|
|
3213
3219
|
value: r,
|
|
3214
3220
|
location: d,
|
|
3215
3221
|
style: (a = u == null ? void 0 : u.style) !== null && a !== void 0 ? a : null
|
|
@@ -3222,50 +3228,50 @@ var ga = (
|
|
|
3222
3228
|
case "select": {
|
|
3223
3229
|
var b = this.clonePosition();
|
|
3224
3230
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3225
|
-
return this.error(L.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
3231
|
+
return this.error(L.EXPECT_SELECT_ARGUMENT_OPTIONS, O(b, Rt({}, b)));
|
|
3226
3232
|
this.bumpSpace();
|
|
3227
|
-
var
|
|
3228
|
-
if (s !== "select" &&
|
|
3233
|
+
var D = this.parseIdentifierIfPossible(), M = 0;
|
|
3234
|
+
if (s !== "select" && D.value === "offset") {
|
|
3229
3235
|
if (!this.bumpIf(":"))
|
|
3230
|
-
return this.error(L.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
3236
|
+
return this.error(L.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O(this.clonePosition(), this.clonePosition()));
|
|
3231
3237
|
this.bumpSpace();
|
|
3232
3238
|
var f = this.tryParseDecimalInteger(L.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, L.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3233
3239
|
if (f.err)
|
|
3234
3240
|
return f;
|
|
3235
|
-
this.bumpSpace(),
|
|
3241
|
+
this.bumpSpace(), D = this.parseIdentifierIfPossible(), M = f.val;
|
|
3236
3242
|
}
|
|
3237
|
-
var X = this.tryParsePluralOrSelectOptions(t, s, n,
|
|
3243
|
+
var X = this.tryParsePluralOrSelectOptions(t, s, n, D);
|
|
3238
3244
|
if (X.err)
|
|
3239
3245
|
return X;
|
|
3240
3246
|
var v = this.tryParseArgumentClose(i);
|
|
3241
3247
|
if (v.err)
|
|
3242
3248
|
return v;
|
|
3243
|
-
var
|
|
3249
|
+
var ve = O(i, this.clonePosition());
|
|
3244
3250
|
return s === "select" ? {
|
|
3245
3251
|
val: {
|
|
3246
|
-
type:
|
|
3252
|
+
type: V.select,
|
|
3247
3253
|
value: r,
|
|
3248
|
-
options:
|
|
3249
|
-
location:
|
|
3254
|
+
options: Yn(X.val),
|
|
3255
|
+
location: ve
|
|
3250
3256
|
},
|
|
3251
3257
|
err: null
|
|
3252
3258
|
} : {
|
|
3253
3259
|
val: {
|
|
3254
|
-
type:
|
|
3260
|
+
type: V.plural,
|
|
3255
3261
|
value: r,
|
|
3256
|
-
options:
|
|
3257
|
-
offset:
|
|
3262
|
+
options: Yn(X.val),
|
|
3263
|
+
offset: M,
|
|
3258
3264
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3259
|
-
location:
|
|
3265
|
+
location: ve
|
|
3260
3266
|
},
|
|
3261
3267
|
err: null
|
|
3262
3268
|
};
|
|
3263
3269
|
}
|
|
3264
3270
|
default:
|
|
3265
|
-
return this.error(L.INVALID_ARGUMENT_TYPE,
|
|
3271
|
+
return this.error(L.INVALID_ARGUMENT_TYPE, O(o, l));
|
|
3266
3272
|
}
|
|
3267
3273
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3268
|
-
return this.isEOF() || this.char() !== 125 ? this.error(L.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3274
|
+
return this.isEOF() || this.char() !== 125 ? this.error(L.EXPECT_ARGUMENT_CLOSING_BRACE, O(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3269
3275
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3270
3276
|
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
|
|
3271
3277
|
var r = this.char();
|
|
@@ -3274,7 +3280,7 @@ var ga = (
|
|
|
3274
3280
|
this.bump();
|
|
3275
3281
|
var i = this.clonePosition();
|
|
3276
3282
|
if (!this.bumpUntil("'"))
|
|
3277
|
-
return this.error(L.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
3283
|
+
return this.error(L.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, O(i, this.clonePosition()));
|
|
3278
3284
|
this.bump();
|
|
3279
3285
|
break;
|
|
3280
3286
|
}
|
|
@@ -3304,16 +3310,16 @@ var ga = (
|
|
|
3304
3310
|
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
3305
3311
|
var r = [];
|
|
3306
3312
|
try {
|
|
3307
|
-
r =
|
|
3313
|
+
r = Ki(t);
|
|
3308
3314
|
} catch (i) {
|
|
3309
3315
|
return this.error(L.INVALID_NUMBER_SKELETON, n);
|
|
3310
3316
|
}
|
|
3311
3317
|
return {
|
|
3312
3318
|
val: {
|
|
3313
|
-
type:
|
|
3319
|
+
type: Je.number,
|
|
3314
3320
|
tokens: r,
|
|
3315
3321
|
location: n,
|
|
3316
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3322
|
+
parsedOptions: this.shouldParseSkeletons ? ea(r) : {}
|
|
3317
3323
|
},
|
|
3318
3324
|
err: null
|
|
3319
3325
|
};
|
|
@@ -3325,7 +3331,7 @@ var ga = (
|
|
|
3325
3331
|
var h = this.tryParseDecimalInteger(L.EXPECT_PLURAL_ARGUMENT_SELECTOR, L.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3326
3332
|
if (h.err)
|
|
3327
3333
|
return h;
|
|
3328
|
-
c =
|
|
3334
|
+
c = O(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
3329
3335
|
} else
|
|
3330
3336
|
break;
|
|
3331
3337
|
}
|
|
@@ -3334,7 +3340,7 @@ var ga = (
|
|
|
3334
3340
|
u === "other" && (o = !0), this.bumpSpace();
|
|
3335
3341
|
var g = this.clonePosition();
|
|
3336
3342
|
if (!this.bumpIf("{"))
|
|
3337
|
-
return this.error(n === "select" ? L.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : L.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
3343
|
+
return this.error(n === "select" ? L.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : L.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, O(this.clonePosition(), this.clonePosition()));
|
|
3338
3344
|
var v = this.parseMessage(t + 1, n, r);
|
|
3339
3345
|
if (v.err)
|
|
3340
3346
|
return v;
|
|
@@ -3345,11 +3351,11 @@ var ga = (
|
|
|
3345
3351
|
u,
|
|
3346
3352
|
{
|
|
3347
3353
|
value: v.val,
|
|
3348
|
-
location:
|
|
3354
|
+
location: O(g, this.clonePosition())
|
|
3349
3355
|
}
|
|
3350
3356
|
]), l.add(u), this.bumpSpace(), a = this.parseIdentifierIfPossible(), u = a.value, c = a.location;
|
|
3351
3357
|
}
|
|
3352
|
-
return s.length === 0 ? this.error(n === "select" ? L.EXPECT_SELECT_ARGUMENT_SELECTOR : L.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
3358
|
+
return s.length === 0 ? this.error(n === "select" ? L.EXPECT_SELECT_ARGUMENT_SELECTOR : L.EXPECT_PLURAL_ARGUMENT_SELECTOR, O(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(L.MISSING_OTHER_CLAUSE, O(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3353
3359
|
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
3354
3360
|
var r = 1, i = this.clonePosition();
|
|
3355
3361
|
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
@@ -3360,8 +3366,8 @@ var ga = (
|
|
|
3360
3366
|
else
|
|
3361
3367
|
break;
|
|
3362
3368
|
}
|
|
3363
|
-
var l =
|
|
3364
|
-
return a ? (o *= r,
|
|
3369
|
+
var l = O(i, this.clonePosition());
|
|
3370
|
+
return a ? (o *= r, fa(o) ? { val: o, err: null } : this.error(n, l)) : this.error(t, l);
|
|
3365
3371
|
}, e.prototype.offset = function() {
|
|
3366
3372
|
return this.position.offset;
|
|
3367
3373
|
}, e.prototype.isEOF = function() {
|
|
@@ -3376,7 +3382,7 @@ var ga = (
|
|
|
3376
3382
|
var t = this.position.offset;
|
|
3377
3383
|
if (t >= this.message.length)
|
|
3378
3384
|
throw Error("out of bound");
|
|
3379
|
-
var n =
|
|
3385
|
+
var n = Fr(this.message, t);
|
|
3380
3386
|
if (n === void 0)
|
|
3381
3387
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3382
3388
|
return n;
|
|
@@ -3395,7 +3401,7 @@ var ga = (
|
|
|
3395
3401
|
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);
|
|
3396
3402
|
}
|
|
3397
3403
|
}, e.prototype.bumpIf = function(t) {
|
|
3398
|
-
if (
|
|
3404
|
+
if (Qn(this.message, t, this.offset())) {
|
|
3399
3405
|
for (var n = 0; n < t.length; n++)
|
|
3400
3406
|
this.bump();
|
|
3401
3407
|
return !0;
|
|
@@ -3417,7 +3423,7 @@ var ga = (
|
|
|
3417
3423
|
break;
|
|
3418
3424
|
}
|
|
3419
3425
|
}, e.prototype.bumpSpace = function() {
|
|
3420
|
-
for (; !this.isEOF() &&
|
|
3426
|
+
for (; !this.isEOF() && $r(this.char()); )
|
|
3421
3427
|
this.bump();
|
|
3422
3428
|
}, e.prototype.peek = function() {
|
|
3423
3429
|
if (this.isEOF())
|
|
@@ -3427,47 +3433,47 @@ var ga = (
|
|
|
3427
3433
|
}, e;
|
|
3428
3434
|
}()
|
|
3429
3435
|
);
|
|
3430
|
-
function
|
|
3436
|
+
function _n(e) {
|
|
3431
3437
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3432
3438
|
}
|
|
3433
|
-
function
|
|
3434
|
-
return
|
|
3439
|
+
function ya(e) {
|
|
3440
|
+
return _n(e) || e === 47;
|
|
3435
3441
|
}
|
|
3436
|
-
function
|
|
3442
|
+
function ba(e) {
|
|
3437
3443
|
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;
|
|
3438
3444
|
}
|
|
3439
|
-
function
|
|
3445
|
+
function $r(e) {
|
|
3440
3446
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3441
3447
|
}
|
|
3442
|
-
function
|
|
3448
|
+
function va(e) {
|
|
3443
3449
|
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;
|
|
3444
3450
|
}
|
|
3445
|
-
function
|
|
3451
|
+
function xn(e) {
|
|
3446
3452
|
e.forEach(function(t) {
|
|
3447
|
-
if (delete t.location,
|
|
3453
|
+
if (delete t.location, Or(t) || Pr(t))
|
|
3448
3454
|
for (var n in t.options)
|
|
3449
|
-
delete t.options[n].location,
|
|
3455
|
+
delete t.options[n].location, xn(t.options[n].value);
|
|
3450
3456
|
else
|
|
3451
|
-
|
|
3457
|
+
Ir(t) && Dr(t.style) || (Lr(t) || Nr(t)) && yn(t.style) ? delete t.style.location : Rr(t) && xn(t.children);
|
|
3452
3458
|
});
|
|
3453
3459
|
}
|
|
3454
|
-
function
|
|
3455
|
-
t === void 0 && (t = {}), t =
|
|
3456
|
-
var n = new
|
|
3460
|
+
function Ea(e, t) {
|
|
3461
|
+
t === void 0 && (t = {}), t = Rt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3462
|
+
var n = new ma(e, t).parse();
|
|
3457
3463
|
if (n.err) {
|
|
3458
3464
|
var r = SyntaxError(L[n.err.kind]);
|
|
3459
3465
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3460
3466
|
}
|
|
3461
|
-
return t != null && t.captureLocation ||
|
|
3467
|
+
return t != null && t.captureLocation || xn(n.val), n.val;
|
|
3462
3468
|
}
|
|
3463
|
-
var
|
|
3469
|
+
var et;
|
|
3464
3470
|
(function(e) {
|
|
3465
3471
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3466
|
-
})(
|
|
3467
|
-
var
|
|
3472
|
+
})(et || (et = {}));
|
|
3473
|
+
var Ft = (
|
|
3468
3474
|
/** @class */
|
|
3469
3475
|
function(e) {
|
|
3470
|
-
|
|
3476
|
+
Ut(t, e);
|
|
3471
3477
|
function t(n, r, i) {
|
|
3472
3478
|
var a = e.call(this, n) || this;
|
|
3473
3479
|
return a.code = r, a.originalMessage = i, a;
|
|
@@ -3476,48 +3482,48 @@ var Vt = (
|
|
|
3476
3482
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3477
3483
|
}, t;
|
|
3478
3484
|
}(Error)
|
|
3479
|
-
),
|
|
3485
|
+
), er = (
|
|
3480
3486
|
/** @class */
|
|
3481
3487
|
function(e) {
|
|
3482
|
-
|
|
3488
|
+
Ut(t, e);
|
|
3483
3489
|
function t(n, r, i, a) {
|
|
3484
|
-
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3490
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), et.INVALID_VALUE, a) || this;
|
|
3485
3491
|
}
|
|
3486
3492
|
return t;
|
|
3487
|
-
}(
|
|
3488
|
-
),
|
|
3493
|
+
}(Ft)
|
|
3494
|
+
), _a = (
|
|
3489
3495
|
/** @class */
|
|
3490
3496
|
function(e) {
|
|
3491
|
-
|
|
3497
|
+
Ut(t, e);
|
|
3492
3498
|
function t(n, r, i) {
|
|
3493
|
-
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r),
|
|
3499
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), et.INVALID_VALUE, i) || this;
|
|
3494
3500
|
}
|
|
3495
3501
|
return t;
|
|
3496
|
-
}(
|
|
3497
|
-
),
|
|
3502
|
+
}(Ft)
|
|
3503
|
+
), xa = (
|
|
3498
3504
|
/** @class */
|
|
3499
3505
|
function(e) {
|
|
3500
|
-
|
|
3506
|
+
Ut(t, e);
|
|
3501
3507
|
function t(n, r) {
|
|
3502
|
-
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'),
|
|
3508
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), et.MISSING_VALUE, r) || this;
|
|
3503
3509
|
}
|
|
3504
3510
|
return t;
|
|
3505
|
-
}(
|
|
3511
|
+
}(Ft)
|
|
3506
3512
|
), te;
|
|
3507
3513
|
(function(e) {
|
|
3508
3514
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3509
3515
|
})(te || (te = {}));
|
|
3510
|
-
function
|
|
3516
|
+
function wa(e) {
|
|
3511
3517
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3512
3518
|
var r = t[t.length - 1];
|
|
3513
3519
|
return !r || r.type !== te.literal || n.type !== te.literal ? t.push(n) : r.value += n.value, t;
|
|
3514
3520
|
}, []);
|
|
3515
3521
|
}
|
|
3516
|
-
function
|
|
3522
|
+
function Aa(e) {
|
|
3517
3523
|
return typeof e == "function";
|
|
3518
3524
|
}
|
|
3519
|
-
function
|
|
3520
|
-
if (e.length === 1 &&
|
|
3525
|
+
function It(e, t, n, r, i, a, o) {
|
|
3526
|
+
if (e.length === 1 && zn(e[0]))
|
|
3521
3527
|
return [
|
|
3522
3528
|
{
|
|
3523
3529
|
type: te.literal,
|
|
@@ -3526,14 +3532,14 @@ function Ht(e, t, n, r, i, a, o) {
|
|
|
3526
3532
|
];
|
|
3527
3533
|
for (var s = [], l = 0, u = e; l < u.length; l++) {
|
|
3528
3534
|
var c = u[l];
|
|
3529
|
-
if (
|
|
3535
|
+
if (zn(c)) {
|
|
3530
3536
|
s.push({
|
|
3531
3537
|
type: te.literal,
|
|
3532
3538
|
value: c.value
|
|
3533
3539
|
});
|
|
3534
3540
|
continue;
|
|
3535
3541
|
}
|
|
3536
|
-
if (
|
|
3542
|
+
if (Xi(c)) {
|
|
3537
3543
|
typeof a == "number" && s.push({
|
|
3538
3544
|
type: te.literal,
|
|
3539
3545
|
value: n.getNumberFormat(t).format(a)
|
|
@@ -3542,89 +3548,89 @@ function Ht(e, t, n, r, i, a, o) {
|
|
|
3542
3548
|
}
|
|
3543
3549
|
var f = c.value;
|
|
3544
3550
|
if (!(i && f in i))
|
|
3545
|
-
throw new
|
|
3551
|
+
throw new xa(f, o);
|
|
3546
3552
|
var h = i[f];
|
|
3547
|
-
if (
|
|
3553
|
+
if (Wi(c)) {
|
|
3548
3554
|
(!h || typeof h == "string" || typeof h == "number") && (h = typeof h == "string" || typeof h == "number" ? String(h) : ""), s.push({
|
|
3549
3555
|
type: typeof h == "string" ? te.literal : te.object,
|
|
3550
3556
|
value: h
|
|
3551
3557
|
});
|
|
3552
3558
|
continue;
|
|
3553
3559
|
}
|
|
3554
|
-
if (
|
|
3555
|
-
var g = typeof c.style == "string" ? r.date[c.style] :
|
|
3560
|
+
if (Lr(c)) {
|
|
3561
|
+
var g = typeof c.style == "string" ? r.date[c.style] : yn(c.style) ? c.style.parsedOptions : void 0;
|
|
3556
3562
|
s.push({
|
|
3557
3563
|
type: te.literal,
|
|
3558
3564
|
value: n.getDateTimeFormat(t, g).format(h)
|
|
3559
3565
|
});
|
|
3560
3566
|
continue;
|
|
3561
3567
|
}
|
|
3562
|
-
if (
|
|
3563
|
-
var g = typeof c.style == "string" ? r.time[c.style] :
|
|
3568
|
+
if (Nr(c)) {
|
|
3569
|
+
var g = typeof c.style == "string" ? r.time[c.style] : yn(c.style) ? c.style.parsedOptions : r.time.medium;
|
|
3564
3570
|
s.push({
|
|
3565
3571
|
type: te.literal,
|
|
3566
3572
|
value: n.getDateTimeFormat(t, g).format(h)
|
|
3567
3573
|
});
|
|
3568
3574
|
continue;
|
|
3569
3575
|
}
|
|
3570
|
-
if (
|
|
3571
|
-
var g = typeof c.style == "string" ? r.number[c.style] :
|
|
3576
|
+
if (Ir(c)) {
|
|
3577
|
+
var g = typeof c.style == "string" ? r.number[c.style] : Dr(c.style) ? c.style.parsedOptions : void 0;
|
|
3572
3578
|
g && g.scale && (h = h * (g.scale || 1)), s.push({
|
|
3573
3579
|
type: te.literal,
|
|
3574
3580
|
value: n.getNumberFormat(t, g).format(h)
|
|
3575
3581
|
});
|
|
3576
3582
|
continue;
|
|
3577
3583
|
}
|
|
3578
|
-
if (
|
|
3584
|
+
if (Rr(c)) {
|
|
3579
3585
|
var v = c.children, d = c.value, _ = i[d];
|
|
3580
|
-
if (!
|
|
3581
|
-
throw new
|
|
3582
|
-
var C =
|
|
3583
|
-
return
|
|
3586
|
+
if (!Aa(_))
|
|
3587
|
+
throw new _a(d, "function", o);
|
|
3588
|
+
var C = It(v, t, n, r, i, a), P = _(C.map(function(M) {
|
|
3589
|
+
return M.value;
|
|
3584
3590
|
}));
|
|
3585
|
-
Array.isArray(
|
|
3591
|
+
Array.isArray(P) || (P = [P]), s.push.apply(s, P.map(function(M) {
|
|
3586
3592
|
return {
|
|
3587
|
-
type: typeof
|
|
3588
|
-
value:
|
|
3593
|
+
type: typeof M == "string" ? te.literal : te.object,
|
|
3594
|
+
value: M
|
|
3589
3595
|
};
|
|
3590
3596
|
}));
|
|
3591
3597
|
}
|
|
3592
|
-
if (
|
|
3598
|
+
if (Or(c)) {
|
|
3593
3599
|
var b = c.options[h] || c.options.other;
|
|
3594
3600
|
if (!b)
|
|
3595
|
-
throw new
|
|
3596
|
-
s.push.apply(s,
|
|
3601
|
+
throw new er(c.value, h, Object.keys(c.options), o);
|
|
3602
|
+
s.push.apply(s, It(b.value, t, n, r, i));
|
|
3597
3603
|
continue;
|
|
3598
3604
|
}
|
|
3599
|
-
if (
|
|
3605
|
+
if (Pr(c)) {
|
|
3600
3606
|
var b = c.options["=".concat(h)];
|
|
3601
3607
|
if (!b) {
|
|
3602
3608
|
if (!Intl.PluralRules)
|
|
3603
|
-
throw new
|
|
3609
|
+
throw new Ft(`Intl.PluralRules is not available in this environment.
|
|
3604
3610
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3605
|
-
`,
|
|
3606
|
-
var
|
|
3607
|
-
b = c.options[
|
|
3611
|
+
`, et.MISSING_INTL_API, o);
|
|
3612
|
+
var D = n.getPluralRules(t, { type: c.pluralType }).select(h - (c.offset || 0));
|
|
3613
|
+
b = c.options[D] || c.options.other;
|
|
3608
3614
|
}
|
|
3609
3615
|
if (!b)
|
|
3610
|
-
throw new
|
|
3611
|
-
s.push.apply(s,
|
|
3616
|
+
throw new er(c.value, h, Object.keys(c.options), o);
|
|
3617
|
+
s.push.apply(s, It(b.value, t, n, r, i, h - (c.offset || 0)));
|
|
3612
3618
|
continue;
|
|
3613
3619
|
}
|
|
3614
3620
|
}
|
|
3615
|
-
return
|
|
3621
|
+
return wa(s);
|
|
3616
3622
|
}
|
|
3617
|
-
function
|
|
3618
|
-
return t ?
|
|
3619
|
-
return n[r] =
|
|
3623
|
+
function Ca(e, t) {
|
|
3624
|
+
return t ? be(be(be({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3625
|
+
return n[r] = be(be({}, e[r]), t[r] || {}), n;
|
|
3620
3626
|
}, {})) : e;
|
|
3621
3627
|
}
|
|
3622
|
-
function
|
|
3628
|
+
function Ta(e, t) {
|
|
3623
3629
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3624
|
-
return n[r] =
|
|
3625
|
-
},
|
|
3630
|
+
return n[r] = Ca(e[r], t[r]), n;
|
|
3631
|
+
}, be({}, e)) : e;
|
|
3626
3632
|
}
|
|
3627
|
-
function
|
|
3633
|
+
function rn(e) {
|
|
3628
3634
|
return {
|
|
3629
3635
|
create: function() {
|
|
3630
3636
|
return {
|
|
@@ -3638,39 +3644,39 @@ function tn(e) {
|
|
|
3638
3644
|
}
|
|
3639
3645
|
};
|
|
3640
3646
|
}
|
|
3641
|
-
function
|
|
3647
|
+
function Sa(e) {
|
|
3642
3648
|
return e === void 0 && (e = {
|
|
3643
3649
|
number: {},
|
|
3644
3650
|
dateTime: {},
|
|
3645
3651
|
pluralRules: {}
|
|
3646
3652
|
}), {
|
|
3647
|
-
getNumberFormat:
|
|
3653
|
+
getNumberFormat: en(function() {
|
|
3648
3654
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3649
3655
|
n[r] = arguments[r];
|
|
3650
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3656
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Jt([void 0], n, !1)))();
|
|
3651
3657
|
}, {
|
|
3652
|
-
cache:
|
|
3653
|
-
strategy:
|
|
3658
|
+
cache: rn(e.number),
|
|
3659
|
+
strategy: tn.variadic
|
|
3654
3660
|
}),
|
|
3655
|
-
getDateTimeFormat:
|
|
3661
|
+
getDateTimeFormat: en(function() {
|
|
3656
3662
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3657
3663
|
n[r] = arguments[r];
|
|
3658
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3664
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Jt([void 0], n, !1)))();
|
|
3659
3665
|
}, {
|
|
3660
|
-
cache:
|
|
3661
|
-
strategy:
|
|
3666
|
+
cache: rn(e.dateTime),
|
|
3667
|
+
strategy: tn.variadic
|
|
3662
3668
|
}),
|
|
3663
|
-
getPluralRules:
|
|
3669
|
+
getPluralRules: en(function() {
|
|
3664
3670
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3665
3671
|
n[r] = arguments[r];
|
|
3666
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3672
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Jt([void 0], n, !1)))();
|
|
3667
3673
|
}, {
|
|
3668
|
-
cache:
|
|
3669
|
-
strategy:
|
|
3674
|
+
cache: rn(e.pluralRules),
|
|
3675
|
+
strategy: tn.variadic
|
|
3670
3676
|
})
|
|
3671
3677
|
};
|
|
3672
3678
|
}
|
|
3673
|
-
var
|
|
3679
|
+
var Ba = (
|
|
3674
3680
|
/** @class */
|
|
3675
3681
|
function() {
|
|
3676
3682
|
function e(t, n, r, i) {
|
|
@@ -3689,7 +3695,7 @@ var Ta = (
|
|
|
3689
3695
|
}, []);
|
|
3690
3696
|
return c.length <= 1 ? c[0] || "" : c;
|
|
3691
3697
|
}, this.formatToParts = function(l) {
|
|
3692
|
-
return
|
|
3698
|
+
return It(a.ast, a.locales, a.formatters, a.formats, l, void 0, a.message);
|
|
3693
3699
|
}, this.resolvedOptions = function() {
|
|
3694
3700
|
var l;
|
|
3695
3701
|
return {
|
|
@@ -3702,13 +3708,13 @@ var Ta = (
|
|
|
3702
3708
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3703
3709
|
var o = i || {};
|
|
3704
3710
|
o.formatters;
|
|
3705
|
-
var s =
|
|
3706
|
-
this.ast = e.__parse(t,
|
|
3711
|
+
var s = Mi(o, ["formatters"]);
|
|
3712
|
+
this.ast = e.__parse(t, be(be({}, s), { locale: this.resolvedLocale }));
|
|
3707
3713
|
} else
|
|
3708
3714
|
this.ast = t;
|
|
3709
3715
|
if (!Array.isArray(this.ast))
|
|
3710
3716
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3711
|
-
this.formats =
|
|
3717
|
+
this.formats = Ta(e.formats, r), this.formatters = i && i.formatters || Sa(this.formatterCache);
|
|
3712
3718
|
}
|
|
3713
3719
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3714
3720
|
get: function() {
|
|
@@ -3721,7 +3727,7 @@ var Ta = (
|
|
|
3721
3727
|
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3722
3728
|
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3723
3729
|
}
|
|
3724
|
-
}, e.__parse =
|
|
3730
|
+
}, e.__parse = Ea, e.formats = {
|
|
3725
3731
|
number: {
|
|
3726
3732
|
integer: {
|
|
3727
3733
|
maximumFractionDigits: 0
|
|
@@ -3782,7 +3788,7 @@ var Ta = (
|
|
|
3782
3788
|
}, e;
|
|
3783
3789
|
}()
|
|
3784
3790
|
);
|
|
3785
|
-
function
|
|
3791
|
+
function Ha(e, t) {
|
|
3786
3792
|
if (t == null)
|
|
3787
3793
|
return;
|
|
3788
3794
|
if (t in e)
|
|
@@ -3803,92 +3809,92 @@ function Sa(e, t) {
|
|
|
3803
3809
|
r = void 0;
|
|
3804
3810
|
return r;
|
|
3805
3811
|
}
|
|
3806
|
-
const
|
|
3812
|
+
const Re = {}, Ia = (e, t, n) => n && (t in Re || (Re[t] = {}), e in Re[t] || (Re[t][e] = n), n), jr = (e, t) => {
|
|
3807
3813
|
if (t == null)
|
|
3808
3814
|
return;
|
|
3809
|
-
if (t in
|
|
3810
|
-
return
|
|
3811
|
-
const n =
|
|
3815
|
+
if (t in Re && e in Re[t])
|
|
3816
|
+
return Re[t][e];
|
|
3817
|
+
const n = Gt(t);
|
|
3812
3818
|
for (let r = 0; r < n.length; r++) {
|
|
3813
|
-
const i = n[r], a =
|
|
3819
|
+
const i = n[r], a = Na(i, e);
|
|
3814
3820
|
if (a)
|
|
3815
|
-
return
|
|
3821
|
+
return Ia(e, t, a);
|
|
3816
3822
|
}
|
|
3817
3823
|
};
|
|
3818
|
-
let
|
|
3819
|
-
const
|
|
3820
|
-
function
|
|
3821
|
-
return
|
|
3824
|
+
let Ln;
|
|
3825
|
+
const rt = Vt({});
|
|
3826
|
+
function La(e) {
|
|
3827
|
+
return Ln[e] || null;
|
|
3822
3828
|
}
|
|
3823
|
-
function
|
|
3824
|
-
return e in
|
|
3829
|
+
function Wr(e) {
|
|
3830
|
+
return e in Ln;
|
|
3825
3831
|
}
|
|
3826
|
-
function
|
|
3827
|
-
if (
|
|
3832
|
+
function Na(e, t) {
|
|
3833
|
+
if (!Wr(e))
|
|
3828
3834
|
return null;
|
|
3829
|
-
const n =
|
|
3830
|
-
return
|
|
3835
|
+
const n = La(e);
|
|
3836
|
+
return Ha(n, t);
|
|
3831
3837
|
}
|
|
3832
|
-
function
|
|
3838
|
+
function Oa(e) {
|
|
3833
3839
|
if (e == null)
|
|
3834
3840
|
return;
|
|
3835
|
-
const t =
|
|
3841
|
+
const t = Gt(e);
|
|
3836
3842
|
for (let n = 0; n < t.length; n++) {
|
|
3837
3843
|
const r = t[n];
|
|
3838
|
-
if (
|
|
3844
|
+
if (Wr(r))
|
|
3839
3845
|
return r;
|
|
3840
3846
|
}
|
|
3841
3847
|
}
|
|
3842
|
-
function
|
|
3843
|
-
delete
|
|
3848
|
+
function Xr(e, ...t) {
|
|
3849
|
+
delete Re[e], rt.update((n) => (n[e] = Di.all([n[e] || {}, ...t]), n));
|
|
3844
3850
|
}
|
|
3845
|
-
|
|
3846
|
-
[
|
|
3851
|
+
nt(
|
|
3852
|
+
[rt],
|
|
3847
3853
|
([e]) => Object.keys(e)
|
|
3848
3854
|
);
|
|
3849
|
-
|
|
3850
|
-
const
|
|
3851
|
-
function
|
|
3852
|
-
|
|
3855
|
+
rt.subscribe((e) => Ln = e);
|
|
3856
|
+
const Lt = {};
|
|
3857
|
+
function Pa(e, t) {
|
|
3858
|
+
Lt[e].delete(t), Lt[e].size === 0 && delete Lt[e];
|
|
3853
3859
|
}
|
|
3854
|
-
function
|
|
3855
|
-
return
|
|
3860
|
+
function zr(e) {
|
|
3861
|
+
return Lt[e];
|
|
3856
3862
|
}
|
|
3857
|
-
function
|
|
3858
|
-
return
|
|
3859
|
-
const n =
|
|
3863
|
+
function Ra(e) {
|
|
3864
|
+
return Gt(e).map((t) => {
|
|
3865
|
+
const n = zr(t);
|
|
3860
3866
|
return [t, n ? [...n] : []];
|
|
3861
3867
|
}).filter(([, t]) => t.length > 0);
|
|
3862
3868
|
}
|
|
3863
|
-
function
|
|
3864
|
-
return e == null ? !1 :
|
|
3869
|
+
function wn(e) {
|
|
3870
|
+
return e == null ? !1 : Gt(e).some(
|
|
3865
3871
|
(t) => {
|
|
3866
3872
|
var n;
|
|
3867
|
-
return (n =
|
|
3873
|
+
return (n = zr(t)) == null ? void 0 : n.size;
|
|
3868
3874
|
}
|
|
3869
3875
|
);
|
|
3870
3876
|
}
|
|
3871
|
-
function
|
|
3877
|
+
function Da(e, t) {
|
|
3872
3878
|
return Promise.all(
|
|
3873
|
-
t.map((r) => (
|
|
3874
|
-
).then((r) =>
|
|
3875
|
-
}
|
|
3876
|
-
const
|
|
3877
|
-
function
|
|
3878
|
-
if (!
|
|
3879
|
-
return e in
|
|
3880
|
-
const t =
|
|
3881
|
-
return
|
|
3879
|
+
t.map((r) => (Pa(e, r), r().then((i) => i.default || i)))
|
|
3880
|
+
).then((r) => Xr(e, ...r));
|
|
3881
|
+
}
|
|
3882
|
+
const ct = {};
|
|
3883
|
+
function Zr(e) {
|
|
3884
|
+
if (!wn(e))
|
|
3885
|
+
return e in ct ? ct[e] : Promise.resolve();
|
|
3886
|
+
const t = Ra(e);
|
|
3887
|
+
return ct[e] = Promise.all(
|
|
3882
3888
|
t.map(
|
|
3883
|
-
([n, r]) =>
|
|
3889
|
+
([n, r]) => Da(n, r)
|
|
3884
3890
|
)
|
|
3885
3891
|
).then(() => {
|
|
3886
|
-
if (
|
|
3887
|
-
return
|
|
3888
|
-
delete
|
|
3889
|
-
}),
|
|
3892
|
+
if (wn(e))
|
|
3893
|
+
return Zr(e);
|
|
3894
|
+
delete ct[e];
|
|
3895
|
+
}), ct[e];
|
|
3890
3896
|
}
|
|
3891
|
-
const
|
|
3897
|
+
const Ma = {
|
|
3892
3898
|
number: {
|
|
3893
3899
|
scientific: { notation: "scientific" },
|
|
3894
3900
|
engineering: { notation: "engineering" },
|
|
@@ -3917,150 +3923,150 @@ const Ra = {
|
|
|
3917
3923
|
timeZoneName: "short"
|
|
3918
3924
|
}
|
|
3919
3925
|
}
|
|
3920
|
-
},
|
|
3926
|
+
}, ka = {
|
|
3921
3927
|
fallbackLocale: null,
|
|
3922
3928
|
loadingDelay: 200,
|
|
3923
|
-
formats:
|
|
3929
|
+
formats: Ma,
|
|
3924
3930
|
warnOnMissingMessages: !0,
|
|
3925
3931
|
handleMissingMessage: void 0,
|
|
3926
3932
|
ignoreTag: !0
|
|
3927
|
-
},
|
|
3928
|
-
function
|
|
3929
|
-
return
|
|
3933
|
+
}, Va = ka;
|
|
3934
|
+
function tt() {
|
|
3935
|
+
return Va;
|
|
3930
3936
|
}
|
|
3931
|
-
const
|
|
3932
|
-
var
|
|
3937
|
+
const an = Vt(!1);
|
|
3938
|
+
var Ua = Object.defineProperty, Fa = Object.defineProperties, Ga = Object.getOwnPropertyDescriptors, tr = Object.getOwnPropertySymbols, $a = Object.prototype.hasOwnProperty, ja = Object.prototype.propertyIsEnumerable, nr = (e, t, n) => t in e ? Ua(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Wa = (e, t) => {
|
|
3933
3939
|
for (var n in t || (t = {}))
|
|
3934
|
-
|
|
3935
|
-
if (
|
|
3936
|
-
for (var n of
|
|
3937
|
-
|
|
3940
|
+
$a.call(t, n) && nr(e, n, t[n]);
|
|
3941
|
+
if (tr)
|
|
3942
|
+
for (var n of tr(t))
|
|
3943
|
+
ja.call(t, n) && nr(e, n, t[n]);
|
|
3938
3944
|
return e;
|
|
3939
|
-
},
|
|
3940
|
-
let
|
|
3941
|
-
const
|
|
3942
|
-
function
|
|
3945
|
+
}, Xa = (e, t) => Fa(e, Ga(t));
|
|
3946
|
+
let An;
|
|
3947
|
+
const Dt = Vt(null);
|
|
3948
|
+
function rr(e) {
|
|
3943
3949
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3944
3950
|
}
|
|
3945
|
-
function
|
|
3946
|
-
const n =
|
|
3947
|
-
return t ? [.../* @__PURE__ */ new Set([...n, ...
|
|
3951
|
+
function Gt(e, t = tt().fallbackLocale) {
|
|
3952
|
+
const n = rr(e);
|
|
3953
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...rr(t)])] : n;
|
|
3948
3954
|
}
|
|
3949
|
-
function
|
|
3950
|
-
return
|
|
3955
|
+
function Ue() {
|
|
3956
|
+
return An != null ? An : void 0;
|
|
3951
3957
|
}
|
|
3952
|
-
|
|
3953
|
-
|
|
3958
|
+
Dt.subscribe((e) => {
|
|
3959
|
+
An = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3954
3960
|
});
|
|
3955
|
-
const
|
|
3956
|
-
if (e &&
|
|
3957
|
-
const { loadingDelay: t } =
|
|
3961
|
+
const za = (e) => {
|
|
3962
|
+
if (e && Oa(e) && wn(e)) {
|
|
3963
|
+
const { loadingDelay: t } = tt();
|
|
3958
3964
|
let n;
|
|
3959
|
-
return typeof window != "undefined" &&
|
|
3960
|
-
() =>
|
|
3965
|
+
return typeof window != "undefined" && Ue() != null && t ? n = window.setTimeout(
|
|
3966
|
+
() => an.set(!0),
|
|
3961
3967
|
t
|
|
3962
|
-
) :
|
|
3963
|
-
|
|
3968
|
+
) : an.set(!0), Zr(e).then(() => {
|
|
3969
|
+
Dt.set(e);
|
|
3964
3970
|
}).finally(() => {
|
|
3965
|
-
clearTimeout(n),
|
|
3971
|
+
clearTimeout(n), an.set(!1);
|
|
3966
3972
|
});
|
|
3967
3973
|
}
|
|
3968
|
-
return
|
|
3969
|
-
},
|
|
3970
|
-
set:
|
|
3971
|
-
}),
|
|
3974
|
+
return Dt.set(e);
|
|
3975
|
+
}, De = Xa(Wa({}, Dt), {
|
|
3976
|
+
set: za
|
|
3977
|
+
}), $t = (e) => {
|
|
3972
3978
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3973
3979
|
return (r) => {
|
|
3974
3980
|
const i = JSON.stringify(r);
|
|
3975
3981
|
return i in t ? t[i] : t[i] = e(r);
|
|
3976
3982
|
};
|
|
3977
3983
|
};
|
|
3978
|
-
var
|
|
3984
|
+
var Za = Object.defineProperty, Mt = Object.getOwnPropertySymbols, qr = Object.prototype.hasOwnProperty, Kr = Object.prototype.propertyIsEnumerable, ir = (e, t, n) => t in e ? Za(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Nn = (e, t) => {
|
|
3979
3985
|
for (var n in t || (t = {}))
|
|
3980
|
-
|
|
3981
|
-
if (
|
|
3982
|
-
for (var n of
|
|
3983
|
-
|
|
3986
|
+
qr.call(t, n) && ir(e, n, t[n]);
|
|
3987
|
+
if (Mt)
|
|
3988
|
+
for (var n of Mt(t))
|
|
3989
|
+
Kr.call(t, n) && ir(e, n, t[n]);
|
|
3984
3990
|
return e;
|
|
3985
|
-
},
|
|
3991
|
+
}, it = (e, t) => {
|
|
3986
3992
|
var n = {};
|
|
3987
3993
|
for (var r in e)
|
|
3988
|
-
|
|
3989
|
-
if (e != null &&
|
|
3990
|
-
for (var r of
|
|
3991
|
-
t.indexOf(r) < 0 &&
|
|
3994
|
+
qr.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3995
|
+
if (e != null && Mt)
|
|
3996
|
+
for (var r of Mt(e))
|
|
3997
|
+
t.indexOf(r) < 0 && Kr.call(e, r) && (n[r] = e[r]);
|
|
3992
3998
|
return n;
|
|
3993
3999
|
};
|
|
3994
|
-
const
|
|
3995
|
-
const { formats: n } =
|
|
4000
|
+
const mt = (e, t) => {
|
|
4001
|
+
const { formats: n } = tt();
|
|
3996
4002
|
if (e in n && t in n[e])
|
|
3997
4003
|
return n[e][t];
|
|
3998
4004
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3999
|
-
},
|
|
4005
|
+
}, qa = $t(
|
|
4000
4006
|
(e) => {
|
|
4001
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
4007
|
+
var t = e, { locale: n, format: r } = t, i = it(t, ["locale", "format"]);
|
|
4002
4008
|
if (n == null)
|
|
4003
4009
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4004
|
-
return r && (i =
|
|
4010
|
+
return r && (i = mt("number", r)), new Intl.NumberFormat(n, i);
|
|
4005
4011
|
}
|
|
4006
|
-
),
|
|
4012
|
+
), Ka = $t(
|
|
4007
4013
|
(e) => {
|
|
4008
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
4014
|
+
var t = e, { locale: n, format: r } = t, i = it(t, ["locale", "format"]);
|
|
4009
4015
|
if (n == null)
|
|
4010
4016
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4011
|
-
return r ? i =
|
|
4017
|
+
return r ? i = mt("date", r) : Object.keys(i).length === 0 && (i = mt("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
4012
4018
|
}
|
|
4013
|
-
),
|
|
4019
|
+
), Qa = $t(
|
|
4014
4020
|
(e) => {
|
|
4015
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
4021
|
+
var t = e, { locale: n, format: r } = t, i = it(t, ["locale", "format"]);
|
|
4016
4022
|
if (n == null)
|
|
4017
4023
|
throw new Error(
|
|
4018
4024
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4019
4025
|
);
|
|
4020
|
-
return r ? i =
|
|
4026
|
+
return r ? i = mt("time", r) : Object.keys(i).length === 0 && (i = mt("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
4021
4027
|
}
|
|
4022
|
-
),
|
|
4028
|
+
), Ya = (e = {}) => {
|
|
4023
4029
|
var t = e, {
|
|
4024
|
-
locale: n =
|
|
4025
|
-
} = t, r =
|
|
4030
|
+
locale: n = Ue()
|
|
4031
|
+
} = t, r = it(t, [
|
|
4026
4032
|
"locale"
|
|
4027
4033
|
]);
|
|
4028
|
-
return
|
|
4029
|
-
},
|
|
4034
|
+
return qa(Nn({ locale: n }, r));
|
|
4035
|
+
}, Ja = (e = {}) => {
|
|
4030
4036
|
var t = e, {
|
|
4031
|
-
locale: n =
|
|
4032
|
-
} = t, r =
|
|
4037
|
+
locale: n = Ue()
|
|
4038
|
+
} = t, r = it(t, [
|
|
4033
4039
|
"locale"
|
|
4034
4040
|
]);
|
|
4035
|
-
return
|
|
4036
|
-
},
|
|
4041
|
+
return Ka(Nn({ locale: n }, r));
|
|
4042
|
+
}, eo = (e = {}) => {
|
|
4037
4043
|
var t = e, {
|
|
4038
|
-
locale: n =
|
|
4039
|
-
} = t, r =
|
|
4044
|
+
locale: n = Ue()
|
|
4045
|
+
} = t, r = it(t, [
|
|
4040
4046
|
"locale"
|
|
4041
4047
|
]);
|
|
4042
|
-
return
|
|
4043
|
-
},
|
|
4048
|
+
return Qa(Nn({ locale: n }, r));
|
|
4049
|
+
}, to = $t(
|
|
4044
4050
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4045
|
-
(e, t =
|
|
4046
|
-
ignoreTag:
|
|
4051
|
+
(e, t = Ue()) => new Ba(e, t, tt().formats, {
|
|
4052
|
+
ignoreTag: tt().ignoreTag
|
|
4047
4053
|
})
|
|
4048
|
-
),
|
|
4054
|
+
), no = (e, t = {}) => {
|
|
4049
4055
|
var n, r, i, a;
|
|
4050
4056
|
let o = t;
|
|
4051
4057
|
typeof e == "object" && (o = e, e = o.id);
|
|
4052
4058
|
const {
|
|
4053
4059
|
values: s,
|
|
4054
|
-
locale: l =
|
|
4060
|
+
locale: l = Ue(),
|
|
4055
4061
|
default: u
|
|
4056
4062
|
} = o;
|
|
4057
4063
|
if (l == null)
|
|
4058
4064
|
throw new Error(
|
|
4059
4065
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4060
4066
|
);
|
|
4061
|
-
let c =
|
|
4067
|
+
let c = jr(e, l);
|
|
4062
4068
|
if (!c)
|
|
4063
|
-
c = (a = (i = (r = (n =
|
|
4069
|
+
c = (a = (i = (r = (n = tt()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? a : e;
|
|
4064
4070
|
else if (typeof c != "string")
|
|
4065
4071
|
return console.warn(
|
|
4066
4072
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4069,7 +4075,7 @@ const dt = (e, t) => {
|
|
|
4069
4075
|
return c;
|
|
4070
4076
|
let f = c;
|
|
4071
4077
|
try {
|
|
4072
|
-
f =
|
|
4078
|
+
f = to(c, l).format(s);
|
|
4073
4079
|
} catch (h) {
|
|
4074
4080
|
h instanceof Error && console.warn(
|
|
4075
4081
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4077,23 +4083,23 @@ const dt = (e, t) => {
|
|
|
4077
4083
|
);
|
|
4078
4084
|
}
|
|
4079
4085
|
return f;
|
|
4080
|
-
},
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
function
|
|
4086
|
-
|
|
4087
|
-
n == null && (
|
|
4086
|
+
}, ro = (e, t) => eo(t).format(e), io = (e, t) => Ja(t).format(e), ao = (e, t) => Ya(t).format(e), oo = (e, t = Ue()) => jr(e, t), so = nt([De, rt], () => no);
|
|
4087
|
+
nt([De], () => ro);
|
|
4088
|
+
nt([De], () => io);
|
|
4089
|
+
nt([De], () => ao);
|
|
4090
|
+
nt([De, rt], () => oo);
|
|
4091
|
+
function lo({ withLocale: e, translations: t }) {
|
|
4092
|
+
De.subscribe((n) => {
|
|
4093
|
+
n == null && (rt.set(t), De.set(e));
|
|
4088
4094
|
});
|
|
4089
4095
|
}
|
|
4090
|
-
function
|
|
4091
|
-
|
|
4096
|
+
function ar(e, t) {
|
|
4097
|
+
Xr(e, t);
|
|
4092
4098
|
}
|
|
4093
|
-
function
|
|
4094
|
-
|
|
4099
|
+
function uo(e) {
|
|
4100
|
+
De.set(e);
|
|
4095
4101
|
}
|
|
4096
|
-
const
|
|
4102
|
+
const k = ri(so), or = {
|
|
4097
4103
|
en: {
|
|
4098
4104
|
vaultExchange: "Vault Exchange",
|
|
4099
4105
|
debitPlaceHolder: "Debit amount",
|
|
@@ -4202,7 +4208,7 @@ const V = ti(ao), ir = {
|
|
|
4202
4208
|
10114: "Kullanıcı hesabı aktif değil.",
|
|
4203
4209
|
10115: "İşlem niyeti bulunamadı."
|
|
4204
4210
|
}
|
|
4205
|
-
},
|
|
4211
|
+
}, co = {
|
|
4206
4212
|
"1INCH": "",
|
|
4207
4213
|
AAVE: "",
|
|
4208
4214
|
ADA: "₳",
|
|
@@ -4478,40 +4484,40 @@ const V = ti(ao), ir = {
|
|
|
4478
4484
|
ZMK: "",
|
|
4479
4485
|
ZMW: "",
|
|
4480
4486
|
ZWD: "Z$"
|
|
4481
|
-
},
|
|
4487
|
+
}, ho = 6e3, fo = {
|
|
4482
4488
|
InvalidSession: "Invalid session"
|
|
4483
4489
|
}, K = {
|
|
4484
4490
|
BalanceError: "BalanceError",
|
|
4485
4491
|
CheckWalletExchangeError: "CheckWalletExchangeError",
|
|
4486
4492
|
WalletExchangeError: "WalletExchangeError",
|
|
4487
4493
|
CurrenciesError: "CurrenciesError"
|
|
4488
|
-
},
|
|
4494
|
+
}, sr = {
|
|
4489
4495
|
ResetVaultWidget: "ResetVaultWidget",
|
|
4490
4496
|
CloseVaultWidget: "CloseVaultWidget"
|
|
4491
|
-
},
|
|
4497
|
+
}, on = {
|
|
4492
4498
|
VaultWidgetReset: "VaultWidgetReset",
|
|
4493
4499
|
VaultWidgetClosed: "VaultWidgetClosed",
|
|
4494
4500
|
VaultDropdownToggled: "VaultDropdownToggled"
|
|
4495
|
-
},
|
|
4501
|
+
}, lr = {
|
|
4496
4502
|
Real: "Real",
|
|
4497
4503
|
Vault: "Vault"
|
|
4498
|
-
},
|
|
4504
|
+
}, Ne = {
|
|
4499
4505
|
success: "success",
|
|
4500
4506
|
error: "error"
|
|
4501
|
-
},
|
|
4507
|
+
}, sn = String(Number.MAX_SAFE_INTEGER).length + 1, St = {
|
|
4502
4508
|
ArrowDown: "ArrowDown",
|
|
4503
4509
|
ArrowUp: "ArrowUp",
|
|
4504
4510
|
Enter: "Enter",
|
|
4505
4511
|
Escape: "Escape"
|
|
4506
|
-
},
|
|
4512
|
+
}, Oe = {
|
|
4507
4513
|
true: "true"
|
|
4508
|
-
},
|
|
4514
|
+
}, ur = {
|
|
4509
4515
|
Fiat: "Fiat",
|
|
4510
4516
|
CryptoCurrency: "CryptoCurrency"
|
|
4511
|
-
},
|
|
4517
|
+
}, po = {
|
|
4512
4518
|
Credit: "Credit"
|
|
4513
4519
|
};
|
|
4514
|
-
function
|
|
4520
|
+
function go(e, t) {
|
|
4515
4521
|
let n;
|
|
4516
4522
|
return function(...r) {
|
|
4517
4523
|
n && clearTimeout(n), n = setTimeout(() => {
|
|
@@ -4519,14 +4525,14 @@ function fo(e, t) {
|
|
|
4519
4525
|
}, t);
|
|
4520
4526
|
};
|
|
4521
4527
|
}
|
|
4522
|
-
const
|
|
4528
|
+
const cr = (e, t = null, n = 2) => {
|
|
4523
4529
|
try {
|
|
4524
4530
|
return JSON.stringify(e, t, n);
|
|
4525
4531
|
} catch (r) {
|
|
4526
4532
|
return console.warn("Failed to stringify:", r), null;
|
|
4527
4533
|
}
|
|
4528
4534
|
};
|
|
4529
|
-
function
|
|
4535
|
+
function mo(e) {
|
|
4530
4536
|
const t = (n) => {
|
|
4531
4537
|
e.contains(n.target) || e.dispatchEvent(new CustomEvent("outclick"));
|
|
4532
4538
|
};
|
|
@@ -4536,14 +4542,14 @@ function po(e) {
|
|
|
4536
4542
|
}
|
|
4537
4543
|
};
|
|
4538
4544
|
}
|
|
4539
|
-
function
|
|
4540
|
-
|
|
4545
|
+
function yo(e) {
|
|
4546
|
+
Tn(e, "svelte-1g9pqha", ".selectWrapper.svelte-1g9pqha.svelte-1g9pqha{position:relative;min-width:96px;font-family:inherit;height:var(--emw--base-height, 36px);font-size:var(--emw--font-size-small, 12px);border-radius:var(--emw--border-radius-small, 8px)}.selectButton.svelte-1g9pqha.svelte-1g9pqha{width:100%;height:100%;cursor:pointer;text-align:left;border:unset;display:flex;align-items:center;justify-content:space-between;color:var(--emw--select-typography, #595959);background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));padding:0 var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-small, 12px);border-radius:var(--emw--border-radius-small, 8px);font-family:inherit}.selectButton.svelte-1g9pqha.svelte-1g9pqha:focus-visible{outline:none}.label.svelte-1g9pqha.svelte-1g9pqha{display:flex;align-items:center}.selectDropdownWrapper.svelte-1g9pqha.svelte-1g9pqha{position:absolute;top:calc(100% + 2px);left:0;right:0;overflow:hidden;z-index:100;background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));border-radius:var(--emw--border-radius-small, 8px)}.selectDropdown.svelte-1g9pqha.svelte-1g9pqha{display:flex;flex-direction:column;gap:4px;max-height:150px;overflow-y:auto;scrollbar-width:thin}.selectDropdown.svelte-1g9pqha li.svelte-1g9pqha{height:24px;flex:0 0 24px;display:flex;align-items:center;;;padding:0 var(--emw--spacing-small, 10px);cursor:pointer;transition:all 0.3s ease}.selectDropdown.svelte-1g9pqha li.svelte-1g9pqha:hover,.selectDropdown.svelte-1g9pqha li.active.svelte-1g9pqha{background:var(--emw--selected-option, #f0f0f0)}.symbol.svelte-1g9pqha.svelte-1g9pqha{display:inline-flex;width:14px;height:14px;border-radius:50%;align-items:center;justify-content:center;line-height:0;margin-right:5px;overflow:hidden;background:var(--emw--symbol-background, #595959);font-size:var(--emw--font-size-small, 12px);color:var(--emw--symbol-typography, #fff)}");
|
|
4541
4547
|
}
|
|
4542
|
-
function
|
|
4548
|
+
function hr(e, t, n) {
|
|
4543
4549
|
const r = e.slice();
|
|
4544
4550
|
return r[16] = t[n], r[18] = n, r;
|
|
4545
4551
|
}
|
|
4546
|
-
function
|
|
4552
|
+
function fr(e) {
|
|
4547
4553
|
var i;
|
|
4548
4554
|
let t, n = (
|
|
4549
4555
|
/*selected*/
|
|
@@ -4567,13 +4573,13 @@ function cr(e) {
|
|
|
4567
4573
|
}
|
|
4568
4574
|
};
|
|
4569
4575
|
}
|
|
4570
|
-
function
|
|
4571
|
-
let t, n, r =
|
|
4576
|
+
function pr(e) {
|
|
4577
|
+
let t, n, r = Ot(
|
|
4572
4578
|
/*options*/
|
|
4573
4579
|
e[1]
|
|
4574
4580
|
), i = [];
|
|
4575
4581
|
for (let a = 0; a < r.length; a += 1)
|
|
4576
|
-
i[a] =
|
|
4582
|
+
i[a] = gr(hr(e, r, a));
|
|
4577
4583
|
return {
|
|
4578
4584
|
c() {
|
|
4579
4585
|
t = A("div"), n = A("ul");
|
|
@@ -4590,14 +4596,14 @@ function hr(e) {
|
|
|
4590
4596
|
p(a, o) {
|
|
4591
4597
|
if (o & /*options, selected, activeIndex, handleChange*/
|
|
4592
4598
|
547) {
|
|
4593
|
-
r =
|
|
4599
|
+
r = Ot(
|
|
4594
4600
|
/*options*/
|
|
4595
4601
|
a[1]
|
|
4596
4602
|
);
|
|
4597
4603
|
let s;
|
|
4598
4604
|
for (s = 0; s < r.length; s += 1) {
|
|
4599
|
-
const l =
|
|
4600
|
-
i[s] ? i[s].p(l, o) : (i[s] =
|
|
4605
|
+
const l = hr(a, r, s);
|
|
4606
|
+
i[s] ? i[s].p(l, o) : (i[s] = gr(l), i[s].c(), i[s].m(n, null));
|
|
4601
4607
|
}
|
|
4602
4608
|
for (; s < i.length; s += 1)
|
|
4603
4609
|
i[s].d(1);
|
|
@@ -4605,11 +4611,11 @@ function hr(e) {
|
|
|
4605
4611
|
}
|
|
4606
4612
|
},
|
|
4607
4613
|
d(a) {
|
|
4608
|
-
a && B(t),
|
|
4614
|
+
a && B(t), xr(i, a), e[14](null);
|
|
4609
4615
|
}
|
|
4610
4616
|
};
|
|
4611
4617
|
}
|
|
4612
|
-
function
|
|
4618
|
+
function gr(e) {
|
|
4613
4619
|
var h, g;
|
|
4614
4620
|
let t, n, r = (
|
|
4615
4621
|
/*option*/
|
|
@@ -4621,7 +4627,7 @@ function fr(e) {
|
|
|
4621
4627
|
return {
|
|
4622
4628
|
c() {
|
|
4623
4629
|
var v, d, _, C;
|
|
4624
|
-
t = A("li"), n = A("span"), i = q(r), a =
|
|
4630
|
+
t = A("li"), n = A("span"), i = q(r), a = R(), s = q(o), l = R(), y(n, "class", "symbol svelte-1g9pqha"), y(t, "role", "option"), y(t, "aria-selected", u = /*option*/
|
|
4625
4631
|
((v = e[16]) == null ? void 0 : v.currency) === /*selected*/
|
|
4626
4632
|
((d = e[0]) == null ? void 0 : d.currency) || /*index*/
|
|
4627
4633
|
e[18] === /*activeIndex*/
|
|
@@ -4637,9 +4643,9 @@ function fr(e) {
|
|
|
4637
4643
|
},
|
|
4638
4644
|
m(v, d) {
|
|
4639
4645
|
H(v, t, d), E(t, n), E(n, i), E(t, a), E(t, s), E(t, l), c || (f = [
|
|
4640
|
-
ae(t, "keydown",
|
|
4646
|
+
ae(t, "keydown", vo),
|
|
4641
4647
|
ae(t, "click", function() {
|
|
4642
|
-
|
|
4648
|
+
yt(
|
|
4643
4649
|
/*handleChange*/
|
|
4644
4650
|
e[9](
|
|
4645
4651
|
/*option*/
|
|
@@ -4657,14 +4663,14 @@ function fr(e) {
|
|
|
4657
4663
|
], c = !0);
|
|
4658
4664
|
},
|
|
4659
4665
|
p(v, d) {
|
|
4660
|
-
var _, C,
|
|
4666
|
+
var _, C, P, b, D, M;
|
|
4661
4667
|
e = v, d & /*options*/
|
|
4662
4668
|
2 && r !== (r = /*option*/
|
|
4663
4669
|
((_ = e[16]) == null ? void 0 : _.symbol) + "") && oe(i, r), d & /*options*/
|
|
4664
4670
|
2 && o !== (o = /*option*/
|
|
4665
4671
|
((C = e[16]) == null ? void 0 : C.currency) + "") && oe(s, o), d & /*options, selected, activeIndex*/
|
|
4666
4672
|
35 && u !== (u = /*option*/
|
|
4667
|
-
((
|
|
4673
|
+
((P = e[16]) == null ? void 0 : P.currency) === /*selected*/
|
|
4668
4674
|
((b = e[0]) == null ? void 0 : b.currency) || /*index*/
|
|
4669
4675
|
e[18] === /*activeIndex*/
|
|
4670
4676
|
e[5]) && y(t, "aria-selected", u), d & /*options, selected, activeIndex*/
|
|
@@ -4672,18 +4678,18 @@ function fr(e) {
|
|
|
4672
4678
|
t,
|
|
4673
4679
|
"active",
|
|
4674
4680
|
/*option*/
|
|
4675
|
-
((
|
|
4676
|
-
((
|
|
4681
|
+
((D = e[16]) == null ? void 0 : D.currency) === /*selected*/
|
|
4682
|
+
((M = e[0]) == null ? void 0 : M.currency) || /*index*/
|
|
4677
4683
|
e[18] === /*activeIndex*/
|
|
4678
4684
|
e[5]
|
|
4679
4685
|
);
|
|
4680
4686
|
},
|
|
4681
4687
|
d(v) {
|
|
4682
|
-
v && B(t), c = !1,
|
|
4688
|
+
v && B(t), c = !1, Te(f);
|
|
4683
4689
|
}
|
|
4684
4690
|
};
|
|
4685
4691
|
}
|
|
4686
|
-
function
|
|
4692
|
+
function bo(e) {
|
|
4687
4693
|
var v, d;
|
|
4688
4694
|
let t, n, r, i, a = (
|
|
4689
4695
|
/*selected*/
|
|
@@ -4692,14 +4698,14 @@ function mo(e) {
|
|
|
4692
4698
|
), o, s, l, u, c, f, h = (
|
|
4693
4699
|
/*selected*/
|
|
4694
4700
|
((d = e[0]) == null ? void 0 : d.symbol) && /*withSymbol*/
|
|
4695
|
-
e[3] ===
|
|
4701
|
+
e[3] === Oe.true && fr(e)
|
|
4696
4702
|
), g = (
|
|
4697
4703
|
/*open*/
|
|
4698
|
-
e[7] &&
|
|
4704
|
+
e[7] && pr(e)
|
|
4699
4705
|
);
|
|
4700
4706
|
return {
|
|
4701
4707
|
c() {
|
|
4702
|
-
t = A("div"), n = A("button"), r = A("span"), h && h.c(), i =
|
|
4708
|
+
t = A("div"), n = A("button"), r = A("span"), h && h.c(), i = R(), o = q(a), s = R(), l = A("span"), l.innerHTML = '<svg width="12" height="7" viewBox="0 0 12 7" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M0.984228 0.664666C0.928537 0.612038 0.863025 0.570896 0.791433 0.543587C0.719842 0.516278 0.643572 0.503337 0.566979 0.505504C0.490386 0.50767 0.41497 0.524902 0.345037 0.556215C0.275103 0.587527 0.212022 0.632308 0.159395 0.687999C0.106768 0.74369 0.0656252 0.809203 0.0383161 0.880794C0.0110071 0.952386 -0.00193361 1.02866 0.000233093 1.10525C0.0023998 1.18184 0.0196314 1.25726 0.050944 1.32719C0.0822566 1.39712 0.127037 1.46021 0.182728 1.51283L5.43273 6.47117C5.54104 6.57356 5.68443 6.63061 5.83348 6.63061C5.98253 6.63061 6.12592 6.57356 6.23423 6.47117L11.4848 1.51283C11.5417 1.46055 11.5877 1.39748 11.62 1.32729C11.6523 1.2571 11.6704 1.18119 11.6731 1.10396C11.6759 1.02673 11.6633 0.949723 11.636 0.877415C11.6087 0.805107 11.5674 0.738937 11.5143 0.68275C11.4612 0.626563 11.3976 0.581479 11.3269 0.550115C11.2563 0.518751 11.1801 0.501734 11.1029 0.500051C11.0256 0.498369 10.9488 0.512054 10.8769 0.540313C10.8049 0.568572 10.7393 0.610841 10.6839 0.664665L5.83348 5.245L0.984228 0.664666Z" fill="currentColor"></path></svg>', u = R(), g && g.c(), y(r, "class", "label svelte-1g9pqha"), y(l, "class", "arrow"), he(
|
|
4703
4709
|
l,
|
|
4704
4710
|
"open",
|
|
4705
4711
|
/*open*/
|
|
@@ -4720,11 +4726,11 @@ function mo(e) {
|
|
|
4720
4726
|
/*handleKeyDown*/
|
|
4721
4727
|
e[11]
|
|
4722
4728
|
),
|
|
4723
|
-
ae(n, "click",
|
|
4729
|
+
ae(n, "click", li(
|
|
4724
4730
|
/*handleToggleDropdown*/
|
|
4725
4731
|
e[8]
|
|
4726
4732
|
)),
|
|
4727
|
-
|
|
4733
|
+
ii(mo.call(null, t)),
|
|
4728
4734
|
ae(
|
|
4729
4735
|
t,
|
|
4730
4736
|
"outclick",
|
|
@@ -4734,10 +4740,10 @@ function mo(e) {
|
|
|
4734
4740
|
], c = !0);
|
|
4735
4741
|
},
|
|
4736
4742
|
p(_, [C]) {
|
|
4737
|
-
var
|
|
4743
|
+
var P, b;
|
|
4738
4744
|
/*selected*/
|
|
4739
|
-
(
|
|
4740
|
-
_[3] ===
|
|
4745
|
+
(P = _[0]) != null && P.symbol && /*withSymbol*/
|
|
4746
|
+
_[3] === Oe.true ? h ? h.p(_, C) : (h = fr(_), h.c(), h.m(r, i)) : h && (h.d(1), h = null), C & /*selected, placeholder*/
|
|
4741
4747
|
5 && a !== (a = /*selected*/
|
|
4742
4748
|
(((b = _[0]) == null ? void 0 : b.currency) || /*placeholder*/
|
|
4743
4749
|
_[2]) + "") && oe(o, a), C & /*open*/
|
|
@@ -4755,37 +4761,37 @@ function mo(e) {
|
|
|
4755
4761
|
), C & /*disabled*/
|
|
4756
4762
|
16 && (n.disabled = /*disabled*/
|
|
4757
4763
|
_[4]), /*open*/
|
|
4758
|
-
_[7] ? g ? g.p(_, C) : (g =
|
|
4764
|
+
_[7] ? g ? g.p(_, C) : (g = pr(_), g.c(), g.m(t, null)) : g && (g.d(1), g = null);
|
|
4759
4765
|
},
|
|
4760
4766
|
i: N,
|
|
4761
4767
|
o: N,
|
|
4762
4768
|
d(_) {
|
|
4763
|
-
_ && B(t), h && h.d(), g && g.d(), c = !1,
|
|
4769
|
+
_ && B(t), h && h.d(), g && g.d(), c = !1, Te(f);
|
|
4764
4770
|
}
|
|
4765
4771
|
};
|
|
4766
4772
|
}
|
|
4767
|
-
const
|
|
4768
|
-
function
|
|
4769
|
-
let { options: r = [] } = t, { selected: i = null } = t, { placeholder: a =
|
|
4773
|
+
const vo = (e) => e.preventDefault();
|
|
4774
|
+
function Eo(e, t, n) {
|
|
4775
|
+
let { options: r = [] } = t, { selected: i = null } = t, { placeholder: a = k("select") } = t, { withSymbol: o = "true" } = t, { id: s } = t, { disabled: l = !1 } = t, { onChange: u = () => {
|
|
4770
4776
|
} } = t, c = -1, f, h = !1;
|
|
4771
4777
|
const g = () => {
|
|
4772
4778
|
r.length !== 0 && (n(7, h = !h), h && (n(5, c = r.findIndex((b) => (b == null ? void 0 : b.currency) === (i == null ? void 0 : i.currency))), setTimeout(() => f == null ? void 0 : f.focus(), 0), window.dispatchEvent(new CustomEvent("dropdown-opened", { detail: s }))));
|
|
4773
4779
|
}, v = (b) => {
|
|
4774
4780
|
b.detail !== s && h && n(7, h = !1);
|
|
4775
|
-
}, d = (b,
|
|
4776
|
-
n(7, h = !1), n(0, i = b), u && typeof u == "function" && u(b,
|
|
4781
|
+
}, d = (b, D) => () => {
|
|
4782
|
+
n(7, h = !1), n(0, i = b), u && typeof u == "function" && u(b, D);
|
|
4777
4783
|
}, _ = () => {
|
|
4778
4784
|
n(7, h = !1);
|
|
4779
4785
|
}, C = (b) => {
|
|
4780
|
-
h && (b.key ===
|
|
4786
|
+
h && (b.key === St.ArrowDown ? (b.preventDefault(), n(5, c = (c + 1) % r.length)) : b.key === St.ArrowUp ? (b.preventDefault(), n(5, c = (c - 1 + r.length) % r.length)) : b.key === St.Enter ? (b.preventDefault(), d(i, c)()) : b.key === St.Escape && n(7, h = !1));
|
|
4781
4787
|
};
|
|
4782
|
-
|
|
4788
|
+
Ar(() => {
|
|
4783
4789
|
window.addEventListener("dropdown-opened", v);
|
|
4784
|
-
}),
|
|
4790
|
+
}), hi(() => {
|
|
4785
4791
|
window.removeEventListener("dropdown-opened", v);
|
|
4786
4792
|
});
|
|
4787
|
-
function
|
|
4788
|
-
|
|
4793
|
+
function P(b) {
|
|
4794
|
+
qe[b ? "unshift" : "push"](() => {
|
|
4789
4795
|
f = b, n(6, f);
|
|
4790
4796
|
});
|
|
4791
4797
|
}
|
|
@@ -4806,17 +4812,17 @@ function bo(e, t, n) {
|
|
|
4806
4812
|
C,
|
|
4807
4813
|
s,
|
|
4808
4814
|
u,
|
|
4809
|
-
|
|
4815
|
+
P
|
|
4810
4816
|
];
|
|
4811
4817
|
}
|
|
4812
|
-
class
|
|
4818
|
+
class Cn extends Hn {
|
|
4813
4819
|
constructor(t) {
|
|
4814
|
-
super(),
|
|
4820
|
+
super(), Sn(
|
|
4815
4821
|
this,
|
|
4816
4822
|
t,
|
|
4823
|
+
Eo,
|
|
4817
4824
|
bo,
|
|
4818
|
-
|
|
4819
|
-
Dt,
|
|
4825
|
+
kt,
|
|
4820
4826
|
{
|
|
4821
4827
|
options: 1,
|
|
4822
4828
|
selected: 0,
|
|
@@ -4826,7 +4832,7 @@ class wn extends Sn {
|
|
|
4826
4832
|
disabled: 4,
|
|
4827
4833
|
onChange: 13
|
|
4828
4834
|
},
|
|
4829
|
-
|
|
4835
|
+
yo
|
|
4830
4836
|
);
|
|
4831
4837
|
}
|
|
4832
4838
|
get options() {
|
|
@@ -4872,15 +4878,15 @@ class wn extends Sn {
|
|
|
4872
4878
|
this.$$set({ onChange: t }), $();
|
|
4873
4879
|
}
|
|
4874
4880
|
}
|
|
4875
|
-
|
|
4876
|
-
function
|
|
4877
|
-
|
|
4881
|
+
Bn(Cn, { options: {}, selected: {}, placeholder: {}, withSymbol: {}, id: {}, disabled: { type: "Boolean" }, onChange: {} }, [], [], !0);
|
|
4882
|
+
function _o(e) {
|
|
4883
|
+
Tn(e, "svelte-2fhtvy", ".warningIcon.svelte-2fhtvy{line-height:1;margin-right:0.4rem}");
|
|
4878
4884
|
}
|
|
4879
|
-
function
|
|
4880
|
-
let t, n, r =
|
|
4885
|
+
function xo(e) {
|
|
4886
|
+
let t, n, r = k("balanceUnavailable") + "", i;
|
|
4881
4887
|
return {
|
|
4882
4888
|
c() {
|
|
4883
|
-
t = A("span"), t.innerHTML = '<svg fill="currentColor" width="20px" height="20px" viewBox="0 0 64 64" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve"><g><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z" style="fill-rule:nonzero;"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z" style="fill-rule:nonzero;"></path></g></svg>', n =
|
|
4889
|
+
t = A("span"), t.innerHTML = '<svg fill="currentColor" width="20px" height="20px" viewBox="0 0 64 64" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve"><g><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z" style="fill-rule:nonzero;"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z" style="fill-rule:nonzero;"></path></g></svg>', n = R(), i = q(r), y(t, "class", "warningIcon svelte-2fhtvy");
|
|
4884
4890
|
},
|
|
4885
4891
|
m(a, o) {
|
|
4886
4892
|
H(a, t, o), H(a, n, o), H(a, i, o);
|
|
@@ -4893,20 +4899,20 @@ function Eo(e) {
|
|
|
4893
4899
|
}
|
|
4894
4900
|
};
|
|
4895
4901
|
}
|
|
4896
|
-
class
|
|
4902
|
+
class jt extends Hn {
|
|
4897
4903
|
constructor(t) {
|
|
4898
|
-
super(),
|
|
4904
|
+
super(), Sn(this, t, null, xo, kt, {}, _o);
|
|
4899
4905
|
}
|
|
4900
4906
|
}
|
|
4901
|
-
|
|
4902
|
-
function
|
|
4903
|
-
An(e, "svelte-1mw4zse", '@charset "UTF-8";*{margin:0;padding:0}.playerAccountVault{max-width:400px;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:auto;font-family:inherit;overflow:hidden;gap:var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-small, 12px);background:var(--emw--widget-background, #F8F8F8);color:var(--emw--typography, #595959);padding:var(--emw--spacing-medium, 16px);position:relative}.playerAccountVault .closeButton{position:absolute;background:none;border:none;top:var(--emw--spacing-medium, 16px);right:var(--emw--spacing-small, 10px);line-height:0;cursor:pointer}.playerAccountVault .closeButton svg{fill:var(--emw--color-faded, #A0A29F)}.playerAccountVault .playerVaultContainer{width:100%;display:flex;justify-content:space-between;align-items:center;gap:var(--emw--spacing-small, 10px);border-radius:var(--emw--border-radius-smaller, 5px);box-sizing:border-box}.playerAccountVault .amountContainer{display:flex;align-items:center}.playerAccountVault .headerContainer{display:flex;width:100%;gap:var(--emw--spacing-small, 10px);justify-content:space-between;flex-direction:column}.playerAccountVault .headerContainer .headerTitle{font-family:inherit;color:var(--emw--color-secondary, #24B04F);font-size:var(--emw--font-size-large, 16px);font-weight:var(--emw--font-weight-normal, 400)}.playerAccountVault .headerContainer .totalAmount{margin-right:4px;color:var(--emw--color-faded, #A0A29F)}.playerAccountVault .exchangesContainer{width:100%;height:100%;box-sizing:border-box;position:relative;display:flex;flex-direction:column;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .exchangeHeader,.playerAccountVault .exchangesContainer .containerExchangeTo .exchangeHeader{font-size:inherit;font-family:inherit;font-family:inherit}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow{display:flex;align-items:center;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number]::-webkit-inner-spin-button,.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number]::-webkit-outer-spin-button,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]::-webkit-inner-spin-button,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number],.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]{-moz-appearance:textfield}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput{flex:1;min-width:50px;border:unset;height:var(--emw--base-height, 36px);font-size:var(--emw--font-size-medium, 14px);padding:0 var(--emw--spacing-small, 10px);border-radius:var(--emw--border-radius-small, 8px);background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));font-family:inherit;color:var(--emw--input-typography, #000)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput:focus,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput:focus{outline:none}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput[disabled],.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput[disabled]{color:var(--emw--input-disabled, #a0a29f)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput::placeholder,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput::placeholder{color:var(--emw--input-placeholder, #a0a29f)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .currenciesSelect,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .currenciesSelect{min-width:96px;border:unset;white-space:nowrap;height:var(--emw--base-height, 36px);padding:0 var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .currenciesSelect:focus,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .currenciesSelect:focus{outline:none}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer{display:flex;justify-content:space-between;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer.hasError,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer.hasError{color:var(--emw--color-error, #ed0909)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer.hasError span,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer.hasError span{color:var(--emw--color-error, #ed0909)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer .validationError,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer .validationError{flex:1}.playerAccountVault .exchangesContainer .containerExchangeFrom .playerBalance,.playerAccountVault .exchangesContainer .containerExchangeTo .playerBalance{white-space:nowrap;justify-content:flex-end}.playerAccountVault .exchangesContainer .containerExchangeFrom .playerBalance .amount,.playerAccountVault .exchangesContainer .containerExchangeTo .playerBalance .amount{color:var(--emw--color-faded, #A0A29F);margin-right:4px}.playerAccountVault .vaultsContainer{display:flex;flex-direction:column;width:100%}.playerAccountVault .vaultsContainer .vaultToggleButton{display:flex;align-items:center;justify-content:center;width:35px;height:35px;cursor:pointer;border:unset;align-self:flex-end;padding:var(--emw--spacing-small, 10px);background:var(--emw--color-primary, #24B04F);border-radius:var(--emw--border-radius-small, 8px)}.playerAccountVault .vaultsContainer .vaultToggleButton .vaultToggleIcon{transform:rotateZ(0deg);transition:all 0.3s ease-in-out}.playerAccountVault .vaultsContainer .vaultToggleButton .vaultToggleIcon path{fill:var(--emw--color-white, #fff)}.playerAccountVault .vaultsContainer .vaultToggleButton.active .vaultToggleIcon{transform:rotateZ(180deg)}.playerAccountVault .vaultsContainer .vaultDropdown{width:80%;max-height:0;height:200px;margin:0 auto;display:flex;flex-direction:column;overflow:auto;opacity:0;scrollbar-width:thin;gap:var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-medium, 14px);color:var(--emw--color-white, #fff);font-family:inherit;transition:max-height 0.4s ease-out, opacity 0.4s ease-out}.playerAccountVault .vaultsContainer .vaultDropdown .vaultItem{display:inherit;font-size:var(--emw--font-size-medium, 14px);justify-content:space-between;width:100%;margin:0 auto;box-sizing:border-box;height:var(--emw--base-height, 36px);padding:var(--emw--spacing-small, 10px);background:var(--emw--color-primary, #24B04F);border-radius:var(--emw--border-radius-small, 8px)}.playerAccountVault .vaultsContainer .vaultDropdown.expanded{transition:max-height 1s ease-in, opacity 0.4s ease-in;max-height:1000vh;opacity:1}.playerAccountVault .notificationsContainer{width:100%;min-height:var(--emw--base-height, 36px);padding:0px}.playerAccountVault .notificationsContainer.error{color:var(--emw--color-error, #FF2424)}.playerAccountVault .notificationsContainer.success{color:var(--emw--color-success, #24B04F)}.playerAccountVault .feesContainer{width:100%;height:var(--emw--base-height, 36px);display:flex;align-items:center;justify-content:space-between;background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));border-radius:var(--emw--border-radius-small, 8px);padding:0 var(--emw--spacing-small, 10px);box-sizing:border-box}.playerAccountVault .feesContainer .feesLabel{color:var(--emw--color-faded, #A0A29F)}.playerAccountVault .actionsContainer{width:100%;height:100%;display:flex;justify-content:space-between;align-items:center;box-sizing:border-box;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .actionsContainer button{flex:1;height:var(--emw--base-height, 36px);border:none;cursor:pointer;font-family:inherit;font-size:var(--emw--button-font-size, 14px);border-radius:var(--emw--border-radius-small, 8px);font-weight:var(--emw--font-weight-bold, 500);transition:background 0.3s ease, color 0.3s ease, filter 0.3s ease}.playerAccountVault .actionsContainer .exchangeButton{background:var(--emw--color-primary, #24B04F);color:var(--emw--button-typography, #fff)}.playerAccountVault .actionsContainer .exchangeButton:hover{filter:brightness(110%)}.playerAccountVault .actionsContainer .resetButton{background:transparent;color:var(--emw--color-primary, #24B04F);border:1px solid var(--emw--color-primary, #24B04F)}.playerAccountVault .actionsContainer .resetButton:hover{background:var(--emw--color-primary, #24B04F);color:var(--emw--button-typography, #fff)}.playerAccountVault .actionsContainer .exchangeButton.disabled{cursor:default;filter:none;background:var(--emw--button-disabled, #595959)}.playerAccountVault .actionsContainer .exchangeButton.disabled:hover{background:var(--emw--button-disabled, #595959)}.playerAccountVault .actionsContainer .exchangeButton.disabled.pending{background:var(--emw--color-primary, #24B04F);pointer-events:none;opacity:0.5}.playerAccountVault .skeleton{background-color:rgba(0, 0, 0, 0.11);height:auto;min-height:0.1rem;-webkit-animation:loading 1.5s ease-in-out 0.5s infinite;animation:loading 1.5s ease-in-out 0.5s infinite}.playerAccountVault .skeleton::before{content:" "}@keyframes loading{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.playerAccountVault .exchangeContainer{display:flex;flex-direction:column;gap:4px}');
|
|
4907
|
+
Bn(jt, {}, [], [], !0);
|
|
4908
|
+
function wo(e) {
|
|
4909
|
+
Tn(e, "svelte-1mw4zse", '@charset "UTF-8";*{margin:0;padding:0}.playerAccountVault{max-width:400px;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:auto;font-family:inherit;overflow:hidden;gap:var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-small, 12px);background:var(--emw--widget-background, #F8F8F8);color:var(--emw--typography, #595959);padding:var(--emw--spacing-medium, 16px);position:relative}.playerAccountVault .closeButton{position:absolute;background:none;border:none;top:var(--emw--spacing-medium, 16px);right:var(--emw--spacing-small, 10px);line-height:0;cursor:pointer}.playerAccountVault .closeButton svg{fill:var(--emw--color-faded, #A0A29F)}.playerAccountVault .playerVaultContainer{width:100%;display:flex;justify-content:space-between;align-items:center;gap:var(--emw--spacing-small, 10px);border-radius:var(--emw--border-radius-smaller, 5px);box-sizing:border-box}.playerAccountVault .amountContainer{display:flex;align-items:center}.playerAccountVault .headerContainer{display:flex;width:100%;gap:var(--emw--spacing-small, 10px);justify-content:space-between;flex-direction:column}.playerAccountVault .headerContainer .headerTitle{font-family:inherit;color:var(--emw--color-secondary, #24B04F);font-size:var(--emw--font-size-large, 16px);font-weight:var(--emw--font-weight-normal, 400)}.playerAccountVault .headerContainer .totalAmount{margin-right:4px;color:var(--emw--color-faded, #A0A29F)}.playerAccountVault .exchangesContainer{width:100%;height:100%;box-sizing:border-box;position:relative;display:flex;flex-direction:column;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .exchangeHeader,.playerAccountVault .exchangesContainer .containerExchangeTo .exchangeHeader{font-size:inherit;font-family:inherit;font-family:inherit}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow{display:flex;align-items:center;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number]::-webkit-inner-spin-button,.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number]::-webkit-outer-spin-button,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]::-webkit-inner-spin-button,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number],.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]{-moz-appearance:textfield}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput{flex:1;min-width:50px;border:unset;height:var(--emw--base-height, 36px);font-size:var(--emw--font-size-medium, 14px);padding:0 var(--emw--spacing-small, 10px);border-radius:var(--emw--border-radius-small, 8px);background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));font-family:inherit;color:var(--emw--input-typography, #000)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput:focus,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput:focus{outline:none}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput[disabled],.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput[disabled]{color:var(--emw--input-disabled, #a0a29f)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput::placeholder,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput::placeholder{color:var(--emw--input-placeholder, #a0a29f)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .currenciesSelect,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .currenciesSelect{min-width:96px;border:unset;white-space:nowrap;height:var(--emw--base-height, 36px);padding:0 var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .currenciesSelect:focus,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .currenciesSelect:focus{outline:none}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer{display:flex;justify-content:space-between;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer.hasError,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer.hasError{color:var(--emw--color-error, #ed0909)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer.hasError span,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer.hasError span{color:var(--emw--color-error, #ed0909)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer .validationError,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer .validationError{flex:1}.playerAccountVault .exchangesContainer .containerExchangeFrom .playerBalance,.playerAccountVault .exchangesContainer .containerExchangeTo .playerBalance{white-space:nowrap;justify-content:flex-end}.playerAccountVault .exchangesContainer .containerExchangeFrom .playerBalance .amount,.playerAccountVault .exchangesContainer .containerExchangeTo .playerBalance .amount{color:var(--emw--color-faded, #A0A29F);margin-right:4px}.playerAccountVault .vaultsContainer{display:flex;flex-direction:column;width:100%}.playerAccountVault .vaultsContainer .vaultToggleButton{display:flex;align-items:center;justify-content:center;width:35px;height:35px;cursor:pointer;border:unset;align-self:flex-end;padding:var(--emw--spacing-small, 10px);background:var(--emw--color-primary, #24B04F);border-radius:var(--emw--border-radius-small, 8px)}.playerAccountVault .vaultsContainer .vaultToggleButton .vaultToggleIcon{transform:rotateZ(0deg);transition:all 0.3s ease-in-out}.playerAccountVault .vaultsContainer .vaultToggleButton .vaultToggleIcon path{fill:var(--emw--color-white, #fff)}.playerAccountVault .vaultsContainer .vaultToggleButton.active .vaultToggleIcon{transform:rotateZ(180deg)}.playerAccountVault .vaultsContainer .vaultDropdown{width:80%;max-height:0;height:200px;margin:0 auto;display:flex;flex-direction:column;overflow:auto;opacity:0;scrollbar-width:thin;gap:var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-medium, 14px);color:var(--emw--color-white, #fff);font-family:inherit;transition:max-height 0.4s ease-out, opacity 0.4s ease-out}.playerAccountVault .vaultsContainer .vaultDropdown .vaultItem{display:inherit;font-size:var(--emw--font-size-medium, 14px);justify-content:space-between;width:100%;margin:0 auto;box-sizing:border-box;height:var(--emw--base-height, 36px);padding:var(--emw--spacing-small, 10px);background:var(--emw--color-primary, #24B04F);border-radius:var(--emw--border-radius-small, 8px)}.playerAccountVault .vaultsContainer .vaultDropdown.expanded{transition:max-height 1s ease-in, opacity 0.4s ease-in;max-height:1000vh;opacity:1}.playerAccountVault .notificationsContainer{width:100%;min-height:var(--emw--base-height, 36px);padding:0px}.playerAccountVault .notificationsContainer.error{color:var(--emw--color-error, #FF2424)}.playerAccountVault .notificationsContainer.success{color:var(--emw--color-success, #24B04F)}.playerAccountVault .feesContainer{width:100%;height:var(--emw--base-height, 36px);display:flex;align-items:center;justify-content:space-between;background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));border-radius:var(--emw--border-radius-small, 8px);padding:0 var(--emw--spacing-small, 10px);box-sizing:border-box}.playerAccountVault .feesContainer .feesLabel{color:var(--emw--color-faded, #A0A29F)}.playerAccountVault .actionsContainer{width:100%;height:100%;display:flex;justify-content:space-between;align-items:center;box-sizing:border-box;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .actionsContainer button{flex:1;height:var(--emw--base-height, 36px);border:none;cursor:pointer;font-family:inherit;font-size:var(--emw--button-font-size, 14px);border-radius:var(--emw--border-radius-small, 8px);font-weight:var(--emw--font-weight-bold, 500);transition:background 0.3s ease, color 0.3s ease, filter 0.3s ease}.playerAccountVault .actionsContainer .exchangeButton{background:var(--emw--color-primary, #24B04F);color:var(--emw--button-typography, #fff)}.playerAccountVault .actionsContainer .exchangeButton:hover{filter:brightness(110%)}.playerAccountVault .actionsContainer .resetButton{background:transparent;color:var(--emw--color-primary, #24B04F);border:1px solid var(--emw--color-primary, #24B04F)}.playerAccountVault .actionsContainer .resetButton:hover{background:var(--emw--color-primary, #24B04F);color:var(--emw--button-typography, #fff)}.playerAccountVault .actionsContainer .exchangeButton.disabled{cursor:default;filter:none;background:var(--emw--button-disabled, #595959)}.playerAccountVault .actionsContainer .exchangeButton.disabled:hover{background:var(--emw--button-disabled, #595959)}.playerAccountVault .actionsContainer .exchangeButton.disabled.pending{background:var(--emw--color-primary, #24B04F);pointer-events:none;opacity:0.5}.playerAccountVault .skeleton{background-color:rgba(0, 0, 0, 0.11);height:auto;min-height:0.1rem;-webkit-animation:loading 1.5s ease-in-out 0.5s infinite;animation:loading 1.5s ease-in-out 0.5s infinite}.playerAccountVault .skeleton::before{content:" "}@keyframes loading{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.playerAccountVault .exchangeContainer{display:flex;flex-direction:column;gap:4px}');
|
|
4904
4910
|
}
|
|
4905
|
-
function
|
|
4911
|
+
function dr(e, t, n) {
|
|
4906
4912
|
const r = e.slice();
|
|
4907
4913
|
return r[62] = t[n], r;
|
|
4908
4914
|
}
|
|
4909
|
-
function
|
|
4915
|
+
function mr(e) {
|
|
4910
4916
|
let t, n, r;
|
|
4911
4917
|
return {
|
|
4912
4918
|
c() {
|
|
@@ -4926,9 +4932,9 @@ function gr(e) {
|
|
|
4926
4932
|
}
|
|
4927
4933
|
};
|
|
4928
4934
|
}
|
|
4929
|
-
function
|
|
4935
|
+
function yr(e) {
|
|
4930
4936
|
let t, n, r, i;
|
|
4931
|
-
const a = [
|
|
4937
|
+
const a = [Co, Ao], o = [];
|
|
4932
4938
|
function s(l, u) {
|
|
4933
4939
|
return !/*isBalanceFetched*/
|
|
4934
4940
|
l[16] || !/*isCurrenciesFetched*/
|
|
@@ -4936,16 +4942,16 @@ function dr(e) {
|
|
|
4936
4942
|
}
|
|
4937
4943
|
return t = s(e), n = o[t] = a[t](e), {
|
|
4938
4944
|
c() {
|
|
4939
|
-
n.c(), r =
|
|
4945
|
+
n.c(), r = si();
|
|
4940
4946
|
},
|
|
4941
4947
|
m(l, u) {
|
|
4942
4948
|
o[t].m(l, u), H(l, r, u), i = !0;
|
|
4943
4949
|
},
|
|
4944
4950
|
p(l, u) {
|
|
4945
4951
|
let c = t;
|
|
4946
|
-
t = s(l), t === c ? o[t].p(l, u) : (
|
|
4952
|
+
t = s(l), t === c ? o[t].p(l, u) : (ke(), Z(o[c], 1, 1, () => {
|
|
4947
4953
|
o[c] = null;
|
|
4948
|
-
}),
|
|
4954
|
+
}), Ve(), n = o[t], n ? n.p(l, u) : (n = o[t] = a[t](l), n.c()), j(n, 1), n.m(r.parentNode, r));
|
|
4949
4955
|
},
|
|
4950
4956
|
i(l) {
|
|
4951
4957
|
i || (j(n), i = !0);
|
|
@@ -4958,9 +4964,9 @@ function dr(e) {
|
|
|
4958
4964
|
}
|
|
4959
4965
|
};
|
|
4960
4966
|
}
|
|
4961
|
-
function
|
|
4967
|
+
function Ao(e) {
|
|
4962
4968
|
let t, n, r, i;
|
|
4963
|
-
const a = [
|
|
4969
|
+
const a = [So, To], o = [];
|
|
4964
4970
|
function s(l, u) {
|
|
4965
4971
|
var c;
|
|
4966
4972
|
return (
|
|
@@ -4977,9 +4983,9 @@ function xo(e) {
|
|
|
4977
4983
|
},
|
|
4978
4984
|
p(l, u) {
|
|
4979
4985
|
let c = n;
|
|
4980
|
-
n = s(l), n === c ? o[n].p(l, u) : (
|
|
4986
|
+
n = s(l), n === c ? o[n].p(l, u) : (ke(), Z(o[c], 1, 1, () => {
|
|
4981
4987
|
o[c] = null;
|
|
4982
|
-
}),
|
|
4988
|
+
}), Ve(), r = o[n], r ? r.p(l, u) : (r = o[n] = a[n](l), r.c()), j(r, 1), r.m(t, null));
|
|
4983
4989
|
},
|
|
4984
4990
|
i(l) {
|
|
4985
4991
|
i || (j(r), i = !0);
|
|
@@ -4992,7 +4998,7 @@ function xo(e) {
|
|
|
4992
4998
|
}
|
|
4993
4999
|
};
|
|
4994
5000
|
}
|
|
4995
|
-
function
|
|
5001
|
+
function Co(e) {
|
|
4996
5002
|
let t;
|
|
4997
5003
|
return {
|
|
4998
5004
|
c() {
|
|
@@ -5009,7 +5015,7 @@ function wo(e) {
|
|
|
5009
5015
|
}
|
|
5010
5016
|
};
|
|
5011
5017
|
}
|
|
5012
|
-
function
|
|
5018
|
+
function To(e) {
|
|
5013
5019
|
var l, u;
|
|
5014
5020
|
let t, n, r = (
|
|
5015
5021
|
/*playerBalance*/
|
|
@@ -5020,7 +5026,7 @@ function Ao(e) {
|
|
|
5020
5026
|
), s;
|
|
5021
5027
|
return {
|
|
5022
5028
|
c() {
|
|
5023
|
-
t = A("span"), t.textContent = `${
|
|
5029
|
+
t = A("span"), t.textContent = `${k("totalBalance")}`, n = R(), i = q(r), a = R(), s = q(o), y(t, "class", "totalAmount");
|
|
5024
5030
|
},
|
|
5025
5031
|
m(c, f) {
|
|
5026
5032
|
H(c, t, f), H(c, n, f), H(c, i, f), H(c, a, f), H(c, s, f);
|
|
@@ -5040,14 +5046,14 @@ function Ao(e) {
|
|
|
5040
5046
|
}
|
|
5041
5047
|
};
|
|
5042
5048
|
}
|
|
5043
|
-
function
|
|
5049
|
+
function So(e) {
|
|
5044
5050
|
let t, n;
|
|
5045
|
-
return t = new
|
|
5051
|
+
return t = new jt({}), {
|
|
5046
5052
|
c() {
|
|
5047
|
-
|
|
5053
|
+
pt(t.$$.fragment);
|
|
5048
5054
|
},
|
|
5049
5055
|
m(r, i) {
|
|
5050
|
-
|
|
5056
|
+
Ke(t, r, i), n = !0;
|
|
5051
5057
|
},
|
|
5052
5058
|
p: N,
|
|
5053
5059
|
i(r) {
|
|
@@ -5057,13 +5063,13 @@ function Co(e) {
|
|
|
5057
5063
|
Z(t.$$.fragment, r), n = !1;
|
|
5058
5064
|
},
|
|
5059
5065
|
d(r) {
|
|
5060
|
-
|
|
5066
|
+
Qe(t, r);
|
|
5061
5067
|
}
|
|
5062
5068
|
};
|
|
5063
5069
|
}
|
|
5064
|
-
function
|
|
5070
|
+
function Bo(e) {
|
|
5065
5071
|
let t, n, r, i, a, o, s, l, u;
|
|
5066
|
-
const c = [
|
|
5072
|
+
const c = [Lo, Io], f = [];
|
|
5067
5073
|
function h(g, v) {
|
|
5068
5074
|
var d;
|
|
5069
5075
|
return (
|
|
@@ -5076,7 +5082,7 @@ function To(e) {
|
|
|
5076
5082
|
t = A("div"), n = A("p"), r = q(
|
|
5077
5083
|
/*validationError*/
|
|
5078
5084
|
e[13]
|
|
5079
|
-
), i =
|
|
5085
|
+
), i = R(), a = A("div"), s.c(), y(n, "class", "validationError"), y(a, "class", "playerBalance amountContainer"), y(t, "class", l = "balanceContainer " + /*validationError*/
|
|
5080
5086
|
(e[13] ? "hasError" : ""));
|
|
5081
5087
|
},
|
|
5082
5088
|
m(g, v) {
|
|
@@ -5090,9 +5096,9 @@ function To(e) {
|
|
|
5090
5096
|
g[13]
|
|
5091
5097
|
);
|
|
5092
5098
|
let d = o;
|
|
5093
|
-
o = h(g), o === d ? f[o].p(g, v) : (
|
|
5099
|
+
o = h(g), o === d ? f[o].p(g, v) : (ke(), Z(f[d], 1, 1, () => {
|
|
5094
5100
|
f[d] = null;
|
|
5095
|
-
}),
|
|
5101
|
+
}), Ve(), s = f[o], s ? s.p(g, v) : (s = f[o] = c[o](g), s.c()), j(s, 1), s.m(a, null)), (!u || v[0] & /*validationError*/
|
|
5096
5102
|
8192 && l !== (l = "balanceContainer " + /*validationError*/
|
|
5097
5103
|
(g[13] ? "hasError" : ""))) && y(t, "class", l);
|
|
5098
5104
|
},
|
|
@@ -5107,7 +5113,7 @@ function To(e) {
|
|
|
5107
5113
|
}
|
|
5108
5114
|
};
|
|
5109
5115
|
}
|
|
5110
|
-
function
|
|
5116
|
+
function Ho(e) {
|
|
5111
5117
|
let t;
|
|
5112
5118
|
return {
|
|
5113
5119
|
c() {
|
|
@@ -5124,7 +5130,7 @@ function So(e) {
|
|
|
5124
5130
|
}
|
|
5125
5131
|
};
|
|
5126
5132
|
}
|
|
5127
|
-
function
|
|
5133
|
+
function Io(e) {
|
|
5128
5134
|
var l, u;
|
|
5129
5135
|
let t, n, r = (
|
|
5130
5136
|
/*selectedCurrencyFrom*/
|
|
@@ -5135,7 +5141,7 @@ function Bo(e) {
|
|
|
5135
5141
|
), s;
|
|
5136
5142
|
return {
|
|
5137
5143
|
c() {
|
|
5138
|
-
t = A("span"), t.textContent = `${
|
|
5144
|
+
t = A("span"), t.textContent = `${k("currentBalance")}`, n = R(), i = q(r), a = R(), s = q(o), y(t, "class", "amount");
|
|
5139
5145
|
},
|
|
5140
5146
|
m(c, f) {
|
|
5141
5147
|
H(c, t, f), H(c, n, f), H(c, i, f), H(c, a, f), H(c, s, f);
|
|
@@ -5155,14 +5161,14 @@ function Bo(e) {
|
|
|
5155
5161
|
}
|
|
5156
5162
|
};
|
|
5157
5163
|
}
|
|
5158
|
-
function
|
|
5164
|
+
function Lo(e) {
|
|
5159
5165
|
let t, n;
|
|
5160
|
-
return t = new
|
|
5166
|
+
return t = new jt({}), {
|
|
5161
5167
|
c() {
|
|
5162
|
-
|
|
5168
|
+
pt(t.$$.fragment);
|
|
5163
5169
|
},
|
|
5164
5170
|
m(r, i) {
|
|
5165
|
-
|
|
5171
|
+
Ke(t, r, i), n = !0;
|
|
5166
5172
|
},
|
|
5167
5173
|
p: N,
|
|
5168
5174
|
i(r) {
|
|
@@ -5172,13 +5178,13 @@ function Ho(e) {
|
|
|
5172
5178
|
Z(t.$$.fragment, r), n = !1;
|
|
5173
5179
|
},
|
|
5174
5180
|
d(r) {
|
|
5175
|
-
|
|
5181
|
+
Qe(t, r);
|
|
5176
5182
|
}
|
|
5177
5183
|
};
|
|
5178
5184
|
}
|
|
5179
|
-
function
|
|
5185
|
+
function No(e) {
|
|
5180
5186
|
let t, n, r, i;
|
|
5181
|
-
const a = [
|
|
5187
|
+
const a = [Ro, Po], o = [];
|
|
5182
5188
|
function s(l, u) {
|
|
5183
5189
|
var c;
|
|
5184
5190
|
return (
|
|
@@ -5195,9 +5201,9 @@ function Io(e) {
|
|
|
5195
5201
|
},
|
|
5196
5202
|
p(l, u) {
|
|
5197
5203
|
let c = n;
|
|
5198
|
-
n = s(l), n === c ? o[n].p(l, u) : (
|
|
5204
|
+
n = s(l), n === c ? o[n].p(l, u) : (ke(), Z(o[c], 1, 1, () => {
|
|
5199
5205
|
o[c] = null;
|
|
5200
|
-
}),
|
|
5206
|
+
}), Ve(), r = o[n], r ? r.p(l, u) : (r = o[n] = a[n](l), r.c()), j(r, 1), r.m(t, null));
|
|
5201
5207
|
},
|
|
5202
5208
|
i(l) {
|
|
5203
5209
|
i || (j(r), i = !0);
|
|
@@ -5210,7 +5216,7 @@ function Io(e) {
|
|
|
5210
5216
|
}
|
|
5211
5217
|
};
|
|
5212
5218
|
}
|
|
5213
|
-
function
|
|
5219
|
+
function Oo(e) {
|
|
5214
5220
|
let t;
|
|
5215
5221
|
return {
|
|
5216
5222
|
c() {
|
|
@@ -5227,7 +5233,7 @@ function Lo(e) {
|
|
|
5227
5233
|
}
|
|
5228
5234
|
};
|
|
5229
5235
|
}
|
|
5230
|
-
function
|
|
5236
|
+
function Po(e) {
|
|
5231
5237
|
var l, u;
|
|
5232
5238
|
let t, n, r = (
|
|
5233
5239
|
/*selectedCurrencyTo*/
|
|
@@ -5238,7 +5244,7 @@ function No(e) {
|
|
|
5238
5244
|
), s;
|
|
5239
5245
|
return {
|
|
5240
5246
|
c() {
|
|
5241
|
-
t = A("span"), t.textContent = `${
|
|
5247
|
+
t = A("span"), t.textContent = `${k("currentBalance")}`, n = R(), i = q(r), a = R(), s = q(o), y(t, "class", "amount");
|
|
5242
5248
|
},
|
|
5243
5249
|
m(c, f) {
|
|
5244
5250
|
H(c, t, f), H(c, n, f), H(c, i, f), H(c, a, f), H(c, s, f);
|
|
@@ -5258,14 +5264,14 @@ function No(e) {
|
|
|
5258
5264
|
}
|
|
5259
5265
|
};
|
|
5260
5266
|
}
|
|
5261
|
-
function
|
|
5267
|
+
function Ro(e) {
|
|
5262
5268
|
let t, n;
|
|
5263
|
-
return t = new
|
|
5269
|
+
return t = new jt({}), {
|
|
5264
5270
|
c() {
|
|
5265
|
-
|
|
5271
|
+
pt(t.$$.fragment);
|
|
5266
5272
|
},
|
|
5267
5273
|
m(r, i) {
|
|
5268
|
-
|
|
5274
|
+
Ke(t, r, i), n = !0;
|
|
5269
5275
|
},
|
|
5270
5276
|
p: N,
|
|
5271
5277
|
i(r) {
|
|
@@ -5275,20 +5281,20 @@ function Po(e) {
|
|
|
5275
5281
|
Z(t.$$.fragment, r), n = !1;
|
|
5276
5282
|
},
|
|
5277
5283
|
d(r) {
|
|
5278
|
-
|
|
5284
|
+
Qe(t, r);
|
|
5279
5285
|
}
|
|
5280
5286
|
};
|
|
5281
5287
|
}
|
|
5282
|
-
function
|
|
5283
|
-
let t, n, r, i, a, o, s, l, u, c, f =
|
|
5288
|
+
function br(e) {
|
|
5289
|
+
let t, n, r, i, a, o, s, l, u, c, f = Ot(
|
|
5284
5290
|
/*dropDownVaults*/
|
|
5285
5291
|
e[19]
|
|
5286
5292
|
), h = [];
|
|
5287
5293
|
for (let g = 0; g < f.length; g += 1)
|
|
5288
|
-
h[g] =
|
|
5294
|
+
h[g] = vr(dr(e, f, g));
|
|
5289
5295
|
return {
|
|
5290
5296
|
c() {
|
|
5291
|
-
t = A("div"), n = A("button"), r =
|
|
5297
|
+
t = A("div"), n = A("button"), r = kn("svg"), i = kn("path"), o = R(), s = A("div");
|
|
5292
5298
|
for (let g = 0; g < h.length; g += 1)
|
|
5293
5299
|
h[g].c();
|
|
5294
5300
|
y(i, "d", "M0.984228 0.664666C0.928537 0.612038 0.863025 0.570896 0.791433 0.543587C0.719842 0.516278 0.643572 0.503337 0.566979 0.505504C0.490386 0.50767 0.41497 0.524902 0.345037 0.556215C0.275103 0.587527 0.212022 0.632308 0.159395 0.687999C0.106768 0.74369 0.0656252 0.809203 0.0383161 0.880794C0.0110071 0.952386 -0.00193361 1.02866 0.000233093 1.10525C0.0023998 1.18184 0.0196314 1.25726 0.050944 1.32719C0.0822566 1.39712 0.127037 1.46021 0.182728 1.51283L5.43273 6.47117C5.54104 6.57356 5.68443 6.63061 5.83348 6.63061C5.98253 6.63061 6.12592 6.57356 6.23423 6.47117L11.4848 1.51283C11.5417 1.46055 11.5877 1.39748 11.62 1.32729C11.6523 1.2571 11.6704 1.18119 11.6731 1.10396C11.6759 1.02673 11.6633 0.949723 11.636 0.877415C11.6087 0.805107 11.5674 0.738937 11.5143 0.68275C11.4612 0.626563 11.3976 0.581479 11.3269 0.550115C11.2563 0.518751 11.1801 0.501734 11.1029 0.500051C11.0256 0.498369 10.9488 0.512054 10.8769 0.540313C10.8049 0.568572 10.7393 0.610841 10.6839 0.664665L5.83348 5.245L0.984228 0.664666Z"), y(i, "fill", "currentColor"), y(r, "class", "vaultToggleIcon"), y(r, "width", "12"), y(r, "height", "7"), y(r, "viewBox", "0 0 12 7"), y(r, "fill", "currentColor"), y(r, "xmlns", "http://www.w3.org/2000/svg"), y(n, "type", "button"), y(n, "class", a = "vaultToggleButton " + /*isVaultDropDownToggled*/
|
|
@@ -5314,14 +5320,14 @@ function mr(e) {
|
|
|
5314
5320
|
(g[15] && /*dropDownVaults*/
|
|
5315
5321
|
g[19].length > 0 ? "active" : "")) && y(n, "class", a), v[0] & /*dropDownVaults*/
|
|
5316
5322
|
524288) {
|
|
5317
|
-
f =
|
|
5323
|
+
f = Ot(
|
|
5318
5324
|
/*dropDownVaults*/
|
|
5319
5325
|
g[19]
|
|
5320
5326
|
);
|
|
5321
5327
|
let d;
|
|
5322
5328
|
for (d = 0; d < f.length; d += 1) {
|
|
5323
|
-
const _ =
|
|
5324
|
-
h[d] ? h[d].p(_, v) : (h[d] =
|
|
5329
|
+
const _ = dr(g, f, d);
|
|
5330
|
+
h[d] ? h[d].p(_, v) : (h[d] = vr(_), h[d].c(), h[d].m(s, null));
|
|
5325
5331
|
}
|
|
5326
5332
|
for (; d < h.length; d += 1)
|
|
5327
5333
|
h[d].d(1);
|
|
@@ -5333,11 +5339,11 @@ function mr(e) {
|
|
|
5333
5339
|
g[19].length > 0 ? "expanded" : "")) && y(s, "class", l);
|
|
5334
5340
|
},
|
|
5335
5341
|
d(g) {
|
|
5336
|
-
g && B(t),
|
|
5342
|
+
g && B(t), xr(h, g), u = !1, c();
|
|
5337
5343
|
}
|
|
5338
5344
|
};
|
|
5339
5345
|
}
|
|
5340
|
-
function
|
|
5346
|
+
function vr(e) {
|
|
5341
5347
|
var c, f;
|
|
5342
5348
|
let t, n, r = (
|
|
5343
5349
|
/*vault*/
|
|
@@ -5348,7 +5354,7 @@ function yr(e) {
|
|
|
5348
5354
|
), l, u;
|
|
5349
5355
|
return {
|
|
5350
5356
|
c() {
|
|
5351
|
-
t = A("div"), n = A("p"), i = q(r), a =
|
|
5357
|
+
t = A("div"), n = A("p"), i = q(r), a = R(), o = A("p"), l = q(s), u = R(), y(t, "class", "vaultItem");
|
|
5352
5358
|
},
|
|
5353
5359
|
m(h, g) {
|
|
5354
5360
|
H(h, t, g), E(t, n), E(n, i), E(t, a), E(t, o), E(o, l), E(t, u);
|
|
@@ -5366,7 +5372,7 @@ function yr(e) {
|
|
|
5366
5372
|
}
|
|
5367
5373
|
};
|
|
5368
5374
|
}
|
|
5369
|
-
function
|
|
5375
|
+
function Do(e) {
|
|
5370
5376
|
var r, i, a, o;
|
|
5371
5377
|
let t = `${/*currentFee*/
|
|
5372
5378
|
((i = (r = e[11]) == null ? void 0 : r.fees[0]) == null ? void 0 : i.amount) || 0} ${/*currentFee*/
|
|
@@ -5390,8 +5396,8 @@ function Oo(e) {
|
|
|
5390
5396
|
}
|
|
5391
5397
|
};
|
|
5392
5398
|
}
|
|
5393
|
-
function
|
|
5394
|
-
let t =
|
|
5399
|
+
function Mo(e) {
|
|
5400
|
+
let t = k("feesUnavailable") + "", n;
|
|
5395
5401
|
return {
|
|
5396
5402
|
c() {
|
|
5397
5403
|
n = q(t);
|
|
@@ -5405,22 +5411,22 @@ function Ro(e) {
|
|
|
5405
5411
|
}
|
|
5406
5412
|
};
|
|
5407
5413
|
}
|
|
5408
|
-
function
|
|
5414
|
+
function ko(e) {
|
|
5409
5415
|
var W;
|
|
5410
|
-
let t, n, r, i, a, o, s, l, u, c, f, h, g, v, d, _, C,
|
|
5416
|
+
let t, n, r, i, a, o, s, l, u, c, f, h, g, v, d, _, C, P, b, D, M, X, ve, se, z, fe, Ee, ue, pe, Se, Y, ne, ge, at, Be, Fe, bt, Ge, ot, le, _e = k(
|
|
5411
5417
|
/*fetchResponse*/
|
|
5412
5418
|
((W = e[12]) == null ? void 0 : W.message) || ""
|
|
5413
|
-
) + "",
|
|
5419
|
+
) + "", He, xe, we, $e, re, Ie = k("exchange") + "", vt, Ae, ie, st, lt, J = (
|
|
5414
5420
|
/*showclosebutton*/
|
|
5415
|
-
e[3] ===
|
|
5421
|
+
e[3] === Oe.true && mr(e)
|
|
5416
5422
|
), G = (
|
|
5417
5423
|
/*showtotalbalance*/
|
|
5418
|
-
e[2] ===
|
|
5424
|
+
e[2] === Oe.true && yr(e)
|
|
5419
5425
|
);
|
|
5420
|
-
function
|
|
5426
|
+
function Wt(m) {
|
|
5421
5427
|
e[39](m);
|
|
5422
5428
|
}
|
|
5423
|
-
let
|
|
5429
|
+
let Et = {
|
|
5424
5430
|
id: "senderSelect",
|
|
5425
5431
|
withSymbol: (
|
|
5426
5432
|
/*showcurrencysymbol*/
|
|
@@ -5439,19 +5445,19 @@ function Do(e) {
|
|
|
5439
5445
|
)
|
|
5440
5446
|
};
|
|
5441
5447
|
/*selectedCurrencyFrom*/
|
|
5442
|
-
e[5] !== void 0 && (
|
|
5443
|
-
e[5]), d = new
|
|
5444
|
-
const
|
|
5445
|
-
function
|
|
5448
|
+
e[5] !== void 0 && (Et.selected = /*selectedCurrencyFrom*/
|
|
5449
|
+
e[5]), d = new Cn({ props: Et }), qe.push(() => Un(d, "selected", Wt));
|
|
5450
|
+
const _t = [Ho, Bo], de = [];
|
|
5451
|
+
function ut(m, S) {
|
|
5446
5452
|
return !/*isBalanceFetched*/
|
|
5447
5453
|
m[16] || !/*isCurrenciesFetched*/
|
|
5448
5454
|
m[17] ? 0 : 1;
|
|
5449
5455
|
}
|
|
5450
|
-
|
|
5451
|
-
function
|
|
5456
|
+
P = ut(e), b = de[P] = _t[P](e);
|
|
5457
|
+
function Xt(m) {
|
|
5452
5458
|
e[41](m);
|
|
5453
5459
|
}
|
|
5454
|
-
let
|
|
5460
|
+
let xt = {
|
|
5455
5461
|
id: "destinationSelect",
|
|
5456
5462
|
withSymbol: (
|
|
5457
5463
|
/*showcurrencysymbol*/
|
|
@@ -5472,37 +5478,37 @@ function Do(e) {
|
|
|
5472
5478
|
)
|
|
5473
5479
|
};
|
|
5474
5480
|
/*selectedCurrencyTo*/
|
|
5475
|
-
e[6] !== void 0 && (
|
|
5476
|
-
e[6]), ue = new
|
|
5477
|
-
const
|
|
5478
|
-
function
|
|
5481
|
+
e[6] !== void 0 && (xt.selected = /*selectedCurrencyTo*/
|
|
5482
|
+
e[6]), ue = new Cn({ props: xt }), qe.push(() => Un(ue, "selected", Xt));
|
|
5483
|
+
const wt = [Oo, No], me = [];
|
|
5484
|
+
function At(m, S) {
|
|
5479
5485
|
return !/*isBalanceFetched*/
|
|
5480
5486
|
m[16] || !/*isCurrenciesFetched*/
|
|
5481
5487
|
m[17] ? 0 : 1;
|
|
5482
5488
|
}
|
|
5483
|
-
Y =
|
|
5489
|
+
Y = At(e), ne = me[Y] = wt[Y](e);
|
|
5484
5490
|
let p = (
|
|
5485
5491
|
/*showvaults*/
|
|
5486
|
-
e[1] ===
|
|
5492
|
+
e[1] === Oe.true && br(e)
|
|
5487
5493
|
);
|
|
5488
5494
|
function w(m, S) {
|
|
5489
5495
|
var ee;
|
|
5490
5496
|
return (
|
|
5491
5497
|
/*fetchResponse*/
|
|
5492
|
-
((ee = m[12]) == null ? void 0 : ee.source) === K.CheckWalletExchangeError ?
|
|
5498
|
+
((ee = m[12]) == null ? void 0 : ee.source) === K.CheckWalletExchangeError ? Mo : Do
|
|
5493
5499
|
);
|
|
5494
5500
|
}
|
|
5495
5501
|
let I = w(e), x = I(e);
|
|
5496
5502
|
return {
|
|
5497
5503
|
c() {
|
|
5498
5504
|
var m, S, ee;
|
|
5499
|
-
t = A("div"), J && J.c(), n =
|
|
5505
|
+
t = A("div"), J && J.c(), n = R(), r = A("div"), i = A("h1"), i.textContent = `${k("vaultExchange")}`, a = R(), G && G.c(), o = R(), s = A("div"), l = A("div"), u = A("p"), u.textContent = `${k("exchangeFrom")}`, c = R(), f = A("div"), h = A("input"), v = R(), pt(d.$$.fragment), C = R(), b.c(), D = R(), M = A("div"), X = A("p"), X.textContent = `${k("exchangeTo")}`, ve = R(), se = A("div"), z = A("input"), Ee = R(), pt(ue.$$.fragment), Se = R(), ne.c(), ge = R(), p && p.c(), at = R(), Be = A("div"), Fe = A("span"), Fe.textContent = `${k("feesIncluded")}`, bt = R(), Ge = A("span"), x.c(), ot = R(), le = A("div"), He = R(), xe = A("div"), we = A("button"), we.textContent = `${k("reset")}`, $e = R(), re = A("button"), vt = q(Ie), y(i, "class", "headerTitle"), y(r, "class", "headerContainer"), y(u, "class", "exchangeHeader"), y(h, "id", "senderInput"), h.disabled = g = !/*session*/
|
|
5500
5506
|
e[0] || !/*isBalanceFetched*/
|
|
5501
5507
|
e[16] || !/*isCurrenciesFetched*/
|
|
5502
|
-
e[17], y(h, "placeholder",
|
|
5508
|
+
e[17], y(h, "placeholder", k("debitPlaceHolder")), y(h, "class", "exchangeInput"), y(h, "type", "number"), y(h, "aria-label", "Enter exchange amount"), y(h, "inputmode", "decimal"), y(h, "step", "0.000000000000001"), y(h, "min", "0"), y(f, "class", "flexingContainerRow"), y(l, "class", "containerExchangeFrom exchangeContainer"), y(X, "class", "exchangeHeader"), y(z, "id", "destinationInput"), z.disabled = fe = !/*session*/
|
|
5503
5509
|
e[0] || !/*isBalanceFetched*/
|
|
5504
5510
|
e[16] || !/*isCurrenciesFetched*/
|
|
5505
|
-
e[17], y(z, "placeholder",
|
|
5511
|
+
e[17], y(z, "placeholder", k("creditPlaceHolder")), y(z, "class", "exchangeInput"), y(z, "type", "number"), z.readOnly = !0, y(z, "min", "0"), y(se, "class", "flexingContainerRow"), y(M, "class", "containerExchangeTo exchangeContainer"), y(s, "class", "exchangesContainer"), y(Fe, "class", "feesLabel"), y(Be, "class", "feesContainer"), y(le, "class", "notificationsContainer"), he(
|
|
5506
5512
|
le,
|
|
5507
5513
|
"error",
|
|
5508
5514
|
/*fetchResponse*/
|
|
@@ -5512,7 +5518,7 @@ function Do(e) {
|
|
|
5512
5518
|
"success",
|
|
5513
5519
|
/*fetchResponse*/
|
|
5514
5520
|
((S = e[12]) == null ? void 0 : S.type) === "success"
|
|
5515
|
-
), y(
|
|
5521
|
+
), y(we, "class", "resetButton"), y(we, "type", "button"), y(re, "type", "button"), y(re, "class", "exchangeButton"), re.disabled = Ae = /*isExchangeDisabled*/
|
|
5516
5522
|
e[14] || /*isExchangePending*/
|
|
5517
5523
|
e[18] || /*inputExchangeFrom*/
|
|
5518
5524
|
e[8] === 0 && !/*selectedCurrencyFrom*/
|
|
@@ -5527,18 +5533,18 @@ function Do(e) {
|
|
|
5527
5533
|
"pending",
|
|
5528
5534
|
/*isExchangePending*/
|
|
5529
5535
|
e[18]
|
|
5530
|
-
), y(
|
|
5536
|
+
), y(xe, "class", "actionsContainer"), y(t, "class", "playerAccountVault");
|
|
5531
5537
|
},
|
|
5532
5538
|
m(m, S) {
|
|
5533
|
-
H(m, t, S), J && J.m(t, null), E(t, n), E(t, r), E(r, i), E(r, a), G && G.m(r, null), E(t, o), E(t, s), E(s, l), E(l, u), E(l, c), E(l, f), E(f, h),
|
|
5539
|
+
H(m, t, S), J && J.m(t, null), E(t, n), E(t, r), E(r, i), E(r, a), G && G.m(r, null), E(t, o), E(t, s), E(s, l), E(l, u), E(l, c), E(l, f), E(f, h), Ct(
|
|
5534
5540
|
h,
|
|
5535
5541
|
/*inputExchangeFrom*/
|
|
5536
5542
|
e[8]
|
|
5537
|
-
), E(f, v),
|
|
5543
|
+
), E(f, v), Ke(d, f, null), E(l, C), de[P].m(l, null), E(s, D), E(s, M), E(M, X), E(M, ve), E(M, se), E(se, z), Ct(
|
|
5538
5544
|
z,
|
|
5539
5545
|
/*inputExchangeTo*/
|
|
5540
5546
|
e[9]
|
|
5541
|
-
), E(se,
|
|
5547
|
+
), E(se, Ee), Ke(ue, se, null), E(M, Se), me[Y].m(M, null), E(t, ge), p && p.m(t, null), E(t, at), E(t, Be), E(Be, Fe), E(Be, bt), E(Be, Ge), x.m(Ge, null), E(t, ot), E(t, le), le.innerHTML = _e, E(t, He), E(t, xe), E(xe, we), E(xe, $e), E(xe, re), E(re, vt), e[42](t), ie = !0, st || (lt = [
|
|
5542
5548
|
ae(
|
|
5543
5549
|
h,
|
|
5544
5550
|
"input",
|
|
@@ -5570,7 +5576,7 @@ function Do(e) {
|
|
|
5570
5576
|
e[40]
|
|
5571
5577
|
),
|
|
5572
5578
|
ae(
|
|
5573
|
-
|
|
5579
|
+
we,
|
|
5574
5580
|
"click",
|
|
5575
5581
|
/*handleResetToDefault*/
|
|
5576
5582
|
e[24]
|
|
@@ -5581,22 +5587,22 @@ function Do(e) {
|
|
|
5581
5587
|
/*handleExchange*/
|
|
5582
5588
|
e[29]
|
|
5583
5589
|
)
|
|
5584
|
-
],
|
|
5590
|
+
], st = !0);
|
|
5585
5591
|
},
|
|
5586
5592
|
p(m, S) {
|
|
5587
|
-
var
|
|
5593
|
+
var Le, On, Pn, Rn;
|
|
5588
5594
|
/*showclosebutton*/
|
|
5589
|
-
m[3] ===
|
|
5590
|
-
m[2] ===
|
|
5591
|
-
4 && j(G, 1)) : (G =
|
|
5595
|
+
m[3] === Oe.true ? J ? J.p(m, S) : (J = mr(m), J.c(), J.m(t, n)) : J && (J.d(1), J = null), /*showtotalbalance*/
|
|
5596
|
+
m[2] === Oe.true ? G ? (G.p(m, S), S[0] & /*showtotalbalance*/
|
|
5597
|
+
4 && j(G, 1)) : (G = yr(m), G.c(), j(G, 1), G.m(r, null)) : G && (ke(), Z(G, 1, 1, () => {
|
|
5592
5598
|
G = null;
|
|
5593
|
-
}),
|
|
5599
|
+
}), Ve()), (!ie || S[0] & /*session, isBalanceFetched, isCurrenciesFetched*/
|
|
5594
5600
|
196609 && g !== (g = !/*session*/
|
|
5595
5601
|
m[0] || !/*isBalanceFetched*/
|
|
5596
5602
|
m[16] || !/*isCurrenciesFetched*/
|
|
5597
5603
|
m[17])) && (h.disabled = g), S[0] & /*inputExchangeFrom*/
|
|
5598
|
-
256 &&
|
|
5599
|
-
m[8] &&
|
|
5604
|
+
256 && Nt(h.value) !== /*inputExchangeFrom*/
|
|
5605
|
+
m[8] && Ct(
|
|
5600
5606
|
h,
|
|
5601
5607
|
/*inputExchangeFrom*/
|
|
5602
5608
|
m[8]
|
|
@@ -5611,17 +5617,17 @@ function Do(e) {
|
|
|
5611
5617
|
1048576 && (ee.options = /*optionsFrom*/
|
|
5612
5618
|
m[20]), !_ && S[0] & /*selectedCurrencyFrom*/
|
|
5613
5619
|
32 && (_ = !0, ee.selected = /*selectedCurrencyFrom*/
|
|
5614
|
-
m[5],
|
|
5615
|
-
let ye =
|
|
5616
|
-
|
|
5620
|
+
m[5], Vn(() => _ = !1)), d.$set(ee);
|
|
5621
|
+
let ye = P;
|
|
5622
|
+
P = ut(m), P === ye ? de[P].p(m, S) : (ke(), Z(de[ye], 1, 1, () => {
|
|
5617
5623
|
de[ye] = null;
|
|
5618
|
-
}),
|
|
5624
|
+
}), Ve(), b = de[P], b ? b.p(m, S) : (b = de[P] = _t[P](m), b.c()), j(b, 1), b.m(l, null)), (!ie || S[0] & /*session, isBalanceFetched, isCurrenciesFetched*/
|
|
5619
5625
|
196609 && fe !== (fe = !/*session*/
|
|
5620
5626
|
m[0] || !/*isBalanceFetched*/
|
|
5621
5627
|
m[16] || !/*isCurrenciesFetched*/
|
|
5622
5628
|
m[17])) && (z.disabled = fe), S[0] & /*inputExchangeTo*/
|
|
5623
|
-
512 &&
|
|
5624
|
-
m[9] &&
|
|
5629
|
+
512 && Nt(z.value) !== /*inputExchangeTo*/
|
|
5630
|
+
m[9] && Ct(
|
|
5625
5631
|
z,
|
|
5626
5632
|
/*inputExchangeTo*/
|
|
5627
5633
|
m[9]
|
|
@@ -5638,33 +5644,33 @@ function Do(e) {
|
|
|
5638
5644
|
2097152 && (T.options = /*optionsTo*/
|
|
5639
5645
|
m[21]), !pe && S[0] & /*selectedCurrencyTo*/
|
|
5640
5646
|
64 && (pe = !0, T.selected = /*selectedCurrencyTo*/
|
|
5641
|
-
m[6],
|
|
5642
|
-
let
|
|
5643
|
-
Y =
|
|
5644
|
-
me[
|
|
5645
|
-
}),
|
|
5646
|
-
m[1] ===
|
|
5647
|
-
4096) &&
|
|
5647
|
+
m[6], Vn(() => pe = !1)), ue.$set(T);
|
|
5648
|
+
let Ce = Y;
|
|
5649
|
+
Y = At(m), Y === Ce ? me[Y].p(m, S) : (ke(), Z(me[Ce], 1, 1, () => {
|
|
5650
|
+
me[Ce] = null;
|
|
5651
|
+
}), Ve(), ne = me[Y], ne ? ne.p(m, S) : (ne = me[Y] = wt[Y](m), ne.c()), j(ne, 1), ne.m(M, null)), /*showvaults*/
|
|
5652
|
+
m[1] === Oe.true ? p ? p.p(m, S) : (p = br(m), p.c(), p.m(t, at)) : p && (p.d(1), p = null), I === (I = w(m)) && x ? x.p(m, S) : (x.d(1), x = I(m), x && (x.c(), x.m(Ge, null))), (!ie || S[0] & /*fetchResponse*/
|
|
5653
|
+
4096) && _e !== (_e = k(
|
|
5648
5654
|
/*fetchResponse*/
|
|
5649
|
-
((
|
|
5650
|
-
) + "") && (le.innerHTML =
|
|
5655
|
+
((Le = m[12]) == null ? void 0 : Le.message) || ""
|
|
5656
|
+
) + "") && (le.innerHTML = _e), (!ie || S[0] & /*fetchResponse*/
|
|
5651
5657
|
4096) && he(
|
|
5652
5658
|
le,
|
|
5653
5659
|
"error",
|
|
5654
5660
|
/*fetchResponse*/
|
|
5655
|
-
((
|
|
5661
|
+
((On = m[12]) == null ? void 0 : On.type) === "error"
|
|
5656
5662
|
), (!ie || S[0] & /*fetchResponse*/
|
|
5657
5663
|
4096) && he(
|
|
5658
5664
|
le,
|
|
5659
5665
|
"success",
|
|
5660
5666
|
/*fetchResponse*/
|
|
5661
|
-
((
|
|
5667
|
+
((Pn = m[12]) == null ? void 0 : Pn.type) === "success"
|
|
5662
5668
|
), (!ie || S[0] & /*isExchangeDisabled, isExchangePending, inputExchangeFrom, selectedCurrencyFrom*/
|
|
5663
|
-
278816 &&
|
|
5669
|
+
278816 && Ae !== (Ae = /*isExchangeDisabled*/
|
|
5664
5670
|
m[14] || /*isExchangePending*/
|
|
5665
5671
|
m[18] || /*inputExchangeFrom*/
|
|
5666
5672
|
m[8] === 0 && !/*selectedCurrencyFrom*/
|
|
5667
|
-
((
|
|
5673
|
+
((Rn = m[5]) != null && Rn.amount))) && (re.disabled = Ae), (!ie || S[0] & /*isExchangeDisabled, isExchangePending*/
|
|
5668
5674
|
278528) && he(
|
|
5669
5675
|
re,
|
|
5670
5676
|
"disabled",
|
|
@@ -5686,29 +5692,29 @@ function Do(e) {
|
|
|
5686
5692
|
Z(G), Z(d.$$.fragment, m), Z(b), Z(ue.$$.fragment, m), Z(ne), ie = !1;
|
|
5687
5693
|
},
|
|
5688
5694
|
d(m) {
|
|
5689
|
-
m && B(t), J && J.d(), G && G.d(),
|
|
5695
|
+
m && B(t), J && J.d(), G && G.d(), Qe(d), de[P].d(), Qe(ue), me[Y].d(), p && p.d(), x.d(), e[42](null), st = !1, Te(lt);
|
|
5690
5696
|
}
|
|
5691
5697
|
};
|
|
5692
5698
|
}
|
|
5693
|
-
function
|
|
5694
|
-
let { session: r = "" } = t, { userid: i = "" } = t, { endpoint: a = "" } = t, { lang: o = "en" } = t, { clientstyling: s = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: u = "" } = t, { playercurrency: c = "" } = t, { showvaults: f = "true" } = t, { showtotalbalance: h = "true" } = t, { showclosebutton: g = "true" } = t, { showcurrencysymbol: v = "true" } = t, d = null, _ = null, C = 0,
|
|
5695
|
-
|
|
5696
|
-
|
|
5699
|
+
function Vo(e, t, n) {
|
|
5700
|
+
let { session: r = "" } = t, { userid: i = "" } = t, { endpoint: a = "" } = t, { lang: o = "en" } = t, { clientstyling: s = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: u = "" } = t, { playercurrency: c = "" } = t, { showvaults: f = "true" } = t, { showtotalbalance: h = "true" } = t, { showclosebutton: g = "true" } = t, { showcurrencysymbol: v = "true" } = t, d = null, _ = null, C = 0, P = 0, b = 0, D = null, M = null, X = null, ve = "", se = !0, z = !1, fe = !1, Ee = !1, ue = !1, pe = [], Se = [], Y = [], ne = [], ge;
|
|
5701
|
+
lo({ withLocale: "en", translations: {} }), Object.keys(or).forEach((p) => {
|
|
5702
|
+
ar(p, or[p]);
|
|
5697
5703
|
});
|
|
5698
|
-
const
|
|
5699
|
-
|
|
5700
|
-
},
|
|
5704
|
+
const at = () => {
|
|
5705
|
+
uo(o);
|
|
5706
|
+
}, Be = () => {
|
|
5701
5707
|
fetch(u).then((p) => p.json()).then((p) => {
|
|
5702
5708
|
Object.keys(p).forEach((w) => {
|
|
5703
|
-
|
|
5709
|
+
ar(w, p[w]);
|
|
5704
5710
|
});
|
|
5705
5711
|
}).catch((p) => {
|
|
5706
5712
|
console.error("There was a problem with the translations request.", p);
|
|
5707
5713
|
});
|
|
5708
|
-
},
|
|
5714
|
+
}, Fe = () => {
|
|
5709
5715
|
let p = document.createElement("style");
|
|
5710
5716
|
p.innerHTML = s, ge.appendChild(p);
|
|
5711
|
-
},
|
|
5717
|
+
}, bt = () => {
|
|
5712
5718
|
let p, w = new URL(l), I = document.createElement("style");
|
|
5713
5719
|
fetch(w.href).then((x) => x.text()).then((x) => {
|
|
5714
5720
|
I.innerHTML = x, p && clearTimeout(p), p = setTimeout(
|
|
@@ -5718,59 +5724,59 @@ function Mo(e, t, n) {
|
|
|
5718
5724
|
1
|
|
5719
5725
|
);
|
|
5720
5726
|
});
|
|
5721
|
-
},
|
|
5722
|
-
|
|
5727
|
+
}, Ge = () => {
|
|
5728
|
+
Se.length !== 0 && (n(15, z = !z), window.postMessage(
|
|
5723
5729
|
{
|
|
5724
|
-
type:
|
|
5730
|
+
type: on.VaultDropdownToggled,
|
|
5725
5731
|
state: z
|
|
5726
5732
|
},
|
|
5727
5733
|
window.location.href
|
|
5728
5734
|
));
|
|
5729
|
-
},
|
|
5735
|
+
}, ot = () => {
|
|
5730
5736
|
window.postMessage(
|
|
5731
5737
|
{
|
|
5732
|
-
type:
|
|
5738
|
+
type: on.VaultWidgetClosed
|
|
5733
5739
|
},
|
|
5734
5740
|
window.location.href
|
|
5735
5741
|
);
|
|
5736
5742
|
}, le = () => {
|
|
5737
|
-
n(14, se = !0),
|
|
5738
|
-
}, Ee = () => {
|
|
5739
|
-
n(14, se = !0), n(9, b = 0);
|
|
5740
|
-
}, Be = () => {
|
|
5741
|
-
n(11, k = null);
|
|
5743
|
+
n(14, se = !0), He(), xe(), we(), $e(), window.postMessage({ type: on.VaultWidgetReset }, window.location.href);
|
|
5742
5744
|
}, _e = () => {
|
|
5743
|
-
n(
|
|
5745
|
+
n(14, se = !0), n(9, b = 0);
|
|
5746
|
+
}, He = () => {
|
|
5747
|
+
n(11, M = null);
|
|
5744
5748
|
}, xe = () => {
|
|
5745
|
-
n(
|
|
5746
|
-
},
|
|
5749
|
+
n(8, C = 0), n(9, b = 0);
|
|
5750
|
+
}, we = () => {
|
|
5751
|
+
n(13, ve = "");
|
|
5752
|
+
}, $e = () => {
|
|
5747
5753
|
n(12, X = null);
|
|
5748
5754
|
}, re = (p) => {
|
|
5749
|
-
p && n(13,
|
|
5750
|
-
},
|
|
5755
|
+
p && n(13, ve = p);
|
|
5756
|
+
}, Ie = ({ type: p, message: w, source: I = "" }) => {
|
|
5751
5757
|
let x;
|
|
5752
5758
|
switch (n(12, X = { message: w, source: I, type: p }), p) {
|
|
5753
|
-
case
|
|
5759
|
+
case Ne.error:
|
|
5754
5760
|
n(14, se = !0), window.postMessage({ type: I, data: { type: p, message: w } }, window.location.href);
|
|
5755
5761
|
break;
|
|
5756
|
-
case
|
|
5762
|
+
case Ne.success:
|
|
5757
5763
|
n(14, se = !0), window.postMessage({ type: I, data: { type: p, message: w } }, window.location.href), x && clearTimeout(x), x = setTimeout(
|
|
5758
5764
|
() => {
|
|
5759
|
-
|
|
5765
|
+
$e();
|
|
5760
5766
|
},
|
|
5761
|
-
|
|
5767
|
+
ho
|
|
5762
5768
|
);
|
|
5763
5769
|
break;
|
|
5764
5770
|
}
|
|
5765
|
-
},
|
|
5766
|
-
const I = X == null ? void 0 : X.message.includes(
|
|
5767
|
-
I && w(), isNaN(Number(C)) && (
|
|
5768
|
-
}),
|
|
5771
|
+
}, vt = () => new Promise((p, w) => {
|
|
5772
|
+
const I = X == null ? void 0 : X.message.includes(fo.InvalidSession);
|
|
5773
|
+
I && w(), isNaN(Number(C)) && (_e(), He(), w(k("invalidValue"))), C > (d == null ? void 0 : d.amount) && (_e(), He(), w(k("exceededValue"))), C === null && !I && (_e(), He(), w()), C === 0 && C === 0 && !I && (le(), w()), (!d || !_) && !I && w(), we(), p();
|
|
5774
|
+
}), Ae = (p, w) => qt(this, null, function* () {
|
|
5769
5775
|
var x, W;
|
|
5770
5776
|
const I = yield p.json();
|
|
5771
|
-
return (p == null ? void 0 : p.status) >= 200 && (p == null ? void 0 : p.status) < 400 ? I : (w === K.CheckWalletExchangeError &&
|
|
5772
|
-
type:
|
|
5773
|
-
message:
|
|
5777
|
+
return (p == null ? void 0 : p.status) >= 200 && (p == null ? void 0 : p.status) < 400 ? I : (w === K.CheckWalletExchangeError && _e(), !fe && w === K.BalanceError && (n(16, fe = !0), n(17, Ee = !0)), !Ee && w === K.CurrenciesError && n(17, Ee = !0), Ie({
|
|
5778
|
+
type: Ne.error,
|
|
5779
|
+
message: k((x = I == null ? void 0 : I.thirdPartyResponse) == null ? void 0 : x.code) || k((W = I == null ? void 0 : I.thirdPartyResponse) == null ? void 0 : W.errorCode) || "generalError",
|
|
5774
5780
|
source: w
|
|
5775
5781
|
}));
|
|
5776
5782
|
}), ie = () => new Promise((p, w) => {
|
|
@@ -5782,34 +5788,34 @@ function Mo(e, t, n) {
|
|
|
5782
5788
|
"Content-Type": "application/json",
|
|
5783
5789
|
Accept: "application/json"
|
|
5784
5790
|
}
|
|
5785
|
-
}).then((W) =>
|
|
5791
|
+
}).then((W) => Ae(W, K.CurrenciesError)).then((W) => {
|
|
5786
5792
|
p(W == null ? void 0 : W.currencies);
|
|
5787
5793
|
}).catch((W) => {
|
|
5788
|
-
n(17,
|
|
5789
|
-
type:
|
|
5790
|
-
message:
|
|
5794
|
+
n(17, Ee = !0), console.error("There was an error on the allowed currencies request.", W), Ie({
|
|
5795
|
+
type: Ne.error,
|
|
5796
|
+
message: k("generalError"),
|
|
5791
5797
|
source: K.CurrenciesError
|
|
5792
5798
|
}), w();
|
|
5793
5799
|
}).finally(() => {
|
|
5794
|
-
n(17,
|
|
5800
|
+
n(17, Ee = !0);
|
|
5795
5801
|
});
|
|
5796
|
-
}),
|
|
5802
|
+
}), st = ({ data: p, shouldUpdateSelectedCurrencies: w, allowed: I = [] }) => {
|
|
5797
5803
|
var ye;
|
|
5798
5804
|
const { items: x = [], totalAmount: W = {}, totalRealAmount: m } = p || {};
|
|
5799
|
-
n(10,
|
|
5805
|
+
n(10, D = Object.entries(m || W).map(([T = "", Ce = 0]) => ({ currency: T, amount: Ce }))[0]);
|
|
5800
5806
|
let S = null;
|
|
5801
5807
|
const ee = new Map(I.map((T) => [T.code, T]));
|
|
5802
5808
|
for (const T of x)
|
|
5803
|
-
if ((T == null ? void 0 : T.type) ===
|
|
5804
|
-
const
|
|
5805
|
-
if (
|
|
5806
|
-
const
|
|
5807
|
-
symbol: (ye =
|
|
5809
|
+
if ((T == null ? void 0 : T.type) === lr.Real) {
|
|
5810
|
+
const Ce = ee.get(T == null ? void 0 : T.currency);
|
|
5811
|
+
if (Ce && Ce.code === (T == null ? void 0 : T.currency)) {
|
|
5812
|
+
const Le = Zt(je(je({}, T), Ce), {
|
|
5813
|
+
symbol: (ye = co[T == null ? void 0 : T.currency]) == null ? void 0 : ye[0]
|
|
5808
5814
|
});
|
|
5809
|
-
n(37, pe = [...pe,
|
|
5815
|
+
n(37, pe = [...pe, Le]), (T == null ? void 0 : T.currency) === (D == null ? void 0 : D.currency) && n(10, D = je(je({}, D), Le)), (T == null ? void 0 : T.currency) !== (D == null ? void 0 : D.currency) && (T == null ? void 0 : T.walletAccountType) === lr.Vault && n(19, Se = [...Se, Le]), w && (T == null ? void 0 : T.amount) > 0 && n(5, d = D != null && D.currency ? D : S), d && (d == null ? void 0 : d.currency) === (T == null ? void 0 : T.currency) && n(5, d = Le), _ && (_ == null ? void 0 : _.currency) === (T == null ? void 0 : T.currency) && n(6, _ = Le);
|
|
5810
5816
|
}
|
|
5811
5817
|
}
|
|
5812
|
-
},
|
|
5818
|
+
}, lt = (p = !0) => {
|
|
5813
5819
|
const w = new URL(`${a}/v2/player/${i}/balance`);
|
|
5814
5820
|
fetch(w, {
|
|
5815
5821
|
method: "GET",
|
|
@@ -5818,25 +5824,25 @@ function Mo(e, t, n) {
|
|
|
5818
5824
|
"Content-Type": "application/json",
|
|
5819
5825
|
Accept: "application/json"
|
|
5820
5826
|
}
|
|
5821
|
-
}).then((x) =>
|
|
5827
|
+
}).then((x) => Ae(x, K.BalanceError)).then((x) => {
|
|
5822
5828
|
x && ie().then((W) => {
|
|
5823
|
-
n(37, pe = []), n(19,
|
|
5829
|
+
n(37, pe = []), n(19, Se = []), st({
|
|
5824
5830
|
data: x,
|
|
5825
5831
|
shouldUpdateSelectedCurrencies: p,
|
|
5826
5832
|
allowed: W
|
|
5827
5833
|
});
|
|
5828
5834
|
});
|
|
5829
5835
|
}).catch((x) => {
|
|
5830
|
-
n(16, fe = !0), console.error("There was an error with the player balance request.", x),
|
|
5831
|
-
type:
|
|
5832
|
-
message:
|
|
5836
|
+
n(16, fe = !0), console.error("There was an error with the player balance request.", x), Ie({
|
|
5837
|
+
type: Ne.error,
|
|
5838
|
+
message: k("generalError"),
|
|
5833
5839
|
source: K.BalanceError
|
|
5834
5840
|
});
|
|
5835
5841
|
}).finally(() => {
|
|
5836
5842
|
n(16, fe = !0);
|
|
5837
5843
|
});
|
|
5838
|
-
}, G =
|
|
5839
|
-
|
|
5844
|
+
}, G = go(() => {
|
|
5845
|
+
vt().then(() => {
|
|
5840
5846
|
const p = new URL(`${a}/v2/player/${i}/check/wallet-exchange`), w = {
|
|
5841
5847
|
userId: i,
|
|
5842
5848
|
amount: C,
|
|
@@ -5851,40 +5857,40 @@ function Mo(e, t, n) {
|
|
|
5851
5857
|
"Content-Type": "application/json",
|
|
5852
5858
|
Accept: "application/json"
|
|
5853
5859
|
},
|
|
5854
|
-
body:
|
|
5860
|
+
body: cr(w)
|
|
5855
5861
|
};
|
|
5856
|
-
fetch(p, I).then((x) =>
|
|
5862
|
+
fetch(p, I).then((x) => Ae(x, K.CheckWalletExchangeError)).then((x) => {
|
|
5857
5863
|
var W, m, S;
|
|
5858
5864
|
if (x) {
|
|
5859
|
-
if ((X == null ? void 0 : X.source) === K.CheckWalletExchangeError &&
|
|
5860
|
-
const ee = ((m = x.walletActions.find((ye) => (ye == null ? void 0 : ye.directionName) ===
|
|
5861
|
-
n(9, b = (S = new
|
|
5865
|
+
if ((X == null ? void 0 : X.source) === K.CheckWalletExchangeError && $e(), Array.isArray((W = x == null ? void 0 : x.fees) == null ? void 0 : W.fees) && n(11, M = x.fees), Array.isArray(x == null ? void 0 : x.walletActions)) {
|
|
5866
|
+
const ee = ((m = x.walletActions.find((ye) => (ye == null ? void 0 : ye.directionName) === po.Credit)) == null ? void 0 : m.amount) || 0;
|
|
5867
|
+
n(9, b = (S = new vi(ee)) == null ? void 0 : S.getValue());
|
|
5862
5868
|
}
|
|
5863
5869
|
C > 0 && b > 0 && (d != null && d.currency) && (_ != null && _.currency) && c && n(14, se = !1);
|
|
5864
5870
|
}
|
|
5865
5871
|
}).catch((x) => {
|
|
5866
|
-
|
|
5867
|
-
type:
|
|
5868
|
-
message:
|
|
5872
|
+
Ie({
|
|
5873
|
+
type: Ne.error,
|
|
5874
|
+
message: k("generalError"),
|
|
5869
5875
|
source: K.CheckWalletExchangeError
|
|
5870
5876
|
}), console.error("There was a problem with the wallet exchange request.", x);
|
|
5871
5877
|
});
|
|
5872
5878
|
}).catch((p) => {
|
|
5873
5879
|
re(p);
|
|
5874
5880
|
});
|
|
5875
|
-
}, 500),
|
|
5881
|
+
}, 500), Wt = (p) => {
|
|
5876
5882
|
const w = p.target.value, [I, x] = w.split(".");
|
|
5877
|
-
!x && w.length >=
|
|
5878
|
-
},
|
|
5883
|
+
!x && w.length >= sn && n(8, C = w.slice(0, sn)), x && (d == null ? void 0 : d.type) === ur.Fiat && (x.length <= (d == null ? void 0 : d.precision) ? (n(8, C = w), P = w) : n(8, C = P)), x && (d == null ? void 0 : d.type) === ur.CryptoCurrency && (w.length <= sn ? (n(8, C = w), P = w) : n(8, C = P)), G();
|
|
5884
|
+
}, Et = (p) => {
|
|
5879
5885
|
const w = p.data;
|
|
5880
5886
|
[">", "<", ","].includes(w) && p.preventDefault(), w && !w.match(/[\d.]/) && p.preventDefault(), w === "." && p.target.value.includes(".") && p.preventDefault();
|
|
5881
|
-
},
|
|
5887
|
+
}, _t = () => {
|
|
5882
5888
|
C === 0 && n(8, C = null);
|
|
5883
5889
|
}, de = () => {
|
|
5884
5890
|
const p = new URL(`${a}/v2/player/${i}/wallet-exchange`);
|
|
5885
5891
|
n(18, ue = !0);
|
|
5886
5892
|
const w = {
|
|
5887
|
-
feeDetails:
|
|
5893
|
+
feeDetails: M,
|
|
5888
5894
|
userId: i,
|
|
5889
5895
|
amount: C,
|
|
5890
5896
|
currency: d == null ? void 0 : d.currency,
|
|
@@ -5898,51 +5904,51 @@ function Mo(e, t, n) {
|
|
|
5898
5904
|
"Content-Type": "application/json",
|
|
5899
5905
|
Accept: "application/json"
|
|
5900
5906
|
},
|
|
5901
|
-
body:
|
|
5907
|
+
body: cr(w)
|
|
5902
5908
|
};
|
|
5903
|
-
fetch(p, I).then((x) =>
|
|
5904
|
-
x && (
|
|
5905
|
-
type:
|
|
5906
|
-
message:
|
|
5909
|
+
fetch(p, I).then((x) => Ae(x, K.WalletExchangeError)).then((x) => {
|
|
5910
|
+
x && (Ie({
|
|
5911
|
+
type: Ne.success,
|
|
5912
|
+
message: k("exchangeSuccess"),
|
|
5907
5913
|
source: "ExchangeSuccess"
|
|
5908
|
-
}),
|
|
5914
|
+
}), lt(!1));
|
|
5909
5915
|
}).catch((x) => {
|
|
5910
|
-
|
|
5911
|
-
type:
|
|
5912
|
-
message:
|
|
5916
|
+
Ie({
|
|
5917
|
+
type: Ne.error,
|
|
5918
|
+
message: k("generalError"),
|
|
5913
5919
|
source: K.WalletExchangeError
|
|
5914
5920
|
}), console.error("There was an error with the wallet exchange request.", x);
|
|
5915
5921
|
}).finally(() => {
|
|
5916
|
-
n(18, ue = !1),
|
|
5922
|
+
n(18, ue = !1), xe(), He();
|
|
5917
5923
|
});
|
|
5918
|
-
},
|
|
5924
|
+
}, ut = (p) => {
|
|
5919
5925
|
const { data: { type: w } = {} } = p || {};
|
|
5920
5926
|
switch (w) {
|
|
5921
|
-
case
|
|
5927
|
+
case sr.ResetVaultWidget:
|
|
5922
5928
|
le();
|
|
5923
5929
|
break;
|
|
5924
|
-
case
|
|
5925
|
-
|
|
5930
|
+
case sr.CloseVaultWidget:
|
|
5931
|
+
ot();
|
|
5926
5932
|
break;
|
|
5927
5933
|
}
|
|
5928
5934
|
};
|
|
5929
|
-
|
|
5930
|
-
window.removeEventListener("message",
|
|
5935
|
+
Ar(() => (window.addEventListener("message", ut), () => {
|
|
5936
|
+
window.removeEventListener("message", ut);
|
|
5931
5937
|
}));
|
|
5932
|
-
function
|
|
5933
|
-
C =
|
|
5938
|
+
function Xt() {
|
|
5939
|
+
C = Nt(this.value), n(8, C);
|
|
5934
5940
|
}
|
|
5935
|
-
function
|
|
5941
|
+
function xt(p) {
|
|
5936
5942
|
d = p, n(5, d);
|
|
5937
5943
|
}
|
|
5938
|
-
function
|
|
5939
|
-
b =
|
|
5944
|
+
function wt() {
|
|
5945
|
+
b = Nt(this.value), n(9, b);
|
|
5940
5946
|
}
|
|
5941
5947
|
function me(p) {
|
|
5942
5948
|
_ = p, n(6, _);
|
|
5943
5949
|
}
|
|
5944
|
-
function
|
|
5945
|
-
|
|
5950
|
+
function At(p) {
|
|
5951
|
+
qe[p ? "unshift" : "push"](() => {
|
|
5946
5952
|
ge = p, n(7, ge);
|
|
5947
5953
|
});
|
|
5948
5954
|
}
|
|
@@ -5950,14 +5956,14 @@ function Mo(e, t, n) {
|
|
|
5950
5956
|
"session" in p && n(0, r = p.session), "userid" in p && n(30, i = p.userid), "endpoint" in p && n(31, a = p.endpoint), "lang" in p && n(32, o = p.lang), "clientstyling" in p && n(33, s = p.clientstyling), "clientstylingurl" in p && n(34, l = p.clientstylingurl), "translationurl" in p && n(35, u = p.translationurl), "playercurrency" in p && n(36, c = p.playercurrency), "showvaults" in p && n(1, f = p.showvaults), "showtotalbalance" in p && n(2, h = p.showtotalbalance), "showclosebutton" in p && n(3, g = p.showclosebutton), "showcurrencysymbol" in p && n(4, v = p.showcurrencysymbol);
|
|
5951
5957
|
}, e.$$.update = () => {
|
|
5952
5958
|
e.$$.dirty[1] & /*lang*/
|
|
5953
|
-
2 && o &&
|
|
5959
|
+
2 && o && at(), e.$$.dirty[0] & /*customStylingContainer*/
|
|
5954
5960
|
128 | e.$$.dirty[1] & /*clientstyling*/
|
|
5955
|
-
4 && s && ge &&
|
|
5961
|
+
4 && s && ge && Fe(), e.$$.dirty[0] & /*customStylingContainer*/
|
|
5956
5962
|
128 | e.$$.dirty[1] & /*clientstylingurl*/
|
|
5957
|
-
8 && l && ge &&
|
|
5958
|
-
16 && u &&
|
|
5963
|
+
8 && l && ge && bt(), e.$$.dirty[1] & /*translationurl*/
|
|
5964
|
+
16 && u && Be(), e.$$.dirty[0] & /*session, userid*/
|
|
5959
5965
|
1073741825 | e.$$.dirty[1] & /*endpoint, playercurrency*/
|
|
5960
|
-
33 && r && i && a && c &&
|
|
5966
|
+
33 && r && i && a && c && lt(), e.$$.dirty[0] & /*selectedCurrencyTo*/
|
|
5961
5967
|
64 | e.$$.dirty[1] & /*filteredBalances*/
|
|
5962
5968
|
64 && n(20, Y = pe.filter((p) => (p == null ? void 0 : p.amount) > 0 && (p == null ? void 0 : p.currency) !== (_ == null ? void 0 : _.currency))), e.$$.dirty[0] & /*selectedCurrencyFrom*/
|
|
5963
5969
|
32 | e.$$.dirty[1] & /*filteredBalances*/
|
|
@@ -5973,25 +5979,25 @@ function Mo(e, t, n) {
|
|
|
5973
5979
|
ge,
|
|
5974
5980
|
C,
|
|
5975
5981
|
b,
|
|
5982
|
+
D,
|
|
5976
5983
|
M,
|
|
5977
|
-
k,
|
|
5978
5984
|
X,
|
|
5979
|
-
|
|
5985
|
+
ve,
|
|
5980
5986
|
se,
|
|
5981
5987
|
z,
|
|
5982
5988
|
fe,
|
|
5983
|
-
|
|
5989
|
+
Ee,
|
|
5984
5990
|
ue,
|
|
5985
|
-
|
|
5991
|
+
Se,
|
|
5986
5992
|
Y,
|
|
5987
5993
|
ne,
|
|
5988
|
-
|
|
5989
|
-
|
|
5994
|
+
Ge,
|
|
5995
|
+
ot,
|
|
5990
5996
|
le,
|
|
5991
5997
|
G,
|
|
5992
|
-
|
|
5993
|
-
vt,
|
|
5998
|
+
Wt,
|
|
5994
5999
|
Et,
|
|
6000
|
+
_t,
|
|
5995
6001
|
de,
|
|
5996
6002
|
i,
|
|
5997
6003
|
a,
|
|
@@ -6001,21 +6007,21 @@ function Mo(e, t, n) {
|
|
|
6001
6007
|
u,
|
|
6002
6008
|
c,
|
|
6003
6009
|
pe,
|
|
6004
|
-
|
|
6005
|
-
_t,
|
|
6010
|
+
Xt,
|
|
6006
6011
|
xt,
|
|
6012
|
+
wt,
|
|
6007
6013
|
me,
|
|
6008
|
-
|
|
6014
|
+
At
|
|
6009
6015
|
];
|
|
6010
6016
|
}
|
|
6011
|
-
class
|
|
6017
|
+
class Uo extends Hn {
|
|
6012
6018
|
constructor(t) {
|
|
6013
|
-
super(),
|
|
6019
|
+
super(), Sn(
|
|
6014
6020
|
this,
|
|
6015
6021
|
t,
|
|
6016
|
-
|
|
6017
|
-
|
|
6018
|
-
|
|
6022
|
+
Vo,
|
|
6023
|
+
ko,
|
|
6024
|
+
kt,
|
|
6019
6025
|
{
|
|
6020
6026
|
session: 0,
|
|
6021
6027
|
userid: 30,
|
|
@@ -6030,7 +6036,7 @@ class ko extends Sn {
|
|
|
6030
6036
|
showclosebutton: 3,
|
|
6031
6037
|
showcurrencysymbol: 4
|
|
6032
6038
|
},
|
|
6033
|
-
|
|
6039
|
+
wo,
|
|
6034
6040
|
[-1, -1, -1]
|
|
6035
6041
|
);
|
|
6036
6042
|
}
|
|
@@ -6107,7 +6113,7 @@ class ko extends Sn {
|
|
|
6107
6113
|
this.$$set({ showcurrencysymbol: t }), $();
|
|
6108
6114
|
}
|
|
6109
6115
|
}
|
|
6110
|
-
|
|
6116
|
+
Bn(Uo, { session: {}, userid: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, playercurrency: {}, showvaults: {}, showtotalbalance: {}, showclosebutton: {}, showcurrencysymbol: {} }, [], [], !0);
|
|
6111
6117
|
export {
|
|
6112
|
-
|
|
6118
|
+
Uo as default
|
|
6113
6119
|
};
|