@everymatrix/player-account-balance-modal 1.59.3 → 1.60.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,75 +1,75 @@
1
- var lr = Object.defineProperty, hr = Object.defineProperties;
2
- var cr = Object.getOwnPropertyDescriptors;
3
- var sn = Object.getOwnPropertySymbols;
4
- var fr = Object.prototype.hasOwnProperty, dr = Object.prototype.propertyIsEnumerable;
5
- var Rt = (e, t, n) => t in e ? lr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Lt = (e, t) => {
1
+ var cr = Object.defineProperty, fr = Object.defineProperties;
2
+ var dr = Object.getOwnPropertyDescriptors;
3
+ var ln = Object.getOwnPropertySymbols;
4
+ var pr = Object.prototype.hasOwnProperty, mr = Object.prototype.propertyIsEnumerable;
5
+ var Ot = (e, t, n) => t in e ? cr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Lt = (e, t) => {
6
6
  for (var n in t || (t = {}))
7
- fr.call(t, n) && Rt(e, n, t[n]);
8
- if (sn)
9
- for (var n of sn(t))
10
- dr.call(t, n) && Rt(e, n, t[n]);
7
+ pr.call(t, n) && Ot(e, n, t[n]);
8
+ if (ln)
9
+ for (var n of ln(t))
10
+ mr.call(t, n) && Ot(e, n, t[n]);
11
11
  return e;
12
- }, Nt = (e, t) => hr(e, cr(t));
13
- var ue = (e, t, n) => (Rt(e, typeof t != "symbol" ? t + "" : t, n), n);
12
+ }, Nt = (e, t) => fr(e, dr(t));
13
+ var oe = (e, t, n) => (Ot(e, typeof t != "symbol" ? t + "" : t, n), n);
14
14
  var Mt = (e, t, n) => new Promise((r, i) => {
15
- var o = (c) => {
15
+ var o = (h) => {
16
16
  try {
17
- s(n.next(c));
17
+ a(n.next(h));
18
18
  } catch (l) {
19
19
  i(l);
20
20
  }
21
- }, u = (c) => {
21
+ }, u = (h) => {
22
22
  try {
23
- s(n.throw(c));
23
+ a(n.throw(h));
24
24
  } catch (l) {
25
25
  i(l);
26
26
  }
27
- }, s = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(o, u);
28
- s((n = n.apply(e, t)).next());
27
+ }, a = (h) => h.done ? r(h.value) : Promise.resolve(h.value).then(o, u);
28
+ a((n = n.apply(e, t)).next());
29
29
  });
