@everymatrix/player-account-vault 0.19.8 → 0.19.9

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.
@@ -1,50 +1,50 @@
1
- function B() {
1
+ function S() {
2
2
  }
3
- function $n(e) {
3
+ function Gn(e) {
4
4
  return e();
5
5
  }
6
6
  function hn() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
- function _e(e) {
10
- e.forEach($n);
9
+ function ve(e) {
10
+ e.forEach(Gn);
11
11
  }
12
- function lt(e) {
12
+ function at(e) {
13
13
  return typeof e == "function";
14
14
  }
15
- function St(e, t) {
15
+ function Ct(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
- function yr(e) {
18
+ function gr(e) {
19
19
  return Object.keys(e).length === 0;
20
20
  }
21
- function jn(e, ...t) {
21
+ function $n(e, ...t) {
22
22
  if (e == null) {
23
23
  for (const r of t)
24
24
  r(void 0);
25
- return B;
25
+ return S;
26
26
  }
27
27
  const n = e.subscribe(...t);
28
28
  return n.unsubscribe ? () => n.unsubscribe() : n;
29
29
  }
30
- function vr(e) {
30
+ function br(e) {
31
31
  let t;
32
- return jn(e, (n) => t = n)(), t;
32
+ return $n(e, (n) => t = n)(), t;
33
33
  }
34
- function _r(e) {
35
- return e && lt(e.destroy) ? e.destroy : B;
34
+ function yr(e) {
35
+ return e && at(e.destroy) ? e.destroy : S;
36
36
  }
37
37
  function y(e, t) {
38
38
  e.appendChild(t);
39
39
  }
40
40
  function an(e, t, n) {
41
- const r = Er(e);
41
+ const r = vr(e);
42
42
  if (!r.getElementById(t)) {
43
- const i = x("style");
44
- i.id = t, i.textContent = n, xr(r, i);
43
+ const i = E("style");
44
+ i.id = t, i.textContent = n, _r(r, i);
45
45
  }
46
46
  }
47
- function Er(e) {
47
+ function vr(e) {
48
48
  if (!e)
49
49
  return document;
50
50
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -54,42 +54,42 @@ function Er(e) {
54
54
  t
55
55
  ) : e.ownerDocument;
56
56
  }
57
- function xr(e, t) {
57
+ function _r(e, t) {
58
58
  return y(
59
59
  /** @type {Document} */
60
60
  e.head || e,
61
61
  t
62
62
  ), t.sheet;
63
63
  }
64
- function C(e, t, n) {
64
+ function T(e, t, n) {
65
65
  e.insertBefore(t, n || null);
66
66
  }
67
- function A(e) {
67
+ function C(e) {
68
68
  e.parentNode && e.parentNode.removeChild(e);
69
69
  }
70
- function Xn(e, t) {
70
+ function jn(e, t) {
71
71
  for (let n = 0; n < e.length; n += 1)
72
72
  e[n] && e[n].d(t);
73
73
  }
74
- function x(e) {
74
+ function E(e) {
75
75
  return document.createElement(e);
76
76
  }
77
77
  function fn(e) {
78
78
  return document.createElementNS("http://www.w3.org/2000/svg", e);
79
79
  }
80
- function W(e) {
80
+ function z(e) {
81
81
  return document.createTextNode(e);
82
82
  }
83
- function P() {
84
- return W(" ");
83
+ function I() {
84
+ return z(" ");
85
85
  }
86
- function Wn() {
87
- return W("");
86
+ function Er() {
87
+ return z("");
88
88
  }
89
- function re(e, t, n, r) {
89
+ function ie(e, t, n, r) {
90
90
  return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
91
91
  }
92
- function wr(e) {
92
+ function xr(e) {
93
93
  return function(t) {
94
94
  return t.stopPropagation(), e.call(this, t);
95
95
  };
@@ -97,23 +97,23 @@ function wr(e) {
97
97
  function m(e, t, n) {
98
98
  n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
99
99
  }
100
- function wt(e) {
100
+ function _t(e) {
101
101
  return e === "" ? null : +e;
102
102
  }
103
- function Ar(e) {
103
+ function wr(e) {
104
104
  return Array.from(e.childNodes);
105
105
  }
106
- function ee(e, t) {
106
+ function te(e, t) {
107
107
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
108
108
  t);
109
109
  }
110
- function gt(e, t) {
110
+ function dt(e, t) {
111
111
  e.value = t ?? "";
112
112
  }
113
- function oe(e, t, n) {
113
+ function le(e, t, n) {
114
114
  e.classList.toggle(t, !!n);
115
115
  }
116
- function Cr(e) {
116
+ function Ar(e) {
117
117
  const t = {};
118
118
  return e.childNodes.forEach(
119
119
  /** @param {Element} node */
@@ -122,128 +122,128 @@ function Cr(e) {
122
122
  }
123
123
  ), t;
124
124
  }
125
- let it;
126
- function rt(e) {
127
- it = e;
125
+ let tt;
126
+ function et(e) {
127
+ tt = e;
128
128
  }
129
- function Tr() {
130
- if (!it)
129
+ function Cr() {
130
+ if (!tt)
131
131
  throw new Error("Function called outside component initialization");
132
- return it;
132
+ return tt;
133
133
  }
134
- function Br(e) {
135
- Tr().$$.on_mount.push(e);
134
+ function Tr(e) {
135
+ Cr().$$.on_mount.push(e);
136
136
  }
137
- const Ue = [], Ge = [];
138
- let Ve = [];
139
- const Xt = [], Sr = /* @__PURE__ */ Promise.resolve();
137
+ const De = [], Fe = [];
138
+ let Me = [];
139
+ const Xt = [], Br = /* @__PURE__ */ Promise.resolve();
140
140
  let Wt = !1;
141
- function Hr() {
142
- Wt || (Wt = !0, Sr.then(j));
141
+ function Sr() {
142
+ Wt || (Wt = !0, Br.then(G));
143
143
  }
144
144
  function zt(e) {
145
- Ve.push(e);
145
+ Me.push(e);
146
146
  }
147
147
  function dn(e) {
148
148
  Xt.push(e);
149
149
  }
150
150
  const Dt = /* @__PURE__ */ new Set();
151
- let Me = 0;
152
- function j() {
153
- if (Me !== 0)
151
+ let Re = 0;
152
+ function G() {
153
+ if (Re !== 0)
154
154
  return;
155
- const e = it;
155
+ const e = tt;
156
156
  do {
157
157
  try {
158
- for (; Me < Ue.length; ) {
159
- const t = Ue[Me];
160
- Me++, rt(t), Pr(t.$$);
158
+ for (; Re < De.length; ) {
159
+ const t = De[Re];
160
+ Re++, et(t), Hr(t.$$);
161
161
  }
162
162
  } catch (t) {
163
- throw Ue.length = 0, Me = 0, t;
163
+ throw De.length = 0, Re = 0, t;
164
164
  }
165
- for (rt(null), Ue.length = 0, Me = 0; Ge.length; )
166
- Ge.pop()();
167
- for (let t = 0; t < Ve.length; t += 1) {
168
- const n = Ve[t];
165
+ for (et(null), De.length = 0, Re = 0; Fe.length; )
166
+ Fe.pop()();
167
+ for (let t = 0; t < Me.length; t += 1) {
168
+ const n = Me[t];
169
169
  Dt.has(n) || (Dt.add(n), n());
170
170
  }
171
- Ve.length = 0;
172
- } while (Ue.length);
171
+ Me.length = 0;
172
+ } while (De.length);
173
173
  for (; Xt.length; )
174
174
  Xt.pop()();
175
- Wt = !1, Dt.clear(), rt(e);
175
+ Wt = !1, Dt.clear(), et(e);
176
176
  }
177
- function Pr(e) {
177
+ function Hr(e) {
178
178
  if (e.fragment !== null) {
179
- e.update(), _e(e.before_update);
179
+ e.update(), ve(e.before_update);
180
180
  const t = e.dirty;
181
181
  e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(zt);
182
182
  }
183
183
  }
184
- function Ir(e) {
184
+ function Pr(e) {
185
185
  const t = [], n = [];
186
- Ve.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Ve = t;
186
+ Me.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Me = t;
187
187
  }
188
- const vt = /* @__PURE__ */ new Set();
189
- let Le;
188
+ const gt = /* @__PURE__ */ new Set();
189
+ let Te;
190
190
  function Be() {
191
- Le = {
191
+ Te = {
192
192
  r: 0,
193
193
  c: [],
194
- p: Le
194
+ p: Te
195
195
  // parent group
196
196
  };
197
197
  }
198
198
  function Se() {
199
- Le.r || _e(Le.c), Le = Le.p;
199
+ Te.r || ve(Te.c), Te = Te.p;
200
200
  }
201
- function M(e, t) {
202
- e && e.i && (vt.delete(e), e.i(t));
201
+ function U(e, t) {
202
+ e && e.i && (gt.delete(e), e.i(t));
203
203
  }
204
- function G(e, t, n, r) {
204
+ function W(e, t, n, r) {
205
205
  if (e && e.o) {
206
- if (vt.has(e))
206
+ if (gt.has(e))
207
207
  return;
208
- vt.add(e), Le.c.push(() => {
209
- vt.delete(e), r && (n && e.d(1), r());
208
+ gt.add(e), Te.c.push(() => {
209
+ gt.delete(e), r && (n && e.d(1), r());
210
210
  }), e.o(t);
211
211
  } else
212
212
  r && r();
213
213
  }
214
- function At(e) {
214
+ function Et(e) {
215
215
  return e?.length !== void 0 ? e : Array.from(e);
216
216
  }
217
217
  function pn(e, t, n) {
218
218
  const r = e.$$.props[t];
219
219
  r !== void 0 && (e.$$.bound[r] = n, n(e.$$.ctx[r]));
220
220
  }
221
- function at(e) {
221
+ function nt(e) {
222
222
  e && e.c();
223
223
  }
224
- function $e(e, t, n) {
224
+ function Ue(e, t, n) {
225
225
  const { fragment: r, after_update: i } = e.$$;
226
226
  r && r.m(t, n), zt(() => {
227
- const a = e.$$.on_mount.map($n).filter(lt);
228
- e.$$.on_destroy ? e.$$.on_destroy.push(...a) : _e(a), e.$$.on_mount = [];
227
+ const a = e.$$.on_mount.map(Gn).filter(at);
228
+ e.$$.on_destroy ? e.$$.on_destroy.push(...a) : ve(a), e.$$.on_mount = [];
229
229
  }), i.forEach(zt);
230
230
  }
231
- function je(e, t) {
231
+ function Ve(e, t) {
232
232
  const n = e.$$;
233
- n.fragment !== null && (Ir(n.after_update), _e(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
233
+ n.fragment !== null && (Pr(n.after_update), ve(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
234
234
  }
235
- function Lr(e, t) {
236
- e.$$.dirty[0] === -1 && (Ue.push(e), Hr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
235
+ function Ir(e, t) {
236
+ e.$$.dirty[0] === -1 && (De.push(e), Sr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
237
237
  }
238
238
  function on(e, t, n, r, i, a, o = null, u = [-1]) {
239
- const s = it;
240
- rt(e);
239
+ const s = tt;
240
+ et(e);
241
241
  const l = e.$$ = {
242
242
  fragment: null,
243
243
  ctx: [],
244
244
  // state
245
245
  props: a,
246
- update: B,
246
+ update: S,
247
247
  not_equal: i,
248
248
  bound: hn(),
249
249
  // lifecycle
@@ -261,21 +261,21 @@ function on(e, t, n, r, i, a, o = null, u = [-1]) {
261
261
  };
262
262
  o && o(l.root);
263
263
  let c = !1;
264
- if (l.ctx = n ? n(e, t.props || {}, (f, h, ...d) => {
265
- const v = d.length ? d[0] : h;
266
- return l.ctx && i(l.ctx[f], l.ctx[f] = v) && (!l.skip_bound && l.bound[f] && l.bound[f](v), c && Lr(e, f)), h;
267
- }) : [], l.update(), c = !0, _e(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
264
+ if (l.ctx = n ? n(e, t.props || {}, (d, h, ...p) => {
265
+ const v = p.length ? p[0] : h;
266
+ return l.ctx && i(l.ctx[d], l.ctx[d] = v) && (!l.skip_bound && l.bound[d] && l.bound[d](v), c && Ir(e, d)), h;
267
+ }) : [], l.update(), c = !0, ve(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
268
268
  if (t.hydrate) {
269
- const f = Ar(t.target);
270
- l.fragment && l.fragment.l(f), f.forEach(A);
269
+ const d = wr(t.target);
270
+ l.fragment && l.fragment.l(d), d.forEach(C);
271
271
  } else
272
272
  l.fragment && l.fragment.c();
273
- t.intro && M(e.$$.fragment), $e(e, t.target, t.anchor), j();
273
+ t.intro && U(e.$$.fragment), Ue(e, t.target, t.anchor), G();
274
274
  }
275
- rt(s);
275
+ et(s);
276
276
  }
277
- let zn;
278
- typeof HTMLElement == "function" && (zn = class extends HTMLElement {
277
+ let Xn;
278
+ typeof HTMLElement == "function" && (Xn = class extends HTMLElement {
279
279
  /** The Svelte component constructor */
280
280
  $$ctor;
281
281
  /** Slots */
@@ -317,29 +317,29 @@ typeof HTMLElement == "function" && (zn = class extends HTMLElement {
317
317
  let a;
318
318
  return {
319
319
  c: function() {
320
- a = x("slot"), i !== "default" && m(a, "name", i);
320
+ a = E("slot"), i !== "default" && m(a, "name", i);
321
321
  },
322
322
  /**
323
323
  * @param {HTMLElement} target
324
324
  * @param {HTMLElement} [anchor]
325
325
  */
326
326
  m: function(s, l) {
327
- C(s, a, l);
327
+ T(s, a, l);
328
328
  },
329
329
  d: function(s) {
330
- s && A(a);
330
+ s && C(a);
331
331
  }
332
332
  };
333
333
  };
334
334
  };
335
335
  if (await Promise.resolve(), !this.$$cn || this.$$c)
336
336
  return;
337
- const t = {}, n = Cr(this);
337
+ const t = {}, n = Ar(this);
338
338
  for (const i of this.$$s)
339
339
  i in n && (t[i] = [e(i)]);
340
340
  for (const i of this.attributes) {
341
341
  const a = this.$$g_p(i.name);
342
- a in this.$$d || (this.$$d[a] = _t(a, i.value, this.$$p_d, "toProp"));
342
+ a in this.$$d || (this.$$d[a] = bt(a, i.value, this.$$p_d, "toProp"));
343
343
  }
344
344
  for (const i in this.$$p_d)
345
345
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -357,7 +357,7 @@ typeof HTMLElement == "function" && (zn = class extends HTMLElement {
357
357
  this.$$r = !0;
358
358
  for (const i in this.$$p_d)
359
359
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
360
- const a = _t(
360
+ const a = bt(
361
361
  i,
362
362
  this.$$d[i],
363
363
  this.$$p_d,
@@ -379,7 +379,7 @@ typeof HTMLElement == "function" && (zn = class extends HTMLElement {
379
379
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
380
380
  // and setting attributes through setAttribute etc, this is helpful
381
381
  attributeChangedCallback(e, t, n) {
382
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = _t(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
382
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = bt(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
383
383
  }
384
384
  disconnectedCallback() {
385
385
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -392,7 +392,7 @@ typeof HTMLElement == "function" && (zn = class extends HTMLElement {
392
392
  ) || e;
393
393
  }
394
394
  });
395
- function _t(e, t, n, r) {
395
+ function bt(e, t, n, r) {
396
396
  const i = n[e]?.type;
397
397
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
398
398
  return t;
@@ -422,7 +422,7 @@ function _t(e, t, n, r) {
422
422
  }
423
423
  }
424
424
  function sn(e, t, n, r, i, a) {
425
- let o = class extends zn {
425
+ let o = class extends Xn {
426
426
  constructor() {
427
427
  super(e, n, i), this.$$p_d = t;
428
428
  }
@@ -438,7 +438,7 @@ function sn(e, t, n, r, i, a) {
438
438
  return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
439
439
  },
440
440
  set(s) {
441
- s = _t(u, s, t), this.$$d[u] = s, this.$$c?.$set({ [u]: s });
441
+ s = bt(u, s, t), this.$$d[u] = s, this.$$c?.$set({ [u]: s });
442
442
  }
443
443
  });
444
444
  }), r.forEach((u) => {
@@ -469,7 +469,7 @@ class ln {
469
469
  $$set = void 0;
470
470
  /** @returns {void} */
471
471
  $destroy() {
472
- je(this, 1), this.$destroy = B;
472
+ Ve(this, 1), this.$destroy = S;
473
473
  }
474
474
  /**
475
475
  * @template {Extract<keyof Events, string>} K
@@ -478,8 +478,8 @@ class ln {
478
478
  * @returns {() => void}
479
479
  */
480
480
  $on(t, n) {
481
- if (!lt(n))
482
- return B;
481
+ if (!at(n))
482
+ return S;
483
483
  const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
484
484
  return r.push(n), () => {
485
485
  const i = r.indexOf(n);
@@ -491,63 +491,63 @@ class ln {
491
491
  * @returns {void}
492
492
  */
493
493
  $set(t) {
494
- this.$$set && !yr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
494
+ this.$$set && !gr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
495
495
  }
496
496
  }
497
- const Nr = "4";
498
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Nr);
499
- const Fe = [];
500
- function Or(e, t) {
497
+ const Lr = "4";
498
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Lr);
499
+ const ke = [];
500
+ function Nr(e, t) {
501
501
  return {
502
- subscribe: Ht(e, t).subscribe
502
+ subscribe: Tt(e, t).subscribe
503
503
  };
504
504
  }
505
- function Ht(e, t = B) {
505
+ function Tt(e, t = S) {
506
506
  let n;
507
507
  const r = /* @__PURE__ */ new Set();
508
508
  function i(u) {
509
- if (St(e, u) && (e = u, n)) {
510
- const s = !Fe.length;
509
+ if (Ct(e, u) && (e = u, n)) {
510
+ const s = !ke.length;
511
511
  for (const l of r)
512
- l[1](), Fe.push(l, e);
512
+ l[1](), ke.push(l, e);
513
513
  if (s) {
514
- for (let l = 0; l < Fe.length; l += 2)
515
- Fe[l][0](Fe[l + 1]);
516
- Fe.length = 0;
514
+ for (let l = 0; l < ke.length; l += 2)
515
+ ke[l][0](ke[l + 1]);
516
+ ke.length = 0;
517
517
  }
518
518
  }
519
519
  }
520
520
  function a(u) {
521
521
  i(u(e));
522
522
  }
523
- function o(u, s = B) {
523
+ function o(u, s = S) {
524
524
  const l = [u, s];
525
- return r.add(l), r.size === 1 && (n = t(i, a) || B), u(e), () => {
525
+ return r.add(l), r.size === 1 && (n = t(i, a) || S), u(e), () => {
526
526
  r.delete(l), r.size === 0 && n && (n(), n = null);
527
527
  };
528
528
  }
529
529
  return { set: i, update: a, subscribe: o };
530
530
  }
531
- function Qe(e, t, n) {
531
+ function We(e, t, n) {
532
532
  const r = !Array.isArray(e), i = r ? [e] : e;
533
533
  if (!i.every(Boolean))
534
534
  throw new Error("derived() expects stores as input, got a falsy value");
535
535
  const a = t.length < 2;
536
- return Or(n, (o, u) => {
536
+ return Nr(n, (o, u) => {
537
537
  let s = !1;
538
538
  const l = [];
539
- let c = 0, f = B;
539
+ let c = 0, d = S;
540
540
  const h = () => {
541
541
  if (c)
542
542
  return;
543
- f();
543
+ d();
544
544
  const v = t(r ? l[0] : l, o, u);
545
- a ? o(v) : f = lt(v) ? v : B;
546
- }, d = i.map(
547
- (v, b) => jn(
545
+ a ? o(v) : d = at(v) ? v : S;
546
+ }, p = i.map(
547
+ (v, b) => $n(
548
548
  v,
549
- (L) => {
550
- l[b] = L, c &= ~(1 << b), s && h();
549
+ (N) => {
550
+ l[b] = N, c &= ~(1 << b), s && h();
551
551
  },
552
552
  () => {
553
553
  c |= 1 << b;
@@ -555,84 +555,84 @@ function Qe(e, t, n) {
555
555
  )
556
556
  );
557
557
  return s = !0, h(), function() {
558
- _e(d), f(), s = !1;
558
+ ve(p), d(), s = !1;
559
559
  };
560
560
  });
561
561
  }
562
- function Rr(e) {
562
+ function Or(e) {
563
563
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
564
564
  }
565
- var kr = function(t) {
566
- return Dr(t) && !Mr(t);
565
+ var Rr = function(t) {
566
+ return kr(t) && !Dr(t);
567
567
  };
568
- function Dr(e) {
568
+ function kr(e) {
569
569
  return !!e && typeof e == "object";
570
570
  }
571
- function Mr(e) {
571
+ function Dr(e) {
572
572
  var t = Object.prototype.toString.call(e);
573
- return t === "[object RegExp]" || t === "[object Date]" || Vr(e);
573
+ return t === "[object RegExp]" || t === "[object Date]" || Ur(e);
574
574
  }
575
- var Fr = typeof Symbol == "function" && Symbol.for, Ur = Fr ? Symbol.for("react.element") : 60103;
576
- function Vr(e) {
577
- return e.$$typeof === Ur;
575
+ var Mr = typeof Symbol == "function" && Symbol.for, Fr = Mr ? Symbol.for("react.element") : 60103;
576
+ function Ur(e) {
577
+ return e.$$typeof === Fr;
578
578
  }
579
- function Gr(e) {
579
+ function Vr(e) {
580
580
  return Array.isArray(e) ? [] : {};
581
581
  }
582
- function ot(e, t) {
583
- return t.clone !== !1 && t.isMergeableObject(e) ? Xe(Gr(e), e, t) : e;
582
+ function rt(e, t) {
583
+ return t.clone !== !1 && t.isMergeableObject(e) ? Ge(Vr(e), e, t) : e;
584
584
  }
585
- function $r(e, t, n) {
585
+ function Gr(e, t, n) {
586
586
  return e.concat(t).map(function(r) {
587
- return ot(r, n);
587
+ return rt(r, n);
588
588
  });
589
589
  }
590
- function jr(e, t) {
590
+ function $r(e, t) {
591
591
  if (!t.customMerge)
592
- return Xe;
592
+ return Ge;
593
593
  var n = t.customMerge(e);
594
- return typeof n == "function" ? n : Xe;
594
+ return typeof n == "function" ? n : Ge;
595
595
  }
596
- function Xr(e) {
596
+ function jr(e) {
597
597
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
598
598
  return Object.propertyIsEnumerable.call(e, t);
599
599
  }) : [];
600
600
  }
601
601
  function mn(e) {
602
- return Object.keys(e).concat(Xr(e));
602
+ return Object.keys(e).concat(jr(e));
603
603
  }
604
- function Zn(e, t) {
604
+ function Wn(e, t) {
605
605
  try {
606
606
  return t in e;
607
607
  } catch {
608
608
  return !1;
609
609
  }
610
610
  }
611
- function Wr(e, t) {
612
- return Zn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
611
+ function Xr(e, t) {
612
+ return Wn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
613
613
  }
614
- function zr(e, t, n) {
614
+ function Wr(e, t, n) {
615
615
  var r = {};
616
616
  return n.isMergeableObject(e) && mn(e).forEach(function(i) {
617
- r[i] = ot(e[i], n);
617
+ r[i] = rt(e[i], n);
618
618
  }), mn(t).forEach(function(i) {
619
- Wr(e, i) || (Zn(e, i) && n.isMergeableObject(t[i]) ? r[i] = jr(i, n)(e[i], t[i], n) : r[i] = ot(t[i], n));
619
+ Xr(e, i) || (Wn(e, i) && n.isMergeableObject(t[i]) ? r[i] = $r(i, n)(e[i], t[i], n) : r[i] = rt(t[i], n));
620
620
  }), r;
621
621
  }
622
- function Xe(e, t, n) {
623
- n = n || {}, n.arrayMerge = n.arrayMerge || $r, n.isMergeableObject = n.isMergeableObject || kr, n.cloneUnlessOtherwiseSpecified = ot;
622
+ function Ge(e, t, n) {
623
+ n = n || {}, n.arrayMerge = n.arrayMerge || Gr, n.isMergeableObject = n.isMergeableObject || Rr, n.cloneUnlessOtherwiseSpecified = rt;
624
624
  var r = Array.isArray(t), i = Array.isArray(e), a = r === i;
625
- return a ? r ? n.arrayMerge(e, t, n) : zr(e, t, n) : ot(t, n);
625
+ return a ? r ? n.arrayMerge(e, t, n) : Wr(e, t, n) : rt(t, n);
626
626
  }
627
- Xe.all = function(t, n) {
627
+ Ge.all = function(t, n) {
628
628
  if (!Array.isArray(t))
629
629
  throw new Error("first argument should be an array");
630
630
  return t.reduce(function(r, i) {
631
- return Xe(r, i, n);
631
+ return Ge(r, i, n);
632
632
  }, {});
633
633
  };
634
- var Zr = Xe, Qr = Zr;
635
- const Kr = /* @__PURE__ */ Rr(Qr);
634
+ var zr = Ge, Zr = zr;
635
+ const Qr = /* @__PURE__ */ Or(Zr);
636
636
  var Zt = function(e, t) {
637
637
  return Zt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
638
638
  n.__proto__ = r;
@@ -641,7 +641,7 @@ var Zt = function(e, t) {
641
641
  Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
642
642
  }, Zt(e, t);
643
643
  };
644
- function Pt(e, t) {
644
+ function Bt(e, t) {
645
645
  if (typeof t != "function" && t !== null)
646
646
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
647
647
  Zt(e, t);
@@ -650,17 +650,17 @@ function Pt(e, t) {
650
650
  }
651
651
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
652
652
  }
653
- var me = function() {
654
- return me = Object.assign || function(t) {
653
+ var pe = function() {
654
+ return pe = Object.assign || function(t) {
655
655
  for (var n, r = 1, i = arguments.length; r < i; r++) {
656
656
  n = arguments[r];
657
657
  for (var a in n)
658
658
  Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
659
659
  }
660
660
  return t;
661
- }, me.apply(this, arguments);
661
+ }, pe.apply(this, arguments);
662
662
  };
663
- function Yr(e, t) {
663
+ function Kr(e, t) {
664
664
  var n = {};
665
665
  for (var r in e)
666
666
  Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
@@ -676,36 +676,36 @@ function Mt(e, t, n) {
676
676
  return e.concat(a || Array.prototype.slice.call(t));
677
677
  }
678
678
  function Ft(e, t) {
679
- var n = t && t.cache ? t.cache : ii, r = t && t.serializer ? t.serializer : ni, i = t && t.strategy ? t.strategy : ei;
679
+ var n = t && t.cache ? t.cache : ri, r = t && t.serializer ? t.serializer : ti, i = t && t.strategy ? t.strategy : qr;
680
680
  return i(e, {
681
681
  cache: n,
682
682
  serializer: r
683
683
  });
684
684
  }
685
- function Jr(e) {
685
+ function Yr(e) {
686
686
  return e == null || typeof e == "number" || typeof e == "boolean";
687
687
  }
688
- function qr(e, t, n, r) {
689
- var i = Jr(r) ? r : n(r), a = t.get(i);
688
+ function Jr(e, t, n, r) {
689
+ var i = Yr(r) ? r : n(r), a = t.get(i);
690
690
  return typeof a > "u" && (a = e.call(this, r), t.set(i, a)), a;
691
691
  }
692
- function Qn(e, t, n) {
692
+ function zn(e, t, n) {
693
693
  var r = Array.prototype.slice.call(arguments, 3), i = n(r), a = t.get(i);
694
694
  return typeof a > "u" && (a = e.apply(this, r), t.set(i, a)), a;
695
695
  }
696
- function Kn(e, t, n, r, i) {
696
+ function Zn(e, t, n, r, i) {
697
697
  return n.bind(t, e, r, i);
698
698
  }
699
- function ei(e, t) {
700
- var n = e.length === 1 ? qr : Qn;
701
- return Kn(e, this, n, t.cache.create(), t.serializer);
699
+ function qr(e, t) {
700
+ var n = e.length === 1 ? Jr : zn;
701
+ return Zn(e, this, n, t.cache.create(), t.serializer);
702
702
  }
703
- function ti(e, t) {
704
- return Kn(e, this, Qn, t.cache.create(), t.serializer);
703
+ function ei(e, t) {
704
+ return Zn(e, this, zn, t.cache.create(), t.serializer);
705
705
  }
706
- var ni = function() {
706
+ var ti = function() {
707
707
  return JSON.stringify(arguments);
708
- }, ri = (
708
+ }, ni = (
709
709
  /** @class */
710
710
  function() {
711
711
  function e() {
@@ -717,71 +717,71 @@ var ni = function() {
717
717
  this.cache[t] = n;
718
718
  }, e;
719
719
  }()
720
- ), ii = {
720
+ ), ri = {
721
721
  create: function() {
722
- return new ri();
722
+ return new ni();
723
723
  }
724
724
  }, Ut = {
725
- variadic: ti
726
- }, Ct = function() {
727
- return Ct = Object.assign || function(t) {
725
+ variadic: ei
726
+ }, xt = function() {
727
+ return xt = Object.assign || function(t) {
728
728
  for (var n, r = 1, i = arguments.length; r < i; r++) {
729
729
  n = arguments[r];
730
730
  for (var a in n)
731
731
  Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
732
732
  }
733
733
  return t;
734
- }, Ct.apply(this, arguments);
734
+ }, xt.apply(this, arguments);
735
735
  };
736
- var T;
736
+ var B;
737
737
  (function(e) {
738
738
  e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
739
- })(T || (T = {}));
740
- var D;
739
+ })(B || (B = {}));
740
+ var k;
741
741
  (function(e) {
742
742
  e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
743
- })(D || (D = {}));
744
- var We;
743
+ })(k || (k = {}));
744
+ var $e;
745
745
  (function(e) {
746
746
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
747
- })(We || (We = {}));
747
+ })($e || ($e = {}));
748
748
  function gn(e) {
749
- return e.type === D.literal;
749
+ return e.type === k.literal;
750
750
  }
751
- function ai(e) {
752
- return e.type === D.argument;
751
+ function ii(e) {
752
+ return e.type === k.argument;
753
+ }
754
+ function Qn(e) {
755
+ return e.type === k.number;
756
+ }
757
+ function Kn(e) {
758
+ return e.type === k.date;
753
759
  }
754
760
  function Yn(e) {
755
- return e.type === D.number;
761
+ return e.type === k.time;
756
762
  }
757
763
  function Jn(e) {
758
- return e.type === D.date;
764
+ return e.type === k.select;
759
765
  }
760
766
  function qn(e) {
761
- return e.type === D.time;
767
+ return e.type === k.plural;
768
+ }
769
+ function ai(e) {
770
+ return e.type === k.pound;
762
771
  }
763
772
  function er(e) {
764
- return e.type === D.select;
773
+ return e.type === k.tag;
765
774
  }
766
775
  function tr(e) {
767
- return e.type === D.plural;
768
- }
769
- function oi(e) {
770
- return e.type === D.pound;
771
- }
772
- function nr(e) {
773
- return e.type === D.tag;
774
- }
775
- function rr(e) {
776
- return !!(e && typeof e == "object" && e.type === We.number);
776
+ return !!(e && typeof e == "object" && e.type === $e.number);
777
777
  }
778
778
  function Qt(e) {
779
- return !!(e && typeof e == "object" && e.type === We.dateTime);
779
+ return !!(e && typeof e == "object" && e.type === $e.dateTime);
780
780
  }
781
- var ir = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, si = /(?:[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;
782
- function li(e) {
781
+ var nr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, oi = /(?:[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;
782
+ function si(e) {
783
783
  var t = {};
784
- return e.replace(si, function(n) {
784
+ return e.replace(oi, function(n) {
785
785
  var r = n.length;
786
786
  switch (n[0]) {
787
787
  case "G":
@@ -870,46 +870,46 @@ function li(e) {
870
870
  return "";
871
871
  }), t;
872
872
  }
873
- var U = function() {
874
- return U = Object.assign || function(t) {
873
+ var F = function() {
874
+ return F = Object.assign || function(t) {
875
875
  for (var n, r = 1, i = arguments.length; r < i; r++) {
876
876
  n = arguments[r];
877
877
  for (var a in n)
878
878
  Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
879
879
  }
880
880
  return t;
881
- }, U.apply(this, arguments);
881
+ }, F.apply(this, arguments);
882
882
  };
883
- var ui = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
884
- function ci(e) {
883
+ var li = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
884
+ function ui(e) {
885
885
  if (e.length === 0)
886
886
  throw new Error("Number skeleton cannot be empty");
887
- for (var t = e.split(ui).filter(function(h) {
887
+ for (var t = e.split(li).filter(function(h) {
888
888
  return h.length > 0;
889
889
  }), n = [], r = 0, i = t; r < i.length; r++) {
890
890
  var a = i[r], o = a.split("/");
891
891
  if (o.length === 0)
892
892
  throw new Error("Invalid number skeleton");
893
893
  for (var u = o[0], s = o.slice(1), l = 0, c = s; l < c.length; l++) {
894
- var f = c[l];
895
- if (f.length === 0)
894
+ var d = c[l];
895
+ if (d.length === 0)
896
896
  throw new Error("Invalid number skeleton");
897
897
  }
898
898
  n.push({ stem: u, options: s });
899
899
  }
900
900
  return n;
901
901
  }
902
- function hi(e) {
902
+ function ci(e) {
903
903
  return e.replace(/^(.*?)-/, "");
904
904
  }
905
- var bn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ar = /^(@+)?(\+|#+)?[rs]?$/g, fi = /(\*)(0+)|(#+)(0+)|(0+)/g, or = /^(0+)$/;
905
+ var bn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, rr = /^(@+)?(\+|#+)?[rs]?$/g, hi = /(\*)(0+)|(#+)(0+)|(0+)/g, ir = /^(0+)$/;
906
906
  function yn(e) {
907
907
  var t = {};
908
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ar, function(n, r, i) {
908
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(rr, function(n, r, i) {
909
909
  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)), "";
910
910
  }), t;
911
911
  }
912
- function sr(e) {
912
+ function ar(e) {
913
913
  switch (e) {
914
914
  case "sign-auto":
915
915
  return {
@@ -949,7 +949,7 @@ function sr(e) {
949
949
  };
950
950
  }
951
951
  }
952
- function di(e) {
952
+ function fi(e) {
953
953
  var t;
954
954
  if (e[0] === "E" && e[1] === "E" ? (t = {
955
955
  notation: "engineering"
@@ -957,17 +957,17 @@ function di(e) {
957
957
  notation: "scientific"
958
958
  }, e = e.slice(1)), t) {
959
959
  var n = e.slice(0, 2);
960
- if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !or.test(e))
960
+ if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !ir.test(e))
961
961
  throw new Error("Malformed concise eng/scientific notation");
962
962
  t.minimumIntegerDigits = e.length;
963
963
  }
964
964
  return t;
965
965
  }
966
966
  function vn(e) {
967
- var t = {}, n = sr(e);
967
+ var t = {}, n = ar(e);
968
968
  return n || t;
969
969
  }
970
- function pi(e) {
970
+ function di(e) {
971
971
  for (var t = {}, n = 0, r = e; n < r.length; n++) {
972
972
  var i = r[n];
973
973
  switch (i.stem) {
@@ -991,7 +991,7 @@ function pi(e) {
991
991
  continue;
992
992
  case "measure-unit":
993
993
  case "unit":
994
- t.style = "unit", t.unit = hi(i.options[0]);
994
+ t.style = "unit", t.unit = ci(i.options[0]);
995
995
  continue;
996
996
  case "compact-short":
997
997
  case "K":
@@ -1002,13 +1002,13 @@ function pi(e) {
1002
1002
  t.notation = "compact", t.compactDisplay = "long";
1003
1003
  continue;
1004
1004
  case "scientific":
1005
- t = U(U(U({}, t), { notation: "scientific" }), i.options.reduce(function(s, l) {
1006
- return U(U({}, s), vn(l));
1005
+ t = F(F(F({}, t), { notation: "scientific" }), i.options.reduce(function(s, l) {
1006
+ return F(F({}, s), vn(l));
1007
1007
  }, {}));
1008
1008
  continue;
1009
1009
  case "engineering":
1010
- t = U(U(U({}, t), { notation: "engineering" }), i.options.reduce(function(s, l) {
1011
- return U(U({}, s), vn(l));
1010
+ t = F(F(F({}, t), { notation: "engineering" }), i.options.reduce(function(s, l) {
1011
+ return F(F({}, s), vn(l));
1012
1012
  }, {}));
1013
1013
  continue;
1014
1014
  case "notation-simple":
@@ -1053,45 +1053,45 @@ function pi(e) {
1053
1053
  case "integer-width":
1054
1054
  if (i.options.length > 1)
1055
1055
  throw new RangeError("integer-width stems only accept a single optional option");
1056
- i.options[0].replace(fi, function(s, l, c, f, h, d) {
1056
+ i.options[0].replace(hi, function(s, l, c, d, h, p) {
1057
1057
  if (l)
1058
1058
  t.minimumIntegerDigits = c.length;
1059
1059
  else {
1060
- if (f && h)
1060
+ if (d && h)
1061
1061
  throw new Error("We currently do not support maximum integer digits");
1062
- if (d)
1062
+ if (p)
1063
1063
  throw new Error("We currently do not support exact integer digits");
1064
1064
  }
1065
1065
  return "";
1066
1066
  });
1067
1067
  continue;
1068
1068
  }
1069
- if (or.test(i.stem)) {
1069
+ if (ir.test(i.stem)) {
1070
1070
  t.minimumIntegerDigits = i.stem.length;
1071
1071
  continue;
1072
1072
  }
1073
1073
  if (bn.test(i.stem)) {
1074
1074
  if (i.options.length > 1)
1075
1075
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1076
- i.stem.replace(bn, function(s, l, c, f, h, d) {
1077
- return c === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : h && d ? (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length + d.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1076
+ i.stem.replace(bn, function(s, l, c, d, h, p) {
1077
+ return c === "*" ? t.minimumFractionDigits = l.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : h && p ? (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length + p.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1078
1078
  });
1079
1079
  var a = i.options[0];
1080
- a === "w" ? t = U(U({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = U(U({}, t), yn(a)));
1080
+ a === "w" ? t = F(F({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = F(F({}, t), yn(a)));
1081
1081
  continue;
1082
1082
  }
1083
- if (ar.test(i.stem)) {
1084
- t = U(U({}, t), yn(i.stem));
1083
+ if (rr.test(i.stem)) {
1084
+ t = F(F({}, t), yn(i.stem));
1085
1085
  continue;
1086
1086
  }
1087
- var o = sr(i.stem);
1088
- o && (t = U(U({}, t), o));
1089
- var u = di(i.stem);
1090
- u && (t = U(U({}, t), u));
1087
+ var o = ar(i.stem);
1088
+ o && (t = F(F({}, t), o));
1089
+ var u = fi(i.stem);
1090
+ u && (t = F(F({}, t), u));
1091
1091
  }
1092
1092
  return t;
1093
1093
  }
1094
- var bt = {
1094
+ var pt = {
1095
1095
  "001": [
1096
1096
  "H",
1097
1097
  "h"
@@ -2506,13 +2506,13 @@ var bt = {
2506
2506
  "h"
2507
2507
  ]
2508
2508
  };
2509
- function mi(e, t) {
2509
+ function pi(e, t) {
2510
2510
  for (var n = "", r = 0; r < e.length; r++) {
2511
2511
  var i = e.charAt(r);
2512
2512
  if (i === "j") {
2513
2513
  for (var a = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2514
2514
  a++, r++;
2515
- var o = 1 + (a & 1), u = a < 2 ? 1 : 3 + (a >> 1), s = "a", l = gi(t);
2515
+ var o = 1 + (a & 1), u = a < 2 ? 1 : 3 + (a >> 1), s = "a", l = mi(t);
2516
2516
  for ((l == "H" || l == "k") && (u = 0); u-- > 0; )
2517
2517
  n += s;
2518
2518
  for (; o-- > 0; )
@@ -2522,7 +2522,7 @@ function mi(e, t) {
2522
2522
  }
2523
2523
  return n;
2524
2524
  }
2525
- function gi(e) {
2525
+ function mi(e) {
2526
2526
  var t = e.hourCycle;
2527
2527
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2528
2528
  e.hourCycles && // @ts-ignore
@@ -2541,23 +2541,23 @@ function gi(e) {
2541
2541
  }
2542
2542
  var n = e.language, r;
2543
2543
  n !== "root" && (r = e.maximize().region);
2544
- var i = bt[r || ""] || bt[n || ""] || bt["".concat(n, "-001")] || bt["001"];
2544
+ var i = pt[r || ""] || pt[n || ""] || pt["".concat(n, "-001")] || pt["001"];
2545
2545
  return i[0];
2546
2546
  }
2547
- var Vt, bi = new RegExp("^".concat(ir.source, "*")), yi = new RegExp("".concat(ir.source, "*$"));
2548
- function H(e, t) {
2547
+ var Vt, gi = new RegExp("^".concat(nr.source, "*")), bi = new RegExp("".concat(nr.source, "*$"));
2548
+ function P(e, t) {
2549
2549
  return { start: e, end: t };
2550
2550
  }
2551
- var vi = !!String.prototype.startsWith && "_a".startsWith("a", 1), _i = !!String.fromCodePoint, Ei = !!Object.fromEntries, xi = !!String.prototype.codePointAt, wi = !!String.prototype.trimStart, Ai = !!String.prototype.trimEnd, Ci = !!Number.isSafeInteger, Ti = Ci ? Number.isSafeInteger : function(e) {
2551
+ var yi = !!String.prototype.startsWith && "_a".startsWith("a", 1), vi = !!String.fromCodePoint, _i = !!Object.fromEntries, Ei = !!String.prototype.codePointAt, xi = !!String.prototype.trimStart, wi = !!String.prototype.trimEnd, Ai = !!Number.isSafeInteger, Ci = Ai ? Number.isSafeInteger : function(e) {
2552
2552
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2553
2553
  }, Kt = !0;
2554
2554
  try {
2555
- var Bi = ur("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2556
- Kt = ((Vt = Bi.exec("a")) === null || Vt === void 0 ? void 0 : Vt[0]) === "a";
2555
+ var Ti = sr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2556
+ Kt = ((Vt = Ti.exec("a")) === null || Vt === void 0 ? void 0 : Vt[0]) === "a";
2557
2557
  } catch {
2558
2558
  Kt = !1;
2559
2559
  }
2560
- var _n = vi ? (
2560
+ var _n = yi ? (
2561
2561
  // Native
2562
2562
  function(t, n, r) {
2563
2563
  return t.startsWith(n, r);
@@ -2567,7 +2567,7 @@ var _n = vi ? (
2567
2567
  function(t, n, r) {
2568
2568
  return t.slice(r, r + n.length) === n;
2569
2569
  }
2570
- ), Yt = _i ? String.fromCodePoint : (
2570
+ ), Yt = vi ? String.fromCodePoint : (
2571
2571
  // IE11
2572
2572
  function() {
2573
2573
  for (var t = [], n = 0; n < arguments.length; n++)
@@ -2581,7 +2581,7 @@ var _n = vi ? (
2581
2581
  }
2582
2582
  ), En = (
2583
2583
  // native
2584
- Ei ? Object.fromEntries : (
2584
+ _i ? Object.fromEntries : (
2585
2585
  // Ponyfill
2586
2586
  function(t) {
2587
2587
  for (var n = {}, r = 0, i = t; r < i.length; r++) {
@@ -2591,7 +2591,7 @@ var _n = vi ? (
2591
2591
  return n;
2592
2592
  }
2593
2593
  )
2594
- ), lr = xi ? (
2594
+ ), or = Ei ? (
2595
2595
  // Native
2596
2596
  function(t, n) {
2597
2597
  return t.codePointAt(n);
@@ -2605,7 +2605,7 @@ var _n = vi ? (
2605
2605
  return i < 55296 || i > 56319 || n + 1 === r || (a = t.charCodeAt(n + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
2606
2606
  }
2607
2607
  }
2608
- ), Si = wi ? (
2608
+ ), Bi = xi ? (
2609
2609
  // Native
2610
2610
  function(t) {
2611
2611
  return t.trimStart();
@@ -2613,9 +2613,9 @@ var _n = vi ? (
2613
2613
  ) : (
2614
2614
  // Ponyfill
2615
2615
  function(t) {
2616
- return t.replace(bi, "");
2616
+ return t.replace(gi, "");
2617
2617
  }
2618
- ), Hi = Ai ? (
2618
+ ), Si = wi ? (
2619
2619
  // Native
2620
2620
  function(t) {
2621
2621
  return t.trimEnd();
@@ -2623,15 +2623,15 @@ var _n = vi ? (
2623
2623
  ) : (
2624
2624
  // Ponyfill
2625
2625
  function(t) {
2626
- return t.replace(yi, "");
2626
+ return t.replace(bi, "");
2627
2627
  }
2628
2628
  );
2629
- function ur(e, t) {
2629
+ function sr(e, t) {
2630
2630
  return new RegExp(e, t);
2631
2631
  }
2632
2632
  var Jt;
2633
2633
  if (Kt) {
2634
- var xn = ur("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2634
+ var xn = sr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2635
2635
  Jt = function(t, n) {
2636
2636
  var r;
2637
2637
  xn.lastIndex = n;
@@ -2641,14 +2641,14 @@ if (Kt) {
2641
2641
  } else
2642
2642
  Jt = function(t, n) {
2643
2643
  for (var r = []; ; ) {
2644
- var i = lr(t, n);
2645
- if (i === void 0 || cr(i) || Ni(i))
2644
+ var i = or(t, n);
2645
+ if (i === void 0 || lr(i) || Li(i))
2646
2646
  break;
2647
2647
  r.push(i), n += i >= 65536 ? 2 : 1;
2648
2648
  }
2649
2649
  return Yt.apply(void 0, r);
2650
2650
  };
2651
- var Pi = (
2651
+ var Hi = (
2652
2652
  /** @class */
2653
2653
  function() {
2654
2654
  function e(t, n) {
@@ -2672,13 +2672,13 @@ var Pi = (
2672
2672
  if (a === 35 && (n === "plural" || n === "selectordinal")) {
2673
2673
  var u = this.clonePosition();
2674
2674
  this.bump(), i.push({
2675
- type: D.pound,
2676
- location: H(u, this.clonePosition())
2675
+ type: k.pound,
2676
+ location: P(u, this.clonePosition())
2677
2677
  });
2678
2678
  } else if (a === 60 && !this.ignoreTag && this.peek() === 47) {
2679
2679
  if (r)
2680
2680
  break;
2681
- return this.error(T.UNMATCHED_CLOSING_TAG, H(this.clonePosition(), this.clonePosition()));
2681
+ return this.error(B.UNMATCHED_CLOSING_TAG, P(this.clonePosition(), this.clonePosition()));
2682
2682
  } else if (a === 60 && !this.ignoreTag && qt(this.peek() || 0)) {
2683
2683
  var o = this.parseTag(t, n);
2684
2684
  if (o.err)
@@ -2700,9 +2700,9 @@ var Pi = (
2700
2700
  if (this.bumpSpace(), this.bumpIf("/>"))
2701
2701
  return {
2702
2702
  val: {
2703
- type: D.literal,
2703
+ type: k.literal,
2704
2704
  value: "<".concat(i, "/>"),
2705
- location: H(r, this.clonePosition())
2705
+ location: P(r, this.clonePosition())
2706
2706
  },
2707
2707
  err: null
2708
2708
  };
@@ -2713,24 +2713,24 @@ var Pi = (
2713
2713
  var o = a.val, u = this.clonePosition();
2714
2714
  if (this.bumpIf("</")) {
2715
2715
  if (this.isEOF() || !qt(this.char()))
2716
- return this.error(T.INVALID_TAG, H(u, this.clonePosition()));
2716
+ return this.error(B.INVALID_TAG, P(u, this.clonePosition()));
2717
2717
  var s = this.clonePosition(), l = this.parseTagName();
2718
- return i !== l ? this.error(T.UNMATCHED_CLOSING_TAG, H(s, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2718
+ return i !== l ? this.error(B.UNMATCHED_CLOSING_TAG, P(s, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2719
2719
  val: {
2720
- type: D.tag,
2720
+ type: k.tag,
2721
2721
  value: i,
2722
2722
  children: o,
2723
- location: H(r, this.clonePosition())
2723
+ location: P(r, this.clonePosition())
2724
2724
  },
2725
2725
  err: null
2726
- } : this.error(T.INVALID_TAG, H(u, this.clonePosition())));
2726
+ } : this.error(B.INVALID_TAG, P(u, this.clonePosition())));
2727
2727
  } else
2728
- return this.error(T.UNCLOSED_TAG, H(r, this.clonePosition()));
2728
+ return this.error(B.UNCLOSED_TAG, P(r, this.clonePosition()));
2729
2729
  } else
2730
- return this.error(T.INVALID_TAG, H(r, this.clonePosition()));
2730
+ return this.error(B.INVALID_TAG, P(r, this.clonePosition()));
2731
2731
  }, e.prototype.parseTagName = function() {
2732
2732
  var t = this.offset();
2733
- for (this.bump(); !this.isEOF() && Li(this.char()); )
2733
+ for (this.bump(); !this.isEOF() && Ii(this.char()); )
2734
2734
  this.bump();
2735
2735
  return this.message.slice(t, this.offset());
2736
2736
  }, e.prototype.parseLiteral = function(t, n) {
@@ -2752,14 +2752,14 @@ var Pi = (
2752
2752
  }
2753
2753
  break;
2754
2754
  }
2755
- var s = H(r, this.clonePosition());
2755
+ var s = P(r, this.clonePosition());
2756
2756
  return {
2757
- val: { type: D.literal, value: i, location: s },
2757
+ val: { type: k.literal, value: i, location: s },
2758
2758
  err: null
2759
2759
  };
2760
2760
  }, e.prototype.tryParseLeftAngleBracket = function() {
2761
2761
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2762
- !Ii(this.peek() || 0)) ? (this.bump(), "<") : null;
2762
+ !Pi(this.peek() || 0)) ? (this.bump(), "<") : null;
2763
2763
  }, e.prototype.tryParseQuote = function(t) {
2764
2764
  if (this.isEOF() || this.char() !== 39)
2765
2765
  return null;
@@ -2802,40 +2802,40 @@ var Pi = (
2802
2802
  }, e.prototype.parseArgument = function(t, n) {
2803
2803
  var r = this.clonePosition();
2804
2804
  if (this.bump(), this.bumpSpace(), this.isEOF())
2805
- return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, H(r, this.clonePosition()));
2805
+ return this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE, P(r, this.clonePosition()));
2806
2806
  if (this.char() === 125)
2807
- return this.bump(), this.error(T.EMPTY_ARGUMENT, H(r, this.clonePosition()));
2807
+ return this.bump(), this.error(B.EMPTY_ARGUMENT, P(r, this.clonePosition()));
2808
2808
  var i = this.parseIdentifierIfPossible().value;
2809
2809
  if (!i)
2810
- return this.error(T.MALFORMED_ARGUMENT, H(r, this.clonePosition()));
2810
+ return this.error(B.MALFORMED_ARGUMENT, P(r, this.clonePosition()));
2811
2811
  if (this.bumpSpace(), this.isEOF())
2812
- return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, H(r, this.clonePosition()));
2812
+ return this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE, P(r, this.clonePosition()));
2813
2813
  switch (this.char()) {
2814
2814
  case 125:
2815
2815
  return this.bump(), {
2816
2816
  val: {
2817
- type: D.argument,
2817
+ type: k.argument,
2818
2818
  // value does not include the opening and closing braces.
2819
2819
  value: i,
2820
- location: H(r, this.clonePosition())
2820
+ location: P(r, this.clonePosition())
2821
2821
  },
2822
2822
  err: null
2823
2823
  };
2824
2824
  case 44:
2825
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, H(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2825
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE, P(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2826
2826
  default:
2827
- return this.error(T.MALFORMED_ARGUMENT, H(r, this.clonePosition()));
2827
+ return this.error(B.MALFORMED_ARGUMENT, P(r, this.clonePosition()));
2828
2828
  }
2829
2829
  }, e.prototype.parseIdentifierIfPossible = function() {
2830
2830
  var t = this.clonePosition(), n = this.offset(), r = Jt(this.message, n), i = n + r.length;
2831
2831
  this.bumpTo(i);
2832
- var a = this.clonePosition(), o = H(t, a);
2832
+ var a = this.clonePosition(), o = P(t, a);
2833
2833
  return { value: r, location: o };
2834
2834
  }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
2835
2835
  var a, o = this.clonePosition(), u = this.parseIdentifierIfPossible().value, s = this.clonePosition();
2836
2836
  switch (u) {
2837
2837
  case "":
2838
- return this.error(T.EXPECT_ARGUMENT_TYPE, H(o, s));
2838
+ return this.error(B.EXPECT_ARGUMENT_TYPE, P(o, s));
2839
2839
  case "number":
2840
2840
  case "date":
2841
2841
  case "time": {
@@ -2843,38 +2843,38 @@ var Pi = (
2843
2843
  var l = null;
2844
2844
  if (this.bumpIf(",")) {
2845
2845
  this.bumpSpace();
2846
- var c = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2847
- if (f.err)
2848
- return f;
2849
- var h = Hi(f.val);
2846
+ var c = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
2847
+ if (d.err)
2848
+ return d;
2849
+ var h = Si(d.val);
2850
2850
  if (h.length === 0)
2851
- return this.error(T.EXPECT_ARGUMENT_STYLE, H(this.clonePosition(), this.clonePosition()));
2852
- var d = H(c, this.clonePosition());
2853
- l = { style: h, styleLocation: d };
2851
+ return this.error(B.EXPECT_ARGUMENT_STYLE, P(this.clonePosition(), this.clonePosition()));
2852
+ var p = P(c, this.clonePosition());
2853
+ l = { style: h, styleLocation: p };
2854
2854
  }
2855
2855
  var v = this.tryParseArgumentClose(i);
2856
2856
  if (v.err)
2857
2857
  return v;
2858
- var b = H(i, this.clonePosition());
2858
+ var b = P(i, this.clonePosition());
2859
2859
  if (l && _n(l?.style, "::", 0)) {
2860
- var L = Si(l.style.slice(2));
2860
+ var N = Bi(l.style.slice(2));
2861
2861
  if (u === "number") {
2862
- var f = this.parseNumberSkeletonFromString(L, l.styleLocation);
2863
- return f.err ? f : {
2864
- val: { type: D.number, value: r, location: b, style: f.val },
2862
+ var d = this.parseNumberSkeletonFromString(N, l.styleLocation);
2863
+ return d.err ? d : {
2864
+ val: { type: k.number, value: r, location: b, style: d.val },
2865
2865
  err: null
2866
2866
  };
2867
2867
  } else {
2868
- if (L.length === 0)
2869
- return this.error(T.EXPECT_DATE_TIME_SKELETON, b);
2870
- var E = L;
2871
- this.locale && (E = mi(L, this.locale));
2868
+ if (N.length === 0)
2869
+ return this.error(B.EXPECT_DATE_TIME_SKELETON, b);
2870
+ var _ = N;
2871
+ this.locale && (_ = pi(N, this.locale));
2872
2872
  var h = {
2873
- type: We.dateTime,
2874
- pattern: E,
2873
+ type: $e.dateTime,
2874
+ pattern: _,
2875
2875
  location: l.styleLocation,
2876
- parsedOptions: this.shouldParseSkeletons ? li(E) : {}
2877
- }, O = u === "date" ? D.date : D.time;
2876
+ parsedOptions: this.shouldParseSkeletons ? si(_) : {}
2877
+ }, O = u === "date" ? k.date : k.time;
2878
2878
  return {
2879
2879
  val: { type: O, value: r, location: b, style: h },
2880
2880
  err: null
@@ -2883,7 +2883,7 @@ var Pi = (
2883
2883
  }
2884
2884
  return {
2885
2885
  val: {
2886
- type: u === "number" ? D.number : u === "date" ? D.date : D.time,
2886
+ type: u === "number" ? k.number : u === "date" ? k.date : k.time,
2887
2887
  value: r,
2888
2888
  location: b,
2889
2889
  style: (a = l?.style) !== null && a !== void 0 ? a : null
@@ -2894,52 +2894,52 @@ var Pi = (
2894
2894
  case "plural":
2895
2895
  case "selectordinal":
2896
2896
  case "select": {
2897
- var I = this.clonePosition();
2897
+ var L = this.clonePosition();
2898
2898
  if (this.bumpSpace(), !this.bumpIf(","))
2899
- return this.error(T.EXPECT_SELECT_ARGUMENT_OPTIONS, H(I, Ct({}, I)));
2899
+ return this.error(B.EXPECT_SELECT_ARGUMENT_OPTIONS, P(L, xt({}, L)));
2900
2900
  this.bumpSpace();
2901
- var ie = this.parseIdentifierIfPossible(), F = 0;
2902
- if (u !== "select" && ie.value === "offset") {
2901
+ var ae = this.parseIdentifierIfPossible(), D = 0;
2902
+ if (u !== "select" && ae.value === "offset") {
2903
2903
  if (!this.bumpIf(":"))
2904
- return this.error(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H(this.clonePosition(), this.clonePosition()));
2904
+ return this.error(B.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, P(this.clonePosition(), this.clonePosition()));
2905
2905
  this.bumpSpace();
2906
- var f = this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, T.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2907
- if (f.err)
2908
- return f;
2909
- this.bumpSpace(), ie = this.parseIdentifierIfPossible(), F = f.val;
2906
+ var d = this.tryParseDecimalInteger(B.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, B.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2907
+ if (d.err)
2908
+ return d;
2909
+ this.bumpSpace(), ae = this.parseIdentifierIfPossible(), D = d.val;
2910
2910
  }
2911
- var te = this.tryParsePluralOrSelectOptions(t, u, n, ie);
2912
- if (te.err)
2913
- return te;
2911
+ var ne = this.tryParsePluralOrSelectOptions(t, u, n, ae);
2912
+ if (ne.err)
2913
+ return ne;
2914
2914
  var v = this.tryParseArgumentClose(i);
2915
2915
  if (v.err)
2916
2916
  return v;
2917
- var ae = H(i, this.clonePosition());
2917
+ var oe = P(i, this.clonePosition());
2918
2918
  return u === "select" ? {
2919
2919
  val: {
2920
- type: D.select,
2920
+ type: k.select,
2921
2921
  value: r,
2922
- options: En(te.val),
2923
- location: ae
2922
+ options: En(ne.val),
2923
+ location: oe
2924
2924
  },
2925
2925
  err: null
2926
2926
  } : {
2927
2927
  val: {
2928
- type: D.plural,
2928
+ type: k.plural,
2929
2929
  value: r,
2930
- options: En(te.val),
2931
- offset: F,
2930
+ options: En(ne.val),
2931
+ offset: D,
2932
2932
  pluralType: u === "plural" ? "cardinal" : "ordinal",
2933
- location: ae
2933
+ location: oe
2934
2934
  },
2935
2935
  err: null
2936
2936
  };
2937
2937
  }
2938
2938
  default:
2939
- return this.error(T.INVALID_ARGUMENT_TYPE, H(o, s));
2939
+ return this.error(B.INVALID_ARGUMENT_TYPE, P(o, s));
2940
2940
  }
2941
2941
  }, e.prototype.tryParseArgumentClose = function(t) {
2942
- return this.isEOF() || this.char() !== 125 ? this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, H(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2942
+ return this.isEOF() || this.char() !== 125 ? this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE, P(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2943
2943
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2944
2944
  for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
2945
2945
  var r = this.char();
@@ -2948,7 +2948,7 @@ var Pi = (
2948
2948
  this.bump();
2949
2949
  var i = this.clonePosition();
2950
2950
  if (!this.bumpUntil("'"))
2951
- return this.error(T.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, H(i, this.clonePosition()));
2951
+ return this.error(B.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, P(i, this.clonePosition()));
2952
2952
  this.bump();
2953
2953
  break;
2954
2954
  }
@@ -2978,52 +2978,52 @@ var Pi = (
2978
2978
  }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
2979
2979
  var r = [];
2980
2980
  try {
2981
- r = ci(t);
2981
+ r = ui(t);
2982
2982
  } catch {
2983
- return this.error(T.INVALID_NUMBER_SKELETON, n);
2983
+ return this.error(B.INVALID_NUMBER_SKELETON, n);
2984
2984
  }
2985
2985
  return {
2986
2986
  val: {
2987
- type: We.number,
2987
+ type: $e.number,
2988
2988
  tokens: r,
2989
2989
  location: n,
2990
- parsedOptions: this.shouldParseSkeletons ? pi(r) : {}
2990
+ parsedOptions: this.shouldParseSkeletons ? di(r) : {}
2991
2991
  },
2992
2992
  err: null
2993
2993
  };
2994
2994
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
2995
2995
  for (var a, o = !1, u = [], s = /* @__PURE__ */ new Set(), l = i.value, c = i.location; ; ) {
2996
2996
  if (l.length === 0) {
2997
- var f = this.clonePosition();
2997
+ var d = this.clonePosition();
2998
2998
  if (n !== "select" && this.bumpIf("=")) {
2999
- var h = this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_SELECTOR, T.INVALID_PLURAL_ARGUMENT_SELECTOR);
2999
+ var h = this.tryParseDecimalInteger(B.EXPECT_PLURAL_ARGUMENT_SELECTOR, B.INVALID_PLURAL_ARGUMENT_SELECTOR);
3000
3000
  if (h.err)
3001
3001
  return h;
3002
- c = H(f, this.clonePosition()), l = this.message.slice(f.offset, this.offset());
3002
+ c = P(d, this.clonePosition()), l = this.message.slice(d.offset, this.offset());
3003
3003
  } else
3004
3004
  break;
3005
3005
  }
3006
3006
  if (s.has(l))
3007
- return this.error(n === "select" ? T.DUPLICATE_SELECT_ARGUMENT_SELECTOR : T.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
3007
+ return this.error(n === "select" ? B.DUPLICATE_SELECT_ARGUMENT_SELECTOR : B.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
3008
3008
  l === "other" && (o = !0), this.bumpSpace();
3009
- var d = this.clonePosition();
3009
+ var p = this.clonePosition();
3010
3010
  if (!this.bumpIf("{"))
3011
- return this.error(n === "select" ? T.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : T.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, H(this.clonePosition(), this.clonePosition()));
3011
+ return this.error(n === "select" ? B.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : B.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, P(this.clonePosition(), this.clonePosition()));
3012
3012
  var v = this.parseMessage(t + 1, n, r);
3013
3013
  if (v.err)
3014
3014
  return v;
3015
- var b = this.tryParseArgumentClose(d);
3015
+ var b = this.tryParseArgumentClose(p);
3016
3016
  if (b.err)
3017
3017
  return b;
3018
3018
  u.push([
3019
3019
  l,
3020
3020
  {
3021
3021
  value: v.val,
3022
- location: H(d, this.clonePosition())
3022
+ location: P(p, this.clonePosition())
3023
3023
  }
3024
3024
  ]), s.add(l), this.bumpSpace(), a = this.parseIdentifierIfPossible(), l = a.value, c = a.location;
3025
3025
  }
3026
- return u.length === 0 ? this.error(n === "select" ? T.EXPECT_SELECT_ARGUMENT_SELECTOR : T.EXPECT_PLURAL_ARGUMENT_SELECTOR, H(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(T.MISSING_OTHER_CLAUSE, H(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
3026
+ return u.length === 0 ? this.error(n === "select" ? B.EXPECT_SELECT_ARGUMENT_SELECTOR : B.EXPECT_PLURAL_ARGUMENT_SELECTOR, P(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(B.MISSING_OTHER_CLAUSE, P(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
3027
3027
  }, e.prototype.tryParseDecimalInteger = function(t, n) {
3028
3028
  var r = 1, i = this.clonePosition();
3029
3029
  this.bumpIf("+") || this.bumpIf("-") && (r = -1);
@@ -3034,8 +3034,8 @@ var Pi = (
3034
3034
  else
3035
3035
  break;
3036
3036
  }
3037
- var s = H(i, this.clonePosition());
3038
- return a ? (o *= r, Ti(o) ? { val: o, err: null } : this.error(n, s)) : this.error(t, s);
3037
+ var s = P(i, this.clonePosition());
3038
+ return a ? (o *= r, Ci(o) ? { val: o, err: null } : this.error(n, s)) : this.error(t, s);
3039
3039
  }, e.prototype.offset = function() {
3040
3040
  return this.position.offset;
3041
3041
  }, e.prototype.isEOF = function() {
@@ -3050,7 +3050,7 @@ var Pi = (
3050
3050
  var t = this.position.offset;
3051
3051
  if (t >= this.message.length)
3052
3052
  throw Error("out of bound");
3053
- var n = lr(this.message, t);
3053
+ var n = or(this.message, t);
3054
3054
  if (n === void 0)
3055
3055
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3056
3056
  return n;
@@ -3091,7 +3091,7 @@ var Pi = (
3091
3091
  break;
3092
3092
  }
3093
3093
  }, e.prototype.bumpSpace = function() {
3094
- for (; !this.isEOF() && cr(this.char()); )
3094
+ for (; !this.isEOF() && lr(this.char()); )
3095
3095
  this.bump();
3096
3096
  }, e.prototype.peek = function() {
3097
3097
  if (this.isEOF())
@@ -3104,44 +3104,44 @@ var Pi = (
3104
3104
  function qt(e) {
3105
3105
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3106
3106
  }
3107
- function Ii(e) {
3107
+ function Pi(e) {
3108
3108
  return qt(e) || e === 47;
3109
3109
  }
3110
- function Li(e) {
3110
+ function Ii(e) {
3111
3111
  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;
3112
3112
  }
3113
- function cr(e) {
3113
+ function lr(e) {
3114
3114
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3115
3115
  }
3116
- function Ni(e) {
3116
+ function Li(e) {
3117
3117
  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;
3118
3118
  }
3119
3119
  function en(e) {
3120
3120
  e.forEach(function(t) {
3121
- if (delete t.location, er(t) || tr(t))
3121
+ if (delete t.location, Jn(t) || qn(t))
3122
3122
  for (var n in t.options)
3123
3123
  delete t.options[n].location, en(t.options[n].value);
3124
3124
  else
3125
- Yn(t) && rr(t.style) || (Jn(t) || qn(t)) && Qt(t.style) ? delete t.style.location : nr(t) && en(t.children);
3125
+ Qn(t) && tr(t.style) || (Kn(t) || Yn(t)) && Qt(t.style) ? delete t.style.location : er(t) && en(t.children);
3126
3126
  });
3127
3127
  }
3128
- function Oi(e, t) {
3129
- t === void 0 && (t = {}), t = Ct({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3130
- var n = new Pi(e, t).parse();
3128
+ function Ni(e, t) {
3129
+ t === void 0 && (t = {}), t = xt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3130
+ var n = new Hi(e, t).parse();
3131
3131
  if (n.err) {
3132
- var r = SyntaxError(T[n.err.kind]);
3132
+ var r = SyntaxError(B[n.err.kind]);
3133
3133
  throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3134
3134
  }
3135
3135
  return t?.captureLocation || en(n.val), n.val;
3136
3136
  }
3137
- var ze;
3137
+ var je;
3138
3138
  (function(e) {
3139
3139
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3140
- })(ze || (ze = {}));
3141
- var It = (
3140
+ })(je || (je = {}));
3141
+ var St = (
3142
3142
  /** @class */
3143
3143
  function(e) {
3144
- Pt(t, e);
3144
+ Bt(t, e);
3145
3145
  function t(n, r, i) {
3146
3146
  var a = e.call(this, n) || this;
3147
3147
  return a.code = r, a.originalMessage = i, a;
@@ -3153,48 +3153,48 @@ var It = (
3153
3153
  ), wn = (
3154
3154
  /** @class */
3155
3155
  function(e) {
3156
- Pt(t, e);
3156
+ Bt(t, e);
3157
3157
  function t(n, r, i, a) {
3158
- return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ze.INVALID_VALUE, a) || this;
3158
+ return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), je.INVALID_VALUE, a) || this;
3159
3159
  }
3160
3160
  return t;
3161
- }(It)
3162
- ), Ri = (
3161
+ }(St)
3162
+ ), Oi = (
3163
3163
  /** @class */
3164
3164
  function(e) {
3165
- Pt(t, e);
3165
+ Bt(t, e);
3166
3166
  function t(n, r, i) {
3167
- return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), ze.INVALID_VALUE, i) || this;
3167
+ return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), je.INVALID_VALUE, i) || this;
3168
3168
  }
3169
3169
  return t;
3170
- }(It)
3171
- ), ki = (
3170
+ }(St)
3171
+ ), Ri = (
3172
3172
  /** @class */
3173
3173
  function(e) {
3174
- Pt(t, e);
3174
+ Bt(t, e);
3175
3175
  function t(n, r) {
3176
- return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), ze.MISSING_VALUE, r) || this;
3176
+ return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), je.MISSING_VALUE, r) || this;
3177
3177
  }
3178
3178
  return t;
3179
- }(It)
3180
- ), K;
3179
+ }(St)
3180
+ ), q;
3181
3181
  (function(e) {
3182
3182
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3183
- })(K || (K = {}));
3184
- function Di(e) {
3183
+ })(q || (q = {}));
3184
+ function ki(e) {
3185
3185
  return e.length < 2 ? e : e.reduce(function(t, n) {
3186
3186
  var r = t[t.length - 1];
3187
- return !r || r.type !== K.literal || n.type !== K.literal ? t.push(n) : r.value += n.value, t;
3187
+ return !r || r.type !== q.literal || n.type !== q.literal ? t.push(n) : r.value += n.value, t;
3188
3188
  }, []);
3189
3189
  }
3190
- function Mi(e) {
3190
+ function Di(e) {
3191
3191
  return typeof e == "function";
3192
3192
  }
3193
- function Et(e, t, n, r, i, a, o) {
3193
+ function yt(e, t, n, r, i, a, o) {
3194
3194
  if (e.length === 1 && gn(e[0]))
3195
3195
  return [
3196
3196
  {
3197
- type: K.literal,
3197
+ type: q.literal,
3198
3198
  value: e[0].value
3199
3199
  }
3200
3200
  ];
@@ -3202,101 +3202,101 @@ function Et(e, t, n, r, i, a, o) {
3202
3202
  var c = l[s];
3203
3203
  if (gn(c)) {
3204
3204
  u.push({
3205
- type: K.literal,
3205
+ type: q.literal,
3206
3206
  value: c.value
3207
3207
  });
3208
3208
  continue;
3209
3209
  }
3210
- if (oi(c)) {
3210
+ if (ai(c)) {
3211
3211
  typeof a == "number" && u.push({
3212
- type: K.literal,
3212
+ type: q.literal,
3213
3213
  value: n.getNumberFormat(t).format(a)
3214
3214
  });
3215
3215
  continue;
3216
3216
  }
3217
- var f = c.value;
3218
- if (!(i && f in i))
3219
- throw new ki(f, o);
3220
- var h = i[f];
3221
- if (ai(c)) {
3217
+ var d = c.value;
3218
+ if (!(i && d in i))
3219
+ throw new Ri(d, o);
3220
+ var h = i[d];
3221
+ if (ii(c)) {
3222
3222
  (!h || typeof h == "string" || typeof h == "number") && (h = typeof h == "string" || typeof h == "number" ? String(h) : ""), u.push({
3223
- type: typeof h == "string" ? K.literal : K.object,
3223
+ type: typeof h == "string" ? q.literal : q.object,
3224
3224
  value: h
3225
3225
  });
3226
3226
  continue;
3227
3227
  }
3228
- if (Jn(c)) {
3229
- var d = typeof c.style == "string" ? r.date[c.style] : Qt(c.style) ? c.style.parsedOptions : void 0;
3228
+ if (Kn(c)) {
3229
+ var p = typeof c.style == "string" ? r.date[c.style] : Qt(c.style) ? c.style.parsedOptions : void 0;
3230
3230
  u.push({
3231
- type: K.literal,
3232
- value: n.getDateTimeFormat(t, d).format(h)
3231
+ type: q.literal,
3232
+ value: n.getDateTimeFormat(t, p).format(h)
3233
3233
  });
3234
3234
  continue;
3235
3235
  }
3236
- if (qn(c)) {
3237
- var d = typeof c.style == "string" ? r.time[c.style] : Qt(c.style) ? c.style.parsedOptions : r.time.medium;
3236
+ if (Yn(c)) {
3237
+ var p = typeof c.style == "string" ? r.time[c.style] : Qt(c.style) ? c.style.parsedOptions : r.time.medium;
3238
3238
  u.push({
3239
- type: K.literal,
3240
- value: n.getDateTimeFormat(t, d).format(h)
3239
+ type: q.literal,
3240
+ value: n.getDateTimeFormat(t, p).format(h)
3241
3241
  });
3242
3242
  continue;
3243
3243
  }
3244
- if (Yn(c)) {
3245
- var d = typeof c.style == "string" ? r.number[c.style] : rr(c.style) ? c.style.parsedOptions : void 0;
3246
- d && d.scale && (h = h * (d.scale || 1)), u.push({
3247
- type: K.literal,
3248
- value: n.getNumberFormat(t, d).format(h)
3244
+ if (Qn(c)) {
3245
+ var p = typeof c.style == "string" ? r.number[c.style] : tr(c.style) ? c.style.parsedOptions : void 0;
3246
+ p && p.scale && (h = h * (p.scale || 1)), u.push({
3247
+ type: q.literal,
3248
+ value: n.getNumberFormat(t, p).format(h)
3249
3249
  });
3250
3250
  continue;
3251
3251
  }
3252
- if (nr(c)) {
3253
- var v = c.children, b = c.value, L = i[b];
3254
- if (!Mi(L))
3255
- throw new Ri(b, "function", o);
3256
- var E = Et(v, t, n, r, i, a), O = L(E.map(function(F) {
3257
- return F.value;
3252
+ if (er(c)) {
3253
+ var v = c.children, b = c.value, N = i[b];
3254
+ if (!Di(N))
3255
+ throw new Oi(b, "function", o);
3256
+ var _ = yt(v, t, n, r, i, a), O = N(_.map(function(D) {
3257
+ return D.value;
3258
3258
  }));
3259
- Array.isArray(O) || (O = [O]), u.push.apply(u, O.map(function(F) {
3259
+ Array.isArray(O) || (O = [O]), u.push.apply(u, O.map(function(D) {
3260
3260
  return {
3261
- type: typeof F == "string" ? K.literal : K.object,
3262
- value: F
3261
+ type: typeof D == "string" ? q.literal : q.object,
3262
+ value: D
3263
3263
  };
3264
3264
  }));
3265
3265
  }
3266
- if (er(c)) {
3267
- var I = c.options[h] || c.options.other;
3268
- if (!I)
3266
+ if (Jn(c)) {
3267
+ var L = c.options[h] || c.options.other;
3268
+ if (!L)
3269
3269
  throw new wn(c.value, h, Object.keys(c.options), o);
3270
- u.push.apply(u, Et(I.value, t, n, r, i));
3270
+ u.push.apply(u, yt(L.value, t, n, r, i));
3271
3271
  continue;
3272
3272
  }
3273
- if (tr(c)) {
3274
- var I = c.options["=".concat(h)];
3275
- if (!I) {
3273
+ if (qn(c)) {
3274
+ var L = c.options["=".concat(h)];
3275
+ if (!L) {
3276
3276
  if (!Intl.PluralRules)
3277
- throw new It(`Intl.PluralRules is not available in this environment.
3277
+ throw new St(`Intl.PluralRules is not available in this environment.
3278
3278
  Try polyfilling it using "@formatjs/intl-pluralrules"
3279
- `, ze.MISSING_INTL_API, o);
3280
- var ie = n.getPluralRules(t, { type: c.pluralType }).select(h - (c.offset || 0));
3281
- I = c.options[ie] || c.options.other;
3279
+ `, je.MISSING_INTL_API, o);
3280
+ var ae = n.getPluralRules(t, { type: c.pluralType }).select(h - (c.offset || 0));
3281
+ L = c.options[ae] || c.options.other;
3282
3282
  }
3283
- if (!I)
3283
+ if (!L)
3284
3284
  throw new wn(c.value, h, Object.keys(c.options), o);
3285
- u.push.apply(u, Et(I.value, t, n, r, i, h - (c.offset || 0)));
3285
+ u.push.apply(u, yt(L.value, t, n, r, i, h - (c.offset || 0)));
3286
3286
  continue;
3287
3287
  }
3288
3288
  }
3289
- return Di(u);
3289
+ return ki(u);
3290
3290
  }
3291
- function Fi(e, t) {
3292
- return t ? me(me(me({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3293
- return n[r] = me(me({}, e[r]), t[r] || {}), n;
3291
+ function Mi(e, t) {
3292
+ return t ? pe(pe(pe({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3293
+ return n[r] = pe(pe({}, e[r]), t[r] || {}), n;
3294
3294
  }, {})) : e;
3295
3295
  }
3296
- function Ui(e, t) {
3296
+ function Fi(e, t) {
3297
3297
  return t ? Object.keys(e).reduce(function(n, r) {
3298
- return n[r] = Fi(e[r], t[r]), n;
3299
- }, me({}, e)) : e;
3298
+ return n[r] = Mi(e[r], t[r]), n;
3299
+ }, pe({}, e)) : e;
3300
3300
  }
3301
3301
  function Gt(e) {
3302
3302
  return {
@@ -3312,7 +3312,7 @@ function Gt(e) {
3312
3312
  }
3313
3313
  };
3314
3314
  }
3315
- function Vi(e) {
3315
+ function Ui(e) {
3316
3316
  return e === void 0 && (e = {
3317
3317
  number: {},
3318
3318
  dateTime: {},
@@ -3344,7 +3344,7 @@ function Vi(e) {
3344
3344
  })
3345
3345
  };
3346
3346
  }
3347
- var Gi = (
3347
+ var Vi = (
3348
3348
  /** @class */
3349
3349
  function() {
3350
3350
  function e(t, n, r, i) {
@@ -3358,12 +3358,12 @@ var Gi = (
3358
3358
  var l = a.formatToParts(s);
3359
3359
  if (l.length === 1)
3360
3360
  return l[0].value;
3361
- var c = l.reduce(function(f, h) {
3362
- return !f.length || h.type !== K.literal || typeof f[f.length - 1] != "string" ? f.push(h.value) : f[f.length - 1] += h.value, f;
3361
+ var c = l.reduce(function(d, h) {
3362
+ return !d.length || h.type !== q.literal || typeof d[d.length - 1] != "string" ? d.push(h.value) : d[d.length - 1] += h.value, d;
3363
3363
  }, []);
3364
3364
  return c.length <= 1 ? c[0] || "" : c;
3365
3365
  }, this.formatToParts = function(s) {
3366
- return Et(a.ast, a.locales, a.formatters, a.formats, s, void 0, a.message);
3366
+ return yt(a.ast, a.locales, a.formatters, a.formats, s, void 0, a.message);
3367
3367
  }, this.resolvedOptions = function() {
3368
3368
  var s;
3369
3369
  return {
@@ -3376,13 +3376,13 @@ var Gi = (
3376
3376
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3377
3377
  var o = i || {};
3378
3378
  o.formatters;
3379
- var u = Yr(o, ["formatters"]);
3380
- this.ast = e.__parse(t, me(me({}, u), { locale: this.resolvedLocale }));
3379
+ var u = Kr(o, ["formatters"]);
3380
+ this.ast = e.__parse(t, pe(pe({}, u), { locale: this.resolvedLocale }));
3381
3381
  } else
3382
3382
  this.ast = t;
3383
3383
  if (!Array.isArray(this.ast))
3384
3384
  throw new TypeError("A message must be provided as a String or AST.");
3385
- this.formats = Ui(e.formats, r), this.formatters = i && i.formatters || Vi(this.formatterCache);
3385
+ this.formats = Fi(e.formats, r), this.formatters = i && i.formatters || Ui(this.formatterCache);
3386
3386
  }
3387
3387
  return Object.defineProperty(e, "defaultLocale", {
3388
3388
  get: function() {
@@ -3395,7 +3395,7 @@ var Gi = (
3395
3395
  var n = Intl.NumberFormat.supportedLocalesOf(t);
3396
3396
  return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3397
3397
  }
3398
- }, e.__parse = Oi, e.formats = {
3398
+ }, e.__parse = Ni, e.formats = {
3399
3399
  number: {
3400
3400
  integer: {
3401
3401
  maximumFractionDigits: 0
@@ -3456,7 +3456,7 @@ var Gi = (
3456
3456
  }, e;
3457
3457
  }()
3458
3458
  );
3459
- function $i(e, t) {
3459
+ function Gi(e, t) {
3460
3460
  if (t == null)
3461
3461
  return;
3462
3462
  if (t in e)
@@ -3477,92 +3477,92 @@ function $i(e, t) {
3477
3477
  r = void 0;
3478
3478
  return r;
3479
3479
  }
3480
- const Te = {}, ji = (e, t, n) => n && (t in Te || (Te[t] = {}), e in Te[t] || (Te[t][e] = n), n), hr = (e, t) => {
3480
+ const xe = {}, $i = (e, t, n) => n && (t in xe || (xe[t] = {}), e in xe[t] || (xe[t][e] = n), n), ur = (e, t) => {
3481
3481
  if (t == null)
3482
3482
  return;
3483
- if (t in Te && e in Te[t])
3484
- return Te[t][e];
3485
- const n = Lt(t);
3483
+ if (t in xe && e in xe[t])
3484
+ return xe[t][e];
3485
+ const n = Ht(t);
3486
3486
  for (let r = 0; r < n.length; r++) {
3487
- const i = n[r], a = Wi(i, e);
3487
+ const i = n[r], a = Xi(i, e);
3488
3488
  if (a)
3489
- return ji(e, t, a);
3489
+ return $i(e, t, a);
3490
3490
  }
3491
3491
  };
3492
3492
  let un;
3493
- const Ke = Ht({});
3494
- function Xi(e) {
3493
+ const ze = Tt({});
3494
+ function ji(e) {
3495
3495
  return un[e] || null;
3496
3496
  }
3497
- function fr(e) {
3497
+ function cr(e) {
3498
3498
  return e in un;
3499
3499
  }
3500
- function Wi(e, t) {
3501
- if (!fr(e))
3500
+ function Xi(e, t) {
3501
+ if (!cr(e))
3502
3502
  return null;
3503
- const n = Xi(e);
3504
- return $i(n, t);
3503
+ const n = ji(e);
3504
+ return Gi(n, t);
3505
3505
  }
3506
- function zi(e) {
3506
+ function Wi(e) {
3507
3507
  if (e == null)
3508
3508
  return;
3509
- const t = Lt(e);
3509
+ const t = Ht(e);
3510
3510
  for (let n = 0; n < t.length; n++) {
3511
3511
  const r = t[n];
3512
- if (fr(r))
3512
+ if (cr(r))
3513
3513
  return r;
3514
3514
  }
3515
3515
  }
3516
- function dr(e, ...t) {
3517
- delete Te[e], Ke.update((n) => (n[e] = Kr.all([n[e] || {}, ...t]), n));
3516
+ function hr(e, ...t) {
3517
+ delete xe[e], ze.update((n) => (n[e] = Qr.all([n[e] || {}, ...t]), n));
3518
3518
  }
3519
- Qe(
3520
- [Ke],
3519
+ We(
3520
+ [ze],
3521
3521
  ([e]) => Object.keys(e)
3522
3522
  );
3523
- Ke.subscribe((e) => un = e);
3524
- const xt = {};
3525
- function Zi(e, t) {
3526
- xt[e].delete(t), xt[e].size === 0 && delete xt[e];
3523
+ ze.subscribe((e) => un = e);
3524
+ const vt = {};
3525
+ function zi(e, t) {
3526
+ vt[e].delete(t), vt[e].size === 0 && delete vt[e];
3527
3527
  }
3528
- function pr(e) {
3529
- return xt[e];
3528
+ function fr(e) {
3529
+ return vt[e];
3530
3530
  }
3531
- function Qi(e) {
3532
- return Lt(e).map((t) => {
3533
- const n = pr(t);
3531
+ function Zi(e) {
3532
+ return Ht(e).map((t) => {
3533
+ const n = fr(t);
3534
3534
  return [t, n ? [...n] : []];
3535
3535
  }).filter(([, t]) => t.length > 0);
3536
3536
  }
3537
3537
  function tn(e) {
3538
- return e == null ? !1 : Lt(e).some(
3538
+ return e == null ? !1 : Ht(e).some(
3539
3539
  (t) => {
3540
3540
  var n;
3541
- return (n = pr(t)) == null ? void 0 : n.size;
3541
+ return (n = fr(t)) == null ? void 0 : n.size;
3542
3542
  }
3543
3543
  );
3544
3544
  }
3545
- function Ki(e, t) {
3545
+ function Qi(e, t) {
3546
3546
  return Promise.all(
3547
- t.map((r) => (Zi(e, r), r().then((i) => i.default || i)))
3548
- ).then((r) => dr(e, ...r));
3547
+ t.map((r) => (zi(e, r), r().then((i) => i.default || i)))
3548
+ ).then((r) => hr(e, ...r));
3549
3549
  }
3550
- const nt = {};
3551
- function mr(e) {
3550
+ const qe = {};
3551
+ function dr(e) {
3552
3552
  if (!tn(e))
3553
- return e in nt ? nt[e] : Promise.resolve();
3554
- const t = Qi(e);
3555
- return nt[e] = Promise.all(
3553
+ return e in qe ? qe[e] : Promise.resolve();
3554
+ const t = Zi(e);
3555
+ return qe[e] = Promise.all(
3556
3556
  t.map(
3557
- ([n, r]) => Ki(n, r)
3557
+ ([n, r]) => Qi(n, r)
3558
3558
  )
3559
3559
  ).then(() => {
3560
3560
  if (tn(e))
3561
- return mr(e);
3562
- delete nt[e];
3563
- }), nt[e];
3561
+ return dr(e);
3562
+ delete qe[e];
3563
+ }), qe[e];
3564
3564
  }
3565
- const Yi = {
3565
+ const Ki = {
3566
3566
  number: {
3567
3567
  scientific: { notation: "scientific" },
3568
3568
  engineering: { notation: "engineering" },
@@ -3591,183 +3591,183 @@ const Yi = {
3591
3591
  timeZoneName: "short"
3592
3592
  }
3593
3593
  }
3594
- }, Ji = {
3594
+ }, Yi = {
3595
3595
  fallbackLocale: null,
3596
3596
  loadingDelay: 200,
3597
- formats: Yi,
3597
+ formats: Ki,
3598
3598
  warnOnMissingMessages: !0,
3599
3599
  handleMissingMessage: void 0,
3600
3600
  ignoreTag: !0
3601
- }, qi = Ji;
3602
- function Ze() {
3603
- return qi;
3601
+ }, Ji = Yi;
3602
+ function Xe() {
3603
+ return Ji;
3604
3604
  }
3605
- const $t = Ht(!1);
3606
- var ea = Object.defineProperty, ta = Object.defineProperties, na = Object.getOwnPropertyDescriptors, An = Object.getOwnPropertySymbols, ra = Object.prototype.hasOwnProperty, ia = Object.prototype.propertyIsEnumerable, Cn = (e, t, n) => t in e ? ea(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, aa = (e, t) => {
3605
+ const $t = Tt(!1);
3606
+ var qi = Object.defineProperty, ea = Object.defineProperties, ta = Object.getOwnPropertyDescriptors, An = Object.getOwnPropertySymbols, na = Object.prototype.hasOwnProperty, ra = Object.prototype.propertyIsEnumerable, Cn = (e, t, n) => t in e ? qi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ia = (e, t) => {
3607
3607
  for (var n in t || (t = {}))
3608
- ra.call(t, n) && Cn(e, n, t[n]);
3608
+ na.call(t, n) && Cn(e, n, t[n]);
3609
3609
  if (An)
3610
3610
  for (var n of An(t))
3611
- ia.call(t, n) && Cn(e, n, t[n]);
3611
+ ra.call(t, n) && Cn(e, n, t[n]);
3612
3612
  return e;
3613
- }, oa = (e, t) => ta(e, na(t));
3613
+ }, aa = (e, t) => ea(e, ta(t));
3614
3614
  let nn;
3615
- const Tt = Ht(null);
3615
+ const wt = Tt(null);
3616
3616
  function Tn(e) {
3617
3617
  return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3618
3618
  }
3619
- function Lt(e, t = Ze().fallbackLocale) {
3619
+ function Ht(e, t = Xe().fallbackLocale) {
3620
3620
  const n = Tn(e);
3621
3621
  return t ? [.../* @__PURE__ */ new Set([...n, ...Tn(t)])] : n;
3622
3622
  }
3623
- function Ne() {
3623
+ function He() {
3624
3624
  return nn ?? void 0;
3625
3625
  }
3626
- Tt.subscribe((e) => {
3626
+ wt.subscribe((e) => {
3627
3627
  nn = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3628
3628
  });
3629
- const sa = (e) => {
3630
- if (e && zi(e) && tn(e)) {
3631
- const { loadingDelay: t } = Ze();
3629
+ const oa = (e) => {
3630
+ if (e && Wi(e) && tn(e)) {
3631
+ const { loadingDelay: t } = Xe();
3632
3632
  let n;
3633
- return typeof window < "u" && Ne() != null && t ? n = window.setTimeout(
3633
+ return typeof window < "u" && He() != null && t ? n = window.setTimeout(
3634
3634
  () => $t.set(!0),
3635
3635
  t
3636
- ) : $t.set(!0), mr(e).then(() => {
3637
- Tt.set(e);
3636
+ ) : $t.set(!0), dr(e).then(() => {
3637
+ wt.set(e);
3638
3638
  }).finally(() => {
3639
3639
  clearTimeout(n), $t.set(!1);
3640
3640
  });
3641
3641
  }
3642
- return Tt.set(e);
3643
- }, He = oa(aa({}, Tt), {
3644
- set: sa
3645
- }), Nt = (e) => {
3642
+ return wt.set(e);
3643
+ }, we = aa(ia({}, wt), {
3644
+ set: oa
3645
+ }), Pt = (e) => {
3646
3646
  const t = /* @__PURE__ */ Object.create(null);
3647
3647
  return (r) => {
3648
3648
  const i = JSON.stringify(r);
3649
3649
  return i in t ? t[i] : t[i] = e(r);
3650
3650
  };
3651
3651
  };
3652
- var la = Object.defineProperty, Bt = Object.getOwnPropertySymbols, gr = Object.prototype.hasOwnProperty, br = Object.prototype.propertyIsEnumerable, Bn = (e, t, n) => t in e ? la(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, cn = (e, t) => {
3652
+ var sa = Object.defineProperty, At = Object.getOwnPropertySymbols, pr = Object.prototype.hasOwnProperty, mr = Object.prototype.propertyIsEnumerable, Bn = (e, t, n) => t in e ? sa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, cn = (e, t) => {
3653
3653
  for (var n in t || (t = {}))
3654
- gr.call(t, n) && Bn(e, n, t[n]);
3655
- if (Bt)
3656
- for (var n of Bt(t))
3657
- br.call(t, n) && Bn(e, n, t[n]);
3654
+ pr.call(t, n) && Bn(e, n, t[n]);
3655
+ if (At)
3656
+ for (var n of At(t))
3657
+ mr.call(t, n) && Bn(e, n, t[n]);
3658
3658
  return e;
3659
- }, Ye = (e, t) => {
3659
+ }, Ze = (e, t) => {
3660
3660
  var n = {};
3661
3661
  for (var r in e)
3662
- gr.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3663
- if (e != null && Bt)
3664
- for (var r of Bt(e))
3665
- t.indexOf(r) < 0 && br.call(e, r) && (n[r] = e[r]);
3662
+ pr.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3663
+ if (e != null && At)
3664
+ for (var r of At(e))
3665
+ t.indexOf(r) < 0 && mr.call(e, r) && (n[r] = e[r]);
3666
3666
  return n;
3667
3667
  };
3668
- const st = (e, t) => {
3669
- const { formats: n } = Ze();
3668
+ const it = (e, t) => {
3669
+ const { formats: n } = Xe();
3670
3670
  if (e in n && t in n[e])
3671
3671
  return n[e][t];
3672
3672
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3673
- }, ua = Nt(
3673
+ }, la = Pt(
3674
3674
  (e) => {
3675
- var t = e, { locale: n, format: r } = t, i = Ye(t, ["locale", "format"]);
3675
+ var t = e, { locale: n, format: r } = t, i = Ze(t, ["locale", "format"]);
3676
3676
  if (n == null)
3677
3677
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3678
- return r && (i = st("number", r)), new Intl.NumberFormat(n, i);
3678
+ return r && (i = it("number", r)), new Intl.NumberFormat(n, i);
3679
3679
  }
3680
- ), ca = Nt(
3680
+ ), ua = Pt(
3681
3681
  (e) => {
3682
- var t = e, { locale: n, format: r } = t, i = Ye(t, ["locale", "format"]);
3682
+ var t = e, { locale: n, format: r } = t, i = Ze(t, ["locale", "format"]);
3683
3683
  if (n == null)
3684
3684
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3685
- return r ? i = st("date", r) : Object.keys(i).length === 0 && (i = st("date", "short")), new Intl.DateTimeFormat(n, i);
3685
+ return r ? i = it("date", r) : Object.keys(i).length === 0 && (i = it("date", "short")), new Intl.DateTimeFormat(n, i);
3686
3686
  }
3687
- ), ha = Nt(
3687
+ ), ca = Pt(
3688
3688
  (e) => {
3689
- var t = e, { locale: n, format: r } = t, i = Ye(t, ["locale", "format"]);
3689
+ var t = e, { locale: n, format: r } = t, i = Ze(t, ["locale", "format"]);
3690
3690
  if (n == null)
3691
3691
  throw new Error(
3692
3692
  '[svelte-i18n] A "locale" must be set to format time values'
3693
3693
  );
3694
- return r ? i = st("time", r) : Object.keys(i).length === 0 && (i = st("time", "short")), new Intl.DateTimeFormat(n, i);
3694
+ return r ? i = it("time", r) : Object.keys(i).length === 0 && (i = it("time", "short")), new Intl.DateTimeFormat(n, i);
3695
3695
  }
3696
- ), fa = (e = {}) => {
3696
+ ), ha = (e = {}) => {
3697
3697
  var t = e, {
3698
- locale: n = Ne()
3699
- } = t, r = Ye(t, [
3698
+ locale: n = He()
3699
+ } = t, r = Ze(t, [
3700
3700
  "locale"
3701
3701
  ]);
3702
- return ua(cn({ locale: n }, r));
3703
- }, da = (e = {}) => {
3702
+ return la(cn({ locale: n }, r));
3703
+ }, fa = (e = {}) => {
3704
3704
  var t = e, {
3705
- locale: n = Ne()
3706
- } = t, r = Ye(t, [
3705
+ locale: n = He()
3706
+ } = t, r = Ze(t, [
3707
3707
  "locale"
3708
3708
  ]);
3709
- return ca(cn({ locale: n }, r));
3710
- }, pa = (e = {}) => {
3709
+ return ua(cn({ locale: n }, r));
3710
+ }, da = (e = {}) => {
3711
3711
  var t = e, {
3712
- locale: n = Ne()
3713
- } = t, r = Ye(t, [
3712
+ locale: n = He()
3713
+ } = t, r = Ze(t, [
3714
3714
  "locale"
3715
3715
  ]);
3716
- return ha(cn({ locale: n }, r));
3717
- }, ma = Nt(
3716
+ return ca(cn({ locale: n }, r));
3717
+ }, pa = Pt(
3718
3718
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3719
- (e, t = Ne()) => new Gi(e, t, Ze().formats, {
3720
- ignoreTag: Ze().ignoreTag
3719
+ (e, t = He()) => new Vi(e, t, Xe().formats, {
3720
+ ignoreTag: Xe().ignoreTag
3721
3721
  })
3722
- ), ga = (e, t = {}) => {
3722
+ ), ma = (e, t = {}) => {
3723
3723
  var n, r, i, a;
3724
3724
  let o = t;
3725
3725
  typeof e == "object" && (o = e, e = o.id);
3726
3726
  const {
3727
3727
  values: u,
3728
- locale: s = Ne(),
3728
+ locale: s = He(),
3729
3729
  default: l
3730
3730
  } = o;
3731
3731
  if (s == null)
3732
3732
  throw new Error(
3733
3733
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3734
3734
  );
3735
- let c = hr(e, s);
3735
+ let c = ur(e, s);
3736
3736
  if (!c)
3737
- c = (a = (i = (r = (n = Ze()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: s, id: e, defaultValue: l })) != null ? i : l) != null ? a : e;
3737
+ c = (a = (i = (r = (n = Xe()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: s, id: e, defaultValue: l })) != null ? i : l) != null ? a : e;
3738
3738
  else if (typeof c != "string")
3739
3739
  return console.warn(
3740
3740
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3741
3741
  ), c;
3742
3742
  if (!u)
3743
3743
  return c;
3744
- let f = c;
3744
+ let d = c;
3745
3745
  try {
3746
- f = ma(c, s).format(u);
3746
+ d = pa(c, s).format(u);
3747
3747
  } catch (h) {
3748
3748
  h instanceof Error && console.warn(
3749
3749
  `[svelte-i18n] Message "${e}" has syntax error:`,
3750
3750
  h.message
3751
3751
  );
3752
3752
  }
3753
- return f;
3754
- }, ba = (e, t) => pa(t).format(e), ya = (e, t) => da(t).format(e), va = (e, t) => fa(t).format(e), _a = (e, t = Ne()) => hr(e, t), Ea = Qe([He, Ke], () => ga);
3755
- Qe([He], () => ba);
3756
- Qe([He], () => ya);
3757
- Qe([He], () => va);
3758
- Qe([He, Ke], () => _a);
3759
- function xa({ withLocale: e, translations: t }) {
3760
- He.subscribe((n) => {
3761
- n == null && (Ke.set(t), He.set(e));
3753
+ return d;
3754
+ }, ga = (e, t) => da(t).format(e), ba = (e, t) => fa(t).format(e), ya = (e, t) => ha(t).format(e), va = (e, t = He()) => ur(e, t), _a = We([we, ze], () => ma);
3755
+ We([we], () => ga);
3756
+ We([we], () => ba);
3757
+ We([we], () => ya);
3758
+ We([we, ze], () => va);
3759
+ function Ea({ withLocale: e, translations: t }) {
3760
+ we.subscribe((n) => {
3761
+ n == null && (ze.set(t), we.set(e));
3762
3762
  });
3763
3763
  }
3764
3764
  function Sn(e, t) {
3765
- dr(e, t);
3765
+ hr(e, t);
3766
3766
  }
3767
- function wa(e) {
3768
- He.set(e);
3767
+ function xa(e) {
3768
+ we.set(e);
3769
3769
  }
3770
- const R = vr(Ea), Hn = {
3770
+ const R = br(_a), Hn = {
3771
3771
  en: {
3772
3772
  vaultExchange: "Vault Exchange",
3773
3773
  debitPlaceHolder: "Debit amount",
@@ -3874,7 +3874,7 @@ const R = vr(Ea), Hn = {
3874
3874
  10114: "Kullanıcı hesabı aktif değil.",
3875
3875
  10115: "İşlem niyeti bulunamadı."
3876
3876
  }
3877
- }, Aa = {
3877
+ }, wa = {
3878
3878
  "1INCH": "",
3879
3879
  AAVE: "",
3880
3880
  ADA: "₳",
@@ -4150,9 +4150,9 @@ const R = vr(Ea), Hn = {
4150
4150
  ZMK: "",
4151
4151
  ZMW: "",
4152
4152
  ZWD: "Z$"
4153
- }, Ca = 6e3, Ta = {
4153
+ }, Aa = 6e3, Ca = {
4154
4154
  InvalidSession: "Invalid session"
4155
- }, z = {
4155
+ }, K = {
4156
4156
  BalanceError: "BalanceError",
4157
4157
  CheckWalletExchangeError: "CheckWalletExchangeError",
4158
4158
  WalletExchangeError: "WalletExchangeError",
@@ -4167,16 +4167,16 @@ const R = vr(Ea), Hn = {
4167
4167
  }, In = {
4168
4168
  Real: "Real",
4169
4169
  Vault: "Vault"
4170
- }, Ce = {
4170
+ }, Ee = {
4171
4171
  success: "success",
4172
4172
  error: "error"
4173
- }, Ba = String(Number.MAX_SAFE_INTEGER) + 1, yt = {
4173
+ }, Ta = String(Number.MAX_SAFE_INTEGER) + 1, mt = {
4174
4174
  ArrowDown: "ArrowDown",
4175
4175
  ArrowUp: "ArrowUp",
4176
4176
  Enter: "Enter",
4177
4177
  Escape: "Escape"
4178
4178
  };
4179
- function Sa(e, t) {
4179
+ function Ba(e, t) {
4180
4180
  let n;
4181
4181
  return function(...r) {
4182
4182
  n && clearTimeout(n), n = setTimeout(() => {
@@ -4191,7 +4191,7 @@ const Ln = (e, t = null, n = 2) => {
4191
4191
  return console.warn("Failed to stringify:", r), null;
4192
4192
  }
4193
4193
  };
4194
- function Ha(e) {
4194
+ function Sa(e) {
4195
4195
  const t = (n) => {
4196
4196
  e.contains(n.target) || e.dispatchEvent(new CustomEvent("outclick"));
4197
4197
  };
@@ -4201,7 +4201,7 @@ function Ha(e) {
4201
4201
  }
4202
4202
  };
4203
4203
  }
4204
- function Pa(e) {
4204
+ function Ha(e) {
4205
4205
  an(e, "svelte-1fe9nk9", ".selectWrapper.svelte-1fe9nk9.svelte-1fe9nk9{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-1fe9nk9.svelte-1fe9nk9{width:100%;height:100%;cursor:pointer;text-align:left;border:unset;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));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}.label.svelte-1fe9nk9.svelte-1fe9nk9{display:flex;align-items:center}.selectDropdown.svelte-1fe9nk9.svelte-1fe9nk9{position:absolute;top:calc(100% + 2px);left:0;right:0;display:flex;flex-direction:column;gap:4px;max-height:200px;overflow-y:auto;scrollbar-width:thin;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-1fe9nk9 li.svelte-1fe9nk9{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-1fe9nk9 li.svelte-1fe9nk9:hover,.selectDropdown.svelte-1fe9nk9 li.active.svelte-1fe9nk9{background:var(--emw--selected-option, var(--emw-w-color-gray-150, #f0f0f0))}.symbol.svelte-1fe9nk9.svelte-1fe9nk9{display:inline-flex;width:1rem;height:1rem;border-radius:50%;align-items:center;justify-content:center;line-height:0;margin-right:5px;overflow:hidden;background:var(--emw-typography, var(--emw-w-color-gray-450, #595959));font-size:var(--emw--font-size-small, 12px);color:var(--emw--button-typography, var(--emw--color-white, #fff))}");
4206
4206
  }
4207
4207
  function Nn(e, t, n) {
@@ -4215,23 +4215,23 @@ function On(e) {
4215
4215
  ), r;
4216
4216
  return {
4217
4217
  c() {
4218
- t = x("span"), r = W(n), m(t, "class", "symbol svelte-1fe9nk9");
4218
+ t = E("span"), r = z(n), m(t, "class", "symbol svelte-1fe9nk9");
4219
4219
  },
4220
4220
  m(i, a) {
4221
- C(i, t, a), y(t, r);
4221
+ T(i, t, a), y(t, r);
4222
4222
  },
4223
4223
  p(i, a) {
4224
4224
  a & /*selected*/
4225
4225
  1 && n !== (n = /*selected*/
4226
- (i[0]?.symbol || "") + "") && ee(r, n);
4226
+ (i[0]?.symbol || "") + "") && te(r, n);
4227
4227
  },
4228
4228
  d(i) {
4229
- i && A(t);
4229
+ i && C(t);
4230
4230
  }
4231
4231
  };
4232
4232
  }
4233
4233
  function Rn(e) {
4234
- let t, n = At(
4234
+ let t, n = Et(
4235
4235
  /*options*/
4236
4236
  e[1]
4237
4237
  ), r = [];
@@ -4239,13 +4239,13 @@ function Rn(e) {
4239
4239
  r[i] = kn(Nn(e, n, i));
4240
4240
  return {
4241
4241
  c() {
4242
- t = x("ul");
4242
+ t = E("ul");
4243
4243
  for (let i = 0; i < r.length; i += 1)
4244
4244
  r[i].c();
4245
4245
  m(t, "class", "selectDropdown svelte-1fe9nk9");
4246
4246
  },
4247
4247
  m(i, a) {
4248
- C(i, t, a);
4248
+ T(i, t, a);
4249
4249
  for (let o = 0; o < r.length; o += 1)
4250
4250
  r[o] && r[o].m(t, null);
4251
4251
  e[13](t);
@@ -4253,7 +4253,7 @@ function Rn(e) {
4253
4253
  p(i, a) {
4254
4254
  if (a & /*options, selected, activeIndex, handleChange*/
4255
4255
  547) {
4256
- n = At(
4256
+ n = Et(
4257
4257
  /*options*/
4258
4258
  i[1]
4259
4259
  );
@@ -4268,7 +4268,7 @@ function Rn(e) {
4268
4268
  }
4269
4269
  },
4270
4270
  d(i) {
4271
- i && A(t), Xn(r, i), e[13](null);
4271
+ i && C(t), jn(r, i), e[13](null);
4272
4272
  }
4273
4273
  };
4274
4274
  }
@@ -4279,14 +4279,14 @@ function kn(e) {
4279
4279
  ), i, a, o = (
4280
4280
  /*option*/
4281
4281
  e[14]?.currency + ""
4282
- ), u, s, l, c, f;
4282
+ ), u, s, l, c, d;
4283
4283
  return {
4284
4284
  c() {
4285
- t = x("li"), n = x("span"), i = W(r), a = P(), u = W(o), s = P(), m(n, "class", "symbol svelte-1fe9nk9"), m(t, "role", "option"), m(t, "aria-selected", l = /*option*/
4285
+ t = E("li"), n = E("span"), i = z(r), a = I(), u = z(o), s = I(), m(n, "class", "symbol svelte-1fe9nk9"), m(t, "role", "option"), m(t, "aria-selected", l = /*option*/
4286
4286
  e[14]?.currency === /*selected*/
4287
4287
  e[0]?.currency || /*index*/
4288
4288
  e[16] === /*activeIndex*/
4289
- e[5]), m(t, "class", "svelte-1fe9nk9"), oe(
4289
+ e[5]), m(t, "class", "svelte-1fe9nk9"), le(
4290
4290
  t,
4291
4291
  "active",
4292
4292
  /*option*/
@@ -4296,11 +4296,11 @@ function kn(e) {
4296
4296
  e[5]
4297
4297
  );
4298
4298
  },
4299
- m(h, d) {
4300
- C(h, t, d), y(t, n), y(n, i), y(t, a), y(t, u), y(t, s), c || (f = [
4301
- re(t, "keydown", La),
4302
- re(t, "click", function() {
4303
- lt(
4299
+ m(h, p) {
4300
+ T(h, t, p), y(t, n), y(n, i), y(t, a), y(t, u), y(t, s), c || (d = [
4301
+ ie(t, "keydown", Ia),
4302
+ ie(t, "click", function() {
4303
+ at(
4304
4304
  /*handleChange*/
4305
4305
  e[9](
4306
4306
  /*option*/
@@ -4317,18 +4317,18 @@ function kn(e) {
4317
4317
  })
4318
4318
  ], c = !0);
4319
4319
  },
4320
- p(h, d) {
4321
- e = h, d & /*options*/
4320
+ p(h, p) {
4321
+ e = h, p & /*options*/
4322
4322
  2 && r !== (r = /*option*/
4323
- e[14]?.symbol + "") && ee(i, r), d & /*options*/
4323
+ e[14]?.symbol + "") && te(i, r), p & /*options*/
4324
4324
  2 && o !== (o = /*option*/
4325
- e[14]?.currency + "") && ee(u, o), d & /*options, selected, activeIndex*/
4325
+ e[14]?.currency + "") && te(u, o), p & /*options, selected, activeIndex*/
4326
4326
  35 && l !== (l = /*option*/
4327
4327
  e[14]?.currency === /*selected*/
4328
4328
  e[0]?.currency || /*index*/
4329
4329
  e[16] === /*activeIndex*/
4330
- e[5]) && m(t, "aria-selected", l), d & /*options, selected, activeIndex*/
4331
- 35 && oe(
4330
+ e[5]) && m(t, "aria-selected", l), p & /*options, selected, activeIndex*/
4331
+ 35 && le(
4332
4332
  t,
4333
4333
  "active",
4334
4334
  /*option*/
@@ -4339,26 +4339,26 @@ function kn(e) {
4339
4339
  );
4340
4340
  },
4341
4341
  d(h) {
4342
- h && A(t), c = !1, _e(f);
4342
+ h && C(t), c = !1, ve(d);
4343
4343
  }
4344
4344
  };
4345
4345
  }
4346
- function Ia(e) {
4346
+ function Pa(e) {
4347
4347
  let t, n, r, i, a = (
4348
4348
  /*selected*/
4349
4349
  (e[0]?.currency || /*placeholder*/
4350
4350
  e[2]) + ""
4351
- ), o, u, s, l, c, f, h = (
4351
+ ), o, u, s, l, c, d, h = (
4352
4352
  /*selected*/
4353
4353
  e[0]?.symbol && /*withSymbol*/
4354
4354
  e[4] && On(e)
4355
- ), d = (
4355
+ ), p = (
4356
4356
  /*open*/
4357
4357
  e[7] && Rn(e)
4358
4358
  );
4359
4359
  return {
4360
4360
  c() {
4361
- t = x("div"), n = x("button"), r = x("span"), h && h.c(), i = P(), o = W(a), u = P(), s = x("span"), s.innerHTML = '<svg width="12" height="7" viewBox="0 0 12 7" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M0.984228 0.664666C0.928537 0.612038 0.863025 0.570896 0.791433 0.543587C0.719842 0.516278 0.643572 0.503337 0.566979 0.505504C0.490386 0.50767 0.41497 0.524902 0.345037 0.556215C0.275103 0.587527 0.212022 0.632308 0.159395 0.687999C0.106768 0.74369 0.0656252 0.809203 0.0383161 0.880794C0.0110071 0.952386 -0.00193361 1.02866 0.000233093 1.10525C0.0023998 1.18184 0.0196314 1.25726 0.050944 1.32719C0.0822566 1.39712 0.127037 1.46021 0.182728 1.51283L5.43273 6.47117C5.54104 6.57356 5.68443 6.63061 5.83348 6.63061C5.98253 6.63061 6.12592 6.57356 6.23423 6.47117L11.4848 1.51283C11.5417 1.46055 11.5877 1.39748 11.62 1.32729C11.6523 1.2571 11.6704 1.18119 11.6731 1.10396C11.6759 1.02673 11.6633 0.949723 11.636 0.877415C11.6087 0.805107 11.5674 0.738937 11.5143 0.68275C11.4612 0.626563 11.3976 0.581479 11.3269 0.550115C11.2563 0.518751 11.1801 0.501734 11.1029 0.500051C11.0256 0.498369 10.9488 0.512054 10.8769 0.540313C10.8049 0.568572 10.7393 0.610841 10.6839 0.664665L5.83348 5.245L0.984228 0.664666Z" fill="currentColor"></path></svg>', l = P(), d && d.c(), m(r, "class", "label svelte-1fe9nk9"), m(s, "class", "arrow"), oe(
4361
+ t = E("div"), n = E("button"), r = E("span"), h && h.c(), i = I(), o = z(a), u = I(), s = E("span"), s.innerHTML = '<svg width="12" height="7" viewBox="0 0 12 7" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M0.984228 0.664666C0.928537 0.612038 0.863025 0.570896 0.791433 0.543587C0.719842 0.516278 0.643572 0.503337 0.566979 0.505504C0.490386 0.50767 0.41497 0.524902 0.345037 0.556215C0.275103 0.587527 0.212022 0.632308 0.159395 0.687999C0.106768 0.74369 0.0656252 0.809203 0.0383161 0.880794C0.0110071 0.952386 -0.00193361 1.02866 0.000233093 1.10525C0.0023998 1.18184 0.0196314 1.25726 0.050944 1.32719C0.0822566 1.39712 0.127037 1.46021 0.182728 1.51283L5.43273 6.47117C5.54104 6.57356 5.68443 6.63061 5.83348 6.63061C5.98253 6.63061 6.12592 6.57356 6.23423 6.47117L11.4848 1.51283C11.5417 1.46055 11.5877 1.39748 11.62 1.32729C11.6523 1.2571 11.6704 1.18119 11.6731 1.10396C11.6759 1.02673 11.6633 0.949723 11.636 0.877415C11.6087 0.805107 11.5674 0.738937 11.5143 0.68275C11.4612 0.626563 11.3976 0.581479 11.3269 0.550115C11.2563 0.518751 11.1801 0.501734 11.1029 0.500051C11.0256 0.498369 10.9488 0.512054 10.8769 0.540313C10.8049 0.568572 10.7393 0.610841 10.6839 0.664665L5.83348 5.245L0.984228 0.664666Z" fill="currentColor"></path></svg>', l = I(), p && p.c(), m(r, "class", "label svelte-1fe9nk9"), m(s, "class", "arrow"), le(
4362
4362
  s,
4363
4363
  "open",
4364
4364
  /*open*/
@@ -4372,19 +4372,19 @@ function Ia(e) {
4372
4372
  e[3], m(t, "class", "selectWrapper svelte-1fe9nk9");
4373
4373
  },
4374
4374
  m(v, b) {
4375
- C(v, t, b), y(t, n), y(n, r), h && h.m(r, null), y(r, i), y(r, o), y(n, u), y(n, s), y(t, l), d && d.m(t, null), c || (f = [
4376
- re(
4375
+ T(v, t, b), y(t, n), y(n, r), h && h.m(r, null), y(r, i), y(r, o), y(n, u), y(n, s), y(t, l), p && p.m(t, null), c || (d = [
4376
+ ie(
4377
4377
  n,
4378
4378
  "keydown",
4379
4379
  /*handleKeyDown*/
4380
4380
  e[11]
4381
4381
  ),
4382
- re(n, "click", wr(
4382
+ ie(n, "click", xr(
4383
4383
  /*handleToggleDropdown*/
4384
4384
  e[8]
4385
4385
  )),
4386
- _r(Ha.call(null, t)),
4387
- re(
4386
+ yr(Sa.call(null, t)),
4387
+ ie(
4388
4388
  t,
4389
4389
  "outclick",
4390
4390
  /*handleOutClick*/
@@ -4398,8 +4398,8 @@ function Ia(e) {
4398
4398
  v[4] ? h ? h.p(v, b) : (h = On(v), h.c(), h.m(r, i)) : h && (h.d(1), h = null), b & /*selected, placeholder*/
4399
4399
  5 && a !== (a = /*selected*/
4400
4400
  (v[0]?.currency || /*placeholder*/
4401
- v[2]) + "") && ee(o, a), b & /*open*/
4402
- 128 && oe(
4401
+ v[2]) + "") && te(o, a), b & /*open*/
4402
+ 128 && le(
4403
4403
  s,
4404
4404
  "open",
4405
4405
  /*open*/
@@ -4413,35 +4413,35 @@ function Ia(e) {
4413
4413
  ), b & /*disabled*/
4414
4414
  8 && (n.disabled = /*disabled*/
4415
4415
  v[3]), /*open*/
4416
- v[7] ? d ? d.p(v, b) : (d = Rn(v), d.c(), d.m(t, null)) : d && (d.d(1), d = null);
4416
+ v[7] ? p ? p.p(v, b) : (p = Rn(v), p.c(), p.m(t, null)) : p && (p.d(1), p = null);
4417
4417
  },
4418
- i: B,
4419
- o: B,
4418
+ i: S,
4419
+ o: S,
4420
4420
  d(v) {
4421
- v && A(t), h && h.d(), d && d.d(), c = !1, _e(f);
4421
+ v && C(t), h && h.d(), p && p.d(), c = !1, ve(d);
4422
4422
  }
4423
4423
  };
4424
4424
  }
4425
- const La = (e) => e.preventDefault();
4426
- function Na(e, t, n) {
4425
+ const Ia = (e) => e.preventDefault();
4426
+ function La(e, t, n) {
4427
4427
  let { options: r = [] } = t, { selected: i = null } = t, { placeholder: a = R("select") } = t, { disabled: o = !1 } = t, { withSymbol: u = !0 } = t, { onChange: s = () => {
4428
- } } = t, l = -1, c, f = !1;
4428
+ } } = t, l = -1, c, d = !1;
4429
4429
  const h = () => {
4430
- r.length !== 0 && (n(7, f = !f), f && (n(5, l = r.findIndex((E) => E?.currency === i?.currency)), setTimeout(() => c?.focus(), 0)));
4431
- }, d = (E, O) => () => {
4432
- n(7, f = !1), n(0, i = E), s && typeof s == "function" && s(E, O);
4430
+ r.length !== 0 && (n(7, d = !d), d && (n(5, l = r.findIndex((_) => _?.currency === i?.currency)), setTimeout(() => c?.focus(), 0)));
4431
+ }, p = (_, O) => () => {
4432
+ n(7, d = !1), n(0, i = _), s && typeof s == "function" && s(_, O);
4433
4433
  }, v = () => {
4434
- n(7, f = !1);
4435
- }, b = (E) => {
4436
- f && (E.key === yt.ArrowDown ? (E.preventDefault(), n(5, l = (l + 1) % r.length)) : E.key === yt.ArrowUp ? (E.preventDefault(), n(5, l = (l - 1 + r.length) % r.length)) : E.key === yt.Enter ? (E.preventDefault(), d(i, l)()) : E.key === yt.Escape && n(7, f = !1));
4434
+ n(7, d = !1);
4435
+ }, b = (_) => {
4436
+ d && (_.key === mt.ArrowDown ? (_.preventDefault(), n(5, l = (l + 1) % r.length)) : _.key === mt.ArrowUp ? (_.preventDefault(), n(5, l = (l - 1 + r.length) % r.length)) : _.key === mt.Enter ? (_.preventDefault(), p(i, l)()) : _.key === mt.Escape && n(7, d = !1));
4437
4437
  };
4438
- function L(E) {
4439
- Ge[E ? "unshift" : "push"](() => {
4440
- c = E, n(6, c);
4438
+ function N(_) {
4439
+ Fe[_ ? "unshift" : "push"](() => {
4440
+ c = _, n(6, c);
4441
4441
  });
4442
4442
  }
4443
- return e.$$set = (E) => {
4444
- "options" in E && n(1, r = E.options), "selected" in E && n(0, i = E.selected), "placeholder" in E && n(2, a = E.placeholder), "disabled" in E && n(3, o = E.disabled), "withSymbol" in E && n(4, u = E.withSymbol), "onChange" in E && n(12, s = E.onChange);
4443
+ return e.$$set = (_) => {
4444
+ "options" in _ && n(1, r = _.options), "selected" in _ && n(0, i = _.selected), "placeholder" in _ && n(2, a = _.placeholder), "disabled" in _ && n(3, o = _.disabled), "withSymbol" in _ && n(4, u = _.withSymbol), "onChange" in _ && n(12, s = _.onChange);
4445
4445
  }, [
4446
4446
  i,
4447
4447
  r,
@@ -4450,13 +4450,13 @@ function Na(e, t, n) {
4450
4450
  u,
4451
4451
  l,
4452
4452
  c,
4453
- f,
4454
- h,
4455
4453
  d,
4454
+ h,
4455
+ p,
4456
4456
  v,
4457
4457
  b,
4458
4458
  s,
4459
- L
4459
+ N
4460
4460
  ];
4461
4461
  }
4462
4462
  class rn extends ln {
@@ -4464,9 +4464,9 @@ class rn extends ln {
4464
4464
  super(), on(
4465
4465
  this,
4466
4466
  t,
4467
- Na,
4468
- Ia,
4469
- St,
4467
+ La,
4468
+ Pa,
4469
+ Ct,
4470
4470
  {
4471
4471
  options: 1,
4472
4472
  selected: 0,
@@ -4475,376 +4475,103 @@ class rn extends ln {
4475
4475
  withSymbol: 4,
4476
4476
  onChange: 12
4477
4477
  },
4478
- Pa
4478
+ Ha
4479
4479
  );
4480
4480
  }
4481
4481
  get options() {
4482
4482
  return this.$$.ctx[1];
4483
4483
  }
4484
4484
  set options(t) {
4485
- this.$$set({ options: t }), j();
4485
+ this.$$set({ options: t }), G();
4486
4486
  }
4487
4487
  get selected() {
4488
4488
  return this.$$.ctx[0];
4489
4489
  }
4490
4490
  set selected(t) {
4491
- this.$$set({ selected: t }), j();
4491
+ this.$$set({ selected: t }), G();
4492
4492
  }
4493
4493
  get placeholder() {
4494
4494
  return this.$$.ctx[2];
4495
4495
  }
4496
4496
  set placeholder(t) {
4497
- this.$$set({ placeholder: t }), j();
4497
+ this.$$set({ placeholder: t }), G();
4498
4498
  }
4499
4499
  get disabled() {
4500
4500
  return this.$$.ctx[3];
4501
4501
  }
4502
4502
  set disabled(t) {
4503
- this.$$set({ disabled: t }), j();
4503
+ this.$$set({ disabled: t }), G();
4504
4504
  }
4505
4505
  get withSymbol() {
4506
4506
  return this.$$.ctx[4];
4507
4507
  }
4508
4508
  set withSymbol(t) {
4509
- this.$$set({ withSymbol: t }), j();
4509
+ this.$$set({ withSymbol: t }), G();
4510
4510
  }
4511
4511
  get onChange() {
4512
4512
  return this.$$.ctx[12];
4513
4513
  }
4514
4514
  set onChange(t) {
4515
- this.$$set({ onChange: t }), j();
4515
+ this.$$set({ onChange: t }), G();
4516
4516
  }
4517
4517
  }
4518
4518
  sn(rn, { options: {}, selected: {}, placeholder: {}, disabled: { type: "Boolean" }, withSymbol: { type: "Boolean" }, onChange: {} }, [], [], !0);
4519
- function Oa(e) {
4519
+ function Na(e) {
4520
4520
  an(e, "svelte-2fhtvy", ".warningIcon.svelte-2fhtvy{line-height:1;margin-right:0.4rem}");
4521
4521
  }
4522
- function Ra(e) {
4522
+ function Oa(e) {
4523
4523
  let t, n, r = R("balanceUnavailable") + "", i;
4524
4524
  return {
4525
4525
  c() {
4526
- t = x("span"), t.innerHTML = '<svg fill="currentColor" width="20px" height="20px" viewBox="0 0 64 64" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve"><g><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z" style="fill-rule:nonzero;"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z" style="fill-rule:nonzero;"></path></g></svg>', n = P(), i = W(r), m(t, "class", "warningIcon svelte-2fhtvy");
4526
+ t = E("span"), t.innerHTML = '<svg fill="currentColor" width="20px" height="20px" viewBox="0 0 64 64" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve"><g><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z" style="fill-rule:nonzero;"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z" style="fill-rule:nonzero;"></path></g></svg>', n = I(), i = z(r), m(t, "class", "warningIcon svelte-2fhtvy");
4527
4527
  },
4528
4528
  m(a, o) {
4529
- C(a, t, o), C(a, n, o), C(a, i, o);
4529
+ T(a, t, o), T(a, n, o), T(a, i, o);
4530
4530
  },
4531
- p: B,
4532
- i: B,
4533
- o: B,
4531
+ p: S,
4532
+ i: S,
4533
+ o: S,
4534
4534
  d(a) {
4535
- a && (A(t), A(n), A(i));
4535
+ a && (C(t), C(n), C(i));
4536
4536
  }
4537
4537
  };
4538
4538
  }
4539
- class Ot extends ln {
4539
+ class It extends ln {
4540
4540
  constructor(t) {
4541
- super(), on(this, t, null, Ra, St, {}, Oa);
4541
+ super(), on(this, t, null, Oa, Ct, {}, Na);
4542
4542
  }
4543
4543
  }
4544
- sn(Ot, {}, [], [], !0);
4545
- function ka(e) {
4544
+ sn(It, {}, [], [], !0);
4545
+ function Ra(e) {
4546
4546
  an(e, "svelte-vp2pzr", '@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, var(--emw--color-gray-450, #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}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput:focus,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput:focus{outline:none}.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, var(--emw--color-red, #ed0909))}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer.hasError span,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer.hasError span{color:var(--emw--color-error, var(--emw--color-red, #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, var(--emw--color-red, #FF2424))}.playerAccountVault .notificationsContainer.success{color:var(--emw--color-success, var(--emw--color-primary, #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--font-size-small, 12px);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, var(--emw--color-white, #fff))}.playerAccountVault .actionsContainer .exchangeButton:hover{filter:brightness(110%)}.playerAccountVault .actionsContainer .resetButton{background:transparent;color:var(--emw--typography, var(--emw--color-gray-450, #595959));border:2px solid var(--emw--color-primary, #24B04F)}.playerAccountVault .actionsContainer .resetButton:hover{background:var(--emw--color-primary, #24B04F);color:var(--emw--button-typography, var(--emw--color-white, #fff))}.playerAccountVault .actionsContainer .exchangeButton.disabled{cursor:default;filter:none;background:var(--emw--button-disabled, var(--emw--color-gray-450, #595959))}.playerAccountVault .actionsContainer .exchangeButton.disabled:hover{background:var(--emw--button-disabled, var(--emw--color-gray-450, #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}');
4547
4547
  }
4548
4548
  function Dn(e, t, n) {
4549
4549
  const r = e.slice();
4550
- return r[61] = t[n], r;
4550
+ return r[60] = t[n], r;
4551
4551
  }
4552
4552
  function Mn(e) {
4553
- let t, n, r, i, a, o, u, s, l, c, f, h, d, v, b, L, E, O, I, ie, F, te, ae, se, X, he, Oe, le, fe, Ee, Z, Y, de, Je, xe, Re, ut, ke, qe, ne, we = R(
4554
- /*fetchResponse*/
4555
- e[12]?.message || ""
4556
- ) + "", Pe, ge, be, De, J, Ae = R("exchange") + "", ct, ye, q, et, tt, Q = (
4557
- /*showclosebutton*/
4558
- e[3] && Fn(e)
4559
- ), V = (
4560
- /*showtotalbalance*/
4561
- e[2] && Un(e)
4562
- );
4563
- function Rt(g) {
4564
- e[39](g);
4565
- }
4566
- let ht = {
4567
- withSymbol: (
4568
- /*showcurrencysymbol*/
4569
- e[4]
4570
- ),
4571
- disabled: !/*isBalanceFetched*/
4572
- e[16] || !/*isCurrenciesFetched*/
4573
- e[17],
4574
- options: (
4575
- /*optionsFrom*/
4576
- e[21]
4577
- ),
4578
- onChange: (
4579
- /*checkWalletExchangeDebounced*/
4580
- e[26]
4581
- )
4582
- };
4583
- /*selectedCurrencyFrom*/
4584
- e[5] !== void 0 && (ht.selected = /*selectedCurrencyFrom*/
4585
- e[5]), b = new rn({ props: ht }), Ge.push(() => pn(b, "selected", Rt));
4586
- const ft = [Ga, Va], ue = [];
4587
- function dt(g, S) {
4588
- return !/*isBalanceFetched*/
4589
- g[16] || !/*isCurrenciesFetched*/
4590
- g[17] ? 0 : 1;
4591
- }
4592
- O = dt(e), I = ue[O] = ft[O](e);
4593
- function kt(g) {
4594
- e[41](g);
4595
- }
4596
- let pt = {
4597
- withSymbol: (
4598
- /*showcurrencysymbol*/
4599
- e[4]
4600
- ),
4601
- disabled: !/*session*/
4602
- e[0] || !!/*validationError*/
4603
- e[13] || !/*isBalanceFetched*/
4604
- e[16] || !/*isCurrenciesFetched*/
4605
- e[17],
4606
- options: (
4607
- /*optionsTo*/
4608
- e[22]
4609
- ),
4610
- onChange: (
4611
- /*checkWalletExchangeDebounced*/
4612
- e[26]
4613
- )
4614
- };
4615
- /*selectedCurrencyTo*/
4616
- e[6] !== void 0 && (pt.selected = /*selectedCurrencyTo*/
4617
- e[6]), le = new rn({ props: pt }), Ge.push(() => pn(le, "selected", kt));
4618
- const mt = [Wa, Xa], pe = [];
4619
- function p(g, S) {
4620
- return !/*isBalanceFetched*/
4621
- g[16] || !/*isCurrenciesFetched*/
4622
- g[17] ? 0 : 1;
4623
- }
4624
- Z = p(e), Y = pe[Z] = mt[Z](e);
4625
- let _ = (
4626
- /*showvaults*/
4627
- e[1] && Vn(e)
4628
- );
4629
- function N(g, S) {
4630
- return (
4631
- /*fetchResponse*/
4632
- g[12]?.source === z.CheckWalletExchangeError ? Ka : Qa
4633
- );
4634
- }
4635
- let w = N(e), k = w(e);
4636
- return {
4637
- c() {
4638
- t = x("div"), Q && Q.c(), n = P(), r = x("div"), i = x("h1"), i.textContent = `${R("vaultExchange")}`, a = P(), V && V.c(), o = P(), u = x("div"), s = x("div"), l = x("p"), l.textContent = `${R("exchangeFrom")}`, c = P(), f = x("div"), h = x("input"), v = P(), at(b.$$.fragment), E = P(), I.c(), ie = P(), F = x("div"), te = x("p"), te.textContent = `${R("exchangeTo")}`, ae = P(), se = x("div"), X = x("input"), Oe = P(), at(le.$$.fragment), Ee = P(), Y.c(), de = P(), _ && _.c(), Je = P(), xe = x("div"), Re = x("span"), Re.textContent = `${R("feesIncluded")}`, ut = P(), ke = x("span"), k.c(), qe = P(), ne = x("div"), Pe = P(), ge = x("div"), be = x("button"), be.textContent = `${R("reset")}`, De = P(), J = x("button"), ct = W(Ae), m(i, "class", "headerTitle"), m(r, "class", "headerContainer"), m(l, "class", "exchangeHeader"), m(h, "id", "senderInput"), h.disabled = d = !/*session*/
4639
- e[0] || !/*isBalanceFetched*/
4640
- e[16] || !/*isCurrenciesFetched*/
4641
- e[17], m(h, "placeholder", R("debitPlaceHolder")), m(h, "class", "exchangeInput"), m(h, "type", "number"), m(h, "aria-label", "Enter exchange amount"), m(h, "inputmode", "decimal"), m(h, "step", "0.000000000000000001"), m(h, "min", "0"), m(f, "class", "flexingContainerRow"), m(s, "class", "containerExchangeFrom exchangeContainer"), m(te, "class", "exchangeHeader"), m(X, "id", "destinationInput"), X.disabled = he = !/*session*/
4642
- e[0] || !/*isBalanceFetched*/
4643
- e[16] || !/*isCurrenciesFetched*/
4644
- e[17], m(X, "placeholder", R("creditPlaceHolder")), m(X, "class", "exchangeInput"), m(X, "type", "number"), X.readOnly = !0, m(X, "min", "0"), m(se, "class", "flexingContainerRow"), m(F, "class", "containerExchangeTo exchangeContainer"), m(u, "class", "exchangesContainer"), m(Re, "class", "feesLabel"), m(xe, "class", "feesContainer"), m(ne, "class", "notificationsContainer"), oe(
4645
- ne,
4646
- "error",
4647
- /*fetchResponse*/
4648
- e[12]?.type === "error"
4649
- ), oe(
4650
- ne,
4651
- "success",
4652
- /*fetchResponse*/
4653
- e[12]?.type === "success"
4654
- ), m(be, "class", "resetButton"), m(be, "type", "button"), m(J, "type", "button"), m(J, "class", "exchangeButton"), J.disabled = ye = /*isExchangeDisabled*/
4655
- e[14] || /*isExchangePending*/
4656
- e[18] || /*inputExchangeFrom*/
4657
- e[8] === 0 && !/*selectedCurrencyFrom*/
4658
- e[5]?.amount, oe(
4659
- J,
4660
- "disabled",
4661
- /*isExchangeDisabled*/
4662
- e[14] || /*isExchangePending*/
4663
- e[18]
4664
- ), oe(
4665
- J,
4666
- "pending",
4667
- /*isExchangePending*/
4668
- e[18]
4669
- ), m(ge, "class", "actionsContainer"), m(t, "class", "playerAccountVault");
4670
- },
4671
- m(g, S) {
4672
- C(g, t, S), Q && Q.m(t, null), y(t, n), y(t, r), y(r, i), y(r, a), V && V.m(r, null), y(t, o), y(t, u), y(u, s), y(s, l), y(s, c), y(s, f), y(f, h), gt(
4673
- h,
4674
- /*inputExchangeFrom*/
4675
- e[8]
4676
- ), y(f, v), $e(b, f, null), y(s, E), ue[O].m(s, null), y(u, ie), y(u, F), y(F, te), y(F, ae), y(F, se), y(se, X), gt(
4677
- X,
4678
- /*inputExchangeTo*/
4679
- e[9]
4680
- ), y(se, Oe), $e(le, se, null), y(F, Ee), pe[Z].m(F, null), y(t, de), _ && _.m(t, null), y(t, Je), y(t, xe), y(xe, Re), y(xe, ut), y(xe, ke), k.m(ke, null), y(t, qe), y(t, ne), ne.innerHTML = we, y(t, Pe), y(t, ge), y(ge, be), y(ge, De), y(ge, J), y(J, ct), e[42](t), q = !0, et || (tt = [
4681
- re(
4682
- h,
4683
- "input",
4684
- /*input0_input_handler*/
4685
- e[38]
4686
- ),
4687
- re(
4688
- h,
4689
- "input",
4690
- /*handleInputChange*/
4691
- e[27]
4692
- ),
4693
- re(
4694
- h,
4695
- "beforeinput",
4696
- /*handleBeforeInput*/
4697
- e[28]
4698
- ),
4699
- re(
4700
- X,
4701
- "input",
4702
- /*input1_input_handler*/
4703
- e[40]
4704
- ),
4705
- re(
4706
- be,
4707
- "click",
4708
- /*handleResetToDefault*/
4709
- e[25]
4710
- ),
4711
- re(
4712
- J,
4713
- "click",
4714
- /*handleExchange*/
4715
- e[29]
4716
- )
4717
- ], et = !0);
4718
- },
4719
- p(g, S) {
4720
- /*showclosebutton*/
4721
- g[3] ? Q ? Q.p(g, S) : (Q = Fn(g), Q.c(), Q.m(t, n)) : Q && (Q.d(1), Q = null), /*showtotalbalance*/
4722
- g[2] ? V ? (V.p(g, S), S[0] & /*showtotalbalance*/
4723
- 4 && M(V, 1)) : (V = Un(g), V.c(), M(V, 1), V.m(r, null)) : V && (Be(), G(V, 1, 1, () => {
4724
- V = null;
4725
- }), Se()), (!q || S[0] & /*session, isBalanceFetched, isCurrenciesFetched*/
4726
- 196609 && d !== (d = !/*session*/
4727
- g[0] || !/*isBalanceFetched*/
4728
- g[16] || !/*isCurrenciesFetched*/
4729
- g[17])) && (h.disabled = d), S[0] & /*inputExchangeFrom*/
4730
- 256 && wt(h.value) !== /*inputExchangeFrom*/
4731
- g[8] && gt(
4732
- h,
4733
- /*inputExchangeFrom*/
4734
- g[8]
4735
- );
4736
- const Ie = {};
4737
- S[0] & /*showcurrencysymbol*/
4738
- 16 && (Ie.withSymbol = /*showcurrencysymbol*/
4739
- g[4]), S[0] & /*isBalanceFetched, isCurrenciesFetched*/
4740
- 196608 && (Ie.disabled = !/*isBalanceFetched*/
4741
- g[16] || !/*isCurrenciesFetched*/
4742
- g[17]), S[0] & /*optionsFrom*/
4743
- 2097152 && (Ie.options = /*optionsFrom*/
4744
- g[21]), !L && S[0] & /*selectedCurrencyFrom*/
4745
- 32 && (L = !0, Ie.selected = /*selectedCurrencyFrom*/
4746
- g[5], dn(() => L = !1)), b.$set(Ie);
4747
- let $ = O;
4748
- O = dt(g), O === $ ? ue[O].p(g, S) : (Be(), G(ue[$], 1, 1, () => {
4749
- ue[$] = null;
4750
- }), Se(), I = ue[O], I ? I.p(g, S) : (I = ue[O] = ft[O](g), I.c()), M(I, 1), I.m(s, null)), (!q || S[0] & /*session, isBalanceFetched, isCurrenciesFetched*/
4751
- 196609 && he !== (he = !/*session*/
4752
- g[0] || !/*isBalanceFetched*/
4753
- g[16] || !/*isCurrenciesFetched*/
4754
- g[17])) && (X.disabled = he), S[0] & /*inputExchangeTo*/
4755
- 512 && wt(X.value) !== /*inputExchangeTo*/
4756
- g[9] && gt(
4757
- X,
4758
- /*inputExchangeTo*/
4759
- g[9]
4760
- );
4761
- const ce = {};
4762
- S[0] & /*showcurrencysymbol*/
4763
- 16 && (ce.withSymbol = /*showcurrencysymbol*/
4764
- g[4]), S[0] & /*session, validationError, isBalanceFetched, isCurrenciesFetched*/
4765
- 204801 && (ce.disabled = !/*session*/
4766
- g[0] || !!/*validationError*/
4767
- g[13] || !/*isBalanceFetched*/
4768
- g[16] || !/*isCurrenciesFetched*/
4769
- g[17]), S[0] & /*optionsTo*/
4770
- 4194304 && (ce.options = /*optionsTo*/
4771
- g[22]), !fe && S[0] & /*selectedCurrencyTo*/
4772
- 64 && (fe = !0, ce.selected = /*selectedCurrencyTo*/
4773
- g[6], dn(() => fe = !1)), le.$set(ce);
4774
- let ve = Z;
4775
- Z = p(g), Z === ve ? pe[Z].p(g, S) : (Be(), G(pe[ve], 1, 1, () => {
4776
- pe[ve] = null;
4777
- }), Se(), Y = pe[Z], Y ? Y.p(g, S) : (Y = pe[Z] = mt[Z](g), Y.c()), M(Y, 1), Y.m(F, null)), /*showvaults*/
4778
- g[1] ? _ ? _.p(g, S) : (_ = Vn(g), _.c(), _.m(t, Je)) : _ && (_.d(1), _ = null), w === (w = N(g)) && k ? k.p(g, S) : (k.d(1), k = w(g), k && (k.c(), k.m(ke, null))), (!q || S[0] & /*fetchResponse*/
4779
- 4096) && we !== (we = R(
4780
- /*fetchResponse*/
4781
- g[12]?.message || ""
4782
- ) + "") && (ne.innerHTML = we), (!q || S[0] & /*fetchResponse*/
4783
- 4096) && oe(
4784
- ne,
4785
- "error",
4786
- /*fetchResponse*/
4787
- g[12]?.type === "error"
4788
- ), (!q || S[0] & /*fetchResponse*/
4789
- 4096) && oe(
4790
- ne,
4791
- "success",
4792
- /*fetchResponse*/
4793
- g[12]?.type === "success"
4794
- ), (!q || S[0] & /*isExchangeDisabled, isExchangePending, inputExchangeFrom, selectedCurrencyFrom*/
4795
- 278816 && ye !== (ye = /*isExchangeDisabled*/
4796
- g[14] || /*isExchangePending*/
4797
- g[18] || /*inputExchangeFrom*/
4798
- g[8] === 0 && !/*selectedCurrencyFrom*/
4799
- g[5]?.amount)) && (J.disabled = ye), (!q || S[0] & /*isExchangeDisabled, isExchangePending*/
4800
- 278528) && oe(
4801
- J,
4802
- "disabled",
4803
- /*isExchangeDisabled*/
4804
- g[14] || /*isExchangePending*/
4805
- g[18]
4806
- ), (!q || S[0] & /*isExchangePending*/
4807
- 262144) && oe(
4808
- J,
4809
- "pending",
4810
- /*isExchangePending*/
4811
- g[18]
4812
- );
4813
- },
4814
- i(g) {
4815
- q || (M(V), M(b.$$.fragment, g), M(I), M(le.$$.fragment, g), M(Y), q = !0);
4816
- },
4817
- o(g) {
4818
- G(V), G(b.$$.fragment, g), G(I), G(le.$$.fragment, g), G(Y), q = !1;
4819
- },
4820
- d(g) {
4821
- g && A(t), Q && Q.d(), V && V.d(), je(b), ue[O].d(), je(le), pe[Z].d(), _ && _.d(), k.d(), e[42](null), et = !1, _e(tt);
4822
- }
4823
- };
4824
- }
4825
- function Fn(e) {
4826
4553
  let t, n, r;
4827
4554
  return {
4828
4555
  c() {
4829
- t = x("button"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M13.414 12l4.95-4.95-1.414-1.414-4.95 4.95-4.95-4.95L5.636 7.05l4.95 4.95-4.95 4.95 1.414 1.414 4.95-4.95 4.95 4.95 1.414-1.414-4.95-4.95z"></path></svg>', m(t, "type", "button"), m(t, "class", "closeButton");
4556
+ t = E("button"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M13.414 12l4.95-4.95-1.414-1.414-4.95 4.95-4.95-4.95L5.636 7.05l4.95 4.95-4.95 4.95 1.414 1.414 4.95-4.95 4.95 4.95 1.414-1.414-4.95-4.95z"></path></svg>', m(t, "type", "button"), m(t, "class", "closeButton");
4830
4557
  },
4831
4558
  m(i, a) {
4832
- C(i, t, a), n || (r = re(
4559
+ T(i, t, a), n || (r = ie(
4833
4560
  t,
4834
4561
  "click",
4835
4562
  /*handleCloseWidget*/
4836
- e[24]
4563
+ e[23]
4837
4564
  ), n = !0);
4838
4565
  },
4839
- p: B,
4566
+ p: S,
4840
4567
  d(i) {
4841
- i && A(t), n = !1, r();
4568
+ i && C(t), n = !1, r();
4842
4569
  }
4843
4570
  };
4844
4571
  }
4845
- function Un(e) {
4572
+ function Fn(e) {
4846
4573
  let t, n, r, i;
4847
- const a = [Ma, Da], o = [];
4574
+ const a = [Da, ka], o = [];
4848
4575
  function u(s, l) {
4849
4576
  return !/*isBalanceFetched*/
4850
4577
  s[16] || !/*isCurrenciesFetched*/
@@ -4852,79 +4579,79 @@ function Un(e) {
4852
4579
  }
4853
4580
  return t = u(e), n = o[t] = a[t](e), {
4854
4581
  c() {
4855
- n.c(), r = Wn();
4582
+ n.c(), r = Er();
4856
4583
  },
4857
4584
  m(s, l) {
4858
- o[t].m(s, l), C(s, r, l), i = !0;
4585
+ o[t].m(s, l), T(s, r, l), i = !0;
4859
4586
  },
4860
4587
  p(s, l) {
4861
4588
  let c = t;
4862
- t = u(s), t === c ? o[t].p(s, l) : (Be(), G(o[c], 1, 1, () => {
4589
+ t = u(s), t === c ? o[t].p(s, l) : (Be(), W(o[c], 1, 1, () => {
4863
4590
  o[c] = null;
4864
- }), Se(), n = o[t], n ? n.p(s, l) : (n = o[t] = a[t](s), n.c()), M(n, 1), n.m(r.parentNode, r));
4591
+ }), Se(), n = o[t], n ? n.p(s, l) : (n = o[t] = a[t](s), n.c()), U(n, 1), n.m(r.parentNode, r));
4865
4592
  },
4866
4593
  i(s) {
4867
- i || (M(n), i = !0);
4594
+ i || (U(n), i = !0);
4868
4595
  },
4869
4596
  o(s) {
4870
- G(n), i = !1;
4597
+ W(n), i = !1;
4871
4598
  },
4872
4599
  d(s) {
4873
- s && A(r), o[t].d(s);
4600
+ s && C(r), o[t].d(s);
4874
4601
  }
4875
4602
  };
4876
4603
  }
4877
- function Da(e) {
4604
+ function ka(e) {
4878
4605
  let t, n, r, i;
4879
- const a = [Ua, Fa], o = [];
4606
+ const a = [Fa, Ma], o = [];
4880
4607
  function u(s, l) {
4881
4608
  return (
4882
4609
  /*fetchResponse*/
4883
- s[12]?.source === z.BalanceError ? 0 : 1
4610
+ s[12]?.source === K.BalanceError ? 0 : 1
4884
4611
  );
4885
4612
  }
4886
4613
  return n = u(e), r = o[n] = a[n](e), {
4887
4614
  c() {
4888
- t = x("div"), r.c(), m(t, "class", "headerPlayerBalance amountContainer");
4615
+ t = E("div"), r.c(), m(t, "class", "headerPlayerBalance amountContainer");
4889
4616
  },
4890
4617
  m(s, l) {
4891
- C(s, t, l), o[n].m(t, null), i = !0;
4618
+ T(s, t, l), o[n].m(t, null), i = !0;
4892
4619
  },
4893
4620
  p(s, l) {
4894
4621
  let c = n;
4895
- n = u(s), n === c ? o[n].p(s, l) : (Be(), G(o[c], 1, 1, () => {
4622
+ n = u(s), n === c ? o[n].p(s, l) : (Be(), W(o[c], 1, 1, () => {
4896
4623
  o[c] = null;
4897
- }), Se(), r = o[n], r ? r.p(s, l) : (r = o[n] = a[n](s), r.c()), M(r, 1), r.m(t, null));
4624
+ }), Se(), r = o[n], r ? r.p(s, l) : (r = o[n] = a[n](s), r.c()), U(r, 1), r.m(t, null));
4898
4625
  },
4899
4626
  i(s) {
4900
- i || (M(r), i = !0);
4627
+ i || (U(r), i = !0);
4901
4628
  },
4902
4629
  o(s) {
4903
- G(r), i = !1;
4630
+ W(r), i = !1;
4904
4631
  },
4905
4632
  d(s) {
4906
- s && A(t), o[n].d();
4633
+ s && C(t), o[n].d();
4907
4634
  }
4908
4635
  };
4909
4636
  }
4910
- function Ma(e) {
4637
+ function Da(e) {
4911
4638
  let t;
4912
4639
  return {
4913
4640
  c() {
4914
- t = x("div"), m(t, "class", "skeleton");
4641
+ t = E("div"), m(t, "class", "skeleton");
4915
4642
  },
4916
4643
  m(n, r) {
4917
- C(n, t, r);
4644
+ T(n, t, r);
4918
4645
  },
4919
- p: B,
4920
- i: B,
4921
- o: B,
4646
+ p: S,
4647
+ i: S,
4648
+ o: S,
4922
4649
  d(n) {
4923
- n && A(t);
4650
+ n && C(t);
4924
4651
  }
4925
4652
  };
4926
4653
  }
4927
- function Fa(e) {
4654
+ function Ma(e) {
4928
4655
  let t, n, r = (
4929
4656
  /*playerBalance*/
4930
4657
  (e[10]?.amount || 0) + ""
@@ -4934,109 +4661,109 @@ function Fa(e) {
4934
4661
  ), u;
4935
4662
  return {
4936
4663
  c() {
4937
- t = x("span"), t.textContent = `${R("totalBalance")}`, n = P(), i = W(r), a = P(), u = W(o), m(t, "class", "totalAmount");
4664
+ t = E("span"), t.textContent = `${R("totalBalance")}`, n = I(), i = z(r), a = I(), u = z(o), m(t, "class", "totalAmount");
4938
4665
  },
4939
4666
  m(s, l) {
4940
- C(s, t, l), C(s, n, l), C(s, i, l), C(s, a, l), C(s, u, l);
4667
+ T(s, t, l), T(s, n, l), T(s, i, l), T(s, a, l), T(s, u, l);
4941
4668
  },
4942
4669
  p(s, l) {
4943
4670
  l[0] & /*playerBalance*/
4944
4671
  1024 && r !== (r = /*playerBalance*/
4945
- (s[10]?.amount || 0) + "") && ee(i, r), l[0] & /*playerBalance*/
4672
+ (s[10]?.amount || 0) + "") && te(i, r), l[0] & /*playerBalance*/
4946
4673
  1024 && o !== (o = /*playerBalance*/
4947
- (s[10]?.currency || "") + "") && ee(u, o);
4674
+ (s[10]?.currency || "") + "") && te(u, o);
4948
4675
  },
4949
- i: B,
4950
- o: B,
4676
+ i: S,
4677
+ o: S,
4951
4678
  d(s) {
4952
- s && (A(t), A(n), A(i), A(a), A(u));
4679
+ s && (C(t), C(n), C(i), C(a), C(u));
4953
4680
  }
4954
4681
  };
4955
4682
  }
4956
- function Ua(e) {
4683
+ function Fa(e) {
4957
4684
  let t, n;
4958
- return t = new Ot({}), {
4685
+ return t = new It({}), {
4959
4686
  c() {
4960
- at(t.$$.fragment);
4687
+ nt(t.$$.fragment);
4961
4688
  },
4962
4689
  m(r, i) {
4963
- $e(t, r, i), n = !0;
4690
+ Ue(t, r, i), n = !0;
4964
4691
  },
4965
- p: B,
4692
+ p: S,
4966
4693
  i(r) {
4967
- n || (M(t.$$.fragment, r), n = !0);
4694
+ n || (U(t.$$.fragment, r), n = !0);
4968
4695
  },
4969
4696
  o(r) {
4970
- G(t.$$.fragment, r), n = !1;
4697
+ W(t.$$.fragment, r), n = !1;
4971
4698
  },
4972
4699
  d(r) {
4973
- je(t, r);
4700
+ Ve(t, r);
4974
4701
  }
4975
4702
  };
4976
4703
  }
4977
- function Va(e) {
4704
+ function Ua(e) {
4978
4705
  let t, n, r, i, a, o, u, s, l;
4979
- const c = [ja, $a], f = [];
4980
- function h(d, v) {
4706
+ const c = [$a, Ga], d = [];
4707
+ function h(p, v) {
4981
4708
  return (
4982
4709
  /*fetchResponse*/
4983
- d[12]?.source === z.BalanceError ? 0 : 1
4710
+ p[12]?.source === K.BalanceError ? 0 : 1
4984
4711
  );
4985
4712
  }
4986
- return o = h(e), u = f[o] = c[o](e), {
4713
+ return o = h(e), u = d[o] = c[o](e), {
4987
4714
  c() {
4988
- t = x("div"), n = x("p"), r = W(
4715
+ t = E("div"), n = E("p"), r = z(
4989
4716
  /*validationError*/
4990
4717
  e[13]
4991
- ), i = P(), a = x("div"), u.c(), m(n, "class", "validationError"), m(a, "class", "playerBalance amountContainer"), m(t, "class", s = "balanceContainer " + /*validationError*/
4718
+ ), i = I(), a = E("div"), u.c(), m(n, "class", "validationError"), m(a, "class", "playerBalance amountContainer"), m(t, "class", s = "balanceContainer " + /*validationError*/
4992
4719
  (e[13] ? "hasError" : ""));
4993
4720
  },
4994
- m(d, v) {
4995
- C(d, t, v), y(t, n), y(n, r), y(t, i), y(t, a), f[o].m(a, null), l = !0;
4721
+ m(p, v) {
4722
+ T(p, t, v), y(t, n), y(n, r), y(t, i), y(t, a), d[o].m(a, null), l = !0;
4996
4723
  },
4997
- p(d, v) {
4724
+ p(p, v) {
4998
4725
  (!l || v[0] & /*validationError*/
4999
- 8192) && ee(
4726
+ 8192) && te(
5000
4727
  r,
5001
4728
  /*validationError*/
5002
- d[13]
4729
+ p[13]
5003
4730
  );
5004
4731
  let b = o;
5005
- o = h(d), o === b ? f[o].p(d, v) : (Be(), G(f[b], 1, 1, () => {
5006
- f[b] = null;
5007
- }), Se(), u = f[o], u ? u.p(d, v) : (u = f[o] = c[o](d), u.c()), M(u, 1), u.m(a, null)), (!l || v[0] & /*validationError*/
4732
+ o = h(p), o === b ? d[o].p(p, v) : (Be(), W(d[b], 1, 1, () => {
4733
+ d[b] = null;
4734
+ }), Se(), u = d[o], u ? u.p(p, v) : (u = d[o] = c[o](p), u.c()), U(u, 1), u.m(a, null)), (!l || v[0] & /*validationError*/
5008
4735
  8192 && s !== (s = "balanceContainer " + /*validationError*/
5009
- (d[13] ? "hasError" : ""))) && m(t, "class", s);
4736
+ (p[13] ? "hasError" : ""))) && m(t, "class", s);
5010
4737
  },
5011
- i(d) {
5012
- l || (M(u), l = !0);
4738
+ i(p) {
4739
+ l || (U(u), l = !0);
5013
4740
  },
5014
- o(d) {
5015
- G(u), l = !1;
4741
+ o(p) {
4742
+ W(u), l = !1;
5016
4743
  },
5017
- d(d) {
5018
- d && A(t), f[o].d();
4744
+ d(p) {
4745
+ p && C(t), d[o].d();
5019
4746
  }
5020
4747
  };
5021
4748
  }
5022
- function Ga(e) {
4749
+ function Va(e) {
5023
4750
  let t;
5024
4751
  return {
5025
4752
  c() {
5026
- t = x("div"), m(t, "class", "skeleton");
4753
+ t = E("div"), m(t, "class", "skeleton");
5027
4754
  },
5028
4755
  m(n, r) {
5029
- C(n, t, r);
4756
+ T(n, t, r);
5030
4757
  },
5031
- p: B,
5032
- i: B,
5033
- o: B,
4758
+ p: S,
4759
+ i: S,
4760
+ o: S,
5034
4761
  d(n) {
5035
- n && A(t);
4762
+ n && C(t);
5036
4763
  }
5037
4764
  };
5038
4765
  }
5039
- function $a(e) {
4766
+ function Ga(e) {
5040
4767
  let t, n, r = (
5041
4768
  /*selectedCurrencyFrom*/
5042
4769
  (e[5]?.amount || 0) + ""
@@ -5046,97 +4773,97 @@ function $a(e) {
5046
4773
  ), u;
5047
4774
  return {
5048
4775
  c() {
5049
- t = x("span"), t.textContent = `${R("currentBalance")}`, n = P(), i = W(r), a = P(), u = W(o), m(t, "class", "amount");
4776
+ t = E("span"), t.textContent = `${R("currentBalance")}`, n = I(), i = z(r), a = I(), u = z(o), m(t, "class", "amount");
5050
4777
  },
5051
4778
  m(s, l) {
5052
- C(s, t, l), C(s, n, l), C(s, i, l), C(s, a, l), C(s, u, l);
4779
+ T(s, t, l), T(s, n, l), T(s, i, l), T(s, a, l), T(s, u, l);
5053
4780
  },
5054
4781
  p(s, l) {
5055
4782
  l[0] & /*selectedCurrencyFrom*/
5056
4783
  32 && r !== (r = /*selectedCurrencyFrom*/
5057
- (s[5]?.amount || 0) + "") && ee(i, r), l[0] & /*selectedCurrencyFrom*/
4784
+ (s[5]?.amount || 0) + "") && te(i, r), l[0] & /*selectedCurrencyFrom*/
5058
4785
  32 && o !== (o = /*selectedCurrencyFrom*/
5059
- (s[5]?.currency || "") + "") && ee(u, o);
4786
+ (s[5]?.currency || "") + "") && te(u, o);
5060
4787
  },
5061
- i: B,
5062
- o: B,
4788
+ i: S,
4789
+ o: S,
5063
4790
  d(s) {
5064
- s && (A(t), A(n), A(i), A(a), A(u));
4791
+ s && (C(t), C(n), C(i), C(a), C(u));
5065
4792
  }
5066
4793
  };
5067
4794
  }
5068
- function ja(e) {
4795
+ function $a(e) {
5069
4796
  let t, n;
5070
- return t = new Ot({}), {
4797
+ return t = new It({}), {
5071
4798
  c() {
5072
- at(t.$$.fragment);
4799
+ nt(t.$$.fragment);
5073
4800
  },
5074
4801
  m(r, i) {
5075
- $e(t, r, i), n = !0;
4802
+ Ue(t, r, i), n = !0;
5076
4803
  },
5077
- p: B,
4804
+ p: S,
5078
4805
  i(r) {
5079
- n || (M(t.$$.fragment, r), n = !0);
4806
+ n || (U(t.$$.fragment, r), n = !0);
5080
4807
  },
5081
4808
  o(r) {
5082
- G(t.$$.fragment, r), n = !1;
4809
+ W(t.$$.fragment, r), n = !1;
5083
4810
  },
5084
4811
  d(r) {
5085
- je(t, r);
4812
+ Ve(t, r);
5086
4813
  }
5087
4814
  };
5088
4815
  }
5089
- function Xa(e) {
4816
+ function ja(e) {
5090
4817
  let t, n, r, i;
5091
- const a = [Za, za], o = [];
4818
+ const a = [za, Wa], o = [];
5092
4819
  function u(s, l) {
5093
4820
  return (
5094
4821
  /*fetchResponse*/
5095
- s[12]?.source === z.BalanceError ? 0 : 1
4822
+ s[12]?.source === K.BalanceError ? 0 : 1
5096
4823
  );
5097
4824
  }
5098
4825
  return n = u(e), r = o[n] = a[n](e), {
5099
4826
  c() {
5100
- t = x("div"), r.c(), m(t, "class", "playerBalance amountContainer");
4827
+ t = E("div"), r.c(), m(t, "class", "playerBalance amountContainer");
5101
4828
  },
5102
4829
  m(s, l) {
5103
- C(s, t, l), o[n].m(t, null), i = !0;
4830
+ T(s, t, l), o[n].m(t, null), i = !0;
5104
4831
  },
5105
4832
  p(s, l) {
5106
4833
  let c = n;
5107
- n = u(s), n === c ? o[n].p(s, l) : (Be(), G(o[c], 1, 1, () => {
4834
+ n = u(s), n === c ? o[n].p(s, l) : (Be(), W(o[c], 1, 1, () => {
5108
4835
  o[c] = null;
5109
- }), Se(), r = o[n], r ? r.p(s, l) : (r = o[n] = a[n](s), r.c()), M(r, 1), r.m(t, null));
4836
+ }), Se(), r = o[n], r ? r.p(s, l) : (r = o[n] = a[n](s), r.c()), U(r, 1), r.m(t, null));
5110
4837
  },
5111
4838
  i(s) {
5112
- i || (M(r), i = !0);
4839
+ i || (U(r), i = !0);
5113
4840
  },
5114
4841
  o(s) {
5115
- G(r), i = !1;
4842
+ W(r), i = !1;
5116
4843
  },
5117
4844
  d(s) {
5118
- s && A(t), o[n].d();
4845
+ s && C(t), o[n].d();
5119
4846
  }
5120
4847
  };
5121
4848
  }
5122
- function Wa(e) {
4849
+ function Xa(e) {
5123
4850
  let t;
5124
4851
  return {
5125
4852
  c() {
5126
- t = x("div"), m(t, "class", "skeleton");
4853
+ t = E("div"), m(t, "class", "skeleton");
5127
4854
  },
5128
4855
  m(n, r) {
5129
- C(n, t, r);
4856
+ T(n, t, r);
5130
4857
  },
5131
- p: B,
5132
- i: B,
5133
- o: B,
4858
+ p: S,
4859
+ i: S,
4860
+ o: S,
5134
4861
  d(n) {
5135
- n && A(t);
4862
+ n && C(t);
5136
4863
  }
5137
4864
  };
5138
4865
  }
5139
- function za(e) {
4866
+ function Wa(e) {
5140
4867
  let t, n, r = (
5141
4868
  /*selectedCurrencyTo*/
5142
4869
  (e[6]?.amount || 0) + ""
@@ -5146,495 +4873,737 @@ function za(e) {
5146
4873
  ), u;
5147
4874
  return {
5148
4875
  c() {
5149
- t = x("span"), t.textContent = `${R("currentBalance")}`, n = P(), i = W(r), a = P(), u = W(o), m(t, "class", "amount");
4876
+ t = E("span"), t.textContent = `${R("currentBalance")}`, n = I(), i = z(r), a = I(), u = z(o), m(t, "class", "amount");
5150
4877
  },
5151
4878
  m(s, l) {
5152
- C(s, t, l), C(s, n, l), C(s, i, l), C(s, a, l), C(s, u, l);
4879
+ T(s, t, l), T(s, n, l), T(s, i, l), T(s, a, l), T(s, u, l);
5153
4880
  },
5154
4881
  p(s, l) {
5155
4882
  l[0] & /*selectedCurrencyTo*/
5156
4883
  64 && r !== (r = /*selectedCurrencyTo*/
5157
- (s[6]?.amount || 0) + "") && ee(i, r), l[0] & /*selectedCurrencyTo*/
4884
+ (s[6]?.amount || 0) + "") && te(i, r), l[0] & /*selectedCurrencyTo*/
5158
4885
  64 && o !== (o = /*selectedCurrencyTo*/
5159
- (s[6]?.currency || "") + "") && ee(u, o);
4886
+ (s[6]?.currency || "") + "") && te(u, o);
5160
4887
  },
5161
- i: B,
5162
- o: B,
4888
+ i: S,
4889
+ o: S,
5163
4890
  d(s) {
5164
- s && (A(t), A(n), A(i), A(a), A(u));
4891
+ s && (C(t), C(n), C(i), C(a), C(u));
5165
4892
  }
5166
4893
  };
5167
4894
  }
5168
- function Za(e) {
4895
+ function za(e) {
5169
4896
  let t, n;
5170
- return t = new Ot({}), {
4897
+ return t = new It({}), {
5171
4898
  c() {
5172
- at(t.$$.fragment);
4899
+ nt(t.$$.fragment);
5173
4900
  },
5174
4901
  m(r, i) {
5175
- $e(t, r, i), n = !0;
4902
+ Ue(t, r, i), n = !0;
5176
4903
  },
5177
- p: B,
4904
+ p: S,
5178
4905
  i(r) {
5179
- n || (M(t.$$.fragment, r), n = !0);
4906
+ n || (U(t.$$.fragment, r), n = !0);
5180
4907
  },
5181
4908
  o(r) {
5182
- G(t.$$.fragment, r), n = !1;
4909
+ W(t.$$.fragment, r), n = !1;
5183
4910
  },
5184
4911
  d(r) {
5185
- je(t, r);
4912
+ Ve(t, r);
5186
4913
  }
5187
4914
  };
5188
4915
  }
5189
- function Vn(e) {
5190
- let t, n, r, i, a, o, u, s, l, c, f = At(
4916
+ function Un(e) {
4917
+ let t, n, r, i, a, o, u, s, l, c, d = Et(
5191
4918
  /*dropDownVaults*/
5192
- e[20]
4919
+ e[19]
5193
4920
  ), h = [];
5194
- for (let d = 0; d < f.length; d += 1)
5195
- h[d] = Gn(Dn(e, f, d));
4921
+ for (let p = 0; p < d.length; p += 1)
4922
+ h[p] = Vn(Dn(e, d, p));
5196
4923
  return {
5197
4924
  c() {
5198
- t = x("div"), n = x("button"), r = fn("svg"), i = fn("path"), o = P(), u = x("div");
5199
- for (let d = 0; d < h.length; d += 1)
5200
- h[d].c();
4925
+ t = E("div"), n = E("button"), r = fn("svg"), i = fn("path"), o = I(), u = E("div");
4926
+ for (let p = 0; p < h.length; p += 1)
4927
+ h[p].c();
5201
4928
  m(i, "d", "M0.984228 0.664666C0.928537 0.612038 0.863025 0.570896 0.791433 0.543587C0.719842 0.516278 0.643572 0.503337 0.566979 0.505504C0.490386 0.50767 0.41497 0.524902 0.345037 0.556215C0.275103 0.587527 0.212022 0.632308 0.159395 0.687999C0.106768 0.74369 0.0656252 0.809203 0.0383161 0.880794C0.0110071 0.952386 -0.00193361 1.02866 0.000233093 1.10525C0.0023998 1.18184 0.0196314 1.25726 0.050944 1.32719C0.0822566 1.39712 0.127037 1.46021 0.182728 1.51283L5.43273 6.47117C5.54104 6.57356 5.68443 6.63061 5.83348 6.63061C5.98253 6.63061 6.12592 6.57356 6.23423 6.47117L11.4848 1.51283C11.5417 1.46055 11.5877 1.39748 11.62 1.32729C11.6523 1.2571 11.6704 1.18119 11.6731 1.10396C11.6759 1.02673 11.6633 0.949723 11.636 0.877415C11.6087 0.805107 11.5674 0.738937 11.5143 0.68275C11.4612 0.626563 11.3976 0.581479 11.3269 0.550115C11.2563 0.518751 11.1801 0.501734 11.1029 0.500051C11.0256 0.498369 10.9488 0.512054 10.8769 0.540313C10.8049 0.568572 10.7393 0.610841 10.6839 0.664665L5.83348 5.245L0.984228 0.664666Z"), m(i, "fill", "currentColor"), m(r, "class", "vaultToggleIcon"), m(r, "width", "12"), m(r, "height", "7"), m(r, "viewBox", "0 0 12 7"), m(r, "fill", "currentColor"), m(r, "xmlns", "http://www.w3.org/2000/svg"), m(n, "type", "button"), m(n, "class", a = "vaultToggleButton " + /*isVaultDropDownToggled*/
5202
4929
  (e[15] && /*dropDownVaults*/
5203
- e[20].length > 0 ? "active" : "")), m(u, "class", s = "vaultDropdown " + /*isVaultDropDownToggled*/
4930
+ e[19].length > 0 ? "active" : "")), m(u, "class", s = "vaultDropdown " + /*isVaultDropDownToggled*/
5204
4931
  (e[15] && /*dropDownVaults*/
5205
- e[20].length > 0 ? "expanded" : "")), m(t, "class", "vaultsContainer");
4932
+ e[19].length > 0 ? "expanded" : "")), m(t, "class", "vaultsContainer");
5206
4933
  },
5207
- m(d, v) {
5208
- C(d, t, v), y(t, n), y(n, r), y(r, i), y(t, o), y(t, u);
4934
+ m(p, v) {
4935
+ T(p, t, v), y(t, n), y(n, r), y(r, i), y(t, o), y(t, u);
5209
4936
  for (let b = 0; b < h.length; b += 1)
5210
4937
  h[b] && h[b].m(u, null);
5211
- l || (c = re(
4938
+ l || (c = ie(
5212
4939
  n,
5213
4940
  "click",
5214
4941
  /*handleToggleVaultDropdown*/
5215
- e[23]
4942
+ e[22]
5216
4943
  ), l = !0);
5217
4944
  },
5218
- p(d, v) {
4945
+ p(p, v) {
5219
4946
  if (v[0] & /*isVaultDropDownToggled, dropDownVaults*/
5220
- 1081344 && a !== (a = "vaultToggleButton " + /*isVaultDropDownToggled*/
5221
- (d[15] && /*dropDownVaults*/
5222
- d[20].length > 0 ? "active" : "")) && m(n, "class", a), v[0] & /*dropDownVaults*/
5223
- 1048576) {
5224
- f = At(
4947
+ 557056 && a !== (a = "vaultToggleButton " + /*isVaultDropDownToggled*/
4948
+ (p[15] && /*dropDownVaults*/
4949
+ p[19].length > 0 ? "active" : "")) && m(n, "class", a), v[0] & /*dropDownVaults*/
4950
+ 524288) {
4951
+ d = Et(
5225
4952
  /*dropDownVaults*/
5226
- d[20]
4953
+ p[19]
5227
4954
  );
5228
4955
  let b;
5229
- for (b = 0; b < f.length; b += 1) {
5230
- const L = Dn(d, f, b);
5231
- h[b] ? h[b].p(L, v) : (h[b] = Gn(L), h[b].c(), h[b].m(u, null));
4956
+ for (b = 0; b < d.length; b += 1) {
4957
+ const N = Dn(p, d, b);
4958
+ h[b] ? h[b].p(N, v) : (h[b] = Vn(N), h[b].c(), h[b].m(u, null));
5232
4959
  }
5233
4960
  for (; b < h.length; b += 1)
5234
4961
  h[b].d(1);
5235
- h.length = f.length;
4962
+ h.length = d.length;
5236
4963
  }
5237
4964
  v[0] & /*isVaultDropDownToggled, dropDownVaults*/
5238
- 1081344 && s !== (s = "vaultDropdown " + /*isVaultDropDownToggled*/
5239
- (d[15] && /*dropDownVaults*/
5240
- d[20].length > 0 ? "expanded" : "")) && m(u, "class", s);
4965
+ 557056 && s !== (s = "vaultDropdown " + /*isVaultDropDownToggled*/
4966
+ (p[15] && /*dropDownVaults*/
4967
+ p[19].length > 0 ? "expanded" : "")) && m(u, "class", s);
5241
4968
  },
5242
- d(d) {
5243
- d && A(t), Xn(h, d), l = !1, c();
4969
+ d(p) {
4970
+ p && C(t), jn(h, p), l = !1, c();
5244
4971
  }
5245
4972
  };
5246
4973
  }
5247
- function Gn(e) {
4974
+ function Vn(e) {
5248
4975
  let t, n, r = (
5249
4976
  /*vault*/
5250
- e[61]?.currency + ""
4977
+ e[60]?.currency + ""
5251
4978
  ), i, a, o, u = (
5252
4979
  /*vault*/
5253
- e[61]?.amount + ""
4980
+ e[60]?.amount + ""
5254
4981
  ), s, l;
5255
4982
  return {
5256
4983
  c() {
5257
- t = x("div"), n = x("p"), i = W(r), a = P(), o = x("p"), s = W(u), l = P(), m(t, "class", "vaultItem");
4984
+ t = E("div"), n = E("p"), i = z(r), a = I(), o = E("p"), s = z(u), l = I(), m(t, "class", "vaultItem");
5258
4985
  },
5259
- m(c, f) {
5260
- C(c, t, f), y(t, n), y(n, i), y(t, a), y(t, o), y(o, s), y(t, l);
4986
+ m(c, d) {
4987
+ T(c, t, d), y(t, n), y(n, i), y(t, a), y(t, o), y(o, s), y(t, l);
5261
4988
  },
5262
- p(c, f) {
5263
- f[0] & /*dropDownVaults*/
5264
- 1048576 && r !== (r = /*vault*/
5265
- c[61]?.currency + "") && ee(i, r), f[0] & /*dropDownVaults*/
5266
- 1048576 && u !== (u = /*vault*/
5267
- c[61]?.amount + "") && ee(s, u);
4989
+ p(c, d) {
4990
+ d[0] & /*dropDownVaults*/
4991
+ 524288 && r !== (r = /*vault*/
4992
+ c[60]?.currency + "") && te(i, r), d[0] & /*dropDownVaults*/
4993
+ 524288 && u !== (u = /*vault*/
4994
+ c[60]?.amount + "") && te(s, u);
5268
4995
  },
5269
4996
  d(c) {
5270
- c && A(t);
4997
+ c && C(t);
5271
4998
  }
5272
4999
  };
5273
5000
  }
5274
- function Qa(e) {
5001
+ function Za(e) {
5275
5002
  let t = `${/*currentFee*/
5276
5003
  e[11]?.amount || 0} ${/*currentFee*/
5277
5004
  e[11]?.currency || ""}`, n;
5278
5005
  return {
5279
5006
  c() {
5280
- n = W(t);
5007
+ n = z(t);
5281
5008
  },
5282
5009
  m(r, i) {
5283
- C(r, n, i);
5010
+ T(r, n, i);
5284
5011
  },
5285
5012
  p(r, i) {
5286
5013
  i[0] & /*currentFee*/
5287
5014
  2048 && t !== (t = `${/*currentFee*/
5288
5015
  r[11]?.amount || 0} ${/*currentFee*/
5289
- r[11]?.currency || ""}`) && ee(n, t);
5016
+ r[11]?.currency || ""}`) && te(n, t);
5290
5017
  },
5291
5018
  d(r) {
5292
- r && A(n);
5019
+ r && C(n);
5293
5020
  }
5294
5021
  };
5295
5022
  }
5296
- function Ka(e) {
5023
+ function Qa(e) {
5297
5024
  let t = R("feesUnavailable") + "", n;
5298
5025
  return {
5299
5026
  c() {
5300
- n = W(t);
5027
+ n = z(t);
5301
5028
  },
5302
5029
  m(r, i) {
5303
- C(r, n, i);
5030
+ T(r, n, i);
5304
5031
  },
5305
- p: B,
5032
+ p: S,
5306
5033
  d(r) {
5307
- r && A(n);
5034
+ r && C(n);
5308
5035
  }
5309
5036
  };
5310
5037
  }
5311
- function Ya(e) {
5312
- let t, n, r = (
5313
- /*showComponent*/
5314
- e[19] && Mn(e)
5038
+ function Ka(e) {
5039
+ let t, n, r, i, a, o, u, s, l, c, d, h, p, v, b, N, _, O, L, ae, D, ne, oe, ue, $, he, Pe, Y, me, Qe, J, j, ot, Ke, _e, Ie, st, Ae, Le, re, ge = R(
5040
+ /*fetchResponse*/
5041
+ e[12]?.message || ""
5042
+ ) + "", Ye, be, fe, lt, X, Lt = R("exchange") + "", Ce, Ne, ee, Oe, Nt, Q = (
5043
+ /*showclosebutton*/
5044
+ e[3] && Mn(e)
5045
+ ), V = (
5046
+ /*showtotalbalance*/
5047
+ e[2] && Fn(e)
5315
5048
  );
5049
+ function Ot(g) {
5050
+ e[38](g);
5051
+ }
5052
+ let ut = {
5053
+ withSymbol: (
5054
+ /*showcurrencysymbol*/
5055
+ e[4]
5056
+ ),
5057
+ disabled: !/*isBalanceFetched*/
5058
+ e[16] || !/*isCurrenciesFetched*/
5059
+ e[17],
5060
+ options: (
5061
+ /*optionsFrom*/
5062
+ e[20]
5063
+ ),
5064
+ onChange: (
5065
+ /*checkWalletExchangeDebounced*/
5066
+ e[25]
5067
+ )
5068
+ };
5069
+ /*selectedCurrencyFrom*/
5070
+ e[5] !== void 0 && (ut.selected = /*selectedCurrencyFrom*/
5071
+ e[5]), b = new rn({ props: ut }), Fe.push(() => pn(b, "selected", Ot));
5072
+ const Je = [Va, Ua], de = [];
5073
+ function ct(g, H) {
5074
+ return !/*isBalanceFetched*/
5075
+ g[16] || !/*isCurrenciesFetched*/
5076
+ g[17] ? 0 : 1;
5077
+ }
5078
+ O = ct(e), L = de[O] = Je[O](e);
5079
+ function Rt(g) {
5080
+ e[40](g);
5081
+ }
5082
+ let ht = {
5083
+ withSymbol: (
5084
+ /*showcurrencysymbol*/
5085
+ e[4]
5086
+ ),
5087
+ disabled: !/*session*/
5088
+ e[0] || !!/*validationError*/
5089
+ e[13] || !/*isBalanceFetched*/
5090
+ e[16] || !/*isCurrenciesFetched*/
5091
+ e[17],
5092
+ options: (
5093
+ /*optionsTo*/
5094
+ e[21]
5095
+ ),
5096
+ onChange: (
5097
+ /*checkWalletExchangeDebounced*/
5098
+ e[25]
5099
+ )
5100
+ };
5101
+ /*selectedCurrencyTo*/
5102
+ e[6] !== void 0 && (ht.selected = /*selectedCurrencyTo*/
5103
+ e[6]), Y = new rn({ props: ht }), Fe.push(() => pn(Y, "selected", Rt));
5104
+ const ft = [Xa, ja], f = [];
5105
+ function x(g, H) {
5106
+ return !/*isBalanceFetched*/
5107
+ g[16] || !/*isCurrenciesFetched*/
5108
+ g[17] ? 0 : 1;
5109
+ }
5110
+ J = x(e), j = f[J] = ft[J](e);
5111
+ let w = (
5112
+ /*showvaults*/
5113
+ e[1] && Un(e)
5114
+ );
5115
+ function A(g, H) {
5116
+ return (
5117
+ /*fetchResponse*/
5118
+ g[12]?.source === K.CheckWalletExchangeError ? Qa : Za
5119
+ );
5120
+ }
5121
+ let Z = A(e), se = Z(e);
5316
5122
  return {
5317
5123
  c() {
5318
- r && r.c(), t = Wn();
5124
+ t = E("div"), Q && Q.c(), n = I(), r = E("div"), i = E("h1"), i.textContent = `${R("vaultExchange")}`, a = I(), V && V.c(), o = I(), u = E("div"), s = E("div"), l = E("p"), l.textContent = `${R("exchangeFrom")}`, c = I(), d = E("div"), h = E("input"), v = I(), nt(b.$$.fragment), _ = I(), L.c(), ae = I(), D = E("div"), ne = E("p"), ne.textContent = `${R("exchangeTo")}`, oe = I(), ue = E("div"), $ = E("input"), Pe = I(), nt(Y.$$.fragment), Qe = I(), j.c(), ot = I(), w && w.c(), Ke = I(), _e = E("div"), Ie = E("span"), Ie.textContent = `${R("feesIncluded")}`, st = I(), Ae = E("span"), se.c(), Le = I(), re = E("div"), Ye = I(), be = E("div"), fe = E("button"), fe.textContent = `${R("reset")}`, lt = I(), X = E("button"), Ce = z(Lt), m(i, "class", "headerTitle"), m(r, "class", "headerContainer"), m(l, "class", "exchangeHeader"), m(h, "id", "senderInput"), h.disabled = p = !/*session*/
5125
+ e[0] || !/*isBalanceFetched*/
5126
+ e[16] || !/*isCurrenciesFetched*/
5127
+ e[17], m(h, "placeholder", R("debitPlaceHolder")), m(h, "class", "exchangeInput"), m(h, "type", "number"), m(h, "aria-label", "Enter exchange amount"), m(h, "inputmode", "decimal"), m(h, "step", "0.000000000000000001"), m(h, "min", "0"), m(d, "class", "flexingContainerRow"), m(s, "class", "containerExchangeFrom exchangeContainer"), m(ne, "class", "exchangeHeader"), m($, "id", "destinationInput"), $.disabled = he = !/*session*/
5128
+ e[0] || !/*isBalanceFetched*/
5129
+ e[16] || !/*isCurrenciesFetched*/
5130
+ e[17], m($, "placeholder", R("creditPlaceHolder")), m($, "class", "exchangeInput"), m($, "type", "number"), $.readOnly = !0, m($, "min", "0"), m(ue, "class", "flexingContainerRow"), m(D, "class", "containerExchangeTo exchangeContainer"), m(u, "class", "exchangesContainer"), m(Ie, "class", "feesLabel"), m(_e, "class", "feesContainer"), m(re, "class", "notificationsContainer"), le(
5131
+ re,
5132
+ "error",
5133
+ /*fetchResponse*/
5134
+ e[12]?.type === "error"
5135
+ ), le(
5136
+ re,
5137
+ "success",
5138
+ /*fetchResponse*/
5139
+ e[12]?.type === "success"
5140
+ ), m(fe, "class", "resetButton"), m(fe, "type", "button"), m(X, "type", "button"), m(X, "class", "exchangeButton"), X.disabled = Ne = /*isExchangeDisabled*/
5141
+ e[14] || /*isExchangePending*/
5142
+ e[18] || /*inputExchangeFrom*/
5143
+ e[8] === 0 && !/*selectedCurrencyFrom*/
5144
+ e[5]?.amount, le(
5145
+ X,
5146
+ "disabled",
5147
+ /*isExchangeDisabled*/
5148
+ e[14] || /*isExchangePending*/
5149
+ e[18]
5150
+ ), le(
5151
+ X,
5152
+ "pending",
5153
+ /*isExchangePending*/
5154
+ e[18]
5155
+ ), m(be, "class", "actionsContainer"), m(t, "class", "playerAccountVault");
5319
5156
  },
5320
- m(i, a) {
5321
- r && r.m(i, a), C(i, t, a), n = !0;
5157
+ m(g, H) {
5158
+ T(g, t, H), Q && Q.m(t, null), y(t, n), y(t, r), y(r, i), y(r, a), V && V.m(r, null), y(t, o), y(t, u), y(u, s), y(s, l), y(s, c), y(s, d), y(d, h), dt(
5159
+ h,
5160
+ /*inputExchangeFrom*/
5161
+ e[8]
5162
+ ), y(d, v), Ue(b, d, null), y(s, _), de[O].m(s, null), y(u, ae), y(u, D), y(D, ne), y(D, oe), y(D, ue), y(ue, $), dt(
5163
+ $,
5164
+ /*inputExchangeTo*/
5165
+ e[9]
5166
+ ), y(ue, Pe), Ue(Y, ue, null), y(D, Qe), f[J].m(D, null), y(t, ot), w && w.m(t, null), y(t, Ke), y(t, _e), y(_e, Ie), y(_e, st), y(_e, Ae), se.m(Ae, null), y(t, Le), y(t, re), re.innerHTML = ge, y(t, Ye), y(t, be), y(be, fe), y(be, lt), y(be, X), y(X, Ce), e[41](t), ee = !0, Oe || (Nt = [
5167
+ ie(
5168
+ h,
5169
+ "input",
5170
+ /*input0_input_handler*/
5171
+ e[37]
5172
+ ),
5173
+ ie(
5174
+ h,
5175
+ "input",
5176
+ /*handleInputChange*/
5177
+ e[26]
5178
+ ),
5179
+ ie(
5180
+ h,
5181
+ "beforeinput",
5182
+ /*handleBeforeInput*/
5183
+ e[27]
5184
+ ),
5185
+ ie(
5186
+ $,
5187
+ "input",
5188
+ /*input1_input_handler*/
5189
+ e[39]
5190
+ ),
5191
+ ie(
5192
+ fe,
5193
+ "click",
5194
+ /*handleResetToDefault*/
5195
+ e[24]
5196
+ ),
5197
+ ie(
5198
+ X,
5199
+ "click",
5200
+ /*handleExchange*/
5201
+ e[28]
5202
+ )
5203
+ ], Oe = !0);
5322
5204
  },
5323
- p(i, a) {
5324
- /*showComponent*/
5325
- i[19] ? r ? (r.p(i, a), a[0] & /*showComponent*/
5326
- 524288 && M(r, 1)) : (r = Mn(i), r.c(), M(r, 1), r.m(t.parentNode, t)) : r && (Be(), G(r, 1, 1, () => {
5327
- r = null;
5328
- }), Se());
5205
+ p(g, H) {
5206
+ /*showclosebutton*/
5207
+ g[3] ? Q ? Q.p(g, H) : (Q = Mn(g), Q.c(), Q.m(t, n)) : Q && (Q.d(1), Q = null), /*showtotalbalance*/
5208
+ g[2] ? V ? (V.p(g, H), H[0] & /*showtotalbalance*/
5209
+ 4 && U(V, 1)) : (V = Fn(g), V.c(), U(V, 1), V.m(r, null)) : V && (Be(), W(V, 1, 1, () => {
5210
+ V = null;
5211
+ }), Se()), (!ee || H[0] & /*session, isBalanceFetched, isCurrenciesFetched*/
5212
+ 196609 && p !== (p = !/*session*/
5213
+ g[0] || !/*isBalanceFetched*/
5214
+ g[16] || !/*isCurrenciesFetched*/
5215
+ g[17])) && (h.disabled = p), H[0] & /*inputExchangeFrom*/
5216
+ 256 && _t(h.value) !== /*inputExchangeFrom*/
5217
+ g[8] && dt(
5218
+ h,
5219
+ /*inputExchangeFrom*/
5220
+ g[8]
5221
+ );
5222
+ const M = {};
5223
+ H[0] & /*showcurrencysymbol*/
5224
+ 16 && (M.withSymbol = /*showcurrencysymbol*/
5225
+ g[4]), H[0] & /*isBalanceFetched, isCurrenciesFetched*/
5226
+ 196608 && (M.disabled = !/*isBalanceFetched*/
5227
+ g[16] || !/*isCurrenciesFetched*/
5228
+ g[17]), H[0] & /*optionsFrom*/
5229
+ 1048576 && (M.options = /*optionsFrom*/
5230
+ g[20]), !N && H[0] & /*selectedCurrencyFrom*/
5231
+ 32 && (N = !0, M.selected = /*selectedCurrencyFrom*/
5232
+ g[5], dn(() => N = !1)), b.$set(M);
5233
+ let ye = O;
5234
+ O = ct(g), O === ye ? de[O].p(g, H) : (Be(), W(de[ye], 1, 1, () => {
5235
+ de[ye] = null;
5236
+ }), Se(), L = de[O], L ? L.p(g, H) : (L = de[O] = Je[O](g), L.c()), U(L, 1), L.m(s, null)), (!ee || H[0] & /*session, isBalanceFetched, isCurrenciesFetched*/
5237
+ 196609 && he !== (he = !/*session*/
5238
+ g[0] || !/*isBalanceFetched*/
5239
+ g[16] || !/*isCurrenciesFetched*/
5240
+ g[17])) && ($.disabled = he), H[0] & /*inputExchangeTo*/
5241
+ 512 && _t($.value) !== /*inputExchangeTo*/
5242
+ g[9] && dt(
5243
+ $,
5244
+ /*inputExchangeTo*/
5245
+ g[9]
5246
+ );
5247
+ const ce = {};
5248
+ H[0] & /*showcurrencysymbol*/
5249
+ 16 && (ce.withSymbol = /*showcurrencysymbol*/
5250
+ g[4]), H[0] & /*session, validationError, isBalanceFetched, isCurrenciesFetched*/
5251
+ 204801 && (ce.disabled = !/*session*/
5252
+ g[0] || !!/*validationError*/
5253
+ g[13] || !/*isBalanceFetched*/
5254
+ g[16] || !/*isCurrenciesFetched*/
5255
+ g[17]), H[0] & /*optionsTo*/
5256
+ 2097152 && (ce.options = /*optionsTo*/
5257
+ g[21]), !me && H[0] & /*selectedCurrencyTo*/
5258
+ 64 && (me = !0, ce.selected = /*selectedCurrencyTo*/
5259
+ g[6], dn(() => me = !1)), Y.$set(ce);
5260
+ let kt = J;
5261
+ J = x(g), J === kt ? f[J].p(g, H) : (Be(), W(f[kt], 1, 1, () => {
5262
+ f[kt] = null;
5263
+ }), Se(), j = f[J], j ? j.p(g, H) : (j = f[J] = ft[J](g), j.c()), U(j, 1), j.m(D, null)), /*showvaults*/
5264
+ g[1] ? w ? w.p(g, H) : (w = Un(g), w.c(), w.m(t, Ke)) : w && (w.d(1), w = null), Z === (Z = A(g)) && se ? se.p(g, H) : (se.d(1), se = Z(g), se && (se.c(), se.m(Ae, null))), (!ee || H[0] & /*fetchResponse*/
5265
+ 4096) && ge !== (ge = R(
5266
+ /*fetchResponse*/
5267
+ g[12]?.message || ""
5268
+ ) + "") && (re.innerHTML = ge), (!ee || H[0] & /*fetchResponse*/
5269
+ 4096) && le(
5270
+ re,
5271
+ "error",
5272
+ /*fetchResponse*/
5273
+ g[12]?.type === "error"
5274
+ ), (!ee || H[0] & /*fetchResponse*/
5275
+ 4096) && le(
5276
+ re,
5277
+ "success",
5278
+ /*fetchResponse*/
5279
+ g[12]?.type === "success"
5280
+ ), (!ee || H[0] & /*isExchangeDisabled, isExchangePending, inputExchangeFrom, selectedCurrencyFrom*/
5281
+ 278816 && Ne !== (Ne = /*isExchangeDisabled*/
5282
+ g[14] || /*isExchangePending*/
5283
+ g[18] || /*inputExchangeFrom*/
5284
+ g[8] === 0 && !/*selectedCurrencyFrom*/
5285
+ g[5]?.amount)) && (X.disabled = Ne), (!ee || H[0] & /*isExchangeDisabled, isExchangePending*/
5286
+ 278528) && le(
5287
+ X,
5288
+ "disabled",
5289
+ /*isExchangeDisabled*/
5290
+ g[14] || /*isExchangePending*/
5291
+ g[18]
5292
+ ), (!ee || H[0] & /*isExchangePending*/
5293
+ 262144) && le(
5294
+ X,
5295
+ "pending",
5296
+ /*isExchangePending*/
5297
+ g[18]
5298
+ );
5329
5299
  },
5330
- i(i) {
5331
- n || (M(r), n = !0);
5300
+ i(g) {
5301
+ ee || (U(V), U(b.$$.fragment, g), U(L), U(Y.$$.fragment, g), U(j), ee = !0);
5332
5302
  },
5333
- o(i) {
5334
- G(r), n = !1;
5303
+ o(g) {
5304
+ W(V), W(b.$$.fragment, g), W(L), W(Y.$$.fragment, g), W(j), ee = !1;
5335
5305
  },
5336
- d(i) {
5337
- i && A(t), r && r.d(i);
5306
+ d(g) {
5307
+ g && C(t), Q && Q.d(), V && V.d(), Ve(b), de[O].d(), Ve(Y), f[J].d(), w && w.d(), se.d(), e[41](null), Oe = !1, ve(Nt);
5338
5308
  }
5339
5309
  };
5340
5310
  }
5341
- function Ja(e, t, n) {
5342
- let { session: r = "" } = t, { userid: i = "" } = t, { endpoint: a = "" } = t, { lang: o = "en" } = t, { clientstyling: u = "" } = t, { clientstylingurl: s = "" } = t, { translationurl: l = "" } = t, { playercurrency: c = "" } = t, { showvaults: f = !0 } = t, { showtotalbalance: h = !0 } = t, { showclosebutton: d = !0 } = t, { showcurrencysymbol: v = !0 } = t, b = null, L = null, E = 0, O = 0, I = null, ie = null, F = null, te = "", ae = !0, se = !1, X = !1, he = !1, Oe = !1, le = !0, fe = [], Ee = [], Z = [], Y = [], de;
5343
- xa({ withLocale: "en", translations: {} }), Object.keys(Hn).forEach((p) => {
5344
- Sn(p, Hn[p]);
5311
+ function Ya(e, t, n) {
5312
+ let { session: r = "" } = t, { userid: i = "" } = t, { endpoint: a = "" } = t, { lang: o = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: s = "" } = t, { translationurl: l = "" } = t, { playercurrency: c = "" } = t, { showvaults: d } = t, { showtotalbalance: h } = t, { showclosebutton: p } = t, { showcurrencysymbol: v } = t, b = null, N = null, _ = 0, O = 0, L = null, ae = null, D = null, ne = "", oe = !0, ue = !1, $ = !1, he = !1, Pe = !1, Y = [], me = [], Qe = [], J = [], j;
5313
+ Ea({ withLocale: "en", translations: {} }), Object.keys(Hn).forEach((f) => {
5314
+ Sn(f, Hn[f]);
5345
5315
  });
5346
- const Je = () => {
5347
- wa(o);
5348
- }, xe = () => {
5349
- fetch(l).then((p) => p.json()).then((p) => {
5350
- Object.keys(p).forEach((_) => {
5351
- Sn(_, p[_]);
5316
+ const ot = () => {
5317
+ xa(o);
5318
+ }, Ke = () => {
5319
+ fetch(l).then((f) => f.json()).then((f) => {
5320
+ Object.keys(f).forEach((x) => {
5321
+ Sn(x, f[x]);
5352
5322
  });
5353
- }).catch((p) => {
5354
- console.error("There was a problem with the translations request.", p);
5323
+ }).catch((f) => {
5324
+ console.error("There was a problem with the translations request.", f);
5355
5325
  });
5356
- }, Re = () => {
5357
- let p = document.createElement("style");
5358
- p.innerHTML = u, de.appendChild(p);
5359
- }, ut = () => {
5360
- let p, _ = new URL(s), N = document.createElement("style");
5361
- fetch(_.href).then((w) => w.text()).then((w) => {
5362
- N.innerHTML = w, p && clearTimeout(p), p = setTimeout(
5326
+ }, _e = () => {
5327
+ let f = document.createElement("style");
5328
+ f.innerHTML = u, j.appendChild(f);
5329
+ }, Ie = () => {
5330
+ let f, x = new URL(s), w = document.createElement("style");
5331
+ fetch(x.href).then((A) => A.text()).then((A) => {
5332
+ w.innerHTML = A, f && clearTimeout(f), f = setTimeout(
5363
5333
  () => {
5364
- de.appendChild(N);
5334
+ j.appendChild(w);
5365
5335
  },
5366
5336
  1
5367
5337
  );
5368
5338
  });
5369
- }, ke = () => {
5370
- Ee.length !== 0 && (n(15, se = !se), window.postMessage(
5339
+ }, st = () => {
5340
+ me.length !== 0 && (n(15, ue = !ue), window.postMessage(
5371
5341
  {
5372
5342
  type: jt.VaultDropdownToggled,
5373
- state: se
5343
+ state: ue
5374
5344
  },
5375
5345
  window.location.href
5376
5346
  ));
5377
- }, qe = () => {
5378
- n(19, le = !1), window.postMessage(
5347
+ }, Ae = () => {
5348
+ window.postMessage(
5379
5349
  {
5380
5350
  type: jt.VaultWidgetClosed
5381
5351
  },
5382
5352
  window.location.href
5383
5353
  );
5384
- }, ne = () => {
5385
- n(14, ae = !0), Pe(), ge(), be(), De(), window.postMessage({ type: jt.VaultWidgetReset }, window.location.href);
5386
- }, we = () => {
5387
- n(14, ae = !0), n(9, O = 0);
5388
- }, Pe = () => {
5389
- n(11, ie = null);
5354
+ }, Le = () => {
5355
+ n(14, oe = !0), ge(), Ye(), be(), fe(), window.postMessage({ type: jt.VaultWidgetReset }, window.location.href);
5356
+ }, re = () => {
5357
+ n(14, oe = !0), n(9, O = 0);
5390
5358
  }, ge = () => {
5391
- n(8, E = 0), n(9, O = 0);
5359
+ n(11, ae = null);
5360
+ }, Ye = () => {
5361
+ n(8, _ = 0), n(9, O = 0);
5392
5362
  }, be = () => {
5393
- n(13, te = "");
5394
- }, De = () => {
5395
- n(12, F = null);
5396
- }, J = (p) => {
5397
- p && n(13, te = p);
5398
- }, Ae = ({ type: p, message: _, source: N = "" }) => {
5399
- let w;
5400
- switch (n(12, F = { message: _, source: N, type: p }), p) {
5401
- case Ce.error:
5402
- n(14, ae = !0), window.postMessage({ type: N, data: { type: p, message: _ } }, window.location.href);
5363
+ n(13, ne = "");
5364
+ }, fe = () => {
5365
+ n(12, D = null);
5366
+ }, lt = (f) => {
5367
+ f && n(13, ne = f);
5368
+ }, X = ({ type: f, message: x, source: w = "" }) => {
5369
+ let A;
5370
+ switch (n(12, D = { message: x, source: w, type: f }), f) {
5371
+ case Ee.error:
5372
+ n(14, oe = !0), window.postMessage({ type: w, data: { type: f, message: x } }, window.location.href);
5403
5373
  break;
5404
- case Ce.success:
5405
- n(14, ae = !0), window.postMessage({ type: N, data: { type: p, message: _ } }, window.location.href), w && clearTimeout(w), w = setTimeout(
5374
+ case Ee.success:
5375
+ n(14, oe = !0), window.postMessage({ type: w, data: { type: f, message: x } }, window.location.href), A && clearTimeout(A), A = setTimeout(
5406
5376
  () => {
5407
- De();
5377
+ fe();
5408
5378
  },
5409
- Ca
5379
+ Aa
5410
5380
  );
5411
5381
  break;
5412
5382
  }
5413
- }, ct = () => new Promise((p, _) => {
5414
- const N = F?.message.includes(Ta.InvalidSession);
5415
- N && _(), (E < 0 || E === null || isNaN(Number(E))) && (we(), Pe(), _(R("invalidValue"))), E > b?.amount && (we(), Pe(), _(R("exceededValue"))), E === 0 && E === 0 && !N && (ne(), _()), (!b || !L) && !N && _(), be(), p();
5416
- }), ye = async (p, _) => {
5417
- const N = await p.json();
5418
- return p?.status >= 200 && p?.status < 400 ? N : (_ === z.CheckWalletExchangeError && we(), !X && _ === z.BalanceError && (n(16, X = !0), n(17, he = !0)), !he && _ === z.CurrenciesError && n(17, he = !0), Ae({
5419
- type: Ce.error,
5420
- message: R(N?.thirdPartyResponse?.code) || R(N?.thirdPartyResponse?.errorCode) || "generalError",
5421
- source: _
5383
+ }, Lt = () => new Promise((f, x) => {
5384
+ const w = D?.message.includes(Ca.InvalidSession);
5385
+ w && x(), (_ < 0 || _ === null || isNaN(Number(_))) && (re(), ge(), x(R("invalidValue"))), _ > b?.amount && (re(), ge(), x(R("exceededValue"))), _ === 0 && _ === 0 && !w && (Le(), x()), (!b || !N) && !w && x(), be(), f();
5386
+ }), Ce = async (f, x) => {
5387
+ const w = await f.json();
5388
+ return f?.status >= 200 && f?.status < 400 ? w : (x === K.CheckWalletExchangeError && re(), !$ && x === K.BalanceError && (n(16, $ = !0), n(17, he = !0)), !he && x === K.CurrenciesError && n(17, he = !0), X({
5389
+ type: Ee.error,
5390
+ message: R(w?.thirdPartyResponse?.code) || R(w?.thirdPartyResponse?.errorCode) || "generalError",
5391
+ source: x
5422
5392
  }));
5423
- }, q = () => new Promise((p, _) => {
5424
- const N = new URL(`${a}/v1/player/${i}/wallet-exchange/currencies`);
5425
- fetch(N, {
5393
+ }, Ne = () => new Promise((f, x) => {
5394
+ const w = new URL(`${a}/v1/player/${i}/wallet-exchange/currencies`);
5395
+ fetch(w, {
5426
5396
  method: "GET",
5427
5397
  headers: {
5428
5398
  "X-SessionId": r,
5429
5399
  "Content-Type": "application/json",
5430
5400
  Accept: "application/json"
5431
5401
  }
5432
- }).then((k) => ye(k, z.CurrenciesError)).then((k) => {
5433
- p(k?.currencies);
5434
- }).catch((k) => {
5435
- Ae({
5436
- type: Ce.error,
5402
+ }).then((Z) => Ce(Z, K.CurrenciesError)).then((Z) => {
5403
+ f(Z?.currencies);
5404
+ }).catch((Z) => {
5405
+ X({
5406
+ type: Ee.error,
5437
5407
  message: R("generalError"),
5438
- source: z.CurrenciesError
5439
- }), _(), console.error("There was an error on the allowed currencies request.", k);
5408
+ source: K.CurrenciesError
5409
+ }), x(), console.error("There was an error on the allowed currencies request.", Z);
5440
5410
  }).finally(() => {
5441
5411
  n(17, he = !0);
5442
5412
  });
5443
- }), et = ({ data: p, shouldUpdateSelectedCurrencies: _, allowed: N = [] }) => {
5444
- const { items: w = [], totalAmount: k = {}, totalRealAmount: g } = p || {};
5445
- n(10, I = Object.entries(g || k).map(([$ = "", ce = 0]) => ({ currency: $, amount: ce }))[0]);
5446
- let S = null;
5447
- const Ie = new Map(N.map(($) => [$.code, $]));
5448
- for (const $ of w)
5449
- if ($?.type === In.Real) {
5450
- const ce = Ie.get($?.currency);
5451
- if (ce && ce.code === $?.currency) {
5452
- const ve = {
5453
- ...$,
5454
- ...ce,
5455
- symbol: Aa[$?.currency]
5413
+ }), ee = ({ data: f, shouldUpdateSelectedCurrencies: x, allowed: w = [] }) => {
5414
+ const { items: A = [], totalAmount: Z = {}, totalRealAmount: se } = f || {};
5415
+ n(10, L = Object.entries(se || Z).map(([M = "", ye = 0]) => ({ currency: M, amount: ye }))[0]);
5416
+ let g = null;
5417
+ const H = new Map(w.map((M) => [M.code, M]));
5418
+ for (const M of A)
5419
+ if (M?.type === In.Real) {
5420
+ const ye = H.get(M?.currency);
5421
+ if (ye && ye.code === M?.currency) {
5422
+ const ce = {
5423
+ ...M,
5424
+ ...ye,
5425
+ symbol: wa[M?.currency]
5456
5426
  };
5457
- n(37, fe = [...fe, ve]), $?.currency === I?.currency && n(10, I = { ...I, ...ve }), $?.currency !== I?.currency && $?.walletAccountType === In.Vault && n(20, Ee = [...Ee, ve]), _ && $?.amount > 0 && n(5, b = I?.currency ? I : S), b && b?.currency === $?.currency && n(5, b = ve), L && L?.currency === $?.currency && n(6, L = ve);
5427
+ n(36, Y = [...Y, ce]), M?.currency === L?.currency && n(10, L = { ...L, ...ce }), M?.currency !== L?.currency && M?.walletAccountType === In.Vault && n(19, me = [...me, ce]), x && M?.amount > 0 && n(5, b = L?.currency ? L : g), b && b?.currency === M?.currency && n(5, b = ce), N && N?.currency === M?.currency && n(6, N = ce);
5458
5428
  }
5459
5429
  }
5460
- }, tt = (p = !0) => {
5461
- const _ = new URL(`${a}/v2/player/${i}/balance`);
5462
- fetch(_, {
5430
+ }, Oe = (f = !0) => {
5431
+ const x = new URL(`${a}/v2/player/${i}/balance`);
5432
+ fetch(x, {
5463
5433
  method: "GET",
5464
5434
  headers: {
5465
5435
  "X-SessionId": r,
5466
5436
  "Content-Type": "application/json",
5467
5437
  Accept: "application/json"
5468
5438
  }
5469
- }).then((w) => ye(w, z.BalanceError)).then((w) => {
5470
- w && q().then((k) => {
5471
- n(37, fe = []), n(20, Ee = []), et({
5472
- data: w,
5473
- shouldUpdateSelectedCurrencies: p,
5474
- allowed: k
5439
+ }).then((A) => Ce(A, K.BalanceError)).then((A) => {
5440
+ A && Ne().then((Z) => {
5441
+ n(36, Y = []), n(19, me = []), ee({
5442
+ data: A,
5443
+ shouldUpdateSelectedCurrencies: f,
5444
+ allowed: Z
5475
5445
  });
5476
5446
  });
5477
- }).catch((w) => {
5478
- Ae({
5479
- type: Ce.error,
5447
+ }).catch((A) => {
5448
+ X({
5449
+ type: Ee.error,
5480
5450
  message: R("generalError"),
5481
- source: z.BalanceError
5482
- }), console.error("There was an error with the player balance request.", w);
5451
+ source: K.BalanceError
5452
+ }), console.error("There was an error with the player balance request.", A);
5483
5453
  }).finally(() => {
5484
- n(16, X = !0);
5454
+ n(16, $ = !0);
5485
5455
  });
5486
- }, V = Sa(() => {
5487
- ct().then(() => {
5488
- const p = new URL(`${a}/v2/player/${i}/check/wallet-exchange`), _ = {
5456
+ }, Q = Ba(() => {
5457
+ Lt().then(() => {
5458
+ const f = new URL(`${a}/v2/player/${i}/check/wallet-exchange`), x = {
5489
5459
  userId: i,
5490
- amount: E,
5460
+ amount: _,
5491
5461
  currency: b?.currency,
5492
5462
  fromCurrency: b?.currency,
5493
- toCurrency: L?.currency,
5463
+ toCurrency: N?.currency,
5494
5464
  payload: { PlayerCurrency: c }
5495
- }, N = {
5465
+ }, w = {
5496
5466
  method: "POST",
5497
5467
  headers: {
5498
5468
  "X-SessionId": r,
5499
5469
  "Content-Type": "application/json",
5500
5470
  Accept: "application/json"
5501
5471
  },
5502
- body: Ln(_)
5472
+ body: Ln(x)
5503
5473
  };
5504
- fetch(p, N).then((w) => ye(w, z.CheckWalletExchangeError)).then((w) => {
5505
- w && (F?.source === z.CheckWalletExchangeError && De(), Array.isArray(w?.fees?.fees) && n(11, ie = w.fees.fees.find((k) => k.id)), Array.isArray(w?.walletActions) && n(9, O = w.walletActions.find((k) => k?.directionName === "Credit")?.amount || 0), E > 0 && b?.currency && L?.currency && c && n(14, ae = !1));
5506
- }).catch((w) => {
5507
- Ae({
5508
- type: Ce.error,
5474
+ fetch(f, w).then((A) => Ce(A, K.CheckWalletExchangeError)).then((A) => {
5475
+ A && (D?.source === K.CheckWalletExchangeError && fe(), Array.isArray(A?.fees?.fees) && n(11, ae = A.fees.fees.find((Z) => Z.id)), Array.isArray(A?.walletActions) && n(9, O = A.walletActions.find((Z) => Z?.directionName === "Credit")?.amount || 0), _ > 0 && b?.currency && N?.currency && c && n(14, oe = !1));
5476
+ }).catch((A) => {
5477
+ X({
5478
+ type: Ee.error,
5509
5479
  message: R("generalError"),
5510
- source: z.CheckWalletExchangeError
5511
- }), console.error("There was a problem with the wallet exchange request.", w);
5480
+ source: K.CheckWalletExchangeError
5481
+ }), console.error("There was a problem with the wallet exchange request.", A);
5512
5482
  });
5513
- }).catch((p) => {
5514
- J(p);
5483
+ }).catch((f) => {
5484
+ lt(f);
5515
5485
  });
5516
- }, 500), Rt = (p) => {
5517
- const _ = p.target.value;
5518
- if (_.length <= Ba) {
5519
- const [N, w] = _.split(".");
5520
- w && w.length >= b?.precision && n(8, E = parseFloat(N + "." + w.slice(0, b?.precision)));
5486
+ }, 500), V = (f) => {
5487
+ const x = f.target.value;
5488
+ if (x.length <= Ta) {
5489
+ const [w, A] = x.split(".");
5490
+ A && A.length >= b?.precision && n(8, _ = parseFloat(w + "." + A.slice(0, b?.precision)));
5521
5491
  }
5522
- V();
5523
- }, ht = (p) => {
5524
- const _ = p.data;
5525
- [">", "<", ","].includes(_) && p.preventDefault(), _ && !_.match(/[\d.]/) && p.preventDefault(), _ === "." && p.target.value.includes(".") && p.preventDefault();
5526
- }, ft = () => {
5527
- const p = new URL(`${a}/v2/player/${i}/wallet-exchange`);
5528
- n(18, Oe = !0);
5529
- const _ = {
5492
+ Q();
5493
+ }, Ot = (f) => {
5494
+ const x = f.data;
5495
+ [">", "<", ","].includes(x) && f.preventDefault(), x && !x.match(/[\d.]/) && f.preventDefault(), x === "." && f.target.value.includes(".") && f.preventDefault();
5496
+ }, ut = () => {
5497
+ const f = new URL(`${a}/v2/player/${i}/wallet-exchange`);
5498
+ n(18, Pe = !0);
5499
+ const x = {
5530
5500
  userId: i,
5531
- amount: E,
5501
+ amount: _,
5532
5502
  currency: b?.currency,
5533
5503
  fromCurrency: b?.currency,
5534
- toCurrency: L?.currency,
5504
+ toCurrency: N?.currency,
5535
5505
  payload: { PlayerCurrency: c }
5536
- }, N = {
5506
+ }, w = {
5537
5507
  method: "PUT",
5538
5508
  headers: {
5539
5509
  "X-SessionId": r,
5540
5510
  "Content-Type": "application/json",
5541
5511
  Accept: "application/json"
5542
5512
  },
5543
- body: Ln(_)
5513
+ body: Ln(x)
5544
5514
  };
5545
- fetch(p, N).then((w) => ye(w, z.WalletExchangeError)).then((w) => {
5546
- w && (Ae({
5547
- type: Ce.success,
5515
+ fetch(f, w).then((A) => Ce(A, K.WalletExchangeError)).then((A) => {
5516
+ A && (X({
5517
+ type: Ee.success,
5548
5518
  message: R("exchangeSuccess"),
5549
5519
  source: "ExchangeSuccess"
5550
- }), tt(!1));
5551
- }).catch((w) => {
5552
- Ae({
5553
- type: Ce.error,
5520
+ }), Oe(!1));
5521
+ }).catch((A) => {
5522
+ X({
5523
+ type: Ee.error,
5554
5524
  message: R("generalError"),
5555
- source: z.WalletExchangeError
5556
- }), console.error("There was an error with the wallet exchange request.", w);
5525
+ source: K.WalletExchangeError
5526
+ }), console.error("There was an error with the wallet exchange request.", A);
5557
5527
  }).finally(() => {
5558
- n(18, Oe = !1), ge(), Pe();
5528
+ n(18, Pe = !1), Ye(), ge();
5559
5529
  });
5560
- }, ue = (p) => {
5561
- const { data: { type: _ } = {} } = p || {};
5562
- switch (_) {
5530
+ }, Je = (f) => {
5531
+ const { data: { type: x } = {} } = f || {};
5532
+ switch (x) {
5563
5533
  case Pn.ResetVaultWidget:
5564
- ne();
5534
+ Le();
5565
5535
  break;
5566
5536
  case Pn.CloseVaultWidget:
5567
- qe();
5537
+ Ae();
5568
5538
  break;
5569
5539
  }
5570
5540
  };
5571
- Br(() => (window.addEventListener("message", ue), () => {
5572
- window.removeEventListener("message", ue);
5541
+ Tr(() => (window.addEventListener("message", Je), () => {
5542
+ window.removeEventListener("message", Je);
5573
5543
  }));
5574
- function dt() {
5575
- E = wt(this.value), n(8, E);
5544
+ function de() {
5545
+ _ = _t(this.value), n(8, _);
5576
5546
  }
5577
- function kt(p) {
5578
- b = p, n(5, b);
5547
+ function ct(f) {
5548
+ b = f, n(5, b);
5579
5549
  }
5580
- function pt() {
5581
- O = wt(this.value), n(9, O);
5550
+ function Rt() {
5551
+ O = _t(this.value), n(9, O);
5582
5552
  }
5583
- function mt(p) {
5584
- L = p, n(6, L);
5553
+ function ht(f) {
5554
+ N = f, n(6, N);
5585
5555
  }
5586
- function pe(p) {
5587
- Ge[p ? "unshift" : "push"](() => {
5588
- de = p, n(7, de);
5556
+ function ft(f) {
5557
+ Fe[f ? "unshift" : "push"](() => {
5558
+ j = f, n(7, j);
5589
5559
  });
5590
5560
  }
5591
- return e.$$set = (p) => {
5592
- "session" in p && n(0, r = p.session), "userid" in p && n(30, i = p.userid), "endpoint" in p && n(31, a = p.endpoint), "lang" in p && n(32, o = p.lang), "clientstyling" in p && n(33, u = p.clientstyling), "clientstylingurl" in p && n(34, s = p.clientstylingurl), "translationurl" in p && n(35, l = p.translationurl), "playercurrency" in p && n(36, c = p.playercurrency), "showvaults" in p && n(1, f = p.showvaults), "showtotalbalance" in p && n(2, h = p.showtotalbalance), "showclosebutton" in p && n(3, d = p.showclosebutton), "showcurrencysymbol" in p && n(4, v = p.showcurrencysymbol);
5561
+ return e.$$set = (f) => {
5562
+ "session" in f && n(0, r = f.session), "userid" in f && n(29, i = f.userid), "endpoint" in f && n(30, a = f.endpoint), "lang" in f && n(31, o = f.lang), "clientstyling" in f && n(32, u = f.clientstyling), "clientstylingurl" in f && n(33, s = f.clientstylingurl), "translationurl" in f && n(34, l = f.translationurl), "playercurrency" in f && n(35, c = f.playercurrency), "showvaults" in f && n(1, d = f.showvaults), "showtotalbalance" in f && n(2, h = f.showtotalbalance), "showclosebutton" in f && n(3, p = f.showclosebutton), "showcurrencysymbol" in f && n(4, v = f.showcurrencysymbol);
5593
5563
  }, e.$$.update = () => {
5594
5564
  e.$$.dirty[1] & /*lang*/
5595
- 2 && o && Je(), e.$$.dirty[0] & /*session, userid*/
5596
- 1073741825 | e.$$.dirty[1] & /*endpoint, playercurrency*/
5597
- 33 && r && i && a && c && tt(), e.$$.dirty[0] & /*customStylingContainer*/
5565
+ 1 && o && ot(), e.$$.dirty[0] & /*session, userid, endpoint*/
5566
+ 1610612737 | e.$$.dirty[1] & /*playercurrency*/
5567
+ 16 && r && i && a && c && Oe(), e.$$.dirty[0] & /*customStylingContainer*/
5598
5568
  128 | e.$$.dirty[1] & /*clientstyling*/
5599
- 4 && u && de && Re(), e.$$.dirty[0] & /*customStylingContainer*/
5569
+ 2 && u && j && _e(), e.$$.dirty[0] & /*customStylingContainer*/
5600
5570
  128 | e.$$.dirty[1] & /*clientstylingurl*/
5601
- 8 && s && de && ut(), e.$$.dirty[1] & /*translationurl*/
5602
- 16 && l && xe(), e.$$.dirty[0] & /*selectedCurrencyTo*/
5571
+ 4 && s && j && Ie(), e.$$.dirty[1] & /*translationurl*/
5572
+ 8 && l && Ke(), e.$$.dirty[0] & /*selectedCurrencyTo*/
5603
5573
  64 | e.$$.dirty[1] & /*filteredBalances*/
5604
- 64 && n(21, Z = fe.filter((p) => p?.amount > 0 && p?.currency !== L?.currency)), e.$$.dirty[0] & /*selectedCurrencyFrom*/
5574
+ 32 && n(20, Qe = Y.filter((f) => f?.amount > 0 && f?.currency !== N?.currency)), e.$$.dirty[0] & /*selectedCurrencyFrom*/
5605
5575
  32 | e.$$.dirty[1] & /*filteredBalances*/
5606
- 64 && n(22, Y = fe.filter((p) => b?.currency !== p?.currency));
5576
+ 32 && n(21, J = Y.filter((f) => b?.currency !== f?.currency));
5607
5577
  }, [
5608
5578
  r,
5609
- f,
5610
- h,
5611
5579
  d,
5580
+ h,
5581
+ p,
5612
5582
  v,
5613
5583
  b,
5614
- L,
5615
- de,
5616
- E,
5584
+ N,
5585
+ j,
5586
+ _,
5617
5587
  O,
5618
- I,
5619
- ie,
5620
- F,
5621
- te,
5588
+ L,
5622
5589
  ae,
5623
- se,
5624
- X,
5625
- he,
5626
- Oe,
5627
- le,
5628
- Ee,
5629
- Z,
5630
- Y,
5631
- ke,
5632
- qe,
5590
+ D,
5633
5591
  ne,
5592
+ oe,
5593
+ ue,
5594
+ $,
5595
+ he,
5596
+ Pe,
5597
+ me,
5598
+ Qe,
5599
+ J,
5600
+ st,
5601
+ Ae,
5602
+ Le,
5603
+ Q,
5634
5604
  V,
5635
- Rt,
5636
- ht,
5637
- ft,
5605
+ Ot,
5606
+ ut,
5638
5607
  i,
5639
5608
  a,
5640
5609
  o,
@@ -5642,37 +5611,37 @@ function Ja(e, t, n) {
5642
5611
  s,
5643
5612
  l,
5644
5613
  c,
5645
- fe,
5646
- dt,
5647
- kt,
5648
- pt,
5649
- mt,
5650
- pe
5614
+ Y,
5615
+ de,
5616
+ ct,
5617
+ Rt,
5618
+ ht,
5619
+ ft
5651
5620
  ];
5652
5621
  }
5653
- class qa extends ln {
5622
+ class Ja extends ln {
5654
5623
  constructor(t) {
5655
5624
  super(), on(
5656
5625
  this,
5657
5626
  t,
5658
- Ja,
5659
5627
  Ya,
5660
- St,
5628
+ Ka,
5629
+ Ct,
5661
5630
  {
5662
5631
  session: 0,
5663
- userid: 30,
5664
- endpoint: 31,
5665
- lang: 32,
5666
- clientstyling: 33,
5667
- clientstylingurl: 34,
5668
- translationurl: 35,
5669
- playercurrency: 36,
5632
+ userid: 29,
5633
+ endpoint: 30,
5634
+ lang: 31,
5635
+ clientstyling: 32,
5636
+ clientstylingurl: 33,
5637
+ translationurl: 34,
5638
+ playercurrency: 35,
5670
5639
  showvaults: 1,
5671
5640
  showtotalbalance: 2,
5672
5641
  showclosebutton: 3,
5673
5642
  showcurrencysymbol: 4
5674
5643
  },
5675
- ka,
5644
+ Ra,
5676
5645
  [-1, -1, -1]
5677
5646
  );
5678
5647
  }
@@ -5680,76 +5649,76 @@ class qa extends ln {
5680
5649
  return this.$$.ctx[0];
5681
5650
  }
5682
5651
  set session(t) {
5683
- this.$$set({ session: t }), j();
5652
+ this.$$set({ session: t }), G();
5684
5653
  }
5685
5654
  get userid() {
5686
- return this.$$.ctx[30];
5655
+ return this.$$.ctx[29];
5687
5656
  }
5688
5657
  set userid(t) {
5689
- this.$$set({ userid: t }), j();
5658
+ this.$$set({ userid: t }), G();
5690
5659
  }
5691
5660
  get endpoint() {
5692
- return this.$$.ctx[31];
5661
+ return this.$$.ctx[30];
5693
5662
  }
5694
5663
  set endpoint(t) {
5695
- this.$$set({ endpoint: t }), j();
5664
+ this.$$set({ endpoint: t }), G();
5696
5665
  }
5697
5666
  get lang() {
5698
- return this.$$.ctx[32];
5667
+ return this.$$.ctx[31];
5699
5668
  }
5700
5669
  set lang(t) {
5701
- this.$$set({ lang: t }), j();
5670
+ this.$$set({ lang: t }), G();
5702
5671
  }
5703
5672
  get clientstyling() {
5704
- return this.$$.ctx[33];
5673
+ return this.$$.ctx[32];
5705
5674
  }
5706
5675
  set clientstyling(t) {
5707
- this.$$set({ clientstyling: t }), j();
5676
+ this.$$set({ clientstyling: t }), G();
5708
5677
  }
5709
5678
  get clientstylingurl() {
5710
- return this.$$.ctx[34];
5679
+ return this.$$.ctx[33];
5711
5680
  }
5712
5681
  set clientstylingurl(t) {
5713
- this.$$set({ clientstylingurl: t }), j();
5682
+ this.$$set({ clientstylingurl: t }), G();
5714
5683
  }
5715
5684
  get translationurl() {
5716
- return this.$$.ctx[35];
5685
+ return this.$$.ctx[34];
5717
5686
  }
5718
5687
  set translationurl(t) {
5719
- this.$$set({ translationurl: t }), j();
5688
+ this.$$set({ translationurl: t }), G();
5720
5689
  }
5721
5690
  get playercurrency() {
5722
- return this.$$.ctx[36];
5691
+ return this.$$.ctx[35];
5723
5692
  }
5724
5693
  set playercurrency(t) {
5725
- this.$$set({ playercurrency: t }), j();
5694
+ this.$$set({ playercurrency: t }), G();
5726
5695
  }
5727
5696
  get showvaults() {
5728
5697
  return this.$$.ctx[1];
5729
5698
  }
5730
5699
  set showvaults(t) {
5731
- this.$$set({ showvaults: t }), j();
5700
+ this.$$set({ showvaults: t }), G();
5732
5701
  }
5733
5702
  get showtotalbalance() {
5734
5703
  return this.$$.ctx[2];
5735
5704
  }
5736
5705
  set showtotalbalance(t) {
5737
- this.$$set({ showtotalbalance: t }), j();
5706
+ this.$$set({ showtotalbalance: t }), G();
5738
5707
  }
5739
5708
  get showclosebutton() {
5740
5709
  return this.$$.ctx[3];
5741
5710
  }
5742
5711
  set showclosebutton(t) {
5743
- this.$$set({ showclosebutton: t }), j();
5712
+ this.$$set({ showclosebutton: t }), G();
5744
5713
  }
5745
5714
  get showcurrencysymbol() {
5746
5715
  return this.$$.ctx[4];
5747
5716
  }
5748
5717
  set showcurrencysymbol(t) {
5749
- this.$$set({ showcurrencysymbol: t }), j();
5718
+ this.$$set({ showcurrencysymbol: t }), G();
5750
5719
  }
5751
5720
  }
5752
- sn(qa, { session: {}, userid: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, playercurrency: {}, showvaults: { type: "Boolean" }, showtotalbalance: { type: "Boolean" }, showclosebutton: { type: "Boolean" }, showcurrencysymbol: { type: "Boolean" } }, [], [], !0);
5721
+ sn(Ja, { session: {}, userid: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, playercurrency: {}, showvaults: {}, showtotalbalance: {}, showclosebutton: {}, showcurrencysymbol: {} }, [], [], !0);
5753
5722
  export {
5754
- qa as P
5723
+ Ja as P
5755
5724
  };