@everymatrix/player-account-balance-modal-nd 1.74.10 → 1.75.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,46 +1,46 @@
1
1
  function ce() {
2
2
  }
3
- function Gn(e) {
3
+ function $r(e) {
4
4
  return e();
5
5
  }
6
- function ln() {
6
+ function fr() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
- function ze(e) {
10
- e.forEach(Gn);
9
+ function Xe(e) {
10
+ e.forEach($r);
11
11
  }
12
- function rn(e) {
12
+ function ur(e) {
13
13
  return typeof e == "function";
14
14
  }
15
- function jn(e, t) {
15
+ function Vr(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
- function wr(e) {
18
+ function An(e) {
19
19
  return Object.keys(e).length === 0;
20
20
  }
21
- function kn(e, ...t) {
21
+ function Xr(e, ...t) {
22
22
  if (e == null) {
23
- for (const r of t)
24
- r(void 0);
23
+ for (const n of t)
24
+ n(void 0);
25
25
  return ce;
26
26
  }
27
- const n = e.subscribe(...t);
28
- return n.unsubscribe ? () => n.unsubscribe() : n;
27
+ const r = e.subscribe(...t);
28
+ return r.unsubscribe ? () => r.unsubscribe() : r;
29
29
  }
30
- function Sr(e, t, n) {
31
- e.$$.on_destroy.push(kn(t, n));
30
+ function Cn(e, t, r) {
31
+ e.$$.on_destroy.push(Xr(t, r));
32
32
  }
33
- function P(e, t) {
33
+ function M(e, t) {
34
34
  e.appendChild(t);
35
35
  }
36
- function Tr(e, t, n) {
37
- const r = Br(e);
38
- if (!r.getElementById(t)) {
39
- const i = j("style");
40
- i.id = t, i.textContent = n, Ar(r, i);
36
+ function Hn(e, t, r) {
37
+ const n = On(e);
38
+ if (!n.getElementById(t)) {
39
+ const i = G("style");
40
+ i.id = t, i.textContent = r, Pn(n, i);
41
41
  }
42
42
  }
43
- function Br(e) {
43
+ function On(e) {
44
44
  if (!e)
45
45
  return document;
46
46
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -50,83 +50,83 @@ function Br(e) {
50
50
  t
51
51
  ) : e.ownerDocument;
52
52
  }
53
- function Ar(e, t) {
54
- return P(
53
+ function Pn(e, t) {
54
+ return M(
55
55
  /** @type {Document} */
56
56
  e.head || e,
57
57
  t
58
58
  ), t.sheet;
59
59
  }
60
- function be(e, t, n) {
61
- e.insertBefore(t, n || null);
60
+ function ge(e, t, r) {
61
+ e.insertBefore(t, r || null);
62
62
  }
63
63
  function de(e) {
64
64
  e.parentNode && e.parentNode.removeChild(e);
65
65
  }
66
- function $n(e, t) {
67
- for (let n = 0; n < e.length; n += 1)
68
- e[n] && e[n].d(t);
66
+ function zr(e, t) {
67
+ for (let r = 0; r < e.length; r += 1)
68
+ e[r] && e[r].d(t);
69
69
  }
70
- function j(e) {
70
+ function G(e) {
71
71
  return document.createElement(e);
72
72
  }
73
- function cn(e) {
73
+ function dr(e) {
74
74
  return document.createElementNS("http://www.w3.org/2000/svg", e);
75
75
  }
76
- function xe(e) {
76
+ function we(e) {
77
77
  return document.createTextNode(e);
78
78
  }
79
- function we() {
80
- return xe(" ");
79
+ function Se() {
80
+ return we(" ");
81
81
  }
82
- function Cr() {
83
- return xe("");
82
+ function Rn() {
83
+ return we("");
84
84
  }
85
- function vt(e, t, n, r) {
86
- return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
85
+ function vt(e, t, r, n) {
86
+ return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
87
87
  }
88
- function M(e, t, n) {
89
- n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
88
+ function P(e, t, r) {
89
+ r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
90
90
  }
91
- function Hr(e) {
91
+ function Mn(e) {
92
92
  return Array.from(e.childNodes);
93
93
  }
94
- function Me(e, t) {
94
+ function Pe(e, t) {
95
95
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
96
96
  t);
97
97
  }
98
- function Or(e) {
98
+ function Ln(e) {
99
99
  const t = {};
100
100
  return e.childNodes.forEach(
101
101
  /** @param {Element} node */
102
- (n) => {
103
- t[n.slot || "default"] = !0;
102
+ (r) => {
103
+ t[r.slot || "default"] = !0;
104
104
  }
105
105
  ), t;
106
106
  }
107
107
  let rt;
108
- function nt(e) {
108
+ function tt(e) {
109
109
  rt = e;
110
110
  }
111
- function Mr() {
111
+ function Nn() {
112
112
  if (!rt)
113
113
  throw new Error("Function called outside component initialization");
114
114
  return rt;
115
115
  }
116
- function Rr(e) {
117
- Mr().$$.on_mount.push(e);
116
+ function In(e) {
117
+ Nn().$$.on_mount.push(e);
118
118
  }
119
- const Fe = [], Gt = [];
119
+ const Fe = [], $t = [];
120
120
  let Ge = [];
121
- const hn = [], Lr = /* @__PURE__ */ Promise.resolve();
122
- let jt = !1;
123
- function Pr() {
124
- jt || (jt = !0, Lr.then(Q));
121
+ const pr = [], Dn = /* @__PURE__ */ Promise.resolve();
122
+ let Vt = !1;
123
+ function Un() {
124
+ Vt || (Vt = !0, Dn.then(Q));
125
125
  }
126
- function kt(e) {
126
+ function Xt(e) {
127
127
  Ge.push(e);
128
128
  }
129
- const Lt = /* @__PURE__ */ new Set();
129
+ const Nt = /* @__PURE__ */ new Set();
130
130
  let De = 0;
131
131
  function Q() {
132
132
  if (De !== 0)
@@ -136,58 +136,58 @@ function Q() {
136
136
  try {
137
137
  for (; De < Fe.length; ) {
138
138
  const t = Fe[De];
139
- De++, nt(t), Nr(t.$$);
139
+ De++, tt(t), Fn(t.$$);
140
140
  }
141
141
  } catch (t) {
142
142
  throw Fe.length = 0, De = 0, t;
143
143
  }
144
- for (nt(null), Fe.length = 0, De = 0; Gt.length; )
145
- Gt.pop()();
144
+ for (tt(null), Fe.length = 0, De = 0; $t.length; )
145
+ $t.pop()();
146
146
  for (let t = 0; t < Ge.length; t += 1) {
147
- const n = Ge[t];
148
- Lt.has(n) || (Lt.add(n), n());
147
+ const r = Ge[t];
148
+ Nt.has(r) || (Nt.add(r), r());
149
149
  }
150
150
  Ge.length = 0;
151
151
  } while (Fe.length);
152
- for (; hn.length; )
153
- hn.pop()();
154
- jt = !1, Lt.clear(), nt(e);
152
+ for (; pr.length; )
153
+ pr.pop()();
154
+ Vt = !1, Nt.clear(), tt(e);
155
155
  }
156
- function Nr(e) {
156
+ function Fn(e) {
157
157
  if (e.fragment !== null) {
158
- e.update(), ze(e.before_update);
158
+ e.update(), Xe(e.before_update);
159
159
  const t = e.dirty;
160
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(kt);
160
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Xt);
161
161
  }
162
162
  }
163
- function Ir(e) {
164
- const t = [], n = [];
165
- Ge.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Ge = t;
163
+ function Gn(e) {
164
+ const t = [], r = [];
165
+ Ge.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Ge = t;
166
166
  }
167
- const Dr = /* @__PURE__ */ new Set();
168
- function Ur(e, t) {
169
- e && e.i && (Dr.delete(e), e.i(t));
167
+ const jn = /* @__PURE__ */ new Set();
168
+ function kn(e, t) {
169
+ e && e.i && (jn.delete(e), e.i(t));
170
170
  }
171
171
  function _t(e) {
172
172
  return e?.length !== void 0 ? e : Array.from(e);
173
173
  }
174
- function Fr(e, t, n) {
175
- const { fragment: r, after_update: i } = e.$$;
176
- r && r.m(t, n), kt(() => {
177
- const o = e.$$.on_mount.map(Gn).filter(rn);
178
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ze(o), e.$$.on_mount = [];
179
- }), i.forEach(kt);
174
+ function $n(e, t, r) {
175
+ const { fragment: n, after_update: i } = e.$$;
176
+ n && n.m(t, r), Xt(() => {
177
+ const o = e.$$.on_mount.map($r).filter(ur);
178
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Xe(o), e.$$.on_mount = [];
179
+ }), i.forEach(Xt);
180
180
  }
181
- function Gr(e, t) {
182
- const n = e.$$;
183
- n.fragment !== null && (Ir(n.after_update), ze(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
181
+ function Vn(e, t) {
182
+ const r = e.$$;
183
+ r.fragment !== null && (Gn(r.after_update), Xe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
184
184
  }
185
- function jr(e, t) {
186
- e.$$.dirty[0] === -1 && (Fe.push(e), Pr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
185
+ function Xn(e, t) {
186
+ e.$$.dirty[0] === -1 && (Fe.push(e), Un(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
187
187
  }
188
- function kr(e, t, n, r, i, o, s = null, a = [-1]) {
188
+ function zn(e, t, r, n, i, o, s = null, a = [-1]) {
189
189
  const l = rt;
190
- nt(e);
190
+ tt(e);
191
191
  const u = e.$$ = {
192
192
  fragment: null,
193
193
  ctx: [],
@@ -195,7 +195,7 @@ function kr(e, t, n, r, i, o, s = null, a = [-1]) {
195
195
  props: o,
196
196
  update: ce,
197
197
  not_equal: i,
198
- bound: ln(),
198
+ bound: fr(),
199
199
  // lifecycle
200
200
  on_mount: [],
201
201
  on_destroy: [],
@@ -204,28 +204,28 @@ function kr(e, t, n, r, i, o, s = null, a = [-1]) {
204
204
  after_update: [],
205
205
  context: new Map(t.context || (l ? l.$$.context : [])),
206
206
  // everything else
207
- callbacks: ln(),
207
+ callbacks: fr(),
208
208
  dirty: a,
209
209
  skip_bound: !1,
210
210
  root: t.target || l.$$.root
211
211
  };
212
212
  s && s(u.root);
213
213
  let f = !1;
214
- if (u.ctx = n(e, t.props || {}, (b, m, ...w) => {
214
+ if (u.ctx = r ? r(e, t.props || {}, (b, m, ...w) => {
215
215
  const _ = w.length ? w[0] : m;
216
- return u.ctx && i(u.ctx[b], u.ctx[b] = _) && (!u.skip_bound && u.bound[b] && u.bound[b](_), f && jr(e, b)), m;
217
- }), u.update(), f = !0, ze(u.before_update), u.fragment = r(u.ctx), t.target) {
216
+ return u.ctx && i(u.ctx[b], u.ctx[b] = _) && (!u.skip_bound && u.bound[b] && u.bound[b](_), f && Xn(e, b)), m;
217
+ }) : [], u.update(), f = !0, Xe(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
218
218
  if (t.hydrate) {
219
- const b = Hr(t.target);
219
+ const b = Mn(t.target);
220
220
  u.fragment && u.fragment.l(b), b.forEach(de);
221
221
  } else
222
222
  u.fragment && u.fragment.c();
223
- t.intro && Ur(e.$$.fragment), Fr(e, t.target, t.anchor), Q();
223
+ t.intro && kn(e.$$.fragment), $n(e, t.target, t.anchor), Q();
224
224
  }
225
- nt(l);
225
+ tt(l);
226
226
  }
227
- let Vn;
228
- typeof HTMLElement == "function" && (Vn = class extends HTMLElement {
227
+ let Wr;
228
+ typeof HTMLElement == "function" && (Wr = class extends HTMLElement {
229
229
  /** The Svelte component constructor */
230
230
  $$ctor;
231
231
  /** Slots */
@@ -244,20 +244,20 @@ typeof HTMLElement == "function" && (Vn = class extends HTMLElement {
244
244
  $$l = {};
245
245
  /** @type {Map<Function, Function>} Event listener unsubscribe functions */
246
246
  $$l_u = /* @__PURE__ */ new Map();
247
- constructor(e, t, n) {
248
- super(), this.$$ctor = e, this.$$s = t, n && this.attachShadow({ mode: "open" });
247
+ constructor(e, t, r) {
248
+ super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
249
249
  }
250
- addEventListener(e, t, n) {
250
+ addEventListener(e, t, r) {
251
251
  if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
252
- const r = this.$$c.$on(e, t);
253
- this.$$l_u.set(t, r);
252
+ const n = this.$$c.$on(e, t);
253
+ this.$$l_u.set(t, n);
254
254
  }
255
- super.addEventListener(e, t, n);
255
+ super.addEventListener(e, t, r);
256
256
  }
257
- removeEventListener(e, t, n) {
258
- if (super.removeEventListener(e, t, n), this.$$c) {
259
- const r = this.$$l_u.get(t);
260
- r && (r(), this.$$l_u.delete(t));
257
+ removeEventListener(e, t, r) {
258
+ if (super.removeEventListener(e, t, r), this.$$c) {
259
+ const n = this.$$l_u.get(t);
260
+ n && (n(), this.$$l_u.delete(t));
261
261
  }
262
262
  }
263
263
  async connectedCallback() {
@@ -267,14 +267,14 @@ typeof HTMLElement == "function" && (Vn = class extends HTMLElement {
267
267
  let o;
268
268
  return {
269
269
  c: function() {
270
- o = j("slot"), i !== "default" && M(o, "name", i);
270
+ o = G("slot"), i !== "default" && P(o, "name", i);
271
271
  },
272
272
  /**
273
273
  * @param {HTMLElement} target
274
274
  * @param {HTMLElement} [anchor]
275
275
  */
276
276
  m: function(l, u) {
277
- be(l, o, u);
277
+ ge(l, o, u);
278
278
  },
279
279
  d: function(l) {
280
280
  l && de(o);
@@ -284,9 +284,9 @@ typeof HTMLElement == "function" && (Vn = class extends HTMLElement {
284
284
  };
285
285
  if (await Promise.resolve(), !this.$$cn || this.$$c)
286
286
  return;
287
- const t = {}, n = Or(this);
287
+ const t = {}, r = Ln(this);
288
288
  for (const i of this.$$s)
289
- i in n && (t[i] = [e(i)]);
289
+ i in r && (t[i] = [e(i)]);
290
290
  for (const i of this.attributes) {
291
291
  const o = this.$$g_p(i.name);
292
292
  o in this.$$d || (this.$$d[o] = mt(o, i.value, this.$$p_d, "toProp"));
@@ -303,7 +303,7 @@ typeof HTMLElement == "function" && (Vn = class extends HTMLElement {
303
303
  }
304
304
  }
305
305
  });
306
- const r = () => {
306
+ const n = () => {
307
307
  this.$$r = !0;
308
308
  for (const i in this.$$p_d)
309
309
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
@@ -317,7 +317,7 @@ typeof HTMLElement == "function" && (Vn = class extends HTMLElement {
317
317
  }
318
318
  this.$$r = !1;
319
319
  };
320
- this.$$c.$$.after_update.push(r), r();
320
+ this.$$c.$$.after_update.push(n), n();
321
321
  for (const i in this.$$l)
322
322
  for (const o of this.$$l[i]) {
323
323
  const s = this.$$c.$on(i, o);
@@ -328,8 +328,8 @@ typeof HTMLElement == "function" && (Vn = class extends HTMLElement {
328
328
  }
329
329
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
330
330
  // and setting attributes through setAttribute etc, this is helpful
331
- attributeChangedCallback(e, t, n) {
332
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = mt(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
331
+ attributeChangedCallback(e, t, r) {
332
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = mt(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
333
333
  }
334
334
  disconnectedCallback() {
335
335
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -342,11 +342,11 @@ typeof HTMLElement == "function" && (Vn = class extends HTMLElement {
342
342
  ) || e;
343
343
  }
344
344
  });
345
- function mt(e, t, n, r) {
346
- const i = n[e]?.type;
347
- if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
345
+ function mt(e, t, r, n) {
346
+ const i = r[e]?.type;
347
+ if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
348
348
  return t;
349
- if (r === "toAttribute")
349
+ if (n === "toAttribute")
350
350
  switch (i) {
351
351
  case "Object":
352
352
  case "Array":
@@ -371,10 +371,10 @@ function mt(e, t, n, r) {
371
371
  return t;
372
372
  }
373
373
  }
374
- function $r(e, t, n, r, i, o) {
375
- let s = class extends Vn {
374
+ function Wn(e, t, r, n, i, o) {
375
+ let s = class extends Wr {
376
376
  constructor() {
377
- super(e, n, i), this.$$p_d = t;
377
+ super(e, r, i), this.$$p_d = t;
378
378
  }
379
379
  static get observedAttributes() {
380
380
  return Object.keys(t).map(
@@ -391,7 +391,7 @@ function $r(e, t, n, r, i, o) {
391
391
  l = mt(a, l, t), this.$$d[a] = l, this.$$c?.$set({ [a]: l });
392
392
  }
393
393
  });
394
- }), r.forEach((a) => {
394
+ }), n.forEach((a) => {
395
395
  Object.defineProperty(s.prototype, a, {
396
396
  get() {
397
397
  return this.$$c?.[a];
@@ -400,7 +400,7 @@ function $r(e, t, n, r, i, o) {
400
400
  }), e.element = /** @type {any} */
401
401
  s, s;
402
402
  }
403
- class Vr {
403
+ class Zn {
404
404
  /**
405
405
  * ### PRIVATE API
406
406
  *
@@ -419,7 +419,7 @@ class Vr {
419
419
  $$set = void 0;
420
420
  /** @returns {void} */
421
421
  $destroy() {
422
- Gr(this, 1), this.$destroy = ce;
422
+ Vn(this, 1), this.$destroy = ce;
423
423
  }
424
424
  /**
425
425
  * @template {Extract<keyof Events, string>} K
@@ -427,13 +427,13 @@ class Vr {
427
427
  * @param {((e: Events[K]) => void) | null | undefined} callback
428
428
  * @returns {() => void}
429
429
  */
430
- $on(t, n) {
431
- if (!rn(n))
430
+ $on(t, r) {
431
+ if (!ur(r))
432
432
  return ce;
433
- const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
434
- return r.push(n), () => {
435
- const i = r.indexOf(n);
436
- i !== -1 && r.splice(i, 1);
433
+ const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
434
+ return n.push(r), () => {
435
+ const i = n.indexOf(r);
436
+ i !== -1 && n.splice(i, 1);
437
437
  };
438
438
  }
439
439
  /**
@@ -441,47 +441,47 @@ class Vr {
441
441
  * @returns {void}
442
442
  */
443
443
  $set(t) {
444
- this.$$set && !wr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
444
+ this.$$set && !An(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
445
445
  }
446
446
  }
447
- const Xr = "4";
448
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Xr);
449
- function zr(e, t) {
447
+ const qn = "4";
448
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(qn);
449
+ function Yn(e, t) {
450
450
  if (e) {
451
- const n = document.createElement("style");
452
- n.innerHTML = t, e.appendChild(n);
451
+ const r = document.createElement("style");
452
+ r.innerHTML = t, e.appendChild(r);
453
453
  }
454
454
  }
455
- function Wr(e, t) {
456
- const n = new URL(t);
457
- fetch(n.href).then((r) => r.text()).then((r) => {
455
+ function Qn(e, t) {
456
+ const r = new URL(t);
457
+ fetch(r.href).then((n) => n.text()).then((n) => {
458
458
  const i = document.createElement("style");
459
- i.innerHTML = r, e && e.appendChild(i);
460
- }).catch((r) => {
461
- console.error("There was an error while trying to load client styling from URL", r);
459
+ i.innerHTML = n, e && e.appendChild(i);
460
+ }).catch((n) => {
461
+ console.error("There was an error while trying to load client styling from URL", n);
462
462
  });
463
463
  }
464
- function Zr(e, t, n) {
464
+ function Jn(e, t, r) {
465
465
  if (window.emMessageBus) {
466
- const r = document.createElement("style");
466
+ const n = document.createElement("style");
467
467
  window.emMessageBus.subscribe(t, (i) => {
468
- r.innerHTML = i, e && e.appendChild(r);
468
+ n.innerHTML = i, e && e.appendChild(n);
469
469
  });
470
470
  }
471
471
  }
472
472
  const Ue = [];
473
- function qr(e, t) {
473
+ function Kn(e, t) {
474
474
  return {
475
- subscribe: wt(e, t).subscribe
475
+ subscribe: St(e, t).subscribe
476
476
  };
477
477
  }
478
- function wt(e, t = ce) {
479
- let n;
480
- const r = /* @__PURE__ */ new Set();
478
+ function St(e, t = ce) {
479
+ let r;
480
+ const n = /* @__PURE__ */ new Set();
481
481
  function i(a) {
482
- if (jn(e, a) && (e = a, n)) {
482
+ if (Vr(e, a) && (e = a, r)) {
483
483
  const l = !Ue.length;
484
- for (const u of r)
484
+ for (const u of n)
485
485
  u[1](), Ue.push(u, e);
486
486
  if (l) {
487
487
  for (let u = 0; u < Ue.length; u += 2)
@@ -495,18 +495,18 @@ function wt(e, t = ce) {
495
495
  }
496
496
  function s(a, l = ce) {
497
497
  const u = [a, l];
498
- return r.add(u), r.size === 1 && (n = t(i, o) || ce), a(e), () => {
499
- r.delete(u), r.size === 0 && n && (n(), n = null);
498
+ return n.add(u), n.size === 1 && (r = t(i, o) || ce), a(e), () => {
499
+ n.delete(u), n.size === 0 && r && (r(), r = null);
500
500
  };
501
501
  }
502
502
  return { set: i, update: o, subscribe: s };
503
503
  }
504
- function We(e, t, n) {
505
- const r = !Array.isArray(e), i = r ? [e] : e;
504
+ function ze(e, t, r) {
505
+ const n = !Array.isArray(e), i = n ? [e] : e;
506
506
  if (!i.every(Boolean))
507
507
  throw new Error("derived() expects stores as input, got a falsy value");
508
508
  const o = t.length < 2;
509
- return qr(n, (s, a) => {
509
+ return Kn(r, (s, a) => {
510
510
  let l = !1;
511
511
  const u = [];
512
512
  let f = 0, b = ce;
@@ -514,13 +514,13 @@ function We(e, t, n) {
514
514
  if (f)
515
515
  return;
516
516
  b();
517
- const _ = t(r ? u[0] : u, s, a);
518
- o ? s(_) : b = rn(_) ? _ : ce;
517
+ const _ = t(n ? u[0] : u, s, a);
518
+ o ? s(_) : b = ur(_) ? _ : ce;
519
519
  }, w = i.map(
520
- (_, A) => kn(
520
+ (_, A) => Xr(
521
521
  _,
522
- (I) => {
523
- u[A] = I, f &= ~(1 << A), l && m();
522
+ (N) => {
523
+ u[A] = N, f &= ~(1 << A), l && m();
524
524
  },
525
525
  () => {
526
526
  f |= 1 << A;
@@ -528,207 +528,158 @@ function We(e, t, n) {
528
528
  )
529
529
  );
530
530
  return l = !0, m(), function() {
531
- ze(w), b(), l = !1;
531
+ Xe(w), b(), l = !1;
532
532
  };
533
533
  });
534
534
  }
535
- var Yr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
536
- function Qr(e) {
535
+ var ei = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
536
+ function ti(e) {
537
537
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
538
538
  }
539
- var Jr = function(t) {
540
- return Kr(t) && !ei(t);
539
+ var ri = function(t) {
540
+ return ni(t) && !ii(t);
541
541
  };
542
- function Kr(e) {
542
+ function ni(e) {
543
543
  return !!e && typeof e == "object";
544
544
  }
545
- function ei(e) {
545
+ function ii(e) {
546
546
  var t = Object.prototype.toString.call(e);
547
- return t === "[object RegExp]" || t === "[object Date]" || ri(e);
547
+ return t === "[object RegExp]" || t === "[object Date]" || si(e);
548
548
  }
549
- var ti = typeof Symbol == "function" && Symbol.for, ni = ti ? Symbol.for("react.element") : 60103;
550
- function ri(e) {
551
- return e.$$typeof === ni;
549
+ var oi = typeof Symbol == "function" && Symbol.for, ai = oi ? Symbol.for("react.element") : 60103;
550
+ function si(e) {
551
+ return e.$$typeof === ai;
552
552
  }
553
- function ii(e) {
553
+ function ui(e) {
554
554
  return Array.isArray(e) ? [] : {};
555
555
  }
556
- function it(e, t) {
557
- return t.clone !== !1 && t.isMergeableObject(e) ? ke(ii(e), e, t) : e;
556
+ function nt(e, t) {
557
+ return t.clone !== !1 && t.isMergeableObject(e) ? je(ui(e), e, t) : e;
558
558
  }
559
- function oi(e, t, n) {
560
- return e.concat(t).map(function(r) {
561
- return it(r, n);
559
+ function li(e, t, r) {
560
+ return e.concat(t).map(function(n) {
561
+ return nt(n, r);
562
562
  });
563
563
  }
564
- function ai(e, t) {
564
+ function ci(e, t) {
565
565
  if (!t.customMerge)
566
- return ke;
567
- var n = t.customMerge(e);
568
- return typeof n == "function" ? n : ke;
566
+ return je;
567
+ var r = t.customMerge(e);
568
+ return typeof r == "function" ? r : je;
569
569
  }
570
- function si(e) {
570
+ function hi(e) {
571
571
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
572
572
  return Object.propertyIsEnumerable.call(e, t);
573
573
  }) : [];
574
574
  }
575
- function fn(e) {
576
- return Object.keys(e).concat(si(e));
575
+ function mr(e) {
576
+ return Object.keys(e).concat(hi(e));
577
577
  }
578
- function Xn(e, t) {
578
+ function Zr(e, t) {
579
579
  try {
580
580
  return t in e;
581
581
  } catch {
582
582
  return !1;
583
583
  }
584
584
  }
585
- function ui(e, t) {
586
- return Xn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
585
+ function fi(e, t) {
586
+ return Zr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
587
587
  }
588
- function li(e, t, n) {
589
- var r = {};
590
- return n.isMergeableObject(e) && fn(e).forEach(function(i) {
591
- r[i] = it(e[i], n);
592
- }), fn(t).forEach(function(i) {
593
- ui(e, i) || (Xn(e, i) && n.isMergeableObject(t[i]) ? r[i] = ai(i, n)(e[i], t[i], n) : r[i] = it(t[i], n));
594
- }), r;
595
- }
596
- function ke(e, t, n) {
597
- n = n || {}, n.arrayMerge = n.arrayMerge || oi, n.isMergeableObject = n.isMergeableObject || Jr, n.cloneUnlessOtherwiseSpecified = it;
598
- var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
599
- return o ? r ? n.arrayMerge(e, t, n) : li(e, t, n) : it(t, n);
600
- }
601
- ke.all = function(t, n) {
588
+ function di(e, t, r) {
589
+ var n = {};
590
+ return r.isMergeableObject(e) && mr(e).forEach(function(i) {
591
+ n[i] = nt(e[i], r);
592
+ }), mr(t).forEach(function(i) {
593
+ fi(e, i) || (Zr(e, i) && r.isMergeableObject(t[i]) ? n[i] = ci(i, r)(e[i], t[i], r) : n[i] = nt(t[i], r));
594
+ }), n;
595
+ }
596
+ function je(e, t, r) {
597
+ r = r || {}, r.arrayMerge = r.arrayMerge || li, r.isMergeableObject = r.isMergeableObject || ri, r.cloneUnlessOtherwiseSpecified = nt;
598
+ var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
599
+ return o ? n ? r.arrayMerge(e, t, r) : di(e, t, r) : nt(t, r);
600
+ }
601
+ je.all = function(t, r) {
602
602
  if (!Array.isArray(t))
603
603
  throw new Error("first argument should be an array");
604
- return t.reduce(function(r, i) {
605
- return ke(r, i, n);
604
+ return t.reduce(function(n, i) {
605
+ return je(n, i, r);
606
606
  }, {});
607
607
  };
608
- var ci = ke, hi = ci;
609
- const fi = /* @__PURE__ */ Qr(hi);
610
- /*! *****************************************************************************
611
- Copyright (c) Microsoft Corporation.
612
-
613
- Permission to use, copy, modify, and/or distribute this software for any
614
- purpose with or without fee is hereby granted.
615
-
616
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
617
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
618
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
619
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
620
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
621
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
622
- PERFORMANCE OF THIS SOFTWARE.
623
- ***************************************************************************** */
624
- var $t = function(e, t) {
625
- return $t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
626
- n.__proto__ = r;
627
- } || function(n, r) {
628
- for (var i in r)
629
- Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
630
- }, $t(e, t);
608
+ var pi = je, mi = pi;
609
+ const bi = /* @__PURE__ */ ti(mi);
610
+ var zt = function(e, t) {
611
+ return zt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
612
+ r.__proto__ = n;
613
+ } || function(r, n) {
614
+ for (var i in n)
615
+ Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
616
+ }, zt(e, t);
631
617
  };
632
- function Te(e, t) {
618
+ function Tt(e, t) {
633
619
  if (typeof t != "function" && t !== null)
634
620
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
635
- $t(e, t);
636
- function n() {
621
+ zt(e, t);
622
+ function r() {
637
623
  this.constructor = e;
638
624
  }
639
- e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
640
- }
641
- var L = function() {
642
- return L = Object.assign || function(t) {
643
- for (var n, r = 1, i = arguments.length; r < i; r++) {
644
- n = arguments[r];
645
- for (var o in n)
646
- Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
625
+ e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
626
+ }
627
+ var be = function() {
628
+ return be = Object.assign || function(t) {
629
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
630
+ r = arguments[n];
631
+ for (var o in r)
632
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
647
633
  }
648
634
  return t;
649
- }, L.apply(this, arguments);
635
+ }, be.apply(this, arguments);
650
636
  };
651
- function di(e, t) {
652
- var n = {};
653
- for (var r in e)
654
- Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
637
+ function gi(e, t) {
638
+ var r = {};
639
+ for (var n in e)
640
+ Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
655
641
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
656
- for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
657
- t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
658
- return n;
659
- }
660
- function Vt(e) {
661
- var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
662
- if (n)
663
- return n.call(e);
664
- if (e && typeof e.length == "number")
665
- return {
666
- next: function() {
667
- return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e };
668
- }
669
- };
670
- throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
671
- }
672
- function Xt(e, t) {
673
- var n = typeof Symbol == "function" && e[Symbol.iterator];
674
- if (!n)
675
- return e;
676
- var r = n.call(e), i, o = [], s;
677
- try {
678
- for (; (t === void 0 || t-- > 0) && !(i = r.next()).done; )
679
- o.push(i.value);
680
- } catch (a) {
681
- s = { error: a };
682
- } finally {
683
- try {
684
- i && !i.done && (n = r.return) && n.call(r);
685
- } finally {
686
- if (s)
687
- throw s.error;
688
- }
689
- }
690
- return o;
642
+ for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
643
+ t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
644
+ return r;
691
645
  }
692
- function je(e, t, n) {
693
- if (n || arguments.length === 2)
694
- for (var r = 0, i = t.length, o; r < i; r++)
695
- (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
696
- return e.concat(o || t);
646
+ function It(e, t, r) {
647
+ if (r || arguments.length === 2)
648
+ for (var n = 0, i = t.length, o; n < i; n++)
649
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
650
+ return e.concat(o || Array.prototype.slice.call(t));
697
651
  }
698
- function Pt(e, t) {
699
- var n = t && t.cache ? t.cache : _i, r = t && t.serializer ? t.serializer : yi, i = t && t.strategy ? t.strategy : mi;
652
+ function Dt(e, t) {
653
+ var r = t && t.cache ? t.cache : Si, n = t && t.serializer ? t.serializer : xi, i = t && t.strategy ? t.strategy : _i;
700
654
  return i(e, {
701
- cache: n,
702
- serializer: r
655
+ cache: r,
656
+ serializer: n
703
657
  });
704
658
  }
705
- function pi(e) {
659
+ function yi(e) {
706
660
  return e == null || typeof e == "number" || typeof e == "boolean";
707
661
  }
708
- function zn(e, t, n, r) {
709
- var i = pi(r) ? r : n(r), o = t.get(i);
710
- return typeof o > "u" && (o = e.call(this, r), t.set(i, o)), o;
662
+ function vi(e, t, r, n) {
663
+ var i = yi(n) ? n : r(n), o = t.get(i);
664
+ return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
711
665
  }
712
- function Wn(e, t, n) {
713
- var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
714
- return typeof o > "u" && (o = e.apply(this, r), t.set(i, o)), o;
666
+ function qr(e, t, r) {
667
+ var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
668
+ return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
715
669
  }
716
- function on(e, t, n, r, i) {
717
- return n.bind(t, e, r, i);
670
+ function Yr(e, t, r, n, i) {
671
+ return r.bind(t, e, n, i);
718
672
  }
719
- function mi(e, t) {
720
- var n = e.length === 1 ? zn : Wn;
721
- return on(e, this, n, t.cache.create(), t.serializer);
673
+ function _i(e, t) {
674
+ var r = e.length === 1 ? vi : qr;
675
+ return Yr(e, this, r, t.cache.create(), t.serializer);
722
676
  }
723
- function bi(e, t) {
724
- return on(e, this, Wn, t.cache.create(), t.serializer);
677
+ function Ei(e, t) {
678
+ return Yr(e, this, qr, t.cache.create(), t.serializer);
725
679
  }
726
- function gi(e, t) {
727
- return on(e, this, zn, t.cache.create(), t.serializer);
728
- }
729
- var yi = function() {
680
+ var xi = function() {
730
681
  return JSON.stringify(arguments);
731
- }, vi = (
682
+ }, wi = (
732
683
  /** @class */
733
684
  function() {
734
685
  function e() {
@@ -736,73 +687,82 @@ var yi = function() {
736
687
  }
737
688
  return e.prototype.get = function(t) {
738
689
  return this.cache[t];
739
- }, e.prototype.set = function(t, n) {
740
- this.cache[t] = n;
690
+ }, e.prototype.set = function(t, r) {
691
+ this.cache[t] = r;
741
692
  }, e;
742
693
  }()
743
- ), _i = {
694
+ ), Si = {
744
695
  create: function() {
745
- return new vi();
696
+ return new wi();
746
697
  }
747
- }, Nt = {
748
- variadic: bi,
749
- monadic: gi
750
- }, H;
698
+ }, Ut = {
699
+ variadic: Ei
700
+ }, Et = function() {
701
+ return Et = Object.assign || function(t) {
702
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
703
+ r = arguments[n];
704
+ for (var o in r)
705
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
706
+ }
707
+ return t;
708
+ }, Et.apply(this, arguments);
709
+ };
710
+ var H;
751
711
  (function(e) {
752
712
  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";
753
713
  })(H || (H = {}));
754
- var G;
714
+ var F;
755
715
  (function(e) {
756
716
  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";
757
- })(G || (G = {}));
758
- var $e;
717
+ })(F || (F = {}));
718
+ var ke;
759
719
  (function(e) {
760
720
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
761
- })($e || ($e = {}));
762
- function dn(e) {
763
- return e.type === G.literal;
721
+ })(ke || (ke = {}));
722
+ function br(e) {
723
+ return e.type === F.literal;
764
724
  }
765
- function Ei(e) {
766
- return e.type === G.argument;
725
+ function Ti(e) {
726
+ return e.type === F.argument;
767
727
  }
768
- function Zn(e) {
769
- return e.type === G.number;
728
+ function Qr(e) {
729
+ return e.type === F.number;
770
730
  }
771
- function qn(e) {
772
- return e.type === G.date;
731
+ function Jr(e) {
732
+ return e.type === F.date;
773
733
  }
774
- function Yn(e) {
775
- return e.type === G.time;
734
+ function Kr(e) {
735
+ return e.type === F.time;
776
736
  }
777
- function Qn(e) {
778
- return e.type === G.select;
737
+ function en(e) {
738
+ return e.type === F.select;
779
739
  }
780
- function Jn(e) {
781
- return e.type === G.plural;
740
+ function tn(e) {
741
+ return e.type === F.plural;
782
742
  }
783
- function xi(e) {
784
- return e.type === G.pound;
743
+ function Bi(e) {
744
+ return e.type === F.pound;
785
745
  }
786
- function Kn(e) {
787
- return e.type === G.tag;
746
+ function rn(e) {
747
+ return e.type === F.tag;
788
748
  }
789
- function er(e) {
790
- return !!(e && typeof e == "object" && e.type === $e.number);
749
+ function nn(e) {
750
+ return !!(e && typeof e == "object" && e.type === ke.number);
791
751
  }
792
- function zt(e) {
793
- return !!(e && typeof e == "object" && e.type === $e.dateTime);
752
+ function Wt(e) {
753
+ return !!(e && typeof e == "object" && e.type === ke.dateTime);
794
754
  }
795
- var tr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, wi = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
796
- function Si(e) {
755
+ var on = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ai = /(?:[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;
756
+ function Ci(e) {
797
757
  var t = {};
798
- return e.replace(wi, function(n) {
799
- var r = n.length;
800
- switch (n[0]) {
758
+ return e.replace(Ai, function(r) {
759
+ var n = r.length;
760
+ switch (r[0]) {
801
761
  case "G":
802
- t.era = r === 4 ? "long" : r === 5 ? "narrow" : "short";
762
+ t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
803
763
  break;
804
764
  case "y":
805
- t.year = r === 2 ? "2-digit" : "numeric";
765
+ t.year = n === 2 ? "2-digit" : "numeric";
806
766
  break;
807
767
  case "Y":
808
768
  case "u":
@@ -814,30 +774,30 @@ function Si(e) {
814
774
  throw new RangeError("`q/Q` (quarter) patterns are not supported");
815
775
  case "M":
816
776
  case "L":
817
- t.month = ["numeric", "2-digit", "short", "long", "narrow"][r - 1];
777
+ t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
818
778
  break;
819
779
  case "w":
820
780
  case "W":
821
781
  throw new RangeError("`w/W` (week) patterns are not supported");
822
782
  case "d":
823
- t.day = ["numeric", "2-digit"][r - 1];
783
+ t.day = ["numeric", "2-digit"][n - 1];
824
784
  break;
825
785
  case "D":
826
786
  case "F":
827
787
  case "g":
828
788
  throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
829
789
  case "E":
830
- t.weekday = r === 4 ? "long" : r === 5 ? "narrow" : "short";
790
+ t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
831
791
  break;
832
792
  case "e":
833
- if (r < 4)
793
+ if (n < 4)
834
794
  throw new RangeError("`e..eee` (weekday) patterns are not supported");
835
- t.weekday = ["short", "long", "narrow", "short"][r - 4];
795
+ t.weekday = ["short", "long", "narrow", "short"][n - 4];
836
796
  break;
837
797
  case "c":
838
- if (r < 4)
798
+ if (n < 4)
839
799
  throw new RangeError("`c..ccc` (weekday) patterns are not supported");
840
- t.weekday = ["short", "long", "narrow", "short"][r - 4];
800
+ t.weekday = ["short", "long", "narrow", "short"][n - 4];
841
801
  break;
842
802
  case "a":
843
803
  t.hour12 = !0;
@@ -846,32 +806,32 @@ function Si(e) {
846
806
  case "B":
847
807
  throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
848
808
  case "h":
849
- t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][r - 1];
809
+ t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
850
810
  break;
851
811
  case "H":
852
- t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][r - 1];
812
+ t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
853
813
  break;
854
814
  case "K":
855
- t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][r - 1];
815
+ t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
856
816
  break;
857
817
  case "k":
858
- t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][r - 1];
818
+ t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
859
819
  break;
860
820
  case "j":
861
821
  case "J":
862
822
  case "C":
863
823
  throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
864
824
  case "m":
865
- t.minute = ["numeric", "2-digit"][r - 1];
825
+ t.minute = ["numeric", "2-digit"][n - 1];
866
826
  break;
867
827
  case "s":
868
- t.second = ["numeric", "2-digit"][r - 1];
828
+ t.second = ["numeric", "2-digit"][n - 1];
869
829
  break;
870
830
  case "S":
871
831
  case "A":
872
832
  throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
873
833
  case "z":
874
- t.timeZoneName = r < 4 ? "short" : "long";
834
+ t.timeZoneName = n < 4 ? "short" : "long";
875
835
  break;
876
836
  case "Z":
877
837
  case "O":
@@ -884,14 +844,24 @@ function Si(e) {
884
844
  return "";
885
845
  }), t;
886
846
  }
887
- var Ti = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
888
- function Bi(e) {
847
+ var $ = function() {
848
+ return $ = Object.assign || function(t) {
849
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
850
+ r = arguments[n];
851
+ for (var o in r)
852
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
853
+ }
854
+ return t;
855
+ }, $.apply(this, arguments);
856
+ };
857
+ var Hi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
858
+ function Oi(e) {
889
859
  if (e.length === 0)
890
860
  throw new Error("Number skeleton cannot be empty");
891
- for (var t = e.split(Ti).filter(function(m) {
861
+ for (var t = e.split(Hi).filter(function(m) {
892
862
  return m.length > 0;
893
- }), n = [], r = 0, i = t; r < i.length; r++) {
894
- var o = i[r], s = o.split("/");
863
+ }), r = [], n = 0, i = t; n < i.length; n++) {
864
+ var o = i[n], s = o.split("/");
895
865
  if (s.length === 0)
896
866
  throw new Error("Invalid number skeleton");
897
867
  for (var a = s[0], l = s.slice(1), u = 0, f = l; u < f.length; u++) {
@@ -899,21 +869,21 @@ function Bi(e) {
899
869
  if (b.length === 0)
900
870
  throw new Error("Invalid number skeleton");
901
871
  }
902
- n.push({ stem: a, options: l });
872
+ r.push({ stem: a, options: l });
903
873
  }
904
- return n;
874
+ return r;
905
875
  }
906
- function Ai(e) {
876
+ function Pi(e) {
907
877
  return e.replace(/^(.*?)-/, "");
908
878
  }
909
- var pn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, nr = /^(@+)?(\+|#+)?[rs]?$/g, Ci = /(\*)(0+)|(#+)(0+)|(0+)/g, rr = /^(0+)$/;
910
- function mn(e) {
879
+ var gr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, an = /^(@+)?(\+|#+)?[rs]?$/g, Ri = /(\*)(0+)|(#+)(0+)|(0+)/g, sn = /^(0+)$/;
880
+ function yr(e) {
911
881
  var t = {};
912
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(nr, function(n, r, i) {
913
- return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
882
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(an, function(r, n, i) {
883
+ return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
914
884
  }), t;
915
885
  }
916
- function ir(e) {
886
+ function un(e) {
917
887
  switch (e) {
918
888
  case "sign-auto":
919
889
  return {
@@ -953,27 +923,27 @@ function ir(e) {
953
923
  };
954
924
  }
955
925
  }
956
- function Hi(e) {
926
+ function Mi(e) {
957
927
  var t;
958
928
  if (e[0] === "E" && e[1] === "E" ? (t = {
959
929
  notation: "engineering"
960
930
  }, e = e.slice(2)) : e[0] === "E" && (t = {
961
931
  notation: "scientific"
962
932
  }, e = e.slice(1)), t) {
963
- var n = e.slice(0, 2);
964
- if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !rr.test(e))
933
+ var r = e.slice(0, 2);
934
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !sn.test(e))
965
935
  throw new Error("Malformed concise eng/scientific notation");
966
936
  t.minimumIntegerDigits = e.length;
967
937
  }
968
938
  return t;
969
939
  }
970
- function bn(e) {
971
- var t = {}, n = ir(e);
972
- return n || t;
940
+ function vr(e) {
941
+ var t = {}, r = un(e);
942
+ return r || t;
973
943
  }
974
- function Oi(e) {
975
- for (var t = {}, n = 0, r = e; n < r.length; n++) {
976
- var i = r[n];
944
+ function Li(e) {
945
+ for (var t = {}, r = 0, n = e; r < n.length; r++) {
946
+ var i = n[r];
977
947
  switch (i.stem) {
978
948
  case "percent":
979
949
  case "%":
@@ -995,7 +965,7 @@ function Oi(e) {
995
965
  continue;
996
966
  case "measure-unit":
997
967
  case "unit":
998
- t.style = "unit", t.unit = Ai(i.options[0]);
968
+ t.style = "unit", t.unit = Pi(i.options[0]);
999
969
  continue;
1000
970
  case "compact-short":
1001
971
  case "K":
@@ -1006,13 +976,13 @@ function Oi(e) {
1006
976
  t.notation = "compact", t.compactDisplay = "long";
1007
977
  continue;
1008
978
  case "scientific":
1009
- t = L(L(L({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1010
- return L(L({}, l), bn(u));
979
+ t = $($($({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
980
+ return $($({}, l), vr(u));
1011
981
  }, {}));
1012
982
  continue;
1013
983
  case "engineering":
1014
- t = L(L(L({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1015
- return L(L({}, l), bn(u));
984
+ t = $($($({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
985
+ return $($({}, l), vr(u));
1016
986
  }, {}));
1017
987
  continue;
1018
988
  case "notation-simple":
@@ -1057,7 +1027,7 @@ function Oi(e) {
1057
1027
  case "integer-width":
1058
1028
  if (i.options.length > 1)
1059
1029
  throw new RangeError("integer-width stems only accept a single optional option");
1060
- i.options[0].replace(Ci, function(l, u, f, b, m, w) {
1030
+ i.options[0].replace(Ri, function(l, u, f, b, m, w) {
1061
1031
  if (u)
1062
1032
  t.minimumIntegerDigits = f.length;
1063
1033
  else {
@@ -1070,28 +1040,28 @@ function Oi(e) {
1070
1040
  });
1071
1041
  continue;
1072
1042
  }
1073
- if (rr.test(i.stem)) {
1043
+ if (sn.test(i.stem)) {
1074
1044
  t.minimumIntegerDigits = i.stem.length;
1075
1045
  continue;
1076
1046
  }
1077
- if (pn.test(i.stem)) {
1047
+ if (gr.test(i.stem)) {
1078
1048
  if (i.options.length > 1)
1079
1049
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1080
- i.stem.replace(pn, function(l, u, f, b, m, w) {
1050
+ i.stem.replace(gr, function(l, u, f, b, m, w) {
1081
1051
  return f === "*" ? t.minimumFractionDigits = u.length : b && b[0] === "#" ? t.maximumFractionDigits = b.length : m && w ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + w.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1082
1052
  });
1083
1053
  var o = i.options[0];
1084
- o === "w" ? t = L(L({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = L(L({}, t), mn(o)));
1054
+ o === "w" ? t = $($({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = $($({}, t), yr(o)));
1085
1055
  continue;
1086
1056
  }
1087
- if (nr.test(i.stem)) {
1088
- t = L(L({}, t), mn(i.stem));
1057
+ if (an.test(i.stem)) {
1058
+ t = $($({}, t), yr(i.stem));
1089
1059
  continue;
1090
1060
  }
1091
- var s = ir(i.stem);
1092
- s && (t = L(L({}, t), s));
1093
- var a = Hi(i.stem);
1094
- a && (t = L(L({}, t), a));
1061
+ var s = un(i.stem);
1062
+ s && (t = $($({}, t), s));
1063
+ var a = Mi(i.stem);
1064
+ a && (t = $($({}, t), a));
1095
1065
  }
1096
1066
  return t;
1097
1067
  }
@@ -2510,23 +2480,23 @@ var dt = {
2510
2480
  "h"
2511
2481
  ]
2512
2482
  };
2513
- function Mi(e, t) {
2514
- for (var n = "", r = 0; r < e.length; r++) {
2515
- var i = e.charAt(r);
2483
+ function Ni(e, t) {
2484
+ for (var r = "", n = 0; n < e.length; n++) {
2485
+ var i = e.charAt(n);
2516
2486
  if (i === "j") {
2517
- for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2518
- o++, r++;
2519
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Ri(t);
2487
+ for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2488
+ o++, n++;
2489
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Ii(t);
2520
2490
  for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2521
- n += l;
2491
+ r += l;
2522
2492
  for (; s-- > 0; )
2523
- n = u + n;
2493
+ r = u + r;
2524
2494
  } else
2525
- i === "J" ? n += "H" : n += i;
2495
+ i === "J" ? r += "H" : r += i;
2526
2496
  }
2527
- return n;
2497
+ return r;
2528
2498
  }
2529
- function Ri(e) {
2499
+ function Ii(e) {
2530
2500
  var t = e.hourCycle;
2531
2501
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2532
2502
  e.hourCycles && // @ts-ignore
@@ -2543,73 +2513,73 @@ function Ri(e) {
2543
2513
  default:
2544
2514
  throw new Error("Invalid hourCycle");
2545
2515
  }
2546
- var n = e.language, r;
2547
- n !== "root" && (r = e.maximize().region);
2548
- var i = dt[r || ""] || dt[n || ""] || dt["".concat(n, "-001")] || dt["001"];
2516
+ var r = e.language, n;
2517
+ r !== "root" && (n = e.maximize().region);
2518
+ var i = dt[n || ""] || dt[r || ""] || dt["".concat(r, "-001")] || dt["001"];
2549
2519
  return i[0];
2550
2520
  }
2551
- var It, Li = new RegExp("^".concat(tr.source, "*")), Pi = new RegExp("".concat(tr.source, "*$"));
2521
+ var Ft, Di = new RegExp("^".concat(on.source, "*")), Ui = new RegExp("".concat(on.source, "*$"));
2552
2522
  function O(e, t) {
2553
2523
  return { start: e, end: t };
2554
2524
  }
2555
- var Ni = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ii = !!String.fromCodePoint, Di = !!Object.fromEntries, Ui = !!String.prototype.codePointAt, Fi = !!String.prototype.trimStart, Gi = !!String.prototype.trimEnd, ji = !!Number.isSafeInteger, ki = ji ? Number.isSafeInteger : function(e) {
2525
+ var Fi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Gi = !!String.fromCodePoint, ji = !!Object.fromEntries, ki = !!String.prototype.codePointAt, $i = !!String.prototype.trimStart, Vi = !!String.prototype.trimEnd, Xi = !!Number.isSafeInteger, zi = Xi ? Number.isSafeInteger : function(e) {
2556
2526
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2557
- }, Wt = !0;
2527
+ }, Zt = !0;
2558
2528
  try {
2559
- var $i = ar("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2560
- Wt = ((It = $i.exec("a")) === null || It === void 0 ? void 0 : It[0]) === "a";
2529
+ var Wi = cn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2530
+ Zt = ((Ft = Wi.exec("a")) === null || Ft === void 0 ? void 0 : Ft[0]) === "a";
2561
2531
  } catch {
2562
- Wt = !1;
2532
+ Zt = !1;
2563
2533
  }
2564
- var gn = Ni ? (
2534
+ var _r = Fi ? (
2565
2535
  // Native
2566
- function(t, n, r) {
2567
- return t.startsWith(n, r);
2536
+ function(t, r, n) {
2537
+ return t.startsWith(r, n);
2568
2538
  }
2569
2539
  ) : (
2570
2540
  // For IE11
2571
- function(t, n, r) {
2572
- return t.slice(r, r + n.length) === n;
2541
+ function(t, r, n) {
2542
+ return t.slice(n, n + r.length) === r;
2573
2543
  }
2574
- ), Zt = Ii ? String.fromCodePoint : (
2544
+ ), qt = Gi ? String.fromCodePoint : (
2575
2545
  // IE11
2576
2546
  function() {
2577
- for (var t = [], n = 0; n < arguments.length; n++)
2578
- t[n] = arguments[n];
2579
- for (var r = "", i = t.length, o = 0, s; i > o; ) {
2547
+ for (var t = [], r = 0; r < arguments.length; r++)
2548
+ t[r] = arguments[r];
2549
+ for (var n = "", i = t.length, o = 0, s; i > o; ) {
2580
2550
  if (s = t[o++], s > 1114111)
2581
2551
  throw RangeError(s + " is not a valid code point");
2582
- r += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
2552
+ n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
2583
2553
  }
2584
- return r;
2554
+ return n;
2585
2555
  }
2586
- ), yn = (
2556
+ ), Er = (
2587
2557
  // native
2588
- Di ? Object.fromEntries : (
2558
+ ji ? Object.fromEntries : (
2589
2559
  // Ponyfill
2590
2560
  function(t) {
2591
- for (var n = {}, r = 0, i = t; r < i.length; r++) {
2592
- var o = i[r], s = o[0], a = o[1];
2593
- n[s] = a;
2561
+ for (var r = {}, n = 0, i = t; n < i.length; n++) {
2562
+ var o = i[n], s = o[0], a = o[1];
2563
+ r[s] = a;
2594
2564
  }
2595
- return n;
2565
+ return r;
2596
2566
  }
2597
2567
  )
2598
- ), or = Ui ? (
2568
+ ), ln = ki ? (
2599
2569
  // Native
2600
- function(t, n) {
2601
- return t.codePointAt(n);
2570
+ function(t, r) {
2571
+ return t.codePointAt(r);
2602
2572
  }
2603
2573
  ) : (
2604
2574
  // IE 11
2605
- function(t, n) {
2606
- var r = t.length;
2607
- if (!(n < 0 || n >= r)) {
2608
- var i = t.charCodeAt(n), o;
2609
- return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2575
+ function(t, r) {
2576
+ var n = t.length;
2577
+ if (!(r < 0 || r >= n)) {
2578
+ var i = t.charCodeAt(r), o;
2579
+ return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2610
2580
  }
2611
2581
  }
2612
- ), Vi = Fi ? (
2582
+ ), Zi = $i ? (
2613
2583
  // Native
2614
2584
  function(t) {
2615
2585
  return t.trimStart();
@@ -2617,9 +2587,9 @@ var gn = Ni ? (
2617
2587
  ) : (
2618
2588
  // Ponyfill
2619
2589
  function(t) {
2620
- return t.replace(Li, "");
2590
+ return t.replace(Di, "");
2621
2591
  }
2622
- ), Xi = Gi ? (
2592
+ ), qi = Vi ? (
2623
2593
  // Native
2624
2594
  function(t) {
2625
2595
  return t.trimEnd();
@@ -2627,69 +2597,69 @@ var gn = Ni ? (
2627
2597
  ) : (
2628
2598
  // Ponyfill
2629
2599
  function(t) {
2630
- return t.replace(Pi, "");
2600
+ return t.replace(Ui, "");
2631
2601
  }
2632
2602
  );
2633
- function ar(e, t) {
2603
+ function cn(e, t) {
2634
2604
  return new RegExp(e, t);
2635
2605
  }
2636
- var qt;
2637
- if (Wt) {
2638
- var vn = ar("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2639
- qt = function(t, n) {
2640
- var r;
2641
- vn.lastIndex = n;
2642
- var i = vn.exec(t);
2643
- return (r = i[1]) !== null && r !== void 0 ? r : "";
2606
+ var Yt;
2607
+ if (Zt) {
2608
+ var xr = cn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2609
+ Yt = function(t, r) {
2610
+ var n;
2611
+ xr.lastIndex = r;
2612
+ var i = xr.exec(t);
2613
+ return (n = i[1]) !== null && n !== void 0 ? n : "";
2644
2614
  };
2645
2615
  } else
2646
- qt = function(t, n) {
2647
- for (var r = []; ; ) {
2648
- var i = or(t, n);
2649
- if (i === void 0 || sr(i) || qi(i))
2616
+ Yt = function(t, r) {
2617
+ for (var n = []; ; ) {
2618
+ var i = ln(t, r);
2619
+ if (i === void 0 || hn(i) || Ki(i))
2650
2620
  break;
2651
- r.push(i), n += i >= 65536 ? 2 : 1;
2621
+ n.push(i), r += i >= 65536 ? 2 : 1;
2652
2622
  }
2653
- return Zt.apply(void 0, r);
2623
+ return qt.apply(void 0, n);
2654
2624
  };
2655
- var zi = (
2625
+ var Yi = (
2656
2626
  /** @class */
2657
2627
  function() {
2658
- function e(t, n) {
2659
- n === void 0 && (n = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!n.ignoreTag, this.locale = n.locale, this.requiresOtherClause = !!n.requiresOtherClause, this.shouldParseSkeletons = !!n.shouldParseSkeletons;
2628
+ function e(t, r) {
2629
+ r === void 0 && (r = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
2660
2630
  }
2661
2631
  return e.prototype.parse = function() {
2662
2632
  if (this.offset() !== 0)
2663
2633
  throw Error("parser can only be used once");
2664
2634
  return this.parseMessage(0, "", !1);
2665
- }, e.prototype.parseMessage = function(t, n, r) {
2635
+ }, e.prototype.parseMessage = function(t, r, n) {
2666
2636
  for (var i = []; !this.isEOF(); ) {
2667
2637
  var o = this.char();
2668
2638
  if (o === 123) {
2669
- var s = this.parseArgument(t, r);
2639
+ var s = this.parseArgument(t, n);
2670
2640
  if (s.err)
2671
2641
  return s;
2672
2642
  i.push(s.val);
2673
2643
  } else {
2674
2644
  if (o === 125 && t > 0)
2675
2645
  break;
2676
- if (o === 35 && (n === "plural" || n === "selectordinal")) {
2646
+ if (o === 35 && (r === "plural" || r === "selectordinal")) {
2677
2647
  var a = this.clonePosition();
2678
2648
  this.bump(), i.push({
2679
- type: G.pound,
2649
+ type: F.pound,
2680
2650
  location: O(a, this.clonePosition())
2681
2651
  });
2682
2652
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2683
- if (r)
2653
+ if (n)
2684
2654
  break;
2685
2655
  return this.error(H.UNMATCHED_CLOSING_TAG, O(this.clonePosition(), this.clonePosition()));
2686
- } else if (o === 60 && !this.ignoreTag && Yt(this.peek() || 0)) {
2687
- var s = this.parseTag(t, n);
2656
+ } else if (o === 60 && !this.ignoreTag && Qt(this.peek() || 0)) {
2657
+ var s = this.parseTag(t, r);
2688
2658
  if (s.err)
2689
2659
  return s;
2690
2660
  i.push(s.val);
2691
2661
  } else {
2692
- var s = this.parseLiteral(t, n);
2662
+ var s = this.parseLiteral(t, r);
2693
2663
  if (s.err)
2694
2664
  return s;
2695
2665
  i.push(s.val);
@@ -2697,54 +2667,54 @@ var zi = (
2697
2667
  }
2698
2668
  }
2699
2669
  return { val: i, err: null };
2700
- }, e.prototype.parseTag = function(t, n) {
2701
- var r = this.clonePosition();
2670
+ }, e.prototype.parseTag = function(t, r) {
2671
+ var n = this.clonePosition();
2702
2672
  this.bump();
2703
2673
  var i = this.parseTagName();
2704
2674
  if (this.bumpSpace(), this.bumpIf("/>"))
2705
2675
  return {
2706
2676
  val: {
2707
- type: G.literal,
2677
+ type: F.literal,
2708
2678
  value: "<".concat(i, "/>"),
2709
- location: O(r, this.clonePosition())
2679
+ location: O(n, this.clonePosition())
2710
2680
  },
2711
2681
  err: null
2712
2682
  };
2713
2683
  if (this.bumpIf(">")) {
2714
- var o = this.parseMessage(t + 1, n, !0);
2684
+ var o = this.parseMessage(t + 1, r, !0);
2715
2685
  if (o.err)
2716
2686
  return o;
2717
2687
  var s = o.val, a = this.clonePosition();
2718
2688
  if (this.bumpIf("</")) {
2719
- if (this.isEOF() || !Yt(this.char()))
2689
+ if (this.isEOF() || !Qt(this.char()))
2720
2690
  return this.error(H.INVALID_TAG, O(a, this.clonePosition()));
2721
2691
  var l = this.clonePosition(), u = this.parseTagName();
2722
2692
  return i !== u ? this.error(H.UNMATCHED_CLOSING_TAG, O(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2723
2693
  val: {
2724
- type: G.tag,
2694
+ type: F.tag,
2725
2695
  value: i,
2726
2696
  children: s,
2727
- location: O(r, this.clonePosition())
2697
+ location: O(n, this.clonePosition())
2728
2698
  },
2729
2699
  err: null
2730
2700
  } : this.error(H.INVALID_TAG, O(a, this.clonePosition())));
2731
2701
  } else
2732
- return this.error(H.UNCLOSED_TAG, O(r, this.clonePosition()));
2702
+ return this.error(H.UNCLOSED_TAG, O(n, this.clonePosition()));
2733
2703
  } else
2734
- return this.error(H.INVALID_TAG, O(r, this.clonePosition()));
2704
+ return this.error(H.INVALID_TAG, O(n, this.clonePosition()));
2735
2705
  }, e.prototype.parseTagName = function() {
2736
2706
  var t = this.offset();
2737
- for (this.bump(); !this.isEOF() && Zi(this.char()); )
2707
+ for (this.bump(); !this.isEOF() && Ji(this.char()); )
2738
2708
  this.bump();
2739
2709
  return this.message.slice(t, this.offset());
2740
- }, e.prototype.parseLiteral = function(t, n) {
2741
- for (var r = this.clonePosition(), i = ""; ; ) {
2742
- var o = this.tryParseQuote(n);
2710
+ }, e.prototype.parseLiteral = function(t, r) {
2711
+ for (var n = this.clonePosition(), i = ""; ; ) {
2712
+ var o = this.tryParseQuote(r);
2743
2713
  if (o) {
2744
2714
  i += o;
2745
2715
  continue;
2746
2716
  }
2747
- var s = this.tryParseUnquoted(t, n);
2717
+ var s = this.tryParseUnquoted(t, r);
2748
2718
  if (s) {
2749
2719
  i += s;
2750
2720
  continue;
@@ -2756,14 +2726,14 @@ var zi = (
2756
2726
  }
2757
2727
  break;
2758
2728
  }
2759
- var l = O(r, this.clonePosition());
2729
+ var l = O(n, this.clonePosition());
2760
2730
  return {
2761
- val: { type: G.literal, value: i, location: l },
2731
+ val: { type: F.literal, value: i, location: l },
2762
2732
  err: null
2763
2733
  };
2764
2734
  }, e.prototype.tryParseLeftAngleBracket = function() {
2765
2735
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2766
- !Wi(this.peek() || 0)) ? (this.bump(), "<") : null;
2736
+ !Qi(this.peek() || 0)) ? (this.bump(), "<") : null;
2767
2737
  }, e.prototype.tryParseQuote = function(t) {
2768
2738
  if (this.isEOF() || this.char() !== 39)
2769
2739
  return null;
@@ -2783,59 +2753,59 @@ var zi = (
2783
2753
  return null;
2784
2754
  }
2785
2755
  this.bump();
2786
- var n = [this.char()];
2756
+ var r = [this.char()];
2787
2757
  for (this.bump(); !this.isEOF(); ) {
2788
- var r = this.char();
2789
- if (r === 39)
2758
+ var n = this.char();
2759
+ if (n === 39)
2790
2760
  if (this.peek() === 39)
2791
- n.push(39), this.bump();
2761
+ r.push(39), this.bump();
2792
2762
  else {
2793
2763
  this.bump();
2794
2764
  break;
2795
2765
  }
2796
2766
  else
2797
- n.push(r);
2767
+ r.push(n);
2798
2768
  this.bump();
2799
2769
  }
2800
- return Zt.apply(void 0, n);
2801
- }, e.prototype.tryParseUnquoted = function(t, n) {
2770
+ return qt.apply(void 0, r);
2771
+ }, e.prototype.tryParseUnquoted = function(t, r) {
2802
2772
  if (this.isEOF())
2803
2773
  return null;
2804
- var r = this.char();
2805
- return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Zt(r));
2806
- }, e.prototype.parseArgument = function(t, n) {
2807
- var r = this.clonePosition();
2774
+ var n = this.char();
2775
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), qt(n));
2776
+ }, e.prototype.parseArgument = function(t, r) {
2777
+ var n = this.clonePosition();
2808
2778
  if (this.bump(), this.bumpSpace(), this.isEOF())
2809
- return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(r, this.clonePosition()));
2779
+ return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(n, this.clonePosition()));
2810
2780
  if (this.char() === 125)
2811
- return this.bump(), this.error(H.EMPTY_ARGUMENT, O(r, this.clonePosition()));
2781
+ return this.bump(), this.error(H.EMPTY_ARGUMENT, O(n, this.clonePosition()));
2812
2782
  var i = this.parseIdentifierIfPossible().value;
2813
2783
  if (!i)
2814
- return this.error(H.MALFORMED_ARGUMENT, O(r, this.clonePosition()));
2784
+ return this.error(H.MALFORMED_ARGUMENT, O(n, this.clonePosition()));
2815
2785
  if (this.bumpSpace(), this.isEOF())
2816
- return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(r, this.clonePosition()));
2786
+ return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(n, this.clonePosition()));
2817
2787
  switch (this.char()) {
2818
2788
  case 125:
2819
2789
  return this.bump(), {
2820
2790
  val: {
2821
- type: G.argument,
2791
+ type: F.argument,
2822
2792
  // value does not include the opening and closing braces.
2823
2793
  value: i,
2824
- location: O(r, this.clonePosition())
2794
+ location: O(n, this.clonePosition())
2825
2795
  },
2826
2796
  err: null
2827
2797
  };
2828
2798
  case 44:
2829
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2799
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2830
2800
  default:
2831
- return this.error(H.MALFORMED_ARGUMENT, O(r, this.clonePosition()));
2801
+ return this.error(H.MALFORMED_ARGUMENT, O(n, this.clonePosition()));
2832
2802
  }
2833
2803
  }, e.prototype.parseIdentifierIfPossible = function() {
2834
- var t = this.clonePosition(), n = this.offset(), r = qt(this.message, n), i = n + r.length;
2804
+ var t = this.clonePosition(), r = this.offset(), n = Yt(this.message, r), i = r + n.length;
2835
2805
  this.bumpTo(i);
2836
2806
  var o = this.clonePosition(), s = O(t, o);
2837
- return { value: r, location: s };
2838
- }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
2807
+ return { value: n, location: s };
2808
+ }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2839
2809
  var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
2840
2810
  switch (a) {
2841
2811
  case "":
@@ -2850,7 +2820,7 @@ var zi = (
2850
2820
  var f = this.clonePosition(), b = this.parseSimpleArgStyleIfPossible();
2851
2821
  if (b.err)
2852
2822
  return b;
2853
- var m = Xi(b.val);
2823
+ var m = qi(b.val);
2854
2824
  if (m.length === 0)
2855
2825
  return this.error(H.EXPECT_ARGUMENT_STYLE, O(this.clonePosition(), this.clonePosition()));
2856
2826
  var w = O(f, this.clonePosition());
@@ -2860,35 +2830,35 @@ var zi = (
2860
2830
  if (_.err)
2861
2831
  return _;
2862
2832
  var A = O(i, this.clonePosition());
2863
- if (u && gn(u?.style, "::", 0)) {
2864
- var I = Vi(u.style.slice(2));
2833
+ if (u && _r(u?.style, "::", 0)) {
2834
+ var N = Zi(u.style.slice(2));
2865
2835
  if (a === "number") {
2866
- var b = this.parseNumberSkeletonFromString(I, u.styleLocation);
2836
+ var b = this.parseNumberSkeletonFromString(N, u.styleLocation);
2867
2837
  return b.err ? b : {
2868
- val: { type: G.number, value: r, location: A, style: b.val },
2838
+ val: { type: F.number, value: n, location: A, style: b.val },
2869
2839
  err: null
2870
2840
  };
2871
2841
  } else {
2872
- if (I.length === 0)
2842
+ if (N.length === 0)
2873
2843
  return this.error(H.EXPECT_DATE_TIME_SKELETON, A);
2874
- var W = I;
2875
- this.locale && (W = Mi(I, this.locale));
2844
+ var W = N;
2845
+ this.locale && (W = Ni(N, this.locale));
2876
2846
  var m = {
2877
- type: $e.dateTime,
2847
+ type: ke.dateTime,
2878
2848
  pattern: W,
2879
2849
  location: u.styleLocation,
2880
- parsedOptions: this.shouldParseSkeletons ? Si(W) : {}
2881
- }, V = a === "date" ? G.date : G.time;
2850
+ parsedOptions: this.shouldParseSkeletons ? Ci(W) : {}
2851
+ }, V = a === "date" ? F.date : F.time;
2882
2852
  return {
2883
- val: { type: V, value: r, location: A, style: m },
2853
+ val: { type: V, value: n, location: A, style: m },
2884
2854
  err: null
2885
2855
  };
2886
2856
  }
2887
2857
  }
2888
2858
  return {
2889
2859
  val: {
2890
- type: a === "number" ? G.number : a === "date" ? G.date : G.time,
2891
- value: r,
2860
+ type: a === "number" ? F.number : a === "date" ? F.date : F.time,
2861
+ value: n,
2892
2862
  location: A,
2893
2863
  style: (o = u?.style) !== null && o !== void 0 ? o : null
2894
2864
  },
@@ -2900,19 +2870,19 @@ var zi = (
2900
2870
  case "select": {
2901
2871
  var R = this.clonePosition();
2902
2872
  if (this.bumpSpace(), !this.bumpIf(","))
2903
- return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS, O(R, L({}, R)));
2873
+ return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS, O(R, Et({}, R)));
2904
2874
  this.bumpSpace();
2905
- var D = this.parseIdentifierIfPossible(), k = 0;
2906
- if (a !== "select" && D.value === "offset") {
2875
+ var I = this.parseIdentifierIfPossible(), j = 0;
2876
+ if (a !== "select" && I.value === "offset") {
2907
2877
  if (!this.bumpIf(":"))
2908
2878
  return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O(this.clonePosition(), this.clonePosition()));
2909
2879
  this.bumpSpace();
2910
2880
  var b = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2911
2881
  if (b.err)
2912
2882
  return b;
2913
- this.bumpSpace(), D = this.parseIdentifierIfPossible(), k = b.val;
2883
+ this.bumpSpace(), I = this.parseIdentifierIfPossible(), j = b.val;
2914
2884
  }
2915
- var oe = this.tryParsePluralOrSelectOptions(t, a, n, D);
2885
+ var oe = this.tryParsePluralOrSelectOptions(t, a, r, I);
2916
2886
  if (oe.err)
2917
2887
  return oe;
2918
2888
  var _ = this.tryParseArgumentClose(i);
@@ -2921,18 +2891,18 @@ var zi = (
2921
2891
  var Z = O(i, this.clonePosition());
2922
2892
  return a === "select" ? {
2923
2893
  val: {
2924
- type: G.select,
2925
- value: r,
2926
- options: yn(oe.val),
2894
+ type: F.select,
2895
+ value: n,
2896
+ options: Er(oe.val),
2927
2897
  location: Z
2928
2898
  },
2929
2899
  err: null
2930
2900
  } : {
2931
2901
  val: {
2932
- type: G.plural,
2933
- value: r,
2934
- options: yn(oe.val),
2935
- offset: k,
2902
+ type: F.plural,
2903
+ value: n,
2904
+ options: Er(oe.val),
2905
+ offset: j,
2936
2906
  pluralType: a === "plural" ? "cardinal" : "ordinal",
2937
2907
  location: Z
2938
2908
  },
@@ -2945,9 +2915,9 @@ var zi = (
2945
2915
  }, e.prototype.tryParseArgumentClose = function(t) {
2946
2916
  return this.isEOF() || this.char() !== 125 ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2947
2917
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2948
- for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
2949
- var r = this.char();
2950
- switch (r) {
2918
+ for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
2919
+ var n = this.char();
2920
+ switch (n) {
2951
2921
  case 39: {
2952
2922
  this.bump();
2953
2923
  var i = this.clonePosition();
@@ -2965,7 +2935,7 @@ var zi = (
2965
2935
  t -= 1;
2966
2936
  else
2967
2937
  return {
2968
- val: this.message.slice(n.offset, this.offset()),
2938
+ val: this.message.slice(r.offset, this.offset()),
2969
2939
  err: null
2970
2940
  };
2971
2941
  break;
@@ -2976,30 +2946,30 @@ var zi = (
2976
2946
  }
2977
2947
  }
2978
2948
  return {
2979
- val: this.message.slice(n.offset, this.offset()),
2949
+ val: this.message.slice(r.offset, this.offset()),
2980
2950
  err: null
2981
2951
  };
2982
- }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
2983
- var r = [];
2952
+ }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2953
+ var n = [];
2984
2954
  try {
2985
- r = Bi(t);
2955
+ n = Oi(t);
2986
2956
  } catch {
2987
- return this.error(H.INVALID_NUMBER_SKELETON, n);
2957
+ return this.error(H.INVALID_NUMBER_SKELETON, r);
2988
2958
  }
2989
2959
  return {
2990
2960
  val: {
2991
- type: $e.number,
2992
- tokens: r,
2993
- location: n,
2994
- parsedOptions: this.shouldParseSkeletons ? Oi(r) : {}
2961
+ type: ke.number,
2962
+ tokens: n,
2963
+ location: r,
2964
+ parsedOptions: this.shouldParseSkeletons ? Li(n) : {}
2995
2965
  },
2996
2966
  err: null
2997
2967
  };
2998
- }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
2968
+ }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
2999
2969
  for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, f = i.location; ; ) {
3000
2970
  if (u.length === 0) {
3001
2971
  var b = this.clonePosition();
3002
- if (n !== "select" && this.bumpIf("=")) {
2972
+ if (r !== "select" && this.bumpIf("=")) {
3003
2973
  var m = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_SELECTOR, H.INVALID_PLURAL_ARGUMENT_SELECTOR);
3004
2974
  if (m.err)
3005
2975
  return m;
@@ -3008,12 +2978,12 @@ var zi = (
3008
2978
  break;
3009
2979
  }
3010
2980
  if (l.has(u))
3011
- return this.error(n === "select" ? H.DUPLICATE_SELECT_ARGUMENT_SELECTOR : H.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
2981
+ return this.error(r === "select" ? H.DUPLICATE_SELECT_ARGUMENT_SELECTOR : H.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
3012
2982
  u === "other" && (s = !0), this.bumpSpace();
3013
2983
  var w = this.clonePosition();
3014
2984
  if (!this.bumpIf("{"))
3015
- return this.error(n === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, O(this.clonePosition(), this.clonePosition()));
3016
- var _ = this.parseMessage(t + 1, n, r);
2985
+ return this.error(r === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, O(this.clonePosition(), this.clonePosition()));
2986
+ var _ = this.parseMessage(t + 1, r, n);
3017
2987
  if (_.err)
3018
2988
  return _;
3019
2989
  var A = this.tryParseArgumentClose(w);
@@ -3027,10 +2997,10 @@ var zi = (
3027
2997
  }
3028
2998
  ]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, f = o.location;
3029
2999
  }
3030
- return a.length === 0 ? this.error(n === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR : H.EXPECT_PLURAL_ARGUMENT_SELECTOR, O(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(H.MISSING_OTHER_CLAUSE, O(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3031
- }, e.prototype.tryParseDecimalInteger = function(t, n) {
3032
- var r = 1, i = this.clonePosition();
3033
- this.bumpIf("+") || this.bumpIf("-") && (r = -1);
3000
+ return a.length === 0 ? this.error(r === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR : H.EXPECT_PLURAL_ARGUMENT_SELECTOR, O(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(H.MISSING_OTHER_CLAUSE, O(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3001
+ }, e.prototype.tryParseDecimalInteger = function(t, r) {
3002
+ var n = 1, i = this.clonePosition();
3003
+ this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3034
3004
  for (var o = !1, s = 0; !this.isEOF(); ) {
3035
3005
  var a = this.char();
3036
3006
  if (a >= 48 && a <= 57)
@@ -3039,7 +3009,7 @@ var zi = (
3039
3009
  break;
3040
3010
  }
3041
3011
  var l = O(i, this.clonePosition());
3042
- return o ? (s *= r, ki(s) ? { val: s, err: null } : this.error(n, l)) : this.error(t, l);
3012
+ return o ? (s *= n, zi(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
3043
3013
  }, e.prototype.offset = function() {
3044
3014
  return this.position.offset;
3045
3015
  }, e.prototype.isEOF = function() {
@@ -3054,17 +3024,17 @@ var zi = (
3054
3024
  var t = this.position.offset;
3055
3025
  if (t >= this.message.length)
3056
3026
  throw Error("out of bound");
3057
- var n = or(this.message, t);
3058
- if (n === void 0)
3027
+ var r = ln(this.message, t);
3028
+ if (r === void 0)
3059
3029
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3060
- return n;
3061
- }, e.prototype.error = function(t, n) {
3030
+ return r;
3031
+ }, e.prototype.error = function(t, r) {
3062
3032
  return {
3063
3033
  val: null,
3064
3034
  err: {
3065
3035
  kind: t,
3066
3036
  message: this.message,
3067
- location: n
3037
+ location: r
3068
3038
  }
3069
3039
  };
3070
3040
  }, e.prototype.bump = function() {
@@ -3073,129 +3043,129 @@ var zi = (
3073
3043
  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);
3074
3044
  }
3075
3045
  }, e.prototype.bumpIf = function(t) {
3076
- if (gn(this.message, t, this.offset())) {
3077
- for (var n = 0; n < t.length; n++)
3046
+ if (_r(this.message, t, this.offset())) {
3047
+ for (var r = 0; r < t.length; r++)
3078
3048
  this.bump();
3079
3049
  return !0;
3080
3050
  }
3081
3051
  return !1;
3082
3052
  }, e.prototype.bumpUntil = function(t) {
3083
- var n = this.offset(), r = this.message.indexOf(t, n);
3084
- return r >= 0 ? (this.bumpTo(r), !0) : (this.bumpTo(this.message.length), !1);
3053
+ var r = this.offset(), n = this.message.indexOf(t, r);
3054
+ return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
3085
3055
  }, e.prototype.bumpTo = function(t) {
3086
3056
  if (this.offset() > t)
3087
3057
  throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
3088
3058
  for (t = Math.min(t, this.message.length); ; ) {
3089
- var n = this.offset();
3090
- if (n === t)
3059
+ var r = this.offset();
3060
+ if (r === t)
3091
3061
  break;
3092
- if (n > t)
3062
+ if (r > t)
3093
3063
  throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3094
3064
  if (this.bump(), this.isEOF())
3095
3065
  break;
3096
3066
  }
3097
3067
  }, e.prototype.bumpSpace = function() {
3098
- for (; !this.isEOF() && sr(this.char()); )
3068
+ for (; !this.isEOF() && hn(this.char()); )
3099
3069
  this.bump();
3100
3070
  }, e.prototype.peek = function() {
3101
3071
  if (this.isEOF())
3102
3072
  return null;
3103
- var t = this.char(), n = this.offset(), r = this.message.charCodeAt(n + (t >= 65536 ? 2 : 1));
3104
- return r ?? null;
3073
+ var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3074
+ return n ?? null;
3105
3075
  }, e;
3106
3076
  }()
3107
3077
  );
3108
- function Yt(e) {
3078
+ function Qt(e) {
3109
3079
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3110
3080
  }
3111
- function Wi(e) {
3112
- return Yt(e) || e === 47;
3081
+ function Qi(e) {
3082
+ return Qt(e) || e === 47;
3113
3083
  }
3114
- function Zi(e) {
3084
+ function Ji(e) {
3115
3085
  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;
3116
3086
  }
3117
- function sr(e) {
3087
+ function hn(e) {
3118
3088
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3119
3089
  }
3120
- function qi(e) {
3090
+ function Ki(e) {
3121
3091
  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;
3122
3092
  }
3123
- function Qt(e) {
3093
+ function Jt(e) {
3124
3094
  e.forEach(function(t) {
3125
- if (delete t.location, Qn(t) || Jn(t))
3126
- for (var n in t.options)
3127
- delete t.options[n].location, Qt(t.options[n].value);
3095
+ if (delete t.location, en(t) || tn(t))
3096
+ for (var r in t.options)
3097
+ delete t.options[r].location, Jt(t.options[r].value);
3128
3098
  else
3129
- Zn(t) && er(t.style) || (qn(t) || Yn(t)) && zt(t.style) ? delete t.style.location : Kn(t) && Qt(t.children);
3099
+ Qr(t) && nn(t.style) || (Jr(t) || Kr(t)) && Wt(t.style) ? delete t.style.location : rn(t) && Jt(t.children);
3130
3100
  });
3131
3101
  }
3132
- function Yi(e, t) {
3133
- t === void 0 && (t = {}), t = L({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3134
- var n = new zi(e, t).parse();
3135
- if (n.err) {
3136
- var r = SyntaxError(H[n.err.kind]);
3137
- throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3102
+ function eo(e, t) {
3103
+ t === void 0 && (t = {}), t = Et({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3104
+ var r = new Yi(e, t).parse();
3105
+ if (r.err) {
3106
+ var n = SyntaxError(H[r.err.kind]);
3107
+ throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3138
3108
  }
3139
- return t?.captureLocation || Qt(n.val), n.val;
3109
+ return t?.captureLocation || Jt(r.val), r.val;
3140
3110
  }
3141
- var Ve;
3111
+ var $e;
3142
3112
  (function(e) {
3143
3113
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3144
- })(Ve || (Ve = {}));
3145
- var St = (
3114
+ })($e || ($e = {}));
3115
+ var Bt = (
3146
3116
  /** @class */
3147
3117
  function(e) {
3148
- Te(t, e);
3149
- function t(n, r, i) {
3150
- var o = e.call(this, n) || this;
3151
- return o.code = r, o.originalMessage = i, o;
3118
+ Tt(t, e);
3119
+ function t(r, n, i) {
3120
+ var o = e.call(this, r) || this;
3121
+ return o.code = n, o.originalMessage = i, o;
3152
3122
  }
3153
3123
  return t.prototype.toString = function() {
3154
3124
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3155
3125
  }, t;
3156
3126
  }(Error)
3157
- ), _n = (
3127
+ ), wr = (
3158
3128
  /** @class */
3159
3129
  function(e) {
3160
- Te(t, e);
3161
- function t(n, r, i, o) {
3162
- return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ve.INVALID_VALUE, o) || this;
3130
+ Tt(t, e);
3131
+ function t(r, n, i, o) {
3132
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), $e.INVALID_VALUE, o) || this;
3163
3133
  }
3164
3134
  return t;
3165
- }(St)
3166
- ), Qi = (
3135
+ }(Bt)
3136
+ ), to = (
3167
3137
  /** @class */
3168
3138
  function(e) {
3169
- Te(t, e);
3170
- function t(n, r, i) {
3171
- return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Ve.INVALID_VALUE, i) || this;
3139
+ Tt(t, e);
3140
+ function t(r, n, i) {
3141
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), $e.INVALID_VALUE, i) || this;
3172
3142
  }
3173
3143
  return t;
3174
- }(St)
3175
- ), Ji = (
3144
+ }(Bt)
3145
+ ), ro = (
3176
3146
  /** @class */
3177
3147
  function(e) {
3178
- Te(t, e);
3179
- function t(n, r) {
3180
- return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Ve.MISSING_VALUE, r) || this;
3148
+ Tt(t, e);
3149
+ function t(r, n) {
3150
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), $e.MISSING_VALUE, n) || this;
3181
3151
  }
3182
3152
  return t;
3183
- }(St)
3153
+ }(Bt)
3184
3154
  ), ie;
3185
3155
  (function(e) {
3186
3156
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3187
3157
  })(ie || (ie = {}));
3188
- function Ki(e) {
3189
- return e.length < 2 ? e : e.reduce(function(t, n) {
3190
- var r = t[t.length - 1];
3191
- return !r || r.type !== ie.literal || n.type !== ie.literal ? t.push(n) : r.value += n.value, t;
3158
+ function no(e) {
3159
+ return e.length < 2 ? e : e.reduce(function(t, r) {
3160
+ var n = t[t.length - 1];
3161
+ return !n || n.type !== ie.literal || r.type !== ie.literal ? t.push(r) : n.value += r.value, t;
3192
3162
  }, []);
3193
3163
  }
3194
- function eo(e) {
3164
+ function io(e) {
3195
3165
  return typeof e == "function";
3196
3166
  }
3197
- function bt(e, t, n, r, i, o, s) {
3198
- if (e.length === 1 && dn(e[0]))
3167
+ function bt(e, t, r, n, i, o, s) {
3168
+ if (e.length === 1 && br(e[0]))
3199
3169
  return [
3200
3170
  {
3201
3171
  type: ie.literal,
@@ -3204,155 +3174,155 @@ function bt(e, t, n, r, i, o, s) {
3204
3174
  ];
3205
3175
  for (var a = [], l = 0, u = e; l < u.length; l++) {
3206
3176
  var f = u[l];
3207
- if (dn(f)) {
3177
+ if (br(f)) {
3208
3178
  a.push({
3209
3179
  type: ie.literal,
3210
3180
  value: f.value
3211
3181
  });
3212
3182
  continue;
3213
3183
  }
3214
- if (xi(f)) {
3184
+ if (Bi(f)) {
3215
3185
  typeof o == "number" && a.push({
3216
3186
  type: ie.literal,
3217
- value: n.getNumberFormat(t).format(o)
3187
+ value: r.getNumberFormat(t).format(o)
3218
3188
  });
3219
3189
  continue;
3220
3190
  }
3221
3191
  var b = f.value;
3222
3192
  if (!(i && b in i))
3223
- throw new Ji(b, s);
3193
+ throw new ro(b, s);
3224
3194
  var m = i[b];
3225
- if (Ei(f)) {
3195
+ if (Ti(f)) {
3226
3196
  (!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), a.push({
3227
3197
  type: typeof m == "string" ? ie.literal : ie.object,
3228
3198
  value: m
3229
3199
  });
3230
3200
  continue;
3231
3201
  }
3232
- if (qn(f)) {
3233
- var w = typeof f.style == "string" ? r.date[f.style] : zt(f.style) ? f.style.parsedOptions : void 0;
3202
+ if (Jr(f)) {
3203
+ var w = typeof f.style == "string" ? n.date[f.style] : Wt(f.style) ? f.style.parsedOptions : void 0;
3234
3204
  a.push({
3235
3205
  type: ie.literal,
3236
- value: n.getDateTimeFormat(t, w).format(m)
3206
+ value: r.getDateTimeFormat(t, w).format(m)
3237
3207
  });
3238
3208
  continue;
3239
3209
  }
3240
- if (Yn(f)) {
3241
- var w = typeof f.style == "string" ? r.time[f.style] : zt(f.style) ? f.style.parsedOptions : r.time.medium;
3210
+ if (Kr(f)) {
3211
+ var w = typeof f.style == "string" ? n.time[f.style] : Wt(f.style) ? f.style.parsedOptions : n.time.medium;
3242
3212
  a.push({
3243
3213
  type: ie.literal,
3244
- value: n.getDateTimeFormat(t, w).format(m)
3214
+ value: r.getDateTimeFormat(t, w).format(m)
3245
3215
  });
3246
3216
  continue;
3247
3217
  }
3248
- if (Zn(f)) {
3249
- var w = typeof f.style == "string" ? r.number[f.style] : er(f.style) ? f.style.parsedOptions : void 0;
3218
+ if (Qr(f)) {
3219
+ var w = typeof f.style == "string" ? n.number[f.style] : nn(f.style) ? f.style.parsedOptions : void 0;
3250
3220
  w && w.scale && (m = m * (w.scale || 1)), a.push({
3251
3221
  type: ie.literal,
3252
- value: n.getNumberFormat(t, w).format(m)
3222
+ value: r.getNumberFormat(t, w).format(m)
3253
3223
  });
3254
3224
  continue;
3255
3225
  }
3256
- if (Kn(f)) {
3257
- var _ = f.children, A = f.value, I = i[A];
3258
- if (!eo(I))
3259
- throw new Qi(A, "function", s);
3260
- var W = bt(_, t, n, r, i, o), V = I(W.map(function(k) {
3261
- return k.value;
3226
+ if (rn(f)) {
3227
+ var _ = f.children, A = f.value, N = i[A];
3228
+ if (!io(N))
3229
+ throw new to(A, "function", s);
3230
+ var W = bt(_, t, r, n, i, o), V = N(W.map(function(j) {
3231
+ return j.value;
3262
3232
  }));
3263
- Array.isArray(V) || (V = [V]), a.push.apply(a, V.map(function(k) {
3233
+ Array.isArray(V) || (V = [V]), a.push.apply(a, V.map(function(j) {
3264
3234
  return {
3265
- type: typeof k == "string" ? ie.literal : ie.object,
3266
- value: k
3235
+ type: typeof j == "string" ? ie.literal : ie.object,
3236
+ value: j
3267
3237
  };
3268
3238
  }));
3269
3239
  }
3270
- if (Qn(f)) {
3240
+ if (en(f)) {
3271
3241
  var R = f.options[m] || f.options.other;
3272
3242
  if (!R)
3273
- throw new _n(f.value, m, Object.keys(f.options), s);
3274
- a.push.apply(a, bt(R.value, t, n, r, i));
3243
+ throw new wr(f.value, m, Object.keys(f.options), s);
3244
+ a.push.apply(a, bt(R.value, t, r, n, i));
3275
3245
  continue;
3276
3246
  }
3277
- if (Jn(f)) {
3247
+ if (tn(f)) {
3278
3248
  var R = f.options["=".concat(m)];
3279
3249
  if (!R) {
3280
3250
  if (!Intl.PluralRules)
3281
- throw new St(`Intl.PluralRules is not available in this environment.
3251
+ throw new Bt(`Intl.PluralRules is not available in this environment.
3282
3252
  Try polyfilling it using "@formatjs/intl-pluralrules"
3283
- `, Ve.MISSING_INTL_API, s);
3284
- var D = n.getPluralRules(t, { type: f.pluralType }).select(m - (f.offset || 0));
3285
- R = f.options[D] || f.options.other;
3253
+ `, $e.MISSING_INTL_API, s);
3254
+ var I = r.getPluralRules(t, { type: f.pluralType }).select(m - (f.offset || 0));
3255
+ R = f.options[I] || f.options.other;
3286
3256
  }
3287
3257
  if (!R)
3288
- throw new _n(f.value, m, Object.keys(f.options), s);
3289
- a.push.apply(a, bt(R.value, t, n, r, i, m - (f.offset || 0)));
3258
+ throw new wr(f.value, m, Object.keys(f.options), s);
3259
+ a.push.apply(a, bt(R.value, t, r, n, i, m - (f.offset || 0)));
3290
3260
  continue;
3291
3261
  }
3292
3262
  }
3293
- return Ki(a);
3263
+ return no(a);
3294
3264
  }
3295
- function to(e, t) {
3296
- return t ? L(L(L({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3297
- return n[r] = L(L({}, e[r]), t[r] || {}), n;
3265
+ function oo(e, t) {
3266
+ return t ? be(be(be({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3267
+ return r[n] = be(be({}, e[n]), t[n] || {}), r;
3298
3268
  }, {})) : e;
3299
3269
  }
3300
- function no(e, t) {
3301
- return t ? Object.keys(e).reduce(function(n, r) {
3302
- return n[r] = to(e[r], t[r]), n;
3303
- }, L({}, e)) : e;
3270
+ function ao(e, t) {
3271
+ return t ? Object.keys(e).reduce(function(r, n) {
3272
+ return r[n] = oo(e[n], t[n]), r;
3273
+ }, be({}, e)) : e;
3304
3274
  }
3305
- function Dt(e) {
3275
+ function Gt(e) {
3306
3276
  return {
3307
3277
  create: function() {
3308
3278
  return {
3309
3279
  get: function(t) {
3310
3280
  return e[t];
3311
3281
  },
3312
- set: function(t, n) {
3313
- e[t] = n;
3282
+ set: function(t, r) {
3283
+ e[t] = r;
3314
3284
  }
3315
3285
  };
3316
3286
  }
3317
3287
  };
3318
3288
  }
3319
- function ro(e) {
3289
+ function so(e) {
3320
3290
  return e === void 0 && (e = {
3321
3291
  number: {},
3322
3292
  dateTime: {},
3323
3293
  pluralRules: {}
3324
3294
  }), {
3325
- getNumberFormat: Pt(function() {
3326
- for (var t, n = [], r = 0; r < arguments.length; r++)
3327
- n[r] = arguments[r];
3328
- return new ((t = Intl.NumberFormat).bind.apply(t, je([void 0], n, !1)))();
3295
+ getNumberFormat: Dt(function() {
3296
+ for (var t, r = [], n = 0; n < arguments.length; n++)
3297
+ r[n] = arguments[n];
3298
+ return new ((t = Intl.NumberFormat).bind.apply(t, It([void 0], r, !1)))();
3329
3299
  }, {
3330
- cache: Dt(e.number),
3331
- strategy: Nt.variadic
3300
+ cache: Gt(e.number),
3301
+ strategy: Ut.variadic
3332
3302
  }),
3333
- getDateTimeFormat: Pt(function() {
3334
- for (var t, n = [], r = 0; r < arguments.length; r++)
3335
- n[r] = arguments[r];
3336
- return new ((t = Intl.DateTimeFormat).bind.apply(t, je([void 0], n, !1)))();
3303
+ getDateTimeFormat: Dt(function() {
3304
+ for (var t, r = [], n = 0; n < arguments.length; n++)
3305
+ r[n] = arguments[n];
3306
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, It([void 0], r, !1)))();
3337
3307
  }, {
3338
- cache: Dt(e.dateTime),
3339
- strategy: Nt.variadic
3308
+ cache: Gt(e.dateTime),
3309
+ strategy: Ut.variadic
3340
3310
  }),
3341
- getPluralRules: Pt(function() {
3342
- for (var t, n = [], r = 0; r < arguments.length; r++)
3343
- n[r] = arguments[r];
3344
- return new ((t = Intl.PluralRules).bind.apply(t, je([void 0], n, !1)))();
3311
+ getPluralRules: Dt(function() {
3312
+ for (var t, r = [], n = 0; n < arguments.length; n++)
3313
+ r[n] = arguments[n];
3314
+ return new ((t = Intl.PluralRules).bind.apply(t, It([void 0], r, !1)))();
3345
3315
  }, {
3346
- cache: Dt(e.pluralRules),
3347
- strategy: Nt.variadic
3316
+ cache: Gt(e.pluralRules),
3317
+ strategy: Ut.variadic
3348
3318
  })
3349
3319
  };
3350
3320
  }
3351
- var io = (
3321
+ var uo = (
3352
3322
  /** @class */
3353
3323
  function() {
3354
- function e(t, n, r, i) {
3355
- n === void 0 && (n = e.defaultLocale);
3324
+ function e(t, r, n, i) {
3325
+ r === void 0 && (r = e.defaultLocale);
3356
3326
  var o = this;
3357
3327
  if (this.formatterCache = {
3358
3328
  number: {},
@@ -3375,18 +3345,18 @@ var io = (
3375
3345
  };
3376
3346
  }, this.getAst = function() {
3377
3347
  return o.ast;
3378
- }, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
3348
+ }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3379
3349
  if (this.message = t, !e.__parse)
3380
3350
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3381
3351
  var s = i || {};
3382
3352
  s.formatters;
3383
- var a = di(s, ["formatters"]);
3384
- this.ast = e.__parse(t, L(L({}, a), { locale: this.resolvedLocale }));
3353
+ var a = gi(s, ["formatters"]);
3354
+ this.ast = e.__parse(t, be(be({}, a), { locale: this.resolvedLocale }));
3385
3355
  } else
3386
3356
  this.ast = t;
3387
3357
  if (!Array.isArray(this.ast))
3388
3358
  throw new TypeError("A message must be provided as a String or AST.");
3389
- this.formats = no(e.formats, r), this.formatters = i && i.formatters || ro(this.formatterCache);
3359
+ this.formats = ao(e.formats, n), this.formatters = i && i.formatters || so(this.formatterCache);
3390
3360
  }
3391
3361
  return Object.defineProperty(e, "defaultLocale", {
3392
3362
  get: function() {
@@ -3396,10 +3366,10 @@ var io = (
3396
3366
  configurable: !0
3397
3367
  }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
3398
3368
  if (!(typeof Intl.Locale > "u")) {
3399
- var n = Intl.NumberFormat.supportedLocalesOf(t);
3400
- return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3369
+ var r = Intl.NumberFormat.supportedLocalesOf(t);
3370
+ return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3401
3371
  }
3402
- }, e.__parse = Yi, e.formats = {
3372
+ }, e.__parse = eo, e.formats = {
3403
3373
  number: {
3404
3374
  integer: {
3405
3375
  maximumFractionDigits: 0
@@ -3460,113 +3430,113 @@ var io = (
3460
3430
  }, e;
3461
3431
  }()
3462
3432
  );
3463
- function oo(e, t) {
3433
+ function lo(e, t) {
3464
3434
  if (t == null)
3465
3435
  return;
3466
3436
  if (t in e)
3467
3437
  return e[t];
3468
- const n = t.split(".");
3469
- let r = e;
3470
- for (let i = 0; i < n.length; i++)
3471
- if (typeof r == "object") {
3438
+ const r = t.split(".");
3439
+ let n = e;
3440
+ for (let i = 0; i < r.length; i++)
3441
+ if (typeof n == "object") {
3472
3442
  if (i > 0) {
3473
- const o = n.slice(i, n.length).join(".");
3474
- if (o in r) {
3475
- r = r[o];
3443
+ const o = r.slice(i, r.length).join(".");
3444
+ if (o in n) {
3445
+ n = n[o];
3476
3446
  break;
3477
3447
  }
3478
3448
  }
3479
- r = r[n[i]];
3449
+ n = n[r[i]];
3480
3450
  } else
3481
- r = void 0;
3482
- return r;
3451
+ n = void 0;
3452
+ return n;
3483
3453
  }
3484
- const Ce = {}, ao = (e, t, n) => n && (t in Ce || (Ce[t] = {}), e in Ce[t] || (Ce[t][e] = n), n), ur = (e, t) => {
3454
+ const Ce = {}, co = (e, t, r) => r && (t in Ce || (Ce[t] = {}), e in Ce[t] || (Ce[t][e] = r), r), fn = (e, t) => {
3485
3455
  if (t == null)
3486
3456
  return;
3487
3457
  if (t in Ce && e in Ce[t])
3488
3458
  return Ce[t][e];
3489
- const n = Tt(t);
3490
- for (let r = 0; r < n.length; r++) {
3491
- const i = n[r], o = uo(i, e);
3459
+ const r = At(t);
3460
+ for (let n = 0; n < r.length; n++) {
3461
+ const i = r[n], o = fo(i, e);
3492
3462
  if (o)
3493
- return ao(e, t, o);
3463
+ return co(e, t, o);
3494
3464
  }
3495
3465
  };
3496
- let an;
3497
- const at = wt({});
3498
- function so(e) {
3499
- return an[e] || null;
3466
+ let lr;
3467
+ const ot = St({});
3468
+ function ho(e) {
3469
+ return lr[e] || null;
3500
3470
  }
3501
- function lr(e) {
3502
- return e in an;
3471
+ function dn(e) {
3472
+ return e in lr;
3503
3473
  }
3504
- function uo(e, t) {
3505
- if (!lr(e))
3474
+ function fo(e, t) {
3475
+ if (!dn(e))
3506
3476
  return null;
3507
- const n = so(e);
3508
- return oo(n, t);
3477
+ const r = ho(e);
3478
+ return lo(r, t);
3509
3479
  }
3510
- function lo(e) {
3480
+ function po(e) {
3511
3481
  if (e == null)
3512
3482
  return;
3513
- const t = Tt(e);
3514
- for (let n = 0; n < t.length; n++) {
3515
- const r = t[n];
3516
- if (lr(r))
3517
- return r;
3483
+ const t = At(e);
3484
+ for (let r = 0; r < t.length; r++) {
3485
+ const n = t[r];
3486
+ if (dn(n))
3487
+ return n;
3518
3488
  }
3519
3489
  }
3520
- function cr(e, ...t) {
3521
- delete Ce[e], at.update((n) => (n[e] = fi.all([n[e] || {}, ...t]), n));
3490
+ function pn(e, ...t) {
3491
+ delete Ce[e], ot.update((r) => (r[e] = bi.all([r[e] || {}, ...t]), r));
3522
3492
  }
3523
- We(
3524
- [at],
3493
+ ze(
3494
+ [ot],
3525
3495
  ([e]) => Object.keys(e)
3526
3496
  );
3527
- at.subscribe((e) => an = e);
3497
+ ot.subscribe((e) => lr = e);
3528
3498
  const gt = {};
3529
- function co(e, t) {
3499
+ function mo(e, t) {
3530
3500
  gt[e].delete(t), gt[e].size === 0 && delete gt[e];
3531
3501
  }
3532
- function hr(e) {
3502
+ function mn(e) {
3533
3503
  return gt[e];
3534
3504
  }
3535
- function ho(e) {
3536
- return Tt(e).map((t) => {
3537
- const n = hr(t);
3538
- return [t, n ? [...n] : []];
3505
+ function bo(e) {
3506
+ return At(e).map((t) => {
3507
+ const r = mn(t);
3508
+ return [t, r ? [...r] : []];
3539
3509
  }).filter(([, t]) => t.length > 0);
3540
3510
  }
3541
- function Jt(e) {
3542
- return e == null ? !1 : Tt(e).some(
3511
+ function Kt(e) {
3512
+ return e == null ? !1 : At(e).some(
3543
3513
  (t) => {
3544
- var n;
3545
- return (n = hr(t)) == null ? void 0 : n.size;
3514
+ var r;
3515
+ return (r = mn(t)) == null ? void 0 : r.size;
3546
3516
  }
3547
3517
  );
3548
3518
  }
3549
- function fo(e, t) {
3519
+ function go(e, t) {
3550
3520
  return Promise.all(
3551
- t.map((r) => (co(e, r), r().then((i) => i.default || i)))
3552
- ).then((r) => cr(e, ...r));
3553
- }
3554
- const tt = {};
3555
- function fr(e) {
3556
- if (!Jt(e))
3557
- return e in tt ? tt[e] : Promise.resolve();
3558
- const t = ho(e);
3559
- return tt[e] = Promise.all(
3521
+ t.map((n) => (mo(e, n), n().then((i) => i.default || i)))
3522
+ ).then((n) => pn(e, ...n));
3523
+ }
3524
+ const et = {};
3525
+ function bn(e) {
3526
+ if (!Kt(e))
3527
+ return e in et ? et[e] : Promise.resolve();
3528
+ const t = bo(e);
3529
+ return et[e] = Promise.all(
3560
3530
  t.map(
3561
- ([n, r]) => fo(n, r)
3531
+ ([r, n]) => go(r, n)
3562
3532
  )
3563
3533
  ).then(() => {
3564
- if (Jt(e))
3565
- return fr(e);
3566
- delete tt[e];
3567
- }), tt[e];
3534
+ if (Kt(e))
3535
+ return bn(e);
3536
+ delete et[e];
3537
+ }), et[e];
3568
3538
  }
3569
- const po = {
3539
+ const yo = {
3570
3540
  number: {
3571
3541
  scientific: { notation: "scientific" },
3572
3542
  engineering: { notation: "engineering" },
@@ -3595,136 +3565,136 @@ const po = {
3595
3565
  timeZoneName: "short"
3596
3566
  }
3597
3567
  }
3598
- }, mo = {
3568
+ }, vo = {
3599
3569
  fallbackLocale: null,
3600
3570
  loadingDelay: 200,
3601
- formats: po,
3571
+ formats: yo,
3602
3572
  warnOnMissingMessages: !0,
3603
3573
  handleMissingMessage: void 0,
3604
3574
  ignoreTag: !0
3605
- }, bo = mo;
3606
- function Xe() {
3607
- return bo;
3608
- }
3609
- const Ut = wt(!1);
3610
- var go = Object.defineProperty, yo = Object.defineProperties, vo = Object.getOwnPropertyDescriptors, En = Object.getOwnPropertySymbols, _o = Object.prototype.hasOwnProperty, Eo = Object.prototype.propertyIsEnumerable, xn = (e, t, n) => t in e ? go(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, xo = (e, t) => {
3611
- for (var n in t)
3612
- _o.call(t, n) && xn(e, n, t[n]);
3613
- if (En)
3614
- for (var n of En(t))
3615
- Eo.call(t, n) && xn(e, n, t[n]);
3575
+ }, _o = vo;
3576
+ function Ve() {
3577
+ return _o;
3578
+ }
3579
+ const jt = St(!1);
3580
+ var Eo = Object.defineProperty, xo = Object.defineProperties, wo = Object.getOwnPropertyDescriptors, Sr = Object.getOwnPropertySymbols, So = Object.prototype.hasOwnProperty, To = Object.prototype.propertyIsEnumerable, Tr = (e, t, r) => t in e ? Eo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Bo = (e, t) => {
3581
+ for (var r in t || (t = {}))
3582
+ So.call(t, r) && Tr(e, r, t[r]);
3583
+ if (Sr)
3584
+ for (var r of Sr(t))
3585
+ To.call(t, r) && Tr(e, r, t[r]);
3616
3586
  return e;
3617
- }, wo = (e, t) => yo(e, vo(t));
3618
- let Kt;
3619
- const Et = wt(null);
3620
- function wn(e) {
3621
- return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3587
+ }, Ao = (e, t) => xo(e, wo(t));
3588
+ let er;
3589
+ const xt = St(null);
3590
+ function Br(e) {
3591
+ return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3622
3592
  }
3623
- function Tt(e, t = Xe().fallbackLocale) {
3624
- const n = wn(e);
3625
- return t ? [.../* @__PURE__ */ new Set([...n, ...wn(t)])] : n;
3593
+ function At(e, t = Ve().fallbackLocale) {
3594
+ const r = Br(e);
3595
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Br(t)])] : r;
3626
3596
  }
3627
3597
  function Re() {
3628
- return Kt ?? void 0;
3598
+ return er ?? void 0;
3629
3599
  }
3630
- Et.subscribe((e) => {
3631
- Kt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3600
+ xt.subscribe((e) => {
3601
+ er = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3632
3602
  });
3633
- const So = (e) => {
3634
- if (e && lo(e) && Jt(e)) {
3635
- const { loadingDelay: t } = Xe();
3636
- let n;
3637
- return typeof window < "u" && Re() != null && t ? n = window.setTimeout(
3638
- () => Ut.set(!0),
3603
+ const Co = (e) => {
3604
+ if (e && po(e) && Kt(e)) {
3605
+ const { loadingDelay: t } = Ve();
3606
+ let r;
3607
+ return typeof window < "u" && Re() != null && t ? r = window.setTimeout(
3608
+ () => jt.set(!0),
3639
3609
  t
3640
- ) : Ut.set(!0), fr(e).then(() => {
3641
- Et.set(e);
3610
+ ) : jt.set(!0), bn(e).then(() => {
3611
+ xt.set(e);
3642
3612
  }).finally(() => {
3643
- clearTimeout(n), Ut.set(!1);
3613
+ clearTimeout(r), jt.set(!1);
3644
3614
  });
3645
3615
  }
3646
- return Et.set(e);
3647
- }, Ze = wo(xo({}, Et), {
3648
- set: So
3649
- }), Bt = (e) => {
3616
+ return xt.set(e);
3617
+ }, We = Ao(Bo({}, xt), {
3618
+ set: Co
3619
+ }), Ct = (e) => {
3650
3620
  const t = /* @__PURE__ */ Object.create(null);
3651
- return (r) => {
3652
- const i = JSON.stringify(r);
3653
- return i in t ? t[i] : t[i] = e(r);
3621
+ return (n) => {
3622
+ const i = JSON.stringify(n);
3623
+ return i in t ? t[i] : t[i] = e(n);
3654
3624
  };
3655
3625
  };
3656
- var To = Object.defineProperty, xt = Object.getOwnPropertySymbols, dr = Object.prototype.hasOwnProperty, pr = Object.prototype.propertyIsEnumerable, Sn = (e, t, n) => t in e ? To(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, sn = (e, t) => {
3657
- for (var n in t || (t = {}))
3658
- dr.call(t, n) && Sn(e, n, t[n]);
3659
- if (xt)
3660
- for (var n of xt(t))
3661
- pr.call(t, n) && Sn(e, n, t[n]);
3626
+ var Ho = Object.defineProperty, wt = Object.getOwnPropertySymbols, gn = Object.prototype.hasOwnProperty, yn = Object.prototype.propertyIsEnumerable, Ar = (e, t, r) => t in e ? Ho(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, cr = (e, t) => {
3627
+ for (var r in t || (t = {}))
3628
+ gn.call(t, r) && Ar(e, r, t[r]);
3629
+ if (wt)
3630
+ for (var r of wt(t))
3631
+ yn.call(t, r) && Ar(e, r, t[r]);
3662
3632
  return e;
3663
- }, qe = (e, t) => {
3664
- var n = {};
3665
- for (var r in e)
3666
- dr.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3667
- if (e != null && xt)
3668
- for (var r of xt(e))
3669
- t.indexOf(r) < 0 && pr.call(e, r) && (n[r] = e[r]);
3670
- return n;
3633
+ }, Ze = (e, t) => {
3634
+ var r = {};
3635
+ for (var n in e)
3636
+ gn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3637
+ if (e != null && wt)
3638
+ for (var n of wt(e))
3639
+ t.indexOf(n) < 0 && yn.call(e, n) && (r[n] = e[n]);
3640
+ return r;
3671
3641
  };
3672
- const ot = (e, t) => {
3673
- const { formats: n } = Xe();
3674
- if (e in n && t in n[e])
3675
- return n[e][t];
3642
+ const it = (e, t) => {
3643
+ const { formats: r } = Ve();
3644
+ if (e in r && t in r[e])
3645
+ return r[e][t];
3676
3646
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3677
- }, Bo = Bt(
3647
+ }, Oo = Ct(
3678
3648
  (e) => {
3679
- var t = e, { locale: n, format: r } = t, i = qe(t, ["locale", "format"]);
3680
- if (n == null)
3649
+ var t = e, { locale: r, format: n } = t, i = Ze(t, ["locale", "format"]);
3650
+ if (r == null)
3681
3651
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3682
- return r && (i = ot("number", r)), new Intl.NumberFormat(n, i);
3652
+ return n && (i = it("number", n)), new Intl.NumberFormat(r, i);
3683
3653
  }
3684
- ), Ao = Bt(
3654
+ ), Po = Ct(
3685
3655
  (e) => {
3686
- var t = e, { locale: n, format: r } = t, i = qe(t, ["locale", "format"]);
3687
- if (n == null)
3656
+ var t = e, { locale: r, format: n } = t, i = Ze(t, ["locale", "format"]);
3657
+ if (r == null)
3688
3658
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3689
- return r ? i = ot("date", r) : Object.keys(i).length === 0 && (i = ot("date", "short")), new Intl.DateTimeFormat(n, i);
3659
+ return n ? i = it("date", n) : Object.keys(i).length === 0 && (i = it("date", "short")), new Intl.DateTimeFormat(r, i);
3690
3660
  }
3691
- ), Co = Bt(
3661
+ ), Ro = Ct(
3692
3662
  (e) => {
3693
- var t = e, { locale: n, format: r } = t, i = qe(t, ["locale", "format"]);
3694
- if (n == null)
3663
+ var t = e, { locale: r, format: n } = t, i = Ze(t, ["locale", "format"]);
3664
+ if (r == null)
3695
3665
  throw new Error(
3696
3666
  '[svelte-i18n] A "locale" must be set to format time values'
3697
3667
  );
3698
- return r ? i = ot("time", r) : Object.keys(i).length === 0 && (i = ot("time", "short")), new Intl.DateTimeFormat(n, i);
3668
+ return n ? i = it("time", n) : Object.keys(i).length === 0 && (i = it("time", "short")), new Intl.DateTimeFormat(r, i);
3699
3669
  }
3700
- ), Ho = (e = {}) => {
3670
+ ), Mo = (e = {}) => {
3701
3671
  var t = e, {
3702
- locale: n = Re()
3703
- } = t, r = qe(t, [
3672
+ locale: r = Re()
3673
+ } = t, n = Ze(t, [
3704
3674
  "locale"
3705
3675
  ]);
3706
- return Bo(sn({ locale: n }, r));
3707
- }, Oo = (e = {}) => {
3676
+ return Oo(cr({ locale: r }, n));
3677
+ }, Lo = (e = {}) => {
3708
3678
  var t = e, {
3709
- locale: n = Re()
3710
- } = t, r = qe(t, [
3679
+ locale: r = Re()
3680
+ } = t, n = Ze(t, [
3711
3681
  "locale"
3712
3682
  ]);
3713
- return Ao(sn({ locale: n }, r));
3714
- }, Mo = (e = {}) => {
3683
+ return Po(cr({ locale: r }, n));
3684
+ }, No = (e = {}) => {
3715
3685
  var t = e, {
3716
- locale: n = Re()
3717
- } = t, r = qe(t, [
3686
+ locale: r = Re()
3687
+ } = t, n = Ze(t, [
3718
3688
  "locale"
3719
3689
  ]);
3720
- return Co(sn({ locale: n }, r));
3721
- }, Ro = Bt(
3690
+ return Ro(cr({ locale: r }, n));
3691
+ }, Io = Ct(
3722
3692
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3723
- (e, t = Re()) => new io(e, t, Xe().formats, {
3724
- ignoreTag: Xe().ignoreTag
3693
+ (e, t = Re()) => new uo(e, t, Ve().formats, {
3694
+ ignoreTag: Ve().ignoreTag
3725
3695
  })
3726
- ), Lo = (e, t = {}) => {
3727
- var n, r, i, o;
3696
+ ), Do = (e, t = {}) => {
3697
+ var r, n, i, o;
3728
3698
  let s = t;
3729
3699
  typeof e == "object" && (s = e, e = s.id);
3730
3700
  const {
@@ -3736,9 +3706,9 @@ const ot = (e, t) => {
3736
3706
  throw new Error(
3737
3707
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3738
3708
  );
3739
- let f = ur(e, l);
3709
+ let f = fn(e, l);
3740
3710
  if (!f)
3741
- f = (o = (i = (r = (n = Xe()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3711
+ f = (o = (i = (n = (r = Ve()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3742
3712
  else if (typeof f != "string")
3743
3713
  return console.warn(
3744
3714
  `[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.`
@@ -3747,7 +3717,7 @@ const ot = (e, t) => {
3747
3717
  return f;
3748
3718
  let b = f;
3749
3719
  try {
3750
- b = Ro(f, l).format(a);
3720
+ b = Io(f, l).format(a);
3751
3721
  } catch (m) {
3752
3722
  m instanceof Error && console.warn(
3753
3723
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3755,18 +3725,18 @@ const ot = (e, t) => {
3755
3725
  );
3756
3726
  }
3757
3727
  return b;
3758
- }, Po = (e, t) => Mo(t).format(e), No = (e, t) => Oo(t).format(e), Io = (e, t) => Ho(t).format(e), Do = (e, t = Re()) => ur(e, t), Uo = We([Ze, at], () => Lo);
3759
- We([Ze], () => Po);
3760
- We([Ze], () => No);
3761
- We([Ze], () => Io);
3762
- We([Ze, at], () => Do);
3763
- function Tn(e, t) {
3764
- cr(e, t);
3765
- }
3766
- function Fo(e) {
3767
- Ze.set(e);
3768
- }
3769
- const Bn = {
3728
+ }, Uo = (e, t) => No(t).format(e), Fo = (e, t) => Lo(t).format(e), Go = (e, t) => Mo(t).format(e), jo = (e, t = Re()) => fn(e, t), ko = ze([We, ot], () => Do);
3729
+ ze([We], () => Uo);
3730
+ ze([We], () => Fo);
3731
+ ze([We], () => Go);
3732
+ ze([We, ot], () => jo);
3733
+ function Cr(e, t) {
3734
+ pn(e, t);
3735
+ }
3736
+ function $o(e) {
3737
+ We.set(e);
3738
+ }
3739
+ const Hr = {
3770
3740
  en: {
3771
3741
  Title: "Your Balance",
3772
3742
  Total: "Total Balance",
@@ -3966,15 +3936,15 @@ const Bn = {
3966
3936
  Loading: "Loading ..."
3967
3937
  }
3968
3938
  };
3969
- var en = { exports: {} };
3939
+ var tr = { exports: {} };
3970
3940
  /** @license
3971
3941
  * eventsource.js
3972
3942
  * Available under MIT License (MIT)
3973
3943
  * https://github.com/Yaffle/EventSource/
3974
3944
  */
3975
3945
  (function(e, t) {
3976
- (function(n) {
3977
- var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, s = n.XDomainRequest, a = n.ActiveXObject, l = n.EventSource, u = n.document, f = n.Promise, b = n.fetch, m = n.Response, w = n.TextDecoder, _ = n.TextEncoder, A = n.AbortController;
3946
+ (function(r) {
3947
+ var n = r.setTimeout, i = r.clearTimeout, o = r.XMLHttpRequest, s = r.XDomainRequest, a = r.ActiveXObject, l = r.EventSource, u = r.document, f = r.Promise, b = r.fetch, m = r.Response, w = r.TextDecoder, _ = r.TextEncoder, A = r.AbortController;
3978
3948
  if (typeof window < "u" && typeof u < "u" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(h) {
3979
3949
  u.readyState = "complete";
3980
3950
  }, !1)), o == null && a != null && (o = function() {
@@ -3986,10 +3956,10 @@ var en = { exports: {} };
3986
3956
  }), Date.now || (Date.now = function() {
3987
3957
  return (/* @__PURE__ */ new Date()).getTime();
3988
3958
  }), A == null) {
3989
- var I = b;
3959
+ var N = b;
3990
3960
  b = function(h, y) {
3991
3961
  var E = y.signal;
3992
- return I(h, { headers: y.headers, credentials: y.credentials, cache: y.cache }).then(function(g) {
3962
+ return N(h, { headers: y.headers, credentials: y.credentials, cache: y.cache }).then(function(g) {
3993
3963
  var c = g.body.getReader();
3994
3964
  return E._reader = c, E._aborted && E._reader.cancel(), {
3995
3965
  status: g.status,
@@ -4050,10 +4020,10 @@ var en = { exports: {} };
4050
4020
  (w == null || _ == null || !V()) && (w = W);
4051
4021
  var R = function() {
4052
4022
  };
4053
- function D(h) {
4023
+ function I(h) {
4054
4024
  this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = R, this.onload = R, this.onerror = R, this.onreadystatechange = R, this._contentType = "", this._xhr = h, this._sendTimeout = 0, this._abort = R;
4055
4025
  }
4056
- D.prototype.open = function(h, y) {
4026
+ I.prototype.open = function(h, y) {
4057
4027
  this._abort(!0);
4058
4028
  var E = this, g = this._xhr, c = 1, d = 0;
4059
4029
  this._abort = function(B) {
@@ -4061,16 +4031,16 @@ var en = { exports: {} };
4061
4031
  };
4062
4032
  var p = function() {
4063
4033
  if (c === 1) {
4064
- var B = 0, N = "", ee = void 0;
4034
+ var B = 0, L = "", ee = void 0;
4065
4035
  if ("contentType" in g)
4066
- B = 200, N = "OK", ee = g.contentType;
4036
+ B = 200, L = "OK", ee = g.contentType;
4067
4037
  else
4068
4038
  try {
4069
- B = g.status, N = g.statusText, ee = g.getResponseHeader("Content-Type");
4039
+ B = g.status, L = g.statusText, ee = g.getResponseHeader("Content-Type");
4070
4040
  } catch {
4071
- B = 0, N = "", ee = void 0;
4041
+ B = 0, L = "", ee = void 0;
4072
4042
  }
4073
- B !== 0 && (c = 2, E.readyState = 2, E.status = B, E.statusText = N, E._contentType = ee, E.onreadystatechange());
4043
+ B !== 0 && (c = 2, E.readyState = 2, E.status = B, E.statusText = L, E._contentType = ee, E.onreadystatechange());
4074
4044
  }
4075
4045
  }, v = function() {
4076
4046
  if (p(), c === 2 || c === 3) {
@@ -4082,16 +4052,16 @@ var en = { exports: {} };
4082
4052
  }
4083
4053
  E.readyState = 3, E.responseText = B, E.onprogress();
4084
4054
  }
4085
- }, T = function(B, N) {
4086
- if ((N == null || N.preventDefault == null) && (N = {
4055
+ }, T = function(B, L) {
4056
+ if ((L == null || L.preventDefault == null) && (L = {
4087
4057
  preventDefault: R
4088
4058
  }), v(), c === 1 || c === 2 || c === 3) {
4089
4059
  if (c = 4, d !== 0 && (i(d), d = 0), E.readyState = 4, B === "load")
4090
- E.onload(N);
4060
+ E.onload(L);
4091
4061
  else if (B === "error")
4092
- E.onerror(N);
4062
+ E.onerror(L);
4093
4063
  else if (B === "abort")
4094
- E.onabort(N);
4064
+ E.onabort(L);
4095
4065
  else
4096
4066
  throw new TypeError();
4097
4067
  E.onreadystatechange();
@@ -4099,7 +4069,7 @@ var en = { exports: {} };
4099
4069
  }, C = function(B) {
4100
4070
  g != null && (g.readyState === 4 ? (!("onload" in g) || !("onerror" in g) || !("onabort" in g)) && T(g.responseText === "" ? "error" : "load", B) : g.readyState === 3 ? "onprogress" in g || v() : g.readyState === 2 && p());
4101
4071
  }, S = function() {
4102
- d = r(function() {
4072
+ d = n(function() {
4103
4073
  S();
4104
4074
  }, 500), g.readyState === 3 && v();
4105
4075
  };
@@ -4111,22 +4081,22 @@ var en = { exports: {} };
4111
4081
  T("abort", B);
4112
4082
  }), "onprogress" in g && (g.onprogress = v), "onreadystatechange" in g && (g.onreadystatechange = function(B) {
4113
4083
  C(B);
4114
- }), ("contentType" in g || !("ontimeout" in o.prototype)) && (y += (y.indexOf("?") === -1 ? "?" : "&") + "padding=true"), g.open(h, y, !0), "readyState" in g && (d = r(function() {
4084
+ }), ("contentType" in g || !("ontimeout" in o.prototype)) && (y += (y.indexOf("?") === -1 ? "?" : "&") + "padding=true"), g.open(h, y, !0), "readyState" in g && (d = n(function() {
4115
4085
  S();
4116
4086
  }, 0));
4117
- }, D.prototype.abort = function() {
4087
+ }, I.prototype.abort = function() {
4118
4088
  this._abort(!1);
4119
- }, D.prototype.getResponseHeader = function(h) {
4089
+ }, I.prototype.getResponseHeader = function(h) {
4120
4090
  return this._contentType;
4121
- }, D.prototype.setRequestHeader = function(h, y) {
4091
+ }, I.prototype.setRequestHeader = function(h, y) {
4122
4092
  var E = this._xhr;
4123
4093
  "setRequestHeader" in E && E.setRequestHeader(h, y);
4124
- }, D.prototype.getAllResponseHeaders = function() {
4094
+ }, I.prototype.getAllResponseHeaders = function() {
4125
4095
  return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
4126
- }, D.prototype.send = function() {
4096
+ }, I.prototype.send = function() {
4127
4097
  if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && u != null && u.readyState != null && u.readyState !== "complete") {
4128
4098
  var h = this;
4129
- h._sendTimeout = r(function() {
4099
+ h._sendTimeout = n(function() {
4130
4100
  h._sendTimeout = 0, h.send();
4131
4101
  }, 4);
4132
4102
  return;
@@ -4139,7 +4109,7 @@ var en = { exports: {} };
4139
4109
  throw E;
4140
4110
  }
4141
4111
  };
4142
- function k(h) {
4112
+ function j(h) {
4143
4113
  return h.replace(/[A-Z]/g, function(y) {
4144
4114
  return String.fromCharCode(y.charCodeAt(0) + 32);
4145
4115
  });
@@ -4148,12 +4118,12 @@ var en = { exports: {} };
4148
4118
  for (var y = /* @__PURE__ */ Object.create(null), E = h.split(`\r
4149
4119
  `), g = 0; g < E.length; g += 1) {
4150
4120
  var c = E[g], d = c.split(": "), p = d.shift(), v = d.join(": ");
4151
- y[k(p)] = v;
4121
+ y[j(p)] = v;
4152
4122
  }
4153
4123
  this._map = y;
4154
4124
  }
4155
4125
  oe.prototype.get = function(h) {
4156
- return this._map[k(h)];
4126
+ return this._map[j(h)];
4157
4127
  }, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
4158
4128
  function Z() {
4159
4129
  }
@@ -4171,23 +4141,23 @@ var en = { exports: {} };
4171
4141
  g(null);
4172
4142
  }, h.onreadystatechange = function() {
4173
4143
  if (h.readyState === o.HEADERS_RECEIVED) {
4174
- var C = h.status, S = h.statusText, B = h.getResponseHeader("Content-Type"), N = h.getAllResponseHeaders();
4175
- y(C, S, B, new oe(N));
4144
+ var C = h.status, S = h.statusText, B = h.getResponseHeader("Content-Type"), L = h.getAllResponseHeaders();
4145
+ y(C, S, B, new oe(L));
4176
4146
  }
4177
4147
  }, h.withCredentials = d;
4178
4148
  for (var T in p)
4179
4149
  Object.prototype.hasOwnProperty.call(p, T) && h.setRequestHeader(T, p[T]);
4180
4150
  return h.send(), h;
4181
4151
  };
4182
- function $(h) {
4152
+ function k(h) {
4183
4153
  this._headers = h;
4184
4154
  }
4185
- $.prototype.get = function(h) {
4155
+ k.prototype.get = function(h) {
4186
4156
  return this._headers.get(h);
4187
4157
  };
4188
- function U() {
4158
+ function D() {
4189
4159
  }
4190
- U.prototype.open = function(h, y, E, g, c, d, p) {
4160
+ D.prototype.open = function(h, y, E, g, c, d, p) {
4191
4161
  var v = null, T = new A(), C = T.signal, S = new w();
4192
4162
  return b(c, {
4193
4163
  headers: p,
@@ -4195,11 +4165,11 @@ var en = { exports: {} };
4195
4165
  signal: C,
4196
4166
  cache: "no-store"
4197
4167
  }).then(function(B) {
4198
- return v = B.body.getReader(), y(B.status, B.statusText, B.headers.get("Content-Type"), new $(B.headers)), new f(function(N, ee) {
4168
+ return v = B.body.getReader(), y(B.status, B.statusText, B.headers.get("Content-Type"), new k(B.headers)), new f(function(L, ee) {
4199
4169
  var Ae = function() {
4200
4170
  v.read().then(function(X) {
4201
4171
  if (X.done)
4202
- N(void 0);
4172
+ L(void 0);
4203
4173
  else {
4204
4174
  var te = S.decode(X.value, { stream: !0 });
4205
4175
  E(te), Ae();
@@ -4224,8 +4194,8 @@ var en = { exports: {} };
4224
4194
  function q() {
4225
4195
  this._listeners = /* @__PURE__ */ Object.create(null);
4226
4196
  }
4227
- function F(h) {
4228
- r(function() {
4197
+ function U(h) {
4198
+ n(function() {
4229
4199
  throw h;
4230
4200
  }, 0);
4231
4201
  }
@@ -4238,7 +4208,7 @@ var en = { exports: {} };
4238
4208
  try {
4239
4209
  typeof c.handleEvent == "function" ? c.handleEvent(h) : c.call(this, h);
4240
4210
  } catch (d) {
4241
- F(d);
4211
+ U(d);
4242
4212
  }
4243
4213
  }
4244
4214
  }, q.prototype.addEventListener = function(h, y) {
@@ -4264,138 +4234,138 @@ var en = { exports: {} };
4264
4234
  K.call(this, h), this.data = y.data, this.lastEventId = y.lastEventId;
4265
4235
  }
4266
4236
  he.prototype = Object.create(K.prototype);
4267
- function ge(h, y) {
4237
+ function ye(h, y) {
4268
4238
  K.call(this, h), this.status = y.status, this.statusText = y.statusText, this.headers = y.headers;
4269
4239
  }
4270
- ge.prototype = Object.create(K.prototype);
4240
+ ye.prototype = Object.create(K.prototype);
4271
4241
  function x(h, y) {
4272
4242
  K.call(this, h), this.error = y.error;
4273
4243
  }
4274
4244
  x.prototype = Object.create(K.prototype);
4275
- var ye = -1, pe = 0, le = 1, He = 2, Ye = -1, me = 0, Qe = 1, Le = 2, st = 3, Ct = /^text\/event\-stream(;.*)?$/i, Je = 1e3, ut = 18e6, Ke = function(h, y) {
4245
+ var ve = -1, pe = 0, le = 1, He = 2, qe = -1, me = 0, Ye = 1, Me = 2, st = 3, Ot = /^text\/event\-stream(;.*)?$/i, Qe = 1e3, ut = 18e6, Je = function(h, y) {
4276
4246
  var E = h == null ? y : parseInt(h, 10);
4277
- return E !== E && (E = y), Pe(E);
4278
- }, Pe = function(h) {
4279
- return Math.min(Math.max(h, Je), ut);
4247
+ return E !== E && (E = y), Le(E);
4248
+ }, Le = function(h) {
4249
+ return Math.min(Math.max(h, Qe), ut);
4280
4250
  }, Be = function(h, y, E) {
4281
4251
  try {
4282
4252
  typeof y == "function" && y.call(h, E);
4283
4253
  } catch (g) {
4284
- F(g);
4254
+ U(g);
4285
4255
  }
4286
4256
  };
4287
4257
  function ae(h, y) {
4288
- q.call(this), y = y || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, Ot(this, h, y);
4258
+ q.call(this), y = y || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, Rt(this, h, y);
4289
4259
  }
4290
- function Ht() {
4260
+ function Pt() {
4291
4261
  return o != null && "withCredentials" in o.prototype || s == null ? new o() : new s();
4292
4262
  }
4293
4263
  var lt = b != null && m != null && "body" in m.prototype;
4294
- function Ot(h, y, E) {
4264
+ function Rt(h, y, E) {
4295
4265
  y = String(y);
4296
- var g = !!E.withCredentials, c = E.lastEventIdQueryParameterName || "lastEventId", d = Pe(1e3), p = Ke(E.heartbeatTimeout, 45e3), v = "", T = d, C = !1, S = 0, B = E.headers || {}, N = E.Transport, ee = lt && N == null ? void 0 : new D(N != null ? new N() : Ht()), Ae = N != null && typeof N != "string" ? new N() : ee == null ? new U() : new Z(), X = void 0, te = 0, fe = ye, Ne = "", ht = "", ve = "", ft = "", ne = me, Mt = 0, Oe = 0, Er = function(Y, z, se, ue) {
4266
+ var g = !!E.withCredentials, c = E.lastEventIdQueryParameterName || "lastEventId", d = Le(1e3), p = Je(E.heartbeatTimeout, 45e3), v = "", T = d, C = !1, S = 0, B = E.headers || {}, L = E.Transport, ee = lt && L == null ? void 0 : new I(L != null ? new L() : Pt()), Ae = L != null && typeof L != "string" ? new L() : ee == null ? new D() : new Z(), X = void 0, te = 0, fe = ve, Ne = "", ht = "", _e = "", ft = "", re = me, Mt = 0, Oe = 0, Tn = function(Y, z, se, ue) {
4297
4267
  if (fe === pe)
4298
- if (Y === 200 && se != null && Ct.test(se)) {
4268
+ if (Y === 200 && se != null && Ot.test(se)) {
4299
4269
  fe = le, C = Date.now(), T = d, h.readyState = le;
4300
- var re = new ge("open", {
4270
+ var ne = new ye("open", {
4301
4271
  status: Y,
4302
4272
  statusText: z,
4303
4273
  headers: ue
4304
4274
  });
4305
- h.dispatchEvent(re), Be(h, h.onopen, re);
4275
+ h.dispatchEvent(ne), Be(h, h.onopen, ne);
4306
4276
  } else {
4307
4277
  var J = "";
4308
- Y !== 200 ? (z && (z = z.replace(/\s+/g, " ")), J = "EventSource's response has a status " + Y + " " + z + " that is not 200. Aborting the connection.") : J = "EventSource's response has a Content-Type specifying an unsupported type: " + (se == null ? "-" : se.replace(/\s+/g, " ")) + ". Aborting the connection.", Rt();
4309
- var re = new ge("error", {
4278
+ Y !== 200 ? (z && (z = z.replace(/\s+/g, " ")), J = "EventSource's response has a status " + Y + " " + z + " that is not 200. Aborting the connection.") : J = "EventSource's response has a Content-Type specifying an unsupported type: " + (se == null ? "-" : se.replace(/\s+/g, " ")) + ". Aborting the connection.", Lt();
4279
+ var ne = new ye("error", {
4310
4280
  status: Y,
4311
4281
  statusText: z,
4312
4282
  headers: ue
4313
4283
  });
4314
- h.dispatchEvent(re), Be(h, h.onerror, re), console.error(J);
4284
+ h.dispatchEvent(ne), Be(h, h.onerror, ne), console.error(J);
4315
4285
  }
4316
- }, xr = function(Y) {
4286
+ }, Bn = function(Y) {
4317
4287
  if (fe === le) {
4318
4288
  for (var z = -1, se = 0; se < Y.length; se += 1) {
4319
4289
  var ue = Y.charCodeAt(se);
4320
4290
  (ue === 10 || ue === 13) && (z = se);
4321
4291
  }
4322
- var re = (z !== -1 ? ft : "") + Y.slice(0, z + 1);
4292
+ var ne = (z !== -1 ? ft : "") + Y.slice(0, z + 1);
4323
4293
  ft = (z === -1 ? ft : "") + Y.slice(z + 1), Y !== "" && (C = Date.now(), S += Y.length);
4324
- for (var J = 0; J < re.length; J += 1) {
4325
- var ue = re.charCodeAt(J);
4326
- if (ne === Ye && ue === 10)
4327
- ne = me;
4328
- else if (ne === Ye && (ne = me), ue === 13 || ue === 10) {
4329
- if (ne !== me) {
4330
- ne === Qe && (Oe = J + 1);
4331
- var _e = re.slice(Mt, Oe - 1), Ee = re.slice(Oe + (Oe < J && re.charCodeAt(Oe) === 32 ? 1 : 0), J);
4332
- _e === "data" ? (Ne += `
4333
- `, Ne += Ee) : _e === "id" ? ht = Ee : _e === "event" ? ve = Ee : _e === "retry" ? (d = Ke(Ee, d), T = d) : _e === "heartbeatTimeout" && (p = Ke(Ee, p), te !== 0 && (i(te), te = r(function() {
4334
- et();
4294
+ for (var J = 0; J < ne.length; J += 1) {
4295
+ var ue = ne.charCodeAt(J);
4296
+ if (re === qe && ue === 10)
4297
+ re = me;
4298
+ else if (re === qe && (re = me), ue === 13 || ue === 10) {
4299
+ if (re !== me) {
4300
+ re === Ye && (Oe = J + 1);
4301
+ var Ee = ne.slice(Mt, Oe - 1), xe = ne.slice(Oe + (Oe < J && ne.charCodeAt(Oe) === 32 ? 1 : 0), J);
4302
+ Ee === "data" ? (Ne += `
4303
+ `, Ne += xe) : Ee === "id" ? ht = xe : Ee === "event" ? _e = xe : Ee === "retry" ? (d = Je(xe, d), T = d) : Ee === "heartbeatTimeout" && (p = Je(xe, p), te !== 0 && (i(te), te = n(function() {
4304
+ Ke();
4335
4305
  }, p)));
4336
4306
  }
4337
- if (ne === me) {
4307
+ if (re === me) {
4338
4308
  if (Ne !== "") {
4339
- v = ht, ve === "" && (ve = "message");
4340
- var Ie = new he(ve, {
4309
+ v = ht, _e === "" && (_e = "message");
4310
+ var Ie = new he(_e, {
4341
4311
  data: Ne.slice(1),
4342
4312
  lastEventId: ht
4343
4313
  });
4344
- if (h.dispatchEvent(Ie), ve === "open" ? Be(h, h.onopen, Ie) : ve === "message" ? Be(h, h.onmessage, Ie) : ve === "error" && Be(h, h.onerror, Ie), fe === He)
4314
+ if (h.dispatchEvent(Ie), _e === "open" ? Be(h, h.onopen, Ie) : _e === "message" ? Be(h, h.onmessage, Ie) : _e === "error" && Be(h, h.onerror, Ie), fe === He)
4345
4315
  return;
4346
4316
  }
4347
- Ne = "", ve = "";
4317
+ Ne = "", _e = "";
4348
4318
  }
4349
- ne = ue === 13 ? Ye : me;
4319
+ re = ue === 13 ? qe : me;
4350
4320
  } else
4351
- ne === me && (Mt = J, ne = Qe), ne === Qe ? ue === 58 && (Oe = J + 1, ne = Le) : ne === Le && (ne = st);
4321
+ re === me && (Mt = J, re = Ye), re === Ye ? ue === 58 && (Oe = J + 1, re = Me) : re === Me && (re = st);
4352
4322
  }
4353
4323
  }
4354
- }, un = function(Y) {
4324
+ }, hr = function(Y) {
4355
4325
  if (fe === le || fe === pe) {
4356
- fe = ye, te !== 0 && (i(te), te = 0), te = r(function() {
4357
- et();
4358
- }, T), T = Pe(Math.min(d * 16, T * 2)), h.readyState = pe;
4326
+ fe = ve, te !== 0 && (i(te), te = 0), te = n(function() {
4327
+ Ke();
4328
+ }, T), T = Le(Math.min(d * 16, T * 2)), h.readyState = pe;
4359
4329
  var z = new x("error", { error: Y });
4360
4330
  h.dispatchEvent(z), Be(h, h.onerror, z), Y != null && console.error(Y);
4361
4331
  }
4362
- }, Rt = function() {
4332
+ }, Lt = function() {
4363
4333
  fe = He, X != null && (X.abort(), X = void 0), te !== 0 && (i(te), te = 0), h.readyState = He;
4364
- }, et = function() {
4365
- if (te = 0, fe !== ye) {
4334
+ }, Ke = function() {
4335
+ if (te = 0, fe !== ve) {
4366
4336
  if (!C && X != null)
4367
- un(new Error("No activity within " + p + " milliseconds. " + (fe === pe ? "No response received." : S + " chars received.") + " Reconnecting.")), X != null && (X.abort(), X = void 0);
4337
+ hr(new Error("No activity within " + p + " milliseconds. " + (fe === pe ? "No response received." : S + " chars received.") + " Reconnecting.")), X != null && (X.abort(), X = void 0);
4368
4338
  else {
4369
4339
  var Y = Math.max((C || Date.now()) + p - Date.now(), 1);
4370
- C = !1, te = r(function() {
4371
- et();
4340
+ C = !1, te = n(function() {
4341
+ Ke();
4372
4342
  }, Y);
4373
4343
  }
4374
4344
  return;
4375
4345
  }
4376
- C = !1, S = 0, te = r(function() {
4377
- et();
4378
- }, p), fe = pe, Ne = "", ve = "", ht = v, ft = "", Mt = 0, Oe = 0, ne = me;
4346
+ C = !1, S = 0, te = n(function() {
4347
+ Ke();
4348
+ }, p), fe = pe, Ne = "", _e = "", ht = v, ft = "", Mt = 0, Oe = 0, re = me;
4379
4349
  var z = y;
4380
4350
  if (y.slice(0, 5) !== "data:" && y.slice(0, 5) !== "blob:" && v !== "") {
4381
4351
  var se = y.indexOf("?");
4382
- z = se === -1 ? y : y.slice(0, se + 1) + y.slice(se + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Ee, Ie) {
4383
- return Ie === c ? "" : Ee;
4352
+ z = se === -1 ? y : y.slice(0, se + 1) + y.slice(se + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(xe, Ie) {
4353
+ return Ie === c ? "" : xe;
4384
4354
  }), z += (y.indexOf("?") === -1 ? "?" : "&") + c + "=" + encodeURIComponent(v);
4385
4355
  }
4386
- var ue = h.withCredentials, re = {};
4387
- re.Accept = "text/event-stream";
4356
+ var ue = h.withCredentials, ne = {};
4357
+ ne.Accept = "text/event-stream";
4388
4358
  var J = h.headers;
4389
4359
  if (J != null)
4390
- for (var _e in J)
4391
- Object.prototype.hasOwnProperty.call(J, _e) && (re[_e] = J[_e]);
4360
+ for (var Ee in J)
4361
+ Object.prototype.hasOwnProperty.call(J, Ee) && (ne[Ee] = J[Ee]);
4392
4362
  try {
4393
- X = Ae.open(ee, Er, xr, un, z, ue, re);
4394
- } catch (Ee) {
4395
- throw Rt(), Ee;
4363
+ X = Ae.open(ee, Tn, Bn, hr, z, ue, ne);
4364
+ } catch (xe) {
4365
+ throw Lt(), xe;
4396
4366
  }
4397
4367
  };
4398
- h.url = y, h.readyState = pe, h.withCredentials = g, h.headers = B, h._close = Rt, et();
4368
+ h.url = y, h.readyState = pe, h.withCredentials = g, h.headers = B, h._close = Lt, Ke();
4399
4369
  }
4400
4370
  ae.prototype = Object.create(q.prototype), ae.prototype.CONNECTING = pe, ae.prototype.OPEN = le, ae.prototype.CLOSED = He, ae.prototype.close = function() {
4401
4371
  this._close();
@@ -4409,46 +4379,115 @@ var en = { exports: {} };
4409
4379
  }(function(h) {
4410
4380
  h.EventSourcePolyfill = ae, h.NativeEventSource = l, h.EventSource = ct;
4411
4381
  });
4412
- })(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : Yr : globalThis);
4413
- })(en, en.exports);
4414
- var Go = en.exports;
4415
- function Se(e) {
4382
+ })(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : ei : globalThis);
4383
+ })(tr, tr.exports);
4384
+ var Vo = tr.exports;
4385
+ /*! *****************************************************************************
4386
+ Copyright (c) Microsoft Corporation.
4387
+
4388
+ Permission to use, copy, modify, and/or distribute this software for any
4389
+ purpose with or without fee is hereby granted.
4390
+
4391
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
4392
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
4393
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
4394
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
4395
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
4396
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
4397
+ PERFORMANCE OF THIS SOFTWARE.
4398
+ ***************************************************************************** */
4399
+ var rr = function(e, t) {
4400
+ return rr = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
4401
+ r.__proto__ = n;
4402
+ } || function(r, n) {
4403
+ for (var i in n)
4404
+ Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
4405
+ }, rr(e, t);
4406
+ };
4407
+ function at(e, t) {
4408
+ if (typeof t != "function" && t !== null)
4409
+ throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
4410
+ rr(e, t);
4411
+ function r() {
4412
+ this.constructor = e;
4413
+ }
4414
+ e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
4415
+ }
4416
+ function nr(e) {
4417
+ var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
4418
+ if (r)
4419
+ return r.call(e);
4420
+ if (e && typeof e.length == "number")
4421
+ return {
4422
+ next: function() {
4423
+ return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
4424
+ }
4425
+ };
4426
+ throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
4427
+ }
4428
+ function ir(e, t) {
4429
+ var r = typeof Symbol == "function" && e[Symbol.iterator];
4430
+ if (!r)
4431
+ return e;
4432
+ var n = r.call(e), i, o = [], s;
4433
+ try {
4434
+ for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
4435
+ o.push(i.value);
4436
+ } catch (a) {
4437
+ s = { error: a };
4438
+ } finally {
4439
+ try {
4440
+ i && !i.done && (r = n.return) && r.call(n);
4441
+ } finally {
4442
+ if (s)
4443
+ throw s.error;
4444
+ }
4445
+ }
4446
+ return o;
4447
+ }
4448
+ function or(e, t, r) {
4449
+ if (arguments.length === 2)
4450
+ for (var n = 0, i = t.length, o; n < i; n++)
4451
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
4452
+ return e.concat(o || t);
4453
+ }
4454
+ function Te(e) {
4416
4455
  return typeof e == "function";
4417
4456
  }
4418
- function mr(e) {
4419
- var t = function(r) {
4420
- Error.call(r), r.stack = new Error().stack;
4421
- }, n = e(t);
4422
- return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
4423
- }
4424
- var Ft = mr(function(e) {
4425
- return function(n) {
4426
- e(this), this.message = n ? n.length + ` errors occurred during unsubscription:
4427
- ` + n.map(function(r, i) {
4428
- return i + 1 + ") " + r.toString();
4457
+ function vn(e) {
4458
+ var t = function(n) {
4459
+ Error.call(n), n.stack = new Error().stack;
4460
+ }, r = e(t);
4461
+ return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
4462
+ }
4463
+ var kt = vn(function(e) {
4464
+ return function(r) {
4465
+ e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
4466
+ ` + r.map(function(n, i) {
4467
+ return i + 1 + ") " + n.toString();
4429
4468
  }).join(`
4430
- `) : "", this.name = "UnsubscriptionError", this.errors = n;
4469
+ `) : "", this.name = "UnsubscriptionError", this.errors = r;
4431
4470
  };
4432
4471
  });
4433
- function tn(e, t) {
4472
+ function ar(e, t) {
4434
4473
  if (e) {
4435
- var n = e.indexOf(t);
4436
- 0 <= n && e.splice(n, 1);
4474
+ var r = e.indexOf(t);
4475
+ 0 <= r && e.splice(r, 1);
4437
4476
  }
4438
4477
  }
4439
- var At = function() {
4478
+ var Ht = function() {
4440
4479
  function e(t) {
4441
4480
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
4442
4481
  }
4443
4482
  return e.prototype.unsubscribe = function() {
4444
- var t, n, r, i, o;
4483
+ var t, r, n, i, o;
4445
4484
  if (!this.closed) {
4446
4485
  this.closed = !0;
4447
4486
  var s = this._parentage;
4448
4487
  if (s)
4449
4488
  if (this._parentage = null, Array.isArray(s))
4450
4489
  try {
4451
- for (var a = Vt(s), l = a.next(); !l.done; l = a.next()) {
4490
+ for (var a = nr(s), l = a.next(); !l.done; l = a.next()) {
4452
4491
  var u = l.value;
4453
4492
  u.remove(this);
4454
4493
  }
@@ -4456,7 +4495,7 @@ var At = function() {
4456
4495
  t = { error: A };
4457
4496
  } finally {
4458
4497
  try {
4459
- l && !l.done && (n = a.return) && n.call(a);
4498
+ l && !l.done && (r = a.return) && r.call(a);
4460
4499
  } finally {
4461
4500
  if (t)
4462
4501
  throw t.error;
@@ -4465,122 +4504,118 @@ var At = function() {
4465
4504
  else
4466
4505
  s.remove(this);
4467
4506
  var f = this.initialTeardown;
4468
- if (Se(f))
4507
+ if (Te(f))
4469
4508
  try {
4470
4509
  f();
4471
4510
  } catch (A) {
4472
- o = A instanceof Ft ? A.errors : [A];
4511
+ o = A instanceof kt ? A.errors : [A];
4473
4512
  }
4474
4513
  var b = this._finalizers;
4475
4514
  if (b) {
4476
4515
  this._finalizers = null;
4477
4516
  try {
4478
- for (var m = Vt(b), w = m.next(); !w.done; w = m.next()) {
4517
+ for (var m = nr(b), w = m.next(); !w.done; w = m.next()) {
4479
4518
  var _ = w.value;
4480
4519
  try {
4481
- An(_);
4520
+ Or(_);
4482
4521
  } catch (A) {
4483
- o = o ?? [], A instanceof Ft ? o = je(je([], Xt(o)), Xt(A.errors)) : o.push(A);
4522
+ o = o ?? [], A instanceof kt ? o = or(or([], ir(o)), ir(A.errors)) : o.push(A);
4484
4523
  }
4485
4524
  }
4486
4525
  } catch (A) {
4487
- r = { error: A };
4526
+ n = { error: A };
4488
4527
  } finally {
4489
4528
  try {
4490
4529
  w && !w.done && (i = m.return) && i.call(m);
4491
4530
  } finally {
4492
- if (r)
4493
- throw r.error;
4531
+ if (n)
4532
+ throw n.error;
4494
4533
  }
4495
4534
  }
4496
4535
  }
4497
4536
  if (o)
4498
- throw new Ft(o);
4537
+ throw new kt(o);
4499
4538
  }
4500
4539
  }, e.prototype.add = function(t) {
4501
- var n;
4540
+ var r;
4502
4541
  if (t && t !== this)
4503
4542
  if (this.closed)
4504
- An(t);
4543
+ Or(t);
4505
4544
  else {
4506
4545
  if (t instanceof e) {
4507
4546
  if (t.closed || t._hasParent(this))
4508
4547
  return;
4509
4548
  t._addParent(this);
4510
4549
  }
4511
- (this._finalizers = (n = this._finalizers) !== null && n !== void 0 ? n : []).push(t);
4550
+ (this._finalizers = (r = this._finalizers) !== null && r !== void 0 ? r : []).push(t);
4512
4551
  }
4513
4552
  }, e.prototype._hasParent = function(t) {
4514
- var n = this._parentage;
4515
- return n === t || Array.isArray(n) && n.includes(t);
4553
+ var r = this._parentage;
4554
+ return r === t || Array.isArray(r) && r.includes(t);
4516
4555
  }, e.prototype._addParent = function(t) {
4517
- var n = this._parentage;
4518
- this._parentage = Array.isArray(n) ? (n.push(t), n) : n ? [n, t] : t;
4556
+ var r = this._parentage;
4557
+ this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
4519
4558
  }, e.prototype._removeParent = function(t) {
4520
- var n = this._parentage;
4521
- n === t ? this._parentage = null : Array.isArray(n) && tn(n, t);
4559
+ var r = this._parentage;
4560
+ r === t ? this._parentage = null : Array.isArray(r) && ar(r, t);
4522
4561
  }, e.prototype.remove = function(t) {
4523
- var n = this._finalizers;
4524
- n && tn(n, t), t instanceof e && t._removeParent(this);
4562
+ var r = this._finalizers;
4563
+ r && ar(r, t), t instanceof e && t._removeParent(this);
4525
4564
  }, e.EMPTY = function() {
4526
4565
  var t = new e();
4527
4566
  return t.closed = !0, t;
4528
4567
  }(), e;
4529
- }(), br = At.EMPTY;
4530
- function gr(e) {
4531
- return e instanceof At || e && "closed" in e && Se(e.remove) && Se(e.add) && Se(e.unsubscribe);
4568
+ }(), _n = Ht.EMPTY;
4569
+ function En(e) {
4570
+ return e instanceof Ht || e && "closed" in e && Te(e.remove) && Te(e.add) && Te(e.unsubscribe);
4532
4571
  }
4533
- function An(e) {
4534
- Se(e) ? e() : e.unsubscribe();
4535
- }
4536
- var jo = {
4537
- onUnhandledError: null,
4538
- onStoppedNotification: null,
4539
- Promise: void 0,
4540
- useDeprecatedSynchronousErrorHandling: !1,
4541
- useDeprecatedNextContext: !1
4542
- }, ko = {
4572
+ function Or(e) {
4573
+ Te(e) ? e() : e.unsubscribe();
4574
+ }
4575
+ var Xo = {
4576
+ Promise: void 0
4577
+ }, zo = {
4543
4578
  setTimeout: function(e, t) {
4544
- for (var n = [], r = 2; r < arguments.length; r++)
4545
- n[r - 2] = arguments[r];
4546
- return setTimeout.apply(void 0, je([e, t], Xt(n)));
4579
+ for (var r = [], n = 2; n < arguments.length; n++)
4580
+ r[n - 2] = arguments[n];
4581
+ return setTimeout.apply(void 0, or([e, t], ir(r)));
4547
4582
  },
4548
4583
  clearTimeout: function(e) {
4549
4584
  return clearTimeout(e);
4550
4585
  },
4551
4586
  delegate: void 0
4552
4587
  };
4553
- function $o(e) {
4554
- ko.setTimeout(function() {
4588
+ function Wo(e) {
4589
+ zo.setTimeout(function() {
4555
4590
  throw e;
4556
4591
  });
4557
4592
  }
4558
- function Cn() {
4593
+ function Pr() {
4559
4594
  }
4560
4595
  function yt(e) {
4561
4596
  e();
4562
4597
  }
4563
- var yr = function(e) {
4564
- Te(t, e);
4565
- function t(n) {
4566
- var r = e.call(this) || this;
4567
- return r.isStopped = !1, n ? (r.destination = n, gr(n) && n.add(r)) : r.destination = zo, r;
4598
+ var xn = function(e) {
4599
+ at(t, e);
4600
+ function t(r) {
4601
+ var n = e.call(this) || this;
4602
+ return n.isStopped = !1, r ? (n.destination = r, En(r) && r.add(n)) : n.destination = Yo, n;
4568
4603
  }
4569
- return t.create = function(n, r, i) {
4570
- return new nn(n, r, i);
4571
- }, t.prototype.next = function(n) {
4572
- this.isStopped || this._next(n);
4573
- }, t.prototype.error = function(n) {
4574
- this.isStopped || (this.isStopped = !0, this._error(n));
4604
+ return t.create = function(r, n, i) {
4605
+ return new sr(r, n, i);
4606
+ }, t.prototype.next = function(r) {
4607
+ this.isStopped || this._next(r);
4608
+ }, t.prototype.error = function(r) {
4609
+ this.isStopped || (this.isStopped = !0, this._error(r));
4575
4610
  }, t.prototype.complete = function() {
4576
4611
  this.isStopped || (this.isStopped = !0, this._complete());
4577
4612
  }, t.prototype.unsubscribe = function() {
4578
4613
  this.closed || (this.isStopped = !0, e.prototype.unsubscribe.call(this), this.destination = null);
4579
- }, t.prototype._next = function(n) {
4580
- this.destination.next(n);
4581
- }, t.prototype._error = function(n) {
4614
+ }, t.prototype._next = function(r) {
4615
+ this.destination.next(r);
4616
+ }, t.prototype._error = function(r) {
4582
4617
  try {
4583
- this.destination.error(n);
4618
+ this.destination.error(r);
4584
4619
  } finally {
4585
4620
  this.unsubscribe();
4586
4621
  }
@@ -4591,25 +4626,25 @@ var yr = function(e) {
4591
4626
  this.unsubscribe();
4592
4627
  }
4593
4628
  }, t;
4594
- }(At), Vo = function() {
4629
+ }(Ht), Zo = function() {
4595
4630
  function e(t) {
4596
4631
  this.partialObserver = t;
4597
4632
  }
4598
4633
  return e.prototype.next = function(t) {
4599
- var n = this.partialObserver;
4600
- if (n.next)
4634
+ var r = this.partialObserver;
4635
+ if (r.next)
4601
4636
  try {
4602
- n.next(t);
4603
- } catch (r) {
4604
- pt(r);
4637
+ r.next(t);
4638
+ } catch (n) {
4639
+ pt(n);
4605
4640
  }
4606
4641
  }, e.prototype.error = function(t) {
4607
- var n = this.partialObserver;
4608
- if (n.error)
4642
+ var r = this.partialObserver;
4643
+ if (r.error)
4609
4644
  try {
4610
- n.error(t);
4611
- } catch (r) {
4612
- pt(r);
4645
+ r.error(t);
4646
+ } catch (n) {
4647
+ pt(n);
4613
4648
  }
4614
4649
  else
4615
4650
  pt(t);
@@ -4618,55 +4653,55 @@ var yr = function(e) {
4618
4653
  if (t.complete)
4619
4654
  try {
4620
4655
  t.complete();
4621
- } catch (n) {
4622
- pt(n);
4656
+ } catch (r) {
4657
+ pt(r);
4623
4658
  }
4624
4659
  }, e;
4625
- }(), nn = function(e) {
4626
- Te(t, e);
4627
- function t(n, r, i) {
4660
+ }(), sr = function(e) {
4661
+ at(t, e);
4662
+ function t(r, n, i) {
4628
4663
  var o = e.call(this) || this, s;
4629
- return Se(n) || !n ? s = {
4630
- next: n ?? void 0,
4631
- error: r ?? void 0,
4664
+ return Te(r) || !r ? s = {
4665
+ next: r ?? void 0,
4666
+ error: n ?? void 0,
4632
4667
  complete: i ?? void 0
4633
- } : s = n, o.destination = new Vo(s), o;
4668
+ } : s = r, o.destination = new Zo(s), o;
4634
4669
  }
4635
4670
  return t;
4636
- }(yr);
4671
+ }(xn);
4637
4672
  function pt(e) {
4638
- $o(e);
4673
+ Wo(e);
4639
4674
  }
4640
- function Xo(e) {
4675
+ function qo(e) {
4641
4676
  throw e;
4642
4677
  }
4643
- var zo = {
4678
+ var Yo = {
4644
4679
  closed: !0,
4645
- next: Cn,
4646
- error: Xo,
4647
- complete: Cn
4648
- }, Wo = function() {
4680
+ next: Pr,
4681
+ error: qo,
4682
+ complete: Pr
4683
+ }, Qo = function() {
4649
4684
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
4650
4685
  }();
4651
- function Zo(e) {
4686
+ function Jo(e) {
4652
4687
  return e;
4653
4688
  }
4654
- function qo(e) {
4655
- return e.length === 0 ? Zo : e.length === 1 ? e[0] : function(n) {
4656
- return e.reduce(function(r, i) {
4657
- return i(r);
4658
- }, n);
4689
+ function Ko(e) {
4690
+ return e.length === 0 ? Jo : e.length === 1 ? e[0] : function(r) {
4691
+ return e.reduce(function(n, i) {
4692
+ return i(n);
4693
+ }, r);
4659
4694
  };
4660
4695
  }
4661
- var Hn = function() {
4696
+ var Rr = function() {
4662
4697
  function e(t) {
4663
4698
  t && (this._subscribe = t);
4664
4699
  }
4665
4700
  return e.prototype.lift = function(t) {
4666
- var n = new e();
4667
- return n.source = this, n.operator = t, n;
4668
- }, e.prototype.subscribe = function(t, n, r) {
4669
- var i = this, o = Qo(t) ? t : new nn(t, n, r);
4701
+ var r = new e();
4702
+ return r.source = this, r.operator = t, r;
4703
+ }, e.prototype.subscribe = function(t, r, n) {
4704
+ var i = this, o = ta(t) ? t : new sr(t, r, n);
4670
4705
  return yt(function() {
4671
4706
  var s = i, a = s.operator, l = s.source;
4672
4707
  o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
@@ -4674,13 +4709,13 @@ var Hn = function() {
4674
4709
  }, e.prototype._trySubscribe = function(t) {
4675
4710
  try {
4676
4711
  return this._subscribe(t);
4677
- } catch (n) {
4678
- t.error(n);
4712
+ } catch (r) {
4713
+ t.error(r);
4679
4714
  }
4680
- }, e.prototype.forEach = function(t, n) {
4681
- var r = this;
4682
- return n = On(n), new n(function(i, o) {
4683
- var s = new nn({
4715
+ }, e.prototype.forEach = function(t, r) {
4716
+ var n = this;
4717
+ return r = Mr(r), new r(function(i, o) {
4718
+ var s = new sr({
4684
4719
  next: function(a) {
4685
4720
  try {
4686
4721
  t(a);
@@ -4691,69 +4726,69 @@ var Hn = function() {
4691
4726
  error: o,
4692
4727
  complete: i
4693
4728
  });
4694
- r.subscribe(s);
4729
+ n.subscribe(s);
4695
4730
  });
4696
4731
  }, e.prototype._subscribe = function(t) {
4697
- var n;
4698
- return (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t);
4699
- }, e.prototype[Wo] = function() {
4732
+ var r;
4733
+ return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
4734
+ }, e.prototype[Qo] = function() {
4700
4735
  return this;
4701
4736
  }, e.prototype.pipe = function() {
4702
- for (var t = [], n = 0; n < arguments.length; n++)
4703
- t[n] = arguments[n];
4704
- return qo(t)(this);
4737
+ for (var t = [], r = 0; r < arguments.length; r++)
4738
+ t[r] = arguments[r];
4739
+ return Ko(t)(this);
4705
4740
  }, e.prototype.toPromise = function(t) {
4706
- var n = this;
4707
- return t = On(t), new t(function(r, i) {
4741
+ var r = this;
4742
+ return t = Mr(t), new t(function(n, i) {
4708
4743
  var o;
4709
- n.subscribe(function(s) {
4744
+ r.subscribe(function(s) {
4710
4745
  return o = s;
4711
4746
  }, function(s) {
4712
4747
  return i(s);
4713
4748
  }, function() {
4714
- return r(o);
4749
+ return n(o);
4715
4750
  });
4716
4751
  });
4717
4752
  }, e.create = function(t) {
4718
4753
  return new e(t);
4719
4754
  }, e;
4720
4755
  }();
4721
- function On(e) {
4756
+ function Mr(e) {
4722
4757
  var t;
4723
- return (t = e ?? jo.Promise) !== null && t !== void 0 ? t : Promise;
4758
+ return (t = e ?? Xo.Promise) !== null && t !== void 0 ? t : Promise;
4724
4759
  }
4725
- function Yo(e) {
4726
- return e && Se(e.next) && Se(e.error) && Se(e.complete);
4760
+ function ea(e) {
4761
+ return e && Te(e.next) && Te(e.error) && Te(e.complete);
4727
4762
  }
4728
- function Qo(e) {
4729
- return e && e instanceof yr || Yo(e) && gr(e);
4763
+ function ta(e) {
4764
+ return e && e instanceof xn || ea(e) && En(e);
4730
4765
  }
4731
- var Jo = mr(function(e) {
4766
+ var ra = vn(function(e) {
4732
4767
  return function() {
4733
4768
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
4734
4769
  };
4735
- }), vr = function(e) {
4736
- Te(t, e);
4770
+ }), wn = function(e) {
4771
+ at(t, e);
4737
4772
  function t() {
4738
- var n = e.call(this) || this;
4739
- return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
4773
+ var r = e.call(this) || this;
4774
+ return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
4740
4775
  }
4741
- return t.prototype.lift = function(n) {
4742
- var r = new Mn(this, this);
4743
- return r.operator = n, r;
4776
+ return t.prototype.lift = function(r) {
4777
+ var n = new Lr(this, this);
4778
+ return n.operator = r, n;
4744
4779
  }, t.prototype._throwIfClosed = function() {
4745
4780
  if (this.closed)
4746
- throw new Jo();
4747
- }, t.prototype.next = function(n) {
4748
- var r = this;
4781
+ throw new ra();
4782
+ }, t.prototype.next = function(r) {
4783
+ var n = this;
4749
4784
  yt(function() {
4750
4785
  var i, o;
4751
- if (r._throwIfClosed(), !r.isStopped) {
4752
- r.currentObservers || (r.currentObservers = Array.from(r.observers));
4786
+ if (n._throwIfClosed(), !n.isStopped) {
4787
+ n.currentObservers || (n.currentObservers = Array.from(n.observers));
4753
4788
  try {
4754
- for (var s = Vt(r.currentObservers), a = s.next(); !a.done; a = s.next()) {
4789
+ for (var s = nr(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
4755
4790
  var l = a.value;
4756
- l.next(n);
4791
+ l.next(r);
4757
4792
  }
4758
4793
  } catch (u) {
4759
4794
  i = { error: u };
@@ -4767,121 +4802,121 @@ var Jo = mr(function(e) {
4767
4802
  }
4768
4803
  }
4769
4804
  });
4770
- }, t.prototype.error = function(n) {
4771
- var r = this;
4805
+ }, t.prototype.error = function(r) {
4806
+ var n = this;
4772
4807
  yt(function() {
4773
- if (r._throwIfClosed(), !r.isStopped) {
4774
- r.hasError = r.isStopped = !0, r.thrownError = n;
4775
- for (var i = r.observers; i.length; )
4776
- i.shift().error(n);
4808
+ if (n._throwIfClosed(), !n.isStopped) {
4809
+ n.hasError = n.isStopped = !0, n.thrownError = r;
4810
+ for (var i = n.observers; i.length; )
4811
+ i.shift().error(r);
4777
4812
  }
4778
4813
  });
4779
4814
  }, t.prototype.complete = function() {
4780
- var n = this;
4815
+ var r = this;
4781
4816
  yt(function() {
4782
- if (n._throwIfClosed(), !n.isStopped) {
4783
- n.isStopped = !0;
4784
- for (var r = n.observers; r.length; )
4785
- r.shift().complete();
4817
+ if (r._throwIfClosed(), !r.isStopped) {
4818
+ r.isStopped = !0;
4819
+ for (var n = r.observers; n.length; )
4820
+ n.shift().complete();
4786
4821
  }
4787
4822
  });
4788
4823
  }, t.prototype.unsubscribe = function() {
4789
4824
  this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
4790
4825
  }, Object.defineProperty(t.prototype, "observed", {
4791
4826
  get: function() {
4792
- var n;
4793
- return ((n = this.observers) === null || n === void 0 ? void 0 : n.length) > 0;
4827
+ var r;
4828
+ return ((r = this.observers) === null || r === void 0 ? void 0 : r.length) > 0;
4794
4829
  },
4795
4830
  enumerable: !1,
4796
4831
  configurable: !0
4797
- }), t.prototype._trySubscribe = function(n) {
4798
- return this._throwIfClosed(), e.prototype._trySubscribe.call(this, n);
4799
- }, t.prototype._subscribe = function(n) {
4800
- return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
4801
- }, t.prototype._innerSubscribe = function(n) {
4802
- var r = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
4803
- return o || s ? br : (this.currentObservers = null, a.push(n), new At(function() {
4804
- r.currentObservers = null, tn(a, n);
4832
+ }), t.prototype._trySubscribe = function(r) {
4833
+ return this._throwIfClosed(), e.prototype._trySubscribe.call(this, r);
4834
+ }, t.prototype._subscribe = function(r) {
4835
+ return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
4836
+ }, t.prototype._innerSubscribe = function(r) {
4837
+ var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
4838
+ return o || s ? _n : (this.currentObservers = null, a.push(r), new Ht(function() {
4839
+ n.currentObservers = null, ar(a, r);
4805
4840
  }));
4806
- }, t.prototype._checkFinalizedStatuses = function(n) {
4807
- var r = this, i = r.hasError, o = r.thrownError, s = r.isStopped;
4808
- i ? n.error(o) : s && n.complete();
4841
+ }, t.prototype._checkFinalizedStatuses = function(r) {
4842
+ var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
4843
+ i ? r.error(o) : s && r.complete();
4809
4844
  }, t.prototype.asObservable = function() {
4810
- var n = new Hn();
4811
- return n.source = this, n;
4812
- }, t.create = function(n, r) {
4813
- return new Mn(n, r);
4845
+ var r = new Rr();
4846
+ return r.source = this, r;
4847
+ }, t.create = function(r, n) {
4848
+ return new Lr(r, n);
4814
4849
  }, t;
4815
- }(Hn), Mn = function(e) {
4816
- Te(t, e);
4817
- function t(n, r) {
4850
+ }(Rr), Lr = function(e) {
4851
+ at(t, e);
4852
+ function t(r, n) {
4818
4853
  var i = e.call(this) || this;
4819
- return i.destination = n, i.source = r, i;
4854
+ return i.destination = r, i.source = n, i;
4820
4855
  }
4821
- return t.prototype.next = function(n) {
4822
- var r, i;
4823
- (i = (r = this.destination) === null || r === void 0 ? void 0 : r.next) === null || i === void 0 || i.call(r, n);
4824
- }, t.prototype.error = function(n) {
4825
- var r, i;
4826
- (i = (r = this.destination) === null || r === void 0 ? void 0 : r.error) === null || i === void 0 || i.call(r, n);
4856
+ return t.prototype.next = function(r) {
4857
+ var n, i;
4858
+ (i = (n = this.destination) === null || n === void 0 ? void 0 : n.next) === null || i === void 0 || i.call(n, r);
4859
+ }, t.prototype.error = function(r) {
4860
+ var n, i;
4861
+ (i = (n = this.destination) === null || n === void 0 ? void 0 : n.error) === null || i === void 0 || i.call(n, r);
4827
4862
  }, t.prototype.complete = function() {
4828
- var n, r;
4829
- (r = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || r === void 0 || r.call(n);
4830
- }, t.prototype._subscribe = function(n) {
4831
- var r, i;
4832
- return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : br;
4863
+ var r, n;
4864
+ (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
4865
+ }, t.prototype._subscribe = function(r) {
4866
+ var n, i;
4867
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : _n;
4833
4868
  }, t;
4834
- }(vr), _r = {
4869
+ }(wn), Sn = {
4835
4870
  now: function() {
4836
- return (_r.delegate || Date).now();
4871
+ return (Sn.delegate || Date).now();
4837
4872
  },
4838
4873
  delegate: void 0
4839
- }, Ko = function(e) {
4840
- Te(t, e);
4841
- function t(n, r, i) {
4842
- n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = _r);
4874
+ }, na = function(e) {
4875
+ at(t, e);
4876
+ function t(r, n, i) {
4877
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Sn);
4843
4878
  var o = e.call(this) || this;
4844
- return o._bufferSize = n, o._windowTime = r, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = r === 1 / 0, o._bufferSize = Math.max(1, n), o._windowTime = Math.max(1, r), o;
4879
+ return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
4845
4880
  }
4846
- return t.prototype.next = function(n) {
4847
- var r = this, i = r.isStopped, o = r._buffer, s = r._infiniteTimeWindow, a = r._timestampProvider, l = r._windowTime;
4848
- i || (o.push(n), !s && o.push(a.now() + l)), this._trimBuffer(), e.prototype.next.call(this, n);
4849
- }, t.prototype._subscribe = function(n) {
4881
+ return t.prototype.next = function(r) {
4882
+ var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, l = n._windowTime;
4883
+ i || (o.push(r), !s && o.push(a.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
4884
+ }, t.prototype._subscribe = function(r) {
4850
4885
  this._throwIfClosed(), this._trimBuffer();
4851
- for (var r = this._innerSubscribe(n), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), l = 0; l < a.length && !n.closed; l += o ? 1 : 2)
4852
- n.next(a[l]);
4853
- return this._checkFinalizedStatuses(n), r;
4886
+ for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), l = 0; l < a.length && !r.closed; l += o ? 1 : 2)
4887
+ r.next(a[l]);
4888
+ return this._checkFinalizedStatuses(r), n;
4854
4889
  }, t.prototype._trimBuffer = function() {
4855
- var n = this, r = n._bufferSize, i = n._timestampProvider, o = n._buffer, s = n._infiniteTimeWindow, a = (s ? 1 : 2) * r;
4856
- if (r < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
4890
+ var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
4891
+ if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
4857
4892
  for (var l = i.now(), u = 0, f = 1; f < o.length && o[f] <= l; f += 2)
4858
4893
  u = f;
4859
4894
  u && o.splice(0, u + 1);
4860
4895
  }
4861
4896
  }, t;
4862
- }(vr);
4863
- const Rn = [], Ln = {}, ea = (e, t = 0) => {
4864
- if (Rn.indexOf(e) == -1) {
4865
- const n = new Ko(t);
4866
- Ln[e] = n, Rn.push(e);
4897
+ }(wn);
4898
+ const Nr = [], Ir = {}, ia = (e, t = 0) => {
4899
+ if (Nr.indexOf(e) == -1) {
4900
+ const r = new na(t);
4901
+ Ir[e] = r, Nr.push(e);
4867
4902
  }
4868
- return Ln[e];
4903
+ return Ir[e];
4869
4904
  };
4870
- window.emWidgets = { topic: ea };
4871
- const ta = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
4872
- function na(e) {
4873
- Tr(e, "svelte-lfsn3o", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;background:transparent;border:none;font:inherit;color:inherit;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;background:transparent;border:none;font:inherit;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));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, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.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, white))}.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, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}');
4905
+ window.emWidgets = { topic: ia };
4906
+ const oa = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
4907
+ function aa(e) {
4908
+ Hn(e, "svelte-lfsn3o", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;background:transparent;border:none;font:inherit;color:inherit;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;background:transparent;border:none;font:inherit;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));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, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.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, white))}.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, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}');
4874
4909
  }
4875
- function Pn(e, t, n) {
4876
- const r = e.slice();
4877
- return r[54] = t[n], r;
4910
+ function Dr(e, t, r) {
4911
+ const n = e.slice();
4912
+ return n[54] = t[r], n;
4878
4913
  }
4879
- function Nn(e, t, n) {
4880
- const r = e.slice();
4881
- return r[57] = t[n], r;
4914
+ function Ur(e, t, r) {
4915
+ const n = e.slice();
4916
+ return n[57] = t[r], n;
4882
4917
  }
4883
- function ra(e) {
4884
- let t, n, r = (
4918
+ function sa(e) {
4919
+ let t, r, n = (
4885
4920
  /*balances*/
4886
4921
  (e[1].Total ? (
4887
4922
  /*formatBalance*/
@@ -4892,93 +4927,93 @@ function ra(e) {
4892
4927
  ) : "0") + ""
4893
4928
  ), i, o, s, a, l, u, f, b, m, w, _ = (
4894
4929
  /*showBalance*/
4895
- e[4] && In(e)
4930
+ e[4] && Fr(e)
4896
4931
  );
4897
4932
  return {
4898
4933
  c() {
4899
- t = j("button"), n = j("p"), i = xe(r), o = we(), s = j("span"), a = cn("svg"), l = cn("path"), f = we(), _ && _.c(), b = Cr(), M(l, "id", "arrow"), M(l, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), M(l, "transform", "translate(-274.511 -441.088)"), M(l, "fill", "#d1d1d1"), M(a, "xmlns", "http://www.w3.org/2000/svg"), M(a, "width", "14"), M(a, "height", "6.835"), M(a, "viewBox", "0 0 14 6.835"), M(s, "class", u = /*isModalDisplayed*/
4900
- e[3] ? "TriangleActive" : "TriangleInactive"), M(t, "class", "BalanceValue");
4934
+ t = G("button"), r = G("p"), i = we(n), o = Se(), s = G("span"), a = dr("svg"), l = dr("path"), f = Se(), _ && _.c(), b = Rn(), P(l, "id", "arrow"), P(l, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), P(l, "transform", "translate(-274.511 -441.088)"), P(l, "fill", "#d1d1d1"), P(a, "xmlns", "http://www.w3.org/2000/svg"), P(a, "width", "14"), P(a, "height", "6.835"), P(a, "viewBox", "0 0 14 6.835"), P(s, "class", u = /*isModalDisplayed*/
4935
+ e[3] ? "TriangleActive" : "TriangleInactive"), P(t, "class", "BalanceValue");
4901
4936
  },
4902
- m(A, I) {
4903
- be(A, t, I), P(t, n), P(n, i), P(t, o), P(t, s), P(s, a), P(a, l), be(A, f, I), _ && _.m(A, I), be(A, b, I), m || (w = vt(
4937
+ m(A, N) {
4938
+ ge(A, t, N), M(t, r), M(r, i), M(t, o), M(t, s), M(s, a), M(a, l), ge(A, f, N), _ && _.m(A, N), ge(A, b, N), m || (w = vt(
4904
4939
  t,
4905
4940
  "click",
4906
4941
  /*click_handler*/
4907
4942
  e[26]
4908
4943
  ), m = !0);
4909
4944
  },
4910
- p(A, I) {
4911
- I[0] & /*balances*/
4912
- 2 && r !== (r = /*balances*/
4945
+ p(A, N) {
4946
+ N[0] & /*balances*/
4947
+ 2 && n !== (n = /*balances*/
4913
4948
  (A[1].Total ? (
4914
4949
  /*formatBalance*/
4915
4950
  A[8](
4916
4951
  /*balances*/
4917
4952
  A[1].Total[0].amount
4918
4953
  )
4919
- ) : "0") + "") && Me(i, r), I[0] & /*isModalDisplayed*/
4954
+ ) : "0") + "") && Pe(i, n), N[0] & /*isModalDisplayed*/
4920
4955
  8 && u !== (u = /*isModalDisplayed*/
4921
- A[3] ? "TriangleActive" : "TriangleInactive") && M(s, "class", u), /*showBalance*/
4922
- A[4] ? _ ? _.p(A, I) : (_ = In(A), _.c(), _.m(b.parentNode, b)) : _ && (_.d(1), _ = null);
4956
+ A[3] ? "TriangleActive" : "TriangleInactive") && P(s, "class", u), /*showBalance*/
4957
+ A[4] ? _ ? _.p(A, N) : (_ = Fr(A), _.c(), _.m(b.parentNode, b)) : _ && (_.d(1), _ = null);
4923
4958
  },
4924
4959
  d(A) {
4925
4960
  A && (de(t), de(f), de(b)), _ && _.d(A), m = !1, w();
4926
4961
  }
4927
4962
  };
4928
4963
  }
4929
- function ia(e) {
4930
- let t, n = (
4964
+ function ua(e) {
4965
+ let t, r = (
4931
4966
  /*$_*/
4932
4967
  e[6]("Loading") + ""
4933
- ), r;
4968
+ ), n;
4934
4969
  return {
4935
4970
  c() {
4936
- t = j("p"), r = xe(n), M(t, "class", "Loading");
4971
+ t = G("p"), n = we(r), P(t, "class", "Loading");
4937
4972
  },
4938
4973
  m(i, o) {
4939
- be(i, t, o), P(t, r);
4974
+ ge(i, t, o), M(t, n);
4940
4975
  },
4941
4976
  p(i, o) {
4942
4977
  o[0] & /*$_*/
4943
- 64 && n !== (n = /*$_*/
4944
- i[6]("Loading") + "") && Me(r, n);
4978
+ 64 && r !== (r = /*$_*/
4979
+ i[6]("Loading") + "") && Pe(n, r);
4945
4980
  },
4946
4981
  d(i) {
4947
4982
  i && de(t);
4948
4983
  }
4949
4984
  };
4950
4985
  }
4951
- function In(e) {
4952
- let t, n, r, i, o, s, a, l, u = (
4986
+ function Fr(e) {
4987
+ let t, r, n, i, o, s, a, l, u = (
4953
4988
  /*$_*/
4954
4989
  e[6]("Title") + ""
4955
- ), f, b, m, w, _, A, I = (
4990
+ ), f, b, m, w, _, A, N = (
4956
4991
  /*$_*/
4957
4992
  e[6]("DepositButton") + ""
4958
- ), W, V, R, D, k, oe, Z = _t(Object.keys(
4993
+ ), W, V, R, I, j, oe, Z = _t(Object.keys(
4959
4994
  /*balances*/
4960
4995
  e[1]
4961
- )), $ = [];
4962
- for (let U = 0; U < Z.length; U += 1)
4963
- $[U] = Un(Pn(e, Z, U));
4996
+ )), k = [];
4997
+ for (let D = 0; D < Z.length; D += 1)
4998
+ k[D] = jr(Dr(e, Z, D));
4964
4999
  return {
4965
5000
  c() {
4966
- t = j("div"), n = j("button"), i = we(), o = j("div"), s = j("div"), a = j("div"), l = j("p"), f = xe(u), b = we(), m = j("div");
4967
- for (let U = 0; U < $.length; U += 1)
4968
- $[U].c();
4969
- w = we(), _ = j("div"), A = j("button"), W = xe(I), M(n, "class", r = "BalanceModalClose " + /*isModalDisplayed*/
4970
- (e[3] ? "Open" : "")), M(l, "class", "BalanceModalTitle"), M(a, "class", "BalanceModalHeader"), M(m, "class", "BalanceModalBody"), M(A, "class", "BalanceModalAction"), M(_, "class", "BalanceModalFooter"), M(s, "class", V = "ModalContent " + /*isModalDisplayed*/
4971
- (e[3] ? "Open" : "")), M(o, "class", R = "BalanceModal " + /*isModalDisplayed*/
4972
- (e[3] ? "Open" : "")), M(t, "class", D = "BalanceModalWrapper " + /*isModalDisplayed*/
5001
+ t = G("div"), r = G("button"), i = Se(), o = G("div"), s = G("div"), a = G("div"), l = G("p"), f = we(u), b = Se(), m = G("div");
5002
+ for (let D = 0; D < k.length; D += 1)
5003
+ k[D].c();
5004
+ w = Se(), _ = G("div"), A = G("button"), W = we(N), P(r, "class", n = "BalanceModalClose " + /*isModalDisplayed*/
5005
+ (e[3] ? "Open" : "")), P(l, "class", "BalanceModalTitle"), P(a, "class", "BalanceModalHeader"), P(m, "class", "BalanceModalBody"), P(A, "class", "BalanceModalAction"), P(_, "class", "BalanceModalFooter"), P(s, "class", V = "ModalContent " + /*isModalDisplayed*/
5006
+ (e[3] ? "Open" : "")), P(o, "class", R = "BalanceModal " + /*isModalDisplayed*/
5007
+ (e[3] ? "Open" : "")), P(t, "class", I = "BalanceModalWrapper " + /*isModalDisplayed*/
4973
5008
  (e[3] ? "Open" : ""));
4974
5009
  },
4975
- m(U, q) {
4976
- be(U, t, q), P(t, n), P(t, i), P(t, o), P(o, s), P(s, a), P(a, l), P(l, f), P(s, b), P(s, m);
4977
- for (let F = 0; F < $.length; F += 1)
4978
- $[F] && $[F].m(m, null);
4979
- P(s, w), P(s, _), P(_, A), P(A, W), k || (oe = [
5010
+ m(D, q) {
5011
+ ge(D, t, q), M(t, r), M(t, i), M(t, o), M(o, s), M(s, a), M(a, l), M(l, f), M(s, b), M(s, m);
5012
+ for (let U = 0; U < k.length; U += 1)
5013
+ k[U] && k[U].m(m, null);
5014
+ M(s, w), M(s, _), M(_, A), M(A, W), j || (oe = [
4980
5015
  vt(
4981
- n,
5016
+ r,
4982
5017
  "click",
4983
5018
  /*click_handler_1*/
4984
5019
  e[27]
@@ -4989,45 +5024,45 @@ function In(e) {
4989
5024
  /*click_handler_2*/
4990
5025
  e[28]
4991
5026
  )
4992
- ], k = !0);
5027
+ ], j = !0);
4993
5028
  },
4994
- p(U, q) {
5029
+ p(D, q) {
4995
5030
  if (q[0] & /*isModalDisplayed*/
4996
- 8 && r !== (r = "BalanceModalClose " + /*isModalDisplayed*/
4997
- (U[3] ? "Open" : "")) && M(n, "class", r), q[0] & /*$_*/
5031
+ 8 && n !== (n = "BalanceModalClose " + /*isModalDisplayed*/
5032
+ (D[3] ? "Open" : "")) && P(r, "class", n), q[0] & /*$_*/
4998
5033
  64 && u !== (u = /*$_*/
4999
- U[6]("Title") + "") && Me(f, u), q[0] & /*balances, formatBalance, $_*/
5034
+ D[6]("Title") + "") && Pe(f, u), q[0] & /*balances, formatBalance, $_*/
5000
5035
  322) {
5001
5036
  Z = _t(Object.keys(
5002
5037
  /*balances*/
5003
- U[1]
5038
+ D[1]
5004
5039
  ));
5005
- let F;
5006
- for (F = 0; F < Z.length; F += 1) {
5007
- const K = Pn(U, Z, F);
5008
- $[F] ? $[F].p(K, q) : ($[F] = Un(K), $[F].c(), $[F].m(m, null));
5040
+ let U;
5041
+ for (U = 0; U < Z.length; U += 1) {
5042
+ const K = Dr(D, Z, U);
5043
+ k[U] ? k[U].p(K, q) : (k[U] = jr(K), k[U].c(), k[U].m(m, null));
5009
5044
  }
5010
- for (; F < $.length; F += 1)
5011
- $[F].d(1);
5012
- $.length = Z.length;
5045
+ for (; U < k.length; U += 1)
5046
+ k[U].d(1);
5047
+ k.length = Z.length;
5013
5048
  }
5014
5049
  q[0] & /*$_*/
5015
- 64 && I !== (I = /*$_*/
5016
- U[6]("DepositButton") + "") && Me(W, I), q[0] & /*isModalDisplayed*/
5050
+ 64 && N !== (N = /*$_*/
5051
+ D[6]("DepositButton") + "") && Pe(W, N), q[0] & /*isModalDisplayed*/
5017
5052
  8 && V !== (V = "ModalContent " + /*isModalDisplayed*/
5018
- (U[3] ? "Open" : "")) && M(s, "class", V), q[0] & /*isModalDisplayed*/
5053
+ (D[3] ? "Open" : "")) && P(s, "class", V), q[0] & /*isModalDisplayed*/
5019
5054
  8 && R !== (R = "BalanceModal " + /*isModalDisplayed*/
5020
- (U[3] ? "Open" : "")) && M(o, "class", R), q[0] & /*isModalDisplayed*/
5021
- 8 && D !== (D = "BalanceModalWrapper " + /*isModalDisplayed*/
5022
- (U[3] ? "Open" : "")) && M(t, "class", D);
5055
+ (D[3] ? "Open" : "")) && P(o, "class", R), q[0] & /*isModalDisplayed*/
5056
+ 8 && I !== (I = "BalanceModalWrapper " + /*isModalDisplayed*/
5057
+ (D[3] ? "Open" : "")) && P(t, "class", I);
5023
5058
  },
5024
- d(U) {
5025
- U && de(t), $n($, U), k = !1, ze(oe);
5059
+ d(D) {
5060
+ D && de(t), zr(k, D), j = !1, Xe(oe);
5026
5061
  }
5027
5062
  };
5028
5063
  }
5029
- function Dn(e) {
5030
- let t, n, r = (
5064
+ function Gr(e) {
5065
+ let t, r, n = (
5031
5066
  /*$_*/
5032
5067
  e[6](
5033
5068
  /*k*/
@@ -5051,18 +5086,18 @@ function Dn(e) {
5051
5086
  ), m;
5052
5087
  return {
5053
5088
  c() {
5054
- t = j("div"), n = j("p"), i = xe(r), o = we(), a = xe(s), l = we(), u = j("p"), f = j("span"), m = xe(b), M(n, "class", "BalanceModalText"), M(f, "class", "BalanceModalAmount"), M(u, "class", "BalanceModalValue"), M(t, "class", "BalanceModalRowLine");
5089
+ t = G("div"), r = G("p"), i = we(n), o = Se(), a = we(s), l = Se(), u = G("p"), f = G("span"), m = we(b), P(r, "class", "BalanceModalText"), P(f, "class", "BalanceModalAmount"), P(u, "class", "BalanceModalValue"), P(t, "class", "BalanceModalRowLine");
5055
5090
  },
5056
5091
  m(w, _) {
5057
- be(w, t, _), P(t, n), P(n, i), P(n, o), P(n, a), P(t, l), P(t, u), P(u, f), P(f, m);
5092
+ ge(w, t, _), M(t, r), M(r, i), M(r, o), M(r, a), M(t, l), M(t, u), M(u, f), M(f, m);
5058
5093
  },
5059
5094
  p(w, _) {
5060
5095
  _[0] & /*$_, balances*/
5061
- 66 && r !== (r = /*$_*/
5096
+ 66 && n !== (n = /*$_*/
5062
5097
  w[6](
5063
5098
  /*k*/
5064
5099
  w[54]
5065
- ) + "") && Me(i, r), _[0] & /*balances, $_*/
5100
+ ) + "") && Pe(i, n), _[0] & /*balances, $_*/
5066
5101
  66 && s !== (s = /*b*/
5067
5102
  (w[57].productType ? (
5068
5103
  /*$_*/
@@ -5070,45 +5105,45 @@ function Dn(e) {
5070
5105
  /*b*/
5071
5106
  w[57].productType
5072
5107
  )
5073
- ) : "") + "") && Me(a, s), _[0] & /*balances*/
5108
+ ) : "") + "") && Pe(a, s), _[0] & /*balances*/
5074
5109
  2 && b !== (b = /*formatBalance*/
5075
5110
  w[8](
5076
5111
  /*b*/
5077
5112
  w[57].amount
5078
- ) + "") && Me(m, b);
5113
+ ) + "") && Pe(m, b);
5079
5114
  },
5080
5115
  d(w) {
5081
5116
  w && de(t);
5082
5117
  }
5083
5118
  };
5084
5119
  }
5085
- function Un(e) {
5086
- let t, n, r = _t(
5120
+ function jr(e) {
5121
+ let t, r, n = _t(
5087
5122
  /*balances*/
5088
5123
  e[1][
5089
5124
  /*k*/
5090
5125
  e[54]
5091
5126
  ]
5092
5127
  ), i = [];
5093
- for (let o = 0; o < r.length; o += 1)
5094
- i[o] = Dn(Nn(e, r, o));
5128
+ for (let o = 0; o < n.length; o += 1)
5129
+ i[o] = Gr(Ur(e, n, o));
5095
5130
  return {
5096
5131
  c() {
5097
- t = j("div");
5132
+ t = G("div");
5098
5133
  for (let o = 0; o < i.length; o += 1)
5099
5134
  i[o].c();
5100
- n = we(), M(t, "class", "BalanceModalRowBoth");
5135
+ r = Se(), P(t, "class", "BalanceModalRowBoth");
5101
5136
  },
5102
5137
  m(o, s) {
5103
- be(o, t, s);
5138
+ ge(o, t, s);
5104
5139
  for (let a = 0; a < i.length; a += 1)
5105
5140
  i[a] && i[a].m(t, null);
5106
- P(t, n);
5141
+ M(t, r);
5107
5142
  },
5108
5143
  p(o, s) {
5109
5144
  if (s[0] & /*formatBalance, balances, $_*/
5110
5145
  322) {
5111
- r = _t(
5146
+ n = _t(
5112
5147
  /*balances*/
5113
5148
  o[1][
5114
5149
  /*k*/
@@ -5116,65 +5151,65 @@ function Un(e) {
5116
5151
  ]
5117
5152
  );
5118
5153
  let a;
5119
- for (a = 0; a < r.length; a += 1) {
5120
- const l = Nn(o, r, a);
5121
- i[a] ? i[a].p(l, s) : (i[a] = Dn(l), i[a].c(), i[a].m(t, n));
5154
+ for (a = 0; a < n.length; a += 1) {
5155
+ const l = Ur(o, n, a);
5156
+ i[a] ? i[a].p(l, s) : (i[a] = Gr(l), i[a].c(), i[a].m(t, r));
5122
5157
  }
5123
5158
  for (; a < i.length; a += 1)
5124
5159
  i[a].d(1);
5125
- i.length = r.length;
5160
+ i.length = n.length;
5126
5161
  }
5127
5162
  },
5128
5163
  d(o) {
5129
- o && de(t), $n(i, o);
5164
+ o && de(t), zr(i, o);
5130
5165
  }
5131
5166
  };
5132
5167
  }
5133
- function Fn(e) {
5134
- let t, n, r;
5168
+ function kr(e) {
5169
+ let t, r, n;
5135
5170
  return {
5136
5171
  c() {
5137
- t = j("button"), M(t, "class", "ShowBalanceModalOverlay");
5172
+ t = G("button"), P(t, "class", "ShowBalanceModalOverlay");
5138
5173
  },
5139
5174
  m(i, o) {
5140
- be(i, t, o), n || (r = vt(
5175
+ ge(i, t, o), r || (n = vt(
5141
5176
  t,
5142
5177
  "click",
5143
5178
  /*click_handler_3*/
5144
5179
  e[29]
5145
- ), n = !0);
5180
+ ), r = !0);
5146
5181
  },
5147
5182
  p: ce,
5148
5183
  d(i) {
5149
- i && de(t), n = !1, r();
5184
+ i && de(t), r = !1, n();
5150
5185
  }
5151
5186
  };
5152
5187
  }
5153
- function oa(e) {
5154
- let t, n, r, i;
5188
+ function la(e) {
5189
+ let t, r, n, i;
5155
5190
  function o(u, f) {
5156
5191
  return (
5157
5192
  /*isLoading*/
5158
- u[2] ? ia : ra
5193
+ u[2] ? ua : sa
5159
5194
  );
5160
5195
  }
5161
5196
  let s = o(e), a = s(e), l = (
5162
5197
  /*showBalance*/
5163
- e[4] && Fn(e)
5198
+ e[4] && kr(e)
5164
5199
  );
5165
5200
  return {
5166
5201
  c() {
5167
- t = j("div"), n = j("div"), a.c(), i = we(), l && l.c(), M(n, "class", r = "ShowBalance " + /*mobileView*/
5202
+ t = G("div"), r = G("div"), a.c(), i = Se(), l && l.c(), P(r, "class", n = "ShowBalance " + /*mobileView*/
5168
5203
  (e[5] ? "Mobile" : ""));
5169
5204
  },
5170
5205
  m(u, f) {
5171
- be(u, t, f), P(t, n), a.m(n, null), P(t, i), l && l.m(t, null), e[30](t);
5206
+ ge(u, t, f), M(t, r), a.m(r, null), M(t, i), l && l.m(t, null), e[30](t);
5172
5207
  },
5173
5208
  p(u, f) {
5174
- s === (s = o(u)) && a ? a.p(u, f) : (a.d(1), a = s(u), a && (a.c(), a.m(n, null))), f[0] & /*mobileView*/
5175
- 32 && r !== (r = "ShowBalance " + /*mobileView*/
5176
- (u[5] ? "Mobile" : "")) && M(n, "class", r), /*showBalance*/
5177
- u[4] ? l ? l.p(u, f) : (l = Fn(u), l.c(), l.m(t, null)) : l && (l.d(1), l = null);
5209
+ s === (s = o(u)) && a ? a.p(u, f) : (a.d(1), a = s(u), a && (a.c(), a.m(r, null))), f[0] & /*mobileView*/
5210
+ 32 && n !== (n = "ShowBalance " + /*mobileView*/
5211
+ (u[5] ? "Mobile" : "")) && P(r, "class", n), /*showBalance*/
5212
+ u[4] ? l ? l.p(u, f) : (l = kr(u), l.c(), l.m(t, null)) : l && (l.d(1), l = null);
5178
5213
  },
5179
5214
  i: ce,
5180
5215
  o: ce,
@@ -5183,14 +5218,14 @@ function oa(e) {
5183
5218
  }
5184
5219
  };
5185
5220
  }
5186
- function aa(e, t, n) {
5187
- let r;
5188
- Sr(e, Uo, (c) => n(6, r = c));
5189
- let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: s = "" } = t, { lang: a = "en" } = t, { mbsource: l } = t, { clientstyling: u = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: b = "" } = t, { gmversion: m = "gm16" } = t, { displaybalanceoption: w = "All" } = t, { totalcalculationmode: _ = "totalCashAmount" } = t, { currencylocale: A = "en" } = t, { currencydisplay: I = "symbol" } = t, { maximumfractiondigits: W = "2" } = t, { minimumfractiondigits: V = "0" } = t, { customdisplayformat: R = "" } = t, D, k = !0, oe = !1, Z = !1, $ = !1, U = !1, q = window.navigator.userAgent, F, K = "", he = [], ge;
5190
- const x = {}, ye = ["totalCashAmount", "totalRealAmount"], pe = () => {
5191
- fetch(b).then((c) => c.json()).then((c) => Object.keys(c).forEach((d) => Tn(d, c[d]))).catch((c) => console.log(c));
5221
+ function ca(e, t, r) {
5222
+ let n;
5223
+ Cn(e, ko, (c) => r(6, n = c));
5224
+ let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: s = "" } = t, { lang: a = "en" } = t, { mbsource: l } = t, { clientstyling: u = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: b = "" } = t, { gmversion: m = "gm16" } = t, { displaybalanceoption: w = "All" } = t, { totalcalculationmode: _ = "totalCashAmount" } = t, { currencylocale: A = "en" } = t, { currencydisplay: N = "symbol" } = t, { maximumfractiondigits: W = "2" } = t, { minimumfractiondigits: V = "0" } = t, { customdisplayformat: R = "" } = t, I, j = !0, oe = !1, Z = !1, k = !1, D = !1, q = window.navigator.userAgent, U, K = "", he = [], ye;
5225
+ const x = {}, ve = ["totalCashAmount", "totalRealAmount"], pe = () => {
5226
+ fetch(b).then((c) => c.json()).then((c) => Object.keys(c).forEach((d) => Cr(d, c[d]))).catch((c) => console.log(c));
5192
5227
  };
5193
- Object.keys(Bn).forEach((c) => Tn(c, Bn[c]));
5228
+ Object.keys(Hr).forEach((c) => Cr(c, Hr[c]));
5194
5229
  const le = (c) => {
5195
5230
  switch (c) {
5196
5231
  case "balance":
@@ -5200,10 +5235,10 @@ function aa(e, t, n) {
5200
5235
  status: "open"
5201
5236
  },
5202
5237
  window.location.href
5203
- ), n(4, $ = !0), setTimeout(() => n(3, oe = !0), 150);
5238
+ ), r(4, k = !0), setTimeout(() => r(3, oe = !0), 150);
5204
5239
  break;
5205
5240
  case "closebalance":
5206
- n(3, oe = !1), window.postMessage(
5241
+ r(3, oe = !1), window.postMessage(
5207
5242
  {
5208
5243
  type: "BalanceModalStatus",
5209
5244
  status: "close"
@@ -5211,7 +5246,7 @@ function aa(e, t, n) {
5211
5246
  window.location.href
5212
5247
  ), setTimeout(
5213
5248
  () => {
5214
- n(4, $ = !1);
5249
+ r(4, k = !1);
5215
5250
  },
5216
5251
  150
5217
5252
  );
@@ -5219,17 +5254,17 @@ function aa(e, t, n) {
5219
5254
  }
5220
5255
  }, He = (c) => {
5221
5256
  if (R)
5222
- return Ye(c);
5257
+ return qe(c);
5223
5258
  const d = A || a, p = {
5224
5259
  style: "currency",
5225
5260
  currency: K,
5226
5261
  useGrouping: !0,
5227
- currencyDisplay: I || "code",
5262
+ currencyDisplay: N || "code",
5228
5263
  maximumFractionDigits: W === "" || isNaN(Number(W)) ? 2 : Number(W),
5229
5264
  minimumFractionDigits: V === "" || isNaN(Number(V)) ? 0 : Number(V)
5230
5265
  };
5231
5266
  return new Intl.NumberFormat(d, p).format(c);
5232
- }, Ye = (c) => {
5267
+ }, qe = (c) => {
5233
5268
  const d = [];
5234
5269
  let p = "";
5235
5270
  for (const v of R)
@@ -5245,9 +5280,9 @@ function aa(e, t, n) {
5245
5280
  if (p = "", T.toLowerCase() === "currency")
5246
5281
  p = K;
5247
5282
  else if (T.toLowerCase() === "amount") {
5248
- let S = ",", B = ".", N = 2;
5249
- C && (C[0] !== " " && (S = C[0]), C[1] !== " " && (B = C[1]), C[2] !== " " && !isNaN(Number(C[2])) && (N = Number(C[2])));
5250
- let [ee, Ae] = String(Math.floor(c * 10 ** N) / 10 ** N).split(".");
5283
+ let S = ",", B = ".", L = 2;
5284
+ C && (C[0] !== " " && (S = C[0]), C[1] !== " " && (B = C[1]), C[2] !== " " && !isNaN(Number(C[2])) && (L = Number(C[2])));
5285
+ let [ee, Ae] = String(Math.floor(c * 10 ** L) / 10 ** L).split(".");
5251
5286
  p += ee[0];
5252
5287
  for (let X = 1; X < ee.length; ++X)
5253
5288
  (ee.length - X) % 3 === 0 ? p += S + ee[X] : p += ee[X];
@@ -5258,7 +5293,7 @@ function aa(e, t, n) {
5258
5293
  }
5259
5294
  return d.push(p), d.join("");
5260
5295
  }, me = async () => {
5261
- n(2, k = !0);
5296
+ r(2, j = !0);
5262
5297
  const c = new URL(`${s}/v1/player/${i}/account`);
5263
5298
  try {
5264
5299
  const d = await fetch(c, {
@@ -5266,7 +5301,7 @@ function aa(e, t, n) {
5266
5301
  headers: { "X-SessionID": o }
5267
5302
  }), p = await d.json();
5268
5303
  if (d.ok)
5269
- window.postMessage({ type: "BalancedFetched" }, window.location.href), he = p.items, K = he.find((v) => v.displayName === "Casino")?.currency, n(1, x.Total = [{ amount: p.totalAmount[K] }], x), n(
5304
+ window.postMessage({ type: "BalancedFetched" }, window.location.href), he = p.items, K = he.find((v) => v.displayName === "Casino")?.currency, r(1, x.Total = [{ amount: p.totalAmount[K] }], x), r(
5270
5305
  1,
5271
5306
  x.Real = [
5272
5307
  {
@@ -5274,7 +5309,7 @@ function aa(e, t, n) {
5274
5309
  }
5275
5310
  ],
5276
5311
  x
5277
- ), n(
5312
+ ), r(
5278
5313
  1,
5279
5314
  x.Bonus = [
5280
5315
  {
@@ -5288,36 +5323,36 @@ function aa(e, t, n) {
5288
5323
  } catch (d) {
5289
5324
  console.log("Balance error: ", d);
5290
5325
  } finally {
5291
- n(2, k = !1);
5326
+ r(2, j = !1);
5292
5327
  }
5293
- }, Qe = () => {
5294
- n(2, k = !0);
5328
+ }, Ye = () => {
5329
+ r(2, j = !0);
5295
5330
  const c = new URL(`${s}/v2/player/${i}/balance`), d = new Headers();
5296
5331
  d.append("X-SessionID", o), fetch(c, { method: "GET", headers: d }).then((v) => v.json()).then((v) => {
5297
- v[_] || n(10, _ = ye[0]);
5332
+ v[_] || r(10, _ = ve[0]);
5298
5333
  const T = v.items.find((S) => S.type === "Real" && S.walletAccountType === "Ordinary");
5299
- if (K = T.currency, Z = !!T.productType, n(1, x.Total = [{ amount: 0 }], x), n(1, x.Real = [], x), n(1, x.Bonus = [], x), n(1, x.Credit = [], x), !Z) {
5300
- ge = {
5334
+ if (K = T.currency, Z = !!T.productType, r(1, x.Total = [{ amount: 0 }], x), r(1, x.Real = [], x), r(1, x.Bonus = [], x), r(1, x.Credit = [], x), !Z) {
5335
+ ye = {
5301
5336
  lastOrdinaryAfterAmount: 0,
5302
5337
  showCreditLineAfterAmount: !1
5303
- }, n(1, x.Total[0].amount = v[_][K], x);
5338
+ }, r(1, x.Total[0].amount = v[_][K], x);
5304
5339
  for (const S of v.items)
5305
5340
  switch (S.type) {
5306
5341
  case "Bonus":
5307
- x.Bonus.length === 0 ? x.Bonus.push({ amount: S.amount }) : n(1, x.Bonus[0].amount += S.amount, x);
5342
+ x.Bonus.length === 0 ? x.Bonus.push({ amount: S.amount }) : r(1, x.Bonus[0].amount += S.amount, x);
5308
5343
  break;
5309
5344
  case "Real":
5310
5345
  if (S.creditLine && x.Credit.length === 0 && x.Credit.push({ amount: S.creditLine }), _ === "totalRealAmount")
5311
5346
  continue;
5312
- x.Real.length === 0 ? x.Real.push({ amount: S.amount }) : n(1, x.Real[0].amount += S.amount, x);
5347
+ x.Real.length === 0 ? x.Real.push({ amount: S.amount }) : r(1, x.Real[0].amount += S.amount, x);
5313
5348
  break;
5314
5349
  }
5315
5350
  for (const [S, B] of Object.entries(x))
5316
5351
  B.length < 1 && delete x[S];
5317
- n(2, k = !1);
5352
+ r(2, j = !1);
5318
5353
  return;
5319
5354
  }
5320
- ge = {
5355
+ ye = {
5321
5356
  Casino: {
5322
5357
  lastOrdinaryAfterAmount: 0,
5323
5358
  showCreditLineAfterAmount: !1
@@ -5333,7 +5368,7 @@ function aa(e, t, n) {
5333
5368
  let B;
5334
5369
  switch (S.type) {
5335
5370
  case "Bonus":
5336
- B = x.Bonus.findIndex((N) => N.productType === S.productType), B > 0 ? n(1, x.Bonus[B].amount += S.amount, x) : x.Bonus.push({
5371
+ B = x.Bonus.findIndex((L) => L.productType === S.productType), B > 0 ? r(1, x.Bonus[B].amount += S.amount, x) : x.Bonus.push({
5337
5372
  amount: S.amount,
5338
5373
  productType: S.productType
5339
5374
  });
@@ -5342,7 +5377,7 @@ function aa(e, t, n) {
5342
5377
  S.creditLine && x.Credit.push({
5343
5378
  amount: S.creditLine,
5344
5379
  productType: S.productType
5345
- }), B = x.Real.findIndex((N) => N.productType === S.productType), B > 0 ? n(1, x.Real[B].amount += S.amount, x) : x.Real.push({
5380
+ }), B = x.Real.findIndex((L) => L.productType === S.productType), B > 0 ? r(1, x.Real[B].amount += S.amount, x) : x.Real.push({
5346
5381
  amount: S.amount,
5347
5382
  productType: S.productType
5348
5383
  });
@@ -5352,27 +5387,27 @@ function aa(e, t, n) {
5352
5387
  ut();
5353
5388
  for (const [S, B] of Object.entries(x))
5354
5389
  B.length < 1 && delete x[S];
5355
- n(2, k = !1);
5390
+ r(2, j = !1);
5356
5391
  }).catch((v) => {
5357
- throw n(2, k = !1), console.log("Balance fetch error", v), new Error("Failed to fetch balance data!");
5392
+ throw r(2, j = !1), console.log("Balance fetch error", v), new Error("Failed to fetch balance data!");
5358
5393
  });
5359
- }, Le = () => {
5360
- if (F && F.close(), o.length < 1)
5394
+ }, Me = () => {
5395
+ if (U && U.close(), o.length < 1)
5361
5396
  return;
5362
5397
  let c, d;
5363
5398
  switch (m) {
5364
5399
  case "gm16":
5365
- c = new URL(`${s}/v2/player/${i}/information/updates`), d = (T) => Ke(T);
5400
+ c = new URL(`${s}/v2/player/${i}/information/updates`), d = (T) => Je(T);
5366
5401
  break;
5367
5402
  case "gmcore":
5368
- c = new URL(`${s}/v1/player/${i}/balance/updates`), d = (T) => Ct(T);
5403
+ c = new URL(`${s}/v1/player/${i}/balance/updates`), d = (T) => Ot(T);
5369
5404
  break;
5370
5405
  }
5371
5406
  const p = {
5372
5407
  accept: "text/event-stream",
5373
5408
  "X-SessionId": o
5374
- }, v = new Go.EventSourcePolyfill(c, { headers: p });
5375
- F = v, v.addEventListener("message", d);
5409
+ }, v = new Vo.EventSourcePolyfill(c, { headers: p });
5410
+ U = v, v.addEventListener("message", d);
5376
5411
  }, st = (c) => {
5377
5412
  let d;
5378
5413
  try {
@@ -5382,10 +5417,10 @@ function aa(e, t, n) {
5382
5417
  return;
5383
5418
  }
5384
5419
  return d;
5385
- }, Ct = (c) => {
5420
+ }, Ot = (c) => {
5386
5421
  const d = st(c.data);
5387
5422
  if (!d) {
5388
- Le();
5423
+ Me();
5389
5424
  return;
5390
5425
  }
5391
5426
  let p = "0";
@@ -5393,8 +5428,8 @@ function aa(e, t, n) {
5393
5428
  he = he.map((T) => (v && v[T.id] && (T = {
5394
5429
  ...T,
5395
5430
  balanceAmount: v[T.id].afterAmount
5396
- }), p = (parseFloat(T?.balanceAmount) + parseFloat(p)).toString(), T)), n(1, x.Real = [{ amount: he[0]?.balanceAmount }], x), n(1, x.Bonus = [{ amount: he[1]?.balanceAmount }], x), n(1, x.Total = [{ amount: Number(p) }], x);
5397
- }, Je = (c, d, p) => {
5431
+ }), p = (parseFloat(T?.balanceAmount) + parseFloat(p)).toString(), T)), r(1, x.Real = [{ amount: he[0]?.balanceAmount }], x), r(1, x.Bonus = [{ amount: he[1]?.balanceAmount }], x), r(1, x.Total = [{ amount: Number(p) }], x);
5432
+ }, Qe = (c, d, p) => {
5398
5433
  let v = null;
5399
5434
  switch (p.walletAccountType) {
5400
5435
  case "Ordinary":
@@ -5414,7 +5449,7 @@ function aa(e, t, n) {
5414
5449
  for (const p of ["Real", "Bonus"])
5415
5450
  for (const v of x[p])
5416
5451
  c += Math.max(v.amount, 0);
5417
- n(1, x.Total[0].amount = c, x);
5452
+ r(1, x.Total[0].amount = c, x);
5418
5453
  break;
5419
5454
  case "totalRealAmount":
5420
5455
  if (!Z)
@@ -5422,76 +5457,76 @@ function aa(e, t, n) {
5422
5457
  let d = 0;
5423
5458
  for (const p of x.Real)
5424
5459
  d += p.amount;
5425
- n(1, x.Total[0].amount = d, x);
5460
+ r(1, x.Total[0].amount = d, x);
5426
5461
  }
5427
- }, Ke = (c) => {
5462
+ }, Je = (c) => {
5428
5463
  const d = st(c.data);
5429
5464
  if (!d) {
5430
- Le();
5465
+ Me();
5431
5466
  return;
5432
5467
  }
5433
5468
  if (Be(d?.type) || d.type !== "BALANCE_UPDATE_V2")
5434
5469
  return;
5435
5470
  const p = d.body.balanceChange;
5436
5471
  for (const [v, T] of Object.entries(p))
5437
- if (_ === "totalRealAmount" && v === "Real" && !Z && n(1, x.Total[0].amount = Je(x.Total[0].amount, ge, T), x), !!x[v])
5472
+ if (_ === "totalRealAmount" && v === "Real" && !Z && r(1, x.Total[0].amount = Qe(x.Total[0].amount, ye, T), x), !!x[v])
5438
5473
  for (const C of x[v]) {
5439
5474
  if (!Z) {
5440
- C.amount = v === "Real" ? Je(C.amount, ge, T) : T.afterAmount;
5475
+ C.amount = v === "Real" ? Qe(C.amount, ye, T) : T.afterAmount;
5441
5476
  continue;
5442
5477
  }
5443
- T.productType === C.productType && (C.amount = v === "Real" ? Je(C.amount, ge[C.productType], T) : T.afterAmount);
5478
+ T.productType === C.productType && (C.amount = v === "Real" ? Qe(C.amount, ye[C.productType], T) : T.afterAmount);
5444
5479
  }
5445
5480
  ut();
5446
- }, Pe = () => {
5481
+ }, Le = () => {
5447
5482
  le("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
5448
5483
  }, Be = (c) => c === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, ae = () => {
5449
- ye.includes(_) || (console.error(`Unsupported value ('${_}') for totalcalculationmode parameter. Only the following values are supported ${ye}. Using default value ('${ye[0]}').`), n(10, _ = ye[0]));
5450
- }, Ht = () => {
5451
- switch (Fo(a), ae(), m) {
5484
+ ve.includes(_) || (console.error(`Unsupported value ('${_}') for totalcalculationmode parameter. Only the following values are supported ${ve}. Using default value ('${ve[0]}').`), r(10, _ = ve[0]));
5485
+ }, Pt = () => {
5486
+ switch ($o(a), ae(), m) {
5452
5487
  case "gmcore":
5453
5488
  me();
5454
5489
  break;
5455
5490
  case "gm16":
5456
- Qe();
5491
+ Ye();
5457
5492
  break;
5458
5493
  default:
5459
5494
  throw Error(`Invalid apiversion attribute: ${m}`);
5460
5495
  }
5461
- }, lt = (c) => c.data && c.data.type === "LogoutSuccessfull" && F.close(), Ot = () => {
5496
+ }, lt = (c) => c.data && c.data.type === "LogoutSuccessfull" && U.close(), Rt = () => {
5462
5497
  window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
5463
5498
  };
5464
- Rr(() => (window.addEventListener("message", lt, !1), n(5, U = ta(q)), () => {
5465
- window.removeEventListener("message", lt), F && F.close();
5499
+ In(() => (window.addEventListener("message", lt, !1), r(5, D = oa(q)), () => {
5500
+ window.removeEventListener("message", lt), U && U.close();
5466
5501
  }));
5467
- const ct = () => le("balance"), h = () => le("closebalance"), y = () => Pe(), E = () => le("closebalance");
5502
+ const ct = () => le("balance"), h = () => le("closebalance"), y = () => Le(), E = () => le("closebalance");
5468
5503
  function g(c) {
5469
- Gt[c ? "unshift" : "push"](() => {
5470
- D = c, n(0, D);
5504
+ $t[c ? "unshift" : "push"](() => {
5505
+ I = c, r(0, I);
5471
5506
  });
5472
5507
  }
5473
5508
  return e.$$set = (c) => {
5474
- "userid" in c && n(11, i = c.userid), "session" in c && n(12, o = c.session), "endpoint" in c && n(13, s = c.endpoint), "lang" in c && n(14, a = c.lang), "mbsource" in c && n(15, l = c.mbsource), "clientstyling" in c && n(16, u = c.clientstyling), "clientstylingurl" in c && n(17, f = c.clientstylingurl), "translationurl" in c && n(18, b = c.translationurl), "gmversion" in c && n(19, m = c.gmversion), "displaybalanceoption" in c && n(20, w = c.displaybalanceoption), "totalcalculationmode" in c && n(10, _ = c.totalcalculationmode), "currencylocale" in c && n(21, A = c.currencylocale), "currencydisplay" in c && n(22, I = c.currencydisplay), "maximumfractiondigits" in c && n(23, W = c.maximumfractiondigits), "minimumfractiondigits" in c && n(24, V = c.minimumfractiondigits), "customdisplayformat" in c && n(25, R = c.customdisplayformat);
5509
+ "userid" in c && r(11, i = c.userid), "session" in c && r(12, o = c.session), "endpoint" in c && r(13, s = c.endpoint), "lang" in c && r(14, a = c.lang), "mbsource" in c && r(15, l = c.mbsource), "clientstyling" in c && r(16, u = c.clientstyling), "clientstylingurl" in c && r(17, f = c.clientstylingurl), "translationurl" in c && r(18, b = c.translationurl), "gmversion" in c && r(19, m = c.gmversion), "displaybalanceoption" in c && r(20, w = c.displaybalanceoption), "totalcalculationmode" in c && r(10, _ = c.totalcalculationmode), "currencylocale" in c && r(21, A = c.currencylocale), "currencydisplay" in c && r(22, N = c.currencydisplay), "maximumfractiondigits" in c && r(23, W = c.maximumfractiondigits), "minimumfractiondigits" in c && r(24, V = c.minimumfractiondigits), "customdisplayformat" in c && r(25, R = c.customdisplayformat);
5475
5510
  }, e.$$.update = () => {
5476
5511
  e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
5477
- 1603584 && s && i && o && a && m && w && Ht(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
5478
- 538624 && s && i && o && m && Le(), e.$$.dirty[0] & /*translationurl*/
5512
+ 1603584 && s && i && o && a && m && w && Pt(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
5513
+ 538624 && s && i && o && m && Me(), e.$$.dirty[0] & /*translationurl*/
5479
5514
  262144 && b && pe(), e.$$.dirty[0] & /*balances*/
5480
- 2 && x.Total && Ot(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5481
- 65537 && u && D && zr(D, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5482
- 131073 && f && D && Wr(D, f), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
5483
- 32769 && l && D && Zr(D, `${l}.Style`);
5515
+ 2 && x.Total && Rt(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5516
+ 65537 && u && I && Yn(I, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5517
+ 131073 && f && I && Qn(I, f), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
5518
+ 32769 && l && I && Jn(I, `${l}.Style`);
5484
5519
  }, [
5485
- D,
5520
+ I,
5486
5521
  x,
5487
- k,
5522
+ j,
5488
5523
  oe,
5489
- $,
5490
- U,
5491
- r,
5524
+ k,
5525
+ D,
5526
+ n,
5492
5527
  le,
5493
5528
  He,
5494
- Pe,
5529
+ Le,
5495
5530
  _,
5496
5531
  i,
5497
5532
  o,
@@ -5504,7 +5539,7 @@ function aa(e, t, n) {
5504
5539
  m,
5505
5540
  w,
5506
5541
  A,
5507
- I,
5542
+ N,
5508
5543
  W,
5509
5544
  V,
5510
5545
  R,
@@ -5515,14 +5550,14 @@ function aa(e, t, n) {
5515
5550
  g
5516
5551
  ];
5517
5552
  }
5518
- class sa extends Vr {
5553
+ class ha extends Zn {
5519
5554
  constructor(t) {
5520
- super(), kr(
5555
+ super(), zn(
5521
5556
  this,
5522
5557
  t,
5523
- aa,
5524
- oa,
5525
- jn,
5558
+ ca,
5559
+ la,
5560
+ Vr,
5526
5561
  {
5527
5562
  userid: 11,
5528
5563
  session: 12,
@@ -5541,7 +5576,7 @@ class sa extends Vr {
5541
5576
  minimumfractiondigits: 24,
5542
5577
  customdisplayformat: 25
5543
5578
  },
5544
- na,
5579
+ aa,
5545
5580
  [-1, -1]
5546
5581
  );
5547
5582
  }
@@ -5642,7 +5677,7 @@ class sa extends Vr {
5642
5677
  this.$$set({ customdisplayformat: t }), Q();
5643
5678
  }
5644
5679
  }
5645
- $r(sa, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencylocale: {}, currencydisplay: {}, maximumfractiondigits: {}, minimumfractiondigits: {}, customdisplayformat: {} }, [], [], !0);
5680
+ Wn(ha, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencylocale: {}, currencydisplay: {}, maximumfractiondigits: {}, minimumfractiondigits: {}, customdisplayformat: {} }, [], [], !0);
5646
5681
  export {
5647
- sa as P
5682
+ ha as P
5648
5683
  };