@everymatrix/player-account-balance-modal 1.77.26 → 1.77.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,43 +2,43 @@ var ur = Object.defineProperty, lr = Object.defineProperties;
2
2
  var hr = Object.getOwnPropertyDescriptors;
3
3
  var sn = Object.getOwnPropertySymbols;
4
4
  var cr = Object.prototype.hasOwnProperty, fr = Object.prototype.propertyIsEnumerable;
5
- var Lt = Math.pow, Ht = (e, t, n) => t in e ? ur(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ot = (e, t) => {
5
+ var Rt = Math.pow, Lt = (e, t, n) => t in e ? ur(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Nt = (e, t) => {
6
6
  for (var n in t || (t = {}))
7
- cr.call(t, n) && Ht(e, n, t[n]);
7
+ cr.call(t, n) && Lt(e, n, t[n]);
8
8
  if (sn)
9
9
  for (var n of sn(t))
10
- fr.call(t, n) && Ht(e, n, t[n]);
10
+ fr.call(t, n) && Lt(e, n, t[n]);
11
11
  return e;
12
- }, Rt = (e, t) => lr(e, hr(t));
13
- var oe = (e, t, n) => (Ht(e, typeof t != "symbol" ? t + "" : t, n), n);
14
- var Nt = (e, t, n) => new Promise((r, i) => {
15
- var o = (f) => {
12
+ }, Mt = (e, t) => lr(e, hr(t));
13
+ var oe = (e, t, n) => (Lt(e, typeof t != "symbol" ? t + "" : t, n), n);
14
+ var Pt = (e, t, n) => new Promise((r, i) => {
15
+ var o = (c) => {
16
16
  try {
17
- s(n.next(f));
17
+ s(n.next(c));
18
18
  } catch (l) {
19
19
  i(l);
20
20
  }
21
- }, u = (f) => {
21
+ }, u = (c) => {
22
22
  try {
23
- s(n.throw(f));
23
+ s(n.throw(c));
24
24
  } catch (l) {
25
25
  i(l);
26
26
  }
27
- }, s = (f) => f.done ? r(f.value) : Promise.resolve(f.value).then(o, u);
27
+ }, s = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(o, u);
28
28
  s((n = n.apply(e, t)).next());
29
29
  });
30
30
  function ae() {
31
31
  }
32
- function On(e) {
32
+ function Ln(e) {
33
33
  return e();
34
34
  }
35
35
  function un() {
36
36
  return /* @__PURE__ */ Object.create(null);
37
37
  }
38
- function $e(e) {
39
- e.forEach(On);
38
+ function ke(e) {
39
+ e.forEach(Ln);
40
40
  }
41
- function en(e) {
41
+ function nn(e) {
42
42
  return typeof e == "function";
43
43
  }
44
44
  function Rn(e, t) {
@@ -65,7 +65,7 @@ function M(e, t) {
65
65
  function mr(e, t, n) {
66
66
  const r = gr(e);
67
67
  if (!r.getElementById(t)) {
68
- const i = U("style");
68
+ const i = $("style");
69
69
  i.id = t, i.textContent = n, br(r, i);
70
70
  }
71
71
  }
@@ -89,14 +89,14 @@ function br(e, t) {
89
89
  function fe(e, t, n) {
90
90
  e.insertBefore(t, n || null);
91
91
  }
92
- function he(e) {
92
+ function ue(e) {
93
93
  e.parentNode && e.parentNode.removeChild(e);
94
94
  }
95
95
  function Mn(e, t) {
96
96
  for (let n = 0; n < e.length; n += 1)
97
97
  e[n] && e[n].d(t);
98
98
  }
99
- function U(e) {
99
+ function $(e) {
100
100
  return document.createElement(e);
101
101
  }
102
102
  function Ee(e) {
@@ -111,13 +111,13 @@ function yr() {
111
111
  function dt(e, t, n, r) {
112
112
  return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
113
113
  }
114
- function W(e, t, n) {
114
+ function Z(e, t, n) {
115
115
  n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
116
116
  }
117
117
  function vr(e) {
118
118
  return Array.from(e.childNodes);
119
119
  }
120
- function Ce(e, t) {
120
+ function He(e, t) {
121
121
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
122
122
  t);
123
123
  }
@@ -130,65 +130,65 @@ function Er(e) {
130
130
  }
131
131
  ), t;
132
132
  }
133
- let Ke;
134
- function Ye(e) {
135
- Ke = e;
133
+ let tt;
134
+ function et(e) {
135
+ tt = e;
136
136
  }
137
137
  function xr() {
138
- if (!Ke)
138
+ if (!tt)
139
139
  throw new Error("Function called outside component initialization");
140
- return Ke;
140
+ return tt;
141
141
  }
142
142
  function _r(e) {
143
143
  xr().$$.on_mount.push(e);
144
144
  }
145
- const Pe = [], $t = [];
146
- let Ie = [];
145
+ const De = [], kt = [];
146
+ let Fe = [];
147
147
  const ln = [], Tr = /* @__PURE__ */ Promise.resolve();
148
- let jt = !1;
148
+ let Vt = !1;
149
149
  function Br() {
150
- jt || (jt = !0, Tr.then(V));
150
+ Vt || (Vt = !0, Tr.then(X));
151
151
  }
152
- function kt(e) {
153
- Ie.push(e);
152
+ function Xt(e) {
153
+ Fe.push(e);
154
154
  }
155
- const Mt = /* @__PURE__ */ new Set();
156
- let Ne = 0;
157
- function V() {
158
- if (Ne !== 0)
155
+ const It = /* @__PURE__ */ new Set();
156
+ let Pe = 0;
157
+ function X() {
158
+ if (Pe !== 0)
159
159
  return;
160
- const e = Ke;
160
+ const e = tt;
161
161
  do {
162
162
  try {
163
- for (; Ne < Pe.length; ) {
164
- const t = Pe[Ne];
165
- Ne++, Ye(t), Sr(t.$$);
163
+ for (; Pe < De.length; ) {
164
+ const t = De[Pe];
165
+ Pe++, et(t), Sr(t.$$);
166
166
  }
167
167
  } catch (t) {
168
- throw Pe.length = 0, Ne = 0, t;
168
+ throw De.length = 0, Pe = 0, t;
169
169
  }
170
- for (Ye(null), Pe.length = 0, Ne = 0; $t.length; )
171
- $t.pop()();
172
- for (let t = 0; t < Ie.length; t += 1) {
173
- const n = Ie[t];
174
- Mt.has(n) || (Mt.add(n), n());
170
+ for (et(null), De.length = 0, Pe = 0; kt.length; )
171
+ kt.pop()();
172
+ for (let t = 0; t < Fe.length; t += 1) {
173
+ const n = Fe[t];
174
+ It.has(n) || (It.add(n), n());
175
175
  }
176
- Ie.length = 0;
177
- } while (Pe.length);
176
+ Fe.length = 0;
177
+ } while (De.length);
178
178
  for (; ln.length; )
179
179
  ln.pop()();
180
- jt = !1, Mt.clear(), Ye(e);
180
+ Vt = !1, It.clear(), et(e);
181
181
  }
182
182
  function Sr(e) {
183
183
  if (e.fragment !== null) {
184
- e.update(), $e(e.before_update);
184
+ e.update(), ke(e.before_update);
185
185
  const t = e.dirty;
186
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(kt);
186
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Xt);
187
187
  }
188
188
  }
189
189
  function wr(e) {
190
190
  const t = [], n = [];
191
- Ie.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Ie = t;
191
+ Fe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Fe = t;
192
192
  }
193
193
  const Ar = /* @__PURE__ */ new Set();
194
194
  function Cr(e, t) {
@@ -199,21 +199,21 @@ function pt(e) {
199
199
  }
200
200
  function Hr(e, t, n) {
201
201
  const { fragment: r, after_update: i } = e.$$;
202
- r && r.m(t, n), kt(() => {
203
- const o = e.$$.on_mount.map(On).filter(en);
204
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : $e(o), e.$$.on_mount = [];
205
- }), i.forEach(kt);
202
+ r && r.m(t, n), Xt(() => {
203
+ const o = e.$$.on_mount.map(Ln).filter(nn);
204
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ke(o), e.$$.on_mount = [];
205
+ }), i.forEach(Xt);
206
206
  }
207
- function Lr(e, t) {
207
+ function Or(e, t) {
208
208
  const n = e.$$;
209
- n.fragment !== null && (wr(n.after_update), $e(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
209
+ n.fragment !== null && (wr(n.after_update), ke(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
210
210
  }
211
- function Or(e, t) {
212
- e.$$.dirty[0] === -1 && (Pe.push(e), Br(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
211
+ function Lr(e, t) {
212
+ e.$$.dirty[0] === -1 && (De.push(e), Br(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
213
213
  }
214
214
  function Rr(e, t, n, r, i, o, u = null, s = [-1]) {
215
- const f = Ke;
216
- Ye(e);
215
+ const c = tt;
216
+ et(e);
217
217
  const l = e.$$ = {
218
218
  fragment: null,
219
219
  ctx: [],
@@ -228,27 +228,27 @@ function Rr(e, t, n, r, i, o, u = null, s = [-1]) {
228
228
  on_disconnect: [],
229
229
  before_update: [],
230
230
  after_update: [],
231
- context: new Map(t.context || (f ? f.$$.context : [])),
231
+ context: new Map(t.context || (c ? c.$$.context : [])),
232
232
  // everything else
233
233
  callbacks: un(),
234
234
  dirty: s,
235
235
  skip_bound: !1,
236
- root: t.target || f.$$.root
236
+ root: t.target || c.$$.root
237
237
  };
238
238
  u && u(l.root);
239
- let d = !1;
240
- if (l.ctx = n ? n(e, t.props || {}, (g, b, ...x) => {
241
- const T = x.length ? x[0] : b;
242
- return l.ctx && i(l.ctx[g], l.ctx[g] = T) && (!l.skip_bound && l.bound[g] && l.bound[g](T), d && Or(e, g)), b;
243
- }) : [], l.update(), d = !0, $e(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
239
+ let f = !1;
240
+ if (l.ctx = n ? n(e, t.props || {}, (g, y, ...x) => {
241
+ const T = x.length ? x[0] : y;
242
+ return l.ctx && i(l.ctx[g], l.ctx[g] = T) && (!l.skip_bound && l.bound[g] && l.bound[g](T), f && Lr(e, g)), y;
243
+ }) : [], l.update(), f = !0, ke(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
244
244
  if (t.hydrate) {
245
245
  const g = vr(t.target);
246
- l.fragment && l.fragment.l(g), g.forEach(he);
246
+ l.fragment && l.fragment.l(g), g.forEach(ue);
247
247
  } else
248
248
  l.fragment && l.fragment.c();
249
- t.intro && Cr(e.$$.fragment), Hr(e, t.target, t.anchor), V();
249
+ t.intro && Cr(e.$$.fragment), Hr(e, t.target, t.anchor), X();
250
250
  }
251
- Ye(f);
251
+ et(c);
252
252
  }
253
253
  let Pn;
254
254
  typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
@@ -288,24 +288,24 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
288
288
  }
289
289
  }
290
290
  connectedCallback() {
291
- return Nt(this, null, function* () {
291
+ return Pt(this, null, function* () {
292
292
  if (this.$$cn = !0, !this.$$c) {
293
293
  let t = function(o) {
294
294
  return () => {
295
295
  let u;
296
296
  return {
297
297
  c: function() {
298
- u = U("slot"), o !== "default" && W(u, "name", o);
298
+ u = $("slot"), o !== "default" && Z(u, "name", o);
299
299
  },
300
300
  /**
301
301
  * @param {HTMLElement} target
302
302
  * @param {HTMLElement} [anchor]
303
303
  */
304
- m: function(l, d) {
305
- fe(l, u, d);
304
+ m: function(l, f) {
305
+ fe(l, u, f);
306
306
  },
307
307
  d: function(l) {
308
- l && he(u);
308
+ l && ue(u);
309
309
  }
310
310
  };
311
311
  };
@@ -323,7 +323,7 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
323
323
  !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
324
324
  this.$$c = new this.$$ctor({
325
325
  target: this.shadowRoot || this,
326
- props: Rt(Ot({}, this.$$d), {
326
+ props: Mt(Nt({}, this.$$d), {
327
327
  $$slots: n,
328
328
  $$scope: {
329
329
  ctx: []
@@ -417,16 +417,16 @@ function Nr(e, t, n, r, i, o) {
417
417
  get() {
418
418
  return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
419
419
  },
420
- set(f) {
420
+ set(c) {
421
421
  var l;
422
- f = ht(s, f, t), this.$$d[s] = f, (l = this.$$c) == null || l.$set({ [s]: f });
422
+ c = ht(s, c, t), this.$$d[s] = c, (l = this.$$c) == null || l.$set({ [s]: c });
423
423
  }
424
424
  });
425
425
  }), r.forEach((s) => {
426
426
  Object.defineProperty(u.prototype, s, {
427
427
  get() {
428
- var f;
429
- return (f = this.$$c) == null ? void 0 : f[s];
428
+ var c;
429
+ return (c = this.$$c) == null ? void 0 : c[s];
430
430
  }
431
431
  });
432
432
  }), e.element = /** @type {any} */
@@ -453,7 +453,7 @@ class Mr {
453
453
  }
454
454
  /** @returns {void} */
455
455
  $destroy() {
456
- Lr(this, 1), this.$destroy = ae;
456
+ Or(this, 1), this.$destroy = ae;
457
457
  }
458
458
  /**
459
459
  * @template {Extract<keyof Events, string>} K
@@ -462,7 +462,7 @@ class Mr {
462
462
  * @returns {() => void}
463
463
  */
464
464
  $on(t, n) {
465
- if (!en(n))
465
+ if (!nn(n))
466
466
  return ae;
467
467
  const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
468
468
  return r.push(n), () => {
@@ -503,66 +503,66 @@ function Fr(e, t, n) {
503
503
  });
504
504
  }
505
505
  }
506
- const Me = [];
506
+ const Ie = [];
507
507
  function Ur(e, t) {
508
508
  return {
509
- subscribe: bt(e, t).subscribe
509
+ subscribe: yt(e, t).subscribe
510
510
  };
511
511
  }
512
- function bt(e, t = ae) {
512
+ function yt(e, t = ae) {
513
513
  let n;
514
514
  const r = /* @__PURE__ */ new Set();
515
515
  function i(s) {
516
516
  if (Rn(e, s) && (e = s, n)) {
517
- const f = !Me.length;
517
+ const c = !Ie.length;
518
518
  for (const l of r)
519
- l[1](), Me.push(l, e);
520
- if (f) {
521
- for (let l = 0; l < Me.length; l += 2)
522
- Me[l][0](Me[l + 1]);
523
- Me.length = 0;
519
+ l[1](), Ie.push(l, e);
520
+ if (c) {
521
+ for (let l = 0; l < Ie.length; l += 2)
522
+ Ie[l][0](Ie[l + 1]);
523
+ Ie.length = 0;
524
524
  }
525
525
  }
526
526
  }
527
527
  function o(s) {
528
528
  i(s(e));
529
529
  }
530
- function u(s, f = ae) {
531
- const l = [s, f];
530
+ function u(s, c = ae) {
531
+ const l = [s, c];
532
532
  return r.add(l), r.size === 1 && (n = t(i, o) || ae), s(e), () => {
533
533
  r.delete(l), r.size === 0 && n && (n(), n = null);
534
534
  };
535
535
  }
536
536
  return { set: i, update: o, subscribe: u };
537
537
  }
538
- function je(e, t, n) {
538
+ function Ve(e, t, n) {
539
539
  const r = !Array.isArray(e), i = r ? [e] : e;
540
540
  if (!i.every(Boolean))
541
541
  throw new Error("derived() expects stores as input, got a falsy value");
542
542
  const o = t.length < 2;
543
543
  return Ur(n, (u, s) => {
544
- let f = !1;
544
+ let c = !1;
545
545
  const l = [];
546
- let d = 0, g = ae;
547
- const b = () => {
548
- if (d)
546
+ let f = 0, g = ae;
547
+ const y = () => {
548
+ if (f)
549
549
  return;
550
550
  g();
551
551
  const T = t(r ? l[0] : l, u, s);
552
- o ? u(T) : g = en(T) ? T : ae;
552
+ o ? u(T) : g = nn(T) ? T : ae;
553
553
  }, x = i.map(
554
554
  (T, P) => Nn(
555
555
  T,
556
- ($) => {
557
- l[P] = $, d &= ~(1 << P), f && b();
556
+ (j) => {
557
+ l[P] = j, f &= ~(1 << P), c && y();
558
558
  },
559
559
  () => {
560
- d |= 1 << P;
560
+ f |= 1 << P;
561
561
  }
562
562
  )
563
563
  );
564
- return f = !0, b(), function() {
565
- $e(x), g(), f = !1;
564
+ return c = !0, y(), function() {
565
+ ke(x), g(), c = !1;
566
566
  };
567
567
  });
568
568
  }
@@ -587,19 +587,19 @@ function Wr(e) {
587
587
  function Zr(e) {
588
588
  return Array.isArray(e) ? [] : {};
589
589
  }
590
- function et(e, t) {
591
- return t.clone !== !1 && t.isMergeableObject(e) ? De(Zr(e), e, t) : e;
590
+ function nt(e, t) {
591
+ return t.clone !== !1 && t.isMergeableObject(e) ? Ue(Zr(e), e, t) : e;
592
592
  }
593
593
  function qr(e, t, n) {
594
594
  return e.concat(t).map(function(r) {
595
- return et(r, n);
595
+ return nt(r, n);
596
596
  });
597
597
  }
598
598
  function Qr(e, t) {
599
599
  if (!t.customMerge)
600
- return De;
600
+ return Ue;
601
601
  var n = t.customMerge(e);
602
- return typeof n == "function" ? n : De;
602
+ return typeof n == "function" ? n : Ue;
603
603
  }
604
604
  function Jr(e) {
605
605
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
@@ -622,65 +622,51 @@ function Yr(e, t) {
622
622
  function Kr(e, t, n) {
623
623
  var r = {};
624
624
  return n.isMergeableObject(e) && hn(e).forEach(function(i) {
625
- r[i] = et(e[i], n);
625
+ r[i] = nt(e[i], n);
626
626
  }), hn(t).forEach(function(i) {
627
- Yr(e, i) || (In(e, i) && n.isMergeableObject(t[i]) ? r[i] = Qr(i, n)(e[i], t[i], n) : r[i] = et(t[i], n));
627
+ Yr(e, i) || (In(e, i) && n.isMergeableObject(t[i]) ? r[i] = Qr(i, n)(e[i], t[i], n) : r[i] = nt(t[i], n));
628
628
  }), r;
629
629
  }
630
- function De(e, t, n) {
631
- n = n || {}, n.arrayMerge = n.arrayMerge || qr, n.isMergeableObject = n.isMergeableObject || jr, n.cloneUnlessOtherwiseSpecified = et;
630
+ function Ue(e, t, n) {
631
+ n = n || {}, n.arrayMerge = n.arrayMerge || qr, n.isMergeableObject = n.isMergeableObject || jr, n.cloneUnlessOtherwiseSpecified = nt;
632
632
  var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
633
- return o ? r ? n.arrayMerge(e, t, n) : Kr(e, t, n) : et(t, n);
633
+ return o ? r ? n.arrayMerge(e, t, n) : Kr(e, t, n) : nt(t, n);
634
634
  }
635
- De.all = function(t, n) {
635
+ Ue.all = function(t, n) {
636
636
  if (!Array.isArray(t))
637
637
  throw new Error("first argument should be an array");
638
638
  return t.reduce(function(r, i) {
639
- return De(r, i, n);
639
+ return Ue(r, i, n);
640
640
  }, {});
641
641
  };
642
- var ei = De, ti = ei;
642
+ var ei = Ue, ti = ei;
643
643
  const ni = /* @__PURE__ */ $r(ti);
644
- /*! *****************************************************************************
645
- Copyright (c) Microsoft Corporation.
646
-
647
- Permission to use, copy, modify, and/or distribute this software for any
648
- purpose with or without fee is hereby granted.
649
-
650
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
651
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
652
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
653
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
654
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
655
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
656
- PERFORMANCE OF THIS SOFTWARE.
657
- ***************************************************************************** */
658
- var Vt = function(e, t) {
659
- return Vt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
644
+ var zt = function(e, t) {
645
+ return zt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
660
646
  n.__proto__ = r;
661
647
  } || function(n, r) {
662
648
  for (var i in r)
663
649
  Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
664
- }, Vt(e, t);
650
+ }, zt(e, t);
665
651
  };
666
- function yt(e, t) {
652
+ function vt(e, t) {
667
653
  if (typeof t != "function" && t !== null)
668
654
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
669
- Vt(e, t);
655
+ zt(e, t);
670
656
  function n() {
671
657
  this.constructor = e;
672
658
  }
673
659
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
674
660
  }
675
- var R = function() {
676
- return R = Object.assign || function(t) {
661
+ var ce = function() {
662
+ return ce = Object.assign || function(t) {
677
663
  for (var n, r = 1, i = arguments.length; r < i; r++) {
678
664
  n = arguments[r];
679
665
  for (var o in n)
680
666
  Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
681
667
  }
682
668
  return t;
683
- }, R.apply(this, arguments);
669
+ }, ce.apply(this, arguments);
684
670
  };
685
671
  function ri(e, t) {
686
672
  var n = {};
@@ -691,14 +677,14 @@ function ri(e, t) {
691
677
  t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
692
678
  return n;
693
679
  }
694
- function Pt(e, t, n) {
695
- if (arguments.length === 2)
680
+ function Dt(e, t, n) {
681
+ if (n || arguments.length === 2)
696
682
  for (var r = 0, i = t.length, o; r < i; r++)
697
683
  (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
698
- return e.concat(o || t);
684
+ return e.concat(o || Array.prototype.slice.call(t));
699
685
  }
700
- function It(e, t) {
701
- var n = t && t.cache ? t.cache : li, r = t && t.serializer ? t.serializer : ui, i = t && t.strategy ? t.strategy : oi;
686
+ function Ft(e, t) {
687
+ var n = t && t.cache ? t.cache : hi, r = t && t.serializer ? t.serializer : ui, i = t && t.strategy ? t.strategy : ai;
702
688
  return i(e, {
703
689
  cache: n,
704
690
  serializer: r
@@ -707,95 +693,103 @@ function It(e, t) {
707
693
  function ii(e) {
708
694
  return e == null || typeof e == "number" || typeof e == "boolean";
709
695
  }
710
- function Dn(e, t, n, r) {
696
+ function oi(e, t, n, r) {
711
697
  var i = ii(r) ? r : n(r), o = t.get(i);
712
698
  return typeof o == "undefined" && (o = e.call(this, r), t.set(i, o)), o;
713
699
  }
714
- function Fn(e, t, n) {
700
+ function Dn(e, t, n) {
715
701
  var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
716
702
  return typeof o == "undefined" && (o = e.apply(this, r), t.set(i, o)), o;
717
703
  }
718
- function tn(e, t, n, r, i) {
704
+ function Fn(e, t, n, r, i) {
719
705
  return n.bind(t, e, r, i);
720
706
  }
721
- function oi(e, t) {
722
- var n = e.length === 1 ? Dn : Fn;
723
- return tn(e, this, n, t.cache.create(), t.serializer);
724
- }
725
707
  function ai(e, t) {
726
- return tn(e, this, Fn, t.cache.create(), t.serializer);
708
+ var n = e.length === 1 ? oi : Dn;
709
+ return Fn(e, this, n, t.cache.create(), t.serializer);
727
710
  }
728
711
  function si(e, t) {
729
- return tn(e, this, Dn, t.cache.create(), t.serializer);
712
+ return Fn(e, this, Dn, t.cache.create(), t.serializer);
730
713
  }
731
714
  var ui = function() {
732
715
  return JSON.stringify(arguments);
733
- };
734
- function nn() {
735
- this.cache = /* @__PURE__ */ Object.create(null);
736
- }
737
- nn.prototype.get = function(e) {
738
- return this.cache[e];
739
- };
740
- nn.prototype.set = function(e, t) {
741
- this.cache[e] = t;
742
- };
743
- var li = {
716
+ }, li = (
717
+ /** @class */
718
+ function() {
719
+ function e() {
720
+ this.cache = /* @__PURE__ */ Object.create(null);
721
+ }
722
+ return e.prototype.get = function(t) {
723
+ return this.cache[t];
724
+ }, e.prototype.set = function(t, n) {
725
+ this.cache[t] = n;
726
+ }, e;
727
+ }()
728
+ ), hi = {
744
729
  create: function() {
745
- return new nn();
730
+ return new li();
746
731
  }
747
- }, Dt = {
748
- variadic: ai,
749
- monadic: si
750
- }, H;
732
+ }, Ut = {
733
+ variadic: si
734
+ }, mt = function() {
735
+ return mt = Object.assign || function(t) {
736
+ for (var n, r = 1, i = arguments.length; r < i; r++) {
737
+ n = arguments[r];
738
+ for (var o in n)
739
+ Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
740
+ }
741
+ return t;
742
+ }, mt.apply(this, arguments);
743
+ };
744
+ var C;
751
745
  (function(e) {
752
746
  e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
753
- })(H || (H = {}));
754
- var I;
747
+ })(C || (C = {}));
748
+ var D;
755
749
  (function(e) {
756
750
  e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
757
- })(I || (I = {}));
758
- var Fe;
751
+ })(D || (D = {}));
752
+ var Ge;
759
753
  (function(e) {
760
754
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
761
- })(Fe || (Fe = {}));
755
+ })(Ge || (Ge = {}));
762
756
  function cn(e) {
763
- return e.type === I.literal;
757
+ return e.type === D.literal;
764
758
  }
765
- function hi(e) {
766
- return e.type === I.argument;
759
+ function ci(e) {
760
+ return e.type === D.argument;
767
761
  }
768
762
  function Un(e) {
769
- return e.type === I.number;
763
+ return e.type === D.number;
770
764
  }
771
765
  function Gn(e) {
772
- return e.type === I.date;
766
+ return e.type === D.date;
773
767
  }
774
768
  function $n(e) {
775
- return e.type === I.time;
769
+ return e.type === D.time;
776
770
  }
777
771
  function jn(e) {
778
- return e.type === I.select;
772
+ return e.type === D.select;
779
773
  }
780
774
  function kn(e) {
781
- return e.type === I.plural;
775
+ return e.type === D.plural;
782
776
  }
783
- function ci(e) {
784
- return e.type === I.pound;
777
+ function fi(e) {
778
+ return e.type === D.pound;
785
779
  }
786
780
  function Vn(e) {
787
- return e.type === I.tag;
781
+ return e.type === D.tag;
788
782
  }
789
783
  function Xn(e) {
790
- return !!(e && typeof e == "object" && e.type === Fe.number);
784
+ return !!(e && typeof e == "object" && e.type === Ge.number);
791
785
  }
792
- function Xt(e) {
793
- return !!(e && typeof e == "object" && e.type === Fe.dateTime);
786
+ function Wt(e) {
787
+ return !!(e && typeof e == "object" && e.type === Ge.dateTime);
794
788
  }
795
- var zn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, fi = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
796
- function di(e) {
789
+ var zn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, di = /(?:[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;
790
+ function pi(e) {
797
791
  var t = {};
798
- return e.replace(fi, function(n) {
792
+ return e.replace(di, function(n) {
799
793
  var r = n.length;
800
794
  switch (n[0]) {
801
795
  case "G":
@@ -884,29 +878,39 @@ function di(e) {
884
878
  return "";
885
879
  }), t;
886
880
  }
887
- var pi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
888
- function mi(e) {
881
+ var U = function() {
882
+ return U = Object.assign || function(t) {
883
+ for (var n, r = 1, i = arguments.length; r < i; r++) {
884
+ n = arguments[r];
885
+ for (var o in n)
886
+ Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
887
+ }
888
+ return t;
889
+ }, U.apply(this, arguments);
890
+ };
891
+ var mi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
892
+ function gi(e) {
889
893
  if (e.length === 0)
890
894
  throw new Error("Number skeleton cannot be empty");
891
- for (var t = e.split(pi).filter(function(b) {
892
- return b.length > 0;
895
+ for (var t = e.split(mi).filter(function(y) {
896
+ return y.length > 0;
893
897
  }), n = [], r = 0, i = t; r < i.length; r++) {
894
898
  var o = i[r], u = o.split("/");
895
899
  if (u.length === 0)
896
900
  throw new Error("Invalid number skeleton");
897
- for (var s = u[0], f = u.slice(1), l = 0, d = f; l < d.length; l++) {
898
- var g = d[l];
901
+ for (var s = u[0], c = u.slice(1), l = 0, f = c; l < f.length; l++) {
902
+ var g = f[l];
899
903
  if (g.length === 0)
900
904
  throw new Error("Invalid number skeleton");
901
905
  }
902
- n.push({ stem: s, options: f });
906
+ n.push({ stem: s, options: c });
903
907
  }
904
908
  return n;
905
909
  }
906
- function gi(e) {
910
+ function bi(e) {
907
911
  return e.replace(/^(.*?)-/, "");
908
912
  }
909
- var fn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Wn = /^(@+)?(\+|#+)?[rs]?$/g, bi = /(\*)(0+)|(#+)(0+)|(0+)/g, Zn = /^(0+)$/;
913
+ var fn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Wn = /^(@+)?(\+|#+)?[rs]?$/g, yi = /(\*)(0+)|(#+)(0+)|(0+)/g, Zn = /^(0+)$/;
910
914
  function dn(e) {
911
915
  var t = {};
912
916
  return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Wn, function(n, r, i) {
@@ -953,7 +957,7 @@ function qn(e) {
953
957
  };
954
958
  }
955
959
  }
956
- function yi(e) {
960
+ function vi(e) {
957
961
  var t;
958
962
  if (e[0] === "E" && e[1] === "E" ? (t = {
959
963
  notation: "engineering"
@@ -971,7 +975,7 @@ function pn(e) {
971
975
  var t = {}, n = qn(e);
972
976
  return n || t;
973
977
  }
974
- function vi(e) {
978
+ function Ei(e) {
975
979
  for (var t = {}, n = 0, r = e; n < r.length; n++) {
976
980
  var i = r[n];
977
981
  switch (i.stem) {
@@ -995,7 +999,7 @@ function vi(e) {
995
999
  continue;
996
1000
  case "measure-unit":
997
1001
  case "unit":
998
- t.style = "unit", t.unit = gi(i.options[0]);
1002
+ t.style = "unit", t.unit = bi(i.options[0]);
999
1003
  continue;
1000
1004
  case "compact-short":
1001
1005
  case "K":
@@ -1006,13 +1010,13 @@ function vi(e) {
1006
1010
  t.notation = "compact", t.compactDisplay = "long";
1007
1011
  continue;
1008
1012
  case "scientific":
1009
- t = R(R(R({}, t), { notation: "scientific" }), i.options.reduce(function(f, l) {
1010
- return R(R({}, f), pn(l));
1013
+ t = U(U(U({}, t), { notation: "scientific" }), i.options.reduce(function(c, l) {
1014
+ return U(U({}, c), pn(l));
1011
1015
  }, {}));
1012
1016
  continue;
1013
1017
  case "engineering":
1014
- t = R(R(R({}, t), { notation: "engineering" }), i.options.reduce(function(f, l) {
1015
- return R(R({}, f), pn(l));
1018
+ t = U(U(U({}, t), { notation: "engineering" }), i.options.reduce(function(c, l) {
1019
+ return U(U({}, c), pn(l));
1016
1020
  }, {}));
1017
1021
  continue;
1018
1022
  case "notation-simple":
@@ -1057,11 +1061,11 @@ function vi(e) {
1057
1061
  case "integer-width":
1058
1062
  if (i.options.length > 1)
1059
1063
  throw new RangeError("integer-width stems only accept a single optional option");
1060
- i.options[0].replace(bi, function(f, l, d, g, b, x) {
1064
+ i.options[0].replace(yi, function(c, l, f, g, y, x) {
1061
1065
  if (l)
1062
- t.minimumIntegerDigits = d.length;
1066
+ t.minimumIntegerDigits = f.length;
1063
1067
  else {
1064
- if (g && b)
1068
+ if (g && y)
1065
1069
  throw new Error("We currently do not support maximum integer digits");
1066
1070
  if (x)
1067
1071
  throw new Error("We currently do not support exact integer digits");
@@ -1077,21 +1081,21 @@ function vi(e) {
1077
1081
  if (fn.test(i.stem)) {
1078
1082
  if (i.options.length > 1)
1079
1083
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1080
- i.stem.replace(fn, function(f, l, d, g, b, x) {
1081
- return d === "*" ? t.minimumFractionDigits = l.length : g && g[0] === "#" ? t.maximumFractionDigits = g.length : b && x ? (t.minimumFractionDigits = b.length, t.maximumFractionDigits = b.length + x.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1084
+ i.stem.replace(fn, function(c, l, f, g, y, x) {
1085
+ return f === "*" ? t.minimumFractionDigits = l.length : g && g[0] === "#" ? t.maximumFractionDigits = g.length : y && x ? (t.minimumFractionDigits = y.length, t.maximumFractionDigits = y.length + x.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1082
1086
  });
1083
1087
  var o = i.options[0];
1084
- o === "w" ? t = R(R({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = R(R({}, t), dn(o)));
1088
+ o === "w" ? t = U(U({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = U(U({}, t), dn(o)));
1085
1089
  continue;
1086
1090
  }
1087
1091
  if (Wn.test(i.stem)) {
1088
- t = R(R({}, t), dn(i.stem));
1092
+ t = U(U({}, t), dn(i.stem));
1089
1093
  continue;
1090
1094
  }
1091
1095
  var u = qn(i.stem);
1092
- u && (t = R(R({}, t), u));
1093
- var s = yi(i.stem);
1094
- s && (t = R(R({}, t), s));
1096
+ u && (t = U(U({}, t), u));
1097
+ var s = vi(i.stem);
1098
+ s && (t = U(U({}, t), s));
1095
1099
  }
1096
1100
  return t;
1097
1101
  }
@@ -2510,15 +2514,15 @@ var lt = {
2510
2514
  "h"
2511
2515
  ]
2512
2516
  };
2513
- function Ei(e, t) {
2517
+ function xi(e, t) {
2514
2518
  for (var n = "", r = 0; r < e.length; r++) {
2515
2519
  var i = e.charAt(r);
2516
2520
  if (i === "j") {
2517
2521
  for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2518
2522
  o++, r++;
2519
- var u = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), f = "a", l = xi(t);
2523
+ var u = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), c = "a", l = _i(t);
2520
2524
  for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
2521
- n += f;
2525
+ n += c;
2522
2526
  for (; u-- > 0; )
2523
2527
  n = l + n;
2524
2528
  } else
@@ -2526,7 +2530,7 @@ function Ei(e, t) {
2526
2530
  }
2527
2531
  return n;
2528
2532
  }
2529
- function xi(e) {
2533
+ function _i(e) {
2530
2534
  var t = e.hourCycle;
2531
2535
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2532
2536
  e.hourCycles && // @ts-ignore
@@ -2548,20 +2552,20 @@ function xi(e) {
2548
2552
  var i = lt[r || ""] || lt[n || ""] || lt["".concat(n, "-001")] || lt["001"];
2549
2553
  return i[0];
2550
2554
  }
2551
- var Ft, _i = new RegExp("^".concat(zn.source, "*")), Ti = new RegExp("".concat(zn.source, "*$"));
2552
- function L(e, t) {
2555
+ var Gt, Ti = new RegExp("^".concat(zn.source, "*")), Bi = new RegExp("".concat(zn.source, "*$"));
2556
+ function H(e, t) {
2553
2557
  return { start: e, end: t };
2554
2558
  }
2555
- var Bi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Si = !!String.fromCodePoint, wi = !!Object.fromEntries, Ai = !!String.prototype.codePointAt, Ci = !!String.prototype.trimStart, Hi = !!String.prototype.trimEnd, Li = !!Number.isSafeInteger, Oi = Li ? Number.isSafeInteger : function(e) {
2559
+ var Si = !!String.prototype.startsWith && "_a".startsWith("a", 1), wi = !!String.fromCodePoint, Ai = !!Object.fromEntries, Ci = !!String.prototype.codePointAt, Hi = !!String.prototype.trimStart, Oi = !!String.prototype.trimEnd, Li = !!Number.isSafeInteger, Ri = Li ? Number.isSafeInteger : function(e) {
2556
2560
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2557
- }, zt = !0;
2561
+ }, Zt = !0;
2558
2562
  try {
2559
- var Ri = Jn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2560
- zt = ((Ft = Ri.exec("a")) === null || Ft === void 0 ? void 0 : Ft[0]) === "a";
2563
+ var Ni = Jn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2564
+ Zt = ((Gt = Ni.exec("a")) === null || Gt === void 0 ? void 0 : Gt[0]) === "a";
2561
2565
  } catch (e) {
2562
- zt = !1;
2566
+ Zt = !1;
2563
2567
  }
2564
- var mn = Bi ? (
2568
+ var mn = Si ? (
2565
2569
  // Native
2566
2570
  function(t, n, r) {
2567
2571
  return t.startsWith(n, r);
@@ -2571,7 +2575,7 @@ var mn = Bi ? (
2571
2575
  function(t, n, r) {
2572
2576
  return t.slice(r, r + n.length) === n;
2573
2577
  }
2574
- ), Wt = Si ? String.fromCodePoint : (
2578
+ ), qt = wi ? String.fromCodePoint : (
2575
2579
  // IE11
2576
2580
  function() {
2577
2581
  for (var t = [], n = 0; n < arguments.length; n++)
@@ -2585,7 +2589,7 @@ var mn = Bi ? (
2585
2589
  }
2586
2590
  ), gn = (
2587
2591
  // native
2588
- wi ? Object.fromEntries : (
2592
+ Ai ? Object.fromEntries : (
2589
2593
  // Ponyfill
2590
2594
  function(t) {
2591
2595
  for (var n = {}, r = 0, i = t; r < i.length; r++) {
@@ -2595,7 +2599,7 @@ var mn = Bi ? (
2595
2599
  return n;
2596
2600
  }
2597
2601
  )
2598
- ), Qn = Ai ? (
2602
+ ), Qn = Ci ? (
2599
2603
  // Native
2600
2604
  function(t, n) {
2601
2605
  return t.codePointAt(n);
@@ -2609,7 +2613,7 @@ var mn = Bi ? (
2609
2613
  return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2610
2614
  }
2611
2615
  }
2612
- ), Ni = Ci ? (
2616
+ ), Mi = Hi ? (
2613
2617
  // Native
2614
2618
  function(t) {
2615
2619
  return t.trimStart();
@@ -2617,9 +2621,9 @@ var mn = Bi ? (
2617
2621
  ) : (
2618
2622
  // Ponyfill
2619
2623
  function(t) {
2620
- return t.replace(_i, "");
2624
+ return t.replace(Ti, "");
2621
2625
  }
2622
- ), Mi = Hi ? (
2626
+ ), Pi = Oi ? (
2623
2627
  // Native
2624
2628
  function(t) {
2625
2629
  return t.trimEnd();
@@ -2627,32 +2631,32 @@ var mn = Bi ? (
2627
2631
  ) : (
2628
2632
  // Ponyfill
2629
2633
  function(t) {
2630
- return t.replace(Ti, "");
2634
+ return t.replace(Bi, "");
2631
2635
  }
2632
2636
  );
2633
2637
  function Jn(e, t) {
2634
2638
  return new RegExp(e, t);
2635
2639
  }
2636
- var Zt;
2637
- if (zt) {
2640
+ var Qt;
2641
+ if (Zt) {
2638
2642
  var bn = Jn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2639
- Zt = function(t, n) {
2643
+ Qt = function(t, n) {
2640
2644
  var r;
2641
2645
  bn.lastIndex = n;
2642
2646
  var i = bn.exec(t);
2643
2647
  return (r = i[1]) !== null && r !== void 0 ? r : "";
2644
2648
  };
2645
2649
  } else
2646
- Zt = function(t, n) {
2650
+ Qt = function(t, n) {
2647
2651
  for (var r = []; ; ) {
2648
2652
  var i = Qn(t, n);
2649
- if (i === void 0 || Yn(i) || Fi(i))
2653
+ if (i === void 0 || Yn(i) || Ui(i))
2650
2654
  break;
2651
2655
  r.push(i), n += i >= 65536 ? 2 : 1;
2652
2656
  }
2653
- return Wt.apply(void 0, r);
2657
+ return qt.apply(void 0, r);
2654
2658
  };
2655
- var Pi = (
2659
+ var Ii = (
2656
2660
  /** @class */
2657
2661
  function() {
2658
2662
  function e(t, n) {
@@ -2676,14 +2680,14 @@ var Pi = (
2676
2680
  if (o === 35 && (n === "plural" || n === "selectordinal")) {
2677
2681
  var s = this.clonePosition();
2678
2682
  this.bump(), i.push({
2679
- type: I.pound,
2680
- location: L(s, this.clonePosition())
2683
+ type: D.pound,
2684
+ location: H(s, this.clonePosition())
2681
2685
  });
2682
2686
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2683
2687
  if (r)
2684
2688
  break;
2685
- return this.error(H.UNMATCHED_CLOSING_TAG, L(this.clonePosition(), this.clonePosition()));
2686
- } else if (o === 60 && !this.ignoreTag && qt(this.peek() || 0)) {
2689
+ return this.error(C.UNMATCHED_CLOSING_TAG, H(this.clonePosition(), this.clonePosition()));
2690
+ } else if (o === 60 && !this.ignoreTag && Jt(this.peek() || 0)) {
2687
2691
  var u = this.parseTag(t, n);
2688
2692
  if (u.err)
2689
2693
  return u;
@@ -2704,9 +2708,9 @@ var Pi = (
2704
2708
  if (this.bumpSpace(), this.bumpIf("/>"))
2705
2709
  return {
2706
2710
  val: {
2707
- type: I.literal,
2711
+ type: D.literal,
2708
2712
  value: "<".concat(i, "/>"),
2709
- location: L(r, this.clonePosition())
2713
+ location: H(r, this.clonePosition())
2710
2714
  },
2711
2715
  err: null
2712
2716
  };
@@ -2716,25 +2720,25 @@ var Pi = (
2716
2720
  return o;
2717
2721
  var u = o.val, s = this.clonePosition();
2718
2722
  if (this.bumpIf("</")) {
2719
- if (this.isEOF() || !qt(this.char()))
2720
- return this.error(H.INVALID_TAG, L(s, this.clonePosition()));
2721
- var f = this.clonePosition(), l = this.parseTagName();
2722
- return i !== l ? this.error(H.UNMATCHED_CLOSING_TAG, L(f, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2723
+ if (this.isEOF() || !Jt(this.char()))
2724
+ return this.error(C.INVALID_TAG, H(s, this.clonePosition()));
2725
+ var c = this.clonePosition(), l = this.parseTagName();
2726
+ return i !== l ? this.error(C.UNMATCHED_CLOSING_TAG, H(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2723
2727
  val: {
2724
- type: I.tag,
2728
+ type: D.tag,
2725
2729
  value: i,
2726
2730
  children: u,
2727
- location: L(r, this.clonePosition())
2731
+ location: H(r, this.clonePosition())
2728
2732
  },
2729
2733
  err: null
2730
- } : this.error(H.INVALID_TAG, L(s, this.clonePosition())));
2734
+ } : this.error(C.INVALID_TAG, H(s, this.clonePosition())));
2731
2735
  } else
2732
- return this.error(H.UNCLOSED_TAG, L(r, this.clonePosition()));
2736
+ return this.error(C.UNCLOSED_TAG, H(r, this.clonePosition()));
2733
2737
  } else
2734
- return this.error(H.INVALID_TAG, L(r, this.clonePosition()));
2738
+ return this.error(C.INVALID_TAG, H(r, this.clonePosition()));
2735
2739
  }, e.prototype.parseTagName = function() {
2736
2740
  var t = this.offset();
2737
- for (this.bump(); !this.isEOF() && Di(this.char()); )
2741
+ for (this.bump(); !this.isEOF() && Fi(this.char()); )
2738
2742
  this.bump();
2739
2743
  return this.message.slice(t, this.offset());
2740
2744
  }, e.prototype.parseLiteral = function(t, n) {
@@ -2756,14 +2760,14 @@ var Pi = (
2756
2760
  }
2757
2761
  break;
2758
2762
  }
2759
- var f = L(r, this.clonePosition());
2763
+ var c = H(r, this.clonePosition());
2760
2764
  return {
2761
- val: { type: I.literal, value: i, location: f },
2765
+ val: { type: D.literal, value: i, location: c },
2762
2766
  err: null
2763
2767
  };
2764
2768
  }, e.prototype.tryParseLeftAngleBracket = function() {
2765
2769
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2766
- !Ii(this.peek() || 0)) ? (this.bump(), "<") : null;
2770
+ !Di(this.peek() || 0)) ? (this.bump(), "<") : null;
2767
2771
  }, e.prototype.tryParseQuote = function(t) {
2768
2772
  if (this.isEOF() || this.char() !== 39)
2769
2773
  return null;
@@ -2797,49 +2801,49 @@ var Pi = (
2797
2801
  n.push(r);
2798
2802
  this.bump();
2799
2803
  }
2800
- return Wt.apply(void 0, n);
2804
+ return qt.apply(void 0, n);
2801
2805
  }, e.prototype.tryParseUnquoted = function(t, n) {
2802
2806
  if (this.isEOF())
2803
2807
  return null;
2804
2808
  var r = this.char();
2805
- return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Wt(r));
2809
+ return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), qt(r));
2806
2810
  }, e.prototype.parseArgument = function(t, n) {
2807
2811
  var r = this.clonePosition();
2808
2812
  if (this.bump(), this.bumpSpace(), this.isEOF())
2809
- return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition()));
2813
+ return this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE, H(r, this.clonePosition()));
2810
2814
  if (this.char() === 125)
2811
- return this.bump(), this.error(H.EMPTY_ARGUMENT, L(r, this.clonePosition()));
2815
+ return this.bump(), this.error(C.EMPTY_ARGUMENT, H(r, this.clonePosition()));
2812
2816
  var i = this.parseIdentifierIfPossible().value;
2813
2817
  if (!i)
2814
- return this.error(H.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
2818
+ return this.error(C.MALFORMED_ARGUMENT, H(r, this.clonePosition()));
2815
2819
  if (this.bumpSpace(), this.isEOF())
2816
- return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition()));
2820
+ return this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE, H(r, this.clonePosition()));
2817
2821
  switch (this.char()) {
2818
2822
  case 125:
2819
2823
  return this.bump(), {
2820
2824
  val: {
2821
- type: I.argument,
2825
+ type: D.argument,
2822
2826
  // value does not include the opening and closing braces.
2823
2827
  value: i,
2824
- location: L(r, this.clonePosition())
2828
+ location: H(r, this.clonePosition())
2825
2829
  },
2826
2830
  err: null
2827
2831
  };
2828
2832
  case 44:
2829
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2833
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE, H(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2830
2834
  default:
2831
- return this.error(H.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
2835
+ return this.error(C.MALFORMED_ARGUMENT, H(r, this.clonePosition()));
2832
2836
  }
2833
2837
  }, e.prototype.parseIdentifierIfPossible = function() {
2834
- var t = this.clonePosition(), n = this.offset(), r = Zt(this.message, n), i = n + r.length;
2838
+ var t = this.clonePosition(), n = this.offset(), r = Qt(this.message, n), i = n + r.length;
2835
2839
  this.bumpTo(i);
2836
- var o = this.clonePosition(), u = L(t, o);
2840
+ var o = this.clonePosition(), u = H(t, o);
2837
2841
  return { value: r, location: u };
2838
2842
  }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
2839
- var o, u = this.clonePosition(), s = this.parseIdentifierIfPossible().value, f = this.clonePosition();
2843
+ var o, u = this.clonePosition(), s = this.parseIdentifierIfPossible().value, c = this.clonePosition();
2840
2844
  switch (s) {
2841
2845
  case "":
2842
- return this.error(H.EXPECT_ARGUMENT_TYPE, L(u, f));
2846
+ return this.error(C.EXPECT_ARGUMENT_TYPE, H(u, c));
2843
2847
  case "number":
2844
2848
  case "date":
2845
2849
  case "time": {
@@ -2847,47 +2851,47 @@ var Pi = (
2847
2851
  var l = null;
2848
2852
  if (this.bumpIf(",")) {
2849
2853
  this.bumpSpace();
2850
- var d = this.clonePosition(), g = this.parseSimpleArgStyleIfPossible();
2854
+ var f = this.clonePosition(), g = this.parseSimpleArgStyleIfPossible();
2851
2855
  if (g.err)
2852
2856
  return g;
2853
- var b = Mi(g.val);
2854
- if (b.length === 0)
2855
- return this.error(H.EXPECT_ARGUMENT_STYLE, L(this.clonePosition(), this.clonePosition()));
2856
- var x = L(d, this.clonePosition());
2857
- l = { style: b, styleLocation: x };
2857
+ var y = Pi(g.val);
2858
+ if (y.length === 0)
2859
+ return this.error(C.EXPECT_ARGUMENT_STYLE, H(this.clonePosition(), this.clonePosition()));
2860
+ var x = H(f, this.clonePosition());
2861
+ l = { style: y, styleLocation: x };
2858
2862
  }
2859
2863
  var T = this.tryParseArgumentClose(i);
2860
2864
  if (T.err)
2861
2865
  return T;
2862
- var P = L(i, this.clonePosition());
2866
+ var P = H(i, this.clonePosition());
2863
2867
  if (l && mn(l == null ? void 0 : l.style, "::", 0)) {
2864
- var $ = Ni(l.style.slice(2));
2868
+ var j = Mi(l.style.slice(2));
2865
2869
  if (s === "number") {
2866
- var g = this.parseNumberSkeletonFromString($, l.styleLocation);
2870
+ var g = this.parseNumberSkeletonFromString(j, l.styleLocation);
2867
2871
  return g.err ? g : {
2868
- val: { type: I.number, value: r, location: P, style: g.val },
2872
+ val: { type: D.number, value: r, location: P, style: g.val },
2869
2873
  err: null
2870
2874
  };
2871
2875
  } else {
2872
- if ($.length === 0)
2873
- return this.error(H.EXPECT_DATE_TIME_SKELETON, P);
2874
- var X = $;
2875
- this.locale && (X = Ei($, this.locale));
2876
- var b = {
2877
- type: Fe.dateTime,
2878
- pattern: X,
2876
+ if (j.length === 0)
2877
+ return this.error(C.EXPECT_DATE_TIME_SKELETON, P);
2878
+ var z = j;
2879
+ this.locale && (z = xi(j, this.locale));
2880
+ var y = {
2881
+ type: Ge.dateTime,
2882
+ pattern: z,
2879
2883
  location: l.styleLocation,
2880
- parsedOptions: this.shouldParseSkeletons ? di(X) : {}
2881
- }, F = s === "date" ? I.date : I.time;
2884
+ parsedOptions: this.shouldParseSkeletons ? pi(z) : {}
2885
+ }, G = s === "date" ? D.date : D.time;
2882
2886
  return {
2883
- val: { type: F, value: r, location: P, style: b },
2887
+ val: { type: G, value: r, location: P, style: y },
2884
2888
  err: null
2885
2889
  };
2886
2890
  }
2887
2891
  }
2888
2892
  return {
2889
2893
  val: {
2890
- type: s === "number" ? I.number : s === "date" ? I.date : I.time,
2894
+ type: s === "number" ? D.number : s === "date" ? D.date : D.time,
2891
2895
  value: r,
2892
2896
  location: P,
2893
2897
  style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
@@ -2900,50 +2904,50 @@ var Pi = (
2900
2904
  case "select": {
2901
2905
  var B = this.clonePosition();
2902
2906
  if (this.bumpSpace(), !this.bumpIf(","))
2903
- return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS, L(B, R({}, B)));
2907
+ return this.error(C.EXPECT_SELECT_ARGUMENT_OPTIONS, H(B, mt({}, B)));
2904
2908
  this.bumpSpace();
2905
- var S = this.parseIdentifierIfPossible(), G = 0;
2906
- if (s !== "select" && S.value === "offset") {
2909
+ var w = this.parseIdentifierIfPossible(), I = 0;
2910
+ if (s !== "select" && w.value === "offset") {
2907
2911
  if (!this.bumpIf(":"))
2908
- return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, L(this.clonePosition(), this.clonePosition()));
2912
+ return this.error(C.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H(this.clonePosition(), this.clonePosition()));
2909
2913
  this.bumpSpace();
2910
- var g = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2914
+ var g = this.tryParseDecimalInteger(C.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, C.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2911
2915
  if (g.err)
2912
2916
  return g;
2913
- this.bumpSpace(), S = this.parseIdentifierIfPossible(), G = g.val;
2917
+ this.bumpSpace(), w = this.parseIdentifierIfPossible(), I = g.val;
2914
2918
  }
2915
- var O = this.tryParsePluralOrSelectOptions(t, s, n, S);
2916
- if (O.err)
2917
- return O;
2919
+ var R = this.tryParsePluralOrSelectOptions(t, s, n, w);
2920
+ if (R.err)
2921
+ return R;
2918
2922
  var T = this.tryParseArgumentClose(i);
2919
2923
  if (T.err)
2920
2924
  return T;
2921
- var Y = L(i, this.clonePosition());
2925
+ var K = H(i, this.clonePosition());
2922
2926
  return s === "select" ? {
2923
2927
  val: {
2924
- type: I.select,
2928
+ type: D.select,
2925
2929
  value: r,
2926
- options: gn(O.val),
2927
- location: Y
2930
+ options: gn(R.val),
2931
+ location: K
2928
2932
  },
2929
2933
  err: null
2930
2934
  } : {
2931
2935
  val: {
2932
- type: I.plural,
2936
+ type: D.plural,
2933
2937
  value: r,
2934
- options: gn(O.val),
2935
- offset: G,
2938
+ options: gn(R.val),
2939
+ offset: I,
2936
2940
  pluralType: s === "plural" ? "cardinal" : "ordinal",
2937
- location: Y
2941
+ location: K
2938
2942
  },
2939
2943
  err: null
2940
2944
  };
2941
2945
  }
2942
2946
  default:
2943
- return this.error(H.INVALID_ARGUMENT_TYPE, L(u, f));
2947
+ return this.error(C.INVALID_ARGUMENT_TYPE, H(u, c));
2944
2948
  }
2945
2949
  }, e.prototype.tryParseArgumentClose = function(t) {
2946
- return this.isEOF() || this.char() !== 125 ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, L(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2950
+ return this.isEOF() || this.char() !== 125 ? this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE, H(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2947
2951
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2948
2952
  for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
2949
2953
  var r = this.char();
@@ -2952,7 +2956,7 @@ var Pi = (
2952
2956
  this.bump();
2953
2957
  var i = this.clonePosition();
2954
2958
  if (!this.bumpUntil("'"))
2955
- return this.error(H.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, L(i, this.clonePosition()));
2959
+ return this.error(C.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, H(i, this.clonePosition()));
2956
2960
  this.bump();
2957
2961
  break;
2958
2962
  }
@@ -2982,37 +2986,37 @@ var Pi = (
2982
2986
  }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
2983
2987
  var r = [];
2984
2988
  try {
2985
- r = mi(t);
2989
+ r = gi(t);
2986
2990
  } catch (i) {
2987
- return this.error(H.INVALID_NUMBER_SKELETON, n);
2991
+ return this.error(C.INVALID_NUMBER_SKELETON, n);
2988
2992
  }
2989
2993
  return {
2990
2994
  val: {
2991
- type: Fe.number,
2995
+ type: Ge.number,
2992
2996
  tokens: r,
2993
2997
  location: n,
2994
- parsedOptions: this.shouldParseSkeletons ? vi(r) : {}
2998
+ parsedOptions: this.shouldParseSkeletons ? Ei(r) : {}
2995
2999
  },
2996
3000
  err: null
2997
3001
  };
2998
3002
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
2999
- for (var o, u = !1, s = [], f = /* @__PURE__ */ new Set(), l = i.value, d = i.location; ; ) {
3003
+ for (var o, u = !1, s = [], c = /* @__PURE__ */ new Set(), l = i.value, f = i.location; ; ) {
3000
3004
  if (l.length === 0) {
3001
3005
  var g = this.clonePosition();
3002
3006
  if (n !== "select" && this.bumpIf("=")) {
3003
- var b = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_SELECTOR, H.INVALID_PLURAL_ARGUMENT_SELECTOR);
3004
- if (b.err)
3005
- return b;
3006
- d = L(g, this.clonePosition()), l = this.message.slice(g.offset, this.offset());
3007
+ var y = this.tryParseDecimalInteger(C.EXPECT_PLURAL_ARGUMENT_SELECTOR, C.INVALID_PLURAL_ARGUMENT_SELECTOR);
3008
+ if (y.err)
3009
+ return y;
3010
+ f = H(g, this.clonePosition()), l = this.message.slice(g.offset, this.offset());
3007
3011
  } else
3008
3012
  break;
3009
3013
  }
3010
- if (f.has(l))
3011
- return this.error(n === "select" ? H.DUPLICATE_SELECT_ARGUMENT_SELECTOR : H.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, d);
3014
+ if (c.has(l))
3015
+ return this.error(n === "select" ? C.DUPLICATE_SELECT_ARGUMENT_SELECTOR : C.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
3012
3016
  l === "other" && (u = !0), this.bumpSpace();
3013
3017
  var x = this.clonePosition();
3014
3018
  if (!this.bumpIf("{"))
3015
- return this.error(n === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, L(this.clonePosition(), this.clonePosition()));
3019
+ return this.error(n === "select" ? C.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : C.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, H(this.clonePosition(), this.clonePosition()));
3016
3020
  var T = this.parseMessage(t + 1, n, r);
3017
3021
  if (T.err)
3018
3022
  return T;
@@ -3023,11 +3027,11 @@ var Pi = (
3023
3027
  l,
3024
3028
  {
3025
3029
  value: T.val,
3026
- location: L(x, this.clonePosition())
3030
+ location: H(x, this.clonePosition())
3027
3031
  }
3028
- ]), f.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, d = o.location;
3032
+ ]), c.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, f = o.location;
3029
3033
  }
3030
- return s.length === 0 ? this.error(n === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR : H.EXPECT_PLURAL_ARGUMENT_SELECTOR, L(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !u ? this.error(H.MISSING_OTHER_CLAUSE, L(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3034
+ return s.length === 0 ? this.error(n === "select" ? C.EXPECT_SELECT_ARGUMENT_SELECTOR : C.EXPECT_PLURAL_ARGUMENT_SELECTOR, H(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !u ? this.error(C.MISSING_OTHER_CLAUSE, H(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3031
3035
  }, e.prototype.tryParseDecimalInteger = function(t, n) {
3032
3036
  var r = 1, i = this.clonePosition();
3033
3037
  this.bumpIf("+") || this.bumpIf("-") && (r = -1);
@@ -3038,8 +3042,8 @@ var Pi = (
3038
3042
  else
3039
3043
  break;
3040
3044
  }
3041
- var f = L(i, this.clonePosition());
3042
- return o ? (u *= r, Oi(u) ? { val: u, err: null } : this.error(n, f)) : this.error(t, f);
3045
+ var c = H(i, this.clonePosition());
3046
+ return o ? (u *= r, Ri(u) ? { val: u, err: null } : this.error(n, c)) : this.error(t, c);
3043
3047
  }, e.prototype.offset = function() {
3044
3048
  return this.position.offset;
3045
3049
  }, e.prototype.isEOF = function() {
@@ -3105,47 +3109,47 @@ var Pi = (
3105
3109
  }, e;
3106
3110
  }()
3107
3111
  );
3108
- function qt(e) {
3112
+ function Jt(e) {
3109
3113
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3110
3114
  }
3111
- function Ii(e) {
3112
- return qt(e) || e === 47;
3113
- }
3114
3115
  function Di(e) {
3116
+ return Jt(e) || e === 47;
3117
+ }
3118
+ function Fi(e) {
3115
3119
  return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
3116
3120
  }
3117
3121
  function Yn(e) {
3118
3122
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3119
3123
  }
3120
- function Fi(e) {
3124
+ function Ui(e) {
3121
3125
  return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
3122
3126
  }
3123
- function Qt(e) {
3127
+ function Yt(e) {
3124
3128
  e.forEach(function(t) {
3125
3129
  if (delete t.location, jn(t) || kn(t))
3126
3130
  for (var n in t.options)
3127
- delete t.options[n].location, Qt(t.options[n].value);
3131
+ delete t.options[n].location, Yt(t.options[n].value);
3128
3132
  else
3129
- Un(t) && Xn(t.style) || (Gn(t) || $n(t)) && Xt(t.style) ? delete t.style.location : Vn(t) && Qt(t.children);
3133
+ Un(t) && Xn(t.style) || (Gn(t) || $n(t)) && Wt(t.style) ? delete t.style.location : Vn(t) && Yt(t.children);
3130
3134
  });
3131
3135
  }
3132
- function Ui(e, t) {
3133
- t === void 0 && (t = {}), t = R({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3134
- var n = new Pi(e, t).parse();
3136
+ function Gi(e, t) {
3137
+ t === void 0 && (t = {}), t = mt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3138
+ var n = new Ii(e, t).parse();
3135
3139
  if (n.err) {
3136
- var r = SyntaxError(H[n.err.kind]);
3140
+ var r = SyntaxError(C[n.err.kind]);
3137
3141
  throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3138
3142
  }
3139
- return t != null && t.captureLocation || Qt(n.val), n.val;
3143
+ return t != null && t.captureLocation || Yt(n.val), n.val;
3140
3144
  }
3141
- var Ue;
3145
+ var $e;
3142
3146
  (function(e) {
3143
3147
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3144
- })(Ue || (Ue = {}));
3145
- var vt = (
3148
+ })($e || ($e = {}));
3149
+ var Et = (
3146
3150
  /** @class */
3147
3151
  function(e) {
3148
- yt(t, e);
3152
+ vt(t, e);
3149
3153
  function t(n, r, i) {
3150
3154
  var o = e.call(this, n) || this;
3151
3155
  return o.code = r, o.originalMessage = i, o;
@@ -3157,152 +3161,152 @@ var vt = (
3157
3161
  ), yn = (
3158
3162
  /** @class */
3159
3163
  function(e) {
3160
- yt(t, e);
3164
+ vt(t, e);
3161
3165
  function t(n, r, i, o) {
3162
- return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ue.INVALID_VALUE, o) || this;
3166
+ return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), $e.INVALID_VALUE, o) || this;
3163
3167
  }
3164
3168
  return t;
3165
- }(vt)
3166
- ), Gi = (
3169
+ }(Et)
3170
+ ), $i = (
3167
3171
  /** @class */
3168
3172
  function(e) {
3169
- yt(t, e);
3173
+ vt(t, e);
3170
3174
  function t(n, r, i) {
3171
- return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Ue.INVALID_VALUE, i) || this;
3175
+ return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), $e.INVALID_VALUE, i) || this;
3172
3176
  }
3173
3177
  return t;
3174
- }(vt)
3175
- ), $i = (
3178
+ }(Et)
3179
+ ), ji = (
3176
3180
  /** @class */
3177
3181
  function(e) {
3178
- yt(t, e);
3182
+ vt(t, e);
3179
3183
  function t(n, r) {
3180
- return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Ue.MISSING_VALUE, r) || this;
3184
+ return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), $e.MISSING_VALUE, r) || this;
3181
3185
  }
3182
3186
  return t;
3183
- }(vt)
3184
- ), J;
3187
+ }(Et)
3188
+ ), Y;
3185
3189
  (function(e) {
3186
3190
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3187
- })(J || (J = {}));
3188
- function ji(e) {
3191
+ })(Y || (Y = {}));
3192
+ function ki(e) {
3189
3193
  return e.length < 2 ? e : e.reduce(function(t, n) {
3190
3194
  var r = t[t.length - 1];
3191
- return !r || r.type !== J.literal || n.type !== J.literal ? t.push(n) : r.value += n.value, t;
3195
+ return !r || r.type !== Y.literal || n.type !== Y.literal ? t.push(n) : r.value += n.value, t;
3192
3196
  }, []);
3193
3197
  }
3194
- function ki(e) {
3198
+ function Vi(e) {
3195
3199
  return typeof e == "function";
3196
3200
  }
3197
3201
  function ct(e, t, n, r, i, o, u) {
3198
3202
  if (e.length === 1 && cn(e[0]))
3199
3203
  return [
3200
3204
  {
3201
- type: J.literal,
3205
+ type: Y.literal,
3202
3206
  value: e[0].value
3203
3207
  }
3204
3208
  ];
3205
- for (var s = [], f = 0, l = e; f < l.length; f++) {
3206
- var d = l[f];
3207
- if (cn(d)) {
3209
+ for (var s = [], c = 0, l = e; c < l.length; c++) {
3210
+ var f = l[c];
3211
+ if (cn(f)) {
3208
3212
  s.push({
3209
- type: J.literal,
3210
- value: d.value
3213
+ type: Y.literal,
3214
+ value: f.value
3211
3215
  });
3212
3216
  continue;
3213
3217
  }
3214
- if (ci(d)) {
3218
+ if (fi(f)) {
3215
3219
  typeof o == "number" && s.push({
3216
- type: J.literal,
3220
+ type: Y.literal,
3217
3221
  value: n.getNumberFormat(t).format(o)
3218
3222
  });
3219
3223
  continue;
3220
3224
  }
3221
- var g = d.value;
3225
+ var g = f.value;
3222
3226
  if (!(i && g in i))
3223
- throw new $i(g, u);
3224
- var b = i[g];
3225
- if (hi(d)) {
3226
- (!b || typeof b == "string" || typeof b == "number") && (b = typeof b == "string" || typeof b == "number" ? String(b) : ""), s.push({
3227
- type: typeof b == "string" ? J.literal : J.object,
3228
- value: b
3227
+ throw new ji(g, u);
3228
+ var y = i[g];
3229
+ if (ci(f)) {
3230
+ (!y || typeof y == "string" || typeof y == "number") && (y = typeof y == "string" || typeof y == "number" ? String(y) : ""), s.push({
3231
+ type: typeof y == "string" ? Y.literal : Y.object,
3232
+ value: y
3229
3233
  });
3230
3234
  continue;
3231
3235
  }
3232
- if (Gn(d)) {
3233
- var x = typeof d.style == "string" ? r.date[d.style] : Xt(d.style) ? d.style.parsedOptions : void 0;
3236
+ if (Gn(f)) {
3237
+ var x = typeof f.style == "string" ? r.date[f.style] : Wt(f.style) ? f.style.parsedOptions : void 0;
3234
3238
  s.push({
3235
- type: J.literal,
3236
- value: n.getDateTimeFormat(t, x).format(b)
3239
+ type: Y.literal,
3240
+ value: n.getDateTimeFormat(t, x).format(y)
3237
3241
  });
3238
3242
  continue;
3239
3243
  }
3240
- if ($n(d)) {
3241
- var x = typeof d.style == "string" ? r.time[d.style] : Xt(d.style) ? d.style.parsedOptions : r.time.medium;
3244
+ if ($n(f)) {
3245
+ var x = typeof f.style == "string" ? r.time[f.style] : Wt(f.style) ? f.style.parsedOptions : r.time.medium;
3242
3246
  s.push({
3243
- type: J.literal,
3244
- value: n.getDateTimeFormat(t, x).format(b)
3247
+ type: Y.literal,
3248
+ value: n.getDateTimeFormat(t, x).format(y)
3245
3249
  });
3246
3250
  continue;
3247
3251
  }
3248
- if (Un(d)) {
3249
- var x = typeof d.style == "string" ? r.number[d.style] : Xn(d.style) ? d.style.parsedOptions : void 0;
3250
- x && x.scale && (b = b * (x.scale || 1)), s.push({
3251
- type: J.literal,
3252
- value: n.getNumberFormat(t, x).format(b)
3252
+ if (Un(f)) {
3253
+ var x = typeof f.style == "string" ? r.number[f.style] : Xn(f.style) ? f.style.parsedOptions : void 0;
3254
+ x && x.scale && (y = y * (x.scale || 1)), s.push({
3255
+ type: Y.literal,
3256
+ value: n.getNumberFormat(t, x).format(y)
3253
3257
  });
3254
3258
  continue;
3255
3259
  }
3256
- if (Vn(d)) {
3257
- var T = d.children, P = d.value, $ = i[P];
3258
- if (!ki($))
3259
- throw new Gi(P, "function", u);
3260
- var X = ct(T, t, n, r, i, o), F = $(X.map(function(G) {
3261
- return G.value;
3260
+ if (Vn(f)) {
3261
+ var T = f.children, P = f.value, j = i[P];
3262
+ if (!Vi(j))
3263
+ throw new $i(P, "function", u);
3264
+ var z = ct(T, t, n, r, i, o), G = j(z.map(function(I) {
3265
+ return I.value;
3262
3266
  }));
3263
- Array.isArray(F) || (F = [F]), s.push.apply(s, F.map(function(G) {
3267
+ Array.isArray(G) || (G = [G]), s.push.apply(s, G.map(function(I) {
3264
3268
  return {
3265
- type: typeof G == "string" ? J.literal : J.object,
3266
- value: G
3269
+ type: typeof I == "string" ? Y.literal : Y.object,
3270
+ value: I
3267
3271
  };
3268
3272
  }));
3269
3273
  }
3270
- if (jn(d)) {
3271
- var B = d.options[b] || d.options.other;
3274
+ if (jn(f)) {
3275
+ var B = f.options[y] || f.options.other;
3272
3276
  if (!B)
3273
- throw new yn(d.value, b, Object.keys(d.options), u);
3277
+ throw new yn(f.value, y, Object.keys(f.options), u);
3274
3278
  s.push.apply(s, ct(B.value, t, n, r, i));
3275
3279
  continue;
3276
3280
  }
3277
- if (kn(d)) {
3278
- var B = d.options["=".concat(b)];
3281
+ if (kn(f)) {
3282
+ var B = f.options["=".concat(y)];
3279
3283
  if (!B) {
3280
3284
  if (!Intl.PluralRules)
3281
- throw new vt(`Intl.PluralRules is not available in this environment.
3285
+ throw new Et(`Intl.PluralRules is not available in this environment.
3282
3286
  Try polyfilling it using "@formatjs/intl-pluralrules"
3283
- `, Ue.MISSING_INTL_API, u);
3284
- var S = n.getPluralRules(t, { type: d.pluralType }).select(b - (d.offset || 0));
3285
- B = d.options[S] || d.options.other;
3287
+ `, $e.MISSING_INTL_API, u);
3288
+ var w = n.getPluralRules(t, { type: f.pluralType }).select(y - (f.offset || 0));
3289
+ B = f.options[w] || f.options.other;
3286
3290
  }
3287
3291
  if (!B)
3288
- throw new yn(d.value, b, Object.keys(d.options), u);
3289
- s.push.apply(s, ct(B.value, t, n, r, i, b - (d.offset || 0)));
3292
+ throw new yn(f.value, y, Object.keys(f.options), u);
3293
+ s.push.apply(s, ct(B.value, t, n, r, i, y - (f.offset || 0)));
3290
3294
  continue;
3291
3295
  }
3292
3296
  }
3293
- return ji(s);
3297
+ return ki(s);
3294
3298
  }
3295
- function Vi(e, t) {
3296
- return t ? R(R(R({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3297
- return n[r] = R(R({}, e[r]), t[r] || {}), n;
3299
+ function Xi(e, t) {
3300
+ return t ? ce(ce(ce({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3301
+ return n[r] = ce(ce({}, e[r]), t[r] || {}), n;
3298
3302
  }, {})) : e;
3299
3303
  }
3300
- function Xi(e, t) {
3304
+ function zi(e, t) {
3301
3305
  return t ? Object.keys(e).reduce(function(n, r) {
3302
- return n[r] = Vi(e[r], t[r]), n;
3303
- }, R({}, e)) : e;
3306
+ return n[r] = Xi(e[r], t[r]), n;
3307
+ }, ce({}, e)) : e;
3304
3308
  }
3305
- function Ut(e) {
3309
+ function $t(e) {
3306
3310
  return {
3307
3311
  create: function() {
3308
3312
  return {
@@ -3316,39 +3320,39 @@ function Ut(e) {
3316
3320
  }
3317
3321
  };
3318
3322
  }
3319
- function zi(e) {
3323
+ function Wi(e) {
3320
3324
  return e === void 0 && (e = {
3321
3325
  number: {},
3322
3326
  dateTime: {},
3323
3327
  pluralRules: {}
3324
3328
  }), {
3325
- getNumberFormat: It(function() {
3329
+ getNumberFormat: Ft(function() {
3326
3330
  for (var t, n = [], r = 0; r < arguments.length; r++)
3327
3331
  n[r] = arguments[r];
3328
- return new ((t = Intl.NumberFormat).bind.apply(t, Pt([void 0], n, !1)))();
3332
+ return new ((t = Intl.NumberFormat).bind.apply(t, Dt([void 0], n, !1)))();
3329
3333
  }, {
3330
- cache: Ut(e.number),
3331
- strategy: Dt.variadic
3334
+ cache: $t(e.number),
3335
+ strategy: Ut.variadic
3332
3336
  }),
3333
- getDateTimeFormat: It(function() {
3337
+ getDateTimeFormat: Ft(function() {
3334
3338
  for (var t, n = [], r = 0; r < arguments.length; r++)
3335
3339
  n[r] = arguments[r];
3336
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Pt([void 0], n, !1)))();
3340
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Dt([void 0], n, !1)))();
3337
3341
  }, {
3338
- cache: Ut(e.dateTime),
3339
- strategy: Dt.variadic
3342
+ cache: $t(e.dateTime),
3343
+ strategy: Ut.variadic
3340
3344
  }),
3341
- getPluralRules: It(function() {
3345
+ getPluralRules: Ft(function() {
3342
3346
  for (var t, n = [], r = 0; r < arguments.length; r++)
3343
3347
  n[r] = arguments[r];
3344
- return new ((t = Intl.PluralRules).bind.apply(t, Pt([void 0], n, !1)))();
3348
+ return new ((t = Intl.PluralRules).bind.apply(t, Dt([void 0], n, !1)))();
3345
3349
  }, {
3346
- cache: Ut(e.pluralRules),
3347
- strategy: Dt.variadic
3350
+ cache: $t(e.pluralRules),
3351
+ strategy: Ut.variadic
3348
3352
  })
3349
3353
  };
3350
3354
  }
3351
- var Wi = (
3355
+ var Zi = (
3352
3356
  /** @class */
3353
3357
  function() {
3354
3358
  function e(t, n, r, i) {
@@ -3358,20 +3362,20 @@ var Wi = (
3358
3362
  number: {},
3359
3363
  dateTime: {},
3360
3364
  pluralRules: {}
3361
- }, this.format = function(f) {
3362
- var l = o.formatToParts(f);
3365
+ }, this.format = function(c) {
3366
+ var l = o.formatToParts(c);
3363
3367
  if (l.length === 1)
3364
3368
  return l[0].value;
3365
- var d = l.reduce(function(g, b) {
3366
- return !g.length || b.type !== J.literal || typeof g[g.length - 1] != "string" ? g.push(b.value) : g[g.length - 1] += b.value, g;
3369
+ var f = l.reduce(function(g, y) {
3370
+ return !g.length || y.type !== Y.literal || typeof g[g.length - 1] != "string" ? g.push(y.value) : g[g.length - 1] += y.value, g;
3367
3371
  }, []);
3368
- return d.length <= 1 ? d[0] || "" : d;
3369
- }, this.formatToParts = function(f) {
3370
- return ct(o.ast, o.locales, o.formatters, o.formats, f, void 0, o.message);
3372
+ return f.length <= 1 ? f[0] || "" : f;
3373
+ }, this.formatToParts = function(c) {
3374
+ return ct(o.ast, o.locales, o.formatters, o.formats, c, void 0, o.message);
3371
3375
  }, this.resolvedOptions = function() {
3372
- var f;
3376
+ var c;
3373
3377
  return {
3374
- locale: ((f = o.resolvedLocale) === null || f === void 0 ? void 0 : f.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3378
+ locale: ((c = o.resolvedLocale) === null || c === void 0 ? void 0 : c.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3375
3379
  };
3376
3380
  }, this.getAst = function() {
3377
3381
  return o.ast;
@@ -3381,12 +3385,12 @@ var Wi = (
3381
3385
  var u = i || {};
3382
3386
  u.formatters;
3383
3387
  var s = ri(u, ["formatters"]);
3384
- this.ast = e.__parse(t, R(R({}, s), { locale: this.resolvedLocale }));
3388
+ this.ast = e.__parse(t, ce(ce({}, s), { locale: this.resolvedLocale }));
3385
3389
  } else
3386
3390
  this.ast = t;
3387
3391
  if (!Array.isArray(this.ast))
3388
3392
  throw new TypeError("A message must be provided as a String or AST.");
3389
- this.formats = Xi(e.formats, r), this.formatters = i && i.formatters || zi(this.formatterCache);
3393
+ this.formats = zi(e.formats, r), this.formatters = i && i.formatters || Wi(this.formatterCache);
3390
3394
  }
3391
3395
  return Object.defineProperty(e, "defaultLocale", {
3392
3396
  get: function() {
@@ -3399,7 +3403,7 @@ var Wi = (
3399
3403
  var n = Intl.NumberFormat.supportedLocalesOf(t);
3400
3404
  return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3401
3405
  }
3402
- }, e.__parse = Ui, e.formats = {
3406
+ }, e.__parse = Gi, e.formats = {
3403
3407
  number: {
3404
3408
  integer: {
3405
3409
  maximumFractionDigits: 0
@@ -3460,7 +3464,7 @@ var Wi = (
3460
3464
  }, e;
3461
3465
  }()
3462
3466
  );
3463
- function Zi(e, t) {
3467
+ function qi(e, t) {
3464
3468
  if (t == null)
3465
3469
  return;
3466
3470
  if (t in e)
@@ -3481,36 +3485,36 @@ function Zi(e, t) {
3481
3485
  r = void 0;
3482
3486
  return r;
3483
3487
  }
3484
- const Be = {}, qi = (e, t, n) => n && (t in Be || (Be[t] = {}), e in Be[t] || (Be[t][e] = n), n), Kn = (e, t) => {
3488
+ const we = {}, Qi = (e, t, n) => n && (t in we || (we[t] = {}), e in we[t] || (we[t][e] = n), n), Kn = (e, t) => {
3485
3489
  if (t == null)
3486
3490
  return;
3487
- if (t in Be && e in Be[t])
3488
- return Be[t][e];
3489
- const n = Et(t);
3491
+ if (t in we && e in we[t])
3492
+ return we[t][e];
3493
+ const n = xt(t);
3490
3494
  for (let r = 0; r < n.length; r++) {
3491
- const i = n[r], o = Ji(i, e);
3495
+ const i = n[r], o = Yi(i, e);
3492
3496
  if (o)
3493
- return qi(e, t, o);
3497
+ return Qi(e, t, o);
3494
3498
  }
3495
3499
  };
3496
3500
  let rn;
3497
- const nt = bt({});
3498
- function Qi(e) {
3501
+ const it = yt({});
3502
+ function Ji(e) {
3499
3503
  return rn[e] || null;
3500
3504
  }
3501
3505
  function er(e) {
3502
3506
  return e in rn;
3503
3507
  }
3504
- function Ji(e, t) {
3508
+ function Yi(e, t) {
3505
3509
  if (!er(e))
3506
3510
  return null;
3507
- const n = Qi(e);
3508
- return Zi(n, t);
3511
+ const n = Ji(e);
3512
+ return qi(n, t);
3509
3513
  }
3510
- function Yi(e) {
3514
+ function Ki(e) {
3511
3515
  if (e == null)
3512
3516
  return;
3513
- const t = Et(e);
3517
+ const t = xt(e);
3514
3518
  for (let n = 0; n < t.length; n++) {
3515
3519
  const r = t[n];
3516
3520
  if (er(r))
@@ -3518,55 +3522,55 @@ function Yi(e) {
3518
3522
  }
3519
3523
  }
3520
3524
  function tr(e, ...t) {
3521
- delete Be[e], nt.update((n) => (n[e] = ni.all([n[e] || {}, ...t]), n));
3525
+ delete we[e], it.update((n) => (n[e] = ni.all([n[e] || {}, ...t]), n));
3522
3526
  }
3523
- je(
3524
- [nt],
3527
+ Ve(
3528
+ [it],
3525
3529
  ([e]) => Object.keys(e)
3526
3530
  );
3527
- nt.subscribe((e) => rn = e);
3531
+ it.subscribe((e) => rn = e);
3528
3532
  const ft = {};
3529
- function Ki(e, t) {
3533
+ function eo(e, t) {
3530
3534
  ft[e].delete(t), ft[e].size === 0 && delete ft[e];
3531
3535
  }
3532
3536
  function nr(e) {
3533
3537
  return ft[e];
3534
3538
  }
3535
- function eo(e) {
3536
- return Et(e).map((t) => {
3539
+ function to(e) {
3540
+ return xt(e).map((t) => {
3537
3541
  const n = nr(t);
3538
3542
  return [t, n ? [...n] : []];
3539
3543
  }).filter(([, t]) => t.length > 0);
3540
3544
  }
3541
- function Jt(e) {
3542
- return e == null ? !1 : Et(e).some(
3545
+ function Kt(e) {
3546
+ return e == null ? !1 : xt(e).some(
3543
3547
  (t) => {
3544
3548
  var n;
3545
3549
  return (n = nr(t)) == null ? void 0 : n.size;
3546
3550
  }
3547
3551
  );
3548
3552
  }
3549
- function to(e, t) {
3553
+ function no(e, t) {
3550
3554
  return Promise.all(
3551
- t.map((r) => (Ki(e, r), r().then((i) => i.default || i)))
3555
+ t.map((r) => (eo(e, r), r().then((i) => i.default || i)))
3552
3556
  ).then((r) => tr(e, ...r));
3553
3557
  }
3554
- const Je = {};
3558
+ const Ke = {};
3555
3559
  function rr(e) {
3556
- if (!Jt(e))
3557
- return e in Je ? Je[e] : Promise.resolve();
3558
- const t = eo(e);
3559
- return Je[e] = Promise.all(
3560
+ if (!Kt(e))
3561
+ return e in Ke ? Ke[e] : Promise.resolve();
3562
+ const t = to(e);
3563
+ return Ke[e] = Promise.all(
3560
3564
  t.map(
3561
- ([n, r]) => to(n, r)
3565
+ ([n, r]) => no(n, r)
3562
3566
  )
3563
3567
  ).then(() => {
3564
- if (Jt(e))
3568
+ if (Kt(e))
3565
3569
  return rr(e);
3566
- delete Je[e];
3567
- }), Je[e];
3570
+ delete Ke[e];
3571
+ }), Ke[e];
3568
3572
  }
3569
- const no = {
3573
+ const ro = {
3570
3574
  number: {
3571
3575
  scientific: { notation: "scientific" },
3572
3576
  engineering: { notation: "engineering" },
@@ -3595,176 +3599,176 @@ const no = {
3595
3599
  timeZoneName: "short"
3596
3600
  }
3597
3601
  }
3598
- }, ro = {
3602
+ }, io = {
3599
3603
  fallbackLocale: null,
3600
3604
  loadingDelay: 200,
3601
- formats: no,
3605
+ formats: ro,
3602
3606
  warnOnMissingMessages: !0,
3603
3607
  handleMissingMessage: void 0,
3604
3608
  ignoreTag: !0
3605
- }, io = ro;
3606
- function Ge() {
3607
- return io;
3609
+ }, oo = io;
3610
+ function je() {
3611
+ return oo;
3608
3612
  }
3609
- const Gt = bt(!1);
3610
- var oo = Object.defineProperty, ao = Object.defineProperties, so = Object.getOwnPropertyDescriptors, vn = Object.getOwnPropertySymbols, uo = Object.prototype.hasOwnProperty, lo = Object.prototype.propertyIsEnumerable, En = (e, t, n) => t in e ? oo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ho = (e, t) => {
3613
+ const jt = yt(!1);
3614
+ var ao = Object.defineProperty, so = Object.defineProperties, uo = Object.getOwnPropertyDescriptors, vn = Object.getOwnPropertySymbols, lo = Object.prototype.hasOwnProperty, ho = Object.prototype.propertyIsEnumerable, En = (e, t, n) => t in e ? ao(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, co = (e, t) => {
3611
3615
  for (var n in t || (t = {}))
3612
- uo.call(t, n) && En(e, n, t[n]);
3616
+ lo.call(t, n) && En(e, n, t[n]);
3613
3617
  if (vn)
3614
3618
  for (var n of vn(t))
3615
- lo.call(t, n) && En(e, n, t[n]);
3619
+ ho.call(t, n) && En(e, n, t[n]);
3616
3620
  return e;
3617
- }, co = (e, t) => ao(e, so(t));
3618
- let Yt;
3619
- const mt = bt(null);
3621
+ }, fo = (e, t) => so(e, uo(t));
3622
+ let en;
3623
+ const gt = yt(null);
3620
3624
  function xn(e) {
3621
3625
  return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3622
3626
  }
3623
- function Et(e, t = Ge().fallbackLocale) {
3627
+ function xt(e, t = je().fallbackLocale) {
3624
3628
  const n = xn(e);
3625
3629
  return t ? [.../* @__PURE__ */ new Set([...n, ...xn(t)])] : n;
3626
3630
  }
3627
- function He() {
3628
- return Yt != null ? Yt : void 0;
3631
+ function Oe() {
3632
+ return en != null ? en : void 0;
3629
3633
  }
3630
- mt.subscribe((e) => {
3631
- Yt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3634
+ gt.subscribe((e) => {
3635
+ en = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3632
3636
  });
3633
- const fo = (e) => {
3634
- if (e && Yi(e) && Jt(e)) {
3635
- const { loadingDelay: t } = Ge();
3637
+ const po = (e) => {
3638
+ if (e && Ki(e) && Kt(e)) {
3639
+ const { loadingDelay: t } = je();
3636
3640
  let n;
3637
- return typeof window != "undefined" && He() != null && t ? n = window.setTimeout(
3638
- () => Gt.set(!0),
3641
+ return typeof window != "undefined" && Oe() != null && t ? n = window.setTimeout(
3642
+ () => jt.set(!0),
3639
3643
  t
3640
- ) : Gt.set(!0), rr(e).then(() => {
3641
- mt.set(e);
3644
+ ) : jt.set(!0), rr(e).then(() => {
3645
+ gt.set(e);
3642
3646
  }).finally(() => {
3643
- clearTimeout(n), Gt.set(!1);
3647
+ clearTimeout(n), jt.set(!1);
3644
3648
  });
3645
3649
  }
3646
- return mt.set(e);
3647
- }, ke = co(ho({}, mt), {
3648
- set: fo
3649
- }), xt = (e) => {
3650
+ return gt.set(e);
3651
+ }, Xe = fo(co({}, gt), {
3652
+ set: po
3653
+ }), _t = (e) => {
3650
3654
  const t = /* @__PURE__ */ Object.create(null);
3651
3655
  return (r) => {
3652
3656
  const i = JSON.stringify(r);
3653
3657
  return i in t ? t[i] : t[i] = e(r);
3654
3658
  };
3655
3659
  };
3656
- var po = Object.defineProperty, gt = Object.getOwnPropertySymbols, ir = Object.prototype.hasOwnProperty, or = Object.prototype.propertyIsEnumerable, _n = (e, t, n) => t in e ? po(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, on = (e, t) => {
3660
+ var mo = Object.defineProperty, bt = Object.getOwnPropertySymbols, ir = Object.prototype.hasOwnProperty, or = Object.prototype.propertyIsEnumerable, _n = (e, t, n) => t in e ? mo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, on = (e, t) => {
3657
3661
  for (var n in t || (t = {}))
3658
3662
  ir.call(t, n) && _n(e, n, t[n]);
3659
- if (gt)
3660
- for (var n of gt(t))
3663
+ if (bt)
3664
+ for (var n of bt(t))
3661
3665
  or.call(t, n) && _n(e, n, t[n]);
3662
3666
  return e;
3663
- }, Ve = (e, t) => {
3667
+ }, ze = (e, t) => {
3664
3668
  var n = {};
3665
3669
  for (var r in e)
3666
3670
  ir.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3667
- if (e != null && gt)
3668
- for (var r of gt(e))
3671
+ if (e != null && bt)
3672
+ for (var r of bt(e))
3669
3673
  t.indexOf(r) < 0 && or.call(e, r) && (n[r] = e[r]);
3670
3674
  return n;
3671
3675
  };
3672
- const tt = (e, t) => {
3673
- const { formats: n } = Ge();
3676
+ const rt = (e, t) => {
3677
+ const { formats: n } = je();
3674
3678
  if (e in n && t in n[e])
3675
3679
  return n[e][t];
3676
3680
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3677
- }, mo = xt(
3681
+ }, go = _t(
3678
3682
  (e) => {
3679
- var t = e, { locale: n, format: r } = t, i = Ve(t, ["locale", "format"]);
3683
+ var t = e, { locale: n, format: r } = t, i = ze(t, ["locale", "format"]);
3680
3684
  if (n == null)
3681
3685
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3682
- return r && (i = tt("number", r)), new Intl.NumberFormat(n, i);
3686
+ return r && (i = rt("number", r)), new Intl.NumberFormat(n, i);
3683
3687
  }
3684
- ), go = xt(
3688
+ ), bo = _t(
3685
3689
  (e) => {
3686
- var t = e, { locale: n, format: r } = t, i = Ve(t, ["locale", "format"]);
3690
+ var t = e, { locale: n, format: r } = t, i = ze(t, ["locale", "format"]);
3687
3691
  if (n == null)
3688
3692
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3689
- return r ? i = tt("date", r) : Object.keys(i).length === 0 && (i = tt("date", "short")), new Intl.DateTimeFormat(n, i);
3693
+ return r ? i = rt("date", r) : Object.keys(i).length === 0 && (i = rt("date", "short")), new Intl.DateTimeFormat(n, i);
3690
3694
  }
3691
- ), bo = xt(
3695
+ ), yo = _t(
3692
3696
  (e) => {
3693
- var t = e, { locale: n, format: r } = t, i = Ve(t, ["locale", "format"]);
3697
+ var t = e, { locale: n, format: r } = t, i = ze(t, ["locale", "format"]);
3694
3698
  if (n == null)
3695
3699
  throw new Error(
3696
3700
  '[svelte-i18n] A "locale" must be set to format time values'
3697
3701
  );
3698
- return r ? i = tt("time", r) : Object.keys(i).length === 0 && (i = tt("time", "short")), new Intl.DateTimeFormat(n, i);
3702
+ return r ? i = rt("time", r) : Object.keys(i).length === 0 && (i = rt("time", "short")), new Intl.DateTimeFormat(n, i);
3699
3703
  }
3700
- ), yo = (e = {}) => {
3701
- var t = e, {
3702
- locale: n = He()
3703
- } = t, r = Ve(t, [
3704
- "locale"
3705
- ]);
3706
- return mo(on({ locale: n }, r));
3707
- }, vo = (e = {}) => {
3704
+ ), vo = (e = {}) => {
3708
3705
  var t = e, {
3709
- locale: n = He()
3710
- } = t, r = Ve(t, [
3706
+ locale: n = Oe()
3707
+ } = t, r = ze(t, [
3711
3708
  "locale"
3712
3709
  ]);
3713
3710
  return go(on({ locale: n }, r));
3714
3711
  }, Eo = (e = {}) => {
3715
3712
  var t = e, {
3716
- locale: n = He()
3717
- } = t, r = Ve(t, [
3713
+ locale: n = Oe()
3714
+ } = t, r = ze(t, [
3718
3715
  "locale"
3719
3716
  ]);
3720
3717
  return bo(on({ locale: n }, r));
3721
- }, xo = xt(
3718
+ }, xo = (e = {}) => {
3719
+ var t = e, {
3720
+ locale: n = Oe()
3721
+ } = t, r = ze(t, [
3722
+ "locale"
3723
+ ]);
3724
+ return yo(on({ locale: n }, r));
3725
+ }, _o = _t(
3722
3726
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3723
- (e, t = He()) => new Wi(e, t, Ge().formats, {
3724
- ignoreTag: Ge().ignoreTag
3727
+ (e, t = Oe()) => new Zi(e, t, je().formats, {
3728
+ ignoreTag: je().ignoreTag
3725
3729
  })
3726
- ), _o = (e, t = {}) => {
3730
+ ), To = (e, t = {}) => {
3727
3731
  var n, r, i, o;
3728
3732
  let u = t;
3729
3733
  typeof e == "object" && (u = e, e = u.id);
3730
3734
  const {
3731
3735
  values: s,
3732
- locale: f = He(),
3736
+ locale: c = Oe(),
3733
3737
  default: l
3734
3738
  } = u;
3735
- if (f == null)
3739
+ if (c == null)
3736
3740
  throw new Error(
3737
3741
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3738
3742
  );
3739
- let d = Kn(e, f);
3740
- if (!d)
3741
- d = (o = (i = (r = (n = Ge()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: f, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
3742
- else if (typeof d != "string")
3743
+ let f = Kn(e, c);
3744
+ if (!f)
3745
+ f = (o = (i = (r = (n = je()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
3746
+ else if (typeof f != "string")
3743
3747
  return console.warn(
3744
- `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof d}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3745
- ), d;
3748
+ `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3749
+ ), f;
3746
3750
  if (!s)
3747
- return d;
3748
- let g = d;
3751
+ return f;
3752
+ let g = f;
3749
3753
  try {
3750
- g = xo(d, f).format(s);
3751
- } catch (b) {
3752
- b instanceof Error && console.warn(
3754
+ g = _o(f, c).format(s);
3755
+ } catch (y) {
3756
+ y instanceof Error && console.warn(
3753
3757
  `[svelte-i18n] Message "${e}" has syntax error:`,
3754
- b.message
3758
+ y.message
3755
3759
  );
3756
3760
  }
3757
3761
  return g;
3758
- }, To = (e, t) => Eo(t).format(e), Bo = (e, t) => vo(t).format(e), So = (e, t) => yo(t).format(e), wo = (e, t = He()) => Kn(e, t), Ao = je([ke, nt], () => _o);
3759
- je([ke], () => To);
3760
- je([ke], () => Bo);
3761
- je([ke], () => So);
3762
- je([ke, nt], () => wo);
3762
+ }, Bo = (e, t) => xo(t).format(e), So = (e, t) => Eo(t).format(e), wo = (e, t) => vo(t).format(e), Ao = (e, t = Oe()) => Kn(e, t), Co = Ve([Xe, it], () => To);
3763
+ Ve([Xe], () => Bo);
3764
+ Ve([Xe], () => So);
3765
+ Ve([Xe], () => wo);
3766
+ Ve([Xe, it], () => Ao);
3763
3767
  function Tn(e, t) {
3764
3768
  tr(e, t);
3765
3769
  }
3766
- function Co(e) {
3767
- ke.set(e);
3770
+ function Ho(e) {
3771
+ Xe.set(e);
3768
3772
  }
3769
3773
  const Bn = {
3770
3774
  en: {
@@ -3966,7 +3970,7 @@ const Bn = {
3966
3970
  Loading: "Loading ..."
3967
3971
  }
3968
3972
  };
3969
- var Kt = { exports: {} };
3973
+ var tn = { exports: {} };
3970
3974
  /** @license
3971
3975
  * eventsource.js
3972
3976
  * Available under MIT License (MIT)
@@ -3974,7 +3978,7 @@ var Kt = { exports: {} };
3974
3978
  */
3975
3979
  (function(e, t) {
3976
3980
  (function(n) {
3977
- var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, u = n.XDomainRequest, s = n.ActiveXObject, f = n.EventSource, l = n.document, d = n.Promise, g = n.fetch, b = n.Response, x = n.TextDecoder, T = n.TextEncoder, P = n.AbortController;
3981
+ var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, u = n.XDomainRequest, s = n.ActiveXObject, c = n.EventSource, l = n.document, f = n.Promise, g = n.fetch, y = n.Response, x = n.TextDecoder, T = n.TextEncoder, P = n.AbortController;
3978
3982
  if (typeof window != "undefined" && typeof l != "undefined" && !("readyState" in l) && l.body == null && (l.readyState = "loading", window.addEventListener("load", function(a) {
3979
3983
  l.readyState = "complete";
3980
3984
  }, !1)), o == null && s != null && (o = function() {
@@ -3986,15 +3990,15 @@ var Kt = { exports: {} };
3986
3990
  }), Date.now || (Date.now = function() {
3987
3991
  return (/* @__PURE__ */ new Date()).getTime();
3988
3992
  }), P == null) {
3989
- var $ = g;
3993
+ var j = g;
3990
3994
  g = function(a, h) {
3991
- var p = h.signal;
3992
- return $(a, { headers: h.headers, credentials: h.credentials, cache: h.cache }).then(function(c) {
3993
- var v = c.body.getReader();
3994
- return p._reader = v, p._aborted && p._reader.cancel(), {
3995
- status: c.status,
3996
- statusText: c.statusText,
3997
- headers: c.headers,
3995
+ var m = h.signal;
3996
+ return j(a, { headers: h.headers, credentials: h.credentials, cache: h.cache }).then(function(d) {
3997
+ var v = d.body.getReader();
3998
+ return m._reader = v, m._aborted && m._reader.cancel(), {
3999
+ status: d.status,
4000
+ statusText: d.statusText,
4001
+ headers: d.headers,
3998
4002
  body: {
3999
4003
  getReader: function() {
4000
4004
  return v;
@@ -4011,35 +4015,35 @@ var Kt = { exports: {} };
4011
4015
  };
4012
4016
  };
4013
4017
  }
4014
- function X() {
4018
+ function z() {
4015
4019
  this.bitsNeeded = 0, this.codePoint = 0;
4016
4020
  }
4017
- X.prototype.decode = function(a) {
4018
- function h(C, N, _) {
4019
- if (_ === 1)
4020
- return C >= 128 >> N && C << N <= 2047;
4021
- if (_ === 2)
4022
- return C >= 2048 >> N && C << N <= 55295 || C >= 57344 >> N && C << N <= 65535;
4023
- if (_ === 3)
4024
- return C >= 65536 >> N && C << N <= 1114111;
4021
+ z.prototype.decode = function(a) {
4022
+ function h(O, L, S) {
4023
+ if (S === 1)
4024
+ return O >= 128 >> L && O << L <= 2047;
4025
+ if (S === 2)
4026
+ return O >= 2048 >> L && O << L <= 55295 || O >= 57344 >> L && O << L <= 65535;
4027
+ if (S === 3)
4028
+ return O >= 65536 >> L && O << L <= 1114111;
4025
4029
  throw new Error();
4026
4030
  }
4027
- function p(C, N) {
4028
- if (C === 6 * 1)
4029
- return N >> 6 > 15 ? 3 : N > 31 ? 2 : 1;
4030
- if (C === 6 * 2)
4031
- return N > 15 ? 3 : 2;
4032
- if (C === 6 * 3)
4031
+ function m(O, L) {
4032
+ if (O === 6 * 1)
4033
+ return L >> 6 > 15 ? 3 : L > 31 ? 2 : 1;
4034
+ if (O === 6 * 2)
4035
+ return L > 15 ? 3 : 2;
4036
+ if (O === 6 * 3)
4033
4037
  return 3;
4034
4038
  throw new Error();
4035
4039
  }
4036
- for (var c = 65533, v = "", y = this.bitsNeeded, m = this.codePoint, A = 0; A < a.length; A += 1) {
4037
- var w = a[A];
4038
- y !== 0 && (w < 128 || w > 191 || !h(m << 6 | w & 63, y - 6, p(y, m))) && (y = 0, m = c, v += String.fromCharCode(m)), y === 0 ? (w >= 0 && w <= 127 ? (y = 0, m = w) : w >= 192 && w <= 223 ? (y = 6 * 1, m = w & 31) : w >= 224 && w <= 239 ? (y = 6 * 2, m = w & 15) : w >= 240 && w <= 247 ? (y = 6 * 3, m = w & 7) : (y = 0, m = c), y !== 0 && !h(m, y, p(y, m)) && (y = 0, m = c)) : (y -= 6, m = m << 6 | w & 63), y === 0 && (m <= 65535 ? v += String.fromCharCode(m) : (v += String.fromCharCode(55296 + (m - 65535 - 1 >> 10)), v += String.fromCharCode(56320 + (m - 65535 - 1 & 1023))));
4040
+ for (var d = 65533, v = "", p = this.bitsNeeded, _ = this.codePoint, N = 0; N < a.length; N += 1) {
4041
+ var A = a[N];
4042
+ p !== 0 && (A < 128 || A > 191 || !h(_ << 6 | A & 63, p - 6, m(p, _))) && (p = 0, _ = d, v += String.fromCharCode(_)), p === 0 ? (A >= 0 && A <= 127 ? (p = 0, _ = A) : A >= 192 && A <= 223 ? (p = 6 * 1, _ = A & 31) : A >= 224 && A <= 239 ? (p = 6 * 2, _ = A & 15) : A >= 240 && A <= 247 ? (p = 6 * 3, _ = A & 7) : (p = 0, _ = d), p !== 0 && !h(_, p, m(p, _)) && (p = 0, _ = d)) : (p -= 6, _ = _ << 6 | A & 63), p === 0 && (_ <= 65535 ? v += String.fromCharCode(_) : (v += String.fromCharCode(55296 + (_ - 65535 - 1 >> 10)), v += String.fromCharCode(56320 + (_ - 65535 - 1 & 1023))));
4039
4043
  }
4040
- return this.bitsNeeded = y, this.codePoint = m, v;
4044
+ return this.bitsNeeded = p, this.codePoint = _, v;
4041
4045
  };
4042
- var F = function() {
4046
+ var G = function() {
4043
4047
  try {
4044
4048
  return new x().decode(new T().encode("test"), { stream: !0 }) === "test";
4045
4049
  } catch (a) {
@@ -4047,83 +4051,83 @@ var Kt = { exports: {} };
4047
4051
  }
4048
4052
  return !1;
4049
4053
  };
4050
- (x == null || T == null || !F()) && (x = X);
4054
+ (x == null || T == null || !G()) && (x = z);
4051
4055
  var B = function() {
4052
4056
  };
4053
- function S(a) {
4057
+ function w(a) {
4054
4058
  this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = B, this.onload = B, this.onerror = B, this.onreadystatechange = B, this._contentType = "", this._xhr = a, this._sendTimeout = 0, this._abort = B;
4055
4059
  }
4056
- S.prototype.open = function(a, h) {
4060
+ w.prototype.open = function(a, h) {
4057
4061
  this._abort(!0);
4058
- var p = this, c = this._xhr, v = 1, y = 0;
4059
- this._abort = function(_) {
4060
- p._sendTimeout !== 0 && (i(p._sendTimeout), p._sendTimeout = 0), (v === 1 || v === 2 || v === 3) && (v = 4, c.onload = B, c.onerror = B, c.onabort = B, c.onprogress = B, c.onreadystatechange = B, c.abort(), y !== 0 && (i(y), y = 0), _ || (p.readyState = 4, p.onabort(null), p.onreadystatechange())), v = 0;
4062
+ var m = this, d = this._xhr, v = 1, p = 0;
4063
+ this._abort = function(S) {
4064
+ m._sendTimeout !== 0 && (i(m._sendTimeout), m._sendTimeout = 0), (v === 1 || v === 2 || v === 3) && (v = 4, d.onload = B, d.onerror = B, d.onabort = B, d.onprogress = B, d.onreadystatechange = B, d.abort(), p !== 0 && (i(p), p = 0), S || (m.readyState = 4, m.onabort(null), m.onreadystatechange())), v = 0;
4061
4065
  };
4062
- var m = function() {
4066
+ var _ = function() {
4063
4067
  if (v === 1) {
4064
- var _ = 0, D = "", ge = void 0;
4065
- if ("contentType" in c)
4066
- _ = 200, D = "OK", ge = c.contentType;
4068
+ var S = 0, F = "", ge = void 0;
4069
+ if ("contentType" in d)
4070
+ S = 200, F = "OK", ge = d.contentType;
4067
4071
  else
4068
4072
  try {
4069
- _ = c.status, D = c.statusText, ge = c.getResponseHeader("Content-Type");
4070
- } catch (qe) {
4071
- _ = 0, D = "", ge = void 0;
4073
+ S = d.status, F = d.statusText, ge = d.getResponseHeader("Content-Type");
4074
+ } catch (Je) {
4075
+ S = 0, F = "", ge = void 0;
4072
4076
  }
4073
- _ !== 0 && (v = 2, p.readyState = 2, p.status = _, p.statusText = D, p._contentType = ge, p.onreadystatechange());
4077
+ S !== 0 && (v = 2, m.readyState = 2, m.status = S, m.statusText = F, m._contentType = ge, m.onreadystatechange());
4074
4078
  }
4075
- }, A = function() {
4076
- if (m(), v === 2 || v === 3) {
4079
+ }, N = function() {
4080
+ if (_(), v === 2 || v === 3) {
4077
4081
  v = 3;
4078
- var _ = "";
4082
+ var S = "";
4079
4083
  try {
4080
- _ = c.responseText;
4081
- } catch (D) {
4084
+ S = d.responseText;
4085
+ } catch (F) {
4082
4086
  }
4083
- p.readyState = 3, p.responseText = _, p.onprogress();
4087
+ m.readyState = 3, m.responseText = S, m.onprogress();
4084
4088
  }
4085
- }, w = function(_, D) {
4086
- if ((D == null || D.preventDefault == null) && (D = {
4089
+ }, A = function(S, F) {
4090
+ if ((F == null || F.preventDefault == null) && (F = {
4087
4091
  preventDefault: B
4088
- }), A(), v === 1 || v === 2 || v === 3) {
4089
- if (v = 4, y !== 0 && (i(y), y = 0), p.readyState = 4, _ === "load")
4090
- p.onload(D);
4091
- else if (_ === "error")
4092
- p.onerror(D);
4093
- else if (_ === "abort")
4094
- p.onabort(D);
4092
+ }), N(), v === 1 || v === 2 || v === 3) {
4093
+ if (v = 4, p !== 0 && (i(p), p = 0), m.readyState = 4, S === "load")
4094
+ m.onload(F);
4095
+ else if (S === "error")
4096
+ m.onerror(F);
4097
+ else if (S === "abort")
4098
+ m.onabort(F);
4095
4099
  else
4096
4100
  throw new TypeError();
4097
- p.onreadystatechange();
4101
+ m.onreadystatechange();
4098
4102
  }
4099
- }, C = function(_) {
4100
- c != null && (c.readyState === 4 ? (!("onload" in c) || !("onerror" in c) || !("onabort" in c)) && w(c.responseText === "" ? "error" : "load", _) : c.readyState === 3 ? "onprogress" in c || A() : c.readyState === 2 && m());
4101
- }, N = function() {
4102
- y = r(function() {
4103
- N();
4104
- }, 500), c.readyState === 3 && A();
4103
+ }, O = function(S) {
4104
+ d != null && (d.readyState === 4 ? (!("onload" in d) || !("onerror" in d) || !("onabort" in d)) && A(d.responseText === "" ? "error" : "load", S) : d.readyState === 3 ? "onprogress" in d || N() : d.readyState === 2 && _());
4105
+ }, L = function() {
4106
+ p = r(function() {
4107
+ L();
4108
+ }, 500), d.readyState === 3 && N();
4105
4109
  };
4106
- "onload" in c && (c.onload = function(_) {
4107
- w("load", _);
4108
- }), "onerror" in c && (c.onerror = function(_) {
4109
- w("error", _);
4110
- }), "onabort" in c && (c.onabort = function(_) {
4111
- w("abort", _);
4112
- }), "onprogress" in c && (c.onprogress = A), "onreadystatechange" in c && (c.onreadystatechange = function(_) {
4113
- C(_);
4114
- }), ("contentType" in c || !("ontimeout" in o.prototype)) && (h += (h.indexOf("?") === -1 ? "?" : "&") + "padding=true"), c.open(a, h, !0), "readyState" in c && (y = r(function() {
4115
- N();
4110
+ "onload" in d && (d.onload = function(S) {
4111
+ A("load", S);
4112
+ }), "onerror" in d && (d.onerror = function(S) {
4113
+ A("error", S);
4114
+ }), "onabort" in d && (d.onabort = function(S) {
4115
+ A("abort", S);
4116
+ }), "onprogress" in d && (d.onprogress = N), "onreadystatechange" in d && (d.onreadystatechange = function(S) {
4117
+ O(S);
4118
+ }), ("contentType" in d || !("ontimeout" in o.prototype)) && (h += (h.indexOf("?") === -1 ? "?" : "&") + "padding=true"), d.open(a, h, !0), "readyState" in d && (p = r(function() {
4119
+ L();
4116
4120
  }, 0));
4117
- }, S.prototype.abort = function() {
4121
+ }, w.prototype.abort = function() {
4118
4122
  this._abort(!1);
4119
- }, S.prototype.getResponseHeader = function(a) {
4123
+ }, w.prototype.getResponseHeader = function(a) {
4120
4124
  return this._contentType;
4121
- }, S.prototype.setRequestHeader = function(a, h) {
4122
- var p = this._xhr;
4123
- "setRequestHeader" in p && p.setRequestHeader(a, h);
4124
- }, S.prototype.getAllResponseHeaders = function() {
4125
+ }, w.prototype.setRequestHeader = function(a, h) {
4126
+ var m = this._xhr;
4127
+ "setRequestHeader" in m && m.setRequestHeader(a, h);
4128
+ }, w.prototype.getAllResponseHeaders = function() {
4125
4129
  return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
4126
- }, S.prototype.send = function() {
4130
+ }, w.prototype.send = function() {
4127
4131
  if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && l != null && l.readyState != null && l.readyState !== "complete") {
4128
4132
  var a = this;
4129
4133
  a._sendTimeout = r(function() {
@@ -4135,283 +4139,283 @@ var Kt = { exports: {} };
4135
4139
  "withCredentials" in h && (h.withCredentials = this.withCredentials);
4136
4140
  try {
4137
4141
  h.send(void 0);
4138
- } catch (p) {
4139
- throw p;
4142
+ } catch (m) {
4143
+ throw m;
4140
4144
  }
4141
4145
  };
4142
- function G(a) {
4146
+ function I(a) {
4143
4147
  return a.replace(/[A-Z]/g, function(h) {
4144
4148
  return String.fromCharCode(h.charCodeAt(0) + 32);
4145
4149
  });
4146
4150
  }
4147
- function O(a) {
4148
- for (var h = /* @__PURE__ */ Object.create(null), p = a.split(`\r
4149
- `), c = 0; c < p.length; c += 1) {
4150
- var v = p[c], y = v.split(": "), m = y.shift(), A = y.join(": ");
4151
- h[G(m)] = A;
4151
+ function R(a) {
4152
+ for (var h = /* @__PURE__ */ Object.create(null), m = a.split(`\r
4153
+ `), d = 0; d < m.length; d += 1) {
4154
+ var v = m[d], p = v.split(": "), _ = p.shift(), N = p.join(": ");
4155
+ h[I(_)] = N;
4152
4156
  }
4153
4157
  this._map = h;
4154
4158
  }
4155
- O.prototype.get = function(a) {
4156
- return this._map[G(a)];
4159
+ R.prototype.get = function(a) {
4160
+ return this._map[I(a)];
4157
4161
  }, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
4158
- function Y() {
4162
+ function K() {
4159
4163
  }
4160
- Y.prototype.open = function(a, h, p, c, v, y, m) {
4164
+ K.prototype.open = function(a, h, m, d, v, p, _) {
4161
4165
  a.open("GET", v);
4162
- var A = 0;
4166
+ var N = 0;
4163
4167
  a.onprogress = function() {
4164
- var C = a.responseText, N = C.slice(A);
4165
- A += N.length, p(N);
4166
- }, a.onerror = function(C) {
4167
- C.preventDefault(), c(new Error("NetworkError"));
4168
+ var O = a.responseText, L = O.slice(N);
4169
+ N += L.length, m(L);
4170
+ }, a.onerror = function(O) {
4171
+ O.preventDefault(), d(new Error("NetworkError"));
4168
4172
  }, a.onload = function() {
4169
- c(null);
4173
+ d(null);
4170
4174
  }, a.onabort = function() {
4171
- c(null);
4175
+ d(null);
4172
4176
  }, a.onreadystatechange = function() {
4173
4177
  if (a.readyState === o.HEADERS_RECEIVED) {
4174
- var C = a.status, N = a.statusText, _ = a.getResponseHeader("Content-Type"), D = a.getAllResponseHeaders();
4175
- h(C, N, _, new O(D));
4178
+ var O = a.status, L = a.statusText, S = a.getResponseHeader("Content-Type"), F = a.getAllResponseHeaders();
4179
+ h(O, L, S, new R(F));
4176
4180
  }
4177
- }, a.withCredentials = y;
4178
- for (var w in m)
4179
- Object.prototype.hasOwnProperty.call(m, w) && a.setRequestHeader(w, m[w]);
4181
+ }, a.withCredentials = p;
4182
+ for (var A in _)
4183
+ Object.prototype.hasOwnProperty.call(_, A) && a.setRequestHeader(A, _[A]);
4180
4184
  return a.send(), a;
4181
4185
  };
4182
- function _e(a) {
4186
+ function de(a) {
4183
4187
  this._headers = a;
4184
4188
  }
4185
- _e.prototype.get = function(a) {
4189
+ de.prototype.get = function(a) {
4186
4190
  return this._headers.get(a);
4187
4191
  };
4188
- function de() {
4192
+ function pe() {
4189
4193
  }
4190
- de.prototype.open = function(a, h, p, c, v, y, m) {
4191
- var A = null, w = new P(), C = w.signal, N = new x();
4194
+ pe.prototype.open = function(a, h, m, d, v, p, _) {
4195
+ var N = null, A = new P(), O = A.signal, L = new x();
4192
4196
  return g(v, {
4193
- headers: m,
4194
- credentials: y ? "include" : "same-origin",
4195
- signal: C,
4197
+ headers: _,
4198
+ credentials: p ? "include" : "same-origin",
4199
+ signal: O,
4196
4200
  cache: "no-store"
4197
- }).then(function(_) {
4198
- return A = _.body.getReader(), h(_.status, _.statusText, _.headers.get("Content-Type"), new _e(_.headers)), new d(function(D, ge) {
4199
- var qe = function() {
4200
- A.read().then(function(ee) {
4201
- if (ee.done)
4202
- D(void 0);
4201
+ }).then(function(S) {
4202
+ return N = S.body.getReader(), h(S.status, S.statusText, S.headers.get("Content-Type"), new de(S.headers)), new f(function(F, ge) {
4203
+ var Je = function() {
4204
+ N.read().then(function(ne) {
4205
+ if (ne.done)
4206
+ F(void 0);
4203
4207
  else {
4204
- var Z = N.decode(ee.value, { stream: !0 });
4205
- p(Z), qe();
4208
+ var q = L.decode(ne.value, { stream: !0 });
4209
+ m(q), Je();
4206
4210
  }
4207
- }).catch(function(ee) {
4208
- ge(ee);
4211
+ }).catch(function(ne) {
4212
+ ge(ne);
4209
4213
  });
4210
4214
  };
4211
- qe();
4215
+ Je();
4212
4216
  });
4213
- }).catch(function(_) {
4214
- if (_.name !== "AbortError")
4215
- return _;
4216
- }).then(function(_) {
4217
- c(_);
4217
+ }).catch(function(S) {
4218
+ if (S.name !== "AbortError")
4219
+ return S;
4220
+ }).then(function(S) {
4221
+ d(S);
4218
4222
  }), {
4219
4223
  abort: function() {
4220
- A != null && A.cancel(), w.abort();
4224
+ N != null && N.cancel(), A.abort();
4221
4225
  }
4222
4226
  };
4223
4227
  };
4224
- function re() {
4228
+ function ee() {
4225
4229
  this._listeners = /* @__PURE__ */ Object.create(null);
4226
4230
  }
4227
- function se(a) {
4231
+ function _e(a) {
4228
4232
  r(function() {
4229
4233
  throw a;
4230
4234
  }, 0);
4231
4235
  }
4232
- re.prototype.dispatchEvent = function(a) {
4236
+ ee.prototype.dispatchEvent = function(a) {
4233
4237
  a.target = this;
4234
4238
  var h = this._listeners[a.type];
4235
4239
  if (h != null)
4236
- for (var p = h.length, c = 0; c < p; c += 1) {
4237
- var v = h[c];
4240
+ for (var m = h.length, d = 0; d < m; d += 1) {
4241
+ var v = h[d];
4238
4242
  try {
4239
4243
  typeof v.handleEvent == "function" ? v.handleEvent(a) : v.call(this, a);
4240
- } catch (y) {
4241
- se(y);
4244
+ } catch (p) {
4245
+ _e(p);
4242
4246
  }
4243
4247
  }
4244
- }, re.prototype.addEventListener = function(a, h) {
4248
+ }, ee.prototype.addEventListener = function(a, h) {
4245
4249
  a = String(a);
4246
- var p = this._listeners, c = p[a];
4247
- c == null && (c = [], p[a] = c);
4248
- for (var v = !1, y = 0; y < c.length; y += 1)
4249
- c[y] === h && (v = !0);
4250
- v || c.push(h);
4251
- }, re.prototype.removeEventListener = function(a, h) {
4250
+ var m = this._listeners, d = m[a];
4251
+ d == null && (d = [], m[a] = d);
4252
+ for (var v = !1, p = 0; p < d.length; p += 1)
4253
+ d[p] === h && (v = !0);
4254
+ v || d.push(h);
4255
+ }, ee.prototype.removeEventListener = function(a, h) {
4252
4256
  a = String(a);
4253
- var p = this._listeners, c = p[a];
4254
- if (c != null) {
4255
- for (var v = [], y = 0; y < c.length; y += 1)
4256
- c[y] !== h && v.push(c[y]);
4257
- v.length === 0 ? delete p[a] : p[a] = v;
4257
+ var m = this._listeners, d = m[a];
4258
+ if (d != null) {
4259
+ for (var v = [], p = 0; p < d.length; p += 1)
4260
+ d[p] !== h && v.push(d[p]);
4261
+ v.length === 0 ? delete m[a] : m[a] = v;
4258
4262
  }
4259
4263
  };
4260
- function ie(a) {
4264
+ function E(a) {
4261
4265
  this.type = a, this.target = void 0;
4262
4266
  }
4263
- function E(a, h) {
4264
- ie.call(this, a), this.data = h.data, this.lastEventId = h.lastEventId;
4267
+ function Te(a, h) {
4268
+ E.call(this, a), this.data = h.data, this.lastEventId = h.lastEventId;
4265
4269
  }
4266
- E.prototype = Object.create(ie.prototype);
4267
- function pe(a, h) {
4268
- ie.call(this, a), this.status = h.status, this.statusText = h.statusText, this.headers = h.headers;
4270
+ Te.prototype = Object.create(E.prototype);
4271
+ function We(a, h) {
4272
+ E.call(this, a), this.status = h.status, this.statusText = h.statusText, this.headers = h.headers;
4269
4273
  }
4270
- pe.prototype = Object.create(ie.prototype);
4271
- function rt(a, h) {
4272
- ie.call(this, a), this.error = h.error;
4274
+ We.prototype = Object.create(E.prototype);
4275
+ function ot(a, h) {
4276
+ E.call(this, a), this.error = h.error;
4273
4277
  }
4274
- rt.prototype = Object.create(ie.prototype);
4275
- var Xe = -1, ce = 0, Te = 1, Se = 2, we = -1, ue = 0, ze = 1, Le = 2, it = 3, _t = /^text\/event\-stream(;.*)?$/i, ot = 1e3, Tt = 18e6, We = function(a, h) {
4276
- var p = a == null ? h : parseInt(a, 10);
4277
- return p !== p && (p = h), Ze(p);
4278
- }, Ze = function(a) {
4279
- return Math.min(Math.max(a, ot), Tt);
4280
- }, me = function(a, h, p) {
4278
+ ot.prototype = Object.create(E.prototype);
4279
+ var Ze = -1, le = 0, Be = 1, me = 2, Le = -1, he = 0, Ae = 1, qe = 2, Tt = 3, at = /^text\/event\-stream(;.*)?$/i, Bt = 1e3, St = 18e6, Qe = function(a, h) {
4280
+ var m = a == null ? h : parseInt(a, 10);
4281
+ return m !== m && (m = h), Re(m);
4282
+ }, Re = function(a) {
4283
+ return Math.min(Math.max(a, Bt), St);
4284
+ }, Se = function(a, h, m) {
4281
4285
  try {
4282
- typeof h == "function" && h.call(a, p);
4283
- } catch (c) {
4284
- se(c);
4286
+ typeof h == "function" && h.call(a, m);
4287
+ } catch (d) {
4288
+ _e(d);
4285
4289
  }
4286
4290
  };
4287
- function K(a, h) {
4288
- re.call(this), h = h || {}, 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, wt(this, a, h);
4291
+ function te(a, h) {
4292
+ ee.call(this), h = h || {}, 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, Ct(this, a, h);
4289
4293
  }
4290
- function Bt() {
4294
+ function wt() {
4291
4295
  return o != null && "withCredentials" in o.prototype || u == null ? new o() : new u();
4292
4296
  }
4293
- var St = g != null && b != null && "body" in b.prototype;
4294
- function wt(a, h, p) {
4297
+ var At = g != null && y != null && "body" in y.prototype;
4298
+ function Ct(a, h, m) {
4295
4299
  h = String(h);
4296
- var c = !!p.withCredentials, v = p.lastEventIdQueryParameterName || "lastEventId", y = Ze(1e3), m = We(p.heartbeatTimeout, 45e3), A = "", w = y, C = !1, N = 0, _ = p.headers || {}, D = p.Transport, ge = St && D == null ? void 0 : new S(D != null ? new D() : Bt()), qe = D != null && typeof D != "string" ? new D() : ge == null ? new de() : new Y(), ee = void 0, Z = 0, le = Xe, Oe = "", st = "", be = "", ut = "", q = ue, At = 0, Ae = 0, ar = function(k, j, te, ne) {
4297
- if (le === ce)
4298
- if (k === 200 && te != null && _t.test(te)) {
4299
- le = Te, C = Date.now(), w = y, a.readyState = Te;
4300
- var Q = new pe("open", {
4301
- status: k,
4302
- statusText: j,
4303
- headers: ne
4300
+ var d = !!m.withCredentials, v = m.lastEventIdQueryParameterName || "lastEventId", p = Re(1e3), _ = Qe(m.heartbeatTimeout, 45e3), N = "", A = p, O = !1, L = 0, S = m.headers || {}, F = m.Transport, ge = At && F == null ? void 0 : new w(F != null ? new F() : wt()), Je = F != null && typeof F != "string" ? new F() : ge == null ? new pe() : new K(), ne = void 0, q = 0, se = Ze, Ne = "", st = "", be = "", ut = "", Q = he, Ht = 0, Ce = 0, ar = function(V, k, re, ie) {
4301
+ if (se === le)
4302
+ if (V === 200 && re != null && at.test(re)) {
4303
+ se = Be, O = Date.now(), A = p, a.readyState = Be;
4304
+ var J = new We("open", {
4305
+ status: V,
4306
+ statusText: k,
4307
+ headers: ie
4304
4308
  });
4305
- a.dispatchEvent(Q), me(a, a.onopen, Q);
4309
+ a.dispatchEvent(J), Se(a, a.onopen, J);
4306
4310
  } else {
4307
- var z = "";
4308
- k !== 200 ? (j && (j = j.replace(/\s+/g, " ")), z = "EventSource's response has a status " + k + " " + j + " that is not 200. Aborting the connection.") : z = "EventSource's response has a Content-Type specifying an unsupported type: " + (te == null ? "-" : te.replace(/\s+/g, " ")) + ". Aborting the connection.", Ct();
4309
- var Q = new pe("error", {
4310
- status: k,
4311
- statusText: j,
4312
- headers: ne
4311
+ var W = "";
4312
+ V !== 200 ? (k && (k = k.replace(/\s+/g, " ")), W = "EventSource's response has a status " + V + " " + k + " that is not 200. Aborting the connection.") : W = "EventSource's response has a Content-Type specifying an unsupported type: " + (re == null ? "-" : re.replace(/\s+/g, " ")) + ". Aborting the connection.", Ot();
4313
+ var J = new We("error", {
4314
+ status: V,
4315
+ statusText: k,
4316
+ headers: ie
4313
4317
  });
4314
- a.dispatchEvent(Q), me(a, a.onerror, Q), console.error(z);
4318
+ a.dispatchEvent(J), Se(a, a.onerror, J), console.error(W);
4315
4319
  }
4316
- }, sr = function(k) {
4317
- if (le === Te) {
4318
- for (var j = -1, te = 0; te < k.length; te += 1) {
4319
- var ne = k.charCodeAt(te);
4320
- (ne === 10 || ne === 13) && (j = te);
4320
+ }, sr = function(V) {
4321
+ if (se === Be) {
4322
+ for (var k = -1, re = 0; re < V.length; re += 1) {
4323
+ var ie = V.charCodeAt(re);
4324
+ (ie === 10 || ie === 13) && (k = re);
4321
4325
  }
4322
- var Q = (j !== -1 ? ut : "") + k.slice(0, j + 1);
4323
- ut = (j === -1 ? ut : "") + k.slice(j + 1), k !== "" && (C = Date.now(), N += k.length);
4324
- for (var z = 0; z < Q.length; z += 1) {
4325
- var ne = Q.charCodeAt(z);
4326
- if (q === we && ne === 10)
4327
- q = ue;
4328
- else if (q === we && (q = ue), ne === 13 || ne === 10) {
4329
- if (q !== ue) {
4330
- q === ze && (Ae = z + 1);
4331
- var ye = Q.slice(At, Ae - 1), ve = Q.slice(Ae + (Ae < z && Q.charCodeAt(Ae) === 32 ? 1 : 0), z);
4332
- ye === "data" ? (Oe += `
4333
- `, Oe += ve) : ye === "id" ? st = ve : ye === "event" ? be = ve : ye === "retry" ? (y = We(ve, y), w = y) : ye === "heartbeatTimeout" && (m = We(ve, m), Z !== 0 && (i(Z), Z = r(function() {
4334
- Qe();
4335
- }, m)));
4326
+ var J = (k !== -1 ? ut : "") + V.slice(0, k + 1);
4327
+ ut = (k === -1 ? ut : "") + V.slice(k + 1), V !== "" && (O = Date.now(), L += V.length);
4328
+ for (var W = 0; W < J.length; W += 1) {
4329
+ var ie = J.charCodeAt(W);
4330
+ if (Q === Le && ie === 10)
4331
+ Q = he;
4332
+ else if (Q === Le && (Q = he), ie === 13 || ie === 10) {
4333
+ if (Q !== he) {
4334
+ Q === Ae && (Ce = W + 1);
4335
+ var ye = J.slice(Ht, Ce - 1), ve = J.slice(Ce + (Ce < W && J.charCodeAt(Ce) === 32 ? 1 : 0), W);
4336
+ ye === "data" ? (Ne += `
4337
+ `, Ne += ve) : ye === "id" ? st = ve : ye === "event" ? be = ve : ye === "retry" ? (p = Qe(ve, p), A = p) : ye === "heartbeatTimeout" && (_ = Qe(ve, _), q !== 0 && (i(q), q = r(function() {
4338
+ Ye();
4339
+ }, _)));
4336
4340
  }
4337
- if (q === ue) {
4338
- if (Oe !== "") {
4339
- A = st, be === "" && (be = "message");
4340
- var Re = new E(be, {
4341
- data: Oe.slice(1),
4341
+ if (Q === he) {
4342
+ if (Ne !== "") {
4343
+ N = st, be === "" && (be = "message");
4344
+ var Me = new Te(be, {
4345
+ data: Ne.slice(1),
4342
4346
  lastEventId: st
4343
4347
  });
4344
- if (a.dispatchEvent(Re), be === "open" ? me(a, a.onopen, Re) : be === "message" ? me(a, a.onmessage, Re) : be === "error" && me(a, a.onerror, Re), le === Se)
4348
+ if (a.dispatchEvent(Me), be === "open" ? Se(a, a.onopen, Me) : be === "message" ? Se(a, a.onmessage, Me) : be === "error" && Se(a, a.onerror, Me), se === me)
4345
4349
  return;
4346
4350
  }
4347
- Oe = "", be = "";
4351
+ Ne = "", be = "";
4348
4352
  }
4349
- q = ne === 13 ? we : ue;
4353
+ Q = ie === 13 ? Le : he;
4350
4354
  } else
4351
- q === ue && (At = z, q = ze), q === ze ? ne === 58 && (Ae = z + 1, q = Le) : q === Le && (q = it);
4355
+ Q === he && (Ht = W, Q = Ae), Q === Ae ? ie === 58 && (Ce = W + 1, Q = qe) : Q === qe && (Q = Tt);
4352
4356
  }
4353
4357
  }
4354
- }, an = function(k) {
4355
- if (le === Te || le === ce) {
4356
- le = Xe, Z !== 0 && (i(Z), Z = 0), Z = r(function() {
4357
- Qe();
4358
- }, w), w = Ze(Math.min(y * 16, w * 2)), a.readyState = ce;
4359
- var j = new rt("error", { error: k });
4360
- a.dispatchEvent(j), me(a, a.onerror, j), k != null && console.error(k);
4358
+ }, an = function(V) {
4359
+ if (se === Be || se === le) {
4360
+ se = Ze, q !== 0 && (i(q), q = 0), q = r(function() {
4361
+ Ye();
4362
+ }, A), A = Re(Math.min(p * 16, A * 2)), a.readyState = le;
4363
+ var k = new ot("error", { error: V });
4364
+ a.dispatchEvent(k), Se(a, a.onerror, k), V != null && console.error(V);
4361
4365
  }
4362
- }, Ct = function() {
4363
- le = Se, ee != null && (ee.abort(), ee = void 0), Z !== 0 && (i(Z), Z = 0), a.readyState = Se;
4364
- }, Qe = function() {
4365
- if (Z = 0, le !== Xe) {
4366
- if (!C && ee != null)
4367
- an(new Error("No activity within " + m + " milliseconds. " + (le === ce ? "No response received." : N + " chars received.") + " Reconnecting.")), ee != null && (ee.abort(), ee = void 0);
4366
+ }, Ot = function() {
4367
+ se = me, ne != null && (ne.abort(), ne = void 0), q !== 0 && (i(q), q = 0), a.readyState = me;
4368
+ }, Ye = function() {
4369
+ if (q = 0, se !== Ze) {
4370
+ if (!O && ne != null)
4371
+ an(new Error("No activity within " + _ + " milliseconds. " + (se === le ? "No response received." : L + " chars received.") + " Reconnecting.")), ne != null && (ne.abort(), ne = void 0);
4368
4372
  else {
4369
- var k = Math.max((C || Date.now()) + m - Date.now(), 1);
4370
- C = !1, Z = r(function() {
4371
- Qe();
4372
- }, k);
4373
+ var V = Math.max((O || Date.now()) + _ - Date.now(), 1);
4374
+ O = !1, q = r(function() {
4375
+ Ye();
4376
+ }, V);
4373
4377
  }
4374
4378
  return;
4375
4379
  }
4376
- C = !1, N = 0, Z = r(function() {
4377
- Qe();
4378
- }, m), le = ce, Oe = "", be = "", st = A, ut = "", At = 0, Ae = 0, q = ue;
4379
- var j = h;
4380
- if (h.slice(0, 5) !== "data:" && h.slice(0, 5) !== "blob:" && A !== "") {
4381
- var te = h.indexOf("?");
4382
- j = te === -1 ? h : h.slice(0, te + 1) + h.slice(te + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(ve, Re) {
4383
- return Re === v ? "" : ve;
4384
- }), j += (h.indexOf("?") === -1 ? "?" : "&") + v + "=" + encodeURIComponent(A);
4380
+ O = !1, L = 0, q = r(function() {
4381
+ Ye();
4382
+ }, _), se = le, Ne = "", be = "", st = N, ut = "", Ht = 0, Ce = 0, Q = he;
4383
+ var k = h;
4384
+ if (h.slice(0, 5) !== "data:" && h.slice(0, 5) !== "blob:" && N !== "") {
4385
+ var re = h.indexOf("?");
4386
+ k = re === -1 ? h : h.slice(0, re + 1) + h.slice(re + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(ve, Me) {
4387
+ return Me === v ? "" : ve;
4388
+ }), k += (h.indexOf("?") === -1 ? "?" : "&") + v + "=" + encodeURIComponent(N);
4385
4389
  }
4386
- var ne = a.withCredentials, Q = {};
4387
- Q.Accept = "text/event-stream";
4388
- var z = a.headers;
4389
- if (z != null)
4390
- for (var ye in z)
4391
- Object.prototype.hasOwnProperty.call(z, ye) && (Q[ye] = z[ye]);
4390
+ var ie = a.withCredentials, J = {};
4391
+ J.Accept = "text/event-stream";
4392
+ var W = a.headers;
4393
+ if (W != null)
4394
+ for (var ye in W)
4395
+ Object.prototype.hasOwnProperty.call(W, ye) && (J[ye] = W[ye]);
4392
4396
  try {
4393
- ee = qe.open(ge, ar, sr, an, j, ne, Q);
4397
+ ne = Je.open(ge, ar, sr, an, k, ie, J);
4394
4398
  } catch (ve) {
4395
- throw Ct(), ve;
4399
+ throw Ot(), ve;
4396
4400
  }
4397
4401
  };
4398
- a.url = h, a.readyState = ce, a.withCredentials = c, a.headers = _, a._close = Ct, Qe();
4402
+ a.url = h, a.readyState = le, a.withCredentials = d, a.headers = S, a._close = Ot, Ye();
4399
4403
  }
4400
- K.prototype = Object.create(re.prototype), K.prototype.CONNECTING = ce, K.prototype.OPEN = Te, K.prototype.CLOSED = Se, K.prototype.close = function() {
4404
+ te.prototype = Object.create(ee.prototype), te.prototype.CONNECTING = le, te.prototype.OPEN = Be, te.prototype.CLOSED = me, te.prototype.close = function() {
4401
4405
  this._close();
4402
- }, K.CONNECTING = ce, K.OPEN = Te, K.CLOSED = Se, K.prototype.withCredentials = void 0;
4403
- var at = f;
4404
- o != null && (f == null || !("withCredentials" in f.prototype)) && (at = K), function(a) {
4406
+ }, te.CONNECTING = le, te.OPEN = Be, te.CLOSED = me, te.prototype.withCredentials = void 0;
4407
+ var b = c;
4408
+ o != null && (c == null || !("withCredentials" in c.prototype)) && (b = te), function(a) {
4405
4409
  {
4406
4410
  var h = a(t);
4407
4411
  h !== void 0 && (e.exports = h);
4408
4412
  }
4409
4413
  }(function(a) {
4410
- a.EventSourcePolyfill = K, a.NativeEventSource = f, a.EventSource = at;
4414
+ a.EventSourcePolyfill = te, a.NativeEventSource = c, a.EventSource = b;
4411
4415
  });
4412
4416
  })(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : Gr : globalThis);
4413
- })(Kt, Kt.exports);
4414
- var Ho = Kt.exports;
4417
+ })(tn, tn.exports);
4418
+ var Oo = tn.exports;
4415
4419
  function Lo(e) {
4416
4420
  mr(e, "svelte-gv6dm2", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}.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;background:transparent;border:none;font:inherit;color:inherit}.ShowBalance .BalanceValue svg{width:16px}.ShowBalance .BalanceValue span{padding-left:8px}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background-color:var(--emw--color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-60%);padding:10px;box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.BalanceModalWrapper:before{content:"";background:var(--emw--color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:60%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;font:inherit}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));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, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal{position:relative;width:280px}.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, #07072A))}.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, #07072A));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover,.BalanceModalFooter .BalanceModalActionactive{background:var(--emw--header-contrast, var(--emw--color-background, #07072A))}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}');
4417
4421
  }
@@ -4423,7 +4427,7 @@ function wn(e, t, n) {
4423
4427
  const r = e.slice();
4424
4428
  return r[52] = t[n], r;
4425
4429
  }
4426
- function Oo(e) {
4430
+ function Ro(e) {
4427
4431
  let t, n = (
4428
4432
  /*balances*/
4429
4433
  (e[3].Total ? (
@@ -4433,24 +4437,24 @@ function Oo(e) {
4433
4437
  e[3].Total[0].amount
4434
4438
  )
4435
4439
  ) : "0") + ""
4436
- ), r, i, o, u, s, f, l, d = (
4440
+ ), r, i, o, u, s, c, l, f = (
4437
4441
  /*isModalDisplayed*/
4438
4442
  e[2] && An(e)
4439
4443
  );
4440
4444
  return {
4441
4445
  c() {
4442
- t = U("button"), r = Ee(n), i = xe(), o = U("span"), o.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>', u = xe(), d && d.c(), s = yr(), W(t, "class", "BalanceValue");
4446
+ t = $("button"), r = Ee(n), i = xe(), o = $("span"), o.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>', u = xe(), f && f.c(), s = yr(), Z(t, "class", "BalanceValue");
4443
4447
  },
4444
- m(g, b) {
4445
- fe(g, t, b), M(t, r), M(t, i), M(t, o), fe(g, u, b), d && d.m(g, b), fe(g, s, b), f || (l = dt(
4448
+ m(g, y) {
4449
+ fe(g, t, y), M(t, r), M(t, i), M(t, o), fe(g, u, y), f && f.m(g, y), fe(g, s, y), c || (l = dt(
4446
4450
  t,
4447
4451
  "click",
4448
4452
  /*click_handler*/
4449
4453
  e[23]
4450
- ), f = !0);
4454
+ ), c = !0);
4451
4455
  },
4452
- p(g, b) {
4453
- b[0] & /*balances*/
4456
+ p(g, y) {
4457
+ y[0] & /*balances*/
4454
4458
  8 && n !== (n = /*balances*/
4455
4459
  (g[3].Total ? (
4456
4460
  /*formatBalance*/
@@ -4458,22 +4462,22 @@ function Oo(e) {
4458
4462
  /*balances*/
4459
4463
  g[3].Total[0].amount
4460
4464
  )
4461
- ) : "0") + "") && Ce(r, n), /*isModalDisplayed*/
4462
- g[2] ? d ? d.p(g, b) : (d = An(g), d.c(), d.m(s.parentNode, s)) : d && (d.d(1), d = null);
4465
+ ) : "0") + "") && He(r, n), /*isModalDisplayed*/
4466
+ g[2] ? f ? f.p(g, y) : (f = An(g), f.c(), f.m(s.parentNode, s)) : f && (f.d(1), f = null);
4463
4467
  },
4464
4468
  d(g) {
4465
- g && (he(t), he(u), he(s)), d && d.d(g), f = !1, l();
4469
+ g && (ue(t), ue(u), ue(s)), f && f.d(g), c = !1, l();
4466
4470
  }
4467
4471
  };
4468
4472
  }
4469
- function Ro(e) {
4473
+ function No(e) {
4470
4474
  let t, n = (
4471
4475
  /*$_*/
4472
4476
  e[4]("Loading") + ""
4473
4477
  ), r;
4474
4478
  return {
4475
4479
  c() {
4476
- t = U("p"), r = Ee(n);
4480
+ t = $("p"), r = Ee(n);
4477
4481
  },
4478
4482
  m(i, o) {
4479
4483
  fe(i, t, o), M(t, r);
@@ -4481,10 +4485,10 @@ function Ro(e) {
4481
4485
  p(i, o) {
4482
4486
  o[0] & /*$_*/
4483
4487
  16 && n !== (n = /*$_*/
4484
- i[4]("Loading") + "") && Ce(r, n);
4488
+ i[4]("Loading") + "") && He(r, n);
4485
4489
  },
4486
4490
  d(i) {
4487
- i && he(t);
4491
+ i && ue(t);
4488
4492
  }
4489
4493
  };
4490
4494
  }
@@ -4492,27 +4496,27 @@ function An(e) {
4492
4496
  let t, n, r, i, o, u, s = (
4493
4497
  /*$_*/
4494
4498
  e[4]("Title") + ""
4495
- ), f, l, d, g, b, x, T = (
4499
+ ), c, l, f, g, y, x, T = (
4496
4500
  /*$_*/
4497
4501
  e[4]("DepositButton") + ""
4498
- ), P, $, X, F = pt(Object.keys(
4502
+ ), P, j, z, G = pt(Object.keys(
4499
4503
  /*balances*/
4500
4504
  e[3]
4501
4505
  )), B = [];
4502
- for (let S = 0; S < F.length; S += 1)
4503
- B[S] = Hn(Sn(e, F, S));
4506
+ for (let w = 0; w < G.length; w += 1)
4507
+ B[w] = Hn(Sn(e, G, w));
4504
4508
  return {
4505
4509
  c() {
4506
- t = U("div"), n = U("button"), r = xe(), i = U("div"), o = U("div"), u = U("p"), f = Ee(s), l = xe(), d = U("div");
4507
- for (let S = 0; S < B.length; S += 1)
4508
- B[S].c();
4509
- g = xe(), b = U("div"), x = U("button"), P = Ee(T), W(n, "class", "BalanceModalClose"), W(u, "class", "BalanceModalTitle"), W(o, "class", "BalanceModalHeader"), W(d, "class", "BalanceModalBody"), W(x, "class", "BalanceModalAction"), W(b, "class", "BalanceModalFooter"), W(i, "class", "BalanceModal"), W(t, "class", "BalanceModalWrapper");
4510
+ t = $("div"), n = $("button"), r = xe(), i = $("div"), o = $("div"), u = $("p"), c = Ee(s), l = xe(), f = $("div");
4511
+ for (let w = 0; w < B.length; w += 1)
4512
+ B[w].c();
4513
+ g = xe(), y = $("div"), x = $("button"), P = Ee(T), Z(n, "class", "BalanceModalClose"), Z(u, "class", "BalanceModalTitle"), Z(o, "class", "BalanceModalHeader"), Z(f, "class", "BalanceModalBody"), Z(x, "class", "BalanceModalAction"), Z(y, "class", "BalanceModalFooter"), Z(i, "class", "BalanceModal"), Z(t, "class", "BalanceModalWrapper");
4510
4514
  },
4511
- m(S, G) {
4512
- fe(S, t, G), M(t, n), M(t, r), M(t, i), M(i, o), M(o, u), M(u, f), M(i, l), M(i, d);
4513
- for (let O = 0; O < B.length; O += 1)
4514
- B[O] && B[O].m(d, null);
4515
- M(i, g), M(i, b), M(b, x), M(x, P), $ || (X = [
4515
+ m(w, I) {
4516
+ fe(w, t, I), M(t, n), M(t, r), M(t, i), M(i, o), M(o, u), M(u, c), M(i, l), M(i, f);
4517
+ for (let R = 0; R < B.length; R += 1)
4518
+ B[R] && B[R].m(f, null);
4519
+ M(i, g), M(i, y), M(y, x), M(x, P), j || (z = [
4516
4520
  dt(
4517
4521
  n,
4518
4522
  "click",
@@ -4525,32 +4529,32 @@ function An(e) {
4525
4529
  /*click_handler_2*/
4526
4530
  e[25]
4527
4531
  )
4528
- ], $ = !0);
4532
+ ], j = !0);
4529
4533
  },
4530
- p(S, G) {
4531
- if (G[0] & /*$_*/
4534
+ p(w, I) {
4535
+ if (I[0] & /*$_*/
4532
4536
  16 && s !== (s = /*$_*/
4533
- S[4]("Title") + "") && Ce(f, s), G[0] & /*balances, formatBalance, $_*/
4537
+ w[4]("Title") + "") && He(c, s), I[0] & /*balances, formatBalance, $_*/
4534
4538
  56) {
4535
- F = pt(Object.keys(
4539
+ G = pt(Object.keys(
4536
4540
  /*balances*/
4537
- S[3]
4541
+ w[3]
4538
4542
  ));
4539
- let O;
4540
- for (O = 0; O < F.length; O += 1) {
4541
- const Y = Sn(S, F, O);
4542
- B[O] ? B[O].p(Y, G) : (B[O] = Hn(Y), B[O].c(), B[O].m(d, null));
4543
+ let R;
4544
+ for (R = 0; R < G.length; R += 1) {
4545
+ const K = Sn(w, G, R);
4546
+ B[R] ? B[R].p(K, I) : (B[R] = Hn(K), B[R].c(), B[R].m(f, null));
4543
4547
  }
4544
- for (; O < B.length; O += 1)
4545
- B[O].d(1);
4546
- B.length = F.length;
4548
+ for (; R < B.length; R += 1)
4549
+ B[R].d(1);
4550
+ B.length = G.length;
4547
4551
  }
4548
- G[0] & /*$_*/
4552
+ I[0] & /*$_*/
4549
4553
  16 && T !== (T = /*$_*/
4550
- S[4]("DepositButton") + "") && Ce(P, T);
4554
+ w[4]("DepositButton") + "") && He(P, T);
4551
4555
  },
4552
- d(S) {
4553
- S && he(t), Mn(B, S), $ = !1, $e(X);
4556
+ d(w) {
4557
+ w && ue(t), Mn(B, w), j = !1, ke(z);
4554
4558
  }
4555
4559
  };
4556
4560
  }
@@ -4570,19 +4574,19 @@ function Cn(e) {
4570
4574
  e[52].productType
4571
4575
  )
4572
4576
  ) : "") + ""
4573
- ), s, f, l, d, g = (
4577
+ ), s, c, l, f, g = (
4574
4578
  /*formatBalance*/
4575
4579
  e[5](
4576
4580
  /*b*/
4577
4581
  e[52].amount
4578
4582
  ) + ""
4579
- ), b;
4583
+ ), y;
4580
4584
  return {
4581
4585
  c() {
4582
- t = U("div"), n = U("p"), i = Ee(r), o = xe(), s = Ee(u), f = xe(), l = U("p"), d = U("span"), b = Ee(g), W(n, "class", "BalanceModalText"), W(d, "class", "BalanceModalAmount"), W(l, "class", "BalanceModalValue"), W(t, "class", "BalanceModalRowLine");
4586
+ t = $("div"), n = $("p"), i = Ee(r), o = xe(), s = Ee(u), c = xe(), l = $("p"), f = $("span"), y = Ee(g), Z(n, "class", "BalanceModalText"), Z(f, "class", "BalanceModalAmount"), Z(l, "class", "BalanceModalValue"), Z(t, "class", "BalanceModalRowLine");
4583
4587
  },
4584
4588
  m(x, T) {
4585
- fe(x, t, T), M(t, n), M(n, i), M(n, o), M(n, s), M(t, f), M(t, l), M(l, d), M(d, b);
4589
+ fe(x, t, T), M(t, n), M(n, i), M(n, o), M(n, s), M(t, c), M(t, l), M(l, f), M(f, y);
4586
4590
  },
4587
4591
  p(x, T) {
4588
4592
  T[0] & /*$_, balances*/
@@ -4590,7 +4594,7 @@ function Cn(e) {
4590
4594
  x[4](
4591
4595
  /*k*/
4592
4596
  x[49]
4593
- ) + "") && Ce(i, r), T[0] & /*balances, $_*/
4597
+ ) + "") && He(i, r), T[0] & /*balances, $_*/
4594
4598
  24 && u !== (u = /*b*/
4595
4599
  (x[52].productType ? (
4596
4600
  /*$_*/
@@ -4598,15 +4602,15 @@ function Cn(e) {
4598
4602
  /*b*/
4599
4603
  x[52].productType
4600
4604
  )
4601
- ) : "") + "") && Ce(s, u), T[0] & /*balances*/
4605
+ ) : "") + "") && He(s, u), T[0] & /*balances*/
4602
4606
  8 && g !== (g = /*formatBalance*/
4603
4607
  x[5](
4604
4608
  /*b*/
4605
4609
  x[52].amount
4606
- ) + "") && Ce(b, g);
4610
+ ) + "") && He(y, g);
4607
4611
  },
4608
4612
  d(x) {
4609
- x && he(t);
4613
+ x && ue(t);
4610
4614
  }
4611
4615
  };
4612
4616
  }
@@ -4622,10 +4626,10 @@ function Hn(e) {
4622
4626
  i[o] = Cn(wn(e, r, o));
4623
4627
  return {
4624
4628
  c() {
4625
- t = U("div");
4629
+ t = $("div");
4626
4630
  for (let o = 0; o < i.length; o += 1)
4627
4631
  i[o].c();
4628
- n = xe(), W(t, "class", "BalanceModalRowBoth");
4632
+ n = xe(), Z(t, "class", "BalanceModalRowBoth");
4629
4633
  },
4630
4634
  m(o, u) {
4631
4635
  fe(o, t, u);
@@ -4645,8 +4649,8 @@ function Hn(e) {
4645
4649
  );
4646
4650
  let s;
4647
4651
  for (s = 0; s < r.length; s += 1) {
4648
- const f = wn(o, r, s);
4649
- i[s] ? i[s].p(f, u) : (i[s] = Cn(f), i[s].c(), i[s].m(t, n));
4652
+ const c = wn(o, r, s);
4653
+ i[s] ? i[s].p(c, u) : (i[s] = Cn(c), i[s].c(), i[s].m(t, n));
4650
4654
  }
4651
4655
  for (; s < i.length; s += 1)
4652
4656
  i[s].d(1);
@@ -4654,15 +4658,15 @@ function Hn(e) {
4654
4658
  }
4655
4659
  },
4656
4660
  d(o) {
4657
- o && he(t), Mn(i, o);
4661
+ o && ue(t), Mn(i, o);
4658
4662
  }
4659
4663
  };
4660
4664
  }
4661
- function Ln(e) {
4665
+ function On(e) {
4662
4666
  let t, n, r;
4663
4667
  return {
4664
4668
  c() {
4665
- t = U("button"), W(t, "class", "ShowBalanceModalOverlay");
4669
+ t = $("button"), Z(t, "class", "ShowBalanceModalOverlay");
4666
4670
  },
4667
4671
  m(i, o) {
4668
4672
  fe(i, t, o), n || (r = dt(
@@ -4674,103 +4678,103 @@ function Ln(e) {
4674
4678
  },
4675
4679
  p: ae,
4676
4680
  d(i) {
4677
- i && he(t), n = !1, r();
4681
+ i && ue(t), n = !1, r();
4678
4682
  }
4679
4683
  };
4680
4684
  }
4681
- function No(e) {
4685
+ function Mo(e) {
4682
4686
  let t, n, r;
4683
- function i(f, l) {
4687
+ function i(c, l) {
4684
4688
  return (
4685
4689
  /*isLoading*/
4686
- f[1] ? Ro : Oo
4690
+ c[1] ? No : Ro
4687
4691
  );
4688
4692
  }
4689
4693
  let o = i(e), u = o(e), s = (
4690
4694
  /*isModalDisplayed*/
4691
- e[2] && Ln(e)
4695
+ e[2] && On(e)
4692
4696
  );
4693
4697
  return {
4694
4698
  c() {
4695
- t = U("div"), n = U("div"), u.c(), r = xe(), s && s.c(), W(n, "class", "ShowBalance");
4699
+ t = $("div"), n = $("div"), u.c(), r = xe(), s && s.c(), Z(n, "class", "ShowBalance");
4696
4700
  },
4697
- m(f, l) {
4698
- fe(f, t, l), M(t, n), u.m(n, null), M(t, r), s && s.m(t, null), e[27](t);
4701
+ m(c, l) {
4702
+ fe(c, t, l), M(t, n), u.m(n, null), M(t, r), s && s.m(t, null), e[27](t);
4699
4703
  },
4700
- p(f, l) {
4701
- o === (o = i(f)) && u ? u.p(f, l) : (u.d(1), u = o(f), u && (u.c(), u.m(n, null))), /*isModalDisplayed*/
4702
- f[2] ? s ? s.p(f, l) : (s = Ln(f), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
4704
+ p(c, l) {
4705
+ o === (o = i(c)) && u ? u.p(c, l) : (u.d(1), u = o(c), u && (u.c(), u.m(n, null))), /*isModalDisplayed*/
4706
+ c[2] ? s ? s.p(c, l) : (s = On(c), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
4703
4707
  },
4704
4708
  i: ae,
4705
4709
  o: ae,
4706
- d(f) {
4707
- f && he(t), u.d(), s && s.d(), e[27](null);
4710
+ d(c) {
4711
+ c && ue(t), u.d(), s && s.d(), e[27](null);
4708
4712
  }
4709
4713
  };
4710
4714
  }
4711
- function Mo(e, t, n) {
4715
+ function Po(e, t, n) {
4712
4716
  let r;
4713
- pr(e, Ao, (a) => n(4, r = a));
4714
- let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: u = "" } = t, { lang: s = "en" } = t, { mbsource: f } = t, { clientstyling: l = "" } = t, { clientstylingurl: d = "" } = t, { translationurl: g = "" } = t, { gmversion: b = "gm16" } = t, { displaybalanceoption: x = "All" } = t, { totalcalculationmode: T = "totalCashAmount" } = t, { currencylocale: P = "en" } = t, { currencydisplay: $ = "symbol" } = t, { maximumfractiondigits: X = "2" } = t, { minimumfractiondigits: F = "0" } = t, { customdisplayformat: B = "" } = t, S, G, O = !0, Y = !1, _e = !1, de, re = "", se = [], ie;
4715
- const E = {}, pe = ["totalCashAmount", "totalRealAmount"], rt = () => {
4716
- fetch(g).then((a) => a.json()).then((a) => Object.keys(a).forEach((h) => Tn(h, a[h]))).catch((a) => console.log(a));
4717
+ pr(e, Co, (b) => n(4, r = b));
4718
+ let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: u = "" } = t, { lang: s = "en" } = t, { mbsource: c } = t, { clientstyling: l = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: g = "" } = t, { gmversion: y = "gm16" } = t, { displaybalanceoption: x = "All" } = t, { totalcalculationmode: T = "totalCashAmount" } = t, { currencylocale: P = "en" } = t, { currencydisplay: j = "symbol" } = t, { maximumfractiondigits: z = "2" } = t, { minimumfractiondigits: G = "0" } = t, { customdisplayformat: B = "" } = t, w, I = !0, R = !1, K = !1, de, pe = "", ee = [], _e;
4719
+ const E = {}, Te = ["totalCashAmount", "totalRealAmount"], We = () => {
4720
+ fetch(g).then((b) => b.json()).then((b) => Object.keys(b).forEach((a) => Tn(a, b[a]))).catch((b) => console.log(b));
4717
4721
  };
4718
- Object.keys(Bn).forEach((a) => Tn(a, Bn[a]));
4719
- const Xe = (a) => {
4722
+ Object.keys(Bn).forEach((b) => Tn(b, Bn[b]));
4723
+ const ot = (b) => {
4720
4724
  if (B)
4721
- return ce(a);
4722
- const h = P || s, p = {
4725
+ return Ze(b);
4726
+ const a = P || s, h = {
4723
4727
  style: "currency",
4724
- currency: re,
4728
+ currency: pe,
4725
4729
  useGrouping: !0,
4726
- currencyDisplay: $ || "code",
4727
- maximumFractionDigits: X === "" || isNaN(Number(X)) ? 2 : Number(X),
4728
- minimumFractionDigits: F === "" || isNaN(Number(F)) ? 0 : Number(F)
4730
+ currencyDisplay: j || "code",
4731
+ maximumFractionDigits: z === "" || isNaN(Number(z)) ? 2 : Number(z),
4732
+ minimumFractionDigits: G === "" || isNaN(Number(G)) ? 0 : Number(G)
4729
4733
  };
4730
- return new Intl.NumberFormat(h, p).format(a);
4731
- }, ce = (a) => {
4732
- const h = [];
4733
- let p = "";
4734
- for (const c of B)
4735
- switch (c) {
4734
+ return new Intl.NumberFormat(a, h).format(b);
4735
+ }, Ze = (b) => {
4736
+ const a = [];
4737
+ let h = "";
4738
+ for (const m of B)
4739
+ switch (m) {
4736
4740
  default:
4737
- p += c;
4741
+ h += m;
4738
4742
  break;
4739
4743
  case "{":
4740
- p && h.push(p), p = "";
4744
+ h && a.push(h), h = "";
4741
4745
  break;
4742
4746
  case "}":
4743
- const [v, y] = p.split("|");
4744
- if (p = "", v.toLowerCase() === "currency")
4745
- p = re;
4746
- else if (v.toLowerCase() === "amount") {
4747
- let m = ",", A = ".", w = 2;
4748
- y && (y[0] !== " " && (m = y[0]), y[1] !== " " && (A = y[1]), y[2] !== " " && !isNaN(Number(y[2])) && (w = Number(y[2])));
4749
- let [C, N] = String(Math.floor(a * Lt(10, w)) / Lt(10, w)).split(".");
4750
- p += C[0];
4751
- for (let _ = 1; _ < C.length; ++_)
4752
- (C.length - _) % 3 === 0 ? p += m + C[_] : p += C[_];
4753
- N && (p += A + N);
4747
+ const [d, v] = h.split("|");
4748
+ if (h = "", d.toLowerCase() === "currency")
4749
+ h = pe;
4750
+ else if (d.toLowerCase() === "amount") {
4751
+ let p = ",", _ = ".", N = 2;
4752
+ v && (v[0] !== " " && (p = v[0]), v[1] !== " " && (_ = v[1]), v[2] !== " " && !isNaN(Number(v[2])) && (N = Number(v[2])));
4753
+ let [A, O] = String(Math.floor(b * Rt(10, N)) / Rt(10, N)).split(".");
4754
+ h += A[0];
4755
+ for (let L = 1; L < A.length; ++L)
4756
+ (A.length - L) % 3 === 0 ? h += p + A[L] : h += A[L];
4757
+ O && (h += _ + O);
4754
4758
  }
4755
- p && h.push(p), p = "";
4759
+ h && a.push(h), h = "";
4756
4760
  break;
4757
4761
  }
4758
- return h.push(p), h.join("");
4759
- }, Te = () => Nt(this, null, function* () {
4760
- var h, p, c;
4761
- n(1, O = !0);
4762
- const a = new URL(`${u}/v1/player/${i}/account`);
4762
+ return a.push(h), a.join("");
4763
+ }, le = () => Pt(this, null, function* () {
4764
+ var a, h, m;
4765
+ n(1, I = !0);
4766
+ const b = new URL(`${u}/v1/player/${i}/account`);
4763
4767
  try {
4764
- const v = yield fetch(a, {
4768
+ const d = yield fetch(b, {
4765
4769
  method: "GET",
4766
4770
  headers: { "X-SessionID": o }
4767
- }), y = yield v.json();
4768
- if (v.ok)
4769
- se = y.items, re = (h = se.find((m) => m.displayName === "Casino")) == null ? void 0 : h.currency, n(3, E.Total = [{ amount: y.totalAmount[re] }], E), n(
4771
+ }), v = yield d.json();
4772
+ if (d.ok)
4773
+ ee = v.items, pe = (a = ee.find((p) => p.displayName === "Casino")) == null ? void 0 : a.currency, n(3, E.Total = [{ amount: v.totalAmount[pe] }], E), n(
4770
4774
  3,
4771
4775
  E.Real = [
4772
4776
  {
4773
- amount: (p = se.find((m) => m.displayName === "Casino")) == null ? void 0 : p.balanceAmount
4777
+ amount: (h = ee.find((p) => p.displayName === "Casino")) == null ? void 0 : h.balanceAmount
4774
4778
  }
4775
4779
  ],
4776
4780
  E
@@ -4778,46 +4782,46 @@ function Mo(e, t, n) {
4778
4782
  3,
4779
4783
  E.Bonus = [
4780
4784
  {
4781
- amount: (c = se.find((m) => m.displayName === "UBS")) == null ? void 0 : c.balanceAmount
4785
+ amount: (m = ee.find((p) => p.displayName === "UBS")) == null ? void 0 : m.balanceAmount
4782
4786
  }
4783
4787
  ],
4784
4788
  E
4785
4789
  );
4786
4790
  else
4787
4791
  throw new Error("Failed to fetch balance data !");
4788
- } catch (v) {
4789
- console.log("Balance error: ", v);
4792
+ } catch (d) {
4793
+ console.log("Balance error: ", d);
4790
4794
  } finally {
4791
- n(1, O = !1);
4795
+ n(1, I = !1);
4792
4796
  }
4793
- }), Se = () => {
4794
- n(1, O = !0);
4795
- const a = new URL(`${u}/v2/player/${i}/balance`), h = new Headers();
4796
- h.append("X-SessionID", o), fetch(a, { method: "GET", headers: h }).then((c) => c.json()).then((c) => {
4797
- c[T] || n(7, T = pe[0]);
4798
- const v = c.items.find((m) => m.type === "Real" && m.walletAccountType === "Ordinary");
4799
- if (re = v.currency, _e = !!v.productType, n(3, E.Total = [{ amount: 0 }], E), n(3, E.Real = [], E), n(3, E.Bonus = [], E), n(3, E.Credit = [], E), !_e) {
4800
- ie = {
4797
+ }), Be = () => {
4798
+ n(1, I = !0);
4799
+ const b = new URL(`${u}/v2/player/${i}/balance`), a = new Headers();
4800
+ a.append("X-SessionID", o), fetch(b, { method: "GET", headers: a }).then((m) => m.json()).then((m) => {
4801
+ m[T] || n(7, T = Te[0]);
4802
+ const d = m.items.find((p) => p.type === "Real" && p.walletAccountType === "Ordinary");
4803
+ if (pe = d.currency, K = !!d.productType, n(3, E.Total = [{ amount: 0 }], E), n(3, E.Real = [], E), n(3, E.Bonus = [], E), n(3, E.Credit = [], E), !K) {
4804
+ _e = {
4801
4805
  lastOrdinaryAfterAmount: 0,
4802
4806
  showCreditLineAfterAmount: !1
4803
- }, n(3, E.Total[0].amount = c[T][re], E);
4804
- for (const m of c.items)
4805
- switch (m.type) {
4807
+ }, n(3, E.Total[0].amount = m[T][pe], E);
4808
+ for (const p of m.items)
4809
+ switch (p.type) {
4806
4810
  case "Bonus":
4807
- E.Bonus.length === 0 ? E.Bonus.push({ amount: m.amount }) : n(3, E.Bonus[0].amount += m.amount, E);
4811
+ E.Bonus.length === 0 ? E.Bonus.push({ amount: p.amount }) : n(3, E.Bonus[0].amount += p.amount, E);
4808
4812
  break;
4809
4813
  case "Real":
4810
- if (m.creditLine && E.Credit.length === 0 && E.Credit.push({ amount: m.creditLine }), T === "totalRealAmount")
4814
+ if (p.creditLine && E.Credit.length === 0 && E.Credit.push({ amount: p.creditLine }), T === "totalRealAmount")
4811
4815
  continue;
4812
- E.Real.length === 0 ? E.Real.push({ amount: m.amount }) : n(3, E.Real[0].amount += m.amount, E);
4816
+ E.Real.length === 0 ? E.Real.push({ amount: p.amount }) : n(3, E.Real[0].amount += p.amount, E);
4813
4817
  break;
4814
4818
  }
4815
- for (const [m, A] of Object.entries(E))
4816
- A.length < 1 && delete E[m];
4817
- n(1, O = !1);
4819
+ for (const [p, _] of Object.entries(E))
4820
+ _.length < 1 && delete E[p];
4821
+ n(1, I = !1);
4818
4822
  return;
4819
4823
  }
4820
- ie = {
4824
+ _e = {
4821
4825
  Casino: {
4822
4826
  lastOrdinaryAfterAmount: 0,
4823
4827
  showCreditLineAfterAmount: !1
@@ -4827,195 +4831,195 @@ function Mo(e, t, n) {
4827
4831
  showCreditLineAfterAmount: !1
4828
4832
  }
4829
4833
  };
4830
- let y = c.items;
4831
- x && x !== "All" && (y = c.items.filter((m) => m.productType === x));
4832
- for (const m of y) {
4833
- let A;
4834
- switch (m.type) {
4834
+ let v = m.items;
4835
+ x && x !== "All" && (v = m.items.filter((p) => p.productType === x));
4836
+ for (const p of v) {
4837
+ let _;
4838
+ switch (p.type) {
4835
4839
  case "Bonus":
4836
- A = E.Bonus.findIndex((w) => w.productType === m.productType), A > 0 ? n(3, E.Bonus[A].amount += m.amount, E) : E.Bonus.push({
4837
- amount: m.amount,
4838
- productType: m.productType
4840
+ _ = E.Bonus.findIndex((N) => N.productType === p.productType), _ > 0 ? n(3, E.Bonus[_].amount += p.amount, E) : E.Bonus.push({
4841
+ amount: p.amount,
4842
+ productType: p.productType
4839
4843
  });
4840
4844
  break;
4841
4845
  case "Real":
4842
- m.creditLine && E.Credit.push({
4843
- amount: m.creditLine,
4844
- productType: m.productType
4845
- }), A = E.Real.findIndex((w) => w.productType === m.productType), A > 0 ? n(3, E.Real[A].amount += m.amount, E) : E.Real.push({
4846
- amount: m.amount,
4847
- productType: m.productType
4846
+ p.creditLine && E.Credit.push({
4847
+ amount: p.creditLine,
4848
+ productType: p.productType
4849
+ }), _ = E.Real.findIndex((N) => N.productType === p.productType), _ > 0 ? n(3, E.Real[_].amount += p.amount, E) : E.Real.push({
4850
+ amount: p.amount,
4851
+ productType: p.productType
4848
4852
  });
4849
4853
  break;
4850
4854
  }
4851
4855
  }
4852
- it();
4853
- for (const [m, A] of Object.entries(E))
4854
- A.length < 1 && delete E[m];
4855
- n(1, O = !1);
4856
+ qe();
4857
+ for (const [p, _] of Object.entries(E))
4858
+ _.length < 1 && delete E[p];
4859
+ n(1, I = !1);
4856
4860
  }).catch(() => {
4857
- throw n(1, O = !1), new Error("Failed to fetch balance data !");
4861
+ throw n(1, I = !1), new Error("Failed to fetch balance data !");
4858
4862
  });
4859
- }, we = () => {
4863
+ }, me = () => {
4860
4864
  if (de && de.close(), o.length < 1)
4861
4865
  return;
4862
- let a, h;
4863
- switch (b) {
4866
+ let b, a;
4867
+ switch (y) {
4864
4868
  case "gm16":
4865
- a = new URL(`${u}/v2/player/${i}/information/updates`), h = (v) => _t(v);
4869
+ b = new URL(`${u}/v2/player/${i}/information/updates`), a = (d) => Tt(d);
4866
4870
  break;
4867
4871
  case "gmcore":
4868
- a = new URL(`${u}/v1/player/${i}/balance/updates`), h = (v) => ze(v);
4872
+ b = new URL(`${u}/v1/player/${i}/balance/updates`), a = (d) => he(d);
4869
4873
  break;
4870
4874
  }
4871
- const p = {
4875
+ const h = {
4872
4876
  accept: "text/event-stream",
4873
4877
  "X-SessionId": o
4874
- }, c = new Ho.EventSourcePolyfill(a, { headers: p });
4875
- de = c, c.addEventListener("message", h);
4876
- }, ue = (a) => {
4877
- let h;
4878
+ }, m = new Oo.EventSourcePolyfill(b, { headers: h });
4879
+ de = m, m.addEventListener("message", a);
4880
+ }, Le = (b) => {
4881
+ let a;
4878
4882
  try {
4879
- h = JSON.parse(a);
4880
- } catch (p) {
4881
- console.log("Balance stream failed: ", p);
4883
+ a = JSON.parse(b);
4884
+ } catch (h) {
4885
+ console.log("Balance stream failed: ", h);
4882
4886
  return;
4883
4887
  }
4884
- return h;
4885
- }, ze = (a) => {
4886
- var v, y;
4887
- const h = ue(a.data);
4888
- if (!h) {
4889
- we();
4888
+ return a;
4889
+ }, he = (b) => {
4890
+ var d, v;
4891
+ const a = Le(b.data);
4892
+ if (!a) {
4893
+ me();
4890
4894
  return;
4891
4895
  }
4892
- let p = "0";
4893
- const c = h.balanceChange;
4894
- se = se.map((m) => (c && c[m.id] && (m = Rt(Ot({}, m), {
4895
- balanceAmount: c[m.id].afterAmount
4896
- })), p = (parseFloat(m == null ? void 0 : m.balanceAmount) + parseFloat(p)).toString(), m)), n(3, E.Real = [{ amount: (v = se[0]) == null ? void 0 : v.balanceAmount }], E), n(3, E.Bonus = [{ amount: (y = se[1]) == null ? void 0 : y.balanceAmount }], E), n(3, E.Total = [{ amount: Number(p) }], E);
4897
- }, Le = (a, h, p) => {
4898
- let c = null;
4899
- switch (p.walletAccountType) {
4896
+ let h = "0";
4897
+ const m = a.balanceChange;
4898
+ ee = ee.map((p) => (m && m[p.id] && (p = Mt(Nt({}, p), {
4899
+ balanceAmount: m[p.id].afterAmount
4900
+ })), h = (parseFloat(p == null ? void 0 : p.balanceAmount) + parseFloat(h)).toString(), p)), n(3, E.Real = [{ amount: (d = ee[0]) == null ? void 0 : d.balanceAmount }], E), n(3, E.Bonus = [{ amount: (v = ee[1]) == null ? void 0 : v.balanceAmount }], E), n(3, E.Total = [{ amount: Number(h) }], E);
4901
+ }, Ae = (b, a, h) => {
4902
+ let m = null;
4903
+ switch (h.walletAccountType) {
4900
4904
  case "Ordinary":
4901
- (p.afterAmount !== p.affectedAmount || h.lastOrdinaryAfterAmount === 0) && (h.lastOrdinaryAfterAmount = p.afterAmount, h.showCreditLineAfterAmount || (c = p.afterAmount));
4905
+ (h.afterAmount !== h.affectedAmount || a.lastOrdinaryAfterAmount === 0) && (a.lastOrdinaryAfterAmount = h.afterAmount, a.showCreditLineAfterAmount || (m = h.afterAmount));
4902
4906
  break;
4903
4907
  case "CreditLine":
4904
- p.afterAmount !== 0 ? (c = p.afterAmount, h.showCreditLineAfterAmount = !0) : (c = h.lastOrdinaryAfterAmount, h.showCreditLineAfterAmount = !1);
4908
+ h.afterAmount !== 0 ? (m = h.afterAmount, a.showCreditLineAfterAmount = !0) : (m = a.lastOrdinaryAfterAmount, a.showCreditLineAfterAmount = !1);
4905
4909
  break;
4906
4910
  default:
4907
- c = p.afterAmount;
4911
+ m = h.afterAmount;
4908
4912
  }
4909
- return c === null ? a : c;
4910
- }, it = () => {
4913
+ return m === null ? b : m;
4914
+ }, qe = () => {
4911
4915
  switch (T) {
4912
4916
  case "totalCashAmount":
4913
- let a = 0;
4914
- for (const p of ["Real", "Bonus"])
4915
- for (const c of E[p])
4916
- a += Math.max(c.amount, 0);
4917
- n(3, E.Total[0].amount = a, E);
4917
+ let b = 0;
4918
+ for (const h of ["Real", "Bonus"])
4919
+ for (const m of E[h])
4920
+ b += Math.max(m.amount, 0);
4921
+ n(3, E.Total[0].amount = b, E);
4918
4922
  break;
4919
4923
  case "totalRealAmount":
4920
- if (!_e)
4924
+ if (!K)
4921
4925
  return;
4922
- let h = 0;
4923
- for (const p of E.Real)
4924
- h += p.amount;
4925
- n(3, E.Total[0].amount = h, E);
4926
+ let a = 0;
4927
+ for (const h of E.Real)
4928
+ a += h.amount;
4929
+ n(3, E.Total[0].amount = a, E);
4926
4930
  }
4927
- }, _t = (a) => {
4928
- const h = ue(a.data);
4929
- if (!h) {
4930
- we();
4931
+ }, Tt = (b) => {
4932
+ const a = Le(b.data);
4933
+ if (!a) {
4934
+ me();
4931
4935
  return;
4932
4936
  }
4933
- if (Tt(h == null ? void 0 : h.type) || h.type !== "BALANCE_UPDATE_V2")
4937
+ if (Bt(a == null ? void 0 : a.type) || a.type !== "BALANCE_UPDATE_V2")
4934
4938
  return;
4935
- const p = h.body.balanceChange;
4936
- for (const [c, v] of Object.entries(p))
4937
- if (T === "totalRealAmount" && c === "Real" && !_e && n(3, E.Total[0].amount = Le(E.Total[0].amount, ie, v), E), !!E[c])
4938
- for (const y of E[c]) {
4939
- if (!_e) {
4940
- y.amount = c === "Real" ? Le(y.amount, ie, v) : v.afterAmount;
4939
+ const h = a.body.balanceChange;
4940
+ for (const [m, d] of Object.entries(h))
4941
+ if (T === "totalRealAmount" && m === "Real" && !K && n(3, E.Total[0].amount = Ae(E.Total[0].amount, _e, d), E), !!E[m])
4942
+ for (const v of E[m]) {
4943
+ if (!K) {
4944
+ v.amount = m === "Real" ? Ae(v.amount, _e, d) : d.afterAmount;
4941
4945
  continue;
4942
4946
  }
4943
- v.productType === y.productType && (y.amount = c === "Real" ? Le(y.amount, ie[y.productType], v) : v.afterAmount);
4947
+ d.productType === v.productType && (v.amount = m === "Real" ? Ae(v.amount, _e[v.productType], d) : d.afterAmount);
4944
4948
  }
4945
- it();
4946
- }, ot = () => {
4947
- n(2, Y = !1), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
4948
- }, Tt = (a) => a === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, We = () => {
4949
- pe.includes(T) || (console.error(`Unsupported value ('${T}') for totalcalculationmode parameter. Only the following values are supported ${pe}. Using default value ('${pe[0]}').`), n(7, T = pe[0]));
4950
- }, Ze = () => {
4951
- switch (Co(s), We(), b) {
4949
+ qe();
4950
+ }, at = () => {
4951
+ n(2, R = !1), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
4952
+ }, Bt = (b) => b === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, St = () => {
4953
+ Te.includes(T) || (console.error(`Unsupported value ('${T}') for totalcalculationmode parameter. Only the following values are supported ${Te}. Using default value ('${Te[0]}').`), n(7, T = Te[0]));
4954
+ }, Qe = () => {
4955
+ switch (Ho(s), St(), y) {
4952
4956
  case "gmcore":
4953
- Te();
4957
+ le();
4954
4958
  break;
4955
4959
  case "gm16":
4956
- Se();
4960
+ Be();
4957
4961
  break;
4958
4962
  default:
4959
- throw Error(`Invalid apiversion attribute: ${b}`);
4963
+ throw Error(`Invalid apiversion attribute: ${y}`);
4960
4964
  }
4961
- }, me = (a) => a.data && a.data.type === "LogoutSuccessfull" && de.close();
4962
- _r(() => (window.addEventListener("message", me, !1), () => {
4963
- window.emMessageBus && G && G.unsubscribe(), window.removeEventListener("message", me), de && de.close();
4965
+ }, Re = (b) => b.data && b.data.type === "LogoutSuccessfull" && de.close();
4966
+ _r(() => (window.addEventListener("message", Re, !1), () => {
4967
+ window.removeEventListener("message", Re), de && de.close();
4964
4968
  }));
4965
- const K = () => n(2, Y = !0), Bt = () => n(2, Y = !1), St = () => ot(), wt = () => n(2, Y = !1);
4966
- function at(a) {
4967
- $t[a ? "unshift" : "push"](() => {
4968
- S = a, n(0, S);
4969
+ const Se = () => n(2, R = !0), te = () => n(2, R = !1), wt = () => at(), At = () => n(2, R = !1);
4970
+ function Ct(b) {
4971
+ kt[b ? "unshift" : "push"](() => {
4972
+ w = b, n(0, w);
4969
4973
  });
4970
4974
  }
4971
- return e.$$set = (a) => {
4972
- "userid" in a && n(8, i = a.userid), "session" in a && n(9, o = a.session), "endpoint" in a && n(10, u = a.endpoint), "lang" in a && n(11, s = a.lang), "mbsource" in a && n(12, f = a.mbsource), "clientstyling" in a && n(13, l = a.clientstyling), "clientstylingurl" in a && n(14, d = a.clientstylingurl), "translationurl" in a && n(15, g = a.translationurl), "gmversion" in a && n(16, b = a.gmversion), "displaybalanceoption" in a && n(17, x = a.displaybalanceoption), "totalcalculationmode" in a && n(7, T = a.totalcalculationmode), "currencylocale" in a && n(18, P = a.currencylocale), "currencydisplay" in a && n(19, $ = a.currencydisplay), "maximumfractiondigits" in a && n(20, X = a.maximumfractiondigits), "minimumfractiondigits" in a && n(21, F = a.minimumfractiondigits), "customdisplayformat" in a && n(22, B = a.customdisplayformat);
4975
+ return e.$$set = (b) => {
4976
+ "userid" in b && n(8, i = b.userid), "session" in b && n(9, o = b.session), "endpoint" in b && n(10, u = b.endpoint), "lang" in b && n(11, s = b.lang), "mbsource" in b && n(12, c = b.mbsource), "clientstyling" in b && n(13, l = b.clientstyling), "clientstylingurl" in b && n(14, f = b.clientstylingurl), "translationurl" in b && n(15, g = b.translationurl), "gmversion" in b && n(16, y = b.gmversion), "displaybalanceoption" in b && n(17, x = b.displaybalanceoption), "totalcalculationmode" in b && n(7, T = b.totalcalculationmode), "currencylocale" in b && n(18, P = b.currencylocale), "currencydisplay" in b && n(19, j = b.currencydisplay), "maximumfractiondigits" in b && n(20, z = b.maximumfractiondigits), "minimumfractiondigits" in b && n(21, G = b.minimumfractiondigits), "customdisplayformat" in b && n(22, B = b.customdisplayformat);
4973
4977
  }, e.$$.update = () => {
4974
4978
  e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
4975
- 200448 && u && i && o && s && b && x && Ze(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
4976
- 67328 && u && i && o && b && we(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4977
- 8193 && l && S && Ir(S, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4978
- 16385 && d && S && Dr(S, d), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
4979
- 4097 && S && Fr(S, `${f}.Style`), e.$$.dirty[0] & /*translationurl*/
4980
- 32768 && g && rt();
4979
+ 200448 && u && i && o && s && y && x && Qe(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
4980
+ 67328 && u && i && o && y && me(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4981
+ 8193 && l && w && Ir(w, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4982
+ 16385 && f && w && Dr(w, f), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
4983
+ 4097 && w && Fr(w, `${c}.Style`), e.$$.dirty[0] & /*translationurl*/
4984
+ 32768 && g && We();
4981
4985
  }, [
4982
- S,
4983
- O,
4984
- Y,
4986
+ w,
4987
+ I,
4988
+ R,
4985
4989
  E,
4986
4990
  r,
4987
- Xe,
4988
4991
  ot,
4992
+ at,
4989
4993
  T,
4990
4994
  i,
4991
4995
  o,
4992
4996
  u,
4993
4997
  s,
4994
- f,
4998
+ c,
4995
4999
  l,
4996
- d,
5000
+ f,
4997
5001
  g,
4998
- b,
5002
+ y,
4999
5003
  x,
5000
5004
  P,
5001
- $,
5002
- X,
5003
- F,
5005
+ j,
5006
+ z,
5007
+ G,
5004
5008
  B,
5005
- K,
5006
- Bt,
5007
- St,
5009
+ Se,
5010
+ te,
5008
5011
  wt,
5009
- at
5012
+ At,
5013
+ Ct
5010
5014
  ];
5011
5015
  }
5012
- class Po extends Mr {
5016
+ class Io extends Mr {
5013
5017
  constructor(t) {
5014
5018
  super(), Rr(
5015
5019
  this,
5016
5020
  t,
5021
+ Po,
5017
5022
  Mo,
5018
- No,
5019
5023
  Rn,
5020
5024
  {
5021
5025
  userid: 8,
@@ -5043,100 +5047,100 @@ class Po extends Mr {
5043
5047
  return this.$$.ctx[8];
5044
5048
  }
5045
5049
  set userid(t) {
5046
- this.$$set({ userid: t }), V();
5050
+ this.$$set({ userid: t }), X();
5047
5051
  }
5048
5052
  get session() {
5049
5053
  return this.$$.ctx[9];
5050
5054
  }
5051
5055
  set session(t) {
5052
- this.$$set({ session: t }), V();
5056
+ this.$$set({ session: t }), X();
5053
5057
  }
5054
5058
  get endpoint() {
5055
5059
  return this.$$.ctx[10];
5056
5060
  }
5057
5061
  set endpoint(t) {
5058
- this.$$set({ endpoint: t }), V();
5062
+ this.$$set({ endpoint: t }), X();
5059
5063
  }
5060
5064
  get lang() {
5061
5065
  return this.$$.ctx[11];
5062
5066
  }
5063
5067
  set lang(t) {
5064
- this.$$set({ lang: t }), V();
5068
+ this.$$set({ lang: t }), X();
5065
5069
  }
5066
5070
  get mbsource() {
5067
5071
  return this.$$.ctx[12];
5068
5072
  }
5069
5073
  set mbsource(t) {
5070
- this.$$set({ mbsource: t }), V();
5074
+ this.$$set({ mbsource: t }), X();
5071
5075
  }
5072
5076
  get clientstyling() {
5073
5077
  return this.$$.ctx[13];
5074
5078
  }
5075
5079
  set clientstyling(t) {
5076
- this.$$set({ clientstyling: t }), V();
5080
+ this.$$set({ clientstyling: t }), X();
5077
5081
  }
5078
5082
  get clientstylingurl() {
5079
5083
  return this.$$.ctx[14];
5080
5084
  }
5081
5085
  set clientstylingurl(t) {
5082
- this.$$set({ clientstylingurl: t }), V();
5086
+ this.$$set({ clientstylingurl: t }), X();
5083
5087
  }
5084
5088
  get translationurl() {
5085
5089
  return this.$$.ctx[15];
5086
5090
  }
5087
5091
  set translationurl(t) {
5088
- this.$$set({ translationurl: t }), V();
5092
+ this.$$set({ translationurl: t }), X();
5089
5093
  }
5090
5094
  get gmversion() {
5091
5095
  return this.$$.ctx[16];
5092
5096
  }
5093
5097
  set gmversion(t) {
5094
- this.$$set({ gmversion: t }), V();
5098
+ this.$$set({ gmversion: t }), X();
5095
5099
  }
5096
5100
  get displaybalanceoption() {
5097
5101
  return this.$$.ctx[17];
5098
5102
  }
5099
5103
  set displaybalanceoption(t) {
5100
- this.$$set({ displaybalanceoption: t }), V();
5104
+ this.$$set({ displaybalanceoption: t }), X();
5101
5105
  }
5102
5106
  get totalcalculationmode() {
5103
5107
  return this.$$.ctx[7];
5104
5108
  }
5105
5109
  set totalcalculationmode(t) {
5106
- this.$$set({ totalcalculationmode: t }), V();
5110
+ this.$$set({ totalcalculationmode: t }), X();
5107
5111
  }
5108
5112
  get currencylocale() {
5109
5113
  return this.$$.ctx[18];
5110
5114
  }
5111
5115
  set currencylocale(t) {
5112
- this.$$set({ currencylocale: t }), V();
5116
+ this.$$set({ currencylocale: t }), X();
5113
5117
  }
5114
5118
  get currencydisplay() {
5115
5119
  return this.$$.ctx[19];
5116
5120
  }
5117
5121
  set currencydisplay(t) {
5118
- this.$$set({ currencydisplay: t }), V();
5122
+ this.$$set({ currencydisplay: t }), X();
5119
5123
  }
5120
5124
  get maximumfractiondigits() {
5121
5125
  return this.$$.ctx[20];
5122
5126
  }
5123
5127
  set maximumfractiondigits(t) {
5124
- this.$$set({ maximumfractiondigits: t }), V();
5128
+ this.$$set({ maximumfractiondigits: t }), X();
5125
5129
  }
5126
5130
  get minimumfractiondigits() {
5127
5131
  return this.$$.ctx[21];
5128
5132
  }
5129
5133
  set minimumfractiondigits(t) {
5130
- this.$$set({ minimumfractiondigits: t }), V();
5134
+ this.$$set({ minimumfractiondigits: t }), X();
5131
5135
  }
5132
5136
  get customdisplayformat() {
5133
5137
  return this.$$.ctx[22];
5134
5138
  }
5135
5139
  set customdisplayformat(t) {
5136
- this.$$set({ customdisplayformat: t }), V();
5140
+ this.$$set({ customdisplayformat: t }), X();
5137
5141
  }
5138
5142
  }
5139
- Nr(Po, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencylocale: {}, currencydisplay: {}, maximumfractiondigits: {}, minimumfractiondigits: {}, customdisplayformat: {} }, [], [], !0);
5143
+ Nr(Io, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencylocale: {}, currencydisplay: {}, maximumfractiondigits: {}, minimumfractiondigits: {}, customdisplayformat: {} }, [], [], !0);
5140
5144
  export {
5141
- Po as default
5145
+ Io as default
5142
5146
  };