@everymatrix/player-account-vault 1.77.26 → 1.77.28

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