@everymatrix/player-account-vault 1.86.5 → 1.86.6
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-BzYwq2kZ.js → PlayerAccountVault-Bb4suGOV.js} +652 -652
- package/components/PlayerAccountVault-C_lxngQK.cjs +18 -0
- package/components/{PlayerAccountVault-DELuJE13.js → PlayerAccountVault-Cd46Dcr9.js} +664 -664
- package/es2015/player-account-vault.cjs +1 -1
- package/es2015/player-account-vault.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountVault-CcbEUTOL.cjs +0 -18
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var ci = Object.defineProperty, hi = Object.defineProperties;
|
|
2
|
+
var fi = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Fn = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var pi = Object.prototype.hasOwnProperty, di = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var nn = (e, t, n) => t in e ? ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ie = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
|
|
7
|
+
pi.call(t, n) && nn(e, n, t[n]);
|
|
8
8
|
if (Fn)
|
|
9
9
|
for (var n of Fn(t))
|
|
10
|
-
|
|
10
|
+
di.call(t, n) && nn(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var ae = (e, t, n) => (
|
|
14
|
-
var
|
|
12
|
+
}, rn = (e, t) => hi(e, fi(t));
|
|
13
|
+
var ae = (e, t, n) => (nn(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
14
|
+
var Ht = (e, t, n) => new Promise((r, i) => {
|
|
15
15
|
var o = (l) => {
|
|
16
16
|
try {
|
|
17
17
|
s(n.next(l));
|
|
@@ -29,25 +29,25 @@ var Bt = (e, t, n) => new Promise((r, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function I() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Tr(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
35
|
function Un() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
38
|
function Ae(e) {
|
|
39
|
-
e.forEach(
|
|
39
|
+
e.forEach(Tr);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function _t(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Xt(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function mi(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Cr(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const r of t)
|
|
53
53
|
r(void 0);
|
|
@@ -56,24 +56,24 @@ function Sr(e, ...t) {
|
|
|
56
56
|
const n = e.subscribe(...t);
|
|
57
57
|
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function gi(e) {
|
|
60
60
|
let t;
|
|
61
|
-
return
|
|
61
|
+
return Cr(e, (n) => t = n)(), t;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
return e &&
|
|
63
|
+
function bi(e) {
|
|
64
|
+
return e && _t(e.destroy) ? e.destroy : I;
|
|
65
65
|
}
|
|
66
66
|
function x(e, t) {
|
|
67
67
|
e.appendChild(t);
|
|
68
68
|
}
|
|
69
69
|
function Ln(e, t, n) {
|
|
70
|
-
const r =
|
|
70
|
+
const r = yi(e);
|
|
71
71
|
if (!r.getElementById(t)) {
|
|
72
72
|
const i = T("style");
|
|
73
|
-
i.id = t, i.textContent = n,
|
|
73
|
+
i.id = t, i.textContent = n, vi(r, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function yi(e) {
|
|
77
77
|
if (!e)
|
|
78
78
|
return document;
|
|
79
79
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -83,7 +83,7 @@ function vi(e) {
|
|
|
83
83
|
t
|
|
84
84
|
) : e.ownerDocument;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function vi(e, t) {
|
|
87
87
|
return x(
|
|
88
88
|
/** @type {Document} */
|
|
89
89
|
e.head || e,
|
|
@@ -96,7 +96,7 @@ function P(e, t, n) {
|
|
|
96
96
|
function B(e) {
|
|
97
97
|
e.parentNode && e.parentNode.removeChild(e);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Sr(e, t) {
|
|
100
100
|
for (let n = 0; n < e.length; n += 1)
|
|
101
101
|
e[n] && e[n].d(t);
|
|
102
102
|
}
|
|
@@ -112,13 +112,13 @@ function z(e) {
|
|
|
112
112
|
function R() {
|
|
113
113
|
return z(" ");
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function _i() {
|
|
116
116
|
return z("");
|
|
117
117
|
}
|
|
118
118
|
function ne(e, t, n, r) {
|
|
119
119
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function Ei(e) {
|
|
122
122
|
return function(t) {
|
|
123
123
|
return t.stopPropagation(), e.call(this, t);
|
|
124
124
|
};
|
|
@@ -126,23 +126,23 @@ function xi(e) {
|
|
|
126
126
|
function v(e, t, n) {
|
|
127
127
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function Vt(e) {
|
|
130
130
|
return e === "" ? null : +e;
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function xi(e) {
|
|
133
133
|
return Array.from(e.childNodes);
|
|
134
134
|
}
|
|
135
135
|
function re(e, t) {
|
|
136
136
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
137
137
|
t);
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function It(e, t) {
|
|
140
140
|
e.value = t == null ? "" : t;
|
|
141
141
|
}
|
|
142
142
|
function se(e, t, n) {
|
|
143
143
|
e.classList.toggle(t, !!n);
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function wi(e) {
|
|
146
146
|
const t = {};
|
|
147
147
|
return e.childNodes.forEach(
|
|
148
148
|
/** @param {Element} node */
|
|
@@ -151,76 +151,76 @@ function Ai(e) {
|
|
|
151
151
|
}
|
|
152
152
|
), t;
|
|
153
153
|
}
|
|
154
|
-
let
|
|
155
|
-
function
|
|
156
|
-
|
|
154
|
+
let gt;
|
|
155
|
+
function mt(e) {
|
|
156
|
+
gt = e;
|
|
157
157
|
}
|
|
158
|
-
function
|
|
159
|
-
if (!
|
|
158
|
+
function Br() {
|
|
159
|
+
if (!gt)
|
|
160
160
|
throw new Error("Function called outside component initialization");
|
|
161
|
-
return
|
|
161
|
+
return gt;
|
|
162
162
|
}
|
|
163
|
-
function
|
|
164
|
-
|
|
163
|
+
function Pr(e) {
|
|
164
|
+
Br().$$.on_mount.push(e);
|
|
165
165
|
}
|
|
166
|
-
function
|
|
167
|
-
|
|
166
|
+
function Ai(e) {
|
|
167
|
+
Br().$$.on_destroy.push(e);
|
|
168
168
|
}
|
|
169
169
|
const Ke = [], Qe = [];
|
|
170
170
|
let qe = [];
|
|
171
|
-
const
|
|
172
|
-
let
|
|
173
|
-
function
|
|
174
|
-
|
|
171
|
+
const dn = [], Hr = /* @__PURE__ */ Promise.resolve();
|
|
172
|
+
let mn = !1;
|
|
173
|
+
function Ir() {
|
|
174
|
+
mn || (mn = !0, Hr.then(F));
|
|
175
175
|
}
|
|
176
|
-
function
|
|
177
|
-
return
|
|
176
|
+
function Ti() {
|
|
177
|
+
return Ir(), Hr;
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function gn(e) {
|
|
180
180
|
qe.push(e);
|
|
181
181
|
}
|
|
182
182
|
function Gn(e) {
|
|
183
|
-
|
|
183
|
+
dn.push(e);
|
|
184
184
|
}
|
|
185
|
-
const
|
|
185
|
+
const on = /* @__PURE__ */ new Set();
|
|
186
186
|
let ze = 0;
|
|
187
187
|
function F() {
|
|
188
188
|
if (ze !== 0)
|
|
189
189
|
return;
|
|
190
|
-
const e =
|
|
190
|
+
const e = gt;
|
|
191
191
|
do {
|
|
192
192
|
try {
|
|
193
193
|
for (; ze < Ke.length; ) {
|
|
194
194
|
const t = Ke[ze];
|
|
195
|
-
ze++,
|
|
195
|
+
ze++, mt(t), Ci(t.$$);
|
|
196
196
|
}
|
|
197
197
|
} catch (t) {
|
|
198
198
|
throw Ke.length = 0, ze = 0, t;
|
|
199
199
|
}
|
|
200
|
-
for (
|
|
200
|
+
for (mt(null), Ke.length = 0, ze = 0; Qe.length; )
|
|
201
201
|
Qe.pop()();
|
|
202
202
|
for (let t = 0; t < qe.length; t += 1) {
|
|
203
203
|
const n = qe[t];
|
|
204
|
-
|
|
204
|
+
on.has(n) || (on.add(n), n());
|
|
205
205
|
}
|
|
206
206
|
qe.length = 0;
|
|
207
207
|
} while (Ke.length);
|
|
208
|
-
for (;
|
|
209
|
-
|
|
210
|
-
|
|
208
|
+
for (; dn.length; )
|
|
209
|
+
dn.pop()();
|
|
210
|
+
mn = !1, on.clear(), mt(e);
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function Ci(e) {
|
|
213
213
|
if (e.fragment !== null) {
|
|
214
214
|
e.update(), Ae(e.before_update);
|
|
215
215
|
const t = e.dirty;
|
|
216
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
216
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(gn);
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
|
-
function
|
|
219
|
+
function Si(e) {
|
|
220
220
|
const t = [], n = [];
|
|
221
221
|
qe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), qe = t;
|
|
222
222
|
}
|
|
223
|
-
const
|
|
223
|
+
const Rt = /* @__PURE__ */ new Set();
|
|
224
224
|
let Me;
|
|
225
225
|
function ke() {
|
|
226
226
|
Me = {
|
|
@@ -234,45 +234,45 @@ function Fe() {
|
|
|
234
234
|
Me.r || Ae(Me.c), Me = Me.p;
|
|
235
235
|
}
|
|
236
236
|
function G(e, t) {
|
|
237
|
-
e && e.i && (
|
|
237
|
+
e && e.i && (Rt.delete(e), e.i(t));
|
|
238
238
|
}
|
|
239
239
|
function X(e, t, n, r) {
|
|
240
240
|
if (e && e.o) {
|
|
241
|
-
if (
|
|
241
|
+
if (Rt.has(e))
|
|
242
242
|
return;
|
|
243
|
-
|
|
244
|
-
|
|
243
|
+
Rt.add(e), Me.c.push(() => {
|
|
244
|
+
Rt.delete(e), r && (n && e.d(1), r());
|
|
245
245
|
}), e.o(t);
|
|
246
246
|
} else
|
|
247
247
|
r && r();
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function Gt(e) {
|
|
250
250
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
251
251
|
}
|
|
252
252
|
function $n(e, t, n) {
|
|
253
253
|
const r = e.$$.props[t];
|
|
254
254
|
r !== void 0 && (e.$$.bound[r] = n, n(e.$$.ctx[r]));
|
|
255
255
|
}
|
|
256
|
-
function
|
|
256
|
+
function bt(e) {
|
|
257
257
|
e && e.c();
|
|
258
258
|
}
|
|
259
259
|
function Ye(e, t, n) {
|
|
260
260
|
const { fragment: r, after_update: i } = e.$$;
|
|
261
|
-
r && r.m(t, n),
|
|
262
|
-
const o = e.$$.on_mount.map(
|
|
261
|
+
r && r.m(t, n), gn(() => {
|
|
262
|
+
const o = e.$$.on_mount.map(Tr).filter(_t);
|
|
263
263
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Ae(o), e.$$.on_mount = [];
|
|
264
|
-
}), i.forEach(
|
|
264
|
+
}), i.forEach(gn);
|
|
265
265
|
}
|
|
266
266
|
function Je(e, t) {
|
|
267
267
|
const n = e.$$;
|
|
268
|
-
n.fragment !== null && (
|
|
268
|
+
n.fragment !== null && (Si(n.after_update), Ae(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
269
269
|
}
|
|
270
|
-
function
|
|
271
|
-
e.$$.dirty[0] === -1 && (Ke.push(e),
|
|
270
|
+
function Bi(e, t) {
|
|
271
|
+
e.$$.dirty[0] === -1 && (Ke.push(e), Ir(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
272
272
|
}
|
|
273
273
|
function Nn(e, t, n, r, i, o, a = null, s = [-1]) {
|
|
274
|
-
const l =
|
|
275
|
-
|
|
274
|
+
const l = gt;
|
|
275
|
+
mt(e);
|
|
276
276
|
const u = e.$$ = {
|
|
277
277
|
fragment: null,
|
|
278
278
|
ctx: [],
|
|
@@ -298,19 +298,19 @@ function Nn(e, t, n, r, i, o, a = null, s = [-1]) {
|
|
|
298
298
|
let h = !1;
|
|
299
299
|
if (u.ctx = n ? n(e, t.props || {}, (f, c, ...m) => {
|
|
300
300
|
const _ = m.length ? m[0] : c;
|
|
301
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = _) && (!u.skip_bound && u.bound[f] && u.bound[f](_), h &&
|
|
301
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = _) && (!u.skip_bound && u.bound[f] && u.bound[f](_), h && Bi(e, f)), c;
|
|
302
302
|
}) : [], u.update(), h = !0, Ae(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
303
303
|
if (t.hydrate) {
|
|
304
|
-
const f =
|
|
304
|
+
const f = xi(t.target);
|
|
305
305
|
u.fragment && u.fragment.l(f), f.forEach(B);
|
|
306
306
|
} else
|
|
307
307
|
u.fragment && u.fragment.c();
|
|
308
308
|
t.intro && G(e.$$.fragment), Ye(e, t.target, t.anchor), F();
|
|
309
309
|
}
|
|
310
|
-
|
|
310
|
+
mt(l);
|
|
311
311
|
}
|
|
312
|
-
let
|
|
313
|
-
typeof HTMLElement == "function" && (
|
|
312
|
+
let Or;
|
|
313
|
+
typeof HTMLElement == "function" && (Or = class extends HTMLElement {
|
|
314
314
|
constructor(t, n, r) {
|
|
315
315
|
super();
|
|
316
316
|
/** The Svelte component constructor */
|
|
@@ -347,7 +347,7 @@ typeof HTMLElement == "function" && (Lr = class extends HTMLElement {
|
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
connectedCallback() {
|
|
350
|
-
return
|
|
350
|
+
return Ht(this, null, function* () {
|
|
351
351
|
if (this.$$cn = !0, !this.$$c) {
|
|
352
352
|
let t = function(o) {
|
|
353
353
|
return () => {
|
|
@@ -371,18 +371,18 @@ typeof HTMLElement == "function" && (Lr = class extends HTMLElement {
|
|
|
371
371
|
};
|
|
372
372
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
373
373
|
return;
|
|
374
|
-
const n = {}, r =
|
|
374
|
+
const n = {}, r = wi(this);
|
|
375
375
|
for (const o of this.$$s)
|
|
376
376
|
o in r && (n[o] = [t(o)]);
|
|
377
377
|
for (const o of this.attributes) {
|
|
378
378
|
const a = this.$$g_p(o.name);
|
|
379
|
-
a in this.$$d || (this.$$d[a] =
|
|
379
|
+
a in this.$$d || (this.$$d[a] = Dt(a, o.value, this.$$p_d, "toProp"));
|
|
380
380
|
}
|
|
381
381
|
for (const o in this.$$p_d)
|
|
382
382
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
383
383
|
this.$$c = new this.$$ctor({
|
|
384
384
|
target: this.shadowRoot || this,
|
|
385
|
-
props:
|
|
385
|
+
props: rn(Ie({}, this.$$d), {
|
|
386
386
|
$$slots: n,
|
|
387
387
|
$$scope: {
|
|
388
388
|
ctx: []
|
|
@@ -393,7 +393,7 @@ typeof HTMLElement == "function" && (Lr = class extends HTMLElement {
|
|
|
393
393
|
this.$$r = !0;
|
|
394
394
|
for (const o in this.$$p_d)
|
|
395
395
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
396
|
-
const a =
|
|
396
|
+
const a = Dt(
|
|
397
397
|
o,
|
|
398
398
|
this.$$d[o],
|
|
399
399
|
this.$$p_d,
|
|
@@ -417,7 +417,7 @@ typeof HTMLElement == "function" && (Lr = class extends HTMLElement {
|
|
|
417
417
|
// and setting attributes through setAttribute etc, this is helpful
|
|
418
418
|
attributeChangedCallback(t, n, r) {
|
|
419
419
|
var i;
|
|
420
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
420
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = Dt(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
421
421
|
}
|
|
422
422
|
disconnectedCallback() {
|
|
423
423
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -430,7 +430,7 @@ typeof HTMLElement == "function" && (Lr = class extends HTMLElement {
|
|
|
430
430
|
) || t;
|
|
431
431
|
}
|
|
432
432
|
});
|
|
433
|
-
function
|
|
433
|
+
function Dt(e, t, n, r) {
|
|
434
434
|
var o;
|
|
435
435
|
const i = (o = n[e]) == null ? void 0 : o.type;
|
|
436
436
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
@@ -461,7 +461,7 @@ function Nt(e, t, n, r) {
|
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
463
|
function Rn(e, t, n, r, i, o) {
|
|
464
|
-
let a = class extends
|
|
464
|
+
let a = class extends Or {
|
|
465
465
|
constructor() {
|
|
466
466
|
super(e, n, i), this.$$p_d = t;
|
|
467
467
|
}
|
|
@@ -478,7 +478,7 @@ function Rn(e, t, n, r, i, o) {
|
|
|
478
478
|
},
|
|
479
479
|
set(l) {
|
|
480
480
|
var u;
|
|
481
|
-
l =
|
|
481
|
+
l = Dt(s, l, t), this.$$d[s] = l, (u = this.$$c) == null || u.$set({ [s]: l });
|
|
482
482
|
}
|
|
483
483
|
});
|
|
484
484
|
}), r.forEach((s) => {
|
|
@@ -521,7 +521,7 @@ class Dn {
|
|
|
521
521
|
* @returns {() => void}
|
|
522
522
|
*/
|
|
523
523
|
$on(t, n) {
|
|
524
|
-
if (!
|
|
524
|
+
if (!_t(n))
|
|
525
525
|
return I;
|
|
526
526
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
527
527
|
return r.push(n), () => {
|
|
@@ -534,22 +534,22 @@ class Dn {
|
|
|
534
534
|
* @returns {void}
|
|
535
535
|
*/
|
|
536
536
|
$set(t) {
|
|
537
|
-
this.$$set && !
|
|
537
|
+
this.$$set && !mi(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
538
538
|
}
|
|
539
539
|
}
|
|
540
|
-
const
|
|
541
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
540
|
+
const Pi = "4";
|
|
541
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Pi);
|
|
542
542
|
const Ze = [];
|
|
543
|
-
function
|
|
543
|
+
function Hi(e, t) {
|
|
544
544
|
return {
|
|
545
|
-
subscribe:
|
|
545
|
+
subscribe: zt(e, t).subscribe
|
|
546
546
|
};
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function zt(e, t = I) {
|
|
549
549
|
let n;
|
|
550
550
|
const r = /* @__PURE__ */ new Set();
|
|
551
551
|
function i(s) {
|
|
552
|
-
if (
|
|
552
|
+
if (Xt(e, s) && (e = s, n)) {
|
|
553
553
|
const l = !Ze.length;
|
|
554
554
|
for (const u of r)
|
|
555
555
|
u[1](), Ze.push(u, e);
|
|
@@ -576,7 +576,7 @@ function it(e, t, n) {
|
|
|
576
576
|
if (!i.every(Boolean))
|
|
577
577
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
578
578
|
const o = t.length < 2;
|
|
579
|
-
return
|
|
579
|
+
return Hi(n, (a, s) => {
|
|
580
580
|
let l = !1;
|
|
581
581
|
const u = [];
|
|
582
582
|
let h = 0, f = I;
|
|
@@ -585,9 +585,9 @@ function it(e, t, n) {
|
|
|
585
585
|
return;
|
|
586
586
|
f();
|
|
587
587
|
const _ = t(r ? u[0] : u, a, s);
|
|
588
|
-
o ? a(_) : f =
|
|
588
|
+
o ? a(_) : f = _t(_) ? _ : I;
|
|
589
589
|
}, m = i.map(
|
|
590
|
-
(_, g) =>
|
|
590
|
+
(_, g) => Cr(
|
|
591
591
|
_,
|
|
592
592
|
(w) => {
|
|
593
593
|
u[g] = w, h &= ~(1 << g), l && c();
|
|
@@ -602,70 +602,70 @@ function it(e, t, n) {
|
|
|
602
602
|
};
|
|
603
603
|
});
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function Ii(e) {
|
|
606
606
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
607
607
|
}
|
|
608
|
-
var
|
|
609
|
-
return
|
|
608
|
+
var Oi = function(t) {
|
|
609
|
+
return Li(t) && !Ni(t);
|
|
610
610
|
};
|
|
611
|
-
function
|
|
611
|
+
function Li(e) {
|
|
612
612
|
return !!e && typeof e == "object";
|
|
613
613
|
}
|
|
614
|
-
function
|
|
614
|
+
function Ni(e) {
|
|
615
615
|
var t = Object.prototype.toString.call(e);
|
|
616
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
616
|
+
return t === "[object RegExp]" || t === "[object Date]" || Mi(e);
|
|
617
617
|
}
|
|
618
|
-
var
|
|
619
|
-
function
|
|
620
|
-
return e.$$typeof ===
|
|
618
|
+
var Ri = typeof Symbol == "function" && Symbol.for, Di = Ri ? Symbol.for("react.element") : 60103;
|
|
619
|
+
function Mi(e) {
|
|
620
|
+
return e.$$typeof === Di;
|
|
621
621
|
}
|
|
622
|
-
function
|
|
622
|
+
function ki(e) {
|
|
623
623
|
return Array.isArray(e) ? [] : {};
|
|
624
624
|
}
|
|
625
|
-
function
|
|
626
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? et(
|
|
625
|
+
function yt(e, t) {
|
|
626
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? et(ki(e), e, t) : e;
|
|
627
627
|
}
|
|
628
|
-
function
|
|
628
|
+
function Fi(e, t, n) {
|
|
629
629
|
return e.concat(t).map(function(r) {
|
|
630
|
-
return
|
|
630
|
+
return yt(r, n);
|
|
631
631
|
});
|
|
632
632
|
}
|
|
633
|
-
function
|
|
633
|
+
function Ui(e, t) {
|
|
634
634
|
if (!t.customMerge)
|
|
635
635
|
return et;
|
|
636
636
|
var n = t.customMerge(e);
|
|
637
637
|
return typeof n == "function" ? n : et;
|
|
638
638
|
}
|
|
639
|
-
function
|
|
639
|
+
function Vi(e) {
|
|
640
640
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
641
641
|
return Object.propertyIsEnumerable.call(e, t);
|
|
642
642
|
}) : [];
|
|
643
643
|
}
|
|
644
644
|
function jn(e) {
|
|
645
|
-
return Object.keys(e).concat(
|
|
645
|
+
return Object.keys(e).concat(Vi(e));
|
|
646
646
|
}
|
|
647
|
-
function
|
|
647
|
+
function Lr(e, t) {
|
|
648
648
|
try {
|
|
649
649
|
return t in e;
|
|
650
650
|
} catch (n) {
|
|
651
651
|
return !1;
|
|
652
652
|
}
|
|
653
653
|
}
|
|
654
|
-
function
|
|
655
|
-
return
|
|
654
|
+
function Gi(e, t) {
|
|
655
|
+
return Lr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
656
656
|
}
|
|
657
|
-
function
|
|
657
|
+
function $i(e, t, n) {
|
|
658
658
|
var r = {};
|
|
659
659
|
return n.isMergeableObject(e) && jn(e).forEach(function(i) {
|
|
660
|
-
r[i] =
|
|
660
|
+
r[i] = yt(e[i], n);
|
|
661
661
|
}), jn(t).forEach(function(i) {
|
|
662
|
-
|
|
662
|
+
Gi(e, i) || (Lr(e, i) && n.isMergeableObject(t[i]) ? r[i] = Ui(i, n)(e[i], t[i], n) : r[i] = yt(t[i], n));
|
|
663
663
|
}), r;
|
|
664
664
|
}
|
|
665
665
|
function et(e, t, n) {
|
|
666
|
-
n = n || {}, n.arrayMerge = n.arrayMerge ||
|
|
666
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || Fi, n.isMergeableObject = n.isMergeableObject || Oi, n.cloneUnlessOtherwiseSpecified = yt;
|
|
667
667
|
var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
|
|
668
|
-
return o ? r ? n.arrayMerge(e, t, n) :
|
|
668
|
+
return o ? r ? n.arrayMerge(e, t, n) : $i(e, t, n) : yt(t, n);
|
|
669
669
|
}
|
|
670
670
|
et.all = function(t, n) {
|
|
671
671
|
if (!Array.isArray(t))
|
|
@@ -674,20 +674,20 @@ et.all = function(t, n) {
|
|
|
674
674
|
return et(r, i, n);
|
|
675
675
|
}, {});
|
|
676
676
|
};
|
|
677
|
-
var
|
|
678
|
-
const
|
|
679
|
-
var
|
|
680
|
-
return
|
|
677
|
+
var ji = et, Wi = ji;
|
|
678
|
+
const Xi = /* @__PURE__ */ Ii(Wi);
|
|
679
|
+
var bn = function(e, t) {
|
|
680
|
+
return bn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
681
681
|
n.__proto__ = r;
|
|
682
682
|
} || function(n, r) {
|
|
683
683
|
for (var i in r)
|
|
684
684
|
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
685
|
-
},
|
|
685
|
+
}, bn(e, t);
|
|
686
686
|
};
|
|
687
|
-
function
|
|
687
|
+
function Zt(e, t) {
|
|
688
688
|
if (typeof t != "function" && t !== null)
|
|
689
689
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
690
|
-
|
|
690
|
+
bn(e, t);
|
|
691
691
|
function n() {
|
|
692
692
|
this.constructor = e;
|
|
693
693
|
}
|
|
@@ -703,7 +703,7 @@ var me = function() {
|
|
|
703
703
|
return t;
|
|
704
704
|
}, me.apply(this, arguments);
|
|
705
705
|
};
|
|
706
|
-
function
|
|
706
|
+
function zi(e, t) {
|
|
707
707
|
var n = {};
|
|
708
708
|
for (var r in e)
|
|
709
709
|
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
@@ -712,43 +712,43 @@ function Zi(e, t) {
|
|
|
712
712
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
713
713
|
return n;
|
|
714
714
|
}
|
|
715
|
-
function
|
|
715
|
+
function an(e, t, n) {
|
|
716
716
|
if (n || arguments.length === 2)
|
|
717
717
|
for (var r = 0, i = t.length, o; r < i; r++)
|
|
718
718
|
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
719
719
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
720
720
|
}
|
|
721
|
-
function
|
|
722
|
-
var n = t && t.cache ? t.cache :
|
|
721
|
+
function sn(e, t) {
|
|
722
|
+
var n = t && t.cache ? t.cache : eo, r = t && t.serializer ? t.serializer : Yi, i = t && t.strategy ? t.strategy : qi;
|
|
723
723
|
return i(e, {
|
|
724
724
|
cache: n,
|
|
725
725
|
serializer: r
|
|
726
726
|
});
|
|
727
727
|
}
|
|
728
|
-
function
|
|
728
|
+
function Zi(e) {
|
|
729
729
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
730
730
|
}
|
|
731
|
-
function
|
|
732
|
-
var i =
|
|
731
|
+
function Ki(e, t, n, r) {
|
|
732
|
+
var i = Zi(r) ? r : n(r), o = t.get(i);
|
|
733
733
|
return typeof o == "undefined" && (o = e.call(this, r), t.set(i, o)), o;
|
|
734
734
|
}
|
|
735
|
-
function
|
|
735
|
+
function Nr(e, t, n) {
|
|
736
736
|
var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
|
|
737
737
|
return typeof o == "undefined" && (o = e.apply(this, r), t.set(i, o)), o;
|
|
738
738
|
}
|
|
739
|
-
function
|
|
739
|
+
function Rr(e, t, n, r, i) {
|
|
740
740
|
return n.bind(t, e, r, i);
|
|
741
741
|
}
|
|
742
|
-
function
|
|
743
|
-
var n = e.length === 1 ?
|
|
744
|
-
return
|
|
742
|
+
function qi(e, t) {
|
|
743
|
+
var n = e.length === 1 ? Ki : Nr;
|
|
744
|
+
return Rr(e, this, n, t.cache.create(), t.serializer);
|
|
745
745
|
}
|
|
746
|
-
function
|
|
747
|
-
return
|
|
746
|
+
function Qi(e, t) {
|
|
747
|
+
return Rr(e, this, Nr, t.cache.create(), t.serializer);
|
|
748
748
|
}
|
|
749
|
-
var
|
|
749
|
+
var Yi = function() {
|
|
750
750
|
return JSON.stringify(arguments);
|
|
751
|
-
},
|
|
751
|
+
}, Ji = (
|
|
752
752
|
/** @class */
|
|
753
753
|
function() {
|
|
754
754
|
function e() {
|
|
@@ -760,21 +760,21 @@ var Ji = function() {
|
|
|
760
760
|
this.cache[t] = n;
|
|
761
761
|
}, e;
|
|
762
762
|
}()
|
|
763
|
-
),
|
|
763
|
+
), eo = {
|
|
764
764
|
create: function() {
|
|
765
|
-
return new
|
|
765
|
+
return new Ji();
|
|
766
766
|
}
|
|
767
|
-
},
|
|
768
|
-
variadic:
|
|
769
|
-
},
|
|
770
|
-
return
|
|
767
|
+
}, ln = {
|
|
768
|
+
variadic: Qi
|
|
769
|
+
}, $t = function() {
|
|
770
|
+
return $t = Object.assign || function(t) {
|
|
771
771
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
772
772
|
n = arguments[r];
|
|
773
773
|
for (var o in n)
|
|
774
774
|
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
775
775
|
}
|
|
776
776
|
return t;
|
|
777
|
-
},
|
|
777
|
+
}, $t.apply(this, arguments);
|
|
778
778
|
};
|
|
779
779
|
var H;
|
|
780
780
|
(function(e) {
|
|
@@ -791,40 +791,40 @@ var tt;
|
|
|
791
791
|
function Wn(e) {
|
|
792
792
|
return e.type === U.literal;
|
|
793
793
|
}
|
|
794
|
-
function
|
|
794
|
+
function to(e) {
|
|
795
795
|
return e.type === U.argument;
|
|
796
796
|
}
|
|
797
|
-
function
|
|
797
|
+
function Dr(e) {
|
|
798
798
|
return e.type === U.number;
|
|
799
799
|
}
|
|
800
|
-
function
|
|
800
|
+
function Mr(e) {
|
|
801
801
|
return e.type === U.date;
|
|
802
802
|
}
|
|
803
|
-
function
|
|
803
|
+
function kr(e) {
|
|
804
804
|
return e.type === U.time;
|
|
805
805
|
}
|
|
806
|
-
function
|
|
806
|
+
function Fr(e) {
|
|
807
807
|
return e.type === U.select;
|
|
808
808
|
}
|
|
809
|
-
function
|
|
809
|
+
function Ur(e) {
|
|
810
810
|
return e.type === U.plural;
|
|
811
811
|
}
|
|
812
|
-
function
|
|
812
|
+
function no(e) {
|
|
813
813
|
return e.type === U.pound;
|
|
814
814
|
}
|
|
815
|
-
function
|
|
815
|
+
function Vr(e) {
|
|
816
816
|
return e.type === U.tag;
|
|
817
817
|
}
|
|
818
|
-
function
|
|
818
|
+
function Gr(e) {
|
|
819
819
|
return !!(e && typeof e == "object" && e.type === tt.number);
|
|
820
820
|
}
|
|
821
|
-
function
|
|
821
|
+
function yn(e) {
|
|
822
822
|
return !!(e && typeof e == "object" && e.type === tt.dateTime);
|
|
823
823
|
}
|
|
824
|
-
var
|
|
825
|
-
function
|
|
824
|
+
var $r = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ro = /(?:[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;
|
|
825
|
+
function io(e) {
|
|
826
826
|
var t = {};
|
|
827
|
-
return e.replace(
|
|
827
|
+
return e.replace(ro, function(n) {
|
|
828
828
|
var r = n.length;
|
|
829
829
|
switch (n[0]) {
|
|
830
830
|
case "G":
|
|
@@ -923,11 +923,11 @@ var V = function() {
|
|
|
923
923
|
return t;
|
|
924
924
|
}, V.apply(this, arguments);
|
|
925
925
|
};
|
|
926
|
-
var
|
|
927
|
-
function
|
|
926
|
+
var oo = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
927
|
+
function ao(e) {
|
|
928
928
|
if (e.length === 0)
|
|
929
929
|
throw new Error("Number skeleton cannot be empty");
|
|
930
|
-
for (var t = e.split(
|
|
930
|
+
for (var t = e.split(oo).filter(function(c) {
|
|
931
931
|
return c.length > 0;
|
|
932
932
|
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
933
933
|
var o = i[r], a = o.split("/");
|
|
@@ -942,17 +942,17 @@ function so(e) {
|
|
|
942
942
|
}
|
|
943
943
|
return n;
|
|
944
944
|
}
|
|
945
|
-
function
|
|
945
|
+
function so(e) {
|
|
946
946
|
return e.replace(/^(.*?)-/, "");
|
|
947
947
|
}
|
|
948
|
-
var Xn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,
|
|
948
|
+
var Xn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, jr = /^(@+)?(\+|#+)?[rs]?$/g, lo = /(\*)(0+)|(#+)(0+)|(0+)/g, Wr = /^(0+)$/;
|
|
949
949
|
function zn(e) {
|
|
950
950
|
var t = {};
|
|
951
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
951
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(jr, function(n, r, i) {
|
|
952
952
|
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)), "";
|
|
953
953
|
}), t;
|
|
954
954
|
}
|
|
955
|
-
function
|
|
955
|
+
function Xr(e) {
|
|
956
956
|
switch (e) {
|
|
957
957
|
case "sign-auto":
|
|
958
958
|
return {
|
|
@@ -992,7 +992,7 @@ function zr(e) {
|
|
|
992
992
|
};
|
|
993
993
|
}
|
|
994
994
|
}
|
|
995
|
-
function
|
|
995
|
+
function uo(e) {
|
|
996
996
|
var t;
|
|
997
997
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
998
998
|
notation: "engineering"
|
|
@@ -1000,17 +1000,17 @@ function co(e) {
|
|
|
1000
1000
|
notation: "scientific"
|
|
1001
1001
|
}, e = e.slice(1)), t) {
|
|
1002
1002
|
var n = e.slice(0, 2);
|
|
1003
|
-
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1003
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Wr.test(e))
|
|
1004
1004
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1005
1005
|
t.minimumIntegerDigits = e.length;
|
|
1006
1006
|
}
|
|
1007
1007
|
return t;
|
|
1008
1008
|
}
|
|
1009
1009
|
function Zn(e) {
|
|
1010
|
-
var t = {}, n =
|
|
1010
|
+
var t = {}, n = Xr(e);
|
|
1011
1011
|
return n || t;
|
|
1012
1012
|
}
|
|
1013
|
-
function
|
|
1013
|
+
function co(e) {
|
|
1014
1014
|
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
1015
1015
|
var i = r[n];
|
|
1016
1016
|
switch (i.stem) {
|
|
@@ -1034,7 +1034,7 @@ function ho(e) {
|
|
|
1034
1034
|
continue;
|
|
1035
1035
|
case "measure-unit":
|
|
1036
1036
|
case "unit":
|
|
1037
|
-
t.style = "unit", t.unit =
|
|
1037
|
+
t.style = "unit", t.unit = so(i.options[0]);
|
|
1038
1038
|
continue;
|
|
1039
1039
|
case "compact-short":
|
|
1040
1040
|
case "K":
|
|
@@ -1096,7 +1096,7 @@ function ho(e) {
|
|
|
1096
1096
|
case "integer-width":
|
|
1097
1097
|
if (i.options.length > 1)
|
|
1098
1098
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1099
|
-
i.options[0].replace(
|
|
1099
|
+
i.options[0].replace(lo, function(l, u, h, f, c, m) {
|
|
1100
1100
|
if (u)
|
|
1101
1101
|
t.minimumIntegerDigits = h.length;
|
|
1102
1102
|
else {
|
|
@@ -1109,7 +1109,7 @@ function ho(e) {
|
|
|
1109
1109
|
});
|
|
1110
1110
|
continue;
|
|
1111
1111
|
}
|
|
1112
|
-
if (
|
|
1112
|
+
if (Wr.test(i.stem)) {
|
|
1113
1113
|
t.minimumIntegerDigits = i.stem.length;
|
|
1114
1114
|
continue;
|
|
1115
1115
|
}
|
|
@@ -1123,18 +1123,18 @@ function ho(e) {
|
|
|
1123
1123
|
o === "w" ? t = V(V({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = V(V({}, t), zn(o)));
|
|
1124
1124
|
continue;
|
|
1125
1125
|
}
|
|
1126
|
-
if (
|
|
1126
|
+
if (jr.test(i.stem)) {
|
|
1127
1127
|
t = V(V({}, t), zn(i.stem));
|
|
1128
1128
|
continue;
|
|
1129
1129
|
}
|
|
1130
|
-
var a =
|
|
1130
|
+
var a = Xr(i.stem);
|
|
1131
1131
|
a && (t = V(V({}, t), a));
|
|
1132
|
-
var s =
|
|
1132
|
+
var s = uo(i.stem);
|
|
1133
1133
|
s && (t = V(V({}, t), s));
|
|
1134
1134
|
}
|
|
1135
1135
|
return t;
|
|
1136
1136
|
}
|
|
1137
|
-
var
|
|
1137
|
+
var Ot = {
|
|
1138
1138
|
"001": [
|
|
1139
1139
|
"H",
|
|
1140
1140
|
"h"
|
|
@@ -2549,13 +2549,13 @@ var Ht = {
|
|
|
2549
2549
|
"h"
|
|
2550
2550
|
]
|
|
2551
2551
|
};
|
|
2552
|
-
function
|
|
2552
|
+
function ho(e, t) {
|
|
2553
2553
|
for (var n = "", r = 0; r < e.length; r++) {
|
|
2554
2554
|
var i = e.charAt(r);
|
|
2555
2555
|
if (i === "j") {
|
|
2556
2556
|
for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2557
2557
|
o++, r++;
|
|
2558
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
2558
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = fo(t);
|
|
2559
2559
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2560
2560
|
n += l;
|
|
2561
2561
|
for (; a-- > 0; )
|
|
@@ -2565,7 +2565,7 @@ function fo(e, t) {
|
|
|
2565
2565
|
}
|
|
2566
2566
|
return n;
|
|
2567
2567
|
}
|
|
2568
|
-
function
|
|
2568
|
+
function fo(e) {
|
|
2569
2569
|
var t = e.hourCycle;
|
|
2570
2570
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2571
2571
|
e.hourCycles && // @ts-ignore
|
|
@@ -2584,23 +2584,23 @@ function po(e) {
|
|
|
2584
2584
|
}
|
|
2585
2585
|
var n = e.language, r;
|
|
2586
2586
|
n !== "root" && (r = e.maximize().region);
|
|
2587
|
-
var i =
|
|
2587
|
+
var i = Ot[r || ""] || Ot[n || ""] || Ot["".concat(n, "-001")] || Ot["001"];
|
|
2588
2588
|
return i[0];
|
|
2589
2589
|
}
|
|
2590
|
-
var
|
|
2590
|
+
var un, po = new RegExp("^".concat($r.source, "*")), mo = new RegExp("".concat($r.source, "*$"));
|
|
2591
2591
|
function L(e, t) {
|
|
2592
2592
|
return { start: e, end: t };
|
|
2593
2593
|
}
|
|
2594
|
-
var
|
|
2594
|
+
var go = !!String.prototype.startsWith && "_a".startsWith("a", 1), bo = !!String.fromCodePoint, yo = !!Object.fromEntries, vo = !!String.prototype.codePointAt, _o = !!String.prototype.trimStart, Eo = !!String.prototype.trimEnd, xo = !!Number.isSafeInteger, wo = xo ? Number.isSafeInteger : function(e) {
|
|
2595
2595
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2596
|
-
},
|
|
2596
|
+
}, vn = !0;
|
|
2597
2597
|
try {
|
|
2598
|
-
var
|
|
2599
|
-
|
|
2598
|
+
var Ao = Zr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2599
|
+
vn = ((un = Ao.exec("a")) === null || un === void 0 ? void 0 : un[0]) === "a";
|
|
2600
2600
|
} catch (e) {
|
|
2601
|
-
|
|
2601
|
+
vn = !1;
|
|
2602
2602
|
}
|
|
2603
|
-
var Kn =
|
|
2603
|
+
var Kn = go ? (
|
|
2604
2604
|
// Native
|
|
2605
2605
|
function(t, n, r) {
|
|
2606
2606
|
return t.startsWith(n, r);
|
|
@@ -2610,7 +2610,7 @@ var Kn = bo ? (
|
|
|
2610
2610
|
function(t, n, r) {
|
|
2611
2611
|
return t.slice(r, r + n.length) === n;
|
|
2612
2612
|
}
|
|
2613
|
-
),
|
|
2613
|
+
), _n = bo ? String.fromCodePoint : (
|
|
2614
2614
|
// IE11
|
|
2615
2615
|
function() {
|
|
2616
2616
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
@@ -2624,7 +2624,7 @@ var Kn = bo ? (
|
|
|
2624
2624
|
}
|
|
2625
2625
|
), qn = (
|
|
2626
2626
|
// native
|
|
2627
|
-
|
|
2627
|
+
yo ? Object.fromEntries : (
|
|
2628
2628
|
// Ponyfill
|
|
2629
2629
|
function(t) {
|
|
2630
2630
|
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
@@ -2634,7 +2634,7 @@ var Kn = bo ? (
|
|
|
2634
2634
|
return n;
|
|
2635
2635
|
}
|
|
2636
2636
|
)
|
|
2637
|
-
),
|
|
2637
|
+
), zr = vo ? (
|
|
2638
2638
|
// Native
|
|
2639
2639
|
function(t, n) {
|
|
2640
2640
|
return t.codePointAt(n);
|
|
@@ -2648,7 +2648,7 @@ var Kn = bo ? (
|
|
|
2648
2648
|
return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2649
2649
|
}
|
|
2650
2650
|
}
|
|
2651
|
-
),
|
|
2651
|
+
), To = _o ? (
|
|
2652
2652
|
// Native
|
|
2653
2653
|
function(t) {
|
|
2654
2654
|
return t.trimStart();
|
|
@@ -2656,9 +2656,9 @@ var Kn = bo ? (
|
|
|
2656
2656
|
) : (
|
|
2657
2657
|
// Ponyfill
|
|
2658
2658
|
function(t) {
|
|
2659
|
-
return t.replace(
|
|
2659
|
+
return t.replace(po, "");
|
|
2660
2660
|
}
|
|
2661
|
-
),
|
|
2661
|
+
), Co = Eo ? (
|
|
2662
2662
|
// Native
|
|
2663
2663
|
function(t) {
|
|
2664
2664
|
return t.trimEnd();
|
|
@@ -2666,32 +2666,32 @@ var Kn = bo ? (
|
|
|
2666
2666
|
) : (
|
|
2667
2667
|
// Ponyfill
|
|
2668
2668
|
function(t) {
|
|
2669
|
-
return t.replace(
|
|
2669
|
+
return t.replace(mo, "");
|
|
2670
2670
|
}
|
|
2671
2671
|
);
|
|
2672
|
-
function
|
|
2672
|
+
function Zr(e, t) {
|
|
2673
2673
|
return new RegExp(e, t);
|
|
2674
2674
|
}
|
|
2675
|
-
var
|
|
2676
|
-
if (
|
|
2677
|
-
var Qn =
|
|
2678
|
-
|
|
2675
|
+
var En;
|
|
2676
|
+
if (vn) {
|
|
2677
|
+
var Qn = Zr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2678
|
+
En = function(t, n) {
|
|
2679
2679
|
var r;
|
|
2680
2680
|
Qn.lastIndex = n;
|
|
2681
2681
|
var i = Qn.exec(t);
|
|
2682
2682
|
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2683
2683
|
};
|
|
2684
2684
|
} else
|
|
2685
|
-
|
|
2685
|
+
En = function(t, n) {
|
|
2686
2686
|
for (var r = []; ; ) {
|
|
2687
|
-
var i =
|
|
2688
|
-
if (i === void 0 ||
|
|
2687
|
+
var i = zr(t, n);
|
|
2688
|
+
if (i === void 0 || Kr(i) || Ho(i))
|
|
2689
2689
|
break;
|
|
2690
2690
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2691
2691
|
}
|
|
2692
|
-
return
|
|
2692
|
+
return _n.apply(void 0, r);
|
|
2693
2693
|
};
|
|
2694
|
-
var
|
|
2694
|
+
var So = (
|
|
2695
2695
|
/** @class */
|
|
2696
2696
|
function() {
|
|
2697
2697
|
function e(t, n) {
|
|
@@ -2722,7 +2722,7 @@ var Bo = (
|
|
|
2722
2722
|
if (r)
|
|
2723
2723
|
break;
|
|
2724
2724
|
return this.error(H.UNMATCHED_CLOSING_TAG, L(this.clonePosition(), this.clonePosition()));
|
|
2725
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2725
|
+
} else if (o === 60 && !this.ignoreTag && xn(this.peek() || 0)) {
|
|
2726
2726
|
var a = this.parseTag(t, n);
|
|
2727
2727
|
if (a.err)
|
|
2728
2728
|
return a;
|
|
@@ -2755,7 +2755,7 @@ var Bo = (
|
|
|
2755
2755
|
return o;
|
|
2756
2756
|
var a = o.val, s = this.clonePosition();
|
|
2757
2757
|
if (this.bumpIf("</")) {
|
|
2758
|
-
if (this.isEOF() || !
|
|
2758
|
+
if (this.isEOF() || !xn(this.char()))
|
|
2759
2759
|
return this.error(H.INVALID_TAG, L(s, this.clonePosition()));
|
|
2760
2760
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2761
2761
|
return i !== u ? this.error(H.UNMATCHED_CLOSING_TAG, L(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -2773,7 +2773,7 @@ var Bo = (
|
|
|
2773
2773
|
return this.error(H.INVALID_TAG, L(r, this.clonePosition()));
|
|
2774
2774
|
}, e.prototype.parseTagName = function() {
|
|
2775
2775
|
var t = this.offset();
|
|
2776
|
-
for (this.bump(); !this.isEOF() &&
|
|
2776
|
+
for (this.bump(); !this.isEOF() && Po(this.char()); )
|
|
2777
2777
|
this.bump();
|
|
2778
2778
|
return this.message.slice(t, this.offset());
|
|
2779
2779
|
}, e.prototype.parseLiteral = function(t, n) {
|
|
@@ -2802,7 +2802,7 @@ var Bo = (
|
|
|
2802
2802
|
};
|
|
2803
2803
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2804
2804
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2805
|
-
!
|
|
2805
|
+
!Bo(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2806
2806
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2807
2807
|
if (this.isEOF() || this.char() !== 39)
|
|
2808
2808
|
return null;
|
|
@@ -2836,12 +2836,12 @@ var Bo = (
|
|
|
2836
2836
|
n.push(r);
|
|
2837
2837
|
this.bump();
|
|
2838
2838
|
}
|
|
2839
|
-
return
|
|
2839
|
+
return _n.apply(void 0, n);
|
|
2840
2840
|
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
2841
2841
|
if (this.isEOF())
|
|
2842
2842
|
return null;
|
|
2843
2843
|
var r = this.char();
|
|
2844
|
-
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(),
|
|
2844
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), _n(r));
|
|
2845
2845
|
}, e.prototype.parseArgument = function(t, n) {
|
|
2846
2846
|
var r = this.clonePosition();
|
|
2847
2847
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2870,7 +2870,7 @@ var Bo = (
|
|
|
2870
2870
|
return this.error(H.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
|
|
2871
2871
|
}
|
|
2872
2872
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2873
|
-
var t = this.clonePosition(), n = this.offset(), r =
|
|
2873
|
+
var t = this.clonePosition(), n = this.offset(), r = En(this.message, n), i = n + r.length;
|
|
2874
2874
|
this.bumpTo(i);
|
|
2875
2875
|
var o = this.clonePosition(), a = L(t, o);
|
|
2876
2876
|
return { value: r, location: a };
|
|
@@ -2889,7 +2889,7 @@ var Bo = (
|
|
|
2889
2889
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2890
2890
|
if (f.err)
|
|
2891
2891
|
return f;
|
|
2892
|
-
var c =
|
|
2892
|
+
var c = Co(f.val);
|
|
2893
2893
|
if (c.length === 0)
|
|
2894
2894
|
return this.error(H.EXPECT_ARGUMENT_STYLE, L(this.clonePosition(), this.clonePosition()));
|
|
2895
2895
|
var m = L(h, this.clonePosition());
|
|
@@ -2900,7 +2900,7 @@ var Bo = (
|
|
|
2900
2900
|
return _;
|
|
2901
2901
|
var g = L(i, this.clonePosition());
|
|
2902
2902
|
if (u && Kn(u == null ? void 0 : u.style, "::", 0)) {
|
|
2903
|
-
var w =
|
|
2903
|
+
var w = To(u.style.slice(2));
|
|
2904
2904
|
if (s === "number") {
|
|
2905
2905
|
var f = this.parseNumberSkeletonFromString(w, u.styleLocation);
|
|
2906
2906
|
return f.err ? f : {
|
|
@@ -2911,12 +2911,12 @@ var Bo = (
|
|
|
2911
2911
|
if (w.length === 0)
|
|
2912
2912
|
return this.error(H.EXPECT_DATE_TIME_SKELETON, g);
|
|
2913
2913
|
var N = w;
|
|
2914
|
-
this.locale && (N =
|
|
2914
|
+
this.locale && (N = ho(w, this.locale));
|
|
2915
2915
|
var c = {
|
|
2916
2916
|
type: tt.dateTime,
|
|
2917
2917
|
pattern: N,
|
|
2918
2918
|
location: u.styleLocation,
|
|
2919
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2919
|
+
parsedOptions: this.shouldParseSkeletons ? io(N) : {}
|
|
2920
2920
|
}, E = s === "date" ? U.date : U.time;
|
|
2921
2921
|
return {
|
|
2922
2922
|
val: { type: E, value: r, location: g, style: c },
|
|
@@ -2939,7 +2939,7 @@ var Bo = (
|
|
|
2939
2939
|
case "select": {
|
|
2940
2940
|
var b = this.clonePosition();
|
|
2941
2941
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2942
|
-
return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS, L(b,
|
|
2942
|
+
return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS, L(b, $t({}, b)));
|
|
2943
2943
|
this.bumpSpace();
|
|
2944
2944
|
var C = this.parseIdentifierIfPossible(), D = 0;
|
|
2945
2945
|
if (s !== "select" && C.value === "offset") {
|
|
@@ -3021,7 +3021,7 @@ var Bo = (
|
|
|
3021
3021
|
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
3022
3022
|
var r = [];
|
|
3023
3023
|
try {
|
|
3024
|
-
r =
|
|
3024
|
+
r = ao(t);
|
|
3025
3025
|
} catch (i) {
|
|
3026
3026
|
return this.error(H.INVALID_NUMBER_SKELETON, n);
|
|
3027
3027
|
}
|
|
@@ -3030,7 +3030,7 @@ var Bo = (
|
|
|
3030
3030
|
type: tt.number,
|
|
3031
3031
|
tokens: r,
|
|
3032
3032
|
location: n,
|
|
3033
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3033
|
+
parsedOptions: this.shouldParseSkeletons ? co(r) : {}
|
|
3034
3034
|
},
|
|
3035
3035
|
err: null
|
|
3036
3036
|
};
|
|
@@ -3078,7 +3078,7 @@ var Bo = (
|
|
|
3078
3078
|
break;
|
|
3079
3079
|
}
|
|
3080
3080
|
var l = L(i, this.clonePosition());
|
|
3081
|
-
return o ? (a *= r,
|
|
3081
|
+
return o ? (a *= r, wo(a) ? { val: a, err: null } : this.error(n, l)) : this.error(t, l);
|
|
3082
3082
|
}, e.prototype.offset = function() {
|
|
3083
3083
|
return this.position.offset;
|
|
3084
3084
|
}, e.prototype.isEOF = function() {
|
|
@@ -3093,7 +3093,7 @@ var Bo = (
|
|
|
3093
3093
|
var t = this.position.offset;
|
|
3094
3094
|
if (t >= this.message.length)
|
|
3095
3095
|
throw Error("out of bound");
|
|
3096
|
-
var n =
|
|
3096
|
+
var n = zr(this.message, t);
|
|
3097
3097
|
if (n === void 0)
|
|
3098
3098
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3099
3099
|
return n;
|
|
@@ -3134,7 +3134,7 @@ var Bo = (
|
|
|
3134
3134
|
break;
|
|
3135
3135
|
}
|
|
3136
3136
|
}, e.prototype.bumpSpace = function() {
|
|
3137
|
-
for (; !this.isEOF() &&
|
|
3137
|
+
for (; !this.isEOF() && Kr(this.char()); )
|
|
3138
3138
|
this.bump();
|
|
3139
3139
|
}, e.prototype.peek = function() {
|
|
3140
3140
|
if (this.isEOF())
|
|
@@ -3144,47 +3144,47 @@ var Bo = (
|
|
|
3144
3144
|
}, e;
|
|
3145
3145
|
}()
|
|
3146
3146
|
);
|
|
3147
|
-
function
|
|
3147
|
+
function xn(e) {
|
|
3148
3148
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3149
3149
|
}
|
|
3150
|
-
function
|
|
3151
|
-
return
|
|
3150
|
+
function Bo(e) {
|
|
3151
|
+
return xn(e) || e === 47;
|
|
3152
3152
|
}
|
|
3153
|
-
function
|
|
3153
|
+
function Po(e) {
|
|
3154
3154
|
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;
|
|
3155
3155
|
}
|
|
3156
|
-
function
|
|
3156
|
+
function Kr(e) {
|
|
3157
3157
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3158
3158
|
}
|
|
3159
|
-
function
|
|
3159
|
+
function Ho(e) {
|
|
3160
3160
|
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;
|
|
3161
3161
|
}
|
|
3162
|
-
function
|
|
3162
|
+
function wn(e) {
|
|
3163
3163
|
e.forEach(function(t) {
|
|
3164
|
-
if (delete t.location,
|
|
3164
|
+
if (delete t.location, Fr(t) || Ur(t))
|
|
3165
3165
|
for (var n in t.options)
|
|
3166
|
-
delete t.options[n].location,
|
|
3166
|
+
delete t.options[n].location, wn(t.options[n].value);
|
|
3167
3167
|
else
|
|
3168
|
-
|
|
3168
|
+
Dr(t) && Gr(t.style) || (Mr(t) || kr(t)) && yn(t.style) ? delete t.style.location : Vr(t) && wn(t.children);
|
|
3169
3169
|
});
|
|
3170
3170
|
}
|
|
3171
|
-
function
|
|
3172
|
-
t === void 0 && (t = {}), t =
|
|
3173
|
-
var n = new
|
|
3171
|
+
function Io(e, t) {
|
|
3172
|
+
t === void 0 && (t = {}), t = $t({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3173
|
+
var n = new So(e, t).parse();
|
|
3174
3174
|
if (n.err) {
|
|
3175
3175
|
var r = SyntaxError(H[n.err.kind]);
|
|
3176
3176
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3177
3177
|
}
|
|
3178
|
-
return t != null && t.captureLocation ||
|
|
3178
|
+
return t != null && t.captureLocation || wn(n.val), n.val;
|
|
3179
3179
|
}
|
|
3180
3180
|
var nt;
|
|
3181
3181
|
(function(e) {
|
|
3182
3182
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3183
3183
|
})(nt || (nt = {}));
|
|
3184
|
-
var
|
|
3184
|
+
var Kt = (
|
|
3185
3185
|
/** @class */
|
|
3186
3186
|
function(e) {
|
|
3187
|
-
|
|
3187
|
+
Zt(t, e);
|
|
3188
3188
|
function t(n, r, i) {
|
|
3189
3189
|
var o = e.call(this, n) || this;
|
|
3190
3190
|
return o.code = r, o.originalMessage = i, o;
|
|
@@ -3196,44 +3196,44 @@ var Xt = (
|
|
|
3196
3196
|
), Yn = (
|
|
3197
3197
|
/** @class */
|
|
3198
3198
|
function(e) {
|
|
3199
|
-
|
|
3199
|
+
Zt(t, e);
|
|
3200
3200
|
function t(n, r, i, o) {
|
|
3201
3201
|
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), nt.INVALID_VALUE, o) || this;
|
|
3202
3202
|
}
|
|
3203
3203
|
return t;
|
|
3204
|
-
}(
|
|
3205
|
-
),
|
|
3204
|
+
}(Kt)
|
|
3205
|
+
), Oo = (
|
|
3206
3206
|
/** @class */
|
|
3207
3207
|
function(e) {
|
|
3208
|
-
|
|
3208
|
+
Zt(t, e);
|
|
3209
3209
|
function t(n, r, i) {
|
|
3210
3210
|
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), nt.INVALID_VALUE, i) || this;
|
|
3211
3211
|
}
|
|
3212
3212
|
return t;
|
|
3213
|
-
}(
|
|
3214
|
-
),
|
|
3213
|
+
}(Kt)
|
|
3214
|
+
), Lo = (
|
|
3215
3215
|
/** @class */
|
|
3216
3216
|
function(e) {
|
|
3217
|
-
|
|
3217
|
+
Zt(t, e);
|
|
3218
3218
|
function t(n, r) {
|
|
3219
3219
|
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), nt.MISSING_VALUE, r) || this;
|
|
3220
3220
|
}
|
|
3221
3221
|
return t;
|
|
3222
|
-
}(
|
|
3222
|
+
}(Kt)
|
|
3223
3223
|
), te;
|
|
3224
3224
|
(function(e) {
|
|
3225
3225
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3226
3226
|
})(te || (te = {}));
|
|
3227
|
-
function
|
|
3227
|
+
function No(e) {
|
|
3228
3228
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3229
3229
|
var r = t[t.length - 1];
|
|
3230
3230
|
return !r || r.type !== te.literal || n.type !== te.literal ? t.push(n) : r.value += n.value, t;
|
|
3231
3231
|
}, []);
|
|
3232
3232
|
}
|
|
3233
|
-
function
|
|
3233
|
+
function Ro(e) {
|
|
3234
3234
|
return typeof e == "function";
|
|
3235
3235
|
}
|
|
3236
|
-
function
|
|
3236
|
+
function Mt(e, t, n, r, i, o, a) {
|
|
3237
3237
|
if (e.length === 1 && Wn(e[0]))
|
|
3238
3238
|
return [
|
|
3239
3239
|
{
|
|
@@ -3250,7 +3250,7 @@ function Rt(e, t, n, r, i, o, a) {
|
|
|
3250
3250
|
});
|
|
3251
3251
|
continue;
|
|
3252
3252
|
}
|
|
3253
|
-
if (
|
|
3253
|
+
if (no(h)) {
|
|
3254
3254
|
typeof o == "number" && s.push({
|
|
3255
3255
|
type: te.literal,
|
|
3256
3256
|
value: n.getNumberFormat(t).format(o)
|
|
@@ -3259,44 +3259,44 @@ function Rt(e, t, n, r, i, o, a) {
|
|
|
3259
3259
|
}
|
|
3260
3260
|
var f = h.value;
|
|
3261
3261
|
if (!(i && f in i))
|
|
3262
|
-
throw new
|
|
3262
|
+
throw new Lo(f, a);
|
|
3263
3263
|
var c = i[f];
|
|
3264
|
-
if (
|
|
3264
|
+
if (to(h)) {
|
|
3265
3265
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
|
|
3266
3266
|
type: typeof c == "string" ? te.literal : te.object,
|
|
3267
3267
|
value: c
|
|
3268
3268
|
});
|
|
3269
3269
|
continue;
|
|
3270
3270
|
}
|
|
3271
|
-
if (
|
|
3272
|
-
var m = typeof h.style == "string" ? r.date[h.style] :
|
|
3271
|
+
if (Mr(h)) {
|
|
3272
|
+
var m = typeof h.style == "string" ? r.date[h.style] : yn(h.style) ? h.style.parsedOptions : void 0;
|
|
3273
3273
|
s.push({
|
|
3274
3274
|
type: te.literal,
|
|
3275
3275
|
value: n.getDateTimeFormat(t, m).format(c)
|
|
3276
3276
|
});
|
|
3277
3277
|
continue;
|
|
3278
3278
|
}
|
|
3279
|
-
if (
|
|
3280
|
-
var m = typeof h.style == "string" ? r.time[h.style] :
|
|
3279
|
+
if (kr(h)) {
|
|
3280
|
+
var m = typeof h.style == "string" ? r.time[h.style] : yn(h.style) ? h.style.parsedOptions : r.time.medium;
|
|
3281
3281
|
s.push({
|
|
3282
3282
|
type: te.literal,
|
|
3283
3283
|
value: n.getDateTimeFormat(t, m).format(c)
|
|
3284
3284
|
});
|
|
3285
3285
|
continue;
|
|
3286
3286
|
}
|
|
3287
|
-
if (
|
|
3288
|
-
var m = typeof h.style == "string" ? r.number[h.style] :
|
|
3287
|
+
if (Dr(h)) {
|
|
3288
|
+
var m = typeof h.style == "string" ? r.number[h.style] : Gr(h.style) ? h.style.parsedOptions : void 0;
|
|
3289
3289
|
m && m.scale && (c = c * (m.scale || 1)), s.push({
|
|
3290
3290
|
type: te.literal,
|
|
3291
3291
|
value: n.getNumberFormat(t, m).format(c)
|
|
3292
3292
|
});
|
|
3293
3293
|
continue;
|
|
3294
3294
|
}
|
|
3295
|
-
if (
|
|
3295
|
+
if (Vr(h)) {
|
|
3296
3296
|
var _ = h.children, g = h.value, w = i[g];
|
|
3297
|
-
if (!
|
|
3298
|
-
throw new
|
|
3299
|
-
var N =
|
|
3297
|
+
if (!Ro(w))
|
|
3298
|
+
throw new Oo(g, "function", a);
|
|
3299
|
+
var N = Mt(_, t, n, r, i, o), E = w(N.map(function(D) {
|
|
3300
3300
|
return D.value;
|
|
3301
3301
|
}));
|
|
3302
3302
|
Array.isArray(E) || (E = [E]), s.push.apply(s, E.map(function(D) {
|
|
@@ -3306,18 +3306,18 @@ function Rt(e, t, n, r, i, o, a) {
|
|
|
3306
3306
|
};
|
|
3307
3307
|
}));
|
|
3308
3308
|
}
|
|
3309
|
-
if (
|
|
3309
|
+
if (Fr(h)) {
|
|
3310
3310
|
var b = h.options[c] || h.options.other;
|
|
3311
3311
|
if (!b)
|
|
3312
3312
|
throw new Yn(h.value, c, Object.keys(h.options), a);
|
|
3313
|
-
s.push.apply(s,
|
|
3313
|
+
s.push.apply(s, Mt(b.value, t, n, r, i));
|
|
3314
3314
|
continue;
|
|
3315
3315
|
}
|
|
3316
|
-
if (
|
|
3316
|
+
if (Ur(h)) {
|
|
3317
3317
|
var b = h.options["=".concat(c)];
|
|
3318
3318
|
if (!b) {
|
|
3319
3319
|
if (!Intl.PluralRules)
|
|
3320
|
-
throw new
|
|
3320
|
+
throw new Kt(`Intl.PluralRules is not available in this environment.
|
|
3321
3321
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3322
3322
|
`, nt.MISSING_INTL_API, a);
|
|
3323
3323
|
var C = n.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
@@ -3325,23 +3325,23 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3325
3325
|
}
|
|
3326
3326
|
if (!b)
|
|
3327
3327
|
throw new Yn(h.value, c, Object.keys(h.options), a);
|
|
3328
|
-
s.push.apply(s,
|
|
3328
|
+
s.push.apply(s, Mt(b.value, t, n, r, i, c - (h.offset || 0)));
|
|
3329
3329
|
continue;
|
|
3330
3330
|
}
|
|
3331
3331
|
}
|
|
3332
|
-
return
|
|
3332
|
+
return No(s);
|
|
3333
3333
|
}
|
|
3334
|
-
function
|
|
3334
|
+
function Do(e, t) {
|
|
3335
3335
|
return t ? me(me(me({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3336
3336
|
return n[r] = me(me({}, e[r]), t[r] || {}), n;
|
|
3337
3337
|
}, {})) : e;
|
|
3338
3338
|
}
|
|
3339
|
-
function
|
|
3339
|
+
function Mo(e, t) {
|
|
3340
3340
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3341
|
-
return n[r] =
|
|
3341
|
+
return n[r] = Do(e[r], t[r]), n;
|
|
3342
3342
|
}, me({}, e)) : e;
|
|
3343
3343
|
}
|
|
3344
|
-
function
|
|
3344
|
+
function cn(e) {
|
|
3345
3345
|
return {
|
|
3346
3346
|
create: function() {
|
|
3347
3347
|
return {
|
|
@@ -3355,39 +3355,39 @@ function sn(e) {
|
|
|
3355
3355
|
}
|
|
3356
3356
|
};
|
|
3357
3357
|
}
|
|
3358
|
-
function
|
|
3358
|
+
function ko(e) {
|
|
3359
3359
|
return e === void 0 && (e = {
|
|
3360
3360
|
number: {},
|
|
3361
3361
|
dateTime: {},
|
|
3362
3362
|
pluralRules: {}
|
|
3363
3363
|
}), {
|
|
3364
|
-
getNumberFormat:
|
|
3364
|
+
getNumberFormat: sn(function() {
|
|
3365
3365
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3366
3366
|
n[r] = arguments[r];
|
|
3367
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3367
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, an([void 0], n, !1)))();
|
|
3368
3368
|
}, {
|
|
3369
|
-
cache:
|
|
3370
|
-
strategy:
|
|
3369
|
+
cache: cn(e.number),
|
|
3370
|
+
strategy: ln.variadic
|
|
3371
3371
|
}),
|
|
3372
|
-
getDateTimeFormat:
|
|
3372
|
+
getDateTimeFormat: sn(function() {
|
|
3373
3373
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3374
3374
|
n[r] = arguments[r];
|
|
3375
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3375
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, an([void 0], n, !1)))();
|
|
3376
3376
|
}, {
|
|
3377
|
-
cache:
|
|
3378
|
-
strategy:
|
|
3377
|
+
cache: cn(e.dateTime),
|
|
3378
|
+
strategy: ln.variadic
|
|
3379
3379
|
}),
|
|
3380
|
-
getPluralRules:
|
|
3380
|
+
getPluralRules: sn(function() {
|
|
3381
3381
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3382
3382
|
n[r] = arguments[r];
|
|
3383
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3383
|
+
return new ((t = Intl.PluralRules).bind.apply(t, an([void 0], n, !1)))();
|
|
3384
3384
|
}, {
|
|
3385
|
-
cache:
|
|
3386
|
-
strategy:
|
|
3385
|
+
cache: cn(e.pluralRules),
|
|
3386
|
+
strategy: ln.variadic
|
|
3387
3387
|
})
|
|
3388
3388
|
};
|
|
3389
3389
|
}
|
|
3390
|
-
var
|
|
3390
|
+
var Fo = (
|
|
3391
3391
|
/** @class */
|
|
3392
3392
|
function() {
|
|
3393
3393
|
function e(t, n, r, i) {
|
|
@@ -3406,7 +3406,7 @@ var Uo = (
|
|
|
3406
3406
|
}, []);
|
|
3407
3407
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3408
3408
|
}, this.formatToParts = function(l) {
|
|
3409
|
-
return
|
|
3409
|
+
return Mt(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3410
3410
|
}, this.resolvedOptions = function() {
|
|
3411
3411
|
var l;
|
|
3412
3412
|
return {
|
|
@@ -3419,13 +3419,13 @@ var Uo = (
|
|
|
3419
3419
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3420
3420
|
var a = i || {};
|
|
3421
3421
|
a.formatters;
|
|
3422
|
-
var s =
|
|
3422
|
+
var s = zi(a, ["formatters"]);
|
|
3423
3423
|
this.ast = e.__parse(t, me(me({}, s), { locale: this.resolvedLocale }));
|
|
3424
3424
|
} else
|
|
3425
3425
|
this.ast = t;
|
|
3426
3426
|
if (!Array.isArray(this.ast))
|
|
3427
3427
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3428
|
-
this.formats =
|
|
3428
|
+
this.formats = Mo(e.formats, r), this.formatters = i && i.formatters || ko(this.formatterCache);
|
|
3429
3429
|
}
|
|
3430
3430
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3431
3431
|
get: function() {
|
|
@@ -3438,7 +3438,7 @@ var Uo = (
|
|
|
3438
3438
|
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3439
3439
|
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3440
3440
|
}
|
|
3441
|
-
}, e.__parse =
|
|
3441
|
+
}, e.__parse = Io, e.formats = {
|
|
3442
3442
|
number: {
|
|
3443
3443
|
integer: {
|
|
3444
3444
|
maximumFractionDigits: 0
|
|
@@ -3499,7 +3499,7 @@ var Uo = (
|
|
|
3499
3499
|
}, e;
|
|
3500
3500
|
}()
|
|
3501
3501
|
);
|
|
3502
|
-
function
|
|
3502
|
+
function Uo(e, t) {
|
|
3503
3503
|
if (t == null)
|
|
3504
3504
|
return;
|
|
3505
3505
|
if (t in e)
|
|
@@ -3520,92 +3520,92 @@ function Vo(e, t) {
|
|
|
3520
3520
|
r = void 0;
|
|
3521
3521
|
return r;
|
|
3522
3522
|
}
|
|
3523
|
-
const Le = {},
|
|
3523
|
+
const Le = {}, Vo = (e, t, n) => n && (t in Le || (Le[t] = {}), e in Le[t] || (Le[t][e] = n), n), qr = (e, t) => {
|
|
3524
3524
|
if (t == null)
|
|
3525
3525
|
return;
|
|
3526
3526
|
if (t in Le && e in Le[t])
|
|
3527
3527
|
return Le[t][e];
|
|
3528
|
-
const n =
|
|
3528
|
+
const n = qt(t);
|
|
3529
3529
|
for (let r = 0; r < n.length; r++) {
|
|
3530
|
-
const i = n[r], o =
|
|
3530
|
+
const i = n[r], o = $o(i, e);
|
|
3531
3531
|
if (o)
|
|
3532
|
-
return
|
|
3532
|
+
return Vo(e, t, o);
|
|
3533
3533
|
}
|
|
3534
3534
|
};
|
|
3535
3535
|
let Mn;
|
|
3536
|
-
const ot =
|
|
3537
|
-
function
|
|
3536
|
+
const ot = zt({});
|
|
3537
|
+
function Go(e) {
|
|
3538
3538
|
return Mn[e] || null;
|
|
3539
3539
|
}
|
|
3540
|
-
function
|
|
3540
|
+
function Qr(e) {
|
|
3541
3541
|
return e in Mn;
|
|
3542
3542
|
}
|
|
3543
|
-
function
|
|
3544
|
-
if (!
|
|
3543
|
+
function $o(e, t) {
|
|
3544
|
+
if (!Qr(e))
|
|
3545
3545
|
return null;
|
|
3546
|
-
const n =
|
|
3547
|
-
return
|
|
3546
|
+
const n = Go(e);
|
|
3547
|
+
return Uo(n, t);
|
|
3548
3548
|
}
|
|
3549
|
-
function
|
|
3549
|
+
function jo(e) {
|
|
3550
3550
|
if (e == null)
|
|
3551
3551
|
return;
|
|
3552
|
-
const t =
|
|
3552
|
+
const t = qt(e);
|
|
3553
3553
|
for (let n = 0; n < t.length; n++) {
|
|
3554
3554
|
const r = t[n];
|
|
3555
|
-
if (
|
|
3555
|
+
if (Qr(r))
|
|
3556
3556
|
return r;
|
|
3557
3557
|
}
|
|
3558
3558
|
}
|
|
3559
|
-
function
|
|
3560
|
-
delete Le[e], ot.update((n) => (n[e] =
|
|
3559
|
+
function Yr(e, ...t) {
|
|
3560
|
+
delete Le[e], ot.update((n) => (n[e] = Xi.all([n[e] || {}, ...t]), n));
|
|
3561
3561
|
}
|
|
3562
3562
|
it(
|
|
3563
3563
|
[ot],
|
|
3564
3564
|
([e]) => Object.keys(e)
|
|
3565
3565
|
);
|
|
3566
3566
|
ot.subscribe((e) => Mn = e);
|
|
3567
|
-
const
|
|
3568
|
-
function
|
|
3569
|
-
|
|
3567
|
+
const kt = {};
|
|
3568
|
+
function Wo(e, t) {
|
|
3569
|
+
kt[e].delete(t), kt[e].size === 0 && delete kt[e];
|
|
3570
3570
|
}
|
|
3571
|
-
function
|
|
3572
|
-
return
|
|
3571
|
+
function Jr(e) {
|
|
3572
|
+
return kt[e];
|
|
3573
3573
|
}
|
|
3574
|
-
function
|
|
3575
|
-
return
|
|
3576
|
-
const n =
|
|
3574
|
+
function Xo(e) {
|
|
3575
|
+
return qt(e).map((t) => {
|
|
3576
|
+
const n = Jr(t);
|
|
3577
3577
|
return [t, n ? [...n] : []];
|
|
3578
3578
|
}).filter(([, t]) => t.length > 0);
|
|
3579
3579
|
}
|
|
3580
|
-
function
|
|
3581
|
-
return e == null ? !1 :
|
|
3580
|
+
function An(e) {
|
|
3581
|
+
return e == null ? !1 : qt(e).some(
|
|
3582
3582
|
(t) => {
|
|
3583
3583
|
var n;
|
|
3584
|
-
return (n =
|
|
3584
|
+
return (n = Jr(t)) == null ? void 0 : n.size;
|
|
3585
3585
|
}
|
|
3586
3586
|
);
|
|
3587
3587
|
}
|
|
3588
|
-
function
|
|
3588
|
+
function zo(e, t) {
|
|
3589
3589
|
return Promise.all(
|
|
3590
|
-
t.map((r) => (
|
|
3591
|
-
).then((r) =>
|
|
3590
|
+
t.map((r) => (Wo(e, r), r().then((i) => i.default || i)))
|
|
3591
|
+
).then((r) => Yr(e, ...r));
|
|
3592
3592
|
}
|
|
3593
3593
|
const ft = {};
|
|
3594
|
-
function
|
|
3595
|
-
if (!
|
|
3594
|
+
function ei(e) {
|
|
3595
|
+
if (!An(e))
|
|
3596
3596
|
return e in ft ? ft[e] : Promise.resolve();
|
|
3597
|
-
const t =
|
|
3597
|
+
const t = Xo(e);
|
|
3598
3598
|
return ft[e] = Promise.all(
|
|
3599
3599
|
t.map(
|
|
3600
|
-
([n, r]) =>
|
|
3600
|
+
([n, r]) => zo(n, r)
|
|
3601
3601
|
)
|
|
3602
3602
|
).then(() => {
|
|
3603
|
-
if (
|
|
3604
|
-
return
|
|
3603
|
+
if (An(e))
|
|
3604
|
+
return ei(e);
|
|
3605
3605
|
delete ft[e];
|
|
3606
3606
|
}), ft[e];
|
|
3607
3607
|
}
|
|
3608
|
-
const
|
|
3608
|
+
const Zo = {
|
|
3609
3609
|
number: {
|
|
3610
3610
|
scientific: { notation: "scientific" },
|
|
3611
3611
|
engineering: { notation: "engineering" },
|
|
@@ -3634,135 +3634,135 @@ const Ko = {
|
|
|
3634
3634
|
timeZoneName: "short"
|
|
3635
3635
|
}
|
|
3636
3636
|
}
|
|
3637
|
-
},
|
|
3637
|
+
}, Ko = {
|
|
3638
3638
|
fallbackLocale: null,
|
|
3639
3639
|
loadingDelay: 200,
|
|
3640
|
-
formats:
|
|
3640
|
+
formats: Zo,
|
|
3641
3641
|
warnOnMissingMessages: !0,
|
|
3642
3642
|
handleMissingMessage: void 0,
|
|
3643
3643
|
ignoreTag: !0
|
|
3644
|
-
},
|
|
3644
|
+
}, qo = Ko;
|
|
3645
3645
|
function rt() {
|
|
3646
|
-
return
|
|
3646
|
+
return qo;
|
|
3647
3647
|
}
|
|
3648
|
-
const
|
|
3649
|
-
var
|
|
3648
|
+
const hn = zt(!1);
|
|
3649
|
+
var Qo = Object.defineProperty, Yo = Object.defineProperties, Jo = Object.getOwnPropertyDescriptors, Jn = Object.getOwnPropertySymbols, ea = Object.prototype.hasOwnProperty, ta = Object.prototype.propertyIsEnumerable, er = (e, t, n) => t in e ? Qo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, na = (e, t) => {
|
|
3650
3650
|
for (var n in t || (t = {}))
|
|
3651
|
-
|
|
3651
|
+
ea.call(t, n) && er(e, n, t[n]);
|
|
3652
3652
|
if (Jn)
|
|
3653
3653
|
for (var n of Jn(t))
|
|
3654
|
-
|
|
3654
|
+
ta.call(t, n) && er(e, n, t[n]);
|
|
3655
3655
|
return e;
|
|
3656
|
-
},
|
|
3657
|
-
let
|
|
3658
|
-
const
|
|
3656
|
+
}, ra = (e, t) => Yo(e, Jo(t));
|
|
3657
|
+
let Tn;
|
|
3658
|
+
const jt = zt(null);
|
|
3659
3659
|
function tr(e) {
|
|
3660
3660
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3661
3661
|
}
|
|
3662
|
-
function
|
|
3662
|
+
function qt(e, t = rt().fallbackLocale) {
|
|
3663
3663
|
const n = tr(e);
|
|
3664
3664
|
return t ? [.../* @__PURE__ */ new Set([...n, ...tr(t)])] : n;
|
|
3665
3665
|
}
|
|
3666
3666
|
function Ue() {
|
|
3667
|
-
return
|
|
3667
|
+
return Tn != null ? Tn : void 0;
|
|
3668
3668
|
}
|
|
3669
|
-
|
|
3670
|
-
|
|
3669
|
+
jt.subscribe((e) => {
|
|
3670
|
+
Tn = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3671
3671
|
});
|
|
3672
|
-
const
|
|
3673
|
-
if (e &&
|
|
3672
|
+
const ia = (e) => {
|
|
3673
|
+
if (e && jo(e) && An(e)) {
|
|
3674
3674
|
const { loadingDelay: t } = rt();
|
|
3675
3675
|
let n;
|
|
3676
3676
|
return typeof window != "undefined" && Ue() != null && t ? n = window.setTimeout(
|
|
3677
|
-
() =>
|
|
3677
|
+
() => hn.set(!0),
|
|
3678
3678
|
t
|
|
3679
|
-
) :
|
|
3680
|
-
|
|
3679
|
+
) : hn.set(!0), ei(e).then(() => {
|
|
3680
|
+
jt.set(e);
|
|
3681
3681
|
}).finally(() => {
|
|
3682
|
-
clearTimeout(n),
|
|
3682
|
+
clearTimeout(n), hn.set(!1);
|
|
3683
3683
|
});
|
|
3684
3684
|
}
|
|
3685
|
-
return
|
|
3686
|
-
}, Ne =
|
|
3687
|
-
set:
|
|
3688
|
-
}),
|
|
3685
|
+
return jt.set(e);
|
|
3686
|
+
}, Ne = ra(na({}, jt), {
|
|
3687
|
+
set: ia
|
|
3688
|
+
}), Qt = (e) => {
|
|
3689
3689
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3690
3690
|
return (r) => {
|
|
3691
3691
|
const i = JSON.stringify(r);
|
|
3692
3692
|
return i in t ? t[i] : t[i] = e(r);
|
|
3693
3693
|
};
|
|
3694
3694
|
};
|
|
3695
|
-
var
|
|
3695
|
+
var oa = Object.defineProperty, Wt = Object.getOwnPropertySymbols, ti = Object.prototype.hasOwnProperty, ni = Object.prototype.propertyIsEnumerable, nr = (e, t, n) => t in e ? oa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, kn = (e, t) => {
|
|
3696
3696
|
for (var n in t || (t = {}))
|
|
3697
|
-
|
|
3698
|
-
if (
|
|
3699
|
-
for (var n of
|
|
3700
|
-
|
|
3697
|
+
ti.call(t, n) && nr(e, n, t[n]);
|
|
3698
|
+
if (Wt)
|
|
3699
|
+
for (var n of Wt(t))
|
|
3700
|
+
ni.call(t, n) && nr(e, n, t[n]);
|
|
3701
3701
|
return e;
|
|
3702
3702
|
}, at = (e, t) => {
|
|
3703
3703
|
var n = {};
|
|
3704
3704
|
for (var r in e)
|
|
3705
|
-
|
|
3706
|
-
if (e != null &&
|
|
3707
|
-
for (var r of
|
|
3708
|
-
t.indexOf(r) < 0 &&
|
|
3705
|
+
ti.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3706
|
+
if (e != null && Wt)
|
|
3707
|
+
for (var r of Wt(e))
|
|
3708
|
+
t.indexOf(r) < 0 && ni.call(e, r) && (n[r] = e[r]);
|
|
3709
3709
|
return n;
|
|
3710
3710
|
};
|
|
3711
|
-
const
|
|
3711
|
+
const vt = (e, t) => {
|
|
3712
3712
|
const { formats: n } = rt();
|
|
3713
3713
|
if (e in n && t in n[e])
|
|
3714
3714
|
return n[e][t];
|
|
3715
3715
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3716
|
-
},
|
|
3716
|
+
}, aa = Qt(
|
|
3717
3717
|
(e) => {
|
|
3718
3718
|
var t = e, { locale: n, format: r } = t, i = at(t, ["locale", "format"]);
|
|
3719
3719
|
if (n == null)
|
|
3720
3720
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3721
|
-
return r && (i =
|
|
3721
|
+
return r && (i = vt("number", r)), new Intl.NumberFormat(n, i);
|
|
3722
3722
|
}
|
|
3723
|
-
),
|
|
3723
|
+
), sa = Qt(
|
|
3724
3724
|
(e) => {
|
|
3725
3725
|
var t = e, { locale: n, format: r } = t, i = at(t, ["locale", "format"]);
|
|
3726
3726
|
if (n == null)
|
|
3727
3727
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3728
|
-
return r ? i =
|
|
3728
|
+
return r ? i = vt("date", r) : Object.keys(i).length === 0 && (i = vt("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3729
3729
|
}
|
|
3730
|
-
),
|
|
3730
|
+
), la = Qt(
|
|
3731
3731
|
(e) => {
|
|
3732
3732
|
var t = e, { locale: n, format: r } = t, i = at(t, ["locale", "format"]);
|
|
3733
3733
|
if (n == null)
|
|
3734
3734
|
throw new Error(
|
|
3735
3735
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3736
3736
|
);
|
|
3737
|
-
return r ? i =
|
|
3737
|
+
return r ? i = vt("time", r) : Object.keys(i).length === 0 && (i = vt("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3738
3738
|
}
|
|
3739
|
-
),
|
|
3739
|
+
), ua = (e = {}) => {
|
|
3740
3740
|
var t = e, {
|
|
3741
3741
|
locale: n = Ue()
|
|
3742
3742
|
} = t, r = at(t, [
|
|
3743
3743
|
"locale"
|
|
3744
3744
|
]);
|
|
3745
|
-
return
|
|
3746
|
-
},
|
|
3745
|
+
return aa(kn({ locale: n }, r));
|
|
3746
|
+
}, ca = (e = {}) => {
|
|
3747
3747
|
var t = e, {
|
|
3748
3748
|
locale: n = Ue()
|
|
3749
3749
|
} = t, r = at(t, [
|
|
3750
3750
|
"locale"
|
|
3751
3751
|
]);
|
|
3752
|
-
return
|
|
3753
|
-
},
|
|
3752
|
+
return sa(kn({ locale: n }, r));
|
|
3753
|
+
}, ha = (e = {}) => {
|
|
3754
3754
|
var t = e, {
|
|
3755
3755
|
locale: n = Ue()
|
|
3756
3756
|
} = t, r = at(t, [
|
|
3757
3757
|
"locale"
|
|
3758
3758
|
]);
|
|
3759
|
-
return
|
|
3760
|
-
},
|
|
3759
|
+
return la(kn({ locale: n }, r));
|
|
3760
|
+
}, fa = Qt(
|
|
3761
3761
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3762
|
-
(e, t = Ue()) => new
|
|
3762
|
+
(e, t = Ue()) => new Fo(e, t, rt().formats, {
|
|
3763
3763
|
ignoreTag: rt().ignoreTag
|
|
3764
3764
|
})
|
|
3765
|
-
),
|
|
3765
|
+
), pa = (e, t = {}) => {
|
|
3766
3766
|
var n, r, i, o;
|
|
3767
3767
|
let a = t;
|
|
3768
3768
|
typeof e == "object" && (a = e, e = a.id);
|
|
@@ -3775,7 +3775,7 @@ const bt = (e, t) => {
|
|
|
3775
3775
|
throw new Error(
|
|
3776
3776
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3777
3777
|
);
|
|
3778
|
-
let h =
|
|
3778
|
+
let h = qr(e, l);
|
|
3779
3779
|
if (!h)
|
|
3780
3780
|
h = (o = (i = (r = (n = rt()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
3781
3781
|
else if (typeof h != "string")
|
|
@@ -3786,7 +3786,7 @@ const bt = (e, t) => {
|
|
|
3786
3786
|
return h;
|
|
3787
3787
|
let f = h;
|
|
3788
3788
|
try {
|
|
3789
|
-
f =
|
|
3789
|
+
f = fa(h, l).format(s);
|
|
3790
3790
|
} catch (c) {
|
|
3791
3791
|
c instanceof Error && console.warn(
|
|
3792
3792
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3794,23 +3794,23 @@ const bt = (e, t) => {
|
|
|
3794
3794
|
);
|
|
3795
3795
|
}
|
|
3796
3796
|
return f;
|
|
3797
|
-
},
|
|
3797
|
+
}, da = (e, t) => ha(t).format(e), ma = (e, t) => ca(t).format(e), ga = (e, t) => ua(t).format(e), ba = (e, t = Ue()) => qr(e, t), ya = it([Ne, ot], () => pa);
|
|
3798
|
+
it([Ne], () => da);
|
|
3798
3799
|
it([Ne], () => ma);
|
|
3799
3800
|
it([Ne], () => ga);
|
|
3800
|
-
it([Ne], () => ba);
|
|
3801
|
-
|
|
3802
|
-
function _a({ withLocale: e, translations: t }) {
|
|
3801
|
+
it([Ne, ot], () => ba);
|
|
3802
|
+
function va({ withLocale: e, translations: t }) {
|
|
3803
3803
|
Ne.subscribe((n) => {
|
|
3804
3804
|
n == null && (ot.set(t), Ne.set(e));
|
|
3805
3805
|
});
|
|
3806
3806
|
}
|
|
3807
3807
|
function rr(e, t) {
|
|
3808
|
-
|
|
3808
|
+
Yr(e, t);
|
|
3809
3809
|
}
|
|
3810
|
-
function
|
|
3810
|
+
function _a(e) {
|
|
3811
3811
|
Ne.set(e);
|
|
3812
3812
|
}
|
|
3813
|
-
const M =
|
|
3813
|
+
const M = gi(ya), ir = {
|
|
3814
3814
|
en: {
|
|
3815
3815
|
vaultExchange: "Vault Exchange",
|
|
3816
3816
|
debitPlaceHolder: "Debit amount",
|
|
@@ -3934,24 +3934,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
3934
3934
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
3935
3935
|
PERFORMANCE OF THIS SOFTWARE.
|
|
3936
3936
|
***************************************************************************** */
|
|
3937
|
-
var
|
|
3938
|
-
return
|
|
3937
|
+
var Cn = function(e, t) {
|
|
3938
|
+
return Cn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
3939
3939
|
n.__proto__ = r;
|
|
3940
3940
|
} || function(n, r) {
|
|
3941
3941
|
for (var i in r)
|
|
3942
3942
|
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
3943
|
-
},
|
|
3943
|
+
}, Cn(e, t);
|
|
3944
3944
|
};
|
|
3945
|
-
function
|
|
3945
|
+
function Et(e, t) {
|
|
3946
3946
|
if (typeof t != "function" && t !== null)
|
|
3947
3947
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
3948
|
-
|
|
3948
|
+
Cn(e, t);
|
|
3949
3949
|
function n() {
|
|
3950
3950
|
this.constructor = e;
|
|
3951
3951
|
}
|
|
3952
3952
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
3953
3953
|
}
|
|
3954
|
-
function
|
|
3954
|
+
function Sn(e) {
|
|
3955
3955
|
var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
|
|
3956
3956
|
if (n)
|
|
3957
3957
|
return n.call(e);
|
|
@@ -3963,7 +3963,7 @@ function An(e) {
|
|
|
3963
3963
|
};
|
|
3964
3964
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
3965
3965
|
}
|
|
3966
|
-
function
|
|
3966
|
+
function Bn(e, t) {
|
|
3967
3967
|
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
3968
3968
|
if (!n)
|
|
3969
3969
|
return e;
|
|
@@ -3983,7 +3983,7 @@ function Tn(e, t) {
|
|
|
3983
3983
|
}
|
|
3984
3984
|
return o;
|
|
3985
3985
|
}
|
|
3986
|
-
function
|
|
3986
|
+
function Pn(e, t, n) {
|
|
3987
3987
|
if (arguments.length === 2)
|
|
3988
3988
|
for (var r = 0, i = t.length, o; r < i; r++)
|
|
3989
3989
|
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
@@ -3992,13 +3992,13 @@ function Cn(e, t, n) {
|
|
|
3992
3992
|
function we(e) {
|
|
3993
3993
|
return typeof e == "function";
|
|
3994
3994
|
}
|
|
3995
|
-
function
|
|
3995
|
+
function ri(e) {
|
|
3996
3996
|
var t = function(r) {
|
|
3997
3997
|
Error.call(r), r.stack = new Error().stack;
|
|
3998
3998
|
}, n = e(t);
|
|
3999
3999
|
return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
|
|
4000
4000
|
}
|
|
4001
|
-
var
|
|
4001
|
+
var fn = ri(function(e) {
|
|
4002
4002
|
return function(n) {
|
|
4003
4003
|
e(this), this.message = n ? n.length + ` errors occurred during unsubscription:
|
|
4004
4004
|
` + n.map(function(r, i) {
|
|
@@ -4007,13 +4007,13 @@ var un = ii(function(e) {
|
|
|
4007
4007
|
`) : "", this.name = "UnsubscriptionError", this.errors = n;
|
|
4008
4008
|
};
|
|
4009
4009
|
});
|
|
4010
|
-
function
|
|
4010
|
+
function Hn(e, t) {
|
|
4011
4011
|
if (e) {
|
|
4012
4012
|
var n = e.indexOf(t);
|
|
4013
4013
|
0 <= n && e.splice(n, 1);
|
|
4014
4014
|
}
|
|
4015
4015
|
}
|
|
4016
|
-
var
|
|
4016
|
+
var Yt = function() {
|
|
4017
4017
|
function e(t) {
|
|
4018
4018
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
4019
4019
|
}
|
|
@@ -4025,7 +4025,7 @@ var Kt = function() {
|
|
|
4025
4025
|
if (a)
|
|
4026
4026
|
if (this._parentage = null, Array.isArray(a))
|
|
4027
4027
|
try {
|
|
4028
|
-
for (var s =
|
|
4028
|
+
for (var s = Sn(a), l = s.next(); !l.done; l = s.next()) {
|
|
4029
4029
|
var u = l.value;
|
|
4030
4030
|
u.remove(this);
|
|
4031
4031
|
}
|
|
@@ -4046,18 +4046,18 @@ var Kt = function() {
|
|
|
4046
4046
|
try {
|
|
4047
4047
|
h();
|
|
4048
4048
|
} catch (g) {
|
|
4049
|
-
o = g instanceof
|
|
4049
|
+
o = g instanceof fn ? g.errors : [g];
|
|
4050
4050
|
}
|
|
4051
4051
|
var f = this._finalizers;
|
|
4052
4052
|
if (f) {
|
|
4053
4053
|
this._finalizers = null;
|
|
4054
4054
|
try {
|
|
4055
|
-
for (var c =
|
|
4055
|
+
for (var c = Sn(f), m = c.next(); !m.done; m = c.next()) {
|
|
4056
4056
|
var _ = m.value;
|
|
4057
4057
|
try {
|
|
4058
4058
|
or(_);
|
|
4059
4059
|
} catch (g) {
|
|
4060
|
-
o = o != null ? o : [], g instanceof
|
|
4060
|
+
o = o != null ? o : [], g instanceof fn ? o = Pn(Pn([], Bn(o)), Bn(g.errors)) : o.push(g);
|
|
4061
4061
|
}
|
|
4062
4062
|
}
|
|
4063
4063
|
} catch (g) {
|
|
@@ -4072,7 +4072,7 @@ var Kt = function() {
|
|
|
4072
4072
|
}
|
|
4073
4073
|
}
|
|
4074
4074
|
if (o)
|
|
4075
|
-
throw new
|
|
4075
|
+
throw new fn(o);
|
|
4076
4076
|
}
|
|
4077
4077
|
}, e.prototype.add = function(t) {
|
|
4078
4078
|
var n;
|
|
@@ -4095,52 +4095,52 @@ var Kt = function() {
|
|
|
4095
4095
|
this._parentage = Array.isArray(n) ? (n.push(t), n) : n ? [n, t] : t;
|
|
4096
4096
|
}, e.prototype._removeParent = function(t) {
|
|
4097
4097
|
var n = this._parentage;
|
|
4098
|
-
n === t ? this._parentage = null : Array.isArray(n) &&
|
|
4098
|
+
n === t ? this._parentage = null : Array.isArray(n) && Hn(n, t);
|
|
4099
4099
|
}, e.prototype.remove = function(t) {
|
|
4100
4100
|
var n = this._finalizers;
|
|
4101
|
-
n &&
|
|
4101
|
+
n && Hn(n, t), t instanceof e && t._removeParent(this);
|
|
4102
4102
|
}, e.EMPTY = function() {
|
|
4103
4103
|
var t = new e();
|
|
4104
4104
|
return t.closed = !0, t;
|
|
4105
4105
|
}(), e;
|
|
4106
|
-
}(),
|
|
4107
|
-
function
|
|
4108
|
-
return e instanceof
|
|
4106
|
+
}(), ii = Yt.EMPTY;
|
|
4107
|
+
function oi(e) {
|
|
4108
|
+
return e instanceof Yt || e && "closed" in e && we(e.remove) && we(e.add) && we(e.unsubscribe);
|
|
4109
4109
|
}
|
|
4110
4110
|
function or(e) {
|
|
4111
4111
|
we(e) ? e() : e.unsubscribe();
|
|
4112
4112
|
}
|
|
4113
|
-
var
|
|
4113
|
+
var Ea = {
|
|
4114
4114
|
Promise: void 0
|
|
4115
|
-
},
|
|
4115
|
+
}, xa = {
|
|
4116
4116
|
setTimeout: function(e, t) {
|
|
4117
4117
|
for (var n = [], r = 2; r < arguments.length; r++)
|
|
4118
4118
|
n[r - 2] = arguments[r];
|
|
4119
|
-
return setTimeout.apply(void 0,
|
|
4119
|
+
return setTimeout.apply(void 0, Pn([e, t], Bn(n)));
|
|
4120
4120
|
},
|
|
4121
4121
|
clearTimeout: function(e) {
|
|
4122
4122
|
return clearTimeout(e);
|
|
4123
4123
|
},
|
|
4124
4124
|
delegate: void 0
|
|
4125
4125
|
};
|
|
4126
|
-
function
|
|
4127
|
-
|
|
4126
|
+
function wa(e) {
|
|
4127
|
+
xa.setTimeout(function() {
|
|
4128
4128
|
throw e;
|
|
4129
4129
|
});
|
|
4130
4130
|
}
|
|
4131
4131
|
function ar() {
|
|
4132
4132
|
}
|
|
4133
|
-
function
|
|
4133
|
+
function Ft(e) {
|
|
4134
4134
|
e();
|
|
4135
4135
|
}
|
|
4136
|
-
var
|
|
4137
|
-
|
|
4136
|
+
var ai = function(e) {
|
|
4137
|
+
Et(t, e);
|
|
4138
4138
|
function t(n) {
|
|
4139
4139
|
var r = e.call(this) || this;
|
|
4140
|
-
return r.isStopped = !1, n ? (r.destination = n,
|
|
4140
|
+
return r.isStopped = !1, n ? (r.destination = n, oi(n) && n.add(r)) : r.destination = Ca, r;
|
|
4141
4141
|
}
|
|
4142
4142
|
return t.create = function(n, r, i) {
|
|
4143
|
-
return new
|
|
4143
|
+
return new In(n, r, i);
|
|
4144
4144
|
}, t.prototype.next = function(n) {
|
|
4145
4145
|
this.isStopped || this._next(n);
|
|
4146
4146
|
}, t.prototype.error = function(n) {
|
|
@@ -4164,7 +4164,7 @@ var si = function(e) {
|
|
|
4164
4164
|
this.unsubscribe();
|
|
4165
4165
|
}
|
|
4166
4166
|
}, t;
|
|
4167
|
-
}(
|
|
4167
|
+
}(Yt), Aa = function() {
|
|
4168
4168
|
function e(t) {
|
|
4169
4169
|
this.partialObserver = t;
|
|
4170
4170
|
}
|
|
@@ -4174,7 +4174,7 @@ var si = function(e) {
|
|
|
4174
4174
|
try {
|
|
4175
4175
|
n.next(t);
|
|
4176
4176
|
} catch (r) {
|
|
4177
|
-
|
|
4177
|
+
Lt(r);
|
|
4178
4178
|
}
|
|
4179
4179
|
}, e.prototype.error = function(t) {
|
|
4180
4180
|
var n = this.partialObserver;
|
|
@@ -4182,50 +4182,50 @@ var si = function(e) {
|
|
|
4182
4182
|
try {
|
|
4183
4183
|
n.error(t);
|
|
4184
4184
|
} catch (r) {
|
|
4185
|
-
|
|
4185
|
+
Lt(r);
|
|
4186
4186
|
}
|
|
4187
4187
|
else
|
|
4188
|
-
|
|
4188
|
+
Lt(t);
|
|
4189
4189
|
}, e.prototype.complete = function() {
|
|
4190
4190
|
var t = this.partialObserver;
|
|
4191
4191
|
if (t.complete)
|
|
4192
4192
|
try {
|
|
4193
4193
|
t.complete();
|
|
4194
4194
|
} catch (n) {
|
|
4195
|
-
|
|
4195
|
+
Lt(n);
|
|
4196
4196
|
}
|
|
4197
4197
|
}, e;
|
|
4198
|
-
}(),
|
|
4199
|
-
|
|
4198
|
+
}(), In = function(e) {
|
|
4199
|
+
Et(t, e);
|
|
4200
4200
|
function t(n, r, i) {
|
|
4201
4201
|
var o = e.call(this) || this, a;
|
|
4202
4202
|
return we(n) || !n ? a = {
|
|
4203
4203
|
next: n != null ? n : void 0,
|
|
4204
4204
|
error: r != null ? r : void 0,
|
|
4205
4205
|
complete: i != null ? i : void 0
|
|
4206
|
-
} : a = n, o.destination = new
|
|
4206
|
+
} : a = n, o.destination = new Aa(a), o;
|
|
4207
4207
|
}
|
|
4208
4208
|
return t;
|
|
4209
|
-
}(
|
|
4210
|
-
function
|
|
4211
|
-
|
|
4209
|
+
}(ai);
|
|
4210
|
+
function Lt(e) {
|
|
4211
|
+
wa(e);
|
|
4212
4212
|
}
|
|
4213
|
-
function
|
|
4213
|
+
function Ta(e) {
|
|
4214
4214
|
throw e;
|
|
4215
4215
|
}
|
|
4216
|
-
var
|
|
4216
|
+
var Ca = {
|
|
4217
4217
|
closed: !0,
|
|
4218
4218
|
next: ar,
|
|
4219
|
-
error:
|
|
4219
|
+
error: Ta,
|
|
4220
4220
|
complete: ar
|
|
4221
|
-
},
|
|
4221
|
+
}, Sa = function() {
|
|
4222
4222
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
4223
4223
|
}();
|
|
4224
|
-
function
|
|
4224
|
+
function Ba(e) {
|
|
4225
4225
|
return e;
|
|
4226
4226
|
}
|
|
4227
|
-
function
|
|
4228
|
-
return e.length === 0 ?
|
|
4227
|
+
function Pa(e) {
|
|
4228
|
+
return e.length === 0 ? Ba : e.length === 1 ? e[0] : function(n) {
|
|
4229
4229
|
return e.reduce(function(r, i) {
|
|
4230
4230
|
return i(r);
|
|
4231
4231
|
}, n);
|
|
@@ -4239,8 +4239,8 @@ var sr = function() {
|
|
|
4239
4239
|
var n = new e();
|
|
4240
4240
|
return n.source = this, n.operator = t, n;
|
|
4241
4241
|
}, e.prototype.subscribe = function(t, n, r) {
|
|
4242
|
-
var i = this, o =
|
|
4243
|
-
return
|
|
4242
|
+
var i = this, o = Ia(t) ? t : new In(t, n, r);
|
|
4243
|
+
return Ft(function() {
|
|
4244
4244
|
var a = i, s = a.operator, l = a.source;
|
|
4245
4245
|
o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
4246
4246
|
}), o;
|
|
@@ -4253,7 +4253,7 @@ var sr = function() {
|
|
|
4253
4253
|
}, e.prototype.forEach = function(t, n) {
|
|
4254
4254
|
var r = this;
|
|
4255
4255
|
return n = lr(n), new n(function(i, o) {
|
|
4256
|
-
var a = new
|
|
4256
|
+
var a = new In({
|
|
4257
4257
|
next: function(s) {
|
|
4258
4258
|
try {
|
|
4259
4259
|
t(s);
|
|
@@ -4269,12 +4269,12 @@ var sr = function() {
|
|
|
4269
4269
|
}, e.prototype._subscribe = function(t) {
|
|
4270
4270
|
var n;
|
|
4271
4271
|
return (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t);
|
|
4272
|
-
}, e.prototype[
|
|
4272
|
+
}, e.prototype[Sa] = function() {
|
|
4273
4273
|
return this;
|
|
4274
4274
|
}, e.prototype.pipe = function() {
|
|
4275
4275
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
4276
4276
|
t[n] = arguments[n];
|
|
4277
|
-
return
|
|
4277
|
+
return Pa(t)(this);
|
|
4278
4278
|
}, e.prototype.toPromise = function(t) {
|
|
4279
4279
|
var n = this;
|
|
4280
4280
|
return t = lr(t), new t(function(r, i) {
|
|
@@ -4293,20 +4293,20 @@ var sr = function() {
|
|
|
4293
4293
|
}();
|
|
4294
4294
|
function lr(e) {
|
|
4295
4295
|
var t;
|
|
4296
|
-
return (t = e != null ? e :
|
|
4296
|
+
return (t = e != null ? e : Ea.Promise) !== null && t !== void 0 ? t : Promise;
|
|
4297
4297
|
}
|
|
4298
|
-
function
|
|
4298
|
+
function Ha(e) {
|
|
4299
4299
|
return e && we(e.next) && we(e.error) && we(e.complete);
|
|
4300
4300
|
}
|
|
4301
|
-
function
|
|
4302
|
-
return e && e instanceof
|
|
4301
|
+
function Ia(e) {
|
|
4302
|
+
return e && e instanceof ai || Ha(e) && oi(e);
|
|
4303
4303
|
}
|
|
4304
|
-
var
|
|
4304
|
+
var Oa = ri(function(e) {
|
|
4305
4305
|
return function() {
|
|
4306
4306
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
4307
4307
|
};
|
|
4308
|
-
}),
|
|
4309
|
-
|
|
4308
|
+
}), si = function(e) {
|
|
4309
|
+
Et(t, e);
|
|
4310
4310
|
function t() {
|
|
4311
4311
|
var n = e.call(this) || this;
|
|
4312
4312
|
return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
|
|
@@ -4316,15 +4316,15 @@ var La = ii(function(e) {
|
|
|
4316
4316
|
return r.operator = n, r;
|
|
4317
4317
|
}, t.prototype._throwIfClosed = function() {
|
|
4318
4318
|
if (this.closed)
|
|
4319
|
-
throw new
|
|
4319
|
+
throw new Oa();
|
|
4320
4320
|
}, t.prototype.next = function(n) {
|
|
4321
4321
|
var r = this;
|
|
4322
|
-
|
|
4322
|
+
Ft(function() {
|
|
4323
4323
|
var i, o;
|
|
4324
4324
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
4325
4325
|
r.currentObservers || (r.currentObservers = Array.from(r.observers));
|
|
4326
4326
|
try {
|
|
4327
|
-
for (var a =
|
|
4327
|
+
for (var a = Sn(r.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
4328
4328
|
var l = s.value;
|
|
4329
4329
|
l.next(n);
|
|
4330
4330
|
}
|
|
@@ -4342,7 +4342,7 @@ var La = ii(function(e) {
|
|
|
4342
4342
|
});
|
|
4343
4343
|
}, t.prototype.error = function(n) {
|
|
4344
4344
|
var r = this;
|
|
4345
|
-
|
|
4345
|
+
Ft(function() {
|
|
4346
4346
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
4347
4347
|
r.hasError = r.isStopped = !0, r.thrownError = n;
|
|
4348
4348
|
for (var i = r.observers; i.length; )
|
|
@@ -4351,7 +4351,7 @@ var La = ii(function(e) {
|
|
|
4351
4351
|
});
|
|
4352
4352
|
}, t.prototype.complete = function() {
|
|
4353
4353
|
var n = this;
|
|
4354
|
-
|
|
4354
|
+
Ft(function() {
|
|
4355
4355
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
4356
4356
|
n.isStopped = !0;
|
|
4357
4357
|
for (var r = n.observers; r.length; )
|
|
@@ -4373,8 +4373,8 @@ var La = ii(function(e) {
|
|
|
4373
4373
|
return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
|
|
4374
4374
|
}, t.prototype._innerSubscribe = function(n) {
|
|
4375
4375
|
var r = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
4376
|
-
return o || a ?
|
|
4377
|
-
r.currentObservers = null,
|
|
4376
|
+
return o || a ? ii : (this.currentObservers = null, s.push(n), new Yt(function() {
|
|
4377
|
+
r.currentObservers = null, Hn(s, n);
|
|
4378
4378
|
}));
|
|
4379
4379
|
}, t.prototype._checkFinalizedStatuses = function(n) {
|
|
4380
4380
|
var r = this, i = r.hasError, o = r.thrownError, a = r.isStopped;
|
|
@@ -4386,7 +4386,7 @@ var La = ii(function(e) {
|
|
|
4386
4386
|
return new ur(n, r);
|
|
4387
4387
|
}, t;
|
|
4388
4388
|
}(sr), ur = function(e) {
|
|
4389
|
-
|
|
4389
|
+
Et(t, e);
|
|
4390
4390
|
function t(n, r) {
|
|
4391
4391
|
var i = e.call(this) || this;
|
|
4392
4392
|
return i.destination = n, i.source = r, i;
|
|
@@ -4402,17 +4402,17 @@ var La = ii(function(e) {
|
|
|
4402
4402
|
(r = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || r === void 0 || r.call(n);
|
|
4403
4403
|
}, t.prototype._subscribe = function(n) {
|
|
4404
4404
|
var r, i;
|
|
4405
|
-
return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i :
|
|
4405
|
+
return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : ii;
|
|
4406
4406
|
}, t;
|
|
4407
|
-
}(
|
|
4407
|
+
}(si), li = {
|
|
4408
4408
|
now: function() {
|
|
4409
|
-
return (
|
|
4409
|
+
return (li.delegate || Date).now();
|
|
4410
4410
|
},
|
|
4411
4411
|
delegate: void 0
|
|
4412
|
-
},
|
|
4413
|
-
|
|
4412
|
+
}, La = function(e) {
|
|
4413
|
+
Et(t, e);
|
|
4414
4414
|
function t(n, r, i) {
|
|
4415
|
-
n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i =
|
|
4415
|
+
n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = li);
|
|
4416
4416
|
var o = e.call(this) || this;
|
|
4417
4417
|
return o._bufferSize = n, o._windowTime = r, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = r === 1 / 0, o._bufferSize = Math.max(1, n), o._windowTime = Math.max(1, r), o;
|
|
4418
4418
|
}
|
|
@@ -4432,42 +4432,42 @@ var La = ii(function(e) {
|
|
|
4432
4432
|
u && o.splice(0, u + 1);
|
|
4433
4433
|
}
|
|
4434
4434
|
}, t;
|
|
4435
|
-
}(
|
|
4436
|
-
const cr = [], hr = {},
|
|
4435
|
+
}(si);
|
|
4436
|
+
const cr = [], hr = {}, Na = (e, t = 0) => {
|
|
4437
4437
|
if (cr.indexOf(e) == -1) {
|
|
4438
|
-
const n = new
|
|
4438
|
+
const n = new La(t);
|
|
4439
4439
|
hr[e] = n, cr.push(e);
|
|
4440
4440
|
}
|
|
4441
4441
|
return hr[e];
|
|
4442
4442
|
};
|
|
4443
|
-
let
|
|
4444
|
-
const
|
|
4445
|
-
|
|
4446
|
-
}, fr = ({ local: e, options: t = {}, amount: n }) => {
|
|
4447
|
-
try {
|
|
4448
|
-
return new Intl.NumberFormat(e, t);
|
|
4449
|
-
} catch (r) {
|
|
4450
|
-
return console.info(r), new Intl.NumberFormat(e, {
|
|
4451
|
-
minimumFractionDigits: t.minimumFractionDigits,
|
|
4452
|
-
maximumFractionDigits: t.maximumFractionDigits
|
|
4453
|
-
});
|
|
4454
|
-
}
|
|
4443
|
+
let Ut = "en-UK", ui = "true", pt = 0, dt = "";
|
|
4444
|
+
const Ra = (e, t, n, r) => {
|
|
4445
|
+
Ut = e || "en-UK", ui = t || "true", pt = +r || 0, dt = n || "";
|
|
4455
4446
|
}, Re = (e, t, n = {}, r = !0) => {
|
|
4456
4447
|
const i = Ie(Ie({
|
|
4457
|
-
maximumFractionDigits:
|
|
4458
|
-
minimumFractionDigits:
|
|
4448
|
+
maximumFractionDigits: pt,
|
|
4449
|
+
minimumFractionDigits: pt
|
|
4459
4450
|
}, r && {
|
|
4460
4451
|
style: "currency",
|
|
4461
4452
|
currency: t,
|
|
4462
|
-
currencyDisplay:
|
|
4453
|
+
currencyDisplay: ui === "true" ? "symbol" : "code"
|
|
4463
4454
|
}), n);
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4455
|
+
try {
|
|
4456
|
+
if (!dt)
|
|
4457
|
+
return new Intl.NumberFormat(Ut, i).format(e);
|
|
4458
|
+
const a = new Intl.NumberFormat(Ut, i).formatToParts(e), s = a.find(({ type: h = "" } = {}) => h === "currency") || {}, l = a.filter(({ type: h = "" } = {}) => h !== "currency").map(({ value: h = "" } = {}) => h).join("");
|
|
4459
|
+
return dt === "before" ? `${s.value || i.currency || ""} ${l}` : `${l} ${s.value || i.currency || ""}`;
|
|
4460
|
+
} catch (o) {
|
|
4461
|
+
console.info(o);
|
|
4462
|
+
const a = new Intl.NumberFormat(Ut, {
|
|
4463
|
+
maximumFractionDigits: pt,
|
|
4464
|
+
minimumFractionDigits: pt
|
|
4465
|
+
}).format(e);
|
|
4466
|
+
return dt ? dt === "before" ? `${i.currency || ""} ${a}` : `${a} ${i.currency || ""}` : `${i.currency || ""} ${a}`;
|
|
4467
|
+
}
|
|
4468
4468
|
};
|
|
4469
|
-
window.emWidgets = { topic:
|
|
4470
|
-
const
|
|
4469
|
+
window.emWidgets = { topic: Na };
|
|
4470
|
+
const Da = {
|
|
4471
4471
|
"1INCH": "",
|
|
4472
4472
|
AAVE: "",
|
|
4473
4473
|
ADA: "₳",
|
|
@@ -4755,7 +4755,7 @@ const Ma = {
|
|
|
4755
4755
|
ZMW: "",
|
|
4756
4756
|
ZWD: "Z$"
|
|
4757
4757
|
};
|
|
4758
|
-
function
|
|
4758
|
+
function Ma(e, t) {
|
|
4759
4759
|
let n;
|
|
4760
4760
|
return function(...r) {
|
|
4761
4761
|
n && clearTimeout(n), n = setTimeout(() => {
|
|
@@ -4763,14 +4763,14 @@ function ka(e, t) {
|
|
|
4763
4763
|
}, t);
|
|
4764
4764
|
};
|
|
4765
4765
|
}
|
|
4766
|
-
const
|
|
4766
|
+
const fr = (e, t = null, n = 2) => {
|
|
4767
4767
|
try {
|
|
4768
4768
|
return JSON.stringify(e, t, n);
|
|
4769
4769
|
} catch (r) {
|
|
4770
4770
|
return console.warn("Failed to stringify:", r), null;
|
|
4771
4771
|
}
|
|
4772
4772
|
};
|
|
4773
|
-
function
|
|
4773
|
+
function ka(e) {
|
|
4774
4774
|
if (e) {
|
|
4775
4775
|
if (e = e.toString(), isNaN(e))
|
|
4776
4776
|
throw Error("Parameter is not a number: " + e);
|
|
@@ -4785,40 +4785,40 @@ function Fa(e) {
|
|
|
4785
4785
|
}
|
|
4786
4786
|
return e;
|
|
4787
4787
|
}
|
|
4788
|
-
const xe = String(Number.MAX_SAFE_INTEGER).length,
|
|
4788
|
+
const xe = String(Number.MAX_SAFE_INTEGER).length, Fa = 6e3, Ua = {
|
|
4789
4789
|
InvalidSession: "Invalid session"
|
|
4790
4790
|
}, J = {
|
|
4791
4791
|
BalanceError: "BalanceError",
|
|
4792
4792
|
CheckWalletExchangeError: "CheckWalletExchangeError",
|
|
4793
4793
|
WalletExchangeError: "WalletExchangeError",
|
|
4794
4794
|
CurrenciesError: "CurrenciesError"
|
|
4795
|
-
},
|
|
4795
|
+
}, pr = {
|
|
4796
4796
|
ResetVaultWidget: "ResetVaultWidget",
|
|
4797
4797
|
CloseVaultWidget: "CloseVaultWidget"
|
|
4798
|
-
},
|
|
4798
|
+
}, pn = {
|
|
4799
4799
|
VaultWidgetReset: "VaultWidgetReset",
|
|
4800
4800
|
VaultWidgetClosed: "VaultWidgetClosed",
|
|
4801
4801
|
VaultDropdownToggled: "VaultDropdownToggled"
|
|
4802
|
-
},
|
|
4802
|
+
}, dr = {
|
|
4803
4803
|
Real: "Real",
|
|
4804
4804
|
Vault: "Vault"
|
|
4805
4805
|
}, Oe = {
|
|
4806
4806
|
success: "success",
|
|
4807
4807
|
error: "error"
|
|
4808
|
-
},
|
|
4808
|
+
}, Nt = {
|
|
4809
4809
|
ArrowDown: "ArrowDown",
|
|
4810
4810
|
ArrowUp: "ArrowUp",
|
|
4811
4811
|
Enter: "Enter",
|
|
4812
4812
|
Escape: "Escape"
|
|
4813
4813
|
}, le = {
|
|
4814
4814
|
true: "true"
|
|
4815
|
-
},
|
|
4815
|
+
}, mr = {
|
|
4816
4816
|
Fiat: "Fiat",
|
|
4817
4817
|
CryptoCurrency: "CryptoCurrency"
|
|
4818
|
-
},
|
|
4818
|
+
}, Va = {
|
|
4819
4819
|
Credit: "Credit"
|
|
4820
4820
|
};
|
|
4821
|
-
function
|
|
4821
|
+
function Ga(e) {
|
|
4822
4822
|
const t = (n) => {
|
|
4823
4823
|
e.contains(n.target) || e.dispatchEvent(new CustomEvent("outclick"));
|
|
4824
4824
|
};
|
|
@@ -4828,14 +4828,14 @@ function $a(e) {
|
|
|
4828
4828
|
}
|
|
4829
4829
|
};
|
|
4830
4830
|
}
|
|
4831
|
-
function
|
|
4831
|
+
function $a(e) {
|
|
4832
4832
|
Ln(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)}");
|
|
4833
4833
|
}
|
|
4834
|
-
function
|
|
4834
|
+
function gr(e, t, n) {
|
|
4835
4835
|
const r = e.slice();
|
|
4836
4836
|
return r[16] = t[n], r[18] = n, r;
|
|
4837
4837
|
}
|
|
4838
|
-
function
|
|
4838
|
+
function br(e) {
|
|
4839
4839
|
var i;
|
|
4840
4840
|
let t, n = (
|
|
4841
4841
|
/*selected*/
|
|
@@ -4859,13 +4859,13 @@ function yr(e) {
|
|
|
4859
4859
|
}
|
|
4860
4860
|
};
|
|
4861
4861
|
}
|
|
4862
|
-
function
|
|
4863
|
-
let t, n, r =
|
|
4862
|
+
function yr(e) {
|
|
4863
|
+
let t, n, r = Gt(
|
|
4864
4864
|
/*options*/
|
|
4865
4865
|
e[1]
|
|
4866
4866
|
), i = [];
|
|
4867
4867
|
for (let o = 0; o < r.length; o += 1)
|
|
4868
|
-
i[o] =
|
|
4868
|
+
i[o] = vr(gr(e, r, o));
|
|
4869
4869
|
return {
|
|
4870
4870
|
c() {
|
|
4871
4871
|
t = T("div"), n = T("ul");
|
|
@@ -4882,14 +4882,14 @@ function vr(e) {
|
|
|
4882
4882
|
p(o, a) {
|
|
4883
4883
|
if (a & /*options, selected, activeIndex, handleChange*/
|
|
4884
4884
|
547) {
|
|
4885
|
-
r =
|
|
4885
|
+
r = Gt(
|
|
4886
4886
|
/*options*/
|
|
4887
4887
|
o[1]
|
|
4888
4888
|
);
|
|
4889
4889
|
let s;
|
|
4890
4890
|
for (s = 0; s < r.length; s += 1) {
|
|
4891
|
-
const l =
|
|
4892
|
-
i[s] ? i[s].p(l, a) : (i[s] =
|
|
4891
|
+
const l = gr(o, r, s);
|
|
4892
|
+
i[s] ? i[s].p(l, a) : (i[s] = vr(l), i[s].c(), i[s].m(n, null));
|
|
4893
4893
|
}
|
|
4894
4894
|
for (; s < i.length; s += 1)
|
|
4895
4895
|
i[s].d(1);
|
|
@@ -4897,11 +4897,11 @@ function vr(e) {
|
|
|
4897
4897
|
}
|
|
4898
4898
|
},
|
|
4899
4899
|
d(o) {
|
|
4900
|
-
o && B(t),
|
|
4900
|
+
o && B(t), Sr(i, o), e[14](null);
|
|
4901
4901
|
}
|
|
4902
4902
|
};
|
|
4903
4903
|
}
|
|
4904
|
-
function
|
|
4904
|
+
function vr(e) {
|
|
4905
4905
|
var c, m;
|
|
4906
4906
|
let t, n, r = (
|
|
4907
4907
|
/*option*/
|
|
@@ -4929,9 +4929,9 @@ function _r(e) {
|
|
|
4929
4929
|
},
|
|
4930
4930
|
m(_, g) {
|
|
4931
4931
|
P(_, t, g), x(t, n), x(n, i), x(t, o), x(t, s), x(t, l), h || (f = [
|
|
4932
|
-
ne(t, "keydown",
|
|
4932
|
+
ne(t, "keydown", Wa),
|
|
4933
4933
|
ne(t, "click", function() {
|
|
4934
|
-
|
|
4934
|
+
_t(
|
|
4935
4935
|
/*handleChange*/
|
|
4936
4936
|
e[9](
|
|
4937
4937
|
/*option*/
|
|
@@ -4975,7 +4975,7 @@ function _r(e) {
|
|
|
4975
4975
|
}
|
|
4976
4976
|
};
|
|
4977
4977
|
}
|
|
4978
|
-
function
|
|
4978
|
+
function ja(e) {
|
|
4979
4979
|
var _, g;
|
|
4980
4980
|
let t, n, r, i, o = (
|
|
4981
4981
|
/*selected*/
|
|
@@ -4984,10 +4984,10 @@ function Wa(e) {
|
|
|
4984
4984
|
), a, s, l, u, h, f, c = (
|
|
4985
4985
|
/*selected*/
|
|
4986
4986
|
((g = e[0]) == null ? void 0 : g.symbol) && /*withSymbol*/
|
|
4987
|
-
e[3] === le.true &&
|
|
4987
|
+
e[3] === le.true && br(e)
|
|
4988
4988
|
), m = (
|
|
4989
4989
|
/*open*/
|
|
4990
|
-
e[7] &&
|
|
4990
|
+
e[7] && yr(e)
|
|
4991
4991
|
);
|
|
4992
4992
|
return {
|
|
4993
4993
|
c() {
|
|
@@ -5012,11 +5012,11 @@ function Wa(e) {
|
|
|
5012
5012
|
/*handleKeyDown*/
|
|
5013
5013
|
e[11]
|
|
5014
5014
|
),
|
|
5015
|
-
ne(n, "click",
|
|
5015
|
+
ne(n, "click", Ei(
|
|
5016
5016
|
/*handleToggleDropdown*/
|
|
5017
5017
|
e[8]
|
|
5018
5018
|
)),
|
|
5019
|
-
|
|
5019
|
+
bi(Ga.call(null, t)),
|
|
5020
5020
|
ne(
|
|
5021
5021
|
t,
|
|
5022
5022
|
"outclick",
|
|
@@ -5029,7 +5029,7 @@ function Wa(e) {
|
|
|
5029
5029
|
var E, b;
|
|
5030
5030
|
/*selected*/
|
|
5031
5031
|
(E = w[0]) != null && E.symbol && /*withSymbol*/
|
|
5032
|
-
w[3] === le.true ? c ? c.p(w, N) : (c =
|
|
5032
|
+
w[3] === le.true ? c ? c.p(w, N) : (c = br(w), c.c(), c.m(r, i)) : c && (c.d(1), c = null), N & /*selected, placeholder*/
|
|
5033
5033
|
5 && o !== (o = /*selected*/
|
|
5034
5034
|
(((b = w[0]) == null ? void 0 : b.currency) || /*placeholder*/
|
|
5035
5035
|
w[2]) + "") && re(a, o), N & /*open*/
|
|
@@ -5047,7 +5047,7 @@ function Wa(e) {
|
|
|
5047
5047
|
), N & /*disabled*/
|
|
5048
5048
|
16 && (n.disabled = /*disabled*/
|
|
5049
5049
|
w[4]), /*open*/
|
|
5050
|
-
w[7] ? m ? m.p(w, N) : (m =
|
|
5050
|
+
w[7] ? m ? m.p(w, N) : (m = yr(w), m.c(), m.m(t, null)) : m && (m.d(1), m = null);
|
|
5051
5051
|
},
|
|
5052
5052
|
i: I,
|
|
5053
5053
|
o: I,
|
|
@@ -5056,13 +5056,13 @@ function Wa(e) {
|
|
|
5056
5056
|
}
|
|
5057
5057
|
};
|
|
5058
5058
|
}
|
|
5059
|
-
const
|
|
5060
|
-
function
|
|
5059
|
+
const Wa = (e) => e.preventDefault();
|
|
5060
|
+
function Xa(e, t, n) {
|
|
5061
5061
|
let { options: r = [] } = t, { selected: i = null } = t, { placeholder: o = M("select") } = t, { withSymbol: a = "true" } = t, { id: s } = t, { disabled: l = !1 } = t, { onChange: u = () => {
|
|
5062
5062
|
} } = t, h = -1, f, c = !1;
|
|
5063
|
-
const m = () =>
|
|
5063
|
+
const m = () => Ht(this, null, function* () {
|
|
5064
5064
|
var b;
|
|
5065
|
-
r.length !== 0 && (n(7, c = !c), c && (n(5, h = r.findIndex((C) => (C == null ? void 0 : C.currency) === (i == null ? void 0 : i.currency))), window.dispatchEvent(new CustomEvent("dropdown-opened", { detail: s })), yield
|
|
5065
|
+
r.length !== 0 && (n(7, c = !c), c && (n(5, h = r.findIndex((C) => (C == null ? void 0 : C.currency) === (i == null ? void 0 : i.currency))), window.dispatchEvent(new CustomEvent("dropdown-opened", { detail: s })), yield Ti(), f == null || f.focus(), (b = f == null ? void 0 : f.querySelector('li[aria-selected="true"]')) == null || b.scrollIntoView({ block: "nearest" })));
|
|
5066
5066
|
}), _ = (b) => {
|
|
5067
5067
|
b.detail !== s && c && n(7, c = !1);
|
|
5068
5068
|
}, g = (b, C) => () => {
|
|
@@ -5070,11 +5070,11 @@ function za(e, t, n) {
|
|
|
5070
5070
|
}, w = () => {
|
|
5071
5071
|
n(7, c = !1);
|
|
5072
5072
|
}, N = (b) => {
|
|
5073
|
-
c && (b.key ===
|
|
5073
|
+
c && (b.key === Nt.ArrowDown ? (b.preventDefault(), n(5, h = (h + 1) % r.length)) : b.key === Nt.ArrowUp ? (b.preventDefault(), n(5, h = (h - 1 + r.length) % r.length)) : b.key === Nt.Enter ? (b.preventDefault(), g(i, h)()) : b.key === Nt.Escape && n(7, c = !1));
|
|
5074
5074
|
};
|
|
5075
|
-
|
|
5075
|
+
Pr(() => {
|
|
5076
5076
|
window.addEventListener("dropdown-opened", _);
|
|
5077
|
-
}),
|
|
5077
|
+
}), Ai(() => {
|
|
5078
5078
|
window.removeEventListener("dropdown-opened", _);
|
|
5079
5079
|
});
|
|
5080
5080
|
function E(b) {
|
|
@@ -5107,9 +5107,9 @@ class On extends Dn {
|
|
|
5107
5107
|
super(), Nn(
|
|
5108
5108
|
this,
|
|
5109
5109
|
t,
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
|
|
5110
|
+
Xa,
|
|
5111
|
+
ja,
|
|
5112
|
+
Xt,
|
|
5113
5113
|
{
|
|
5114
5114
|
options: 1,
|
|
5115
5115
|
selected: 0,
|
|
@@ -5119,7 +5119,7 @@ class On extends Dn {
|
|
|
5119
5119
|
disabled: 4,
|
|
5120
5120
|
onChange: 13
|
|
5121
5121
|
},
|
|
5122
|
-
|
|
5122
|
+
$a
|
|
5123
5123
|
);
|
|
5124
5124
|
}
|
|
5125
5125
|
get options() {
|
|
@@ -5166,10 +5166,10 @@ class On extends Dn {
|
|
|
5166
5166
|
}
|
|
5167
5167
|
}
|
|
5168
5168
|
Rn(On, { options: {}, selected: {}, placeholder: {}, withSymbol: {}, id: {}, disabled: { type: "Boolean" }, onChange: {} }, [], [], !0);
|
|
5169
|
-
function
|
|
5169
|
+
function za(e) {
|
|
5170
5170
|
Ln(e, "svelte-2fhtvy", ".warningIcon.svelte-2fhtvy{line-height:1;margin-right:0.4rem}");
|
|
5171
5171
|
}
|
|
5172
|
-
function
|
|
5172
|
+
function Za(e) {
|
|
5173
5173
|
let t, n, r = M("balanceUnavailable") + "", i;
|
|
5174
5174
|
return {
|
|
5175
5175
|
c() {
|
|
@@ -5186,20 +5186,20 @@ function Ka(e) {
|
|
|
5186
5186
|
}
|
|
5187
5187
|
};
|
|
5188
5188
|
}
|
|
5189
|
-
class
|
|
5189
|
+
class Jt extends Dn {
|
|
5190
5190
|
constructor(t) {
|
|
5191
|
-
super(), Nn(this, t, null,
|
|
5191
|
+
super(), Nn(this, t, null, Za, Xt, {}, za);
|
|
5192
5192
|
}
|
|
5193
5193
|
}
|
|
5194
|
-
Rn(
|
|
5195
|
-
function
|
|
5194
|
+
Rn(Jt, {}, [], [], !0);
|
|
5195
|
+
function Ka(e) {
|
|
5196
5196
|
Ln(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}');
|
|
5197
5197
|
}
|
|
5198
|
-
function
|
|
5198
|
+
function _r(e, t, n) {
|
|
5199
5199
|
const r = e.slice();
|
|
5200
5200
|
return r[65] = t[n], r;
|
|
5201
5201
|
}
|
|
5202
|
-
function
|
|
5202
|
+
function Er(e) {
|
|
5203
5203
|
let t, n, r;
|
|
5204
5204
|
return {
|
|
5205
5205
|
c() {
|
|
@@ -5219,9 +5219,9 @@ function xr(e) {
|
|
|
5219
5219
|
}
|
|
5220
5220
|
};
|
|
5221
5221
|
}
|
|
5222
|
-
function
|
|
5222
|
+
function xr(e) {
|
|
5223
5223
|
let t, n, r, i;
|
|
5224
|
-
const o = [
|
|
5224
|
+
const o = [Qa, qa], a = [];
|
|
5225
5225
|
function s(l, u) {
|
|
5226
5226
|
return !/*isBalanceFetched*/
|
|
5227
5227
|
l[17] || !/*isCurrenciesFetched*/
|
|
@@ -5229,7 +5229,7 @@ function wr(e) {
|
|
|
5229
5229
|
}
|
|
5230
5230
|
return t = s(e), n = a[t] = o[t](e), {
|
|
5231
5231
|
c() {
|
|
5232
|
-
n.c(), r =
|
|
5232
|
+
n.c(), r = _i();
|
|
5233
5233
|
},
|
|
5234
5234
|
m(l, u) {
|
|
5235
5235
|
a[t].m(l, u), P(l, r, u), i = !0;
|
|
@@ -5251,9 +5251,9 @@ function wr(e) {
|
|
|
5251
5251
|
}
|
|
5252
5252
|
};
|
|
5253
5253
|
}
|
|
5254
|
-
function
|
|
5254
|
+
function qa(e) {
|
|
5255
5255
|
let t, n, r, i;
|
|
5256
|
-
const o = [
|
|
5256
|
+
const o = [Ja, Ya], a = [];
|
|
5257
5257
|
function s(l, u) {
|
|
5258
5258
|
var h;
|
|
5259
5259
|
return (
|
|
@@ -5285,7 +5285,7 @@ function Qa(e) {
|
|
|
5285
5285
|
}
|
|
5286
5286
|
};
|
|
5287
5287
|
}
|
|
5288
|
-
function
|
|
5288
|
+
function Qa(e) {
|
|
5289
5289
|
let t;
|
|
5290
5290
|
return {
|
|
5291
5291
|
c() {
|
|
@@ -5302,7 +5302,7 @@ function Ya(e) {
|
|
|
5302
5302
|
}
|
|
5303
5303
|
};
|
|
5304
5304
|
}
|
|
5305
|
-
function
|
|
5305
|
+
function Ya(e) {
|
|
5306
5306
|
var l, u, h;
|
|
5307
5307
|
let t, n, r = Re(
|
|
5308
5308
|
/*playerBalance*/
|
|
@@ -5343,11 +5343,11 @@ function Ja(e) {
|
|
|
5343
5343
|
}
|
|
5344
5344
|
};
|
|
5345
5345
|
}
|
|
5346
|
-
function
|
|
5346
|
+
function Ja(e) {
|
|
5347
5347
|
let t, n;
|
|
5348
|
-
return t = new
|
|
5348
|
+
return t = new Jt({}), {
|
|
5349
5349
|
c() {
|
|
5350
|
-
|
|
5350
|
+
bt(t.$$.fragment);
|
|
5351
5351
|
},
|
|
5352
5352
|
m(r, i) {
|
|
5353
5353
|
Ye(t, r, i), n = !0;
|
|
@@ -5364,9 +5364,9 @@ function es(e) {
|
|
|
5364
5364
|
}
|
|
5365
5365
|
};
|
|
5366
5366
|
}
|
|
5367
|
-
function
|
|
5367
|
+
function es(e) {
|
|
5368
5368
|
let t, n, r, i, o, a, s, l, u;
|
|
5369
|
-
const h = [
|
|
5369
|
+
const h = [rs, ns], f = [];
|
|
5370
5370
|
function c(m, _) {
|
|
5371
5371
|
var g;
|
|
5372
5372
|
return (
|
|
@@ -5410,7 +5410,7 @@ function ts(e) {
|
|
|
5410
5410
|
}
|
|
5411
5411
|
};
|
|
5412
5412
|
}
|
|
5413
|
-
function
|
|
5413
|
+
function ts(e) {
|
|
5414
5414
|
let t;
|
|
5415
5415
|
return {
|
|
5416
5416
|
c() {
|
|
@@ -5427,7 +5427,7 @@ function ns(e) {
|
|
|
5427
5427
|
}
|
|
5428
5428
|
};
|
|
5429
5429
|
}
|
|
5430
|
-
function
|
|
5430
|
+
function ns(e) {
|
|
5431
5431
|
var l, u, h;
|
|
5432
5432
|
let t, n, r = Re(
|
|
5433
5433
|
/*selectedCurrencyFrom*/
|
|
@@ -5468,11 +5468,11 @@ function rs(e) {
|
|
|
5468
5468
|
}
|
|
5469
5469
|
};
|
|
5470
5470
|
}
|
|
5471
|
-
function
|
|
5471
|
+
function rs(e) {
|
|
5472
5472
|
let t, n;
|
|
5473
|
-
return t = new
|
|
5473
|
+
return t = new Jt({}), {
|
|
5474
5474
|
c() {
|
|
5475
|
-
|
|
5475
|
+
bt(t.$$.fragment);
|
|
5476
5476
|
},
|
|
5477
5477
|
m(r, i) {
|
|
5478
5478
|
Ye(t, r, i), n = !0;
|
|
@@ -5489,9 +5489,9 @@ function is(e) {
|
|
|
5489
5489
|
}
|
|
5490
5490
|
};
|
|
5491
5491
|
}
|
|
5492
|
-
function
|
|
5492
|
+
function is(e) {
|
|
5493
5493
|
let t, n, r, i;
|
|
5494
|
-
const o = [
|
|
5494
|
+
const o = [ss, as], a = [];
|
|
5495
5495
|
function s(l, u) {
|
|
5496
5496
|
var h;
|
|
5497
5497
|
return (
|
|
@@ -5523,7 +5523,7 @@ function os(e) {
|
|
|
5523
5523
|
}
|
|
5524
5524
|
};
|
|
5525
5525
|
}
|
|
5526
|
-
function
|
|
5526
|
+
function os(e) {
|
|
5527
5527
|
let t;
|
|
5528
5528
|
return {
|
|
5529
5529
|
c() {
|
|
@@ -5540,7 +5540,7 @@ function as(e) {
|
|
|
5540
5540
|
}
|
|
5541
5541
|
};
|
|
5542
5542
|
}
|
|
5543
|
-
function
|
|
5543
|
+
function as(e) {
|
|
5544
5544
|
var l, u, h;
|
|
5545
5545
|
let t, n, r = Re(
|
|
5546
5546
|
/*selectedCurrencyTo*/
|
|
@@ -5581,11 +5581,11 @@ function ss(e) {
|
|
|
5581
5581
|
}
|
|
5582
5582
|
};
|
|
5583
5583
|
}
|
|
5584
|
-
function
|
|
5584
|
+
function ss(e) {
|
|
5585
5585
|
let t, n;
|
|
5586
|
-
return t = new
|
|
5586
|
+
return t = new Jt({}), {
|
|
5587
5587
|
c() {
|
|
5588
|
-
|
|
5588
|
+
bt(t.$$.fragment);
|
|
5589
5589
|
},
|
|
5590
5590
|
m(r, i) {
|
|
5591
5591
|
Ye(t, r, i), n = !0;
|
|
@@ -5602,13 +5602,13 @@ function ls(e) {
|
|
|
5602
5602
|
}
|
|
5603
5603
|
};
|
|
5604
5604
|
}
|
|
5605
|
-
function
|
|
5606
|
-
let t, n, r, i, o, a, s, l, u, h, f =
|
|
5605
|
+
function wr(e) {
|
|
5606
|
+
let t, n, r, i, o, a, s, l, u, h, f = Gt(
|
|
5607
5607
|
/*dropDownVaults*/
|
|
5608
5608
|
e[20]
|
|
5609
5609
|
), c = [];
|
|
5610
5610
|
for (let m = 0; m < f.length; m += 1)
|
|
5611
|
-
c[m] =
|
|
5611
|
+
c[m] = Ar(_r(e, f, m));
|
|
5612
5612
|
return {
|
|
5613
5613
|
c() {
|
|
5614
5614
|
t = T("div"), n = T("button"), r = Vn("svg"), i = Vn("path"), a = R(), s = T("div");
|
|
@@ -5637,14 +5637,14 @@ function Ar(e) {
|
|
|
5637
5637
|
(m[16] && /*dropDownVaults*/
|
|
5638
5638
|
m[20].length > 0 ? "active" : "")) && v(n, "class", o), _[0] & /*dropDownVaults, currencydecimals*/
|
|
5639
5639
|
1048608) {
|
|
5640
|
-
f =
|
|
5640
|
+
f = Gt(
|
|
5641
5641
|
/*dropDownVaults*/
|
|
5642
5642
|
m[20]
|
|
5643
5643
|
);
|
|
5644
5644
|
let g;
|
|
5645
5645
|
for (g = 0; g < f.length; g += 1) {
|
|
5646
|
-
const w =
|
|
5647
|
-
c[g] ? c[g].p(w, _) : (c[g] =
|
|
5646
|
+
const w = _r(m, f, g);
|
|
5647
|
+
c[g] ? c[g].p(w, _) : (c[g] = Ar(w), c[g].c(), c[g].m(s, null));
|
|
5648
5648
|
}
|
|
5649
5649
|
for (; g < c.length; g += 1)
|
|
5650
5650
|
c[g].d(1);
|
|
@@ -5656,11 +5656,11 @@ function Ar(e) {
|
|
|
5656
5656
|
m[20].length > 0 ? "expanded" : "")) && v(s, "class", l);
|
|
5657
5657
|
},
|
|
5658
5658
|
d(m) {
|
|
5659
|
-
m && B(t),
|
|
5659
|
+
m && B(t), Sr(c, m), u = !1, h();
|
|
5660
5660
|
}
|
|
5661
5661
|
};
|
|
5662
5662
|
}
|
|
5663
|
-
function
|
|
5663
|
+
function Ar(e) {
|
|
5664
5664
|
var h, f, c, m, _;
|
|
5665
5665
|
let t, n, r = (
|
|
5666
5666
|
/*vault*/
|
|
@@ -5723,7 +5723,7 @@ function Tr(e) {
|
|
|
5723
5723
|
}
|
|
5724
5724
|
};
|
|
5725
5725
|
}
|
|
5726
|
-
function
|
|
5726
|
+
function ls(e) {
|
|
5727
5727
|
var r, i, o, a;
|
|
5728
5728
|
let t = `${/*currentFee*/
|
|
5729
5729
|
((i = (r = e[12]) == null ? void 0 : r.fees[0]) == null ? void 0 : i.amount) || 0} ${/*currentFee*/
|
|
@@ -5747,7 +5747,7 @@ function us(e) {
|
|
|
5747
5747
|
}
|
|
5748
5748
|
};
|
|
5749
5749
|
}
|
|
5750
|
-
function
|
|
5750
|
+
function us(e) {
|
|
5751
5751
|
let t = M("feesUnavailable") + "", n;
|
|
5752
5752
|
return {
|
|
5753
5753
|
c() {
|
|
@@ -5762,22 +5762,22 @@ function cs(e) {
|
|
|
5762
5762
|
}
|
|
5763
5763
|
};
|
|
5764
5764
|
}
|
|
5765
|
-
function
|
|
5765
|
+
function cs(e) {
|
|
5766
5766
|
var A;
|
|
5767
|
-
let t, n, r, i, o, a, s, l, u, h, f, c, m, _, g, w, N, E, b, C, D, K, $, ue, k, Te, ge, ie, be, ye, q, Z, Ce, Ve, ve, oe,
|
|
5767
|
+
let t, n, r, i, o, a, s, l, u, h, f, c, m, _, g, w, N, E, b, C, D, K, $, ue, k, Te, ge, ie, be, ye, q, Z, Ce, Ve, ve, oe, xt, Ge, wt, ce, $e = M(
|
|
5768
5768
|
/*fetchResponse*/
|
|
5769
5769
|
((A = e[13]) == null ? void 0 : A.message) || ""
|
|
5770
|
-
) + "", st, fe, he, Se, ee,
|
|
5770
|
+
) + "", st, fe, he, Se, ee, At = M("exchange") + "", je, We, W, lt, De, Q = (
|
|
5771
5771
|
/*showclosebutton*/
|
|
5772
|
-
e[3] === le.true &&
|
|
5772
|
+
e[3] === le.true && Er(e)
|
|
5773
5773
|
), j = (
|
|
5774
5774
|
/*showtotalbalance*/
|
|
5775
|
-
e[2] === le.true &&
|
|
5775
|
+
e[2] === le.true && xr(e)
|
|
5776
5776
|
);
|
|
5777
|
-
function
|
|
5777
|
+
function Tt(d) {
|
|
5778
5778
|
e[42](d);
|
|
5779
5779
|
}
|
|
5780
|
-
let
|
|
5780
|
+
let en = {
|
|
5781
5781
|
id: "senderSelect",
|
|
5782
5782
|
withSymbol: (
|
|
5783
5783
|
/*showcurrencysymbol*/
|
|
@@ -5796,19 +5796,19 @@ function hs(e) {
|
|
|
5796
5796
|
)
|
|
5797
5797
|
};
|
|
5798
5798
|
/*selectedCurrencyFrom*/
|
|
5799
|
-
e[6] !== void 0 && (
|
|
5800
|
-
e[6]), g = new On({ props:
|
|
5801
|
-
const ut = [
|
|
5802
|
-
function
|
|
5799
|
+
e[6] !== void 0 && (en.selected = /*selectedCurrencyFrom*/
|
|
5800
|
+
e[6]), g = new On({ props: en }), Qe.push(() => $n(g, "selected", Tt));
|
|
5801
|
+
const ut = [ts, es], pe = [];
|
|
5802
|
+
function Ct(d, y) {
|
|
5803
5803
|
return !/*isBalanceFetched*/
|
|
5804
5804
|
d[17] || !/*isCurrenciesFetched*/
|
|
5805
5805
|
d[18] ? 0 : 1;
|
|
5806
5806
|
}
|
|
5807
|
-
E =
|
|
5808
|
-
function
|
|
5807
|
+
E = Ct(e), b = pe[E] = ut[E](e);
|
|
5808
|
+
function tn(d) {
|
|
5809
5809
|
e[44](d);
|
|
5810
5810
|
}
|
|
5811
|
-
let
|
|
5811
|
+
let St = {
|
|
5812
5812
|
id: "destinationSelect",
|
|
5813
5813
|
withSymbol: (
|
|
5814
5814
|
/*showcurrencysymbol*/
|
|
@@ -5829,31 +5829,31 @@ function hs(e) {
|
|
|
5829
5829
|
)
|
|
5830
5830
|
};
|
|
5831
5831
|
/*selectedCurrencyTo*/
|
|
5832
|
-
e[7] !== void 0 && (
|
|
5833
|
-
e[7]), ie = new On({ props:
|
|
5834
|
-
const ct = [
|
|
5835
|
-
function
|
|
5832
|
+
e[7] !== void 0 && (St.selected = /*selectedCurrencyTo*/
|
|
5833
|
+
e[7]), ie = new On({ props: St }), Qe.push(() => $n(ie, "selected", tn));
|
|
5834
|
+
const ct = [os, is], de = [];
|
|
5835
|
+
function Bt(d, y) {
|
|
5836
5836
|
return !/*isBalanceFetched*/
|
|
5837
5837
|
d[17] || !/*isCurrenciesFetched*/
|
|
5838
5838
|
d[18] ? 0 : 1;
|
|
5839
5839
|
}
|
|
5840
|
-
q =
|
|
5840
|
+
q = Bt(e), Z = de[q] = ct[q](e);
|
|
5841
5841
|
let Y = (
|
|
5842
5842
|
/*showvaults*/
|
|
5843
|
-
e[1] === le.true &&
|
|
5843
|
+
e[1] === le.true && wr(e)
|
|
5844
5844
|
);
|
|
5845
|
-
function
|
|
5845
|
+
function Pt(d, y) {
|
|
5846
5846
|
var O;
|
|
5847
5847
|
return (
|
|
5848
5848
|
/*fetchResponse*/
|
|
5849
|
-
((O = d[13]) == null ? void 0 : O.source) === J.CheckWalletExchangeError ?
|
|
5849
|
+
((O = d[13]) == null ? void 0 : O.source) === J.CheckWalletExchangeError ? us : ls
|
|
5850
5850
|
);
|
|
5851
5851
|
}
|
|
5852
|
-
let Xe =
|
|
5852
|
+
let Xe = Pt(e), p = Xe(e);
|
|
5853
5853
|
return {
|
|
5854
5854
|
c() {
|
|
5855
5855
|
var d, y, O;
|
|
5856
|
-
t = T("div"), Q && Q.c(), n = R(), r = T("div"), i = T("h1"), i.textContent = `${M("vaultExchange")}`, o = R(), j && j.c(), a = R(), s = T("div"), l = T("div"), u = T("p"), u.textContent = `${M("exchangeFrom")}`, h = R(), f = T("div"), c = T("input"), _ = R(),
|
|
5856
|
+
t = T("div"), Q && Q.c(), n = R(), r = T("div"), i = T("h1"), i.textContent = `${M("vaultExchange")}`, o = R(), j && j.c(), a = R(), s = T("div"), l = T("div"), u = T("p"), u.textContent = `${M("exchangeFrom")}`, h = R(), f = T("div"), c = T("input"), _ = R(), bt(g.$$.fragment), N = R(), b.c(), C = R(), D = T("div"), K = T("p"), K.textContent = `${M("exchangeTo")}`, $ = R(), ue = T("div"), k = T("input"), ge = R(), bt(ie.$$.fragment), ye = R(), Z.c(), Ce = R(), Y && Y.c(), Ve = R(), ve = T("div"), oe = T("span"), oe.textContent = `${M("feesIncluded")}`, xt = R(), Ge = T("span"), p.c(), wt = R(), ce = T("div"), st = R(), fe = T("div"), he = T("button"), he.textContent = `${M("reset")}`, Se = R(), ee = T("button"), je = z(At), v(i, "class", "headerTitle"), v(r, "class", "headerContainer"), v(u, "class", "exchangeHeader"), v(c, "id", "senderInput"), c.disabled = m = !/*session*/
|
|
5857
5857
|
e[0] || !/*isBalanceFetched*/
|
|
5858
5858
|
e[17] || !/*isCurrenciesFetched*/
|
|
5859
5859
|
e[18], v(c, "placeholder", M("debitPlaceHolder")), v(c, "class", "exchangeInput"), v(c, "type", "number"), v(c, "aria-label", "Enter exchange amount"), v(c, "inputmode", "decimal"), v(c, "step", "0.000000000000001"), v(c, "min", "0"), v(f, "class", "flexingContainerRow"), v(l, "class", "containerExchangeFrom exchangeContainer"), v(K, "class", "exchangeHeader"), v(k, "id", "destinationInput"), k.disabled = Te = !/*session*/
|
|
@@ -5887,15 +5887,15 @@ function hs(e) {
|
|
|
5887
5887
|
), v(fe, "class", "actionsContainer"), v(t, "class", "playerAccountVault");
|
|
5888
5888
|
},
|
|
5889
5889
|
m(d, y) {
|
|
5890
|
-
P(d, t, y), Q && Q.m(t, null), x(t, n), x(t, r), x(r, i), x(r, o), j && j.m(r, null), x(t, a), x(t, s), x(s, l), x(l, u), x(l, h), x(l, f), x(f, c),
|
|
5890
|
+
P(d, t, y), Q && Q.m(t, null), x(t, n), x(t, r), x(r, i), x(r, o), j && j.m(r, null), x(t, a), x(t, s), x(s, l), x(l, u), x(l, h), x(l, f), x(f, c), It(
|
|
5891
5891
|
c,
|
|
5892
5892
|
/*inputExchangeFrom*/
|
|
5893
5893
|
e[9]
|
|
5894
|
-
), x(f, _), Ye(g, f, null), x(l, N), pe[E].m(l, null), x(s, C), x(s, D), x(D, K), x(D, $), x(D, ue), x(ue, k),
|
|
5894
|
+
), x(f, _), Ye(g, f, null), x(l, N), pe[E].m(l, null), x(s, C), x(s, D), x(D, K), x(D, $), x(D, ue), x(ue, k), It(
|
|
5895
5895
|
k,
|
|
5896
5896
|
/*inputExchangeTo*/
|
|
5897
5897
|
e[10]
|
|
5898
|
-
), x(ue, ge), Ye(ie, ue, null), x(D, ye), de[q].m(D, null), x(t, Ce), Y && Y.m(t, null), x(t, Ve), x(t, ve), x(ve, oe), x(ve,
|
|
5898
|
+
), x(ue, ge), Ye(ie, ue, null), x(D, ye), de[q].m(D, null), x(t, Ce), Y && Y.m(t, null), x(t, Ve), x(t, ve), x(ve, oe), x(ve, xt), x(ve, Ge), p.m(Ge, null), x(t, wt), x(t, ce), ce.innerHTML = $e, x(t, st), x(t, fe), x(fe, he), x(fe, Se), x(fe, ee), x(ee, je), e[45](t), W = !0, lt || (De = [
|
|
5899
5899
|
ne(
|
|
5900
5900
|
c,
|
|
5901
5901
|
"input",
|
|
@@ -5943,17 +5943,17 @@ function hs(e) {
|
|
|
5943
5943
|
p(d, y) {
|
|
5944
5944
|
var ht, S, Pe, He;
|
|
5945
5945
|
/*showclosebutton*/
|
|
5946
|
-
d[3] === le.true ? Q ? Q.p(d, y) : (Q =
|
|
5946
|
+
d[3] === le.true ? Q ? Q.p(d, y) : (Q = Er(d), Q.c(), Q.m(t, n)) : Q && (Q.d(1), Q = null), /*showtotalbalance*/
|
|
5947
5947
|
d[2] === le.true ? j ? (j.p(d, y), y[0] & /*showtotalbalance*/
|
|
5948
|
-
4 && G(j, 1)) : (j =
|
|
5948
|
+
4 && G(j, 1)) : (j = xr(d), j.c(), G(j, 1), j.m(r, null)) : j && (ke(), X(j, 1, 1, () => {
|
|
5949
5949
|
j = null;
|
|
5950
5950
|
}), Fe()), (!W || y[0] & /*session, isBalanceFetched, isCurrenciesFetched*/
|
|
5951
5951
|
393217 && m !== (m = !/*session*/
|
|
5952
5952
|
d[0] || !/*isBalanceFetched*/
|
|
5953
5953
|
d[17] || !/*isCurrenciesFetched*/
|
|
5954
5954
|
d[18])) && (c.disabled = m), y[0] & /*inputExchangeFrom*/
|
|
5955
|
-
512 &&
|
|
5956
|
-
d[9] &&
|
|
5955
|
+
512 && Vt(c.value) !== /*inputExchangeFrom*/
|
|
5956
|
+
d[9] && It(
|
|
5957
5957
|
c,
|
|
5958
5958
|
/*inputExchangeFrom*/
|
|
5959
5959
|
d[9]
|
|
@@ -5970,15 +5970,15 @@ function hs(e) {
|
|
|
5970
5970
|
64 && (w = !0, O.selected = /*selectedCurrencyFrom*/
|
|
5971
5971
|
d[6], Gn(() => w = !1)), g.$set(O);
|
|
5972
5972
|
let Be = E;
|
|
5973
|
-
E =
|
|
5973
|
+
E = Ct(d), E === Be ? pe[E].p(d, y) : (ke(), X(pe[Be], 1, 1, () => {
|
|
5974
5974
|
pe[Be] = null;
|
|
5975
5975
|
}), Fe(), b = pe[E], b ? b.p(d, y) : (b = pe[E] = ut[E](d), b.c()), G(b, 1), b.m(l, null)), (!W || y[0] & /*session, isBalanceFetched, isCurrenciesFetched*/
|
|
5976
5976
|
393217 && Te !== (Te = !/*session*/
|
|
5977
5977
|
d[0] || !/*isBalanceFetched*/
|
|
5978
5978
|
d[17] || !/*isCurrenciesFetched*/
|
|
5979
5979
|
d[18])) && (k.disabled = Te), y[0] & /*inputExchangeTo*/
|
|
5980
|
-
1024 &&
|
|
5981
|
-
d[10] &&
|
|
5980
|
+
1024 && Vt(k.value) !== /*inputExchangeTo*/
|
|
5981
|
+
d[10] && It(
|
|
5982
5982
|
k,
|
|
5983
5983
|
/*inputExchangeTo*/
|
|
5984
5984
|
d[10]
|
|
@@ -5997,10 +5997,10 @@ function hs(e) {
|
|
|
5997
5997
|
128 && (be = !0, _e.selected = /*selectedCurrencyTo*/
|
|
5998
5998
|
d[7], Gn(() => be = !1)), ie.$set(_e);
|
|
5999
5999
|
let Ee = q;
|
|
6000
|
-
q =
|
|
6000
|
+
q = Bt(d), q === Ee ? de[q].p(d, y) : (ke(), X(de[Ee], 1, 1, () => {
|
|
6001
6001
|
de[Ee] = null;
|
|
6002
6002
|
}), Fe(), Z = de[q], Z ? Z.p(d, y) : (Z = de[q] = ct[q](d), Z.c()), G(Z, 1), Z.m(D, null)), /*showvaults*/
|
|
6003
|
-
d[1] === le.true ? Y ? Y.p(d, y) : (Y =
|
|
6003
|
+
d[1] === le.true ? Y ? Y.p(d, y) : (Y = wr(d), Y.c(), Y.m(t, Ve)) : Y && (Y.d(1), Y = null), Xe === (Xe = Pt(d)) && p ? p.p(d, y) : (p.d(1), p = Xe(d), p && (p.c(), p.m(Ge, null))), (!W || y[0] & /*fetchResponse*/
|
|
6004
6004
|
8192) && $e !== ($e = M(
|
|
6005
6005
|
/*fetchResponse*/
|
|
6006
6006
|
((ht = d[13]) == null ? void 0 : ht.message) || ""
|
|
@@ -6047,13 +6047,13 @@ function hs(e) {
|
|
|
6047
6047
|
}
|
|
6048
6048
|
};
|
|
6049
6049
|
}
|
|
6050
|
-
function
|
|
6050
|
+
function hs(e, t, n) {
|
|
6051
6051
|
let { session: r = "" } = t, { userid: i = "" } = t, { endpoint: o = "" } = t, { lang: a = "en" } = t, { clientstyling: s = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: u = "" } = t, { playercurrency: h = "" } = t, { showvaults: f = le.true } = t, { showtotalbalance: c = le.true } = t, { showclosebutton: m = le.true } = t, { showcurrencysymbol: _ = le.true } = t, { currencyposition: g = "" } = t, { currencydecimals: w = "2" } = t, { local: N = "en-US" } = t, E = null, b = null, C = 0, D = 0, K = 0, $ = null, ue = null, k = null, Te = "", ge = !0, ie = !1, be = !1, ye = !1, q = !1, Z = [], Ce = [], Ve = [], ve = [], oe;
|
|
6052
|
-
|
|
6052
|
+
va({ withLocale: "en", translations: {} }), Object.keys(ir).forEach((p) => {
|
|
6053
6053
|
rr(p, ir[p]);
|
|
6054
6054
|
});
|
|
6055
|
-
const
|
|
6056
|
-
|
|
6055
|
+
const xt = () => {
|
|
6056
|
+
_a(a);
|
|
6057
6057
|
}, Ge = () => {
|
|
6058
6058
|
fetch(u).then((p) => p.json()).then((p) => {
|
|
6059
6059
|
Object.keys(p).forEach((A) => {
|
|
@@ -6062,7 +6062,7 @@ function fs(e, t, n) {
|
|
|
6062
6062
|
}).catch((p) => {
|
|
6063
6063
|
console.error("There was a problem with the translations request.", p);
|
|
6064
6064
|
});
|
|
6065
|
-
},
|
|
6065
|
+
}, wt = () => {
|
|
6066
6066
|
let p = document.createElement("style");
|
|
6067
6067
|
p.innerHTML = s, oe.appendChild(p);
|
|
6068
6068
|
}, ce = () => {
|
|
@@ -6078,7 +6078,7 @@ function fs(e, t, n) {
|
|
|
6078
6078
|
}, $e = () => {
|
|
6079
6079
|
Ce.length !== 0 && (n(16, ie = !ie), window.postMessage(
|
|
6080
6080
|
{
|
|
6081
|
-
type:
|
|
6081
|
+
type: pn.VaultDropdownToggled,
|
|
6082
6082
|
state: ie
|
|
6083
6083
|
},
|
|
6084
6084
|
window.location.href
|
|
@@ -6086,19 +6086,19 @@ function fs(e, t, n) {
|
|
|
6086
6086
|
}, st = () => {
|
|
6087
6087
|
window.postMessage(
|
|
6088
6088
|
{
|
|
6089
|
-
type:
|
|
6089
|
+
type: pn.VaultWidgetClosed
|
|
6090
6090
|
},
|
|
6091
6091
|
window.location.href
|
|
6092
6092
|
);
|
|
6093
6093
|
}, fe = () => {
|
|
6094
|
-
n(15, ge = !0), Se(), ee(),
|
|
6094
|
+
n(15, ge = !0), Se(), ee(), At(), je(), window.postMessage({ type: pn.VaultWidgetReset }, window.location.href);
|
|
6095
6095
|
}, he = () => {
|
|
6096
6096
|
n(15, ge = !0), n(10, K = 0);
|
|
6097
6097
|
}, Se = () => {
|
|
6098
6098
|
n(12, ue = null);
|
|
6099
6099
|
}, ee = () => {
|
|
6100
6100
|
n(9, C = 0), n(10, K = 0);
|
|
6101
|
-
},
|
|
6101
|
+
}, At = () => {
|
|
6102
6102
|
n(14, Te = "");
|
|
6103
6103
|
}, je = () => {
|
|
6104
6104
|
n(13, k = null);
|
|
@@ -6115,14 +6115,14 @@ function fs(e, t, n) {
|
|
|
6115
6115
|
() => {
|
|
6116
6116
|
je();
|
|
6117
6117
|
},
|
|
6118
|
-
|
|
6118
|
+
Fa
|
|
6119
6119
|
);
|
|
6120
6120
|
break;
|
|
6121
6121
|
}
|
|
6122
6122
|
}, lt = () => new Promise((p, A) => {
|
|
6123
|
-
const d = k == null ? void 0 : k.message.includes(
|
|
6124
|
-
d && A(), isNaN(Number(C)) && (he(), Se(), A(M("invalidValue"))), C > (E == null ? void 0 : E.amount) && (he(), Se(), A(M("exceededValue"))), C === null && !d && (he(), Se(), A()), C === 0 && C === 0 && !d && (fe(), A()), (!E || !b) && !d && A(),
|
|
6125
|
-
}), De = (p, A) =>
|
|
6123
|
+
const d = k == null ? void 0 : k.message.includes(Ua.InvalidSession);
|
|
6124
|
+
d && A(), isNaN(Number(C)) && (he(), Se(), A(M("invalidValue"))), C > (E == null ? void 0 : E.amount) && (he(), Se(), A(M("exceededValue"))), C === null && !d && (he(), Se(), A()), C === 0 && C === 0 && !d && (fe(), A()), (!E || !b) && !d && A(), At(), p();
|
|
6125
|
+
}), De = (p, A) => Ht(this, null, function* () {
|
|
6126
6126
|
var y, O;
|
|
6127
6127
|
const d = yield p.json();
|
|
6128
6128
|
return (p == null ? void 0 : p.status) >= 200 && (p == null ? void 0 : p.status) < 400 ? d : (A === J.CheckWalletExchangeError && he(), !be && A === J.BalanceError && (n(17, be = !0), n(18, ye = !0)), !ye && A === J.CurrenciesError && n(18, ye = !0), W({
|
|
@@ -6157,16 +6157,16 @@ function fs(e, t, n) {
|
|
|
6157
6157
|
let _e = null;
|
|
6158
6158
|
const Ee = new Map(d.map((S) => [S.code, S]));
|
|
6159
6159
|
for (const S of y)
|
|
6160
|
-
if ((S == null ? void 0 : S.type) ===
|
|
6160
|
+
if ((S == null ? void 0 : S.type) === dr.Real) {
|
|
6161
6161
|
const Pe = Ee.get(S == null ? void 0 : S.currency);
|
|
6162
6162
|
if (Pe && Pe.code === (S == null ? void 0 : S.currency)) {
|
|
6163
|
-
const He =
|
|
6164
|
-
symbol: ((ht =
|
|
6163
|
+
const He = rn(Ie(Ie({}, S), Pe), {
|
|
6164
|
+
symbol: ((ht = Da[S == null ? void 0 : S.currency]) == null ? void 0 : ht[0]) || (S == null ? void 0 : S.currency[0])
|
|
6165
6165
|
});
|
|
6166
|
-
n(40, Z = [...Z, He]), (S == null ? void 0 : S.currency) === ($ == null ? void 0 : $.currency) && n(11, $ = Ie(Ie({}, $), He)), (S == null ? void 0 : S.currency) !== ($ == null ? void 0 : $.currency) && (S == null ? void 0 : S.walletAccountType) ===
|
|
6166
|
+
n(40, Z = [...Z, He]), (S == null ? void 0 : S.currency) === ($ == null ? void 0 : $.currency) && n(11, $ = Ie(Ie({}, $), He)), (S == null ? void 0 : S.currency) !== ($ == null ? void 0 : $.currency) && (S == null ? void 0 : S.walletAccountType) === dr.Vault && n(20, Ce = [...Ce, He]), A && (S == null ? void 0 : S.amount) > 0 && n(6, E = $ != null && $.currency ? $ : _e), E && (E == null ? void 0 : E.currency) === (S == null ? void 0 : S.currency) && n(6, E = He), b && (b == null ? void 0 : b.currency) === (S == null ? void 0 : S.currency) && n(7, b = He);
|
|
6167
6167
|
}
|
|
6168
6168
|
}
|
|
6169
|
-
},
|
|
6169
|
+
}, Tt = (p = !0) => {
|
|
6170
6170
|
const A = new URL(`${o}/v2/player/${i}/balance`);
|
|
6171
6171
|
fetch(A, {
|
|
6172
6172
|
method: "GET",
|
|
@@ -6192,7 +6192,7 @@ function fs(e, t, n) {
|
|
|
6192
6192
|
}).finally(() => {
|
|
6193
6193
|
n(17, be = !0);
|
|
6194
6194
|
});
|
|
6195
|
-
}, ut =
|
|
6195
|
+
}, ut = Ma(() => {
|
|
6196
6196
|
lt().then(() => {
|
|
6197
6197
|
const p = new URL(`${o}/v2/player/${i}/check/wallet-exchange`), A = {
|
|
6198
6198
|
userId: i,
|
|
@@ -6208,14 +6208,14 @@ function fs(e, t, n) {
|
|
|
6208
6208
|
"Content-Type": "application/json",
|
|
6209
6209
|
Accept: "application/json"
|
|
6210
6210
|
},
|
|
6211
|
-
body:
|
|
6211
|
+
body: fr(A)
|
|
6212
6212
|
};
|
|
6213
6213
|
fetch(p, d).then((y) => De(y, J.CheckWalletExchangeError)).then((y) => {
|
|
6214
6214
|
var O, Be;
|
|
6215
6215
|
if (y) {
|
|
6216
6216
|
if ((k == null ? void 0 : k.source) === J.CheckWalletExchangeError && je(), Array.isArray((O = y == null ? void 0 : y.fees) == null ? void 0 : O.fees) && n(12, ue = y.fees), Array.isArray(y == null ? void 0 : y.walletActions)) {
|
|
6217
|
-
const _e = ((Be = y.walletActions.find((Ee) => (Ee == null ? void 0 : Ee.directionName) ===
|
|
6218
|
-
n(10, K =
|
|
6217
|
+
const _e = ((Be = y.walletActions.find((Ee) => (Ee == null ? void 0 : Ee.directionName) === Va.Credit)) == null ? void 0 : Be.amount) || 0;
|
|
6218
|
+
n(10, K = ka(_e));
|
|
6219
6219
|
}
|
|
6220
6220
|
C > 0 && K > 0 && (E != null && E.currency) && (b != null && b.currency) && h && n(15, ge = !1);
|
|
6221
6221
|
}
|
|
@@ -6233,13 +6233,13 @@ function fs(e, t, n) {
|
|
|
6233
6233
|
const A = p.target.value, [d, y] = A.split(".");
|
|
6234
6234
|
!y && A.length >= xe && n(9, C = A.slice(0, xe));
|
|
6235
6235
|
const O = Number((E == null ? void 0 : E.precision) || "2");
|
|
6236
|
-
y && (E == null ? void 0 : E.type) ===
|
|
6237
|
-
},
|
|
6236
|
+
y && (E == null ? void 0 : E.type) === mr.Fiat && (y.length <= O ? (n(9, C = A), D = A) : n(9, C = D)), y && (E == null ? void 0 : E.type) === mr.CryptoCurrency && (O <= xe && y.length <= O ? (n(9, C = A), D = A) : n(9, C = D), O > xe && y.length <= xe ? (n(9, C = A), D = A) : n(9, C = D)), ut();
|
|
6237
|
+
}, Ct = (p) => {
|
|
6238
6238
|
const A = p.data;
|
|
6239
6239
|
[">", "<", ","].includes(A) && p.preventDefault(), A && !A.match(/[\d.]/) && p.preventDefault(), A === "." && p.target.value.includes(".") && p.preventDefault();
|
|
6240
|
-
},
|
|
6240
|
+
}, tn = () => {
|
|
6241
6241
|
C === 0 && n(9, C = null);
|
|
6242
|
-
},
|
|
6242
|
+
}, St = () => {
|
|
6243
6243
|
const p = new URL(`${o}/v2/player/${i}/wallet-exchange`);
|
|
6244
6244
|
n(19, q = !0);
|
|
6245
6245
|
const A = {
|
|
@@ -6257,14 +6257,14 @@ function fs(e, t, n) {
|
|
|
6257
6257
|
"Content-Type": "application/json",
|
|
6258
6258
|
Accept: "application/json"
|
|
6259
6259
|
},
|
|
6260
|
-
body:
|
|
6260
|
+
body: fr(A)
|
|
6261
6261
|
};
|
|
6262
6262
|
fetch(p, d).then((y) => De(y, J.WalletExchangeError)).then((y) => {
|
|
6263
6263
|
y && (W({
|
|
6264
6264
|
type: Oe.success,
|
|
6265
6265
|
message: M("exchangeSuccess"),
|
|
6266
6266
|
source: "ExchangeSuccess"
|
|
6267
|
-
}),
|
|
6267
|
+
}), Tt(!1));
|
|
6268
6268
|
}).catch((y) => {
|
|
6269
6269
|
W({
|
|
6270
6270
|
type: Oe.error,
|
|
@@ -6277,27 +6277,27 @@ function fs(e, t, n) {
|
|
|
6277
6277
|
}, ct = (p) => {
|
|
6278
6278
|
const { data: { type: A } = {} } = p || {};
|
|
6279
6279
|
switch (A) {
|
|
6280
|
-
case
|
|
6280
|
+
case pr.ResetVaultWidget:
|
|
6281
6281
|
fe();
|
|
6282
6282
|
break;
|
|
6283
|
-
case
|
|
6283
|
+
case pr.CloseVaultWidget:
|
|
6284
6284
|
st();
|
|
6285
6285
|
break;
|
|
6286
6286
|
}
|
|
6287
6287
|
};
|
|
6288
|
-
|
|
6288
|
+
Pr(() => (Ra(N, _, g, w), window.addEventListener("message", ct), () => {
|
|
6289
6289
|
window.removeEventListener("message", ct);
|
|
6290
6290
|
}));
|
|
6291
6291
|
function de() {
|
|
6292
|
-
C =
|
|
6292
|
+
C = Vt(this.value), n(9, C);
|
|
6293
6293
|
}
|
|
6294
|
-
function
|
|
6294
|
+
function Bt(p) {
|
|
6295
6295
|
E = p, n(6, E);
|
|
6296
6296
|
}
|
|
6297
6297
|
function Y() {
|
|
6298
|
-
K =
|
|
6298
|
+
K = Vt(this.value), n(10, K);
|
|
6299
6299
|
}
|
|
6300
|
-
function
|
|
6300
|
+
function Pt(p) {
|
|
6301
6301
|
b = p, n(7, b);
|
|
6302
6302
|
}
|
|
6303
6303
|
function Xe(p) {
|
|
@@ -6309,14 +6309,14 @@ function fs(e, t, n) {
|
|
|
6309
6309
|
"session" in p && n(0, r = p.session), "userid" in p && n(31, i = p.userid), "endpoint" in p && n(32, o = p.endpoint), "lang" in p && n(33, a = p.lang), "clientstyling" in p && n(34, s = p.clientstyling), "clientstylingurl" in p && n(35, l = p.clientstylingurl), "translationurl" in p && n(36, u = p.translationurl), "playercurrency" in p && n(37, h = p.playercurrency), "showvaults" in p && n(1, f = p.showvaults), "showtotalbalance" in p && n(2, c = p.showtotalbalance), "showclosebutton" in p && n(3, m = p.showclosebutton), "showcurrencysymbol" in p && n(4, _ = p.showcurrencysymbol), "currencyposition" in p && n(38, g = p.currencyposition), "currencydecimals" in p && n(5, w = p.currencydecimals), "local" in p && n(39, N = p.local);
|
|
6310
6310
|
}, e.$$.update = () => {
|
|
6311
6311
|
e.$$.dirty[1] & /*lang*/
|
|
6312
|
-
4 && a &&
|
|
6312
|
+
4 && a && xt(), e.$$.dirty[0] & /*customStylingContainer*/
|
|
6313
6313
|
256 | e.$$.dirty[1] & /*clientstyling*/
|
|
6314
|
-
8 && s && oe &&
|
|
6314
|
+
8 && s && oe && wt(), e.$$.dirty[0] & /*customStylingContainer*/
|
|
6315
6315
|
256 | e.$$.dirty[1] & /*clientstylingurl*/
|
|
6316
6316
|
16 && l && oe && ce(), e.$$.dirty[1] & /*translationurl*/
|
|
6317
6317
|
32 && u && Ge(), e.$$.dirty[0] & /*session*/
|
|
6318
6318
|
1 | e.$$.dirty[1] & /*userid, endpoint, playercurrency*/
|
|
6319
|
-
67 && r && i && o && h &&
|
|
6319
|
+
67 && r && i && o && h && Tt(), e.$$.dirty[0] & /*selectedCurrencyTo*/
|
|
6320
6320
|
128 | e.$$.dirty[1] & /*filteredBalances*/
|
|
6321
6321
|
512 && n(21, Ve = Z.filter((p) => (p == null ? void 0 : p.amount) > 0 && (p == null ? void 0 : p.currency) !== (b == null ? void 0 : b.currency))), e.$$.dirty[0] & /*selectedCurrencyFrom*/
|
|
6322
6322
|
64 | e.$$.dirty[1] & /*filteredBalances*/
|
|
@@ -6350,9 +6350,9 @@ function fs(e, t, n) {
|
|
|
6350
6350
|
fe,
|
|
6351
6351
|
ut,
|
|
6352
6352
|
pe,
|
|
6353
|
-
|
|
6354
|
-
|
|
6355
|
-
|
|
6353
|
+
Ct,
|
|
6354
|
+
tn,
|
|
6355
|
+
St,
|
|
6356
6356
|
i,
|
|
6357
6357
|
o,
|
|
6358
6358
|
a,
|
|
@@ -6364,20 +6364,20 @@ function fs(e, t, n) {
|
|
|
6364
6364
|
N,
|
|
6365
6365
|
Z,
|
|
6366
6366
|
de,
|
|
6367
|
-
|
|
6367
|
+
Bt,
|
|
6368
6368
|
Y,
|
|
6369
|
-
|
|
6369
|
+
Pt,
|
|
6370
6370
|
Xe
|
|
6371
6371
|
];
|
|
6372
6372
|
}
|
|
6373
|
-
class
|
|
6373
|
+
class fs extends Dn {
|
|
6374
6374
|
constructor(t) {
|
|
6375
6375
|
super(), Nn(
|
|
6376
6376
|
this,
|
|
6377
6377
|
t,
|
|
6378
|
-
fs,
|
|
6379
6378
|
hs,
|
|
6380
|
-
|
|
6379
|
+
cs,
|
|
6380
|
+
Xt,
|
|
6381
6381
|
{
|
|
6382
6382
|
session: 0,
|
|
6383
6383
|
userid: 31,
|
|
@@ -6395,7 +6395,7 @@ class ps extends Dn {
|
|
|
6395
6395
|
currencydecimals: 5,
|
|
6396
6396
|
local: 39
|
|
6397
6397
|
},
|
|
6398
|
-
|
|
6398
|
+
Ka,
|
|
6399
6399
|
[-1, -1, -1]
|
|
6400
6400
|
);
|
|
6401
6401
|
}
|
|
@@ -6490,7 +6490,7 @@ class ps extends Dn {
|
|
|
6490
6490
|
this.$$set({ local: t }), F();
|
|
6491
6491
|
}
|
|
6492
6492
|
}
|
|
6493
|
-
Rn(
|
|
6493
|
+
Rn(fs, { session: {}, userid: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, playercurrency: {}, showvaults: {}, showtotalbalance: {}, showclosebutton: {}, showcurrencysymbol: {}, currencyposition: {}, currencydecimals: {}, local: {} }, [], [], !0);
|
|
6494
6494
|
export {
|
|
6495
|
-
|
|
6495
|
+
fs as default
|
|
6496
6496
|
};
|