@everymatrix/player-account-balance-modal 1.56.0 → 1.56.3

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