@everymatrix/player-account-balance-modal-nd 1.61.1 → 1.62.1

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,24 +1,24 @@
1
1
  function se() {
2
2
  }
3
- function Sn(e) {
3
+ function Cn(e) {
4
4
  return e();
5
5
  }
6
- function tn() {
6
+ function rn() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
- function je(e) {
10
- e.forEach(Sn);
9
+ function Ve(e) {
10
+ e.forEach(Cn);
11
11
  }
12
- function Qt(e) {
12
+ function Yt(e) {
13
13
  return typeof e == "function";
14
14
  }
15
- function An(e, t) {
15
+ function Hn(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
- function ir(e) {
18
+ function ar(e) {
19
19
  return Object.keys(e).length === 0;
20
20
  }
21
- function Cn(e, ...t) {
21
+ function On(e, ...t) {
22
22
  if (e == null) {
23
23
  for (const r of t)
24
24
  r(void 0);
@@ -27,20 +27,20 @@ function Cn(e, ...t) {
27
27
  const n = e.subscribe(...t);
28
28
  return n.unsubscribe ? () => n.unsubscribe() : n;
29
29
  }
30
- function or(e, t, n) {
31
- e.$$.on_destroy.push(Cn(t, n));
30
+ function sr(e, t, n) {
31
+ e.$$.on_destroy.push(On(t, n));
32
32
  }
33
33
  function C(e, t) {
34
34
  e.appendChild(t);
35
35
  }
36
- function ar(e, t, n) {
37
- const r = sr(e);
36
+ function lr(e, t, n) {
37
+ const r = ur(e);
38
38
  if (!r.getElementById(t)) {
39
39
  const i = j("style");
40
- i.id = t, i.textContent = n, lr(r, i);
40
+ i.id = t, i.textContent = n, cr(r, i);
41
41
  }
42
42
  }
43
- function sr(e) {
43
+ function ur(e) {
44
44
  if (!e)
45
45
  return document;
46
46
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -50,27 +50,27 @@ function sr(e) {
50
50
  t
51
51
  ) : e.ownerDocument;
52
52
  }
53
- function lr(e, t) {
53
+ function cr(e, t) {
54
54
  return C(
55
55
  /** @type {Document} */
56
56
  e.head || e,
57
57
  t
58
58
  ), t.sheet;
59
59
  }
60
- function me(e, t, n) {
60
+ function ge(e, t, n) {
61
61
  e.insertBefore(t, n || null);
62
62
  }
63
63
  function fe(e) {
64
64
  e.parentNode && e.parentNode.removeChild(e);
65
65
  }
66
- function Hn(e, t) {
66
+ function Rn(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 nn(e) {
73
+ function on(e) {
74
74
  return document.createElementNS("http://www.w3.org/2000/svg", e);
75
75
  }
76
76
  function he(e) {
@@ -79,23 +79,23 @@ function he(e) {
79
79
  function de() {
80
80
  return he(" ");
81
81
  }
82
- function ur() {
82
+ function hr() {
83
83
  return he("");
84
84
  }
85
- function pt(e, t, n, r) {
85
+ function mt(e, t, n, r) {
86
86
  return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
87
87
  }
88
88
  function N(e, t, n) {
89
89
  n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
90
90
  }
91
- function cr(e) {
91
+ function fr(e) {
92
92
  return Array.from(e.childNodes);
93
93
  }
94
- function Ee(e, t) {
94
+ function _e(e, t) {
95
95
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
96
96
  t);
97
97
  }
98
- function hr(e) {
98
+ function dr(e) {
99
99
  const t = {};
100
100
  return e.childNodes.forEach(
101
101
  /** @param {Element} node */
@@ -104,90 +104,90 @@ function hr(e) {
104
104
  }
105
105
  ), t;
106
106
  }
107
- let et;
108
- function Ke(e) {
109
- et = e;
107
+ let tt;
108
+ function et(e) {
109
+ tt = e;
110
110
  }
111
- function fr() {
112
- if (!et)
111
+ function pr() {
112
+ if (!tt)
113
113
  throw new Error("Function called outside component initialization");
114
- return et;
114
+ return tt;
115
115
  }
116
- function dr(e) {
117
- fr().$$.on_mount.push(e);
116
+ function mr(e) {
117
+ pr().$$.on_mount.push(e);
118
118
  }
119
- const De = [], Dt = [];
120
- let Ue = [];
121
- const rn = [], pr = /* @__PURE__ */ Promise.resolve();
122
- let Ut = !1;
123
- function mr() {
124
- Ut || (Ut = !0, pr.then(J));
119
+ const Ue = [], Ft = [];
120
+ let Fe = [];
121
+ const an = [], gr = /* @__PURE__ */ Promise.resolve();
122
+ let Gt = !1;
123
+ function br() {
124
+ Gt || (Gt = !0, gr.then(J));
125
125
  }
126
- function Ft(e) {
127
- Ue.push(e);
126
+ function $t(e) {
127
+ Fe.push(e);
128
128
  }
129
- const Ot = /* @__PURE__ */ new Set();
129
+ const Lt = /* @__PURE__ */ new Set();
130
130
  let Ie = 0;
131
131
  function J() {
132
132
  if (Ie !== 0)
133
133
  return;
134
- const e = et;
134
+ const e = tt;
135
135
  do {
136
136
  try {
137
- for (; Ie < De.length; ) {
138
- const t = De[Ie];
139
- Ie++, Ke(t), gr(t.$$);
137
+ for (; Ie < Ue.length; ) {
138
+ const t = Ue[Ie];
139
+ Ie++, et(t), yr(t.$$);
140
140
  }
141
141
  } catch (t) {
142
- throw De.length = 0, Ie = 0, t;
142
+ throw Ue.length = 0, Ie = 0, t;
143
143
  }
144
- for (Ke(null), De.length = 0, Ie = 0; Dt.length; )
145
- Dt.pop()();
146
- for (let t = 0; t < Ue.length; t += 1) {
147
- const n = Ue[t];
148
- Ot.has(n) || (Ot.add(n), n());
144
+ for (et(null), Ue.length = 0, Ie = 0; Ft.length; )
145
+ Ft.pop()();
146
+ for (let t = 0; t < Fe.length; t += 1) {
147
+ const n = Fe[t];
148
+ Lt.has(n) || (Lt.add(n), n());
149
149
  }
150
- Ue.length = 0;
151
- } while (De.length);
152
- for (; rn.length; )
153
- rn.pop()();
154
- Ut = !1, Ot.clear(), Ke(e);
150
+ Fe.length = 0;
151
+ } while (Ue.length);
152
+ for (; an.length; )
153
+ an.pop()();
154
+ Gt = !1, Lt.clear(), et(e);
155
155
  }
156
- function gr(e) {
156
+ function yr(e) {
157
157
  if (e.fragment !== null) {
158
- e.update(), je(e.before_update);
158
+ e.update(), Ve(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(Ft);
160
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($t);
161
161
  }
162
162
  }
163
- function br(e) {
163
+ function vr(e) {
164
164
  const t = [], n = [];
165
- Ue.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Ue = 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 yr = /* @__PURE__ */ new Set();
168
- function vr(e, t) {
169
- e && e.i && (yr.delete(e), e.i(t));
167
+ const Er = /* @__PURE__ */ new Set();
168
+ function _r(e, t) {
169
+ e && e.i && (Er.delete(e), e.i(t));
170
170
  }
171
- function mt(e) {
171
+ function gt(e) {
172
172
  return e?.length !== void 0 ? e : Array.from(e);
173
173
  }
174
- function Er(e, t, n) {
174
+ function xr(e, t, n) {
175
175
  const { fragment: r, after_update: i } = e.$$;
176
- r && r.m(t, n), Ft(() => {
177
- const o = e.$$.on_mount.map(Sn).filter(Qt);
178
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : je(o), e.$$.on_mount = [];
179
- }), i.forEach(Ft);
176
+ r && r.m(t, n), $t(() => {
177
+ const o = e.$$.on_mount.map(Cn).filter(Yt);
178
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Ve(o), e.$$.on_mount = [];
179
+ }), i.forEach($t);
180
180
  }
181
- function xr(e, t) {
181
+ function Br(e, t) {
182
182
  const n = e.$$;
183
- n.fragment !== null && (br(n.after_update), je(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
183
+ n.fragment !== null && (vr(n.after_update), Ve(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
184
184
  }
185
- function _r(e, t) {
186
- e.$$.dirty[0] === -1 && (De.push(e), mr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
185
+ function Tr(e, t) {
186
+ e.$$.dirty[0] === -1 && (Ue.push(e), br(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
187
187
  }
188
- function Br(e, t, n, r, i, o, l = null, s = [-1]) {
189
- const h = et;
190
- Ke(e);
188
+ function wr(e, t, n, r, i, o, l = null, s = [-1]) {
189
+ const h = tt;
190
+ et(e);
191
191
  const u = e.$$ = {
192
192
  fragment: null,
193
193
  ctx: [],
@@ -195,7 +195,7 @@ function Br(e, t, n, r, i, o, l = null, s = [-1]) {
195
195
  props: o,
196
196
  update: se,
197
197
  not_equal: i,
198
- bound: tn(),
198
+ bound: rn(),
199
199
  // lifecycle
200
200
  on_mount: [],
201
201
  on_destroy: [],
@@ -204,28 +204,28 @@ function Br(e, t, n, r, i, o, l = null, s = [-1]) {
204
204
  after_update: [],
205
205
  context: new Map(t.context || (h ? h.$$.context : [])),
206
206
  // everything else
207
- callbacks: tn(),
207
+ callbacks: rn(),
208
208
  dirty: s,
209
209
  skip_bound: !1,
210
210
  root: t.target || h.$$.root
211
211
  };
212
212
  l && l(u.root);
213
213
  let d = !1;
214
- if (u.ctx = n ? n(e, t.props || {}, (m, g, ..._) => {
215
- const B = _.length ? _[0] : g;
216
- return u.ctx && i(u.ctx[m], u.ctx[m] = B) && (!u.skip_bound && u.bound[m] && u.bound[m](B), d && _r(e, m)), g;
217
- }) : [], u.update(), d = !0, je(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
214
+ if (u.ctx = n ? n(e, t.props || {}, (m, g, ...x) => {
215
+ const B = x.length ? x[0] : g;
216
+ return u.ctx && i(u.ctx[m], u.ctx[m] = B) && (!u.skip_bound && u.bound[m] && u.bound[m](B), d && Tr(e, m)), g;
217
+ }) : [], u.update(), d = !0, Ve(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
218
218
  if (t.hydrate) {
219
- const m = cr(t.target);
219
+ const m = fr(t.target);
220
220
  u.fragment && u.fragment.l(m), m.forEach(fe);
221
221
  } else
222
222
  u.fragment && u.fragment.c();
223
- t.intro && vr(e.$$.fragment), Er(e, t.target, t.anchor), J();
223
+ t.intro && _r(e.$$.fragment), xr(e, t.target, t.anchor), J();
224
224
  }
225
- Ke(h);
225
+ et(h);
226
226
  }
227
- let On;
228
- typeof HTMLElement == "function" && (On = class extends HTMLElement {
227
+ let Ln;
228
+ typeof HTMLElement == "function" && (Ln = class extends HTMLElement {
229
229
  /** The Svelte component constructor */
230
230
  $$ctor;
231
231
  /** Slots */
@@ -274,7 +274,7 @@ typeof HTMLElement == "function" && (On = class extends HTMLElement {
274
274
  * @param {HTMLElement} [anchor]
275
275
  */
276
276
  m: function(h, u) {
277
- me(h, o, u);
277
+ ge(h, o, u);
278
278
  },
279
279
  d: function(h) {
280
280
  h && fe(o);
@@ -284,12 +284,12 @@ typeof HTMLElement == "function" && (On = class extends HTMLElement {
284
284
  };
285
285
  if (await Promise.resolve(), !this.$$cn || this.$$c)
286
286
  return;
287
- const t = {}, n = hr(this);
287
+ const t = {}, n = dr(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) {
291
291
  const o = this.$$g_p(i.name);
292
- o in this.$$d || (this.$$d[o] = ct(o, i.value, this.$$p_d, "toProp"));
292
+ o in this.$$d || (this.$$d[o] = ht(o, i.value, this.$$p_d, "toProp"));
293
293
  }
294
294
  for (const i in this.$$p_d)
295
295
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -307,7 +307,7 @@ typeof HTMLElement == "function" && (On = class extends HTMLElement {
307
307
  this.$$r = !0;
308
308
  for (const i in this.$$p_d)
309
309
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
310
- const o = ct(
310
+ const o = ht(
311
311
  i,
312
312
  this.$$d[i],
313
313
  this.$$p_d,
@@ -329,7 +329,7 @@ typeof HTMLElement == "function" && (On = class extends HTMLElement {
329
329
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
330
330
  // and setting attributes through setAttribute etc, this is helpful
331
331
  attributeChangedCallback(e, t, n) {
332
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = ct(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
332
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = ht(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
333
333
  }
334
334
  disconnectedCallback() {
335
335
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -342,7 +342,7 @@ typeof HTMLElement == "function" && (On = class extends HTMLElement {
342
342
  ) || e;
343
343
  }
344
344
  });
345
- function ct(e, t, n, r) {
345
+ function ht(e, t, n, r) {
346
346
  const i = n[e]?.type;
347
347
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
348
348
  return t;
@@ -371,8 +371,8 @@ function ct(e, t, n, r) {
371
371
  return t;
372
372
  }
373
373
  }
374
- function Tr(e, t, n, r, i, o) {
375
- let l = class extends On {
374
+ function Sr(e, t, n, r, i, o) {
375
+ let l = class extends Ln {
376
376
  constructor() {
377
377
  super(e, n, i), this.$$p_d = t;
378
378
  }
@@ -388,7 +388,7 @@ function Tr(e, t, n, r, i, o) {
388
388
  return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
389
389
  },
390
390
  set(h) {
391
- h = ct(s, h, t), this.$$d[s] = h, this.$$c?.$set({ [s]: h });
391
+ h = ht(s, h, t), this.$$d[s] = h, this.$$c?.$set({ [s]: h });
392
392
  }
393
393
  });
394
394
  }), r.forEach((s) => {
@@ -400,7 +400,7 @@ function Tr(e, t, n, r, i, o) {
400
400
  }), e.element = /** @type {any} */
401
401
  l, l;
402
402
  }
403
- class wr {
403
+ class Ar {
404
404
  /**
405
405
  * ### PRIVATE API
406
406
  *
@@ -419,7 +419,7 @@ class wr {
419
419
  $$set = void 0;
420
420
  /** @returns {void} */
421
421
  $destroy() {
422
- xr(this, 1), this.$destroy = se;
422
+ Br(this, 1), this.$destroy = se;
423
423
  }
424
424
  /**
425
425
  * @template {Extract<keyof Events, string>} K
@@ -428,7 +428,7 @@ class wr {
428
428
  * @returns {() => void}
429
429
  */
430
430
  $on(t, n) {
431
- if (!Qt(n))
431
+ if (!Yt(n))
432
432
  return se;
433
433
  const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
434
434
  return r.push(n), () => {
@@ -441,18 +441,18 @@ class wr {
441
441
  * @returns {void}
442
442
  */
443
443
  $set(t) {
444
- this.$$set && !ir(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
444
+ this.$$set && !ar(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
445
445
  }
446
446
  }
447
- const Sr = "4";
448
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Sr);
449
- function Ar(e, t) {
447
+ const Cr = "4";
448
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Cr);
449
+ function Hr(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 Cr(e, t) {
455
+ function Or(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 Cr(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 Hr(e, t, n) {
464
+ function Rr(e, t, n) {
465
465
  if (window.emMessageBus) {
466
466
  const r = document.createElement("style");
467
467
  window.emMessageBus.subscribe(t, (i) => {
@@ -469,24 +469,24 @@ function Hr(e, t, n) {
469
469
  });
470
470
  }
471
471
  }
472
- const Pe = [];
473
- function Or(e, t) {
472
+ const De = [];
473
+ function Lr(e, t) {
474
474
  return {
475
- subscribe: yt(e, t).subscribe
475
+ subscribe: Et(e, t).subscribe
476
476
  };
477
477
  }
478
- function yt(e, t = se) {
478
+ function Et(e, t = se) {
479
479
  let n;
480
480
  const r = /* @__PURE__ */ new Set();
481
481
  function i(s) {
482
- if (An(e, s) && (e = s, n)) {
483
- const h = !Pe.length;
482
+ if (Hn(e, s) && (e = s, n)) {
483
+ const h = !De.length;
484
484
  for (const u of r)
485
- u[1](), Pe.push(u, e);
485
+ u[1](), De.push(u, e);
486
486
  if (h) {
487
- for (let u = 0; u < Pe.length; u += 2)
488
- Pe[u][0](Pe[u + 1]);
489
- Pe.length = 0;
487
+ for (let u = 0; u < De.length; u += 2)
488
+ De[u][0](De[u + 1]);
489
+ De.length = 0;
490
490
  }
491
491
  }
492
492
  }
@@ -501,12 +501,12 @@ function yt(e, t = se) {
501
501
  }
502
502
  return { set: i, update: o, subscribe: l };
503
503
  }
504
- function Ve(e, t, n) {
504
+ function Xe(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 Or(n, (l, s) => {
509
+ return Lr(n, (l, s) => {
510
510
  let h = !1;
511
511
  const u = [];
512
512
  let d = 0, m = se;
@@ -515,12 +515,12 @@ function Ve(e, t, n) {
515
515
  return;
516
516
  m();
517
517
  const B = t(r ? u[0] : u, l, s);
518
- o ? l(B) : m = Qt(B) ? B : se;
519
- }, _ = i.map(
520
- (B, T) => Cn(
518
+ o ? l(B) : m = Yt(B) ? B : se;
519
+ }, x = i.map(
520
+ (B, T) => On(
521
521
  B,
522
- (x) => {
523
- u[T] = x, d &= ~(1 << T), h && g();
522
+ (_) => {
523
+ u[T] = _, d &= ~(1 << T), h && g();
524
524
  },
525
525
  () => {
526
526
  d |= 1 << T;
@@ -528,127 +528,113 @@ function Ve(e, t, n) {
528
528
  )
529
529
  );
530
530
  return h = !0, g(), function() {
531
- je(_), m(), h = !1;
531
+ Ve(x), m(), h = !1;
532
532
  };
533
533
  });
534
534
  }
535
- var Rr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
536
- function Lr(e) {
535
+ var Mr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
536
+ function Nr(e) {
537
537
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
538
538
  }
539
- var Mr = function(t) {
540
- return Nr(t) && !Ir(t);
539
+ var Pr = function(t) {
540
+ return Ir(t) && !Dr(t);
541
541
  };
542
- function Nr(e) {
542
+ function Ir(e) {
543
543
  return !!e && typeof e == "object";
544
544
  }
545
- function Ir(e) {
545
+ function Dr(e) {
546
546
  var t = Object.prototype.toString.call(e);
547
- return t === "[object RegExp]" || t === "[object Date]" || Ur(e);
547
+ return t === "[object RegExp]" || t === "[object Date]" || Gr(e);
548
548
  }
549
- var Pr = typeof Symbol == "function" && Symbol.for, Dr = Pr ? Symbol.for("react.element") : 60103;
550
- function Ur(e) {
551
- return e.$$typeof === Dr;
549
+ var Ur = typeof Symbol == "function" && Symbol.for, Fr = Ur ? Symbol.for("react.element") : 60103;
550
+ function Gr(e) {
551
+ return e.$$typeof === Fr;
552
552
  }
553
- function Fr(e) {
553
+ function $r(e) {
554
554
  return Array.isArray(e) ? [] : {};
555
555
  }
556
- function tt(e, t) {
557
- return t.clone !== !1 && t.isMergeableObject(e) ? Fe(Fr(e), e, t) : e;
556
+ function nt(e, t) {
557
+ return t.clone !== !1 && t.isMergeableObject(e) ? Ge($r(e), e, t) : e;
558
558
  }
559
- function Gr(e, t, n) {
559
+ function jr(e, t, n) {
560
560
  return e.concat(t).map(function(r) {
561
- return tt(r, n);
561
+ return nt(r, n);
562
562
  });
563
563
  }
564
- function $r(e, t) {
564
+ function kr(e, t) {
565
565
  if (!t.customMerge)
566
- return Fe;
566
+ return Ge;
567
567
  var n = t.customMerge(e);
568
- return typeof n == "function" ? n : Fe;
568
+ return typeof n == "function" ? n : Ge;
569
569
  }
570
- function kr(e) {
570
+ function Vr(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 on(e) {
576
- return Object.keys(e).concat(kr(e));
575
+ function sn(e) {
576
+ return Object.keys(e).concat(Vr(e));
577
577
  }
578
- function Rn(e, t) {
578
+ function Mn(e, t) {
579
579
  try {
580
580
  return t in e;
581
581
  } catch {
582
582
  return !1;
583
583
  }
584
584
  }
585
- function jr(e, t) {
586
- return Rn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
585
+ function Xr(e, t) {
586
+ return Mn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
587
587
  }
588
- function Vr(e, t, n) {
588
+ function zr(e, t, n) {
589
589
  var r = {};
590
- return n.isMergeableObject(e) && on(e).forEach(function(i) {
591
- r[i] = tt(e[i], n);
592
- }), on(t).forEach(function(i) {
593
- jr(e, i) || (Rn(e, i) && n.isMergeableObject(t[i]) ? r[i] = $r(i, n)(e[i], t[i], n) : r[i] = tt(t[i], n));
590
+ return n.isMergeableObject(e) && sn(e).forEach(function(i) {
591
+ r[i] = nt(e[i], n);
592
+ }), sn(t).forEach(function(i) {
593
+ Xr(e, i) || (Mn(e, i) && n.isMergeableObject(t[i]) ? r[i] = kr(i, n)(e[i], t[i], n) : r[i] = nt(t[i], n));
594
594
  }), r;
595
595
  }
596
- function Fe(e, t, n) {
597
- n = n || {}, n.arrayMerge = n.arrayMerge || Gr, n.isMergeableObject = n.isMergeableObject || Mr, n.cloneUnlessOtherwiseSpecified = tt;
596
+ function Ge(e, t, n) {
597
+ n = n || {}, n.arrayMerge = n.arrayMerge || jr, n.isMergeableObject = n.isMergeableObject || Pr, n.cloneUnlessOtherwiseSpecified = nt;
598
598
  var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
599
- return o ? r ? n.arrayMerge(e, t, n) : Vr(e, t, n) : tt(t, n);
599
+ return o ? r ? n.arrayMerge(e, t, n) : zr(e, t, n) : nt(t, n);
600
600
  }
601
- Fe.all = function(t, n) {
601
+ Ge.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 Fe(r, i, n);
605
+ return Ge(r, i, n);
606
606
  }, {});
607
607
  };
608
- var Xr = Fe, zr = Xr;
609
- const Wr = /* @__PURE__ */ Lr(zr);
610
- /*! *****************************************************************************
611
- Copyright (c) Microsoft Corporation.
612
-
613
- Permission to use, copy, modify, and/or distribute this software for any
614
- purpose with or without fee is hereby granted.
615
-
616
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
617
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
618
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
619
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
620
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
621
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
622
- PERFORMANCE OF THIS SOFTWARE.
623
- ***************************************************************************** */
624
- var Gt = function(e, t) {
625
- return Gt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
608
+ var Wr = Ge, Zr = Wr;
609
+ const qr = /* @__PURE__ */ Nr(Zr);
610
+ var jt = function(e, t) {
611
+ return jt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
626
612
  n.__proto__ = r;
627
613
  } || function(n, r) {
628
614
  for (var i in r)
629
615
  Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
630
- }, Gt(e, t);
616
+ }, jt(e, t);
631
617
  };
632
- function vt(e, t) {
618
+ function _t(e, t) {
633
619
  if (typeof t != "function" && t !== null)
634
620
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
635
- Gt(e, t);
621
+ jt(e, t);
636
622
  function n() {
637
623
  this.constructor = e;
638
624
  }
639
625
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
640
626
  }
641
- var I = function() {
642
- return I = Object.assign || function(t) {
627
+ var me = function() {
628
+ return me = Object.assign || function(t) {
643
629
  for (var n, r = 1, i = arguments.length; r < i; r++) {
644
630
  n = arguments[r];
645
631
  for (var o in n)
646
632
  Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
647
633
  }
648
634
  return t;
649
- }, I.apply(this, arguments);
635
+ }, me.apply(this, arguments);
650
636
  };
651
- function Zr(e, t) {
637
+ function Qr(e, t) {
652
638
  var n = {};
653
639
  for (var r in e)
654
640
  Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
@@ -657,43 +643,43 @@ function Zr(e, t) {
657
643
  t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
658
644
  return n;
659
645
  }
660
- function Rt(e, t, n) {
661
- if (arguments.length === 2)
646
+ function Mt(e, t, n) {
647
+ if (n || arguments.length === 2)
662
648
  for (var r = 0, i = t.length, o; r < i; r++)
663
649
  (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
664
- return e.concat(o || t);
650
+ return e.concat(o || Array.prototype.slice.call(t));
665
651
  }
666
- function Lt(e, t) {
667
- var n = t && t.cache ? t.cache : ti, r = t && t.serializer ? t.serializer : Kr, i = t && t.strategy ? t.strategy : Jr;
652
+ function Nt(e, t) {
653
+ var n = t && t.cache ? t.cache : ri, r = t && t.serializer ? t.serializer : ti, i = t && t.strategy ? t.strategy : Kr;
668
654
  return i(e, {
669
655
  cache: n,
670
656
  serializer: r
671
657
  });
672
658
  }
673
- function qr(e) {
659
+ function Jr(e) {
674
660
  return e == null || typeof e == "number" || typeof e == "boolean";
675
661
  }
676
- function Qr(e, t, n, r) {
677
- var i = qr(r) ? r : n(r), o = t.get(i);
662
+ function Yr(e, t, n, r) {
663
+ var i = Jr(r) ? r : n(r), o = t.get(i);
678
664
  return typeof o > "u" && (o = e.call(this, r), t.set(i, o)), o;
679
665
  }
680
- function Ln(e, t, n) {
666
+ function Nn(e, t, n) {
681
667
  var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
682
668
  return typeof o > "u" && (o = e.apply(this, r), t.set(i, o)), o;
683
669
  }
684
- function Mn(e, t, n, r, i) {
670
+ function Pn(e, t, n, r, i) {
685
671
  return n.bind(t, e, r, i);
686
672
  }
687
- function Jr(e, t) {
688
- var n = e.length === 1 ? Qr : Ln;
689
- return Mn(e, this, n, t.cache.create(), t.serializer);
673
+ function Kr(e, t) {
674
+ var n = e.length === 1 ? Yr : Nn;
675
+ return Pn(e, this, n, t.cache.create(), t.serializer);
690
676
  }
691
- function Yr(e, t) {
692
- return Mn(e, this, Ln, t.cache.create(), t.serializer);
677
+ function ei(e, t) {
678
+ return Pn(e, this, Nn, t.cache.create(), t.serializer);
693
679
  }
694
- var Kr = function() {
680
+ var ti = function() {
695
681
  return JSON.stringify(arguments);
696
- }, ei = (
682
+ }, ni = (
697
683
  /** @class */
698
684
  function() {
699
685
  function e() {
@@ -705,61 +691,71 @@ var Kr = function() {
705
691
  this.cache[t] = n;
706
692
  }, e;
707
693
  }()
708
- ), ti = {
694
+ ), ri = {
709
695
  create: function() {
710
- return new ei();
696
+ return new ni();
711
697
  }
712
- }, Mt = {
713
- variadic: Yr
714
- }, O;
698
+ }, Pt = {
699
+ variadic: ei
700
+ }, bt = function() {
701
+ return bt = Object.assign || function(t) {
702
+ for (var n, r = 1, i = arguments.length; r < i; r++) {
703
+ n = arguments[r];
704
+ for (var o in n)
705
+ Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
706
+ }
707
+ return t;
708
+ }, bt.apply(this, arguments);
709
+ };
710
+ var O;
715
711
  (function(e) {
716
712
  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";
717
713
  })(O || (O = {}));
718
- var k;
714
+ var $;
719
715
  (function(e) {
720
716
  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";
721
- })(k || (k = {}));
722
- var Ge;
717
+ })($ || ($ = {}));
718
+ var $e;
723
719
  (function(e) {
724
720
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
725
- })(Ge || (Ge = {}));
726
- function an(e) {
727
- return e.type === k.literal;
728
- }
729
- function ni(e) {
730
- return e.type === k.argument;
721
+ })($e || ($e = {}));
722
+ function ln(e) {
723
+ return e.type === $.literal;
731
724
  }
732
- function Nn(e) {
733
- return e.type === k.number;
725
+ function ii(e) {
726
+ return e.type === $.argument;
734
727
  }
735
728
  function In(e) {
736
- return e.type === k.date;
737
- }
738
- function Pn(e) {
739
- return e.type === k.time;
729
+ return e.type === $.number;
740
730
  }
741
731
  function Dn(e) {
742
- return e.type === k.select;
732
+ return e.type === $.date;
743
733
  }
744
734
  function Un(e) {
745
- return e.type === k.plural;
746
- }
747
- function ri(e) {
748
- return e.type === k.pound;
735
+ return e.type === $.time;
749
736
  }
750
737
  function Fn(e) {
751
- return e.type === k.tag;
738
+ return e.type === $.select;
752
739
  }
753
740
  function Gn(e) {
754
- return !!(e && typeof e == "object" && e.type === Ge.number);
741
+ return e.type === $.plural;
755
742
  }
756
- function $t(e) {
757
- return !!(e && typeof e == "object" && e.type === Ge.dateTime);
758
- }
759
- var $n = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ii = /(?:[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;
760
743
  function oi(e) {
744
+ return e.type === $.pound;
745
+ }
746
+ function $n(e) {
747
+ return e.type === $.tag;
748
+ }
749
+ function jn(e) {
750
+ return !!(e && typeof e == "object" && e.type === $e.number);
751
+ }
752
+ function kt(e) {
753
+ return !!(e && typeof e == "object" && e.type === $e.dateTime);
754
+ }
755
+ var kn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ai = /(?:[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;
756
+ function si(e) {
761
757
  var t = {};
762
- return e.replace(ii, function(n) {
758
+ return e.replace(ai, function(n) {
763
759
  var r = n.length;
764
760
  switch (n[0]) {
765
761
  case "G":
@@ -848,11 +844,21 @@ function oi(e) {
848
844
  return "";
849
845
  }), t;
850
846
  }
851
- var ai = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
852
- function si(e) {
847
+ var X = function() {
848
+ return X = Object.assign || function(t) {
849
+ for (var n, r = 1, i = arguments.length; r < i; r++) {
850
+ n = arguments[r];
851
+ for (var o in n)
852
+ Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
853
+ }
854
+ return t;
855
+ }, X.apply(this, arguments);
856
+ };
857
+ var li = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
858
+ function ui(e) {
853
859
  if (e.length === 0)
854
860
  throw new Error("Number skeleton cannot be empty");
855
- for (var t = e.split(ai).filter(function(g) {
861
+ for (var t = e.split(li).filter(function(g) {
856
862
  return g.length > 0;
857
863
  }), n = [], r = 0, i = t; r < i.length; r++) {
858
864
  var o = i[r], l = o.split("/");
@@ -867,17 +873,17 @@ function si(e) {
867
873
  }
868
874
  return n;
869
875
  }
870
- function li(e) {
876
+ function ci(e) {
871
877
  return e.replace(/^(.*?)-/, "");
872
878
  }
873
- var sn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, kn = /^(@+)?(\+|#+)?[rs]?$/g, ui = /(\*)(0+)|(#+)(0+)|(0+)/g, jn = /^(0+)$/;
874
- function ln(e) {
879
+ var un = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Vn = /^(@+)?(\+|#+)?[rs]?$/g, hi = /(\*)(0+)|(#+)(0+)|(0+)/g, Xn = /^(0+)$/;
880
+ function cn(e) {
875
881
  var t = {};
876
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(kn, function(n, r, i) {
882
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Vn, function(n, r, i) {
877
883
  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)), "";
878
884
  }), t;
879
885
  }
880
- function Vn(e) {
886
+ function zn(e) {
881
887
  switch (e) {
882
888
  case "sign-auto":
883
889
  return {
@@ -917,7 +923,7 @@ function Vn(e) {
917
923
  };
918
924
  }
919
925
  }
920
- function ci(e) {
926
+ function fi(e) {
921
927
  var t;
922
928
  if (e[0] === "E" && e[1] === "E" ? (t = {
923
929
  notation: "engineering"
@@ -925,17 +931,17 @@ function ci(e) {
925
931
  notation: "scientific"
926
932
  }, e = e.slice(1)), t) {
927
933
  var n = e.slice(0, 2);
928
- if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !jn.test(e))
934
+ if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Xn.test(e))
929
935
  throw new Error("Malformed concise eng/scientific notation");
930
936
  t.minimumIntegerDigits = e.length;
931
937
  }
932
938
  return t;
933
939
  }
934
- function un(e) {
935
- var t = {}, n = Vn(e);
940
+ function hn(e) {
941
+ var t = {}, n = zn(e);
936
942
  return n || t;
937
943
  }
938
- function hi(e) {
944
+ function di(e) {
939
945
  for (var t = {}, n = 0, r = e; n < r.length; n++) {
940
946
  var i = r[n];
941
947
  switch (i.stem) {
@@ -959,7 +965,7 @@ function hi(e) {
959
965
  continue;
960
966
  case "measure-unit":
961
967
  case "unit":
962
- t.style = "unit", t.unit = li(i.options[0]);
968
+ t.style = "unit", t.unit = ci(i.options[0]);
963
969
  continue;
964
970
  case "compact-short":
965
971
  case "K":
@@ -970,13 +976,13 @@ function hi(e) {
970
976
  t.notation = "compact", t.compactDisplay = "long";
971
977
  continue;
972
978
  case "scientific":
973
- t = I(I(I({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
974
- return I(I({}, h), un(u));
979
+ t = X(X(X({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
980
+ return X(X({}, h), hn(u));
975
981
  }, {}));
976
982
  continue;
977
983
  case "engineering":
978
- t = I(I(I({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
979
- return I(I({}, h), un(u));
984
+ t = X(X(X({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
985
+ return X(X({}, h), hn(u));
980
986
  }, {}));
981
987
  continue;
982
988
  case "notation-simple":
@@ -1021,45 +1027,45 @@ function hi(e) {
1021
1027
  case "integer-width":
1022
1028
  if (i.options.length > 1)
1023
1029
  throw new RangeError("integer-width stems only accept a single optional option");
1024
- i.options[0].replace(ui, function(h, u, d, m, g, _) {
1030
+ i.options[0].replace(hi, function(h, u, d, m, g, x) {
1025
1031
  if (u)
1026
1032
  t.minimumIntegerDigits = d.length;
1027
1033
  else {
1028
1034
  if (m && g)
1029
1035
  throw new Error("We currently do not support maximum integer digits");
1030
- if (_)
1036
+ if (x)
1031
1037
  throw new Error("We currently do not support exact integer digits");
1032
1038
  }
1033
1039
  return "";
1034
1040
  });
1035
1041
  continue;
1036
1042
  }
1037
- if (jn.test(i.stem)) {
1043
+ if (Xn.test(i.stem)) {
1038
1044
  t.minimumIntegerDigits = i.stem.length;
1039
1045
  continue;
1040
1046
  }
1041
- if (sn.test(i.stem)) {
1047
+ if (un.test(i.stem)) {
1042
1048
  if (i.options.length > 1)
1043
1049
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1044
- i.stem.replace(sn, function(h, u, d, m, g, _) {
1045
- return d === "*" ? t.minimumFractionDigits = u.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : g && _ ? (t.minimumFractionDigits = g.length, t.maximumFractionDigits = g.length + _.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1050
+ i.stem.replace(un, function(h, u, d, m, g, x) {
1051
+ return d === "*" ? t.minimumFractionDigits = u.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : g && x ? (t.minimumFractionDigits = g.length, t.maximumFractionDigits = g.length + x.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1046
1052
  });
1047
1053
  var o = i.options[0];
1048
- o === "w" ? t = I(I({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = I(I({}, t), ln(o)));
1054
+ o === "w" ? t = X(X({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = X(X({}, t), cn(o)));
1049
1055
  continue;
1050
1056
  }
1051
- if (kn.test(i.stem)) {
1052
- t = I(I({}, t), ln(i.stem));
1057
+ if (Vn.test(i.stem)) {
1058
+ t = X(X({}, t), cn(i.stem));
1053
1059
  continue;
1054
1060
  }
1055
- var l = Vn(i.stem);
1056
- l && (t = I(I({}, t), l));
1057
- var s = ci(i.stem);
1058
- s && (t = I(I({}, t), s));
1061
+ var l = zn(i.stem);
1062
+ l && (t = X(X({}, t), l));
1063
+ var s = fi(i.stem);
1064
+ s && (t = X(X({}, t), s));
1059
1065
  }
1060
1066
  return t;
1061
1067
  }
1062
- var ut = {
1068
+ var ct = {
1063
1069
  "001": [
1064
1070
  "H",
1065
1071
  "h"
@@ -2474,13 +2480,13 @@ var ut = {
2474
2480
  "h"
2475
2481
  ]
2476
2482
  };
2477
- function fi(e, t) {
2483
+ function pi(e, t) {
2478
2484
  for (var n = "", r = 0; r < e.length; r++) {
2479
2485
  var i = e.charAt(r);
2480
2486
  if (i === "j") {
2481
2487
  for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2482
2488
  o++, r++;
2483
- var l = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = di(t);
2489
+ var l = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = mi(t);
2484
2490
  for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
2485
2491
  n += h;
2486
2492
  for (; l-- > 0; )
@@ -2490,7 +2496,7 @@ function fi(e, t) {
2490
2496
  }
2491
2497
  return n;
2492
2498
  }
2493
- function di(e) {
2499
+ function mi(e) {
2494
2500
  var t = e.hourCycle;
2495
2501
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2496
2502
  e.hourCycles && // @ts-ignore
@@ -2509,23 +2515,23 @@ function di(e) {
2509
2515
  }
2510
2516
  var n = e.language, r;
2511
2517
  n !== "root" && (r = e.maximize().region);
2512
- var i = ut[r || ""] || ut[n || ""] || ut["".concat(n, "-001")] || ut["001"];
2518
+ var i = ct[r || ""] || ct[n || ""] || ct["".concat(n, "-001")] || ct["001"];
2513
2519
  return i[0];
2514
2520
  }
2515
- var Nt, pi = new RegExp("^".concat($n.source, "*")), mi = new RegExp("".concat($n.source, "*$"));
2521
+ var It, gi = new RegExp("^".concat(kn.source, "*")), bi = new RegExp("".concat(kn.source, "*$"));
2516
2522
  function M(e, t) {
2517
2523
  return { start: e, end: t };
2518
2524
  }
2519
- var gi = !!String.prototype.startsWith && "_a".startsWith("a", 1), bi = !!String.fromCodePoint, yi = !!Object.fromEntries, vi = !!String.prototype.codePointAt, Ei = !!String.prototype.trimStart, xi = !!String.prototype.trimEnd, _i = !!Number.isSafeInteger, Bi = _i ? Number.isSafeInteger : function(e) {
2525
+ var yi = !!String.prototype.startsWith && "_a".startsWith("a", 1), vi = !!String.fromCodePoint, Ei = !!Object.fromEntries, _i = !!String.prototype.codePointAt, xi = !!String.prototype.trimStart, Bi = !!String.prototype.trimEnd, Ti = !!Number.isSafeInteger, wi = Ti ? Number.isSafeInteger : function(e) {
2520
2526
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2521
- }, kt = !0;
2527
+ }, Vt = !0;
2522
2528
  try {
2523
- var Ti = zn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2524
- kt = ((Nt = Ti.exec("a")) === null || Nt === void 0 ? void 0 : Nt[0]) === "a";
2529
+ var Si = Zn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2530
+ Vt = ((It = Si.exec("a")) === null || It === void 0 ? void 0 : It[0]) === "a";
2525
2531
  } catch {
2526
- kt = !1;
2532
+ Vt = !1;
2527
2533
  }
2528
- var cn = gi ? (
2534
+ var fn = yi ? (
2529
2535
  // Native
2530
2536
  function(t, n, r) {
2531
2537
  return t.startsWith(n, r);
@@ -2535,7 +2541,7 @@ var cn = gi ? (
2535
2541
  function(t, n, r) {
2536
2542
  return t.slice(r, r + n.length) === n;
2537
2543
  }
2538
- ), jt = bi ? String.fromCodePoint : (
2544
+ ), Xt = vi ? String.fromCodePoint : (
2539
2545
  // IE11
2540
2546
  function() {
2541
2547
  for (var t = [], n = 0; n < arguments.length; n++)
@@ -2547,9 +2553,9 @@ var cn = gi ? (
2547
2553
  }
2548
2554
  return r;
2549
2555
  }
2550
- ), hn = (
2556
+ ), dn = (
2551
2557
  // native
2552
- yi ? Object.fromEntries : (
2558
+ Ei ? Object.fromEntries : (
2553
2559
  // Ponyfill
2554
2560
  function(t) {
2555
2561
  for (var n = {}, r = 0, i = t; r < i.length; r++) {
@@ -2559,7 +2565,7 @@ var cn = gi ? (
2559
2565
  return n;
2560
2566
  }
2561
2567
  )
2562
- ), Xn = vi ? (
2568
+ ), Wn = _i ? (
2563
2569
  // Native
2564
2570
  function(t, n) {
2565
2571
  return t.codePointAt(n);
@@ -2573,7 +2579,7 @@ var cn = gi ? (
2573
2579
  return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2574
2580
  }
2575
2581
  }
2576
- ), wi = Ei ? (
2582
+ ), Ai = xi ? (
2577
2583
  // Native
2578
2584
  function(t) {
2579
2585
  return t.trimStart();
@@ -2581,9 +2587,9 @@ var cn = gi ? (
2581
2587
  ) : (
2582
2588
  // Ponyfill
2583
2589
  function(t) {
2584
- return t.replace(pi, "");
2590
+ return t.replace(gi, "");
2585
2591
  }
2586
- ), Si = xi ? (
2592
+ ), Ci = Bi ? (
2587
2593
  // Native
2588
2594
  function(t) {
2589
2595
  return t.trimEnd();
@@ -2591,32 +2597,32 @@ var cn = gi ? (
2591
2597
  ) : (
2592
2598
  // Ponyfill
2593
2599
  function(t) {
2594
- return t.replace(mi, "");
2600
+ return t.replace(bi, "");
2595
2601
  }
2596
2602
  );
2597
- function zn(e, t) {
2603
+ function Zn(e, t) {
2598
2604
  return new RegExp(e, t);
2599
2605
  }
2600
- var Vt;
2601
- if (kt) {
2602
- var fn = zn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2603
- Vt = function(t, n) {
2606
+ var zt;
2607
+ if (Vt) {
2608
+ var pn = Zn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2609
+ zt = function(t, n) {
2604
2610
  var r;
2605
- fn.lastIndex = n;
2606
- var i = fn.exec(t);
2611
+ pn.lastIndex = n;
2612
+ var i = pn.exec(t);
2607
2613
  return (r = i[1]) !== null && r !== void 0 ? r : "";
2608
2614
  };
2609
2615
  } else
2610
- Vt = function(t, n) {
2616
+ zt = function(t, n) {
2611
2617
  for (var r = []; ; ) {
2612
- var i = Xn(t, n);
2613
- if (i === void 0 || Wn(i) || Oi(i))
2618
+ var i = Wn(t, n);
2619
+ if (i === void 0 || qn(i) || Li(i))
2614
2620
  break;
2615
2621
  r.push(i), n += i >= 65536 ? 2 : 1;
2616
2622
  }
2617
- return jt.apply(void 0, r);
2623
+ return Xt.apply(void 0, r);
2618
2624
  };
2619
- var Ai = (
2625
+ var Hi = (
2620
2626
  /** @class */
2621
2627
  function() {
2622
2628
  function e(t, n) {
@@ -2640,14 +2646,14 @@ var Ai = (
2640
2646
  if (o === 35 && (n === "plural" || n === "selectordinal")) {
2641
2647
  var s = this.clonePosition();
2642
2648
  this.bump(), i.push({
2643
- type: k.pound,
2649
+ type: $.pound,
2644
2650
  location: M(s, this.clonePosition())
2645
2651
  });
2646
2652
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2647
2653
  if (r)
2648
2654
  break;
2649
2655
  return this.error(O.UNMATCHED_CLOSING_TAG, M(this.clonePosition(), this.clonePosition()));
2650
- } else if (o === 60 && !this.ignoreTag && Xt(this.peek() || 0)) {
2656
+ } else if (o === 60 && !this.ignoreTag && Wt(this.peek() || 0)) {
2651
2657
  var l = this.parseTag(t, n);
2652
2658
  if (l.err)
2653
2659
  return l;
@@ -2668,7 +2674,7 @@ var Ai = (
2668
2674
  if (this.bumpSpace(), this.bumpIf("/>"))
2669
2675
  return {
2670
2676
  val: {
2671
- type: k.literal,
2677
+ type: $.literal,
2672
2678
  value: "<".concat(i, "/>"),
2673
2679
  location: M(r, this.clonePosition())
2674
2680
  },
@@ -2680,12 +2686,12 @@ var Ai = (
2680
2686
  return o;
2681
2687
  var l = o.val, s = this.clonePosition();
2682
2688
  if (this.bumpIf("</")) {
2683
- if (this.isEOF() || !Xt(this.char()))
2689
+ if (this.isEOF() || !Wt(this.char()))
2684
2690
  return this.error(O.INVALID_TAG, M(s, this.clonePosition()));
2685
2691
  var h = this.clonePosition(), u = this.parseTagName();
2686
2692
  return i !== u ? this.error(O.UNMATCHED_CLOSING_TAG, M(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2687
2693
  val: {
2688
- type: k.tag,
2694
+ type: $.tag,
2689
2695
  value: i,
2690
2696
  children: l,
2691
2697
  location: M(r, this.clonePosition())
@@ -2698,7 +2704,7 @@ var Ai = (
2698
2704
  return this.error(O.INVALID_TAG, M(r, this.clonePosition()));
2699
2705
  }, e.prototype.parseTagName = function() {
2700
2706
  var t = this.offset();
2701
- for (this.bump(); !this.isEOF() && Hi(this.char()); )
2707
+ for (this.bump(); !this.isEOF() && Ri(this.char()); )
2702
2708
  this.bump();
2703
2709
  return this.message.slice(t, this.offset());
2704
2710
  }, e.prototype.parseLiteral = function(t, n) {
@@ -2722,12 +2728,12 @@ var Ai = (
2722
2728
  }
2723
2729
  var h = M(r, this.clonePosition());
2724
2730
  return {
2725
- val: { type: k.literal, value: i, location: h },
2731
+ val: { type: $.literal, value: i, location: h },
2726
2732
  err: null
2727
2733
  };
2728
2734
  }, e.prototype.tryParseLeftAngleBracket = function() {
2729
2735
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2730
- !Ci(this.peek() || 0)) ? (this.bump(), "<") : null;
2736
+ !Oi(this.peek() || 0)) ? (this.bump(), "<") : null;
2731
2737
  }, e.prototype.tryParseQuote = function(t) {
2732
2738
  if (this.isEOF() || this.char() !== 39)
2733
2739
  return null;
@@ -2761,12 +2767,12 @@ var Ai = (
2761
2767
  n.push(r);
2762
2768
  this.bump();
2763
2769
  }
2764
- return jt.apply(void 0, n);
2770
+ return Xt.apply(void 0, n);
2765
2771
  }, e.prototype.tryParseUnquoted = function(t, n) {
2766
2772
  if (this.isEOF())
2767
2773
  return null;
2768
2774
  var r = this.char();
2769
- return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), jt(r));
2775
+ return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Xt(r));
2770
2776
  }, e.prototype.parseArgument = function(t, n) {
2771
2777
  var r = this.clonePosition();
2772
2778
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -2782,7 +2788,7 @@ var Ai = (
2782
2788
  case 125:
2783
2789
  return this.bump(), {
2784
2790
  val: {
2785
- type: k.argument,
2791
+ type: $.argument,
2786
2792
  // value does not include the opening and closing braces.
2787
2793
  value: i,
2788
2794
  location: M(r, this.clonePosition())
@@ -2795,7 +2801,7 @@ var Ai = (
2795
2801
  return this.error(O.MALFORMED_ARGUMENT, M(r, this.clonePosition()));
2796
2802
  }
2797
2803
  }, e.prototype.parseIdentifierIfPossible = function() {
2798
- var t = this.clonePosition(), n = this.offset(), r = Vt(this.message, n), i = n + r.length;
2804
+ var t = this.clonePosition(), n = this.offset(), r = zt(this.message, n), i = n + r.length;
2799
2805
  this.bumpTo(i);
2800
2806
  var o = this.clonePosition(), l = M(t, o);
2801
2807
  return { value: r, location: l };
@@ -2814,44 +2820,44 @@ var Ai = (
2814
2820
  var d = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
2815
2821
  if (m.err)
2816
2822
  return m;
2817
- var g = Si(m.val);
2823
+ var g = Ci(m.val);
2818
2824
  if (g.length === 0)
2819
2825
  return this.error(O.EXPECT_ARGUMENT_STYLE, M(this.clonePosition(), this.clonePosition()));
2820
- var _ = M(d, this.clonePosition());
2821
- u = { style: g, styleLocation: _ };
2826
+ var x = M(d, this.clonePosition());
2827
+ u = { style: g, styleLocation: x };
2822
2828
  }
2823
2829
  var B = this.tryParseArgumentClose(i);
2824
2830
  if (B.err)
2825
2831
  return B;
2826
2832
  var T = M(i, this.clonePosition());
2827
- if (u && cn(u?.style, "::", 0)) {
2828
- var x = wi(u.style.slice(2));
2833
+ if (u && fn(u?.style, "::", 0)) {
2834
+ var _ = Ai(u.style.slice(2));
2829
2835
  if (s === "number") {
2830
- var m = this.parseNumberSkeletonFromString(x, u.styleLocation);
2836
+ var m = this.parseNumberSkeletonFromString(_, u.styleLocation);
2831
2837
  return m.err ? m : {
2832
- val: { type: k.number, value: r, location: T, style: m.val },
2838
+ val: { type: $.number, value: r, location: T, style: m.val },
2833
2839
  err: null
2834
2840
  };
2835
2841
  } else {
2836
- if (x.length === 0)
2842
+ if (_.length === 0)
2837
2843
  return this.error(O.EXPECT_DATE_TIME_SKELETON, T);
2838
- var S = x;
2839
- this.locale && (S = fi(x, this.locale));
2844
+ var S = _;
2845
+ this.locale && (S = pi(_, this.locale));
2840
2846
  var g = {
2841
- type: Ge.dateTime,
2847
+ type: $e.dateTime,
2842
2848
  pattern: S,
2843
2849
  location: u.styleLocation,
2844
- parsedOptions: this.shouldParseSkeletons ? oi(S) : {}
2845
- }, D = s === "date" ? k.date : k.time;
2850
+ parsedOptions: this.shouldParseSkeletons ? si(S) : {}
2851
+ }, I = s === "date" ? $.date : $.time;
2846
2852
  return {
2847
- val: { type: D, value: r, location: T, style: g },
2853
+ val: { type: I, value: r, location: T, style: g },
2848
2854
  err: null
2849
2855
  };
2850
2856
  }
2851
2857
  }
2852
2858
  return {
2853
2859
  val: {
2854
- type: s === "number" ? k.number : s === "date" ? k.date : k.time,
2860
+ type: s === "number" ? $.number : s === "date" ? $.date : $.time,
2855
2861
  value: r,
2856
2862
  location: T,
2857
2863
  style: (o = u?.style) !== null && o !== void 0 ? o : null
@@ -2864,19 +2870,19 @@ var Ai = (
2864
2870
  case "select": {
2865
2871
  var H = this.clonePosition();
2866
2872
  if (this.bumpSpace(), !this.bumpIf(","))
2867
- return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS, M(H, I({}, H)));
2873
+ return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS, M(H, bt({}, H)));
2868
2874
  this.bumpSpace();
2869
- var U = this.parseIdentifierIfPossible(), W = 0;
2870
- if (s !== "select" && U.value === "offset") {
2875
+ var D = this.parseIdentifierIfPossible(), W = 0;
2876
+ if (s !== "select" && D.value === "offset") {
2871
2877
  if (!this.bumpIf(":"))
2872
2878
  return this.error(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, M(this.clonePosition(), this.clonePosition()));
2873
2879
  this.bumpSpace();
2874
2880
  var m = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2875
2881
  if (m.err)
2876
2882
  return m;
2877
- this.bumpSpace(), U = this.parseIdentifierIfPossible(), W = m.val;
2883
+ this.bumpSpace(), D = this.parseIdentifierIfPossible(), W = m.val;
2878
2884
  }
2879
- var q = this.tryParsePluralOrSelectOptions(t, s, n, U);
2885
+ var q = this.tryParsePluralOrSelectOptions(t, s, n, D);
2880
2886
  if (q.err)
2881
2887
  return q;
2882
2888
  var B = this.tryParseArgumentClose(i);
@@ -2885,17 +2891,17 @@ var Ai = (
2885
2891
  var Y = M(i, this.clonePosition());
2886
2892
  return s === "select" ? {
2887
2893
  val: {
2888
- type: k.select,
2894
+ type: $.select,
2889
2895
  value: r,
2890
- options: hn(q.val),
2896
+ options: dn(q.val),
2891
2897
  location: Y
2892
2898
  },
2893
2899
  err: null
2894
2900
  } : {
2895
2901
  val: {
2896
- type: k.plural,
2902
+ type: $.plural,
2897
2903
  value: r,
2898
- options: hn(q.val),
2904
+ options: dn(q.val),
2899
2905
  offset: W,
2900
2906
  pluralType: s === "plural" ? "cardinal" : "ordinal",
2901
2907
  location: Y
@@ -2946,16 +2952,16 @@ var Ai = (
2946
2952
  }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
2947
2953
  var r = [];
2948
2954
  try {
2949
- r = si(t);
2955
+ r = ui(t);
2950
2956
  } catch {
2951
2957
  return this.error(O.INVALID_NUMBER_SKELETON, n);
2952
2958
  }
2953
2959
  return {
2954
2960
  val: {
2955
- type: Ge.number,
2961
+ type: $e.number,
2956
2962
  tokens: r,
2957
2963
  location: n,
2958
- parsedOptions: this.shouldParseSkeletons ? hi(r) : {}
2964
+ parsedOptions: this.shouldParseSkeletons ? di(r) : {}
2959
2965
  },
2960
2966
  err: null
2961
2967
  };
@@ -2974,20 +2980,20 @@ var Ai = (
2974
2980
  if (h.has(u))
2975
2981
  return this.error(n === "select" ? O.DUPLICATE_SELECT_ARGUMENT_SELECTOR : O.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, d);
2976
2982
  u === "other" && (l = !0), this.bumpSpace();
2977
- var _ = this.clonePosition();
2983
+ var x = this.clonePosition();
2978
2984
  if (!this.bumpIf("{"))
2979
2985
  return this.error(n === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : O.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, M(this.clonePosition(), this.clonePosition()));
2980
2986
  var B = this.parseMessage(t + 1, n, r);
2981
2987
  if (B.err)
2982
2988
  return B;
2983
- var T = this.tryParseArgumentClose(_);
2989
+ var T = this.tryParseArgumentClose(x);
2984
2990
  if (T.err)
2985
2991
  return T;
2986
2992
  s.push([
2987
2993
  u,
2988
2994
  {
2989
2995
  value: B.val,
2990
- location: M(_, this.clonePosition())
2996
+ location: M(x, this.clonePosition())
2991
2997
  }
2992
2998
  ]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, d = o.location;
2993
2999
  }
@@ -3003,7 +3009,7 @@ var Ai = (
3003
3009
  break;
3004
3010
  }
3005
3011
  var h = M(i, this.clonePosition());
3006
- return o ? (l *= r, Bi(l) ? { val: l, err: null } : this.error(n, h)) : this.error(t, h);
3012
+ return o ? (l *= r, wi(l) ? { val: l, err: null } : this.error(n, h)) : this.error(t, h);
3007
3013
  }, e.prototype.offset = function() {
3008
3014
  return this.position.offset;
3009
3015
  }, e.prototype.isEOF = function() {
@@ -3018,7 +3024,7 @@ var Ai = (
3018
3024
  var t = this.position.offset;
3019
3025
  if (t >= this.message.length)
3020
3026
  throw Error("out of bound");
3021
- var n = Xn(this.message, t);
3027
+ var n = Wn(this.message, t);
3022
3028
  if (n === void 0)
3023
3029
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3024
3030
  return n;
@@ -3037,7 +3043,7 @@ var Ai = (
3037
3043
  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);
3038
3044
  }
3039
3045
  }, e.prototype.bumpIf = function(t) {
3040
- if (cn(this.message, t, this.offset())) {
3046
+ if (fn(this.message, t, this.offset())) {
3041
3047
  for (var n = 0; n < t.length; n++)
3042
3048
  this.bump();
3043
3049
  return !0;
@@ -3059,7 +3065,7 @@ var Ai = (
3059
3065
  break;
3060
3066
  }
3061
3067
  }, e.prototype.bumpSpace = function() {
3062
- for (; !this.isEOF() && Wn(this.char()); )
3068
+ for (; !this.isEOF() && qn(this.char()); )
3063
3069
  this.bump();
3064
3070
  }, e.prototype.peek = function() {
3065
3071
  if (this.isEOF())
@@ -3069,47 +3075,47 @@ var Ai = (
3069
3075
  }, e;
3070
3076
  }()
3071
3077
  );
3072
- function Xt(e) {
3078
+ function Wt(e) {
3073
3079
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3074
3080
  }
3075
- function Ci(e) {
3076
- return Xt(e) || e === 47;
3081
+ function Oi(e) {
3082
+ return Wt(e) || e === 47;
3077
3083
  }
3078
- function Hi(e) {
3084
+ function Ri(e) {
3079
3085
  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;
3080
3086
  }
3081
- function Wn(e) {
3087
+ function qn(e) {
3082
3088
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3083
3089
  }
3084
- function Oi(e) {
3090
+ function Li(e) {
3085
3091
  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;
3086
3092
  }
3087
- function zt(e) {
3093
+ function Zt(e) {
3088
3094
  e.forEach(function(t) {
3089
- if (delete t.location, Dn(t) || Un(t))
3095
+ if (delete t.location, Fn(t) || Gn(t))
3090
3096
  for (var n in t.options)
3091
- delete t.options[n].location, zt(t.options[n].value);
3097
+ delete t.options[n].location, Zt(t.options[n].value);
3092
3098
  else
3093
- Nn(t) && Gn(t.style) || (In(t) || Pn(t)) && $t(t.style) ? delete t.style.location : Fn(t) && zt(t.children);
3099
+ In(t) && jn(t.style) || (Dn(t) || Un(t)) && kt(t.style) ? delete t.style.location : $n(t) && Zt(t.children);
3094
3100
  });
3095
3101
  }
3096
- function Ri(e, t) {
3097
- t === void 0 && (t = {}), t = I({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3098
- var n = new Ai(e, t).parse();
3102
+ function Mi(e, t) {
3103
+ t === void 0 && (t = {}), t = bt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3104
+ var n = new Hi(e, t).parse();
3099
3105
  if (n.err) {
3100
3106
  var r = SyntaxError(O[n.err.kind]);
3101
3107
  throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3102
3108
  }
3103
- return t?.captureLocation || zt(n.val), n.val;
3109
+ return t?.captureLocation || Zt(n.val), n.val;
3104
3110
  }
3105
- var $e;
3111
+ var je;
3106
3112
  (function(e) {
3107
3113
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3108
- })($e || ($e = {}));
3109
- var Et = (
3114
+ })(je || (je = {}));
3115
+ var xt = (
3110
3116
  /** @class */
3111
3117
  function(e) {
3112
- vt(t, e);
3118
+ _t(t, e);
3113
3119
  function t(n, r, i) {
3114
3120
  var o = e.call(this, n) || this;
3115
3121
  return o.code = r, o.originalMessage = i, o;
@@ -3118,48 +3124,48 @@ var Et = (
3118
3124
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3119
3125
  }, t;
3120
3126
  }(Error)
3121
- ), dn = (
3127
+ ), mn = (
3122
3128
  /** @class */
3123
3129
  function(e) {
3124
- vt(t, e);
3130
+ _t(t, e);
3125
3131
  function t(n, r, i, o) {
3126
- return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), $e.INVALID_VALUE, o) || this;
3132
+ return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), je.INVALID_VALUE, o) || this;
3127
3133
  }
3128
3134
  return t;
3129
- }(Et)
3130
- ), Li = (
3135
+ }(xt)
3136
+ ), Ni = (
3131
3137
  /** @class */
3132
3138
  function(e) {
3133
- vt(t, e);
3139
+ _t(t, e);
3134
3140
  function t(n, r, i) {
3135
- return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), $e.INVALID_VALUE, i) || this;
3141
+ return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), je.INVALID_VALUE, i) || this;
3136
3142
  }
3137
3143
  return t;
3138
- }(Et)
3139
- ), Mi = (
3144
+ }(xt)
3145
+ ), Pi = (
3140
3146
  /** @class */
3141
3147
  function(e) {
3142
- vt(t, e);
3148
+ _t(t, e);
3143
3149
  function t(n, r) {
3144
- return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), $e.MISSING_VALUE, r) || this;
3150
+ return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), je.MISSING_VALUE, r) || this;
3145
3151
  }
3146
3152
  return t;
3147
- }(Et)
3153
+ }(xt)
3148
3154
  ), ne;
3149
3155
  (function(e) {
3150
3156
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3151
3157
  })(ne || (ne = {}));
3152
- function Ni(e) {
3158
+ function Ii(e) {
3153
3159
  return e.length < 2 ? e : e.reduce(function(t, n) {
3154
3160
  var r = t[t.length - 1];
3155
3161
  return !r || r.type !== ne.literal || n.type !== ne.literal ? t.push(n) : r.value += n.value, t;
3156
3162
  }, []);
3157
3163
  }
3158
- function Ii(e) {
3164
+ function Di(e) {
3159
3165
  return typeof e == "function";
3160
3166
  }
3161
- function ht(e, t, n, r, i, o, l) {
3162
- if (e.length === 1 && an(e[0]))
3167
+ function ft(e, t, n, r, i, o, l) {
3168
+ if (e.length === 1 && ln(e[0]))
3163
3169
  return [
3164
3170
  {
3165
3171
  type: ne.literal,
@@ -3168,14 +3174,14 @@ function ht(e, t, n, r, i, o, l) {
3168
3174
  ];
3169
3175
  for (var s = [], h = 0, u = e; h < u.length; h++) {
3170
3176
  var d = u[h];
3171
- if (an(d)) {
3177
+ if (ln(d)) {
3172
3178
  s.push({
3173
3179
  type: ne.literal,
3174
3180
  value: d.value
3175
3181
  });
3176
3182
  continue;
3177
3183
  }
3178
- if (ri(d)) {
3184
+ if (oi(d)) {
3179
3185
  typeof o == "number" && s.push({
3180
3186
  type: ne.literal,
3181
3187
  value: n.getNumberFormat(t).format(o)
@@ -3184,89 +3190,89 @@ function ht(e, t, n, r, i, o, l) {
3184
3190
  }
3185
3191
  var m = d.value;
3186
3192
  if (!(i && m in i))
3187
- throw new Mi(m, l);
3193
+ throw new Pi(m, l);
3188
3194
  var g = i[m];
3189
- if (ni(d)) {
3195
+ if (ii(d)) {
3190
3196
  (!g || typeof g == "string" || typeof g == "number") && (g = typeof g == "string" || typeof g == "number" ? String(g) : ""), s.push({
3191
3197
  type: typeof g == "string" ? ne.literal : ne.object,
3192
3198
  value: g
3193
3199
  });
3194
3200
  continue;
3195
3201
  }
3196
- if (In(d)) {
3197
- var _ = typeof d.style == "string" ? r.date[d.style] : $t(d.style) ? d.style.parsedOptions : void 0;
3202
+ if (Dn(d)) {
3203
+ var x = typeof d.style == "string" ? r.date[d.style] : kt(d.style) ? d.style.parsedOptions : void 0;
3198
3204
  s.push({
3199
3205
  type: ne.literal,
3200
- value: n.getDateTimeFormat(t, _).format(g)
3206
+ value: n.getDateTimeFormat(t, x).format(g)
3201
3207
  });
3202
3208
  continue;
3203
3209
  }
3204
- if (Pn(d)) {
3205
- var _ = typeof d.style == "string" ? r.time[d.style] : $t(d.style) ? d.style.parsedOptions : r.time.medium;
3210
+ if (Un(d)) {
3211
+ var x = typeof d.style == "string" ? r.time[d.style] : kt(d.style) ? d.style.parsedOptions : r.time.medium;
3206
3212
  s.push({
3207
3213
  type: ne.literal,
3208
- value: n.getDateTimeFormat(t, _).format(g)
3214
+ value: n.getDateTimeFormat(t, x).format(g)
3209
3215
  });
3210
3216
  continue;
3211
3217
  }
3212
- if (Nn(d)) {
3213
- var _ = typeof d.style == "string" ? r.number[d.style] : Gn(d.style) ? d.style.parsedOptions : void 0;
3214
- _ && _.scale && (g = g * (_.scale || 1)), s.push({
3218
+ if (In(d)) {
3219
+ var x = typeof d.style == "string" ? r.number[d.style] : jn(d.style) ? d.style.parsedOptions : void 0;
3220
+ x && x.scale && (g = g * (x.scale || 1)), s.push({
3215
3221
  type: ne.literal,
3216
- value: n.getNumberFormat(t, _).format(g)
3222
+ value: n.getNumberFormat(t, x).format(g)
3217
3223
  });
3218
3224
  continue;
3219
3225
  }
3220
- if (Fn(d)) {
3221
- var B = d.children, T = d.value, x = i[T];
3222
- if (!Ii(x))
3223
- throw new Li(T, "function", l);
3224
- var S = ht(B, t, n, r, i, o), D = x(S.map(function(W) {
3226
+ if ($n(d)) {
3227
+ var B = d.children, T = d.value, _ = i[T];
3228
+ if (!Di(_))
3229
+ throw new Ni(T, "function", l);
3230
+ var S = ft(B, t, n, r, i, o), I = _(S.map(function(W) {
3225
3231
  return W.value;
3226
3232
  }));
3227
- Array.isArray(D) || (D = [D]), s.push.apply(s, D.map(function(W) {
3233
+ Array.isArray(I) || (I = [I]), s.push.apply(s, I.map(function(W) {
3228
3234
  return {
3229
3235
  type: typeof W == "string" ? ne.literal : ne.object,
3230
3236
  value: W
3231
3237
  };
3232
3238
  }));
3233
3239
  }
3234
- if (Dn(d)) {
3240
+ if (Fn(d)) {
3235
3241
  var H = d.options[g] || d.options.other;
3236
3242
  if (!H)
3237
- throw new dn(d.value, g, Object.keys(d.options), l);
3238
- s.push.apply(s, ht(H.value, t, n, r, i));
3243
+ throw new mn(d.value, g, Object.keys(d.options), l);
3244
+ s.push.apply(s, ft(H.value, t, n, r, i));
3239
3245
  continue;
3240
3246
  }
3241
- if (Un(d)) {
3247
+ if (Gn(d)) {
3242
3248
  var H = d.options["=".concat(g)];
3243
3249
  if (!H) {
3244
3250
  if (!Intl.PluralRules)
3245
- throw new Et(`Intl.PluralRules is not available in this environment.
3251
+ throw new xt(`Intl.PluralRules is not available in this environment.
3246
3252
  Try polyfilling it using "@formatjs/intl-pluralrules"
3247
- `, $e.MISSING_INTL_API, l);
3248
- var U = n.getPluralRules(t, { type: d.pluralType }).select(g - (d.offset || 0));
3249
- H = d.options[U] || d.options.other;
3253
+ `, je.MISSING_INTL_API, l);
3254
+ var D = n.getPluralRules(t, { type: d.pluralType }).select(g - (d.offset || 0));
3255
+ H = d.options[D] || d.options.other;
3250
3256
  }
3251
3257
  if (!H)
3252
- throw new dn(d.value, g, Object.keys(d.options), l);
3253
- s.push.apply(s, ht(H.value, t, n, r, i, g - (d.offset || 0)));
3258
+ throw new mn(d.value, g, Object.keys(d.options), l);
3259
+ s.push.apply(s, ft(H.value, t, n, r, i, g - (d.offset || 0)));
3254
3260
  continue;
3255
3261
  }
3256
3262
  }
3257
- return Ni(s);
3263
+ return Ii(s);
3258
3264
  }
3259
- function Pi(e, t) {
3260
- return t ? I(I(I({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3261
- return n[r] = I(I({}, e[r]), t[r] || {}), n;
3265
+ function Ui(e, t) {
3266
+ return t ? me(me(me({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3267
+ return n[r] = me(me({}, e[r]), t[r] || {}), n;
3262
3268
  }, {})) : e;
3263
3269
  }
3264
- function Di(e, t) {
3270
+ function Fi(e, t) {
3265
3271
  return t ? Object.keys(e).reduce(function(n, r) {
3266
- return n[r] = Pi(e[r], t[r]), n;
3267
- }, I({}, e)) : e;
3272
+ return n[r] = Ui(e[r], t[r]), n;
3273
+ }, me({}, e)) : e;
3268
3274
  }
3269
- function It(e) {
3275
+ function Dt(e) {
3270
3276
  return {
3271
3277
  create: function() {
3272
3278
  return {
@@ -3280,39 +3286,39 @@ function It(e) {
3280
3286
  }
3281
3287
  };
3282
3288
  }
3283
- function Ui(e) {
3289
+ function Gi(e) {
3284
3290
  return e === void 0 && (e = {
3285
3291
  number: {},
3286
3292
  dateTime: {},
3287
3293
  pluralRules: {}
3288
3294
  }), {
3289
- getNumberFormat: Lt(function() {
3295
+ getNumberFormat: Nt(function() {
3290
3296
  for (var t, n = [], r = 0; r < arguments.length; r++)
3291
3297
  n[r] = arguments[r];
3292
- return new ((t = Intl.NumberFormat).bind.apply(t, Rt([void 0], n, !1)))();
3298
+ return new ((t = Intl.NumberFormat).bind.apply(t, Mt([void 0], n, !1)))();
3293
3299
  }, {
3294
- cache: It(e.number),
3295
- strategy: Mt.variadic
3300
+ cache: Dt(e.number),
3301
+ strategy: Pt.variadic
3296
3302
  }),
3297
- getDateTimeFormat: Lt(function() {
3303
+ getDateTimeFormat: Nt(function() {
3298
3304
  for (var t, n = [], r = 0; r < arguments.length; r++)
3299
3305
  n[r] = arguments[r];
3300
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Rt([void 0], n, !1)))();
3306
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Mt([void 0], n, !1)))();
3301
3307
  }, {
3302
- cache: It(e.dateTime),
3303
- strategy: Mt.variadic
3308
+ cache: Dt(e.dateTime),
3309
+ strategy: Pt.variadic
3304
3310
  }),
3305
- getPluralRules: Lt(function() {
3311
+ getPluralRules: Nt(function() {
3306
3312
  for (var t, n = [], r = 0; r < arguments.length; r++)
3307
3313
  n[r] = arguments[r];
3308
- return new ((t = Intl.PluralRules).bind.apply(t, Rt([void 0], n, !1)))();
3314
+ return new ((t = Intl.PluralRules).bind.apply(t, Mt([void 0], n, !1)))();
3309
3315
  }, {
3310
- cache: It(e.pluralRules),
3311
- strategy: Mt.variadic
3316
+ cache: Dt(e.pluralRules),
3317
+ strategy: Pt.variadic
3312
3318
  })
3313
3319
  };
3314
3320
  }
3315
- var Fi = (
3321
+ var $i = (
3316
3322
  /** @class */
3317
3323
  function() {
3318
3324
  function e(t, n, r, i) {
@@ -3331,7 +3337,7 @@ var Fi = (
3331
3337
  }, []);
3332
3338
  return d.length <= 1 ? d[0] || "" : d;
3333
3339
  }, this.formatToParts = function(h) {
3334
- return ht(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3340
+ return ft(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3335
3341
  }, this.resolvedOptions = function() {
3336
3342
  var h;
3337
3343
  return {
@@ -3344,13 +3350,13 @@ var Fi = (
3344
3350
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3345
3351
  var l = i || {};
3346
3352
  l.formatters;
3347
- var s = Zr(l, ["formatters"]);
3348
- this.ast = e.__parse(t, I(I({}, s), { locale: this.resolvedLocale }));
3353
+ var s = Qr(l, ["formatters"]);
3354
+ this.ast = e.__parse(t, me(me({}, s), { locale: this.resolvedLocale }));
3349
3355
  } else
3350
3356
  this.ast = t;
3351
3357
  if (!Array.isArray(this.ast))
3352
3358
  throw new TypeError("A message must be provided as a String or AST.");
3353
- this.formats = Di(e.formats, r), this.formatters = i && i.formatters || Ui(this.formatterCache);
3359
+ this.formats = Fi(e.formats, r), this.formatters = i && i.formatters || Gi(this.formatterCache);
3354
3360
  }
3355
3361
  return Object.defineProperty(e, "defaultLocale", {
3356
3362
  get: function() {
@@ -3363,7 +3369,7 @@ var Fi = (
3363
3369
  var n = Intl.NumberFormat.supportedLocalesOf(t);
3364
3370
  return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3365
3371
  }
3366
- }, e.__parse = Ri, e.formats = {
3372
+ }, e.__parse = Mi, e.formats = {
3367
3373
  number: {
3368
3374
  integer: {
3369
3375
  maximumFractionDigits: 0
@@ -3424,7 +3430,7 @@ var Fi = (
3424
3430
  }, e;
3425
3431
  }()
3426
3432
  );
3427
- function Gi(e, t) {
3433
+ function ji(e, t) {
3428
3434
  if (t == null)
3429
3435
  return;
3430
3436
  if (t in e)
@@ -3445,92 +3451,92 @@ function Gi(e, t) {
3445
3451
  r = void 0;
3446
3452
  return r;
3447
3453
  }
3448
- const we = {}, $i = (e, t, n) => n && (t in we || (we[t] = {}), e in we[t] || (we[t][e] = n), n), Zn = (e, t) => {
3454
+ const Se = {}, ki = (e, t, n) => n && (t in Se || (Se[t] = {}), e in Se[t] || (Se[t][e] = n), n), Qn = (e, t) => {
3449
3455
  if (t == null)
3450
3456
  return;
3451
- if (t in we && e in we[t])
3452
- return we[t][e];
3453
- const n = xt(t);
3457
+ if (t in Se && e in Se[t])
3458
+ return Se[t][e];
3459
+ const n = Bt(t);
3454
3460
  for (let r = 0; r < n.length; r++) {
3455
- const i = n[r], o = ji(i, e);
3461
+ const i = n[r], o = Xi(i, e);
3456
3462
  if (o)
3457
- return $i(e, t, o);
3463
+ return ki(e, t, o);
3458
3464
  }
3459
3465
  };
3460
- let Jt;
3461
- const rt = yt({});
3462
- function ki(e) {
3463
- return Jt[e] || null;
3466
+ let Kt;
3467
+ const it = Et({});
3468
+ function Vi(e) {
3469
+ return Kt[e] || null;
3464
3470
  }
3465
- function qn(e) {
3466
- return e in Jt;
3471
+ function Jn(e) {
3472
+ return e in Kt;
3467
3473
  }
3468
- function ji(e, t) {
3469
- if (!qn(e))
3474
+ function Xi(e, t) {
3475
+ if (!Jn(e))
3470
3476
  return null;
3471
- const n = ki(e);
3472
- return Gi(n, t);
3477
+ const n = Vi(e);
3478
+ return ji(n, t);
3473
3479
  }
3474
- function Vi(e) {
3480
+ function zi(e) {
3475
3481
  if (e == null)
3476
3482
  return;
3477
- const t = xt(e);
3483
+ const t = Bt(e);
3478
3484
  for (let n = 0; n < t.length; n++) {
3479
3485
  const r = t[n];
3480
- if (qn(r))
3486
+ if (Jn(r))
3481
3487
  return r;
3482
3488
  }
3483
3489
  }
3484
- function Qn(e, ...t) {
3485
- delete we[e], rt.update((n) => (n[e] = Wr.all([n[e] || {}, ...t]), n));
3490
+ function Yn(e, ...t) {
3491
+ delete Se[e], it.update((n) => (n[e] = qr.all([n[e] || {}, ...t]), n));
3486
3492
  }
3487
- Ve(
3488
- [rt],
3493
+ Xe(
3494
+ [it],
3489
3495
  ([e]) => Object.keys(e)
3490
3496
  );
3491
- rt.subscribe((e) => Jt = e);
3492
- const ft = {};
3493
- function Xi(e, t) {
3494
- ft[e].delete(t), ft[e].size === 0 && delete ft[e];
3497
+ it.subscribe((e) => Kt = e);
3498
+ const dt = {};
3499
+ function Wi(e, t) {
3500
+ dt[e].delete(t), dt[e].size === 0 && delete dt[e];
3495
3501
  }
3496
- function Jn(e) {
3497
- return ft[e];
3502
+ function Kn(e) {
3503
+ return dt[e];
3498
3504
  }
3499
- function zi(e) {
3500
- return xt(e).map((t) => {
3501
- const n = Jn(t);
3505
+ function Zi(e) {
3506
+ return Bt(e).map((t) => {
3507
+ const n = Kn(t);
3502
3508
  return [t, n ? [...n] : []];
3503
3509
  }).filter(([, t]) => t.length > 0);
3504
3510
  }
3505
- function Wt(e) {
3506
- return e == null ? !1 : xt(e).some(
3511
+ function qt(e) {
3512
+ return e == null ? !1 : Bt(e).some(
3507
3513
  (t) => {
3508
3514
  var n;
3509
- return (n = Jn(t)) == null ? void 0 : n.size;
3515
+ return (n = Kn(t)) == null ? void 0 : n.size;
3510
3516
  }
3511
3517
  );
3512
3518
  }
3513
- function Wi(e, t) {
3519
+ function qi(e, t) {
3514
3520
  return Promise.all(
3515
- t.map((r) => (Xi(e, r), r().then((i) => i.default || i)))
3516
- ).then((r) => Qn(e, ...r));
3517
- }
3518
- const Ye = {};
3519
- function Yn(e) {
3520
- if (!Wt(e))
3521
- return e in Ye ? Ye[e] : Promise.resolve();
3522
- const t = zi(e);
3523
- return Ye[e] = Promise.all(
3521
+ t.map((r) => (Wi(e, r), r().then((i) => i.default || i)))
3522
+ ).then((r) => Yn(e, ...r));
3523
+ }
3524
+ const Ke = {};
3525
+ function er(e) {
3526
+ if (!qt(e))
3527
+ return e in Ke ? Ke[e] : Promise.resolve();
3528
+ const t = Zi(e);
3529
+ return Ke[e] = Promise.all(
3524
3530
  t.map(
3525
- ([n, r]) => Wi(n, r)
3531
+ ([n, r]) => qi(n, r)
3526
3532
  )
3527
3533
  ).then(() => {
3528
- if (Wt(e))
3529
- return Yn(e);
3530
- delete Ye[e];
3531
- }), Ye[e];
3534
+ if (qt(e))
3535
+ return er(e);
3536
+ delete Ke[e];
3537
+ }), Ke[e];
3532
3538
  }
3533
- const Zi = {
3539
+ const Qi = {
3534
3540
  number: {
3535
3541
  scientific: { notation: "scientific" },
3536
3542
  engineering: { notation: "engineering" },
@@ -3559,148 +3565,148 @@ const Zi = {
3559
3565
  timeZoneName: "short"
3560
3566
  }
3561
3567
  }
3562
- }, qi = {
3568
+ }, Ji = {
3563
3569
  fallbackLocale: null,
3564
3570
  loadingDelay: 200,
3565
- formats: Zi,
3571
+ formats: Qi,
3566
3572
  warnOnMissingMessages: !0,
3567
3573
  handleMissingMessage: void 0,
3568
3574
  ignoreTag: !0
3569
- }, Qi = qi;
3575
+ }, Yi = Ji;
3570
3576
  function ke() {
3571
- return Qi;
3577
+ return Yi;
3572
3578
  }
3573
- const Pt = yt(!1);
3574
- var Ji = Object.defineProperty, Yi = Object.defineProperties, Ki = Object.getOwnPropertyDescriptors, pn = Object.getOwnPropertySymbols, eo = Object.prototype.hasOwnProperty, to = Object.prototype.propertyIsEnumerable, mn = (e, t, n) => t in e ? Ji(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, no = (e, t) => {
3579
+ const Ut = Et(!1);
3580
+ var Ki = Object.defineProperty, eo = Object.defineProperties, to = Object.getOwnPropertyDescriptors, gn = Object.getOwnPropertySymbols, no = Object.prototype.hasOwnProperty, ro = Object.prototype.propertyIsEnumerable, bn = (e, t, n) => t in e ? Ki(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, io = (e, t) => {
3575
3581
  for (var n in t || (t = {}))
3576
- eo.call(t, n) && mn(e, n, t[n]);
3577
- if (pn)
3578
- for (var n of pn(t))
3579
- to.call(t, n) && mn(e, n, t[n]);
3582
+ no.call(t, n) && bn(e, n, t[n]);
3583
+ if (gn)
3584
+ for (var n of gn(t))
3585
+ ro.call(t, n) && bn(e, n, t[n]);
3580
3586
  return e;
3581
- }, ro = (e, t) => Yi(e, Ki(t));
3582
- let Zt;
3583
- const gt = yt(null);
3584
- function gn(e) {
3587
+ }, oo = (e, t) => eo(e, to(t));
3588
+ let Qt;
3589
+ const yt = Et(null);
3590
+ function yn(e) {
3585
3591
  return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3586
3592
  }
3587
- function xt(e, t = ke().fallbackLocale) {
3588
- const n = gn(e);
3589
- return t ? [.../* @__PURE__ */ new Set([...n, ...gn(t)])] : n;
3593
+ function Bt(e, t = ke().fallbackLocale) {
3594
+ const n = yn(e);
3595
+ return t ? [.../* @__PURE__ */ new Set([...n, ...yn(t)])] : n;
3590
3596
  }
3591
- function He() {
3592
- return Zt ?? void 0;
3597
+ function Oe() {
3598
+ return Qt ?? void 0;
3593
3599
  }
3594
- gt.subscribe((e) => {
3595
- Zt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3600
+ yt.subscribe((e) => {
3601
+ Qt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3596
3602
  });
3597
- const io = (e) => {
3598
- if (e && Vi(e) && Wt(e)) {
3603
+ const ao = (e) => {
3604
+ if (e && zi(e) && qt(e)) {
3599
3605
  const { loadingDelay: t } = ke();
3600
3606
  let n;
3601
- return typeof window < "u" && He() != null && t ? n = window.setTimeout(
3602
- () => Pt.set(!0),
3607
+ return typeof window < "u" && Oe() != null && t ? n = window.setTimeout(
3608
+ () => Ut.set(!0),
3603
3609
  t
3604
- ) : Pt.set(!0), Yn(e).then(() => {
3605
- gt.set(e);
3610
+ ) : Ut.set(!0), er(e).then(() => {
3611
+ yt.set(e);
3606
3612
  }).finally(() => {
3607
- clearTimeout(n), Pt.set(!1);
3613
+ clearTimeout(n), Ut.set(!1);
3608
3614
  });
3609
3615
  }
3610
- return gt.set(e);
3611
- }, Xe = ro(no({}, gt), {
3612
- set: io
3613
- }), _t = (e) => {
3616
+ return yt.set(e);
3617
+ }, ze = oo(io({}, yt), {
3618
+ set: ao
3619
+ }), Tt = (e) => {
3614
3620
  const t = /* @__PURE__ */ Object.create(null);
3615
3621
  return (r) => {
3616
3622
  const i = JSON.stringify(r);
3617
3623
  return i in t ? t[i] : t[i] = e(r);
3618
3624
  };
3619
3625
  };
3620
- var oo = Object.defineProperty, bt = Object.getOwnPropertySymbols, Kn = Object.prototype.hasOwnProperty, er = Object.prototype.propertyIsEnumerable, bn = (e, t, n) => t in e ? oo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Yt = (e, t) => {
3626
+ var so = Object.defineProperty, vt = Object.getOwnPropertySymbols, tr = Object.prototype.hasOwnProperty, nr = Object.prototype.propertyIsEnumerable, vn = (e, t, n) => t in e ? so(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, en = (e, t) => {
3621
3627
  for (var n in t || (t = {}))
3622
- Kn.call(t, n) && bn(e, n, t[n]);
3623
- if (bt)
3624
- for (var n of bt(t))
3625
- er.call(t, n) && bn(e, n, t[n]);
3628
+ tr.call(t, n) && vn(e, n, t[n]);
3629
+ if (vt)
3630
+ for (var n of vt(t))
3631
+ nr.call(t, n) && vn(e, n, t[n]);
3626
3632
  return e;
3627
- }, ze = (e, t) => {
3633
+ }, We = (e, t) => {
3628
3634
  var n = {};
3629
3635
  for (var r in e)
3630
- Kn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3631
- if (e != null && bt)
3632
- for (var r of bt(e))
3633
- t.indexOf(r) < 0 && er.call(e, r) && (n[r] = e[r]);
3636
+ tr.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3637
+ if (e != null && vt)
3638
+ for (var r of vt(e))
3639
+ t.indexOf(r) < 0 && nr.call(e, r) && (n[r] = e[r]);
3634
3640
  return n;
3635
3641
  };
3636
- const nt = (e, t) => {
3642
+ const rt = (e, t) => {
3637
3643
  const { formats: n } = ke();
3638
3644
  if (e in n && t in n[e])
3639
3645
  return n[e][t];
3640
3646
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3641
- }, ao = _t(
3647
+ }, lo = Tt(
3642
3648
  (e) => {
3643
- var t = e, { locale: n, format: r } = t, i = ze(t, ["locale", "format"]);
3649
+ var t = e, { locale: n, format: r } = t, i = We(t, ["locale", "format"]);
3644
3650
  if (n == null)
3645
3651
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3646
- return r && (i = nt("number", r)), new Intl.NumberFormat(n, i);
3652
+ return r && (i = rt("number", r)), new Intl.NumberFormat(n, i);
3647
3653
  }
3648
- ), so = _t(
3654
+ ), uo = Tt(
3649
3655
  (e) => {
3650
- var t = e, { locale: n, format: r } = t, i = ze(t, ["locale", "format"]);
3656
+ var t = e, { locale: n, format: r } = t, i = We(t, ["locale", "format"]);
3651
3657
  if (n == null)
3652
3658
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3653
- return r ? i = nt("date", r) : Object.keys(i).length === 0 && (i = nt("date", "short")), new Intl.DateTimeFormat(n, i);
3659
+ return r ? i = rt("date", r) : Object.keys(i).length === 0 && (i = rt("date", "short")), new Intl.DateTimeFormat(n, i);
3654
3660
  }
3655
- ), lo = _t(
3661
+ ), co = Tt(
3656
3662
  (e) => {
3657
- var t = e, { locale: n, format: r } = t, i = ze(t, ["locale", "format"]);
3663
+ var t = e, { locale: n, format: r } = t, i = We(t, ["locale", "format"]);
3658
3664
  if (n == null)
3659
3665
  throw new Error(
3660
3666
  '[svelte-i18n] A "locale" must be set to format time values'
3661
3667
  );
3662
- return r ? i = nt("time", r) : Object.keys(i).length === 0 && (i = nt("time", "short")), new Intl.DateTimeFormat(n, i);
3668
+ return r ? i = rt("time", r) : Object.keys(i).length === 0 && (i = rt("time", "short")), new Intl.DateTimeFormat(n, i);
3663
3669
  }
3664
- ), uo = (e = {}) => {
3670
+ ), ho = (e = {}) => {
3665
3671
  var t = e, {
3666
- locale: n = He()
3667
- } = t, r = ze(t, [
3672
+ locale: n = Oe()
3673
+ } = t, r = We(t, [
3668
3674
  "locale"
3669
3675
  ]);
3670
- return ao(Yt({ locale: n }, r));
3671
- }, co = (e = {}) => {
3676
+ return lo(en({ locale: n }, r));
3677
+ }, fo = (e = {}) => {
3672
3678
  var t = e, {
3673
- locale: n = He()
3674
- } = t, r = ze(t, [
3679
+ locale: n = Oe()
3680
+ } = t, r = We(t, [
3675
3681
  "locale"
3676
3682
  ]);
3677
- return so(Yt({ locale: n }, r));
3678
- }, ho = (e = {}) => {
3683
+ return uo(en({ locale: n }, r));
3684
+ }, po = (e = {}) => {
3679
3685
  var t = e, {
3680
- locale: n = He()
3681
- } = t, r = ze(t, [
3686
+ locale: n = Oe()
3687
+ } = t, r = We(t, [
3682
3688
  "locale"
3683
3689
  ]);
3684
- return lo(Yt({ locale: n }, r));
3685
- }, fo = _t(
3690
+ return co(en({ locale: n }, r));
3691
+ }, mo = Tt(
3686
3692
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3687
- (e, t = He()) => new Fi(e, t, ke().formats, {
3693
+ (e, t = Oe()) => new $i(e, t, ke().formats, {
3688
3694
  ignoreTag: ke().ignoreTag
3689
3695
  })
3690
- ), po = (e, t = {}) => {
3696
+ ), go = (e, t = {}) => {
3691
3697
  var n, r, i, o;
3692
3698
  let l = t;
3693
3699
  typeof e == "object" && (l = e, e = l.id);
3694
3700
  const {
3695
3701
  values: s,
3696
- locale: h = He(),
3702
+ locale: h = Oe(),
3697
3703
  default: u
3698
3704
  } = l;
3699
3705
  if (h == null)
3700
3706
  throw new Error(
3701
3707
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3702
3708
  );
3703
- let d = Zn(e, h);
3709
+ let d = Qn(e, h);
3704
3710
  if (!d)
3705
3711
  d = (o = (i = (r = (n = ke()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3706
3712
  else if (typeof d != "string")
@@ -3711,7 +3717,7 @@ const nt = (e, t) => {
3711
3717
  return d;
3712
3718
  let m = d;
3713
3719
  try {
3714
- m = fo(d, h).format(s);
3720
+ m = mo(d, h).format(s);
3715
3721
  } catch (g) {
3716
3722
  g instanceof Error && console.warn(
3717
3723
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3719,18 +3725,18 @@ const nt = (e, t) => {
3719
3725
  );
3720
3726
  }
3721
3727
  return m;
3722
- }, mo = (e, t) => ho(t).format(e), go = (e, t) => co(t).format(e), bo = (e, t) => uo(t).format(e), yo = (e, t = He()) => Zn(e, t), vo = Ve([Xe, rt], () => po);
3723
- Ve([Xe], () => mo);
3724
- Ve([Xe], () => go);
3725
- Ve([Xe], () => bo);
3726
- Ve([Xe, rt], () => yo);
3727
- function yn(e, t) {
3728
- Qn(e, t);
3729
- }
3730
- function Eo(e) {
3731
- Xe.set(e);
3732
- }
3733
- const vn = {
3728
+ }, bo = (e, t) => po(t).format(e), yo = (e, t) => fo(t).format(e), vo = (e, t) => ho(t).format(e), Eo = (e, t = Oe()) => Qn(e, t), _o = Xe([ze, it], () => go);
3729
+ Xe([ze], () => bo);
3730
+ Xe([ze], () => yo);
3731
+ Xe([ze], () => vo);
3732
+ Xe([ze, it], () => Eo);
3733
+ function En(e, t) {
3734
+ Yn(e, t);
3735
+ }
3736
+ function xo(e) {
3737
+ ze.set(e);
3738
+ }
3739
+ const _n = {
3734
3740
  en: {
3735
3741
  Title: "Your Balance",
3736
3742
  Total: "Total Balance",
@@ -3930,7 +3936,7 @@ const vn = {
3930
3936
  Loading: "Loading ..."
3931
3937
  }
3932
3938
  };
3933
- var qt = { exports: {} };
3939
+ var Jt = { exports: {} };
3934
3940
  /** @license
3935
3941
  * eventsource.js
3936
3942
  * Available under MIT License (MIT)
@@ -3938,7 +3944,7 @@ var qt = { exports: {} };
3938
3944
  */
3939
3945
  (function(e, t) {
3940
3946
  (function(n) {
3941
- var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, l = n.XDomainRequest, s = n.ActiveXObject, h = n.EventSource, u = n.document, d = n.Promise, m = n.fetch, g = n.Response, _ = n.TextDecoder, B = n.TextEncoder, T = n.AbortController;
3947
+ var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, l = n.XDomainRequest, s = n.ActiveXObject, h = n.EventSource, u = n.document, d = n.Promise, m = n.fetch, g = n.Response, x = n.TextDecoder, B = n.TextEncoder, T = n.AbortController;
3942
3948
  if (typeof window < "u" && typeof u < "u" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(a) {
3943
3949
  u.readyState = "complete";
3944
3950
  }, !1)), o == null && s != null && (o = function() {
@@ -3950,10 +3956,10 @@ var qt = { exports: {} };
3950
3956
  }), Date.now || (Date.now = function() {
3951
3957
  return (/* @__PURE__ */ new Date()).getTime();
3952
3958
  }), T == null) {
3953
- var x = m;
3959
+ var _ = m;
3954
3960
  m = function(a, f) {
3955
3961
  var p = f.signal;
3956
- return x(a, { headers: f.headers, credentials: f.credentials, cache: f.cache }).then(function(c) {
3962
+ return _(a, { headers: f.headers, credentials: f.credentials, cache: f.cache }).then(function(c) {
3957
3963
  var v = c.body.getReader();
3958
3964
  return p._reader = v, p._aborted && p._reader.cancel(), {
3959
3965
  status: c.status,
@@ -3979,20 +3985,20 @@ var qt = { exports: {} };
3979
3985
  this.bitsNeeded = 0, this.codePoint = 0;
3980
3986
  }
3981
3987
  S.prototype.decode = function(a) {
3982
- function f(P, G, w) {
3988
+ function f(P, F, w) {
3983
3989
  if (w === 1)
3984
- return P >= 128 >> G && P << G <= 2047;
3990
+ return P >= 128 >> F && P << F <= 2047;
3985
3991
  if (w === 2)
3986
- return P >= 2048 >> G && P << G <= 55295 || P >= 57344 >> G && P << G <= 65535;
3992
+ return P >= 2048 >> F && P << F <= 55295 || P >= 57344 >> F && P << F <= 65535;
3987
3993
  if (w === 3)
3988
- return P >= 65536 >> G && P << G <= 1114111;
3994
+ return P >= 65536 >> F && P << F <= 1114111;
3989
3995
  throw new Error();
3990
3996
  }
3991
- function p(P, G) {
3997
+ function p(P, F) {
3992
3998
  if (P === 6 * 1)
3993
- return G >> 6 > 15 ? 3 : G > 31 ? 2 : 1;
3999
+ return F >> 6 > 15 ? 3 : F > 31 ? 2 : 1;
3994
4000
  if (P === 6 * 2)
3995
- return G > 15 ? 3 : 2;
4001
+ return F > 15 ? 3 : 2;
3996
4002
  if (P === 6 * 3)
3997
4003
  return 3;
3998
4004
  throw new Error();
@@ -4003,21 +4009,21 @@ var qt = { exports: {} };
4003
4009
  }
4004
4010
  return this.bitsNeeded = E, this.codePoint = y, v;
4005
4011
  };
4006
- var D = function() {
4012
+ var I = function() {
4007
4013
  try {
4008
- return new _().decode(new B().encode("test"), { stream: !0 }) === "test";
4014
+ return new x().decode(new B().encode("test"), { stream: !0 }) === "test";
4009
4015
  } catch (a) {
4010
4016
  console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + a);
4011
4017
  }
4012
4018
  return !1;
4013
4019
  };
4014
- (_ == null || B == null || !D()) && (_ = S);
4020
+ (x == null || B == null || !I()) && (x = S);
4015
4021
  var H = function() {
4016
4022
  };
4017
- function U(a) {
4023
+ function D(a) {
4018
4024
  this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = H, this.onload = H, this.onerror = H, this.onreadystatechange = H, this._contentType = "", this._xhr = a, this._sendTimeout = 0, this._abort = H;
4019
4025
  }
4020
- U.prototype.open = function(a, f) {
4026
+ D.prototype.open = function(a, f) {
4021
4027
  this._abort(!0);
4022
4028
  var p = this, c = this._xhr, v = 1, E = 0;
4023
4029
  this._abort = function(w) {
@@ -4025,16 +4031,16 @@ var qt = { exports: {} };
4025
4031
  };
4026
4032
  var y = function() {
4027
4033
  if (v === 1) {
4028
- var w = 0, V = "", ge = void 0;
4034
+ var w = 0, k = "", be = void 0;
4029
4035
  if ("contentType" in c)
4030
- w = 200, V = "OK", ge = c.contentType;
4036
+ w = 200, k = "OK", be = c.contentType;
4031
4037
  else
4032
4038
  try {
4033
- w = c.status, V = c.statusText, ge = c.getResponseHeader("Content-Type");
4039
+ w = c.status, k = c.statusText, be = c.getResponseHeader("Content-Type");
4034
4040
  } catch {
4035
- w = 0, V = "", ge = void 0;
4041
+ w = 0, k = "", be = void 0;
4036
4042
  }
4037
- w !== 0 && (v = 2, p.readyState = 2, p.status = w, p.statusText = V, p._contentType = ge, p.onreadystatechange());
4043
+ w !== 0 && (v = 2, p.readyState = 2, p.status = w, p.statusText = k, p._contentType = be, p.onreadystatechange());
4038
4044
  }
4039
4045
  }, L = function() {
4040
4046
  if (y(), v === 2 || v === 3) {
@@ -4046,25 +4052,25 @@ var qt = { exports: {} };
4046
4052
  }
4047
4053
  p.readyState = 3, p.responseText = w, p.onprogress();
4048
4054
  }
4049
- }, A = function(w, V) {
4050
- if ((V == null || V.preventDefault == null) && (V = {
4055
+ }, A = function(w, k) {
4056
+ if ((k == null || k.preventDefault == null) && (k = {
4051
4057
  preventDefault: H
4052
4058
  }), L(), v === 1 || v === 2 || v === 3) {
4053
4059
  if (v = 4, E !== 0 && (i(E), E = 0), p.readyState = 4, w === "load")
4054
- p.onload(V);
4060
+ p.onload(k);
4055
4061
  else if (w === "error")
4056
- p.onerror(V);
4062
+ p.onerror(k);
4057
4063
  else if (w === "abort")
4058
- p.onabort(V);
4064
+ p.onabort(k);
4059
4065
  else
4060
4066
  throw new TypeError();
4061
4067
  p.onreadystatechange();
4062
4068
  }
4063
4069
  }, P = function(w) {
4064
4070
  c != null && (c.readyState === 4 ? (!("onload" in c) || !("onerror" in c) || !("onabort" in c)) && A(c.responseText === "" ? "error" : "load", w) : c.readyState === 3 ? "onprogress" in c || L() : c.readyState === 2 && y());
4065
- }, G = function() {
4071
+ }, F = function() {
4066
4072
  E = r(function() {
4067
- G();
4073
+ F();
4068
4074
  }, 500), c.readyState === 3 && L();
4069
4075
  };
4070
4076
  "onload" in c && (c.onload = function(w) {
@@ -4076,18 +4082,18 @@ var qt = { exports: {} };
4076
4082
  }), "onprogress" in c && (c.onprogress = L), "onreadystatechange" in c && (c.onreadystatechange = function(w) {
4077
4083
  P(w);
4078
4084
  }), ("contentType" in c || !("ontimeout" in o.prototype)) && (f += (f.indexOf("?") === -1 ? "?" : "&") + "padding=true"), c.open(a, f, !0), "readyState" in c && (E = r(function() {
4079
- G();
4085
+ F();
4080
4086
  }, 0));
4081
- }, U.prototype.abort = function() {
4087
+ }, D.prototype.abort = function() {
4082
4088
  this._abort(!1);
4083
- }, U.prototype.getResponseHeader = function(a) {
4089
+ }, D.prototype.getResponseHeader = function(a) {
4084
4090
  return this._contentType;
4085
- }, U.prototype.setRequestHeader = function(a, f) {
4091
+ }, D.prototype.setRequestHeader = function(a, f) {
4086
4092
  var p = this._xhr;
4087
4093
  "setRequestHeader" in p && p.setRequestHeader(a, f);
4088
- }, U.prototype.getAllResponseHeaders = function() {
4094
+ }, D.prototype.getAllResponseHeaders = function() {
4089
4095
  return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
4090
- }, U.prototype.send = function() {
4096
+ }, D.prototype.send = function() {
4091
4097
  if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && u != null && u.readyState != null && u.readyState !== "complete") {
4092
4098
  var a = this;
4093
4099
  a._sendTimeout = r(function() {
@@ -4125,8 +4131,8 @@ var qt = { exports: {} };
4125
4131
  a.open("GET", v);
4126
4132
  var L = 0;
4127
4133
  a.onprogress = function() {
4128
- var P = a.responseText, G = P.slice(L);
4129
- L += G.length, p(G);
4134
+ var P = a.responseText, F = P.slice(L);
4135
+ L += F.length, p(F);
4130
4136
  }, a.onerror = function(P) {
4131
4137
  P.preventDefault(), c(new Error("NetworkError"));
4132
4138
  }, a.onload = function() {
@@ -4135,44 +4141,44 @@ var qt = { exports: {} };
4135
4141
  c(null);
4136
4142
  }, a.onreadystatechange = function() {
4137
4143
  if (a.readyState === o.HEADERS_RECEIVED) {
4138
- var P = a.status, G = a.statusText, w = a.getResponseHeader("Content-Type"), V = a.getAllResponseHeaders();
4139
- f(P, G, w, new q(V));
4144
+ var P = a.status, F = a.statusText, w = a.getResponseHeader("Content-Type"), k = a.getAllResponseHeaders();
4145
+ f(P, F, w, new q(k));
4140
4146
  }
4141
4147
  }, a.withCredentials = E;
4142
4148
  for (var A in y)
4143
4149
  Object.prototype.hasOwnProperty.call(y, A) && a.setRequestHeader(A, y[A]);
4144
4150
  return a.send(), a;
4145
4151
  };
4146
- function $(a) {
4152
+ function G(a) {
4147
4153
  this._headers = a;
4148
4154
  }
4149
- $.prototype.get = function(a) {
4155
+ G.prototype.get = function(a) {
4150
4156
  return this._headers.get(a);
4151
4157
  };
4152
4158
  function R() {
4153
4159
  }
4154
4160
  R.prototype.open = function(a, f, p, c, v, E, y) {
4155
- var L = null, A = new T(), P = A.signal, G = new _();
4161
+ var L = null, A = new T(), P = A.signal, F = new x();
4156
4162
  return m(v, {
4157
4163
  headers: y,
4158
4164
  credentials: E ? "include" : "same-origin",
4159
4165
  signal: P,
4160
4166
  cache: "no-store"
4161
4167
  }).then(function(w) {
4162
- return L = w.body.getReader(), f(w.status, w.statusText, w.headers.get("Content-Type"), new $(w.headers)), new d(function(V, ge) {
4163
- var Qe = function() {
4168
+ return L = w.body.getReader(), f(w.status, w.statusText, w.headers.get("Content-Type"), new G(w.headers)), new d(function(k, be) {
4169
+ var Je = function() {
4164
4170
  L.read().then(function(ie) {
4165
4171
  if (ie.done)
4166
- V(void 0);
4172
+ k(void 0);
4167
4173
  else {
4168
- var K = G.decode(ie.value, { stream: !0 });
4169
- p(K), Qe();
4174
+ var K = F.decode(ie.value, { stream: !0 });
4175
+ p(K), Je();
4170
4176
  }
4171
4177
  }).catch(function(ie) {
4172
- ge(ie);
4178
+ be(ie);
4173
4179
  });
4174
4180
  };
4175
- Qe();
4181
+ Je();
4176
4182
  });
4177
4183
  }).catch(function(w) {
4178
4184
  if (w.name !== "AbortError")
@@ -4185,15 +4191,15 @@ var qt = { exports: {} };
4185
4191
  }
4186
4192
  };
4187
4193
  };
4188
- function X() {
4194
+ function V() {
4189
4195
  this._listeners = /* @__PURE__ */ Object.create(null);
4190
4196
  }
4191
- function F(a) {
4197
+ function U(a) {
4192
4198
  r(function() {
4193
4199
  throw a;
4194
4200
  }, 0);
4195
4201
  }
4196
- X.prototype.dispatchEvent = function(a) {
4202
+ V.prototype.dispatchEvent = function(a) {
4197
4203
  a.target = this;
4198
4204
  var f = this._listeners[a.type];
4199
4205
  if (f != null)
@@ -4202,17 +4208,17 @@ var qt = { exports: {} };
4202
4208
  try {
4203
4209
  typeof v.handleEvent == "function" ? v.handleEvent(a) : v.call(this, a);
4204
4210
  } catch (E) {
4205
- F(E);
4211
+ U(E);
4206
4212
  }
4207
4213
  }
4208
- }, X.prototype.addEventListener = function(a, f) {
4214
+ }, V.prototype.addEventListener = function(a, f) {
4209
4215
  a = String(a);
4210
4216
  var p = this._listeners, c = p[a];
4211
4217
  c == null && (c = [], p[a] = c);
4212
4218
  for (var v = !1, E = 0; E < c.length; E += 1)
4213
4219
  c[E] === f && (v = !0);
4214
4220
  v || c.push(f);
4215
- }, X.prototype.removeEventListener = function(a, f) {
4221
+ }, V.prototype.removeEventListener = function(a, f) {
4216
4222
  a = String(a);
4217
4223
  var p = this._listeners, c = p[a];
4218
4224
  if (c != null) {
@@ -4228,154 +4234,154 @@ var qt = { exports: {} };
4228
4234
  b.call(this, a), this.data = f.data, this.lastEventId = f.lastEventId;
4229
4235
  }
4230
4236
  xe.prototype = Object.create(b.prototype);
4231
- function We(a, f) {
4237
+ function Ze(a, f) {
4232
4238
  b.call(this, a), this.status = f.status, this.statusText = f.statusText, this.headers = f.headers;
4233
4239
  }
4234
- We.prototype = Object.create(b.prototype);
4235
- function _e(a, f) {
4240
+ Ze.prototype = Object.create(b.prototype);
4241
+ function Be(a, f) {
4236
4242
  b.call(this, a), this.error = f.error;
4237
4243
  }
4238
- _e.prototype = Object.create(b.prototype);
4239
- var Oe = -1, pe = 0, Be = 1, Se = 2, Ae = -1, le = 0, Ze = 1, Re = 2, it = 3, Bt = /^text\/event\-stream(;.*)?$/i, ot = 1e3, Tt = 18e6, qe = function(a, f) {
4244
+ Be.prototype = Object.create(b.prototype);
4245
+ var Re = -1, pe = 0, Te = 1, Ae = 2, Ce = -1, le = 0, qe = 1, Le = 2, ot = 3, wt = /^text\/event\-stream(;.*)?$/i, at = 1e3, St = 18e6, Qe = function(a, f) {
4240
4246
  var p = a == null ? f : parseInt(a, 10);
4241
- return p !== p && (p = f), Le(p);
4242
- }, Le = function(a) {
4243
- return Math.min(Math.max(a, ot), Tt);
4244
- }, Te = function(a, f, p) {
4247
+ return p !== p && (p = f), Me(p);
4248
+ }, Me = function(a) {
4249
+ return Math.min(Math.max(a, at), St);
4250
+ }, we = function(a, f, p) {
4245
4251
  try {
4246
4252
  typeof f == "function" && f.call(a, p);
4247
4253
  } catch (c) {
4248
- F(c);
4254
+ U(c);
4249
4255
  }
4250
4256
  };
4251
4257
  function re(a, f) {
4252
- X.call(this), f = f || {}, 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, At(this, a, f);
4258
+ V.call(this), f = f || {}, 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, Ht(this, a, f);
4253
4259
  }
4254
- function wt() {
4260
+ function At() {
4255
4261
  return o != null && "withCredentials" in o.prototype || l == null ? new o() : new l();
4256
4262
  }
4257
- var St = m != null && g != null && "body" in g.prototype;
4258
- function At(a, f, p) {
4263
+ var Ct = m != null && g != null && "body" in g.prototype;
4264
+ function Ht(a, f, p) {
4259
4265
  f = String(f);
4260
- var c = !!p.withCredentials, v = p.lastEventIdQueryParameterName || "lastEventId", E = Le(1e3), y = qe(p.heartbeatTimeout, 45e3), L = "", A = E, P = !1, G = 0, w = p.headers || {}, V = p.Transport, ge = St && V == null ? void 0 : new U(V != null ? new V() : wt()), Qe = V != null && typeof V != "string" ? new V() : ge == null ? new R() : new Y(), ie = void 0, K = 0, ue = Oe, Me = "", st = "", be = "", lt = "", ee = le, Ct = 0, Ce = 0, nr = function(Z, z, oe, ae) {
4266
+ var c = !!p.withCredentials, v = p.lastEventIdQueryParameterName || "lastEventId", E = Me(1e3), y = Qe(p.heartbeatTimeout, 45e3), L = "", A = E, P = !1, F = 0, w = p.headers || {}, k = p.Transport, be = Ct && k == null ? void 0 : new D(k != null ? new k() : At()), Je = k != null && typeof k != "string" ? new k() : be == null ? new R() : new Y(), ie = void 0, K = 0, ue = Re, Ne = "", lt = "", ye = "", ut = "", ee = le, Ot = 0, He = 0, ir = function(Z, z, oe, ae) {
4261
4267
  if (ue === pe)
4262
- if (Z === 200 && oe != null && Bt.test(oe)) {
4263
- ue = Be, P = Date.now(), A = E, a.readyState = Be;
4264
- var te = new We("open", {
4268
+ if (Z === 200 && oe != null && wt.test(oe)) {
4269
+ ue = Te, P = Date.now(), A = E, a.readyState = Te;
4270
+ var te = new Ze("open", {
4265
4271
  status: Z,
4266
4272
  statusText: z,
4267
4273
  headers: ae
4268
4274
  });
4269
- a.dispatchEvent(te), Te(a, a.onopen, te);
4275
+ a.dispatchEvent(te), we(a, a.onopen, te);
4270
4276
  } else {
4271
4277
  var Q = "";
4272
- Z !== 200 ? (z && (z = z.replace(/\s+/g, " ")), Q = "EventSource's response has a status " + Z + " " + z + " that is not 200. Aborting the connection.") : Q = "EventSource's response has a Content-Type specifying an unsupported type: " + (oe == null ? "-" : oe.replace(/\s+/g, " ")) + ". Aborting the connection.", Ht();
4273
- var te = new We("error", {
4278
+ Z !== 200 ? (z && (z = z.replace(/\s+/g, " ")), Q = "EventSource's response has a status " + Z + " " + z + " that is not 200. Aborting the connection.") : Q = "EventSource's response has a Content-Type specifying an unsupported type: " + (oe == null ? "-" : oe.replace(/\s+/g, " ")) + ". Aborting the connection.", Rt();
4279
+ var te = new Ze("error", {
4274
4280
  status: Z,
4275
4281
  statusText: z,
4276
4282
  headers: ae
4277
4283
  });
4278
- a.dispatchEvent(te), Te(a, a.onerror, te), console.error(Q);
4284
+ a.dispatchEvent(te), we(a, a.onerror, te), console.error(Q);
4279
4285
  }
4280
- }, rr = function(Z) {
4281
- if (ue === Be) {
4286
+ }, or = function(Z) {
4287
+ if (ue === Te) {
4282
4288
  for (var z = -1, oe = 0; oe < Z.length; oe += 1) {
4283
4289
  var ae = Z.charCodeAt(oe);
4284
4290
  (ae === 10 || ae === 13) && (z = oe);
4285
4291
  }
4286
- var te = (z !== -1 ? lt : "") + Z.slice(0, z + 1);
4287
- lt = (z === -1 ? lt : "") + Z.slice(z + 1), Z !== "" && (P = Date.now(), G += Z.length);
4292
+ var te = (z !== -1 ? ut : "") + Z.slice(0, z + 1);
4293
+ ut = (z === -1 ? ut : "") + Z.slice(z + 1), Z !== "" && (P = Date.now(), F += Z.length);
4288
4294
  for (var Q = 0; Q < te.length; Q += 1) {
4289
4295
  var ae = te.charCodeAt(Q);
4290
- if (ee === Ae && ae === 10)
4296
+ if (ee === Ce && ae === 10)
4291
4297
  ee = le;
4292
- else if (ee === Ae && (ee = le), ae === 13 || ae === 10) {
4298
+ else if (ee === Ce && (ee = le), ae === 13 || ae === 10) {
4293
4299
  if (ee !== le) {
4294
- ee === Ze && (Ce = Q + 1);
4295
- var ye = te.slice(Ct, Ce - 1), ve = te.slice(Ce + (Ce < Q && te.charCodeAt(Ce) === 32 ? 1 : 0), Q);
4296
- ye === "data" ? (Me += `
4297
- `, Me += ve) : ye === "id" ? st = ve : ye === "event" ? be = ve : ye === "retry" ? (E = qe(ve, E), A = E) : ye === "heartbeatTimeout" && (y = qe(ve, y), K !== 0 && (i(K), K = r(function() {
4298
- Je();
4300
+ ee === qe && (He = Q + 1);
4301
+ var ve = te.slice(Ot, He - 1), Ee = te.slice(He + (He < Q && te.charCodeAt(He) === 32 ? 1 : 0), Q);
4302
+ ve === "data" ? (Ne += `
4303
+ `, Ne += Ee) : ve === "id" ? lt = Ee : ve === "event" ? ye = Ee : ve === "retry" ? (E = Qe(Ee, E), A = E) : ve === "heartbeatTimeout" && (y = Qe(Ee, y), K !== 0 && (i(K), K = r(function() {
4304
+ Ye();
4299
4305
  }, y)));
4300
4306
  }
4301
4307
  if (ee === le) {
4302
- if (Me !== "") {
4303
- L = st, be === "" && (be = "message");
4304
- var Ne = new xe(be, {
4305
- data: Me.slice(1),
4306
- lastEventId: st
4308
+ if (Ne !== "") {
4309
+ L = lt, ye === "" && (ye = "message");
4310
+ var Pe = new xe(ye, {
4311
+ data: Ne.slice(1),
4312
+ lastEventId: lt
4307
4313
  });
4308
- if (a.dispatchEvent(Ne), be === "open" ? Te(a, a.onopen, Ne) : be === "message" ? Te(a, a.onmessage, Ne) : be === "error" && Te(a, a.onerror, Ne), ue === Se)
4314
+ if (a.dispatchEvent(Pe), ye === "open" ? we(a, a.onopen, Pe) : ye === "message" ? we(a, a.onmessage, Pe) : ye === "error" && we(a, a.onerror, Pe), ue === Ae)
4309
4315
  return;
4310
4316
  }
4311
- Me = "", be = "";
4317
+ Ne = "", ye = "";
4312
4318
  }
4313
- ee = ae === 13 ? Ae : le;
4319
+ ee = ae === 13 ? Ce : le;
4314
4320
  } else
4315
- ee === le && (Ct = Q, ee = Ze), ee === Ze ? ae === 58 && (Ce = Q + 1, ee = Re) : ee === Re && (ee = it);
4321
+ ee === le && (Ot = Q, ee = qe), ee === qe ? ae === 58 && (He = Q + 1, ee = Le) : ee === Le && (ee = ot);
4316
4322
  }
4317
4323
  }
4318
- }, en = function(Z) {
4319
- if (ue === Be || ue === pe) {
4320
- ue = Oe, K !== 0 && (i(K), K = 0), K = r(function() {
4321
- Je();
4322
- }, A), A = Le(Math.min(E * 16, A * 2)), a.readyState = pe;
4323
- var z = new _e("error", { error: Z });
4324
- a.dispatchEvent(z), Te(a, a.onerror, z), Z != null && console.error(Z);
4324
+ }, nn = function(Z) {
4325
+ if (ue === Te || ue === pe) {
4326
+ ue = Re, K !== 0 && (i(K), K = 0), K = r(function() {
4327
+ Ye();
4328
+ }, A), A = Me(Math.min(E * 16, A * 2)), a.readyState = pe;
4329
+ var z = new Be("error", { error: Z });
4330
+ a.dispatchEvent(z), we(a, a.onerror, z), Z != null && console.error(Z);
4325
4331
  }
4326
- }, Ht = function() {
4327
- ue = Se, ie != null && (ie.abort(), ie = void 0), K !== 0 && (i(K), K = 0), a.readyState = Se;
4328
- }, Je = function() {
4329
- if (K = 0, ue !== Oe) {
4332
+ }, Rt = function() {
4333
+ ue = Ae, ie != null && (ie.abort(), ie = void 0), K !== 0 && (i(K), K = 0), a.readyState = Ae;
4334
+ }, Ye = function() {
4335
+ if (K = 0, ue !== Re) {
4330
4336
  if (!P && ie != null)
4331
- en(new Error("No activity within " + y + " milliseconds. " + (ue === pe ? "No response received." : G + " chars received.") + " Reconnecting.")), ie != null && (ie.abort(), ie = void 0);
4337
+ nn(new Error("No activity within " + y + " milliseconds. " + (ue === pe ? "No response received." : F + " chars received.") + " Reconnecting.")), ie != null && (ie.abort(), ie = void 0);
4332
4338
  else {
4333
4339
  var Z = Math.max((P || Date.now()) + y - Date.now(), 1);
4334
4340
  P = !1, K = r(function() {
4335
- Je();
4341
+ Ye();
4336
4342
  }, Z);
4337
4343
  }
4338
4344
  return;
4339
4345
  }
4340
- P = !1, G = 0, K = r(function() {
4341
- Je();
4342
- }, y), ue = pe, Me = "", be = "", st = L, lt = "", Ct = 0, Ce = 0, ee = le;
4346
+ P = !1, F = 0, K = r(function() {
4347
+ Ye();
4348
+ }, y), ue = pe, Ne = "", ye = "", lt = L, ut = "", Ot = 0, He = 0, ee = le;
4343
4349
  var z = f;
4344
4350
  if (f.slice(0, 5) !== "data:" && f.slice(0, 5) !== "blob:" && L !== "") {
4345
4351
  var oe = f.indexOf("?");
4346
- z = oe === -1 ? f : f.slice(0, oe + 1) + f.slice(oe + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(ve, Ne) {
4347
- return Ne === v ? "" : ve;
4352
+ z = oe === -1 ? f : f.slice(0, oe + 1) + f.slice(oe + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Ee, Pe) {
4353
+ return Pe === v ? "" : Ee;
4348
4354
  }), z += (f.indexOf("?") === -1 ? "?" : "&") + v + "=" + encodeURIComponent(L);
4349
4355
  }
4350
4356
  var ae = a.withCredentials, te = {};
4351
4357
  te.Accept = "text/event-stream";
4352
4358
  var Q = a.headers;
4353
4359
  if (Q != null)
4354
- for (var ye in Q)
4355
- Object.prototype.hasOwnProperty.call(Q, ye) && (te[ye] = Q[ye]);
4360
+ for (var ve in Q)
4361
+ Object.prototype.hasOwnProperty.call(Q, ve) && (te[ve] = Q[ve]);
4356
4362
  try {
4357
- ie = Qe.open(ge, nr, rr, en, z, ae, te);
4358
- } catch (ve) {
4359
- throw Ht(), ve;
4363
+ ie = Je.open(be, ir, or, nn, z, ae, te);
4364
+ } catch (Ee) {
4365
+ throw Rt(), Ee;
4360
4366
  }
4361
4367
  };
4362
- a.url = f, a.readyState = pe, a.withCredentials = c, a.headers = w, a._close = Ht, Je();
4368
+ a.url = f, a.readyState = pe, a.withCredentials = c, a.headers = w, a._close = Rt, Ye();
4363
4369
  }
4364
- re.prototype = Object.create(X.prototype), re.prototype.CONNECTING = pe, re.prototype.OPEN = Be, re.prototype.CLOSED = Se, re.prototype.close = function() {
4370
+ re.prototype = Object.create(V.prototype), re.prototype.CONNECTING = pe, re.prototype.OPEN = Te, re.prototype.CLOSED = Ae, re.prototype.close = function() {
4365
4371
  this._close();
4366
- }, re.CONNECTING = pe, re.OPEN = Be, re.CLOSED = Se, re.prototype.withCredentials = void 0;
4367
- var at = h;
4368
- o != null && (h == null || !("withCredentials" in h.prototype)) && (at = re), function(a) {
4372
+ }, re.CONNECTING = pe, re.OPEN = Te, re.CLOSED = Ae, re.prototype.withCredentials = void 0;
4373
+ var st = h;
4374
+ o != null && (h == null || !("withCredentials" in h.prototype)) && (st = re), function(a) {
4369
4375
  {
4370
4376
  var f = a(t);
4371
4377
  f !== void 0 && (e.exports = f);
4372
4378
  }
4373
4379
  }(function(a) {
4374
- a.EventSourcePolyfill = re, a.NativeEventSource = h, a.EventSource = at;
4380
+ a.EventSourcePolyfill = re, a.NativeEventSource = h, a.EventSource = st;
4375
4381
  });
4376
- })(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : Rr : globalThis);
4377
- })(qt, qt.exports);
4378
- var xo = qt.exports;
4382
+ })(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : Mr : globalThis);
4383
+ })(Jt, Jt.exports);
4384
+ var Bo = Jt.exports;
4379
4385
  /*!
4380
4386
  * currency.js - v2.0.4
4381
4387
  * http://scurker.github.io/currency.js
@@ -4383,7 +4389,7 @@ var xo = qt.exports;
4383
4389
  * Copyright (c) 2021 Jason Wilson
4384
4390
  * Released under MIT license
4385
4391
  */
4386
- var _o = {
4392
+ var To = {
4387
4393
  symbol: "$",
4388
4394
  separator: ",",
4389
4395
  decimal: ".",
@@ -4391,24 +4397,24 @@ var _o = {
4391
4397
  precision: 2,
4392
4398
  pattern: "!#",
4393
4399
  negativePattern: "-!#",
4394
- format: So,
4400
+ format: Co,
4395
4401
  fromCents: !1
4396
- }, tr = function(t) {
4402
+ }, rr = function(t) {
4397
4403
  return Math.round(t);
4398
- }, Kt = function(t) {
4404
+ }, tn = function(t) {
4399
4405
  return Math.pow(10, t);
4400
- }, Bo = function(t, n) {
4401
- return tr(t / n) * n;
4402
- }, To = /(\d)(?=(\d{3})+\b)/g, wo = /(\d)(?=(\d\d)+\d\b)/g;
4406
+ }, wo = function(t, n) {
4407
+ return rr(t / n) * n;
4408
+ }, So = /(\d)(?=(\d{3})+\b)/g, Ao = /(\d)(?=(\d\d)+\d\b)/g;
4403
4409
  function ce(e, t) {
4404
4410
  var n = this;
4405
4411
  if (!(n instanceof ce))
4406
4412
  return new ce(e, t);
4407
- var r = Object.assign({}, _o, t), i = Kt(r.precision), o = dt(e, r);
4408
- n.intValue = o, n.value = o / i, r.increment = r.increment || 1 / i, r.useVedic ? r.groups = wo : r.groups = To, this.s = r, this.p = i;
4413
+ var r = Object.assign({}, To, t), i = tn(r.precision), o = pt(e, r);
4414
+ n.intValue = o, n.value = o / i, r.increment = r.increment || 1 / i, r.useVedic ? r.groups = Ao : r.groups = So, this.s = r, this.p = i;
4409
4415
  }
4410
- function dt(e, t) {
4411
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, i = t.decimal, o = t.errorOnInvalid, l = t.precision, s = t.fromCents, h = Kt(l), u = typeof e == "number", d = e instanceof ce;
4416
+ function pt(e, t) {
4417
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, i = t.decimal, o = t.errorOnInvalid, l = t.precision, s = t.fromCents, h = tn(l), u = typeof e == "number", d = e instanceof ce;
4412
4418
  if (d && s)
4413
4419
  return e.intValue;
4414
4420
  if (u || d)
@@ -4421,9 +4427,9 @@ function dt(e, t) {
4421
4427
  throw Error("Invalid Input");
4422
4428
  r = 0;
4423
4429
  }
4424
- return s || (r *= h, r = r.toFixed(4)), n ? tr(r) : r;
4430
+ return s || (r *= h, r = r.toFixed(4)), n ? rr(r) : r;
4425
4431
  }
4426
- function So(e, t) {
4432
+ function Co(e, t) {
4427
4433
  var n = t.pattern, r = t.negativePattern, i = t.symbol, o = t.separator, l = t.decimal, s = t.groups, h = ("" + e).replace(/^-/, "").split("."), u = h[0], d = h[1];
4428
4434
  return (e.value >= 0 ? n : r).replace("!", i).replace("#", u.replace(s, "$1" + o) + (d ? l + d : ""));
4429
4435
  }
@@ -4435,7 +4441,7 @@ ce.prototype = {
4435
4441
  */
4436
4442
  add: function(t) {
4437
4443
  var n = this.intValue, r = this.s, i = this.p;
4438
- return ce((n += dt(t, r)) / (r.fromCents ? 1 : i), r);
4444
+ return ce((n += pt(t, r)) / (r.fromCents ? 1 : i), r);
4439
4445
  },
4440
4446
  /**
4441
4447
  * Subtracts value.
@@ -4444,7 +4450,7 @@ ce.prototype = {
4444
4450
  */
4445
4451
  subtract: function(t) {
4446
4452
  var n = this.intValue, r = this.s, i = this.p;
4447
- return ce((n -= dt(t, r)) / (r.fromCents ? 1 : i), r);
4453
+ return ce((n -= pt(t, r)) / (r.fromCents ? 1 : i), r);
4448
4454
  },
4449
4455
  /**
4450
4456
  * Multiplies values.
@@ -4453,7 +4459,7 @@ ce.prototype = {
4453
4459
  */
4454
4460
  multiply: function(t) {
4455
4461
  var n = this.intValue, r = this.s;
4456
- return ce((n *= t) / (r.fromCents ? 1 : Kt(r.precision)), r);
4462
+ return ce((n *= t) / (r.fromCents ? 1 : tn(r.precision)), r);
4457
4463
  },
4458
4464
  /**
4459
4465
  * Divides value.
@@ -4462,7 +4468,7 @@ ce.prototype = {
4462
4468
  */
4463
4469
  divide: function(t) {
4464
4470
  var n = this.intValue, r = this.s;
4465
- return ce(n /= dt(t, r, !1), r);
4471
+ return ce(n /= pt(t, r, !1), r);
4466
4472
  },
4467
4473
  /**
4468
4474
  * Takes the currency amount and distributes the values evenly. Any extra pennies
@@ -4507,7 +4513,7 @@ ce.prototype = {
4507
4513
  */
4508
4514
  toString: function() {
4509
4515
  var t = this.intValue, n = this.p, r = this.s;
4510
- return Bo(t / n, r.increment).toFixed(r.precision);
4516
+ return wo(t / n, r.increment).toFixed(r.precision);
4511
4517
  },
4512
4518
  /**
4513
4519
  * Value for JSON serialization.
@@ -4517,18 +4523,18 @@ ce.prototype = {
4517
4523
  return this.value;
4518
4524
  }
4519
4525
  };
4520
- function Ao(e) {
4521
- ar(e, "svelte-1tsugyl", '*,*::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;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, #D0046C));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;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}');
4526
+ function Ho(e) {
4527
+ lr(e, "svelte-1tsugyl", '*,*::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;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, #D0046C));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;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}');
4522
4528
  }
4523
- function En(e, t, n) {
4529
+ function xn(e, t, n) {
4524
4530
  const r = e.slice();
4525
4531
  return r[50] = t[n], r;
4526
4532
  }
4527
- function xn(e, t, n) {
4533
+ function Bn(e, t, n) {
4528
4534
  const r = e.slice();
4529
4535
  return r[53] = t[n], r;
4530
4536
  }
4531
- function Co(e) {
4537
+ function Oo(e) {
4532
4538
  let t, n, r = (
4533
4539
  /*balances*/
4534
4540
  (e[1].Total ? (
@@ -4538,28 +4544,28 @@ function Co(e) {
4538
4544
  e[1].Total[0].amount
4539
4545
  )
4540
4546
  ) : "0") + ""
4541
- ), i, o, l, s, h, u, d, m, g, _, B, T, x = (
4547
+ ), i, o, l, s, h, u, d, m, g, x, B, T, _ = (
4542
4548
  /*showBalance*/
4543
- e[4] && _n(e)
4549
+ e[4] && Tn(e)
4544
4550
  );
4545
4551
  return {
4546
4552
  c() {
4547
4553
  t = j("div"), n = j("p"), i = he(r), o = de(), l = he(
4548
4554
  /*currency*/
4549
4555
  e[5]
4550
- ), s = de(), h = j("span"), u = nn("svg"), d = nn("path"), g = de(), x && x.c(), _ = ur(), N(d, "id", "arrow"), N(d, "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"), N(d, "transform", "translate(-274.511 -441.088)"), N(d, "fill", "#d1d1d1"), N(u, "xmlns", "http://www.w3.org/2000/svg"), N(u, "width", "14"), N(u, "height", "6.835"), N(u, "viewBox", "0 0 14 6.835"), N(h, "class", m = /*modalOpened*/
4556
+ ), s = de(), h = j("span"), u = on("svg"), d = on("path"), g = de(), _ && _.c(), x = hr(), N(d, "id", "arrow"), N(d, "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"), N(d, "transform", "translate(-274.511 -441.088)"), N(d, "fill", "#d1d1d1"), N(u, "xmlns", "http://www.w3.org/2000/svg"), N(u, "width", "14"), N(u, "height", "6.835"), N(u, "viewBox", "0 0 14 6.835"), N(h, "class", m = /*modalOpened*/
4551
4557
  e[3] ? "TriangleActive" : "TriangleInactive"), N(t, "class", "BalanceValue");
4552
4558
  },
4553
- m(S, D) {
4554
- me(S, t, D), C(t, n), C(n, i), C(n, o), C(n, l), C(t, s), C(t, h), C(h, u), C(u, d), me(S, g, D), x && x.m(S, D), me(S, _, D), B || (T = pt(
4559
+ m(S, I) {
4560
+ ge(S, t, I), C(t, n), C(n, i), C(n, o), C(n, l), C(t, s), C(t, h), C(h, u), C(u, d), ge(S, g, I), _ && _.m(S, I), ge(S, x, I), B || (T = mt(
4555
4561
  t,
4556
4562
  "click",
4557
4563
  /*click_handler*/
4558
4564
  e[25]
4559
4565
  ), B = !0);
4560
4566
  },
4561
- p(S, D) {
4562
- D[0] & /*balances*/
4567
+ p(S, I) {
4568
+ I[0] & /*balances*/
4563
4569
  2 && r !== (r = /*balances*/
4564
4570
  (S[1].Total ? (
4565
4571
  /*formatBalance*/
@@ -4567,22 +4573,22 @@ function Co(e) {
4567
4573
  /*balances*/
4568
4574
  S[1].Total[0].amount
4569
4575
  )
4570
- ) : "0") + "") && Ee(i, r), D[0] & /*currency*/
4571
- 32 && Ee(
4576
+ ) : "0") + "") && _e(i, r), I[0] & /*currency*/
4577
+ 32 && _e(
4572
4578
  l,
4573
4579
  /*currency*/
4574
4580
  S[5]
4575
- ), D[0] & /*modalOpened*/
4581
+ ), I[0] & /*modalOpened*/
4576
4582
  8 && m !== (m = /*modalOpened*/
4577
4583
  S[3] ? "TriangleActive" : "TriangleInactive") && N(h, "class", m), /*showBalance*/
4578
- S[4] ? x ? x.p(S, D) : (x = _n(S), x.c(), x.m(_.parentNode, _)) : x && (x.d(1), x = null);
4584
+ S[4] ? _ ? _.p(S, I) : (_ = Tn(S), _.c(), _.m(x.parentNode, x)) : _ && (_.d(1), _ = null);
4579
4585
  },
4580
4586
  d(S) {
4581
- S && (fe(t), fe(g), fe(_)), x && x.d(S), B = !1, T();
4587
+ S && (fe(t), fe(g), fe(x)), _ && _.d(S), B = !1, T();
4582
4588
  }
4583
4589
  };
4584
4590
  }
4585
- function Ho(e) {
4591
+ function Ro(e) {
4586
4592
  let t, n = (
4587
4593
  /*$_*/
4588
4594
  e[6]("Loading") + ""
@@ -4592,54 +4598,54 @@ function Ho(e) {
4592
4598
  t = j("p"), r = he(n), N(t, "class", "Loading");
4593
4599
  },
4594
4600
  m(i, o) {
4595
- me(i, t, o), C(t, r);
4601
+ ge(i, t, o), C(t, r);
4596
4602
  },
4597
4603
  p(i, o) {
4598
4604
  o[0] & /*$_*/
4599
4605
  64 && n !== (n = /*$_*/
4600
- i[6]("Loading") + "") && Ee(r, n);
4606
+ i[6]("Loading") + "") && _e(r, n);
4601
4607
  },
4602
4608
  d(i) {
4603
4609
  i && fe(t);
4604
4610
  }
4605
4611
  };
4606
4612
  }
4607
- function _n(e) {
4613
+ function Tn(e) {
4608
4614
  let t, n, r, i, o, l, s, h, u = (
4609
4615
  /*$_*/
4610
4616
  e[6]("Title") + ""
4611
- ), d, m, g, _, B, T, x = (
4617
+ ), d, m, g, x, B, T, _ = (
4612
4618
  /*$_*/
4613
4619
  e[6]("DepositButton") + ""
4614
- ), S, D, H, U, W, q, Y = mt(Object.keys(
4620
+ ), S, I, H, D, W, q, Y = gt(Object.keys(
4615
4621
  /*balances*/
4616
4622
  e[1]
4617
- )), $ = [];
4623
+ )), G = [];
4618
4624
  for (let R = 0; R < Y.length; R += 1)
4619
- $[R] = Tn(En(e, Y, R));
4625
+ G[R] = Sn(xn(e, Y, R));
4620
4626
  return {
4621
4627
  c() {
4622
4628
  t = j("div"), n = j("div"), i = de(), o = j("div"), l = j("div"), s = j("div"), h = j("p"), d = he(u), m = de(), g = j("div");
4623
- for (let R = 0; R < $.length; R += 1)
4624
- $[R].c();
4625
- _ = de(), B = j("div"), T = j("button"), S = he(x), N(n, "class", r = "BalanceModalClose " + /*modalOpened*/
4626
- (e[3] ? "Open" : "")), N(h, "class", "BalanceModalTitle"), N(s, "class", "BalanceModalHeader"), N(g, "class", "BalanceModalBody"), N(T, "class", "BalanceModalAction"), N(B, "class", "BalanceModalFooter"), N(l, "class", D = "ModalContent " + /*modalOpened*/
4629
+ for (let R = 0; R < G.length; R += 1)
4630
+ G[R].c();
4631
+ x = de(), B = j("div"), T = j("button"), S = he(_), N(n, "class", r = "BalanceModalClose " + /*modalOpened*/
4632
+ (e[3] ? "Open" : "")), N(h, "class", "BalanceModalTitle"), N(s, "class", "BalanceModalHeader"), N(g, "class", "BalanceModalBody"), N(T, "class", "BalanceModalAction"), N(B, "class", "BalanceModalFooter"), N(l, "class", I = "ModalContent " + /*modalOpened*/
4627
4633
  (e[3] ? "Open" : "")), N(o, "class", H = "BalanceModal " + /*modalOpened*/
4628
- (e[3] ? "Open" : "")), N(t, "class", U = "BalanceModalWrapper " + /*modalOpened*/
4634
+ (e[3] ? "Open" : "")), N(t, "class", D = "BalanceModalWrapper " + /*modalOpened*/
4629
4635
  (e[3] ? "Open" : ""));
4630
4636
  },
4631
- m(R, X) {
4632
- me(R, t, X), C(t, n), C(t, i), C(t, o), C(o, l), C(l, s), C(s, h), C(h, d), C(l, m), C(l, g);
4633
- for (let F = 0; F < $.length; F += 1)
4634
- $[F] && $[F].m(g, null);
4635
- C(l, _), C(l, B), C(B, T), C(T, S), W || (q = [
4636
- pt(
4637
+ m(R, V) {
4638
+ ge(R, t, V), C(t, n), C(t, i), C(t, o), C(o, l), C(l, s), C(s, h), C(h, d), C(l, m), C(l, g);
4639
+ for (let U = 0; U < G.length; U += 1)
4640
+ G[U] && G[U].m(g, null);
4641
+ C(l, x), C(l, B), C(B, T), C(T, S), W || (q = [
4642
+ mt(
4637
4643
  n,
4638
4644
  "click",
4639
4645
  /*click_handler_1*/
4640
4646
  e[26]
4641
4647
  ),
4642
- pt(
4648
+ mt(
4643
4649
  T,
4644
4650
  "click",
4645
4651
  /*click_handler_2*/
@@ -4647,42 +4653,42 @@ function _n(e) {
4647
4653
  )
4648
4654
  ], W = !0);
4649
4655
  },
4650
- p(R, X) {
4651
- if (X[0] & /*modalOpened*/
4656
+ p(R, V) {
4657
+ if (V[0] & /*modalOpened*/
4652
4658
  8 && r !== (r = "BalanceModalClose " + /*modalOpened*/
4653
- (R[3] ? "Open" : "")) && N(n, "class", r), X[0] & /*$_*/
4659
+ (R[3] ? "Open" : "")) && N(n, "class", r), V[0] & /*$_*/
4654
4660
  64 && u !== (u = /*$_*/
4655
- R[6]("Title") + "") && Ee(d, u), X[0] & /*balances, currency, formatBalance, $_*/
4661
+ R[6]("Title") + "") && _e(d, u), V[0] & /*balances, currency, formatBalance, $_*/
4656
4662
  354) {
4657
- Y = mt(Object.keys(
4663
+ Y = gt(Object.keys(
4658
4664
  /*balances*/
4659
4665
  R[1]
4660
4666
  ));
4661
- let F;
4662
- for (F = 0; F < Y.length; F += 1) {
4663
- const b = En(R, Y, F);
4664
- $[F] ? $[F].p(b, X) : ($[F] = Tn(b), $[F].c(), $[F].m(g, null));
4667
+ let U;
4668
+ for (U = 0; U < Y.length; U += 1) {
4669
+ const b = xn(R, Y, U);
4670
+ G[U] ? G[U].p(b, V) : (G[U] = Sn(b), G[U].c(), G[U].m(g, null));
4665
4671
  }
4666
- for (; F < $.length; F += 1)
4667
- $[F].d(1);
4668
- $.length = Y.length;
4672
+ for (; U < G.length; U += 1)
4673
+ G[U].d(1);
4674
+ G.length = Y.length;
4669
4675
  }
4670
- X[0] & /*$_*/
4671
- 64 && x !== (x = /*$_*/
4672
- R[6]("DepositButton") + "") && Ee(S, x), X[0] & /*modalOpened*/
4673
- 8 && D !== (D = "ModalContent " + /*modalOpened*/
4674
- (R[3] ? "Open" : "")) && N(l, "class", D), X[0] & /*modalOpened*/
4676
+ V[0] & /*$_*/
4677
+ 64 && _ !== (_ = /*$_*/
4678
+ R[6]("DepositButton") + "") && _e(S, _), V[0] & /*modalOpened*/
4679
+ 8 && I !== (I = "ModalContent " + /*modalOpened*/
4680
+ (R[3] ? "Open" : "")) && N(l, "class", I), V[0] & /*modalOpened*/
4675
4681
  8 && H !== (H = "BalanceModal " + /*modalOpened*/
4676
- (R[3] ? "Open" : "")) && N(o, "class", H), X[0] & /*modalOpened*/
4677
- 8 && U !== (U = "BalanceModalWrapper " + /*modalOpened*/
4678
- (R[3] ? "Open" : "")) && N(t, "class", U);
4682
+ (R[3] ? "Open" : "")) && N(o, "class", H), V[0] & /*modalOpened*/
4683
+ 8 && D !== (D = "BalanceModalWrapper " + /*modalOpened*/
4684
+ (R[3] ? "Open" : "")) && N(t, "class", D);
4679
4685
  },
4680
4686
  d(R) {
4681
- R && fe(t), Hn($, R), W = !1, je(q);
4687
+ R && fe(t), Rn(G, R), W = !1, Ve(q);
4682
4688
  }
4683
4689
  };
4684
4690
  }
4685
- function Bn(e) {
4691
+ function wn(e) {
4686
4692
  let t, n, r = (
4687
4693
  /*$_*/
4688
4694
  e[6](
@@ -4707,53 +4713,53 @@ function Bn(e) {
4707
4713
  e[53].amount
4708
4714
  )
4709
4715
  ) : "0") + ""
4710
- ), g, _, B, T;
4716
+ ), g, x, B, T;
4711
4717
  return {
4712
4718
  c() {
4713
- t = j("div"), n = j("p"), i = he(r), o = de(), s = he(l), h = de(), u = j("p"), d = j("span"), g = he(m), _ = de(), B = j("span"), T = he(
4719
+ t = j("div"), n = j("p"), i = he(r), o = de(), s = he(l), h = de(), u = j("p"), d = j("span"), g = he(m), x = de(), B = j("span"), T = he(
4714
4720
  /*currency*/
4715
4721
  e[5]
4716
4722
  ), N(n, "class", "BalanceModalText"), N(d, "class", "BalanceModalAmount"), N(B, "class", "BalanceModalCurrency"), N(u, "class", "BalanceModalValue"), N(t, "class", "BalanceModalRowLine");
4717
4723
  },
4718
- m(x, S) {
4719
- me(x, t, S), C(t, n), C(n, i), C(n, o), C(n, s), C(t, h), C(t, u), C(u, d), C(d, g), C(u, _), C(u, B), C(B, T);
4724
+ m(_, S) {
4725
+ ge(_, t, S), C(t, n), C(n, i), C(n, o), C(n, s), C(t, h), C(t, u), C(u, d), C(d, g), C(u, x), C(u, B), C(B, T);
4720
4726
  },
4721
- p(x, S) {
4727
+ p(_, S) {
4722
4728
  S[0] & /*$_, balances*/
4723
4729
  66 && r !== (r = /*$_*/
4724
- x[6](
4730
+ _[6](
4725
4731
  /*k*/
4726
- x[50]
4727
- ) + "") && Ee(i, r), S[0] & /*balances, $_*/
4732
+ _[50]
4733
+ ) + "") && _e(i, r), S[0] & /*balances, $_*/
4728
4734
  66 && l !== (l = /*b*/
4729
- (x[53].productType ? (
4735
+ (_[53].productType ? (
4730
4736
  /*$_*/
4731
- x[6](
4737
+ _[6](
4732
4738
  /*b*/
4733
- x[53].productType
4739
+ _[53].productType
4734
4740
  )
4735
- ) : "") + "") && Ee(s, l), S[0] & /*balances*/
4741
+ ) : "") + "") && _e(s, l), S[0] & /*balances*/
4736
4742
  2 && m !== (m = /*b*/
4737
- (x[53].amount ? (
4743
+ (_[53].amount ? (
4738
4744
  /*formatBalance*/
4739
- x[8](
4745
+ _[8](
4740
4746
  /*b*/
4741
- x[53].amount
4747
+ _[53].amount
4742
4748
  )
4743
- ) : "0") + "") && Ee(g, m), S[0] & /*currency*/
4744
- 32 && Ee(
4749
+ ) : "0") + "") && _e(g, m), S[0] & /*currency*/
4750
+ 32 && _e(
4745
4751
  T,
4746
4752
  /*currency*/
4747
- x[5]
4753
+ _[5]
4748
4754
  );
4749
4755
  },
4750
- d(x) {
4751
- x && fe(t);
4756
+ d(_) {
4757
+ _ && fe(t);
4752
4758
  }
4753
4759
  };
4754
4760
  }
4755
- function Tn(e) {
4756
- let t, n, r = mt(
4761
+ function Sn(e) {
4762
+ let t, n, r = gt(
4757
4763
  /*balances*/
4758
4764
  e[1][
4759
4765
  /*k*/
@@ -4761,7 +4767,7 @@ function Tn(e) {
4761
4767
  ]
4762
4768
  ), i = [];
4763
4769
  for (let o = 0; o < r.length; o += 1)
4764
- i[o] = Bn(xn(e, r, o));
4770
+ i[o] = wn(Bn(e, r, o));
4765
4771
  return {
4766
4772
  c() {
4767
4773
  t = j("div");
@@ -4770,7 +4776,7 @@ function Tn(e) {
4770
4776
  n = de(), N(t, "class", "BalanceModalRowBoth");
4771
4777
  },
4772
4778
  m(o, l) {
4773
- me(o, t, l);
4779
+ ge(o, t, l);
4774
4780
  for (let s = 0; s < i.length; s += 1)
4775
4781
  i[s] && i[s].m(t, null);
4776
4782
  C(t, n);
@@ -4778,7 +4784,7 @@ function Tn(e) {
4778
4784
  p(o, l) {
4779
4785
  if (l[0] & /*currency, balances, formatBalance, $_*/
4780
4786
  354) {
4781
- r = mt(
4787
+ r = gt(
4782
4788
  /*balances*/
4783
4789
  o[1][
4784
4790
  /*k*/
@@ -4787,8 +4793,8 @@ function Tn(e) {
4787
4793
  );
4788
4794
  let s;
4789
4795
  for (s = 0; s < r.length; s += 1) {
4790
- const h = xn(o, r, s);
4791
- i[s] ? i[s].p(h, l) : (i[s] = Bn(h), i[s].c(), i[s].m(t, n));
4796
+ const h = Bn(o, r, s);
4797
+ i[s] ? i[s].p(h, l) : (i[s] = wn(h), i[s].c(), i[s].m(t, n));
4792
4798
  }
4793
4799
  for (; s < i.length; s += 1)
4794
4800
  i[s].d(1);
@@ -4796,18 +4802,18 @@ function Tn(e) {
4796
4802
  }
4797
4803
  },
4798
4804
  d(o) {
4799
- o && fe(t), Hn(i, o);
4805
+ o && fe(t), Rn(i, o);
4800
4806
  }
4801
4807
  };
4802
4808
  }
4803
- function wn(e) {
4809
+ function An(e) {
4804
4810
  let t, n, r;
4805
4811
  return {
4806
4812
  c() {
4807
4813
  t = j("div"), N(t, "class", "ShowBalanceModalOverlay");
4808
4814
  },
4809
4815
  m(i, o) {
4810
- me(i, t, o), n || (r = pt(
4816
+ ge(i, t, o), n || (r = mt(
4811
4817
  t,
4812
4818
  "click",
4813
4819
  /*click_handler_3*/
@@ -4820,28 +4826,28 @@ function wn(e) {
4820
4826
  }
4821
4827
  };
4822
4828
  }
4823
- function Oo(e) {
4829
+ function Lo(e) {
4824
4830
  let t, n, r;
4825
4831
  function i(h, u) {
4826
4832
  return (
4827
4833
  /*isLoading*/
4828
- h[2] ? Ho : Co
4834
+ h[2] ? Ro : Oo
4829
4835
  );
4830
4836
  }
4831
4837
  let o = i(e), l = o(e), s = (
4832
4838
  /*showBalance*/
4833
- e[4] && wn(e)
4839
+ e[4] && An(e)
4834
4840
  );
4835
4841
  return {
4836
4842
  c() {
4837
4843
  t = j("div"), n = j("div"), l.c(), r = de(), s && s.c(), N(n, "class", "ShowBalance");
4838
4844
  },
4839
4845
  m(h, u) {
4840
- me(h, t, u), C(t, n), l.m(n, null), C(t, r), s && s.m(t, null), e[29](t);
4846
+ ge(h, t, u), C(t, n), l.m(n, null), C(t, r), s && s.m(t, null), e[29](t);
4841
4847
  },
4842
4848
  p(h, u) {
4843
4849
  o === (o = i(h)) && l ? l.p(h, u) : (l.d(1), l = o(h), l && (l.c(), l.m(n, null))), /*showBalance*/
4844
- h[4] ? s ? s.p(h, u) : (s = wn(h), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
4850
+ h[4] ? s ? s.p(h, u) : (s = An(h), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
4845
4851
  },
4846
4852
  i: se,
4847
4853
  o: se,
@@ -4850,15 +4856,15 @@ function Oo(e) {
4850
4856
  }
4851
4857
  };
4852
4858
  }
4853
- function Ro(e, t, n) {
4859
+ function Mo(e, t, n) {
4854
4860
  let r;
4855
- or(e, vo, (a) => n(6, r = a));
4856
- let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: l = "" } = t, { lang: s = "en" } = t, { mbsource: h } = t, { clientstyling: u = "" } = t, { clientstylingurl: d = "" } = t, { translationurl: m = "" } = t, { customlocaleidentifier: g = "" } = t, { gmversion: _ = "gm16" } = t, { displaybalanceoption: B = "All" } = t, { totalcalculationmode: T = "totalCashAmount" } = t, { currencyseparator: x = "" } = t, { currencydecimal: S = "" } = t, { currencyprecision: D = "" } = t, H, U, W, q, Y = !1, $ = "", R = [], X, F = !1;
4857
- const b = {}, xe = ["totalCashAmount", "totalRealAmount"], We = () => {
4858
- fetch(m).then((a) => a.json()).then((a) => Object.keys(a).forEach((f) => yn(f, a[f]))).catch((a) => console.log(a));
4861
+ sr(e, _o, (a) => n(6, r = a));
4862
+ let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: l = "" } = t, { lang: s = "en" } = t, { mbsource: h } = t, { clientstyling: u = "" } = t, { clientstylingurl: d = "" } = t, { translationurl: m = "" } = t, { customlocaleidentifier: g = "" } = t, { gmversion: x = "gm16" } = t, { displaybalanceoption: B = "All" } = t, { totalcalculationmode: T = "totalCashAmount" } = t, { currencyseparator: _ = "" } = t, { currencydecimal: S = "" } = t, { currencyprecision: I = "" } = t, H, D, W, q, Y = !1, G = "", R = [], V, U = !1;
4863
+ const b = {}, xe = ["totalCashAmount", "totalRealAmount"], Ze = () => {
4864
+ fetch(m).then((a) => a.json()).then((a) => Object.keys(a).forEach((f) => En(f, a[f]))).catch((a) => console.log(a));
4859
4865
  };
4860
- Object.keys(vn).forEach((a) => yn(a, vn[a]));
4861
- const _e = (a) => {
4866
+ Object.keys(_n).forEach((a) => En(a, _n[a]));
4867
+ const Be = (a) => {
4862
4868
  switch (a) {
4863
4869
  case "balance":
4864
4870
  window.postMessage(
@@ -4884,20 +4890,20 @@ function Ro(e, t, n) {
4884
4890
  );
4885
4891
  break;
4886
4892
  }
4887
- }, Oe = () => {
4893
+ }, Re = () => {
4888
4894
  if (g.includes(s))
4889
4895
  return g;
4890
- }, pe = (a) => g ? new Intl.NumberFormat(Oe(), { useGrouping: !0 }).format(a) : x && S ? ce(a, {
4891
- separator: x,
4896
+ }, pe = (a) => g ? new Intl.NumberFormat(Re(), { useGrouping: !0 }).format(a) : _ && S ? ce(a, {
4897
+ separator: _,
4892
4898
  decimal: S,
4893
4899
  symbol: "",
4894
- precision: parseInt(D || "2", 10)
4900
+ precision: parseInt(I || "2", 10)
4895
4901
  }).format() : ce(a, {
4896
4902
  separator: ".",
4897
4903
  decimal: ",",
4898
4904
  symbol: "",
4899
- precision: parseInt(D || "2", 10)
4900
- }).format(), Be = async () => {
4905
+ precision: parseInt(I || "2", 10)
4906
+ }).format(), Te = async () => {
4901
4907
  n(2, H = !0);
4902
4908
  const a = new URL(`${l}/v1/player/${i}/account`);
4903
4909
  try {
@@ -4906,7 +4912,7 @@ function Ro(e, t, n) {
4906
4912
  headers: { "X-SessionID": o }
4907
4913
  }), p = await f.json();
4908
4914
  if (f.ok)
4909
- window.postMessage({ type: "BalancedFetched" }, window.location.href), R = p.items, n(5, $ = R.find((c) => c.displayName === "Casino")?.currency), n(1, b.Total = [{ amount: p.totalAmount[$] }], b), n(
4915
+ window.postMessage({ type: "BalancedFetched" }, window.location.href), R = p.items, n(5, G = R.find((c) => c.displayName === "Casino")?.currency), n(1, b.Total = [{ amount: p.totalAmount[G] }], b), n(
4910
4916
  1,
4911
4917
  b.Real = [
4912
4918
  {
@@ -4930,17 +4936,17 @@ function Ro(e, t, n) {
4930
4936
  } finally {
4931
4937
  n(2, H = !1);
4932
4938
  }
4933
- }, Se = () => {
4939
+ }, Ae = () => {
4934
4940
  n(2, H = !0);
4935
4941
  const a = new URL(`${l}/v2/player/${i}/balance`), f = new Headers();
4936
4942
  f.append("X-SessionID", o), fetch(a, { method: "GET", headers: f }).then((c) => c.json()).then((c) => {
4937
4943
  c[T] || n(10, T = xe[0]);
4938
4944
  const v = c.items.find((y) => y.type === "Real" && y.walletAccountType === "Ordinary");
4939
- if (n(5, $ = v.currency), F = !!v.productType, n(1, b.Total = [{ amount: 0 }], b), n(1, b.Real = [], b), n(1, b.Bonus = [], b), n(1, b.Credit = [], b), !F) {
4940
- X = {
4945
+ if (n(5, G = v.currency), U = !!v.productType, n(1, b.Total = [{ amount: 0 }], b), n(1, b.Real = [], b), n(1, b.Bonus = [], b), n(1, b.Credit = [], b), !U) {
4946
+ V = {
4941
4947
  lastOrdinaryAfterAmount: 0,
4942
4948
  showCreditLineAfterAmount: !1
4943
- }, n(1, b.Total[0].amount = c[T][$], b);
4949
+ }, n(1, b.Total[0].amount = c[T][G], b);
4944
4950
  for (const y of c.items)
4945
4951
  switch (y.type) {
4946
4952
  case "Bonus":
@@ -4957,7 +4963,7 @@ function Ro(e, t, n) {
4957
4963
  n(2, H = !1);
4958
4964
  return;
4959
4965
  }
4960
- X = {
4966
+ V = {
4961
4967
  Casino: {
4962
4968
  lastOrdinaryAfterAmount: 0,
4963
4969
  showCreditLineAfterAmount: !1
@@ -4989,29 +4995,29 @@ function Ro(e, t, n) {
4989
4995
  break;
4990
4996
  }
4991
4997
  }
4992
- it();
4998
+ ot();
4993
4999
  for (const [y, L] of Object.entries(b))
4994
5000
  L.length < 1 && delete b[y];
4995
5001
  n(2, H = !1);
4996
5002
  }).catch((c) => {
4997
5003
  throw n(2, H = !1), new Error("Failed to fetch balance data !");
4998
5004
  });
4999
- }, Ae = () => {
5005
+ }, Ce = () => {
5000
5006
  if (q && q.close(), o.length < 1)
5001
5007
  return;
5002
5008
  let a, f;
5003
- switch (_) {
5009
+ switch (x) {
5004
5010
  case "gm16":
5005
- a = new URL(`${l}/v2/player/${i}/information/updates`), f = (v) => Bt(v);
5011
+ a = new URL(`${l}/v2/player/${i}/information/updates`), f = (v) => wt(v);
5006
5012
  break;
5007
5013
  case "gmcore":
5008
- a = new URL(`${l}/v1/player/${i}/balance/updates`), f = (v) => Ze(v);
5014
+ a = new URL(`${l}/v1/player/${i}/balance/updates`), f = (v) => qe(v);
5009
5015
  break;
5010
5016
  }
5011
5017
  const p = {
5012
5018
  accept: "text/event-stream",
5013
5019
  "X-SessionId": o
5014
- }, c = new xo.EventSourcePolyfill(a, { headers: p });
5020
+ }, c = new Bo.EventSourcePolyfill(a, { headers: p });
5015
5021
  q = c, c.addEventListener("message", f);
5016
5022
  }, le = (a) => {
5017
5023
  let f;
@@ -5022,10 +5028,10 @@ function Ro(e, t, n) {
5022
5028
  return;
5023
5029
  }
5024
5030
  return f;
5025
- }, Ze = (a) => {
5031
+ }, qe = (a) => {
5026
5032
  const f = le(a.data);
5027
5033
  if (!f) {
5028
- Ae();
5034
+ Ce();
5029
5035
  return;
5030
5036
  }
5031
5037
  let p = "0";
@@ -5034,7 +5040,7 @@ function Ro(e, t, n) {
5034
5040
  ...v,
5035
5041
  balanceAmount: c[v.id].afterAmount
5036
5042
  }), p = (parseFloat(v?.balanceAmount) + parseFloat(p)).toString(), v)), n(1, b.Real = [{ amount: R[0]?.balanceAmount }], b), n(1, b.Bonus = [{ amount: R[1]?.balanceAmount }], b), n(1, b.Total = [{ amount: Number(p) }], b);
5037
- }, Re = (a, f, p) => {
5043
+ }, Le = (a, f, p) => {
5038
5044
  let c = null;
5039
5045
  switch (p.walletAccountType) {
5040
5046
  case "Ordinary":
@@ -5047,7 +5053,7 @@ function Ro(e, t, n) {
5047
5053
  c = p.afterAmount;
5048
5054
  }
5049
5055
  return c === null ? a : c;
5050
- }, it = () => {
5056
+ }, ot = () => {
5051
5057
  switch (T) {
5052
5058
  case "totalCashAmount":
5053
5059
  let a = 0;
@@ -5057,82 +5063,82 @@ function Ro(e, t, n) {
5057
5063
  n(1, b.Total[0].amount = a, b);
5058
5064
  break;
5059
5065
  case "totalRealAmount":
5060
- if (!F)
5066
+ if (!U)
5061
5067
  return;
5062
5068
  let f = 0;
5063
5069
  for (const p of b.Real)
5064
5070
  f += p.amount;
5065
5071
  n(1, b.Total[0].amount = f, b);
5066
5072
  }
5067
- }, Bt = (a) => {
5073
+ }, wt = (a) => {
5068
5074
  const f = le(a.data);
5069
5075
  if (!f) {
5070
- Ae();
5076
+ Ce();
5071
5077
  return;
5072
5078
  }
5073
5079
  if (f.type !== "BALANCE_UPDATE_V2")
5074
5080
  return;
5075
5081
  const p = f.body.balanceChange;
5076
5082
  for (const [c, v] of Object.entries(p))
5077
- if (T === "totalRealAmount" && c === "Real" && !F && n(1, b.Total[0].amount = Re(b.Total[0].amount, X, v), b), !!b[c])
5083
+ if (T === "totalRealAmount" && c === "Real" && !U && n(1, b.Total[0].amount = Le(b.Total[0].amount, V, v), b), !!b[c])
5078
5084
  for (const E of b[c]) {
5079
- if (!F) {
5080
- E.amount = c === "Real" ? Re(E.amount, X, v) : v.afterAmount;
5085
+ if (!U) {
5086
+ E.amount = c === "Real" ? Le(E.amount, V, v) : v.afterAmount;
5081
5087
  continue;
5082
5088
  }
5083
- v.productType === E.productType && (E.amount = c === "Real" ? Re(E.amount, X[E.productType], v) : v.afterAmount);
5089
+ v.productType === E.productType && (E.amount = c === "Real" ? Le(E.amount, V[E.productType], v) : v.afterAmount);
5084
5090
  }
5085
- it();
5086
- }, ot = () => {
5087
- _e("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
5088
- }, Tt = () => {
5091
+ ot();
5092
+ }, at = () => {
5093
+ Be("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
5094
+ }, St = () => {
5089
5095
  xe.includes(T) || (console.error(`Unsupported value ('${T}') for totalcalculationmode parameter. Only the following values are supported ${xe}. Using default value ('${xe[0]}').`), n(10, T = xe[0]));
5090
- }, qe = () => {
5091
- switch (Eo(s), Tt(), _) {
5096
+ }, Qe = () => {
5097
+ switch (xo(s), St(), x) {
5092
5098
  case "gmcore":
5093
- Be();
5099
+ Te();
5094
5100
  break;
5095
5101
  case "gm16":
5096
- Se();
5102
+ Ae();
5097
5103
  break;
5098
5104
  default:
5099
- throw Error(`Invalid apiversion attribute: ${_}`);
5105
+ throw Error(`Invalid apiversion attribute: ${x}`);
5100
5106
  }
5101
- }, Le = (a) => a.data && a.data.type === "LogoutSuccessfull" && q.close(), Te = () => {
5107
+ }, Me = (a) => a.data && a.data.type === "LogoutSuccessfull" && q.close(), we = () => {
5102
5108
  window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
5103
5109
  };
5104
- dr(() => (window.addEventListener("message", Le, !1), () => {
5105
- window.removeEventListener("message", Le), q && q.close();
5110
+ mr(() => (window.addEventListener("message", Me, !1), () => {
5111
+ window.removeEventListener("message", Me), q && q.close();
5106
5112
  }));
5107
- const re = () => _e("balance"), wt = () => _e("closebalance"), St = () => ot(), At = () => _e("closeBalance");
5108
- function at(a) {
5109
- Dt[a ? "unshift" : "push"](() => {
5110
- U = a, n(0, U);
5113
+ const re = () => Be("balance"), At = () => Be("closebalance"), Ct = () => at(), Ht = () => Be("closeBalance");
5114
+ function st(a) {
5115
+ Ft[a ? "unshift" : "push"](() => {
5116
+ D = a, n(0, D);
5111
5117
  });
5112
5118
  }
5113
5119
  return e.$$set = (a) => {
5114
- "userid" in a && n(11, i = a.userid), "session" in a && n(12, o = a.session), "endpoint" in a && n(13, l = a.endpoint), "lang" in a && n(14, s = a.lang), "mbsource" in a && n(15, h = a.mbsource), "clientstyling" in a && n(16, u = a.clientstyling), "clientstylingurl" in a && n(17, d = a.clientstylingurl), "translationurl" in a && n(18, m = a.translationurl), "customlocaleidentifier" in a && n(19, g = a.customlocaleidentifier), "gmversion" in a && n(20, _ = a.gmversion), "displaybalanceoption" in a && n(21, B = a.displaybalanceoption), "totalcalculationmode" in a && n(10, T = a.totalcalculationmode), "currencyseparator" in a && n(22, x = a.currencyseparator), "currencydecimal" in a && n(23, S = a.currencydecimal), "currencyprecision" in a && n(24, D = a.currencyprecision);
5120
+ "userid" in a && n(11, i = a.userid), "session" in a && n(12, o = a.session), "endpoint" in a && n(13, l = a.endpoint), "lang" in a && n(14, s = a.lang), "mbsource" in a && n(15, h = a.mbsource), "clientstyling" in a && n(16, u = a.clientstyling), "clientstylingurl" in a && n(17, d = a.clientstylingurl), "translationurl" in a && n(18, m = a.translationurl), "customlocaleidentifier" in a && n(19, g = a.customlocaleidentifier), "gmversion" in a && n(20, x = a.gmversion), "displaybalanceoption" in a && n(21, B = a.displaybalanceoption), "totalcalculationmode" in a && n(10, T = a.totalcalculationmode), "currencyseparator" in a && n(22, _ = a.currencyseparator), "currencydecimal" in a && n(23, S = a.currencydecimal), "currencyprecision" in a && n(24, I = a.currencyprecision);
5115
5121
  }, e.$$.update = () => {
5116
5122
  e.$$.dirty[0] & /*lang*/
5117
- 16384 && s && Oe(), e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
5118
- 3176448 && l && i && o && s && _ && B && qe(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
5119
- 1062912 && l && i && o && _ && Ae(), e.$$.dirty[0] & /*translationurl*/
5120
- 262144 && m && We(), e.$$.dirty[0] & /*balances*/
5121
- 2 && b.Total && Te(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5122
- 65537 && u && U && Ar(U, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5123
- 131073 && d && U && Cr(U, d), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
5124
- 32769 && h && U && Hr(U, `${h}.Style`);
5123
+ 16384 && s && Re(), e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
5124
+ 3176448 && l && i && o && s && x && B && Qe(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
5125
+ 1062912 && l && i && o && x && Ce(), e.$$.dirty[0] & /*translationurl*/
5126
+ 262144 && m && Ze(), e.$$.dirty[0] & /*balances*/
5127
+ 2 && b.Total && we(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5128
+ 65537 && u && D && Hr(D, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5129
+ 131073 && d && D && Or(D, d), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
5130
+ 32769 && h && D && Rr(D, `${h}.Style`);
5125
5131
  }, [
5126
- U,
5132
+ D,
5127
5133
  b,
5128
5134
  H,
5129
5135
  W,
5130
5136
  Y,
5131
- $,
5137
+ G,
5132
5138
  r,
5133
- _e,
5139
+ Be,
5134
5140
  pe,
5135
- ot,
5141
+ at,
5136
5142
  T,
5137
5143
  i,
5138
5144
  o,
@@ -5143,26 +5149,26 @@ function Ro(e, t, n) {
5143
5149
  d,
5144
5150
  m,
5145
5151
  g,
5146
- _,
5147
- B,
5148
5152
  x,
5153
+ B,
5154
+ _,
5149
5155
  S,
5150
- D,
5156
+ I,
5151
5157
  re,
5152
- wt,
5153
- St,
5154
5158
  At,
5155
- at
5159
+ Ct,
5160
+ Ht,
5161
+ st
5156
5162
  ];
5157
5163
  }
5158
- class Lo extends wr {
5164
+ class No extends Ar {
5159
5165
  constructor(t) {
5160
- super(), Br(
5166
+ super(), wr(
5161
5167
  this,
5162
5168
  t,
5163
- Ro,
5164
- Oo,
5165
- An,
5169
+ Mo,
5170
+ Lo,
5171
+ Hn,
5166
5172
  {
5167
5173
  userid: 11,
5168
5174
  session: 12,
@@ -5180,7 +5186,7 @@ class Lo extends wr {
5180
5186
  currencydecimal: 23,
5181
5187
  currencyprecision: 24
5182
5188
  },
5183
- Ao,
5189
+ Ho,
5184
5190
  [-1, -1]
5185
5191
  );
5186
5192
  }
@@ -5275,7 +5281,7 @@ class Lo extends wr {
5275
5281
  this.$$set({ currencyprecision: t }), J();
5276
5282
  }
5277
5283
  }
5278
- Tr(Lo, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {} }, [], [], !0);
5284
+ Sr(No, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {} }, [], [], !0);
5279
5285
  export {
5280
- Lo as P
5286
+ No as P
5281
5287
  };