@everymatrix/player-account-balance-modal 1.86.4 → 1.86.6

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