30
- function le() {
30
+ function ae() {
31
31
  }
32
- function Rn(e) {
32
+ function Nn(e) {
33
33
  return e();
34
34
  }
35
- function un() {
35
+ function hn() {
36
36
  return /* @__PURE__ */ Object.create(null);
37
37
  }
38
38
  function ke(e) {
39
- e.forEach(Rn);
39
+ e.forEach(Nn);
40
40
  }
41
41
  function tn(e) {
42
42
  return typeof e == "function";
43
43
  }
44
- function Ln(e, t) {
44
+ function Mn(e, t) {
45
45
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
46
  }
47
- function pr(e) {
47
+ function gr(e) {
48
48
  return Object.keys(e).length === 0;
49
49
  }
50
- function Nn(e, ...t) {
50
+ function Pn(e, ...t) {
51
51
  if (e == null) {
52
52
  for (const r of t)
53
53
  r(void 0);
54
- return le;
54
+ return ae;
55
55
  }
56
56
  const n = e.subscribe(...t);
57
57
  return n.unsubscribe ? () => n.unsubscribe() : n;
58
58
  }
59
- function mr(e, t, n) {
60
- e.$$.on_destroy.push(Nn(t, n));
59
+ function br(e, t, n) {
60
+ e.$$.on_destroy.push(Pn(t, n));
61
61
  }
62
62
  function L(e, t) {
63
63
  e.appendChild(t);
64
64
  }
65
- function gr(e, t, n) {
66
- const r = br(e);
65
+ function yr(e, t, n) {
66
+ const r = vr(e);
67
67
  if (!r.getElementById(t)) {
68
- const i = V("style");
69
- i.id = t, i.textContent = n, yr(r, i);
68
+ const i = k("style");
69
+ i.id = t, i.textContent = n, Er(r, i);
70
70
  }
71
71
  }
72
- function br(e) {
72
+ function vr(e) {
73
73
  if (!e)
74
74
  return document;
75
75
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -79,49 +79,49 @@ function br(e) {
79
79
  t
80
80
  ) : e.ownerDocument;
81
81
  }
82
- function yr(e, t) {
82
+ function Er(e, t) {
83
83
  return L(
84
84
  /** @type {Document} */
85
85
  e.head || e,
86
86
  t
87
87
  ), t.sheet;
88
88
  }
89
- function ve(e, t, n) {
89
+ function ge(e, t, n) {
90
90
  e.insertBefore(t, n || null);
91
91
  }
92
- function me(e) {
92
+ function fe(e) {
93
93
  e.parentNode && e.parentNode.removeChild(e);
94
94
  }
95
- function Mn(e, t) {
95
+ function In(e, t) {
96
96
  for (let n = 0; n < e.length; n += 1)
97
97
  e[n] && e[n].d(t);
98
98
  }
99
- function V(e) {
99
+ function k(e) {
100
100
  return document.createElement(e);
101
101
  }
102
- function pe(e) {
102
+ function ce(e) {
103
103
  return document.createTextNode(e);
104
104
  }
105
- function ge() {
106
- return pe(" ");
105
+ function de() {
106
+ return ce(" ");
107
107
  }
108
- function vr() {
109
- return pe("");
108
+ function xr() {
109
+ return ce("");
110
110
  }
111
- function bt(e, t, n, r) {
111
+ function mt(e, t, n, r) {
112
112
  return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
113
113
  }
114
- function Z(e, t, n) {
114
+ function W(e, t, n) {
115
115
  n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
116
116
  }
117
- function Er(e) {
117
+ function _r(e) {
118
118
  return Array.from(e.childNodes);
119
119
  }
120
- function Be(e, t) {
120
+ function _e(e, t) {
121
121
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
122
122
  t);
123
123
  }
124
- function xr(e) {
124
+ function Tr(e) {
125
125
  const t = {};
126
126
  return e.childNodes.forEach(
127
127
  /** @param {Element} node */
@@ -130,44 +130,44 @@ function xr(e) {
130
130
  }
131
131
  ), t;
132
132
  }
133
- let tt;
134
- function et(e) {
135
- tt = e;
133
+ let rt;
134
+ function nt(e) {
135
+ rt = e;
136
136
  }
137
- function _r() {
138
- if (!tt)
137
+ function Br() {
138
+ if (!rt)
139
139
  throw new Error("Function called outside component initialization");
140
- return tt;
140
+ return rt;
141
141
  }
142
- function Tr(e) {
143
- _r().$$.on_mount.push(e);
142
+ function Sr(e) {
143
+ Br().$$.on_mount.push(e);
144
144
  }
145
145
  const De = [], jt = [];
146
146
  let Fe = [];
147
- const ln = [], Br = /* @__PURE__ */ Promise.resolve();
147
+ const cn = [], wr = /* @__PURE__ */ Promise.resolve();
148
148
  let kt = !1;
149
- function Sr() {
150
- kt || (kt = !0, Br.then(Q));
149
+ function Ar() {
150
+ kt || (kt = !0, wr.then(q));
151
151
  }
152
152
  function Vt(e) {
153
153
  Fe.push(e);
154
154
  }
155
155
  const Pt = /* @__PURE__ */ new Set();
156
156
  let Pe = 0;
157
- function Q() {
157
+ function q() {
158
158
  if (Pe !== 0)
159
159
  return;
160
- const e = tt;
160
+ const e = rt;
161
161
  do {
162
162
  try {
163
163
  for (; Pe < De.length; ) {
164
164
  const t = De[Pe];
165
- Pe++, et(t), wr(t.$$);
165
+ Pe++, nt(t), Cr(t.$$);
166
166
  }
167
167
  } catch (t) {
168
168
  throw De.length = 0, Pe = 0, t;
169
169
  }
170
- for (et(null), De.length = 0, Pe = 0; jt.length; )
170
+ for (nt(null), De.length = 0, Pe = 0; jt.length; )
171
171
  jt.pop()();
172
172
  for (let t = 0; t < Fe.length; t += 1) {
173
173
  const n = Fe[t];
@@ -175,103 +175,103 @@ function Q() {
175
175
  }
176
176
  Fe.length = 0;
177
177
  } while (De.length);
178
- for (; ln.length; )
179
- ln.pop()();
180
- kt = !1, Pt.clear(), et(e);
178
+ for (; cn.length; )
179
+ cn.pop()();
180
+ kt = !1, Pt.clear(), nt(e);
181
181
  }
182
- function wr(e) {
182
+ function Cr(e) {
183
183
  if (e.fragment !== null) {
184
184
  e.update(), ke(e.before_update);
185
185
  const t = e.dirty;
186
186
  e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Vt);
187
187
  }
188
188
  }
189
- function Ar(e) {
189
+ function Hr(e) {
190
190
  const t = [], n = [];
191
191
  Fe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Fe = t;
192
192
  }
193
- const Cr = /* @__PURE__ */ new Set();
194
- function Hr(e, t) {
195
- e && e.i && (Cr.delete(e), e.i(t));
193
+ const Rr = /* @__PURE__ */ new Set();
194
+ function Or(e, t) {
195
+ e && e.i && (Rr.delete(e), e.i(t));
196
196
  }
197
- function yt(e) {
197
+ function gt(e) {
198
198
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
199
199
  }
200
- function Or(e, t, n) {
200
+ function Lr(e, t, n) {
201
201
  const { fragment: r, after_update: i } = e.$$;
202
202
  r && r.m(t, n), Vt(() => {
203
- const o = e.$$.on_mount.map(Rn).filter(tn);
203
+ const o = e.$$.on_mount.map(Nn).filter(tn);
204
204
  e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ke(o), e.$$.on_mount = [];
205
205
  }), i.forEach(Vt);
206
206
  }
207
- function Rr(e, t) {
207
+ function Nr(e, t) {
208
208
  const n = e.$$;
209
- n.fragment !== null && (Ar(n.after_update), ke(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
209
+ n.fragment !== null && (Hr(n.after_update), ke(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
210
210
  }
211
- function Lr(e, t) {
212
- e.$$.dirty[0] === -1 && (De.push(e), Sr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
211
+ function Mr(e, t) {
212
+ e.$$.dirty[0] === -1 && (De.push(e), Ar(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
213
213
  }
214
- function Nr(e, t, n, r, i, o, u = null, s = [-1]) {
215
- const c = tt;
216
- et(e);
214
+ function Pr(e, t, n, r, i, o, u = null, a = [-1]) {
215
+ const h = rt;
216
+ nt(e);
217
217
  const l = e.$$ = {
218
218
  fragment: null,
219
219
  ctx: [],
220
220
  // state
221
221
  props: o,
222
- update: le,
222
+ update: ae,
223
223
  not_equal: i,
224
- bound: un(),
224
+ bound: hn(),
225
225
  // lifecycle
226
226
  on_mount: [],
227
227
  on_destroy: [],
228
228
  on_disconnect: [],
229
229
  before_update: [],
230
230
  after_update: [],
231
- context: new Map(t.context || (c ? c.$$.context : [])),
231
+ context: new Map(t.context || (h ? h.$$.context : [])),
232
232
  // everything else
233
- callbacks: un(),
234
- dirty: s,
233
+ callbacks: hn(),
234
+ dirty: a,
235
235
  skip_bound: !1,
236
- root: t.target || c.$$.root
236
+ root: t.target || h.$$.root
237
237
  };
238
238
  u && u(l.root);
239
239
  let f = !1;
240
- if (l.ctx = n ? n(e, t.props || {}, (g, p, ...y) => {
241
- const E = y.length ? y[0] : p;
242
- return l.ctx && i(l.ctx[g], l.ctx[g] = E) && (!l.skip_bound && l.bound[g] && l.bound[g](E), f && Lr(e, g)), p;
240
+ if (l.ctx = n ? n(e, t.props || {}, (b, m, ...x) => {
241
+ const _ = x.length ? x[0] : m;
242
+ return l.ctx && i(l.ctx[b], l.ctx[b] = _) && (!l.skip_bound && l.bound[b] && l.bound[b](_), f && Mr(e, b)), m;
243
243
  }) : [], l.update(), f = !0, ke(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
244
244
  if (t.hydrate) {
245
- const g = Er(t.target);
246
- l.fragment && l.fragment.l(g), g.forEach(me);
245
+ const b = _r(t.target);
246
+ l.fragment && l.fragment.l(b), b.forEach(fe);
247
247
  } else
248
248
  l.fragment && l.fragment.c();
249
- t.intro && Hr(e.$$.fragment), Or(e, t.target, t.anchor), Q();
249
+ t.intro && Or(e.$$.fragment), Lr(e, t.target, t.anchor), q();
250
250
  }
251
- et(c);
251
+ nt(h);
252
252
  }
253
- let Pn;
254
- typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
253
+ let Dn;
254
+ typeof HTMLElement == "function" && (Dn = class extends HTMLElement {
255
255
  constructor(t, n, r) {
256
256
  super();
257
257
  /** The Svelte component constructor */
258
- ue(this, "$$ctor");
258
+ oe(this, "$$ctor");
259
259
  /** Slots */
260
- ue(this, "$$s");
260
+ oe(this, "$$s");
261
261
  /** The Svelte component instance */
262
- ue(this, "$$c");
262
+ oe(this, "$$c");
263
263
  /** Whether or not the custom element is connected */
264
- ue(this, "$$cn", !1);
264
+ oe(this, "$$cn", !1);
265
265
  /** Component props data */
266
- ue(this, "$$d", {});
266
+ oe(this, "$$d", {});
267
267
  /** `true` if currently in the process of reflecting component props back to attributes */
268
- ue(this, "$$r", !1);
268
+ oe(this, "$$r", !1);
269
269
  /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
270
- ue(this, "$$p_d", {});
270
+ oe(this, "$$p_d", {});
271
271
  /** @type {Record<string, Function[]>} Event listeners */
272
- ue(this, "$$l", {});
272
+ oe(this, "$$l", {});
273
273
  /** @type {Map<Function, Function>} Event listener unsubscribe functions */
274
- ue(this, "$$l_u", /* @__PURE__ */ new Map());
274
+ oe(this, "$$l_u", /* @__PURE__ */ new Map());
275
275
  this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
276
276
  }
277
277
  addEventListener(t, n, r) {
@@ -295,29 +295,29 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
295
295
  let u;
296
296
  return {
297
297
  c: function() {
298
- u = V("slot"), o !== "default" && Z(u, "name", o);
298
+ u = k("slot"), o !== "default" && W(u, "name", o);
299
299
  },
300
300
  /**
301
301
  * @param {HTMLElement} target
302
302
  * @param {HTMLElement} [anchor]
303
303
  */
304
304
  m: function(l, f) {
305
- ve(l, u, f);
305
+ ge(l, u, f);
306
306
  },
307
307
  d: function(l) {
308
- l && me(u);
308
+ l && fe(u);
309
309
  }
310
310
  };
311
311
  };
312
312
  };
313
313
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
314
314
  return;
315
- const n = {}, r = xr(this);
315
+ const n = {}, r = Tr(this);
316
316
  for (const o of this.$$s)
317
317
  o in r && (n[o] = [t(o)]);
318
318
  for (const o of this.attributes) {
319
319
  const u = this.$$g_p(o.name);
320
- u in this.$$d || (this.$$d[u] = dt(u, o.value, this.$$p_d, "toProp"));
320
+ u in this.$$d || (this.$$d[u] = ct(u, o.value, this.$$p_d, "toProp"));
321
321
  }
322
322
  for (const o in this.$$p_d)
323
323
  !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
@@ -334,7 +334,7 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
334
334
  this.$$r = !0;
335
335
  for (const o in this.$$p_d)
336
336
  if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
337
- const u = dt(
337
+ const u = ct(
338
338
  o,
339
339
  this.$$d[o],
340
340
  this.$$p_d,
@@ -347,8 +347,8 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
347
347
  this.$$c.$$.after_update.push(i), i();
348
348
  for (const o in this.$$l)
349
349
  for (const u of this.$$l[o]) {
350
- const s = this.$$c.$on(o, u);
351
- this.$$l_u.set(u, s);
350
+ const a = this.$$c.$on(o, u);
351
+ this.$$l_u.set(u, a);
352
352
  }
353
353
  this.$$l = {};
354
354
  }
@@ -358,7 +358,7 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
358
358
  // and setting attributes through setAttribute etc, this is helpful
359
359
  attributeChangedCallback(t, n, r) {
360
360
  var i;
361
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = dt(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
361
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = ct(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
362
362
  }
363
363
  disconnectedCallback() {
364
364
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -371,7 +371,7 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
371
371
  ) || t;
372
372
  }
373
373
  });
374
- function dt(e, t, n, r) {
374
+ function ct(e, t, n, r) {
375
375
  var o;
376
376
  const i = (o = n[e]) == null ? void 0 : o.type;
377
377
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
@@ -401,38 +401,38 @@ function dt(e, t, n, r) {
401
401
  return t;
402
402
  }
403
403
  }
404
- function Mr(e, t, n, r, i, o) {
405
- let u = class extends Pn {
404
+ function Ir(e, t, n, r, i, o) {
405
+ let u = class extends Dn {
406
406
  constructor() {
407
407
  super(e, n, i), this.$$p_d = t;
408
408
  }
409
409
  static get observedAttributes() {
410
410
  return Object.keys(t).map(
411
- (s) => (t[s].attribute || s).toLowerCase()
411
+ (a) => (t[a].attribute || a).toLowerCase()
412
412
  );
413
413
  }
414
414
  };
415
- return Object.keys(t).forEach((s) => {
416
- Object.defineProperty(u.prototype, s, {
415
+ return Object.keys(t).forEach((a) => {
416
+ Object.defineProperty(u.prototype, a, {
417
417
  get() {
418
- return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
418
+ return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
419
419
  },
420
- set(c) {
420
+ set(h) {
421
421
  var l;
422
- c = dt(s, c, t), this.$$d[s] = c, (l = this.$$c) == null || l.$set({ [s]: c });
422
+ h = ct(a, h, t), this.$$d[a] = h, (l = this.$$c) == null || l.$set({ [a]: h });
423
423
  }
424
424
  });
425
- }), r.forEach((s) => {
426
- Object.defineProperty(u.prototype, s, {
425
+ }), r.forEach((a) => {
426
+ Object.defineProperty(u.prototype, a, {
427
427
  get() {
428
- var c;
429
- return (c = this.$$c) == null ? void 0 : c[s];
428
+ var h;
429
+ return (h = this.$$c) == null ? void 0 : h[a];
430
430
  }
431
431
  });
432
432
  }), e.element = /** @type {any} */
433
433
  u, u;
434
434
  }
435
- class Pr {
435
+ class Dr {
436
436
  constructor() {
437
437
  /**
438
438
  * ### PRIVATE API
@@ -441,7 +441,7 @@ class Pr {
441
441
  *
442
442
  * @type {any}
443
443
  */
444
- ue(this, "$$");
444
+ oe(this, "$$");
445
445
  /**
446
446
  * ### PRIVATE API
447
447
  *
@@ -449,11 +449,11 @@ class Pr {
449
449
  *
450
450
  * @type {any}
451
451
  */
452
- ue(this, "$$set");
452
+ oe(this, "$$set");
453
453
  }
454
454
  /** @returns {void} */
455
455
  $destroy() {
456
- Rr(this, 1), this.$destroy = le;
456
+ Nr(this, 1), this.$destroy = ae;
457
457
  }
458
458
  /**
459
459
  * @template {Extract<keyof Events, string>} K
@@ -463,7 +463,7 @@ class Pr {
463
463
  */
464
464
  $on(t, n) {
465
465
  if (!tn(n))
466
- return le;
466
+ return ae;
467
467
  const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
468
468
  return r.push(n), () => {
469
469
  const i = r.indexOf(n);
@@ -475,18 +475,18 @@ class Pr {
475
475
  * @returns {void}
476
476
  */
477
477
  $set(t) {
478
- this.$$set && !pr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
478
+ this.$$set && !gr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
479
479
  }
480
480
  }
481
- const Ir = "4";
482
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ir);
483
- function Dr(e, t) {
481
+ const Fr = "4";
482
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Fr);
483
+ function Ur(e, t) {
484
484
  if (e) {
485
485
  const n = document.createElement("style");
486
486
  n.innerHTML = t, e.appendChild(n);
487
487
  }
488
488
  }
489
- function Fr(e, t) {
489
+ function Gr(e, t) {
490
490
  const n = new URL(t);
491
491
  fetch(n.href).then((r) => r.text()).then((r) => {
492
492
  const i = document.createElement("style");
@@ -495,7 +495,7 @@ function Fr(e, t) {
495
495
  console.error("There was an error while trying to load client styling from URL", r);
496
496
  });
497
497
  }
498
- function Ur(e, t, n) {
498
+ function $r(e, t, n) {
499
499
  if (window.emMessageBus) {
500
500
  const r = document.createElement("style");
501
501
  window.emMessageBus.subscribe(t, (i) => {
@@ -504,32 +504,32 @@ function Ur(e, t, n) {
504
504
  }
505
505
  }
506
506
  const Ie = [];
507
- function Gr(e, t) {
507
+ function jr(e, t) {
508
508
  return {
509
- subscribe: xt(e, t).subscribe
509
+ subscribe: vt(e, t).subscribe
510
510
  };
511
511
  }
512
- function xt(e, t = le) {
512
+ function vt(e, t = ae) {
513
513
  let n;
514
514
  const r = /* @__PURE__ */ new Set();
515
- function i(s) {
516
- if (Ln(e, s) && (e = s, n)) {
517
- const c = !Ie.length;
515
+ function i(a) {
516
+ if (Mn(e, a) && (e = a, n)) {
517
+ const h = !Ie.length;
518
518
  for (const l of r)
519
519
  l[1](), Ie.push(l, e);
520
- if (c) {
520
+ if (h) {
521
521
  for (let l = 0; l < Ie.length; l += 2)
522
522
  Ie[l][0](Ie[l + 1]);
523
523
  Ie.length = 0;
524
524
  }
525
525
  }
526
526
  }
527
- function o(s) {
528
- i(s(e));
527
+ function o(a) {
528
+ i(a(e));
529
529
  }
530
- function u(s, c = le) {
531
- const l = [s, c];
532
- return r.add(l), r.size === 1 && (n = t(i, o) || le), s(e), () => {
530
+ function u(a, h = ae) {
531
+ const l = [a, h];
532
+ return r.add(l), r.size === 1 && (n = t(i, o) || ae), a(e), () => {
533
533
  r.delete(l), r.size === 0 && n && (n(), n = null);
534
534
  };
535
535
  }
@@ -540,97 +540,97 @@ function Ve(e, t, n) {
540
540
  if (!i.every(Boolean))
541
541
  throw new Error("derived() expects stores as input, got a falsy value");
542
542
  const o = t.length < 2;
543
- return Gr(n, (u, s) => {
544
- let c = !1;
543
+ return jr(n, (u, a) => {
544
+ let h = !1;
545
545
  const l = [];
546
- let f = 0, g = le;
547
- const p = () => {
546
+ let f = 0, b = ae;
547
+ const m = () => {
548
548
  if (f)
549
549
  return;
550
- g();
551
- const E = t(r ? l[0] : l, u, s);
552
- o ? u(E) : g = tn(E) ? E : le;
553
- }, y = i.map(
554
- (E, M) => Nn(
555
- E,
550
+ b();
551
+ const _ = t(r ? l[0] : l, u, a);
552
+ o ? u(_) : b = tn(_) ? _ : ae;
553
+ }, x = i.map(
554
+ (_, M) => Pn(
555
+ _,
556
556
  (C) => {
557
- l[M] = C, f &= ~(1 << M), c && p();
557
+ l[M] = C, f &= ~(1 << M), h && m();
558
558
  },
559
559
  () => {
560
560
  f |= 1 << M;
561
561
  }
562
562
  )
563
563
  );
564
- return c = !0, p(), function() {
565
- ke(y), g(), c = !1;
564
+ return h = !0, m(), function() {
565
+ ke(x), b(), h = !1;
566
566
  };
567
567
  });
568
568
  }
569
- var $r = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
570
- function jr(e) {
569
+ var kr = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
570
+ function Vr(e) {
571
571
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
572
572
  }
573
- var kr = function(t) {
574
- return Vr(t) && !Xr(t);
573
+ var Xr = function(t) {
574
+ return zr(t) && !Wr(t);
575
575
  };
576
- function Vr(e) {
576
+ function zr(e) {
577
577
  return !!e && typeof e == "object";
578
578
  }
579
- function Xr(e) {
579
+ function Wr(e) {
580
580
  var t = Object.prototype.toString.call(e);
581
- return t === "[object RegExp]" || t === "[object Date]" || Zr(e);
581
+ return t === "[object RegExp]" || t === "[object Date]" || Qr(e);
582
582
  }
583
- var zr = typeof Symbol == "function" && Symbol.for, Wr = zr ? Symbol.for("react.element") : 60103;
584
- function Zr(e) {
585
- return e.$$typeof === Wr;
583
+ var Zr = typeof Symbol == "function" && Symbol.for, qr = Zr ? Symbol.for("react.element") : 60103;
584
+ function Qr(e) {
585
+ return e.$$typeof === qr;
586
586
  }
587
- function qr(e) {
587
+ function Jr(e) {
588
588
  return Array.isArray(e) ? [] : {};
589
589
  }
590
- function nt(e, t) {
591
- return t.clone !== !1 && t.isMergeableObject(e) ? Ue(qr(e), e, t) : e;
590
+ function it(e, t) {
591
+ return t.clone !== !1 && t.isMergeableObject(e) ? Ue(Jr(e), e, t) : e;
592
592
  }
593
- function Qr(e, t, n) {
593
+ function Yr(e, t, n) {
594
594
  return e.concat(t).map(function(r) {
595
- return nt(r, n);
595
+ return it(r, n);
596
596
  });
597
597
  }
598
- function Jr(e, t) {
598
+ function Kr(e, t) {
599
599
  if (!t.customMerge)
600
600
  return Ue;
601
601
  var n = t.customMerge(e);
602
602
  return typeof n == "function" ? n : Ue;
603
603
  }
604
- function Yr(e) {
604
+ function ei(e) {
605
605
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
606
606
  return Object.propertyIsEnumerable.call(e, t);
607
607
  }) : [];
608
608
  }
609
- function hn(e) {
610
- return Object.keys(e).concat(Yr(e));
609
+ function fn(e) {
610
+ return Object.keys(e).concat(ei(e));
611
611
  }
612
- function In(e, t) {
612
+ function Fn(e, t) {
613
613
  try {
614
614
  return t in e;
615
615
  } catch (n) {
616
616
  return !1;
617
617
  }
618
618
  }
619
- function Kr(e, t) {
620
- return In(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
619
+ function ti(e, t) {
620
+ return Fn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
621
621
  }
622
- function ei(e, t, n) {
622
+ function ni(e, t, n) {
623
623
  var r = {};
624
- return n.isMergeableObject(e) && hn(e).forEach(function(i) {
625
- r[i] = nt(e[i], n);
626
- }), hn(t).forEach(function(i) {
627
- Kr(e, i) || (In(e, i) && n.isMergeableObject(t[i]) ? r[i] = Jr(i, n)(e[i], t[i], n) : r[i] = nt(t[i], n));
624
+ return n.isMergeableObject(e) && fn(e).forEach(function(i) {
625
+ r[i] = it(e[i], n);
626
+ }), fn(t).forEach(function(i) {
627
+ ti(e, i) || (Fn(e, i) && n.isMergeableObject(t[i]) ? r[i] = Kr(i, n)(e[i], t[i], n) : r[i] = it(t[i], n));
628
628
  }), r;
629
629
  }
630
630
  function Ue(e, t, n) {
631
- n = n || {}, n.arrayMerge = n.arrayMerge || Qr, n.isMergeableObject = n.isMergeableObject || kr, n.cloneUnlessOtherwiseSpecified = nt;
631
+ n = n || {}, n.arrayMerge = n.arrayMerge || Yr, n.isMergeableObject = n.isMergeableObject || Xr, n.cloneUnlessOtherwiseSpecified = it;
632
632
  var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
633
- return o ? r ? n.arrayMerge(e, t, n) : ei(e, t, n) : nt(t, n);
633
+ return o ? r ? n.arrayMerge(e, t, n) : ni(e, t, n) : it(t, n);
634
634
  }
635
635
  Ue.all = function(t, n) {
636
636
  if (!Array.isArray(t))
@@ -639,8 +639,8 @@ Ue.all = function(t, n) {
639
639
  return Ue(r, i, n);
640
640
  }, {});
641
641
  };
642
- var ti = Ue, ni = ti;
643
- const ri = /* @__PURE__ */ jr(ni);
642
+ var ri = Ue, ii = ri;
643
+ const oi = /* @__PURE__ */ Vr(ii);
644
644
  /*! *****************************************************************************
645
645
  Copyright (c) Microsoft Corporation.
646
646
 
@@ -663,7 +663,7 @@ var Xt = function(e, t) {
663
663
  Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
664
664
  }, Xt(e, t);
665
665
  };
666
- function _t(e, t) {
666
+ function Et(e, t) {
667
667
  if (typeof t != "function" && t !== null)
668
668
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
669
669
  Xt(e, t);
@@ -682,7 +682,7 @@ var N = function() {
682
682
  return t;
683
683
  }, N.apply(this, arguments);
684
684
  };
685
- function ii(e, t) {
685
+ function ai(e, t) {
686
686
  var n = {};
687
687
  for (var r in e)
688
688
  Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
@@ -698,102 +698,104 @@ function It(e, t, n) {
698
698
  return e.concat(o || t);
699
699
  }
700
700
  function Dt(e, t) {
701
- var n = t && t.cache ? t.cache : ci, r = t && t.serializer ? t.serializer : li, i = t && t.strategy ? t.strategy : si;
701
+ var n = t && t.cache ? t.cache : fi, r = t && t.serializer ? t.serializer : ci, i = t && t.strategy ? t.strategy : ui;
702
702
  return i(e, {
703
703
  cache: n,
704
704
  serializer: r
705
705
  });
706
706
  }
707
- function oi(e) {
707
+ function si(e) {
708
708
  return e == null || typeof e == "number" || typeof e == "boolean";
709
709
  }
710
- function ai(e, t, n, r) {
711
- var i = oi(r) ? r : n(r), o = t.get(i);
710
+ function Un(e, t, n, r) {
711
+ var i = si(r) ? r : n(r), o = t.get(i);
712
712
  return typeof o == "undefined" && (o = e.call(this, r), t.set(i, o)), o;
713
713
  }
714
- function Dn(e, t, n) {
714
+ function Gn(e, t, n) {
715
715
  var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
716
716
  return typeof o == "undefined" && (o = e.apply(this, r), t.set(i, o)), o;
717
717
  }
718
- function Fn(e, t, n, r, i) {
718
+ function nn(e, t, n, r, i) {
719
719
  return n.bind(t, e, r, i);
720
720
  }
721
- function si(e, t) {
722
- var n = e.length === 1 ? ai : Dn;
723
- return Fn(e, this, n, t.cache.create(), t.serializer);
724
- }
725
721
  function ui(e, t) {
726
- return Fn(e, this, Dn, t.cache.create(), t.serializer);
722
+ var n = e.length === 1 ? Un : Gn;
723
+ return nn(e, this, n, t.cache.create(), t.serializer);
724
+ }
725
+ function li(e, t) {
726
+ return nn(e, this, Gn, t.cache.create(), t.serializer);
727
+ }
728
+ function hi(e, t) {
729
+ return nn(e, this, Un, t.cache.create(), t.serializer);
727
730
  }
728
- var li = function() {
731
+ var ci = function() {
729
732
  return JSON.stringify(arguments);
730
- }, hi = (
731
- /** @class */
732
- function() {
733
- function e() {
734
- this.cache = /* @__PURE__ */ Object.create(null);
735
- }
736
- return e.prototype.get = function(t) {
737
- return this.cache[t];
738
- }, e.prototype.set = function(t, n) {
739
- this.cache[t] = n;
740
- }, e;
741
- }()
742
- ), ci = {
733
+ };
734
+ function rn() {
735
+ this.cache = /* @__PURE__ */ Object.create(null);
736
+ }
737
+ rn.prototype.get = function(e) {
738
+ return this.cache[e];
739
+ };
740
+ rn.prototype.set = function(e, t) {
741
+ this.cache[e] = t;
742
+ };
743
+ var fi = {
743
744
  create: function() {
744
- return new hi();
745
+ return new rn();
745
746
  }
746
747
  }, Ft = {
747
- variadic: ui
748
+ variadic: li,
749
+ monadic: hi
748
750
  }, A;
749
751
  (function(e) {
750
752
  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";
751
753
  })(A || (A = {}));
752
- var G;
754
+ var U;
753
755
  (function(e) {
754
756
  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";
755
- })(G || (G = {}));
757
+ })(U || (U = {}));
756
758
  var Ge;
757
759
  (function(e) {
758
760
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
759
761
  })(Ge || (Ge = {}));
760
- function cn(e) {
761
- return e.type === G.literal;
762
- }
763
- function fi(e) {
764
- return e.type === G.argument;
765
- }
766
- function Un(e) {
767
- return e.type === G.number;
762
+ function dn(e) {
763
+ return e.type === U.literal;
768
764
  }
769
- function Gn(e) {
770
- return e.type === G.date;
765
+ function di(e) {
766
+ return e.type === U.argument;
771
767
  }
772
768
  function $n(e) {
773
- return e.type === G.time;
769
+ return e.type === U.number;
774
770
  }
775
771
  function jn(e) {
776
- return e.type === G.select;
772
+ return e.type === U.date;
777
773
  }
778
774
  function kn(e) {
779
- return e.type === G.plural;
780
- }
781
- function di(e) {
782
- return e.type === G.pound;
775
+ return e.type === U.time;
783
776
  }
784
777
  function Vn(e) {
785
- return e.type === G.tag;
778
+ return e.type === U.select;
786
779
  }
787
780
  function Xn(e) {
781
+ return e.type === U.plural;
782
+ }
783
+ function pi(e) {
784
+ return e.type === U.pound;
785
+ }
786
+ function zn(e) {
787
+ return e.type === U.tag;
788
+ }
789
+ function Wn(e) {
788
790
  return !!(e && typeof e == "object" && e.type === Ge.number);
789
791
  }
790
792
  function zt(e) {
791
793
  return !!(e && typeof e == "object" && e.type === Ge.dateTime);
792
794
  }
793
- var zn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, pi = /(?:[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;
794
- function mi(e) {
795
+ var Zn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, mi = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
796
+ function gi(e) {
795
797
  var t = {};
796
- return e.replace(pi, function(n) {
798
+ return e.replace(mi, function(n) {
797
799
  var r = n.length;
798
800
  switch (n[0]) {
799
801
  case "G":
@@ -882,36 +884,36 @@ function mi(e) {
882
884
  return "";
883
885
  }), t;
884
886
  }
885
- var gi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
886
- function bi(e) {
887
+ var bi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
888
+ function yi(e) {
887
889
  if (e.length === 0)
888
890
  throw new Error("Number skeleton cannot be empty");
889
- for (var t = e.split(gi).filter(function(p) {
890
- return p.length > 0;
891
+ for (var t = e.split(bi).filter(function(m) {
892
+ return m.length > 0;
891
893
  }), n = [], r = 0, i = t; r < i.length; r++) {
892
894
  var o = i[r], u = o.split("/");
893
895
  if (u.length === 0)
894
896
  throw new Error("Invalid number skeleton");
895
- for (var s = u[0], c = u.slice(1), l = 0, f = c; l < f.length; l++) {
896
- var g = f[l];
897
- if (g.length === 0)
897
+ for (var a = u[0], h = u.slice(1), l = 0, f = h; l < f.length; l++) {
898
+ var b = f[l];
899
+ if (b.length === 0)
898
900
  throw new Error("Invalid number skeleton");
899
901
  }
900
- n.push({ stem: s, options: c });
902
+ n.push({ stem: a, options: h });
901
903
  }
902
904
  return n;
903
905
  }
904
- function yi(e) {
906
+ function vi(e) {
905
907
  return e.replace(/^(.*?)-/, "");
906
908
  }
907
- var fn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Wn = /^(@+)?(\+|#+)?[rs]?$/g, vi = /(\*)(0+)|(#+)(0+)|(0+)/g, Zn = /^(0+)$/;
908
- function dn(e) {
909
+ var pn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, qn = /^(@+)?(\+|#+)?[rs]?$/g, Ei = /(\*)(0+)|(#+)(0+)|(0+)/g, Qn = /^(0+)$/;
910
+ function mn(e) {
909
911
  var t = {};
910
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Wn, function(n, r, i) {
912
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(qn, function(n, r, i) {
911
913
  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)), "";
912
914
  }), t;
913
915
  }
914
- function qn(e) {
916
+ function Jn(e) {
915
917
  switch (e) {
916
918
  case "sign-auto":
917
919
  return {
@@ -951,7 +953,7 @@ function qn(e) {
951
953
  };
952
954
  }
953
955
  }
954
- function Ei(e) {
956
+ function xi(e) {
955
957
  var t;
956
958
  if (e[0] === "E" && e[1] === "E" ? (t = {
957
959
  notation: "engineering"
@@ -959,17 +961,17 @@ function Ei(e) {
959
961
  notation: "scientific"
960
962
  }, e = e.slice(1)), t) {
961
963
  var n = e.slice(0, 2);
962
- if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Zn.test(e))
964
+ if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Qn.test(e))
963
965
  throw new Error("Malformed concise eng/scientific notation");
964
966
  t.minimumIntegerDigits = e.length;
965
967
  }
966
968
  return t;
967
969
  }
968
- function pn(e) {
969
- var t = {}, n = qn(e);
970
+ function gn(e) {
971
+ var t = {}, n = Jn(e);
970
972
  return n || t;
971
973
  }
972
- function xi(e) {
974
+ function _i(e) {
973
975
  for (var t = {}, n = 0, r = e; n < r.length; n++) {
974
976
  var i = r[n];
975
977
  switch (i.stem) {
@@ -993,7 +995,7 @@ function xi(e) {
993
995
  continue;
994
996
  case "measure-unit":
995
997
  case "unit":
996
- t.style = "unit", t.unit = yi(i.options[0]);
998
+ t.style = "unit", t.unit = vi(i.options[0]);
997
999
  continue;
998
1000
  case "compact-short":
999
1001
  case "K":
@@ -1004,13 +1006,13 @@ function xi(e) {
1004
1006
  t.notation = "compact", t.compactDisplay = "long";
1005
1007
  continue;
1006
1008
  case "scientific":
1007
- t = N(N(N({}, t), { notation: "scientific" }), i.options.reduce(function(c, l) {
1008
- return N(N({}, c), pn(l));
1009
+ t = N(N(N({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
1010
+ return N(N({}, h), gn(l));
1009
1011
  }, {}));
1010
1012
  continue;
1011
1013
  case "engineering":
1012
- t = N(N(N({}, t), { notation: "engineering" }), i.options.reduce(function(c, l) {
1013
- return N(N({}, c), pn(l));
1014
+ t = N(N(N({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
1015
+ return N(N({}, h), gn(l));
1014
1016
  }, {}));
1015
1017
  continue;
1016
1018
  case "notation-simple":
@@ -1055,45 +1057,45 @@ function xi(e) {
1055
1057
  case "integer-width":
1056
1058
  if (i.options.length > 1)
1057
1059
  throw new RangeError("integer-width stems only accept a single optional option");
1058
- i.options[0].replace(vi, function(c, l, f, g, p, y) {
1060
+ i.options[0].replace(Ei, function(h, l, f, b, m, x) {
1059
1061
  if (l)
1060
1062
  t.minimumIntegerDigits = f.length;
1061
1063
  else {
1062
- if (g && p)
1064
+ if (b && m)
1063
1065
  throw new Error("We currently do not support maximum integer digits");
1064
- if (y)
1066
+ if (x)
1065
1067
  throw new Error("We currently do not support exact integer digits");
1066
1068
  }
1067
1069
  return "";
1068
1070
  });
1069
1071
  continue;
1070
1072
  }
1071
- if (Zn.test(i.stem)) {
1073
+ if (Qn.test(i.stem)) {
1072
1074
  t.minimumIntegerDigits = i.stem.length;
1073
1075
  continue;
1074
1076
  }
1075
- if (fn.test(i.stem)) {
1077
+ if (pn.test(i.stem)) {
1076
1078
  if (i.options.length > 1)
1077
1079
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1078
- i.stem.replace(fn, function(c, l, f, g, p, y) {
1079
- return f === "*" ? t.minimumFractionDigits = l.length : g && g[0] === "#" ? t.maximumFractionDigits = g.length : p && y ? (t.minimumFractionDigits = p.length, t.maximumFractionDigits = p.length + y.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1080
+ i.stem.replace(pn, function(h, l, f, b, m, x) {
1081
+ return f === "*" ? t.minimumFractionDigits = l.length : b && b[0] === "#" ? t.maximumFractionDigits = b.length : m && x ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + x.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1080
1082
  });
1081
1083
  var o = i.options[0];
1082
- o === "w" ? t = N(N({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = N(N({}, t), dn(o)));
1084
+ o === "w" ? t = N(N({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = N(N({}, t), mn(o)));
1083
1085
  continue;
1084
1086
  }
1085
- if (Wn.test(i.stem)) {
1086
- t = N(N({}, t), dn(i.stem));
1087
+ if (qn.test(i.stem)) {
1088
+ t = N(N({}, t), mn(i.stem));
1087
1089
  continue;
1088
1090
  }
1089
- var u = qn(i.stem);
1091
+ var u = Jn(i.stem);
1090
1092
  u && (t = N(N({}, t), u));
1091
- var s = Ei(i.stem);
1092
- s && (t = N(N({}, t), s));
1093
+ var a = xi(i.stem);
1094
+ a && (t = N(N({}, t), a));
1093
1095
  }
1094
1096
  return t;
1095
1097
  }
1096
- var ft = {
1098
+ var ht = {
1097
1099
  "001": [
1098
1100
  "H",
1099
1101
  "h"
@@ -2508,15 +2510,15 @@ var ft = {
2508
2510
  "h"
2509
2511
  ]
2510
2512
  };
2511
- function _i(e, t) {
2513
+ function Ti(e, t) {
2512
2514
  for (var n = "", r = 0; r < e.length; r++) {
2513
2515
  var i = e.charAt(r);
2514
2516
  if (i === "j") {
2515
2517
  for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2516
2518
  o++, r++;
2517
- var u = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), c = "a", l = Ti(t);
2518
- for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
2519
- n += c;
2519
+ var u = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", l = Bi(t);
2520
+ for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
2521
+ n += h;
2520
2522
  for (; u-- > 0; )
2521
2523
  n = l + n;
2522
2524
  } else
@@ -2524,7 +2526,7 @@ function _i(e, t) {
2524
2526
  }
2525
2527
  return n;
2526
2528
  }
2527
- function Ti(e) {
2529
+ function Bi(e) {
2528
2530
  var t = e.hourCycle;
2529
2531
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2530
2532
  e.hourCycles && // @ts-ignore
@@ -2543,23 +2545,23 @@ function Ti(e) {
2543
2545
  }
2544
2546
  var n = e.language, r;
2545
2547
  n !== "root" && (r = e.maximize().region);
2546
- var i = ft[r || ""] || ft[n || ""] || ft["".concat(n, "-001")] || ft["001"];
2548
+ var i = ht[r || ""] || ht[n || ""] || ht["".concat(n, "-001")] || ht["001"];
2547
2549
  return i[0];
2548
2550
  }
2549
- var Ut, Bi = new RegExp("^".concat(zn.source, "*")), Si = new RegExp("".concat(zn.source, "*$"));
2551
+ var Ut, Si = new RegExp("^".concat(Zn.source, "*")), wi = new RegExp("".concat(Zn.source, "*$"));
2550
2552
  function O(e, t) {
2551
2553
  return { start: e, end: t };
2552
2554
  }
2553
- var wi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ai = !!String.fromCodePoint, Ci = !!Object.fromEntries, Hi = !!String.prototype.codePointAt, Oi = !!String.prototype.trimStart, Ri = !!String.prototype.trimEnd, Li = !!Number.isSafeInteger, Ni = Li ? Number.isSafeInteger : function(e) {
2555
+ var Ai = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ci = !!String.fromCodePoint, Hi = !!Object.fromEntries, Ri = !!String.prototype.codePointAt, Oi = !!String.prototype.trimStart, Li = !!String.prototype.trimEnd, Ni = !!Number.isSafeInteger, Mi = Ni ? Number.isSafeInteger : function(e) {
2554
2556
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2555
2557
  }, Wt = !0;
2556
2558
  try {
2557
- var Mi = Jn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2558
- Wt = ((Ut = Mi.exec("a")) === null || Ut === void 0 ? void 0 : Ut[0]) === "a";
2559
+ var Pi = Kn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2560
+ Wt = ((Ut = Pi.exec("a")) === null || Ut === void 0 ? void 0 : Ut[0]) === "a";
2559
2561
  } catch (e) {
2560
2562
  Wt = !1;
2561
2563
  }
2562
- var mn = wi ? (
2564
+ var bn = Ai ? (
2563
2565
  // Native
2564
2566
  function(t, n, r) {
2565
2567
  return t.startsWith(n, r);
@@ -2569,7 +2571,7 @@ var mn = wi ? (
2569
2571
  function(t, n, r) {
2570
2572
  return t.slice(r, r + n.length) === n;
2571
2573
  }
2572
- ), Zt = Ai ? String.fromCodePoint : (
2574
+ ), Zt = Ci ? String.fromCodePoint : (
2573
2575
  // IE11
2574
2576
  function() {
2575
2577
  for (var t = [], n = 0; n < arguments.length; n++)
@@ -2581,19 +2583,19 @@ var mn = wi ? (
2581
2583
  }
2582
2584
  return r;
2583
2585
  }
2584
- ), gn = (
2586
+ ), yn = (
2585
2587
  // native
2586
- Ci ? Object.fromEntries : (
2588
+ Hi ? Object.fromEntries : (
2587
2589
  // Ponyfill
2588
2590
  function(t) {
2589
2591
  for (var n = {}, r = 0, i = t; r < i.length; r++) {
2590
- var o = i[r], u = o[0], s = o[1];
2591
- n[u] = s;
2592
+ var o = i[r], u = o[0], a = o[1];
2593
+ n[u] = a;
2592
2594
  }
2593
2595
  return n;
2594
2596
  }
2595
2597
  )
2596
- ), Qn = Hi ? (
2598
+ ), Yn = Ri ? (
2597
2599
  // Native
2598
2600
  function(t, n) {
2599
2601
  return t.codePointAt(n);
@@ -2607,7 +2609,7 @@ var mn = wi ? (
2607
2609
  return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2608
2610
  }
2609
2611
  }
2610
- ), Pi = Oi ? (
2612
+ ), Ii = Oi ? (
2611
2613
  // Native
2612
2614
  function(t) {
2613
2615
  return t.trimStart();
@@ -2615,9 +2617,9 @@ var mn = wi ? (
2615
2617
  ) : (
2616
2618
  // Ponyfill
2617
2619
  function(t) {
2618
- return t.replace(Bi, "");
2620
+ return t.replace(Si, "");
2619
2621
  }
2620
- ), Ii = Ri ? (
2622
+ ), Di = Li ? (
2621
2623
  // Native
2622
2624
  function(t) {
2623
2625
  return t.trimEnd();
@@ -2625,32 +2627,32 @@ var mn = wi ? (
2625
2627
  ) : (
2626
2628
  // Ponyfill
2627
2629
  function(t) {
2628
- return t.replace(Si, "");
2630
+ return t.replace(wi, "");
2629
2631
  }
2630
2632
  );
2631
- function Jn(e, t) {
2633
+ function Kn(e, t) {
2632
2634
  return new RegExp(e, t);
2633
2635
  }
2634
2636
  var qt;
2635
2637
  if (Wt) {
2636
- var bn = Jn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2638
+ var vn = Kn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2637
2639
  qt = function(t, n) {
2638
2640
  var r;
2639
- bn.lastIndex = n;
2640
- var i = bn.exec(t);
2641
+ vn.lastIndex = n;
2642
+ var i = vn.exec(t);
2641
2643
  return (r = i[1]) !== null && r !== void 0 ? r : "";
2642
2644
  };
2643
2645
  } else
2644
2646
  qt = function(t, n) {
2645
2647
  for (var r = []; ; ) {
2646
- var i = Qn(t, n);
2647
- if (i === void 0 || Yn(i) || Gi(i))
2648
+ var i = Yn(t, n);
2649
+ if (i === void 0 || er(i) || $i(i))
2648
2650
  break;
2649
2651
  r.push(i), n += i >= 65536 ? 2 : 1;
2650
2652
  }
2651
2653
  return Zt.apply(void 0, r);
2652
2654
  };
2653
- var Di = (
2655
+ var Fi = (
2654
2656
  /** @class */
2655
2657
  function() {
2656
2658
  function e(t, n) {
@@ -2672,10 +2674,10 @@ var Di = (
2672
2674
  if (o === 125 && t > 0)
2673
2675
  break;
2674
2676
  if (o === 35 && (n === "plural" || n === "selectordinal")) {
2675
- var s = this.clonePosition();
2677
+ var a = this.clonePosition();
2676
2678
  this.bump(), i.push({
2677
- type: G.pound,
2678
- location: O(s, this.clonePosition())
2679
+ type: U.pound,
2680
+ location: O(a, this.clonePosition())
2679
2681
  });
2680
2682
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2681
2683
  if (r)
@@ -2702,7 +2704,7 @@ var Di = (
2702
2704
  if (this.bumpSpace(), this.bumpIf("/>"))
2703
2705
  return {
2704
2706
  val: {
2705
- type: G.literal,
2707
+ type: U.literal,
2706
2708
  value: "<".concat(i, "/>"),
2707
2709
  location: O(r, this.clonePosition())
2708
2710
  },
@@ -2712,27 +2714,27 @@ var Di = (
2712
2714
  var o = this.parseMessage(t + 1, n, !0);
2713
2715
  if (o.err)
2714
2716
  return o;
2715
- var u = o.val, s = this.clonePosition();
2717
+ var u = o.val, a = this.clonePosition();
2716
2718
  if (this.bumpIf("</")) {
2717
2719
  if (this.isEOF() || !Qt(this.char()))
2718
- return this.error(A.INVALID_TAG, O(s, this.clonePosition()));
2719
- var c = this.clonePosition(), l = this.parseTagName();
2720
- return i !== l ? this.error(A.UNMATCHED_CLOSING_TAG, O(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2720
+ return this.error(A.INVALID_TAG, O(a, this.clonePosition()));
2721
+ var h = this.clonePosition(), l = this.parseTagName();
2722
+ return i !== l ? this.error(A.UNMATCHED_CLOSING_TAG, O(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2721
2723
  val: {
2722
- type: G.tag,
2724
+ type: U.tag,
2723
2725
  value: i,
2724
2726
  children: u,
2725
2727
  location: O(r, this.clonePosition())
2726
2728
  },
2727
2729
  err: null
2728
- } : this.error(A.INVALID_TAG, O(s, this.clonePosition())));
2730
+ } : this.error(A.INVALID_TAG, O(a, this.clonePosition())));
2729
2731
  } else
2730
2732
  return this.error(A.UNCLOSED_TAG, O(r, this.clonePosition()));
2731
2733
  } else
2732
2734
  return this.error(A.INVALID_TAG, O(r, this.clonePosition()));
2733
2735
  }, e.prototype.parseTagName = function() {
2734
2736
  var t = this.offset();
2735
- for (this.bump(); !this.isEOF() && Ui(this.char()); )
2737
+ for (this.bump(); !this.isEOF() && Gi(this.char()); )
2736
2738
  this.bump();
2737
2739
  return this.message.slice(t, this.offset());
2738
2740
  }, e.prototype.parseLiteral = function(t, n) {
@@ -2747,21 +2749,21 @@ var Di = (
2747
2749
  i += u;
2748
2750
  continue;
2749
2751
  }
2750
- var s = this.tryParseLeftAngleBracket();
2751
- if (s) {
2752
- i += s;
2752
+ var a = this.tryParseLeftAngleBracket();
2753
+ if (a) {
2754
+ i += a;
2753
2755
  continue;
2754
2756
  }
2755
2757
  break;
2756
2758
  }
2757
- var c = O(r, this.clonePosition());
2759
+ var h = O(r, this.clonePosition());
2758
2760
  return {
2759
- val: { type: G.literal, value: i, location: c },
2761
+ val: { type: U.literal, value: i, location: h },
2760
2762
  err: null
2761
2763
  };
2762
2764
  }, e.prototype.tryParseLeftAngleBracket = function() {
2763
2765
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2764
- !Fi(this.peek() || 0)) ? (this.bump(), "<") : null;
2766
+ !Ui(this.peek() || 0)) ? (this.bump(), "<") : null;
2765
2767
  }, e.prototype.tryParseQuote = function(t) {
2766
2768
  if (this.isEOF() || this.char() !== 39)
2767
2769
  return null;
@@ -2816,7 +2818,7 @@ var Di = (
2816
2818
  case 125:
2817
2819
  return this.bump(), {
2818
2820
  val: {
2819
- type: G.argument,
2821
+ type: U.argument,
2820
2822
  // value does not include the opening and closing braces.
2821
2823
  value: i,
2822
2824
  location: O(r, this.clonePosition())
@@ -2834,10 +2836,10 @@ var Di = (
2834
2836
  var o = this.clonePosition(), u = O(t, o);
2835
2837
  return { value: r, location: u };
2836
2838
  }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
2837
- var o, u = this.clonePosition(), s = this.parseIdentifierIfPossible().value, c = this.clonePosition();
2838
- switch (s) {
2839
+ var o, u = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2840
+ switch (a) {
2839
2841
  case "":
2840
- return this.error(A.EXPECT_ARGUMENT_TYPE, O(u, c));
2842
+ return this.error(A.EXPECT_ARGUMENT_TYPE, O(u, h));
2841
2843
  case "number":
2842
2844
  case "date":
2843
2845
  case "time": {
@@ -2845,47 +2847,47 @@ var Di = (
2845
2847
  var l = null;
2846
2848
  if (this.bumpIf(",")) {
2847
2849
  this.bumpSpace();
2848
- var f = this.clonePosition(), g = this.parseSimpleArgStyleIfPossible();
2849
- if (g.err)
2850
- return g;
2851
- var p = Ii(g.val);
2852
- if (p.length === 0)
2850
+ var f = this.clonePosition(), b = this.parseSimpleArgStyleIfPossible();
2851
+ if (b.err)
2852
+ return b;
2853
+ var m = Di(b.val);
2854
+ if (m.length === 0)
2853
2855
  return this.error(A.EXPECT_ARGUMENT_STYLE, O(this.clonePosition(), this.clonePosition()));
2854
- var y = O(f, this.clonePosition());
2855
- l = { style: p, styleLocation: y };
2856
+ var x = O(f, this.clonePosition());
2857
+ l = { style: m, styleLocation: x };
2856
2858
  }
2857
- var E = this.tryParseArgumentClose(i);
2858
- if (E.err)
2859
- return E;
2859
+ var _ = this.tryParseArgumentClose(i);
2860
+ if (_.err)
2861
+ return _;
2860
2862
  var M = O(i, this.clonePosition());
2861
- if (l && mn(l == null ? void 0 : l.style, "::", 0)) {
2862
- var C = Pi(l.style.slice(2));
2863
- if (s === "number") {
2864
- var g = this.parseNumberSkeletonFromString(C, l.styleLocation);
2865
- return g.err ? g : {
2866
- val: { type: G.number, value: r, location: M, style: g.val },
2863
+ if (l && bn(l == null ? void 0 : l.style, "::", 0)) {
2864
+ var C = Ii(l.style.slice(2));
2865
+ if (a === "number") {
2866
+ var b = this.parseNumberSkeletonFromString(C, l.styleLocation);
2867
+ return b.err ? b : {
2868
+ val: { type: U.number, value: r, location: M, style: b.val },
2867
2869
  err: null
2868
2870
  };
2869
2871
  } else {
2870
2872
  if (C.length === 0)
2871
2873
  return this.error(A.EXPECT_DATE_TIME_SKELETON, M);
2872
- var $ = C;
2873
- this.locale && ($ = _i(C, this.locale));
2874
- var p = {
2874
+ var G = C;
2875
+ this.locale && (G = Ti(C, this.locale));
2876
+ var m = {
2875
2877
  type: Ge.dateTime,
2876
- pattern: $,
2878
+ pattern: G,
2877
2879
  location: l.styleLocation,
2878
- parsedOptions: this.shouldParseSkeletons ? mi($) : {}
2879
- }, X = s === "date" ? G.date : G.time;
2880
+ parsedOptions: this.shouldParseSkeletons ? gi(G) : {}
2881
+ }, V = a === "date" ? U.date : U.time;
2880
2882
  return {
2881
- val: { type: X, value: r, location: M, style: p },
2883
+ val: { type: V, value: r, location: M, style: m },
2882
2884
  err: null
2883
2885
  };
2884
2886
  }
2885
2887
  }
2886
2888
  return {
2887
2889
  val: {
2888
- type: s === "number" ? G.number : s === "date" ? G.date : G.time,
2890
+ type: a === "number" ? U.number : a === "date" ? U.date : U.time,
2889
2891
  value: r,
2890
2892
  location: M,
2891
2893
  style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
@@ -2900,45 +2902,45 @@ var Di = (
2900
2902
  if (this.bumpSpace(), !this.bumpIf(","))
2901
2903
  return this.error(A.EXPECT_SELECT_ARGUMENT_OPTIONS, O(T, N({}, T)));
2902
2904
  this.bumpSpace();
2903
- var S = this.parseIdentifierIfPossible(), U = 0;
2904
- if (s !== "select" && S.value === "offset") {
2905
+ var S = this.parseIdentifierIfPossible(), F = 0;
2906
+ if (a !== "select" && S.value === "offset") {
2905
2907
  if (!this.bumpIf(":"))
2906
2908
  return this.error(A.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O(this.clonePosition(), this.clonePosition()));
2907
2909
  this.bumpSpace();
2908
- var g = this.tryParseDecimalInteger(A.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, A.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2909
- if (g.err)
2910
- return g;
2911
- this.bumpSpace(), S = this.parseIdentifierIfPossible(), U = g.val;
2910
+ var b = this.tryParseDecimalInteger(A.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, A.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2911
+ if (b.err)
2912
+ return b;
2913
+ this.bumpSpace(), S = this.parseIdentifierIfPossible(), F = b.val;
2912
2914
  }
2913
- var P = this.tryParsePluralOrSelectOptions(t, s, n, S);
2915
+ var P = this.tryParsePluralOrSelectOptions(t, a, n, S);
2914
2916
  if (P.err)
2915
2917
  return P;
2916
- var E = this.tryParseArgumentClose(i);
2917
- if (E.err)
2918
- return E;
2919
- var te = O(i, this.clonePosition());
2920
- return s === "select" ? {
2918
+ var _ = this.tryParseArgumentClose(i);
2919
+ if (_.err)
2920
+ return _;
2921
+ var ee = O(i, this.clonePosition());
2922
+ return a === "select" ? {
2921
2923
  val: {
2922
- type: G.select,
2924
+ type: U.select,
2923
2925
  value: r,
2924
- options: gn(P.val),
2925
- location: te
2926
+ options: yn(P.val),
2927
+ location: ee
2926
2928
  },
2927
2929
  err: null
2928
2930
  } : {
2929
2931
  val: {
2930
- type: G.plural,
2932
+ type: U.plural,
2931
2933
  value: r,
2932
- options: gn(P.val),
2933
- offset: U,
2934
- pluralType: s === "plural" ? "cardinal" : "ordinal",
2935
- location: te
2934
+ options: yn(P.val),
2935
+ offset: F,
2936
+ pluralType: a === "plural" ? "cardinal" : "ordinal",
2937
+ location: ee
2936
2938
  },
2937
2939
  err: null
2938
2940
  };
2939
2941
  }
2940
2942
  default:
2941
- return this.error(A.INVALID_ARGUMENT_TYPE, O(u, c));
2943
+ return this.error(A.INVALID_ARGUMENT_TYPE, O(u, h));
2942
2944
  }
2943
2945
  }, e.prototype.tryParseArgumentClose = function(t) {
2944
2946
  return this.isEOF() || this.char() !== 125 ? this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE, O(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
@@ -2980,7 +2982,7 @@ var Di = (
2980
2982
  }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
2981
2983
  var r = [];
2982
2984
  try {
2983
- r = bi(t);
2985
+ r = yi(t);
2984
2986
  } catch (i) {
2985
2987
  return this.error(A.INVALID_NUMBER_SKELETON, n);
2986
2988
  }
@@ -2989,55 +2991,55 @@ var Di = (
2989
2991
  type: Ge.number,
2990
2992
  tokens: r,
2991
2993
  location: n,
2992
- parsedOptions: this.shouldParseSkeletons ? xi(r) : {}
2994
+ parsedOptions: this.shouldParseSkeletons ? _i(r) : {}
2993
2995
  },
2994
2996
  err: null
2995
2997
  };
2996
2998
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
2997
- for (var o, u = !1, s = [], c = /* @__PURE__ */ new Set(), l = i.value, f = i.location; ; ) {
2999
+ for (var o, u = !1, a = [], h = /* @__PURE__ */ new Set(), l = i.value, f = i.location; ; ) {
2998
3000
  if (l.length === 0) {
2999
- var g = this.clonePosition();
3001
+ var b = this.clonePosition();
3000
3002
  if (n !== "select" && this.bumpIf("=")) {
3001
- var p = this.tryParseDecimalInteger(A.EXPECT_PLURAL_ARGUMENT_SELECTOR, A.INVALID_PLURAL_ARGUMENT_SELECTOR);
3002
- if (p.err)
3003
- return p;
3004
- f = O(g, this.clonePosition()), l = this.message.slice(g.offset, this.offset());
3003
+ var m = this.tryParseDecimalInteger(A.EXPECT_PLURAL_ARGUMENT_SELECTOR, A.INVALID_PLURAL_ARGUMENT_SELECTOR);
3004
+ if (m.err)
3005
+ return m;
3006
+ f = O(b, this.clonePosition()), l = this.message.slice(b.offset, this.offset());
3005
3007
  } else
3006
3008
  break;
3007
3009
  }
3008
- if (c.has(l))
3010
+ if (h.has(l))
3009
3011
  return this.error(n === "select" ? A.DUPLICATE_SELECT_ARGUMENT_SELECTOR : A.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
3010
3012
  l === "other" && (u = !0), this.bumpSpace();
3011
- var y = this.clonePosition();
3013
+ var x = this.clonePosition();
3012
3014
  if (!this.bumpIf("{"))
3013
3015
  return this.error(n === "select" ? A.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : A.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, O(this.clonePosition(), this.clonePosition()));
3014
- var E = this.parseMessage(t + 1, n, r);
3015
- if (E.err)
3016
- return E;
3017
- var M = this.tryParseArgumentClose(y);
3016
+ var _ = this.parseMessage(t + 1, n, r);
3017
+ if (_.err)
3018
+ return _;
3019
+ var M = this.tryParseArgumentClose(x);
3018
3020
  if (M.err)
3019
3021
  return M;
3020
- s.push([
3022
+ a.push([
3021
3023
  l,
3022
3024
  {
3023
- value: E.val,
3024
- location: O(y, this.clonePosition())
3025
+ value: _.val,
3026
+ location: O(x, this.clonePosition())
3025
3027
  }
3026
- ]), c.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, f = o.location;
3028
+ ]), h.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, f = o.location;
3027
3029
  }
3028
- return s.length === 0 ? this.error(n === "select" ? A.EXPECT_SELECT_ARGUMENT_SELECTOR : A.EXPECT_PLURAL_ARGUMENT_SELECTOR, O(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !u ? this.error(A.MISSING_OTHER_CLAUSE, O(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3030
+ return a.length === 0 ? this.error(n === "select" ? A.EXPECT_SELECT_ARGUMENT_SELECTOR : A.EXPECT_PLURAL_ARGUMENT_SELECTOR, O(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !u ? this.error(A.MISSING_OTHER_CLAUSE, O(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3029
3031
  }, e.prototype.tryParseDecimalInteger = function(t, n) {
3030
3032
  var r = 1, i = this.clonePosition();
3031
3033
  this.bumpIf("+") || this.bumpIf("-") && (r = -1);
3032
3034
  for (var o = !1, u = 0; !this.isEOF(); ) {
3033
- var s = this.char();
3034
- if (s >= 48 && s <= 57)
3035
- o = !0, u = u * 10 + (s - 48), this.bump();
3035
+ var a = this.char();
3036
+ if (a >= 48 && a <= 57)
3037
+ o = !0, u = u * 10 + (a - 48), this.bump();
3036
3038
  else
3037
3039
  break;
3038
3040
  }
3039
- var c = O(i, this.clonePosition());
3040
- return o ? (u *= r, Ni(u) ? { val: u, err: null } : this.error(n, c)) : this.error(t, c);
3041
+ var h = O(i, this.clonePosition());
3042
+ return o ? (u *= r, Mi(u) ? { val: u, err: null } : this.error(n, h)) : this.error(t, h);
3041
3043
  }, e.prototype.offset = function() {
3042
3044
  return this.position.offset;
3043
3045
  }, e.prototype.isEOF = function() {
@@ -3052,7 +3054,7 @@ var Di = (
3052
3054
  var t = this.position.offset;
3053
3055
  if (t >= this.message.length)
3054
3056
  throw Error("out of bound");
3055
- var n = Qn(this.message, t);
3057
+ var n = Yn(this.message, t);
3056
3058
  if (n === void 0)
3057
3059
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3058
3060
  return n;
@@ -3071,7 +3073,7 @@ var Di = (
3071
3073
  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);
3072
3074
  }
3073
3075
  }, e.prototype.bumpIf = function(t) {
3074
- if (mn(this.message, t, this.offset())) {
3076
+ if (bn(this.message, t, this.offset())) {
3075
3077
  for (var n = 0; n < t.length; n++)
3076
3078
  this.bump();
3077
3079
  return !0;
@@ -3093,7 +3095,7 @@ var Di = (
3093
3095
  break;
3094
3096
  }
3095
3097
  }, e.prototype.bumpSpace = function() {
3096
- for (; !this.isEOF() && Yn(this.char()); )
3098
+ for (; !this.isEOF() && er(this.char()); )
3097
3099
  this.bump();
3098
3100
  }, e.prototype.peek = function() {
3099
3101
  if (this.isEOF())
@@ -3106,30 +3108,30 @@ var Di = (
3106
3108
  function Qt(e) {
3107
3109
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3108
3110
  }
3109
- function Fi(e) {
3111
+ function Ui(e) {
3110
3112
  return Qt(e) || e === 47;
3111
3113
  }
3112
- function Ui(e) {
3114
+ function Gi(e) {
3113
3115
  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;
3114
3116
  }
3115
- function Yn(e) {
3117
+ function er(e) {
3116
3118
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3117
3119
  }
3118
- function Gi(e) {
3120
+ function $i(e) {
3119
3121
  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;
3120
3122
  }
3121
3123
  function Jt(e) {
3122
3124
  e.forEach(function(t) {
3123
- if (delete t.location, jn(t) || kn(t))
3125
+ if (delete t.location, Vn(t) || Xn(t))
3124
3126
  for (var n in t.options)
3125
3127
  delete t.options[n].location, Jt(t.options[n].value);
3126
3128
  else
3127
- Un(t) && Xn(t.style) || (Gn(t) || $n(t)) && zt(t.style) ? delete t.style.location : Vn(t) && Jt(t.children);
3129
+ $n(t) && Wn(t.style) || (jn(t) || kn(t)) && zt(t.style) ? delete t.style.location : zn(t) && Jt(t.children);
3128
3130
  });
3129
3131
  }
3130
- function $i(e, t) {
3132
+ function ji(e, t) {
3131
3133
  t === void 0 && (t = {}), t = N({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3132
- var n = new Di(e, t).parse();
3134
+ var n = new Fi(e, t).parse();
3133
3135
  if (n.err) {
3134
3136
  var r = SyntaxError(A[n.err.kind]);
3135
3137
  throw r.location = n.err.location, r.originalMessage = n.err.message, r;
@@ -3140,10 +3142,10 @@ var $e;
3140
3142
  (function(e) {
3141
3143
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3142
3144
  })($e || ($e = {}));
3143
- var Tt = (
3145
+ var xt = (
3144
3146
  /** @class */
3145
3147
  function(e) {
3146
- _t(t, e);
3148
+ Et(t, e);
3147
3149
  function t(n, r, i) {
3148
3150
  var o = e.call(this, n) || this;
3149
3151
  return o.code = r, o.originalMessage = i, o;
@@ -3152,152 +3154,152 @@ var Tt = (
3152
3154
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3153
3155
  }, t;
3154
3156
  }(Error)
3155
- ), yn = (
3157
+ ), En = (
3156
3158
  /** @class */
3157
3159
  function(e) {
3158
- _t(t, e);
3160
+ Et(t, e);
3159
3161
  function t(n, r, i, o) {
3160
3162
  return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), $e.INVALID_VALUE, o) || this;
3161
3163
  }
3162
3164
  return t;
3163
- }(Tt)
3164
- ), ji = (
3165
+ }(xt)
3166
+ ), ki = (
3165
3167
  /** @class */
3166
3168
  function(e) {
3167
- _t(t, e);
3169
+ Et(t, e);
3168
3170
  function t(n, r, i) {
3169
3171
  return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), $e.INVALID_VALUE, i) || this;
3170
3172
  }
3171
3173
  return t;
3172
- }(Tt)
3173
- ), ki = (
3174
+ }(xt)
3175
+ ), Vi = (
3174
3176
  /** @class */
3175
3177
  function(e) {
3176
- _t(t, e);
3178
+ Et(t, e);
3177
3179
  function t(n, r) {
3178
3180
  return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), $e.MISSING_VALUE, r) || this;
3179
3181
  }
3180
3182
  return t;
3181
- }(Tt)
3182
- ), ee;
3183
+ }(xt)
3184
+ ), K;
3183
3185
  (function(e) {
3184
3186
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3185
- })(ee || (ee = {}));
3186
- function Vi(e) {
3187
+ })(K || (K = {}));
3188
+ function Xi(e) {
3187
3189
  return e.length < 2 ? e : e.reduce(function(t, n) {
3188
3190
  var r = t[t.length - 1];
3189
- return !r || r.type !== ee.literal || n.type !== ee.literal ? t.push(n) : r.value += n.value, t;
3191
+ return !r || r.type !== K.literal || n.type !== K.literal ? t.push(n) : r.value += n.value, t;
3190
3192
  }, []);
3191
3193
  }
3192
- function Xi(e) {
3194
+ function zi(e) {
3193
3195
  return typeof e == "function";
3194
3196
  }
3195
- function pt(e, t, n, r, i, o, u) {
3196
- if (e.length === 1 && cn(e[0]))
3197
+ function ft(e, t, n, r, i, o, u) {
3198
+ if (e.length === 1 && dn(e[0]))
3197
3199
  return [
3198
3200
  {
3199
- type: ee.literal,
3201
+ type: K.literal,
3200
3202
  value: e[0].value
3201
3203
  }
3202
3204
  ];
3203
- for (var s = [], c = 0, l = e; c < l.length; c++) {
3204
- var f = l[c];
3205
- if (cn(f)) {
3206
- s.push({
3207
- type: ee.literal,
3205
+ for (var a = [], h = 0, l = e; h < l.length; h++) {
3206
+ var f = l[h];
3207
+ if (dn(f)) {
3208
+ a.push({
3209
+ type: K.literal,
3208
3210
  value: f.value
3209
3211
  });
3210
3212
  continue;
3211
3213
  }
3212
- if (di(f)) {
3213
- typeof o == "number" && s.push({
3214
- type: ee.literal,
3214
+ if (pi(f)) {
3215
+ typeof o == "number" && a.push({
3216
+ type: K.literal,
3215
3217
  value: n.getNumberFormat(t).format(o)
3216
3218
  });
3217
3219
  continue;
3218
3220
  }
3219
- var g = f.value;
3220
- if (!(i && g in i))
3221
- throw new ki(g, u);
3222
- var p = i[g];
3223
- if (fi(f)) {
3224
- (!p || typeof p == "string" || typeof p == "number") && (p = typeof p == "string" || typeof p == "number" ? String(p) : ""), s.push({
3225
- type: typeof p == "string" ? ee.literal : ee.object,
3226
- value: p
3221
+ var b = f.value;
3222
+ if (!(i && b in i))
3223
+ throw new Vi(b, u);
3224
+ var m = i[b];
3225
+ if (di(f)) {
3226
+ (!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), a.push({
3227
+ type: typeof m == "string" ? K.literal : K.object,
3228
+ value: m
3227
3229
  });
3228
3230
  continue;
3229
3231
  }
3230
- if (Gn(f)) {
3231
- var y = typeof f.style == "string" ? r.date[f.style] : zt(f.style) ? f.style.parsedOptions : void 0;
3232
- s.push({
3233
- type: ee.literal,
3234
- value: n.getDateTimeFormat(t, y).format(p)
3232
+ if (jn(f)) {
3233
+ var x = typeof f.style == "string" ? r.date[f.style] : zt(f.style) ? f.style.parsedOptions : void 0;
3234
+ a.push({
3235
+ type: K.literal,
3236
+ value: n.getDateTimeFormat(t, x).format(m)
3235
3237
  });
3236
3238
  continue;
3237
3239
  }
3238
- if ($n(f)) {
3239
- var y = typeof f.style == "string" ? r.time[f.style] : zt(f.style) ? f.style.parsedOptions : r.time.medium;
3240
- s.push({
3241
- type: ee.literal,
3242
- value: n.getDateTimeFormat(t, y).format(p)
3240
+ if (kn(f)) {
3241
+ var x = typeof f.style == "string" ? r.time[f.style] : zt(f.style) ? f.style.parsedOptions : r.time.medium;
3242
+ a.push({
3243
+ type: K.literal,
3244
+ value: n.getDateTimeFormat(t, x).format(m)
3243
3245
  });
3244
3246
  continue;
3245
3247
  }
3246
- if (Un(f)) {
3247
- var y = typeof f.style == "string" ? r.number[f.style] : Xn(f.style) ? f.style.parsedOptions : void 0;
3248
- y && y.scale && (p = p * (y.scale || 1)), s.push({
3249
- type: ee.literal,
3250
- value: n.getNumberFormat(t, y).format(p)
3248
+ if ($n(f)) {
3249
+ var x = typeof f.style == "string" ? r.number[f.style] : Wn(f.style) ? f.style.parsedOptions : void 0;
3250
+ x && x.scale && (m = m * (x.scale || 1)), a.push({
3251
+ type: K.literal,
3252
+ value: n.getNumberFormat(t, x).format(m)
3251
3253
  });
3252
3254
  continue;
3253
3255
  }
3254
- if (Vn(f)) {
3255
- var E = f.children, M = f.value, C = i[M];
3256
- if (!Xi(C))
3257
- throw new ji(M, "function", u);
3258
- var $ = pt(E, t, n, r, i, o), X = C($.map(function(U) {
3259
- return U.value;
3256
+ if (zn(f)) {
3257
+ var _ = f.children, M = f.value, C = i[M];
3258
+ if (!zi(C))
3259
+ throw new ki(M, "function", u);
3260
+ var G = ft(_, t, n, r, i, o), V = C(G.map(function(F) {
3261
+ return F.value;
3260
3262
  }));
3261
- Array.isArray(X) || (X = [X]), s.push.apply(s, X.map(function(U) {
3263
+ Array.isArray(V) || (V = [V]), a.push.apply(a, V.map(function(F) {
3262
3264
  return {
3263
- type: typeof U == "string" ? ee.literal : ee.object,
3264
- value: U
3265
+ type: typeof F == "string" ? K.literal : K.object,
3266
+ value: F
3265
3267
  };
3266
3268
  }));
3267
3269
  }
3268
- if (jn(f)) {
3269
- var T = f.options[p] || f.options.other;
3270
+ if (Vn(f)) {
3271
+ var T = f.options[m] || f.options.other;
3270
3272
  if (!T)
3271
- throw new yn(f.value, p, Object.keys(f.options), u);
3272
- s.push.apply(s, pt(T.value, t, n, r, i));
3273
+ throw new En(f.value, m, Object.keys(f.options), u);
3274
+ a.push.apply(a, ft(T.value, t, n, r, i));
3273
3275
  continue;
3274
3276
  }
3275
- if (kn(f)) {
3276
- var T = f.options["=".concat(p)];
3277
+ if (Xn(f)) {
3278
+ var T = f.options["=".concat(m)];
3277
3279
  if (!T) {
3278
3280
  if (!Intl.PluralRules)
3279
- throw new Tt(`Intl.PluralRules is not available in this environment.
3281
+ throw new xt(`Intl.PluralRules is not available in this environment.
3280
3282
  Try polyfilling it using "@formatjs/intl-pluralrules"
3281
3283
  `, $e.MISSING_INTL_API, u);
3282
- var S = n.getPluralRules(t, { type: f.pluralType }).select(p - (f.offset || 0));
3284
+ var S = n.getPluralRules(t, { type: f.pluralType }).select(m - (f.offset || 0));
3283
3285
  T = f.options[S] || f.options.other;
3284
3286
  }
3285
3287
  if (!T)
3286
- throw new yn(f.value, p, Object.keys(f.options), u);
3287
- s.push.apply(s, pt(T.value, t, n, r, i, p - (f.offset || 0)));
3288
+ throw new En(f.value, m, Object.keys(f.options), u);
3289
+ a.push.apply(a, ft(T.value, t, n, r, i, m - (f.offset || 0)));
3288
3290
  continue;
3289
3291
  }
3290
3292
  }
3291
- return Vi(s);
3293
+ return Xi(a);
3292
3294
  }
3293
- function zi(e, t) {
3295
+ function Wi(e, t) {
3294
3296
  return t ? N(N(N({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3295
3297
  return n[r] = N(N({}, e[r]), t[r] || {}), n;
3296
3298
  }, {})) : e;
3297
3299
  }
3298
- function Wi(e, t) {
3300
+ function Zi(e, t) {
3299
3301
  return t ? Object.keys(e).reduce(function(n, r) {
3300
- return n[r] = zi(e[r], t[r]), n;
3302
+ return n[r] = Wi(e[r], t[r]), n;
3301
3303
  }, N({}, e)) : e;
3302
3304
  }
3303
3305
  function Gt(e) {
@@ -3314,7 +3316,7 @@ function Gt(e) {
3314
3316
  }
3315
3317
  };
3316
3318
  }
3317
- function Zi(e) {
3319
+ function qi(e) {
3318
3320
  return e === void 0 && (e = {
3319
3321
  number: {},
3320
3322
  dateTime: {},
@@ -3346,7 +3348,7 @@ function Zi(e) {
3346
3348
  })
3347
3349
  };
3348
3350
  }
3349
- var qi = (
3351
+ var Qi = (
3350
3352
  /** @class */
3351
3353
  function() {
3352
3354
  function e(t, n, r, i) {
@@ -3356,20 +3358,20 @@ var qi = (
3356
3358
  number: {},
3357
3359
  dateTime: {},
3358
3360
  pluralRules: {}
3359
- }, this.format = function(c) {
3360
- var l = o.formatToParts(c);
3361
+ }, this.format = function(h) {
3362
+ var l = o.formatToParts(h);
3361
3363
  if (l.length === 1)
3362
3364
  return l[0].value;
3363
- var f = l.reduce(function(g, p) {
3364
- return !g.length || p.type !== ee.literal || typeof g[g.length - 1] != "string" ? g.push(p.value) : g[g.length - 1] += p.value, g;
3365
+ var f = l.reduce(function(b, m) {
3366
+ return !b.length || m.type !== K.literal || typeof b[b.length - 1] != "string" ? b.push(m.value) : b[b.length - 1] += m.value, b;
3365
3367
  }, []);
3366
3368
  return f.length <= 1 ? f[0] || "" : f;
3367
- }, this.formatToParts = function(c) {
3368
- return pt(o.ast, o.locales, o.formatters, o.formats, c, void 0, o.message);
3369
+ }, this.formatToParts = function(h) {
3370
+ return ft(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3369
3371
  }, this.resolvedOptions = function() {
3370
- var c;
3372
+ var h;
3371
3373
  return {
3372
- locale: ((c = o.resolvedLocale) === null || c === void 0 ? void 0 : c.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3374
+ locale: ((h = o.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3373
3375
  };
3374
3376
  }, this.getAst = function() {
3375
3377
  return o.ast;
@@ -3378,13 +3380,13 @@ var qi = (
3378
3380
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3379
3381
  var u = i || {};
3380
3382
  u.formatters;
3381
- var s = ii(u, ["formatters"]);
3382
- this.ast = e.__parse(t, N(N({}, s), { locale: this.resolvedLocale }));
3383
+ var a = ai(u, ["formatters"]);
3384
+ this.ast = e.__parse(t, N(N({}, a), { locale: this.resolvedLocale }));
3383
3385
  } else
3384
3386
  this.ast = t;
3385
3387
  if (!Array.isArray(this.ast))
3386
3388
  throw new TypeError("A message must be provided as a String or AST.");
3387
- this.formats = Wi(e.formats, r), this.formatters = i && i.formatters || Zi(this.formatterCache);
3389
+ this.formats = Zi(e.formats, r), this.formatters = i && i.formatters || qi(this.formatterCache);
3388
3390
  }
3389
3391
  return Object.defineProperty(e, "defaultLocale", {
3390
3392
  get: function() {
@@ -3397,7 +3399,7 @@ var qi = (
3397
3399
  var n = Intl.NumberFormat.supportedLocalesOf(t);
3398
3400
  return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3399
3401
  }
3400
- }, e.__parse = $i, e.formats = {
3402
+ }, e.__parse = ji, e.formats = {
3401
3403
  number: {
3402
3404
  integer: {
3403
3405
  maximumFractionDigits: 0
@@ -3458,7 +3460,7 @@ var qi = (
3458
3460
  }, e;
3459
3461
  }()
3460
3462
  );
3461
- function Qi(e, t) {
3463
+ function Ji(e, t) {
3462
3464
  if (t == null)
3463
3465
  return;
3464
3466
  if (t in e)
@@ -3479,92 +3481,92 @@ function Qi(e, t) {
3479
3481
  r = void 0;
3480
3482
  return r;
3481
3483
  }
3482
- const Ce = {}, Ji = (e, t, n) => n && (t in Ce || (Ce[t] = {}), e in Ce[t] || (Ce[t][e] = n), n), Kn = (e, t) => {
3484
+ const Ae = {}, Yi = (e, t, n) => n && (t in Ae || (Ae[t] = {}), e in Ae[t] || (Ae[t][e] = n), n), tr = (e, t) => {
3483
3485
  if (t == null)
3484
3486
  return;
3485
- if (t in Ce && e in Ce[t])
3486
- return Ce[t][e];
3487
- const n = Bt(t);
3487
+ if (t in Ae && e in Ae[t])
3488
+ return Ae[t][e];
3489
+ const n = _t(t);
3488
3490
  for (let r = 0; r < n.length; r++) {
3489
- const i = n[r], o = Ki(i, e);
3491
+ const i = n[r], o = eo(i, e);
3490
3492
  if (o)
3491
- return Ji(e, t, o);
3493
+ return Yi(e, t, o);
3492
3494
  }
3493
3495
  };
3494
- let nn;
3495
- const it = xt({});
3496
- function Yi(e) {
3497
- return nn[e] || null;
3496
+ let on;
3497
+ const at = vt({});
3498
+ function Ki(e) {
3499
+ return on[e] || null;
3498
3500
  }
3499
- function er(e) {
3500
- return e in nn;
3501
+ function nr(e) {
3502
+ return e in on;
3501
3503
  }
3502
- function Ki(e, t) {
3503
- if (!er(e))
3504
+ function eo(e, t) {
3505
+ if (!nr(e))
3504
3506
  return null;
3505
- const n = Yi(e);
3506
- return Qi(n, t);
3507
+ const n = Ki(e);
3508
+ return Ji(n, t);
3507
3509
  }
3508
- function eo(e) {
3510
+ function to(e) {
3509
3511
  if (e == null)
3510
3512
  return;
3511
- const t = Bt(e);
3513
+ const t = _t(e);
3512
3514
  for (let n = 0; n < t.length; n++) {
3513
3515
  const r = t[n];
3514
- if (er(r))
3516
+ if (nr(r))
3515
3517
  return r;
3516
3518
  }
3517
3519
  }
3518
- function tr(e, ...t) {
3519
- delete Ce[e], it.update((n) => (n[e] = ri.all([n[e] || {}, ...t]), n));
3520
+ function rr(e, ...t) {
3521
+ delete Ae[e], at.update((n) => (n[e] = oi.all([n[e] || {}, ...t]), n));
3520
3522
  }
3521
3523
  Ve(
3522
- [it],
3524
+ [at],
3523
3525
  ([e]) => Object.keys(e)
3524
3526
  );
3525
- it.subscribe((e) => nn = e);
3526
- const mt = {};
3527
- function to(e, t) {
3528
- mt[e].delete(t), mt[e].size === 0 && delete mt[e];
3527
+ at.subscribe((e) => on = e);
3528
+ const dt = {};
3529
+ function no(e, t) {
3530
+ dt[e].delete(t), dt[e].size === 0 && delete dt[e];
3529
3531
  }
3530
- function nr(e) {
3531
- return mt[e];
3532
+ function ir(e) {
3533
+ return dt[e];
3532
3534
  }
3533
- function no(e) {
3534
- return Bt(e).map((t) => {
3535
- const n = nr(t);
3535
+ function ro(e) {
3536
+ return _t(e).map((t) => {
3537
+ const n = ir(t);
3536
3538
  return [t, n ? [...n] : []];
3537
3539
  }).filter(([, t]) => t.length > 0);
3538
3540
  }
3539
3541
  function Yt(e) {
3540
- return e == null ? !1 : Bt(e).some(
3542
+ return e == null ? !1 : _t(e).some(
3541
3543
  (t) => {
3542
3544
  var n;
3543
- return (n = nr(t)) == null ? void 0 : n.size;
3545
+ return (n = ir(t)) == null ? void 0 : n.size;
3544
3546
  }
3545
3547
  );
3546
3548
  }
3547
- function ro(e, t) {
3549
+ function io(e, t) {
3548
3550
  return Promise.all(
3549
- t.map((r) => (to(e, r), r().then((i) => i.default || i)))
3550
- ).then((r) => tr(e, ...r));
3551
+ t.map((r) => (no(e, r), r().then((i) => i.default || i)))
3552
+ ).then((r) => rr(e, ...r));
3551
3553
  }
3552
- const Ke = {};
3553
- function rr(e) {
3554
+ const tt = {};
3555
+ function or(e) {
3554
3556
  if (!Yt(e))
3555
- return e in Ke ? Ke[e] : Promise.resolve();
3556
- const t = no(e);
3557
- return Ke[e] = Promise.all(
3557
+ return e in tt ? tt[e] : Promise.resolve();
3558
+ const t = ro(e);
3559
+ return tt[e] = Promise.all(
3558
3560
  t.map(
3559
- ([n, r]) => ro(n, r)
3561
+ ([n, r]) => io(n, r)
3560
3562
  )
3561
3563
  ).then(() => {
3562
3564
  if (Yt(e))
3563
- return rr(e);
3564
- delete Ke[e];
3565
- }), Ke[e];
3565
+ return or(e);
3566
+ delete tt[e];
3567
+ }), tt[e];
3566
3568
  }
3567
- const io = {
3569
+ const oo = {
3568
3570
  number: {
3569
3571
  scientific: { notation: "scientific" },
3570
3572
  engineering: { notation: "engineering" },
@@ -3593,178 +3595,178 @@ const io = {
3593
3595
  timeZoneName: "short"
3594
3596
  }
3595
3597
  }
3596
- }, oo = {
3598
+ }, ao = {
3597
3599
  fallbackLocale: null,
3598
3600
  loadingDelay: 200,
3599
- formats: io,
3601
+ formats: oo,
3600
3602
  warnOnMissingMessages: !0,
3601
3603
  handleMissingMessage: void 0,
3602
3604
  ignoreTag: !0
3603
- }, ao = oo;
3605
+ }, so = ao;
3604
3606
  function je() {
3605
- return ao;
3607
+ return so;
3606
3608
  }
3607
- const $t = xt(!1);
3608
- var so = Object.defineProperty, uo = Object.defineProperties, lo = Object.getOwnPropertyDescriptors, vn = Object.getOwnPropertySymbols, ho = Object.prototype.hasOwnProperty, co = Object.prototype.propertyIsEnumerable, En = (e, t, n) => t in e ? so(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, fo = (e, t) => {
3609
+ const $t = vt(!1);
3610
+ var uo = Object.defineProperty, lo = Object.defineProperties, ho = Object.getOwnPropertyDescriptors, xn = Object.getOwnPropertySymbols, co = Object.prototype.hasOwnProperty, fo = Object.prototype.propertyIsEnumerable, _n = (e, t, n) => t in e ? uo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, po = (e, t) => {
3609
3611
  for (var n in t || (t = {}))
3610
- ho.call(t, n) && En(e, n, t[n]);
3611
- if (vn)
3612
- for (var n of vn(t))
3613
- co.call(t, n) && En(e, n, t[n]);
3612
+ co.call(t, n) && _n(e, n, t[n]);
3613
+ if (xn)
3614
+ for (var n of xn(t))
3615
+ fo.call(t, n) && _n(e, n, t[n]);
3614
3616
  return e;
3615
- }, po = (e, t) => uo(e, lo(t));
3617
+ }, mo = (e, t) => lo(e, ho(t));
3616
3618
  let Kt;
3617
- const vt = xt(null);
3618
- function xn(e) {
3619
+ const bt = vt(null);
3620
+ function Tn(e) {
3619
3621
  return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3620
3622
  }
3621
- function Bt(e, t = je().fallbackLocale) {
3622
- const n = xn(e);
3623
- return t ? [.../* @__PURE__ */ new Set([...n, ...xn(t)])] : n;
3623
+ function _t(e, t = je().fallbackLocale) {
3624
+ const n = Tn(e);
3625
+ return t ? [.../* @__PURE__ */ new Set([...n, ...Tn(t)])] : n;
3624
3626
  }
3625
- function Oe() {
3627
+ function Re() {
3626
3628
  return Kt != null ? Kt : void 0;
3627
3629
  }
3628
- vt.subscribe((e) => {
3630
+ bt.subscribe((e) => {
3629
3631
  Kt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3630
3632
  });
3631
- const mo = (e) => {
3632
- if (e && eo(e) && Yt(e)) {
3633
+ const go = (e) => {
3634
+ if (e && to(e) && Yt(e)) {
3633
3635
  const { loadingDelay: t } = je();
3634
3636
  let n;
3635
- return typeof window != "undefined" && Oe() != null && t ? n = window.setTimeout(
3637
+ return typeof window != "undefined" && Re() != null && t ? n = window.setTimeout(
3636
3638
  () => $t.set(!0),
3637
3639
  t
3638
- ) : $t.set(!0), rr(e).then(() => {
3639
- vt.set(e);
3640
+ ) : $t.set(!0), or(e).then(() => {
3641
+ bt.set(e);
3640
3642
  }).finally(() => {
3641
3643
  clearTimeout(n), $t.set(!1);
3642
3644
  });
3643
3645
  }
3644
- return vt.set(e);
3645
- }, Xe = po(fo({}, vt), {
3646
- set: mo
3647
- }), St = (e) => {
3646
+ return bt.set(e);
3647
+ }, Xe = mo(po({}, bt), {
3648
+ set: go
3649
+ }), Tt = (e) => {
3648
3650
  const t = /* @__PURE__ */ Object.create(null);
3649
3651
  return (r) => {
3650
3652
  const i = JSON.stringify(r);
3651
3653
  return i in t ? t[i] : t[i] = e(r);
3652
3654
  };
3653
3655
  };
3654
- var go = Object.defineProperty, Et = Object.getOwnPropertySymbols, ir = Object.prototype.hasOwnProperty, or = Object.prototype.propertyIsEnumerable, _n = (e, t, n) => t in e ? go(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, rn = (e, t) => {
3656
+ var bo = Object.defineProperty, yt = Object.getOwnPropertySymbols, ar = Object.prototype.hasOwnProperty, sr = Object.prototype.propertyIsEnumerable, Bn = (e, t, n) => t in e ? bo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, an = (e, t) => {
3655
3657
  for (var n in t || (t = {}))
3656
- ir.call(t, n) && _n(e, n, t[n]);
3657
- if (Et)
3658
- for (var n of Et(t))
3659
- or.call(t, n) && _n(e, n, t[n]);
3658
+ ar.call(t, n) && Bn(e, n, t[n]);
3659
+ if (yt)
3660
+ for (var n of yt(t))
3661
+ sr.call(t, n) && Bn(e, n, t[n]);
3660
3662
  return e;
3661
3663
  }, ze = (e, t) => {
3662
3664
  var n = {};
3663
3665
  for (var r in e)
3664
- ir.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3665
- if (e != null && Et)
3666
- for (var r of Et(e))
3667
- t.indexOf(r) < 0 && or.call(e, r) && (n[r] = e[r]);
3666
+ ar.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3667
+ if (e != null && yt)
3668
+ for (var r of yt(e))
3669
+ t.indexOf(r) < 0 && sr.call(e, r) && (n[r] = e[r]);
3668
3670
  return n;
3669
3671
  };
3670
- const rt = (e, t) => {
3672
+ const ot = (e, t) => {
3671
3673
  const { formats: n } = je();
3672
3674
  if (e in n && t in n[e])
3673
3675
  return n[e][t];
3674
3676
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3675
- }, bo = St(
3677
+ }, yo = Tt(
3676
3678
  (e) => {
3677
3679
  var t = e, { locale: n, format: r } = t, i = ze(t, ["locale", "format"]);
3678
3680
  if (n == null)
3679
3681
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3680
- return r && (i = rt("number", r)), new Intl.NumberFormat(n, i);
3682
+ return r && (i = ot("number", r)), new Intl.NumberFormat(n, i);
3681
3683
  }
3682
- ), yo = St(
3684
+ ), vo = Tt(
3683
3685
  (e) => {
3684
3686
  var t = e, { locale: n, format: r } = t, i = ze(t, ["locale", "format"]);
3685
3687
  if (n == null)
3686
3688
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3687
- return r ? i = rt("date", r) : Object.keys(i).length === 0 && (i = rt("date", "short")), new Intl.DateTimeFormat(n, i);
3689
+ return r ? i = ot("date", r) : Object.keys(i).length === 0 && (i = ot("date", "short")), new Intl.DateTimeFormat(n, i);
3688
3690
  }
3689
- ), vo = St(
3691
+ ), Eo = Tt(
3690
3692
  (e) => {
3691
3693
  var t = e, { locale: n, format: r } = t, i = ze(t, ["locale", "format"]);
3692
3694
  if (n == null)
3693
3695
  throw new Error(
3694
3696
  '[svelte-i18n] A "locale" must be set to format time values'
3695
3697
  );
3696
- return r ? i = rt("time", r) : Object.keys(i).length === 0 && (i = rt("time", "short")), new Intl.DateTimeFormat(n, i);
3698
+ return r ? i = ot("time", r) : Object.keys(i).length === 0 && (i = ot("time", "short")), new Intl.DateTimeFormat(n, i);
3697
3699
  }
3698
- ), Eo = (e = {}) => {
3700
+ ), xo = (e = {}) => {
3699
3701
  var t = e, {
3700
- locale: n = Oe()
3702
+ locale: n = Re()
3701
3703
  } = t, r = ze(t, [
3702
3704
  "locale"
3703
3705
  ]);
3704
- return bo(rn({ locale: n }, r));
3705
- }, xo = (e = {}) => {
3706
+ return yo(an({ locale: n }, r));
3707
+ }, _o = (e = {}) => {
3706
3708
  var t = e, {
3707
- locale: n = Oe()
3709
+ locale: n = Re()
3708
3710
  } = t, r = ze(t, [
3709
3711
  "locale"
3710
3712
  ]);
3711
- return yo(rn({ locale: n }, r));
3712
- }, _o = (e = {}) => {
3713
+ return vo(an({ locale: n }, r));
3714
+ }, To = (e = {}) => {
3713
3715
  var t = e, {
3714
- locale: n = Oe()
3716
+ locale: n = Re()
3715
3717
  } = t, r = ze(t, [
3716
3718
  "locale"
3717
3719
  ]);
3718
- return vo(rn({ locale: n }, r));
3719
- }, To = St(
3720
+ return Eo(an({ locale: n }, r));
3721
+ }, Bo = Tt(
3720
3722
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3721
- (e, t = Oe()) => new qi(e, t, je().formats, {
3723
+ (e, t = Re()) => new Qi(e, t, je().formats, {
3722
3724
  ignoreTag: je().ignoreTag
3723
3725
  })
3724
- ), Bo = (e, t = {}) => {
3726
+ ), So = (e, t = {}) => {
3725
3727
  var n, r, i, o;
3726
3728
  let u = t;
3727
3729
  typeof e == "object" && (u = e, e = u.id);
3728
3730
  const {
3729
- values: s,
3730
- locale: c = Oe(),
3731
+ values: a,
3732
+ locale: h = Re(),
3731
3733
  default: l
3732
3734
  } = u;
3733
- if (c == null)
3735
+ if (h == null)
3734
3736
  throw new Error(
3735
3737
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3736
3738
  );
3737
- let f = Kn(e, c);
3739
+ let f = tr(e, h);
3738
3740
  if (!f)
3739
- f = (o = (i = (r = (n = je()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
3741
+ f = (o = (i = (r = (n = je()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
3740
3742
  else if (typeof f != "string")
3741
3743
  return console.warn(
3742
3744
  `[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.`
3743
3745
  ), f;
3744
- if (!s)
3746
+ if (!a)
3745
3747
  return f;
3746
- let g = f;
3748
+ let b = f;
3747
3749
  try {
3748
- g = To(f, c).format(s);
3749
- } catch (p) {
3750
- p instanceof Error && console.warn(
3750
+ b = Bo(f, h).format(a);
3751
+ } catch (m) {
3752
+ m instanceof Error && console.warn(
3751
3753
  `[svelte-i18n] Message "${e}" has syntax error:`,
3752
- p.message
3754
+ m.message
3753
3755
  );
3754
3756
  }
3755
- return g;
3756
- }, So = (e, t) => _o(t).format(e), wo = (e, t) => xo(t).format(e), Ao = (e, t) => Eo(t).format(e), Co = (e, t = Oe()) => Kn(e, t), Ho = Ve([Xe, it], () => Bo);
3757
- Ve([Xe], () => So);
3757
+ return b;
3758
+ }, wo = (e, t) => To(t).format(e), Ao = (e, t) => _o(t).format(e), Co = (e, t) => xo(t).format(e), Ho = (e, t = Re()) => tr(e, t), Ro = Ve([Xe, at], () => So);
3758
3759
  Ve([Xe], () => wo);
3759
3760
  Ve([Xe], () => Ao);
3760
- Ve([Xe, it], () => Co);
3761
- function Tn(e, t) {
3762
- tr(e, t);
3761
+ Ve([Xe], () => Co);
3762
+ Ve([Xe, at], () => Ho);
3763
+ function Sn(e, t) {
3764
+ rr(e, t);
3763
3765
  }
3764
3766
  function Oo(e) {
3765
3767
  Xe.set(e);
3766
3768
  }
3767
- const Bn = {
3769
+ const wn = {
3768
3770
  en: {
3769
3771
  Title: "Your Balance",
3770
3772
  Total: "Total Balance",
@@ -3972,30 +3974,30 @@ var en = { exports: {} };
3972
3974
  */
3973
3975
  (function(e, t) {
3974
3976
  (function(n) {
3975
- var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, u = n.XDomainRequest, s = n.ActiveXObject, c = n.EventSource, l = n.document, f = n.Promise, g = n.fetch, p = n.Response, y = n.TextDecoder, E = n.TextEncoder, M = n.AbortController;
3976
- if (typeof window != "undefined" && typeof l != "undefined" && !("readyState" in l) && l.body == null && (l.readyState = "loading", window.addEventListener("load", function(a) {
3977
+ var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, u = n.XDomainRequest, a = n.ActiveXObject, h = n.EventSource, l = n.document, f = n.Promise, b = n.fetch, m = n.Response, x = n.TextDecoder, _ = n.TextEncoder, M = n.AbortController;
3978
+ if (typeof window != "undefined" && typeof l != "undefined" && !("readyState" in l) && l.body == null && (l.readyState = "loading", window.addEventListener("load", function(s) {
3977
3979
  l.readyState = "complete";
3978
- }, !1)), o == null && s != null && (o = function() {
3979
- return new s("Microsoft.XMLHTTP");
3980
- }), Object.create == null && (Object.create = function(a) {
3981
- function d() {
3980
+ }, !1)), o == null && a != null && (o = function() {
3981
+ return new a("Microsoft.XMLHTTP");
3982
+ }), Object.create == null && (Object.create = function(s) {
3983
+ function c() {
3982
3984
  }
3983
- return d.prototype = a, new d();
3985
+ return c.prototype = s, new c();
3984
3986
  }), Date.now || (Date.now = function() {
3985
3987
  return (/* @__PURE__ */ new Date()).getTime();
3986
3988
  }), M == null) {
3987
- var C = g;
3988
- g = function(a, d) {
3989
- var m = d.signal;
3990
- return C(a, { headers: d.headers, credentials: d.credentials, cache: d.cache }).then(function(h) {
3991
- var _ = h.body.getReader();
3992
- return m._reader = _, m._aborted && m._reader.cancel(), {
3993
- status: h.status,
3994
- statusText: h.statusText,
3995
- headers: h.headers,
3989
+ var C = b;
3990
+ b = function(s, c) {
3991
+ var g = c.signal;
3992
+ return C(s, { headers: c.headers, credentials: c.credentials, cache: c.cache }).then(function(d) {
3993
+ var p = d.body.getReader();
3994
+ return g._reader = p, g._aborted && g._reader.cancel(), {
3995
+ status: d.status,
3996
+ statusText: d.statusText,
3997
+ headers: d.headers,
3996
3998
  body: {
3997
3999
  getReader: function() {
3998
- return _;
4000
+ return p;
3999
4001
  }
4000
4002
  }
4001
4003
  };
@@ -4009,407 +4011,407 @@ var en = { exports: {} };
4009
4011
  };
4010
4012
  };
4011
4013
  }
4012
- function $() {
4014
+ function G() {
4013
4015
  this.bitsNeeded = 0, this.codePoint = 0;
4014
4016
  }
4015
- $.prototype.decode = function(a) {
4016
- function d(D, F, B) {
4017
+ G.prototype.decode = function(s) {
4018
+ function c(I, D, B) {
4017
4019
  if (B === 1)
4018
- return D >= 128 >> F && D << F <= 2047;
4020
+ return I >= 128 >> D && I << D <= 2047;
4019
4021
  if (B === 2)
4020
- return D >= 2048 >> F && D << F <= 55295 || D >= 57344 >> F && D << F <= 65535;
4022
+ return I >= 2048 >> D && I << D <= 55295 || I >= 57344 >> D && I << D <= 65535;
4021
4023
  if (B === 3)
4022
- return D >= 65536 >> F && D << F <= 1114111;
4024
+ return I >= 65536 >> D && I << D <= 1114111;
4023
4025
  throw new Error();
4024
4026
  }
4025
- function m(D, F) {
4026
- if (D === 6 * 1)
4027
- return F >> 6 > 15 ? 3 : F > 31 ? 2 : 1;
4028
- if (D === 6 * 2)
4029
- return F > 15 ? 3 : 2;
4030
- if (D === 6 * 3)
4027
+ function g(I, D) {
4028
+ if (I === 6 * 1)
4029
+ return D >> 6 > 15 ? 3 : D > 31 ? 2 : 1;
4030
+ if (I === 6 * 2)
4031
+ return D > 15 ? 3 : 2;
4032
+ if (I === 6 * 3)
4031
4033
  return 3;
4032
4034
  throw new Error();
4033
4035
  }
4034
- for (var h = 65533, _ = "", x = this.bitsNeeded, w = this.codePoint, j = 0; j < a.length; j += 1) {
4035
- var H = a[j];
4036
- x !== 0 && (H < 128 || H > 191 || !d(w << 6 | H & 63, x - 6, m(x, w))) && (x = 0, w = h, _ += String.fromCharCode(w)), x === 0 ? (H >= 0 && H <= 127 ? (x = 0, w = H) : H >= 192 && H <= 223 ? (x = 6 * 1, w = H & 31) : H >= 224 && H <= 239 ? (x = 6 * 2, w = H & 15) : H >= 240 && H <= 247 ? (x = 6 * 3, w = H & 7) : (x = 0, w = h), x !== 0 && !d(w, x, m(x, w)) && (x = 0, w = h)) : (x -= 6, w = w << 6 | H & 63), x === 0 && (w <= 65535 ? _ += String.fromCharCode(w) : (_ += String.fromCharCode(55296 + (w - 65535 - 1 >> 10)), _ += String.fromCharCode(56320 + (w - 65535 - 1 & 1023))));
4036
+ for (var d = 65533, p = "", E = this.bitsNeeded, w = this.codePoint, $ = 0; $ < s.length; $ += 1) {
4037
+ var R = s[$];
4038
+ E !== 0 && (R < 128 || R > 191 || !c(w << 6 | R & 63, E - 6, g(E, w))) && (E = 0, w = d, p += 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 = d), E !== 0 && !c(w, E, g(E, w)) && (E = 0, w = d)) : (E -= 6, w = w << 6 | R & 63), E === 0 && (w <= 65535 ? p += String.fromCharCode(w) : (p += String.fromCharCode(55296 + (w - 65535 - 1 >> 10)), p += String.fromCharCode(56320 + (w - 65535 - 1 & 1023))));
4037
4039
  }
4038
- return this.bitsNeeded = x, this.codePoint = w, _;
4040
+ return this.bitsNeeded = E, this.codePoint = w, p;
4039
4041
  };
4040
- var X = function() {
4042
+ var V = function() {
4041
4043
  try {
4042
- return new y().decode(new E().encode("test"), { stream: !0 }) === "test";
4043
- } catch (a) {
4044
- console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + a);
4044
+ return new x().decode(new _().encode("test"), { stream: !0 }) === "test";
4045
+ } catch (s) {
4046
+ console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + s);
4045
4047
  }
4046
4048
  return !1;
4047
4049
  };
4048
- (y == null || E == null || !X()) && (y = $);
4050
+ (x == null || _ == null || !V()) && (x = G);
4049
4051
  var T = function() {
4050
4052
  };
4051
- function S(a) {
4052
- 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;
4053
+ function S(s) {
4054
+ 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;
4053
4055
  }
4054
- S.prototype.open = function(a, d) {
4056
+ S.prototype.open = function(s, c) {
4055
4057
  this._abort(!0);
4056
- var m = this, h = this._xhr, _ = 1, x = 0;
4058
+ var g = this, d = this._xhr, p = 1, E = 0;
4057
4059
  this._abort = function(B) {
4058
- m._sendTimeout !== 0 && (i(m._sendTimeout), m._sendTimeout = 0), (_ === 1 || _ === 2 || _ === 3) && (_ = 4, h.onload = T, h.onerror = T, h.onabort = T, h.onprogress = T, h.onreadystatechange = T, h.abort(), x !== 0 && (i(x), x = 0), B || (m.readyState = 4, m.onabort(null), m.onreadystatechange())), _ = 0;
4060
+ g._sendTimeout !== 0 && (i(g._sendTimeout), g._sendTimeout = 0), (p === 1 || p === 2 || p === 3) && (p = 4, d.onload = T, d.onerror = T, d.onabort = T, d.onprogress = T, d.onreadystatechange = T, d.abort(), E !== 0 && (i(E), E = 0), B || (g.readyState = 4, g.onabort(null), g.onreadystatechange())), p = 0;
4059
4061
  };
4060
4062
  var w = function() {
4061
- if (_ === 1) {
4062
- var B = 0, k = "", Ee = void 0;
4063
- if ("contentType" in h)
4064
- B = 200, k = "OK", Ee = h.contentType;
4063
+ if (p === 1) {
4064
+ var B = 0, j = "", ye = void 0;
4065
+ if ("contentType" in d)
4066
+ B = 200, j = "OK", ye = d.contentType;
4065
4067
  else
4066
4068
  try {
4067
- B = h.status, k = h.statusText, Ee = h.getResponseHeader("Content-Type");
4068
- } catch (Je) {
4069
- B = 0, k = "", Ee = void 0;
4069
+ B = d.status, j = d.statusText, ye = d.getResponseHeader("Content-Type");
4070
+ } catch (Ke) {
4071
+ B = 0, j = "", ye = void 0;
4070
4072
  }
4071
- B !== 0 && (_ = 2, m.readyState = 2, m.status = B, m.statusText = k, m._contentType = Ee, m.onreadystatechange());
4073
+ B !== 0 && (p = 2, g.readyState = 2, g.status = B, g.statusText = j, g._contentType = ye, g.onreadystatechange());
4072
4074
  }
4073
- }, j = function() {
4074
- if (w(), _ === 2 || _ === 3) {
4075
- _ = 3;
4075
+ }, $ = function() {
4076
+ if (w(), p === 2 || p === 3) {
4077
+ p = 3;
4076
4078
  var B = "";
4077
4079
  try {
4078
- B = h.responseText;
4079
- } catch (k) {
4080
+ B = d.responseText;
4081
+ } catch (j) {
4080
4082
  }
4081
- m.readyState = 3, m.responseText = B, m.onprogress();
4083
+ g.readyState = 3, g.responseText = B, g.onprogress();
4082
4084
  }
4083
- }, H = function(B, k) {
4084
- if ((k == null || k.preventDefault == null) && (k = {
4085
+ }, R = function(B, j) {
4086
+ if ((j == null || j.preventDefault == null) && (j = {
4085
4087
  preventDefault: T
4086
- }), j(), _ === 1 || _ === 2 || _ === 3) {
4087
- if (_ = 4, x !== 0 && (i(x), x = 0), m.readyState = 4, B === "load")
4088
- m.onload(k);
4088
+ }), $(), p === 1 || p === 2 || p === 3) {
4089
+ if (p = 4, E !== 0 && (i(E), E = 0), g.readyState = 4, B === "load")
4090
+ g.onload(j);
4089
4091
  else if (B === "error")
4090
- m.onerror(k);
4092
+ g.onerror(j);
4091
4093
  else if (B === "abort")
4092
- m.onabort(k);
4094
+ g.onabort(j);
4093
4095
  else
4094
4096
  throw new TypeError();
4095
- m.onreadystatechange();
4097
+ g.onreadystatechange();
4096
4098
  }
4097
- }, D = function(B) {
4098
- h != null && (h.readyState === 4 ? (!("onload" in h) || !("onerror" in h) || !("onabort" in h)) && H(h.responseText === "" ? "error" : "load", B) : h.readyState === 3 ? "onprogress" in h || j() : h.readyState === 2 && w());
4099
- }, F = function() {
4100
- x = r(function() {
4101
- F();
4102
- }, 500), h.readyState === 3 && j();
4099
+ }, I = function(B) {
4100
+ d != null && (d.readyState === 4 ? (!("onload" in d) || !("onerror" in d) || !("onabort" in d)) && R(d.responseText === "" ? "error" : "load", B) : d.readyState === 3 ? "onprogress" in d || $() : d.readyState === 2 && w());
4101
+ }, D = function() {
4102
+ E = r(function() {
4103
+ D();
4104
+ }, 500), d.readyState === 3 && $();
4103
4105
  };
4104
- "onload" in h && (h.onload = function(B) {
4105
- H("load", B);
4106
- }), "onerror" in h && (h.onerror = function(B) {
4107
- H("error", B);
4108
- }), "onabort" in h && (h.onabort = function(B) {
4109
- H("abort", B);
4110
- }), "onprogress" in h && (h.onprogress = j), "onreadystatechange" in h && (h.onreadystatechange = function(B) {
4111
- D(B);
4112
- }), ("contentType" in h || !("ontimeout" in o.prototype)) && (d += (d.indexOf("?") === -1 ? "?" : "&") + "padding=true"), h.open(a, d, !0), "readyState" in h && (x = r(function() {
4113
- F();
4106
+ "onload" in d && (d.onload = function(B) {
4107
+ R("load", B);
4108
+ }), "onerror" in d && (d.onerror = function(B) {
4109
+ R("error", B);
4110
+ }), "onabort" in d && (d.onabort = function(B) {
4111
+ R("abort", B);
4112
+ }), "onprogress" in d && (d.onprogress = $), "onreadystatechange" in d && (d.onreadystatechange = function(B) {
4113
+ I(B);
4114
+ }), ("contentType" in d || !("ontimeout" in o.prototype)) && (c += (c.indexOf("?") === -1 ? "?" : "&") + "padding=true"), d.open(s, c, !0), "readyState" in d && (E = r(function() {
4115
+ D();
4114
4116
  }, 0));
4115
4117
  }, S.prototype.abort = function() {
4116
4118
  this._abort(!1);
4117
- }, S.prototype.getResponseHeader = function(a) {
4119
+ }, S.prototype.getResponseHeader = function(s) {
4118
4120
  return this._contentType;
4119
- }, S.prototype.setRequestHeader = function(a, d) {
4120
- var m = this._xhr;
4121
- "setRequestHeader" in m && m.setRequestHeader(a, d);
4121
+ }, S.prototype.setRequestHeader = function(s, c) {
4122
+ var g = this._xhr;
4123
+ "setRequestHeader" in g && g.setRequestHeader(s, c);
4122
4124
  }, S.prototype.getAllResponseHeaders = function() {
4123
4125
  return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
4124
4126
  }, S.prototype.send = function() {
4125
4127
  if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && l != null && l.readyState != null && l.readyState !== "complete") {
4126
- var a = this;
4127
- a._sendTimeout = r(function() {
4128
- a._sendTimeout = 0, a.send();
4128
+ var s = this;
4129
+ s._sendTimeout = r(function() {
4130
+ s._sendTimeout = 0, s.send();
4129
4131
  }, 4);
4130
4132
  return;
4131
4133
  }
4132
- var d = this._xhr;
4133
- "withCredentials" in d && (d.withCredentials = this.withCredentials);
4134
+ var c = this._xhr;
4135
+ "withCredentials" in c && (c.withCredentials = this.withCredentials);
4134
4136
  try {
4135
- d.send(void 0);
4136
- } catch (m) {
4137
- throw m;
4137
+ c.send(void 0);
4138
+ } catch (g) {
4139
+ throw g;
4138
4140
  }
4139
4141
  };
4140
- function U(a) {
4141
- return a.replace(/[A-Z]/g, function(d) {
4142
- return String.fromCharCode(d.charCodeAt(0) + 32);
4142
+ function F(s) {
4143
+ return s.replace(/[A-Z]/g, function(c) {
4144
+ return String.fromCharCode(c.charCodeAt(0) + 32);
4143
4145
  });
4144
4146
  }
4145
- function P(a) {
4146
- for (var d = /* @__PURE__ */ Object.create(null), m = a.split(`\r
4147
- `), h = 0; h < m.length; h += 1) {
4148
- var _ = m[h], x = _.split(": "), w = x.shift(), j = x.join(": ");
4149
- d[U(w)] = j;
4147
+ function P(s) {
4148
+ for (var c = /* @__PURE__ */ Object.create(null), g = s.split(`\r
4149
+ `), d = 0; d < g.length; d += 1) {
4150
+ var p = g[d], E = p.split(": "), w = E.shift(), $ = E.join(": ");
4151
+ c[F(w)] = $;
4150
4152
  }
4151
- this._map = d;
4153
+ this._map = c;
4152
4154
  }
4153
- P.prototype.get = function(a) {
4154
- return this._map[U(a)];
4155
+ P.prototype.get = function(s) {
4156
+ return this._map[F(s)];
4155
4157
  }, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
4156
- function te() {
4158
+ function ee() {
4157
4159
  }
4158
- te.prototype.open = function(a, d, m, h, _, x, w) {
4159
- a.open("GET", _);
4160
- var j = 0;
4161
- a.onprogress = function() {
4162
- var D = a.responseText, F = D.slice(j);
4163
- j += F.length, m(F);
4164
- }, a.onerror = function(D) {
4165
- D.preventDefault(), h(new Error("NetworkError"));
4166
- }, a.onload = function() {
4167
- h(null);
4168
- }, a.onabort = function() {
4169
- h(null);
4170
- }, a.onreadystatechange = function() {
4171
- if (a.readyState === o.HEADERS_RECEIVED) {
4172
- var D = a.status, F = a.statusText, B = a.getResponseHeader("Content-Type"), k = a.getAllResponseHeaders();
4173
- d(D, F, B, new P(k));
4160
+ ee.prototype.open = function(s, c, g, d, p, E, w) {
4161
+ s.open("GET", p);
4162
+ var $ = 0;
4163
+ s.onprogress = function() {
4164
+ var I = s.responseText, D = I.slice($);
4165
+ $ += D.length, g(D);
4166
+ }, s.onerror = function(I) {
4167
+ I.preventDefault(), d(new Error("NetworkError"));
4168
+ }, s.onload = function() {
4169
+ d(null);
4170
+ }, s.onabort = function() {
4171
+ d(null);
4172
+ }, s.onreadystatechange = function() {
4173
+ if (s.readyState === o.HEADERS_RECEIVED) {
4174
+ var I = s.status, D = s.statusText, B = s.getResponseHeader("Content-Type"), j = s.getAllResponseHeaders();
4175
+ c(I, D, B, new P(j));
4174
4176
  }
4175
- }, a.withCredentials = x;
4176
- for (var H in w)
4177
- Object.prototype.hasOwnProperty.call(w, H) && a.setRequestHeader(H, w[H]);
4178
- return a.send(), a;
4177
+ }, s.withCredentials = E;
4178
+ for (var R in w)
4179
+ Object.prototype.hasOwnProperty.call(w, R) && s.setRequestHeader(R, w[R]);
4180
+ return s.send(), s;
4179
4181
  };
4180
- function he(a) {
4181
- this._headers = a;
4182
+ function se(s) {
4183
+ this._headers = s;
4182
4184
  }
4183
- he.prototype.get = function(a) {
4184
- return this._headers.get(a);
4185
+ se.prototype.get = function(s) {
4186
+ return this._headers.get(s);
4185
4187
  };
4186
- function Se() {
4188
+ function Te() {
4187
4189
  }
4188
- Se.prototype.open = function(a, d, m, h, _, x, w) {
4189
- var j = null, H = new M(), D = H.signal, F = new y();
4190
- return g(_, {
4190
+ Te.prototype.open = function(s, c, g, d, p, E, w) {
4191
+ var $ = null, R = new M(), I = R.signal, D = new x();
4192
+ return b(p, {
4191
4193
  headers: w,
4192
- credentials: x ? "include" : "same-origin",
4193
- signal: D,
4194
+ credentials: E ? "include" : "same-origin",
4195
+ signal: I,
4194
4196
  cache: "no-store"
4195
4197
  }).then(function(B) {
4196
- return j = B.body.getReader(), d(B.status, B.statusText, B.headers.get("Content-Type"), new he(B.headers)), new f(function(k, Ee) {
4197
- var Je = function() {
4198
- j.read().then(function(re) {
4199
- if (re.done)
4200
- k(void 0);
4198
+ return $ = B.body.getReader(), c(B.status, B.statusText, B.headers.get("Content-Type"), new se(B.headers)), new f(function(j, ye) {
4199
+ var Ke = function() {
4200
+ $.read().then(function(ne) {
4201
+ if (ne.done)
4202
+ j(void 0);
4201
4203
  else {
4202
- var J = F.decode(re.value, { stream: !0 });
4203
- m(J), Je();
4204
+ var Q = D.decode(ne.value, { stream: !0 });
4205
+ g(Q), Ke();
4204
4206
  }
4205
- }).catch(function(re) {
4206
- Ee(re);
4207
+ }).catch(function(ne) {
4208
+ ye(ne);
4207
4209
  });
4208
4210
  };
4209
- Je();
4211
+ Ke();
4210
4212
  });
4211
4213
  }).catch(function(B) {
4212
4214
  if (B.name !== "AbortError")
4213
4215
  return B;
4214
4216
  }).then(function(B) {
4215
- h(B);
4217
+ d(B);
4216
4218
  }), {
4217
4219
  abort: function() {
4218
- j != null && j.cancel(), H.abort();
4220
+ $ != null && $.cancel(), R.abort();
4219
4221
  }
4220
4222
  };
4221
4223
  };
4222
- function ce() {
4224
+ function ue() {
4223
4225
  this._listeners = /* @__PURE__ */ Object.create(null);
4224
4226
  }
4225
- function v(a) {
4227
+ function We(s) {
4226
4228
  r(function() {
4227
- throw a;
4229
+ throw s;
4228
4230
  }, 0);
4229
4231
  }
4230
- ce.prototype.dispatchEvent = function(a) {
4231
- a.target = this;
4232
- var d = this._listeners[a.type];
4233
- if (d != null)
4234
- for (var m = d.length, h = 0; h < m; h += 1) {
4235
- var _ = d[h];
4232
+ ue.prototype.dispatchEvent = function(s) {
4233
+ s.target = this;
4234
+ var c = this._listeners[s.type];
4235
+ if (c != null)
4236
+ for (var g = c.length, d = 0; d < g; d += 1) {
4237
+ var p = c[d];
4236
4238
  try {
4237
- typeof _.handleEvent == "function" ? _.handleEvent(a) : _.call(this, a);
4238
- } catch (x) {
4239
- v(x);
4239
+ typeof p.handleEvent == "function" ? p.handleEvent(s) : p.call(this, s);
4240
+ } catch (E) {
4241
+ We(E);
4240
4242
  }
4241
4243
  }
4242
- }, ce.prototype.addEventListener = function(a, d) {
4243
- a = String(a);
4244
- var m = this._listeners, h = m[a];
4245
- h == null && (h = [], m[a] = h);
4246
- for (var _ = !1, x = 0; x < h.length; x += 1)
4247
- h[x] === d && (_ = !0);
4248
- _ || h.push(d);
4249
- }, ce.prototype.removeEventListener = function(a, d) {
4250
- a = String(a);
4251
- var m = this._listeners, h = m[a];
4252
- if (h != null) {
4253
- for (var _ = [], x = 0; x < h.length; x += 1)
4254
- h[x] !== d && _.push(h[x]);
4255
- _.length === 0 ? delete m[a] : m[a] = _;
4244
+ }, ue.prototype.addEventListener = function(s, c) {
4245
+ s = String(s);
4246
+ var g = this._listeners, d = g[s];
4247
+ d == null && (d = [], g[s] = d);
4248
+ for (var p = !1, E = 0; E < d.length; E += 1)
4249
+ d[E] === c && (p = !0);
4250
+ p || d.push(c);
4251
+ }, ue.prototype.removeEventListener = function(s, c) {
4252
+ s = String(s);
4253
+ var g = this._listeners, d = g[s];
4254
+ if (d != null) {
4255
+ for (var p = [], E = 0; E < d.length; E += 1)
4256
+ d[E] !== c && p.push(d[E]);
4257
+ p.length === 0 ? delete g[s] : g[s] = p;
4256
4258
  }
4257
4259
  };
4258
- function ae(a) {
4259
- this.type = a, this.target = void 0;
4260
+ function v(s) {
4261
+ this.type = s, this.target = void 0;
4260
4262
  }
4261
- function ot(a, d) {
4262
- ae.call(this, a), this.data = d.data, this.lastEventId = d.lastEventId;
4263
+ function Be(s, c) {
4264
+ v.call(this, s), this.data = c.data, this.lastEventId = c.lastEventId;
4263
4265
  }
4264
- ot.prototype = Object.create(ae.prototype);
4265
- function Re(a, d) {
4266
- ae.call(this, a), this.status = d.status, this.statusText = d.statusText, this.headers = d.headers;
4266
+ Be.prototype = Object.create(v.prototype);
4267
+ function Ze(s, c) {
4268
+ v.call(this, s), this.status = c.status, this.statusText = c.statusText, this.headers = c.headers;
4267
4269
  }
4268
- Re.prototype = Object.create(ae.prototype);
4269
- function at(a, d) {
4270
- ae.call(this, a), this.error = d.error;
4270
+ Ze.prototype = Object.create(v.prototype);
4271
+ function qe(s, c) {
4272
+ v.call(this, s), this.error = c.error;
4271
4273
  }
4272
- at.prototype = Object.create(ae.prototype);
4273
- var We = -1, be = 0, ye = 1, we = 2, Ze = -1, se = 0, Le = 1, st = 2, ut = 3, wt = /^text\/event\-stream(;.*)?$/i, At = 1e3, lt = 18e6, qe = function(a, d) {
4274
- var m = a == null ? d : parseInt(a, 10);
4275
- return m !== m && (m = d), Qe(m);
4276
- }, Qe = function(a) {
4277
- return Math.min(Math.max(a, At), lt);
4278
- }, Ae = function(a, d, m) {
4274
+ qe.prototype = Object.create(v.prototype);
4275
+ var Qe = -1, pe = 0, Se = 1, be = 2, Oe = -1, me = 0, Ce = 1, Je = 2, Bt = 3, st = /^text\/event\-stream(;.*)?$/i, St = 1e3, wt = 18e6, Le = function(s, c) {
4276
+ var g = s == null ? c : parseInt(s, 10);
4277
+ return g !== g && (g = c), Ye(g);
4278
+ }, Ye = function(s) {
4279
+ return Math.min(Math.max(s, St), wt);
4280
+ }, we = function(s, c, g) {
4279
4281
  try {
4280
- typeof d == "function" && d.call(a, m);
4281
- } catch (h) {
4282
- v(h);
4282
+ typeof c == "function" && c.call(s, g);
4283
+ } catch (d) {
4284
+ We(d);
4283
4285
  }
4284
4286
  };
4285
- function ne(a, d) {
4286
- ce.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, R(this, a, d);
4287
+ function te(s, c) {
4288
+ ue.call(this), c = c || {}, 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, y(this, s, c);
4287
4289
  }
4288
- function Ct() {
4290
+ function At() {
4289
4291
  return o != null && "withCredentials" in o.prototype || u == null ? new o() : new u();
4290
4292
  }
4291
- var b = g != null && p != null && "body" in p.prototype;
4292
- function R(a, d, m) {
4293
- d = String(d);
4294
- var h = !!m.withCredentials, _ = m.lastEventIdQueryParameterName || "lastEventId", x = Qe(1e3), w = qe(m.heartbeatTimeout, 45e3), j = "", H = x, D = !1, F = 0, B = m.headers || {}, k = m.Transport, Ee = b && k == null ? void 0 : new S(k != null ? new k() : Ct()), Je = k != null && typeof k != "string" ? new k() : Ee == null ? new Se() : new te(), re = void 0, J = 0, fe = We, Ne = "", ht = "", xe = "", ct = "", Y = se, Ht = 0, He = 0, sr = function(W, z, ie, oe) {
4295
- if (fe === be)
4296
- if (W === 200 && ie != null && wt.test(ie)) {
4297
- fe = ye, D = Date.now(), H = x, a.readyState = ye;
4298
- var K = new Re("open", {
4299
- status: W,
4300
- statusText: z,
4301
- headers: oe
4293
+ var Ct = b != null && m != null && "body" in m.prototype;
4294
+ function y(s, c, g) {
4295
+ c = String(c);
4296
+ var d = !!g.withCredentials, p = g.lastEventIdQueryParameterName || "lastEventId", E = Ye(1e3), w = Le(g.heartbeatTimeout, 45e3), $ = "", R = E, I = !1, D = 0, B = g.headers || {}, j = g.Transport, ye = Ct && j == null ? void 0 : new S(j != null ? new j() : At()), Ke = j != null && typeof j != "string" ? new j() : ye == null ? new Te() : new ee(), ne = void 0, Q = 0, le = Qe, Ne = "", ut = "", ve = "", lt = "", J = me, Ht = 0, He = 0, lr = function(z, X, re, ie) {
4297
+ if (le === pe)
4298
+ if (z === 200 && re != null && st.test(re)) {
4299
+ le = Se, I = Date.now(), R = E, s.readyState = Se;
4300
+ var Y = new Ze("open", {
4301
+ status: z,
4302
+ statusText: X,
4303
+ headers: ie
4302
4304
  });
4303
- a.dispatchEvent(K), Ae(a, a.onopen, K);
4305
+ s.dispatchEvent(Y), we(s, s.onopen, Y);
4304
4306
  } else {
4305
- var q = "";
4306
- 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.", Ot();
4307
- var K = new Re("error", {
4308
- status: W,
4309
- statusText: z,
4310
- headers: oe
4307
+ var Z = "";
4308
+ 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.", Rt();
4309
+ var Y = new Ze("error", {
4310
+ status: z,
4311
+ statusText: X,
4312
+ headers: ie
4311
4313
  });
4312
- a.dispatchEvent(K), Ae(a, a.onerror, K), console.error(q);
4314
+ s.dispatchEvent(Y), we(s, s.onerror, Y), console.error(Z);
4313
4315
  }
4314
- }, ur = function(W) {
4315
- if (fe === ye) {
4316
- for (var z = -1, ie = 0; ie < W.length; ie += 1) {
4317
- var oe = W.charCodeAt(ie);
4318
- (oe === 10 || oe === 13) && (z = ie);
4316
+ }, hr = function(z) {
4317
+ if (le === Se) {
4318
+ for (var X = -1, re = 0; re < z.length; re += 1) {
4319
+ var ie = z.charCodeAt(re);
4320
+ (ie === 10 || ie === 13) && (X = re);
4319
4321
  }
4320
- var K = (z !== -1 ? ct : "") + W.slice(0, z + 1);
4321
- ct = (z === -1 ? ct : "") + W.slice(z + 1), W !== "" && (D = Date.now(), F += W.length);
4322
- for (var q = 0; q < K.length; q += 1) {
4323
- var oe = K.charCodeAt(q);
4324
- if (Y === Ze && oe === 10)
4325
- Y = se;
4326
- else if (Y === Ze && (Y = se), oe === 13 || oe === 10) {
4327
- if (Y !== se) {
4328
- Y === Le && (He = q + 1);
4329
- var _e = K.slice(Ht, He - 1), Te = K.slice(He + (He < q && K.charCodeAt(He) === 32 ? 1 : 0), q);
4330
- _e === "data" ? (Ne += `
4331
- `, Ne += Te) : _e === "id" ? ht = Te : _e === "event" ? xe = Te : _e === "retry" ? (x = qe(Te, x), H = x) : _e === "heartbeatTimeout" && (w = qe(Te, w), J !== 0 && (i(J), J = r(function() {
4332
- Ye();
4322
+ var Y = (X !== -1 ? lt : "") + z.slice(0, X + 1);
4323
+ lt = (X === -1 ? lt : "") + z.slice(X + 1), z !== "" && (I = Date.now(), D += z.length);
4324
+ for (var Z = 0; Z < Y.length; Z += 1) {
4325
+ var ie = Y.charCodeAt(Z);
4326
+ if (J === Oe && ie === 10)
4327
+ J = me;
4328
+ else if (J === Oe && (J = me), ie === 13 || ie === 10) {
4329
+ if (J !== me) {
4330
+ J === Ce && (He = Z + 1);
4331
+ var Ee = Y.slice(Ht, He - 1), xe = Y.slice(He + (He < Z && Y.charCodeAt(He) === 32 ? 1 : 0), Z);
4332
+ Ee === "data" ? (Ne += `
4333
+ `, Ne += xe) : Ee === "id" ? ut = xe : Ee === "event" ? ve = xe : Ee === "retry" ? (E = Le(xe, E), R = E) : Ee === "heartbeatTimeout" && (w = Le(xe, w), Q !== 0 && (i(Q), Q = r(function() {
4334
+ et();
4333
4335
  }, w)));
4334
4336
  }
4335
- if (Y === se) {
4337
+ if (J === me) {
4336
4338
  if (Ne !== "") {
4337
- j = ht, xe === "" && (xe = "message");
4338
- var Me = new ot(xe, {
4339
+ $ = ut, ve === "" && (ve = "message");
4340
+ var Me = new Be(ve, {
4339
4341
  data: Ne.slice(1),
4340
- lastEventId: ht
4342
+ lastEventId: ut
4341
4343
  });
4342
- if (a.dispatchEvent(Me), xe === "open" ? Ae(a, a.onopen, Me) : xe === "message" ? Ae(a, a.onmessage, Me) : xe === "error" && Ae(a, a.onerror, Me), fe === we)
4344
+ if (s.dispatchEvent(Me), ve === "open" ? we(s, s.onopen, Me) : ve === "message" ? we(s, s.onmessage, Me) : ve === "error" && we(s, s.onerror, Me), le === be)
4343
4345
  return;
4344
4346
  }
4345
- Ne = "", xe = "";
4347
+ Ne = "", ve = "";
4346
4348
  }
4347
- Y = oe === 13 ? Ze : se;
4349
+ J = ie === 13 ? Oe : me;
4348
4350
  } else
4349
- Y === se && (Ht = q, Y = Le), Y === Le ? oe === 58 && (He = q + 1, Y = st) : Y === st && (Y = ut);
4351
+ J === me && (Ht = Z, J = Ce), J === Ce ? ie === 58 && (He = Z + 1, J = Je) : J === Je && (J = Bt);
4350
4352
  }
4351
4353
  }
4352
- }, an = function(W) {
4353
- if (fe === ye || fe === be) {
4354
- fe = We, J !== 0 && (i(J), J = 0), J = r(function() {
4355
- Ye();
4356
- }, H), H = Qe(Math.min(x * 16, H * 2)), a.readyState = be;
4357
- var z = new at("error", { error: W });
4358
- a.dispatchEvent(z), Ae(a, a.onerror, z), W != null && console.error(W);
4354
+ }, un = function(z) {
4355
+ if (le === Se || le === pe) {
4356
+ le = Qe, Q !== 0 && (i(Q), Q = 0), Q = r(function() {
4357
+ et();
4358
+ }, R), R = Ye(Math.min(E * 16, R * 2)), s.readyState = pe;
4359
+ var X = new qe("error", { error: z });
4360
+ s.dispatchEvent(X), we(s, s.onerror, X), z != null && console.error(z);
4359
4361
  }
4360
- }, Ot = function() {
4361
- fe = we, re != null && (re.abort(), re = void 0), J !== 0 && (i(J), J = 0), a.readyState = we;
4362
- }, Ye = function() {
4363
- if (J = 0, fe !== We) {
4364
- if (!D && re != null)
4365
- an(new Error("No activity within " + w + " milliseconds. " + (fe === be ? "No response received." : F + " chars received.") + " Reconnecting.")), re != null && (re.abort(), re = void 0);
4362
+ }, Rt = function() {
4363
+ le = be, ne != null && (ne.abort(), ne = void 0), Q !== 0 && (i(Q), Q = 0), s.readyState = be;
4364
+ }, et = function() {
4365
+ if (Q = 0, le !== Qe) {
4366
+ if (!I && ne != null)
4367
+ un(new Error("No activity within " + w + " milliseconds. " + (le === pe ? "No response received." : D + " chars received.") + " Reconnecting.")), ne != null && (ne.abort(), ne = void 0);
4366
4368
  else {
4367
- var W = Math.max((D || Date.now()) + w - Date.now(), 1);
4368
- D = !1, J = r(function() {
4369
- Ye();
4370
- }, W);
4369
+ var z = Math.max((I || Date.now()) + w - Date.now(), 1);
4370
+ I = !1, Q = r(function() {
4371
+ et();
4372
+ }, z);
4371
4373
  }
4372
4374
  return;
4373
4375
  }
4374
- D = !1, F = 0, J = r(function() {
4375
- Ye();
4376
- }, w), fe = be, Ne = "", xe = "", ht = j, ct = "", Ht = 0, He = 0, Y = se;
4377
- var z = d;
4378
- if (d.slice(0, 5) !== "data:" && d.slice(0, 5) !== "blob:" && j !== "") {
4379
- var ie = d.indexOf("?");
4380
- z = ie === -1 ? d : d.slice(0, ie + 1) + d.slice(ie + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Te, Me) {
4381
- return Me === _ ? "" : Te;
4382
- }), z += (d.indexOf("?") === -1 ? "?" : "&") + _ + "=" + encodeURIComponent(j);
4376
+ I = !1, D = 0, Q = r(function() {
4377
+ et();
4378
+ }, w), le = pe, Ne = "", ve = "", ut = $, lt = "", Ht = 0, He = 0, J = me;
4379
+ var X = c;
4380
+ if (c.slice(0, 5) !== "data:" && c.slice(0, 5) !== "blob:" && $ !== "") {
4381
+ var re = c.indexOf("?");
4382
+ X = re === -1 ? c : c.slice(0, re + 1) + c.slice(re + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(xe, Me) {
4383
+ return Me === p ? "" : xe;
4384
+ }), X += (c.indexOf("?") === -1 ? "?" : "&") + p + "=" + encodeURIComponent($);
4383
4385
  }
4384
- var oe = a.withCredentials, K = {};
4385
- K.Accept = "text/event-stream";
4386
- var q = a.headers;
4387
- if (q != null)
4388
- for (var _e in q)
4389
- Object.prototype.hasOwnProperty.call(q, _e) && (K[_e] = q[_e]);
4386
+ var ie = s.withCredentials, Y = {};
4387
+ Y.Accept = "text/event-stream";
4388
+ var Z = s.headers;
4389
+ if (Z != null)
4390
+ for (var Ee in Z)
4391
+ Object.prototype.hasOwnProperty.call(Z, Ee) && (Y[Ee] = Z[Ee]);
4390
4392
  try {
4391
- re = Je.open(Ee, sr, ur, an, z, oe, K);
4392
- } catch (Te) {
4393
- throw Ot(), Te;
4393
+ ne = Ke.open(ye, lr, hr, un, X, ie, Y);
4394
+ } catch (xe) {
4395
+ throw Rt(), xe;
4394
4396
  }
4395
4397
  };
4396
- a.url = d, a.readyState = be, a.withCredentials = h, a.headers = B, a._close = Ot, Ye();
4398
+ s.url = c, s.readyState = pe, s.withCredentials = d, s.headers = B, s._close = Rt, et();
4397
4399
  }
4398
- ne.prototype = Object.create(ce.prototype), ne.prototype.CONNECTING = be, ne.prototype.OPEN = ye, ne.prototype.CLOSED = we, ne.prototype.close = function() {
4400
+ te.prototype = Object.create(ue.prototype), te.prototype.CONNECTING = pe, te.prototype.OPEN = Se, te.prototype.CLOSED = be, te.prototype.close = function() {
4399
4401
  this._close();
4400
- }, ne.CONNECTING = be, ne.OPEN = ye, ne.CLOSED = we, ne.prototype.withCredentials = void 0;
4401
- var I = c;
4402
- o != null && (c == null || !("withCredentials" in c.prototype)) && (I = ne), function(a) {
4402
+ }, te.CONNECTING = pe, te.OPEN = Se, te.CLOSED = be, te.prototype.withCredentials = void 0;
4403
+ var H = h;
4404
+ o != null && (h == null || !("withCredentials" in h.prototype)) && (H = te), function(s) {
4403
4405
  {
4404
- var d = a(t);
4405
- d !== void 0 && (e.exports = d);
4406
+ var c = s(t);
4407
+ c !== void 0 && (e.exports = c);
4406
4408
  }
4407
- }(function(a) {
4408
- a.EventSourcePolyfill = ne, a.NativeEventSource = c, a.EventSource = I;
4409
+ }(function(s) {
4410
+ s.EventSourcePolyfill = te, s.NativeEventSource = h, s.EventSource = H;
4409
4411
  });
4410
- })(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : $r : globalThis);
4412
+ })(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : kr : globalThis);
4411
4413
  })(en, en.exports);
4412
- var Ro = en.exports;
4414
+ var Lo = en.exports;
4413
4415
  /*!
4414
4416
  * currency.js - v2.0.4
4415
4417
  * http://scurker.github.io/currency.js
@@ -4417,7 +4419,7 @@ var Ro = en.exports;
4417
4419
  * Copyright (c) 2021 Jason Wilson
4418
4420
  * Released under MIT license
4419
4421
  */
4420
- var Lo = {
4422
+ var No = {
4421
4423
  symbol: "$",
4422
4424
  separator: ",",
4423
4425
  decimal: ".",
@@ -4425,43 +4427,43 @@ var Lo = {
4425
4427
  precision: 2,
4426
4428
  pattern: "!#",
4427
4429
  negativePattern: "-!#",
4428
- format: Io,
4430
+ format: Do,
4429
4431
  fromCents: !1
4430
- }, ar = function(t) {
4432
+ }, ur = function(t) {
4431
4433
  return Math.round(t);
4432
- }, on = function(t) {
4434
+ }, sn = function(t) {
4433
4435
  return Math.pow(10, t);
4434
- }, No = function(t, n) {
4435
- return ar(t / n) * n;
4436
- }, Mo = /(\d)(?=(\d{3})+\b)/g, Po = /(\d)(?=(\d\d)+\d\b)/g;
4437
- function de(e, t) {
4436
+ }, Mo = function(t, n) {
4437
+ return ur(t / n) * n;
4438
+ }, Po = /(\d)(?=(\d{3})+\b)/g, Io = /(\d)(?=(\d\d)+\d\b)/g;
4439
+ function he(e, t) {
4438
4440
  var n = this;
4439
- if (!(n instanceof de))
4440
- return new de(e, t);
4441
- var r = Object.assign({}, Lo, t), i = on(r.precision), o = gt(e, r);
4442
- n.intValue = o, n.value = o / i, r.increment = r.increment || 1 / i, r.useVedic ? r.groups = Po : r.groups = Mo, this.s = r, this.p = i;
4443
- }
4444
- function gt(e, t) {
4445
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, i = t.decimal, o = t.errorOnInvalid, u = t.precision, s = t.fromCents, c = on(u), l = typeof e == "number", f = e instanceof de;
4446
- if (f && s)
4441
+ if (!(n instanceof he))
4442
+ return new he(e, t);
4443
+ var r = Object.assign({}, No, t), i = sn(r.precision), o = pt(e, r);
4444
+ n.intValue = o, n.value = o / i, r.increment = r.increment || 1 / i, r.useVedic ? r.groups = Io : r.groups = Po, this.s = r, this.p = i;
4445
+ }
4446
+ function pt(e, t) {
4447
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, i = t.decimal, o = t.errorOnInvalid, u = t.precision, a = t.fromCents, h = sn(u), l = typeof e == "number", f = e instanceof he;
4448
+ if (f && a)
4447
4449
  return e.intValue;
4448
4450
  if (l || f)
4449
4451
  r = f ? e.value : e;
4450
4452
  else if (typeof e == "string") {
4451
- var g = new RegExp("[^-\\d" + i + "]", "g"), p = new RegExp("\\" + i, "g");
4452
- r = e.replace(/\((.*)\)/, "-$1").replace(g, "").replace(p, "."), r = r || 0;
4453
+ var b = new RegExp("[^-\\d" + i + "]", "g"), m = new RegExp("\\" + i, "g");
4454
+ r = e.replace(/\((.*)\)/, "-$1").replace(b, "").replace(m, "."), r = r || 0;
4453
4455
  } else {
4454
4456
  if (o)
4455
4457
  throw Error("Invalid Input");
4456
4458
  r = 0;
4457
4459
  }
4458
- return s || (r *= c, r = r.toFixed(4)), n ? ar(r) : r;
4460
+ return a || (r *= h, r = r.toFixed(4)), n ? ur(r) : r;
4459
4461
  }
4460
- function Io(e, t) {
4461
- var n = t.pattern, r = t.negativePattern, i = t.symbol, o = t.separator, u = t.decimal, s = t.groups, c = ("" + e).replace(/^-/, "").split("."), l = c[0], f = c[1];
4462
- return (e.value >= 0 ? n : r).replace("!", i).replace("#", l.replace(s, "$1" + o) + (f ? u + f : ""));
4462
+ function Do(e, t) {
4463
+ var n = t.pattern, r = t.negativePattern, i = t.symbol, o = t.separator, u = t.decimal, a = t.groups, h = ("" + e).replace(/^-/, "").split("."), l = h[0], f = h[1];
4464
+ return (e.value >= 0 ? n : r).replace("!", i).replace("#", l.replace(a, "$1" + o) + (f ? u + f : ""));
4463
4465
  }
4464
- de.prototype = {
4466
+ he.prototype = {
4465
4467
  /**
4466
4468
  * Adds values together.
4467
4469
  * @param {number} number
@@ -4469,7 +4471,7 @@ de.prototype = {
4469
4471
  */
4470
4472
  add: function(t) {
4471
4473
  var n = this.intValue, r = this.s, i = this.p;
4472
- return de((n += gt(t, r)) / (r.fromCents ? 1 : i), r);
4474
+ return he((n += pt(t, r)) / (r.fromCents ? 1 : i), r);
4473
4475
  },
4474
4476
  /**
4475
4477
  * Subtracts value.
@@ -4478,7 +4480,7 @@ de.prototype = {
4478
4480
  */
4479
4481
  subtract: function(t) {
4480
4482
  var n = this.intValue, r = this.s, i = this.p;
4481
- return de((n -= gt(t, r)) / (r.fromCents ? 1 : i), r);
4483
+ return he((n -= pt(t, r)) / (r.fromCents ? 1 : i), r);
4482
4484
  },
4483
4485
  /**
4484
4486
  * Multiplies values.
@@ -4487,7 +4489,7 @@ de.prototype = {
4487
4489
  */
4488
4490
  multiply: function(t) {
4489
4491
  var n = this.intValue, r = this.s;
4490
- return de((n *= t) / (r.fromCents ? 1 : on(r.precision)), r);
4492
+ return he((n *= t) / (r.fromCents ? 1 : sn(r.precision)), r);
4491
4493
  },
4492
4494
  /**
4493
4495
  * Divides value.
@@ -4496,7 +4498,7 @@ de.prototype = {
4496
4498
  */
4497
4499
  divide: function(t) {
4498
4500
  var n = this.intValue, r = this.s;
4499
- return de(n /= gt(t, r, !1), r);
4501
+ return he(n /= pt(t, r, !1), r);
4500
4502
  },
4501
4503
  /**
4502
4504
  * Takes the currency amount and distributes the values evenly. Any extra pennies
@@ -4505,9 +4507,9 @@ de.prototype = {
4505
4507
  * @returns {array}
4506
4508
  */
4507
4509
  distribute: function(t) {
4508
- for (var n = this.intValue, r = this.p, i = this.s, o = [], u = Math[n >= 0 ? "floor" : "ceil"](n / t), s = Math.abs(n - u * t), c = i.fromCents ? 1 : r; t !== 0; t--) {
4509
- var l = de(u / c, i);
4510
- s-- > 0 && (l = l[n >= 0 ? "add" : "subtract"](1 / c)), o.push(l);
4510
+ for (var n = this.intValue, r = this.p, i = this.s, o = [], u = Math[n >= 0 ? "floor" : "ceil"](n / t), a = Math.abs(n - u * t), h = i.fromCents ? 1 : r; t !== 0; t--) {
4511
+ var l = he(u / h, i);
4512
+ a-- > 0 && (l = l[n >= 0 ? "add" : "subtract"](1 / h)), o.push(l);
4511
4513
  }
4512
4514
  return o;
4513
4515
  },
@@ -4541,7 +4543,7 @@ de.prototype = {
4541
4543
  */
4542
4544
  toString: function() {
4543
4545
  var t = this.intValue, n = this.p, r = this.s;
4544
- return No(t / n, r.increment).toFixed(r.precision);
4546
+ return Mo(t / n, r.increment).toFixed(r.precision);
4545
4547
  },
4546
4548
  /**
4547
4549
  * Value for JSON serialization.
@@ -4551,18 +4553,18 @@ de.prototype = {
4551
4553
  return this.value;
4552
4554
  }
4553
4555
  };
4554
- function Do(e) {
4555
- gr(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}');
4556
+ function Fo(e) {
4557
+ yr(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}');
4556
4558
  }
4557
- function Sn(e, t, n) {
4559
+ function An(e, t, n) {
4558
4560
  const r = e.slice();
4559
4561
  return r[47] = t[n], r;
4560
4562
  }
4561
- function wn(e, t, n) {
4563
+ function Cn(e, t, n) {
4562
4564
  const r = e.slice();
4563
4565
  return r[50] = t[n], r;
4564
4566
  }
4565
- function Fo(e) {
4567
+ function Uo(e) {
4566
4568
  let t, n = (
4567
4569
  /*balances*/
4568
4570
  (e[4].Total ? (
@@ -4572,136 +4574,136 @@ function Fo(e) {
4572
4574
  e[4].Total[0].amount
4573
4575
  )
4574
4576
  ) : "0") + ""
4575
- ), r, i, o, u, s, c, l, f, g, p = (
4577
+ ), r, i, o, u, a, h, l, f, b, m = (
4576
4578
  /*showBalance*/
4577
- e[2] && An(e)
4579
+ e[2] && Hn(e)
4578
4580
  );
4579
4581
  return {
4580
4582
  c() {
4581
- t = V("p"), r = pe(n), i = ge(), o = pe(
4583
+ t = k("p"), r = ce(n), i = de(), o = ce(
4582
4584
  /*currency*/
4583
4585
  e[3]
4584
- ), u = ge(), 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>', c = ge(), p && p.c(), l = vr(), Z(t, "class", "BalanceValue");
4586
+ ), u = de(), 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>', h = de(), m && m.c(), l = xr(), W(t, "class", "BalanceValue");
4585
4587
  },
4586
- m(y, E) {
4587
- ve(y, t, E), L(t, r), L(t, i), L(t, o), L(t, u), L(t, s), ve(y, c, E), p && p.m(y, E), ve(y, l, E), f || (g = bt(
4588
+ m(x, _) {
4589
+ ge(x, t, _), L(t, r), L(t, i), L(t, o), L(t, u), L(t, a), ge(x, h, _), m && m.m(x, _), ge(x, l, _), f || (b = mt(
4588
4590
  t,
4589
4591
  "click",
4590
4592
  /*click_handler*/
4591
4593
  e[23]
4592
4594
  ), f = !0);
4593
4595
  },
4594
- p(y, E) {
4595
- E[0] & /*balances*/
4596
+ p(x, _) {
4597
+ _[0] & /*balances*/
4596
4598
  16 && n !== (n = /*balances*/
4597
- (y[4].Total ? (
4599
+ (x[4].Total ? (
4598
4600
  /*formatBalance*/
4599
- y[6](
4601
+ x[6](
4600
4602
  /*balances*/
4601
- y[4].Total[0].amount
4603
+ x[4].Total[0].amount
4602
4604
  )
4603
- ) : "0") + "") && Be(r, n), E[0] & /*currency*/
4604
- 8 && Be(
4605
+ ) : "0") + "") && _e(r, n), _[0] & /*currency*/
4606
+ 8 && _e(
4605
4607
  o,
4606
4608
  /*currency*/
4607
- y[3]
4609
+ x[3]
4608
4610
  ), /*showBalance*/
4609
- y[2] ? p ? p.p(y, E) : (p = An(y), p.c(), p.m(l.parentNode, l)) : p && (p.d(1), p = null);
4611
+ x[2] ? m ? m.p(x, _) : (m = Hn(x), m.c(), m.m(l.parentNode, l)) : m && (m.d(1), m = null);
4610
4612
  },
4611
- d(y) {
4612
- y && (me(t), me(c), me(l)), p && p.d(y), f = !1, g();
4613
+ d(x) {
4614
+ x && (fe(t), fe(h), fe(l)), m && m.d(x), f = !1, b();
4613
4615
  }
4614
4616
  };
4615
4617
  }
4616
- function Uo(e) {
4618
+ function Go(e) {
4617
4619
  let t, n = (
4618
4620
  /*$_*/
4619
4621
  e[5]("Loading") + ""
4620
4622
  ), r;
4621
4623
  return {
4622
4624
  c() {
4623
- t = V("p"), r = pe(n);
4625
+ t = k("p"), r = ce(n);
4624
4626
  },
4625
4627
  m(i, o) {
4626
- ve(i, t, o), L(t, r);
4628
+ ge(i, t, o), L(t, r);
4627
4629
  },
4628
4630
  p(i, o) {
4629
4631
  o[0] & /*$_*/
4630
4632
  32 && n !== (n = /*$_*/
4631
- i[5]("Loading") + "") && Be(r, n);
4633
+ i[5]("Loading") + "") && _e(r, n);
4632
4634
  },
4633
4635
  d(i) {
4634
- i && me(t);
4636
+ i && fe(t);
4635
4637
  }
4636
4638
  };
4637
4639
  }
4638
- function An(e) {
4639
- let t, n, r, i, o, u, s = (
4640
+ function Hn(e) {
4641
+ let t, n, r, i, o, u, a = (
4640
4642
  /*$_*/
4641
4643
  e[5]("Title") + ""
4642
- ), c, l, f, g, p, y, E = (
4644
+ ), h, l, f, b, m, x, _ = (
4643
4645
  /*$_*/
4644
4646
  e[5]("DepositButton") + ""
4645
- ), M, C, $, X = yt(Object.keys(
4647
+ ), M, C, G, V = gt(Object.keys(
4646
4648
  /*balances*/
4647
4649
  e[4]
4648
4650
  )), T = [];
4649
- for (let S = 0; S < X.length; S += 1)
4650
- T[S] = Hn(Sn(e, X, S));
4651
+ for (let S = 0; S < V.length; S += 1)
4652
+ T[S] = On(An(e, V, S));
4651
4653
  return {
4652
4654
  c() {
4653
- t = V("div"), n = V("div"), r = ge(), i = V("div"), o = V("div"), u = V("p"), c = pe(s), l = ge(), f = V("div");
4655
+ t = k("div"), n = k("div"), r = de(), i = k("div"), o = k("div"), u = k("p"), h = ce(a), l = de(), f = k("div");
4654
4656
  for (let S = 0; S < T.length; S += 1)
4655
4657
  T[S].c();
4656
- g = ge(), p = V("div"), y = V("button"), M = pe(E), Z(n, "class", "BalanceModalClose"), Z(u, "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");
4658
+ b = de(), m = k("div"), x = k("button"), M = ce(_), W(n, "class", "BalanceModalClose"), W(u, "class", "BalanceModalTitle"), W(o, "class", "BalanceModalHeader"), W(f, "class", "BalanceModalBody"), W(x, "class", "BalanceModalAction"), W(m, "class", "BalanceModalFooter"), W(i, "class", "BalanceModal"), W(t, "class", "BalanceModalWrapper");
4657
4659
  },
4658
- m(S, U) {
4659
- ve(S, t, U), L(t, n), L(t, r), L(t, i), L(i, o), L(o, u), L(u, c), L(i, l), L(i, f);
4660
+ m(S, F) {
4661
+ ge(S, t, F), L(t, n), L(t, r), L(t, i), L(i, o), L(o, u), L(u, h), L(i, l), L(i, f);
4660
4662
  for (let P = 0; P < T.length; P += 1)
4661
4663
  T[P] && T[P].m(f, null);
4662
- L(i, g), L(i, p), L(p, y), L(y, M), C || ($ = [
4663
- bt(
4664
+ L(i, b), L(i, m), L(m, x), L(x, M), C || (G = [
4665
+ mt(
4664
4666
  n,
4665
4667
  "click",
4666
4668
  /*click_handler_1*/
4667
4669
  e[24]
4668
4670
  ),
4669
- bt(
4670
- y,
4671
+ mt(
4672
+ x,
4671
4673
  "click",
4672
4674
  /*click_handler_2*/
4673
4675
  e[25]
4674
4676
  )
4675
4677
  ], C = !0);
4676
4678
  },
4677
- p(S, U) {
4678
- if (U[0] & /*$_*/
4679
- 32 && s !== (s = /*$_*/
4680
- S[5]("Title") + "") && Be(c, s), U[0] & /*balances, currency, formatBalance, $_*/
4679
+ p(S, F) {
4680
+ if (F[0] & /*$_*/
4681
+ 32 && a !== (a = /*$_*/
4682
+ S[5]("Title") + "") && _e(h, a), F[0] & /*balances, currency, formatBalance, $_*/
4681
4683
  120) {
4682
- X = yt(Object.keys(
4684
+ V = gt(Object.keys(
4683
4685
  /*balances*/
4684
4686
  S[4]
4685
4687
  ));
4686
4688
  let P;
4687
- for (P = 0; P < X.length; P += 1) {
4688
- const te = Sn(S, X, P);
4689
- T[P] ? T[P].p(te, U) : (T[P] = Hn(te), T[P].c(), T[P].m(f, null));
4689
+ for (P = 0; P < V.length; P += 1) {
4690
+ const ee = An(S, V, P);
4691
+ T[P] ? T[P].p(ee, F) : (T[P] = On(ee), T[P].c(), T[P].m(f, null));
4690
4692
  }
4691
4693
  for (; P < T.length; P += 1)
4692
4694
  T[P].d(1);
4693
- T.length = X.length;
4695
+ T.length = V.length;
4694
4696
  }
4695
- U[0] & /*$_*/
4696
- 32 && E !== (E = /*$_*/
4697
- S[5]("DepositButton") + "") && Be(M, E);
4697
+ F[0] & /*$_*/
4698
+ 32 && _ !== (_ = /*$_*/
4699
+ S[5]("DepositButton") + "") && _e(M, _);
4698
4700
  },
4699
4701
  d(S) {
4700
- S && me(t), Mn(T, S), C = !1, ke($);
4702
+ S && fe(t), In(T, S), C = !1, ke(G);
4701
4703
  }
4702
4704
  };
4703
4705
  }
4704
- function Cn(e) {
4706
+ function Rn(e) {
4705
4707
  let t, n, r = (
4706
4708
  /*$_*/
4707
4709
  e[5](
@@ -4717,7 +4719,7 @@ function Cn(e) {
4717
4719
  e[50].productType
4718
4720
  )
4719
4721
  ) : "") + ""
4720
- ), s, c, l, f, g = (
4722
+ ), a, h, l, f, b = (
4721
4723
  /*b*/
4722
4724
  (e[50].amount ? (
4723
4725
  /*formatBalance*/
@@ -4726,24 +4728,24 @@ function Cn(e) {
4726
4728
  e[50].amount
4727
4729
  )
4728
4730
  ) : "0") + ""
4729
- ), p, y, E, M;
4731
+ ), m, x, _, M;
4730
4732
  return {
4731
4733
  c() {
4732
- t = V("div"), n = V("p"), i = pe(r), o = ge(), s = pe(u), c = ge(), l = V("p"), f = V("span"), p = pe(g), y = ge(), E = V("span"), M = pe(
4734
+ t = k("div"), n = k("p"), i = ce(r), o = de(), a = ce(u), h = de(), l = k("p"), f = k("span"), m = ce(b), x = de(), _ = k("span"), M = ce(
4733
4735
  /*currency*/
4734
4736
  e[3]
4735
- ), Z(n, "class", "BalanceModalText"), Z(f, "class", "BalanceModalAmount"), Z(E, "class", "BalanceModalCurrency"), Z(l, "class", "BalanceModalValue"), Z(t, "class", "BalanceModalRowLine");
4737
+ ), W(n, "class", "BalanceModalText"), W(f, "class", "BalanceModalAmount"), W(_, "class", "BalanceModalCurrency"), W(l, "class", "BalanceModalValue"), W(t, "class", "BalanceModalRowLine");
4736
4738
  },
4737
- m(C, $) {
4738
- ve(C, t, $), L(t, n), L(n, i), L(n, o), L(n, s), L(t, c), L(t, l), L(l, f), L(f, p), L(l, y), L(l, E), L(E, M);
4739
+ m(C, G) {
4740
+ ge(C, t, G), L(t, n), L(n, i), L(n, o), L(n, a), L(t, h), L(t, l), L(l, f), L(f, m), L(l, x), L(l, _), L(_, M);
4739
4741
  },
4740
- p(C, $) {
4741
- $[0] & /*$_, balances*/
4742
+ p(C, G) {
4743
+ G[0] & /*$_, balances*/
4742
4744
  48 && r !== (r = /*$_*/
4743
4745
  C[5](
4744
4746
  /*k*/
4745
4747
  C[47]
4746
- ) + "") && Be(i, r), $[0] & /*balances, $_*/
4748
+ ) + "") && _e(i, r), G[0] & /*balances, $_*/
4747
4749
  48 && u !== (u = /*b*/
4748
4750
  (C[50].productType ? (
4749
4751
  /*$_*/
@@ -4751,28 +4753,28 @@ function Cn(e) {
4751
4753
  /*b*/
4752
4754
  C[50].productType
4753
4755
  )
4754
- ) : "") + "") && Be(s, u), $[0] & /*balances*/
4755
- 16 && g !== (g = /*b*/
4756
+ ) : "") + "") && _e(a, u), G[0] & /*balances*/
4757
+ 16 && b !== (b = /*b*/
4756
4758
  (C[50].amount ? (
4757
4759
  /*formatBalance*/
4758
4760
  C[6](
4759
4761
  /*b*/
4760
4762
  C[50].amount
4761
4763
  )
4762
- ) : "0") + "") && Be(p, g), $[0] & /*currency*/
4763
- 8 && Be(
4764
+ ) : "0") + "") && _e(m, b), G[0] & /*currency*/
4765
+ 8 && _e(
4764
4766
  M,
4765
4767
  /*currency*/
4766
4768
  C[3]
4767
4769
  );
4768
4770
  },
4769
4771
  d(C) {
4770
- C && me(t);
4772
+ C && fe(t);
4771
4773
  }
4772
4774
  };
4773
4775
  }
4774
- function Hn(e) {
4775
- let t, n, r = yt(
4776
+ function On(e) {
4777
+ let t, n, r = gt(
4776
4778
  /*balances*/
4777
4779
  e[4][
4778
4780
  /*k*/
@@ -4780,131 +4782,131 @@ function Hn(e) {
4780
4782
  ]
4781
4783
  ), i = [];
4782
4784
  for (let o = 0; o < r.length; o += 1)
4783
- i[o] = Cn(wn(e, r, o));
4785
+ i[o] = Rn(Cn(e, r, o));
4784
4786
  return {
4785
4787
  c() {
4786
- t = V("div");
4788
+ t = k("div");
4787
4789
  for (let o = 0; o < i.length; o += 1)
4788
4790
  i[o].c();
4789
- n = ge(), Z(t, "class", "BalanceModalRowBoth");
4791
+ n = de(), W(t, "class", "BalanceModalRowBoth");
4790
4792
  },
4791
4793
  m(o, u) {
4792
- ve(o, t, u);
4793
- for (let s = 0; s < i.length; s += 1)
4794
- i[s] && i[s].m(t, null);
4794
+ ge(o, t, u);
4795
+ for (let a = 0; a < i.length; a += 1)
4796
+ i[a] && i[a].m(t, null);
4795
4797
  L(t, n);
4796
4798
  },
4797
4799
  p(o, u) {
4798
4800
  if (u[0] & /*currency, balances, formatBalance, $_*/
4799
4801
  120) {
4800
- r = yt(
4802
+ r = gt(
4801
4803
  /*balances*/
4802
4804
  o[4][
4803
4805
  /*k*/
4804
4806
  o[47]
4805
4807
  ]
4806
4808
  );
4807
- let s;
4808
- for (s = 0; s < r.length; s += 1) {
4809
- const c = wn(o, r, s);
4810
- i[s] ? i[s].p(c, u) : (i[s] = Cn(c), i[s].c(), i[s].m(t, n));
4809
+ let a;
4810
+ for (a = 0; a < r.length; a += 1) {
4811
+ const h = Cn(o, r, a);
4812
+ i[a] ? i[a].p(h, u) : (i[a] = Rn(h), i[a].c(), i[a].m(t, n));
4811
4813
  }
4812
- for (; s < i.length; s += 1)
4813
- i[s].d(1);
4814
+ for (; a < i.length; a += 1)
4815
+ i[a].d(1);
4814
4816
  i.length = r.length;
4815
4817
  }
4816
4818
  },
4817
4819
  d(o) {
4818
- o && me(t), Mn(i, o);
4820
+ o && fe(t), In(i, o);
4819
4821
  }
4820
4822
  };
4821
4823
  }
4822
- function On(e) {
4824
+ function Ln(e) {
4823
4825
  let t, n, r;
4824
4826
  return {
4825
4827
  c() {
4826
- t = V("div"), Z(t, "class", "ShowBalanceModalOverlay");
4828
+ t = k("div"), W(t, "class", "ShowBalanceModalOverlay");
4827
4829
  },
4828
4830
  m(i, o) {
4829
- ve(i, t, o), n || (r = bt(
4831
+ ge(i, t, o), n || (r = mt(
4830
4832
  t,
4831
4833
  "click",
4832
4834
  /*click_handler_3*/
4833
4835
  e[26]
4834
4836
  ), n = !0);
4835
4837
  },
4836
- p: le,
4838
+ p: ae,
4837
4839
  d(i) {
4838
- i && me(t), n = !1, r();
4840
+ i && fe(t), n = !1, r();
4839
4841
  }
4840
4842
  };
4841
4843
  }
4842
- function Go(e) {
4844
+ function $o(e) {
4843
4845
  let t, n, r;
4844
- function i(c, l) {
4846
+ function i(h, l) {
4845
4847
  return (
4846
4848
  /*isLoading*/
4847
- c[1] ? Uo : Fo
4849
+ h[1] ? Go : Uo
4848
4850
  );
4849
4851
  }
4850
- let o = i(e), u = o(e), s = (
4852
+ let o = i(e), u = o(e), a = (
4851
4853
  /*showBalance*/
4852
- e[2] && On(e)
4854
+ e[2] && Ln(e)
4853
4855
  );
4854
4856
  return {
4855
4857
  c() {
4856
- t = V("div"), n = V("div"), u.c(), r = ge(), s && s.c(), Z(n, "class", "ShowBalance");
4858
+ t = k("div"), n = k("div"), u.c(), r = de(), a && a.c(), W(n, "class", "ShowBalance");
4857
4859
  },
4858
- m(c, l) {
4859
- ve(c, t, l), L(t, n), u.m(n, null), L(t, r), s && s.m(t, null), e[27](t);
4860
+ m(h, l) {
4861
+ ge(h, t, l), L(t, n), u.m(n, null), L(t, r), a && a.m(t, null), e[27](t);
4860
4862
  },
4861
- p(c, l) {
4862
- o === (o = i(c)) && u ? u.p(c, l) : (u.d(1), u = o(c), u && (u.c(), u.m(n, null))), /*showBalance*/
4863
- c[2] ? s ? s.p(c, l) : (s = On(c), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
4863
+ p(h, l) {
4864
+ o === (o = i(h)) && u ? u.p(h, l) : (u.d(1), u = o(h), u && (u.c(), u.m(n, null))), /*showBalance*/
4865
+ h[2] ? a ? a.p(h, l) : (a = Ln(h), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
4864
4866
  },
4865
- i: le,
4866
- o: le,
4867
- d(c) {
4868
- c && me(t), u.d(), s && s.d(), e[27](null);
4867
+ i: ae,
4868
+ o: ae,
4869
+ d(h) {
4870
+ h && fe(t), u.d(), a && a.d(), e[27](null);
4869
4871
  }
4870
4872
  };
4871
4873
  }
4872
- function $o(e, t, n) {
4874
+ function jo(e, t, n) {
4873
4875
  let r;
4874
- mr(e, Ho, (b) => n(5, r = b));
4875
- let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: u = "" } = t, { lang: s = "en" } = t, { clientstyling: c = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, { customlocaleidentifier: g = "" } = t, { gmversion: p = "gm16" } = t, { displaybalanceoption: y = "All" } = t, { totalcalculationmode: E = "totalCashAmount" } = t, { currencyseparator: M = "" } = t, { currencydecimal: C = "" } = t, { currencyprecision: $ = "" } = t, { mbsource: X } = t, T, S, U, P = !1, te = "", he = [], Se, ce = !1;
4876
- const v = {}, ae = ["totalCashAmount", "totalRealAmount"], ot = () => {
4877
- fetch(f).then((b) => b.json()).then((b) => Object.keys(b).forEach((R) => Tn(R, b[R]))).catch((b) => console.log(b));
4876
+ br(e, Ro, (y) => n(5, r = y));
4877
+ let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: u = "" } = t, { lang: a = "en" } = t, { clientstyling: h = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, { customlocaleidentifier: b = "" } = t, { gmversion: m = "gm16" } = t, { displaybalanceoption: x = "All" } = t, { totalcalculationmode: _ = "totalCashAmount" } = t, { currencyseparator: M = "" } = t, { currencydecimal: C = "" } = t, { currencyprecision: G = "" } = t, { mbsource: V } = t, T, S, F, P = !1, ee = "", se = [], Te, ue = !1, We;
4878
+ const v = {}, Be = ["totalCashAmount", "totalRealAmount"], Ze = () => {
4879
+ fetch(f).then((y) => y.json()).then((y) => Object.keys(y).forEach((H) => Sn(H, y[H]))).catch((y) => console.log(y));
4878
4880
  };
4879
- Object.keys(Bn).forEach((b) => Tn(b, Bn[b]));
4880
- const Re = () => {
4881
- if (g.includes(s))
4882
- return g;
4883
- }, at = (b) => g ? new Intl.NumberFormat(Re(), { useGrouping: !0 }).format(b) : M && C ? de(b, {
4881
+ Object.keys(wn).forEach((y) => Sn(y, wn[y]));
4882
+ const qe = () => {
4883
+ if (b.includes(a))
4884
+ return b;
4885
+ }, Qe = (y) => b ? new Intl.NumberFormat(qe(), { useGrouping: !0 }).format(y) : M && C ? he(y, {
4884
4886
  separator: M,
4885
4887
  decimal: C,
4886
4888
  symbol: "",
4887
- precision: parseInt($ || "2", 10)
4888
- }).format() : de(b, {
4889
+ precision: parseInt(G || "2", 10)
4890
+ }).format() : he(y, {
4889
4891
  separator: ".",
4890
4892
  decimal: ",",
4891
4893
  symbol: "",
4892
- precision: parseInt($ || "2", 10)
4893
- }).format(), We = () => Mt(this, null, function* () {
4894
- var R, I, a;
4894
+ precision: parseInt(G || "2", 10)
4895
+ }).format(), pe = () => Mt(this, null, function* () {
4896
+ var H, s, c;
4895
4897
  n(1, T = !0);
4896
- const b = new URL(`${u}/v1/player/${i}/account`);
4898
+ const y = new URL(`${u}/v1/player/${i}/account`);
4897
4899
  try {
4898
- const d = yield fetch(b, {
4900
+ const g = yield fetch(y, {
4899
4901
  method: "GET",
4900
4902
  headers: { "X-SessionID": o }
4901
- }), m = yield d.json();
4902
- if (d.ok)
4903
- he = m.items, n(3, te = (R = he.find((h) => h.displayName === "Casino")) == null ? void 0 : R.currency), n(4, v.Total = [{ amount: m.totalAmount[te] }], v), n(
4903
+ }), d = yield g.json();
4904
+ if (g.ok)
4905
+ se = d.items, n(3, ee = (H = se.find((p) => p.displayName === "Casino")) == null ? void 0 : H.currency), n(4, v.Total = [{ amount: d.totalAmount[ee] }], v), n(
4904
4906
  4,
4905
4907
  v.Real = [
4906
4908
  {
4907
- amount: (I = he.find((h) => h.displayName === "Casino")) == null ? void 0 : I.balanceAmount
4909
+ amount: (s = se.find((p) => p.displayName === "Casino")) == null ? void 0 : s.balanceAmount
4908
4910
  }
4909
4911
  ],
4910
4912
  v
@@ -4912,46 +4914,46 @@ function $o(e, t, n) {
4912
4914
  4,
4913
4915
  v.Bonus = [
4914
4916
  {
4915
- amount: (a = he.find((h) => h.displayName === "UBS")) == null ? void 0 : a.balanceAmount
4917
+ amount: (c = se.find((p) => p.displayName === "UBS")) == null ? void 0 : c.balanceAmount
4916
4918
  }
4917
4919
  ],
4918
4920
  v
4919
4921
  );
4920
4922
  else
4921
4923
  throw new Error("Failed to fetch balance data !");
4922
- } catch (d) {
4923
- console.log("Balance error: ", d);
4924
+ } catch (g) {
4925
+ console.log("Balance error: ", g);
4924
4926
  } finally {
4925
4927
  n(1, T = !1);
4926
4928
  }
4927
- }), be = () => {
4929
+ }), Se = () => {
4928
4930
  n(1, T = !0);
4929
- const b = new URL(`${u}/v2/player/${i}/balance`), R = new Headers();
4930
- R.append("X-SessionID", o), fetch(b, { method: "GET", headers: R }).then((a) => a.json()).then((a) => {
4931
- a[E] || n(8, E = ae[0]);
4932
- const d = a.items.find((h) => h.type === "Real" && h.walletAccountType === "Ordinary");
4933
- if (n(3, te = d.currency), ce = !!d.productType, n(4, v.Total = [{ amount: 0 }], v), n(4, v.Real = [], v), n(4, v.Bonus = [], v), n(4, v.Credit = [], v), !ce) {
4934
- Se = {
4931
+ const y = new URL(`${u}/v2/player/${i}/balance`), H = new Headers();
4932
+ H.append("X-SessionID", o), fetch(y, { method: "GET", headers: H }).then((c) => c.json()).then((c) => {
4933
+ c[_] || n(8, _ = Be[0]);
4934
+ const g = c.items.find((p) => p.type === "Real" && p.walletAccountType === "Ordinary");
4935
+ if (n(3, ee = g.currency), ue = !!g.productType, n(4, v.Total = [{ amount: 0 }], v), n(4, v.Real = [], v), n(4, v.Bonus = [], v), n(4, v.Credit = [], v), !ue) {
4936
+ Te = {
4935
4937
  lastOrdinaryAfterAmount: 0,
4936
4938
  showCreditLineAfterAmount: !1
4937
- }, n(4, v.Total[0].amount = a[E][te], v);
4938
- for (const h of a.items)
4939
- switch (h.type) {
4939
+ }, n(4, v.Total[0].amount = c[_][ee], v);
4940
+ for (const p of c.items)
4941
+ switch (p.type) {
4940
4942
  case "Bonus":
4941
- v.Bonus.length === 0 ? v.Bonus.push({ amount: h.amount }) : n(4, v.Bonus[0].amount += h.amount, v);
4943
+ v.Bonus.length === 0 ? v.Bonus.push({ amount: p.amount }) : n(4, v.Bonus[0].amount += p.amount, v);
4942
4944
  break;
4943
4945
  case "Real":
4944
- if (h.creditLine && v.Credit.length === 0 && v.Credit.push({ amount: h.creditLine }), E === "totalRealAmount")
4946
+ if (p.creditLine && v.Credit.length === 0 && v.Credit.push({ amount: p.creditLine }), _ === "totalRealAmount")
4945
4947
  continue;
4946
- v.Real.length === 0 ? v.Real.push({ amount: h.amount }) : n(4, v.Real[0].amount += h.amount, v);
4948
+ v.Real.length === 0 ? v.Real.push({ amount: p.amount }) : n(4, v.Real[0].amount += p.amount, v);
4947
4949
  break;
4948
4950
  }
4949
- for (const [h, _] of Object.entries(v))
4950
- _.length < 1 && delete v[h];
4951
+ for (const [p, E] of Object.entries(v))
4952
+ E.length < 1 && delete v[p];
4951
4953
  n(1, T = !1);
4952
4954
  return;
4953
4955
  }
4954
- Se = {
4956
+ Te = {
4955
4957
  Casino: {
4956
4958
  lastOrdinaryAfterAmount: 0,
4957
4959
  showCreditLineAfterAmount: !1
@@ -4961,197 +4963,197 @@ function $o(e, t, n) {
4961
4963
  showCreditLineAfterAmount: !1
4962
4964
  }
4963
4965
  };
4964
- let m = a.items;
4965
- y && y !== "All" && (m = a.items.filter((h) => h.productType === y));
4966
- for (const h of m) {
4967
- let _;
4968
- switch (h.type) {
4966
+ let d = c.items;
4967
+ x && x !== "All" && (d = c.items.filter((p) => p.productType === x));
4968
+ for (const p of d) {
4969
+ let E;
4970
+ switch (p.type) {
4969
4971
  case "Bonus":
4970
- _ = v.Bonus.findIndex((x) => x.productType === h.productType), _ > 0 ? n(4, v.Bonus[_].amount += h.amount, v) : v.Bonus.push({
4971
- amount: h.amount,
4972
- productType: h.productType
4972
+ E = v.Bonus.findIndex((w) => w.productType === p.productType), E > 0 ? n(4, v.Bonus[E].amount += p.amount, v) : v.Bonus.push({
4973
+ amount: p.amount,
4974
+ productType: p.productType
4973
4975
  });
4974
4976
  break;
4975
4977
  case "Real":
4976
- h.creditLine && v.Credit.push({
4977
- amount: h.creditLine,
4978
- productType: h.productType
4979
- }), _ = v.Real.findIndex((x) => x.productType === h.productType), _ > 0 ? n(4, v.Real[_].amount += h.amount, v) : v.Real.push({
4980
- amount: h.amount,
4981
- productType: h.productType
4978
+ p.creditLine && v.Credit.push({
4979
+ amount: p.creditLine,
4980
+ productType: p.productType
4981
+ }), E = v.Real.findIndex((w) => w.productType === p.productType), E > 0 ? n(4, v.Real[E].amount += p.amount, v) : v.Real.push({
4982
+ amount: p.amount,
4983
+ productType: p.productType
4982
4984
  });
4983
4985
  break;
4984
4986
  }
4985
4987
  }
4986
- Le();
4987
- for (const [h, _] of Object.entries(v))
4988
- _.length < 1 && delete v[h];
4988
+ Je();
4989
+ for (const [p, E] of Object.entries(v))
4990
+ E.length < 1 && delete v[p];
4989
4991
  n(1, T = !1);
4990
- }).catch((a) => {
4992
+ }).catch((c) => {
4991
4993
  throw n(1, T = !1), new Error("Failed to fetch balance data !");
4992
4994
  });
4993
- }, ye = () => {
4994
- if (U && U.close(), o.length < 1)
4995
+ }, be = () => {
4996
+ if (F && F.close(), o.length < 1)
4995
4997
  return;
4996
- let b, R;
4997
- switch (p) {
4998
+ let y, H;
4999
+ switch (m) {
4998
5000
  case "gm16":
4999
- b = new URL(`${u}/v2/player/${i}/information/updates`), R = (d) => st(d);
5001
+ y = new URL(`${u}/v2/player/${i}/information/updates`), H = (g) => Bt(g);
5000
5002
  break;
5001
5003
  case "gmcore":
5002
- b = new URL(`${u}/v1/player/${i}/balance/updates`), R = (d) => Ze(d);
5004
+ y = new URL(`${u}/v1/player/${i}/balance/updates`), H = (g) => me(g);
5003
5005
  break;
5004
5006
  }
5005
- const I = {
5007
+ const s = {
5006
5008
  accept: "text/event-stream",
5007
5009
  "X-SessionId": o
5008
- }, a = new Ro.EventSourcePolyfill(b, { headers: I });
5009
- U = a, a.addEventListener("message", R);
5010
- }, we = (b) => {
5011
- let R;
5010
+ }, c = new Lo.EventSourcePolyfill(y, { headers: s });
5011
+ F = c, c.addEventListener("message", H);
5012
+ }, Oe = (y) => {
5013
+ let H;
5012
5014
  try {
5013
- R = JSON.parse(b);
5014
- } catch (I) {
5015
- console.log("Balance stream failed: ", I);
5015
+ H = JSON.parse(y);
5016
+ } catch (s) {
5017
+ console.log("Balance stream failed: ", s);
5016
5018
  return;
5017
5019
  }
5018
- return R;
5019
- }, Ze = (b) => {
5020
- var d, m;
5021
- const R = we(b.data);
5022
- if (!R) {
5023
- ye();
5020
+ return H;
5021
+ }, me = (y) => {
5022
+ var g, d;
5023
+ const H = Oe(y.data);
5024
+ if (!H) {
5025
+ be();
5024
5026
  return;
5025
5027
  }
5026
- let I = "0";
5027
- const a = R.balanceChange;
5028
- he = he.map((h) => (a && a[h.id] && (h = Nt(Lt({}, h), {
5029
- balanceAmount: a[h.id].afterAmount
5030
- })), I = (parseFloat(h == null ? void 0 : h.balanceAmount) + parseFloat(I)).toString(), h)), n(4, v.Real = [{ amount: (d = he[0]) == null ? void 0 : d.balanceAmount }], v), n(4, v.Bonus = [{ amount: (m = he[1]) == null ? void 0 : m.balanceAmount }], v), n(4, v.Total = [{ amount: Number(I) }], v);
5031
- }, se = (b, R, I) => {
5032
- let a = null;
5033
- switch (I.walletAccountType) {
5028
+ let s = "0";
5029
+ const c = H.balanceChange;
5030
+ se = se.map((p) => (c && c[p.id] && (p = Nt(Lt({}, p), {
5031
+ balanceAmount: c[p.id].afterAmount
5032
+ })), s = (parseFloat(p == null ? void 0 : p.balanceAmount) + parseFloat(s)).toString(), p)), n(4, v.Real = [{ amount: (g = se[0]) == null ? void 0 : g.balanceAmount }], v), n(4, v.Bonus = [{ amount: (d = se[1]) == null ? void 0 : d.balanceAmount }], v), n(4, v.Total = [{ amount: Number(s) }], v);
5033
+ }, Ce = (y, H, s) => {
5034
+ let c = null;
5035
+ switch (s.walletAccountType) {
5034
5036
  case "Ordinary":
5035
- I.afterAmount !== I.affectedAmount && (R.lastOrdinaryAfterAmount = I.afterAmount, R.showCreditLineAfterAmount || (a = I.afterAmount));
5037
+ s.afterAmount !== s.affectedAmount && (H.lastOrdinaryAfterAmount = s.afterAmount, H.showCreditLineAfterAmount || (c = s.afterAmount));
5036
5038
  break;
5037
5039
  case "CreditLine":
5038
- I.afterAmount !== 0 ? (a = I.afterAmount, R.showCreditLineAfterAmount = !0) : (a = R.lastOrdinaryAfterAmount, R.showCreditLineAfterAmount = !1);
5040
+ s.afterAmount !== 0 ? (c = s.afterAmount, H.showCreditLineAfterAmount = !0) : (c = H.lastOrdinaryAfterAmount, H.showCreditLineAfterAmount = !1);
5039
5041
  break;
5040
5042
  default:
5041
- a = I.afterAmount;
5043
+ c = s.afterAmount;
5042
5044
  }
5043
- return a === null ? b : a;
5044
- }, Le = () => {
5045
- switch (E) {
5045
+ return c === null ? y : c;
5046
+ }, Je = () => {
5047
+ switch (_) {
5046
5048
  case "totalCashAmount":
5047
- let b = 0;
5048
- for (const I of ["Real", "Bonus"])
5049
- for (const a of v[I])
5050
- b += Math.max(a.amount, 0);
5051
- n(4, v.Total[0].amount = b, v);
5049
+ let y = 0;
5050
+ for (const s of ["Real", "Bonus"])
5051
+ for (const c of v[s])
5052
+ y += Math.max(c.amount, 0);
5053
+ n(4, v.Total[0].amount = y, v);
5052
5054
  break;
5053
5055
  case "totalRealAmount":
5054
- if (!ce)
5056
+ if (!ue)
5055
5057
  return;
5056
- let R = 0;
5057
- for (const I of v.Real)
5058
- R += I.amount;
5059
- n(4, v.Total[0].amount = R, v);
5058
+ let H = 0;
5059
+ for (const s of v.Real)
5060
+ H += s.amount;
5061
+ n(4, v.Total[0].amount = H, v);
5060
5062
  }
5061
- }, st = (b) => {
5062
- const R = we(b.data);
5063
- if (!R) {
5064
- ye();
5063
+ }, Bt = (y) => {
5064
+ const H = Oe(y.data);
5065
+ if (!H) {
5066
+ be();
5065
5067
  return;
5066
5068
  }
5067
- if (R.type !== "BALANCE_UPDATE_V2")
5069
+ if (H.type !== "BALANCE_UPDATE_V2")
5068
5070
  return;
5069
- const I = R.body.balanceChange;
5070
- for (const [a, d] of Object.entries(I))
5071
- if (E === "totalRealAmount" && a === "Real" && !ce && n(4, v.Total[0].amount = se(v.Total[0].amount, Se, d), v), !!v[a])
5072
- for (const m of v[a]) {
5073
- if (!ce) {
5074
- m.amount = a === "Real" ? se(m.amount, Se, d) : d.afterAmount;
5071
+ const s = H.body.balanceChange;
5072
+ for (const [c, g] of Object.entries(s))
5073
+ if (_ === "totalRealAmount" && c === "Real" && !ue && n(4, v.Total[0].amount = Ce(v.Total[0].amount, Te, g), v), !!v[c])
5074
+ for (const d of v[c]) {
5075
+ if (!ue) {
5076
+ d.amount = c === "Real" ? Ce(d.amount, Te, g) : g.afterAmount;
5075
5077
  continue;
5076
5078
  }
5077
- d.productType === m.productType && (m.amount = a === "Real" ? se(m.amount, Se[m.productType], d) : d.afterAmount);
5079
+ g.productType === d.productType && (d.amount = c === "Real" ? Ce(d.amount, Te[d.productType], g) : g.afterAmount);
5078
5080
  }
5079
- Le();
5080
- }, ut = () => {
5081
+ Je();
5082
+ }, st = () => {
5081
5083
  n(2, P = !1), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
5084
+ }, St = () => {
5085
+ Be.includes(_) || (console.error(`Unsupported value ('${_}') for totalcalculationmode parameter. Only the following values are supported ${Be}. Using default value ('${Be[0]}').`), n(8, _ = Be[0]));
5082
5086
  }, wt = () => {
5083
- 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]));
5084
- }, At = () => {
5085
- switch (Oo(s), wt(), p) {
5087
+ switch (Oo(a), St(), m) {
5086
5088
  case "gmcore":
5087
- We();
5089
+ pe();
5088
5090
  break;
5089
5091
  case "gm16":
5090
- be();
5092
+ Se();
5091
5093
  break;
5092
5094
  default:
5093
- throw Error(`Invalid apiversion attribute: ${p}`);
5095
+ throw Error(`Invalid apiversion attribute: ${m}`);
5094
5096
  }
5095
- }, lt = (b) => b.data && b.data.type === "LogoutSuccessfull" && U.close();
5096
- Tr(() => (window.addEventListener("message", lt, !1), () => {
5097
- window.removeEventListener("message", lt), U && U.close();
5097
+ }, Le = (y) => y.data && y.data.type === "LogoutSuccessfull" && F.close();
5098
+ Sr(() => (window.addEventListener("message", Le, !1), () => {
5099
+ window.emMessageBus && We && We.unsubscribe(), window.removeEventListener("message", Le), F && F.close();
5098
5100
  }));
5099
- const qe = () => n(2, P = !0), Qe = () => n(2, P = !1), Ae = () => ut(), ne = () => n(2, P = !1);
5100
- function Ct(b) {
5101
- jt[b ? "unshift" : "push"](() => {
5102
- S = b, n(0, S);
5101
+ const Ye = () => n(2, P = !0), we = () => n(2, P = !1), te = () => st(), At = () => n(2, P = !1);
5102
+ function Ct(y) {
5103
+ jt[y ? "unshift" : "push"](() => {
5104
+ S = y, n(0, S);
5103
5105
  });
5104
5106
  }
5105
- return e.$$set = (b) => {
5106
- "userid" in b && n(9, i = b.userid), "session" in b && n(10, o = b.session), "endpoint" in b && n(11, u = b.endpoint), "lang" in b && n(12, s = b.lang), "clientstyling" in b && n(13, c = b.clientstyling), "clientstylingurl" in b && n(14, l = b.clientstylingurl), "translationurl" in b && n(15, f = b.translationurl), "customlocaleidentifier" in b && n(16, g = b.customlocaleidentifier), "gmversion" in b && n(17, p = b.gmversion), "displaybalanceoption" in b && n(18, y = b.displaybalanceoption), "totalcalculationmode" in b && n(8, E = b.totalcalculationmode), "currencyseparator" in b && n(19, M = b.currencyseparator), "currencydecimal" in b && n(20, C = b.currencydecimal), "currencyprecision" in b && n(21, $ = b.currencyprecision), "mbsource" in b && n(22, X = b.mbsource);
5107
+ return e.$$set = (y) => {
5108
+ "userid" in y && n(9, i = y.userid), "session" in y && n(10, o = y.session), "endpoint" in y && n(11, u = y.endpoint), "lang" in y && n(12, a = y.lang), "clientstyling" in y && n(13, h = y.clientstyling), "clientstylingurl" in y && n(14, l = y.clientstylingurl), "translationurl" in y && n(15, f = y.translationurl), "customlocaleidentifier" in y && n(16, b = y.customlocaleidentifier), "gmversion" in y && n(17, m = y.gmversion), "displaybalanceoption" in y && n(18, x = y.displaybalanceoption), "totalcalculationmode" in y && n(8, _ = y.totalcalculationmode), "currencyseparator" in y && n(19, M = y.currencyseparator), "currencydecimal" in y && n(20, C = y.currencydecimal), "currencyprecision" in y && n(21, G = y.currencyprecision), "mbsource" in y && n(22, V = y.mbsource);
5107
5109
  }, e.$$.update = () => {
5108
5110
  e.$$.dirty[0] & /*lang*/
5109
- 4096 && s && Re(), e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
5110
- 400896 && u && i && o && s && p && y && At(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
5111
- 134656 && u && i && o && p && ye(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5112
- 8193 && c && S && Dr(S, c), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5113
- 16385 && l && S && Fr(S, l), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
5114
- 4194305 && S && Ur(S, `${X}.Style`), e.$$.dirty[0] & /*translationurl*/
5115
- 32768 && f && ot();
5111
+ 4096 && a && qe(), e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
5112
+ 400896 && u && i && o && a && m && x && wt(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
5113
+ 134656 && u && i && o && m && be(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5114
+ 8193 && h && S && Ur(S, h), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5115
+ 16385 && l && S && Gr(S, l), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
5116
+ 4194305 && S && $r(S, `${V}.Style`), e.$$.dirty[0] & /*translationurl*/
5117
+ 32768 && f && Ze();
5116
5118
  }, [
5117
5119
  S,
5118
5120
  T,
5119
5121
  P,
5120
- te,
5122
+ ee,
5121
5123
  v,
5122
5124
  r,
5123
- at,
5124
- ut,
5125
- E,
5125
+ Qe,
5126
+ st,
5127
+ _,
5126
5128
  i,
5127
5129
  o,
5128
5130
  u,
5129
- s,
5130
- c,
5131
+ a,
5132
+ h,
5131
5133
  l,
5132
5134
  f,
5133
- g,
5134
- p,
5135
- y,
5135
+ b,
5136
+ m,
5137
+ x,
5136
5138
  M,
5137
5139
  C,
5138
- $,
5139
- X,
5140
- qe,
5141
- Qe,
5142
- Ae,
5143
- ne,
5140
+ G,
5141
+ V,
5142
+ Ye,
5143
+ we,
5144
+ te,
5145
+ At,
5144
5146
  Ct
5145
5147
  ];
5146
5148
  }
5147
- class jo extends Pr {
5149
+ class ko extends Dr {
5148
5150
  constructor(t) {
5149
- super(), Nr(
5151
+ super(), Pr(
5150
5152
  this,
5151
5153
  t,
5154
+ jo,
5152
5155
  $o,
5153
- Go,
5154
- Ln,
5156
+ Mn,
5155
5157
  {
5156
5158
  userid: 9,
5157
5159
  session: 10,
@@ -5169,7 +5171,7 @@ class jo extends Pr {
5169
5171
  currencyprecision: 21,
5170
5172
  mbsource: 22
5171
5173
  },
5172
- Do,
5174
+ Fo,
5173
5175
  [-1, -1]
5174
5176
  );
5175
5177
  }
@@ -5177,94 +5179,94 @@ class jo extends Pr {
5177
5179
  return this.$$.ctx[9];
5178
5180
  }
5179
5181
  set userid(t) {
5180
- this.$$set({ userid: t }), Q();
5182
+ this.$$set({ userid: t }), q();
5181
5183
  }
5182
5184
  get session() {
5183
5185
  return this.$$.ctx[10];
5184
5186
  }
5185
5187
  set session(t) {
5186
- this.$$set({ session: t }), Q();
5188
+ this.$$set({ session: t }), q();
5187
5189
  }
5188
5190
  get endpoint() {
5189
5191
  return this.$$.ctx[11];
5190
5192
  }
5191
5193
  set endpoint(t) {
5192
- this.$$set({ endpoint: t }), Q();
5194
+ this.$$set({ endpoint: t }), q();
5193
5195
  }
5194
5196
  get lang() {
5195
5197
  return this.$$.ctx[12];
5196
5198
  }
5197
5199
  set lang(t) {
5198
- this.$$set({ lang: t }), Q();
5200
+ this.$$set({ lang: t }), q();
5199
5201
  }
5200
5202
  get clientstyling() {
5201
5203
  return this.$$.ctx[13];
5202
5204
  }
5203
5205
  set clientstyling(t) {
5204
- this.$$set({ clientstyling: t }), Q();
5206
+ this.$$set({ clientstyling: t }), q();
5205
5207
  }
5206
5208
  get clientstylingurl() {
5207
5209
  return this.$$.ctx[14];
5208
5210
  }
5209
5211
  set clientstylingurl(t) {
5210
- this.$$set({ clientstylingurl: t }), Q();
5212
+ this.$$set({ clientstylingurl: t }), q();
5211
5213
  }
5212
5214
  get translationurl() {
5213
5215
  return this.$$.ctx[15];
5214
5216
  }
5215
5217
  set translationurl(t) {
5216
- this.$$set({ translationurl: t }), Q();
5218
+ this.$$set({ translationurl: t }), q();
5217
5219
  }
5218
5220
  get customlocaleidentifier() {
5219
5221
  return this.$$.ctx[16];
5220
5222
  }
5221
5223
  set customlocaleidentifier(t) {
5222
- this.$$set({ customlocaleidentifier: t }), Q();
5224
+ this.$$set({ customlocaleidentifier: t }), q();
5223
5225
  }
5224
5226
  get gmversion() {
5225
5227
  return this.$$.ctx[17];
5226
5228
  }
5227
5229
  set gmversion(t) {
5228
- this.$$set({ gmversion: t }), Q();
5230
+ this.$$set({ gmversion: t }), q();
5229
5231
  }
5230
5232
  get displaybalanceoption() {
5231
5233
  return this.$$.ctx[18];
5232
5234
  }
5233
5235
  set displaybalanceoption(t) {
5234
- this.$$set({ displaybalanceoption: t }), Q();
5236
+ this.$$set({ displaybalanceoption: t }), q();
5235
5237
  }
5236
5238
  get totalcalculationmode() {
5237
5239
  return this.$$.ctx[8];
5238
5240
  }
5239
5241
  set totalcalculationmode(t) {
5240
- this.$$set({ totalcalculationmode: t }), Q();
5242
+ this.$$set({ totalcalculationmode: t }), q();
5241
5243
  }
5242
5244
  get currencyseparator() {
5243
5245
  return this.$$.ctx[19];
5244
5246
  }
5245
5247
  set currencyseparator(t) {
5246
- this.$$set({ currencyseparator: t }), Q();
5248
+ this.$$set({ currencyseparator: t }), q();
5247
5249
  }
5248
5250
  get currencydecimal() {
5249
5251
  return this.$$.ctx[20];
5250
5252
  }
5251
5253
  set currencydecimal(t) {
5252
- this.$$set({ currencydecimal: t }), Q();
5254
+ this.$$set({ currencydecimal: t }), q();
5253
5255
  }
5254
5256
  get currencyprecision() {
5255
5257
  return this.$$.ctx[21];
5256
5258
  }
5257
5259
  set currencyprecision(t) {
5258
- this.$$set({ currencyprecision: t }), Q();
5260
+ this.$$set({ currencyprecision: t }), q();
5259
5261
  }
5260
5262
  get mbsource() {
5261
5263
  return this.$$.ctx[22];
5262
5264
  }
5263
5265
  set mbsource(t) {
5264
- this.$$set({ mbsource: t }), Q();
5266
+ this.$$set({ mbsource: t }), q();
5265
5267
  }
5266
5268
  }
5267
- Mr(jo, { userid: {}, session: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {}, mbsource: {} }, [], [], !0);
5269
+ Ir(ko, { userid: {}, session: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {}, mbsource: {} }, [], [], !0);
5268
5270
  export {
5269
- jo as default
5271
+ ko as default
5270
5272
  };