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

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