@everymatrix/player-account-balance-modal 1.60.0 → 1.60.2

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