@everymatrix/player-account-vault 0.19.9 → 0.19.11

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