@everymatrix/player-account-balance-modal-nd 1.54.12 → 1.56.0

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.
@@ -14,18 +14,18 @@ var se = (e, t, n) => Rt(e, typeof t != "symbol" ? t + "" : t, n);
14
14
  var Nt = (e, t, n) => new Promise((r, i) => {
15
15
  var o = (c) => {
16
16
  try {
17
- a(n.next(c));
17
+ s(n.next(c));
18
18
  } catch (u) {
19
19
  i(u);
20
20
  }
21
21
  }, l = (c) => {
22
22
  try {
23
- a(n.throw(c));
23
+ s(n.throw(c));
24
24
  } catch (u) {
25
25
  i(u);
26
26
  }
27
- }, a = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(o, l);
28
- a((n = n.apply(e, t)).next());
27
+ }, s = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(o, l);
28
+ s((n = n.apply(e, t)).next());
29
29
  });
30
30
  function le() {
31
31
  }
@@ -35,7 +35,7 @@ function Ln(e) {
35
35
  function ln() {
36
36
  return /* @__PURE__ */ Object.create(null);
37
37
  }
38
- function je(e) {
38
+ function Ve(e) {
39
39
  e.forEach(Ln);
40
40
  }
41
41
  function tn(e) {
@@ -65,7 +65,7 @@ function C(e, t) {
65
65
  function br(e, t, n) {
66
66
  const r = yr(e);
67
67
  if (!r.getElementById(t)) {
68
- const i = $("style");
68
+ const i = k("style");
69
69
  i.id = t, i.textContent = n, vr(r, i);
70
70
  }
71
71
  }
@@ -88,38 +88,38 @@ function vr(e, t) {
88
88
  function ge(e, t, n) {
89
89
  e.insertBefore(t, n || null);
90
90
  }
91
- function fe(e) {
91
+ function de(e) {
92
92
  e.parentNode && e.parentNode.removeChild(e);
93
93
  }
94
94
  function In(e, t) {
95
95
  for (let n = 0; n < e.length; n += 1)
96
96
  e[n] && e[n].d(t);
97
97
  }
98
- function $(e) {
98
+ function k(e) {
99
99
  return document.createElement(e);
100
100
  }
101
101
  function un(e) {
102
102
  return document.createElementNS("http://www.w3.org/2000/svg", e);
103
103
  }
104
- function he(e) {
104
+ function fe(e) {
105
105
  return document.createTextNode(e);
106
106
  }
107
- function de() {
108
- return he(" ");
107
+ function pe() {
108
+ return fe(" ");
109
109
  }
110
110
  function Er() {
111
- return he("");
111
+ return fe("");
112
112
  }
113
- function pt(e, t, n, r) {
113
+ function mt(e, t, n, r) {
114
114
  return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
115
115
  }
116
- function M(e, t, n) {
116
+ function N(e, t, n) {
117
117
  n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
118
118
  }
119
119
  function xr(e) {
120
120
  return Array.from(e.childNodes);
121
121
  }
122
- function Be(e, t) {
122
+ function xe(e, t) {
123
123
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
124
124
  t);
125
125
  }
@@ -132,88 +132,88 @@ function _r(e) {
132
132
  }
133
133
  ), t;
134
134
  }
135
- let et;
136
- function Ke(e) {
137
- et = e;
135
+ let tt;
136
+ function et(e) {
137
+ tt = e;
138
138
  }
139
139
  function Br() {
140
- if (!et) throw new Error("Function called outside component initialization");
141
- return et;
140
+ if (!tt) throw new Error("Function called outside component initialization");
141
+ return tt;
142
142
  }
143
143
  function Tr(e) {
144
144
  Br().$$.on_mount.push(e);
145
145
  }
146
- const Pe = [], jt = [];
147
- let De = [];
146
+ const Ue = [], jt = [];
147
+ let Fe = [];
148
148
  const cn = [], wr = /* @__PURE__ */ Promise.resolve();
149
149
  let kt = !1;
150
150
  function Sr() {
151
- kt || (kt = !0, wr.then(Q));
151
+ kt || (kt = !0, wr.then(J));
152
152
  }
153
153
  function Vt(e) {
154
- De.push(e);
154
+ Fe.push(e);
155
155
  }
156
156
  const It = /* @__PURE__ */ new Set();
157
- let Ne = 0;
158
- function Q() {
159
- if (Ne !== 0)
157
+ let Pe = 0;
158
+ function J() {
159
+ if (Pe !== 0)
160
160
  return;
161
- const e = et;
161
+ const e = tt;
162
162
  do {
163
163
  try {
164
- for (; Ne < Pe.length; ) {
165
- const t = Pe[Ne];
166
- Ne++, Ke(t), Ar(t.$$);
164
+ for (; Pe < Ue.length; ) {
165
+ const t = Ue[Pe];
166
+ Pe++, et(t), Ar(t.$$);
167
167
  }
168
168
  } catch (t) {
169
- throw Pe.length = 0, Ne = 0, t;
169
+ throw Ue.length = 0, Pe = 0, t;
170
170
  }
171
- for (Ke(null), Pe.length = 0, Ne = 0; jt.length; ) jt.pop()();
172
- for (let t = 0; t < De.length; t += 1) {
173
- const n = De[t];
171
+ for (et(null), Ue.length = 0, Pe = 0; jt.length; ) jt.pop()();
172
+ for (let t = 0; t < Fe.length; t += 1) {
173
+ const n = Fe[t];
174
174
  It.has(n) || (It.add(n), n());
175
175
  }
176
- De.length = 0;
177
- } while (Pe.length);
176
+ Fe.length = 0;
177
+ } while (Ue.length);
178
178
  for (; cn.length; )
179
179
  cn.pop()();
180
- kt = !1, It.clear(), Ke(e);
180
+ kt = !1, It.clear(), et(e);
181
181
  }
182
182
  function Ar(e) {
183
183
  if (e.fragment !== null) {
184
- e.update(), je(e.before_update);
184
+ e.update(), Ve(e.before_update);
185
185
  const t = e.dirty;
186
186
  e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Vt);
187
187
  }
188
188
  }
189
189
  function Cr(e) {
190
190
  const t = [], n = [];
191
- De.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), De = 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 Hr = /* @__PURE__ */ new Set();
194
194
  function Or(e, t) {
195
195
  e && e.i && (Hr.delete(e), e.i(t));
196
196
  }
197
- function mt(e) {
197
+ function gt(e) {
198
198
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
199
199
  }
200
200
  function Rr(e, t, n) {
201
201
  const { fragment: r, after_update: i } = e.$$;
202
202
  r && r.m(t, n), Vt(() => {
203
203
  const o = e.$$.on_mount.map(Ln).filter(tn);
204
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : je(o), e.$$.on_mount = [];
204
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Ve(o), e.$$.on_mount = [];
205
205
  }), i.forEach(Vt);
206
206
  }
207
207
  function Lr(e, t) {
208
208
  const n = e.$$;
209
- n.fragment !== null && (Cr(n.after_update), je(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
209
+ n.fragment !== null && (Cr(n.after_update), Ve(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
210
210
  }
211
211
  function Mr(e, t) {
212
- e.$$.dirty[0] === -1 && (Pe.push(e), Sr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
212
+ e.$$.dirty[0] === -1 && (Ue.push(e), Sr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
213
213
  }
214
- function Nr(e, t, n, r, i, o, l = null, a = [-1]) {
215
- const c = et;
216
- Ke(e);
214
+ function Nr(e, t, n, r, i, o, l = null, s = [-1]) {
215
+ const c = tt;
216
+ et(e);
217
217
  const u = e.$$ = {
218
218
  fragment: null,
219
219
  ctx: [],
@@ -231,24 +231,24 @@ function Nr(e, t, n, r, i, o, l = null, a = [-1]) {
231
231
  context: new Map(t.context || (c ? c.$$.context : [])),
232
232
  // everything else
233
233
  callbacks: ln(),
234
- dirty: a,
234
+ dirty: s,
235
235
  skip_bound: !1,
236
236
  root: t.target || c.$$.root
237
237
  };
238
238
  l && l(u.root);
239
239
  let d = !1;
240
- if (u.ctx = n ? n(e, t.props || {}, (b, y, ...T) => {
241
- const _ = T.length ? T[0] : y;
242
- return u.ctx && i(u.ctx[b], u.ctx[b] = _) && (!u.skip_bound && u.bound[b] && u.bound[b](_), d && Mr(e, b)), y;
243
- }) : [], u.update(), d = !0, je(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
240
+ if (u.ctx = n ? n(e, t.props || {}, (g, b, ..._) => {
241
+ const B = _.length ? _[0] : b;
242
+ return u.ctx && i(u.ctx[g], u.ctx[g] = B) && (!u.skip_bound && u.bound[g] && u.bound[g](B), d && Mr(e, g)), b;
243
+ }) : [], u.update(), d = !0, Ve(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
244
244
  if (t.hydrate) {
245
- const b = xr(t.target);
246
- u.fragment && u.fragment.l(b), b.forEach(fe);
245
+ const g = xr(t.target);
246
+ u.fragment && u.fragment.l(g), g.forEach(de);
247
247
  } else
248
248
  u.fragment && u.fragment.c();
249
- t.intro && Or(e.$$.fragment), Rr(e, t.target, t.anchor), Q();
249
+ t.intro && Or(e.$$.fragment), Rr(e, t.target, t.anchor), J();
250
250
  }
251
- Ke(c);
251
+ et(c);
252
252
  }
253
253
  let Pn;
254
254
  typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
@@ -295,7 +295,7 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
295
295
  let l;
296
296
  return {
297
297
  c: function() {
298
- l = $("slot"), o !== "default" && M(l, "name", o);
298
+ l = k("slot"), o !== "default" && N(l, "name", o);
299
299
  },
300
300
  /**
301
301
  * @param {HTMLElement} target
@@ -305,7 +305,7 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
305
305
  ge(u, l, d);
306
306
  },
307
307
  d: function(u) {
308
- u && fe(l);
308
+ u && de(l);
309
309
  }
310
310
  };
311
311
  };
@@ -317,7 +317,7 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
317
317
  o in r && (n[o] = [t(o)]);
318
318
  for (const o of this.attributes) {
319
319
  const l = this.$$g_p(o.name);
320
- l in this.$$d || (this.$$d[l] = ct(l, o.value, this.$$p_d, "toProp"));
320
+ l in this.$$d || (this.$$d[l] = ht(l, o.value, this.$$p_d, "toProp"));
321
321
  }
322
322
  for (const o in this.$$p_d)
323
323
  !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
@@ -334,7 +334,7 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
334
334
  this.$$r = !0;
335
335
  for (const o in this.$$p_d)
336
336
  if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
337
- const l = ct(
337
+ const l = ht(
338
338
  o,
339
339
  this.$$d[o],
340
340
  this.$$p_d,
@@ -347,8 +347,8 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
347
347
  this.$$c.$$.after_update.push(i), i();
348
348
  for (const o in this.$$l)
349
349
  for (const l of this.$$l[o]) {
350
- const a = this.$$c.$on(o, l);
351
- this.$$l_u.set(l, a);
350
+ const s = this.$$c.$on(o, l);
351
+ this.$$l_u.set(l, s);
352
352
  }
353
353
  this.$$l = {};
354
354
  }
@@ -358,7 +358,7 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
358
358
  // and setting attributes through setAttribute etc, this is helpful
359
359
  attributeChangedCallback(t, n, r) {
360
360
  var i;
361
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = ct(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
361
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = ht(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
362
362
  }
363
363
  disconnectedCallback() {
364
364
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -371,7 +371,7 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
371
371
  ) || t;
372
372
  }
373
373
  });
374
- function ct(e, t, n, r) {
374
+ function ht(e, t, n, r) {
375
375
  var o;
376
376
  const i = (o = n[e]) == null ? void 0 : o.type;
377
377
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
@@ -408,25 +408,25 @@ function Ir(e, t, n, r, i, o) {
408
408
  }
409
409
  static get observedAttributes() {
410
410
  return Object.keys(t).map(
411
- (a) => (t[a].attribute || a).toLowerCase()
411
+ (s) => (t[s].attribute || s).toLowerCase()
412
412
  );
413
413
  }
414
414
  };
415
- return Object.keys(t).forEach((a) => {
416
- Object.defineProperty(l.prototype, a, {
415
+ return Object.keys(t).forEach((s) => {
416
+ Object.defineProperty(l.prototype, s, {
417
417
  get() {
418
- return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
418
+ return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
419
419
  },
420
420
  set(c) {
421
421
  var u;
422
- c = ct(a, c, t), this.$$d[a] = c, (u = this.$$c) == null || u.$set({ [a]: c });
422
+ c = ht(s, c, t), this.$$d[s] = c, (u = this.$$c) == null || u.$set({ [s]: c });
423
423
  }
424
424
  });
425
- }), r.forEach((a) => {
426
- Object.defineProperty(l.prototype, a, {
425
+ }), r.forEach((s) => {
426
+ Object.defineProperty(l.prototype, s, {
427
427
  get() {
428
428
  var c;
429
- return (c = this.$$c) == null ? void 0 : c[a];
429
+ return (c = this.$$c) == null ? void 0 : c[s];
430
430
  }
431
431
  });
432
432
  }), e.element = /** @type {any} */
@@ -480,111 +480,134 @@ class Pr {
480
480
  }
481
481
  const Dr = "4";
482
482
  typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Dr);
483
- const Ie = [];
484
483
  function Ur(e, t) {
484
+ if (e) {
485
+ const n = document.createElement("style");
486
+ n.innerHTML = t, e.appendChild(n);
487
+ }
488
+ }
489
+ function Fr(e, t) {
490
+ const n = new URL(t);
491
+ fetch(n.href).then((r) => r.text()).then((r) => {
492
+ const i = document.createElement("style");
493
+ i.innerHTML = r, e && e.appendChild(i);
494
+ }).catch((r) => {
495
+ console.error("There was an error while trying to load client styling from URL", r);
496
+ });
497
+ }
498
+ function Gr(e, t, n) {
499
+ if (window.emMessageBus) {
500
+ const r = document.createElement("style");
501
+ window.emMessageBus.subscribe(t, (i) => {
502
+ r.innerHTML = i, e && e.appendChild(r);
503
+ });
504
+ }
505
+ }
506
+ const De = [];
507
+ function $r(e, t) {
485
508
  return {
486
- subscribe: yt(e, t).subscribe
509
+ subscribe: vt(e, t).subscribe
487
510
  };
488
511
  }
489
- function yt(e, t = le) {
512
+ function vt(e, t = le) {
490
513
  let n;
491
514
  const r = /* @__PURE__ */ new Set();
492
- function i(a) {
493
- if (Mn(e, a) && (e = a, n)) {
494
- const c = !Ie.length;
515
+ function i(s) {
516
+ if (Mn(e, s) && (e = s, n)) {
517
+ const c = !De.length;
495
518
  for (const u of r)
496
- u[1](), Ie.push(u, e);
519
+ u[1](), De.push(u, e);
497
520
  if (c) {
498
- for (let u = 0; u < Ie.length; u += 2)
499
- Ie[u][0](Ie[u + 1]);
500
- Ie.length = 0;
521
+ for (let u = 0; u < De.length; u += 2)
522
+ De[u][0](De[u + 1]);
523
+ De.length = 0;
501
524
  }
502
525
  }
503
526
  }
504
- function o(a) {
505
- i(a(e));
527
+ function o(s) {
528
+ i(s(e));
506
529
  }
507
- function l(a, c = le) {
508
- const u = [a, c];
509
- return r.add(u), r.size === 1 && (n = t(i, o) || le), a(e), () => {
530
+ function l(s, c = le) {
531
+ const u = [s, c];
532
+ return r.add(u), r.size === 1 && (n = t(i, o) || le), s(e), () => {
510
533
  r.delete(u), r.size === 0 && n && (n(), n = null);
511
534
  };
512
535
  }
513
536
  return { set: i, update: o, subscribe: l };
514
537
  }
515
- function ke(e, t, n) {
538
+ function Xe(e, t, n) {
516
539
  const r = !Array.isArray(e), i = r ? [e] : e;
517
540
  if (!i.every(Boolean))
518
541
  throw new Error("derived() expects stores as input, got a falsy value");
519
542
  const o = t.length < 2;
520
- return Ur(n, (l, a) => {
543
+ return $r(n, (l, s) => {
521
544
  let c = !1;
522
545
  const u = [];
523
- let d = 0, b = le;
524
- const y = () => {
546
+ let d = 0, g = le;
547
+ const b = () => {
525
548
  if (d)
526
549
  return;
527
- b();
528
- const _ = t(r ? u[0] : u, l, a);
529
- o ? l(_) : b = tn(_) ? _ : le;
530
- }, T = i.map(
531
- (_, H) => Nn(
532
- _,
533
- (B) => {
534
- u[H] = B, d &= ~(1 << H), c && y();
550
+ g();
551
+ const B = t(r ? u[0] : u, l, s);
552
+ o ? l(B) : g = tn(B) ? B : le;
553
+ }, _ = i.map(
554
+ (B, T) => Nn(
555
+ B,
556
+ (x) => {
557
+ u[T] = x, d &= ~(1 << T), c && b();
535
558
  },
536
559
  () => {
537
- d |= 1 << H;
560
+ d |= 1 << T;
538
561
  }
539
562
  )
540
563
  );
541
- return c = !0, y(), function() {
542
- je(T), b(), c = !1;
564
+ return c = !0, b(), function() {
565
+ Ve(_), g(), c = !1;
543
566
  };
544
567
  });
545
568
  }
546
- var Fr = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
547
- function Gr(e) {
569
+ var jr = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
570
+ function kr(e) {
548
571
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
549
572
  }
550
- var $r = function(t) {
551
- return jr(t) && !kr(t);
573
+ var Vr = function(t) {
574
+ return Xr(t) && !zr(t);
552
575
  };
553
- function jr(e) {
576
+ function Xr(e) {
554
577
  return !!e && typeof e == "object";
555
578
  }
556
- function kr(e) {
579
+ function zr(e) {
557
580
  var t = Object.prototype.toString.call(e);
558
- return t === "[object RegExp]" || t === "[object Date]" || zr(e);
581
+ return t === "[object RegExp]" || t === "[object Date]" || qr(e);
559
582
  }
560
- var Vr = typeof Symbol == "function" && Symbol.for, Xr = Vr ? Symbol.for("react.element") : 60103;
561
- function zr(e) {
562
- return e.$$typeof === Xr;
583
+ var Wr = typeof Symbol == "function" && Symbol.for, Zr = Wr ? Symbol.for("react.element") : 60103;
584
+ function qr(e) {
585
+ return e.$$typeof === Zr;
563
586
  }
564
- function Wr(e) {
587
+ function Qr(e) {
565
588
  return Array.isArray(e) ? [] : {};
566
589
  }
567
- function tt(e, t) {
568
- return t.clone !== !1 && t.isMergeableObject(e) ? Ue(Wr(e), e, t) : e;
590
+ function nt(e, t) {
591
+ return t.clone !== !1 && t.isMergeableObject(e) ? Ge(Qr(e), e, t) : e;
569
592
  }
570
- function Zr(e, t, n) {
593
+ function Jr(e, t, n) {
571
594
  return e.concat(t).map(function(r) {
572
- return tt(r, n);
595
+ return nt(r, n);
573
596
  });
574
597
  }
575
- function qr(e, t) {
598
+ function Yr(e, t) {
576
599
  if (!t.customMerge)
577
- return Ue;
600
+ return Ge;
578
601
  var n = t.customMerge(e);
579
- return typeof n == "function" ? n : Ue;
602
+ return typeof n == "function" ? n : Ge;
580
603
  }
581
- function Qr(e) {
604
+ function Kr(e) {
582
605
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
583
606
  return Object.propertyIsEnumerable.call(e, t);
584
607
  }) : [];
585
608
  }
586
609
  function hn(e) {
587
- return Object.keys(e).concat(Qr(e));
610
+ return Object.keys(e).concat(Kr(e));
588
611
  }
589
612
  function Dn(e, t) {
590
613
  try {
@@ -593,31 +616,31 @@ function Dn(e, t) {
593
616
  return !1;
594
617
  }
595
618
  }
596
- function Jr(e, t) {
619
+ function ei(e, t) {
597
620
  return Dn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
598
621
  }
599
- function Yr(e, t, n) {
622
+ function ti(e, t, n) {
600
623
  var r = {};
601
624
  return n.isMergeableObject(e) && hn(e).forEach(function(i) {
602
- r[i] = tt(e[i], n);
625
+ r[i] = nt(e[i], n);
603
626
  }), hn(t).forEach(function(i) {
604
- Jr(e, i) || (Dn(e, i) && n.isMergeableObject(t[i]) ? r[i] = qr(i, n)(e[i], t[i], n) : r[i] = tt(t[i], n));
627
+ ei(e, i) || (Dn(e, i) && n.isMergeableObject(t[i]) ? r[i] = Yr(i, n)(e[i], t[i], n) : r[i] = nt(t[i], n));
605
628
  }), r;
606
629
  }
607
- function Ue(e, t, n) {
608
- n = n || {}, n.arrayMerge = n.arrayMerge || Zr, n.isMergeableObject = n.isMergeableObject || $r, n.cloneUnlessOtherwiseSpecified = tt;
630
+ function Ge(e, t, n) {
631
+ n = n || {}, n.arrayMerge = n.arrayMerge || Jr, n.isMergeableObject = n.isMergeableObject || Vr, n.cloneUnlessOtherwiseSpecified = nt;
609
632
  var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
610
- return o ? r ? n.arrayMerge(e, t, n) : Yr(e, t, n) : tt(t, n);
633
+ return o ? r ? n.arrayMerge(e, t, n) : ti(e, t, n) : nt(t, n);
611
634
  }
612
- Ue.all = function(t, n) {
635
+ Ge.all = function(t, n) {
613
636
  if (!Array.isArray(t))
614
637
  throw new Error("first argument should be an array");
615
638
  return t.reduce(function(r, i) {
616
- return Ue(r, i, n);
639
+ return Ge(r, i, n);
617
640
  }, {});
618
641
  };
619
- var Kr = Ue, ei = Kr;
620
- const ti = /* @__PURE__ */ Gr(ei);
642
+ var ni = Ge, ri = ni;
643
+ const ii = /* @__PURE__ */ kr(ri);
621
644
  var Xt = function(e, t) {
622
645
  return Xt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
623
646
  n.__proto__ = r;
@@ -625,7 +648,7 @@ var Xt = function(e, t) {
625
648
  for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
626
649
  }, Xt(e, t);
627
650
  };
628
- function vt(e, t) {
651
+ function Et(e, t) {
629
652
  if (typeof t != "function" && t !== null)
630
653
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
631
654
  Xt(e, t);
@@ -643,7 +666,7 @@ var I = function() {
643
666
  return t;
644
667
  }, I.apply(this, arguments);
645
668
  };
646
- function ni(e, t) {
669
+ function oi(e, t) {
647
670
  var n = {};
648
671
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
649
672
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -657,17 +680,17 @@ function Pt(e, t, n) {
657
680
  return e.concat(o || Array.prototype.slice.call(t));
658
681
  }
659
682
  function Dt(e, t) {
660
- var n = t && t.cache ? t.cache : ui, r = t && t.serializer ? t.serializer : si, i = t && t.strategy ? t.strategy : oi;
683
+ var n = t && t.cache ? t.cache : fi, r = t && t.serializer ? t.serializer : ci, i = t && t.strategy ? t.strategy : li;
661
684
  return i(e, {
662
685
  cache: n,
663
686
  serializer: r
664
687
  });
665
688
  }
666
- function ri(e) {
689
+ function ai(e) {
667
690
  return e == null || typeof e == "number" || typeof e == "boolean";
668
691
  }
669
- function ii(e, t, n, r) {
670
- var i = ri(r) ? r : n(r), o = t.get(i);
692
+ function si(e, t, n, r) {
693
+ var i = ai(r) ? r : n(r), o = t.get(i);
671
694
  return typeof o == "undefined" && (o = e.call(this, r), t.set(i, o)), o;
672
695
  }
673
696
  function Un(e, t, n) {
@@ -677,16 +700,16 @@ function Un(e, t, n) {
677
700
  function Fn(e, t, n, r, i) {
678
701
  return n.bind(t, e, r, i);
679
702
  }
680
- function oi(e, t) {
681
- var n = e.length === 1 ? ii : Un;
703
+ function li(e, t) {
704
+ var n = e.length === 1 ? si : Un;
682
705
  return Fn(e, this, n, t.cache.create(), t.serializer);
683
706
  }
684
- function ai(e, t) {
707
+ function ui(e, t) {
685
708
  return Fn(e, this, Un, t.cache.create(), t.serializer);
686
709
  }
687
- var si = function() {
710
+ var ci = function() {
688
711
  return JSON.stringify(arguments);
689
- }, li = (
712
+ }, hi = (
690
713
  /** @class */
691
714
  function() {
692
715
  function e() {
@@ -698,61 +721,61 @@ var si = function() {
698
721
  this.cache[t] = n;
699
722
  }, e;
700
723
  }()
701
- ), ui = {
724
+ ), fi = {
702
725
  create: function() {
703
- return new li();
726
+ return new hi();
704
727
  }
705
728
  }, Ut = {
706
- variadic: ai
707
- }, R;
729
+ variadic: ui
730
+ }, O;
708
731
  (function(e) {
709
732
  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";
710
- })(R || (R = {}));
711
- var G;
733
+ })(O || (O = {}));
734
+ var j;
712
735
  (function(e) {
713
736
  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";
714
- })(G || (G = {}));
715
- var Fe;
737
+ })(j || (j = {}));
738
+ var $e;
716
739
  (function(e) {
717
740
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
718
- })(Fe || (Fe = {}));
741
+ })($e || ($e = {}));
719
742
  function fn(e) {
720
- return e.type === G.literal;
743
+ return e.type === j.literal;
721
744
  }
722
- function ci(e) {
723
- return e.type === G.argument;
745
+ function di(e) {
746
+ return e.type === j.argument;
724
747
  }
725
748
  function Gn(e) {
726
- return e.type === G.number;
749
+ return e.type === j.number;
727
750
  }
728
751
  function $n(e) {
729
- return e.type === G.date;
752
+ return e.type === j.date;
730
753
  }
731
754
  function jn(e) {
732
- return e.type === G.time;
755
+ return e.type === j.time;
733
756
  }
734
757
  function kn(e) {
735
- return e.type === G.select;
758
+ return e.type === j.select;
736
759
  }
737
760
  function Vn(e) {
738
- return e.type === G.plural;
761
+ return e.type === j.plural;
739
762
  }
740
- function hi(e) {
741
- return e.type === G.pound;
763
+ function pi(e) {
764
+ return e.type === j.pound;
742
765
  }
743
766
  function Xn(e) {
744
- return e.type === G.tag;
767
+ return e.type === j.tag;
745
768
  }
746
769
  function zn(e) {
747
- return !!(e && typeof e == "object" && e.type === Fe.number);
770
+ return !!(e && typeof e == "object" && e.type === $e.number);
748
771
  }
749
772
  function zt(e) {
750
- return !!(e && typeof e == "object" && e.type === Fe.dateTime);
773
+ return !!(e && typeof e == "object" && e.type === $e.dateTime);
751
774
  }
752
- var Wn = /[ \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;
753
- function di(e) {
775
+ var Wn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, mi = /(?:[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;
776
+ function gi(e) {
754
777
  var t = {};
755
- return e.replace(fi, function(n) {
778
+ return e.replace(mi, function(n) {
756
779
  var r = n.length;
757
780
  switch (n[0]) {
758
781
  case "G":
@@ -841,29 +864,29 @@ function di(e) {
841
864
  return "";
842
865
  }), t;
843
866
  }
844
- var pi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
845
- function mi(e) {
867
+ var bi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
868
+ function yi(e) {
846
869
  if (e.length === 0)
847
870
  throw new Error("Number skeleton cannot be empty");
848
- for (var t = e.split(pi).filter(function(y) {
849
- return y.length > 0;
871
+ for (var t = e.split(bi).filter(function(b) {
872
+ return b.length > 0;
850
873
  }), n = [], r = 0, i = t; r < i.length; r++) {
851
874
  var o = i[r], l = o.split("/");
852
875
  if (l.length === 0)
853
876
  throw new Error("Invalid number skeleton");
854
- for (var a = l[0], c = l.slice(1), u = 0, d = c; u < d.length; u++) {
855
- var b = d[u];
856
- if (b.length === 0)
877
+ for (var s = l[0], c = l.slice(1), u = 0, d = c; u < d.length; u++) {
878
+ var g = d[u];
879
+ if (g.length === 0)
857
880
  throw new Error("Invalid number skeleton");
858
881
  }
859
- n.push({ stem: a, options: c });
882
+ n.push({ stem: s, options: c });
860
883
  }
861
884
  return n;
862
885
  }
863
- function gi(e) {
886
+ function vi(e) {
864
887
  return e.replace(/^(.*?)-/, "");
865
888
  }
866
- var dn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Zn = /^(@+)?(\+|#+)?[rs]?$/g, bi = /(\*)(0+)|(#+)(0+)|(0+)/g, qn = /^(0+)$/;
889
+ var dn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Zn = /^(@+)?(\+|#+)?[rs]?$/g, Ei = /(\*)(0+)|(#+)(0+)|(0+)/g, qn = /^(0+)$/;
867
890
  function pn(e) {
868
891
  var t = {};
869
892
  return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Zn, function(n, r, i) {
@@ -910,7 +933,7 @@ function Qn(e) {
910
933
  };
911
934
  }
912
935
  }
913
- function yi(e) {
936
+ function xi(e) {
914
937
  var t;
915
938
  if (e[0] === "E" && e[1] === "E" ? (t = {
916
939
  notation: "engineering"
@@ -928,7 +951,7 @@ function mn(e) {
928
951
  var t = {}, n = Qn(e);
929
952
  return n || t;
930
953
  }
931
- function vi(e) {
954
+ function _i(e) {
932
955
  for (var t = {}, n = 0, r = e; n < r.length; n++) {
933
956
  var i = r[n];
934
957
  switch (i.stem) {
@@ -952,7 +975,7 @@ function vi(e) {
952
975
  continue;
953
976
  case "measure-unit":
954
977
  case "unit":
955
- t.style = "unit", t.unit = gi(i.options[0]);
978
+ t.style = "unit", t.unit = vi(i.options[0]);
956
979
  continue;
957
980
  case "compact-short":
958
981
  case "K":
@@ -1014,13 +1037,13 @@ function vi(e) {
1014
1037
  case "integer-width":
1015
1038
  if (i.options.length > 1)
1016
1039
  throw new RangeError("integer-width stems only accept a single optional option");
1017
- i.options[0].replace(bi, function(c, u, d, b, y, T) {
1040
+ i.options[0].replace(Ei, function(c, u, d, g, b, _) {
1018
1041
  if (u)
1019
1042
  t.minimumIntegerDigits = d.length;
1020
1043
  else {
1021
- if (b && y)
1044
+ if (g && b)
1022
1045
  throw new Error("We currently do not support maximum integer digits");
1023
- if (T)
1046
+ if (_)
1024
1047
  throw new Error("We currently do not support exact integer digits");
1025
1048
  }
1026
1049
  return "";
@@ -1034,8 +1057,8 @@ function vi(e) {
1034
1057
  if (dn.test(i.stem)) {
1035
1058
  if (i.options.length > 1)
1036
1059
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1037
- i.stem.replace(dn, function(c, u, d, b, y, T) {
1038
- return d === "*" ? t.minimumFractionDigits = u.length : b && b[0] === "#" ? t.maximumFractionDigits = b.length : y && T ? (t.minimumFractionDigits = y.length, t.maximumFractionDigits = y.length + T.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1060
+ i.stem.replace(dn, function(c, u, d, g, b, _) {
1061
+ return d === "*" ? t.minimumFractionDigits = u.length : g && g[0] === "#" ? t.maximumFractionDigits = g.length : b && _ ? (t.minimumFractionDigits = b.length, t.maximumFractionDigits = b.length + _.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1039
1062
  });
1040
1063
  var o = i.options[0];
1041
1064
  o === "w" ? t = I(I({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = I(I({}, t), pn(o)));
@@ -1047,12 +1070,12 @@ function vi(e) {
1047
1070
  }
1048
1071
  var l = Qn(i.stem);
1049
1072
  l && (t = I(I({}, t), l));
1050
- var a = yi(i.stem);
1051
- a && (t = I(I({}, t), a));
1073
+ var s = xi(i.stem);
1074
+ s && (t = I(I({}, t), s));
1052
1075
  }
1053
1076
  return t;
1054
1077
  }
1055
- var ut = {
1078
+ var ct = {
1056
1079
  "001": [
1057
1080
  "H",
1058
1081
  "h"
@@ -2467,14 +2490,14 @@ var ut = {
2467
2490
  "h"
2468
2491
  ]
2469
2492
  };
2470
- function Ei(e, t) {
2493
+ function Bi(e, t) {
2471
2494
  for (var n = "", r = 0; r < e.length; r++) {
2472
2495
  var i = e.charAt(r);
2473
2496
  if (i === "j") {
2474
2497
  for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2475
2498
  o++, r++;
2476
- var l = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), c = "a", u = xi(t);
2477
- for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2499
+ var l = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), c = "a", u = Ti(t);
2500
+ for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
2478
2501
  n += c;
2479
2502
  for (; l-- > 0; )
2480
2503
  n = u + n;
@@ -2482,7 +2505,7 @@ function Ei(e, t) {
2482
2505
  }
2483
2506
  return n;
2484
2507
  }
2485
- function xi(e) {
2508
+ function Ti(e) {
2486
2509
  var t = e.hourCycle;
2487
2510
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2488
2511
  e.hourCycles && // @ts-ignore
@@ -2501,23 +2524,23 @@ function xi(e) {
2501
2524
  }
2502
2525
  var n = e.language, r;
2503
2526
  n !== "root" && (r = e.maximize().region);
2504
- var i = ut[r || ""] || ut[n || ""] || ut["".concat(n, "-001")] || ut["001"];
2527
+ var i = ct[r || ""] || ct[n || ""] || ct["".concat(n, "-001")] || ct["001"];
2505
2528
  return i[0];
2506
2529
  }
2507
- var Ft, _i = new RegExp("^".concat(Wn.source, "*")), Bi = new RegExp("".concat(Wn.source, "*$"));
2508
- function L(e, t) {
2530
+ var Ft, wi = new RegExp("^".concat(Wn.source, "*")), Si = new RegExp("".concat(Wn.source, "*$"));
2531
+ function M(e, t) {
2509
2532
  return { start: e, end: t };
2510
2533
  }
2511
- var Ti = !!String.prototype.startsWith && "_a".startsWith("a", 1), wi = !!String.fromCodePoint, Si = !!Object.fromEntries, Ai = !!String.prototype.codePointAt, Ci = !!String.prototype.trimStart, Hi = !!String.prototype.trimEnd, Oi = !!Number.isSafeInteger, Ri = Oi ? Number.isSafeInteger : function(e) {
2534
+ var Ai = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ci = !!String.fromCodePoint, Hi = !!Object.fromEntries, Oi = !!String.prototype.codePointAt, Ri = !!String.prototype.trimStart, Li = !!String.prototype.trimEnd, Mi = !!Number.isSafeInteger, Ni = Mi ? Number.isSafeInteger : function(e) {
2512
2535
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2513
2536
  }, Wt = !0;
2514
2537
  try {
2515
- var Li = Yn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2516
- Wt = ((Ft = Li.exec("a")) === null || Ft === void 0 ? void 0 : Ft[0]) === "a";
2538
+ var Ii = Yn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2539
+ Wt = ((Ft = Ii.exec("a")) === null || Ft === void 0 ? void 0 : Ft[0]) === "a";
2517
2540
  } catch (e) {
2518
2541
  Wt = !1;
2519
2542
  }
2520
- var gn = Ti ? (
2543
+ var gn = Ai ? (
2521
2544
  // Native
2522
2545
  function(t, n, r) {
2523
2546
  return t.startsWith(n, r);
@@ -2527,7 +2550,7 @@ var gn = Ti ? (
2527
2550
  function(t, n, r) {
2528
2551
  return t.slice(r, r + n.length) === n;
2529
2552
  }
2530
- ), Zt = wi ? String.fromCodePoint : (
2553
+ ), Zt = Ci ? String.fromCodePoint : (
2531
2554
  // IE11
2532
2555
  function() {
2533
2556
  for (var t = [], n = 0; n < arguments.length; n++)
@@ -2541,17 +2564,17 @@ var gn = Ti ? (
2541
2564
  }
2542
2565
  ), bn = (
2543
2566
  // native
2544
- Si ? Object.fromEntries : (
2567
+ Hi ? Object.fromEntries : (
2545
2568
  // Ponyfill
2546
2569
  function(t) {
2547
2570
  for (var n = {}, r = 0, i = t; r < i.length; r++) {
2548
- var o = i[r], l = o[0], a = o[1];
2549
- n[l] = a;
2571
+ var o = i[r], l = o[0], s = o[1];
2572
+ n[l] = s;
2550
2573
  }
2551
2574
  return n;
2552
2575
  }
2553
2576
  )
2554
- ), Jn = Ai ? (
2577
+ ), Jn = Oi ? (
2555
2578
  // Native
2556
2579
  function(t, n) {
2557
2580
  return t.codePointAt(n);
@@ -2565,7 +2588,7 @@ var gn = Ti ? (
2565
2588
  return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2566
2589
  }
2567
2590
  }
2568
- ), Mi = Ci ? (
2591
+ ), Pi = Ri ? (
2569
2592
  // Native
2570
2593
  function(t) {
2571
2594
  return t.trimStart();
@@ -2573,9 +2596,9 @@ var gn = Ti ? (
2573
2596
  ) : (
2574
2597
  // Ponyfill
2575
2598
  function(t) {
2576
- return t.replace(_i, "");
2599
+ return t.replace(wi, "");
2577
2600
  }
2578
- ), Ni = Hi ? (
2601
+ ), Di = Li ? (
2579
2602
  // Native
2580
2603
  function(t) {
2581
2604
  return t.trimEnd();
@@ -2583,7 +2606,7 @@ var gn = Ti ? (
2583
2606
  ) : (
2584
2607
  // Ponyfill
2585
2608
  function(t) {
2586
- return t.replace(Bi, "");
2609
+ return t.replace(Si, "");
2587
2610
  }
2588
2611
  );
2589
2612
  function Yn(e, t) {
@@ -2602,13 +2625,13 @@ if (Wt) {
2602
2625
  qt = function(t, n) {
2603
2626
  for (var r = []; ; ) {
2604
2627
  var i = Jn(t, n);
2605
- if (i === void 0 || Kn(i) || Ui(i))
2628
+ if (i === void 0 || Kn(i) || $i(i))
2606
2629
  break;
2607
2630
  r.push(i), n += i >= 65536 ? 2 : 1;
2608
2631
  }
2609
2632
  return Zt.apply(void 0, r);
2610
2633
  };
2611
- var Ii = (
2634
+ var Ui = (
2612
2635
  /** @class */
2613
2636
  function() {
2614
2637
  function e(t, n) {
@@ -2630,15 +2653,15 @@ var Ii = (
2630
2653
  if (o === 125 && t > 0)
2631
2654
  break;
2632
2655
  if (o === 35 && (n === "plural" || n === "selectordinal")) {
2633
- var a = this.clonePosition();
2656
+ var s = this.clonePosition();
2634
2657
  this.bump(), i.push({
2635
- type: G.pound,
2636
- location: L(a, this.clonePosition())
2658
+ type: j.pound,
2659
+ location: M(s, this.clonePosition())
2637
2660
  });
2638
2661
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2639
2662
  if (r)
2640
2663
  break;
2641
- return this.error(R.UNMATCHED_CLOSING_TAG, L(this.clonePosition(), this.clonePosition()));
2664
+ return this.error(O.UNMATCHED_CLOSING_TAG, M(this.clonePosition(), this.clonePosition()));
2642
2665
  } else if (o === 60 && !this.ignoreTag && Qt(this.peek() || 0)) {
2643
2666
  var l = this.parseTag(t, n);
2644
2667
  if (l.err)
@@ -2660,9 +2683,9 @@ var Ii = (
2660
2683
  if (this.bumpSpace(), this.bumpIf("/>"))
2661
2684
  return {
2662
2685
  val: {
2663
- type: G.literal,
2686
+ type: j.literal,
2664
2687
  value: "<".concat(i, "/>"),
2665
- location: L(r, this.clonePosition())
2688
+ location: M(r, this.clonePosition())
2666
2689
  },
2667
2690
  err: null
2668
2691
  };
@@ -2670,27 +2693,27 @@ var Ii = (
2670
2693
  var o = this.parseMessage(t + 1, n, !0);
2671
2694
  if (o.err)
2672
2695
  return o;
2673
- var l = o.val, a = this.clonePosition();
2696
+ var l = o.val, s = this.clonePosition();
2674
2697
  if (this.bumpIf("</")) {
2675
2698
  if (this.isEOF() || !Qt(this.char()))
2676
- return this.error(R.INVALID_TAG, L(a, this.clonePosition()));
2699
+ return this.error(O.INVALID_TAG, M(s, this.clonePosition()));
2677
2700
  var c = this.clonePosition(), u = this.parseTagName();
2678
- return i !== u ? this.error(R.UNMATCHED_CLOSING_TAG, L(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2701
+ return i !== u ? this.error(O.UNMATCHED_CLOSING_TAG, M(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2679
2702
  val: {
2680
- type: G.tag,
2703
+ type: j.tag,
2681
2704
  value: i,
2682
2705
  children: l,
2683
- location: L(r, this.clonePosition())
2706
+ location: M(r, this.clonePosition())
2684
2707
  },
2685
2708
  err: null
2686
- } : this.error(R.INVALID_TAG, L(a, this.clonePosition())));
2709
+ } : this.error(O.INVALID_TAG, M(s, this.clonePosition())));
2687
2710
  } else
2688
- return this.error(R.UNCLOSED_TAG, L(r, this.clonePosition()));
2711
+ return this.error(O.UNCLOSED_TAG, M(r, this.clonePosition()));
2689
2712
  } else
2690
- return this.error(R.INVALID_TAG, L(r, this.clonePosition()));
2713
+ return this.error(O.INVALID_TAG, M(r, this.clonePosition()));
2691
2714
  }, e.prototype.parseTagName = function() {
2692
2715
  var t = this.offset();
2693
- for (this.bump(); !this.isEOF() && Di(this.char()); )
2716
+ for (this.bump(); !this.isEOF() && Gi(this.char()); )
2694
2717
  this.bump();
2695
2718
  return this.message.slice(t, this.offset());
2696
2719
  }, e.prototype.parseLiteral = function(t, n) {
@@ -2705,21 +2728,21 @@ var Ii = (
2705
2728
  i += l;
2706
2729
  continue;
2707
2730
  }
2708
- var a = this.tryParseLeftAngleBracket();
2709
- if (a) {
2710
- i += a;
2731
+ var s = this.tryParseLeftAngleBracket();
2732
+ if (s) {
2733
+ i += s;
2711
2734
  continue;
2712
2735
  }
2713
2736
  break;
2714
2737
  }
2715
- var c = L(r, this.clonePosition());
2738
+ var c = M(r, this.clonePosition());
2716
2739
  return {
2717
- val: { type: G.literal, value: i, location: c },
2740
+ val: { type: j.literal, value: i, location: c },
2718
2741
  err: null
2719
2742
  };
2720
2743
  }, e.prototype.tryParseLeftAngleBracket = function() {
2721
2744
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2722
- !Pi(this.peek() || 0)) ? (this.bump(), "<") : null;
2745
+ !Fi(this.peek() || 0)) ? (this.bump(), "<") : null;
2723
2746
  }, e.prototype.tryParseQuote = function(t) {
2724
2747
  if (this.isEOF() || this.char() !== 39)
2725
2748
  return null;
@@ -2762,40 +2785,40 @@ var Ii = (
2762
2785
  }, e.prototype.parseArgument = function(t, n) {
2763
2786
  var r = this.clonePosition();
2764
2787
  if (this.bump(), this.bumpSpace(), this.isEOF())
2765
- return this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition()));
2788
+ return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(r, this.clonePosition()));
2766
2789
  if (this.char() === 125)
2767
- return this.bump(), this.error(R.EMPTY_ARGUMENT, L(r, this.clonePosition()));
2790
+ return this.bump(), this.error(O.EMPTY_ARGUMENT, M(r, this.clonePosition()));
2768
2791
  var i = this.parseIdentifierIfPossible().value;
2769
2792
  if (!i)
2770
- return this.error(R.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
2793
+ return this.error(O.MALFORMED_ARGUMENT, M(r, this.clonePosition()));
2771
2794
  if (this.bumpSpace(), this.isEOF())
2772
- return this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition()));
2795
+ return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(r, this.clonePosition()));
2773
2796
  switch (this.char()) {
2774
2797
  case 125:
2775
2798
  return this.bump(), {
2776
2799
  val: {
2777
- type: G.argument,
2800
+ type: j.argument,
2778
2801
  // value does not include the opening and closing braces.
2779
2802
  value: i,
2780
- location: L(r, this.clonePosition())
2803
+ location: M(r, this.clonePosition())
2781
2804
  },
2782
2805
  err: null
2783
2806
  };
2784
2807
  case 44:
2785
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2808
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2786
2809
  default:
2787
- return this.error(R.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
2810
+ return this.error(O.MALFORMED_ARGUMENT, M(r, this.clonePosition()));
2788
2811
  }
2789
2812
  }, e.prototype.parseIdentifierIfPossible = function() {
2790
2813
  var t = this.clonePosition(), n = this.offset(), r = qt(this.message, n), i = n + r.length;
2791
2814
  this.bumpTo(i);
2792
- var o = this.clonePosition(), l = L(t, o);
2815
+ var o = this.clonePosition(), l = M(t, o);
2793
2816
  return { value: r, location: l };
2794
2817
  }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
2795
- var o, l = this.clonePosition(), a = this.parseIdentifierIfPossible().value, c = this.clonePosition();
2796
- switch (a) {
2818
+ var o, l = this.clonePosition(), s = this.parseIdentifierIfPossible().value, c = this.clonePosition();
2819
+ switch (s) {
2797
2820
  case "":
2798
- return this.error(R.EXPECT_ARGUMENT_TYPE, L(l, c));
2821
+ return this.error(O.EXPECT_ARGUMENT_TYPE, M(l, c));
2799
2822
  case "number":
2800
2823
  case "date":
2801
2824
  case "time": {
@@ -2803,49 +2826,49 @@ var Ii = (
2803
2826
  var u = null;
2804
2827
  if (this.bumpIf(",")) {
2805
2828
  this.bumpSpace();
2806
- var d = this.clonePosition(), b = this.parseSimpleArgStyleIfPossible();
2807
- if (b.err)
2808
- return b;
2809
- var y = Ni(b.val);
2810
- if (y.length === 0)
2811
- return this.error(R.EXPECT_ARGUMENT_STYLE, L(this.clonePosition(), this.clonePosition()));
2812
- var T = L(d, this.clonePosition());
2813
- u = { style: y, styleLocation: T };
2829
+ var d = this.clonePosition(), g = this.parseSimpleArgStyleIfPossible();
2830
+ if (g.err)
2831
+ return g;
2832
+ var b = Di(g.val);
2833
+ if (b.length === 0)
2834
+ return this.error(O.EXPECT_ARGUMENT_STYLE, M(this.clonePosition(), this.clonePosition()));
2835
+ var _ = M(d, this.clonePosition());
2836
+ u = { style: b, styleLocation: _ };
2814
2837
  }
2815
- var _ = this.tryParseArgumentClose(i);
2816
- if (_.err)
2817
- return _;
2818
- var H = L(i, this.clonePosition());
2838
+ var B = this.tryParseArgumentClose(i);
2839
+ if (B.err)
2840
+ return B;
2841
+ var T = M(i, this.clonePosition());
2819
2842
  if (u && gn(u == null ? void 0 : u.style, "::", 0)) {
2820
- var B = Mi(u.style.slice(2));
2821
- if (a === "number") {
2822
- var b = this.parseNumberSkeletonFromString(B, u.styleLocation);
2823
- return b.err ? b : {
2824
- val: { type: G.number, value: r, location: H, style: b.val },
2843
+ var x = Pi(u.style.slice(2));
2844
+ if (s === "number") {
2845
+ var g = this.parseNumberSkeletonFromString(x, u.styleLocation);
2846
+ return g.err ? g : {
2847
+ val: { type: j.number, value: r, location: T, style: g.val },
2825
2848
  err: null
2826
2849
  };
2827
2850
  } else {
2828
- if (B.length === 0)
2829
- return this.error(R.EXPECT_DATE_TIME_SKELETON, H);
2830
- var A = B;
2831
- this.locale && (A = Ei(B, this.locale));
2832
- var y = {
2833
- type: Fe.dateTime,
2834
- pattern: A,
2851
+ if (x.length === 0)
2852
+ return this.error(O.EXPECT_DATE_TIME_SKELETON, T);
2853
+ var S = x;
2854
+ this.locale && (S = Bi(x, this.locale));
2855
+ var b = {
2856
+ type: $e.dateTime,
2857
+ pattern: S,
2835
2858
  location: u.styleLocation,
2836
- parsedOptions: this.shouldParseSkeletons ? di(A) : {}
2837
- }, P = a === "date" ? G.date : G.time;
2859
+ parsedOptions: this.shouldParseSkeletons ? gi(S) : {}
2860
+ }, D = s === "date" ? j.date : j.time;
2838
2861
  return {
2839
- val: { type: P, value: r, location: H, style: y },
2862
+ val: { type: D, value: r, location: T, style: b },
2840
2863
  err: null
2841
2864
  };
2842
2865
  }
2843
2866
  }
2844
2867
  return {
2845
2868
  val: {
2846
- type: a === "number" ? G.number : a === "date" ? G.date : G.time,
2869
+ type: s === "number" ? j.number : s === "date" ? j.date : j.time,
2847
2870
  value: r,
2848
- location: H,
2871
+ location: T,
2849
2872
  style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
2850
2873
  },
2851
2874
  err: null
@@ -2854,52 +2877,52 @@ var Ii = (
2854
2877
  case "plural":
2855
2878
  case "selectordinal":
2856
2879
  case "select": {
2857
- var O = this.clonePosition();
2880
+ var H = this.clonePosition();
2858
2881
  if (this.bumpSpace(), !this.bumpIf(","))
2859
- return this.error(R.EXPECT_SELECT_ARGUMENT_OPTIONS, L(O, I({}, O)));
2882
+ return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS, M(H, I({}, H)));
2860
2883
  this.bumpSpace();
2861
- var k = this.parseIdentifierIfPossible(), X = 0;
2862
- if (a !== "select" && k.value === "offset") {
2884
+ var U = this.parseIdentifierIfPossible(), W = 0;
2885
+ if (s !== "select" && U.value === "offset") {
2863
2886
  if (!this.bumpIf(":"))
2864
- return this.error(R.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, L(this.clonePosition(), this.clonePosition()));
2887
+ return this.error(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, M(this.clonePosition(), this.clonePosition()));
2865
2888
  this.bumpSpace();
2866
- var b = this.tryParseDecimalInteger(R.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, R.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2867
- if (b.err)
2868
- return b;
2869
- this.bumpSpace(), k = this.parseIdentifierIfPossible(), X = b.val;
2889
+ var g = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2890
+ if (g.err)
2891
+ return g;
2892
+ this.bumpSpace(), U = this.parseIdentifierIfPossible(), W = g.val;
2870
2893
  }
2871
- var ne = this.tryParsePluralOrSelectOptions(t, a, n, k);
2872
- if (ne.err)
2873
- return ne;
2874
- var _ = this.tryParseArgumentClose(i);
2875
- if (_.err)
2876
- return _;
2877
- var W = L(i, this.clonePosition());
2878
- return a === "select" ? {
2894
+ var q = this.tryParsePluralOrSelectOptions(t, s, n, U);
2895
+ if (q.err)
2896
+ return q;
2897
+ var B = this.tryParseArgumentClose(i);
2898
+ if (B.err)
2899
+ return B;
2900
+ var Y = M(i, this.clonePosition());
2901
+ return s === "select" ? {
2879
2902
  val: {
2880
- type: G.select,
2903
+ type: j.select,
2881
2904
  value: r,
2882
- options: bn(ne.val),
2883
- location: W
2905
+ options: bn(q.val),
2906
+ location: Y
2884
2907
  },
2885
2908
  err: null
2886
2909
  } : {
2887
2910
  val: {
2888
- type: G.plural,
2911
+ type: j.plural,
2889
2912
  value: r,
2890
- options: bn(ne.val),
2891
- offset: X,
2892
- pluralType: a === "plural" ? "cardinal" : "ordinal",
2893
- location: W
2913
+ options: bn(q.val),
2914
+ offset: W,
2915
+ pluralType: s === "plural" ? "cardinal" : "ordinal",
2916
+ location: Y
2894
2917
  },
2895
2918
  err: null
2896
2919
  };
2897
2920
  }
2898
2921
  default:
2899
- return this.error(R.INVALID_ARGUMENT_TYPE, L(l, c));
2922
+ return this.error(O.INVALID_ARGUMENT_TYPE, M(l, c));
2900
2923
  }
2901
2924
  }, e.prototype.tryParseArgumentClose = function(t) {
2902
- return this.isEOF() || this.char() !== 125 ? this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE, L(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2925
+ return this.isEOF() || this.char() !== 125 ? this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2903
2926
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2904
2927
  for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
2905
2928
  var r = this.char();
@@ -2908,7 +2931,7 @@ var Ii = (
2908
2931
  this.bump();
2909
2932
  var i = this.clonePosition();
2910
2933
  if (!this.bumpUntil("'"))
2911
- return this.error(R.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, L(i, this.clonePosition()));
2934
+ return this.error(O.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, M(i, this.clonePosition()));
2912
2935
  this.bump();
2913
2936
  break;
2914
2937
  }
@@ -2938,64 +2961,64 @@ var Ii = (
2938
2961
  }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
2939
2962
  var r = [];
2940
2963
  try {
2941
- r = mi(t);
2964
+ r = yi(t);
2942
2965
  } catch (i) {
2943
- return this.error(R.INVALID_NUMBER_SKELETON, n);
2966
+ return this.error(O.INVALID_NUMBER_SKELETON, n);
2944
2967
  }
2945
2968
  return {
2946
2969
  val: {
2947
- type: Fe.number,
2970
+ type: $e.number,
2948
2971
  tokens: r,
2949
2972
  location: n,
2950
- parsedOptions: this.shouldParseSkeletons ? vi(r) : {}
2973
+ parsedOptions: this.shouldParseSkeletons ? _i(r) : {}
2951
2974
  },
2952
2975
  err: null
2953
2976
  };
2954
2977
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
2955
- for (var o, l = !1, a = [], c = /* @__PURE__ */ new Set(), u = i.value, d = i.location; ; ) {
2978
+ for (var o, l = !1, s = [], c = /* @__PURE__ */ new Set(), u = i.value, d = i.location; ; ) {
2956
2979
  if (u.length === 0) {
2957
- var b = this.clonePosition();
2980
+ var g = this.clonePosition();
2958
2981
  if (n !== "select" && this.bumpIf("=")) {
2959
- var y = this.tryParseDecimalInteger(R.EXPECT_PLURAL_ARGUMENT_SELECTOR, R.INVALID_PLURAL_ARGUMENT_SELECTOR);
2960
- if (y.err)
2961
- return y;
2962
- d = L(b, this.clonePosition()), u = this.message.slice(b.offset, this.offset());
2982
+ var b = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_SELECTOR, O.INVALID_PLURAL_ARGUMENT_SELECTOR);
2983
+ if (b.err)
2984
+ return b;
2985
+ d = M(g, this.clonePosition()), u = this.message.slice(g.offset, this.offset());
2963
2986
  } else
2964
2987
  break;
2965
2988
  }
2966
2989
  if (c.has(u))
2967
- return this.error(n === "select" ? R.DUPLICATE_SELECT_ARGUMENT_SELECTOR : R.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, d);
2990
+ return this.error(n === "select" ? O.DUPLICATE_SELECT_ARGUMENT_SELECTOR : O.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, d);
2968
2991
  u === "other" && (l = !0), this.bumpSpace();
2969
- var T = this.clonePosition();
2992
+ var _ = this.clonePosition();
2970
2993
  if (!this.bumpIf("{"))
2971
- return this.error(n === "select" ? R.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : R.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, L(this.clonePosition(), this.clonePosition()));
2972
- var _ = this.parseMessage(t + 1, n, r);
2973
- if (_.err)
2974
- return _;
2975
- var H = this.tryParseArgumentClose(T);
2976
- if (H.err)
2977
- return H;
2978
- a.push([
2994
+ return this.error(n === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : O.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, M(this.clonePosition(), this.clonePosition()));
2995
+ var B = this.parseMessage(t + 1, n, r);
2996
+ if (B.err)
2997
+ return B;
2998
+ var T = this.tryParseArgumentClose(_);
2999
+ if (T.err)
3000
+ return T;
3001
+ s.push([
2979
3002
  u,
2980
3003
  {
2981
- value: _.val,
2982
- location: L(T, this.clonePosition())
3004
+ value: B.val,
3005
+ location: M(_, this.clonePosition())
2983
3006
  }
2984
3007
  ]), c.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, d = o.location;
2985
3008
  }
2986
- return a.length === 0 ? this.error(n === "select" ? R.EXPECT_SELECT_ARGUMENT_SELECTOR : R.EXPECT_PLURAL_ARGUMENT_SELECTOR, L(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !l ? this.error(R.MISSING_OTHER_CLAUSE, L(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3009
+ return s.length === 0 ? this.error(n === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR : O.EXPECT_PLURAL_ARGUMENT_SELECTOR, M(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !l ? this.error(O.MISSING_OTHER_CLAUSE, M(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
2987
3010
  }, e.prototype.tryParseDecimalInteger = function(t, n) {
2988
3011
  var r = 1, i = this.clonePosition();
2989
3012
  this.bumpIf("+") || this.bumpIf("-") && (r = -1);
2990
3013
  for (var o = !1, l = 0; !this.isEOF(); ) {
2991
- var a = this.char();
2992
- if (a >= 48 && a <= 57)
2993
- o = !0, l = l * 10 + (a - 48), this.bump();
3014
+ var s = this.char();
3015
+ if (s >= 48 && s <= 57)
3016
+ o = !0, l = l * 10 + (s - 48), this.bump();
2994
3017
  else
2995
3018
  break;
2996
3019
  }
2997
- var c = L(i, this.clonePosition());
2998
- return o ? (l *= r, Ri(l) ? { val: l, err: null } : this.error(n, c)) : this.error(t, c);
3020
+ var c = M(i, this.clonePosition());
3021
+ return o ? (l *= r, Ni(l) ? { val: l, err: null } : this.error(n, c)) : this.error(t, c);
2999
3022
  }, e.prototype.offset = function() {
3000
3023
  return this.position.offset;
3001
3024
  }, e.prototype.isEOF = function() {
@@ -3064,16 +3087,16 @@ var Ii = (
3064
3087
  function Qt(e) {
3065
3088
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3066
3089
  }
3067
- function Pi(e) {
3090
+ function Fi(e) {
3068
3091
  return Qt(e) || e === 47;
3069
3092
  }
3070
- function Di(e) {
3093
+ function Gi(e) {
3071
3094
  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;
3072
3095
  }
3073
3096
  function Kn(e) {
3074
3097
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3075
3098
  }
3076
- function Ui(e) {
3099
+ function $i(e) {
3077
3100
  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;
3078
3101
  }
3079
3102
  function Jt(e) {
@@ -3084,23 +3107,23 @@ function Jt(e) {
3084
3107
  else Gn(t) && zn(t.style) || ($n(t) || jn(t)) && zt(t.style) ? delete t.style.location : Xn(t) && Jt(t.children);
3085
3108
  });
3086
3109
  }
3087
- function Fi(e, t) {
3110
+ function ji(e, t) {
3088
3111
  t === void 0 && (t = {}), t = I({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3089
- var n = new Ii(e, t).parse();
3112
+ var n = new Ui(e, t).parse();
3090
3113
  if (n.err) {
3091
- var r = SyntaxError(R[n.err.kind]);
3114
+ var r = SyntaxError(O[n.err.kind]);
3092
3115
  throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3093
3116
  }
3094
3117
  return t != null && t.captureLocation || Jt(n.val), n.val;
3095
3118
  }
3096
- var Ge;
3119
+ var je;
3097
3120
  (function(e) {
3098
3121
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3099
- })(Ge || (Ge = {}));
3100
- var Et = (
3122
+ })(je || (je = {}));
3123
+ var xt = (
3101
3124
  /** @class */
3102
3125
  function(e) {
3103
- vt(t, e);
3126
+ Et(t, e);
3104
3127
  function t(n, r, i) {
3105
3128
  var o = e.call(this, n) || this;
3106
3129
  return o.code = r, o.originalMessage = i, o;
@@ -3112,149 +3135,149 @@ var Et = (
3112
3135
  ), vn = (
3113
3136
  /** @class */
3114
3137
  function(e) {
3115
- vt(t, e);
3138
+ Et(t, e);
3116
3139
  function t(n, r, i, o) {
3117
- return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ge.INVALID_VALUE, o) || this;
3140
+ return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), je.INVALID_VALUE, o) || this;
3118
3141
  }
3119
3142
  return t;
3120
- }(Et)
3121
- ), Gi = (
3143
+ }(xt)
3144
+ ), ki = (
3122
3145
  /** @class */
3123
3146
  function(e) {
3124
- vt(t, e);
3147
+ Et(t, e);
3125
3148
  function t(n, r, i) {
3126
- return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Ge.INVALID_VALUE, i) || this;
3149
+ return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), je.INVALID_VALUE, i) || this;
3127
3150
  }
3128
3151
  return t;
3129
- }(Et)
3130
- ), $i = (
3152
+ }(xt)
3153
+ ), Vi = (
3131
3154
  /** @class */
3132
3155
  function(e) {
3133
- vt(t, e);
3156
+ Et(t, e);
3134
3157
  function t(n, r) {
3135
- return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Ge.MISSING_VALUE, r) || this;
3158
+ return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), je.MISSING_VALUE, r) || this;
3136
3159
  }
3137
3160
  return t;
3138
- }(Et)
3139
- ), te;
3161
+ }(xt)
3162
+ ), ne;
3140
3163
  (function(e) {
3141
3164
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3142
- })(te || (te = {}));
3143
- function ji(e) {
3165
+ })(ne || (ne = {}));
3166
+ function Xi(e) {
3144
3167
  return e.length < 2 ? e : e.reduce(function(t, n) {
3145
3168
  var r = t[t.length - 1];
3146
- return !r || r.type !== te.literal || n.type !== te.literal ? t.push(n) : r.value += n.value, t;
3169
+ return !r || r.type !== ne.literal || n.type !== ne.literal ? t.push(n) : r.value += n.value, t;
3147
3170
  }, []);
3148
3171
  }
3149
- function ki(e) {
3172
+ function zi(e) {
3150
3173
  return typeof e == "function";
3151
3174
  }
3152
- function ht(e, t, n, r, i, o, l) {
3175
+ function ft(e, t, n, r, i, o, l) {
3153
3176
  if (e.length === 1 && fn(e[0]))
3154
3177
  return [
3155
3178
  {
3156
- type: te.literal,
3179
+ type: ne.literal,
3157
3180
  value: e[0].value
3158
3181
  }
3159
3182
  ];
3160
- for (var a = [], c = 0, u = e; c < u.length; c++) {
3183
+ for (var s = [], c = 0, u = e; c < u.length; c++) {
3161
3184
  var d = u[c];
3162
3185
  if (fn(d)) {
3163
- a.push({
3164
- type: te.literal,
3186
+ s.push({
3187
+ type: ne.literal,
3165
3188
  value: d.value
3166
3189
  });
3167
3190
  continue;
3168
3191
  }
3169
- if (hi(d)) {
3170
- typeof o == "number" && a.push({
3171
- type: te.literal,
3192
+ if (pi(d)) {
3193
+ typeof o == "number" && s.push({
3194
+ type: ne.literal,
3172
3195
  value: n.getNumberFormat(t).format(o)
3173
3196
  });
3174
3197
  continue;
3175
3198
  }
3176
- var b = d.value;
3177
- if (!(i && b in i))
3178
- throw new $i(b, l);
3179
- var y = i[b];
3180
- if (ci(d)) {
3181
- (!y || typeof y == "string" || typeof y == "number") && (y = typeof y == "string" || typeof y == "number" ? String(y) : ""), a.push({
3182
- type: typeof y == "string" ? te.literal : te.object,
3183
- value: y
3199
+ var g = d.value;
3200
+ if (!(i && g in i))
3201
+ throw new Vi(g, l);
3202
+ var b = i[g];
3203
+ if (di(d)) {
3204
+ (!b || typeof b == "string" || typeof b == "number") && (b = typeof b == "string" || typeof b == "number" ? String(b) : ""), s.push({
3205
+ type: typeof b == "string" ? ne.literal : ne.object,
3206
+ value: b
3184
3207
  });
3185
3208
  continue;
3186
3209
  }
3187
3210
  if ($n(d)) {
3188
- var T = typeof d.style == "string" ? r.date[d.style] : zt(d.style) ? d.style.parsedOptions : void 0;
3189
- a.push({
3190
- type: te.literal,
3191
- value: n.getDateTimeFormat(t, T).format(y)
3211
+ var _ = typeof d.style == "string" ? r.date[d.style] : zt(d.style) ? d.style.parsedOptions : void 0;
3212
+ s.push({
3213
+ type: ne.literal,
3214
+ value: n.getDateTimeFormat(t, _).format(b)
3192
3215
  });
3193
3216
  continue;
3194
3217
  }
3195
3218
  if (jn(d)) {
3196
- var T = typeof d.style == "string" ? r.time[d.style] : zt(d.style) ? d.style.parsedOptions : r.time.medium;
3197
- a.push({
3198
- type: te.literal,
3199
- value: n.getDateTimeFormat(t, T).format(y)
3219
+ var _ = typeof d.style == "string" ? r.time[d.style] : zt(d.style) ? d.style.parsedOptions : r.time.medium;
3220
+ s.push({
3221
+ type: ne.literal,
3222
+ value: n.getDateTimeFormat(t, _).format(b)
3200
3223
  });
3201
3224
  continue;
3202
3225
  }
3203
3226
  if (Gn(d)) {
3204
- var T = typeof d.style == "string" ? r.number[d.style] : zn(d.style) ? d.style.parsedOptions : void 0;
3205
- T && T.scale && (y = y * (T.scale || 1)), a.push({
3206
- type: te.literal,
3207
- value: n.getNumberFormat(t, T).format(y)
3227
+ var _ = typeof d.style == "string" ? r.number[d.style] : zn(d.style) ? d.style.parsedOptions : void 0;
3228
+ _ && _.scale && (b = b * (_.scale || 1)), s.push({
3229
+ type: ne.literal,
3230
+ value: n.getNumberFormat(t, _).format(b)
3208
3231
  });
3209
3232
  continue;
3210
3233
  }
3211
3234
  if (Xn(d)) {
3212
- var _ = d.children, H = d.value, B = i[H];
3213
- if (!ki(B))
3214
- throw new Gi(H, "function", l);
3215
- var A = ht(_, t, n, r, i, o), P = B(A.map(function(X) {
3216
- return X.value;
3235
+ var B = d.children, T = d.value, x = i[T];
3236
+ if (!zi(x))
3237
+ throw new ki(T, "function", l);
3238
+ var S = ft(B, t, n, r, i, o), D = x(S.map(function(W) {
3239
+ return W.value;
3217
3240
  }));
3218
- Array.isArray(P) || (P = [P]), a.push.apply(a, P.map(function(X) {
3241
+ Array.isArray(D) || (D = [D]), s.push.apply(s, D.map(function(W) {
3219
3242
  return {
3220
- type: typeof X == "string" ? te.literal : te.object,
3221
- value: X
3243
+ type: typeof W == "string" ? ne.literal : ne.object,
3244
+ value: W
3222
3245
  };
3223
3246
  }));
3224
3247
  }
3225
3248
  if (kn(d)) {
3226
- var O = d.options[y] || d.options.other;
3227
- if (!O)
3228
- throw new vn(d.value, y, Object.keys(d.options), l);
3229
- a.push.apply(a, ht(O.value, t, n, r, i));
3249
+ var H = d.options[b] || d.options.other;
3250
+ if (!H)
3251
+ throw new vn(d.value, b, Object.keys(d.options), l);
3252
+ s.push.apply(s, ft(H.value, t, n, r, i));
3230
3253
  continue;
3231
3254
  }
3232
3255
  if (Vn(d)) {
3233
- var O = d.options["=".concat(y)];
3234
- if (!O) {
3256
+ var H = d.options["=".concat(b)];
3257
+ if (!H) {
3235
3258
  if (!Intl.PluralRules)
3236
- throw new Et(`Intl.PluralRules is not available in this environment.
3259
+ throw new xt(`Intl.PluralRules is not available in this environment.
3237
3260
  Try polyfilling it using "@formatjs/intl-pluralrules"
3238
- `, Ge.MISSING_INTL_API, l);
3239
- var k = n.getPluralRules(t, { type: d.pluralType }).select(y - (d.offset || 0));
3240
- O = d.options[k] || d.options.other;
3261
+ `, je.MISSING_INTL_API, l);
3262
+ var U = n.getPluralRules(t, { type: d.pluralType }).select(b - (d.offset || 0));
3263
+ H = d.options[U] || d.options.other;
3241
3264
  }
3242
- if (!O)
3243
- throw new vn(d.value, y, Object.keys(d.options), l);
3244
- a.push.apply(a, ht(O.value, t, n, r, i, y - (d.offset || 0)));
3265
+ if (!H)
3266
+ throw new vn(d.value, b, Object.keys(d.options), l);
3267
+ s.push.apply(s, ft(H.value, t, n, r, i, b - (d.offset || 0)));
3245
3268
  continue;
3246
3269
  }
3247
3270
  }
3248
- return ji(a);
3271
+ return Xi(s);
3249
3272
  }
3250
- function Vi(e, t) {
3273
+ function Wi(e, t) {
3251
3274
  return t ? I(I(I({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3252
3275
  return n[r] = I(I({}, e[r]), t[r] || {}), n;
3253
3276
  }, {})) : e;
3254
3277
  }
3255
- function Xi(e, t) {
3278
+ function Zi(e, t) {
3256
3279
  return t ? Object.keys(e).reduce(function(n, r) {
3257
- return n[r] = Vi(e[r], t[r]), n;
3280
+ return n[r] = Wi(e[r], t[r]), n;
3258
3281
  }, I({}, e)) : e;
3259
3282
  }
3260
3283
  function Gt(e) {
@@ -3271,7 +3294,7 @@ function Gt(e) {
3271
3294
  }
3272
3295
  };
3273
3296
  }
3274
- function zi(e) {
3297
+ function qi(e) {
3275
3298
  return e === void 0 && (e = {
3276
3299
  number: {},
3277
3300
  dateTime: {},
@@ -3303,7 +3326,7 @@ function zi(e) {
3303
3326
  })
3304
3327
  };
3305
3328
  }
3306
- var Wi = (
3329
+ var Qi = (
3307
3330
  /** @class */
3308
3331
  function() {
3309
3332
  function e(t, n, r, i) {
@@ -3317,12 +3340,12 @@ var Wi = (
3317
3340
  var u = o.formatToParts(c);
3318
3341
  if (u.length === 1)
3319
3342
  return u[0].value;
3320
- var d = u.reduce(function(b, y) {
3321
- return !b.length || y.type !== te.literal || typeof b[b.length - 1] != "string" ? b.push(y.value) : b[b.length - 1] += y.value, b;
3343
+ var d = u.reduce(function(g, b) {
3344
+ return !g.length || b.type !== ne.literal || typeof g[g.length - 1] != "string" ? g.push(b.value) : g[g.length - 1] += b.value, g;
3322
3345
  }, []);
3323
3346
  return d.length <= 1 ? d[0] || "" : d;
3324
3347
  }, this.formatToParts = function(c) {
3325
- return ht(o.ast, o.locales, o.formatters, o.formats, c, void 0, o.message);
3348
+ return ft(o.ast, o.locales, o.formatters, o.formats, c, void 0, o.message);
3326
3349
  }, this.resolvedOptions = function() {
3327
3350
  var c;
3328
3351
  return {
@@ -3335,13 +3358,13 @@ var Wi = (
3335
3358
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3336
3359
  var l = i || {};
3337
3360
  l.formatters;
3338
- var a = ni(l, ["formatters"]);
3339
- this.ast = e.__parse(t, I(I({}, a), { locale: this.resolvedLocale }));
3361
+ var s = oi(l, ["formatters"]);
3362
+ this.ast = e.__parse(t, I(I({}, s), { locale: this.resolvedLocale }));
3340
3363
  } else
3341
3364
  this.ast = t;
3342
3365
  if (!Array.isArray(this.ast))
3343
3366
  throw new TypeError("A message must be provided as a String or AST.");
3344
- this.formats = Xi(e.formats, r), this.formatters = i && i.formatters || zi(this.formatterCache);
3367
+ this.formats = Zi(e.formats, r), this.formatters = i && i.formatters || qi(this.formatterCache);
3345
3368
  }
3346
3369
  return Object.defineProperty(e, "defaultLocale", {
3347
3370
  get: function() {
@@ -3354,7 +3377,7 @@ var Wi = (
3354
3377
  var n = Intl.NumberFormat.supportedLocalesOf(t);
3355
3378
  return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3356
3379
  }
3357
- }, e.__parse = Fi, e.formats = {
3380
+ }, e.__parse = ji, e.formats = {
3358
3381
  number: {
3359
3382
  integer: {
3360
3383
  maximumFractionDigits: 0
@@ -3415,7 +3438,7 @@ var Wi = (
3415
3438
  }, e;
3416
3439
  }()
3417
3440
  );
3418
- function Zi(e, t) {
3441
+ function Ji(e, t) {
3419
3442
  if (t == null)
3420
3443
  return;
3421
3444
  if (t in e)
@@ -3436,36 +3459,36 @@ function Zi(e, t) {
3436
3459
  r = void 0;
3437
3460
  return r;
3438
3461
  }
3439
- const Se = {}, qi = (e, t, n) => n && (t in Se || (Se[t] = {}), e in Se[t] || (Se[t][e] = n), n), er = (e, t) => {
3462
+ const Se = {}, Yi = (e, t, n) => n && (t in Se || (Se[t] = {}), e in Se[t] || (Se[t][e] = n), n), er = (e, t) => {
3440
3463
  if (t == null)
3441
3464
  return;
3442
3465
  if (t in Se && e in Se[t])
3443
3466
  return Se[t][e];
3444
- const n = xt(t);
3467
+ const n = _t(t);
3445
3468
  for (let r = 0; r < n.length; r++) {
3446
- const i = n[r], o = Ji(i, e);
3469
+ const i = n[r], o = eo(i, e);
3447
3470
  if (o)
3448
- return qi(e, t, o);
3471
+ return Yi(e, t, o);
3449
3472
  }
3450
3473
  };
3451
3474
  let nn;
3452
- const rt = yt({});
3453
- function Qi(e) {
3475
+ const it = vt({});
3476
+ function Ki(e) {
3454
3477
  return nn[e] || null;
3455
3478
  }
3456
3479
  function tr(e) {
3457
3480
  return e in nn;
3458
3481
  }
3459
- function Ji(e, t) {
3482
+ function eo(e, t) {
3460
3483
  if (!tr(e))
3461
3484
  return null;
3462
- const n = Qi(e);
3463
- return Zi(n, t);
3485
+ const n = Ki(e);
3486
+ return Ji(n, t);
3464
3487
  }
3465
- function Yi(e) {
3488
+ function to(e) {
3466
3489
  if (e == null)
3467
3490
  return;
3468
- const t = xt(e);
3491
+ const t = _t(e);
3469
3492
  for (let n = 0; n < t.length; n++) {
3470
3493
  const r = t[n];
3471
3494
  if (tr(r))
@@ -3473,55 +3496,55 @@ function Yi(e) {
3473
3496
  }
3474
3497
  }
3475
3498
  function nr(e, ...t) {
3476
- delete Se[e], rt.update((n) => (n[e] = ti.all([n[e] || {}, ...t]), n));
3499
+ delete Se[e], it.update((n) => (n[e] = ii.all([n[e] || {}, ...t]), n));
3477
3500
  }
3478
- ke(
3479
- [rt],
3501
+ Xe(
3502
+ [it],
3480
3503
  ([e]) => Object.keys(e)
3481
3504
  );
3482
- rt.subscribe((e) => nn = e);
3483
- const ft = {};
3484
- function Ki(e, t) {
3485
- ft[e].delete(t), ft[e].size === 0 && delete ft[e];
3505
+ it.subscribe((e) => nn = e);
3506
+ const dt = {};
3507
+ function no(e, t) {
3508
+ dt[e].delete(t), dt[e].size === 0 && delete dt[e];
3486
3509
  }
3487
3510
  function rr(e) {
3488
- return ft[e];
3511
+ return dt[e];
3489
3512
  }
3490
- function eo(e) {
3491
- return xt(e).map((t) => {
3513
+ function ro(e) {
3514
+ return _t(e).map((t) => {
3492
3515
  const n = rr(t);
3493
3516
  return [t, n ? [...n] : []];
3494
3517
  }).filter(([, t]) => t.length > 0);
3495
3518
  }
3496
3519
  function Yt(e) {
3497
- return e == null ? !1 : xt(e).some(
3520
+ return e == null ? !1 : _t(e).some(
3498
3521
  (t) => {
3499
3522
  var n;
3500
3523
  return (n = rr(t)) == null ? void 0 : n.size;
3501
3524
  }
3502
3525
  );
3503
3526
  }
3504
- function to(e, t) {
3527
+ function io(e, t) {
3505
3528
  return Promise.all(
3506
- t.map((r) => (Ki(e, r), r().then((i) => i.default || i)))
3529
+ t.map((r) => (no(e, r), r().then((i) => i.default || i)))
3507
3530
  ).then((r) => nr(e, ...r));
3508
3531
  }
3509
- const Ye = {};
3532
+ const Ke = {};
3510
3533
  function ir(e) {
3511
3534
  if (!Yt(e))
3512
- return e in Ye ? Ye[e] : Promise.resolve();
3513
- const t = eo(e);
3514
- return Ye[e] = Promise.all(
3535
+ return e in Ke ? Ke[e] : Promise.resolve();
3536
+ const t = ro(e);
3537
+ return Ke[e] = Promise.all(
3515
3538
  t.map(
3516
- ([n, r]) => to(n, r)
3539
+ ([n, r]) => io(n, r)
3517
3540
  )
3518
3541
  ).then(() => {
3519
3542
  if (Yt(e))
3520
3543
  return ir(e);
3521
- delete Ye[e];
3522
- }), Ye[e];
3544
+ delete Ke[e];
3545
+ }), Ke[e];
3523
3546
  }
3524
- const no = {
3547
+ const oo = {
3525
3548
  number: {
3526
3549
  scientific: { notation: "scientific" },
3527
3550
  engineering: { notation: "engineering" },
@@ -3550,141 +3573,141 @@ const no = {
3550
3573
  timeZoneName: "short"
3551
3574
  }
3552
3575
  }
3553
- }, ro = {
3576
+ }, ao = {
3554
3577
  fallbackLocale: null,
3555
3578
  loadingDelay: 200,
3556
- formats: no,
3579
+ formats: oo,
3557
3580
  warnOnMissingMessages: !0,
3558
3581
  handleMissingMessage: void 0,
3559
3582
  ignoreTag: !0
3560
- }, io = ro;
3561
- function $e() {
3562
- return io;
3583
+ }, so = ao;
3584
+ function ke() {
3585
+ return so;
3563
3586
  }
3564
- const $t = yt(!1);
3565
- var oo = Object.defineProperty, ao = Object.defineProperties, so = Object.getOwnPropertyDescriptors, En = Object.getOwnPropertySymbols, lo = Object.prototype.hasOwnProperty, uo = Object.prototype.propertyIsEnumerable, xn = (e, t, n) => t in e ? oo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, co = (e, t) => {
3587
+ const $t = vt(!1);
3588
+ var lo = Object.defineProperty, uo = Object.defineProperties, co = Object.getOwnPropertyDescriptors, En = Object.getOwnPropertySymbols, ho = Object.prototype.hasOwnProperty, fo = Object.prototype.propertyIsEnumerable, xn = (e, t, n) => t in e ? lo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, po = (e, t) => {
3566
3589
  for (var n in t || (t = {}))
3567
- lo.call(t, n) && xn(e, n, t[n]);
3590
+ ho.call(t, n) && xn(e, n, t[n]);
3568
3591
  if (En)
3569
3592
  for (var n of En(t))
3570
- uo.call(t, n) && xn(e, n, t[n]);
3593
+ fo.call(t, n) && xn(e, n, t[n]);
3571
3594
  return e;
3572
- }, ho = (e, t) => ao(e, so(t));
3595
+ }, mo = (e, t) => uo(e, co(t));
3573
3596
  let Kt;
3574
- const gt = yt(null);
3597
+ const bt = vt(null);
3575
3598
  function _n(e) {
3576
3599
  return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3577
3600
  }
3578
- function xt(e, t = $e().fallbackLocale) {
3601
+ function _t(e, t = ke().fallbackLocale) {
3579
3602
  const n = _n(e);
3580
3603
  return t ? [.../* @__PURE__ */ new Set([...n, ..._n(t)])] : n;
3581
3604
  }
3582
- function He() {
3605
+ function Oe() {
3583
3606
  return Kt != null ? Kt : void 0;
3584
3607
  }
3585
- gt.subscribe((e) => {
3608
+ bt.subscribe((e) => {
3586
3609
  Kt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3587
3610
  });
3588
- const fo = (e) => {
3589
- if (e && Yi(e) && Yt(e)) {
3590
- const { loadingDelay: t } = $e();
3611
+ const go = (e) => {
3612
+ if (e && to(e) && Yt(e)) {
3613
+ const { loadingDelay: t } = ke();
3591
3614
  let n;
3592
- return typeof window != "undefined" && He() != null && t ? n = window.setTimeout(
3615
+ return typeof window != "undefined" && Oe() != null && t ? n = window.setTimeout(
3593
3616
  () => $t.set(!0),
3594
3617
  t
3595
3618
  ) : $t.set(!0), ir(e).then(() => {
3596
- gt.set(e);
3619
+ bt.set(e);
3597
3620
  }).finally(() => {
3598
3621
  clearTimeout(n), $t.set(!1);
3599
3622
  });
3600
3623
  }
3601
- return gt.set(e);
3602
- }, Ve = ho(co({}, gt), {
3603
- set: fo
3604
- }), _t = (e) => {
3624
+ return bt.set(e);
3625
+ }, ze = mo(po({}, bt), {
3626
+ set: go
3627
+ }), Bt = (e) => {
3605
3628
  const t = /* @__PURE__ */ Object.create(null);
3606
3629
  return (r) => {
3607
3630
  const i = JSON.stringify(r);
3608
3631
  return i in t ? t[i] : t[i] = e(r);
3609
3632
  };
3610
3633
  };
3611
- var po = Object.defineProperty, bt = Object.getOwnPropertySymbols, or = Object.prototype.hasOwnProperty, ar = Object.prototype.propertyIsEnumerable, Bn = (e, t, n) => t in e ? po(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, rn = (e, t) => {
3634
+ var bo = Object.defineProperty, yt = Object.getOwnPropertySymbols, or = Object.prototype.hasOwnProperty, ar = Object.prototype.propertyIsEnumerable, Bn = (e, t, n) => t in e ? bo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, rn = (e, t) => {
3612
3635
  for (var n in t || (t = {}))
3613
3636
  or.call(t, n) && Bn(e, n, t[n]);
3614
- if (bt)
3615
- for (var n of bt(t))
3637
+ if (yt)
3638
+ for (var n of yt(t))
3616
3639
  ar.call(t, n) && Bn(e, n, t[n]);
3617
3640
  return e;
3618
- }, Xe = (e, t) => {
3641
+ }, We = (e, t) => {
3619
3642
  var n = {};
3620
3643
  for (var r in e)
3621
3644
  or.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3622
- if (e != null && bt)
3623
- for (var r of bt(e))
3645
+ if (e != null && yt)
3646
+ for (var r of yt(e))
3624
3647
  t.indexOf(r) < 0 && ar.call(e, r) && (n[r] = e[r]);
3625
3648
  return n;
3626
3649
  };
3627
- const nt = (e, t) => {
3628
- const { formats: n } = $e();
3650
+ const rt = (e, t) => {
3651
+ const { formats: n } = ke();
3629
3652
  if (e in n && t in n[e])
3630
3653
  return n[e][t];
3631
3654
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3632
- }, mo = _t(
3655
+ }, yo = Bt(
3633
3656
  (e) => {
3634
- var t = e, { locale: n, format: r } = t, i = Xe(t, ["locale", "format"]);
3657
+ var t = e, { locale: n, format: r } = t, i = We(t, ["locale", "format"]);
3635
3658
  if (n == null)
3636
3659
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3637
- return r && (i = nt("number", r)), new Intl.NumberFormat(n, i);
3660
+ return r && (i = rt("number", r)), new Intl.NumberFormat(n, i);
3638
3661
  }
3639
- ), go = _t(
3662
+ ), vo = Bt(
3640
3663
  (e) => {
3641
- var t = e, { locale: n, format: r } = t, i = Xe(t, ["locale", "format"]);
3664
+ var t = e, { locale: n, format: r } = t, i = We(t, ["locale", "format"]);
3642
3665
  if (n == null)
3643
3666
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3644
- return r ? i = nt("date", r) : Object.keys(i).length === 0 && (i = nt("date", "short")), new Intl.DateTimeFormat(n, i);
3667
+ return r ? i = rt("date", r) : Object.keys(i).length === 0 && (i = rt("date", "short")), new Intl.DateTimeFormat(n, i);
3645
3668
  }
3646
- ), bo = _t(
3669
+ ), Eo = Bt(
3647
3670
  (e) => {
3648
- var t = e, { locale: n, format: r } = t, i = Xe(t, ["locale", "format"]);
3671
+ var t = e, { locale: n, format: r } = t, i = We(t, ["locale", "format"]);
3649
3672
  if (n == null)
3650
3673
  throw new Error(
3651
3674
  '[svelte-i18n] A "locale" must be set to format time values'
3652
3675
  );
3653
- return r ? i = nt("time", r) : Object.keys(i).length === 0 && (i = nt("time", "short")), new Intl.DateTimeFormat(n, i);
3676
+ return r ? i = rt("time", r) : Object.keys(i).length === 0 && (i = rt("time", "short")), new Intl.DateTimeFormat(n, i);
3654
3677
  }
3655
- ), yo = (e = {}) => {
3678
+ ), xo = (e = {}) => {
3656
3679
  var t = e, {
3657
- locale: n = He()
3658
- } = t, r = Xe(t, [
3680
+ locale: n = Oe()
3681
+ } = t, r = We(t, [
3659
3682
  "locale"
3660
3683
  ]);
3661
- return mo(rn({ locale: n }, r));
3662
- }, vo = (e = {}) => {
3684
+ return yo(rn({ locale: n }, r));
3685
+ }, _o = (e = {}) => {
3663
3686
  var t = e, {
3664
- locale: n = He()
3665
- } = t, r = Xe(t, [
3687
+ locale: n = Oe()
3688
+ } = t, r = We(t, [
3666
3689
  "locale"
3667
3690
  ]);
3668
- return go(rn({ locale: n }, r));
3669
- }, Eo = (e = {}) => {
3691
+ return vo(rn({ locale: n }, r));
3692
+ }, Bo = (e = {}) => {
3670
3693
  var t = e, {
3671
- locale: n = He()
3672
- } = t, r = Xe(t, [
3694
+ locale: n = Oe()
3695
+ } = t, r = We(t, [
3673
3696
  "locale"
3674
3697
  ]);
3675
- return bo(rn({ locale: n }, r));
3676
- }, xo = _t(
3698
+ return Eo(rn({ locale: n }, r));
3699
+ }, To = Bt(
3677
3700
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3678
- (e, t = He()) => new Wi(e, t, $e().formats, {
3679
- ignoreTag: $e().ignoreTag
3701
+ (e, t = Oe()) => new Qi(e, t, ke().formats, {
3702
+ ignoreTag: ke().ignoreTag
3680
3703
  })
3681
- ), _o = (e, t = {}) => {
3704
+ ), wo = (e, t = {}) => {
3682
3705
  var n, r, i, o;
3683
3706
  let l = t;
3684
3707
  typeof e == "object" && (l = e, e = l.id);
3685
3708
  const {
3686
- values: a,
3687
- locale: c = He(),
3709
+ values: s,
3710
+ locale: c = Oe(),
3688
3711
  default: u
3689
3712
  } = l;
3690
3713
  if (c == null)
@@ -3693,33 +3716,33 @@ const nt = (e, t) => {
3693
3716
  );
3694
3717
  let d = er(e, c);
3695
3718
  if (!d)
3696
- d = (o = (i = (r = (n = $e()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3719
+ d = (o = (i = (r = (n = ke()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3697
3720
  else if (typeof d != "string")
3698
3721
  return console.warn(
3699
3722
  `[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.`
3700
3723
  ), d;
3701
- if (!a)
3724
+ if (!s)
3702
3725
  return d;
3703
- let b = d;
3726
+ let g = d;
3704
3727
  try {
3705
- b = xo(d, c).format(a);
3706
- } catch (y) {
3707
- y instanceof Error && console.warn(
3728
+ g = To(d, c).format(s);
3729
+ } catch (b) {
3730
+ b instanceof Error && console.warn(
3708
3731
  `[svelte-i18n] Message "${e}" has syntax error:`,
3709
- y.message
3732
+ b.message
3710
3733
  );
3711
3734
  }
3712
- return b;
3713
- }, Bo = (e, t) => Eo(t).format(e), To = (e, t) => vo(t).format(e), wo = (e, t) => yo(t).format(e), So = (e, t = He()) => er(e, t), Ao = ke([Ve, rt], () => _o);
3714
- ke([Ve], () => Bo);
3715
- ke([Ve], () => To);
3716
- ke([Ve], () => wo);
3717
- ke([Ve, rt], () => So);
3735
+ return g;
3736
+ }, So = (e, t) => Bo(t).format(e), Ao = (e, t) => _o(t).format(e), Co = (e, t) => xo(t).format(e), Ho = (e, t = Oe()) => er(e, t), Oo = Xe([ze, it], () => wo);
3737
+ Xe([ze], () => So);
3738
+ Xe([ze], () => Ao);
3739
+ Xe([ze], () => Co);
3740
+ Xe([ze, it], () => Ho);
3718
3741
  function Tn(e, t) {
3719
3742
  nr(e, t);
3720
3743
  }
3721
- function Co(e) {
3722
- Ve.set(e);
3744
+ function Ro(e) {
3745
+ ze.set(e);
3723
3746
  }
3724
3747
  const wn = {
3725
3748
  en: {
@@ -3929,35 +3952,35 @@ var en = { exports: {} };
3929
3952
  */
3930
3953
  (function(e, t) {
3931
3954
  (function(n) {
3932
- var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, l = n.XDomainRequest, a = n.ActiveXObject, c = n.EventSource, u = n.document, d = n.Promise, b = n.fetch, y = n.Response, T = n.TextDecoder, _ = n.TextEncoder, H = n.AbortController;
3933
- if (typeof window != "undefined" && typeof u != "undefined" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(h) {
3955
+ var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, l = n.XDomainRequest, s = n.ActiveXObject, c = n.EventSource, u = n.document, d = n.Promise, g = n.fetch, b = n.Response, _ = n.TextDecoder, B = n.TextEncoder, T = n.AbortController;
3956
+ if (typeof window != "undefined" && typeof u != "undefined" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(a) {
3934
3957
  u.readyState = "complete";
3935
- }, !1)), o == null && a != null && (o = function() {
3936
- return new a("Microsoft.XMLHTTP");
3937
- }), Object.create == null && (Object.create = function(h) {
3938
- function s() {
3958
+ }, !1)), o == null && s != null && (o = function() {
3959
+ return new s("Microsoft.XMLHTTP");
3960
+ }), Object.create == null && (Object.create = function(a) {
3961
+ function f() {
3939
3962
  }
3940
- return s.prototype = h, new s();
3963
+ return f.prototype = a, new f();
3941
3964
  }), Date.now || (Date.now = function() {
3942
3965
  return (/* @__PURE__ */ new Date()).getTime();
3943
- }), H == null) {
3944
- var B = b;
3945
- b = function(h, s) {
3946
- var p = s.signal;
3947
- return B(h, { headers: s.headers, credentials: s.credentials, cache: s.cache }).then(function(f) {
3948
- var g = f.body.getReader();
3949
- return p._reader = g, p._aborted && p._reader.cancel(), {
3950
- status: f.status,
3951
- statusText: f.statusText,
3952
- headers: f.headers,
3966
+ }), T == null) {
3967
+ var x = g;
3968
+ g = function(a, f) {
3969
+ var p = f.signal;
3970
+ return x(a, { headers: f.headers, credentials: f.credentials, cache: f.cache }).then(function(h) {
3971
+ var E = h.body.getReader();
3972
+ return p._reader = E, p._aborted && p._reader.cancel(), {
3973
+ status: h.status,
3974
+ statusText: h.statusText,
3975
+ headers: h.headers,
3953
3976
  body: {
3954
3977
  getReader: function() {
3955
- return g;
3978
+ return E;
3956
3979
  }
3957
3980
  }
3958
3981
  };
3959
3982
  });
3960
- }, H = function() {
3983
+ }, T = function() {
3961
3984
  this.signal = {
3962
3985
  _reader: null,
3963
3986
  _aborted: !1
@@ -3966,407 +3989,407 @@ var en = { exports: {} };
3966
3989
  };
3967
3990
  };
3968
3991
  }
3969
- function A() {
3992
+ function S() {
3970
3993
  this.bitsNeeded = 0, this.codePoint = 0;
3971
3994
  }
3972
- A.prototype.decode = function(h) {
3973
- function s(N, F, S) {
3974
- if (S === 1)
3975
- return N >= 128 >> F && N << F <= 2047;
3976
- if (S === 2)
3977
- return N >= 2048 >> F && N << F <= 55295 || N >= 57344 >> F && N << F <= 65535;
3978
- if (S === 3)
3979
- return N >= 65536 >> F && N << F <= 1114111;
3995
+ S.prototype.decode = function(a) {
3996
+ function f(P, G, w) {
3997
+ if (w === 1)
3998
+ return P >= 128 >> G && P << G <= 2047;
3999
+ if (w === 2)
4000
+ return P >= 2048 >> G && P << G <= 55295 || P >= 57344 >> G && P << G <= 65535;
4001
+ if (w === 3)
4002
+ return P >= 65536 >> G && P << G <= 1114111;
3980
4003
  throw new Error();
3981
4004
  }
3982
- function p(N, F) {
3983
- if (N === 6 * 1)
3984
- return F >> 6 > 15 ? 3 : F > 31 ? 2 : 1;
3985
- if (N === 6 * 2)
3986
- return F > 15 ? 3 : 2;
3987
- if (N === 6 * 3)
4005
+ function p(P, G) {
4006
+ if (P === 6 * 1)
4007
+ return G >> 6 > 15 ? 3 : G > 31 ? 2 : 1;
4008
+ if (P === 6 * 2)
4009
+ return G > 15 ? 3 : 2;
4010
+ if (P === 6 * 3)
3988
4011
  return 3;
3989
4012
  throw new Error();
3990
4013
  }
3991
- for (var f = 65533, g = "", v = this.bitsNeeded, x = this.codePoint, E = 0; E < h.length; E += 1) {
3992
- var w = h[E];
3993
- v !== 0 && (w < 128 || w > 191 || !s(x << 6 | w & 63, v - 6, p(v, x))) && (v = 0, x = f, g += String.fromCharCode(x)), v === 0 ? (w >= 0 && w <= 127 ? (v = 0, x = w) : w >= 192 && w <= 223 ? (v = 6 * 1, x = w & 31) : w >= 224 && w <= 239 ? (v = 6 * 2, x = w & 15) : w >= 240 && w <= 247 ? (v = 6 * 3, x = w & 7) : (v = 0, x = f), v !== 0 && !s(x, v, p(v, x)) && (v = 0, x = f)) : (v -= 6, x = x << 6 | w & 63), v === 0 && (x <= 65535 ? g += String.fromCharCode(x) : (g += String.fromCharCode(55296 + (x - 65535 - 1 >> 10)), g += String.fromCharCode(56320 + (x - 65535 - 1 & 1023))));
4014
+ for (var h = 65533, E = "", v = this.bitsNeeded, m = this.codePoint, L = 0; L < a.length; L += 1) {
4015
+ var A = a[L];
4016
+ v !== 0 && (A < 128 || A > 191 || !f(m << 6 | A & 63, v - 6, p(v, m))) && (v = 0, m = h, E += String.fromCharCode(m)), v === 0 ? (A >= 0 && A <= 127 ? (v = 0, m = A) : A >= 192 && A <= 223 ? (v = 6 * 1, m = A & 31) : A >= 224 && A <= 239 ? (v = 6 * 2, m = A & 15) : A >= 240 && A <= 247 ? (v = 6 * 3, m = A & 7) : (v = 0, m = h), v !== 0 && !f(m, v, p(v, m)) && (v = 0, m = h)) : (v -= 6, m = m << 6 | A & 63), v === 0 && (m <= 65535 ? E += String.fromCharCode(m) : (E += String.fromCharCode(55296 + (m - 65535 - 1 >> 10)), E += String.fromCharCode(56320 + (m - 65535 - 1 & 1023))));
3994
4017
  }
3995
- return this.bitsNeeded = v, this.codePoint = x, g;
4018
+ return this.bitsNeeded = v, this.codePoint = m, E;
3996
4019
  };
3997
- var P = function() {
4020
+ var D = function() {
3998
4021
  try {
3999
- return new T().decode(new _().encode("test"), { stream: !0 }) === "test";
4000
- } catch (h) {
4001
- console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + h);
4022
+ return new _().decode(new B().encode("test"), { stream: !0 }) === "test";
4023
+ } catch (a) {
4024
+ console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + a);
4002
4025
  }
4003
4026
  return !1;
4004
4027
  };
4005
- (T == null || _ == null || !P()) && (T = A);
4006
- var O = function() {
4028
+ (_ == null || B == null || !D()) && (_ = S);
4029
+ var H = function() {
4007
4030
  };
4008
- function k(h) {
4009
- this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = O, this.onload = O, this.onerror = O, this.onreadystatechange = O, this._contentType = "", this._xhr = h, this._sendTimeout = 0, this._abort = O;
4031
+ function U(a) {
4032
+ this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = H, this.onload = H, this.onerror = H, this.onreadystatechange = H, this._contentType = "", this._xhr = a, this._sendTimeout = 0, this._abort = H;
4010
4033
  }
4011
- k.prototype.open = function(h, s) {
4034
+ U.prototype.open = function(a, f) {
4012
4035
  this._abort(!0);
4013
- var p = this, f = this._xhr, g = 1, v = 0;
4014
- this._abort = function(S) {
4015
- p._sendTimeout !== 0 && (i(p._sendTimeout), p._sendTimeout = 0), (g === 1 || g === 2 || g === 3) && (g = 4, f.onload = O, f.onerror = O, f.onabort = O, f.onprogress = O, f.onreadystatechange = O, f.abort(), v !== 0 && (i(v), v = 0), S || (p.readyState = 4, p.onabort(null), p.onreadystatechange())), g = 0;
4036
+ var p = this, h = this._xhr, E = 1, v = 0;
4037
+ this._abort = function(w) {
4038
+ p._sendTimeout !== 0 && (i(p._sendTimeout), p._sendTimeout = 0), (E === 1 || E === 2 || E === 3) && (E = 4, h.onload = H, h.onerror = H, h.onabort = H, h.onprogress = H, h.onreadystatechange = H, h.abort(), v !== 0 && (i(v), v = 0), w || (p.readyState = 4, p.onabort(null), p.onreadystatechange())), E = 0;
4016
4039
  };
4017
- var x = function() {
4018
- if (g === 1) {
4019
- var S = 0, j = "", ve = void 0;
4020
- if ("contentType" in f)
4021
- S = 200, j = "OK", ve = f.contentType;
4040
+ var m = function() {
4041
+ if (E === 1) {
4042
+ var w = 0, V = "", be = void 0;
4043
+ if ("contentType" in h)
4044
+ w = 200, V = "OK", be = h.contentType;
4022
4045
  else
4023
4046
  try {
4024
- S = f.status, j = f.statusText, ve = f.getResponseHeader("Content-Type");
4025
- } catch (Qe) {
4026
- S = 0, j = "", ve = void 0;
4047
+ w = h.status, V = h.statusText, be = h.getResponseHeader("Content-Type");
4048
+ } catch (Je) {
4049
+ w = 0, V = "", be = void 0;
4027
4050
  }
4028
- S !== 0 && (g = 2, p.readyState = 2, p.status = S, p.statusText = j, p._contentType = ve, p.onreadystatechange());
4051
+ w !== 0 && (E = 2, p.readyState = 2, p.status = w, p.statusText = V, p._contentType = be, p.onreadystatechange());
4029
4052
  }
4030
- }, E = function() {
4031
- if (x(), g === 2 || g === 3) {
4032
- g = 3;
4033
- var S = "";
4053
+ }, L = function() {
4054
+ if (m(), E === 2 || E === 3) {
4055
+ E = 3;
4056
+ var w = "";
4034
4057
  try {
4035
- S = f.responseText;
4036
- } catch (j) {
4058
+ w = h.responseText;
4059
+ } catch (V) {
4037
4060
  }
4038
- p.readyState = 3, p.responseText = S, p.onprogress();
4061
+ p.readyState = 3, p.responseText = w, p.onprogress();
4039
4062
  }
4040
- }, w = function(S, j) {
4041
- if ((j == null || j.preventDefault == null) && (j = {
4042
- preventDefault: O
4043
- }), E(), g === 1 || g === 2 || g === 3) {
4044
- if (g = 4, v !== 0 && (i(v), v = 0), p.readyState = 4, S === "load")
4045
- p.onload(j);
4046
- else if (S === "error")
4047
- p.onerror(j);
4048
- else if (S === "abort")
4049
- p.onabort(j);
4063
+ }, A = function(w, V) {
4064
+ if ((V == null || V.preventDefault == null) && (V = {
4065
+ preventDefault: H
4066
+ }), L(), E === 1 || E === 2 || E === 3) {
4067
+ if (E = 4, v !== 0 && (i(v), v = 0), p.readyState = 4, w === "load")
4068
+ p.onload(V);
4069
+ else if (w === "error")
4070
+ p.onerror(V);
4071
+ else if (w === "abort")
4072
+ p.onabort(V);
4050
4073
  else
4051
4074
  throw new TypeError();
4052
4075
  p.onreadystatechange();
4053
4076
  }
4054
- }, N = function(S) {
4055
- f != null && (f.readyState === 4 ? (!("onload" in f) || !("onerror" in f) || !("onabort" in f)) && w(f.responseText === "" ? "error" : "load", S) : f.readyState === 3 ? "onprogress" in f || E() : f.readyState === 2 && x());
4056
- }, F = function() {
4077
+ }, P = function(w) {
4078
+ h != null && (h.readyState === 4 ? (!("onload" in h) || !("onerror" in h) || !("onabort" in h)) && A(h.responseText === "" ? "error" : "load", w) : h.readyState === 3 ? "onprogress" in h || L() : h.readyState === 2 && m());
4079
+ }, G = function() {
4057
4080
  v = r(function() {
4058
- F();
4059
- }, 500), f.readyState === 3 && E();
4081
+ G();
4082
+ }, 500), h.readyState === 3 && L();
4060
4083
  };
4061
- "onload" in f && (f.onload = function(S) {
4062
- w("load", S);
4063
- }), "onerror" in f && (f.onerror = function(S) {
4064
- w("error", S);
4065
- }), "onabort" in f && (f.onabort = function(S) {
4066
- w("abort", S);
4067
- }), "onprogress" in f && (f.onprogress = E), "onreadystatechange" in f && (f.onreadystatechange = function(S) {
4068
- N(S);
4069
- }), ("contentType" in f || !("ontimeout" in o.prototype)) && (s += (s.indexOf("?") === -1 ? "?" : "&") + "padding=true"), f.open(h, s, !0), "readyState" in f && (v = r(function() {
4070
- F();
4084
+ "onload" in h && (h.onload = function(w) {
4085
+ A("load", w);
4086
+ }), "onerror" in h && (h.onerror = function(w) {
4087
+ A("error", w);
4088
+ }), "onabort" in h && (h.onabort = function(w) {
4089
+ A("abort", w);
4090
+ }), "onprogress" in h && (h.onprogress = L), "onreadystatechange" in h && (h.onreadystatechange = function(w) {
4091
+ P(w);
4092
+ }), ("contentType" in h || !("ontimeout" in o.prototype)) && (f += (f.indexOf("?") === -1 ? "?" : "&") + "padding=true"), h.open(a, f, !0), "readyState" in h && (v = r(function() {
4093
+ G();
4071
4094
  }, 0));
4072
- }, k.prototype.abort = function() {
4095
+ }, U.prototype.abort = function() {
4073
4096
  this._abort(!1);
4074
- }, k.prototype.getResponseHeader = function(h) {
4097
+ }, U.prototype.getResponseHeader = function(a) {
4075
4098
  return this._contentType;
4076
- }, k.prototype.setRequestHeader = function(h, s) {
4099
+ }, U.prototype.setRequestHeader = function(a, f) {
4077
4100
  var p = this._xhr;
4078
- "setRequestHeader" in p && p.setRequestHeader(h, s);
4079
- }, k.prototype.getAllResponseHeaders = function() {
4101
+ "setRequestHeader" in p && p.setRequestHeader(a, f);
4102
+ }, U.prototype.getAllResponseHeaders = function() {
4080
4103
  return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
4081
- }, k.prototype.send = function() {
4104
+ }, U.prototype.send = function() {
4082
4105
  if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && u != null && u.readyState != null && u.readyState !== "complete") {
4083
- var h = this;
4084
- h._sendTimeout = r(function() {
4085
- h._sendTimeout = 0, h.send();
4106
+ var a = this;
4107
+ a._sendTimeout = r(function() {
4108
+ a._sendTimeout = 0, a.send();
4086
4109
  }, 4);
4087
4110
  return;
4088
4111
  }
4089
- var s = this._xhr;
4090
- "withCredentials" in s && (s.withCredentials = this.withCredentials);
4112
+ var f = this._xhr;
4113
+ "withCredentials" in f && (f.withCredentials = this.withCredentials);
4091
4114
  try {
4092
- s.send(void 0);
4115
+ f.send(void 0);
4093
4116
  } catch (p) {
4094
4117
  throw p;
4095
4118
  }
4096
4119
  };
4097
- function X(h) {
4098
- return h.replace(/[A-Z]/g, function(s) {
4099
- return String.fromCharCode(s.charCodeAt(0) + 32);
4120
+ function W(a) {
4121
+ return a.replace(/[A-Z]/g, function(f) {
4122
+ return String.fromCharCode(f.charCodeAt(0) + 32);
4100
4123
  });
4101
4124
  }
4102
- function ne(h) {
4103
- for (var s = /* @__PURE__ */ Object.create(null), p = h.split(`\r
4104
- `), f = 0; f < p.length; f += 1) {
4105
- var g = p[f], v = g.split(": "), x = v.shift(), E = v.join(": ");
4106
- s[X(x)] = E;
4125
+ function q(a) {
4126
+ for (var f = /* @__PURE__ */ Object.create(null), p = a.split(`\r
4127
+ `), h = 0; h < p.length; h += 1) {
4128
+ var E = p[h], v = E.split(": "), m = v.shift(), L = v.join(": ");
4129
+ f[W(m)] = L;
4107
4130
  }
4108
- this._map = s;
4131
+ this._map = f;
4109
4132
  }
4110
- ne.prototype.get = function(h) {
4111
- return this._map[X(h)];
4133
+ q.prototype.get = function(a) {
4134
+ return this._map[W(a)];
4112
4135
  }, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
4113
- function W() {
4136
+ function Y() {
4114
4137
  }
4115
- W.prototype.open = function(h, s, p, f, g, v, x) {
4116
- h.open("GET", g);
4117
- var E = 0;
4118
- h.onprogress = function() {
4119
- var N = h.responseText, F = N.slice(E);
4120
- E += F.length, p(F);
4121
- }, h.onerror = function(N) {
4122
- N.preventDefault(), f(new Error("NetworkError"));
4123
- }, h.onload = function() {
4124
- f(null);
4125
- }, h.onabort = function() {
4126
- f(null);
4127
- }, h.onreadystatechange = function() {
4128
- if (h.readyState === o.HEADERS_RECEIVED) {
4129
- var N = h.status, F = h.statusText, S = h.getResponseHeader("Content-Type"), j = h.getAllResponseHeaders();
4130
- s(N, F, S, new ne(j));
4138
+ Y.prototype.open = function(a, f, p, h, E, v, m) {
4139
+ a.open("GET", E);
4140
+ var L = 0;
4141
+ a.onprogress = function() {
4142
+ var P = a.responseText, G = P.slice(L);
4143
+ L += G.length, p(G);
4144
+ }, a.onerror = function(P) {
4145
+ P.preventDefault(), h(new Error("NetworkError"));
4146
+ }, a.onload = function() {
4147
+ h(null);
4148
+ }, a.onabort = function() {
4149
+ h(null);
4150
+ }, a.onreadystatechange = function() {
4151
+ if (a.readyState === o.HEADERS_RECEIVED) {
4152
+ var P = a.status, G = a.statusText, w = a.getResponseHeader("Content-Type"), V = a.getAllResponseHeaders();
4153
+ f(P, G, w, new q(V));
4131
4154
  }
4132
- }, h.withCredentials = v;
4133
- for (var w in x)
4134
- Object.prototype.hasOwnProperty.call(x, w) && h.setRequestHeader(w, x[w]);
4135
- return h.send(), h;
4155
+ }, a.withCredentials = v;
4156
+ for (var A in m)
4157
+ Object.prototype.hasOwnProperty.call(m, A) && a.setRequestHeader(A, m[A]);
4158
+ return a.send(), a;
4136
4159
  };
4137
- function U(h) {
4138
- this._headers = h;
4160
+ function $(a) {
4161
+ this._headers = a;
4139
4162
  }
4140
- U.prototype.get = function(h) {
4141
- return this._headers.get(h);
4163
+ $.prototype.get = function(a) {
4164
+ return this._headers.get(a);
4142
4165
  };
4143
- function D() {
4166
+ function R() {
4144
4167
  }
4145
- D.prototype.open = function(h, s, p, f, g, v, x) {
4146
- var E = null, w = new H(), N = w.signal, F = new T();
4147
- return b(g, {
4148
- headers: x,
4168
+ R.prototype.open = function(a, f, p, h, E, v, m) {
4169
+ var L = null, A = new T(), P = A.signal, G = new _();
4170
+ return g(E, {
4171
+ headers: m,
4149
4172
  credentials: v ? "include" : "same-origin",
4150
- signal: N,
4173
+ signal: P,
4151
4174
  cache: "no-store"
4152
- }).then(function(S) {
4153
- return E = S.body.getReader(), s(S.status, S.statusText, S.headers.get("Content-Type"), new U(S.headers)), new d(function(j, ve) {
4154
- var Qe = function() {
4155
- E.read().then(function(ie) {
4175
+ }).then(function(w) {
4176
+ return L = w.body.getReader(), f(w.status, w.statusText, w.headers.get("Content-Type"), new $(w.headers)), new d(function(V, be) {
4177
+ var Je = function() {
4178
+ L.read().then(function(ie) {
4156
4179
  if (ie.done)
4157
- j(void 0);
4180
+ V(void 0);
4158
4181
  else {
4159
- var Y = F.decode(ie.value, { stream: !0 });
4160
- p(Y), Qe();
4182
+ var K = G.decode(ie.value, { stream: !0 });
4183
+ p(K), Je();
4161
4184
  }
4162
4185
  }).catch(function(ie) {
4163
- ve(ie);
4186
+ be(ie);
4164
4187
  });
4165
4188
  };
4166
- Qe();
4189
+ Je();
4167
4190
  });
4168
- }).catch(function(S) {
4169
- if (S.name !== "AbortError")
4170
- return S;
4171
- }).then(function(S) {
4172
- f(S);
4191
+ }).catch(function(w) {
4192
+ if (w.name !== "AbortError")
4193
+ return w;
4194
+ }).then(function(w) {
4195
+ h(w);
4173
4196
  }), {
4174
4197
  abort: function() {
4175
- E != null && E.cancel(), w.abort();
4198
+ L != null && L.cancel(), A.abort();
4176
4199
  }
4177
4200
  };
4178
4201
  };
4179
- function V() {
4202
+ function X() {
4180
4203
  this._listeners = /* @__PURE__ */ Object.create(null);
4181
4204
  }
4182
- function m(h) {
4205
+ function F(a) {
4183
4206
  r(function() {
4184
- throw h;
4207
+ throw a;
4185
4208
  }, 0);
4186
4209
  }
4187
- V.prototype.dispatchEvent = function(h) {
4188
- h.target = this;
4189
- var s = this._listeners[h.type];
4190
- if (s != null)
4191
- for (var p = s.length, f = 0; f < p; f += 1) {
4192
- var g = s[f];
4210
+ X.prototype.dispatchEvent = function(a) {
4211
+ a.target = this;
4212
+ var f = this._listeners[a.type];
4213
+ if (f != null)
4214
+ for (var p = f.length, h = 0; h < p; h += 1) {
4215
+ var E = f[h];
4193
4216
  try {
4194
- typeof g.handleEvent == "function" ? g.handleEvent(h) : g.call(this, h);
4217
+ typeof E.handleEvent == "function" ? E.handleEvent(a) : E.call(this, a);
4195
4218
  } catch (v) {
4196
- m(v);
4219
+ F(v);
4197
4220
  }
4198
4221
  }
4199
- }, V.prototype.addEventListener = function(h, s) {
4200
- h = String(h);
4201
- var p = this._listeners, f = p[h];
4202
- f == null && (f = [], p[h] = f);
4203
- for (var g = !1, v = 0; v < f.length; v += 1)
4204
- f[v] === s && (g = !0);
4205
- g || f.push(s);
4206
- }, V.prototype.removeEventListener = function(h, s) {
4207
- h = String(h);
4208
- var p = this._listeners, f = p[h];
4209
- if (f != null) {
4210
- for (var g = [], v = 0; v < f.length; v += 1)
4211
- f[v] !== s && g.push(f[v]);
4212
- g.length === 0 ? delete p[h] : p[h] = g;
4222
+ }, X.prototype.addEventListener = function(a, f) {
4223
+ a = String(a);
4224
+ var p = this._listeners, h = p[a];
4225
+ h == null && (h = [], p[a] = h);
4226
+ for (var E = !1, v = 0; v < h.length; v += 1)
4227
+ h[v] === f && (E = !0);
4228
+ E || h.push(f);
4229
+ }, X.prototype.removeEventListener = function(a, f) {
4230
+ a = String(a);
4231
+ var p = this._listeners, h = p[a];
4232
+ if (h != null) {
4233
+ for (var E = [], v = 0; v < h.length; v += 1)
4234
+ h[v] !== f && E.push(h[v]);
4235
+ E.length === 0 ? delete p[a] : p[a] = E;
4213
4236
  }
4214
4237
  };
4215
- function J(h) {
4216
- this.type = h, this.target = void 0;
4238
+ function y(a) {
4239
+ this.type = a, this.target = void 0;
4217
4240
  }
4218
- function it(h, s) {
4219
- J.call(this, h), this.data = s.data, this.lastEventId = s.lastEventId;
4241
+ function _e(a, f) {
4242
+ y.call(this, a), this.data = f.data, this.lastEventId = f.lastEventId;
4220
4243
  }
4221
- it.prototype = Object.create(J.prototype);
4222
- function be(h, s) {
4223
- J.call(this, h), this.status = s.status, this.statusText = s.statusText, this.headers = s.headers;
4244
+ _e.prototype = Object.create(y.prototype);
4245
+ function Ze(a, f) {
4246
+ y.call(this, a), this.status = f.status, this.statusText = f.statusText, this.headers = f.headers;
4224
4247
  }
4225
- be.prototype = Object.create(J.prototype);
4226
- function ze(h, s) {
4227
- J.call(this, h), this.error = s.error;
4248
+ Ze.prototype = Object.create(y.prototype);
4249
+ function Be(a, f) {
4250
+ y.call(this, a), this.error = f.error;
4228
4251
  }
4229
- ze.prototype = Object.create(J.prototype);
4230
- var We = -1, pe = 0, Te = 1, ye = 2, Oe = -1, me = 0, Ae = 1, Ze = 2, Bt = 3, ot = /^text\/event\-stream(;.*)?$/i, Tt = 1e3, wt = 18e6, Re = function(h, s) {
4231
- var p = h == null ? s : parseInt(h, 10);
4232
- return p !== p && (p = s), qe(p);
4233
- }, qe = function(h) {
4234
- return Math.min(Math.max(h, Tt), wt);
4235
- }, we = function(h, s, p) {
4252
+ Be.prototype = Object.create(y.prototype);
4253
+ var Re = -1, me = 0, Te = 1, Ae = 2, Ce = -1, ue = 0, qe = 1, Le = 2, ot = 3, Tt = /^text\/event\-stream(;.*)?$/i, at = 1e3, wt = 18e6, Qe = function(a, f) {
4254
+ var p = a == null ? f : parseInt(a, 10);
4255
+ return p !== p && (p = f), Me(p);
4256
+ }, Me = function(a) {
4257
+ return Math.min(Math.max(a, at), wt);
4258
+ }, we = function(a, f, p) {
4236
4259
  try {
4237
- typeof s == "function" && s.call(h, p);
4238
- } catch (f) {
4239
- m(f);
4260
+ typeof f == "function" && f.call(a, p);
4261
+ } catch (h) {
4262
+ F(h);
4240
4263
  }
4241
4264
  };
4242
- function re(h, s) {
4243
- V.call(this), s = s || {}, 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, h, s);
4265
+ function re(a, f) {
4266
+ X.call(this), f = f || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, Ct(this, a, f);
4244
4267
  }
4245
4268
  function St() {
4246
4269
  return o != null && "withCredentials" in o.prototype || l == null ? new o() : new l();
4247
4270
  }
4248
- var At = b != null && y != null && "body" in y.prototype;
4249
- function Ct(h, s, p) {
4250
- s = String(s);
4251
- var f = !!p.withCredentials, g = p.lastEventIdQueryParameterName || "lastEventId", v = qe(1e3), x = Re(p.heartbeatTimeout, 45e3), E = "", w = v, N = !1, F = 0, S = p.headers || {}, j = p.Transport, ve = At && j == null ? void 0 : new k(j != null ? new j() : St()), Qe = j != null && typeof j != "string" ? new j() : ve == null ? new D() : new W(), ie = void 0, Y = 0, ue = We, Le = "", st = "", Ee = "", lt = "", K = me, Ht = 0, Ce = 0, lr = function(Z, z, oe, ae) {
4252
- if (ue === pe)
4253
- if (Z === 200 && oe != null && ot.test(oe)) {
4254
- ue = Te, N = Date.now(), w = v, h.readyState = Te;
4255
- var ee = new be("open", {
4271
+ var At = g != null && b != null && "body" in b.prototype;
4272
+ function Ct(a, f, p) {
4273
+ f = String(f);
4274
+ var h = !!p.withCredentials, E = p.lastEventIdQueryParameterName || "lastEventId", v = Me(1e3), m = Qe(p.heartbeatTimeout, 45e3), L = "", A = v, P = !1, G = 0, w = p.headers || {}, V = p.Transport, be = At && V == null ? void 0 : new U(V != null ? new V() : St()), Je = V != null && typeof V != "string" ? new V() : be == null ? new R() : new Y(), ie = void 0, K = 0, ce = Re, Ne = "", lt = "", ye = "", ut = "", ee = ue, Ht = 0, He = 0, lr = function(Z, z, oe, ae) {
4275
+ if (ce === me)
4276
+ if (Z === 200 && oe != null && Tt.test(oe)) {
4277
+ ce = Te, P = Date.now(), A = v, a.readyState = Te;
4278
+ var te = new Ze("open", {
4256
4279
  status: Z,
4257
4280
  statusText: z,
4258
4281
  headers: ae
4259
4282
  });
4260
- h.dispatchEvent(ee), we(h, h.onopen, ee);
4283
+ a.dispatchEvent(te), we(a, a.onopen, te);
4261
4284
  } else {
4262
- var q = "";
4263
- Z !== 200 ? (z && (z = z.replace(/\s+/g, " ")), q = "EventSource's response has a status " + Z + " " + z + " that is not 200. Aborting the connection.") : q = "EventSource's response has a Content-Type specifying an unsupported type: " + (oe == null ? "-" : oe.replace(/\s+/g, " ")) + ". Aborting the connection.", Ot();
4264
- var ee = new be("error", {
4285
+ var Q = "";
4286
+ Z !== 200 ? (z && (z = z.replace(/\s+/g, " ")), Q = "EventSource's response has a status " + Z + " " + z + " that is not 200. Aborting the connection.") : Q = "EventSource's response has a Content-Type specifying an unsupported type: " + (oe == null ? "-" : oe.replace(/\s+/g, " ")) + ". Aborting the connection.", Ot();
4287
+ var te = new Ze("error", {
4265
4288
  status: Z,
4266
4289
  statusText: z,
4267
4290
  headers: ae
4268
4291
  });
4269
- h.dispatchEvent(ee), we(h, h.onerror, ee), console.error(q);
4292
+ a.dispatchEvent(te), we(a, a.onerror, te), console.error(Q);
4270
4293
  }
4271
4294
  }, ur = function(Z) {
4272
- if (ue === Te) {
4295
+ if (ce === Te) {
4273
4296
  for (var z = -1, oe = 0; oe < Z.length; oe += 1) {
4274
4297
  var ae = Z.charCodeAt(oe);
4275
4298
  (ae === 10 || ae === 13) && (z = oe);
4276
4299
  }
4277
- var ee = (z !== -1 ? lt : "") + Z.slice(0, z + 1);
4278
- lt = (z === -1 ? lt : "") + Z.slice(z + 1), Z !== "" && (N = Date.now(), F += Z.length);
4279
- for (var q = 0; q < ee.length; q += 1) {
4280
- var ae = ee.charCodeAt(q);
4281
- if (K === Oe && ae === 10)
4282
- K = me;
4283
- else if (K === Oe && (K = me), ae === 13 || ae === 10) {
4284
- if (K !== me) {
4285
- K === Ae && (Ce = q + 1);
4286
- var xe = ee.slice(Ht, Ce - 1), _e = ee.slice(Ce + (Ce < q && ee.charCodeAt(Ce) === 32 ? 1 : 0), q);
4287
- xe === "data" ? (Le += `
4288
- `, Le += _e) : xe === "id" ? st = _e : xe === "event" ? Ee = _e : xe === "retry" ? (v = Re(_e, v), w = v) : xe === "heartbeatTimeout" && (x = Re(_e, x), Y !== 0 && (i(Y), Y = r(function() {
4289
- Je();
4290
- }, x)));
4300
+ var te = (z !== -1 ? ut : "") + Z.slice(0, z + 1);
4301
+ ut = (z === -1 ? ut : "") + Z.slice(z + 1), Z !== "" && (P = Date.now(), G += Z.length);
4302
+ for (var Q = 0; Q < te.length; Q += 1) {
4303
+ var ae = te.charCodeAt(Q);
4304
+ if (ee === Ce && ae === 10)
4305
+ ee = ue;
4306
+ else if (ee === Ce && (ee = ue), ae === 13 || ae === 10) {
4307
+ if (ee !== ue) {
4308
+ ee === qe && (He = Q + 1);
4309
+ var ve = te.slice(Ht, He - 1), Ee = te.slice(He + (He < Q && te.charCodeAt(He) === 32 ? 1 : 0), Q);
4310
+ ve === "data" ? (Ne += `
4311
+ `, Ne += Ee) : ve === "id" ? lt = Ee : ve === "event" ? ye = Ee : ve === "retry" ? (v = Qe(Ee, v), A = v) : ve === "heartbeatTimeout" && (m = Qe(Ee, m), K !== 0 && (i(K), K = r(function() {
4312
+ Ye();
4313
+ }, m)));
4291
4314
  }
4292
- if (K === me) {
4293
- if (Le !== "") {
4294
- E = st, Ee === "" && (Ee = "message");
4295
- var Me = new it(Ee, {
4296
- data: Le.slice(1),
4297
- lastEventId: st
4315
+ if (ee === ue) {
4316
+ if (Ne !== "") {
4317
+ L = lt, ye === "" && (ye = "message");
4318
+ var Ie = new _e(ye, {
4319
+ data: Ne.slice(1),
4320
+ lastEventId: lt
4298
4321
  });
4299
- if (h.dispatchEvent(Me), Ee === "open" ? we(h, h.onopen, Me) : Ee === "message" ? we(h, h.onmessage, Me) : Ee === "error" && we(h, h.onerror, Me), ue === ye)
4322
+ if (a.dispatchEvent(Ie), ye === "open" ? we(a, a.onopen, Ie) : ye === "message" ? we(a, a.onmessage, Ie) : ye === "error" && we(a, a.onerror, Ie), ce === Ae)
4300
4323
  return;
4301
4324
  }
4302
- Le = "", Ee = "";
4325
+ Ne = "", ye = "";
4303
4326
  }
4304
- K = ae === 13 ? Oe : me;
4327
+ ee = ae === 13 ? Ce : ue;
4305
4328
  } else
4306
- K === me && (Ht = q, K = Ae), K === Ae ? ae === 58 && (Ce = q + 1, K = Ze) : K === Ze && (K = Bt);
4329
+ ee === ue && (Ht = Q, ee = qe), ee === qe ? ae === 58 && (He = Q + 1, ee = Le) : ee === Le && (ee = ot);
4307
4330
  }
4308
4331
  }
4309
4332
  }, an = function(Z) {
4310
- if (ue === Te || ue === pe) {
4311
- ue = We, Y !== 0 && (i(Y), Y = 0), Y = r(function() {
4312
- Je();
4313
- }, w), w = qe(Math.min(v * 16, w * 2)), h.readyState = pe;
4314
- var z = new ze("error", { error: Z });
4315
- h.dispatchEvent(z), we(h, h.onerror, z), Z != null && console.error(Z);
4333
+ if (ce === Te || ce === me) {
4334
+ ce = Re, K !== 0 && (i(K), K = 0), K = r(function() {
4335
+ Ye();
4336
+ }, A), A = Me(Math.min(v * 16, A * 2)), a.readyState = me;
4337
+ var z = new Be("error", { error: Z });
4338
+ a.dispatchEvent(z), we(a, a.onerror, z), Z != null && console.error(Z);
4316
4339
  }
4317
4340
  }, Ot = function() {
4318
- ue = ye, ie != null && (ie.abort(), ie = void 0), Y !== 0 && (i(Y), Y = 0), h.readyState = ye;
4319
- }, Je = function() {
4320
- if (Y = 0, ue !== We) {
4321
- if (!N && ie != null)
4322
- an(new Error("No activity within " + x + " milliseconds. " + (ue === pe ? "No response received." : F + " chars received.") + " Reconnecting.")), ie != null && (ie.abort(), ie = void 0);
4341
+ ce = Ae, ie != null && (ie.abort(), ie = void 0), K !== 0 && (i(K), K = 0), a.readyState = Ae;
4342
+ }, Ye = function() {
4343
+ if (K = 0, ce !== Re) {
4344
+ if (!P && ie != null)
4345
+ an(new Error("No activity within " + m + " milliseconds. " + (ce === me ? "No response received." : G + " chars received.") + " Reconnecting.")), ie != null && (ie.abort(), ie = void 0);
4323
4346
  else {
4324
- var Z = Math.max((N || Date.now()) + x - Date.now(), 1);
4325
- N = !1, Y = r(function() {
4326
- Je();
4347
+ var Z = Math.max((P || Date.now()) + m - Date.now(), 1);
4348
+ P = !1, K = r(function() {
4349
+ Ye();
4327
4350
  }, Z);
4328
4351
  }
4329
4352
  return;
4330
4353
  }
4331
- N = !1, F = 0, Y = r(function() {
4332
- Je();
4333
- }, x), ue = pe, Le = "", Ee = "", st = E, lt = "", Ht = 0, Ce = 0, K = me;
4334
- var z = s;
4335
- if (s.slice(0, 5) !== "data:" && s.slice(0, 5) !== "blob:" && E !== "") {
4336
- var oe = s.indexOf("?");
4337
- z = oe === -1 ? s : s.slice(0, oe + 1) + s.slice(oe + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(_e, Me) {
4338
- return Me === g ? "" : _e;
4339
- }), z += (s.indexOf("?") === -1 ? "?" : "&") + g + "=" + encodeURIComponent(E);
4354
+ P = !1, G = 0, K = r(function() {
4355
+ Ye();
4356
+ }, m), ce = me, Ne = "", ye = "", lt = L, ut = "", Ht = 0, He = 0, ee = ue;
4357
+ var z = f;
4358
+ if (f.slice(0, 5) !== "data:" && f.slice(0, 5) !== "blob:" && L !== "") {
4359
+ var oe = f.indexOf("?");
4360
+ z = oe === -1 ? f : f.slice(0, oe + 1) + f.slice(oe + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Ee, Ie) {
4361
+ return Ie === E ? "" : Ee;
4362
+ }), z += (f.indexOf("?") === -1 ? "?" : "&") + E + "=" + encodeURIComponent(L);
4340
4363
  }
4341
- var ae = h.withCredentials, ee = {};
4342
- ee.Accept = "text/event-stream";
4343
- var q = h.headers;
4344
- if (q != null)
4345
- for (var xe in q)
4346
- Object.prototype.hasOwnProperty.call(q, xe) && (ee[xe] = q[xe]);
4364
+ var ae = a.withCredentials, te = {};
4365
+ te.Accept = "text/event-stream";
4366
+ var Q = a.headers;
4367
+ if (Q != null)
4368
+ for (var ve in Q)
4369
+ Object.prototype.hasOwnProperty.call(Q, ve) && (te[ve] = Q[ve]);
4347
4370
  try {
4348
- ie = Qe.open(ve, lr, ur, an, z, ae, ee);
4349
- } catch (_e) {
4350
- throw Ot(), _e;
4371
+ ie = Je.open(be, lr, ur, an, z, ae, te);
4372
+ } catch (Ee) {
4373
+ throw Ot(), Ee;
4351
4374
  }
4352
4375
  };
4353
- h.url = s, h.readyState = pe, h.withCredentials = f, h.headers = S, h._close = Ot, Je();
4376
+ a.url = f, a.readyState = me, a.withCredentials = h, a.headers = w, a._close = Ot, Ye();
4354
4377
  }
4355
- re.prototype = Object.create(V.prototype), re.prototype.CONNECTING = pe, re.prototype.OPEN = Te, re.prototype.CLOSED = ye, re.prototype.close = function() {
4378
+ re.prototype = Object.create(X.prototype), re.prototype.CONNECTING = me, re.prototype.OPEN = Te, re.prototype.CLOSED = Ae, re.prototype.close = function() {
4356
4379
  this._close();
4357
- }, re.CONNECTING = pe, re.OPEN = Te, re.CLOSED = ye, re.prototype.withCredentials = void 0;
4358
- var at = c;
4359
- o != null && (c == null || !("withCredentials" in c.prototype)) && (at = re), function(h) {
4380
+ }, re.CONNECTING = me, re.OPEN = Te, re.CLOSED = Ae, re.prototype.withCredentials = void 0;
4381
+ var st = c;
4382
+ o != null && (c == null || !("withCredentials" in c.prototype)) && (st = re), function(a) {
4360
4383
  {
4361
- var s = h(t);
4362
- s !== void 0 && (e.exports = s);
4384
+ var f = a(t);
4385
+ f !== void 0 && (e.exports = f);
4363
4386
  }
4364
- }(function(h) {
4365
- h.EventSourcePolyfill = re, h.NativeEventSource = c, h.EventSource = at;
4387
+ }(function(a) {
4388
+ a.EventSourcePolyfill = re, a.NativeEventSource = c, a.EventSource = st;
4366
4389
  });
4367
- })(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : Fr : globalThis);
4390
+ })(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : jr : globalThis);
4368
4391
  })(en, en.exports);
4369
- var Ho = en.exports;
4392
+ var Lo = en.exports;
4370
4393
  /*!
4371
4394
  * currency.js - v2.0.4
4372
4395
  * http://scurker.github.io/currency.js
@@ -4374,7 +4397,7 @@ var Ho = en.exports;
4374
4397
  * Copyright (c) 2021 Jason Wilson
4375
4398
  * Released under MIT license
4376
4399
  */
4377
- var Oo = {
4400
+ var Mo = {
4378
4401
  symbol: "$",
4379
4402
  separator: ",",
4380
4403
  decimal: ".",
@@ -4382,43 +4405,43 @@ var Oo = {
4382
4405
  precision: 2,
4383
4406
  pattern: "!#",
4384
4407
  negativePattern: "-!#",
4385
- format: No,
4408
+ format: Do,
4386
4409
  fromCents: !1
4387
4410
  }, sr = function(t) {
4388
4411
  return Math.round(t);
4389
4412
  }, on = function(t) {
4390
4413
  return Math.pow(10, t);
4391
- }, Ro = function(t, n) {
4414
+ }, No = function(t, n) {
4392
4415
  return sr(t / n) * n;
4393
- }, Lo = /(\d)(?=(\d{3})+\b)/g, Mo = /(\d)(?=(\d\d)+\d\b)/g;
4394
- function ce(e, t) {
4416
+ }, Io = /(\d)(?=(\d{3})+\b)/g, Po = /(\d)(?=(\d\d)+\d\b)/g;
4417
+ function he(e, t) {
4395
4418
  var n = this;
4396
- if (!(n instanceof ce))
4397
- return new ce(e, t);
4398
- var r = Object.assign({}, Oo, t), i = on(r.precision), o = dt(e, r);
4399
- n.intValue = o, n.value = o / i, r.increment = r.increment || 1 / i, r.useVedic ? r.groups = Mo : r.groups = Lo, this.s = r, this.p = i;
4400
- }
4401
- function dt(e, t) {
4402
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, i = t.decimal, o = t.errorOnInvalid, l = t.precision, a = t.fromCents, c = on(l), u = typeof e == "number", d = e instanceof ce;
4403
- if (d && a)
4419
+ if (!(n instanceof he))
4420
+ return new he(e, t);
4421
+ var r = Object.assign({}, Mo, t), i = on(r.precision), o = pt(e, r);
4422
+ n.intValue = o, n.value = o / i, r.increment = r.increment || 1 / i, r.useVedic ? r.groups = Po : r.groups = Io, this.s = r, this.p = i;
4423
+ }
4424
+ function pt(e, t) {
4425
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, i = t.decimal, o = t.errorOnInvalid, l = t.precision, s = t.fromCents, c = on(l), u = typeof e == "number", d = e instanceof he;
4426
+ if (d && s)
4404
4427
  return e.intValue;
4405
4428
  if (u || d)
4406
4429
  r = d ? e.value : e;
4407
4430
  else if (typeof e == "string") {
4408
- var b = new RegExp("[^-\\d" + i + "]", "g"), y = new RegExp("\\" + i, "g");
4409
- r = e.replace(/\((.*)\)/, "-$1").replace(b, "").replace(y, "."), r = r || 0;
4431
+ var g = new RegExp("[^-\\d" + i + "]", "g"), b = new RegExp("\\" + i, "g");
4432
+ r = e.replace(/\((.*)\)/, "-$1").replace(g, "").replace(b, "."), r = r || 0;
4410
4433
  } else {
4411
4434
  if (o)
4412
4435
  throw Error("Invalid Input");
4413
4436
  r = 0;
4414
4437
  }
4415
- return a || (r *= c, r = r.toFixed(4)), n ? sr(r) : r;
4438
+ return s || (r *= c, r = r.toFixed(4)), n ? sr(r) : r;
4416
4439
  }
4417
- function No(e, t) {
4418
- var n = t.pattern, r = t.negativePattern, i = t.symbol, o = t.separator, l = t.decimal, a = t.groups, c = ("" + e).replace(/^-/, "").split("."), u = c[0], d = c[1];
4419
- return (e.value >= 0 ? n : r).replace("!", i).replace("#", u.replace(a, "$1" + o) + (d ? l + d : ""));
4440
+ function Do(e, t) {
4441
+ var n = t.pattern, r = t.negativePattern, i = t.symbol, o = t.separator, l = t.decimal, s = t.groups, c = ("" + e).replace(/^-/, "").split("."), u = c[0], d = c[1];
4442
+ return (e.value >= 0 ? n : r).replace("!", i).replace("#", u.replace(s, "$1" + o) + (d ? l + d : ""));
4420
4443
  }
4421
- ce.prototype = {
4444
+ he.prototype = {
4422
4445
  /**
4423
4446
  * Adds values together.
4424
4447
  * @param {number} number
@@ -4426,7 +4449,7 @@ ce.prototype = {
4426
4449
  */
4427
4450
  add: function(t) {
4428
4451
  var n = this.intValue, r = this.s, i = this.p;
4429
- return ce((n += dt(t, r)) / (r.fromCents ? 1 : i), r);
4452
+ return he((n += pt(t, r)) / (r.fromCents ? 1 : i), r);
4430
4453
  },
4431
4454
  /**
4432
4455
  * Subtracts value.
@@ -4435,7 +4458,7 @@ ce.prototype = {
4435
4458
  */
4436
4459
  subtract: function(t) {
4437
4460
  var n = this.intValue, r = this.s, i = this.p;
4438
- return ce((n -= dt(t, r)) / (r.fromCents ? 1 : i), r);
4461
+ return he((n -= pt(t, r)) / (r.fromCents ? 1 : i), r);
4439
4462
  },
4440
4463
  /**
4441
4464
  * Multiplies values.
@@ -4444,7 +4467,7 @@ ce.prototype = {
4444
4467
  */
4445
4468
  multiply: function(t) {
4446
4469
  var n = this.intValue, r = this.s;
4447
- return ce((n *= t) / (r.fromCents ? 1 : on(r.precision)), r);
4470
+ return he((n *= t) / (r.fromCents ? 1 : on(r.precision)), r);
4448
4471
  },
4449
4472
  /**
4450
4473
  * Divides value.
@@ -4453,7 +4476,7 @@ ce.prototype = {
4453
4476
  */
4454
4477
  divide: function(t) {
4455
4478
  var n = this.intValue, r = this.s;
4456
- return ce(n /= dt(t, r, !1), r);
4479
+ return he(n /= pt(t, r, !1), r);
4457
4480
  },
4458
4481
  /**
4459
4482
  * Takes the currency amount and distributes the values evenly. Any extra pennies
@@ -4462,9 +4485,9 @@ ce.prototype = {
4462
4485
  * @returns {array}
4463
4486
  */
4464
4487
  distribute: function(t) {
4465
- for (var n = this.intValue, r = this.p, i = this.s, o = [], l = Math[n >= 0 ? "floor" : "ceil"](n / t), a = Math.abs(n - l * t), c = i.fromCents ? 1 : r; t !== 0; t--) {
4466
- var u = ce(l / c, i);
4467
- a-- > 0 && (u = u[n >= 0 ? "add" : "subtract"](1 / c)), o.push(u);
4488
+ for (var n = this.intValue, r = this.p, i = this.s, o = [], l = Math[n >= 0 ? "floor" : "ceil"](n / t), s = Math.abs(n - l * t), c = i.fromCents ? 1 : r; t !== 0; t--) {
4489
+ var u = he(l / c, i);
4490
+ s-- > 0 && (u = u[n >= 0 ? "add" : "subtract"](1 / c)), o.push(u);
4468
4491
  }
4469
4492
  return o;
4470
4493
  },
@@ -4498,7 +4521,7 @@ ce.prototype = {
4498
4521
  */
4499
4522
  toString: function() {
4500
4523
  var t = this.intValue, n = this.p, r = this.s;
4501
- return Ro(t / n, r.increment).toFixed(r.precision);
4524
+ return No(t / n, r.increment).toFixed(r.precision);
4502
4525
  },
4503
4526
  /**
4504
4527
  * Value for JSON serialization.
@@ -4508,7 +4531,7 @@ ce.prototype = {
4508
4531
  return this.value;
4509
4532
  }
4510
4533
  };
4511
- function Io(e) {
4534
+ function Uo(e) {
4512
4535
  br(e, "svelte-1tsugyl", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}');
4513
4536
  }
4514
4537
  function Sn(e, t, n) {
@@ -4519,7 +4542,7 @@ function An(e, t, n) {
4519
4542
  const r = e.slice();
4520
4543
  return r[53] = t[n], r;
4521
4544
  }
4522
- function Po(e) {
4545
+ function Fo(e) {
4523
4546
  let t, n, r = (
4524
4547
  /*balances*/
4525
4548
  (e[1].Total ? (
@@ -4529,58 +4552,58 @@ function Po(e) {
4529
4552
  e[1].Total[0].amount
4530
4553
  )
4531
4554
  ) : "0") + ""
4532
- ), i, o, l, a, c, u, d, b, y, T, _, H, B = (
4555
+ ), i, o, l, s, c, u, d, g, b, _, B, T, x = (
4533
4556
  /*showBalance*/
4534
4557
  e[4] && Cn(e)
4535
4558
  );
4536
4559
  return {
4537
4560
  c() {
4538
- t = $("div"), n = $("p"), i = he(r), o = de(), l = he(
4561
+ t = k("div"), n = k("p"), i = fe(r), o = pe(), l = fe(
4539
4562
  /*currency*/
4540
4563
  e[5]
4541
- ), a = de(), c = $("span"), u = un("svg"), d = un("path"), y = de(), B && B.c(), T = Er(), M(d, "id", "arrow"), M(d, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), M(d, "transform", "translate(-274.511 -441.088)"), M(d, "fill", "#d1d1d1"), M(u, "xmlns", "http://www.w3.org/2000/svg"), M(u, "width", "14"), M(u, "height", "6.835"), M(u, "viewBox", "0 0 14 6.835"), M(c, "class", b = /*modalOpened*/
4542
- e[3] ? "TriangleActive" : "TriangleInactive"), M(t, "class", "BalanceValue");
4564
+ ), s = pe(), c = k("span"), u = un("svg"), d = un("path"), b = pe(), x && x.c(), _ = Er(), N(d, "id", "arrow"), N(d, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), N(d, "transform", "translate(-274.511 -441.088)"), N(d, "fill", "#d1d1d1"), N(u, "xmlns", "http://www.w3.org/2000/svg"), N(u, "width", "14"), N(u, "height", "6.835"), N(u, "viewBox", "0 0 14 6.835"), N(c, "class", g = /*modalOpened*/
4565
+ e[3] ? "TriangleActive" : "TriangleInactive"), N(t, "class", "BalanceValue");
4543
4566
  },
4544
- m(A, P) {
4545
- ge(A, t, P), C(t, n), C(n, i), C(n, o), C(n, l), C(t, a), C(t, c), C(c, u), C(u, d), ge(A, y, P), B && B.m(A, P), ge(A, T, P), _ || (H = pt(
4567
+ m(S, D) {
4568
+ ge(S, t, D), C(t, n), C(n, i), C(n, o), C(n, l), C(t, s), C(t, c), C(c, u), C(u, d), ge(S, b, D), x && x.m(S, D), ge(S, _, D), B || (T = mt(
4546
4569
  t,
4547
4570
  "click",
4548
4571
  /*click_handler*/
4549
- e[24]
4550
- ), _ = !0);
4572
+ e[25]
4573
+ ), B = !0);
4551
4574
  },
4552
- p(A, P) {
4553
- P[0] & /*balances*/
4575
+ p(S, D) {
4576
+ D[0] & /*balances*/
4554
4577
  2 && r !== (r = /*balances*/
4555
- (A[1].Total ? (
4578
+ (S[1].Total ? (
4556
4579
  /*formatBalance*/
4557
- A[8](
4580
+ S[8](
4558
4581
  /*balances*/
4559
- A[1].Total[0].amount
4582
+ S[1].Total[0].amount
4560
4583
  )
4561
- ) : "0") + "") && Be(i, r), P[0] & /*currency*/
4562
- 32 && Be(
4584
+ ) : "0") + "") && xe(i, r), D[0] & /*currency*/
4585
+ 32 && xe(
4563
4586
  l,
4564
4587
  /*currency*/
4565
- A[5]
4566
- ), P[0] & /*modalOpened*/
4567
- 8 && b !== (b = /*modalOpened*/
4568
- A[3] ? "TriangleActive" : "TriangleInactive") && M(c, "class", b), /*showBalance*/
4569
- A[4] ? B ? B.p(A, P) : (B = Cn(A), B.c(), B.m(T.parentNode, T)) : B && (B.d(1), B = null);
4588
+ S[5]
4589
+ ), D[0] & /*modalOpened*/
4590
+ 8 && g !== (g = /*modalOpened*/
4591
+ S[3] ? "TriangleActive" : "TriangleInactive") && N(c, "class", g), /*showBalance*/
4592
+ S[4] ? x ? x.p(S, D) : (x = Cn(S), x.c(), x.m(_.parentNode, _)) : x && (x.d(1), x = null);
4570
4593
  },
4571
- d(A) {
4572
- A && (fe(t), fe(y), fe(T)), B && B.d(A), _ = !1, H();
4594
+ d(S) {
4595
+ S && (de(t), de(b), de(_)), x && x.d(S), B = !1, T();
4573
4596
  }
4574
4597
  };
4575
4598
  }
4576
- function Do(e) {
4599
+ function Go(e) {
4577
4600
  let t, n = (
4578
4601
  /*$_*/
4579
4602
  e[6]("Loading") + ""
4580
4603
  ), r;
4581
4604
  return {
4582
4605
  c() {
4583
- t = $("p"), r = he(n), M(t, "class", "Loading");
4606
+ t = k("p"), r = fe(n), N(t, "class", "Loading");
4584
4607
  },
4585
4608
  m(i, o) {
4586
4609
  ge(i, t, o), C(t, r);
@@ -4588,88 +4611,88 @@ function Do(e) {
4588
4611
  p(i, o) {
4589
4612
  o[0] & /*$_*/
4590
4613
  64 && n !== (n = /*$_*/
4591
- i[6]("Loading") + "") && Be(r, n);
4614
+ i[6]("Loading") + "") && xe(r, n);
4592
4615
  },
4593
4616
  d(i) {
4594
- i && fe(t);
4617
+ i && de(t);
4595
4618
  }
4596
4619
  };
4597
4620
  }
4598
4621
  function Cn(e) {
4599
- let t, n, r, i, o, l, a, c, u = (
4622
+ let t, n, r, i, o, l, s, c, u = (
4600
4623
  /*$_*/
4601
4624
  e[6]("Title") + ""
4602
- ), d, b, y, T, _, H, B = (
4625
+ ), d, g, b, _, B, T, x = (
4603
4626
  /*$_*/
4604
4627
  e[6]("DepositButton") + ""
4605
- ), A, P, O, k, X, ne, W = mt(Object.keys(
4628
+ ), S, D, H, U, W, q, Y = gt(Object.keys(
4606
4629
  /*balances*/
4607
4630
  e[1]
4608
- )), U = [];
4609
- for (let D = 0; D < W.length; D += 1)
4610
- U[D] = On(Sn(e, W, D));
4631
+ )), $ = [];
4632
+ for (let R = 0; R < Y.length; R += 1)
4633
+ $[R] = On(Sn(e, Y, R));
4611
4634
  return {
4612
4635
  c() {
4613
- t = $("div"), n = $("div"), i = de(), o = $("div"), l = $("div"), a = $("div"), c = $("p"), d = he(u), b = de(), y = $("div");
4614
- for (let D = 0; D < U.length; D += 1)
4615
- U[D].c();
4616
- T = de(), _ = $("div"), H = $("button"), A = he(B), M(n, "class", r = "BalanceModalClose " + /*modalOpened*/
4617
- (e[3] ? "Open" : "")), M(c, "class", "BalanceModalTitle"), M(a, "class", "BalanceModalHeader"), M(y, "class", "BalanceModalBody"), M(H, "class", "BalanceModalAction"), M(_, "class", "BalanceModalFooter"), M(l, "class", P = "ModalContent " + /*modalOpened*/
4618
- (e[3] ? "Open" : "")), M(o, "class", O = "BalanceModal " + /*modalOpened*/
4619
- (e[3] ? "Open" : "")), M(t, "class", k = "BalanceModalWrapper " + /*modalOpened*/
4636
+ t = k("div"), n = k("div"), i = pe(), o = k("div"), l = k("div"), s = k("div"), c = k("p"), d = fe(u), g = pe(), b = k("div");
4637
+ for (let R = 0; R < $.length; R += 1)
4638
+ $[R].c();
4639
+ _ = pe(), B = k("div"), T = k("button"), S = fe(x), N(n, "class", r = "BalanceModalClose " + /*modalOpened*/
4640
+ (e[3] ? "Open" : "")), N(c, "class", "BalanceModalTitle"), N(s, "class", "BalanceModalHeader"), N(b, "class", "BalanceModalBody"), N(T, "class", "BalanceModalAction"), N(B, "class", "BalanceModalFooter"), N(l, "class", D = "ModalContent " + /*modalOpened*/
4641
+ (e[3] ? "Open" : "")), N(o, "class", H = "BalanceModal " + /*modalOpened*/
4642
+ (e[3] ? "Open" : "")), N(t, "class", U = "BalanceModalWrapper " + /*modalOpened*/
4620
4643
  (e[3] ? "Open" : ""));
4621
4644
  },
4622
- m(D, V) {
4623
- ge(D, t, V), C(t, n), C(t, i), C(t, o), C(o, l), C(l, a), C(a, c), C(c, d), C(l, b), C(l, y);
4624
- for (let m = 0; m < U.length; m += 1)
4625
- U[m] && U[m].m(y, null);
4626
- C(l, T), C(l, _), C(_, H), C(H, A), X || (ne = [
4627
- pt(
4645
+ m(R, X) {
4646
+ ge(R, t, X), C(t, n), C(t, i), C(t, o), C(o, l), C(l, s), C(s, c), C(c, d), C(l, g), C(l, b);
4647
+ for (let F = 0; F < $.length; F += 1)
4648
+ $[F] && $[F].m(b, null);
4649
+ C(l, _), C(l, B), C(B, T), C(T, S), W || (q = [
4650
+ mt(
4628
4651
  n,
4629
4652
  "click",
4630
4653
  /*click_handler_1*/
4631
- e[25]
4654
+ e[26]
4632
4655
  ),
4633
- pt(
4634
- H,
4656
+ mt(
4657
+ T,
4635
4658
  "click",
4636
4659
  /*click_handler_2*/
4637
- e[26]
4660
+ e[27]
4638
4661
  )
4639
- ], X = !0);
4662
+ ], W = !0);
4640
4663
  },
4641
- p(D, V) {
4642
- if (V[0] & /*modalOpened*/
4664
+ p(R, X) {
4665
+ if (X[0] & /*modalOpened*/
4643
4666
  8 && r !== (r = "BalanceModalClose " + /*modalOpened*/
4644
- (D[3] ? "Open" : "")) && M(n, "class", r), V[0] & /*$_*/
4667
+ (R[3] ? "Open" : "")) && N(n, "class", r), X[0] & /*$_*/
4645
4668
  64 && u !== (u = /*$_*/
4646
- D[6]("Title") + "") && Be(d, u), V[0] & /*balances, currency, formatBalance, $_*/
4669
+ R[6]("Title") + "") && xe(d, u), X[0] & /*balances, currency, formatBalance, $_*/
4647
4670
  354) {
4648
- W = mt(Object.keys(
4671
+ Y = gt(Object.keys(
4649
4672
  /*balances*/
4650
- D[1]
4673
+ R[1]
4651
4674
  ));
4652
- let m;
4653
- for (m = 0; m < W.length; m += 1) {
4654
- const J = Sn(D, W, m);
4655
- U[m] ? U[m].p(J, V) : (U[m] = On(J), U[m].c(), U[m].m(y, null));
4675
+ let F;
4676
+ for (F = 0; F < Y.length; F += 1) {
4677
+ const y = Sn(R, Y, F);
4678
+ $[F] ? $[F].p(y, X) : ($[F] = On(y), $[F].c(), $[F].m(b, null));
4656
4679
  }
4657
- for (; m < U.length; m += 1)
4658
- U[m].d(1);
4659
- U.length = W.length;
4680
+ for (; F < $.length; F += 1)
4681
+ $[F].d(1);
4682
+ $.length = Y.length;
4660
4683
  }
4661
- V[0] & /*$_*/
4662
- 64 && B !== (B = /*$_*/
4663
- D[6]("DepositButton") + "") && Be(A, B), V[0] & /*modalOpened*/
4664
- 8 && P !== (P = "ModalContent " + /*modalOpened*/
4665
- (D[3] ? "Open" : "")) && M(l, "class", P), V[0] & /*modalOpened*/
4666
- 8 && O !== (O = "BalanceModal " + /*modalOpened*/
4667
- (D[3] ? "Open" : "")) && M(o, "class", O), V[0] & /*modalOpened*/
4668
- 8 && k !== (k = "BalanceModalWrapper " + /*modalOpened*/
4669
- (D[3] ? "Open" : "")) && M(t, "class", k);
4684
+ X[0] & /*$_*/
4685
+ 64 && x !== (x = /*$_*/
4686
+ R[6]("DepositButton") + "") && xe(S, x), X[0] & /*modalOpened*/
4687
+ 8 && D !== (D = "ModalContent " + /*modalOpened*/
4688
+ (R[3] ? "Open" : "")) && N(l, "class", D), X[0] & /*modalOpened*/
4689
+ 8 && H !== (H = "BalanceModal " + /*modalOpened*/
4690
+ (R[3] ? "Open" : "")) && N(o, "class", H), X[0] & /*modalOpened*/
4691
+ 8 && U !== (U = "BalanceModalWrapper " + /*modalOpened*/
4692
+ (R[3] ? "Open" : "")) && N(t, "class", U);
4670
4693
  },
4671
- d(D) {
4672
- D && fe(t), In(U, D), X = !1, je(ne);
4694
+ d(R) {
4695
+ R && de(t), In($, R), W = !1, Ve(q);
4673
4696
  }
4674
4697
  };
4675
4698
  }
@@ -4689,7 +4712,7 @@ function Hn(e) {
4689
4712
  e[53].productType
4690
4713
  )
4691
4714
  ) : "") + ""
4692
- ), a, c, u, d, b = (
4715
+ ), s, c, u, d, g = (
4693
4716
  /*b*/
4694
4717
  (e[53].amount ? (
4695
4718
  /*formatBalance*/
@@ -4698,53 +4721,53 @@ function Hn(e) {
4698
4721
  e[53].amount
4699
4722
  )
4700
4723
  ) : "0") + ""
4701
- ), y, T, _, H;
4724
+ ), b, _, B, T;
4702
4725
  return {
4703
4726
  c() {
4704
- t = $("div"), n = $("p"), i = he(r), o = de(), a = he(l), c = de(), u = $("p"), d = $("span"), y = he(b), T = de(), _ = $("span"), H = he(
4727
+ t = k("div"), n = k("p"), i = fe(r), o = pe(), s = fe(l), c = pe(), u = k("p"), d = k("span"), b = fe(g), _ = pe(), B = k("span"), T = fe(
4705
4728
  /*currency*/
4706
4729
  e[5]
4707
- ), M(n, "class", "BalanceModalText"), M(d, "class", "BalanceModalAmount"), M(_, "class", "BalanceModalCurrency"), M(u, "class", "BalanceModalValue"), M(t, "class", "BalanceModalRowLine");
4730
+ ), N(n, "class", "BalanceModalText"), N(d, "class", "BalanceModalAmount"), N(B, "class", "BalanceModalCurrency"), N(u, "class", "BalanceModalValue"), N(t, "class", "BalanceModalRowLine");
4708
4731
  },
4709
- m(B, A) {
4710
- ge(B, t, A), C(t, n), C(n, i), C(n, o), C(n, a), C(t, c), C(t, u), C(u, d), C(d, y), C(u, T), C(u, _), C(_, H);
4732
+ m(x, S) {
4733
+ ge(x, t, S), C(t, n), C(n, i), C(n, o), C(n, s), C(t, c), C(t, u), C(u, d), C(d, b), C(u, _), C(u, B), C(B, T);
4711
4734
  },
4712
- p(B, A) {
4713
- A[0] & /*$_, balances*/
4735
+ p(x, S) {
4736
+ S[0] & /*$_, balances*/
4714
4737
  66 && r !== (r = /*$_*/
4715
- B[6](
4738
+ x[6](
4716
4739
  /*k*/
4717
- B[50]
4718
- ) + "") && Be(i, r), A[0] & /*balances, $_*/
4740
+ x[50]
4741
+ ) + "") && xe(i, r), S[0] & /*balances, $_*/
4719
4742
  66 && l !== (l = /*b*/
4720
- (B[53].productType ? (
4743
+ (x[53].productType ? (
4721
4744
  /*$_*/
4722
- B[6](
4745
+ x[6](
4723
4746
  /*b*/
4724
- B[53].productType
4747
+ x[53].productType
4725
4748
  )
4726
- ) : "") + "") && Be(a, l), A[0] & /*balances*/
4727
- 2 && b !== (b = /*b*/
4728
- (B[53].amount ? (
4749
+ ) : "") + "") && xe(s, l), S[0] & /*balances*/
4750
+ 2 && g !== (g = /*b*/
4751
+ (x[53].amount ? (
4729
4752
  /*formatBalance*/
4730
- B[8](
4753
+ x[8](
4731
4754
  /*b*/
4732
- B[53].amount
4755
+ x[53].amount
4733
4756
  )
4734
- ) : "0") + "") && Be(y, b), A[0] & /*currency*/
4735
- 32 && Be(
4736
- H,
4757
+ ) : "0") + "") && xe(b, g), S[0] & /*currency*/
4758
+ 32 && xe(
4759
+ T,
4737
4760
  /*currency*/
4738
- B[5]
4761
+ x[5]
4739
4762
  );
4740
4763
  },
4741
- d(B) {
4742
- B && fe(t);
4764
+ d(x) {
4765
+ x && de(t);
4743
4766
  }
4744
4767
  };
4745
4768
  }
4746
4769
  function On(e) {
4747
- let t, n, r = mt(
4770
+ let t, n, r = gt(
4748
4771
  /*balances*/
4749
4772
  e[1][
4750
4773
  /*k*/
@@ -4755,39 +4778,39 @@ function On(e) {
4755
4778
  i[o] = Hn(An(e, r, o));
4756
4779
  return {
4757
4780
  c() {
4758
- t = $("div");
4781
+ t = k("div");
4759
4782
  for (let o = 0; o < i.length; o += 1)
4760
4783
  i[o].c();
4761
- n = de(), M(t, "class", "BalanceModalRowBoth");
4784
+ n = pe(), N(t, "class", "BalanceModalRowBoth");
4762
4785
  },
4763
4786
  m(o, l) {
4764
4787
  ge(o, t, l);
4765
- for (let a = 0; a < i.length; a += 1)
4766
- i[a] && i[a].m(t, null);
4788
+ for (let s = 0; s < i.length; s += 1)
4789
+ i[s] && i[s].m(t, null);
4767
4790
  C(t, n);
4768
4791
  },
4769
4792
  p(o, l) {
4770
4793
  if (l[0] & /*currency, balances, formatBalance, $_*/
4771
4794
  354) {
4772
- r = mt(
4795
+ r = gt(
4773
4796
  /*balances*/
4774
4797
  o[1][
4775
4798
  /*k*/
4776
4799
  o[50]
4777
4800
  ]
4778
4801
  );
4779
- let a;
4780
- for (a = 0; a < r.length; a += 1) {
4781
- const c = An(o, r, a);
4782
- i[a] ? i[a].p(c, l) : (i[a] = Hn(c), i[a].c(), i[a].m(t, n));
4802
+ let s;
4803
+ for (s = 0; s < r.length; s += 1) {
4804
+ const c = An(o, r, s);
4805
+ i[s] ? i[s].p(c, l) : (i[s] = Hn(c), i[s].c(), i[s].m(t, n));
4783
4806
  }
4784
- for (; a < i.length; a += 1)
4785
- i[a].d(1);
4807
+ for (; s < i.length; s += 1)
4808
+ i[s].d(1);
4786
4809
  i.length = r.length;
4787
4810
  }
4788
4811
  },
4789
4812
  d(o) {
4790
- o && fe(t), In(i, o);
4813
+ o && de(t), In(i, o);
4791
4814
  }
4792
4815
  };
4793
4816
  }
@@ -4795,62 +4818,62 @@ function Rn(e) {
4795
4818
  let t, n, r;
4796
4819
  return {
4797
4820
  c() {
4798
- t = $("div"), M(t, "class", "ShowBalanceModalOverlay");
4821
+ t = k("div"), N(t, "class", "ShowBalanceModalOverlay");
4799
4822
  },
4800
4823
  m(i, o) {
4801
- ge(i, t, o), n || (r = pt(
4824
+ ge(i, t, o), n || (r = mt(
4802
4825
  t,
4803
4826
  "click",
4804
4827
  /*click_handler_3*/
4805
- e[27]
4828
+ e[28]
4806
4829
  ), n = !0);
4807
4830
  },
4808
4831
  p: le,
4809
4832
  d(i) {
4810
- i && fe(t), n = !1, r();
4833
+ i && de(t), n = !1, r();
4811
4834
  }
4812
4835
  };
4813
4836
  }
4814
- function Uo(e) {
4837
+ function $o(e) {
4815
4838
  let t, n, r;
4816
4839
  function i(c, u) {
4817
4840
  return (
4818
4841
  /*isLoading*/
4819
- c[2] ? Do : Po
4842
+ c[2] ? Go : Fo
4820
4843
  );
4821
4844
  }
4822
- let o = i(e), l = o(e), a = (
4845
+ let o = i(e), l = o(e), s = (
4823
4846
  /*showBalance*/
4824
4847
  e[4] && Rn(e)
4825
4848
  );
4826
4849
  return {
4827
4850
  c() {
4828
- t = $("div"), n = $("div"), l.c(), r = de(), a && a.c(), M(n, "class", "ShowBalance");
4851
+ t = k("div"), n = k("div"), l.c(), r = pe(), s && s.c(), N(n, "class", "ShowBalance");
4829
4852
  },
4830
4853
  m(c, u) {
4831
- ge(c, t, u), C(t, n), l.m(n, null), C(t, r), a && a.m(t, null), e[28](t);
4854
+ ge(c, t, u), C(t, n), l.m(n, null), C(t, r), s && s.m(t, null), e[29](t);
4832
4855
  },
4833
4856
  p(c, u) {
4834
4857
  o === (o = i(c)) && l ? l.p(c, u) : (l.d(1), l = o(c), l && (l.c(), l.m(n, null))), /*showBalance*/
4835
- c[4] ? a ? a.p(c, u) : (a = Rn(c), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
4858
+ c[4] ? s ? s.p(c, u) : (s = Rn(c), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
4836
4859
  },
4837
4860
  i: le,
4838
4861
  o: le,
4839
4862
  d(c) {
4840
- c && fe(t), l.d(), a && a.d(), e[28](null);
4863
+ c && de(t), l.d(), s && s.d(), e[29](null);
4841
4864
  }
4842
4865
  };
4843
4866
  }
4844
- function Fo(e, t, n) {
4867
+ function jo(e, t, n) {
4845
4868
  let r;
4846
- gr(e, Ao, (s) => n(6, r = s));
4847
- let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: l = "" } = t, { lang: a = "en" } = t, { clientstyling: c = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: d = "" } = t, { customlocaleidentifier: b = "" } = t, { gmversion: y = "gm16" } = t, { displaybalanceoption: T = "All" } = t, { totalcalculationmode: _ = "totalCashAmount" } = t, { currencyseparator: H = "" } = t, { currencydecimal: B = "" } = t, { currencyprecision: A = "" } = t, P, O, k, X, ne = !1, W = "", U = [], D, V = !1;
4848
- const m = {}, J = ["totalCashAmount", "totalRealAmount"], it = () => {
4849
- fetch(d).then((s) => s.json()).then((s) => Object.keys(s).forEach((p) => Tn(p, s[p]))).catch((s) => console.log(s));
4869
+ gr(e, Oo, (a) => n(6, r = a));
4870
+ let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: l = "" } = t, { lang: s = "en" } = t, { mbsource: c } = t, { clientstyling: u = "" } = t, { clientstylingurl: d = "" } = t, { translationurl: g = "" } = t, { customlocaleidentifier: b = "" } = t, { gmversion: _ = "gm16" } = t, { displaybalanceoption: B = "All" } = t, { totalcalculationmode: T = "totalCashAmount" } = t, { currencyseparator: x = "" } = t, { currencydecimal: S = "" } = t, { currencyprecision: D = "" } = t, H, U, W, q, Y = !1, $ = "", R = [], X, F = !1;
4871
+ const y = {}, _e = ["totalCashAmount", "totalRealAmount"], Ze = () => {
4872
+ fetch(g).then((a) => a.json()).then((a) => Object.keys(a).forEach((f) => Tn(f, a[f]))).catch((a) => console.log(a));
4850
4873
  };
4851
- Object.keys(wn).forEach((s) => Tn(s, wn[s]));
4852
- const be = (s) => {
4853
- switch (s) {
4874
+ Object.keys(wn).forEach((a) => Tn(a, wn[a]));
4875
+ const Be = (a) => {
4876
+ switch (a) {
4854
4877
  case "balance":
4855
4878
  window.postMessage(
4856
4879
  {
@@ -4858,10 +4881,10 @@ function Fo(e, t, n) {
4858
4881
  status: "open"
4859
4882
  },
4860
4883
  window.location.href
4861
- ), n(4, ne = !0), setTimeout(() => n(3, k = !0), 150);
4884
+ ), n(4, Y = !0), setTimeout(() => n(3, W = !0), 150);
4862
4885
  break;
4863
4886
  case "closebalance":
4864
- n(3, k = !1), window.postMessage(
4887
+ n(3, W = !1), window.postMessage(
4865
4888
  {
4866
4889
  type: "BalanceModalStatus",
4867
4890
  status: "close"
@@ -4869,86 +4892,86 @@ function Fo(e, t, n) {
4869
4892
  window.location.href
4870
4893
  ), setTimeout(
4871
4894
  () => {
4872
- n(4, ne = !1);
4895
+ n(4, Y = !1);
4873
4896
  },
4874
4897
  150
4875
4898
  );
4876
4899
  break;
4877
4900
  }
4878
- }, ze = () => {
4879
- if (b.includes(a))
4901
+ }, Re = () => {
4902
+ if (b.includes(s))
4880
4903
  return b;
4881
- }, We = (s) => b ? new Intl.NumberFormat(ze(), { useGrouping: !0 }).format(s) : H && B ? ce(s, {
4882
- separator: H,
4883
- decimal: B,
4904
+ }, me = (a) => b ? new Intl.NumberFormat(Re(), { useGrouping: !0 }).format(a) : x && S ? he(a, {
4905
+ separator: x,
4906
+ decimal: S,
4884
4907
  symbol: "",
4885
- precision: parseInt(A || "2", 10)
4886
- }).format() : ce(s, {
4908
+ precision: parseInt(D || "2", 10)
4909
+ }).format() : he(a, {
4887
4910
  separator: ".",
4888
4911
  decimal: ",",
4889
4912
  symbol: "",
4890
- precision: parseInt(A || "2", 10)
4891
- }).format(), pe = () => Nt(this, null, function* () {
4892
- var p, f, g;
4893
- n(2, P = !0);
4894
- const s = new URL(`${l}/v1/player/${i}/account`);
4913
+ precision: parseInt(D || "2", 10)
4914
+ }).format(), Te = () => Nt(this, null, function* () {
4915
+ var f, p, h;
4916
+ n(2, H = !0);
4917
+ const a = new URL(`${l}/v1/player/${i}/account`);
4895
4918
  try {
4896
- const v = yield fetch(s, {
4919
+ const E = yield fetch(a, {
4897
4920
  method: "GET",
4898
4921
  headers: { "X-SessionID": o }
4899
- }), x = yield v.json();
4900
- if (v.ok)
4901
- window.postMessage({ type: "BalancedFetched" }, window.location.href), U = x.items, n(5, W = (p = U.find((E) => E.displayName === "Casino")) == null ? void 0 : p.currency), n(1, m.Total = [{ amount: x.totalAmount[W] }], m), n(
4922
+ }), v = yield E.json();
4923
+ if (E.ok)
4924
+ window.postMessage({ type: "BalancedFetched" }, window.location.href), R = v.items, n(5, $ = (f = R.find((m) => m.displayName === "Casino")) == null ? void 0 : f.currency), n(1, y.Total = [{ amount: v.totalAmount[$] }], y), n(
4902
4925
  1,
4903
- m.Real = [
4926
+ y.Real = [
4904
4927
  {
4905
- amount: (f = U.find((E) => E.displayName === "Casino")) == null ? void 0 : f.balanceAmount
4928
+ amount: (p = R.find((m) => m.displayName === "Casino")) == null ? void 0 : p.balanceAmount
4906
4929
  }
4907
4930
  ],
4908
- m
4931
+ y
4909
4932
  ), n(
4910
4933
  1,
4911
- m.Bonus = [
4934
+ y.Bonus = [
4912
4935
  {
4913
- amount: (g = U.find((E) => E.displayName === "UBS")) == null ? void 0 : g.balanceAmount
4936
+ amount: (h = R.find((m) => m.displayName === "UBS")) == null ? void 0 : h.balanceAmount
4914
4937
  }
4915
4938
  ],
4916
- m
4939
+ y
4917
4940
  );
4918
4941
  else
4919
4942
  throw new Error("Failed to fetch balance data !");
4920
- } catch (v) {
4921
- console.log("Balance error: ", v);
4943
+ } catch (E) {
4944
+ console.log("Balance error: ", E);
4922
4945
  } finally {
4923
- n(2, P = !1);
4946
+ n(2, H = !1);
4924
4947
  }
4925
- }), Te = () => {
4926
- n(2, P = !0);
4927
- const s = new URL(`${l}/v2/player/${i}/balance`), p = new Headers();
4928
- p.append("X-SessionID", o), fetch(s, { method: "GET", headers: p }).then((g) => g.json()).then((g) => {
4929
- g[_] || n(10, _ = J[0]);
4930
- const v = g.items.find((E) => E.type === "Real" && E.walletAccountType === "Ordinary");
4931
- if (n(5, W = v.currency), V = !!v.productType, n(1, m.Total = [{ amount: 0 }], m), n(1, m.Real = [], m), n(1, m.Bonus = [], m), n(1, m.Credit = [], m), !V) {
4932
- D = {
4948
+ }), Ae = () => {
4949
+ n(2, H = !0);
4950
+ const a = new URL(`${l}/v2/player/${i}/balance`), f = new Headers();
4951
+ f.append("X-SessionID", o), fetch(a, { method: "GET", headers: f }).then((h) => h.json()).then((h) => {
4952
+ h[T] || n(10, T = _e[0]);
4953
+ const E = h.items.find((m) => m.type === "Real" && m.walletAccountType === "Ordinary");
4954
+ if (n(5, $ = E.currency), F = !!E.productType, n(1, y.Total = [{ amount: 0 }], y), n(1, y.Real = [], y), n(1, y.Bonus = [], y), n(1, y.Credit = [], y), !F) {
4955
+ X = {
4933
4956
  lastOrdinaryAfterAmount: 0,
4934
4957
  showCreditLineAfterAmount: !1
4935
- }, n(1, m.Total[0].amount = g[_][W], m);
4936
- for (const E of g.items)
4937
- switch (E.type) {
4958
+ }, n(1, y.Total[0].amount = h[T][$], y);
4959
+ for (const m of h.items)
4960
+ switch (m.type) {
4938
4961
  case "Bonus":
4939
- m.Bonus.length === 0 ? m.Bonus.push({ amount: E.amount }) : n(1, m.Bonus[0].amount += E.amount, m);
4962
+ y.Bonus.length === 0 ? y.Bonus.push({ amount: m.amount }) : n(1, y.Bonus[0].amount += m.amount, y);
4940
4963
  break;
4941
4964
  case "Real":
4942
- if (E.creditLine && m.Credit.length === 0 && m.Credit.push({ amount: E.creditLine }), _ === "totalRealAmount") continue;
4943
- m.Real.length === 0 ? m.Real.push({ amount: E.amount }) : n(1, m.Real[0].amount += E.amount, m);
4965
+ if (m.creditLine && y.Credit.length === 0 && y.Credit.push({ amount: m.creditLine }), T === "totalRealAmount") continue;
4966
+ y.Real.length === 0 ? y.Real.push({ amount: m.amount }) : n(1, y.Real[0].amount += m.amount, y);
4944
4967
  break;
4945
4968
  }
4946
- for (const [E, w] of Object.entries(m))
4947
- w.length < 1 && delete m[E];
4948
- n(2, P = !1);
4969
+ for (const [m, L] of Object.entries(y))
4970
+ L.length < 1 && delete y[m];
4971
+ n(2, H = !1);
4949
4972
  return;
4950
4973
  }
4951
- D = {
4974
+ X = {
4952
4975
  Casino: {
4953
4976
  lastOrdinaryAfterAmount: 0,
4954
4977
  showCreditLineAfterAmount: !1
@@ -4958,228 +4981,218 @@ function Fo(e, t, n) {
4958
4981
  showCreditLineAfterAmount: !1
4959
4982
  }
4960
4983
  };
4961
- let x = g.items;
4962
- T && T !== "All" && (x = g.items.filter((E) => E.productType === T));
4963
- for (const E of x) {
4964
- let w;
4965
- switch (E.type) {
4984
+ let v = h.items;
4985
+ B && B !== "All" && (v = h.items.filter((m) => m.productType === B));
4986
+ for (const m of v) {
4987
+ let L;
4988
+ switch (m.type) {
4966
4989
  case "Bonus":
4967
- w = m.Bonus.findIndex((N) => N.productType === E.productType), w > 0 ? n(1, m.Bonus[w].amount += E.amount, m) : m.Bonus.push({
4968
- amount: E.amount,
4969
- productType: E.productType
4990
+ L = y.Bonus.findIndex((A) => A.productType === m.productType), L > 0 ? n(1, y.Bonus[L].amount += m.amount, y) : y.Bonus.push({
4991
+ amount: m.amount,
4992
+ productType: m.productType
4970
4993
  });
4971
4994
  break;
4972
4995
  case "Real":
4973
- E.creditLine && m.Credit.push({
4974
- amount: E.creditLine,
4975
- productType: E.productType
4976
- }), w = m.Real.findIndex((N) => N.productType === E.productType), w > 0 ? n(1, m.Real[w].amount += E.amount, m) : m.Real.push({
4977
- amount: E.amount,
4978
- productType: E.productType
4996
+ m.creditLine && y.Credit.push({
4997
+ amount: m.creditLine,
4998
+ productType: m.productType
4999
+ }), L = y.Real.findIndex((A) => A.productType === m.productType), L > 0 ? n(1, y.Real[L].amount += m.amount, y) : y.Real.push({
5000
+ amount: m.amount,
5001
+ productType: m.productType
4979
5002
  });
4980
5003
  break;
4981
5004
  }
4982
5005
  }
4983
- Ze();
4984
- for (const [E, w] of Object.entries(m))
4985
- w.length < 1 && delete m[E];
4986
- n(2, P = !1);
4987
- }).catch((g) => {
4988
- throw n(2, P = !1), new Error("Failed to fetch balance data !");
5006
+ ot();
5007
+ for (const [m, L] of Object.entries(y))
5008
+ L.length < 1 && delete y[m];
5009
+ n(2, H = !1);
5010
+ }).catch((h) => {
5011
+ throw n(2, H = !1), new Error("Failed to fetch balance data !");
4989
5012
  });
4990
- }, ye = () => {
4991
- if (X && X.close(), o.length < 1) return;
4992
- let s, p;
4993
- switch (y) {
5013
+ }, Ce = () => {
5014
+ if (q && q.close(), o.length < 1) return;
5015
+ let a, f;
5016
+ switch (_) {
4994
5017
  case "gm16":
4995
- s = new URL(`${l}/v2/player/${i}/information/updates`), p = (v) => Bt(v);
5018
+ a = new URL(`${l}/v2/player/${i}/information/updates`), f = (E) => Tt(E);
4996
5019
  break;
4997
5020
  case "gmcore":
4998
- s = new URL(`${l}/v1/player/${i}/balance/updates`), p = (v) => me(v);
5021
+ a = new URL(`${l}/v1/player/${i}/balance/updates`), f = (E) => qe(E);
4999
5022
  break;
5000
5023
  }
5001
- const f = {
5024
+ const p = {
5002
5025
  accept: "text/event-stream",
5003
5026
  "X-SessionId": o
5004
- }, g = new Ho.EventSourcePolyfill(s, { headers: f });
5005
- X = g, g.addEventListener("message", p);
5006
- }, Oe = (s) => {
5007
- let p;
5027
+ }, h = new Lo.EventSourcePolyfill(a, { headers: p });
5028
+ q = h, h.addEventListener("message", f);
5029
+ }, ue = (a) => {
5030
+ let f;
5008
5031
  try {
5009
- p = JSON.parse(s);
5010
- } catch (f) {
5011
- console.log("Balance stream failed: ", f);
5032
+ f = JSON.parse(a);
5033
+ } catch (p) {
5034
+ console.log("Balance stream failed: ", p);
5012
5035
  return;
5013
5036
  }
5014
- return p;
5015
- }, me = (s) => {
5016
- var v, x;
5017
- const p = Oe(s.data);
5018
- if (!p) {
5019
- ye();
5037
+ return f;
5038
+ }, qe = (a) => {
5039
+ var E, v;
5040
+ const f = ue(a.data);
5041
+ if (!f) {
5042
+ Ce();
5020
5043
  return;
5021
5044
  }
5022
- let f = "0";
5023
- const g = p.balanceChange;
5024
- U = U.map((E) => (g && g[E.id] && (E = Mt(Lt({}, E), {
5025
- balanceAmount: g[E.id].afterAmount
5026
- })), f = (parseFloat(E == null ? void 0 : E.balanceAmount) + parseFloat(f)).toString(), E)), n(1, m.Real = [{ amount: (v = U[0]) == null ? void 0 : v.balanceAmount }], m), n(1, m.Bonus = [{ amount: (x = U[1]) == null ? void 0 : x.balanceAmount }], m), n(1, m.Total = [{ amount: Number(f) }], m);
5027
- }, Ae = (s, p, f) => {
5028
- let g = null;
5029
- switch (f.walletAccountType) {
5045
+ let p = "0";
5046
+ const h = f.balanceChange;
5047
+ R = R.map((m) => (h && h[m.id] && (m = Mt(Lt({}, m), {
5048
+ balanceAmount: h[m.id].afterAmount
5049
+ })), p = (parseFloat(m == null ? void 0 : m.balanceAmount) + parseFloat(p)).toString(), m)), n(1, y.Real = [{ amount: (E = R[0]) == null ? void 0 : E.balanceAmount }], y), n(1, y.Bonus = [{ amount: (v = R[1]) == null ? void 0 : v.balanceAmount }], y), n(1, y.Total = [{ amount: Number(p) }], y);
5050
+ }, Le = (a, f, p) => {
5051
+ let h = null;
5052
+ switch (p.walletAccountType) {
5030
5053
  case "Ordinary":
5031
- f.afterAmount !== f.affectedAmount && (p.lastOrdinaryAfterAmount = f.afterAmount, p.showCreditLineAfterAmount || (g = f.afterAmount));
5054
+ p.afterAmount !== p.affectedAmount && (f.lastOrdinaryAfterAmount = p.afterAmount, f.showCreditLineAfterAmount || (h = p.afterAmount));
5032
5055
  break;
5033
5056
  case "CreditLine":
5034
- f.afterAmount !== 0 ? (g = f.afterAmount, p.showCreditLineAfterAmount = !0) : (g = p.lastOrdinaryAfterAmount, p.showCreditLineAfterAmount = !1);
5057
+ p.afterAmount !== 0 ? (h = p.afterAmount, f.showCreditLineAfterAmount = !0) : (h = f.lastOrdinaryAfterAmount, f.showCreditLineAfterAmount = !1);
5035
5058
  break;
5036
5059
  default:
5037
- g = f.afterAmount;
5060
+ h = p.afterAmount;
5038
5061
  }
5039
- return g === null ? s : g;
5040
- }, Ze = () => {
5041
- switch (_) {
5062
+ return h === null ? a : h;
5063
+ }, ot = () => {
5064
+ switch (T) {
5042
5065
  case "totalCashAmount":
5043
- let s = 0;
5044
- for (const f of ["Real", "Bonus"])
5045
- for (const g of m[f])
5046
- s += Math.max(g.amount, 0);
5047
- n(1, m.Total[0].amount = s, m);
5066
+ let a = 0;
5067
+ for (const p of ["Real", "Bonus"])
5068
+ for (const h of y[p])
5069
+ a += Math.max(h.amount, 0);
5070
+ n(1, y.Total[0].amount = a, y);
5048
5071
  break;
5049
5072
  case "totalRealAmount":
5050
- if (!V) return;
5051
- let p = 0;
5052
- for (const f of m.Real)
5053
- p += f.amount;
5054
- n(1, m.Total[0].amount = p, m);
5073
+ if (!F) return;
5074
+ let f = 0;
5075
+ for (const p of y.Real)
5076
+ f += p.amount;
5077
+ n(1, y.Total[0].amount = f, y);
5055
5078
  }
5056
- }, Bt = (s) => {
5057
- const p = Oe(s.data);
5058
- if (!p) {
5059
- ye();
5079
+ }, Tt = (a) => {
5080
+ const f = ue(a.data);
5081
+ if (!f) {
5082
+ Ce();
5060
5083
  return;
5061
5084
  }
5062
- if (p.type !== "BALANCE_UPDATE_V2")
5085
+ if (f.type !== "BALANCE_UPDATE_V2")
5063
5086
  return;
5064
- const f = p.body.balanceChange;
5065
- for (const [g, v] of Object.entries(f))
5066
- if (_ === "totalRealAmount" && g === "Real" && !V && n(1, m.Total[0].amount = Ae(m.Total[0].amount, D, v), m), !!m[g])
5067
- for (const x of m[g]) {
5068
- if (!V) {
5069
- x.amount = g === "Real" ? Ae(x.amount, D, v) : v.afterAmount;
5087
+ const p = f.body.balanceChange;
5088
+ for (const [h, E] of Object.entries(p))
5089
+ if (T === "totalRealAmount" && h === "Real" && !F && n(1, y.Total[0].amount = Le(y.Total[0].amount, X, E), y), !!y[h])
5090
+ for (const v of y[h]) {
5091
+ if (!F) {
5092
+ v.amount = h === "Real" ? Le(v.amount, X, E) : E.afterAmount;
5070
5093
  continue;
5071
5094
  }
5072
- v.productType === x.productType && (x.amount = g === "Real" ? Ae(x.amount, D[x.productType], v) : v.afterAmount);
5095
+ E.productType === v.productType && (v.amount = h === "Real" ? Le(v.amount, X[v.productType], E) : E.afterAmount);
5073
5096
  }
5074
- Ze();
5075
- }, ot = () => {
5076
- be("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
5077
- }, Tt = () => {
5078
- J.includes(_) || (console.error(`Unsupported value ('${_}') for totalcalculationmode parameter. Only the following values are supported ${J}. Using default value ('${J[0]}').`), n(10, _ = J[0]));
5097
+ ot();
5098
+ }, at = () => {
5099
+ Be("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
5079
5100
  }, wt = () => {
5080
- switch (Co(a), Tt(), y) {
5101
+ _e.includes(T) || (console.error(`Unsupported value ('${T}') for totalcalculationmode parameter. Only the following values are supported ${_e}. Using default value ('${_e[0]}').`), n(10, T = _e[0]));
5102
+ }, Qe = () => {
5103
+ switch (Ro(s), wt(), _) {
5081
5104
  case "gmcore":
5082
- pe();
5105
+ Te();
5083
5106
  break;
5084
5107
  case "gm16":
5085
- Te();
5108
+ Ae();
5086
5109
  break;
5087
5110
  default:
5088
- throw Error(`Invalid apiversion attribute: ${y}`);
5111
+ throw Error(`Invalid apiversion attribute: ${_}`);
5089
5112
  }
5090
- }, Re = (s) => s.data && s.data.type === "LogoutSuccessfull" && X.close(), qe = () => {
5091
- const s = document.createElement("style");
5092
- s.innerHTML = c, O.appendChild(s);
5093
- }, we = () => {
5094
- const s = new URL(u), p = document.createElement("style");
5095
- fetch(s.href).then((f) => f.text()).then((f) => {
5096
- p.innerHTML = f, setTimeout(
5097
- () => {
5098
- O.appendChild(p);
5099
- },
5100
- 1
5101
- );
5102
- });
5103
- }, re = () => {
5113
+ }, Me = (a) => a.data && a.data.type === "LogoutSuccessfull" && q.close(), we = () => {
5104
5114
  window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
5105
5115
  };
5106
- Tr(() => (window.addEventListener("message", Re, !1), () => {
5107
- window.removeEventListener("message", Re), X && X.close();
5116
+ Tr(() => (window.addEventListener("message", Me, !1), () => {
5117
+ window.removeEventListener("message", Me), q && q.close();
5108
5118
  }));
5109
- const St = () => be("balance"), At = () => be("closebalance"), Ct = () => ot(), at = () => be("closeBalance");
5110
- function h(s) {
5111
- jt[s ? "unshift" : "push"](() => {
5112
- O = s, n(0, O);
5119
+ const re = () => Be("balance"), St = () => Be("closebalance"), At = () => at(), Ct = () => Be("closeBalance");
5120
+ function st(a) {
5121
+ jt[a ? "unshift" : "push"](() => {
5122
+ U = a, n(0, U);
5113
5123
  });
5114
5124
  }
5115
- return e.$$set = (s) => {
5116
- "userid" in s && n(11, i = s.userid), "session" in s && n(12, o = s.session), "endpoint" in s && n(13, l = s.endpoint), "lang" in s && n(14, a = s.lang), "clientstyling" in s && n(15, c = s.clientstyling), "clientstylingurl" in s && n(16, u = s.clientstylingurl), "translationurl" in s && n(17, d = s.translationurl), "customlocaleidentifier" in s && n(18, b = s.customlocaleidentifier), "gmversion" in s && n(19, y = s.gmversion), "displaybalanceoption" in s && n(20, T = s.displaybalanceoption), "totalcalculationmode" in s && n(10, _ = s.totalcalculationmode), "currencyseparator" in s && n(21, H = s.currencyseparator), "currencydecimal" in s && n(22, B = s.currencydecimal), "currencyprecision" in s && n(23, A = s.currencyprecision);
5125
+ return e.$$set = (a) => {
5126
+ "userid" in a && n(11, i = a.userid), "session" in a && n(12, o = a.session), "endpoint" in a && n(13, l = a.endpoint), "lang" in a && n(14, s = a.lang), "mbsource" in a && n(15, c = a.mbsource), "clientstyling" in a && n(16, u = a.clientstyling), "clientstylingurl" in a && n(17, d = a.clientstylingurl), "translationurl" in a && n(18, g = a.translationurl), "customlocaleidentifier" in a && n(19, b = a.customlocaleidentifier), "gmversion" in a && n(20, _ = a.gmversion), "displaybalanceoption" in a && n(21, B = a.displaybalanceoption), "totalcalculationmode" in a && n(10, T = a.totalcalculationmode), "currencyseparator" in a && n(22, x = a.currencyseparator), "currencydecimal" in a && n(23, S = a.currencydecimal), "currencyprecision" in a && n(24, D = a.currencyprecision);
5117
5127
  }, e.$$.update = () => {
5118
5128
  e.$$.dirty[0] & /*lang*/
5119
- 16384 && a && ze(), e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
5120
- 1603584 && l && i && o && a && y && T && wt(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
5121
- 538624 && l && i && o && y && ye(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5122
- 32769 && c && O && qe(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5123
- 65537 && u && O && we(), e.$$.dirty[0] & /*translationurl*/
5124
- 131072 && d && it(), e.$$.dirty[0] & /*balances*/
5125
- 2 && m.Total && re();
5129
+ 16384 && s && Re(), e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
5130
+ 3176448 && l && i && o && s && _ && B && Qe(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
5131
+ 1062912 && l && i && o && _ && Ce(), e.$$.dirty[0] & /*translationurl*/
5132
+ 262144 && g && Ze(), e.$$.dirty[0] & /*balances*/
5133
+ 2 && y.Total && we(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5134
+ 65537 && u && U && Ur(U, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5135
+ 131073 && d && U && Fr(U, d), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
5136
+ 32769 && c && U && Gr(U, `${c}.Style`);
5126
5137
  }, [
5127
- O,
5128
- m,
5129
- P,
5130
- k,
5131
- ne,
5138
+ U,
5139
+ y,
5140
+ H,
5132
5141
  W,
5142
+ Y,
5143
+ $,
5133
5144
  r,
5134
- be,
5135
- We,
5136
- ot,
5137
- _,
5145
+ Be,
5146
+ me,
5147
+ at,
5148
+ T,
5138
5149
  i,
5139
5150
  o,
5140
5151
  l,
5141
- a,
5152
+ s,
5142
5153
  c,
5143
5154
  u,
5144
5155
  d,
5156
+ g,
5145
5157
  b,
5146
- y,
5147
- T,
5148
- H,
5158
+ _,
5149
5159
  B,
5150
- A,
5160
+ x,
5161
+ S,
5162
+ D,
5163
+ re,
5151
5164
  St,
5152
5165
  At,
5153
5166
  Ct,
5154
- at,
5155
- h
5167
+ st
5156
5168
  ];
5157
5169
  }
5158
- class Go extends Pr {
5170
+ class ko extends Pr {
5159
5171
  constructor(t) {
5160
5172
  super(), Nr(
5161
5173
  this,
5162
5174
  t,
5163
- Fo,
5164
- Uo,
5175
+ jo,
5176
+ $o,
5165
5177
  Mn,
5166
5178
  {
5167
5179
  userid: 11,
5168
5180
  session: 12,
5169
5181
  endpoint: 13,
5170
5182
  lang: 14,
5171
- clientstyling: 15,
5172
- clientstylingurl: 16,
5173
- translationurl: 17,
5174
- customlocaleidentifier: 18,
5175
- gmversion: 19,
5176
- displaybalanceoption: 20,
5183
+ mbsource: 15,
5184
+ clientstyling: 16,
5185
+ clientstylingurl: 17,
5186
+ translationurl: 18,
5187
+ customlocaleidentifier: 19,
5188
+ gmversion: 20,
5189
+ displaybalanceoption: 21,
5177
5190
  totalcalculationmode: 10,
5178
- currencyseparator: 21,
5179
- currencydecimal: 22,
5180
- currencyprecision: 23
5191
+ currencyseparator: 22,
5192
+ currencydecimal: 23,
5193
+ currencyprecision: 24
5181
5194
  },
5182
- Io,
5195
+ Uo,
5183
5196
  [-1, -1]
5184
5197
  );
5185
5198
  }
@@ -5187,88 +5200,94 @@ class Go extends Pr {
5187
5200
  return this.$$.ctx[11];
5188
5201
  }
5189
5202
  set userid(t) {
5190
- this.$$set({ userid: t }), Q();
5203
+ this.$$set({ userid: t }), J();
5191
5204
  }
5192
5205
  get session() {
5193
5206
  return this.$$.ctx[12];
5194
5207
  }
5195
5208
  set session(t) {
5196
- this.$$set({ session: t }), Q();
5209
+ this.$$set({ session: t }), J();
5197
5210
  }
5198
5211
  get endpoint() {
5199
5212
  return this.$$.ctx[13];
5200
5213
  }
5201
5214
  set endpoint(t) {
5202
- this.$$set({ endpoint: t }), Q();
5215
+ this.$$set({ endpoint: t }), J();
5203
5216
  }
5204
5217
  get lang() {
5205
5218
  return this.$$.ctx[14];
5206
5219
  }
5207
5220
  set lang(t) {
5208
- this.$$set({ lang: t }), Q();
5221
+ this.$$set({ lang: t }), J();
5209
5222
  }
5210
- get clientstyling() {
5223
+ get mbsource() {
5211
5224
  return this.$$.ctx[15];
5212
5225
  }
5226
+ set mbsource(t) {
5227
+ this.$$set({ mbsource: t }), J();
5228
+ }
5229
+ get clientstyling() {
5230
+ return this.$$.ctx[16];
5231
+ }
5213
5232
  set clientstyling(t) {
5214
- this.$$set({ clientstyling: t }), Q();
5233
+ this.$$set({ clientstyling: t }), J();
5215
5234
  }
5216
5235
  get clientstylingurl() {
5217
- return this.$$.ctx[16];
5236
+ return this.$$.ctx[17];
5218
5237
  }
5219
5238
  set clientstylingurl(t) {
5220
- this.$$set({ clientstylingurl: t }), Q();
5239
+ this.$$set({ clientstylingurl: t }), J();
5221
5240
  }
5222
5241
  get translationurl() {
5223
- return this.$$.ctx[17];
5242
+ return this.$$.ctx[18];
5224
5243
  }
5225
5244
  set translationurl(t) {
5226
- this.$$set({ translationurl: t }), Q();
5245
+ this.$$set({ translationurl: t }), J();
5227
5246
  }
5228
5247
  get customlocaleidentifier() {
5229
- return this.$$.ctx[18];
5248
+ return this.$$.ctx[19];
5230
5249
  }
5231
5250
  set customlocaleidentifier(t) {
5232
- this.$$set({ customlocaleidentifier: t }), Q();
5251
+ this.$$set({ customlocaleidentifier: t }), J();
5233
5252
  }
5234
5253
  get gmversion() {
5235
- return this.$$.ctx[19];
5254
+ return this.$$.ctx[20];
5236
5255
  }
5237
5256
  set gmversion(t) {
5238
- this.$$set({ gmversion: t }), Q();
5257
+ this.$$set({ gmversion: t }), J();
5239
5258
  }
5240
5259
  get displaybalanceoption() {
5241
- return this.$$.ctx[20];
5260
+ return this.$$.ctx[21];
5242
5261
  }
5243
5262
  set displaybalanceoption(t) {
5244
- this.$$set({ displaybalanceoption: t }), Q();
5263
+ this.$$set({ displaybalanceoption: t }), J();
5245
5264
  }
5246
5265
  get totalcalculationmode() {
5247
5266
  return this.$$.ctx[10];
5248
5267
  }
5249
5268
  set totalcalculationmode(t) {
5250
- this.$$set({ totalcalculationmode: t }), Q();
5269
+ this.$$set({ totalcalculationmode: t }), J();
5251
5270
  }
5252
5271
  get currencyseparator() {
5253
- return this.$$.ctx[21];
5272
+ return this.$$.ctx[22];
5254
5273
  }
5255
5274
  set currencyseparator(t) {
5256
- this.$$set({ currencyseparator: t }), Q();
5275
+ this.$$set({ currencyseparator: t }), J();
5257
5276
  }
5258
5277
  get currencydecimal() {
5259
- return this.$$.ctx[22];
5278
+ return this.$$.ctx[23];
5260
5279
  }
5261
5280
  set currencydecimal(t) {
5262
- this.$$set({ currencydecimal: t }), Q();
5281
+ this.$$set({ currencydecimal: t }), J();
5263
5282
  }
5264
5283
  get currencyprecision() {
5265
- return this.$$.ctx[23];
5284
+ return this.$$.ctx[24];
5266
5285
  }
5267
5286
  set currencyprecision(t) {
5268
- this.$$set({ currencyprecision: t }), Q();
5287
+ this.$$set({ currencyprecision: t }), J();
5269
5288
  }
5270
5289
  }
5271
- Ir(Go, { userid: {}, session: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {} }, [], [], !0);
5290
+ Ir(ko, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {} }, [], [], !0);
5272
5291
  export {
5273
- Go as default
5292
+ ko as default
5274
5293
  };