@everymatrix/player-account-balance-modal-nd 1.74.3 → 1.74.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,46 +1,46 @@
1
- function ce() {
1
+ function he() {
2
2
  }
3
- function Gn(e) {
3
+ function kn(e) {
4
4
  return e();
5
5
  }
6
- function ln() {
6
+ function hn() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
- function ze(e) {
10
- e.forEach(Gn);
9
+ function Xe(e) {
10
+ e.forEach(kn);
11
11
  }
12
- function rn(e) {
12
+ function on(e) {
13
13
  return typeof e == "function";
14
14
  }
15
- function jn(e, t) {
15
+ function $n(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
- function wr(e) {
18
+ function Br(e) {
19
19
  return Object.keys(e).length === 0;
20
20
  }
21
- function kn(e, ...t) {
21
+ function Vn(e, ...t) {
22
22
  if (e == null) {
23
23
  for (const r of t)
24
24
  r(void 0);
25
- return ce;
25
+ return he;
26
26
  }
27
27
  const n = e.subscribe(...t);
28
28
  return n.unsubscribe ? () => n.unsubscribe() : n;
29
29
  }
30
- function Sr(e, t, n) {
31
- e.$$.on_destroy.push(kn(t, n));
30
+ function Ar(e, t, n) {
31
+ e.$$.on_destroy.push(Vn(t, n));
32
32
  }
33
- function P(e, t) {
33
+ function I(e, t) {
34
34
  e.appendChild(t);
35
35
  }
36
- function Tr(e, t, n) {
37
- const r = Br(e);
36
+ function Cr(e, t, n) {
37
+ const r = Hr(e);
38
38
  if (!r.getElementById(t)) {
39
39
  const i = j("style");
40
- i.id = t, i.textContent = n, Ar(r, i);
40
+ i.id = t, i.textContent = n, Or(r, i);
41
41
  }
42
42
  }
43
- function Br(e) {
43
+ function Hr(e) {
44
44
  if (!e)
45
45
  return document;
46
46
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -50,52 +50,52 @@ function Br(e) {
50
50
  t
51
51
  ) : e.ownerDocument;
52
52
  }
53
- function Ar(e, t) {
54
- return P(
53
+ function Or(e, t) {
54
+ return I(
55
55
  /** @type {Document} */
56
56
  e.head || e,
57
57
  t
58
58
  ), t.sheet;
59
59
  }
60
- function be(e, t, n) {
60
+ function ge(e, t, n) {
61
61
  e.insertBefore(t, n || null);
62
62
  }
63
- function de(e) {
63
+ function me(e) {
64
64
  e.parentNode && e.parentNode.removeChild(e);
65
65
  }
66
- function $n(e, t) {
66
+ function Xn(e, t) {
67
67
  for (let n = 0; n < e.length; n += 1)
68
68
  e[n] && e[n].d(t);
69
69
  }
70
70
  function j(e) {
71
71
  return document.createElement(e);
72
72
  }
73
- function cn(e) {
73
+ function fn(e) {
74
74
  return document.createElementNS("http://www.w3.org/2000/svg", e);
75
75
  }
76
- function xe(e) {
76
+ function we(e) {
77
77
  return document.createTextNode(e);
78
78
  }
79
- function we() {
80
- return xe(" ");
79
+ function Se() {
80
+ return we(" ");
81
81
  }
82
- function Cr() {
83
- return xe("");
82
+ function Mr() {
83
+ return we("");
84
84
  }
85
85
  function vt(e, t, n, r) {
86
86
  return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
87
87
  }
88
- function M(e, t, n) {
88
+ function R(e, t, n) {
89
89
  n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
90
90
  }
91
- function Hr(e) {
91
+ function Rr(e) {
92
92
  return Array.from(e.childNodes);
93
93
  }
94
94
  function Me(e, t) {
95
95
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
96
96
  t);
97
97
  }
98
- function Or(e) {
98
+ function Lr(e) {
99
99
  const t = {};
100
100
  return e.childNodes.forEach(
101
101
  /** @param {Element} node */
@@ -108,124 +108,124 @@ let rt;
108
108
  function nt(e) {
109
109
  rt = e;
110
110
  }
111
- function Mr() {
111
+ function Pr() {
112
112
  if (!rt)
113
113
  throw new Error("Function called outside component initialization");
114
114
  return rt;
115
115
  }
116
- function Rr(e) {
117
- Mr().$$.on_mount.push(e);
116
+ function Ir(e) {
117
+ Pr().$$.on_mount.push(e);
118
118
  }
119
- const Fe = [], Gt = [];
120
- let Ge = [];
121
- const hn = [], Lr = /* @__PURE__ */ Promise.resolve();
122
- let jt = !1;
123
- function Pr() {
124
- jt || (jt = !0, Lr.then(Q));
119
+ const Ue = [], jt = [];
120
+ let Fe = [];
121
+ const dn = [], Nr = /* @__PURE__ */ Promise.resolve();
122
+ let kt = !1;
123
+ function Dr() {
124
+ kt || (kt = !0, Nr.then(Y));
125
125
  }
126
- function kt(e) {
127
- Ge.push(e);
126
+ function $t(e) {
127
+ Fe.push(e);
128
128
  }
129
129
  const Lt = /* @__PURE__ */ new Set();
130
- let De = 0;
131
- function Q() {
132
- if (De !== 0)
130
+ let Ne = 0;
131
+ function Y() {
132
+ if (Ne !== 0)
133
133
  return;
134
134
  const e = rt;
135
135
  do {
136
136
  try {
137
- for (; De < Fe.length; ) {
138
- const t = Fe[De];
139
- De++, nt(t), Nr(t.$$);
137
+ for (; Ne < Ue.length; ) {
138
+ const t = Ue[Ne];
139
+ Ne++, nt(t), Ur(t.$$);
140
140
  }
141
141
  } catch (t) {
142
- throw Fe.length = 0, De = 0, t;
142
+ throw Ue.length = 0, Ne = 0, t;
143
143
  }
144
- for (nt(null), Fe.length = 0, De = 0; Gt.length; )
145
- Gt.pop()();
146
- for (let t = 0; t < Ge.length; t += 1) {
147
- const n = Ge[t];
144
+ for (nt(null), Ue.length = 0, Ne = 0; jt.length; )
145
+ jt.pop()();
146
+ for (let t = 0; t < Fe.length; t += 1) {
147
+ const n = Fe[t];
148
148
  Lt.has(n) || (Lt.add(n), n());
149
149
  }
150
- Ge.length = 0;
151
- } while (Fe.length);
152
- for (; hn.length; )
153
- hn.pop()();
154
- jt = !1, Lt.clear(), nt(e);
150
+ Fe.length = 0;
151
+ } while (Ue.length);
152
+ for (; dn.length; )
153
+ dn.pop()();
154
+ kt = !1, Lt.clear(), nt(e);
155
155
  }
156
- function Nr(e) {
156
+ function Ur(e) {
157
157
  if (e.fragment !== null) {
158
- e.update(), ze(e.before_update);
158
+ e.update(), Xe(e.before_update);
159
159
  const t = e.dirty;
160
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(kt);
160
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($t);
161
161
  }
162
162
  }
163
- function Ir(e) {
163
+ function Fr(e) {
164
164
  const t = [], n = [];
165
- Ge.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Ge = t;
165
+ Fe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Fe = t;
166
166
  }
167
- const Dr = /* @__PURE__ */ new Set();
168
- function Ur(e, t) {
169
- e && e.i && (Dr.delete(e), e.i(t));
167
+ const Gr = /* @__PURE__ */ new Set();
168
+ function jr(e, t) {
169
+ e && e.i && (Gr.delete(e), e.i(t));
170
170
  }
171
171
  function _t(e) {
172
172
  return e?.length !== void 0 ? e : Array.from(e);
173
173
  }
174
- function Fr(e, t, n) {
174
+ function kr(e, t, n) {
175
175
  const { fragment: r, after_update: i } = e.$$;
176
- r && r.m(t, n), kt(() => {
177
- const o = e.$$.on_mount.map(Gn).filter(rn);
178
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ze(o), e.$$.on_mount = [];
179
- }), i.forEach(kt);
176
+ r && r.m(t, n), $t(() => {
177
+ const o = e.$$.on_mount.map(kn).filter(on);
178
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Xe(o), e.$$.on_mount = [];
179
+ }), i.forEach($t);
180
180
  }
181
- function Gr(e, t) {
181
+ function $r(e, t) {
182
182
  const n = e.$$;
183
- n.fragment !== null && (Ir(n.after_update), ze(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
183
+ n.fragment !== null && (Fr(n.after_update), Xe(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
184
184
  }
185
- function jr(e, t) {
186
- e.$$.dirty[0] === -1 && (Fe.push(e), Pr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
185
+ function Vr(e, t) {
186
+ e.$$.dirty[0] === -1 && (Ue.push(e), Dr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
187
187
  }
188
- function kr(e, t, n, r, i, o, s = null, a = [-1]) {
189
- const l = rt;
188
+ function Xr(e, t, n, r, i, o, s = null, a = [-1]) {
189
+ const c = rt;
190
190
  nt(e);
191
- const u = e.$$ = {
191
+ const l = e.$$ = {
192
192
  fragment: null,
193
193
  ctx: [],
194
194
  // state
195
195
  props: o,
196
- update: ce,
196
+ update: he,
197
197
  not_equal: i,
198
- bound: ln(),
198
+ bound: hn(),
199
199
  // lifecycle
200
200
  on_mount: [],
201
201
  on_destroy: [],
202
202
  on_disconnect: [],
203
203
  before_update: [],
204
204
  after_update: [],
205
- context: new Map(t.context || (l ? l.$$.context : [])),
205
+ context: new Map(t.context || (c ? c.$$.context : [])),
206
206
  // everything else
207
- callbacks: ln(),
207
+ callbacks: hn(),
208
208
  dirty: a,
209
209
  skip_bound: !1,
210
- root: t.target || l.$$.root
210
+ root: t.target || c.$$.root
211
211
  };
212
- s && s(u.root);
212
+ s && s(l.root);
213
213
  let f = !1;
214
- if (u.ctx = n(e, t.props || {}, (b, m, ...w) => {
215
- const _ = w.length ? w[0] : m;
216
- return u.ctx && i(u.ctx[b], u.ctx[b] = _) && (!u.skip_bound && u.bound[b] && u.bound[b](_), f && jr(e, b)), m;
217
- }), u.update(), f = !0, ze(u.before_update), u.fragment = r(u.ctx), t.target) {
214
+ if (l.ctx = n ? n(e, t.props || {}, (m, p, ...S) => {
215
+ const E = S.length ? S[0] : p;
216
+ return l.ctx && i(l.ctx[m], l.ctx[m] = E) && (!l.skip_bound && l.bound[m] && l.bound[m](E), f && Vr(e, m)), p;
217
+ }) : [], l.update(), f = !0, Xe(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
218
218
  if (t.hydrate) {
219
- const b = Hr(t.target);
220
- u.fragment && u.fragment.l(b), b.forEach(de);
219
+ const m = Rr(t.target);
220
+ l.fragment && l.fragment.l(m), m.forEach(me);
221
221
  } else
222
- u.fragment && u.fragment.c();
223
- t.intro && Ur(e.$$.fragment), Fr(e, t.target, t.anchor), Q();
222
+ l.fragment && l.fragment.c();
223
+ t.intro && jr(e.$$.fragment), kr(e, t.target, t.anchor), Y();
224
224
  }
225
- nt(l);
225
+ nt(c);
226
226
  }
227
- let Vn;
228
- typeof HTMLElement == "function" && (Vn = class extends HTMLElement {
227
+ let zn;
228
+ typeof HTMLElement == "function" && (zn = class extends HTMLElement {
229
229
  /** The Svelte component constructor */
230
230
  $$ctor;
231
231
  /** Slots */
@@ -267,24 +267,24 @@ typeof HTMLElement == "function" && (Vn = class extends HTMLElement {
267
267
  let o;
268
268
  return {
269
269
  c: function() {
270
- o = j("slot"), i !== "default" && M(o, "name", i);
270
+ o = j("slot"), i !== "default" && R(o, "name", i);
271
271
  },
272
272
  /**
273
273
  * @param {HTMLElement} target
274
274
  * @param {HTMLElement} [anchor]
275
275
  */
276
- m: function(l, u) {
277
- be(l, o, u);
276
+ m: function(c, l) {
277
+ ge(c, o, l);
278
278
  },
279
- d: function(l) {
280
- l && de(o);
279
+ d: function(c) {
280
+ c && me(o);
281
281
  }
282
282
  };
283
283
  };
284
284
  };
285
285
  if (await Promise.resolve(), !this.$$cn || this.$$c)
286
286
  return;
287
- const t = {}, n = Or(this);
287
+ const t = {}, n = Lr(this);
288
288
  for (const i of this.$$s)
289
289
  i in n && (t[i] = [e(i)]);
290
290
  for (const i of this.attributes) {
@@ -371,8 +371,8 @@ function mt(e, t, n, r) {
371
371
  return t;
372
372
  }
373
373
  }
374
- function $r(e, t, n, r, i, o) {
375
- let s = class extends Vn {
374
+ function zr(e, t, n, r, i, o) {
375
+ let s = class extends zn {
376
376
  constructor() {
377
377
  super(e, n, i), this.$$p_d = t;
378
378
  }
@@ -387,8 +387,8 @@ function $r(e, t, n, r, i, o) {
387
387
  get() {
388
388
  return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
389
389
  },
390
- set(l) {
391
- l = mt(a, l, t), this.$$d[a] = l, this.$$c?.$set({ [a]: l });
390
+ set(c) {
391
+ c = mt(a, c, t), this.$$d[a] = c, this.$$c?.$set({ [a]: c });
392
392
  }
393
393
  });
394
394
  }), r.forEach((a) => {
@@ -400,7 +400,7 @@ function $r(e, t, n, r, i, o) {
400
400
  }), e.element = /** @type {any} */
401
401
  s, s;
402
402
  }
403
- class Vr {
403
+ class Wr {
404
404
  /**
405
405
  * ### PRIVATE API
406
406
  *
@@ -419,7 +419,7 @@ class Vr {
419
419
  $$set = void 0;
420
420
  /** @returns {void} */
421
421
  $destroy() {
422
- Gr(this, 1), this.$destroy = ce;
422
+ $r(this, 1), this.$destroy = he;
423
423
  }
424
424
  /**
425
425
  * @template {Extract<keyof Events, string>} K
@@ -428,8 +428,8 @@ class Vr {
428
428
  * @returns {() => void}
429
429
  */
430
430
  $on(t, n) {
431
- if (!rn(n))
432
- return ce;
431
+ if (!on(n))
432
+ return he;
433
433
  const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
434
434
  return r.push(n), () => {
435
435
  const i = r.indexOf(n);
@@ -441,18 +441,18 @@ class Vr {
441
441
  * @returns {void}
442
442
  */
443
443
  $set(t) {
444
- this.$$set && !wr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
444
+ this.$$set && !Br(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
445
445
  }
446
446
  }
447
- const Xr = "4";
448
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Xr);
449
- function zr(e, t) {
447
+ const Zr = "4";
448
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Zr);
449
+ function qr(e, t) {
450
450
  if (e) {
451
451
  const n = document.createElement("style");
452
452
  n.innerHTML = t, e.appendChild(n);
453
453
  }
454
454
  }
455
- function Wr(e, t) {
455
+ function Yr(e, t) {
456
456
  const n = new URL(t);
457
457
  fetch(n.href).then((r) => r.text()).then((r) => {
458
458
  const i = document.createElement("style");
@@ -461,7 +461,7 @@ function Wr(e, t) {
461
461
  console.error("There was an error while trying to load client styling from URL", r);
462
462
  });
463
463
  }
464
- function Zr(e, t, n) {
464
+ function Qr(e, t, n) {
465
465
  if (window.emMessageBus) {
466
466
  const r = document.createElement("style");
467
467
  window.emMessageBus.subscribe(t, (i) => {
@@ -469,144 +469,144 @@ function Zr(e, t, n) {
469
469
  });
470
470
  }
471
471
  }
472
- const Ue = [];
473
- function qr(e, t) {
472
+ const De = [];
473
+ function Jr(e, t) {
474
474
  return {
475
475
  subscribe: wt(e, t).subscribe
476
476
  };
477
477
  }
478
- function wt(e, t = ce) {
478
+ function wt(e, t = he) {
479
479
  let n;
480
480
  const r = /* @__PURE__ */ new Set();
481
481
  function i(a) {
482
- if (jn(e, a) && (e = a, n)) {
483
- const l = !Ue.length;
484
- for (const u of r)
485
- u[1](), Ue.push(u, e);
486
- if (l) {
487
- for (let u = 0; u < Ue.length; u += 2)
488
- Ue[u][0](Ue[u + 1]);
489
- Ue.length = 0;
482
+ if ($n(e, a) && (e = a, n)) {
483
+ const c = !De.length;
484
+ for (const l of r)
485
+ l[1](), De.push(l, e);
486
+ if (c) {
487
+ for (let l = 0; l < De.length; l += 2)
488
+ De[l][0](De[l + 1]);
489
+ De.length = 0;
490
490
  }
491
491
  }
492
492
  }
493
493
  function o(a) {
494
494
  i(a(e));
495
495
  }
496
- function s(a, l = ce) {
497
- const u = [a, l];
498
- return r.add(u), r.size === 1 && (n = t(i, o) || ce), a(e), () => {
499
- r.delete(u), r.size === 0 && n && (n(), n = null);
496
+ function s(a, c = he) {
497
+ const l = [a, c];
498
+ return r.add(l), r.size === 1 && (n = t(i, o) || he), a(e), () => {
499
+ r.delete(l), r.size === 0 && n && (n(), n = null);
500
500
  };
501
501
  }
502
502
  return { set: i, update: o, subscribe: s };
503
503
  }
504
- function We(e, t, n) {
504
+ function ze(e, t, n) {
505
505
  const r = !Array.isArray(e), i = r ? [e] : e;
506
506
  if (!i.every(Boolean))
507
507
  throw new Error("derived() expects stores as input, got a falsy value");
508
508
  const o = t.length < 2;
509
- return qr(n, (s, a) => {
510
- let l = !1;
511
- const u = [];
512
- let f = 0, b = ce;
513
- const m = () => {
509
+ return Jr(n, (s, a) => {
510
+ let c = !1;
511
+ const l = [];
512
+ let f = 0, m = he;
513
+ const p = () => {
514
514
  if (f)
515
515
  return;
516
- b();
517
- const _ = t(r ? u[0] : u, s, a);
518
- o ? s(_) : b = rn(_) ? _ : ce;
519
- }, w = i.map(
520
- (_, A) => kn(
521
- _,
522
- (I) => {
523
- u[A] = I, f &= ~(1 << A), l && m();
516
+ m();
517
+ const E = t(r ? l[0] : l, s, a);
518
+ o ? s(E) : m = on(E) ? E : he;
519
+ }, S = i.map(
520
+ (E, T) => Vn(
521
+ E,
522
+ (N) => {
523
+ l[T] = N, f &= ~(1 << T), c && p();
524
524
  },
525
525
  () => {
526
- f |= 1 << A;
526
+ f |= 1 << T;
527
527
  }
528
528
  )
529
529
  );
530
- return l = !0, m(), function() {
531
- ze(w), b(), l = !1;
530
+ return c = !0, p(), function() {
531
+ Xe(S), m(), c = !1;
532
532
  };
533
533
  });
534
534
  }
535
- var Yr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
536
- function Qr(e) {
535
+ var Kr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
536
+ function ei(e) {
537
537
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
538
538
  }
539
- var Jr = function(t) {
540
- return Kr(t) && !ei(t);
539
+ var ti = function(t) {
540
+ return ni(t) && !ri(t);
541
541
  };
542
- function Kr(e) {
542
+ function ni(e) {
543
543
  return !!e && typeof e == "object";
544
544
  }
545
- function ei(e) {
545
+ function ri(e) {
546
546
  var t = Object.prototype.toString.call(e);
547
- return t === "[object RegExp]" || t === "[object Date]" || ri(e);
547
+ return t === "[object RegExp]" || t === "[object Date]" || ai(e);
548
548
  }
549
- var ti = typeof Symbol == "function" && Symbol.for, ni = ti ? Symbol.for("react.element") : 60103;
550
- function ri(e) {
551
- return e.$$typeof === ni;
549
+ var ii = typeof Symbol == "function" && Symbol.for, oi = ii ? Symbol.for("react.element") : 60103;
550
+ function ai(e) {
551
+ return e.$$typeof === oi;
552
552
  }
553
- function ii(e) {
553
+ function si(e) {
554
554
  return Array.isArray(e) ? [] : {};
555
555
  }
556
556
  function it(e, t) {
557
- return t.clone !== !1 && t.isMergeableObject(e) ? ke(ii(e), e, t) : e;
557
+ return t.clone !== !1 && t.isMergeableObject(e) ? je(si(e), e, t) : e;
558
558
  }
559
- function oi(e, t, n) {
559
+ function li(e, t, n) {
560
560
  return e.concat(t).map(function(r) {
561
561
  return it(r, n);
562
562
  });
563
563
  }
564
- function ai(e, t) {
564
+ function ui(e, t) {
565
565
  if (!t.customMerge)
566
- return ke;
566
+ return je;
567
567
  var n = t.customMerge(e);
568
- return typeof n == "function" ? n : ke;
568
+ return typeof n == "function" ? n : je;
569
569
  }
570
- function si(e) {
570
+ function ci(e) {
571
571
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
572
572
  return Object.propertyIsEnumerable.call(e, t);
573
573
  }) : [];
574
574
  }
575
- function fn(e) {
576
- return Object.keys(e).concat(si(e));
575
+ function pn(e) {
576
+ return Object.keys(e).concat(ci(e));
577
577
  }
578
- function Xn(e, t) {
578
+ function Wn(e, t) {
579
579
  try {
580
580
  return t in e;
581
581
  } catch {
582
582
  return !1;
583
583
  }
584
584
  }
585
- function ui(e, t) {
586
- return Xn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
585
+ function hi(e, t) {
586
+ return Wn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
587
587
  }
588
- function li(e, t, n) {
588
+ function fi(e, t, n) {
589
589
  var r = {};
590
- return n.isMergeableObject(e) && fn(e).forEach(function(i) {
590
+ return n.isMergeableObject(e) && pn(e).forEach(function(i) {
591
591
  r[i] = it(e[i], n);
592
- }), fn(t).forEach(function(i) {
593
- ui(e, i) || (Xn(e, i) && n.isMergeableObject(t[i]) ? r[i] = ai(i, n)(e[i], t[i], n) : r[i] = it(t[i], n));
592
+ }), pn(t).forEach(function(i) {
593
+ hi(e, i) || (Wn(e, i) && n.isMergeableObject(t[i]) ? r[i] = ui(i, n)(e[i], t[i], n) : r[i] = it(t[i], n));
594
594
  }), r;
595
595
  }
596
- function ke(e, t, n) {
597
- n = n || {}, n.arrayMerge = n.arrayMerge || oi, n.isMergeableObject = n.isMergeableObject || Jr, n.cloneUnlessOtherwiseSpecified = it;
596
+ function je(e, t, n) {
597
+ n = n || {}, n.arrayMerge = n.arrayMerge || li, n.isMergeableObject = n.isMergeableObject || ti, n.cloneUnlessOtherwiseSpecified = it;
598
598
  var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
599
- return o ? r ? n.arrayMerge(e, t, n) : li(e, t, n) : it(t, n);
599
+ return o ? r ? n.arrayMerge(e, t, n) : fi(e, t, n) : it(t, n);
600
600
  }
601
- ke.all = function(t, n) {
601
+ je.all = function(t, n) {
602
602
  if (!Array.isArray(t))
603
603
  throw new Error("first argument should be an array");
604
604
  return t.reduce(function(r, i) {
605
- return ke(r, i, n);
605
+ return je(r, i, n);
606
606
  }, {});
607
607
  };
608
- var ci = ke, hi = ci;
609
- const fi = /* @__PURE__ */ Qr(hi);
608
+ var di = je, pi = di;
609
+ const mi = /* @__PURE__ */ ei(pi);
610
610
  /*! *****************************************************************************
611
611
  Copyright (c) Microsoft Corporation.
612
612
 
@@ -621,34 +621,34 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
621
621
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
622
622
  PERFORMANCE OF THIS SOFTWARE.
623
623
  ***************************************************************************** */
624
- var $t = function(e, t) {
625
- return $t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
624
+ var Vt = function(e, t) {
625
+ return Vt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
626
626
  n.__proto__ = r;
627
627
  } || function(n, r) {
628
628
  for (var i in r)
629
629
  Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
630
- }, $t(e, t);
630
+ }, Vt(e, t);
631
631
  };
632
- function Te(e, t) {
632
+ function Be(e, t) {
633
633
  if (typeof t != "function" && t !== null)
634
634
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
635
- $t(e, t);
635
+ Vt(e, t);
636
636
  function n() {
637
637
  this.constructor = e;
638
638
  }
639
639
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
640
640
  }
641
- var L = function() {
642
- return L = Object.assign || function(t) {
641
+ var P = function() {
642
+ return P = Object.assign || function(t) {
643
643
  for (var n, r = 1, i = arguments.length; r < i; r++) {
644
644
  n = arguments[r];
645
645
  for (var o in n)
646
646
  Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
647
647
  }
648
648
  return t;
649
- }, L.apply(this, arguments);
649
+ }, P.apply(this, arguments);
650
650
  };
651
- function di(e, t) {
651
+ function bi(e, t) {
652
652
  var n = {};
653
653
  for (var r in e)
654
654
  Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
@@ -657,7 +657,7 @@ function di(e, t) {
657
657
  t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
658
658
  return n;
659
659
  }
660
- function Vt(e) {
660
+ function Xt(e) {
661
661
  var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
662
662
  if (n)
663
663
  return n.call(e);
@@ -669,7 +669,7 @@ function Vt(e) {
669
669
  };
670
670
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
671
671
  }
672
- function Xt(e, t) {
672
+ function zt(e, t) {
673
673
  var n = typeof Symbol == "function" && e[Symbol.iterator];
674
674
  if (!n)
675
675
  return e;
@@ -689,113 +689,111 @@ function Xt(e, t) {
689
689
  }
690
690
  return o;
691
691
  }
692
- function je(e, t, n) {
692
+ function Ge(e, t, n) {
693
693
  if (n || arguments.length === 2)
694
694
  for (var r = 0, i = t.length, o; r < i; r++)
695
695
  (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
696
696
  return e.concat(o || t);
697
697
  }
698
698
  function Pt(e, t) {
699
- var n = t && t.cache ? t.cache : _i, r = t && t.serializer ? t.serializer : yi, i = t && t.strategy ? t.strategy : mi;
699
+ var n = t && t.cache ? t.cache : xi, r = t && t.serializer ? t.serializer : Ei, i = t && t.strategy ? t.strategy : yi;
700
700
  return i(e, {
701
701
  cache: n,
702
702
  serializer: r
703
703
  });
704
704
  }
705
- function pi(e) {
705
+ function gi(e) {
706
706
  return e == null || typeof e == "number" || typeof e == "boolean";
707
707
  }
708
- function zn(e, t, n, r) {
709
- var i = pi(r) ? r : n(r), o = t.get(i);
708
+ function Zn(e, t, n, r) {
709
+ var i = gi(r) ? r : n(r), o = t.get(i);
710
710
  return typeof o > "u" && (o = e.call(this, r), t.set(i, o)), o;
711
711
  }
712
- function Wn(e, t, n) {
712
+ function qn(e, t, n) {
713
713
  var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
714
714
  return typeof o > "u" && (o = e.apply(this, r), t.set(i, o)), o;
715
715
  }
716
- function on(e, t, n, r, i) {
716
+ function an(e, t, n, r, i) {
717
717
  return n.bind(t, e, r, i);
718
718
  }
719
- function mi(e, t) {
720
- var n = e.length === 1 ? zn : Wn;
721
- return on(e, this, n, t.cache.create(), t.serializer);
719
+ function yi(e, t) {
720
+ var n = e.length === 1 ? Zn : qn;
721
+ return an(e, this, n, t.cache.create(), t.serializer);
722
722
  }
723
- function bi(e, t) {
724
- return on(e, this, Wn, t.cache.create(), t.serializer);
723
+ function vi(e, t) {
724
+ return an(e, this, qn, t.cache.create(), t.serializer);
725
725
  }
726
- function gi(e, t) {
727
- return on(e, this, zn, t.cache.create(), t.serializer);
726
+ function _i(e, t) {
727
+ return an(e, this, Zn, t.cache.create(), t.serializer);
728
728
  }
729
- var yi = function() {
729
+ var Ei = function() {
730
730
  return JSON.stringify(arguments);
731
- }, vi = (
732
- /** @class */
733
- function() {
734
- function e() {
735
- this.cache = /* @__PURE__ */ Object.create(null);
736
- }
737
- return e.prototype.get = function(t) {
738
- return this.cache[t];
739
- }, e.prototype.set = function(t, n) {
740
- this.cache[t] = n;
741
- }, e;
742
- }()
743
- ), _i = {
731
+ };
732
+ function sn() {
733
+ this.cache = /* @__PURE__ */ Object.create(null);
734
+ }
735
+ sn.prototype.get = function(e) {
736
+ return this.cache[e];
737
+ };
738
+ sn.prototype.set = function(e, t) {
739
+ this.cache[e] = t;
740
+ };
741
+ var xi = {
744
742
  create: function() {
745
- return new vi();
743
+ return new sn();
746
744
  }
747
- }, Nt = {
748
- variadic: bi,
749
- monadic: gi
750
- }, H;
745
+ }, It = {
746
+ variadic: vi,
747
+ monadic: _i
748
+ }, O;
751
749
  (function(e) {
752
750
  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";
753
- })(H || (H = {}));
751
+ })(O || (O = {}));
754
752
  var G;
755
753
  (function(e) {
756
754
  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";
757
755
  })(G || (G = {}));
758
- var $e;
756
+ var ke;
759
757
  (function(e) {
760
758
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
761
- })($e || ($e = {}));
762
- function dn(e) {
759
+ })(ke || (ke = {}));
760
+ function mn(e) {
763
761
  return e.type === G.literal;
764
762
  }
765
- function Ei(e) {
763
+ function wi(e) {
766
764
  return e.type === G.argument;
767
765
  }
768
- function Zn(e) {
766
+ function Yn(e) {
769
767
  return e.type === G.number;
770
768
  }
771
- function qn(e) {
769
+ function Qn(e) {
772
770
  return e.type === G.date;
773
771
  }
774
- function Yn(e) {
772
+ function Jn(e) {
775
773
  return e.type === G.time;
776
774
  }
777
- function Qn(e) {
775
+ function Kn(e) {
778
776
  return e.type === G.select;
779
777
  }
780
- function Jn(e) {
778
+ function er(e) {
781
779
  return e.type === G.plural;
782
780
  }
783
- function xi(e) {
781
+ function Si(e) {
784
782
  return e.type === G.pound;
785
783
  }
786
- function Kn(e) {
784
+ function tr(e) {
787
785
  return e.type === G.tag;
788
786
  }
789
- function er(e) {
790
- return !!(e && typeof e == "object" && e.type === $e.number);
787
+ function nr(e) {
788
+ return !!(e && typeof e == "object" && e.type === ke.number);
791
789
  }
792
- function zt(e) {
793
- return !!(e && typeof e == "object" && e.type === $e.dateTime);
790
+ function Wt(e) {
791
+ return !!(e && typeof e == "object" && e.type === ke.dateTime);
794
792
  }
795
- var tr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, wi = /(?:[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;
796
- function Si(e) {
793
+ var rr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ti = /(?:[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;
794
+ function Bi(e) {
797
795
  var t = {};
798
- return e.replace(wi, function(n) {
796
+ return e.replace(Ti, function(n) {
799
797
  var r = n.length;
800
798
  switch (n[0]) {
801
799
  case "G":
@@ -884,36 +882,36 @@ function Si(e) {
884
882
  return "";
885
883
  }), t;
886
884
  }
887
- var Ti = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
888
- function Bi(e) {
885
+ var Ai = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
886
+ function Ci(e) {
889
887
  if (e.length === 0)
890
888
  throw new Error("Number skeleton cannot be empty");
891
- for (var t = e.split(Ti).filter(function(m) {
892
- return m.length > 0;
889
+ for (var t = e.split(Ai).filter(function(p) {
890
+ return p.length > 0;
893
891
  }), n = [], r = 0, i = t; r < i.length; r++) {
894
892
  var o = i[r], s = o.split("/");
895
893
  if (s.length === 0)
896
894
  throw new Error("Invalid number skeleton");
897
- for (var a = s[0], l = s.slice(1), u = 0, f = l; u < f.length; u++) {
898
- var b = f[u];
899
- if (b.length === 0)
895
+ for (var a = s[0], c = s.slice(1), l = 0, f = c; l < f.length; l++) {
896
+ var m = f[l];
897
+ if (m.length === 0)
900
898
  throw new Error("Invalid number skeleton");
901
899
  }
902
- n.push({ stem: a, options: l });
900
+ n.push({ stem: a, options: c });
903
901
  }
904
902
  return n;
905
903
  }
906
- function Ai(e) {
904
+ function Hi(e) {
907
905
  return e.replace(/^(.*?)-/, "");
908
906
  }
909
- var pn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, nr = /^(@+)?(\+|#+)?[rs]?$/g, Ci = /(\*)(0+)|(#+)(0+)|(0+)/g, rr = /^(0+)$/;
910
- function mn(e) {
907
+ var bn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ir = /^(@+)?(\+|#+)?[rs]?$/g, Oi = /(\*)(0+)|(#+)(0+)|(0+)/g, or = /^(0+)$/;
908
+ function gn(e) {
911
909
  var t = {};
912
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(nr, function(n, r, i) {
910
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ir, function(n, r, i) {
913
911
  return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
914
912
  }), t;
915
913
  }
916
- function ir(e) {
914
+ function ar(e) {
917
915
  switch (e) {
918
916
  case "sign-auto":
919
917
  return {
@@ -953,7 +951,7 @@ function ir(e) {
953
951
  };
954
952
  }
955
953
  }
956
- function Hi(e) {
954
+ function Mi(e) {
957
955
  var t;
958
956
  if (e[0] === "E" && e[1] === "E" ? (t = {
959
957
  notation: "engineering"
@@ -961,17 +959,17 @@ function Hi(e) {
961
959
  notation: "scientific"
962
960
  }, e = e.slice(1)), t) {
963
961
  var n = e.slice(0, 2);
964
- if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !rr.test(e))
962
+ if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !or.test(e))
965
963
  throw new Error("Malformed concise eng/scientific notation");
966
964
  t.minimumIntegerDigits = e.length;
967
965
  }
968
966
  return t;
969
967
  }
970
- function bn(e) {
971
- var t = {}, n = ir(e);
968
+ function yn(e) {
969
+ var t = {}, n = ar(e);
972
970
  return n || t;
973
971
  }
974
- function Oi(e) {
972
+ function Ri(e) {
975
973
  for (var t = {}, n = 0, r = e; n < r.length; n++) {
976
974
  var i = r[n];
977
975
  switch (i.stem) {
@@ -995,7 +993,7 @@ function Oi(e) {
995
993
  continue;
996
994
  case "measure-unit":
997
995
  case "unit":
998
- t.style = "unit", t.unit = Ai(i.options[0]);
996
+ t.style = "unit", t.unit = Hi(i.options[0]);
999
997
  continue;
1000
998
  case "compact-short":
1001
999
  case "K":
@@ -1006,13 +1004,13 @@ function Oi(e) {
1006
1004
  t.notation = "compact", t.compactDisplay = "long";
1007
1005
  continue;
1008
1006
  case "scientific":
1009
- t = L(L(L({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1010
- return L(L({}, l), bn(u));
1007
+ t = P(P(P({}, t), { notation: "scientific" }), i.options.reduce(function(c, l) {
1008
+ return P(P({}, c), yn(l));
1011
1009
  }, {}));
1012
1010
  continue;
1013
1011
  case "engineering":
1014
- t = L(L(L({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1015
- return L(L({}, l), bn(u));
1012
+ t = P(P(P({}, t), { notation: "engineering" }), i.options.reduce(function(c, l) {
1013
+ return P(P({}, c), yn(l));
1016
1014
  }, {}));
1017
1015
  continue;
1018
1016
  case "notation-simple":
@@ -1057,41 +1055,41 @@ function Oi(e) {
1057
1055
  case "integer-width":
1058
1056
  if (i.options.length > 1)
1059
1057
  throw new RangeError("integer-width stems only accept a single optional option");
1060
- i.options[0].replace(Ci, function(l, u, f, b, m, w) {
1061
- if (u)
1058
+ i.options[0].replace(Oi, function(c, l, f, m, p, S) {
1059
+ if (l)
1062
1060
  t.minimumIntegerDigits = f.length;
1063
1061
  else {
1064
- if (b && m)
1062
+ if (m && p)
1065
1063
  throw new Error("We currently do not support maximum integer digits");
1066
- if (w)
1064
+ if (S)
1067
1065
  throw new Error("We currently do not support exact integer digits");
1068
1066
  }
1069
1067
  return "";
1070
1068
  });
1071
1069
  continue;
1072
1070
  }
1073
- if (rr.test(i.stem)) {
1071
+ if (or.test(i.stem)) {
1074
1072
  t.minimumIntegerDigits = i.stem.length;
1075
1073
  continue;
1076
1074
  }
1077
- if (pn.test(i.stem)) {
1075
+ if (bn.test(i.stem)) {
1078
1076
  if (i.options.length > 1)
1079
1077
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1080
- i.stem.replace(pn, function(l, u, f, b, m, w) {
1081
- return f === "*" ? t.minimumFractionDigits = u.length : b && b[0] === "#" ? t.maximumFractionDigits = b.length : m && w ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + w.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1078
+ i.stem.replace(bn, function(c, l, f, m, p, S) {
1079
+ return f === "*" ? t.minimumFractionDigits = l.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : p && S ? (t.minimumFractionDigits = p.length, t.maximumFractionDigits = p.length + S.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1082
1080
  });
1083
1081
  var o = i.options[0];
1084
- o === "w" ? t = L(L({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = L(L({}, t), mn(o)));
1082
+ o === "w" ? t = P(P({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = P(P({}, t), gn(o)));
1085
1083
  continue;
1086
1084
  }
1087
- if (nr.test(i.stem)) {
1088
- t = L(L({}, t), mn(i.stem));
1085
+ if (ir.test(i.stem)) {
1086
+ t = P(P({}, t), gn(i.stem));
1089
1087
  continue;
1090
1088
  }
1091
- var s = ir(i.stem);
1092
- s && (t = L(L({}, t), s));
1093
- var a = Hi(i.stem);
1094
- a && (t = L(L({}, t), a));
1089
+ var s = ar(i.stem);
1090
+ s && (t = P(P({}, t), s));
1091
+ var a = Mi(i.stem);
1092
+ a && (t = P(P({}, t), a));
1095
1093
  }
1096
1094
  return t;
1097
1095
  }
@@ -2510,23 +2508,23 @@ var dt = {
2510
2508
  "h"
2511
2509
  ]
2512
2510
  };
2513
- function Mi(e, t) {
2511
+ function Li(e, t) {
2514
2512
  for (var n = "", r = 0; r < e.length; r++) {
2515
2513
  var i = e.charAt(r);
2516
2514
  if (i === "j") {
2517
2515
  for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2518
2516
  o++, r++;
2519
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Ri(t);
2520
- for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2521
- n += l;
2517
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), c = "a", l = Pi(t);
2518
+ for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
2519
+ n += c;
2522
2520
  for (; s-- > 0; )
2523
- n = u + n;
2521
+ n = l + n;
2524
2522
  } else
2525
2523
  i === "J" ? n += "H" : n += i;
2526
2524
  }
2527
2525
  return n;
2528
2526
  }
2529
- function Ri(e) {
2527
+ function Pi(e) {
2530
2528
  var t = e.hourCycle;
2531
2529
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2532
2530
  e.hourCycles && // @ts-ignore
@@ -2548,20 +2546,20 @@ function Ri(e) {
2548
2546
  var i = dt[r || ""] || dt[n || ""] || dt["".concat(n, "-001")] || dt["001"];
2549
2547
  return i[0];
2550
2548
  }
2551
- var It, Li = new RegExp("^".concat(tr.source, "*")), Pi = new RegExp("".concat(tr.source, "*$"));
2552
- function O(e, t) {
2549
+ var Nt, Ii = new RegExp("^".concat(rr.source, "*")), Ni = new RegExp("".concat(rr.source, "*$"));
2550
+ function M(e, t) {
2553
2551
  return { start: e, end: t };
2554
2552
  }
2555
- var Ni = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ii = !!String.fromCodePoint, Di = !!Object.fromEntries, Ui = !!String.prototype.codePointAt, Fi = !!String.prototype.trimStart, Gi = !!String.prototype.trimEnd, ji = !!Number.isSafeInteger, ki = ji ? Number.isSafeInteger : function(e) {
2553
+ var Di = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ui = !!String.fromCodePoint, Fi = !!Object.fromEntries, Gi = !!String.prototype.codePointAt, ji = !!String.prototype.trimStart, ki = !!String.prototype.trimEnd, $i = !!Number.isSafeInteger, Vi = $i ? Number.isSafeInteger : function(e) {
2556
2554
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2557
- }, Wt = !0;
2555
+ }, Zt = !0;
2558
2556
  try {
2559
- var $i = ar("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2560
- Wt = ((It = $i.exec("a")) === null || It === void 0 ? void 0 : It[0]) === "a";
2557
+ var Xi = lr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2558
+ Zt = ((Nt = Xi.exec("a")) === null || Nt === void 0 ? void 0 : Nt[0]) === "a";
2561
2559
  } catch {
2562
- Wt = !1;
2560
+ Zt = !1;
2563
2561
  }
2564
- var gn = Ni ? (
2562
+ var vn = Di ? (
2565
2563
  // Native
2566
2564
  function(t, n, r) {
2567
2565
  return t.startsWith(n, r);
@@ -2571,7 +2569,7 @@ var gn = Ni ? (
2571
2569
  function(t, n, r) {
2572
2570
  return t.slice(r, r + n.length) === n;
2573
2571
  }
2574
- ), Zt = Ii ? String.fromCodePoint : (
2572
+ ), qt = Ui ? String.fromCodePoint : (
2575
2573
  // IE11
2576
2574
  function() {
2577
2575
  for (var t = [], n = 0; n < arguments.length; n++)
@@ -2583,9 +2581,9 @@ var gn = Ni ? (
2583
2581
  }
2584
2582
  return r;
2585
2583
  }
2586
- ), yn = (
2584
+ ), _n = (
2587
2585
  // native
2588
- Di ? Object.fromEntries : (
2586
+ Fi ? Object.fromEntries : (
2589
2587
  // Ponyfill
2590
2588
  function(t) {
2591
2589
  for (var n = {}, r = 0, i = t; r < i.length; r++) {
@@ -2595,7 +2593,7 @@ var gn = Ni ? (
2595
2593
  return n;
2596
2594
  }
2597
2595
  )
2598
- ), or = Ui ? (
2596
+ ), sr = Gi ? (
2599
2597
  // Native
2600
2598
  function(t, n) {
2601
2599
  return t.codePointAt(n);
@@ -2609,7 +2607,7 @@ var gn = Ni ? (
2609
2607
  return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2610
2608
  }
2611
2609
  }
2612
- ), Vi = Fi ? (
2610
+ ), zi = ji ? (
2613
2611
  // Native
2614
2612
  function(t) {
2615
2613
  return t.trimStart();
@@ -2617,9 +2615,9 @@ var gn = Ni ? (
2617
2615
  ) : (
2618
2616
  // Ponyfill
2619
2617
  function(t) {
2620
- return t.replace(Li, "");
2618
+ return t.replace(Ii, "");
2621
2619
  }
2622
- ), Xi = Gi ? (
2620
+ ), Wi = ki ? (
2623
2621
  // Native
2624
2622
  function(t) {
2625
2623
  return t.trimEnd();
@@ -2627,32 +2625,32 @@ var gn = Ni ? (
2627
2625
  ) : (
2628
2626
  // Ponyfill
2629
2627
  function(t) {
2630
- return t.replace(Pi, "");
2628
+ return t.replace(Ni, "");
2631
2629
  }
2632
2630
  );
2633
- function ar(e, t) {
2631
+ function lr(e, t) {
2634
2632
  return new RegExp(e, t);
2635
2633
  }
2636
- var qt;
2637
- if (Wt) {
2638
- var vn = ar("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2639
- qt = function(t, n) {
2634
+ var Yt;
2635
+ if (Zt) {
2636
+ var En = lr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2637
+ Yt = function(t, n) {
2640
2638
  var r;
2641
- vn.lastIndex = n;
2642
- var i = vn.exec(t);
2639
+ En.lastIndex = n;
2640
+ var i = En.exec(t);
2643
2641
  return (r = i[1]) !== null && r !== void 0 ? r : "";
2644
2642
  };
2645
2643
  } else
2646
- qt = function(t, n) {
2644
+ Yt = function(t, n) {
2647
2645
  for (var r = []; ; ) {
2648
- var i = or(t, n);
2649
- if (i === void 0 || sr(i) || qi(i))
2646
+ var i = sr(t, n);
2647
+ if (i === void 0 || ur(i) || Qi(i))
2650
2648
  break;
2651
2649
  r.push(i), n += i >= 65536 ? 2 : 1;
2652
2650
  }
2653
- return Zt.apply(void 0, r);
2651
+ return qt.apply(void 0, r);
2654
2652
  };
2655
- var zi = (
2653
+ var Zi = (
2656
2654
  /** @class */
2657
2655
  function() {
2658
2656
  function e(t, n) {
@@ -2677,13 +2675,13 @@ var zi = (
2677
2675
  var a = this.clonePosition();
2678
2676
  this.bump(), i.push({
2679
2677
  type: G.pound,
2680
- location: O(a, this.clonePosition())
2678
+ location: M(a, this.clonePosition())
2681
2679
  });
2682
2680
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2683
2681
  if (r)
2684
2682
  break;
2685
- return this.error(H.UNMATCHED_CLOSING_TAG, O(this.clonePosition(), this.clonePosition()));
2686
- } else if (o === 60 && !this.ignoreTag && Yt(this.peek() || 0)) {
2683
+ return this.error(O.UNMATCHED_CLOSING_TAG, M(this.clonePosition(), this.clonePosition()));
2684
+ } else if (o === 60 && !this.ignoreTag && Qt(this.peek() || 0)) {
2687
2685
  var s = this.parseTag(t, n);
2688
2686
  if (s.err)
2689
2687
  return s;
@@ -2706,7 +2704,7 @@ var zi = (
2706
2704
  val: {
2707
2705
  type: G.literal,
2708
2706
  value: "<".concat(i, "/>"),
2709
- location: O(r, this.clonePosition())
2707
+ location: M(r, this.clonePosition())
2710
2708
  },
2711
2709
  err: null
2712
2710
  };
@@ -2716,25 +2714,25 @@ var zi = (
2716
2714
  return o;
2717
2715
  var s = o.val, a = this.clonePosition();
2718
2716
  if (this.bumpIf("</")) {
2719
- if (this.isEOF() || !Yt(this.char()))
2720
- return this.error(H.INVALID_TAG, O(a, this.clonePosition()));
2721
- var l = this.clonePosition(), u = this.parseTagName();
2722
- return i !== u ? this.error(H.UNMATCHED_CLOSING_TAG, O(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2717
+ if (this.isEOF() || !Qt(this.char()))
2718
+ return this.error(O.INVALID_TAG, M(a, this.clonePosition()));
2719
+ var c = this.clonePosition(), l = this.parseTagName();
2720
+ return i !== l ? this.error(O.UNMATCHED_CLOSING_TAG, M(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2723
2721
  val: {
2724
2722
  type: G.tag,
2725
2723
  value: i,
2726
2724
  children: s,
2727
- location: O(r, this.clonePosition())
2725
+ location: M(r, this.clonePosition())
2728
2726
  },
2729
2727
  err: null
2730
- } : this.error(H.INVALID_TAG, O(a, this.clonePosition())));
2728
+ } : this.error(O.INVALID_TAG, M(a, this.clonePosition())));
2731
2729
  } else
2732
- return this.error(H.UNCLOSED_TAG, O(r, this.clonePosition()));
2730
+ return this.error(O.UNCLOSED_TAG, M(r, this.clonePosition()));
2733
2731
  } else
2734
- return this.error(H.INVALID_TAG, O(r, this.clonePosition()));
2732
+ return this.error(O.INVALID_TAG, M(r, this.clonePosition()));
2735
2733
  }, e.prototype.parseTagName = function() {
2736
2734
  var t = this.offset();
2737
- for (this.bump(); !this.isEOF() && Zi(this.char()); )
2735
+ for (this.bump(); !this.isEOF() && Yi(this.char()); )
2738
2736
  this.bump();
2739
2737
  return this.message.slice(t, this.offset());
2740
2738
  }, e.prototype.parseLiteral = function(t, n) {
@@ -2756,14 +2754,14 @@ var zi = (
2756
2754
  }
2757
2755
  break;
2758
2756
  }
2759
- var l = O(r, this.clonePosition());
2757
+ var c = M(r, this.clonePosition());
2760
2758
  return {
2761
- val: { type: G.literal, value: i, location: l },
2759
+ val: { type: G.literal, value: i, location: c },
2762
2760
  err: null
2763
2761
  };
2764
2762
  }, e.prototype.tryParseLeftAngleBracket = function() {
2765
2763
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2766
- !Wi(this.peek() || 0)) ? (this.bump(), "<") : null;
2764
+ !qi(this.peek() || 0)) ? (this.bump(), "<") : null;
2767
2765
  }, e.prototype.tryParseQuote = function(t) {
2768
2766
  if (this.isEOF() || this.char() !== 39)
2769
2767
  return null;
@@ -2797,23 +2795,23 @@ var zi = (
2797
2795
  n.push(r);
2798
2796
  this.bump();
2799
2797
  }
2800
- return Zt.apply(void 0, n);
2798
+ return qt.apply(void 0, n);
2801
2799
  }, e.prototype.tryParseUnquoted = function(t, n) {
2802
2800
  if (this.isEOF())
2803
2801
  return null;
2804
2802
  var r = this.char();
2805
- return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Zt(r));
2803
+ return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), qt(r));
2806
2804
  }, e.prototype.parseArgument = function(t, n) {
2807
2805
  var r = this.clonePosition();
2808
2806
  if (this.bump(), this.bumpSpace(), this.isEOF())
2809
- return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(r, this.clonePosition()));
2807
+ return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(r, this.clonePosition()));
2810
2808
  if (this.char() === 125)
2811
- return this.bump(), this.error(H.EMPTY_ARGUMENT, O(r, this.clonePosition()));
2809
+ return this.bump(), this.error(O.EMPTY_ARGUMENT, M(r, this.clonePosition()));
2812
2810
  var i = this.parseIdentifierIfPossible().value;
2813
2811
  if (!i)
2814
- return this.error(H.MALFORMED_ARGUMENT, O(r, this.clonePosition()));
2812
+ return this.error(O.MALFORMED_ARGUMENT, M(r, this.clonePosition()));
2815
2813
  if (this.bumpSpace(), this.isEOF())
2816
- return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(r, this.clonePosition()));
2814
+ return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(r, this.clonePosition()));
2817
2815
  switch (this.char()) {
2818
2816
  case 125:
2819
2817
  return this.bump(), {
@@ -2821,66 +2819,66 @@ var zi = (
2821
2819
  type: G.argument,
2822
2820
  // value does not include the opening and closing braces.
2823
2821
  value: i,
2824
- location: O(r, this.clonePosition())
2822
+ location: M(r, this.clonePosition())
2825
2823
  },
2826
2824
  err: null
2827
2825
  };
2828
2826
  case 44:
2829
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2827
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2830
2828
  default:
2831
- return this.error(H.MALFORMED_ARGUMENT, O(r, this.clonePosition()));
2829
+ return this.error(O.MALFORMED_ARGUMENT, M(r, this.clonePosition()));
2832
2830
  }
2833
2831
  }, e.prototype.parseIdentifierIfPossible = function() {
2834
- var t = this.clonePosition(), n = this.offset(), r = qt(this.message, n), i = n + r.length;
2832
+ var t = this.clonePosition(), n = this.offset(), r = Yt(this.message, n), i = n + r.length;
2835
2833
  this.bumpTo(i);
2836
- var o = this.clonePosition(), s = O(t, o);
2834
+ var o = this.clonePosition(), s = M(t, o);
2837
2835
  return { value: r, location: s };
2838
2836
  }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
2839
- var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
2837
+ var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, c = this.clonePosition();
2840
2838
  switch (a) {
2841
2839
  case "":
2842
- return this.error(H.EXPECT_ARGUMENT_TYPE, O(s, l));
2840
+ return this.error(O.EXPECT_ARGUMENT_TYPE, M(s, c));
2843
2841
  case "number":
2844
2842
  case "date":
2845
2843
  case "time": {
2846
2844
  this.bumpSpace();
2847
- var u = null;
2845
+ var l = null;
2848
2846
  if (this.bumpIf(",")) {
2849
2847
  this.bumpSpace();
2850
- var f = this.clonePosition(), b = this.parseSimpleArgStyleIfPossible();
2851
- if (b.err)
2852
- return b;
2853
- var m = Xi(b.val);
2854
- if (m.length === 0)
2855
- return this.error(H.EXPECT_ARGUMENT_STYLE, O(this.clonePosition(), this.clonePosition()));
2856
- var w = O(f, this.clonePosition());
2857
- u = { style: m, styleLocation: w };
2848
+ var f = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
2849
+ if (m.err)
2850
+ return m;
2851
+ var p = Wi(m.val);
2852
+ if (p.length === 0)
2853
+ return this.error(O.EXPECT_ARGUMENT_STYLE, M(this.clonePosition(), this.clonePosition()));
2854
+ var S = M(f, this.clonePosition());
2855
+ l = { style: p, styleLocation: S };
2858
2856
  }
2859
- var _ = this.tryParseArgumentClose(i);
2860
- if (_.err)
2861
- return _;
2862
- var A = O(i, this.clonePosition());
2863
- if (u && gn(u?.style, "::", 0)) {
2864
- var I = Vi(u.style.slice(2));
2857
+ var E = this.tryParseArgumentClose(i);
2858
+ if (E.err)
2859
+ return E;
2860
+ var T = M(i, this.clonePosition());
2861
+ if (l && vn(l?.style, "::", 0)) {
2862
+ var N = zi(l.style.slice(2));
2865
2863
  if (a === "number") {
2866
- var b = this.parseNumberSkeletonFromString(I, u.styleLocation);
2867
- return b.err ? b : {
2868
- val: { type: G.number, value: r, location: A, style: b.val },
2864
+ var m = this.parseNumberSkeletonFromString(N, l.styleLocation);
2865
+ return m.err ? m : {
2866
+ val: { type: G.number, value: r, location: T, style: m.val },
2869
2867
  err: null
2870
2868
  };
2871
2869
  } else {
2872
- if (I.length === 0)
2873
- return this.error(H.EXPECT_DATE_TIME_SKELETON, A);
2874
- var W = I;
2875
- this.locale && (W = Mi(I, this.locale));
2876
- var m = {
2877
- type: $e.dateTime,
2870
+ if (N.length === 0)
2871
+ return this.error(O.EXPECT_DATE_TIME_SKELETON, T);
2872
+ var W = N;
2873
+ this.locale && (W = Li(N, this.locale));
2874
+ var p = {
2875
+ type: ke.dateTime,
2878
2876
  pattern: W,
2879
- location: u.styleLocation,
2880
- parsedOptions: this.shouldParseSkeletons ? Si(W) : {}
2877
+ location: l.styleLocation,
2878
+ parsedOptions: this.shouldParseSkeletons ? Bi(W) : {}
2881
2879
  }, V = a === "date" ? G.date : G.time;
2882
2880
  return {
2883
- val: { type: V, value: r, location: A, style: m },
2881
+ val: { type: V, value: r, location: T, style: p },
2884
2882
  err: null
2885
2883
  };
2886
2884
  }
@@ -2889,8 +2887,8 @@ var zi = (
2889
2887
  val: {
2890
2888
  type: a === "number" ? G.number : a === "date" ? G.date : G.time,
2891
2889
  value: r,
2892
- location: A,
2893
- style: (o = u?.style) !== null && o !== void 0 ? o : null
2890
+ location: T,
2891
+ style: (o = l?.style) !== null && o !== void 0 ? o : null
2894
2892
  },
2895
2893
  err: null
2896
2894
  };
@@ -2898,52 +2896,52 @@ var zi = (
2898
2896
  case "plural":
2899
2897
  case "selectordinal":
2900
2898
  case "select": {
2901
- var R = this.clonePosition();
2899
+ var L = this.clonePosition();
2902
2900
  if (this.bumpSpace(), !this.bumpIf(","))
2903
- return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS, O(R, L({}, R)));
2901
+ return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS, M(L, P({}, L)));
2904
2902
  this.bumpSpace();
2905
- var D = this.parseIdentifierIfPossible(), k = 0;
2906
- if (a !== "select" && D.value === "offset") {
2903
+ var U = this.parseIdentifierIfPossible(), Q = 0;
2904
+ if (a !== "select" && U.value === "offset") {
2907
2905
  if (!this.bumpIf(":"))
2908
- return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O(this.clonePosition(), this.clonePosition()));
2906
+ return this.error(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, M(this.clonePosition(), this.clonePosition()));
2909
2907
  this.bumpSpace();
2910
- var b = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2911
- if (b.err)
2912
- return b;
2913
- this.bumpSpace(), D = this.parseIdentifierIfPossible(), k = b.val;
2908
+ var m = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2909
+ if (m.err)
2910
+ return m;
2911
+ this.bumpSpace(), U = this.parseIdentifierIfPossible(), Q = m.val;
2914
2912
  }
2915
- var oe = this.tryParsePluralOrSelectOptions(t, a, n, D);
2916
- if (oe.err)
2917
- return oe;
2918
- var _ = this.tryParseArgumentClose(i);
2919
- if (_.err)
2920
- return _;
2921
- var Z = O(i, this.clonePosition());
2913
+ var Z = this.tryParsePluralOrSelectOptions(t, a, n, U);
2914
+ if (Z.err)
2915
+ return Z;
2916
+ var E = this.tryParseArgumentClose(i);
2917
+ if (E.err)
2918
+ return E;
2919
+ var ee = M(i, this.clonePosition());
2922
2920
  return a === "select" ? {
2923
2921
  val: {
2924
2922
  type: G.select,
2925
2923
  value: r,
2926
- options: yn(oe.val),
2927
- location: Z
2924
+ options: _n(Z.val),
2925
+ location: ee
2928
2926
  },
2929
2927
  err: null
2930
2928
  } : {
2931
2929
  val: {
2932
2930
  type: G.plural,
2933
2931
  value: r,
2934
- options: yn(oe.val),
2935
- offset: k,
2932
+ options: _n(Z.val),
2933
+ offset: Q,
2936
2934
  pluralType: a === "plural" ? "cardinal" : "ordinal",
2937
- location: Z
2935
+ location: ee
2938
2936
  },
2939
2937
  err: null
2940
2938
  };
2941
2939
  }
2942
2940
  default:
2943
- return this.error(H.INVALID_ARGUMENT_TYPE, O(s, l));
2941
+ return this.error(O.INVALID_ARGUMENT_TYPE, M(s, c));
2944
2942
  }
2945
2943
  }, e.prototype.tryParseArgumentClose = function(t) {
2946
- return this.isEOF() || this.char() !== 125 ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2944
+ return this.isEOF() || this.char() !== 125 ? this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2947
2945
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2948
2946
  for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
2949
2947
  var r = this.char();
@@ -2952,7 +2950,7 @@ var zi = (
2952
2950
  this.bump();
2953
2951
  var i = this.clonePosition();
2954
2952
  if (!this.bumpUntil("'"))
2955
- return this.error(H.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, O(i, this.clonePosition()));
2953
+ return this.error(O.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, M(i, this.clonePosition()));
2956
2954
  this.bump();
2957
2955
  break;
2958
2956
  }
@@ -2982,52 +2980,52 @@ var zi = (
2982
2980
  }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
2983
2981
  var r = [];
2984
2982
  try {
2985
- r = Bi(t);
2983
+ r = Ci(t);
2986
2984
  } catch {
2987
- return this.error(H.INVALID_NUMBER_SKELETON, n);
2985
+ return this.error(O.INVALID_NUMBER_SKELETON, n);
2988
2986
  }
2989
2987
  return {
2990
2988
  val: {
2991
- type: $e.number,
2989
+ type: ke.number,
2992
2990
  tokens: r,
2993
2991
  location: n,
2994
- parsedOptions: this.shouldParseSkeletons ? Oi(r) : {}
2992
+ parsedOptions: this.shouldParseSkeletons ? Ri(r) : {}
2995
2993
  },
2996
2994
  err: null
2997
2995
  };
2998
2996
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
2999
- for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, f = i.location; ; ) {
3000
- if (u.length === 0) {
3001
- var b = this.clonePosition();
2997
+ for (var o, s = !1, a = [], c = /* @__PURE__ */ new Set(), l = i.value, f = i.location; ; ) {
2998
+ if (l.length === 0) {
2999
+ var m = this.clonePosition();
3002
3000
  if (n !== "select" && this.bumpIf("=")) {
3003
- var m = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_SELECTOR, H.INVALID_PLURAL_ARGUMENT_SELECTOR);
3004
- if (m.err)
3005
- return m;
3006
- f = O(b, this.clonePosition()), u = this.message.slice(b.offset, this.offset());
3001
+ var p = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_SELECTOR, O.INVALID_PLURAL_ARGUMENT_SELECTOR);
3002
+ if (p.err)
3003
+ return p;
3004
+ f = M(m, this.clonePosition()), l = this.message.slice(m.offset, this.offset());
3007
3005
  } else
3008
3006
  break;
3009
3007
  }
3010
- if (l.has(u))
3011
- return this.error(n === "select" ? H.DUPLICATE_SELECT_ARGUMENT_SELECTOR : H.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
3012
- u === "other" && (s = !0), this.bumpSpace();
3013
- var w = this.clonePosition();
3008
+ if (c.has(l))
3009
+ return this.error(n === "select" ? O.DUPLICATE_SELECT_ARGUMENT_SELECTOR : O.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
3010
+ l === "other" && (s = !0), this.bumpSpace();
3011
+ var S = this.clonePosition();
3014
3012
  if (!this.bumpIf("{"))
3015
- return this.error(n === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, O(this.clonePosition(), this.clonePosition()));
3016
- var _ = this.parseMessage(t + 1, n, r);
3017
- if (_.err)
3018
- return _;
3019
- var A = this.tryParseArgumentClose(w);
3020
- if (A.err)
3021
- return A;
3013
+ return this.error(n === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : O.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, M(this.clonePosition(), this.clonePosition()));
3014
+ var E = this.parseMessage(t + 1, n, r);
3015
+ if (E.err)
3016
+ return E;
3017
+ var T = this.tryParseArgumentClose(S);
3018
+ if (T.err)
3019
+ return T;
3022
3020
  a.push([
3023
- u,
3021
+ l,
3024
3022
  {
3025
- value: _.val,
3026
- location: O(w, this.clonePosition())
3023
+ value: E.val,
3024
+ location: M(S, this.clonePosition())
3027
3025
  }
3028
- ]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, f = o.location;
3026
+ ]), c.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, f = o.location;
3029
3027
  }
3030
- return a.length === 0 ? this.error(n === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR : H.EXPECT_PLURAL_ARGUMENT_SELECTOR, O(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(H.MISSING_OTHER_CLAUSE, O(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3028
+ return a.length === 0 ? this.error(n === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR : O.EXPECT_PLURAL_ARGUMENT_SELECTOR, M(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(O.MISSING_OTHER_CLAUSE, M(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3031
3029
  }, e.prototype.tryParseDecimalInteger = function(t, n) {
3032
3030
  var r = 1, i = this.clonePosition();
3033
3031
  this.bumpIf("+") || this.bumpIf("-") && (r = -1);
@@ -3038,8 +3036,8 @@ var zi = (
3038
3036
  else
3039
3037
  break;
3040
3038
  }
3041
- var l = O(i, this.clonePosition());
3042
- return o ? (s *= r, ki(s) ? { val: s, err: null } : this.error(n, l)) : this.error(t, l);
3039
+ var c = M(i, this.clonePosition());
3040
+ return o ? (s *= r, Vi(s) ? { val: s, err: null } : this.error(n, c)) : this.error(t, c);
3043
3041
  }, e.prototype.offset = function() {
3044
3042
  return this.position.offset;
3045
3043
  }, e.prototype.isEOF = function() {
@@ -3054,7 +3052,7 @@ var zi = (
3054
3052
  var t = this.position.offset;
3055
3053
  if (t >= this.message.length)
3056
3054
  throw Error("out of bound");
3057
- var n = or(this.message, t);
3055
+ var n = sr(this.message, t);
3058
3056
  if (n === void 0)
3059
3057
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3060
3058
  return n;
@@ -3073,7 +3071,7 @@ var zi = (
3073
3071
  t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
3074
3072
  }
3075
3073
  }, e.prototype.bumpIf = function(t) {
3076
- if (gn(this.message, t, this.offset())) {
3074
+ if (vn(this.message, t, this.offset())) {
3077
3075
  for (var n = 0; n < t.length; n++)
3078
3076
  this.bump();
3079
3077
  return !0;
@@ -3095,7 +3093,7 @@ var zi = (
3095
3093
  break;
3096
3094
  }
3097
3095
  }, e.prototype.bumpSpace = function() {
3098
- for (; !this.isEOF() && sr(this.char()); )
3096
+ for (; !this.isEOF() && ur(this.char()); )
3099
3097
  this.bump();
3100
3098
  }, e.prototype.peek = function() {
3101
3099
  if (this.isEOF())
@@ -3105,47 +3103,47 @@ var zi = (
3105
3103
  }, e;
3106
3104
  }()
3107
3105
  );
3108
- function Yt(e) {
3106
+ function Qt(e) {
3109
3107
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3110
3108
  }
3111
- function Wi(e) {
3112
- return Yt(e) || e === 47;
3109
+ function qi(e) {
3110
+ return Qt(e) || e === 47;
3113
3111
  }
3114
- function Zi(e) {
3112
+ function Yi(e) {
3115
3113
  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;
3116
3114
  }
3117
- function sr(e) {
3115
+ function ur(e) {
3118
3116
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3119
3117
  }
3120
- function qi(e) {
3118
+ function Qi(e) {
3121
3119
  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;
3122
3120
  }
3123
- function Qt(e) {
3121
+ function Jt(e) {
3124
3122
  e.forEach(function(t) {
3125
- if (delete t.location, Qn(t) || Jn(t))
3123
+ if (delete t.location, Kn(t) || er(t))
3126
3124
  for (var n in t.options)
3127
- delete t.options[n].location, Qt(t.options[n].value);
3125
+ delete t.options[n].location, Jt(t.options[n].value);
3128
3126
  else
3129
- Zn(t) && er(t.style) || (qn(t) || Yn(t)) && zt(t.style) ? delete t.style.location : Kn(t) && Qt(t.children);
3127
+ Yn(t) && nr(t.style) || (Qn(t) || Jn(t)) && Wt(t.style) ? delete t.style.location : tr(t) && Jt(t.children);
3130
3128
  });
3131
3129
  }
3132
- function Yi(e, t) {
3133
- t === void 0 && (t = {}), t = L({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3134
- var n = new zi(e, t).parse();
3130
+ function Ji(e, t) {
3131
+ t === void 0 && (t = {}), t = P({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3132
+ var n = new Zi(e, t).parse();
3135
3133
  if (n.err) {
3136
- var r = SyntaxError(H[n.err.kind]);
3134
+ var r = SyntaxError(O[n.err.kind]);
3137
3135
  throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3138
3136
  }
3139
- return t?.captureLocation || Qt(n.val), n.val;
3137
+ return t?.captureLocation || Jt(n.val), n.val;
3140
3138
  }
3141
- var Ve;
3139
+ var $e;
3142
3140
  (function(e) {
3143
3141
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3144
- })(Ve || (Ve = {}));
3142
+ })($e || ($e = {}));
3145
3143
  var St = (
3146
3144
  /** @class */
3147
3145
  function(e) {
3148
- Te(t, e);
3146
+ Be(t, e);
3149
3147
  function t(n, r, i) {
3150
3148
  var o = e.call(this, n) || this;
3151
3149
  return o.code = r, o.originalMessage = i, o;
@@ -3154,153 +3152,153 @@ var St = (
3154
3152
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3155
3153
  }, t;
3156
3154
  }(Error)
3157
- ), _n = (
3155
+ ), xn = (
3158
3156
  /** @class */
3159
3157
  function(e) {
3160
- Te(t, e);
3158
+ Be(t, e);
3161
3159
  function t(n, r, i, o) {
3162
- return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ve.INVALID_VALUE, o) || this;
3160
+ return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), $e.INVALID_VALUE, o) || this;
3163
3161
  }
3164
3162
  return t;
3165
3163
  }(St)
3166
- ), Qi = (
3164
+ ), Ki = (
3167
3165
  /** @class */
3168
3166
  function(e) {
3169
- Te(t, e);
3167
+ Be(t, e);
3170
3168
  function t(n, r, i) {
3171
- return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Ve.INVALID_VALUE, i) || this;
3169
+ return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), $e.INVALID_VALUE, i) || this;
3172
3170
  }
3173
3171
  return t;
3174
3172
  }(St)
3175
- ), Ji = (
3173
+ ), eo = (
3176
3174
  /** @class */
3177
3175
  function(e) {
3178
- Te(t, e);
3176
+ Be(t, e);
3179
3177
  function t(n, r) {
3180
- return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Ve.MISSING_VALUE, r) || this;
3178
+ return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), $e.MISSING_VALUE, r) || this;
3181
3179
  }
3182
3180
  return t;
3183
3181
  }(St)
3184
- ), ie;
3182
+ ), oe;
3185
3183
  (function(e) {
3186
3184
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3187
- })(ie || (ie = {}));
3188
- function Ki(e) {
3185
+ })(oe || (oe = {}));
3186
+ function to(e) {
3189
3187
  return e.length < 2 ? e : e.reduce(function(t, n) {
3190
3188
  var r = t[t.length - 1];
3191
- return !r || r.type !== ie.literal || n.type !== ie.literal ? t.push(n) : r.value += n.value, t;
3189
+ return !r || r.type !== oe.literal || n.type !== oe.literal ? t.push(n) : r.value += n.value, t;
3192
3190
  }, []);
3193
3191
  }
3194
- function eo(e) {
3192
+ function no(e) {
3195
3193
  return typeof e == "function";
3196
3194
  }
3197
3195
  function bt(e, t, n, r, i, o, s) {
3198
- if (e.length === 1 && dn(e[0]))
3196
+ if (e.length === 1 && mn(e[0]))
3199
3197
  return [
3200
3198
  {
3201
- type: ie.literal,
3199
+ type: oe.literal,
3202
3200
  value: e[0].value
3203
3201
  }
3204
3202
  ];
3205
- for (var a = [], l = 0, u = e; l < u.length; l++) {
3206
- var f = u[l];
3207
- if (dn(f)) {
3203
+ for (var a = [], c = 0, l = e; c < l.length; c++) {
3204
+ var f = l[c];
3205
+ if (mn(f)) {
3208
3206
  a.push({
3209
- type: ie.literal,
3207
+ type: oe.literal,
3210
3208
  value: f.value
3211
3209
  });
3212
3210
  continue;
3213
3211
  }
3214
- if (xi(f)) {
3212
+ if (Si(f)) {
3215
3213
  typeof o == "number" && a.push({
3216
- type: ie.literal,
3214
+ type: oe.literal,
3217
3215
  value: n.getNumberFormat(t).format(o)
3218
3216
  });
3219
3217
  continue;
3220
3218
  }
3221
- var b = f.value;
3222
- if (!(i && b in i))
3223
- throw new Ji(b, s);
3224
- var m = i[b];
3225
- if (Ei(f)) {
3226
- (!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), a.push({
3227
- type: typeof m == "string" ? ie.literal : ie.object,
3228
- value: m
3219
+ var m = f.value;
3220
+ if (!(i && m in i))
3221
+ throw new eo(m, s);
3222
+ var p = i[m];
3223
+ if (wi(f)) {
3224
+ (!p || typeof p == "string" || typeof p == "number") && (p = typeof p == "string" || typeof p == "number" ? String(p) : ""), a.push({
3225
+ type: typeof p == "string" ? oe.literal : oe.object,
3226
+ value: p
3229
3227
  });
3230
3228
  continue;
3231
3229
  }
3232
- if (qn(f)) {
3233
- var w = typeof f.style == "string" ? r.date[f.style] : zt(f.style) ? f.style.parsedOptions : void 0;
3230
+ if (Qn(f)) {
3231
+ var S = typeof f.style == "string" ? r.date[f.style] : Wt(f.style) ? f.style.parsedOptions : void 0;
3234
3232
  a.push({
3235
- type: ie.literal,
3236
- value: n.getDateTimeFormat(t, w).format(m)
3233
+ type: oe.literal,
3234
+ value: n.getDateTimeFormat(t, S).format(p)
3237
3235
  });
3238
3236
  continue;
3239
3237
  }
3240
- if (Yn(f)) {
3241
- var w = typeof f.style == "string" ? r.time[f.style] : zt(f.style) ? f.style.parsedOptions : r.time.medium;
3238
+ if (Jn(f)) {
3239
+ var S = typeof f.style == "string" ? r.time[f.style] : Wt(f.style) ? f.style.parsedOptions : r.time.medium;
3242
3240
  a.push({
3243
- type: ie.literal,
3244
- value: n.getDateTimeFormat(t, w).format(m)
3241
+ type: oe.literal,
3242
+ value: n.getDateTimeFormat(t, S).format(p)
3245
3243
  });
3246
3244
  continue;
3247
3245
  }
3248
- if (Zn(f)) {
3249
- var w = typeof f.style == "string" ? r.number[f.style] : er(f.style) ? f.style.parsedOptions : void 0;
3250
- w && w.scale && (m = m * (w.scale || 1)), a.push({
3251
- type: ie.literal,
3252
- value: n.getNumberFormat(t, w).format(m)
3246
+ if (Yn(f)) {
3247
+ var S = typeof f.style == "string" ? r.number[f.style] : nr(f.style) ? f.style.parsedOptions : void 0;
3248
+ S && S.scale && (p = p * (S.scale || 1)), a.push({
3249
+ type: oe.literal,
3250
+ value: n.getNumberFormat(t, S).format(p)
3253
3251
  });
3254
3252
  continue;
3255
3253
  }
3256
- if (Kn(f)) {
3257
- var _ = f.children, A = f.value, I = i[A];
3258
- if (!eo(I))
3259
- throw new Qi(A, "function", s);
3260
- var W = bt(_, t, n, r, i, o), V = I(W.map(function(k) {
3261
- return k.value;
3254
+ if (tr(f)) {
3255
+ var E = f.children, T = f.value, N = i[T];
3256
+ if (!no(N))
3257
+ throw new Ki(T, "function", s);
3258
+ var W = bt(E, t, n, r, i, o), V = N(W.map(function(Q) {
3259
+ return Q.value;
3262
3260
  }));
3263
- Array.isArray(V) || (V = [V]), a.push.apply(a, V.map(function(k) {
3261
+ Array.isArray(V) || (V = [V]), a.push.apply(a, V.map(function(Q) {
3264
3262
  return {
3265
- type: typeof k == "string" ? ie.literal : ie.object,
3266
- value: k
3263
+ type: typeof Q == "string" ? oe.literal : oe.object,
3264
+ value: Q
3267
3265
  };
3268
3266
  }));
3269
3267
  }
3270
- if (Qn(f)) {
3271
- var R = f.options[m] || f.options.other;
3272
- if (!R)
3273
- throw new _n(f.value, m, Object.keys(f.options), s);
3274
- a.push.apply(a, bt(R.value, t, n, r, i));
3268
+ if (Kn(f)) {
3269
+ var L = f.options[p] || f.options.other;
3270
+ if (!L)
3271
+ throw new xn(f.value, p, Object.keys(f.options), s);
3272
+ a.push.apply(a, bt(L.value, t, n, r, i));
3275
3273
  continue;
3276
3274
  }
3277
- if (Jn(f)) {
3278
- var R = f.options["=".concat(m)];
3279
- if (!R) {
3275
+ if (er(f)) {
3276
+ var L = f.options["=".concat(p)];
3277
+ if (!L) {
3280
3278
  if (!Intl.PluralRules)
3281
3279
  throw new St(`Intl.PluralRules is not available in this environment.
3282
3280
  Try polyfilling it using "@formatjs/intl-pluralrules"
3283
- `, Ve.MISSING_INTL_API, s);
3284
- var D = n.getPluralRules(t, { type: f.pluralType }).select(m - (f.offset || 0));
3285
- R = f.options[D] || f.options.other;
3281
+ `, $e.MISSING_INTL_API, s);
3282
+ var U = n.getPluralRules(t, { type: f.pluralType }).select(p - (f.offset || 0));
3283
+ L = f.options[U] || f.options.other;
3286
3284
  }
3287
- if (!R)
3288
- throw new _n(f.value, m, Object.keys(f.options), s);
3289
- a.push.apply(a, bt(R.value, t, n, r, i, m - (f.offset || 0)));
3285
+ if (!L)
3286
+ throw new xn(f.value, p, Object.keys(f.options), s);
3287
+ a.push.apply(a, bt(L.value, t, n, r, i, p - (f.offset || 0)));
3290
3288
  continue;
3291
3289
  }
3292
3290
  }
3293
- return Ki(a);
3291
+ return to(a);
3294
3292
  }
3295
- function to(e, t) {
3296
- return t ? L(L(L({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3297
- return n[r] = L(L({}, e[r]), t[r] || {}), n;
3293
+ function ro(e, t) {
3294
+ return t ? P(P(P({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3295
+ return n[r] = P(P({}, e[r]), t[r] || {}), n;
3298
3296
  }, {})) : e;
3299
3297
  }
3300
- function no(e, t) {
3298
+ function io(e, t) {
3301
3299
  return t ? Object.keys(e).reduce(function(n, r) {
3302
- return n[r] = to(e[r], t[r]), n;
3303
- }, L({}, e)) : e;
3300
+ return n[r] = ro(e[r], t[r]), n;
3301
+ }, P({}, e)) : e;
3304
3302
  }
3305
3303
  function Dt(e) {
3306
3304
  return {
@@ -3316,7 +3314,7 @@ function Dt(e) {
3316
3314
  }
3317
3315
  };
3318
3316
  }
3319
- function ro(e) {
3317
+ function oo(e) {
3320
3318
  return e === void 0 && (e = {
3321
3319
  number: {},
3322
3320
  dateTime: {},
@@ -3325,30 +3323,30 @@ function ro(e) {
3325
3323
  getNumberFormat: Pt(function() {
3326
3324
  for (var t, n = [], r = 0; r < arguments.length; r++)
3327
3325
  n[r] = arguments[r];
3328
- return new ((t = Intl.NumberFormat).bind.apply(t, je([void 0], n, !1)))();
3326
+ return new ((t = Intl.NumberFormat).bind.apply(t, Ge([void 0], n, !1)))();
3329
3327
  }, {
3330
3328
  cache: Dt(e.number),
3331
- strategy: Nt.variadic
3329
+ strategy: It.variadic
3332
3330
  }),
3333
3331
  getDateTimeFormat: Pt(function() {
3334
3332
  for (var t, n = [], r = 0; r < arguments.length; r++)
3335
3333
  n[r] = arguments[r];
3336
- return new ((t = Intl.DateTimeFormat).bind.apply(t, je([void 0], n, !1)))();
3334
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Ge([void 0], n, !1)))();
3337
3335
  }, {
3338
3336
  cache: Dt(e.dateTime),
3339
- strategy: Nt.variadic
3337
+ strategy: It.variadic
3340
3338
  }),
3341
3339
  getPluralRules: Pt(function() {
3342
3340
  for (var t, n = [], r = 0; r < arguments.length; r++)
3343
3341
  n[r] = arguments[r];
3344
- return new ((t = Intl.PluralRules).bind.apply(t, je([void 0], n, !1)))();
3342
+ return new ((t = Intl.PluralRules).bind.apply(t, Ge([void 0], n, !1)))();
3345
3343
  }, {
3346
3344
  cache: Dt(e.pluralRules),
3347
- strategy: Nt.variadic
3345
+ strategy: It.variadic
3348
3346
  })
3349
3347
  };
3350
3348
  }
3351
- var io = (
3349
+ var ao = (
3352
3350
  /** @class */
3353
3351
  function() {
3354
3352
  function e(t, n, r, i) {
@@ -3358,20 +3356,20 @@ var io = (
3358
3356
  number: {},
3359
3357
  dateTime: {},
3360
3358
  pluralRules: {}
3361
- }, this.format = function(l) {
3362
- var u = o.formatToParts(l);
3363
- if (u.length === 1)
3364
- return u[0].value;
3365
- var f = u.reduce(function(b, m) {
3366
- return !b.length || m.type !== ie.literal || typeof b[b.length - 1] != "string" ? b.push(m.value) : b[b.length - 1] += m.value, b;
3359
+ }, this.format = function(c) {
3360
+ var l = o.formatToParts(c);
3361
+ if (l.length === 1)
3362
+ return l[0].value;
3363
+ var f = l.reduce(function(m, p) {
3364
+ return !m.length || p.type !== oe.literal || typeof m[m.length - 1] != "string" ? m.push(p.value) : m[m.length - 1] += p.value, m;
3367
3365
  }, []);
3368
3366
  return f.length <= 1 ? f[0] || "" : f;
3369
- }, this.formatToParts = function(l) {
3370
- return bt(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
3367
+ }, this.formatToParts = function(c) {
3368
+ return bt(o.ast, o.locales, o.formatters, o.formats, c, void 0, o.message);
3371
3369
  }, this.resolvedOptions = function() {
3372
- var l;
3370
+ var c;
3373
3371
  return {
3374
- locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3372
+ locale: ((c = o.resolvedLocale) === null || c === void 0 ? void 0 : c.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3375
3373
  };
3376
3374
  }, this.getAst = function() {
3377
3375
  return o.ast;
@@ -3380,13 +3378,13 @@ var io = (
3380
3378
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3381
3379
  var s = i || {};
3382
3380
  s.formatters;
3383
- var a = di(s, ["formatters"]);
3384
- this.ast = e.__parse(t, L(L({}, a), { locale: this.resolvedLocale }));
3381
+ var a = bi(s, ["formatters"]);
3382
+ this.ast = e.__parse(t, P(P({}, a), { locale: this.resolvedLocale }));
3385
3383
  } else
3386
3384
  this.ast = t;
3387
3385
  if (!Array.isArray(this.ast))
3388
3386
  throw new TypeError("A message must be provided as a String or AST.");
3389
- this.formats = no(e.formats, r), this.formatters = i && i.formatters || ro(this.formatterCache);
3387
+ this.formats = io(e.formats, r), this.formatters = i && i.formatters || oo(this.formatterCache);
3390
3388
  }
3391
3389
  return Object.defineProperty(e, "defaultLocale", {
3392
3390
  get: function() {
@@ -3399,7 +3397,7 @@ var io = (
3399
3397
  var n = Intl.NumberFormat.supportedLocalesOf(t);
3400
3398
  return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3401
3399
  }
3402
- }, e.__parse = Yi, e.formats = {
3400
+ }, e.__parse = Ji, e.formats = {
3403
3401
  number: {
3404
3402
  integer: {
3405
3403
  maximumFractionDigits: 0
@@ -3460,7 +3458,7 @@ var io = (
3460
3458
  }, e;
3461
3459
  }()
3462
3460
  );
3463
- function oo(e, t) {
3461
+ function so(e, t) {
3464
3462
  if (t == null)
3465
3463
  return;
3466
3464
  if (t in e)
@@ -3481,92 +3479,92 @@ function oo(e, t) {
3481
3479
  r = void 0;
3482
3480
  return r;
3483
3481
  }
3484
- const Ce = {}, ao = (e, t, n) => n && (t in Ce || (Ce[t] = {}), e in Ce[t] || (Ce[t][e] = n), n), ur = (e, t) => {
3482
+ const He = {}, lo = (e, t, n) => n && (t in He || (He[t] = {}), e in He[t] || (He[t][e] = n), n), cr = (e, t) => {
3485
3483
  if (t == null)
3486
3484
  return;
3487
- if (t in Ce && e in Ce[t])
3488
- return Ce[t][e];
3485
+ if (t in He && e in He[t])
3486
+ return He[t][e];
3489
3487
  const n = Tt(t);
3490
3488
  for (let r = 0; r < n.length; r++) {
3491
- const i = n[r], o = uo(i, e);
3489
+ const i = n[r], o = co(i, e);
3492
3490
  if (o)
3493
- return ao(e, t, o);
3491
+ return lo(e, t, o);
3494
3492
  }
3495
3493
  };
3496
- let an;
3494
+ let ln;
3497
3495
  const at = wt({});
3498
- function so(e) {
3499
- return an[e] || null;
3496
+ function uo(e) {
3497
+ return ln[e] || null;
3500
3498
  }
3501
- function lr(e) {
3502
- return e in an;
3499
+ function hr(e) {
3500
+ return e in ln;
3503
3501
  }
3504
- function uo(e, t) {
3505
- if (!lr(e))
3502
+ function co(e, t) {
3503
+ if (!hr(e))
3506
3504
  return null;
3507
- const n = so(e);
3508
- return oo(n, t);
3505
+ const n = uo(e);
3506
+ return so(n, t);
3509
3507
  }
3510
- function lo(e) {
3508
+ function ho(e) {
3511
3509
  if (e == null)
3512
3510
  return;
3513
3511
  const t = Tt(e);
3514
3512
  for (let n = 0; n < t.length; n++) {
3515
3513
  const r = t[n];
3516
- if (lr(r))
3514
+ if (hr(r))
3517
3515
  return r;
3518
3516
  }
3519
3517
  }
3520
- function cr(e, ...t) {
3521
- delete Ce[e], at.update((n) => (n[e] = fi.all([n[e] || {}, ...t]), n));
3518
+ function fr(e, ...t) {
3519
+ delete He[e], at.update((n) => (n[e] = mi.all([n[e] || {}, ...t]), n));
3522
3520
  }
3523
- We(
3521
+ ze(
3524
3522
  [at],
3525
3523
  ([e]) => Object.keys(e)
3526
3524
  );
3527
- at.subscribe((e) => an = e);
3525
+ at.subscribe((e) => ln = e);
3528
3526
  const gt = {};
3529
- function co(e, t) {
3527
+ function fo(e, t) {
3530
3528
  gt[e].delete(t), gt[e].size === 0 && delete gt[e];
3531
3529
  }
3532
- function hr(e) {
3530
+ function dr(e) {
3533
3531
  return gt[e];
3534
3532
  }
3535
- function ho(e) {
3533
+ function po(e) {
3536
3534
  return Tt(e).map((t) => {
3537
- const n = hr(t);
3535
+ const n = dr(t);
3538
3536
  return [t, n ? [...n] : []];
3539
3537
  }).filter(([, t]) => t.length > 0);
3540
3538
  }
3541
- function Jt(e) {
3539
+ function Kt(e) {
3542
3540
  return e == null ? !1 : Tt(e).some(
3543
3541
  (t) => {
3544
3542
  var n;
3545
- return (n = hr(t)) == null ? void 0 : n.size;
3543
+ return (n = dr(t)) == null ? void 0 : n.size;
3546
3544
  }
3547
3545
  );
3548
3546
  }
3549
- function fo(e, t) {
3547
+ function mo(e, t) {
3550
3548
  return Promise.all(
3551
- t.map((r) => (co(e, r), r().then((i) => i.default || i)))
3552
- ).then((r) => cr(e, ...r));
3549
+ t.map((r) => (fo(e, r), r().then((i) => i.default || i)))
3550
+ ).then((r) => fr(e, ...r));
3553
3551
  }
3554
3552
  const tt = {};
3555
- function fr(e) {
3556
- if (!Jt(e))
3553
+ function pr(e) {
3554
+ if (!Kt(e))
3557
3555
  return e in tt ? tt[e] : Promise.resolve();
3558
- const t = ho(e);
3556
+ const t = po(e);
3559
3557
  return tt[e] = Promise.all(
3560
3558
  t.map(
3561
- ([n, r]) => fo(n, r)
3559
+ ([n, r]) => mo(n, r)
3562
3560
  )
3563
3561
  ).then(() => {
3564
- if (Jt(e))
3565
- return fr(e);
3562
+ if (Kt(e))
3563
+ return pr(e);
3566
3564
  delete tt[e];
3567
3565
  }), tt[e];
3568
3566
  }
3569
- const po = {
3567
+ const bo = {
3570
3568
  number: {
3571
3569
  scientific: { notation: "scientific" },
3572
3570
  engineering: { notation: "engineering" },
@@ -3595,57 +3593,57 @@ const po = {
3595
3593
  timeZoneName: "short"
3596
3594
  }
3597
3595
  }
3598
- }, mo = {
3596
+ }, go = {
3599
3597
  fallbackLocale: null,
3600
3598
  loadingDelay: 200,
3601
- formats: po,
3599
+ formats: bo,
3602
3600
  warnOnMissingMessages: !0,
3603
3601
  handleMissingMessage: void 0,
3604
3602
  ignoreTag: !0
3605
- }, bo = mo;
3606
- function Xe() {
3607
- return bo;
3603
+ }, yo = go;
3604
+ function Ve() {
3605
+ return yo;
3608
3606
  }
3609
3607
  const Ut = wt(!1);
3610
- var go = Object.defineProperty, yo = Object.defineProperties, vo = Object.getOwnPropertyDescriptors, En = Object.getOwnPropertySymbols, _o = Object.prototype.hasOwnProperty, Eo = Object.prototype.propertyIsEnumerable, xn = (e, t, n) => t in e ? go(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, xo = (e, t) => {
3611
- for (var n in t)
3612
- _o.call(t, n) && xn(e, n, t[n]);
3613
- if (En)
3614
- for (var n of En(t))
3615
- Eo.call(t, n) && xn(e, n, t[n]);
3608
+ var vo = Object.defineProperty, _o = Object.defineProperties, Eo = Object.getOwnPropertyDescriptors, wn = Object.getOwnPropertySymbols, xo = Object.prototype.hasOwnProperty, wo = Object.prototype.propertyIsEnumerable, Sn = (e, t, n) => t in e ? vo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, So = (e, t) => {
3609
+ for (var n in t || (t = {}))
3610
+ xo.call(t, n) && Sn(e, n, t[n]);
3611
+ if (wn)
3612
+ for (var n of wn(t))
3613
+ wo.call(t, n) && Sn(e, n, t[n]);
3616
3614
  return e;
3617
- }, wo = (e, t) => yo(e, vo(t));
3618
- let Kt;
3615
+ }, To = (e, t) => _o(e, Eo(t));
3616
+ let en;
3619
3617
  const Et = wt(null);
3620
- function wn(e) {
3618
+ function Tn(e) {
3621
3619
  return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3622
3620
  }
3623
- function Tt(e, t = Xe().fallbackLocale) {
3624
- const n = wn(e);
3625
- return t ? [.../* @__PURE__ */ new Set([...n, ...wn(t)])] : n;
3621
+ function Tt(e, t = Ve().fallbackLocale) {
3622
+ const n = Tn(e);
3623
+ return t ? [.../* @__PURE__ */ new Set([...n, ...Tn(t)])] : n;
3626
3624
  }
3627
3625
  function Re() {
3628
- return Kt ?? void 0;
3626
+ return en ?? void 0;
3629
3627
  }
3630
3628
  Et.subscribe((e) => {
3631
- Kt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3629
+ en = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3632
3630
  });
3633
- const So = (e) => {
3634
- if (e && lo(e) && Jt(e)) {
3635
- const { loadingDelay: t } = Xe();
3631
+ const Bo = (e) => {
3632
+ if (e && ho(e) && Kt(e)) {
3633
+ const { loadingDelay: t } = Ve();
3636
3634
  let n;
3637
3635
  return typeof window < "u" && Re() != null && t ? n = window.setTimeout(
3638
3636
  () => Ut.set(!0),
3639
3637
  t
3640
- ) : Ut.set(!0), fr(e).then(() => {
3638
+ ) : Ut.set(!0), pr(e).then(() => {
3641
3639
  Et.set(e);
3642
3640
  }).finally(() => {
3643
3641
  clearTimeout(n), Ut.set(!1);
3644
3642
  });
3645
3643
  }
3646
3644
  return Et.set(e);
3647
- }, Ze = wo(xo({}, Et), {
3648
- set: So
3645
+ }, We = To(So({}, Et), {
3646
+ set: Bo
3649
3647
  }), Bt = (e) => {
3650
3648
  const t = /* @__PURE__ */ Object.create(null);
3651
3649
  return (r) => {
@@ -3653,120 +3651,120 @@ const So = (e) => {
3653
3651
  return i in t ? t[i] : t[i] = e(r);
3654
3652
  };
3655
3653
  };
3656
- var To = Object.defineProperty, xt = Object.getOwnPropertySymbols, dr = Object.prototype.hasOwnProperty, pr = Object.prototype.propertyIsEnumerable, Sn = (e, t, n) => t in e ? To(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, sn = (e, t) => {
3654
+ var Ao = Object.defineProperty, xt = Object.getOwnPropertySymbols, mr = Object.prototype.hasOwnProperty, br = Object.prototype.propertyIsEnumerable, Bn = (e, t, n) => t in e ? Ao(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, un = (e, t) => {
3657
3655
  for (var n in t || (t = {}))
3658
- dr.call(t, n) && Sn(e, n, t[n]);
3656
+ mr.call(t, n) && Bn(e, n, t[n]);
3659
3657
  if (xt)
3660
3658
  for (var n of xt(t))
3661
- pr.call(t, n) && Sn(e, n, t[n]);
3659
+ br.call(t, n) && Bn(e, n, t[n]);
3662
3660
  return e;
3663
- }, qe = (e, t) => {
3661
+ }, Ze = (e, t) => {
3664
3662
  var n = {};
3665
3663
  for (var r in e)
3666
- dr.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3664
+ mr.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3667
3665
  if (e != null && xt)
3668
3666
  for (var r of xt(e))
3669
- t.indexOf(r) < 0 && pr.call(e, r) && (n[r] = e[r]);
3667
+ t.indexOf(r) < 0 && br.call(e, r) && (n[r] = e[r]);
3670
3668
  return n;
3671
3669
  };
3672
3670
  const ot = (e, t) => {
3673
- const { formats: n } = Xe();
3671
+ const { formats: n } = Ve();
3674
3672
  if (e in n && t in n[e])
3675
3673
  return n[e][t];
3676
3674
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3677
- }, Bo = Bt(
3675
+ }, Co = Bt(
3678
3676
  (e) => {
3679
- var t = e, { locale: n, format: r } = t, i = qe(t, ["locale", "format"]);
3677
+ var t = e, { locale: n, format: r } = t, i = Ze(t, ["locale", "format"]);
3680
3678
  if (n == null)
3681
3679
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3682
3680
  return r && (i = ot("number", r)), new Intl.NumberFormat(n, i);
3683
3681
  }
3684
- ), Ao = Bt(
3682
+ ), Ho = Bt(
3685
3683
  (e) => {
3686
- var t = e, { locale: n, format: r } = t, i = qe(t, ["locale", "format"]);
3684
+ var t = e, { locale: n, format: r } = t, i = Ze(t, ["locale", "format"]);
3687
3685
  if (n == null)
3688
3686
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3689
3687
  return r ? i = ot("date", r) : Object.keys(i).length === 0 && (i = ot("date", "short")), new Intl.DateTimeFormat(n, i);
3690
3688
  }
3691
- ), Co = Bt(
3689
+ ), Oo = Bt(
3692
3690
  (e) => {
3693
- var t = e, { locale: n, format: r } = t, i = qe(t, ["locale", "format"]);
3691
+ var t = e, { locale: n, format: r } = t, i = Ze(t, ["locale", "format"]);
3694
3692
  if (n == null)
3695
3693
  throw new Error(
3696
3694
  '[svelte-i18n] A "locale" must be set to format time values'
3697
3695
  );
3698
3696
  return r ? i = ot("time", r) : Object.keys(i).length === 0 && (i = ot("time", "short")), new Intl.DateTimeFormat(n, i);
3699
3697
  }
3700
- ), Ho = (e = {}) => {
3698
+ ), Mo = (e = {}) => {
3701
3699
  var t = e, {
3702
3700
  locale: n = Re()
3703
- } = t, r = qe(t, [
3701
+ } = t, r = Ze(t, [
3704
3702
  "locale"
3705
3703
  ]);
3706
- return Bo(sn({ locale: n }, r));
3707
- }, Oo = (e = {}) => {
3704
+ return Co(un({ locale: n }, r));
3705
+ }, Ro = (e = {}) => {
3708
3706
  var t = e, {
3709
3707
  locale: n = Re()
3710
- } = t, r = qe(t, [
3708
+ } = t, r = Ze(t, [
3711
3709
  "locale"
3712
3710
  ]);
3713
- return Ao(sn({ locale: n }, r));
3714
- }, Mo = (e = {}) => {
3711
+ return Ho(un({ locale: n }, r));
3712
+ }, Lo = (e = {}) => {
3715
3713
  var t = e, {
3716
3714
  locale: n = Re()
3717
- } = t, r = qe(t, [
3715
+ } = t, r = Ze(t, [
3718
3716
  "locale"
3719
3717
  ]);
3720
- return Co(sn({ locale: n }, r));
3721
- }, Ro = Bt(
3718
+ return Oo(un({ locale: n }, r));
3719
+ }, Po = Bt(
3722
3720
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3723
- (e, t = Re()) => new io(e, t, Xe().formats, {
3724
- ignoreTag: Xe().ignoreTag
3721
+ (e, t = Re()) => new ao(e, t, Ve().formats, {
3722
+ ignoreTag: Ve().ignoreTag
3725
3723
  })
3726
- ), Lo = (e, t = {}) => {
3724
+ ), Io = (e, t = {}) => {
3727
3725
  var n, r, i, o;
3728
3726
  let s = t;
3729
3727
  typeof e == "object" && (s = e, e = s.id);
3730
3728
  const {
3731
3729
  values: a,
3732
- locale: l = Re(),
3733
- default: u
3730
+ locale: c = Re(),
3731
+ default: l
3734
3732
  } = s;
3735
- if (l == null)
3733
+ if (c == null)
3736
3734
  throw new Error(
3737
3735
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3738
3736
  );
3739
- let f = ur(e, l);
3737
+ let f = cr(e, c);
3740
3738
  if (!f)
3741
- f = (o = (i = (r = (n = Xe()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3739
+ f = (o = (i = (r = (n = Ve()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
3742
3740
  else if (typeof f != "string")
3743
3741
  return console.warn(
3744
3742
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3745
3743
  ), f;
3746
3744
  if (!a)
3747
3745
  return f;
3748
- let b = f;
3746
+ let m = f;
3749
3747
  try {
3750
- b = Ro(f, l).format(a);
3751
- } catch (m) {
3752
- m instanceof Error && console.warn(
3748
+ m = Po(f, c).format(a);
3749
+ } catch (p) {
3750
+ p instanceof Error && console.warn(
3753
3751
  `[svelte-i18n] Message "${e}" has syntax error:`,
3754
- m.message
3752
+ p.message
3755
3753
  );
3756
3754
  }
3757
- return b;
3758
- }, Po = (e, t) => Mo(t).format(e), No = (e, t) => Oo(t).format(e), Io = (e, t) => Ho(t).format(e), Do = (e, t = Re()) => ur(e, t), Uo = We([Ze, at], () => Lo);
3759
- We([Ze], () => Po);
3760
- We([Ze], () => No);
3761
- We([Ze], () => Io);
3762
- We([Ze, at], () => Do);
3763
- function Tn(e, t) {
3764
- cr(e, t);
3765
- }
3766
- function Fo(e) {
3767
- Ze.set(e);
3768
- }
3769
- const Bn = {
3755
+ return m;
3756
+ }, No = (e, t) => Lo(t).format(e), Do = (e, t) => Ro(t).format(e), Uo = (e, t) => Mo(t).format(e), Fo = (e, t = Re()) => cr(e, t), Go = ze([We, at], () => Io);
3757
+ ze([We], () => No);
3758
+ ze([We], () => Do);
3759
+ ze([We], () => Uo);
3760
+ ze([We, at], () => Fo);
3761
+ function An(e, t) {
3762
+ fr(e, t);
3763
+ }
3764
+ function jo(e) {
3765
+ We.set(e);
3766
+ }
3767
+ const Cn = {
3770
3768
  en: {
3771
3769
  Title: "Your Balance",
3772
3770
  Total: "Total Balance",
@@ -3966,7 +3964,7 @@ const Bn = {
3966
3964
  Loading: "Loading ..."
3967
3965
  }
3968
3966
  };
3969
- var en = { exports: {} };
3967
+ var tn = { exports: {} };
3970
3968
  /** @license
3971
3969
  * eventsource.js
3972
3970
  * Available under MIT License (MIT)
@@ -3974,35 +3972,35 @@ var en = { exports: {} };
3974
3972
  */
3975
3973
  (function(e, t) {
3976
3974
  (function(n) {
3977
- var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, s = n.XDomainRequest, a = n.ActiveXObject, l = n.EventSource, u = n.document, f = n.Promise, b = n.fetch, m = n.Response, w = n.TextDecoder, _ = n.TextEncoder, A = n.AbortController;
3978
- if (typeof window < "u" && typeof u < "u" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(h) {
3979
- u.readyState = "complete";
3975
+ var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, s = n.XDomainRequest, a = n.ActiveXObject, c = n.EventSource, l = n.document, f = n.Promise, m = n.fetch, p = n.Response, S = n.TextDecoder, E = n.TextEncoder, T = n.AbortController;
3976
+ if (typeof window < "u" && typeof l < "u" && !("readyState" in l) && l.body == null && (l.readyState = "loading", window.addEventListener("load", function(h) {
3977
+ l.readyState = "complete";
3980
3978
  }, !1)), o == null && a != null && (o = function() {
3981
3979
  return new a("Microsoft.XMLHTTP");
3982
3980
  }), Object.create == null && (Object.create = function(h) {
3983
- function y() {
3981
+ function v() {
3984
3982
  }
3985
- return y.prototype = h, new y();
3983
+ return v.prototype = h, new v();
3986
3984
  }), Date.now || (Date.now = function() {
3987
3985
  return (/* @__PURE__ */ new Date()).getTime();
3988
- }), A == null) {
3989
- var I = b;
3990
- b = function(h, y) {
3991
- var E = y.signal;
3992
- return I(h, { headers: y.headers, credentials: y.credentials, cache: y.cache }).then(function(g) {
3993
- var c = g.body.getReader();
3994
- return E._reader = c, E._aborted && E._reader.cancel(), {
3995
- status: g.status,
3996
- statusText: g.statusText,
3997
- headers: g.headers,
3986
+ }), T == null) {
3987
+ var N = m;
3988
+ m = function(h, v) {
3989
+ var w = v.signal;
3990
+ return N(h, { headers: v.headers, credentials: v.credentials, cache: v.cache }).then(function(b) {
3991
+ var A = b.body.getReader();
3992
+ return w._reader = A, w._aborted && w._reader.cancel(), {
3993
+ status: b.status,
3994
+ statusText: b.statusText,
3995
+ headers: b.headers,
3998
3996
  body: {
3999
3997
  getReader: function() {
4000
- return c;
3998
+ return A;
4001
3999
  }
4002
4000
  }
4003
4001
  };
4004
4002
  });
4005
- }, A = function() {
4003
+ }, T = function() {
4006
4004
  this.signal = {
4007
4005
  _reader: null,
4008
4006
  _aborted: !1
@@ -4015,413 +4013,413 @@ var en = { exports: {} };
4015
4013
  this.bitsNeeded = 0, this.codePoint = 0;
4016
4014
  }
4017
4015
  W.prototype.decode = function(h) {
4018
- function y(C, S, B) {
4019
- if (B === 1)
4020
- return C >= 128 >> S && C << S <= 2047;
4021
- if (B === 2)
4022
- return C >= 2048 >> S && C << S <= 55295 || C >= 57344 >> S && C << S <= 65535;
4023
- if (B === 3)
4024
- return C >= 65536 >> S && C << S <= 1114111;
4016
+ function v(B, C, y) {
4017
+ if (y === 1)
4018
+ return B >= 128 >> C && B << C <= 2047;
4019
+ if (y === 2)
4020
+ return B >= 2048 >> C && B << C <= 55295 || B >= 57344 >> C && B << C <= 65535;
4021
+ if (y === 3)
4022
+ return B >= 65536 >> C && B << C <= 1114111;
4025
4023
  throw new Error();
4026
4024
  }
4027
- function E(C, S) {
4028
- if (C === 6 * 1)
4029
- return S >> 6 > 15 ? 3 : S > 31 ? 2 : 1;
4030
- if (C === 6 * 2)
4031
- return S > 15 ? 3 : 2;
4032
- if (C === 6 * 3)
4025
+ function w(B, C) {
4026
+ if (B === 6 * 1)
4027
+ return C >> 6 > 15 ? 3 : C > 31 ? 2 : 1;
4028
+ if (B === 6 * 2)
4029
+ return C > 15 ? 3 : 2;
4030
+ if (B === 6 * 3)
4033
4031
  return 3;
4034
4032
  throw new Error();
4035
4033
  }
4036
- for (var g = 65533, c = "", d = this.bitsNeeded, p = this.codePoint, v = 0; v < h.length; v += 1) {
4037
- var T = h[v];
4038
- d !== 0 && (T < 128 || T > 191 || !y(p << 6 | T & 63, d - 6, E(d, p))) && (d = 0, p = g, c += String.fromCharCode(p)), d === 0 ? (T >= 0 && T <= 127 ? (d = 0, p = T) : T >= 192 && T <= 223 ? (d = 6 * 1, p = T & 31) : T >= 224 && T <= 239 ? (d = 6 * 2, p = T & 15) : T >= 240 && T <= 247 ? (d = 6 * 3, p = T & 7) : (d = 0, p = g), d !== 0 && !y(p, d, E(d, p)) && (d = 0, p = g)) : (d -= 6, p = p << 6 | T & 63), d === 0 && (p <= 65535 ? c += String.fromCharCode(p) : (c += String.fromCharCode(55296 + (p - 65535 - 1 >> 10)), c += String.fromCharCode(56320 + (p - 65535 - 1 & 1023))));
4034
+ for (var b = 65533, A = "", u = this.bitsNeeded, d = this.codePoint, _ = 0; _ < h.length; _ += 1) {
4035
+ var g = h[_];
4036
+ u !== 0 && (g < 128 || g > 191 || !v(d << 6 | g & 63, u - 6, w(u, d))) && (u = 0, d = b, A += String.fromCharCode(d)), u === 0 ? (g >= 0 && g <= 127 ? (u = 0, d = g) : g >= 192 && g <= 223 ? (u = 6 * 1, d = g & 31) : g >= 224 && g <= 239 ? (u = 6 * 2, d = g & 15) : g >= 240 && g <= 247 ? (u = 6 * 3, d = g & 7) : (u = 0, d = b), u !== 0 && !v(d, u, w(u, d)) && (u = 0, d = b)) : (u -= 6, d = d << 6 | g & 63), u === 0 && (d <= 65535 ? A += String.fromCharCode(d) : (A += String.fromCharCode(55296 + (d - 65535 - 1 >> 10)), A += String.fromCharCode(56320 + (d - 65535 - 1 & 1023))));
4039
4037
  }
4040
- return this.bitsNeeded = d, this.codePoint = p, c;
4038
+ return this.bitsNeeded = u, this.codePoint = d, A;
4041
4039
  };
4042
4040
  var V = function() {
4043
4041
  try {
4044
- return new w().decode(new _().encode("test"), { stream: !0 }) === "test";
4042
+ return new S().decode(new E().encode("test"), { stream: !0 }) === "test";
4045
4043
  } catch (h) {
4046
4044
  console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + h);
4047
4045
  }
4048
4046
  return !1;
4049
4047
  };
4050
- (w == null || _ == null || !V()) && (w = W);
4051
- var R = function() {
4048
+ (S == null || E == null || !V()) && (S = W);
4049
+ var L = function() {
4052
4050
  };
4053
- function D(h) {
4054
- this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = R, this.onload = R, this.onerror = R, this.onreadystatechange = R, this._contentType = "", this._xhr = h, this._sendTimeout = 0, this._abort = R;
4051
+ function U(h) {
4052
+ this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = L, this.onload = L, this.onerror = L, this.onreadystatechange = L, this._contentType = "", this._xhr = h, this._sendTimeout = 0, this._abort = L;
4055
4053
  }
4056
- D.prototype.open = function(h, y) {
4054
+ U.prototype.open = function(h, v) {
4057
4055
  this._abort(!0);
4058
- var E = this, g = this._xhr, c = 1, d = 0;
4059
- this._abort = function(B) {
4060
- E._sendTimeout !== 0 && (i(E._sendTimeout), E._sendTimeout = 0), (c === 1 || c === 2 || c === 3) && (c = 4, g.onload = R, g.onerror = R, g.onabort = R, g.onprogress = R, g.onreadystatechange = R, g.abort(), d !== 0 && (i(d), d = 0), B || (E.readyState = 4, E.onabort(null), E.onreadystatechange())), c = 0;
4056
+ var w = this, b = this._xhr, A = 1, u = 0;
4057
+ this._abort = function(y) {
4058
+ w._sendTimeout !== 0 && (i(w._sendTimeout), w._sendTimeout = 0), (A === 1 || A === 2 || A === 3) && (A = 4, b.onload = L, b.onerror = L, b.onabort = L, b.onprogress = L, b.onreadystatechange = L, b.abort(), u !== 0 && (i(u), u = 0), y || (w.readyState = 4, w.onabort(null), w.onreadystatechange())), A = 0;
4061
4059
  };
4062
- var p = function() {
4063
- if (c === 1) {
4064
- var B = 0, N = "", ee = void 0;
4065
- if ("contentType" in g)
4066
- B = 200, N = "OK", ee = g.contentType;
4060
+ var d = function() {
4061
+ if (A === 1) {
4062
+ var y = 0, H = "", J = void 0;
4063
+ if ("contentType" in b)
4064
+ y = 200, H = "OK", J = b.contentType;
4067
4065
  else
4068
4066
  try {
4069
- B = g.status, N = g.statusText, ee = g.getResponseHeader("Content-Type");
4067
+ y = b.status, H = b.statusText, J = b.getResponseHeader("Content-Type");
4070
4068
  } catch {
4071
- B = 0, N = "", ee = void 0;
4069
+ y = 0, H = "", J = void 0;
4072
4070
  }
4073
- B !== 0 && (c = 2, E.readyState = 2, E.status = B, E.statusText = N, E._contentType = ee, E.onreadystatechange());
4071
+ y !== 0 && (A = 2, w.readyState = 2, w.status = y, w.statusText = H, w._contentType = J, w.onreadystatechange());
4074
4072
  }
4075
- }, v = function() {
4076
- if (p(), c === 2 || c === 3) {
4077
- c = 3;
4078
- var B = "";
4073
+ }, _ = function() {
4074
+ if (d(), A === 2 || A === 3) {
4075
+ A = 3;
4076
+ var y = "";
4079
4077
  try {
4080
- B = g.responseText;
4078
+ y = b.responseText;
4081
4079
  } catch {
4082
4080
  }
4083
- E.readyState = 3, E.responseText = B, E.onprogress();
4081
+ w.readyState = 3, w.responseText = y, w.onprogress();
4084
4082
  }
4085
- }, T = function(B, N) {
4086
- if ((N == null || N.preventDefault == null) && (N = {
4087
- preventDefault: R
4088
- }), v(), c === 1 || c === 2 || c === 3) {
4089
- if (c = 4, d !== 0 && (i(d), d = 0), E.readyState = 4, B === "load")
4090
- E.onload(N);
4091
- else if (B === "error")
4092
- E.onerror(N);
4093
- else if (B === "abort")
4094
- E.onabort(N);
4083
+ }, g = function(y, H) {
4084
+ if ((H == null || H.preventDefault == null) && (H = {
4085
+ preventDefault: L
4086
+ }), _(), A === 1 || A === 2 || A === 3) {
4087
+ if (A = 4, u !== 0 && (i(u), u = 0), w.readyState = 4, y === "load")
4088
+ w.onload(H);
4089
+ else if (y === "error")
4090
+ w.onerror(H);
4091
+ else if (y === "abort")
4092
+ w.onabort(H);
4095
4093
  else
4096
4094
  throw new TypeError();
4097
- E.onreadystatechange();
4095
+ w.onreadystatechange();
4098
4096
  }
4099
- }, C = function(B) {
4100
- g != null && (g.readyState === 4 ? (!("onload" in g) || !("onerror" in g) || !("onabort" in g)) && T(g.responseText === "" ? "error" : "load", B) : g.readyState === 3 ? "onprogress" in g || v() : g.readyState === 2 && p());
4101
- }, S = function() {
4102
- d = r(function() {
4103
- S();
4104
- }, 500), g.readyState === 3 && v();
4097
+ }, B = function(y) {
4098
+ b != null && (b.readyState === 4 ? (!("onload" in b) || !("onerror" in b) || !("onabort" in b)) && g(b.responseText === "" ? "error" : "load", y) : b.readyState === 3 ? "onprogress" in b || _() : b.readyState === 2 && d());
4099
+ }, C = function() {
4100
+ u = r(function() {
4101
+ C();
4102
+ }, 500), b.readyState === 3 && _();
4105
4103
  };
4106
- "onload" in g && (g.onload = function(B) {
4107
- T("load", B);
4108
- }), "onerror" in g && (g.onerror = function(B) {
4109
- T("error", B);
4110
- }), "onabort" in g && (g.onabort = function(B) {
4111
- T("abort", B);
4112
- }), "onprogress" in g && (g.onprogress = v), "onreadystatechange" in g && (g.onreadystatechange = function(B) {
4113
- C(B);
4114
- }), ("contentType" in g || !("ontimeout" in o.prototype)) && (y += (y.indexOf("?") === -1 ? "?" : "&") + "padding=true"), g.open(h, y, !0), "readyState" in g && (d = r(function() {
4115
- S();
4104
+ "onload" in b && (b.onload = function(y) {
4105
+ g("load", y);
4106
+ }), "onerror" in b && (b.onerror = function(y) {
4107
+ g("error", y);
4108
+ }), "onabort" in b && (b.onabort = function(y) {
4109
+ g("abort", y);
4110
+ }), "onprogress" in b && (b.onprogress = _), "onreadystatechange" in b && (b.onreadystatechange = function(y) {
4111
+ B(y);
4112
+ }), ("contentType" in b || !("ontimeout" in o.prototype)) && (v += (v.indexOf("?") === -1 ? "?" : "&") + "padding=true"), b.open(h, v, !0), "readyState" in b && (u = r(function() {
4113
+ C();
4116
4114
  }, 0));
4117
- }, D.prototype.abort = function() {
4115
+ }, U.prototype.abort = function() {
4118
4116
  this._abort(!1);
4119
- }, D.prototype.getResponseHeader = function(h) {
4117
+ }, U.prototype.getResponseHeader = function(h) {
4120
4118
  return this._contentType;
4121
- }, D.prototype.setRequestHeader = function(h, y) {
4122
- var E = this._xhr;
4123
- "setRequestHeader" in E && E.setRequestHeader(h, y);
4124
- }, D.prototype.getAllResponseHeaders = function() {
4119
+ }, U.prototype.setRequestHeader = function(h, v) {
4120
+ var w = this._xhr;
4121
+ "setRequestHeader" in w && w.setRequestHeader(h, v);
4122
+ }, U.prototype.getAllResponseHeaders = function() {
4125
4123
  return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
4126
- }, D.prototype.send = function() {
4127
- if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && u != null && u.readyState != null && u.readyState !== "complete") {
4124
+ }, U.prototype.send = function() {
4125
+ if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && l != null && l.readyState != null && l.readyState !== "complete") {
4128
4126
  var h = this;
4129
4127
  h._sendTimeout = r(function() {
4130
4128
  h._sendTimeout = 0, h.send();
4131
4129
  }, 4);
4132
4130
  return;
4133
4131
  }
4134
- var y = this._xhr;
4135
- "withCredentials" in y && (y.withCredentials = this.withCredentials);
4132
+ var v = this._xhr;
4133
+ "withCredentials" in v && (v.withCredentials = this.withCredentials);
4136
4134
  try {
4137
- y.send(void 0);
4138
- } catch (E) {
4139
- throw E;
4135
+ v.send(void 0);
4136
+ } catch (w) {
4137
+ throw w;
4140
4138
  }
4141
4139
  };
4142
- function k(h) {
4143
- return h.replace(/[A-Z]/g, function(y) {
4144
- return String.fromCharCode(y.charCodeAt(0) + 32);
4140
+ function Q(h) {
4141
+ return h.replace(/[A-Z]/g, function(v) {
4142
+ return String.fromCharCode(v.charCodeAt(0) + 32);
4145
4143
  });
4146
4144
  }
4147
- function oe(h) {
4148
- for (var y = /* @__PURE__ */ Object.create(null), E = h.split(`\r
4149
- `), g = 0; g < E.length; g += 1) {
4150
- var c = E[g], d = c.split(": "), p = d.shift(), v = d.join(": ");
4151
- y[k(p)] = v;
4145
+ function Z(h) {
4146
+ for (var v = /* @__PURE__ */ Object.create(null), w = h.split(`\r
4147
+ `), b = 0; b < w.length; b += 1) {
4148
+ var A = w[b], u = A.split(": "), d = u.shift(), _ = u.join(": ");
4149
+ v[Q(d)] = _;
4152
4150
  }
4153
- this._map = y;
4151
+ this._map = v;
4154
4152
  }
4155
- oe.prototype.get = function(h) {
4156
- return this._map[k(h)];
4153
+ Z.prototype.get = function(h) {
4154
+ return this._map[Q(h)];
4157
4155
  }, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
4158
- function Z() {
4156
+ function ee() {
4159
4157
  }
4160
- Z.prototype.open = function(h, y, E, g, c, d, p) {
4161
- h.open("GET", c);
4162
- var v = 0;
4158
+ ee.prototype.open = function(h, v, w, b, A, u, d) {
4159
+ h.open("GET", A);
4160
+ var _ = 0;
4163
4161
  h.onprogress = function() {
4164
- var C = h.responseText, S = C.slice(v);
4165
- v += S.length, E(S);
4166
- }, h.onerror = function(C) {
4167
- C.preventDefault(), g(new Error("NetworkError"));
4162
+ var B = h.responseText, C = B.slice(_);
4163
+ _ += C.length, w(C);
4164
+ }, h.onerror = function(B) {
4165
+ B.preventDefault(), b(new Error("NetworkError"));
4168
4166
  }, h.onload = function() {
4169
- g(null);
4167
+ b(null);
4170
4168
  }, h.onabort = function() {
4171
- g(null);
4169
+ b(null);
4172
4170
  }, h.onreadystatechange = function() {
4173
4171
  if (h.readyState === o.HEADERS_RECEIVED) {
4174
- var C = h.status, S = h.statusText, B = h.getResponseHeader("Content-Type"), N = h.getAllResponseHeaders();
4175
- y(C, S, B, new oe(N));
4172
+ var B = h.status, C = h.statusText, y = h.getResponseHeader("Content-Type"), H = h.getAllResponseHeaders();
4173
+ v(B, C, y, new Z(H));
4176
4174
  }
4177
- }, h.withCredentials = d;
4178
- for (var T in p)
4179
- Object.prototype.hasOwnProperty.call(p, T) && h.setRequestHeader(T, p[T]);
4175
+ }, h.withCredentials = u;
4176
+ for (var g in d)
4177
+ Object.prototype.hasOwnProperty.call(d, g) && h.setRequestHeader(g, d[g]);
4180
4178
  return h.send(), h;
4181
4179
  };
4182
- function $(h) {
4180
+ function F(h) {
4183
4181
  this._headers = h;
4184
4182
  }
4185
- $.prototype.get = function(h) {
4183
+ F.prototype.get = function(h) {
4186
4184
  return this._headers.get(h);
4187
4185
  };
4188
- function U() {
4186
+ function D() {
4189
4187
  }
4190
- U.prototype.open = function(h, y, E, g, c, d, p) {
4191
- var v = null, T = new A(), C = T.signal, S = new w();
4192
- return b(c, {
4193
- headers: p,
4194
- credentials: d ? "include" : "same-origin",
4195
- signal: C,
4188
+ D.prototype.open = function(h, v, w, b, A, u, d) {
4189
+ var _ = null, g = new T(), B = g.signal, C = new S();
4190
+ return m(A, {
4191
+ headers: d,
4192
+ credentials: u ? "include" : "same-origin",
4193
+ signal: B,
4196
4194
  cache: "no-store"
4197
- }).then(function(B) {
4198
- return v = B.body.getReader(), y(B.status, B.statusText, B.headers.get("Content-Type"), new $(B.headers)), new f(function(N, ee) {
4199
- var Ae = function() {
4200
- v.read().then(function(X) {
4201
- if (X.done)
4202
- N(void 0);
4195
+ }).then(function(y) {
4196
+ return _ = y.body.getReader(), v(y.status, y.statusText, y.headers.get("Content-Type"), new F(y.headers)), new f(function(H, J) {
4197
+ var de = function() {
4198
+ _.read().then(function(ne) {
4199
+ if (ne.done)
4200
+ H(void 0);
4203
4201
  else {
4204
- var te = S.decode(X.value, { stream: !0 });
4205
- E(te), Ae();
4202
+ var $ = C.decode(ne.value, { stream: !0 });
4203
+ w($), de();
4206
4204
  }
4207
- }).catch(function(X) {
4208
- ee(X);
4205
+ }).catch(function(ne) {
4206
+ J(ne);
4209
4207
  });
4210
4208
  };
4211
- Ae();
4209
+ de();
4212
4210
  });
4213
- }).catch(function(B) {
4214
- if (B.name !== "AbortError")
4215
- return B;
4216
- }).then(function(B) {
4217
- g(B);
4211
+ }).catch(function(y) {
4212
+ if (y.name !== "AbortError")
4213
+ return y;
4214
+ }).then(function(y) {
4215
+ b(y);
4218
4216
  }), {
4219
4217
  abort: function() {
4220
- v?.cancel(), T.abort();
4218
+ _?.cancel(), g.abort();
4221
4219
  }
4222
4220
  };
4223
4221
  };
4224
- function q() {
4222
+ function X() {
4225
4223
  this._listeners = /* @__PURE__ */ Object.create(null);
4226
4224
  }
4227
- function F(h) {
4225
+ function k(h) {
4228
4226
  r(function() {
4229
4227
  throw h;
4230
4228
  }, 0);
4231
4229
  }
4232
- q.prototype.dispatchEvent = function(h) {
4230
+ X.prototype.dispatchEvent = function(h) {
4233
4231
  h.target = this;
4234
- var y = this._listeners[h.type];
4235
- if (y != null)
4236
- for (var E = y.length, g = 0; g < E; g += 1) {
4237
- var c = y[g];
4232
+ var v = this._listeners[h.type];
4233
+ if (v != null)
4234
+ for (var w = v.length, b = 0; b < w; b += 1) {
4235
+ var A = v[b];
4238
4236
  try {
4239
- typeof c.handleEvent == "function" ? c.handleEvent(h) : c.call(this, h);
4240
- } catch (d) {
4241
- F(d);
4237
+ typeof A.handleEvent == "function" ? A.handleEvent(h) : A.call(this, h);
4238
+ } catch (u) {
4239
+ k(u);
4242
4240
  }
4243
4241
  }
4244
- }, q.prototype.addEventListener = function(h, y) {
4242
+ }, X.prototype.addEventListener = function(h, v) {
4245
4243
  h = String(h);
4246
- var E = this._listeners, g = E[h];
4247
- g == null && (g = [], E[h] = g);
4248
- for (var c = !1, d = 0; d < g.length; d += 1)
4249
- g[d] === y && (c = !0);
4250
- c || g.push(y);
4251
- }, q.prototype.removeEventListener = function(h, y) {
4244
+ var w = this._listeners, b = w[h];
4245
+ b == null && (b = [], w[h] = b);
4246
+ for (var A = !1, u = 0; u < b.length; u += 1)
4247
+ b[u] === v && (A = !0);
4248
+ A || b.push(v);
4249
+ }, X.prototype.removeEventListener = function(h, v) {
4252
4250
  h = String(h);
4253
- var E = this._listeners, g = E[h];
4254
- if (g != null) {
4255
- for (var c = [], d = 0; d < g.length; d += 1)
4256
- g[d] !== y && c.push(g[d]);
4257
- c.length === 0 ? delete E[h] : E[h] = c;
4251
+ var w = this._listeners, b = w[h];
4252
+ if (b != null) {
4253
+ for (var A = [], u = 0; u < b.length; u += 1)
4254
+ b[u] !== v && A.push(b[u]);
4255
+ A.length === 0 ? delete w[h] : w[h] = A;
4258
4256
  }
4259
4257
  };
4260
- function K(h) {
4258
+ function te(h) {
4261
4259
  this.type = h, this.target = void 0;
4262
4260
  }
4263
- function he(h, y) {
4264
- K.call(this, h), this.data = y.data, this.lastEventId = y.lastEventId;
4261
+ function ye(h, v) {
4262
+ te.call(this, h), this.data = v.data, this.lastEventId = v.lastEventId;
4265
4263
  }
4266
- he.prototype = Object.create(K.prototype);
4267
- function ge(h, y) {
4268
- K.call(this, h), this.status = y.status, this.statusText = y.statusText, this.headers = y.headers;
4264
+ ye.prototype = Object.create(te.prototype);
4265
+ function ce(h, v) {
4266
+ te.call(this, h), this.status = v.status, this.statusText = v.statusText, this.headers = v.headers;
4269
4267
  }
4270
- ge.prototype = Object.create(K.prototype);
4271
- function x(h, y) {
4272
- K.call(this, h), this.error = y.error;
4268
+ ce.prototype = Object.create(te.prototype);
4269
+ function Ae(h, v) {
4270
+ te.call(this, h), this.error = v.error;
4273
4271
  }
4274
- x.prototype = Object.create(K.prototype);
4275
- var ye = -1, pe = 0, le = 1, He = 2, Ye = -1, me = 0, Qe = 1, Le = 2, st = 3, Ct = /^text\/event\-stream(;.*)?$/i, Je = 1e3, ut = 18e6, Ke = function(h, y) {
4276
- var E = h == null ? y : parseInt(h, 10);
4277
- return E !== E && (E = y), Pe(E);
4278
- }, Pe = function(h) {
4279
- return Math.min(Math.max(h, Je), ut);
4280
- }, Be = function(h, y, E) {
4272
+ Ae.prototype = Object.create(te.prototype);
4273
+ var x = -1, ae = 0, Ce = 1, fe = 2, qe = -1, be = 0, Ye = 1, st = 2, Qe = 3, lt = /^text\/event\-stream(;.*)?$/i, Ct = 1e3, Je = 18e6, Le = function(h, v) {
4274
+ var w = h == null ? v : parseInt(h, 10);
4275
+ return w !== w && (w = v), Ke(w);
4276
+ }, Ke = function(h) {
4277
+ return Math.min(Math.max(h, Ct), Je);
4278
+ }, ve = function(h, v, w) {
4281
4279
  try {
4282
- typeof y == "function" && y.call(h, E);
4283
- } catch (g) {
4284
- F(g);
4280
+ typeof v == "function" && v.call(h, w);
4281
+ } catch (b) {
4282
+ k(b);
4285
4283
  }
4286
4284
  };
4287
- function ae(h, y) {
4288
- q.call(this), y = y || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, Ot(this, h, y);
4285
+ function se(h, v) {
4286
+ X.call(this), v = v || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, ut(this, h, v);
4289
4287
  }
4290
4288
  function Ht() {
4291
4289
  return o != null && "withCredentials" in o.prototype || s == null ? new o() : new s();
4292
4290
  }
4293
- var lt = b != null && m != null && "body" in m.prototype;
4294
- function Ot(h, y, E) {
4295
- y = String(y);
4296
- var g = !!E.withCredentials, c = E.lastEventIdQueryParameterName || "lastEventId", d = Pe(1e3), p = Ke(E.heartbeatTimeout, 45e3), v = "", T = d, C = !1, S = 0, B = E.headers || {}, N = E.Transport, ee = lt && N == null ? void 0 : new D(N != null ? new N() : Ht()), Ae = N != null && typeof N != "string" ? new N() : ee == null ? new U() : new Z(), X = void 0, te = 0, fe = ye, Ne = "", ht = "", ve = "", ft = "", ne = me, Mt = 0, Oe = 0, Er = function(Y, z, se, ue) {
4297
- if (fe === pe)
4298
- if (Y === 200 && se != null && Ct.test(se)) {
4299
- fe = le, C = Date.now(), T = d, h.readyState = le;
4300
- var re = new ge("open", {
4301
- status: Y,
4291
+ var Ot = m != null && p != null && "body" in p.prototype;
4292
+ function ut(h, v, w) {
4293
+ v = String(v);
4294
+ var b = !!w.withCredentials, A = w.lastEventIdQueryParameterName || "lastEventId", u = Ke(1e3), d = Le(w.heartbeatTimeout, 45e3), _ = "", g = u, B = !1, C = 0, y = w.headers || {}, H = w.Transport, J = Ot && H == null ? void 0 : new U(H != null ? new H() : Ht()), de = H != null && typeof H != "string" ? new H() : J == null ? new D() : new ee(), ne = void 0, $ = 0, pe = x, Pe = "", ht = "", _e = "", ft = "", re = be, Mt = 0, Oe = 0, Sr = function(q, z, le, ue) {
4295
+ if (pe === ae)
4296
+ if (q === 200 && le != null && lt.test(le)) {
4297
+ pe = Ce, B = Date.now(), g = u, h.readyState = Ce;
4298
+ var ie = new ce("open", {
4299
+ status: q,
4302
4300
  statusText: z,
4303
4301
  headers: ue
4304
4302
  });
4305
- h.dispatchEvent(re), Be(h, h.onopen, re);
4303
+ h.dispatchEvent(ie), ve(h, h.onopen, ie);
4306
4304
  } else {
4307
- var J = "";
4308
- Y !== 200 ? (z && (z = z.replace(/\s+/g, " ")), J = "EventSource's response has a status " + Y + " " + z + " that is not 200. Aborting the connection.") : J = "EventSource's response has a Content-Type specifying an unsupported type: " + (se == null ? "-" : se.replace(/\s+/g, " ")) + ". Aborting the connection.", Rt();
4309
- var re = new ge("error", {
4310
- status: Y,
4305
+ var K = "";
4306
+ q !== 200 ? (z && (z = z.replace(/\s+/g, " ")), K = "EventSource's response has a status " + q + " " + z + " that is not 200. Aborting the connection.") : K = "EventSource's response has a Content-Type specifying an unsupported type: " + (le == null ? "-" : le.replace(/\s+/g, " ")) + ". Aborting the connection.", Rt();
4307
+ var ie = new ce("error", {
4308
+ status: q,
4311
4309
  statusText: z,
4312
4310
  headers: ue
4313
4311
  });
4314
- h.dispatchEvent(re), Be(h, h.onerror, re), console.error(J);
4312
+ h.dispatchEvent(ie), ve(h, h.onerror, ie), console.error(K);
4315
4313
  }
4316
- }, xr = function(Y) {
4317
- if (fe === le) {
4318
- for (var z = -1, se = 0; se < Y.length; se += 1) {
4319
- var ue = Y.charCodeAt(se);
4320
- (ue === 10 || ue === 13) && (z = se);
4314
+ }, Tr = function(q) {
4315
+ if (pe === Ce) {
4316
+ for (var z = -1, le = 0; le < q.length; le += 1) {
4317
+ var ue = q.charCodeAt(le);
4318
+ (ue === 10 || ue === 13) && (z = le);
4321
4319
  }
4322
- var re = (z !== -1 ? ft : "") + Y.slice(0, z + 1);
4323
- ft = (z === -1 ? ft : "") + Y.slice(z + 1), Y !== "" && (C = Date.now(), S += Y.length);
4324
- for (var J = 0; J < re.length; J += 1) {
4325
- var ue = re.charCodeAt(J);
4326
- if (ne === Ye && ue === 10)
4327
- ne = me;
4328
- else if (ne === Ye && (ne = me), ue === 13 || ue === 10) {
4329
- if (ne !== me) {
4330
- ne === Qe && (Oe = J + 1);
4331
- var _e = re.slice(Mt, Oe - 1), Ee = re.slice(Oe + (Oe < J && re.charCodeAt(Oe) === 32 ? 1 : 0), J);
4332
- _e === "data" ? (Ne += `
4333
- `, Ne += Ee) : _e === "id" ? ht = Ee : _e === "event" ? ve = Ee : _e === "retry" ? (d = Ke(Ee, d), T = d) : _e === "heartbeatTimeout" && (p = Ke(Ee, p), te !== 0 && (i(te), te = r(function() {
4320
+ var ie = (z !== -1 ? ft : "") + q.slice(0, z + 1);
4321
+ ft = (z === -1 ? ft : "") + q.slice(z + 1), q !== "" && (B = Date.now(), C += q.length);
4322
+ for (var K = 0; K < ie.length; K += 1) {
4323
+ var ue = ie.charCodeAt(K);
4324
+ if (re === qe && ue === 10)
4325
+ re = be;
4326
+ else if (re === qe && (re = be), ue === 13 || ue === 10) {
4327
+ if (re !== be) {
4328
+ re === Ye && (Oe = K + 1);
4329
+ var Ee = ie.slice(Mt, Oe - 1), xe = ie.slice(Oe + (Oe < K && ie.charCodeAt(Oe) === 32 ? 1 : 0), K);
4330
+ Ee === "data" ? (Pe += `
4331
+ `, Pe += xe) : Ee === "id" ? ht = xe : Ee === "event" ? _e = xe : Ee === "retry" ? (u = Le(xe, u), g = u) : Ee === "heartbeatTimeout" && (d = Le(xe, d), $ !== 0 && (i($), $ = r(function() {
4334
4332
  et();
4335
- }, p)));
4333
+ }, d)));
4336
4334
  }
4337
- if (ne === me) {
4338
- if (Ne !== "") {
4339
- v = ht, ve === "" && (ve = "message");
4340
- var Ie = new he(ve, {
4341
- data: Ne.slice(1),
4335
+ if (re === be) {
4336
+ if (Pe !== "") {
4337
+ _ = ht, _e === "" && (_e = "message");
4338
+ var Ie = new ye(_e, {
4339
+ data: Pe.slice(1),
4342
4340
  lastEventId: ht
4343
4341
  });
4344
- if (h.dispatchEvent(Ie), ve === "open" ? Be(h, h.onopen, Ie) : ve === "message" ? Be(h, h.onmessage, Ie) : ve === "error" && Be(h, h.onerror, Ie), fe === He)
4342
+ if (h.dispatchEvent(Ie), _e === "open" ? ve(h, h.onopen, Ie) : _e === "message" ? ve(h, h.onmessage, Ie) : _e === "error" && ve(h, h.onerror, Ie), pe === fe)
4345
4343
  return;
4346
4344
  }
4347
- Ne = "", ve = "";
4345
+ Pe = "", _e = "";
4348
4346
  }
4349
- ne = ue === 13 ? Ye : me;
4347
+ re = ue === 13 ? qe : be;
4350
4348
  } else
4351
- ne === me && (Mt = J, ne = Qe), ne === Qe ? ue === 58 && (Oe = J + 1, ne = Le) : ne === Le && (ne = st);
4349
+ re === be && (Mt = K, re = Ye), re === Ye ? ue === 58 && (Oe = K + 1, re = st) : re === st && (re = Qe);
4352
4350
  }
4353
4351
  }
4354
- }, un = function(Y) {
4355
- if (fe === le || fe === pe) {
4356
- fe = ye, te !== 0 && (i(te), te = 0), te = r(function() {
4352
+ }, cn = function(q) {
4353
+ if (pe === Ce || pe === ae) {
4354
+ pe = x, $ !== 0 && (i($), $ = 0), $ = r(function() {
4357
4355
  et();
4358
- }, T), T = Pe(Math.min(d * 16, T * 2)), h.readyState = pe;
4359
- var z = new x("error", { error: Y });
4360
- h.dispatchEvent(z), Be(h, h.onerror, z), Y != null && console.error(Y);
4356
+ }, g), g = Ke(Math.min(u * 16, g * 2)), h.readyState = ae;
4357
+ var z = new Ae("error", { error: q });
4358
+ h.dispatchEvent(z), ve(h, h.onerror, z), q != null && console.error(q);
4361
4359
  }
4362
4360
  }, Rt = function() {
4363
- fe = He, X != null && (X.abort(), X = void 0), te !== 0 && (i(te), te = 0), h.readyState = He;
4361
+ pe = fe, ne != null && (ne.abort(), ne = void 0), $ !== 0 && (i($), $ = 0), h.readyState = fe;
4364
4362
  }, et = function() {
4365
- if (te = 0, fe !== ye) {
4366
- if (!C && X != null)
4367
- un(new Error("No activity within " + p + " milliseconds. " + (fe === pe ? "No response received." : S + " chars received.") + " Reconnecting.")), X != null && (X.abort(), X = void 0);
4363
+ if ($ = 0, pe !== x) {
4364
+ if (!B && ne != null)
4365
+ cn(new Error("No activity within " + d + " milliseconds. " + (pe === ae ? "No response received." : C + " chars received.") + " Reconnecting.")), ne != null && (ne.abort(), ne = void 0);
4368
4366
  else {
4369
- var Y = Math.max((C || Date.now()) + p - Date.now(), 1);
4370
- C = !1, te = r(function() {
4367
+ var q = Math.max((B || Date.now()) + d - Date.now(), 1);
4368
+ B = !1, $ = r(function() {
4371
4369
  et();
4372
- }, Y);
4370
+ }, q);
4373
4371
  }
4374
4372
  return;
4375
4373
  }
4376
- C = !1, S = 0, te = r(function() {
4374
+ B = !1, C = 0, $ = r(function() {
4377
4375
  et();
4378
- }, p), fe = pe, Ne = "", ve = "", ht = v, ft = "", Mt = 0, Oe = 0, ne = me;
4379
- var z = y;
4380
- if (y.slice(0, 5) !== "data:" && y.slice(0, 5) !== "blob:" && v !== "") {
4381
- var se = y.indexOf("?");
4382
- z = se === -1 ? y : y.slice(0, se + 1) + y.slice(se + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Ee, Ie) {
4383
- return Ie === c ? "" : Ee;
4384
- }), z += (y.indexOf("?") === -1 ? "?" : "&") + c + "=" + encodeURIComponent(v);
4376
+ }, d), pe = ae, Pe = "", _e = "", ht = _, ft = "", Mt = 0, Oe = 0, re = be;
4377
+ var z = v;
4378
+ if (v.slice(0, 5) !== "data:" && v.slice(0, 5) !== "blob:" && _ !== "") {
4379
+ var le = v.indexOf("?");
4380
+ z = le === -1 ? v : v.slice(0, le + 1) + v.slice(le + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(xe, Ie) {
4381
+ return Ie === A ? "" : xe;
4382
+ }), z += (v.indexOf("?") === -1 ? "?" : "&") + A + "=" + encodeURIComponent(_);
4385
4383
  }
4386
- var ue = h.withCredentials, re = {};
4387
- re.Accept = "text/event-stream";
4388
- var J = h.headers;
4389
- if (J != null)
4390
- for (var _e in J)
4391
- Object.prototype.hasOwnProperty.call(J, _e) && (re[_e] = J[_e]);
4384
+ var ue = h.withCredentials, ie = {};
4385
+ ie.Accept = "text/event-stream";
4386
+ var K = h.headers;
4387
+ if (K != null)
4388
+ for (var Ee in K)
4389
+ Object.prototype.hasOwnProperty.call(K, Ee) && (ie[Ee] = K[Ee]);
4392
4390
  try {
4393
- X = Ae.open(ee, Er, xr, un, z, ue, re);
4394
- } catch (Ee) {
4395
- throw Rt(), Ee;
4391
+ ne = de.open(J, Sr, Tr, cn, z, ue, ie);
4392
+ } catch (xe) {
4393
+ throw Rt(), xe;
4396
4394
  }
4397
4395
  };
4398
- h.url = y, h.readyState = pe, h.withCredentials = g, h.headers = B, h._close = Rt, et();
4396
+ h.url = v, h.readyState = ae, h.withCredentials = b, h.headers = y, h._close = Rt, et();
4399
4397
  }
4400
- ae.prototype = Object.create(q.prototype), ae.prototype.CONNECTING = pe, ae.prototype.OPEN = le, ae.prototype.CLOSED = He, ae.prototype.close = function() {
4398
+ se.prototype = Object.create(X.prototype), se.prototype.CONNECTING = ae, se.prototype.OPEN = Ce, se.prototype.CLOSED = fe, se.prototype.close = function() {
4401
4399
  this._close();
4402
- }, ae.CONNECTING = pe, ae.OPEN = le, ae.CLOSED = He, ae.prototype.withCredentials = void 0;
4403
- var ct = l;
4404
- o != null && (l == null || !("withCredentials" in l.prototype)) && (ct = ae), function(h) {
4400
+ }, se.CONNECTING = ae, se.OPEN = Ce, se.CLOSED = fe, se.prototype.withCredentials = void 0;
4401
+ var ct = c;
4402
+ o != null && (c == null || !("withCredentials" in c.prototype)) && (ct = se), function(h) {
4405
4403
  {
4406
- var y = h(t);
4407
- y !== void 0 && (e.exports = y);
4404
+ var v = h(t);
4405
+ v !== void 0 && (e.exports = v);
4408
4406
  }
4409
4407
  }(function(h) {
4410
- h.EventSourcePolyfill = ae, h.NativeEventSource = l, h.EventSource = ct;
4408
+ h.EventSourcePolyfill = se, h.NativeEventSource = c, h.EventSource = ct;
4411
4409
  });
4412
- })(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : Yr : globalThis);
4413
- })(en, en.exports);
4414
- var Go = en.exports;
4415
- function Se(e) {
4410
+ })(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : Kr : globalThis);
4411
+ })(tn, tn.exports);
4412
+ var ko = tn.exports;
4413
+ function Te(e) {
4416
4414
  return typeof e == "function";
4417
4415
  }
4418
- function mr(e) {
4416
+ function gr(e) {
4419
4417
  var t = function(r) {
4420
4418
  Error.call(r), r.stack = new Error().stack;
4421
4419
  }, n = e(t);
4422
4420
  return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
4423
4421
  }
4424
- var Ft = mr(function(e) {
4422
+ var Ft = gr(function(e) {
4425
4423
  return function(n) {
4426
4424
  e(this), this.message = n ? n.length + ` errors occurred during unsubscription:
4427
4425
  ` + n.map(function(r, i) {
@@ -4430,7 +4428,7 @@ var Ft = mr(function(e) {
4430
4428
  `) : "", this.name = "UnsubscriptionError", this.errors = n;
4431
4429
  };
4432
4430
  });
4433
- function tn(e, t) {
4431
+ function nn(e, t) {
4434
4432
  if (e) {
4435
4433
  var n = e.indexOf(t);
4436
4434
  0 <= n && e.splice(n, 1);
@@ -4448,15 +4446,15 @@ var At = function() {
4448
4446
  if (s)
4449
4447
  if (this._parentage = null, Array.isArray(s))
4450
4448
  try {
4451
- for (var a = Vt(s), l = a.next(); !l.done; l = a.next()) {
4452
- var u = l.value;
4453
- u.remove(this);
4449
+ for (var a = Xt(s), c = a.next(); !c.done; c = a.next()) {
4450
+ var l = c.value;
4451
+ l.remove(this);
4454
4452
  }
4455
- } catch (A) {
4456
- t = { error: A };
4453
+ } catch (T) {
4454
+ t = { error: T };
4457
4455
  } finally {
4458
4456
  try {
4459
- l && !l.done && (n = a.return) && n.call(a);
4457
+ c && !c.done && (n = a.return) && n.call(a);
4460
4458
  } finally {
4461
4459
  if (t)
4462
4460
  throw t.error;
@@ -4465,29 +4463,29 @@ var At = function() {
4465
4463
  else
4466
4464
  s.remove(this);
4467
4465
  var f = this.initialTeardown;
4468
- if (Se(f))
4466
+ if (Te(f))
4469
4467
  try {
4470
4468
  f();
4471
- } catch (A) {
4472
- o = A instanceof Ft ? A.errors : [A];
4469
+ } catch (T) {
4470
+ o = T instanceof Ft ? T.errors : [T];
4473
4471
  }
4474
- var b = this._finalizers;
4475
- if (b) {
4472
+ var m = this._finalizers;
4473
+ if (m) {
4476
4474
  this._finalizers = null;
4477
4475
  try {
4478
- for (var m = Vt(b), w = m.next(); !w.done; w = m.next()) {
4479
- var _ = w.value;
4476
+ for (var p = Xt(m), S = p.next(); !S.done; S = p.next()) {
4477
+ var E = S.value;
4480
4478
  try {
4481
- An(_);
4482
- } catch (A) {
4483
- o = o ?? [], A instanceof Ft ? o = je(je([], Xt(o)), Xt(A.errors)) : o.push(A);
4479
+ Hn(E);
4480
+ } catch (T) {
4481
+ o = o ?? [], T instanceof Ft ? o = Ge(Ge([], zt(o)), zt(T.errors)) : o.push(T);
4484
4482
  }
4485
4483
  }
4486
- } catch (A) {
4487
- r = { error: A };
4484
+ } catch (T) {
4485
+ r = { error: T };
4488
4486
  } finally {
4489
4487
  try {
4490
- w && !w.done && (i = m.return) && i.call(m);
4488
+ S && !S.done && (i = p.return) && i.call(p);
4491
4489
  } finally {
4492
4490
  if (r)
4493
4491
  throw r.error;
@@ -4501,7 +4499,7 @@ var At = function() {
4501
4499
  var n;
4502
4500
  if (t && t !== this)
4503
4501
  if (this.closed)
4504
- An(t);
4502
+ Hn(t);
4505
4503
  else {
4506
4504
  if (t instanceof e) {
4507
4505
  if (t.closed || t._hasParent(this))
@@ -4518,56 +4516,56 @@ var At = function() {
4518
4516
  this._parentage = Array.isArray(n) ? (n.push(t), n) : n ? [n, t] : t;
4519
4517
  }, e.prototype._removeParent = function(t) {
4520
4518
  var n = this._parentage;
4521
- n === t ? this._parentage = null : Array.isArray(n) && tn(n, t);
4519
+ n === t ? this._parentage = null : Array.isArray(n) && nn(n, t);
4522
4520
  }, e.prototype.remove = function(t) {
4523
4521
  var n = this._finalizers;
4524
- n && tn(n, t), t instanceof e && t._removeParent(this);
4522
+ n && nn(n, t), t instanceof e && t._removeParent(this);
4525
4523
  }, e.EMPTY = function() {
4526
4524
  var t = new e();
4527
4525
  return t.closed = !0, t;
4528
4526
  }(), e;
4529
- }(), br = At.EMPTY;
4530
- function gr(e) {
4531
- return e instanceof At || e && "closed" in e && Se(e.remove) && Se(e.add) && Se(e.unsubscribe);
4527
+ }(), yr = At.EMPTY;
4528
+ function vr(e) {
4529
+ return e instanceof At || e && "closed" in e && Te(e.remove) && Te(e.add) && Te(e.unsubscribe);
4532
4530
  }
4533
- function An(e) {
4534
- Se(e) ? e() : e.unsubscribe();
4531
+ function Hn(e) {
4532
+ Te(e) ? e() : e.unsubscribe();
4535
4533
  }
4536
- var jo = {
4534
+ var _r = {
4537
4535
  onUnhandledError: null,
4538
4536
  onStoppedNotification: null,
4539
4537
  Promise: void 0,
4540
4538
  useDeprecatedSynchronousErrorHandling: !1,
4541
4539
  useDeprecatedNextContext: !1
4542
- }, ko = {
4540
+ }, $o = {
4543
4541
  setTimeout: function(e, t) {
4544
4542
  for (var n = [], r = 2; r < arguments.length; r++)
4545
4543
  n[r - 2] = arguments[r];
4546
- return setTimeout.apply(void 0, je([e, t], Xt(n)));
4544
+ return setTimeout.apply(void 0, Ge([e, t], zt(n)));
4547
4545
  },
4548
4546
  clearTimeout: function(e) {
4549
4547
  return clearTimeout(e);
4550
4548
  },
4551
4549
  delegate: void 0
4552
4550
  };
4553
- function $o(e) {
4554
- ko.setTimeout(function() {
4551
+ function Vo(e) {
4552
+ $o.setTimeout(function() {
4555
4553
  throw e;
4556
4554
  });
4557
4555
  }
4558
- function Cn() {
4556
+ function On() {
4559
4557
  }
4560
4558
  function yt(e) {
4561
4559
  e();
4562
4560
  }
4563
- var yr = function(e) {
4564
- Te(t, e);
4561
+ var Er = function(e) {
4562
+ Be(t, e);
4565
4563
  function t(n) {
4566
4564
  var r = e.call(this) || this;
4567
- return r.isStopped = !1, n ? (r.destination = n, gr(n) && n.add(r)) : r.destination = zo, r;
4565
+ return r.isStopped = !1, n ? (r.destination = n, vr(n) && n.add(r)) : r.destination = Zo, r;
4568
4566
  }
4569
4567
  return t.create = function(n, r, i) {
4570
- return new nn(n, r, i);
4568
+ return new rn(n, r, i);
4571
4569
  }, t.prototype.next = function(n) {
4572
4570
  this.isStopped || this._next(n);
4573
4571
  }, t.prototype.error = function(n) {
@@ -4591,7 +4589,11 @@ var yr = function(e) {
4591
4589
  this.unsubscribe();
4592
4590
  }
4593
4591
  }, t;
4594
- }(At), Vo = function() {
4592
+ }(At), Xo = Function.prototype.bind;
4593
+ function Gt(e, t) {
4594
+ return Xo.call(e, t);
4595
+ }
4596
+ var zo = function() {
4595
4597
  function e(t) {
4596
4598
  this.partialObserver = t;
4597
4599
  }
@@ -4622,43 +4624,55 @@ var yr = function(e) {
4622
4624
  pt(n);
4623
4625
  }
4624
4626
  }, e;
4625
- }(), nn = function(e) {
4626
- Te(t, e);
4627
+ }(), rn = function(e) {
4628
+ Be(t, e);
4627
4629
  function t(n, r, i) {
4628
4630
  var o = e.call(this) || this, s;
4629
- return Se(n) || !n ? s = {
4630
- next: n ?? void 0,
4631
- error: r ?? void 0,
4632
- complete: i ?? void 0
4633
- } : s = n, o.destination = new Vo(s), o;
4631
+ if (Te(n) || !n)
4632
+ s = {
4633
+ next: n ?? void 0,
4634
+ error: r ?? void 0,
4635
+ complete: i ?? void 0
4636
+ };
4637
+ else {
4638
+ var a;
4639
+ o && _r.useDeprecatedNextContext ? (a = Object.create(n), a.unsubscribe = function() {
4640
+ return o.unsubscribe();
4641
+ }, s = {
4642
+ next: n.next && Gt(n.next, a),
4643
+ error: n.error && Gt(n.error, a),
4644
+ complete: n.complete && Gt(n.complete, a)
4645
+ }) : s = n;
4646
+ }
4647
+ return o.destination = new zo(s), o;
4634
4648
  }
4635
4649
  return t;
4636
- }(yr);
4650
+ }(Er);
4637
4651
  function pt(e) {
4638
- $o(e);
4652
+ Vo(e);
4639
4653
  }
4640
- function Xo(e) {
4654
+ function Wo(e) {
4641
4655
  throw e;
4642
4656
  }
4643
- var zo = {
4657
+ var Zo = {
4644
4658
  closed: !0,
4645
- next: Cn,
4646
- error: Xo,
4647
- complete: Cn
4648
- }, Wo = function() {
4659
+ next: On,
4660
+ error: Wo,
4661
+ complete: On
4662
+ }, qo = function() {
4649
4663
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
4650
4664
  }();
4651
- function Zo(e) {
4665
+ function Yo(e) {
4652
4666
  return e;
4653
4667
  }
4654
- function qo(e) {
4655
- return e.length === 0 ? Zo : e.length === 1 ? e[0] : function(n) {
4668
+ function Qo(e) {
4669
+ return e.length === 0 ? Yo : e.length === 1 ? e[0] : function(n) {
4656
4670
  return e.reduce(function(r, i) {
4657
4671
  return i(r);
4658
4672
  }, n);
4659
4673
  };
4660
4674
  }
4661
- var Hn = function() {
4675
+ var Mn = function() {
4662
4676
  function e(t) {
4663
4677
  t && (this._subscribe = t);
4664
4678
  }
@@ -4666,10 +4680,10 @@ var Hn = function() {
4666
4680
  var n = new e();
4667
4681
  return n.source = this, n.operator = t, n;
4668
4682
  }, e.prototype.subscribe = function(t, n, r) {
4669
- var i = this, o = Qo(t) ? t : new nn(t, n, r);
4683
+ var i = this, o = Ko(t) ? t : new rn(t, n, r);
4670
4684
  return yt(function() {
4671
- var s = i, a = s.operator, l = s.source;
4672
- o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
4685
+ var s = i, a = s.operator, c = s.source;
4686
+ o.add(a ? a.call(o, c) : c ? i._subscribe(o) : i._trySubscribe(o));
4673
4687
  }), o;
4674
4688
  }, e.prototype._trySubscribe = function(t) {
4675
4689
  try {
@@ -4679,13 +4693,13 @@ var Hn = function() {
4679
4693
  }
4680
4694
  }, e.prototype.forEach = function(t, n) {
4681
4695
  var r = this;
4682
- return n = On(n), new n(function(i, o) {
4683
- var s = new nn({
4696
+ return n = Rn(n), new n(function(i, o) {
4697
+ var s = new rn({
4684
4698
  next: function(a) {
4685
4699
  try {
4686
4700
  t(a);
4687
- } catch (l) {
4688
- o(l), s.unsubscribe();
4701
+ } catch (c) {
4702
+ o(c), s.unsubscribe();
4689
4703
  }
4690
4704
  },
4691
4705
  error: o,
@@ -4696,15 +4710,15 @@ var Hn = function() {
4696
4710
  }, e.prototype._subscribe = function(t) {
4697
4711
  var n;
4698
4712
  return (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t);
4699
- }, e.prototype[Wo] = function() {
4713
+ }, e.prototype[qo] = function() {
4700
4714
  return this;
4701
4715
  }, e.prototype.pipe = function() {
4702
4716
  for (var t = [], n = 0; n < arguments.length; n++)
4703
4717
  t[n] = arguments[n];
4704
- return qo(t)(this);
4718
+ return Qo(t)(this);
4705
4719
  }, e.prototype.toPromise = function(t) {
4706
4720
  var n = this;
4707
- return t = On(t), new t(function(r, i) {
4721
+ return t = Rn(t), new t(function(r, i) {
4708
4722
  var o;
4709
4723
  n.subscribe(function(s) {
4710
4724
  return o = s;
@@ -4718,32 +4732,32 @@ var Hn = function() {
4718
4732
  return new e(t);
4719
4733
  }, e;
4720
4734
  }();
4721
- function On(e) {
4735
+ function Rn(e) {
4722
4736
  var t;
4723
- return (t = e ?? jo.Promise) !== null && t !== void 0 ? t : Promise;
4737
+ return (t = e ?? _r.Promise) !== null && t !== void 0 ? t : Promise;
4724
4738
  }
4725
- function Yo(e) {
4726
- return e && Se(e.next) && Se(e.error) && Se(e.complete);
4739
+ function Jo(e) {
4740
+ return e && Te(e.next) && Te(e.error) && Te(e.complete);
4727
4741
  }
4728
- function Qo(e) {
4729
- return e && e instanceof yr || Yo(e) && gr(e);
4742
+ function Ko(e) {
4743
+ return e && e instanceof Er || Jo(e) && vr(e);
4730
4744
  }
4731
- var Jo = mr(function(e) {
4745
+ var ea = gr(function(e) {
4732
4746
  return function() {
4733
4747
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
4734
4748
  };
4735
- }), vr = function(e) {
4736
- Te(t, e);
4749
+ }), xr = function(e) {
4750
+ Be(t, e);
4737
4751
  function t() {
4738
4752
  var n = e.call(this) || this;
4739
4753
  return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
4740
4754
  }
4741
4755
  return t.prototype.lift = function(n) {
4742
- var r = new Mn(this, this);
4756
+ var r = new Ln(this, this);
4743
4757
  return r.operator = n, r;
4744
4758
  }, t.prototype._throwIfClosed = function() {
4745
4759
  if (this.closed)
4746
- throw new Jo();
4760
+ throw new ea();
4747
4761
  }, t.prototype.next = function(n) {
4748
4762
  var r = this;
4749
4763
  yt(function() {
@@ -4751,12 +4765,12 @@ var Jo = mr(function(e) {
4751
4765
  if (r._throwIfClosed(), !r.isStopped) {
4752
4766
  r.currentObservers || (r.currentObservers = Array.from(r.observers));
4753
4767
  try {
4754
- for (var s = Vt(r.currentObservers), a = s.next(); !a.done; a = s.next()) {
4755
- var l = a.value;
4756
- l.next(n);
4768
+ for (var s = Xt(r.currentObservers), a = s.next(); !a.done; a = s.next()) {
4769
+ var c = a.value;
4770
+ c.next(n);
4757
4771
  }
4758
- } catch (u) {
4759
- i = { error: u };
4772
+ } catch (l) {
4773
+ i = { error: l };
4760
4774
  } finally {
4761
4775
  try {
4762
4776
  a && !a.done && (o = s.return) && o.call(s);
@@ -4800,20 +4814,20 @@ var Jo = mr(function(e) {
4800
4814
  return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
4801
4815
  }, t.prototype._innerSubscribe = function(n) {
4802
4816
  var r = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
4803
- return o || s ? br : (this.currentObservers = null, a.push(n), new At(function() {
4804
- r.currentObservers = null, tn(a, n);
4817
+ return o || s ? yr : (this.currentObservers = null, a.push(n), new At(function() {
4818
+ r.currentObservers = null, nn(a, n);
4805
4819
  }));
4806
4820
  }, t.prototype._checkFinalizedStatuses = function(n) {
4807
4821
  var r = this, i = r.hasError, o = r.thrownError, s = r.isStopped;
4808
4822
  i ? n.error(o) : s && n.complete();
4809
4823
  }, t.prototype.asObservable = function() {
4810
- var n = new Hn();
4824
+ var n = new Mn();
4811
4825
  return n.source = this, n;
4812
4826
  }, t.create = function(n, r) {
4813
- return new Mn(n, r);
4827
+ return new Ln(n, r);
4814
4828
  }, t;
4815
- }(Hn), Mn = function(e) {
4816
- Te(t, e);
4829
+ }(Mn), Ln = function(e) {
4830
+ Be(t, e);
4817
4831
  function t(n, r) {
4818
4832
  var i = e.call(this) || this;
4819
4833
  return i.destination = n, i.source = r, i;
@@ -4829,58 +4843,58 @@ var Jo = mr(function(e) {
4829
4843
  (r = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || r === void 0 || r.call(n);
4830
4844
  }, t.prototype._subscribe = function(n) {
4831
4845
  var r, i;
4832
- return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : br;
4846
+ return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : yr;
4833
4847
  }, t;
4834
- }(vr), _r = {
4848
+ }(xr), wr = {
4835
4849
  now: function() {
4836
- return (_r.delegate || Date).now();
4850
+ return (wr.delegate || Date).now();
4837
4851
  },
4838
4852
  delegate: void 0
4839
- }, Ko = function(e) {
4840
- Te(t, e);
4853
+ }, ta = function(e) {
4854
+ Be(t, e);
4841
4855
  function t(n, r, i) {
4842
- n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = _r);
4856
+ n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = wr);
4843
4857
  var o = e.call(this) || this;
4844
4858
  return o._bufferSize = n, o._windowTime = r, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = r === 1 / 0, o._bufferSize = Math.max(1, n), o._windowTime = Math.max(1, r), o;
4845
4859
  }
4846
4860
  return t.prototype.next = function(n) {
4847
- var r = this, i = r.isStopped, o = r._buffer, s = r._infiniteTimeWindow, a = r._timestampProvider, l = r._windowTime;
4848
- i || (o.push(n), !s && o.push(a.now() + l)), this._trimBuffer(), e.prototype.next.call(this, n);
4861
+ var r = this, i = r.isStopped, o = r._buffer, s = r._infiniteTimeWindow, a = r._timestampProvider, c = r._windowTime;
4862
+ i || (o.push(n), !s && o.push(a.now() + c)), this._trimBuffer(), e.prototype.next.call(this, n);
4849
4863
  }, t.prototype._subscribe = function(n) {
4850
4864
  this._throwIfClosed(), this._trimBuffer();
4851
- for (var r = this._innerSubscribe(n), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), l = 0; l < a.length && !n.closed; l += o ? 1 : 2)
4852
- n.next(a[l]);
4865
+ for (var r = this._innerSubscribe(n), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), c = 0; c < a.length && !n.closed; c += o ? 1 : 2)
4866
+ n.next(a[c]);
4853
4867
  return this._checkFinalizedStatuses(n), r;
4854
4868
  }, t.prototype._trimBuffer = function() {
4855
4869
  var n = this, r = n._bufferSize, i = n._timestampProvider, o = n._buffer, s = n._infiniteTimeWindow, a = (s ? 1 : 2) * r;
4856
4870
  if (r < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
4857
- for (var l = i.now(), u = 0, f = 1; f < o.length && o[f] <= l; f += 2)
4858
- u = f;
4859
- u && o.splice(0, u + 1);
4871
+ for (var c = i.now(), l = 0, f = 1; f < o.length && o[f] <= c; f += 2)
4872
+ l = f;
4873
+ l && o.splice(0, l + 1);
4860
4874
  }
4861
4875
  }, t;
4862
- }(vr);
4863
- const Rn = [], Ln = {}, ea = (e, t = 0) => {
4864
- if (Rn.indexOf(e) == -1) {
4865
- const n = new Ko(t);
4866
- Ln[e] = n, Rn.push(e);
4876
+ }(xr);
4877
+ const Pn = [], In = {}, na = (e, t = 0) => {
4878
+ if (Pn.indexOf(e) == -1) {
4879
+ const n = new ta(t);
4880
+ In[e] = n, Pn.push(e);
4867
4881
  }
4868
- return Ln[e];
4882
+ return In[e];
4869
4883
  };
4870
- window.emWidgets = { topic: ea };
4871
- const ta = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
4872
- function na(e) {
4873
- Tr(e, "svelte-lfsn3o", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;background:transparent;border:none;font:inherit;color:inherit;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;background:transparent;border:none;font:inherit;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}');
4884
+ window.emWidgets = { topic: na };
4885
+ const ra = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
4886
+ function ia(e) {
4887
+ Cr(e, "svelte-lfsn3o", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;background:transparent;border:none;font:inherit;color:inherit;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;background:transparent;border:none;font:inherit;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}');
4874
4888
  }
4875
- function Pn(e, t, n) {
4889
+ function Nn(e, t, n) {
4876
4890
  const r = e.slice();
4877
4891
  return r[54] = t[n], r;
4878
4892
  }
4879
- function Nn(e, t, n) {
4893
+ function Dn(e, t, n) {
4880
4894
  const r = e.slice();
4881
4895
  return r[57] = t[n], r;
4882
4896
  }
4883
- function ra(e) {
4897
+ function oa(e) {
4884
4898
  let t, n, r = (
4885
4899
  /*balances*/
4886
4900
  (e[1].Total ? (
@@ -4890,53 +4904,53 @@ function ra(e) {
4890
4904
  e[1].Total[0].amount
4891
4905
  )
4892
4906
  ) : "0") + ""
4893
- ), i, o, s, a, l, u, f, b, m, w, _ = (
4907
+ ), i, o, s, a, c, l, f, m, p, S, E = (
4894
4908
  /*showBalance*/
4895
- e[4] && In(e)
4909
+ e[4] && Un(e)
4896
4910
  );
4897
4911
  return {
4898
4912
  c() {
4899
- t = j("button"), n = j("p"), i = xe(r), o = we(), s = j("span"), a = cn("svg"), l = cn("path"), f = we(), _ && _.c(), b = Cr(), M(l, "id", "arrow"), M(l, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), M(l, "transform", "translate(-274.511 -441.088)"), M(l, "fill", "#d1d1d1"), M(a, "xmlns", "http://www.w3.org/2000/svg"), M(a, "width", "14"), M(a, "height", "6.835"), M(a, "viewBox", "0 0 14 6.835"), M(s, "class", u = /*isModalDisplayed*/
4900
- e[3] ? "TriangleActive" : "TriangleInactive"), M(t, "class", "BalanceValue");
4913
+ t = j("button"), n = j("p"), i = we(r), o = Se(), s = j("span"), a = fn("svg"), c = fn("path"), f = Se(), E && E.c(), m = Mr(), R(c, "id", "arrow"), R(c, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), R(c, "transform", "translate(-274.511 -441.088)"), R(c, "fill", "#d1d1d1"), R(a, "xmlns", "http://www.w3.org/2000/svg"), R(a, "width", "14"), R(a, "height", "6.835"), R(a, "viewBox", "0 0 14 6.835"), R(s, "class", l = /*isModalDisplayed*/
4914
+ e[3] ? "TriangleActive" : "TriangleInactive"), R(t, "class", "BalanceValue");
4901
4915
  },
4902
- m(A, I) {
4903
- be(A, t, I), P(t, n), P(n, i), P(t, o), P(t, s), P(s, a), P(a, l), be(A, f, I), _ && _.m(A, I), be(A, b, I), m || (w = vt(
4916
+ m(T, N) {
4917
+ ge(T, t, N), I(t, n), I(n, i), I(t, o), I(t, s), I(s, a), I(a, c), ge(T, f, N), E && E.m(T, N), ge(T, m, N), p || (S = vt(
4904
4918
  t,
4905
4919
  "click",
4906
4920
  /*click_handler*/
4907
4921
  e[26]
4908
- ), m = !0);
4922
+ ), p = !0);
4909
4923
  },
4910
- p(A, I) {
4911
- I[0] & /*balances*/
4924
+ p(T, N) {
4925
+ N[0] & /*balances*/
4912
4926
  2 && r !== (r = /*balances*/
4913
- (A[1].Total ? (
4927
+ (T[1].Total ? (
4914
4928
  /*formatBalance*/
4915
- A[8](
4929
+ T[8](
4916
4930
  /*balances*/
4917
- A[1].Total[0].amount
4931
+ T[1].Total[0].amount
4918
4932
  )
4919
- ) : "0") + "") && Me(i, r), I[0] & /*isModalDisplayed*/
4920
- 8 && u !== (u = /*isModalDisplayed*/
4921
- A[3] ? "TriangleActive" : "TriangleInactive") && M(s, "class", u), /*showBalance*/
4922
- A[4] ? _ ? _.p(A, I) : (_ = In(A), _.c(), _.m(b.parentNode, b)) : _ && (_.d(1), _ = null);
4933
+ ) : "0") + "") && Me(i, r), N[0] & /*isModalDisplayed*/
4934
+ 8 && l !== (l = /*isModalDisplayed*/
4935
+ T[3] ? "TriangleActive" : "TriangleInactive") && R(s, "class", l), /*showBalance*/
4936
+ T[4] ? E ? E.p(T, N) : (E = Un(T), E.c(), E.m(m.parentNode, m)) : E && (E.d(1), E = null);
4923
4937
  },
4924
- d(A) {
4925
- A && (de(t), de(f), de(b)), _ && _.d(A), m = !1, w();
4938
+ d(T) {
4939
+ T && (me(t), me(f), me(m)), E && E.d(T), p = !1, S();
4926
4940
  }
4927
4941
  };
4928
4942
  }
4929
- function ia(e) {
4943
+ function aa(e) {
4930
4944
  let t, n = (
4931
4945
  /*$_*/
4932
4946
  e[6]("Loading") + ""
4933
4947
  ), r;
4934
4948
  return {
4935
4949
  c() {
4936
- t = j("p"), r = xe(n), M(t, "class", "Loading");
4950
+ t = j("p"), r = we(n), R(t, "class", "Loading");
4937
4951
  },
4938
4952
  m(i, o) {
4939
- be(i, t, o), P(t, r);
4953
+ ge(i, t, o), I(t, r);
4940
4954
  },
4941
4955
  p(i, o) {
4942
4956
  o[0] & /*$_*/
@@ -4944,39 +4958,39 @@ function ia(e) {
4944
4958
  i[6]("Loading") + "") && Me(r, n);
4945
4959
  },
4946
4960
  d(i) {
4947
- i && de(t);
4961
+ i && me(t);
4948
4962
  }
4949
4963
  };
4950
4964
  }
4951
- function In(e) {
4952
- let t, n, r, i, o, s, a, l, u = (
4965
+ function Un(e) {
4966
+ let t, n, r, i, o, s, a, c, l = (
4953
4967
  /*$_*/
4954
4968
  e[6]("Title") + ""
4955
- ), f, b, m, w, _, A, I = (
4969
+ ), f, m, p, S, E, T, N = (
4956
4970
  /*$_*/
4957
4971
  e[6]("DepositButton") + ""
4958
- ), W, V, R, D, k, oe, Z = _t(Object.keys(
4972
+ ), W, V, L, U, Q, Z, ee = _t(Object.keys(
4959
4973
  /*balances*/
4960
4974
  e[1]
4961
- )), $ = [];
4962
- for (let U = 0; U < Z.length; U += 1)
4963
- $[U] = Un(Pn(e, Z, U));
4975
+ )), F = [];
4976
+ for (let D = 0; D < ee.length; D += 1)
4977
+ F[D] = Gn(Nn(e, ee, D));
4964
4978
  return {
4965
4979
  c() {
4966
- t = j("div"), n = j("button"), i = we(), o = j("div"), s = j("div"), a = j("div"), l = j("p"), f = xe(u), b = we(), m = j("div");
4967
- for (let U = 0; U < $.length; U += 1)
4968
- $[U].c();
4969
- w = we(), _ = j("div"), A = j("button"), W = xe(I), M(n, "class", r = "BalanceModalClose " + /*isModalDisplayed*/
4970
- (e[3] ? "Open" : "")), M(l, "class", "BalanceModalTitle"), M(a, "class", "BalanceModalHeader"), M(m, "class", "BalanceModalBody"), M(A, "class", "BalanceModalAction"), M(_, "class", "BalanceModalFooter"), M(s, "class", V = "ModalContent " + /*isModalDisplayed*/
4971
- (e[3] ? "Open" : "")), M(o, "class", R = "BalanceModal " + /*isModalDisplayed*/
4972
- (e[3] ? "Open" : "")), M(t, "class", D = "BalanceModalWrapper " + /*isModalDisplayed*/
4980
+ t = j("div"), n = j("button"), i = Se(), o = j("div"), s = j("div"), a = j("div"), c = j("p"), f = we(l), m = Se(), p = j("div");
4981
+ for (let D = 0; D < F.length; D += 1)
4982
+ F[D].c();
4983
+ S = Se(), E = j("div"), T = j("button"), W = we(N), R(n, "class", r = "BalanceModalClose " + /*isModalDisplayed*/
4984
+ (e[3] ? "Open" : "")), R(c, "class", "BalanceModalTitle"), R(a, "class", "BalanceModalHeader"), R(p, "class", "BalanceModalBody"), R(T, "class", "BalanceModalAction"), R(E, "class", "BalanceModalFooter"), R(s, "class", V = "ModalContent " + /*isModalDisplayed*/
4985
+ (e[3] ? "Open" : "")), R(o, "class", L = "BalanceModal " + /*isModalDisplayed*/
4986
+ (e[3] ? "Open" : "")), R(t, "class", U = "BalanceModalWrapper " + /*isModalDisplayed*/
4973
4987
  (e[3] ? "Open" : ""));
4974
4988
  },
4975
- m(U, q) {
4976
- be(U, t, q), P(t, n), P(t, i), P(t, o), P(o, s), P(s, a), P(a, l), P(l, f), P(s, b), P(s, m);
4977
- for (let F = 0; F < $.length; F += 1)
4978
- $[F] && $[F].m(m, null);
4979
- P(s, w), P(s, _), P(_, A), P(A, W), k || (oe = [
4989
+ m(D, X) {
4990
+ ge(D, t, X), I(t, n), I(t, i), I(t, o), I(o, s), I(s, a), I(a, c), I(c, f), I(s, m), I(s, p);
4991
+ for (let k = 0; k < F.length; k += 1)
4992
+ F[k] && F[k].m(p, null);
4993
+ I(s, S), I(s, E), I(E, T), I(T, W), Q || (Z = [
4980
4994
  vt(
4981
4995
  n,
4982
4996
  "click",
@@ -4984,49 +4998,49 @@ function In(e) {
4984
4998
  e[27]
4985
4999
  ),
4986
5000
  vt(
4987
- A,
5001
+ T,
4988
5002
  "click",
4989
5003
  /*click_handler_2*/
4990
5004
  e[28]
4991
5005
  )
4992
- ], k = !0);
5006
+ ], Q = !0);
4993
5007
  },
4994
- p(U, q) {
4995
- if (q[0] & /*isModalDisplayed*/
5008
+ p(D, X) {
5009
+ if (X[0] & /*isModalDisplayed*/
4996
5010
  8 && r !== (r = "BalanceModalClose " + /*isModalDisplayed*/
4997
- (U[3] ? "Open" : "")) && M(n, "class", r), q[0] & /*$_*/
4998
- 64 && u !== (u = /*$_*/
4999
- U[6]("Title") + "") && Me(f, u), q[0] & /*balances, formatBalance, $_*/
5011
+ (D[3] ? "Open" : "")) && R(n, "class", r), X[0] & /*$_*/
5012
+ 64 && l !== (l = /*$_*/
5013
+ D[6]("Title") + "") && Me(f, l), X[0] & /*balances, formatBalance, $_*/
5000
5014
  322) {
5001
- Z = _t(Object.keys(
5015
+ ee = _t(Object.keys(
5002
5016
  /*balances*/
5003
- U[1]
5017
+ D[1]
5004
5018
  ));
5005
- let F;
5006
- for (F = 0; F < Z.length; F += 1) {
5007
- const K = Pn(U, Z, F);
5008
- $[F] ? $[F].p(K, q) : ($[F] = Un(K), $[F].c(), $[F].m(m, null));
5019
+ let k;
5020
+ for (k = 0; k < ee.length; k += 1) {
5021
+ const te = Nn(D, ee, k);
5022
+ F[k] ? F[k].p(te, X) : (F[k] = Gn(te), F[k].c(), F[k].m(p, null));
5009
5023
  }
5010
- for (; F < $.length; F += 1)
5011
- $[F].d(1);
5012
- $.length = Z.length;
5024
+ for (; k < F.length; k += 1)
5025
+ F[k].d(1);
5026
+ F.length = ee.length;
5013
5027
  }
5014
- q[0] & /*$_*/
5015
- 64 && I !== (I = /*$_*/
5016
- U[6]("DepositButton") + "") && Me(W, I), q[0] & /*isModalDisplayed*/
5028
+ X[0] & /*$_*/
5029
+ 64 && N !== (N = /*$_*/
5030
+ D[6]("DepositButton") + "") && Me(W, N), X[0] & /*isModalDisplayed*/
5017
5031
  8 && V !== (V = "ModalContent " + /*isModalDisplayed*/
5018
- (U[3] ? "Open" : "")) && M(s, "class", V), q[0] & /*isModalDisplayed*/
5019
- 8 && R !== (R = "BalanceModal " + /*isModalDisplayed*/
5020
- (U[3] ? "Open" : "")) && M(o, "class", R), q[0] & /*isModalDisplayed*/
5021
- 8 && D !== (D = "BalanceModalWrapper " + /*isModalDisplayed*/
5022
- (U[3] ? "Open" : "")) && M(t, "class", D);
5032
+ (D[3] ? "Open" : "")) && R(s, "class", V), X[0] & /*isModalDisplayed*/
5033
+ 8 && L !== (L = "BalanceModal " + /*isModalDisplayed*/
5034
+ (D[3] ? "Open" : "")) && R(o, "class", L), X[0] & /*isModalDisplayed*/
5035
+ 8 && U !== (U = "BalanceModalWrapper " + /*isModalDisplayed*/
5036
+ (D[3] ? "Open" : "")) && R(t, "class", U);
5023
5037
  },
5024
- d(U) {
5025
- U && de(t), $n($, U), k = !1, ze(oe);
5038
+ d(D) {
5039
+ D && me(t), Xn(F, D), Q = !1, Xe(Z);
5026
5040
  }
5027
5041
  };
5028
5042
  }
5029
- function Dn(e) {
5043
+ function Fn(e) {
5030
5044
  let t, n, r = (
5031
5045
  /*$_*/
5032
5046
  e[6](
@@ -5042,47 +5056,47 @@ function Dn(e) {
5042
5056
  e[57].productType
5043
5057
  )
5044
5058
  ) : "") + ""
5045
- ), a, l, u, f, b = (
5059
+ ), a, c, l, f, m = (
5046
5060
  /*formatBalance*/
5047
5061
  e[8](
5048
5062
  /*b*/
5049
5063
  e[57].amount
5050
5064
  ) + ""
5051
- ), m;
5065
+ ), p;
5052
5066
  return {
5053
5067
  c() {
5054
- t = j("div"), n = j("p"), i = xe(r), o = we(), a = xe(s), l = we(), u = j("p"), f = j("span"), m = xe(b), M(n, "class", "BalanceModalText"), M(f, "class", "BalanceModalAmount"), M(u, "class", "BalanceModalValue"), M(t, "class", "BalanceModalRowLine");
5068
+ t = j("div"), n = j("p"), i = we(r), o = Se(), a = we(s), c = Se(), l = j("p"), f = j("span"), p = we(m), R(n, "class", "BalanceModalText"), R(f, "class", "BalanceModalAmount"), R(l, "class", "BalanceModalValue"), R(t, "class", "BalanceModalRowLine");
5055
5069
  },
5056
- m(w, _) {
5057
- be(w, t, _), P(t, n), P(n, i), P(n, o), P(n, a), P(t, l), P(t, u), P(u, f), P(f, m);
5070
+ m(S, E) {
5071
+ ge(S, t, E), I(t, n), I(n, i), I(n, o), I(n, a), I(t, c), I(t, l), I(l, f), I(f, p);
5058
5072
  },
5059
- p(w, _) {
5060
- _[0] & /*$_, balances*/
5073
+ p(S, E) {
5074
+ E[0] & /*$_, balances*/
5061
5075
  66 && r !== (r = /*$_*/
5062
- w[6](
5076
+ S[6](
5063
5077
  /*k*/
5064
- w[54]
5065
- ) + "") && Me(i, r), _[0] & /*balances, $_*/
5078
+ S[54]
5079
+ ) + "") && Me(i, r), E[0] & /*balances, $_*/
5066
5080
  66 && s !== (s = /*b*/
5067
- (w[57].productType ? (
5081
+ (S[57].productType ? (
5068
5082
  /*$_*/
5069
- w[6](
5083
+ S[6](
5070
5084
  /*b*/
5071
- w[57].productType
5085
+ S[57].productType
5072
5086
  )
5073
- ) : "") + "") && Me(a, s), _[0] & /*balances*/
5074
- 2 && b !== (b = /*formatBalance*/
5075
- w[8](
5087
+ ) : "") + "") && Me(a, s), E[0] & /*balances*/
5088
+ 2 && m !== (m = /*formatBalance*/
5089
+ S[8](
5076
5090
  /*b*/
5077
- w[57].amount
5078
- ) + "") && Me(m, b);
5091
+ S[57].amount
5092
+ ) + "") && Me(p, m);
5079
5093
  },
5080
- d(w) {
5081
- w && de(t);
5094
+ d(S) {
5095
+ S && me(t);
5082
5096
  }
5083
5097
  };
5084
5098
  }
5085
- function Un(e) {
5099
+ function Gn(e) {
5086
5100
  let t, n, r = _t(
5087
5101
  /*balances*/
5088
5102
  e[1][
@@ -5091,19 +5105,19 @@ function Un(e) {
5091
5105
  ]
5092
5106
  ), i = [];
5093
5107
  for (let o = 0; o < r.length; o += 1)
5094
- i[o] = Dn(Nn(e, r, o));
5108
+ i[o] = Fn(Dn(e, r, o));
5095
5109
  return {
5096
5110
  c() {
5097
5111
  t = j("div");
5098
5112
  for (let o = 0; o < i.length; o += 1)
5099
5113
  i[o].c();
5100
- n = we(), M(t, "class", "BalanceModalRowBoth");
5114
+ n = Se(), R(t, "class", "BalanceModalRowBoth");
5101
5115
  },
5102
5116
  m(o, s) {
5103
- be(o, t, s);
5117
+ ge(o, t, s);
5104
5118
  for (let a = 0; a < i.length; a += 1)
5105
5119
  i[a] && i[a].m(t, null);
5106
- P(t, n);
5120
+ I(t, n);
5107
5121
  },
5108
5122
  p(o, s) {
5109
5123
  if (s[0] & /*formatBalance, balances, $_*/
@@ -5117,8 +5131,8 @@ function Un(e) {
5117
5131
  );
5118
5132
  let a;
5119
5133
  for (a = 0; a < r.length; a += 1) {
5120
- const l = Nn(o, r, a);
5121
- i[a] ? i[a].p(l, s) : (i[a] = Dn(l), i[a].c(), i[a].m(t, n));
5134
+ const c = Dn(o, r, a);
5135
+ i[a] ? i[a].p(c, s) : (i[a] = Fn(c), i[a].c(), i[a].m(t, n));
5122
5136
  }
5123
5137
  for (; a < i.length; a += 1)
5124
5138
  i[a].d(1);
@@ -5126,73 +5140,73 @@ function Un(e) {
5126
5140
  }
5127
5141
  },
5128
5142
  d(o) {
5129
- o && de(t), $n(i, o);
5143
+ o && me(t), Xn(i, o);
5130
5144
  }
5131
5145
  };
5132
5146
  }
5133
- function Fn(e) {
5147
+ function jn(e) {
5134
5148
  let t, n, r;
5135
5149
  return {
5136
5150
  c() {
5137
- t = j("button"), M(t, "class", "ShowBalanceModalOverlay");
5151
+ t = j("button"), R(t, "class", "ShowBalanceModalOverlay");
5138
5152
  },
5139
5153
  m(i, o) {
5140
- be(i, t, o), n || (r = vt(
5154
+ ge(i, t, o), n || (r = vt(
5141
5155
  t,
5142
5156
  "click",
5143
5157
  /*click_handler_3*/
5144
5158
  e[29]
5145
5159
  ), n = !0);
5146
5160
  },
5147
- p: ce,
5161
+ p: he,
5148
5162
  d(i) {
5149
- i && de(t), n = !1, r();
5163
+ i && me(t), n = !1, r();
5150
5164
  }
5151
5165
  };
5152
5166
  }
5153
- function oa(e) {
5167
+ function sa(e) {
5154
5168
  let t, n, r, i;
5155
- function o(u, f) {
5169
+ function o(l, f) {
5156
5170
  return (
5157
5171
  /*isLoading*/
5158
- u[2] ? ia : ra
5172
+ l[2] ? aa : oa
5159
5173
  );
5160
5174
  }
5161
- let s = o(e), a = s(e), l = (
5175
+ let s = o(e), a = s(e), c = (
5162
5176
  /*showBalance*/
5163
- e[4] && Fn(e)
5177
+ e[4] && jn(e)
5164
5178
  );
5165
5179
  return {
5166
5180
  c() {
5167
- t = j("div"), n = j("div"), a.c(), i = we(), l && l.c(), M(n, "class", r = "ShowBalance " + /*mobileView*/
5181
+ t = j("div"), n = j("div"), a.c(), i = Se(), c && c.c(), R(n, "class", r = "ShowBalance " + /*mobileView*/
5168
5182
  (e[5] ? "Mobile" : ""));
5169
5183
  },
5170
- m(u, f) {
5171
- be(u, t, f), P(t, n), a.m(n, null), P(t, i), l && l.m(t, null), e[30](t);
5184
+ m(l, f) {
5185
+ ge(l, t, f), I(t, n), a.m(n, null), I(t, i), c && c.m(t, null), e[30](t);
5172
5186
  },
5173
- p(u, f) {
5174
- s === (s = o(u)) && a ? a.p(u, f) : (a.d(1), a = s(u), a && (a.c(), a.m(n, null))), f[0] & /*mobileView*/
5187
+ p(l, f) {
5188
+ s === (s = o(l)) && a ? a.p(l, f) : (a.d(1), a = s(l), a && (a.c(), a.m(n, null))), f[0] & /*mobileView*/
5175
5189
  32 && r !== (r = "ShowBalance " + /*mobileView*/
5176
- (u[5] ? "Mobile" : "")) && M(n, "class", r), /*showBalance*/
5177
- u[4] ? l ? l.p(u, f) : (l = Fn(u), l.c(), l.m(t, null)) : l && (l.d(1), l = null);
5190
+ (l[5] ? "Mobile" : "")) && R(n, "class", r), /*showBalance*/
5191
+ l[4] ? c ? c.p(l, f) : (c = jn(l), c.c(), c.m(t, null)) : c && (c.d(1), c = null);
5178
5192
  },
5179
- i: ce,
5180
- o: ce,
5181
- d(u) {
5182
- u && de(t), a.d(), l && l.d(), e[30](null);
5193
+ i: he,
5194
+ o: he,
5195
+ d(l) {
5196
+ l && me(t), a.d(), c && c.d(), e[30](null);
5183
5197
  }
5184
5198
  };
5185
5199
  }
5186
- function aa(e, t, n) {
5200
+ function la(e, t, n) {
5187
5201
  let r;
5188
- Sr(e, Uo, (c) => n(6, r = c));
5189
- let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: s = "" } = t, { lang: a = "en" } = t, { mbsource: l } = t, { clientstyling: u = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: b = "" } = t, { gmversion: m = "gm16" } = t, { displaybalanceoption: w = "All" } = t, { totalcalculationmode: _ = "totalCashAmount" } = t, { currencylocale: A = "en" } = t, { currencydisplay: I = "symbol" } = t, { maximumfractiondigits: W = "2" } = t, { minimumfractiondigits: V = "0" } = t, { customdisplayformat: R = "" } = t, D, k = !0, oe = !1, Z = !1, $ = !1, U = !1, q = window.navigator.userAgent, F, K = "", he = [], ge;
5190
- const x = {}, ye = ["totalCashAmount", "totalRealAmount"], pe = () => {
5191
- fetch(b).then((c) => c.json()).then((c) => Object.keys(c).forEach((d) => Tn(d, c[d]))).catch((c) => console.log(c));
5202
+ Ar(e, Go, (u) => n(6, r = u));
5203
+ let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: s = "" } = t, { lang: a = "en" } = t, { mbsource: c } = t, { clientstyling: l = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: m = "" } = t, { gmversion: p = "gm16" } = t, { displaybalanceoption: S = "All" } = t, { totalcalculationmode: E = "totalCashAmount" } = t, { currencylocale: T = "en" } = t, { currencydisplay: N = "symbol" } = t, { maximumfractiondigits: W = "2" } = t, { minimumfractiondigits: V = "0" } = t, { customdisplayformat: L = "" } = t, U, Q, Z = !0, ee = !1, F = !1, D = !1, X = !1, k = window.navigator.userAgent, te, ye = "", ce = [], Ae;
5204
+ const x = {}, ae = ["totalCashAmount", "totalRealAmount"], Ce = () => {
5205
+ fetch(m).then((u) => u.json()).then((u) => Object.keys(u).forEach((d) => An(d, u[d]))).catch((u) => console.log(u));
5192
5206
  };
5193
- Object.keys(Bn).forEach((c) => Tn(c, Bn[c]));
5194
- const le = (c) => {
5195
- switch (c) {
5207
+ Object.keys(Cn).forEach((u) => An(u, Cn[u]));
5208
+ const fe = (u) => {
5209
+ switch (u) {
5196
5210
  case "balance":
5197
5211
  window.postMessage(
5198
5212
  {
@@ -5200,10 +5214,10 @@ function aa(e, t, n) {
5200
5214
  status: "open"
5201
5215
  },
5202
5216
  window.location.href
5203
- ), n(4, $ = !0), setTimeout(() => n(3, oe = !0), 150);
5217
+ ), n(4, D = !0), setTimeout(() => n(3, ee = !0), 150);
5204
5218
  break;
5205
5219
  case "closebalance":
5206
- n(3, oe = !1), window.postMessage(
5220
+ n(3, ee = !1), window.postMessage(
5207
5221
  {
5208
5222
  type: "BalanceModalStatus",
5209
5223
  status: "close"
@@ -5211,66 +5225,66 @@ function aa(e, t, n) {
5211
5225
  window.location.href
5212
5226
  ), setTimeout(
5213
5227
  () => {
5214
- n(4, $ = !1);
5228
+ n(4, D = !1);
5215
5229
  },
5216
5230
  150
5217
5231
  );
5218
5232
  break;
5219
5233
  }
5220
- }, He = (c) => {
5221
- if (R)
5222
- return Ye(c);
5223
- const d = A || a, p = {
5234
+ }, qe = (u) => {
5235
+ if (L)
5236
+ return be(u);
5237
+ const d = T || a, _ = {
5224
5238
  style: "currency",
5225
- currency: K,
5239
+ currency: ye,
5226
5240
  useGrouping: !0,
5227
- currencyDisplay: I || "code",
5241
+ currencyDisplay: N || "code",
5228
5242
  maximumFractionDigits: W === "" || isNaN(Number(W)) ? 2 : Number(W),
5229
5243
  minimumFractionDigits: V === "" || isNaN(Number(V)) ? 0 : Number(V)
5230
5244
  };
5231
- return new Intl.NumberFormat(d, p).format(c);
5232
- }, Ye = (c) => {
5245
+ return new Intl.NumberFormat(d, _).format(u);
5246
+ }, be = (u) => {
5233
5247
  const d = [];
5234
- let p = "";
5235
- for (const v of R)
5236
- switch (v) {
5248
+ let _ = "";
5249
+ for (const g of L)
5250
+ switch (g) {
5237
5251
  default:
5238
- p += v;
5252
+ _ += g;
5239
5253
  break;
5240
5254
  case "{":
5241
- p && d.push(p), p = "";
5255
+ _ && d.push(_), _ = "";
5242
5256
  break;
5243
5257
  case "}":
5244
- const [T, C] = p.split("|");
5245
- if (p = "", T.toLowerCase() === "currency")
5246
- p = K;
5247
- else if (T.toLowerCase() === "amount") {
5248
- let S = ",", B = ".", N = 2;
5249
- C && (C[0] !== " " && (S = C[0]), C[1] !== " " && (B = C[1]), C[2] !== " " && !isNaN(Number(C[2])) && (N = Number(C[2])));
5250
- let [ee, Ae] = String(Math.floor(c * 10 ** N) / 10 ** N).split(".");
5251
- p += ee[0];
5252
- for (let X = 1; X < ee.length; ++X)
5253
- (ee.length - X) % 3 === 0 ? p += S + ee[X] : p += ee[X];
5254
- Ae && (p += B + Ae);
5258
+ const [B, C] = _.split("|");
5259
+ if (_ = "", B.toLowerCase() === "currency")
5260
+ _ = ye;
5261
+ else if (B.toLowerCase() === "amount") {
5262
+ let y = ",", H = ".", J = 2;
5263
+ C && (C[0] !== " " && (y = C[0]), C[1] !== " " && (H = C[1]), C[2] !== " " && !isNaN(Number(C[2])) && (J = Number(C[2])));
5264
+ let [de, ne] = String(Math.floor(u * 10 ** J) / 10 ** J).split(".");
5265
+ _ += de[0];
5266
+ for (let $ = 1; $ < de.length; ++$)
5267
+ (de.length - $) % 3 === 0 ? _ += y + de[$] : _ += de[$];
5268
+ ne && (_ += H + ne);
5255
5269
  }
5256
- p && d.push(p), p = "";
5270
+ _ && d.push(_), _ = "";
5257
5271
  break;
5258
5272
  }
5259
- return d.push(p), d.join("");
5260
- }, me = async () => {
5261
- n(2, k = !0);
5262
- const c = new URL(`${s}/v1/player/${i}/account`);
5273
+ return d.push(_), d.join("");
5274
+ }, Ye = async () => {
5275
+ n(2, Z = !0);
5276
+ const u = new URL(`${s}/v1/player/${i}/account`);
5263
5277
  try {
5264
- const d = await fetch(c, {
5278
+ const d = await fetch(u, {
5265
5279
  method: "GET",
5266
5280
  headers: { "X-SessionID": o }
5267
- }), p = await d.json();
5281
+ }), _ = await d.json();
5268
5282
  if (d.ok)
5269
- window.postMessage({ type: "BalancedFetched" }, window.location.href), he = p.items, K = he.find((v) => v.displayName === "Casino")?.currency, n(1, x.Total = [{ amount: p.totalAmount[K] }], x), n(
5283
+ window.postMessage({ type: "BalancedFetched" }, window.location.href), ce = _.items, ye = ce.find((g) => g.displayName === "Casino")?.currency, n(1, x.Total = [{ amount: _.totalAmount[ye] }], x), n(
5270
5284
  1,
5271
5285
  x.Real = [
5272
5286
  {
5273
- amount: he.find((v) => v.displayName === "Casino")?.balanceAmount
5287
+ amount: ce.find((g) => g.displayName === "Casino")?.balanceAmount
5274
5288
  }
5275
5289
  ],
5276
5290
  x
@@ -5278,7 +5292,7 @@ function aa(e, t, n) {
5278
5292
  1,
5279
5293
  x.Bonus = [
5280
5294
  {
5281
- amount: he.find((v) => v.displayName === "UBS")?.balanceAmount
5295
+ amount: ce.find((g) => g.displayName === "UBS")?.balanceAmount
5282
5296
  }
5283
5297
  ],
5284
5298
  x
@@ -5288,36 +5302,36 @@ function aa(e, t, n) {
5288
5302
  } catch (d) {
5289
5303
  console.log("Balance error: ", d);
5290
5304
  } finally {
5291
- n(2, k = !1);
5305
+ n(2, Z = !1);
5292
5306
  }
5293
- }, Qe = () => {
5294
- n(2, k = !0);
5295
- const c = new URL(`${s}/v2/player/${i}/balance`), d = new Headers();
5296
- d.append("X-SessionID", o), fetch(c, { method: "GET", headers: d }).then((v) => v.json()).then((v) => {
5297
- v[_] || n(10, _ = ye[0]);
5298
- const T = v.items.find((S) => S.type === "Real" && S.walletAccountType === "Ordinary");
5299
- if (K = T.currency, Z = !!T.productType, n(1, x.Total = [{ amount: 0 }], x), n(1, x.Real = [], x), n(1, x.Bonus = [], x), n(1, x.Credit = [], x), !Z) {
5300
- ge = {
5307
+ }, st = () => {
5308
+ n(2, Z = !0);
5309
+ const u = new URL(`${s}/v2/player/${i}/balance`), d = new Headers();
5310
+ d.append("X-SessionID", o), fetch(u, { method: "GET", headers: d }).then((g) => g.json()).then((g) => {
5311
+ g[E] || n(10, E = ae[0]);
5312
+ const B = g.items.find((y) => y.type === "Real" && y.walletAccountType === "Ordinary");
5313
+ if (ye = B.currency, F = !!B.productType, n(1, x.Total = [{ amount: 0 }], x), n(1, x.Real = [], x), n(1, x.Bonus = [], x), n(1, x.Credit = [], x), !F) {
5314
+ Ae = {
5301
5315
  lastOrdinaryAfterAmount: 0,
5302
5316
  showCreditLineAfterAmount: !1
5303
- }, n(1, x.Total[0].amount = v[_][K], x);
5304
- for (const S of v.items)
5305
- switch (S.type) {
5317
+ }, n(1, x.Total[0].amount = g[E][ye], x);
5318
+ for (const y of g.items)
5319
+ switch (y.type) {
5306
5320
  case "Bonus":
5307
- x.Bonus.length === 0 ? x.Bonus.push({ amount: S.amount }) : n(1, x.Bonus[0].amount += S.amount, x);
5321
+ x.Bonus.length === 0 ? x.Bonus.push({ amount: y.amount }) : n(1, x.Bonus[0].amount += y.amount, x);
5308
5322
  break;
5309
5323
  case "Real":
5310
- if (S.creditLine && x.Credit.length === 0 && x.Credit.push({ amount: S.creditLine }), _ === "totalRealAmount")
5324
+ if (y.creditLine && x.Credit.length === 0 && x.Credit.push({ amount: y.creditLine }), E === "totalRealAmount")
5311
5325
  continue;
5312
- x.Real.length === 0 ? x.Real.push({ amount: S.amount }) : n(1, x.Real[0].amount += S.amount, x);
5326
+ x.Real.length === 0 ? x.Real.push({ amount: y.amount }) : n(1, x.Real[0].amount += y.amount, x);
5313
5327
  break;
5314
5328
  }
5315
- for (const [S, B] of Object.entries(x))
5316
- B.length < 1 && delete x[S];
5317
- n(2, k = !1);
5329
+ for (const [y, H] of Object.entries(x))
5330
+ H.length < 1 && delete x[y];
5331
+ n(2, Z = !1);
5318
5332
  return;
5319
5333
  }
5320
- ge = {
5334
+ Ae = {
5321
5335
  Casino: {
5322
5336
  lastOrdinaryAfterAmount: 0,
5323
5337
  showCreditLineAfterAmount: !1
@@ -5327,202 +5341,202 @@ function aa(e, t, n) {
5327
5341
  showCreditLineAfterAmount: !1
5328
5342
  }
5329
5343
  };
5330
- let C = v.items;
5331
- w && w !== "All" && (C = v.items.filter((S) => S.productType === w));
5332
- for (const S of C) {
5333
- let B;
5334
- switch (S.type) {
5344
+ let C = g.items;
5345
+ S && S !== "All" && (C = g.items.filter((y) => y.productType === S));
5346
+ for (const y of C) {
5347
+ let H;
5348
+ switch (y.type) {
5335
5349
  case "Bonus":
5336
- B = x.Bonus.findIndex((N) => N.productType === S.productType), B > 0 ? n(1, x.Bonus[B].amount += S.amount, x) : x.Bonus.push({
5337
- amount: S.amount,
5338
- productType: S.productType
5350
+ H = x.Bonus.findIndex((J) => J.productType === y.productType), H > 0 ? n(1, x.Bonus[H].amount += y.amount, x) : x.Bonus.push({
5351
+ amount: y.amount,
5352
+ productType: y.productType
5339
5353
  });
5340
5354
  break;
5341
5355
  case "Real":
5342
- S.creditLine && x.Credit.push({
5343
- amount: S.creditLine,
5344
- productType: S.productType
5345
- }), B = x.Real.findIndex((N) => N.productType === S.productType), B > 0 ? n(1, x.Real[B].amount += S.amount, x) : x.Real.push({
5346
- amount: S.amount,
5347
- productType: S.productType
5356
+ y.creditLine && x.Credit.push({
5357
+ amount: y.creditLine,
5358
+ productType: y.productType
5359
+ }), H = x.Real.findIndex((J) => J.productType === y.productType), H > 0 ? n(1, x.Real[H].amount += y.amount, x) : x.Real.push({
5360
+ amount: y.amount,
5361
+ productType: y.productType
5348
5362
  });
5349
5363
  break;
5350
5364
  }
5351
5365
  }
5352
- ut();
5353
- for (const [S, B] of Object.entries(x))
5354
- B.length < 1 && delete x[S];
5355
- n(2, k = !1);
5356
- }).catch((v) => {
5357
- throw n(2, k = !1), console.log("Balance fetch error", v), new Error("Failed to fetch balance data!");
5366
+ Le();
5367
+ for (const [y, H] of Object.entries(x))
5368
+ H.length < 1 && delete x[y];
5369
+ n(2, Z = !1);
5370
+ }).catch((g) => {
5371
+ throw n(2, Z = !1), console.log("Balance fetch error", g), new Error("Failed to fetch balance data!");
5358
5372
  });
5359
- }, Le = () => {
5360
- if (F && F.close(), o.length < 1)
5373
+ }, Qe = () => {
5374
+ if (te && te.close(), o.length < 1)
5361
5375
  return;
5362
- let c, d;
5363
- switch (m) {
5376
+ let u, d;
5377
+ switch (p) {
5364
5378
  case "gm16":
5365
- c = new URL(`${s}/v2/player/${i}/information/updates`), d = (T) => Ke(T);
5379
+ u = new URL(`${s}/v2/player/${i}/information/updates`), d = (B) => Ke(B);
5366
5380
  break;
5367
5381
  case "gmcore":
5368
- c = new URL(`${s}/v1/player/${i}/balance/updates`), d = (T) => Ct(T);
5382
+ u = new URL(`${s}/v1/player/${i}/balance/updates`), d = (B) => Ct(B);
5369
5383
  break;
5370
5384
  }
5371
- const p = {
5385
+ const _ = {
5372
5386
  accept: "text/event-stream",
5373
5387
  "X-SessionId": o
5374
- }, v = new Go.EventSourcePolyfill(c, { headers: p });
5375
- F = v, v.addEventListener("message", d);
5376
- }, st = (c) => {
5388
+ }, g = new ko.EventSourcePolyfill(u, { headers: _ });
5389
+ te = g, g.addEventListener("message", d);
5390
+ }, lt = (u) => {
5377
5391
  let d;
5378
5392
  try {
5379
- d = JSON.parse(c);
5380
- } catch (p) {
5381
- console.log("Balance stream failed: ", p);
5393
+ d = JSON.parse(u);
5394
+ } catch (_) {
5395
+ console.log("Balance stream failed: ", _);
5382
5396
  return;
5383
5397
  }
5384
5398
  return d;
5385
- }, Ct = (c) => {
5386
- const d = st(c.data);
5399
+ }, Ct = (u) => {
5400
+ const d = lt(u.data);
5387
5401
  if (!d) {
5388
- Le();
5402
+ Qe();
5389
5403
  return;
5390
5404
  }
5391
- let p = "0";
5392
- const v = d.balanceChange;
5393
- he = he.map((T) => (v && v[T.id] && (T = {
5394
- ...T,
5395
- balanceAmount: v[T.id].afterAmount
5396
- }), p = (parseFloat(T?.balanceAmount) + parseFloat(p)).toString(), T)), n(1, x.Real = [{ amount: he[0]?.balanceAmount }], x), n(1, x.Bonus = [{ amount: he[1]?.balanceAmount }], x), n(1, x.Total = [{ amount: Number(p) }], x);
5397
- }, Je = (c, d, p) => {
5398
- let v = null;
5399
- switch (p.walletAccountType) {
5405
+ let _ = "0";
5406
+ const g = d.balanceChange;
5407
+ ce = ce.map((B) => (g && g[B.id] && (B = {
5408
+ ...B,
5409
+ balanceAmount: g[B.id].afterAmount
5410
+ }), _ = (parseFloat(B?.balanceAmount) + parseFloat(_)).toString(), B)), n(1, x.Real = [{ amount: ce[0]?.balanceAmount }], x), n(1, x.Bonus = [{ amount: ce[1]?.balanceAmount }], x), n(1, x.Total = [{ amount: Number(_) }], x);
5411
+ }, Je = (u, d, _) => {
5412
+ let g = null;
5413
+ switch (_.walletAccountType) {
5400
5414
  case "Ordinary":
5401
- (p.afterAmount !== p.affectedAmount || d.lastOrdinaryAfterAmount === 0) && (d.lastOrdinaryAfterAmount = p.afterAmount, d.showCreditLineAfterAmount || (v = p.afterAmount));
5415
+ (_.afterAmount !== _.affectedAmount || d.lastOrdinaryAfterAmount === 0) && (d.lastOrdinaryAfterAmount = _.afterAmount, d.showCreditLineAfterAmount || (g = _.afterAmount));
5402
5416
  break;
5403
5417
  case "CreditLine":
5404
- p.afterAmount !== 0 ? (v = p.afterAmount, d.showCreditLineAfterAmount = !0) : (v = d.lastOrdinaryAfterAmount, d.showCreditLineAfterAmount = !1);
5418
+ _.afterAmount !== 0 ? (g = _.afterAmount, d.showCreditLineAfterAmount = !0) : (g = d.lastOrdinaryAfterAmount, d.showCreditLineAfterAmount = !1);
5405
5419
  break;
5406
5420
  default:
5407
- v = p.afterAmount;
5421
+ g = _.afterAmount;
5408
5422
  }
5409
- return v === null ? c : v;
5410
- }, ut = () => {
5411
- switch (_) {
5423
+ return g === null ? u : g;
5424
+ }, Le = () => {
5425
+ switch (E) {
5412
5426
  case "totalCashAmount":
5413
- let c = 0;
5414
- for (const p of ["Real", "Bonus"])
5415
- for (const v of x[p])
5416
- c += Math.max(v.amount, 0);
5417
- n(1, x.Total[0].amount = c, x);
5427
+ let u = 0;
5428
+ for (const _ of ["Real", "Bonus"])
5429
+ for (const g of x[_])
5430
+ u += Math.max(g.amount, 0);
5431
+ n(1, x.Total[0].amount = u, x);
5418
5432
  break;
5419
5433
  case "totalRealAmount":
5420
- if (!Z)
5434
+ if (!F)
5421
5435
  return;
5422
5436
  let d = 0;
5423
- for (const p of x.Real)
5424
- d += p.amount;
5437
+ for (const _ of x.Real)
5438
+ d += _.amount;
5425
5439
  n(1, x.Total[0].amount = d, x);
5426
5440
  }
5427
- }, Ke = (c) => {
5428
- const d = st(c.data);
5441
+ }, Ke = (u) => {
5442
+ const d = lt(u.data);
5429
5443
  if (!d) {
5430
- Le();
5444
+ Qe();
5431
5445
  return;
5432
5446
  }
5433
- if (Be(d?.type) || d.type !== "BALANCE_UPDATE_V2")
5447
+ if (se(d?.type) || d.type !== "BALANCE_UPDATE_V2")
5434
5448
  return;
5435
- const p = d.body.balanceChange;
5436
- for (const [v, T] of Object.entries(p))
5437
- if (_ === "totalRealAmount" && v === "Real" && !Z && n(1, x.Total[0].amount = Je(x.Total[0].amount, ge, T), x), !!x[v])
5438
- for (const C of x[v]) {
5439
- if (!Z) {
5440
- C.amount = v === "Real" ? Je(C.amount, ge, T) : T.afterAmount;
5449
+ const _ = d.body.balanceChange;
5450
+ for (const [g, B] of Object.entries(_))
5451
+ if (E === "totalRealAmount" && g === "Real" && !F && n(1, x.Total[0].amount = Je(x.Total[0].amount, Ae, B), x), !!x[g])
5452
+ for (const C of x[g]) {
5453
+ if (!F) {
5454
+ C.amount = g === "Real" ? Je(C.amount, Ae, B) : B.afterAmount;
5441
5455
  continue;
5442
5456
  }
5443
- T.productType === C.productType && (C.amount = v === "Real" ? Je(C.amount, ge[C.productType], T) : T.afterAmount);
5457
+ B.productType === C.productType && (C.amount = g === "Real" ? Je(C.amount, Ae[C.productType], B) : B.afterAmount);
5444
5458
  }
5445
- ut();
5446
- }, Pe = () => {
5447
- le("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
5448
- }, Be = (c) => c === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, ae = () => {
5449
- ye.includes(_) || (console.error(`Unsupported value ('${_}') for totalcalculationmode parameter. Only the following values are supported ${ye}. Using default value ('${ye[0]}').`), n(10, _ = ye[0]));
5450
- }, Ht = () => {
5451
- switch (Fo(a), ae(), m) {
5459
+ Le();
5460
+ }, ve = () => {
5461
+ fe("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
5462
+ }, se = (u) => u === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, Ht = () => {
5463
+ ae.includes(E) || (console.error(`Unsupported value ('${E}') for totalcalculationmode parameter. Only the following values are supported ${ae}. Using default value ('${ae[0]}').`), n(10, E = ae[0]));
5464
+ }, Ot = () => {
5465
+ switch (jo(a), Ht(), p) {
5452
5466
  case "gmcore":
5453
- me();
5467
+ Ye();
5454
5468
  break;
5455
5469
  case "gm16":
5456
- Qe();
5470
+ st();
5457
5471
  break;
5458
5472
  default:
5459
- throw Error(`Invalid apiversion attribute: ${m}`);
5473
+ throw Error(`Invalid apiversion attribute: ${p}`);
5460
5474
  }
5461
- }, lt = (c) => c.data && c.data.type === "LogoutSuccessfull" && F.close(), Ot = () => {
5475
+ }, ut = (u) => u.data && u.data.type === "LogoutSuccessfull" && te.close(), ct = () => {
5462
5476
  window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
5463
5477
  };
5464
- Rr(() => (window.addEventListener("message", lt, !1), n(5, U = ta(q)), () => {
5465
- window.removeEventListener("message", lt), F && F.close();
5478
+ Ir(() => (window.addEventListener("message", ut, !1), n(5, X = ra(k)), () => {
5479
+ window.emMessageBus && Q && Q.unsubscribe(), window.removeEventListener("message", ut), te && te.close();
5466
5480
  }));
5467
- const ct = () => le("balance"), h = () => le("closebalance"), y = () => Pe(), E = () => le("closebalance");
5468
- function g(c) {
5469
- Gt[c ? "unshift" : "push"](() => {
5470
- D = c, n(0, D);
5481
+ const h = () => fe("balance"), v = () => fe("closebalance"), w = () => ve(), b = () => fe("closebalance");
5482
+ function A(u) {
5483
+ jt[u ? "unshift" : "push"](() => {
5484
+ U = u, n(0, U);
5471
5485
  });
5472
5486
  }
5473
- return e.$$set = (c) => {
5474
- "userid" in c && n(11, i = c.userid), "session" in c && n(12, o = c.session), "endpoint" in c && n(13, s = c.endpoint), "lang" in c && n(14, a = c.lang), "mbsource" in c && n(15, l = c.mbsource), "clientstyling" in c && n(16, u = c.clientstyling), "clientstylingurl" in c && n(17, f = c.clientstylingurl), "translationurl" in c && n(18, b = c.translationurl), "gmversion" in c && n(19, m = c.gmversion), "displaybalanceoption" in c && n(20, w = c.displaybalanceoption), "totalcalculationmode" in c && n(10, _ = c.totalcalculationmode), "currencylocale" in c && n(21, A = c.currencylocale), "currencydisplay" in c && n(22, I = c.currencydisplay), "maximumfractiondigits" in c && n(23, W = c.maximumfractiondigits), "minimumfractiondigits" in c && n(24, V = c.minimumfractiondigits), "customdisplayformat" in c && n(25, R = c.customdisplayformat);
5487
+ return e.$$set = (u) => {
5488
+ "userid" in u && n(11, i = u.userid), "session" in u && n(12, o = u.session), "endpoint" in u && n(13, s = u.endpoint), "lang" in u && n(14, a = u.lang), "mbsource" in u && n(15, c = u.mbsource), "clientstyling" in u && n(16, l = u.clientstyling), "clientstylingurl" in u && n(17, f = u.clientstylingurl), "translationurl" in u && n(18, m = u.translationurl), "gmversion" in u && n(19, p = u.gmversion), "displaybalanceoption" in u && n(20, S = u.displaybalanceoption), "totalcalculationmode" in u && n(10, E = u.totalcalculationmode), "currencylocale" in u && n(21, T = u.currencylocale), "currencydisplay" in u && n(22, N = u.currencydisplay), "maximumfractiondigits" in u && n(23, W = u.maximumfractiondigits), "minimumfractiondigits" in u && n(24, V = u.minimumfractiondigits), "customdisplayformat" in u && n(25, L = u.customdisplayformat);
5475
5489
  }, e.$$.update = () => {
5476
5490
  e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
5477
- 1603584 && s && i && o && a && m && w && Ht(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
5478
- 538624 && s && i && o && m && Le(), e.$$.dirty[0] & /*translationurl*/
5479
- 262144 && b && pe(), e.$$.dirty[0] & /*balances*/
5480
- 2 && x.Total && Ot(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5481
- 65537 && u && D && zr(D, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5482
- 131073 && f && D && Wr(D, f), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
5483
- 32769 && l && D && Zr(D, `${l}.Style`);
5491
+ 1603584 && s && i && o && a && p && S && Ot(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
5492
+ 538624 && s && i && o && p && Qe(), e.$$.dirty[0] & /*translationurl*/
5493
+ 262144 && m && Ce(), e.$$.dirty[0] & /*balances*/
5494
+ 2 && x.Total && ct(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5495
+ 65537 && l && U && qr(U, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5496
+ 131073 && f && U && Yr(U, f), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
5497
+ 32769 && c && U && Qr(U, `${c}.Style`);
5484
5498
  }, [
5485
- D,
5486
- x,
5487
- k,
5488
- oe,
5489
- $,
5490
5499
  U,
5500
+ x,
5501
+ Z,
5502
+ ee,
5503
+ D,
5504
+ X,
5491
5505
  r,
5492
- le,
5493
- He,
5494
- Pe,
5495
- _,
5506
+ fe,
5507
+ qe,
5508
+ ve,
5509
+ E,
5496
5510
  i,
5497
5511
  o,
5498
5512
  s,
5499
5513
  a,
5514
+ c,
5500
5515
  l,
5501
- u,
5502
5516
  f,
5503
- b,
5504
5517
  m,
5505
- w,
5506
- A,
5507
- I,
5518
+ p,
5519
+ S,
5520
+ T,
5521
+ N,
5508
5522
  W,
5509
5523
  V,
5510
- R,
5511
- ct,
5524
+ L,
5512
5525
  h,
5513
- y,
5514
- E,
5515
- g
5526
+ v,
5527
+ w,
5528
+ b,
5529
+ A
5516
5530
  ];
5517
5531
  }
5518
- class sa extends Vr {
5532
+ class ua extends Wr {
5519
5533
  constructor(t) {
5520
- super(), kr(
5534
+ super(), Xr(
5521
5535
  this,
5522
5536
  t,
5523
- aa,
5524
- oa,
5525
- jn,
5537
+ la,
5538
+ sa,
5539
+ $n,
5526
5540
  {
5527
5541
  userid: 11,
5528
5542
  session: 12,
@@ -5541,7 +5555,7 @@ class sa extends Vr {
5541
5555
  minimumfractiondigits: 24,
5542
5556
  customdisplayformat: 25
5543
5557
  },
5544
- na,
5558
+ ia,
5545
5559
  [-1, -1]
5546
5560
  );
5547
5561
  }
@@ -5549,100 +5563,100 @@ class sa extends Vr {
5549
5563
  return this.$$.ctx[11];
5550
5564
  }
5551
5565
  set userid(t) {
5552
- this.$$set({ userid: t }), Q();
5566
+ this.$$set({ userid: t }), Y();
5553
5567
  }
5554
5568
  get session() {
5555
5569
  return this.$$.ctx[12];
5556
5570
  }
5557
5571
  set session(t) {
5558
- this.$$set({ session: t }), Q();
5572
+ this.$$set({ session: t }), Y();
5559
5573
  }
5560
5574
  get endpoint() {
5561
5575
  return this.$$.ctx[13];
5562
5576
  }
5563
5577
  set endpoint(t) {
5564
- this.$$set({ endpoint: t }), Q();
5578
+ this.$$set({ endpoint: t }), Y();
5565
5579
  }
5566
5580
  get lang() {
5567
5581
  return this.$$.ctx[14];
5568
5582
  }
5569
5583
  set lang(t) {
5570
- this.$$set({ lang: t }), Q();
5584
+ this.$$set({ lang: t }), Y();
5571
5585
  }
5572
5586
  get mbsource() {
5573
5587
  return this.$$.ctx[15];
5574
5588
  }
5575
5589
  set mbsource(t) {
5576
- this.$$set({ mbsource: t }), Q();
5590
+ this.$$set({ mbsource: t }), Y();
5577
5591
  }
5578
5592
  get clientstyling() {
5579
5593
  return this.$$.ctx[16];
5580
5594
  }
5581
5595
  set clientstyling(t) {
5582
- this.$$set({ clientstyling: t }), Q();
5596
+ this.$$set({ clientstyling: t }), Y();
5583
5597
  }
5584
5598
  get clientstylingurl() {
5585
5599
  return this.$$.ctx[17];
5586
5600
  }
5587
5601
  set clientstylingurl(t) {
5588
- this.$$set({ clientstylingurl: t }), Q();
5602
+ this.$$set({ clientstylingurl: t }), Y();
5589
5603
  }
5590
5604
  get translationurl() {
5591
5605
  return this.$$.ctx[18];
5592
5606
  }
5593
5607
  set translationurl(t) {
5594
- this.$$set({ translationurl: t }), Q();
5608
+ this.$$set({ translationurl: t }), Y();
5595
5609
  }
5596
5610
  get gmversion() {
5597
5611
  return this.$$.ctx[19];
5598
5612
  }
5599
5613
  set gmversion(t) {
5600
- this.$$set({ gmversion: t }), Q();
5614
+ this.$$set({ gmversion: t }), Y();
5601
5615
  }
5602
5616
  get displaybalanceoption() {
5603
5617
  return this.$$.ctx[20];
5604
5618
  }
5605
5619
  set displaybalanceoption(t) {
5606
- this.$$set({ displaybalanceoption: t }), Q();
5620
+ this.$$set({ displaybalanceoption: t }), Y();
5607
5621
  }
5608
5622
  get totalcalculationmode() {
5609
5623
  return this.$$.ctx[10];
5610
5624
  }
5611
5625
  set totalcalculationmode(t) {
5612
- this.$$set({ totalcalculationmode: t }), Q();
5626
+ this.$$set({ totalcalculationmode: t }), Y();
5613
5627
  }
5614
5628
  get currencylocale() {
5615
5629
  return this.$$.ctx[21];
5616
5630
  }
5617
5631
  set currencylocale(t) {
5618
- this.$$set({ currencylocale: t }), Q();
5632
+ this.$$set({ currencylocale: t }), Y();
5619
5633
  }
5620
5634
  get currencydisplay() {
5621
5635
  return this.$$.ctx[22];
5622
5636
  }
5623
5637
  set currencydisplay(t) {
5624
- this.$$set({ currencydisplay: t }), Q();
5638
+ this.$$set({ currencydisplay: t }), Y();
5625
5639
  }
5626
5640
  get maximumfractiondigits() {
5627
5641
  return this.$$.ctx[23];
5628
5642
  }
5629
5643
  set maximumfractiondigits(t) {
5630
- this.$$set({ maximumfractiondigits: t }), Q();
5644
+ this.$$set({ maximumfractiondigits: t }), Y();
5631
5645
  }
5632
5646
  get minimumfractiondigits() {
5633
5647
  return this.$$.ctx[24];
5634
5648
  }
5635
5649
  set minimumfractiondigits(t) {
5636
- this.$$set({ minimumfractiondigits: t }), Q();
5650
+ this.$$set({ minimumfractiondigits: t }), Y();
5637
5651
  }
5638
5652
  get customdisplayformat() {
5639
5653
  return this.$$.ctx[25];
5640
5654
  }
5641
5655
  set customdisplayformat(t) {
5642
- this.$$set({ customdisplayformat: t }), Q();
5656
+ this.$$set({ customdisplayformat: t }), Y();
5643
5657
  }
5644
5658
  }
5645
- $r(sa, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencylocale: {}, currencydisplay: {}, maximumfractiondigits: {}, minimumfractiondigits: {}, customdisplayformat: {} }, [], [], !0);
5659
+ zr(ua, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencylocale: {}, currencydisplay: {}, maximumfractiondigits: {}, minimumfractiondigits: {}, customdisplayformat: {} }, [], [], !0);
5646
5660
  export {
5647
- sa as P
5661
+ ua as P
5648
5662
  };