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

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