@everymatrix/player-account-vault 1.77.24 → 1.77.26

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