@everymatrix/player-account-vault 0.19.10 → 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 $n(e) {
3
+ function Wn(e) {
4
4
  return e();
5
5
  }
6
- function fn() {
6
+ function pn() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
9
  function ve(e) {
10
- e.forEach($n);
10
+ e.forEach(Wn);
11
11
  }
12
- function ot(e) {
12
+ function ct(e) {
13
13
  return typeof e == "function";
14
14
  }
15
- function Tt(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 br(e) {
18
+ function xr(e) {
19
19
  return Object.keys(e).length === 0;
20
20
  }
21
- function jn(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 yr(e) {
30
+ function wr(e) {
31
31
  let t;
32
- return jn(e, (n) => t = n)(), t;
32
+ return zn(e, (n) => t = n)(), t;
33
33
  }
34
- function vr(e) {
35
- return e && ot(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 on(e, t, n) {
41
- const r = _r(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, Er(r, i);
43
+ const i = w("style");
44
+ i.id = t, i.textContent = n, Tr(r, i);
45
45
  }
46
46
  }
47
- function _r(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 _r(e) {
54
54
  t
55
55
  ) : e.ownerDocument;
56
56
  }
57
- function Er(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 Xn(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 dn(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 xr() {
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 wr(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 Et(e) {
100
+ function Ct(e) {
101
101
  return e === "" ? null : +e;
102
102
  }
103
- function Ar(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 pt(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 Cr(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 Cr(e) {
122
122
  }
123
123
  ), t;
124
124
  }
125
- let nt;
126
- function tt(e) {
127
- nt = e;
125
+ let ot;
126
+ function at(e) {
127
+ ot = e;
128
128
  }
129
- function Tr() {
130
- if (!nt)
129
+ function Qn() {
130
+ if (!ot)
131
131
  throw new Error("Function called outside component initialization");
132
- return nt;
132
+ return ot;
133
+ }
134
+ function Kn(e) {
135
+ Qn().$$.on_mount.push(e);
133
136
  }
134
- function Br(e) {
135
- Tr().$$.on_mount.push(e);
137
+ function Ir(e) {
138
+ Qn().$$.on_destroy.push(e);
136
139
  }
137
- const Me = [], Ue = [];
138
- let Fe = [];
139
- const Wt = [], Sr = /* @__PURE__ */ Promise.resolve();
140
- let zt = !1;
141
- function Hr() {
142
- zt || (zt = !0, Sr.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
- Fe.push(e);
147
+ function Kt(e) {
148
+ Ue.push(e);
146
149
  }
147
- function pn(e) {
148
- Wt.push(e);
150
+ function gn(e) {
151
+ Zt.push(e);
149
152
  }
150
- const Mt = /* @__PURE__ */ new Set();
153
+ const Ft = /* @__PURE__ */ new Set();
151
154
  let ke = 0;
152
- function G() {
155
+ function V() {
153
156
  if (ke !== 0)
154
157
  return;
155
- const e = nt;
158
+ const e = ot;
156
159
  do {
157
160
  try {
158
- for (; ke < Me.length; ) {
159
- const t = Me[ke];
160
- ke++, tt(t), Pr(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 Me.length = 0, ke = 0, t;
166
+ throw Fe.length = 0, ke = 0, t;
164
167
  }
165
- for (tt(null), Me.length = 0, ke = 0; Ue.length; )
166
- Ue.pop()();
167
- for (let t = 0; t < Fe.length; t += 1) {
168
- const n = Fe[t];
169
- Mt.has(n) || (Mt.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
- Fe.length = 0;
172
- } while (Me.length);
173
- for (; Wt.length; )
174
- Wt.pop()();
175
- zt = !1, Mt.clear(), tt(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 Pr(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 Ir(e) {
187
+ function Or(e) {
185
188
  const t = [], n = [];
186
- Fe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Fe = 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 bt = /* @__PURE__ */ new Set();
189
- let Be;
190
- function Se() {
191
- Be = {
191
+ const Et = /* @__PURE__ */ new Set();
192
+ let Pe;
193
+ function Ie() {
194
+ Pe = {
192
195
  r: 0,
193
196
  c: [],
194
- p: Be
197
+ p: Pe
195
198
  // parent group
196
199
  };
197
200
  }
198
- function He() {
199
- Be.r || ve(Be.c), Be = Be.p;
201
+ function Le() {
202
+ Pe.r || ve(Pe.c), Pe = Pe.p;
200
203
  }
201
- function U(e, t) {
202
- e && e.i && (bt.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 (bt.has(e))
209
+ if (Et.has(e))
207
210
  return;
208
- bt.add(e), Be.c.push(() => {
209
- bt.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 xt(e) {
217
+ function Tt(e) {
215
218
  return e?.length !== void 0 ? e : Array.from(e);
216
219
  }
217
- function mn(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 rt(e) {
224
+ function st(e) {
222
225
  e && e.c();
223
226
  }
224
- function Ve(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($n).filter(ot);
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 Ge(e, t) {
234
+ function $e(e, t) {
232
235
  const n = e.$$;
233
- n.fragment !== null && (Ir(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 Lr(e, t) {
236
- e.$$.dirty[0] === -1 && (Me.push(e), Hr(), 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 sn(e, t, n, r, i, a, o = null, u = [-1]) {
239
- const s = nt;
240
- tt(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: fn(),
251
+ bound: pn(),
249
252
  // lifecycle
250
253
  on_mount: [],
251
254
  on_destroy: [],
@@ -254,28 +257,28 @@ function sn(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: fn(),
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 && Lr(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 = Ar(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), Ve(e, t.target, t.anchor), G();
276
+ t.intro && G(e.$$.fragment), Ge(e, t.target, t.anchor), V();
274
277
  }
275
- tt(s);
278
+ at(s);
276
279
  }
277
- let Wn;
278
- typeof HTMLElement == "function" && (Wn = 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" && (Wn = 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 = Cr(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] = yt(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" && (Wn = 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 = yt(
363
+ const a = xt(
361
364
  i,
362
365
  this.$$d[i],
363
366
  this.$$p_d,
@@ -379,7 +382,7 @@ typeof HTMLElement == "function" && (Wn = 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] = yt(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" && (Wn = class extends HTMLElement {
392
395
  ) || e;
393
396
  }
394
397
  });
395
- function yt(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 yt(e, t, n, r) {
421
424
  return t;
422
425
  }
423
426
  }
424
- function ln(e, t, n, r, i, a) {
425
- let o = class extends Wn {
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 ln(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 = yt(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 ln(e, t, n, r, i, a) {
450
453
  }), e.element = /** @type {any} */
451
454
  o, o;
452
455
  }
453
- class un {
456
+ class hn {
454
457
  /**
455
458
  * ### PRIVATE API
456
459
  *
@@ -469,7 +472,7 @@ class un {
469
472
  $$set = void 0;
470
473
  /** @returns {void} */
471
474
  $destroy() {
472
- Ge(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 un {
478
481
  * @returns {() => void}
479
482
  */
480
483
  $on(t, n) {
481
- if (!ot(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 un {
491
494
  * @returns {void}
492
495
  */
493
496
  $set(t) {
494
- this.$$set && !br(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 Nr = "4";
498
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Nr);
499
- const De = [];
500
- function Or(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: Bt(e, t).subscribe
505
+ subscribe: It(e, t).subscribe
503
506
  };
504
507
  }
505
- function Bt(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 (Tt(e, u) && (e = u, n)) {
510
- const s = !De.length;
512
+ if (Pt(e, u) && (e = u, n)) {
513
+ const s = !Me.length;
511
514
  for (const l of r)
512
- l[1](), De.push(l, e);
515
+ l[1](), Me.push(l, e);
513
516
  if (s) {
514
- for (let l = 0; l < De.length; l += 2)
515
- De[l][0](De[l + 1]);
516
- De.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 ze(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 Or(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 = ot(v) ? v : S;
548
+ a ? o(v) : d = ct(v) ? v : B;
546
549
  }, p = i.map(
547
- (v, b) => jn(
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 Rr(e) {
565
+ function Fr(e) {
563
566
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
564
567
  }
565
- var kr = function(t) {
566
- return Dr(t) && !Mr(t);
568
+ var Ur = function(t) {
569
+ return Vr(t) && !Gr(t);
567
570
  };
568
- function Dr(e) {
571
+ function Vr(e) {
569
572
  return !!e && typeof e == "object";
570
573
  }
571
- function Mr(e) {
574
+ function Gr(e) {
572
575
  var t = Object.prototype.toString.call(e);
573
- return t === "[object RegExp]" || t === "[object Date]" || Vr(e);
576
+ return t === "[object RegExp]" || t === "[object Date]" || Xr(e);
574
577
  }
575
- var Fr = typeof Symbol == "function" && Symbol.for, Ur = Fr ? Symbol.for("react.element") : 60103;
576
- function Vr(e) {
577
- return e.$$typeof === Ur;
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 Gr(e) {
582
+ function Wr(e) {
580
583
  return Array.isArray(e) ? [] : {};
581
584
  }
582
- function it(e, t) {
583
- return t.clone !== !1 && t.isMergeableObject(e) ? $e(Gr(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 $r(e, t, n) {
588
+ function zr(e, t, n) {
586
589
  return e.concat(t).map(function(r) {
587
- return it(r, n);
590
+ return lt(r, n);
588
591
  });
589
592
  }
590
- function jr(e, t) {
593
+ function Zr(e, t) {
591
594
  if (!t.customMerge)
592
- return $e;
595
+ return je;
593
596
  var n = t.customMerge(e);
594
- return typeof n == "function" ? n : $e;
597
+ return typeof n == "function" ? n : je;
595
598
  }
596
- function Xr(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 gn(e) {
602
- return Object.keys(e).concat(Xr(e));
604
+ function yn(e) {
605
+ return Object.keys(e).concat(Qr(e));
603
606
  }
604
- function zn(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 Wr(e, t) {
612
- return zn(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 zr(e, t, n) {
617
+ function Yr(e, t, n) {
615
618
  var r = {};
616
- return n.isMergeableObject(e) && gn(e).forEach(function(i) {
617
- r[i] = it(e[i], n);
618
- }), gn(t).forEach(function(i) {
619
- Wr(e, i) || (zn(e, i) && n.isMergeableObject(t[i]) ? r[i] = jr(i, n)(e[i], t[i], n) : r[i] = it(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 $e(e, t, n) {
623
- n = n || {}, n.arrayMerge = n.arrayMerge || $r, n.isMergeableObject = n.isMergeableObject || kr, n.cloneUnlessOtherwiseSpecified = it;
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) : zr(e, t, n) : it(t, n);
628
+ return a ? r ? n.arrayMerge(e, t, n) : Yr(e, t, n) : lt(t, n);
626
629
  }
627
- $e.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 $e(r, i, n);
634
+ return je(r, i, n);
632
635
  }, {});
633
636
  };
634
- var Zr = $e, Qr = Zr;
635
- const Kr = /* @__PURE__ */ Rr(Qr);
636
- var Qt = function(e, t) {
637
- return Qt = 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
- }, Qt(e, t);
645
+ }, Yt(e, t);
643
646
  };
644
- function St(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
- Qt(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 Yr(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 Yr(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 Ft(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 Ut(e, t) {
679
- var n = t && t.cache ? t.cache : ii, r = t && t.serializer ? t.serializer : ni, i = t && t.strategy ? t.strategy : ei;
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 Jr(e) {
688
+ function ni(e) {
686
689
  return e == null || typeof e == "number" || typeof e == "boolean";
687
690
  }
688
- function qr(e, t, n, r) {
689
- var i = Jr(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 Qn(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 ei(e, t) {
700
- var n = e.length === 1 ? qr : Zn;
701
- return Qn(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 ti(e, t) {
704
- return Qn(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 ni = function() {
709
+ var oi = function() {
707
710
  return JSON.stringify(arguments);
708
- }, ri = (
711
+ }, si = (
709
712
  /** @class */
710
713
  function() {
711
714
  function e() {
@@ -717,71 +720,71 @@ var ni = function() {
717
720
  this.cache[t] = n;
718
721
  }, e;
719
722
  }()
720
- ), ii = {
723
+ ), li = {
721
724
  create: function() {
722
- return new ri();
725
+ return new si();
723
726
  }
724
- }, Vt = {
725
- variadic: ti
726
- }, wt = function() {
727
- return wt = 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
- }, wt.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 je;
746
+ })(D || (D = {}));
747
+ var Xe;
745
748
  (function(e) {
746
749
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
747
- })(je || (je = {}));
748
- function bn(e) {
749
- return e.type === k.literal;
750
+ })(Xe || (Xe = {}));
751
+ function vn(e) {
752
+ return e.type === D.literal;
750
753
  }
751
- function ai(e) {
752
- return e.type === k.argument;
754
+ function ui(e) {
755
+ return e.type === D.argument;
753
756
  }
754
- function Kn(e) {
755
- return e.type === k.number;
757
+ function tr(e) {
758
+ return e.type === D.number;
756
759
  }
757
- function Yn(e) {
758
- return e.type === k.date;
760
+ function nr(e) {
761
+ return e.type === D.date;
759
762
  }
760
- function Jn(e) {
761
- return e.type === k.time;
763
+ function rr(e) {
764
+ return e.type === D.time;
762
765
  }
763
- function qn(e) {
764
- return e.type === k.select;
766
+ function ir(e) {
767
+ return e.type === D.select;
765
768
  }
766
- function er(e) {
767
- return e.type === k.plural;
769
+ function ar(e) {
770
+ return e.type === D.plural;
768
771
  }
769
- function oi(e) {
770
- return e.type === k.pound;
772
+ function ci(e) {
773
+ return e.type === D.pound;
771
774
  }
772
- function tr(e) {
773
- return e.type === k.tag;
775
+ function or(e) {
776
+ return e.type === D.tag;
774
777
  }
775
- function nr(e) {
776
- return !!(e && typeof e == "object" && e.type === je.number);
778
+ function sr(e) {
779
+ return !!(e && typeof e == "object" && e.type === Xe.number);
777
780
  }
778
- function Kt(e) {
779
- return !!(e && typeof e == "object" && e.type === je.dateTime);
781
+ function Jt(e) {
782
+ return !!(e && typeof e == "object" && e.type === Xe.dateTime);
780
783
  }
781
- var rr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, si = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
782
- function li(e) {
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(si, 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 ui = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
884
- function ci(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(ui).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 ci(e) {
899
902
  }
900
903
  return n;
901
904
  }
902
- function hi(e) {
905
+ function mi(e) {
903
906
  return e.replace(/^(.*?)-/, "");
904
907
  }
905
- var yn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ir = /^(@+)?(\+|#+)?[rs]?$/g, fi = /(\*)(0+)|(#+)(0+)|(0+)/g, ar = /^(0+)$/;
906
- function vn(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(ir, 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 or(e) {
915
+ function hr(e) {
913
916
  switch (e) {
914
917
  case "sign-auto":
915
918
  return {
@@ -949,7 +952,7 @@ function or(e) {
949
952
  };
950
953
  }
951
954
  }
952
- function di(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 di(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)), !ar.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 _n(e) {
967
- var t = {}, n = or(e);
969
+ function xn(e) {
970
+ var t = {}, n = hr(e);
968
971
  return n || t;
969
972
  }
970
- function pi(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 pi(e) {
991
994
  continue;
992
995
  case "measure-unit":
993
996
  case "unit":
994
- t.style = "unit", t.unit = hi(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 pi(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), _n(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), _n(l));
1014
+ return F(F({}, s), xn(l));
1012
1015
  }, {}));
1013
1016
  continue;
1014
1017
  case "notation-simple":
@@ -1053,11 +1056,11 @@ function pi(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(fi, 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 pi(e) {
1066
1069
  });
1067
1070
  continue;
1068
1071
  }
1069
- if (ar.test(i.stem)) {
1072
+ if (cr.test(i.stem)) {
1070
1073
  t.minimumIntegerDigits = i.stem.length;
1071
1074
  continue;
1072
1075
  }
1073
- if (yn.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(yn, 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), vn(a)));
1083
+ a === "w" ? t = F(F({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = F(F({}, t), En(a)));
1081
1084
  continue;
1082
1085
  }
1083
- if (ir.test(i.stem)) {
1084
- t = F(F({}, t), vn(i.stem));
1086
+ if (ur.test(i.stem)) {
1087
+ t = F(F({}, t), En(i.stem));
1085
1088
  continue;
1086
1089
  }
1087
- var o = or(i.stem);
1090
+ var o = hr(i.stem);
1088
1091
  o && (t = F(F({}, t), o));
1089
- var u = di(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 mt = {
1097
+ var vt = {
1095
1098
  "001": [
1096
1099
  "H",
1097
1100
  "h"
@@ -2506,13 +2509,13 @@ var mt = {
2506
2509
  "h"
2507
2510
  ]
2508
2511
  };
2509
- function mi(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 = gi(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 mi(e, t) {
2522
2525
  }
2523
2526
  return n;
2524
2527
  }
2525
- function gi(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 gi(e) {
2541
2544
  }
2542
2545
  var n = e.language, r;
2543
2546
  n !== "root" && (r = e.maximize().region);
2544
- var i = mt[r || ""] || mt[n || ""] || mt["".concat(n, "-001")] || mt["001"];
2547
+ var i = vt[r || ""] || vt[n || ""] || vt["".concat(n, "-001")] || vt["001"];
2545
2548
  return i[0];
2546
2549
  }
2547
- var Gt, bi = new RegExp("^".concat(rr.source, "*")), yi = new RegExp("".concat(rr.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 vi = !!String.prototype.startsWith && "_a".startsWith("a", 1), _i = !!String.fromCodePoint, Ei = !!Object.fromEntries, xi = !!String.prototype.codePointAt, wi = !!String.prototype.trimStart, Ai = !!String.prototype.trimEnd, Ci = !!Number.isSafeInteger, Ti = Ci ? Number.isSafeInteger : function(e) {
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
- }, Yt = !0;
2556
+ }, qt = !0;
2554
2557
  try {
2555
- var Bi = lr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2556
- Yt = ((Gt = Bi.exec("a")) === null || Gt === void 0 ? void 0 : Gt[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
- Yt = !1;
2561
+ qt = !1;
2559
2562
  }
2560
- var En = vi ? (
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 En = vi ? (
2567
2570
  function(t, n, r) {
2568
2571
  return t.slice(r, r + n.length) === n;
2569
2572
  }
2570
- ), Jt = _i ? 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 En = vi ? (
2579
2582
  }
2580
2583
  return r;
2581
2584
  }
2582
- ), xn = (
2585
+ ), An = (
2583
2586
  // native
2584
- Ei ? 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 En = vi ? (
2591
2594
  return n;
2592
2595
  }
2593
2596
  )
2594
- ), sr = xi ? (
2597
+ ), fr = Ti ? (
2595
2598
  // Native
2596
2599
  function(t, n) {
2597
2600
  return t.codePointAt(n);
@@ -2605,7 +2608,7 @@ var En = vi ? (
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
- ), Si = wi ? (
2611
+ ), Li = Bi ? (
2609
2612
  // Native
2610
2613
  function(t) {
2611
2614
  return t.trimStart();
@@ -2613,9 +2616,9 @@ var En = vi ? (
2613
2616
  ) : (
2614
2617
  // Ponyfill
2615
2618
  function(t) {
2616
- return t.replace(bi, "");
2619
+ return t.replace(Ei, "");
2617
2620
  }
2618
- ), Hi = Ai ? (
2621
+ ), Ni = Si ? (
2619
2622
  // Native
2620
2623
  function(t) {
2621
2624
  return t.trimEnd();
@@ -2623,32 +2626,32 @@ var En = vi ? (
2623
2626
  ) : (
2624
2627
  // Ponyfill
2625
2628
  function(t) {
2626
- return t.replace(yi, "");
2629
+ return t.replace(xi, "");
2627
2630
  }
2628
2631
  );
2629
- function lr(e, t) {
2632
+ function dr(e, t) {
2630
2633
  return new RegExp(e, t);
2631
2634
  }
2632
- var qt;
2633
- if (Yt) {
2634
- var wn = lr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2635
- qt = 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
- wn.lastIndex = n;
2638
- var i = wn.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
- qt = function(t, n) {
2645
+ tn = function(t, n) {
2643
2646
  for (var r = []; ; ) {
2644
- var i = sr(t, n);
2645
- if (i === void 0 || ur(i) || Ni(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 Jt.apply(void 0, r);
2652
+ return en.apply(void 0, r);
2650
2653
  };
2651
- var Pi = (
2654
+ var Ri = (
2652
2655
  /** @class */
2653
2656
  function() {
2654
2657
  function e(t, n) {
@@ -2672,14 +2675,14 @@ var Pi = (
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 && en(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 Pi = (
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 Pi = (
2712
2715
  return a;
2713
2716
  var o = a.val, u = this.clonePosition();
2714
2717
  if (this.bumpIf("</")) {
2715
- if (this.isEOF() || !en(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() && Li(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 Pi = (
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
- !Ii(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 Pi = (
2793
2796
  n.push(r);
2794
2797
  this.bump();
2795
2798
  }
2796
- return Jt.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(), Jt(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 = qt(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 Pi = (
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 = Hi(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 && En(l?.style, "::", 0)) {
2860
- var N = Si(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 && (_ = mi(N, this.locale));
2872
- var h = {
2873
- type: je.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 ? li(_) : {}
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 Pi = (
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, wt({}, 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: xn(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: xn(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 Pi = (
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 Pi = (
2978
2981
  }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
2979
2982
  var r = [];
2980
2983
  try {
2981
- r = ci(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: je.number,
2990
+ type: Xe.number,
2988
2991
  tokens: r,
2989
2992
  location: n,
2990
- parsedOptions: this.shouldParseSkeletons ? pi(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 Pi = (
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 Pi = (
3034
3037
  else
3035
3038
  break;
3036
3039
  }
3037
- var s = P(i, this.clonePosition());
3038
- return a ? (o *= r, Ti(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 Pi = (
3050
3053
  var t = this.position.offset;
3051
3054
  if (t >= this.message.length)
3052
3055
  throw Error("out of bound");
3053
- var n = sr(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 Pi = (
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 (En(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 Pi = (
3091
3094
  break;
3092
3095
  }
3093
3096
  }, e.prototype.bumpSpace = function() {
3094
- for (; !this.isEOF() && ur(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 Pi = (
3101
3104
  }, e;
3102
3105
  }()
3103
3106
  );
3104
- function en(e) {
3107
+ function nn(e) {
3105
3108
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3106
3109
  }
3107
- function Ii(e) {
3108
- return en(e) || e === 47;
3110
+ function Oi(e) {
3111
+ return nn(e) || e === 47;
3109
3112
  }
3110
- function Li(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 ur(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 Ni(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 tn(e) {
3122
+ function rn(e) {
3120
3123
  e.forEach(function(t) {
3121
- if (delete t.location, qn(t) || er(t))
3124
+ if (delete t.location, ir(t) || ar(t))
3122
3125
  for (var n in t.options)
3123
- delete t.options[n].location, tn(t.options[n].value);
3126
+ delete t.options[n].location, rn(t.options[n].value);
3124
3127
  else
3125
- Kn(t) && nr(t.style) || (Yn(t) || Jn(t)) && Kt(t.style) ? delete t.style.location : tr(t) && tn(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 Oi(e, t) {
3129
- t === void 0 && (t = {}), t = wt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3130
- var n = new Pi(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 || tn(n.val), n.val;
3138
+ return t?.captureLocation || rn(n.val), n.val;
3136
3139
  }
3137
- var Xe;
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
- })(Xe || (Xe = {}));
3141
- var Ht = (
3143
+ })(We || (We = {}));
3144
+ var Nt = (
3142
3145
  /** @class */
3143
3146
  function(e) {
3144
- St(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 Ht = (
3150
3153
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3151
3154
  }, t;
3152
3155
  }(Error)
3153
- ), An = (
3156
+ ), Tn = (
3154
3157
  /** @class */
3155
3158
  function(e) {
3156
- St(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('", "'), '"'), Xe.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
- }(Ht)
3162
- ), Ri = (
3164
+ }(Nt)
3165
+ ), Fi = (
3163
3166
  /** @class */
3164
3167
  function(e) {
3165
- St(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), Xe.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
- }(Ht)
3171
- ), ki = (
3173
+ }(Nt)
3174
+ ), Ui = (
3172
3175
  /** @class */
3173
3176
  function(e) {
3174
- St(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, '"'), Xe.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
- }(Ht)
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 Di(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 Mi(e) {
3193
+ function Gi(e) {
3191
3194
  return typeof e == "function";
3192
3195
  }
3193
- function vt(e, t, n, r, i, a, o) {
3194
- if (e.length === 1 && bn(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 (bn(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 (oi(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 ki(d, o);
3220
- var h = i[d];
3221
- if (ai(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 (Yn(c)) {
3229
- var p = typeof c.style == "string" ? r.date[c.style] : Kt(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 (Jn(c)) {
3237
- var p = typeof c.style == "string" ? r.time[c.style] : Kt(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 (Kn(c)) {
3245
- var p = typeof c.style == "string" ? r.number[c.style] : nr(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 (tr(c)) {
3253
- var v = c.children, b = c.value, N = i[b];
3254
- if (!Mi(N))
3255
- throw new Ri(b, "function", o);
3256
- var _ = vt(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 (qn(c)) {
3267
- var L = c.options[h] || c.options.other;
3268
- if (!L)
3269
- throw new An(c.value, h, Object.keys(c.options), o);
3270
- u.push.apply(u, vt(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 (er(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 Ht(`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
- `, Xe.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 An(c.value, h, Object.keys(c.options), o);
3285
- u.push.apply(u, vt(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 Di(u);
3292
+ return Vi(u);
3290
3293
  }
3291
- function Fi(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 Ui(e, t) {
3299
+ function ji(e, t) {
3297
3300
  return t ? Object.keys(e).reduce(function(n, r) {
3298
- return n[r] = Fi(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 $t(e) {
3304
+ function jt(e) {
3302
3305
  return {
3303
3306
  create: function() {
3304
3307
  return {
@@ -3312,39 +3315,39 @@ function $t(e) {
3312
3315
  }
3313
3316
  };
3314
3317
  }
3315
- function Vi(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: Ut(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, Ft([void 0], n, !1)))();
3327
+ return new ((t = Intl.NumberFormat).bind.apply(t, Ut([void 0], n, !1)))();
3325
3328
  }, {
3326
- cache: $t(e.number),
3327
- strategy: Vt.variadic
3329
+ cache: jt(e.number),
3330
+ strategy: Gt.variadic
3328
3331
  }),
3329
- getDateTimeFormat: Ut(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, Ft([void 0], n, !1)))();
3335
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Ut([void 0], n, !1)))();
3333
3336
  }, {
3334
- cache: $t(e.dateTime),
3335
- strategy: Vt.variadic
3337
+ cache: jt(e.dateTime),
3338
+ strategy: Gt.variadic
3336
3339
  }),
3337
- getPluralRules: Ut(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, Ft([void 0], n, !1)))();
3343
+ return new ((t = Intl.PluralRules).bind.apply(t, Ut([void 0], n, !1)))();
3341
3344
  }, {
3342
- cache: $t(e.pluralRules),
3343
- strategy: Vt.variadic
3345
+ cache: jt(e.pluralRules),
3346
+ strategy: Gt.variadic
3344
3347
  })
3345
3348
  };
3346
3349
  }
3347
- var Gi = (
3350
+ var Wi = (
3348
3351
  /** @class */
3349
3352
  function() {
3350
3353
  function e(t, n, r, i) {
@@ -3358,12 +3361,12 @@ var Gi = (
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 vt(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 Gi = (
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 = Yr(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 = Ui(e.formats, r), this.formatters = i && i.formatters || Vi(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 Gi = (
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 = Oi, e.formats = {
3401
+ }, e.__parse = Mi, e.formats = {
3399
3402
  number: {
3400
3403
  integer: {
3401
3404
  maximumFractionDigits: 0
@@ -3456,7 +3459,7 @@ var Gi = (
3456
3459
  }, e;
3457
3460
  }()
3458
3461
  );
3459
- function $i(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 $i(e, t) {
3477
3480
  r = void 0;
3478
3481
  return r;
3479
3482
  }
3480
- const we = {}, ji = (e, t, n) => n && (t in we || (we[t] = {}), e in we[t] || (we[t][e] = n), n), cr = (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 we && e in we[t])
3484
- return we[t][e];
3485
- const n = Pt(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 = Wi(i, e);
3490
+ const i = n[r], a = Ki(i, e);
3488
3491
  if (a)
3489
- return ji(e, t, a);
3492
+ return Zi(e, t, a);
3490
3493
  }
3491
3494
  };
3492
- let cn;
3493
- const Ze = Bt({});
3494
- function Xi(e) {
3495
- return cn[e] || null;
3495
+ let fn;
3496
+ const Qe = It({});
3497
+ function Qi(e) {
3498
+ return fn[e] || null;
3496
3499
  }
3497
- function hr(e) {
3498
- return e in cn;
3500
+ function gr(e) {
3501
+ return e in fn;
3499
3502
  }
3500
- function Wi(e, t) {
3501
- if (!hr(e))
3503
+ function Ki(e, t) {
3504
+ if (!gr(e))
3502
3505
  return null;
3503
- const n = Xi(e);
3504
- return $i(n, t);
3506
+ const n = Qi(e);
3507
+ return zi(n, t);
3505
3508
  }
3506
- function zi(e) {
3509
+ function Yi(e) {
3507
3510
  if (e == null)
3508
3511
  return;
3509
- const t = Pt(e);
3512
+ const t = Rt(e);
3510
3513
  for (let n = 0; n < t.length; n++) {
3511
3514
  const r = t[n];
3512
- if (hr(r))
3515
+ if (gr(r))
3513
3516
  return r;
3514
3517
  }
3515
3518
  }
3516
- function fr(e, ...t) {
3517
- delete we[e], Ze.update((n) => (n[e] = Kr.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
- ze(
3520
- [Ze],
3522
+ Ze(
3523
+ [Qe],
3521
3524
  ([e]) => Object.keys(e)
3522
3525
  );
3523
- Ze.subscribe((e) => cn = e);
3524
- const _t = {};
3525
- function Zi(e, t) {
3526
- _t[e].delete(t), _t[e].size === 0 && delete _t[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 dr(e) {
3529
- return _t[e];
3531
+ function yr(e) {
3532
+ return At[e];
3530
3533
  }
3531
- function Qi(e) {
3532
- return Pt(e).map((t) => {
3533
- const n = dr(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 nn(e) {
3538
- return e == null ? !1 : Pt(e).some(
3540
+ function an(e) {
3541
+ return e == null ? !1 : Rt(e).some(
3539
3542
  (t) => {
3540
3543
  var n;
3541
- return (n = dr(t)) == null ? void 0 : n.size;
3544
+ return (n = yr(t)) == null ? void 0 : n.size;
3542
3545
  }
3543
3546
  );
3544
3547
  }
3545
- function Ki(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) => fr(e, ...r));
3550
+ t.map((r) => (Ji(e, r), r().then((i) => i.default || i)))
3551
+ ).then((r) => br(e, ...r));
3549
3552
  }
3550
- const et = {};
3551
- function pr(e) {
3552
- if (!nn(e))
3553
- return e in et ? et[e] : Promise.resolve();
3554
- const t = Qi(e);
3555
- return et[e] = Promise.all(
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]) => Ki(n, r)
3560
+ ([n, r]) => ea(n, r)
3558
3561
  )
3559
3562
  ).then(() => {
3560
- if (nn(e))
3561
- return pr(e);
3562
- delete et[e];
3563
- }), et[e];
3563
+ if (an(e))
3564
+ return vr(e);
3565
+ delete it[e];
3566
+ }), it[e];
3564
3567
  }
3565
- const Yi = {
3568
+ const ta = {
3566
3569
  number: {
3567
3570
  scientific: { notation: "scientific" },
3568
3571
  engineering: { notation: "engineering" },
@@ -3591,183 +3594,183 @@ const Yi = {
3591
3594
  timeZoneName: "short"
3592
3595
  }
3593
3596
  }
3594
- }, Ji = {
3597
+ }, na = {
3595
3598
  fallbackLocale: null,
3596
3599
  loadingDelay: 200,
3597
- formats: Yi,
3600
+ formats: ta,
3598
3601
  warnOnMissingMessages: !0,
3599
3602
  handleMissingMessage: void 0,
3600
3603
  ignoreTag: !0
3601
- }, qi = Ji;
3602
- function We() {
3603
- return qi;
3604
+ }, ra = na;
3605
+ function ze() {
3606
+ return ra;
3604
3607
  }
3605
- const jt = Bt(!1);
3606
- var ea = Object.defineProperty, ta = Object.defineProperties, na = Object.getOwnPropertyDescriptors, Cn = Object.getOwnPropertySymbols, ra = Object.prototype.hasOwnProperty, ia = Object.prototype.propertyIsEnumerable, Tn = (e, t, n) => t in e ? ea(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, aa = (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
- ra.call(t, n) && Tn(e, n, t[n]);
3609
- if (Cn)
3610
- for (var n of Cn(t))
3611
- ia.call(t, n) && Tn(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
- }, oa = (e, t) => ta(e, na(t));
3614
- let rn;
3615
- const At = Bt(null);
3616
- function Bn(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 Pt(e, t = We().fallbackLocale) {
3620
- const n = Bn(e);
3621
- return t ? [.../* @__PURE__ */ new Set([...n, ...Bn(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 Pe() {
3624
- return rn ?? void 0;
3626
+ function Ne() {
3627
+ return on ?? void 0;
3625
3628
  }
3626
- At.subscribe((e) => {
3627
- rn = 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 sa = (e) => {
3630
- if (e && zi(e) && nn(e)) {
3631
- const { loadingDelay: t } = We();
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" && Pe() != null && t ? n = window.setTimeout(
3634
- () => jt.set(!0),
3636
+ return typeof window < "u" && Ne() != null && t ? n = window.setTimeout(
3637
+ () => Xt.set(!0),
3635
3638
  t
3636
- ) : jt.set(!0), pr(e).then(() => {
3637
- At.set(e);
3639
+ ) : Xt.set(!0), vr(e).then(() => {
3640
+ St.set(e);
3638
3641
  }).finally(() => {
3639
- clearTimeout(n), jt.set(!1);
3642
+ clearTimeout(n), Xt.set(!1);
3640
3643
  });
3641
3644
  }
3642
- return At.set(e);
3643
- }, Ae = oa(aa({}, At), {
3644
- set: sa
3645
- }), It = (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 la = Object.defineProperty, Ct = Object.getOwnPropertySymbols, mr = Object.prototype.hasOwnProperty, gr = Object.prototype.propertyIsEnumerable, Sn = (e, t, n) => t in e ? la(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, hn = (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
- mr.call(t, n) && Sn(e, n, t[n]);
3655
- if (Ct)
3656
- for (var n of Ct(t))
3657
- gr.call(t, n) && Sn(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
- }, Qe = (e, t) => {
3662
+ }, Ke = (e, t) => {
3660
3663
  var n = {};
3661
3664
  for (var r in e)
3662
- mr.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3663
- if (e != null && Ct)
3664
- for (var r of Ct(e))
3665
- t.indexOf(r) < 0 && gr.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 at = (e, t) => {
3669
- const { formats: n } = We();
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
- }, ua = It(
3676
+ }, da = Ot(
3674
3677
  (e) => {
3675
- var t = e, { locale: n, format: r } = t, i = Qe(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 = at("number", r)), new Intl.NumberFormat(n, i);
3681
+ return r && (i = ut("number", r)), new Intl.NumberFormat(n, i);
3679
3682
  }
3680
- ), ca = It(
3683
+ ), pa = Ot(
3681
3684
  (e) => {
3682
- var t = e, { locale: n, format: r } = t, i = Qe(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 = at("date", r) : Object.keys(i).length === 0 && (i = at("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
- ), ha = It(
3690
+ ), ma = Ot(
3688
3691
  (e) => {
3689
- var t = e, { locale: n, format: r } = t, i = Qe(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 = at("time", r) : Object.keys(i).length === 0 && (i = at("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
- ), fa = (e = {}) => {
3699
+ ), ga = (e = {}) => {
3697
3700
  var t = e, {
3698
- locale: n = Pe()
3699
- } = t, r = Qe(t, [
3701
+ locale: n = Ne()
3702
+ } = t, r = Ke(t, [
3700
3703
  "locale"
3701
3704
  ]);
3702
- return ua(hn({ locale: n }, r));
3703
- }, da = (e = {}) => {
3705
+ return da(dn({ locale: n }, r));
3706
+ }, ba = (e = {}) => {
3704
3707
  var t = e, {
3705
- locale: n = Pe()
3706
- } = t, r = Qe(t, [
3708
+ locale: n = Ne()
3709
+ } = t, r = Ke(t, [
3707
3710
  "locale"
3708
3711
  ]);
3709
- return ca(hn({ locale: n }, r));
3710
- }, pa = (e = {}) => {
3712
+ return pa(dn({ locale: n }, r));
3713
+ }, ya = (e = {}) => {
3711
3714
  var t = e, {
3712
- locale: n = Pe()
3713
- } = t, r = Qe(t, [
3715
+ locale: n = Ne()
3716
+ } = t, r = Ke(t, [
3714
3717
  "locale"
3715
3718
  ]);
3716
- return ha(hn({ locale: n }, r));
3717
- }, ma = It(
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 = Pe()) => new Gi(e, t, We().formats, {
3720
- ignoreTag: We().ignoreTag
3722
+ (e, t = Ne()) => new Wi(e, t, ze().formats, {
3723
+ ignoreTag: ze().ignoreTag
3721
3724
  })
3722
- ), ga = (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 = Pe(),
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 = cr(e, s);
3736
- if (!c)
3737
- c = (a = (i = (r = (n = We()).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 = ma(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
- }, ba = (e, t) => pa(t).format(e), ya = (e, t) => da(t).format(e), va = (e, t) => fa(t).format(e), _a = (e, t = Pe()) => cr(e, t), Ea = ze([Ae, Ze], () => ga);
3755
- ze([Ae], () => ba);
3756
- ze([Ae], () => ya);
3757
- ze([Ae], () => va);
3758
- ze([Ae, Ze], () => _a);
3759
- function xa({ withLocale: e, translations: t }) {
3760
- Ae.subscribe((n) => {
3761
- n == null && (Ze.set(t), Ae.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 Hn(e, t) {
3765
- fr(e, t);
3767
+ function In(e, t) {
3768
+ br(e, t);
3766
3769
  }
3767
- function wa(e) {
3768
- Ae.set(e);
3770
+ function Ba(e) {
3771
+ Se.set(e);
3769
3772
  }
3770
- const R = yr(Ea), Pn = {
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 = yr(Ea), Pn = {
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 = yr(Ea), Pn = {
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 = yr(Ea), Pn = {
3874
3879
  10114: "Kullanıcı hesabı aktif değil.",
3875
3880
  10115: "İşlem niyeti bulunamadı."
3876
3881
  }
3877
- }, Aa = {
3882
+ }, Sa = {
3878
3883
  "1INCH": "",
3879
3884
  AAVE: "",
3880
3885
  ADA: "₳",
@@ -4150,35 +4155,38 @@ const R = yr(Ea), Pn = {
4150
4155
  ZMK: "",
4151
4156
  ZMW: "",
4152
4157
  ZWD: "Z$"
4153
- }, Ca = 6e3, Ta = {
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
- }, In = {
4165
+ }, Nn = {
4161
4166
  ResetVaultWidget: "ResetVaultWidget",
4162
4167
  CloseVaultWidget: "CloseVaultWidget"
4163
- }, Xt = {
4168
+ }, Wt = {
4164
4169
  VaultWidgetReset: "VaultWidgetReset",
4165
4170
  VaultWidgetClosed: "VaultWidgetClosed",
4166
4171
  VaultDropdownToggled: "VaultDropdownToggled"
4167
- }, Ln = {
4172
+ }, Rn = {
4168
4173
  Real: "Real",
4169
4174
  Vault: "Vault"
4170
- }, Ee = {
4175
+ }, Ce = {
4171
4176
  success: "success",
4172
4177
  error: "error"
4173
- }, Ba = String(Number.MAX_SAFE_INTEGER) + 1, gt = {
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"
4178
- }, xe = {
4183
+ }, Te = {
4179
4184
  true: "true"
4185
+ }, On = {
4186
+ Fiat: "Fiat",
4187
+ CryptoCurrency: "CryptoCurrency"
4180
4188
  };
4181
- function Sa(e, t) {
4189
+ function Ia(e, t) {
4182
4190
  let n;
4183
4191
  return function(...r) {
4184
4192
  n && clearTimeout(n), n = setTimeout(() => {
@@ -4186,14 +4194,14 @@ function Sa(e, t) {
4186
4194
  }, t);
4187
4195
  };
4188
4196
  }
4189
- const Nn = (e, t = null, n = 2) => {
4197
+ const Dn = (e, t = null, n = 2) => {
4190
4198
  try {
4191
4199
  return JSON.stringify(e, t, n);
4192
4200
  } catch (r) {
4193
4201
  return console.warn("Failed to stringify:", r), null;
4194
4202
  }
4195
4203
  };
4196
- function Ha(e) {
4204
+ function La(e) {
4197
4205
  const t = (n) => {
4198
4206
  e.contains(n.target) || e.dispatchEvent(new CustomEvent("outclick"));
4199
4207
  };
@@ -4203,66 +4211,66 @@ function Ha(e) {
4203
4211
  }
4204
4212
  };
4205
4213
  }
4206
- function Pa(e) {
4207
- on(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)}");
4208
4216
  }
4209
- function On(e, t, n) {
4217
+ function kn(e, t, n) {
4210
4218
  const r = e.slice();
4211
- return r[14] = t[n], r[16] = n, r;
4219
+ return r[16] = t[n], r[18] = n, r;
4212
4220
  }
4213
- function Rn(e) {
4221
+ function Mn(e) {
4214
4222
  let t, n = (
4215
4223
  /*selected*/
4216
4224
  (e[0]?.symbol || "") + ""
4217
4225
  ), r;
4218
4226
  return {
4219
4227
  c() {
4220
- 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");
4221
4229
  },
4222
4230
  m(i, a) {
4223
- T(i, t, a), y(t, r);
4231
+ C(i, t, a), y(t, r);
4224
4232
  },
4225
4233
  p(i, a) {
4226
4234
  a & /*selected*/
4227
4235
  1 && n !== (n = /*selected*/
4228
- (i[0]?.symbol || "") + "") && te(r, n);
4236
+ (i[0]?.symbol || "") + "") && ne(r, n);
4229
4237
  },
4230
4238
  d(i) {
4231
- i && C(t);
4239
+ i && A(t);
4232
4240
  }
4233
4241
  };
4234
4242
  }
4235
- function kn(e) {
4236
- let t, n = xt(
4243
+ function Fn(e) {
4244
+ let t, n = Tt(
4237
4245
  /*options*/
4238
4246
  e[1]
4239
4247
  ), r = [];
4240
4248
  for (let i = 0; i < n.length; i += 1)
4241
- r[i] = Dn(On(e, n, i));
4249
+ r[i] = Un(kn(e, n, i));
4242
4250
  return {
4243
4251
  c() {
4244
- t = E("ul");
4252
+ t = w("ul");
4245
4253
  for (let i = 0; i < r.length; i += 1)
4246
4254
  r[i].c();
4247
- m(t, "class", "selectDropdown svelte-1fe9nk9");
4255
+ g(t, "class", "selectDropdown svelte-ieaeyb");
4248
4256
  },
4249
4257
  m(i, a) {
4250
- T(i, t, a);
4258
+ C(i, t, a);
4251
4259
  for (let o = 0; o < r.length; o += 1)
4252
4260
  r[o] && r[o].m(t, null);
4253
- e[13](t);
4261
+ e[14](t);
4254
4262
  },
4255
4263
  p(i, a) {
4256
4264
  if (a & /*options, selected, activeIndex, handleChange*/
4257
4265
  547) {
4258
- n = xt(
4266
+ n = Tt(
4259
4267
  /*options*/
4260
4268
  i[1]
4261
4269
  );
4262
4270
  let o;
4263
4271
  for (o = 0; o < n.length; o += 1) {
4264
- const u = On(i, n, o);
4265
- r[o] ? r[o].p(u, a) : (r[o] = Dn(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));
4266
4274
  }
4267
4275
  for (; o < r.length; o += 1)
4268
4276
  r[o].d(1);
@@ -4270,144 +4278,144 @@ function kn(e) {
4270
4278
  }
4271
4279
  },
4272
4280
  d(i) {
4273
- i && C(t), Xn(r, i), e[13](null);
4281
+ i && A(t), Zn(r, i), e[14](null);
4274
4282
  }
4275
4283
  };
4276
4284
  }
4277
- function Dn(e) {
4285
+ function Un(e) {
4278
4286
  let t, n, r = (
4279
4287
  /*option*/
4280
- e[14]?.symbol + ""
4288
+ e[16]?.symbol + ""
4281
4289
  ), i, a, o = (
4282
4290
  /*option*/
4283
- e[14]?.currency + ""
4284
- ), u, s, l, c, d;
4291
+ e[16]?.currency + ""
4292
+ ), u, s, l, h, d;
4285
4293
  return {
4286
4294
  c() {
4287
- 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*/
4288
- 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*/
4289
4297
  e[0]?.currency || /*index*/
4290
- e[16] === /*activeIndex*/
4291
- e[5]), m(t, "class", "svelte-1fe9nk9"), le(
4298
+ e[18] === /*activeIndex*/
4299
+ e[5]), g(t, "class", "svelte-ieaeyb"), oe(
4292
4300
  t,
4293
4301
  "active",
4294
4302
  /*option*/
4295
- e[14]?.currency === /*selected*/
4303
+ e[16]?.currency === /*selected*/
4296
4304
  e[0]?.currency || /*index*/
4297
- e[16] === /*activeIndex*/
4305
+ e[18] === /*activeIndex*/
4298
4306
  e[5]
4299
4307
  );
4300
4308
  },
4301
- m(h, p) {
4302
- T(h, t, p), y(t, n), y(n, i), y(t, a), y(t, u), y(t, s), c || (d = [
4303
- ie(t, "keydown", La),
4304
- ie(t, "click", function() {
4305
- ot(
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(
4306
4314
  /*handleChange*/
4307
4315
  e[9](
4308
4316
  /*option*/
4309
- e[14],
4317
+ e[16],
4310
4318
  /*index*/
4311
- e[16]
4319
+ e[18]
4312
4320
  )
4313
4321
  ) && e[9](
4314
4322
  /*option*/
4315
- e[14],
4323
+ e[16],
4316
4324
  /*index*/
4317
- e[16]
4325
+ e[18]
4318
4326
  ).apply(this, arguments);
4319
4327
  })
4320
- ], c = !0);
4328
+ ], h = !0);
4321
4329
  },
4322
- p(h, p) {
4323
- e = h, p & /*options*/
4330
+ p(c, p) {
4331
+ e = c, p & /*options*/
4324
4332
  2 && r !== (r = /*option*/
4325
- e[14]?.symbol + "") && te(i, r), p & /*options*/
4333
+ e[16]?.symbol + "") && ne(i, r), p & /*options*/
4326
4334
  2 && o !== (o = /*option*/
4327
- e[14]?.currency + "") && te(u, o), p & /*options, selected, activeIndex*/
4335
+ e[16]?.currency + "") && ne(u, o), p & /*options, selected, activeIndex*/
4328
4336
  35 && l !== (l = /*option*/
4329
- e[14]?.currency === /*selected*/
4337
+ e[16]?.currency === /*selected*/
4330
4338
  e[0]?.currency || /*index*/
4331
- e[16] === /*activeIndex*/
4332
- e[5]) && m(t, "aria-selected", l), p & /*options, selected, activeIndex*/
4333
- 35 && le(
4339
+ e[18] === /*activeIndex*/
4340
+ e[5]) && g(t, "aria-selected", l), p & /*options, selected, activeIndex*/
4341
+ 35 && oe(
4334
4342
  t,
4335
4343
  "active",
4336
4344
  /*option*/
4337
- e[14]?.currency === /*selected*/
4345
+ e[16]?.currency === /*selected*/
4338
4346
  e[0]?.currency || /*index*/
4339
- e[16] === /*activeIndex*/
4347
+ e[18] === /*activeIndex*/
4340
4348
  e[5]
4341
4349
  );
4342
4350
  },
4343
- d(h) {
4344
- h && C(t), c = !1, ve(d);
4351
+ d(c) {
4352
+ c && A(t), h = !1, ve(d);
4345
4353
  }
4346
4354
  };
4347
4355
  }
4348
- function Ia(e) {
4356
+ function Ra(e) {
4349
4357
  let t, n, r, i, a = (
4350
4358
  /*selected*/
4351
4359
  (e[0]?.currency || /*placeholder*/
4352
4360
  e[2]) + ""
4353
- ), o, u, s, l, c, d, h = (
4361
+ ), o, u, s, l, h, d, c = (
4354
4362
  /*selected*/
4355
4363
  e[0]?.symbol && /*withSymbol*/
4356
- e[3] === xe.true && Rn(e)
4364
+ e[3] === Te.true && Mn(e)
4357
4365
  ), p = (
4358
4366
  /*open*/
4359
- e[7] && kn(e)
4367
+ e[7] && Fn(e)
4360
4368
  );
4361
4369
  return {
4362
4370
  c() {
4363
- 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(
4364
4372
  s,
4365
4373
  "open",
4366
4374
  /*open*/
4367
4375
  e[7]
4368
- ), 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(
4369
4377
  n,
4370
4378
  "aria-expanded",
4371
4379
  /*open*/
4372
4380
  e[7]
4373
- ), m(n, "aria-controls", "custom-select"), m(n, "tabindex", "0"), n.disabled = /*disabled*/
4374
- e[4], 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");
4375
4383
  },
4376
4384
  m(v, b) {
4377
- 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 = [
4378
- 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(
4379
4387
  n,
4380
4388
  "keydown",
4381
4389
  /*handleKeyDown*/
4382
4390
  e[11]
4383
4391
  ),
4384
- ie(n, "click", wr(
4392
+ te(n, "click", Sr(
4385
4393
  /*handleToggleDropdown*/
4386
4394
  e[8]
4387
4395
  )),
4388
- vr(Ha.call(null, t)),
4389
- ie(
4396
+ Ar(La.call(null, t)),
4397
+ te(
4390
4398
  t,
4391
4399
  "outclick",
4392
4400
  /*handleOutClick*/
4393
4401
  e[10]
4394
4402
  )
4395
- ], c = !0);
4403
+ ], h = !0);
4396
4404
  },
4397
4405
  p(v, [b]) {
4398
4406
  /*selected*/
4399
4407
  v[0]?.symbol && /*withSymbol*/
4400
- v[3] === xe.true ? h ? h.p(v, b) : (h = Rn(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*/
4401
4409
  5 && a !== (a = /*selected*/
4402
4410
  (v[0]?.currency || /*placeholder*/
4403
- v[2]) + "") && te(o, a), b & /*open*/
4404
- 128 && le(
4411
+ v[2]) + "") && ne(o, a), b & /*open*/
4412
+ 128 && oe(
4405
4413
  s,
4406
4414
  "open",
4407
4415
  /*open*/
4408
4416
  v[7]
4409
4417
  ), b & /*open*/
4410
- 128 && m(
4418
+ 128 && g(
4411
4419
  n,
4412
4420
  "aria-expanded",
4413
4421
  /*open*/
@@ -4415,165 +4423,180 @@ function Ia(e) {
4415
4423
  ), b & /*disabled*/
4416
4424
  16 && (n.disabled = /*disabled*/
4417
4425
  v[4]), /*open*/
4418
- v[7] ? p ? p.p(v, b) : (p = kn(v), p.c(), p.m(t, null)) : p && (p.d(1), p = null);
4426
+ v[7] ? p ? p.p(v, b) : (p = Fn(v), p.c(), p.m(t, null)) : p && (p.d(1), p = null);
4419
4427
  },
4420
- i: S,
4421
- o: S,
4428
+ i: B,
4429
+ o: B,
4422
4430
  d(v) {
4423
- 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);
4424
4432
  }
4425
4433
  };
4426
4434
  }
4427
- const La = (e) => e.preventDefault();
4428
- function Na(e, t, n) {
4429
- let { options: r = [] } = t, { selected: i = null } = t, { placeholder: a = R("select") } = t, { withSymbol: o = "true" } = t, { disabled: u = !1 } = t, { onChange: s = () => {
4430
- } } = t, l = -1, c, d = !1;
4431
- const h = () => {
4432
- r.length !== 0 && (n(7, d = !d), d && (n(5, l = r.findIndex((_) => _?.currency === i?.currency)), setTimeout(() => c?.focus(), 0)));
4433
- }, p = (_, O) => () => {
4434
- n(7, d = !1), n(0, i = _), s && typeof s == "function" && s(_, O);
4435
- }, v = () => {
4436
- n(7, d = !1);
4437
- }, b = (_) => {
4438
- d && (_.key === gt.ArrowDown ? (_.preventDefault(), n(5, l = (l + 1) % r.length)) : _.key === gt.ArrowUp ? (_.preventDefault(), n(5, l = (l - 1 + r.length) % r.length)) : _.key === gt.Enter ? (_.preventDefault(), p(i, l)()) : _.key === gt.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));
4439
4449
  };
4440
- function N(_) {
4441
- Ue[_ ? "unshift" : "push"](() => {
4442
- 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);
4443
4458
  });
4444
4459
  }
4445
4460
  return e.$$set = (_) => {
4446
- "options" in _ && n(1, r = _.options), "selected" in _ && n(0, i = _.selected), "placeholder" in _ && n(2, a = _.placeholder), "withSymbol" in _ && n(3, o = _.withSymbol), "disabled" in _ && n(4, u = _.disabled), "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);
4447
4462
  }, [
4448
4463
  i,
4449
4464
  r,
4450
4465
  a,
4451
4466
  o,
4452
- u,
4453
- l,
4454
- c,
4455
- d,
4467
+ s,
4456
4468
  h,
4469
+ d,
4470
+ c,
4457
4471
  p,
4458
- v,
4459
4472
  b,
4460
- s,
4461
- N
4473
+ L,
4474
+ N,
4475
+ u,
4476
+ l,
4477
+ R
4462
4478
  ];
4463
4479
  }
4464
- class an extends un {
4480
+ class sn extends hn {
4465
4481
  constructor(t) {
4466
- super(), sn(
4482
+ super(), un(
4467
4483
  this,
4468
4484
  t,
4469
- Na,
4470
- Ia,
4471
- Tt,
4485
+ Da,
4486
+ Ra,
4487
+ Pt,
4472
4488
  {
4473
4489
  options: 1,
4474
4490
  selected: 0,
4475
4491
  placeholder: 2,
4476
4492
  withSymbol: 3,
4493
+ id: 12,
4477
4494
  disabled: 4,
4478
- onChange: 12
4495
+ onChange: 13
4479
4496
  },
4480
- Pa
4497
+ Na
4481
4498
  );
4482
4499
  }
4483
4500
  get options() {
4484
4501
  return this.$$.ctx[1];
4485
4502
  }
4486
4503
  set options(t) {
4487
- this.$$set({ options: t }), G();
4504
+ this.$$set({ options: t }), V();
4488
4505
  }
4489
4506
  get selected() {
4490
4507
  return this.$$.ctx[0];
4491
4508
  }
4492
4509
  set selected(t) {
4493
- this.$$set({ selected: t }), G();
4510
+ this.$$set({ selected: t }), V();
4494
4511
  }
4495
4512
  get placeholder() {
4496
4513
  return this.$$.ctx[2];
4497
4514
  }
4498
4515
  set placeholder(t) {
4499
- this.$$set({ placeholder: t }), G();
4516
+ this.$$set({ placeholder: t }), V();
4500
4517
  }
4501
4518
  get withSymbol() {
4502
4519
  return this.$$.ctx[3];
4503
4520
  }
4504
4521
  set withSymbol(t) {
4505
- this.$$set({ withSymbol: t }), G();
4522
+ this.$$set({ withSymbol: t }), V();
4523
+ }
4524
+ get id() {
4525
+ return this.$$.ctx[12];
4526
+ }
4527
+ set id(t) {
4528
+ this.$$set({ id: t }), V();
4506
4529
  }
4507
4530
  get disabled() {
4508
4531
  return this.$$.ctx[4];
4509
4532
  }
4510
4533
  set disabled(t) {
4511
- this.$$set({ disabled: t }), G();
4534
+ this.$$set({ disabled: t }), V();
4512
4535
  }
4513
4536
  get onChange() {
4514
- return this.$$.ctx[12];
4537
+ return this.$$.ctx[13];
4515
4538
  }
4516
4539
  set onChange(t) {
4517
- this.$$set({ onChange: t }), G();
4540
+ this.$$set({ onChange: t }), V();
4518
4541
  }
4519
4542
  }
4520
- ln(an, { options: {}, selected: {}, placeholder: {}, withSymbol: {}, disabled: { type: "Boolean" }, onChange: {} }, [], [], !0);
4521
- function Oa(e) {
4522
- on(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}");
4523
4546
  }
4524
- function Ra(e) {
4525
- let t, n, r = R("balanceUnavailable") + "", i;
4547
+ function Ma(e) {
4548
+ let t, n, r = O("balanceUnavailable") + "", i;
4526
4549
  return {
4527
4550
  c() {
4528
- 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");
4529
4552
  },
4530
4553
  m(a, o) {
4531
- 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);
4532
4555
  },
4533
- p: S,
4534
- i: S,
4535
- o: S,
4556
+ p: B,
4557
+ i: B,
4558
+ o: B,
4536
4559
  d(a) {
4537
- a && (C(t), C(n), C(i));
4560
+ a && (A(t), A(n), A(i));
4538
4561
  }
4539
4562
  };
4540
4563
  }
4541
- class Lt extends un {
4564
+ class Dt extends hn {
4542
4565
  constructor(t) {
4543
- super(), sn(this, t, null, Ra, Tt, {}, Oa);
4566
+ super(), un(this, t, null, Ma, Pt, {}, ka);
4544
4567
  }
4545
4568
  }
4546
- ln(Lt, {}, [], [], !0);
4547
- function ka(e) {
4548
- on(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}');
4549
4572
  }
4550
- function Mn(e, t, n) {
4573
+ function Vn(e, t, n) {
4551
4574
  const r = e.slice();
4552
- return r[60] = t[n], r;
4575
+ return r[62] = t[n], r;
4553
4576
  }
4554
- function Fn(e) {
4577
+ function Gn(e) {
4555
4578
  let t, n, r;
4556
4579
  return {
4557
4580
  c() {
4558
- 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");
4559
4582
  },
4560
4583
  m(i, a) {
4561
- T(i, t, a), n || (r = ie(
4584
+ C(i, t, a), n || (r = te(
4562
4585
  t,
4563
4586
  "click",
4564
4587
  /*handleCloseWidget*/
4565
4588
  e[23]
4566
4589
  ), n = !0);
4567
4590
  },
4568
- p: S,
4591
+ p: B,
4569
4592
  d(i) {
4570
- i && C(t), n = !1, r();
4593
+ i && A(t), n = !1, r();
4571
4594
  }
4572
4595
  };
4573
4596
  }
4574
- function Un(e) {
4597
+ function $n(e) {
4575
4598
  let t, n, r, i;
4576
- const a = [Ma, Da], o = [];
4599
+ const a = [Va, Ua], o = [];
4577
4600
  function u(s, l) {
4578
4601
  return !/*isBalanceFetched*/
4579
4602
  s[16] || !/*isCurrenciesFetched*/
@@ -4581,79 +4604,79 @@ function Un(e) {
4581
4604
  }
4582
4605
  return t = u(e), n = o[t] = a[t](e), {
4583
4606
  c() {
4584
- n.c(), r = xr();
4607
+ n.c(), r = Br();
4585
4608
  },
4586
4609
  m(s, l) {
4587
- o[t].m(s, l), T(s, r, l), i = !0;
4610
+ o[t].m(s, l), C(s, r, l), i = !0;
4588
4611
  },
4589
4612
  p(s, l) {
4590
- let c = t;
4591
- t = u(s), t === c ? o[t].p(s, l) : (Se(), W(o[c], 1, 1, () => {
4592
- o[c] = null;
4593
- }), He(), 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));
4594
4617
  },
4595
4618
  i(s) {
4596
- i || (U(n), i = !0);
4619
+ i || (G(n), i = !0);
4597
4620
  },
4598
4621
  o(s) {
4599
- W(n), i = !1;
4622
+ X(n), i = !1;
4600
4623
  },
4601
4624
  d(s) {
4602
- s && C(r), o[t].d(s);
4625
+ s && A(r), o[t].d(s);
4603
4626
  }
4604
4627
  };
4605
4628
  }
4606
- function Da(e) {
4629
+ function Ua(e) {
4607
4630
  let t, n, r, i;
4608
- const a = [Ua, Fa], o = [];
4631
+ const a = [$a, Ga], o = [];
4609
4632
  function u(s, l) {
4610
4633
  return (
4611
4634
  /*fetchResponse*/
4612
- s[12]?.source === K.BalanceError ? 0 : 1
4635
+ s[12]?.source === z.BalanceError ? 0 : 1
4613
4636
  );
4614
4637
  }
4615
4638
  return n = u(e), r = o[n] = a[n](e), {
4616
4639
  c() {
4617
- t = E("div"), r.c(), m(t, "class", "headerPlayerBalance amountContainer");
4640
+ t = w("div"), r.c(), g(t, "class", "headerPlayerBalance amountContainer");
4618
4641
  },
4619
4642
  m(s, l) {
4620
- T(s, t, l), o[n].m(t, null), i = !0;
4643
+ C(s, t, l), o[n].m(t, null), i = !0;
4621
4644
  },
4622
4645
  p(s, l) {
4623
- let c = n;
4624
- n = u(s), n === c ? o[n].p(s, l) : (Se(), W(o[c], 1, 1, () => {
4625
- o[c] = null;
4626
- }), He(), 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));
4627
4650
  },
4628
4651
  i(s) {
4629
- i || (U(r), i = !0);
4652
+ i || (G(r), i = !0);
4630
4653
  },
4631
4654
  o(s) {
4632
- W(r), i = !1;
4655
+ X(r), i = !1;
4633
4656
  },
4634
4657
  d(s) {
4635
- s && C(t), o[n].d();
4658
+ s && A(t), o[n].d();
4636
4659
  }
4637
4660
  };
4638
4661
  }
4639
- function Ma(e) {
4662
+ function Va(e) {
4640
4663
  let t;
4641
4664
  return {
4642
4665
  c() {
4643
- t = E("div"), m(t, "class", "skeleton");
4666
+ t = w("div"), g(t, "class", "skeleton");
4644
4667
  },
4645
4668
  m(n, r) {
4646
- T(n, t, r);
4669
+ C(n, t, r);
4647
4670
  },
4648
- p: S,
4649
- i: S,
4650
- o: S,
4671
+ p: B,
4672
+ i: B,
4673
+ o: B,
4651
4674
  d(n) {
4652
- n && C(t);
4675
+ n && A(t);
4653
4676
  }
4654
4677
  };
4655
4678
  }
4656
- function Fa(e) {
4679
+ function Ga(e) {
4657
4680
  let t, n, r = (
4658
4681
  /*playerBalance*/
4659
4682
  (e[10]?.amount || 0) + ""
@@ -4663,109 +4686,109 @@ function Fa(e) {
4663
4686
  ), u;
4664
4687
  return {
4665
4688
  c() {
4666
- 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");
4667
4690
  },
4668
4691
  m(s, l) {
4669
- 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);
4670
4693
  },
4671
4694
  p(s, l) {
4672
4695
  l[0] & /*playerBalance*/
4673
4696
  1024 && r !== (r = /*playerBalance*/
4674
- (s[10]?.amount || 0) + "") && te(i, r), l[0] & /*playerBalance*/
4697
+ (s[10]?.amount || 0) + "") && ne(i, r), l[0] & /*playerBalance*/
4675
4698
  1024 && o !== (o = /*playerBalance*/
4676
- (s[10]?.currency || "") + "") && te(u, o);
4699
+ (s[10]?.currency || "") + "") && ne(u, o);
4677
4700
  },
4678
- i: S,
4679
- o: S,
4701
+ i: B,
4702
+ o: B,
4680
4703
  d(s) {
4681
- s && (C(t), C(n), C(i), C(a), C(u));
4704
+ s && (A(t), A(n), A(i), A(a), A(u));
4682
4705
  }
4683
4706
  };
4684
4707
  }
4685
- function Ua(e) {
4708
+ function $a(e) {
4686
4709
  let t, n;
4687
- return t = new Lt({}), {
4710
+ return t = new Dt({}), {
4688
4711
  c() {
4689
- rt(t.$$.fragment);
4712
+ st(t.$$.fragment);
4690
4713
  },
4691
4714
  m(r, i) {
4692
- Ve(t, r, i), n = !0;
4715
+ Ge(t, r, i), n = !0;
4693
4716
  },
4694
- p: S,
4717
+ p: B,
4695
4718
  i(r) {
4696
- n || (U(t.$$.fragment, r), n = !0);
4719
+ n || (G(t.$$.fragment, r), n = !0);
4697
4720
  },
4698
4721
  o(r) {
4699
- W(t.$$.fragment, r), n = !1;
4722
+ X(t.$$.fragment, r), n = !1;
4700
4723
  },
4701
4724
  d(r) {
4702
- Ge(t, r);
4725
+ $e(t, r);
4703
4726
  }
4704
4727
  };
4705
4728
  }
4706
- function Va(e) {
4729
+ function ja(e) {
4707
4730
  let t, n, r, i, a, o, u, s, l;
4708
- const c = [ja, $a], d = [];
4709
- function h(p, v) {
4731
+ const h = [za, Wa], d = [];
4732
+ function c(p, v) {
4710
4733
  return (
4711
4734
  /*fetchResponse*/
4712
- p[12]?.source === K.BalanceError ? 0 : 1
4735
+ p[12]?.source === z.BalanceError ? 0 : 1
4713
4736
  );
4714
4737
  }
4715
- return o = h(e), u = d[o] = c[o](e), {
4738
+ return o = c(e), u = d[o] = h[o](e), {
4716
4739
  c() {
4717
- t = E("div"), n = E("p"), r = z(
4740
+ t = w("div"), n = w("p"), r = W(
4718
4741
  /*validationError*/
4719
4742
  e[13]
4720
- ), 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*/
4721
4744
  (e[13] ? "hasError" : ""));
4722
4745
  },
4723
4746
  m(p, v) {
4724
- 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;
4725
4748
  },
4726
4749
  p(p, v) {
4727
4750
  (!l || v[0] & /*validationError*/
4728
- 8192) && te(
4751
+ 8192) && ne(
4729
4752
  r,
4730
4753
  /*validationError*/
4731
4754
  p[13]
4732
4755
  );
4733
4756
  let b = o;
4734
- o = h(p), o === b ? d[o].p(p, v) : (Se(), W(d[b], 1, 1, () => {
4757
+ o = c(p), o === b ? d[o].p(p, v) : (Ie(), X(d[b], 1, 1, () => {
4735
4758
  d[b] = null;
4736
- }), He(), 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*/
4737
4760
  8192 && s !== (s = "balanceContainer " + /*validationError*/
4738
- (p[13] ? "hasError" : ""))) && m(t, "class", s);
4761
+ (p[13] ? "hasError" : ""))) && g(t, "class", s);
4739
4762
  },
4740
4763
  i(p) {
4741
- l || (U(u), l = !0);
4764
+ l || (G(u), l = !0);
4742
4765
  },
4743
4766
  o(p) {
4744
- W(u), l = !1;
4767
+ X(u), l = !1;
4745
4768
  },
4746
4769
  d(p) {
4747
- p && C(t), d[o].d();
4770
+ p && A(t), d[o].d();
4748
4771
  }
4749
4772
  };
4750
4773
  }
4751
- function Ga(e) {
4774
+ function Xa(e) {
4752
4775
  let t;
4753
4776
  return {
4754
4777
  c() {
4755
- t = E("div"), m(t, "class", "skeleton");
4778
+ t = w("div"), g(t, "class", "skeleton");
4756
4779
  },
4757
4780
  m(n, r) {
4758
- T(n, t, r);
4781
+ C(n, t, r);
4759
4782
  },
4760
- p: S,
4761
- i: S,
4762
- o: S,
4783
+ p: B,
4784
+ i: B,
4785
+ o: B,
4763
4786
  d(n) {
4764
- n && C(t);
4787
+ n && A(t);
4765
4788
  }
4766
4789
  };
4767
4790
  }
4768
- function $a(e) {
4791
+ function Wa(e) {
4769
4792
  let t, n, r = (
4770
4793
  /*selectedCurrencyFrom*/
4771
4794
  (e[5]?.amount || 0) + ""
@@ -4775,97 +4798,97 @@ function $a(e) {
4775
4798
  ), u;
4776
4799
  return {
4777
4800
  c() {
4778
- 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");
4779
4802
  },
4780
4803
  m(s, l) {
4781
- 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);
4782
4805
  },
4783
4806
  p(s, l) {
4784
4807
  l[0] & /*selectedCurrencyFrom*/
4785
4808
  32 && r !== (r = /*selectedCurrencyFrom*/
4786
- (s[5]?.amount || 0) + "") && te(i, r), l[0] & /*selectedCurrencyFrom*/
4809
+ (s[5]?.amount || 0) + "") && ne(i, r), l[0] & /*selectedCurrencyFrom*/
4787
4810
  32 && o !== (o = /*selectedCurrencyFrom*/
4788
- (s[5]?.currency || "") + "") && te(u, o);
4811
+ (s[5]?.currency || "") + "") && ne(u, o);
4789
4812
  },
4790
- i: S,
4791
- o: S,
4813
+ i: B,
4814
+ o: B,
4792
4815
  d(s) {
4793
- s && (C(t), C(n), C(i), C(a), C(u));
4816
+ s && (A(t), A(n), A(i), A(a), A(u));
4794
4817
  }
4795
4818
  };
4796
4819
  }
4797
- function ja(e) {
4820
+ function za(e) {
4798
4821
  let t, n;
4799
- return t = new Lt({}), {
4822
+ return t = new Dt({}), {
4800
4823
  c() {
4801
- rt(t.$$.fragment);
4824
+ st(t.$$.fragment);
4802
4825
  },
4803
4826
  m(r, i) {
4804
- Ve(t, r, i), n = !0;
4827
+ Ge(t, r, i), n = !0;
4805
4828
  },
4806
- p: S,
4829
+ p: B,
4807
4830
  i(r) {
4808
- n || (U(t.$$.fragment, r), n = !0);
4831
+ n || (G(t.$$.fragment, r), n = !0);
4809
4832
  },
4810
4833
  o(r) {
4811
- W(t.$$.fragment, r), n = !1;
4834
+ X(t.$$.fragment, r), n = !1;
4812
4835
  },
4813
4836
  d(r) {
4814
- Ge(t, r);
4837
+ $e(t, r);
4815
4838
  }
4816
4839
  };
4817
4840
  }
4818
- function Xa(e) {
4841
+ function Za(e) {
4819
4842
  let t, n, r, i;
4820
- const a = [Za, za], o = [];
4843
+ const a = [Ya, Ka], o = [];
4821
4844
  function u(s, l) {
4822
4845
  return (
4823
4846
  /*fetchResponse*/
4824
- s[12]?.source === K.BalanceError ? 0 : 1
4847
+ s[12]?.source === z.BalanceError ? 0 : 1
4825
4848
  );
4826
4849
  }
4827
4850
  return n = u(e), r = o[n] = a[n](e), {
4828
4851
  c() {
4829
- t = E("div"), r.c(), m(t, "class", "playerBalance amountContainer");
4852
+ t = w("div"), r.c(), g(t, "class", "playerBalance amountContainer");
4830
4853
  },
4831
4854
  m(s, l) {
4832
- T(s, t, l), o[n].m(t, null), i = !0;
4855
+ C(s, t, l), o[n].m(t, null), i = !0;
4833
4856
  },
4834
4857
  p(s, l) {
4835
- let c = n;
4836
- n = u(s), n === c ? o[n].p(s, l) : (Se(), W(o[c], 1, 1, () => {
4837
- o[c] = null;
4838
- }), He(), 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));
4839
4862
  },
4840
4863
  i(s) {
4841
- i || (U(r), i = !0);
4864
+ i || (G(r), i = !0);
4842
4865
  },
4843
4866
  o(s) {
4844
- W(r), i = !1;
4867
+ X(r), i = !1;
4845
4868
  },
4846
4869
  d(s) {
4847
- s && C(t), o[n].d();
4870
+ s && A(t), o[n].d();
4848
4871
  }
4849
4872
  };
4850
4873
  }
4851
- function Wa(e) {
4874
+ function Qa(e) {
4852
4875
  let t;
4853
4876
  return {
4854
4877
  c() {
4855
- t = E("div"), m(t, "class", "skeleton");
4878
+ t = w("div"), g(t, "class", "skeleton");
4856
4879
  },
4857
4880
  m(n, r) {
4858
- T(n, t, r);
4881
+ C(n, t, r);
4859
4882
  },
4860
- p: S,
4861
- i: S,
4862
- o: S,
4883
+ p: B,
4884
+ i: B,
4885
+ o: B,
4863
4886
  d(n) {
4864
- n && C(t);
4887
+ n && A(t);
4865
4888
  }
4866
4889
  };
4867
4890
  }
4868
- function za(e) {
4891
+ function Ka(e) {
4869
4892
  let t, n, r = (
4870
4893
  /*selectedCurrencyTo*/
4871
4894
  (e[6]?.amount || 0) + ""
@@ -4875,69 +4898,69 @@ function za(e) {
4875
4898
  ), u;
4876
4899
  return {
4877
4900
  c() {
4878
- 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");
4879
4902
  },
4880
4903
  m(s, l) {
4881
- 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);
4882
4905
  },
4883
4906
  p(s, l) {
4884
4907
  l[0] & /*selectedCurrencyTo*/
4885
4908
  64 && r !== (r = /*selectedCurrencyTo*/
4886
- (s[6]?.amount || 0) + "") && te(i, r), l[0] & /*selectedCurrencyTo*/
4909
+ (s[6]?.amount || 0) + "") && ne(i, r), l[0] & /*selectedCurrencyTo*/
4887
4910
  64 && o !== (o = /*selectedCurrencyTo*/
4888
- (s[6]?.currency || "") + "") && te(u, o);
4911
+ (s[6]?.currency || "") + "") && ne(u, o);
4889
4912
  },
4890
- i: S,
4891
- o: S,
4913
+ i: B,
4914
+ o: B,
4892
4915
  d(s) {
4893
- s && (C(t), C(n), C(i), C(a), C(u));
4916
+ s && (A(t), A(n), A(i), A(a), A(u));
4894
4917
  }
4895
4918
  };
4896
4919
  }
4897
- function Za(e) {
4920
+ function Ya(e) {
4898
4921
  let t, n;
4899
- return t = new Lt({}), {
4922
+ return t = new Dt({}), {
4900
4923
  c() {
4901
- rt(t.$$.fragment);
4924
+ st(t.$$.fragment);
4902
4925
  },
4903
4926
  m(r, i) {
4904
- Ve(t, r, i), n = !0;
4927
+ Ge(t, r, i), n = !0;
4905
4928
  },
4906
- p: S,
4929
+ p: B,
4907
4930
  i(r) {
4908
- n || (U(t.$$.fragment, r), n = !0);
4931
+ n || (G(t.$$.fragment, r), n = !0);
4909
4932
  },
4910
4933
  o(r) {
4911
- W(t.$$.fragment, r), n = !1;
4934
+ X(t.$$.fragment, r), n = !1;
4912
4935
  },
4913
4936
  d(r) {
4914
- Ge(t, r);
4937
+ $e(t, r);
4915
4938
  }
4916
4939
  };
4917
4940
  }
4918
- function Vn(e) {
4919
- let t, n, r, i, a, o, u, s, l, c, d = xt(
4941
+ function jn(e) {
4942
+ let t, n, r, i, a, o, u, s, l, h, d = Tt(
4920
4943
  /*dropDownVaults*/
4921
4944
  e[19]
4922
- ), h = [];
4945
+ ), c = [];
4923
4946
  for (let p = 0; p < d.length; p += 1)
4924
- h[p] = Gn(Mn(e, d, p));
4947
+ c[p] = Xn(Vn(e, d, p));
4925
4948
  return {
4926
4949
  c() {
4927
- t = E("div"), n = E("button"), r = dn("svg"), i = dn("path"), o = I(), u = E("div");
4928
- for (let p = 0; p < h.length; p += 1)
4929
- h[p].c();
4930
- 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*/
4931
4954
  (e[15] && /*dropDownVaults*/
4932
- e[19].length > 0 ? "active" : "")), m(u, "class", s = "vaultDropdown " + /*isVaultDropDownToggled*/
4955
+ e[19].length > 0 ? "active" : "")), g(u, "class", s = "vaultDropdown " + /*isVaultDropDownToggled*/
4933
4956
  (e[15] && /*dropDownVaults*/
4934
- e[19].length > 0 ? "expanded" : "")), m(t, "class", "vaultsContainer");
4957
+ e[19].length > 0 ? "expanded" : "")), g(t, "class", "vaultsContainer");
4935
4958
  },
4936
4959
  m(p, v) {
4937
- T(p, t, v), y(t, n), y(n, r), y(r, i), y(t, o), y(t, u);
4938
- for (let b = 0; b < h.length; b += 1)
4939
- h[b] && h[b].m(u, null);
4940
- 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(
4941
4964
  n,
4942
4965
  "click",
4943
4966
  /*handleToggleVaultDropdown*/
@@ -4948,110 +4971,111 @@ function Vn(e) {
4948
4971
  if (v[0] & /*isVaultDropDownToggled, dropDownVaults*/
4949
4972
  557056 && a !== (a = "vaultToggleButton " + /*isVaultDropDownToggled*/
4950
4973
  (p[15] && /*dropDownVaults*/
4951
- 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*/
4952
4975
  524288) {
4953
- d = xt(
4976
+ d = Tt(
4954
4977
  /*dropDownVaults*/
4955
4978
  p[19]
4956
4979
  );
4957
4980
  let b;
4958
4981
  for (b = 0; b < d.length; b += 1) {
4959
- const N = Mn(p, d, b);
4960
- h[b] ? h[b].p(N, v) : (h[b] = Gn(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));
4961
4984
  }
4962
- for (; b < h.length; b += 1)
4963
- h[b].d(1);
4964
- h.length = d.length;
4985
+ for (; b < c.length; b += 1)
4986
+ c[b].d(1);
4987
+ c.length = d.length;
4965
4988
  }
4966
4989
  v[0] & /*isVaultDropDownToggled, dropDownVaults*/
4967
4990
  557056 && s !== (s = "vaultDropdown " + /*isVaultDropDownToggled*/
4968
4991
  (p[15] && /*dropDownVaults*/
4969
- p[19].length > 0 ? "expanded" : "")) && m(u, "class", s);
4992
+ p[19].length > 0 ? "expanded" : "")) && g(u, "class", s);
4970
4993
  },
4971
4994
  d(p) {
4972
- p && C(t), Xn(h, p), l = !1, c();
4995
+ p && A(t), Zn(c, p), l = !1, h();
4973
4996
  }
4974
4997
  };
4975
4998
  }
4976
- function Gn(e) {
4999
+ function Xn(e) {
4977
5000
  let t, n, r = (
4978
5001
  /*vault*/
4979
- e[60]?.currency + ""
5002
+ e[62]?.currency + ""
4980
5003
  ), i, a, o, u = (
4981
5004
  /*vault*/
4982
- e[60]?.amount + ""
5005
+ e[62]?.amount + ""
4983
5006
  ), s, l;
4984
5007
  return {
4985
5008
  c() {
4986
- 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");
4987
5010
  },
4988
- m(c, d) {
4989
- 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);
4990
5013
  },
4991
- p(c, d) {
5014
+ p(h, d) {
4992
5015
  d[0] & /*dropDownVaults*/
4993
5016
  524288 && r !== (r = /*vault*/
4994
- c[60]?.currency + "") && te(i, r), d[0] & /*dropDownVaults*/
5017
+ h[62]?.currency + "") && ne(i, r), d[0] & /*dropDownVaults*/
4995
5018
  524288 && u !== (u = /*vault*/
4996
- c[60]?.amount + "") && te(s, u);
5019
+ h[62]?.amount + "") && ne(s, u);
4997
5020
  },
4998
- d(c) {
4999
- c && C(t);
5021
+ d(h) {
5022
+ h && A(t);
5000
5023
  }
5001
5024
  };
5002
5025
  }
5003
- function Qa(e) {
5026
+ function Ja(e) {
5004
5027
  let t = `${/*currentFee*/
5005
- e[11]?.amount || 0} ${/*currentFee*/
5006
- e[11]?.currency || ""}`, n;
5028
+ e[11]?.fees[0]?.amount || 0} ${/*currentFee*/
5029
+ e[11]?.fees[0]?.currency || ""}`, n;
5007
5030
  return {
5008
5031
  c() {
5009
- n = z(t);
5032
+ n = W(t);
5010
5033
  },
5011
5034
  m(r, i) {
5012
- T(r, n, i);
5035
+ C(r, n, i);
5013
5036
  },
5014
5037
  p(r, i) {
5015
5038
  i[0] & /*currentFee*/
5016
5039
  2048 && t !== (t = `${/*currentFee*/
5017
- r[11]?.amount || 0} ${/*currentFee*/
5018
- r[11]?.currency || ""}`) && te(n, t);
5040
+ r[11]?.fees[0]?.amount || 0} ${/*currentFee*/
5041
+ r[11]?.fees[0]?.currency || ""}`) && ne(n, t);
5019
5042
  },
5020
5043
  d(r) {
5021
- r && C(n);
5044
+ r && A(n);
5022
5045
  }
5023
5046
  };
5024
5047
  }
5025
- function Ka(e) {
5026
- let t = R("feesUnavailable") + "", n;
5048
+ function qa(e) {
5049
+ let t = O("feesUnavailable") + "", n;
5027
5050
  return {
5028
5051
  c() {
5029
- n = z(t);
5052
+ n = W(t);
5030
5053
  },
5031
5054
  m(r, i) {
5032
- T(r, n, i);
5055
+ C(r, n, i);
5033
5056
  },
5034
- p: S,
5057
+ p: B,
5035
5058
  d(r) {
5036
- r && C(n);
5059
+ r && A(n);
5037
5060
  }
5038
5061
  };
5039
5062
  }
5040
- function Ya(e) {
5041
- 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, Ie, Y, me, Ke, J, j, st, Ye, _e, Le, lt, Ce, Ne, 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(
5042
5065
  /*fetchResponse*/
5043
5066
  e[12]?.message || ""
5044
- ) + "", Je, be, fe, ut, X, Nt = R("exchange") + "", Te, Oe, ee, Re, Ot, Q = (
5067
+ ) + "", we, me, ge, De, q, Ae = O("exchange") + "", ft, be, ee, qe, et, K = (
5045
5068
  /*showclosebutton*/
5046
- e[3] === xe.true && Fn(e)
5047
- ), V = (
5069
+ e[3] === Te.true && Gn(e)
5070
+ ), U = (
5048
5071
  /*showtotalbalance*/
5049
- e[2] === xe.true && Un(e)
5072
+ e[2] === Te.true && $n(e)
5050
5073
  );
5051
- function Rt(g) {
5052
- e[38](g);
5074
+ function kt(m) {
5075
+ e[39](m);
5053
5076
  }
5054
- let ct = {
5077
+ let dt = {
5078
+ id: "senderSelect",
5055
5079
  withSymbol: (
5056
5080
  /*showcurrencysymbol*/
5057
5081
  e[4]
@@ -5069,19 +5093,20 @@ function Ya(e) {
5069
5093
  )
5070
5094
  };
5071
5095
  /*selectedCurrencyFrom*/
5072
- e[5] !== void 0 && (ct.selected = /*selectedCurrencyFrom*/
5073
- e[5]), b = new an({ props: ct }), Ue.push(() => mn(b, "selected", Rt));
5074
- const qe = [Ga, Va], de = [];
5075
- function ht(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) {
5076
5100
  return !/*isBalanceFetched*/
5077
- g[16] || !/*isCurrenciesFetched*/
5078
- g[17] ? 0 : 1;
5101
+ m[16] || !/*isCurrenciesFetched*/
5102
+ m[17] ? 0 : 1;
5079
5103
  }
5080
- O = ht(e), L = de[O] = qe[O](e);
5081
- function kt(g) {
5082
- e[40](g);
5104
+ R = tt(e), _ = ue[R] = pt[R](e);
5105
+ function Mt(m) {
5106
+ e[41](m);
5083
5107
  }
5084
- let ft = {
5108
+ let mt = {
5109
+ id: "destinationSelect",
5085
5110
  withSymbol: (
5086
5111
  /*showcurrencysymbol*/
5087
5112
  e[4]
@@ -5101,549 +5126,555 @@ function Ya(e) {
5101
5126
  )
5102
5127
  };
5103
5128
  /*selectedCurrencyTo*/
5104
- e[6] !== void 0 && (ft.selected = /*selectedCurrencyTo*/
5105
- e[6]), Y = new an({ props: ft }), Ue.push(() => mn(Y, "selected", kt));
5106
- const dt = [Wa, Xa], f = [];
5107
- 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) {
5108
5133
  return !/*isBalanceFetched*/
5109
- g[16] || !/*isCurrenciesFetched*/
5110
- g[17] ? 0 : 1;
5134
+ m[16] || !/*isCurrenciesFetched*/
5135
+ m[17] ? 0 : 1;
5111
5136
  }
5112
- J = x(e), j = f[J] = dt[J](e);
5113
- let w = (
5137
+ Q = bt(e), J = ce[Q] = gt[Q](e);
5138
+ let f = (
5114
5139
  /*showvaults*/
5115
- e[1] === xe.true && Vn(e)
5140
+ e[1] === Te.true && jn(e)
5116
5141
  );
5117
- function A(g, H) {
5142
+ function E(m, S) {
5118
5143
  return (
5119
5144
  /*fetchResponse*/
5120
- g[12]?.source === K.CheckWalletExchangeError ? Ka : Qa
5145
+ m[12]?.source === z.CheckWalletExchangeError ? qa : Ja
5121
5146
  );
5122
5147
  }
5123
- let Z = A(e), se = Z(e);
5148
+ let I = E(e), x = I(e);
5124
5149
  return {
5125
5150
  c() {
5126
- 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(), rt(b.$$.fragment), _ = I(), L.c(), ae = I(), D = E("div"), ne = E("p"), ne.textContent = `${R("exchangeTo")}`, oe = I(), ue = E("div"), $ = E("input"), Ie = I(), rt(Y.$$.fragment), Ke = I(), j.c(), st = I(), w && w.c(), Ye = I(), _e = E("div"), Le = E("span"), Le.textContent = `${R("feesIncluded")}`, lt = I(), Ce = E("span"), se.c(), Ne = I(), re = E("div"), Je = I(), be = E("div"), fe = E("button"), fe.textContent = `${R("reset")}`, ut = I(), X = E("button"), Te = z(Nt), 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*/
5127
5152
  e[0] || !/*isBalanceFetched*/
5128
5153
  e[16] || !/*isCurrenciesFetched*/
5129
- 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*/
5130
5155
  e[0] || !/*isBalanceFetched*/
5131
5156
  e[16] || !/*isCurrenciesFetched*/
5132
- 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(Le, "class", "feesLabel"), m(_e, "class", "feesContainer"), m(re, "class", "notificationsContainer"), le(
5133
- 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,
5134
5159
  "error",
5135
5160
  /*fetchResponse*/
5136
5161
  e[12]?.type === "error"
5137
- ), le(
5138
- re,
5162
+ ), oe(
5163
+ ie,
5139
5164
  "success",
5140
5165
  /*fetchResponse*/
5141
5166
  e[12]?.type === "success"
5142
- ), m(fe, "class", "resetButton"), m(fe, "type", "button"), m(X, "type", "button"), m(X, "class", "exchangeButton"), X.disabled = Oe = /*isExchangeDisabled*/
5167
+ ), g(ge, "class", "resetButton"), g(ge, "type", "button"), g(q, "type", "button"), g(q, "class", "exchangeButton"), q.disabled = be = /*isExchangeDisabled*/
5143
5168
  e[14] || /*isExchangePending*/
5144
5169
  e[18] || /*inputExchangeFrom*/
5145
5170
  e[8] === 0 && !/*selectedCurrencyFrom*/
5146
- e[5]?.amount, le(
5147
- X,
5171
+ e[5]?.amount, oe(
5172
+ q,
5148
5173
  "disabled",
5149
5174
  /*isExchangeDisabled*/
5150
5175
  e[14] || /*isExchangePending*/
5151
5176
  e[18]
5152
- ), le(
5153
- X,
5177
+ ), oe(
5178
+ q,
5154
5179
  "pending",
5155
5180
  /*isExchangePending*/
5156
5181
  e[18]
5157
- ), m(be, "class", "actionsContainer"), m(t, "class", "playerAccountVault");
5182
+ ), g(me, "class", "actionsContainer"), g(t, "class", "playerAccountVault");
5158
5183
  },
5159
- m(g, H) {
5160
- 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), pt(
5161
- 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,
5162
5187
  /*inputExchangeFrom*/
5163
5188
  e[8]
5164
- ), y(d, v), Ve(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, $), pt(
5165
- $,
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,
5166
5191
  /*inputExchangeTo*/
5167
5192
  e[9]
5168
- ), y(ue, Ie), Ve(Y, ue, null), y(D, Ke), f[J].m(D, null), y(t, st), w && w.m(t, null), y(t, Ye), y(t, _e), y(_e, Le), y(_e, lt), y(_e, Ce), se.m(Ce, null), y(t, Ne), y(t, re), re.innerHTML = ge, y(t, Je), y(t, be), y(be, fe), y(be, ut), y(be, X), y(X, Te), e[41](t), ee = !0, Re || (Ot = [
5169
- ie(
5170
- 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,
5171
5196
  "input",
5172
5197
  /*input0_input_handler*/
5173
- e[37]
5198
+ e[38]
5174
5199
  ),
5175
- ie(
5176
- h,
5200
+ te(
5201
+ c,
5177
5202
  "input",
5178
5203
  /*handleInputChange*/
5179
5204
  e[26]
5180
5205
  ),
5181
- ie(
5182
- h,
5206
+ te(
5207
+ c,
5183
5208
  "beforeinput",
5184
5209
  /*handleBeforeInput*/
5185
5210
  e[27]
5186
5211
  ),
5187
- ie(
5188
- $,
5212
+ te(
5213
+ c,
5214
+ "focus",
5215
+ /*handleInputFocus*/
5216
+ e[28]
5217
+ ),
5218
+ te(
5219
+ j,
5189
5220
  "input",
5190
5221
  /*input1_input_handler*/
5191
- e[39]
5222
+ e[40]
5192
5223
  ),
5193
- ie(
5194
- fe,
5224
+ te(
5225
+ ge,
5195
5226
  "click",
5196
5227
  /*handleResetToDefault*/
5197
5228
  e[24]
5198
5229
  ),
5199
- ie(
5200
- X,
5230
+ te(
5231
+ q,
5201
5232
  "click",
5202
5233
  /*handleExchange*/
5203
- e[28]
5234
+ e[29]
5204
5235
  )
5205
- ], Re = !0);
5236
+ ], qe = !0);
5206
5237
  },
5207
- p(g, H) {
5238
+ p(m, S) {
5208
5239
  /*showclosebutton*/
5209
- g[3] === xe.true ? Q ? Q.p(g, H) : (Q = Fn(g), Q.c(), Q.m(t, n)) : Q && (Q.d(1), Q = null), /*showtotalbalance*/
5210
- g[2] === xe.true ? V ? (V.p(g, H), H[0] & /*showtotalbalance*/
5211
- 4 && U(V, 1)) : (V = Un(g), V.c(), U(V, 1), V.m(r, null)) : V && (Se(), W(V, 1, 1, () => {
5212
- V = null;
5213
- }), He()), (!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*/
5214
5245
  196609 && p !== (p = !/*session*/
5215
- g[0] || !/*isBalanceFetched*/
5216
- g[16] || !/*isCurrenciesFetched*/
5217
- g[17])) && (h.disabled = p), H[0] & /*inputExchangeFrom*/
5218
- 256 && Et(h.value) !== /*inputExchangeFrom*/
5219
- g[8] && pt(
5220
- 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,
5221
5252
  /*inputExchangeFrom*/
5222
- g[8]
5253
+ m[8]
5223
5254
  );
5224
- const M = {};
5225
- H[0] & /*showcurrencysymbol*/
5226
- 16 && (M.withSymbol = /*showcurrencysymbol*/
5227
- g[4]), H[0] & /*isBalanceFetched, isCurrenciesFetched*/
5228
- 196608 && (M.disabled = !/*isBalanceFetched*/
5229
- g[16] || !/*isCurrenciesFetched*/
5230
- g[17]), H[0] & /*optionsFrom*/
5231
- 1048576 && (M.options = /*optionsFrom*/
5232
- g[20]), !N && H[0] & /*selectedCurrencyFrom*/
5233
- 32 && (N = !0, M.selected = /*selectedCurrencyFrom*/
5234
- g[5], pn(() => N = !1)), b.$set(M);
5235
- let ye = O;
5236
- O = ht(g), O === ye ? de[O].p(g, H) : (Se(), W(de[ye], 1, 1, () => {
5237
- de[ye] = null;
5238
- }), He(), L = de[O], L ? L.p(g, H) : (L = de[O] = qe[O](g), L.c()), U(L, 1), L.m(s, null)), (!ee || H[0] & /*session, isBalanceFetched, isCurrenciesFetched*/
5239
- 196609 && he !== (he = !/*session*/
5240
- g[0] || !/*isBalanceFetched*/
5241
- g[16] || !/*isCurrenciesFetched*/
5242
- g[17])) && ($.disabled = he), H[0] & /*inputExchangeTo*/
5243
- 512 && Et($.value) !== /*inputExchangeTo*/
5244
- g[9] && pt(
5245
- $,
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,
5246
5277
  /*inputExchangeTo*/
5247
- g[9]
5278
+ m[9]
5248
5279
  );
5249
- const ce = {};
5250
- H[0] & /*showcurrencysymbol*/
5251
- 16 && (ce.withSymbol = /*showcurrencysymbol*/
5252
- g[4]), H[0] & /*session, validationError, isBalanceFetched, isCurrenciesFetched*/
5253
- 204801 && (ce.disabled = !/*session*/
5254
- g[0] || !!/*validationError*/
5255
- g[13] || !/*isBalanceFetched*/
5256
- g[16] || !/*isCurrenciesFetched*/
5257
- g[17]), H[0] & /*optionsTo*/
5258
- 2097152 && (ce.options = /*optionsTo*/
5259
- g[21]), !me && H[0] & /*selectedCurrencyTo*/
5260
- 64 && (me = !0, ce.selected = /*selectedCurrencyTo*/
5261
- g[6], pn(() => me = !1)), Y.$set(ce);
5262
- let Dt = J;
5263
- J = x(g), J === Dt ? f[J].p(g, H) : (Se(), W(f[Dt], 1, 1, () => {
5264
- f[Dt] = null;
5265
- }), He(), j = f[J], j ? j.p(g, H) : (j = f[J] = dt[J](g), j.c()), U(j, 1), j.m(D, null)), /*showvaults*/
5266
- g[1] === xe.true ? w ? w.p(g, H) : (w = Vn(g), w.c(), w.m(t, Ye)) : 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(Ce, null))), (!ee || H[0] & /*fetchResponse*/
5267
- 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(
5268
5299
  /*fetchResponse*/
5269
- g[12]?.message || ""
5270
- ) + "") && (re.innerHTML = ge), (!ee || H[0] & /*fetchResponse*/
5271
- 4096) && le(
5272
- re,
5300
+ m[12]?.message || ""
5301
+ ) + "") && (ie.innerHTML = pe), (!ee || S[0] & /*fetchResponse*/
5302
+ 4096) && oe(
5303
+ ie,
5273
5304
  "error",
5274
5305
  /*fetchResponse*/
5275
- g[12]?.type === "error"
5276
- ), (!ee || H[0] & /*fetchResponse*/
5277
- 4096) && le(
5278
- re,
5306
+ m[12]?.type === "error"
5307
+ ), (!ee || S[0] & /*fetchResponse*/
5308
+ 4096) && oe(
5309
+ ie,
5279
5310
  "success",
5280
5311
  /*fetchResponse*/
5281
- g[12]?.type === "success"
5282
- ), (!ee || H[0] & /*isExchangeDisabled, isExchangePending, inputExchangeFrom, selectedCurrencyFrom*/
5283
- 278816 && Oe !== (Oe = /*isExchangeDisabled*/
5284
- g[14] || /*isExchangePending*/
5285
- g[18] || /*inputExchangeFrom*/
5286
- g[8] === 0 && !/*selectedCurrencyFrom*/
5287
- g[5]?.amount)) && (X.disabled = Oe), (!ee || H[0] & /*isExchangeDisabled, isExchangePending*/
5288
- 278528) && le(
5289
- 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,
5290
5321
  "disabled",
5291
5322
  /*isExchangeDisabled*/
5292
- g[14] || /*isExchangePending*/
5293
- g[18]
5294
- ), (!ee || H[0] & /*isExchangePending*/
5295
- 262144) && le(
5296
- X,
5323
+ m[14] || /*isExchangePending*/
5324
+ m[18]
5325
+ ), (!ee || S[0] & /*isExchangePending*/
5326
+ 262144) && oe(
5327
+ q,
5297
5328
  "pending",
5298
5329
  /*isExchangePending*/
5299
- g[18]
5330
+ m[18]
5300
5331
  );
5301
5332
  },
5302
- i(g) {
5303
- 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);
5304
5335
  },
5305
- o(g) {
5306
- 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;
5307
5338
  },
5308
- d(g) {
5309
- g && C(t), Q && Q.d(), V && V.d(), Ge(b), de[O].d(), Ge(Y), f[J].d(), w && w.d(), se.d(), e[41](null), Re = !1, ve(Ot);
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);
5310
5341
  }
5311
5342
  };
5312
5343
  }
5313
- function Ja(e, t, n) {
5314
- let { session: r = "" } = t, { userid: i = "" } = t, { endpoint: a = "" } = t, { lang: o = "en" } = t, { clientstyling: u = "" } = t, { clientstylingurl: s = "" } = t, { translationurl: l = "" } = t, { playercurrency: c = "" } = t, { showvaults: d = "true" } = t, { showtotalbalance: h = "true" } = t, { showclosebutton: p = "true" } = t, { showcurrencysymbol: v = "true" } = t, b = null, N = null, _ = 0, O = 0, L = null, ae = null, D = null, ne = "", oe = !0, ue = !1, $ = !1, he = !1, Ie = !1, Y = [], me = [], Ke = [], J = [], j;
5315
- xa({ withLocale: "en", translations: {} }), Object.keys(Pn).forEach((f) => {
5316
- Hn(f, Pn[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]);
5317
5348
  });
5318
- const st = () => {
5319
- wa(o);
5320
- }, Ye = () => {
5349
+ const Ye = () => {
5350
+ Ba(o);
5351
+ }, xe = () => {
5321
5352
  fetch(l).then((f) => f.json()).then((f) => {
5322
- Object.keys(f).forEach((x) => {
5323
- Hn(x, f[x]);
5353
+ Object.keys(f).forEach((E) => {
5354
+ In(E, f[E]);
5324
5355
  });
5325
5356
  }).catch((f) => {
5326
5357
  console.error("There was a problem with the translations request.", f);
5327
5358
  });
5328
- }, _e = () => {
5359
+ }, Re = () => {
5329
5360
  let f = document.createElement("style");
5330
- f.innerHTML = u, j.appendChild(f);
5331
- }, Le = () => {
5332
- let f, x = new URL(s), w = document.createElement("style");
5333
- fetch(x.href).then((A) => A.text()).then((A) => {
5334
- 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(
5335
5366
  () => {
5336
- j.appendChild(w);
5367
+ le.appendChild(I);
5337
5368
  },
5338
5369
  1
5339
5370
  );
5340
5371
  });
5341
- }, lt = () => {
5342
- me.length !== 0 && (n(15, ue = !ue), window.postMessage(
5372
+ }, Oe = () => {
5373
+ Ee.length !== 0 && (n(15, j = !j), window.postMessage(
5343
5374
  {
5344
- type: Xt.VaultDropdownToggled,
5345
- state: ue
5375
+ type: Wt.VaultDropdownToggled,
5376
+ state: j
5346
5377
  },
5347
5378
  window.location.href
5348
5379
  ));
5349
- }, Ce = () => {
5380
+ }, Je = () => {
5350
5381
  window.postMessage(
5351
5382
  {
5352
- type: Xt.VaultWidgetClosed
5383
+ type: Wt.VaultWidgetClosed
5353
5384
  },
5354
5385
  window.location.href
5355
5386
  );
5356
- }, Ne = () => {
5357
- n(14, oe = !0), ge(), Je(), be(), fe(), window.postMessage({ type: Xt.VaultWidgetReset }, window.location.href);
5358
- }, re = () => {
5359
- 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);
5360
5395
  }, ge = () => {
5361
- n(11, ae = null);
5362
- }, Je = () => {
5363
- n(8, _ = 0), n(9, O = 0);
5364
- }, be = () => {
5365
- n(13, ne = "");
5366
- }, fe = () => {
5367
- n(12, D = null);
5368
- }, ut = (f) => {
5369
- f && n(13, ne = f);
5370
- }, X = ({ type: f, message: x, source: w = "" }) => {
5371
- let A;
5372
- switch (n(12, D = { message: x, source: w, type: f }), f) {
5373
- case Ee.error:
5374
- 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);
5375
5406
  break;
5376
- case Ee.success:
5377
- 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(
5378
5409
  () => {
5379
- fe();
5410
+ De();
5380
5411
  },
5381
- Ca
5412
+ Ha
5382
5413
  );
5383
5414
  break;
5384
5415
  }
5385
- }, Nt = () => new Promise((f, x) => {
5386
- const w = D?.message.includes(Ta.InvalidSession);
5387
- w && x(), (_ < 0 || _ === null || isNaN(Number(_))) && (re(), ge(), x(R("invalidValue"))), _ > b?.amount && (re(), ge(), x(R("exceededValue"))), _ === 0 && _ === 0 && !w && (Ne(), x()), (!b || !N) && !w && x(), be(), f();
5388
- }), Te = async (f, x) => {
5389
- const w = await f.json();
5390
- 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({
5391
- type: Ee.error,
5392
- message: R(w?.thirdPartyResponse?.code) || R(w?.thirdPartyResponse?.errorCode) || "generalError",
5393
- 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
5394
5425
  }));
5395
- }, Oe = () => new Promise((f, x) => {
5396
- const w = new URL(`${a}/v1/player/${i}/wallet-exchange/currencies`);
5397
- fetch(w, {
5426
+ }, ee = () => new Promise((f, E) => {
5427
+ const I = new URL(`${a}/v1/player/${i}/wallet-exchange/currencies`);
5428
+ fetch(I, {
5398
5429
  method: "GET",
5399
5430
  headers: {
5400
5431
  "X-SessionId": r,
5401
5432
  "Content-Type": "application/json",
5402
5433
  Accept: "application/json"
5403
5434
  }
5404
- }).then((Z) => Te(Z, K.CurrenciesError)).then((Z) => {
5405
- f(Z?.currencies);
5406
- }).catch((Z) => {
5407
- X({
5408
- type: Ee.error,
5409
- message: R("generalError"),
5410
- source: K.CurrenciesError
5411
- }), 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);
5412
5443
  }).finally(() => {
5413
- n(17, he = !0);
5444
+ n(17, _e = !0);
5414
5445
  });
5415
- }), ee = ({ data: f, shouldUpdateSelectedCurrencies: x, allowed: w = [] }) => {
5416
- const { items: A = [], totalAmount: Z = {}, totalRealAmount: se } = f || {};
5417
- n(10, L = Object.entries(se || Z).map(([M = "", ye = 0]) => ({ currency: M, amount: ye }))[0]);
5418
- let g = null;
5419
- const H = new Map(w.map((M) => [M.code, M]));
5420
- for (const M of A)
5421
- if (M?.type === Ln.Real) {
5422
- 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);
5423
5454
  if (ye && ye.code === M?.currency) {
5424
- const ce = {
5455
+ const rt = {
5425
5456
  ...M,
5426
5457
  ...ye,
5427
- symbol: Aa[M?.currency]
5458
+ symbol: Sa[M?.currency]
5428
5459
  };
5429
- n(36, Y = [...Y, ce]), M?.currency === L?.currency && n(10, L = { ...L, ...ce }), M?.currency !== L?.currency && M?.walletAccountType === Ln.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);
5430
5461
  }
5431
5462
  }
5432
- }, Re = (f = !0) => {
5433
- const x = new URL(`${a}/v2/player/${i}/balance`);
5434
- fetch(x, {
5463
+ }, et = (f = !0) => {
5464
+ const E = new URL(`${a}/v2/player/${i}/balance`);
5465
+ fetch(E, {
5435
5466
  method: "GET",
5436
5467
  headers: {
5437
5468
  "X-SessionId": r,
5438
5469
  "Content-Type": "application/json",
5439
5470
  Accept: "application/json"
5440
5471
  }
5441
- }).then((A) => Te(A, K.BalanceError)).then((A) => {
5442
- A && Oe().then((Z) => {
5443
- n(36, Y = []), n(19, me = []), ee({
5444
- 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,
5445
5476
  shouldUpdateSelectedCurrencies: f,
5446
- allowed: Z
5477
+ allowed: m
5447
5478
  });
5448
5479
  });
5449
- }).catch((A) => {
5450
- X({
5451
- type: Ee.error,
5452
- message: R("generalError"),
5453
- source: K.BalanceError
5454
- }), 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);
5455
5486
  }).finally(() => {
5456
- n(16, $ = !0);
5487
+ n(16, de = !0);
5457
5488
  });
5458
- }, Q = Sa(() => {
5459
- Nt().then(() => {
5460
- 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 = {
5461
5492
  userId: i,
5462
- amount: _,
5493
+ amount: N,
5463
5494
  currency: b?.currency,
5464
5495
  fromCurrency: b?.currency,
5465
- toCurrency: N?.currency,
5466
- payload: { PlayerCurrency: c }
5467
- }, w = {
5496
+ toCurrency: L?.currency,
5497
+ payload: { PlayerCurrency: h }
5498
+ }, I = {
5468
5499
  method: "POST",
5469
5500
  headers: {
5470
5501
  "X-SessionId": r,
5471
5502
  "Content-Type": "application/json",
5472
5503
  Accept: "application/json"
5473
5504
  },
5474
- body: Nn(x)
5505
+ body: Dn(E)
5475
5506
  };
5476
- fetch(f, w).then((A) => Te(A, K.CheckWalletExchangeError)).then((A) => {
5477
- 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));
5478
- }).catch((A) => {
5479
- X({
5480
- type: Ee.error,
5481
- message: R("generalError"),
5482
- source: K.CheckWalletExchangeError
5483
- }), 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);
5484
5515
  });
5485
5516
  }).catch((f) => {
5486
- ut(f);
5517
+ q(f);
5487
5518
  });
5488
- }, 500), V = (f) => {
5489
- const x = f.target.value;
5490
- if (x.length <= Ba) {
5491
- const [w, A] = x.split(".");
5492
- A && A.length >= b?.precision && n(8, _ = parseFloat(w + "." + A.slice(0, b?.precision)));
5493
- }
5494
- Q();
5495
- }, Rt = (f) => {
5496
- const x = f.data;
5497
- [">", "<", ","].includes(x) && f.preventDefault(), x && !x.match(/[\d.]/) && f.preventDefault(), x === "." && f.target.value.includes(".") && f.preventDefault();
5498
- }, ct = () => {
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 = () => {
5499
5528
  const f = new URL(`${a}/v2/player/${i}/wallet-exchange`);
5500
- n(18, Ie = !0);
5501
- const x = {
5529
+ n(18, ae = !0);
5530
+ const E = {
5531
+ feeDetails: k,
5502
5532
  userId: i,
5503
- amount: _,
5533
+ amount: N,
5504
5534
  currency: b?.currency,
5505
5535
  fromCurrency: b?.currency,
5506
- toCurrency: N?.currency,
5507
- payload: { PlayerCurrency: c }
5508
- }, w = {
5536
+ toCurrency: L?.currency,
5537
+ payload: { PlayerCurrency: h }
5538
+ }, I = {
5509
5539
  method: "PUT",
5510
5540
  headers: {
5511
5541
  "X-SessionId": r,
5512
5542
  "Content-Type": "application/json",
5513
5543
  Accept: "application/json"
5514
5544
  },
5515
- body: Nn(x)
5545
+ body: Dn(E)
5516
5546
  };
5517
- fetch(f, w).then((A) => Te(A, K.WalletExchangeError)).then((A) => {
5518
- A && (X({
5519
- type: Ee.success,
5520
- 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"),
5521
5551
  source: "ExchangeSuccess"
5522
- }), Re(!1));
5523
- }).catch((A) => {
5524
- X({
5525
- type: Ee.error,
5526
- message: R("generalError"),
5527
- source: K.WalletExchangeError
5528
- }), 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);
5529
5559
  }).finally(() => {
5530
- n(18, Ie = !1), Je(), ge();
5560
+ n(18, ae = !1), me(), we();
5531
5561
  });
5532
- }, qe = (f) => {
5533
- const { data: { type: x } = {} } = f || {};
5534
- switch (x) {
5535
- case In.ResetVaultWidget:
5536
- Ne();
5562
+ }, tt = (f) => {
5563
+ const { data: { type: E } = {} } = f || {};
5564
+ switch (E) {
5565
+ case Nn.ResetVaultWidget:
5566
+ ie();
5537
5567
  break;
5538
- case In.CloseVaultWidget:
5539
- Ce();
5568
+ case Nn.CloseVaultWidget:
5569
+ Je();
5540
5570
  break;
5541
5571
  }
5542
5572
  };
5543
- Br(() => (window.addEventListener("message", qe), () => {
5544
- window.removeEventListener("message", qe);
5573
+ Kn(() => (window.addEventListener("message", tt), () => {
5574
+ window.removeEventListener("message", tt);
5545
5575
  }));
5546
- function de() {
5547
- _ = Et(this.value), n(8, _);
5576
+ function Mt() {
5577
+ N = Ct(this.value), n(8, N);
5548
5578
  }
5549
- function ht(f) {
5579
+ function mt(f) {
5550
5580
  b = f, n(5, b);
5551
5581
  }
5552
- function kt() {
5553
- O = Et(this.value), n(9, O);
5582
+ function gt() {
5583
+ _ = Ct(this.value), n(9, _);
5554
5584
  }
5555
- function ft(f) {
5556
- N = f, n(6, N);
5585
+ function ce(f) {
5586
+ L = f, n(6, L);
5557
5587
  }
5558
- function dt(f) {
5559
- Ue[f ? "unshift" : "push"](() => {
5560
- j = f, n(7, j);
5588
+ function bt(f) {
5589
+ Ve[f ? "unshift" : "push"](() => {
5590
+ le = f, n(7, le);
5561
5591
  });
5562
5592
  }
5563
5593
  return e.$$set = (f) => {
5564
- "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);
5565
5595
  }, e.$$.update = () => {
5566
5596
  e.$$.dirty[1] & /*lang*/
5567
- 1 && o && st(), e.$$.dirty[0] & /*session, userid, endpoint*/
5568
- 1610612737 | e.$$.dirty[1] & /*playercurrency*/
5569
- 16 && r && i && a && c && Re(), 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*/
5570
5600
  128 | e.$$.dirty[1] & /*clientstyling*/
5571
- 2 && u && j && _e(), e.$$.dirty[0] & /*customStylingContainer*/
5601
+ 4 && u && le && Re(), e.$$.dirty[0] & /*customStylingContainer*/
5572
5602
  128 | e.$$.dirty[1] & /*clientstylingurl*/
5573
- 4 && s && j && Le(), e.$$.dirty[1] & /*translationurl*/
5574
- 8 && l && Ye(), e.$$.dirty[0] & /*selectedCurrencyTo*/
5603
+ 8 && s && le && ht(), e.$$.dirty[1] & /*translationurl*/
5604
+ 16 && l && xe(), e.$$.dirty[0] & /*selectedCurrencyTo*/
5575
5605
  64 | e.$$.dirty[1] & /*filteredBalances*/
5576
- 32 && n(20, Ke = 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*/
5577
5607
  32 | e.$$.dirty[1] & /*filteredBalances*/
5578
- 32 && n(21, J = Y.filter((f) => b?.currency !== f?.currency));
5608
+ 64 && n(21, J = se.filter((f) => b?.currency !== f?.currency));
5579
5609
  }, [
5580
5610
  r,
5581
5611
  d,
5582
- h,
5612
+ c,
5583
5613
  p,
5584
5614
  v,
5585
5615
  b,
5616
+ L,
5617
+ le,
5586
5618
  N,
5587
- j,
5588
5619
  _,
5589
- O,
5590
- L,
5591
- ae,
5592
- D,
5593
- ne,
5594
- oe,
5595
- ue,
5596
5620
  $,
5597
- he,
5598
- Ie,
5599
- me,
5600
- Ke,
5601
- J,
5602
- lt,
5603
- Ce,
5604
- Ne,
5621
+ k,
5622
+ Z,
5623
+ fe,
5624
+ re,
5625
+ j,
5626
+ de,
5627
+ _e,
5628
+ ae,
5629
+ Ee,
5605
5630
  Q,
5606
- V,
5607
- Rt,
5608
- ct,
5631
+ J,
5632
+ Oe,
5633
+ Je,
5634
+ ie,
5635
+ U,
5636
+ kt,
5637
+ dt,
5638
+ pt,
5639
+ ue,
5609
5640
  i,
5610
5641
  a,
5611
5642
  o,
5612
5643
  u,
5613
5644
  s,
5614
5645
  l,
5615
- c,
5616
- Y,
5617
- de,
5618
- ht,
5619
- kt,
5620
- ft,
5621
- dt
5646
+ h,
5647
+ se,
5648
+ Mt,
5649
+ mt,
5650
+ gt,
5651
+ ce,
5652
+ bt
5622
5653
  ];
5623
5654
  }
5624
- class qa extends un {
5655
+ class no extends hn {
5625
5656
  constructor(t) {
5626
- super(), sn(
5657
+ super(), un(
5627
5658
  this,
5628
5659
  t,
5629
- Ja,
5630
- Ya,
5631
- Tt,
5660
+ to,
5661
+ eo,
5662
+ Pt,
5632
5663
  {
5633
5664
  session: 0,
5634
- userid: 29,
5635
- endpoint: 30,
5636
- lang: 31,
5637
- clientstyling: 32,
5638
- clientstylingurl: 33,
5639
- translationurl: 34,
5640
- playercurrency: 35,
5665
+ userid: 30,
5666
+ endpoint: 31,
5667
+ lang: 32,
5668
+ clientstyling: 33,
5669
+ clientstylingurl: 34,
5670
+ translationurl: 35,
5671
+ playercurrency: 36,
5641
5672
  showvaults: 1,
5642
5673
  showtotalbalance: 2,
5643
5674
  showclosebutton: 3,
5644
5675
  showcurrencysymbol: 4
5645
5676
  },
5646
- ka,
5677
+ Fa,
5647
5678
  [-1, -1, -1]
5648
5679
  );
5649
5680
  }
@@ -5651,76 +5682,76 @@ class qa extends un {
5651
5682
  return this.$$.ctx[0];
5652
5683
  }
5653
5684
  set session(t) {
5654
- this.$$set({ session: t }), G();
5685
+ this.$$set({ session: t }), V();
5655
5686
  }
5656
5687
  get userid() {
5657
- return this.$$.ctx[29];
5688
+ return this.$$.ctx[30];
5658
5689
  }
5659
5690
  set userid(t) {
5660
- this.$$set({ userid: t }), G();
5691
+ this.$$set({ userid: t }), V();
5661
5692
  }
5662
5693
  get endpoint() {
5663
- return this.$$.ctx[30];
5694
+ return this.$$.ctx[31];
5664
5695
  }
5665
5696
  set endpoint(t) {
5666
- this.$$set({ endpoint: t }), G();
5697
+ this.$$set({ endpoint: t }), V();
5667
5698
  }
5668
5699
  get lang() {
5669
- return this.$$.ctx[31];
5700
+ return this.$$.ctx[32];
5670
5701
  }
5671
5702
  set lang(t) {
5672
- this.$$set({ lang: t }), G();
5703
+ this.$$set({ lang: t }), V();
5673
5704
  }
5674
5705
  get clientstyling() {
5675
- return this.$$.ctx[32];
5706
+ return this.$$.ctx[33];
5676
5707
  }
5677
5708
  set clientstyling(t) {
5678
- this.$$set({ clientstyling: t }), G();
5709
+ this.$$set({ clientstyling: t }), V();
5679
5710
  }
5680
5711
  get clientstylingurl() {
5681
- return this.$$.ctx[33];
5712
+ return this.$$.ctx[34];
5682
5713
  }
5683
5714
  set clientstylingurl(t) {
5684
- this.$$set({ clientstylingurl: t }), G();
5715
+ this.$$set({ clientstylingurl: t }), V();
5685
5716
  }
5686
5717
  get translationurl() {
5687
- return this.$$.ctx[34];
5718
+ return this.$$.ctx[35];
5688
5719
  }
5689
5720
  set translationurl(t) {
5690
- this.$$set({ translationurl: t }), G();
5721
+ this.$$set({ translationurl: t }), V();
5691
5722
  }
5692
5723
  get playercurrency() {
5693
- return this.$$.ctx[35];
5724
+ return this.$$.ctx[36];
5694
5725
  }
5695
5726
  set playercurrency(t) {
5696
- this.$$set({ playercurrency: t }), G();
5727
+ this.$$set({ playercurrency: t }), V();
5697
5728
  }
5698
5729
  get showvaults() {
5699
5730
  return this.$$.ctx[1];
5700
5731
  }
5701
5732
  set showvaults(t) {
5702
- this.$$set({ showvaults: t }), G();
5733
+ this.$$set({ showvaults: t }), V();
5703
5734
  }
5704
5735
  get showtotalbalance() {
5705
5736
  return this.$$.ctx[2];
5706
5737
  }
5707
5738
  set showtotalbalance(t) {
5708
- this.$$set({ showtotalbalance: t }), G();
5739
+ this.$$set({ showtotalbalance: t }), V();
5709
5740
  }
5710
5741
  get showclosebutton() {
5711
5742
  return this.$$.ctx[3];
5712
5743
  }
5713
5744
  set showclosebutton(t) {
5714
- this.$$set({ showclosebutton: t }), G();
5745
+ this.$$set({ showclosebutton: t }), V();
5715
5746
  }
5716
5747
  get showcurrencysymbol() {
5717
5748
  return this.$$.ctx[4];
5718
5749
  }
5719
5750
  set showcurrencysymbol(t) {
5720
- this.$$set({ showcurrencysymbol: t }), G();
5751
+ this.$$set({ showcurrencysymbol: t }), V();
5721
5752
  }
5722
5753
  }
5723
- ln(qa, { 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);
5724
5755
  export {
5725
- qa as P
5756
+ no as P
5726
5757
  };