@everymatrix/player-account-balance-modal 1.77.26 → 1.77.28

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.
@@ -6,10 +6,10 @@ function Bn(e) {
6
6
  function en() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
- function Ge(e) {
9
+ function je(e) {
10
10
  e.forEach(Bn);
11
11
  }
12
- function Zt(e) {
12
+ function Qt(e) {
13
13
  return typeof e == "function";
14
14
  }
15
15
  function Sn(e, t) {
@@ -36,7 +36,7 @@ function M(e, t) {
36
36
  function rr(e, t, n) {
37
37
  const r = ir(e);
38
38
  if (!r.getElementById(t)) {
39
- const i = U("style");
39
+ const i = $("style");
40
40
  i.id = t, i.textContent = n, or(r, i);
41
41
  }
42
42
  }
@@ -60,14 +60,14 @@ function or(e, t) {
60
60
  function ce(e, t, n) {
61
61
  e.insertBefore(t, n || null);
62
62
  }
63
- function ue(e) {
63
+ function se(e) {
64
64
  e.parentNode && e.parentNode.removeChild(e);
65
65
  }
66
66
  function An(e, t) {
67
67
  for (let n = 0; n < e.length; n += 1)
68
68
  e[n] && e[n].d(t);
69
69
  }
70
- function U(e) {
70
+ function $(e) {
71
71
  return document.createElement(e);
72
72
  }
73
73
  function ve(e) {
@@ -82,17 +82,17 @@ function ar() {
82
82
  function ft(e, t, n, r) {
83
83
  return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
84
84
  }
85
- function W(e, t, n) {
85
+ function Z(e, t, n) {
86
86
  n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
87
87
  }
88
88
  function sr(e) {
89
89
  return Array.from(e.childNodes);
90
90
  }
91
- function Ae(e, t) {
91
+ function Ce(e, t) {
92
92
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
93
93
  t);
94
94
  }
95
- function lr(e) {
95
+ function ur(e) {
96
96
  const t = {};
97
97
  return e.childNodes.forEach(
98
98
  /** @param {Element} node */
@@ -101,65 +101,65 @@ function lr(e) {
101
101
  }
102
102
  ), t;
103
103
  }
104
- let Ye;
105
- function Je(e) {
106
- Ye = e;
104
+ let et;
105
+ function Ke(e) {
106
+ et = e;
107
107
  }
108
- function ur() {
109
- if (!Ye)
108
+ function lr() {
109
+ if (!et)
110
110
  throw new Error("Function called outside component initialization");
111
- return Ye;
111
+ return et;
112
112
  }
113
113
  function hr(e) {
114
- ur().$$.on_mount.push(e);
114
+ lr().$$.on_mount.push(e);
115
115
  }
116
- const Me = [], Pt = [];
117
- let Pe = [];
116
+ const Ie = [], Dt = [];
117
+ let De = [];
118
118
  const tn = [], cr = /* @__PURE__ */ Promise.resolve();
119
- let It = !1;
119
+ let Ft = !1;
120
120
  function fr() {
121
- It || (It = !0, cr.then(V));
121
+ Ft || (Ft = !0, cr.then(X));
122
122
  }
123
- function Dt(e) {
124
- Pe.push(e);
123
+ function Ut(e) {
124
+ De.push(e);
125
125
  }
126
- const Ct = /* @__PURE__ */ new Set();
127
- let Re = 0;
128
- function V() {
129
- if (Re !== 0)
126
+ const Ot = /* @__PURE__ */ new Set();
127
+ let Me = 0;
128
+ function X() {
129
+ if (Me !== 0)
130
130
  return;
131
- const e = Ye;
131
+ const e = et;
132
132
  do {
133
133
  try {
134
- for (; Re < Me.length; ) {
135
- const t = Me[Re];
136
- Re++, Je(t), dr(t.$$);
134
+ for (; Me < Ie.length; ) {
135
+ const t = Ie[Me];
136
+ Me++, Ke(t), dr(t.$$);
137
137
  }
138
138
  } catch (t) {
139
- throw Me.length = 0, Re = 0, t;
139
+ throw Ie.length = 0, Me = 0, t;
140
140
  }
141
- for (Je(null), Me.length = 0, Re = 0; Pt.length; )
142
- Pt.pop()();
143
- for (let t = 0; t < Pe.length; t += 1) {
144
- const n = Pe[t];
145
- Ct.has(n) || (Ct.add(n), n());
141
+ for (Ke(null), Ie.length = 0, Me = 0; Dt.length; )
142
+ Dt.pop()();
143
+ for (let t = 0; t < De.length; t += 1) {
144
+ const n = De[t];
145
+ Ot.has(n) || (Ot.add(n), n());
146
146
  }
147
- Pe.length = 0;
148
- } while (Me.length);
147
+ De.length = 0;
148
+ } while (Ie.length);
149
149
  for (; tn.length; )
150
150
  tn.pop()();
151
- It = !1, Ct.clear(), Je(e);
151
+ Ft = !1, Ot.clear(), Ke(e);
152
152
  }
153
153
  function dr(e) {
154
154
  if (e.fragment !== null) {
155
- e.update(), Ge(e.before_update);
155
+ e.update(), je(e.before_update);
156
156
  const t = e.dirty;
157
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Dt);
157
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ut);
158
158
  }
159
159
  }
160
160
  function pr(e) {
161
161
  const t = [], n = [];
162
- Pe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Pe = t;
162
+ De.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), De = t;
163
163
  }
164
164
  const mr = /* @__PURE__ */ new Set();
165
165
  function gr(e, t) {
@@ -170,26 +170,26 @@ function dt(e) {
170
170
  }
171
171
  function br(e, t, n) {
172
172
  const { fragment: r, after_update: i } = e.$$;
173
- r && r.m(t, n), Dt(() => {
174
- const a = e.$$.on_mount.map(Bn).filter(Zt);
175
- e.$$.on_destroy ? e.$$.on_destroy.push(...a) : Ge(a), e.$$.on_mount = [];
176
- }), i.forEach(Dt);
173
+ r && r.m(t, n), Ut(() => {
174
+ const o = e.$$.on_mount.map(Bn).filter(Qt);
175
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : je(o), e.$$.on_mount = [];
176
+ }), i.forEach(Ut);
177
177
  }
178
178
  function yr(e, t) {
179
179
  const n = e.$$;
180
- n.fragment !== null && (pr(n.after_update), Ge(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
180
+ n.fragment !== null && (pr(n.after_update), je(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
181
181
  }
182
182
  function vr(e, t) {
183
- e.$$.dirty[0] === -1 && (Me.push(e), fr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
183
+ e.$$.dirty[0] === -1 && (Ie.push(e), fr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
184
184
  }
185
- function Er(e, t, n, r, i, a, l = null, s = [-1]) {
186
- const p = Ye;
187
- Je(e);
185
+ function Er(e, t, n, r, i, o, u = null, s = [-1]) {
186
+ const d = et;
187
+ Ke(e);
188
188
  const h = e.$$ = {
189
189
  fragment: null,
190
190
  ctx: [],
191
191
  // state
192
- props: a,
192
+ props: o,
193
193
  update: oe,
194
194
  not_equal: i,
195
195
  bound: en(),
@@ -199,27 +199,27 @@ function Er(e, t, n, r, i, a, l = null, s = [-1]) {
199
199
  on_disconnect: [],
200
200
  before_update: [],
201
201
  after_update: [],
202
- context: new Map(t.context || (p ? p.$$.context : [])),
202
+ context: new Map(t.context || (d ? d.$$.context : [])),
203
203
  // everything else
204
204
  callbacks: en(),
205
205
  dirty: s,
206
206
  skip_bound: !1,
207
- root: t.target || p.$$.root
207
+ root: t.target || d.$$.root
208
208
  };
209
- l && l(h.root);
210
- let d = !1;
211
- if (h.ctx = n ? n(e, t.props || {}, (m, g, ...x) => {
212
- const T = x.length ? x[0] : g;
213
- return h.ctx && i(h.ctx[m], h.ctx[m] = T) && (!h.skip_bound && h.bound[m] && h.bound[m](T), d && vr(e, m)), g;
214
- }) : [], h.update(), d = !0, Ge(h.before_update), h.fragment = r ? r(h.ctx) : !1, t.target) {
209
+ u && u(h.root);
210
+ let c = !1;
211
+ if (h.ctx = n ? n(e, t.props || {}, (g, y, ...x) => {
212
+ const T = x.length ? x[0] : y;
213
+ return h.ctx && i(h.ctx[g], h.ctx[g] = T) && (!h.skip_bound && h.bound[g] && h.bound[g](T), c && vr(e, g)), y;
214
+ }) : [], h.update(), c = !0, je(h.before_update), h.fragment = r ? r(h.ctx) : !1, t.target) {
215
215
  if (t.hydrate) {
216
- const m = sr(t.target);
217
- h.fragment && h.fragment.l(m), m.forEach(ue);
216
+ const g = sr(t.target);
217
+ h.fragment && h.fragment.l(g), g.forEach(se);
218
218
  } else
219
219
  h.fragment && h.fragment.c();
220
- t.intro && gr(e.$$.fragment), br(e, t.target, t.anchor), V();
220
+ t.intro && gr(e.$$.fragment), br(e, t.target, t.anchor), X();
221
221
  }
222
- Je(p);
222
+ Ke(d);
223
223
  }
224
224
  let Cn;
225
225
  typeof HTMLElement == "function" && (Cn = class extends HTMLElement {
@@ -261,32 +261,32 @@ typeof HTMLElement == "function" && (Cn = class extends HTMLElement {
261
261
  if (this.$$cn = !0, !this.$$c) {
262
262
  let e = function(i) {
263
263
  return () => {
264
- let a;
264
+ let o;
265
265
  return {
266
266
  c: function() {
267
- a = U("slot"), i !== "default" && W(a, "name", i);
267
+ o = $("slot"), i !== "default" && Z(o, "name", i);
268
268
  },
269
269
  /**
270
270
  * @param {HTMLElement} target
271
271
  * @param {HTMLElement} [anchor]
272
272
  */
273
- m: function(p, h) {
274
- ce(p, a, h);
273
+ m: function(d, h) {
274
+ ce(d, o, h);
275
275
  },
276
- d: function(p) {
277
- p && ue(a);
276
+ d: function(d) {
277
+ d && se(o);
278
278
  }
279
279
  };
280
280
  };
281
281
  };
282
282
  if (await Promise.resolve(), !this.$$cn || this.$$c)
283
283
  return;
284
- const t = {}, n = lr(this);
284
+ const t = {}, n = ur(this);
285
285
  for (const i of this.$$s)
286
286
  i in n && (t[i] = [e(i)]);
287
287
  for (const i of this.attributes) {
288
- const a = this.$$g_p(i.name);
289
- a in this.$$d || (this.$$d[a] = ut(a, i.value, this.$$p_d, "toProp"));
288
+ const o = this.$$g_p(i.name);
289
+ o in this.$$d || (this.$$d[o] = lt(o, i.value, this.$$p_d, "toProp"));
290
290
  }
291
291
  for (const i in this.$$p_d)
292
292
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -304,21 +304,21 @@ typeof HTMLElement == "function" && (Cn = class extends HTMLElement {
304
304
  this.$$r = !0;
305
305
  for (const i in this.$$p_d)
306
306
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
307
- const a = ut(
307
+ const o = lt(
308
308
  i,
309
309
  this.$$d[i],
310
310
  this.$$p_d,
311
311
  "toAttribute"
312
312
  );
313
- a == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, a);
313
+ o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
314
314
  }
315
315
  this.$$r = !1;
316
316
  };
317
317
  this.$$c.$$.after_update.push(r), r();
318
318
  for (const i in this.$$l)
319
- for (const a of this.$$l[i]) {
320
- const l = this.$$c.$on(i, a);
321
- this.$$l_u.set(a, l);
319
+ for (const o of this.$$l[i]) {
320
+ const u = this.$$c.$on(i, o);
321
+ this.$$l_u.set(o, u);
322
322
  }
323
323
  this.$$l = {};
324
324
  }
@@ -326,7 +326,7 @@ typeof HTMLElement == "function" && (Cn = class extends HTMLElement {
326
326
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
327
327
  // and setting attributes through setAttribute etc, this is helpful
328
328
  attributeChangedCallback(e, t, n) {
329
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = ut(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
329
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = lt(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
330
330
  }
331
331
  disconnectedCallback() {
332
332
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -339,7 +339,7 @@ typeof HTMLElement == "function" && (Cn = class extends HTMLElement {
339
339
  ) || e;
340
340
  }
341
341
  });
342
- function ut(e, t, n, r) {
342
+ function lt(e, t, n, r) {
343
343
  const i = n[e]?.type;
344
344
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
345
345
  return t;
@@ -368,8 +368,8 @@ function ut(e, t, n, r) {
368
368
  return t;
369
369
  }
370
370
  }
371
- function xr(e, t, n, r, i, a) {
372
- let l = class extends Cn {
371
+ function xr(e, t, n, r, i, o) {
372
+ let u = class extends Cn {
373
373
  constructor() {
374
374
  super(e, n, i), this.$$p_d = t;
375
375
  }
@@ -380,22 +380,22 @@ function xr(e, t, n, r, i, a) {
380
380
  }
381
381
  };
382
382
  return Object.keys(t).forEach((s) => {
383
- Object.defineProperty(l.prototype, s, {
383
+ Object.defineProperty(u.prototype, s, {
384
384
  get() {
385
385
  return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
386
386
  },
387
- set(p) {
388
- p = ut(s, p, t), this.$$d[s] = p, this.$$c?.$set({ [s]: p });
387
+ set(d) {
388
+ d = lt(s, d, t), this.$$d[s] = d, this.$$c?.$set({ [s]: d });
389
389
  }
390
390
  });
391
391
  }), r.forEach((s) => {
392
- Object.defineProperty(l.prototype, s, {
392
+ Object.defineProperty(u.prototype, s, {
393
393
  get() {
394
394
  return this.$$c?.[s];
395
395
  }
396
396
  });
397
397
  }), e.element = /** @type {any} */
398
- l, l;
398
+ u, u;
399
399
  }
400
400
  class _r {
401
401
  /**
@@ -425,7 +425,7 @@ class _r {
425
425
  * @returns {() => void}
426
426
  */
427
427
  $on(t, n) {
428
- if (!Zt(n))
428
+ if (!Qt(n))
429
429
  return oe;
430
430
  const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
431
431
  return r.push(n), () => {
@@ -466,66 +466,66 @@ function wr(e, t, n) {
466
466
  });
467
467
  }
468
468
  }
469
- const Ne = [];
469
+ const Pe = [];
470
470
  function Ar(e, t) {
471
471
  return {
472
- subscribe: gt(e, t).subscribe
472
+ subscribe: bt(e, t).subscribe
473
473
  };
474
474
  }
475
- function gt(e, t = oe) {
475
+ function bt(e, t = oe) {
476
476
  let n;
477
477
  const r = /* @__PURE__ */ new Set();
478
478
  function i(s) {
479
479
  if (Sn(e, s) && (e = s, n)) {
480
- const p = !Ne.length;
480
+ const d = !Pe.length;
481
481
  for (const h of r)
482
- h[1](), Ne.push(h, e);
483
- if (p) {
484
- for (let h = 0; h < Ne.length; h += 2)
485
- Ne[h][0](Ne[h + 1]);
486
- Ne.length = 0;
482
+ h[1](), Pe.push(h, e);
483
+ if (d) {
484
+ for (let h = 0; h < Pe.length; h += 2)
485
+ Pe[h][0](Pe[h + 1]);
486
+ Pe.length = 0;
487
487
  }
488
488
  }
489
489
  }
490
- function a(s) {
490
+ function o(s) {
491
491
  i(s(e));
492
492
  }
493
- function l(s, p = oe) {
494
- const h = [s, p];
495
- return r.add(h), r.size === 1 && (n = t(i, a) || oe), s(e), () => {
493
+ function u(s, d = oe) {
494
+ const h = [s, d];
495
+ return r.add(h), r.size === 1 && (n = t(i, o) || oe), s(e), () => {
496
496
  r.delete(h), r.size === 0 && n && (n(), n = null);
497
497
  };
498
498
  }
499
- return { set: i, update: a, subscribe: l };
499
+ return { set: i, update: o, subscribe: u };
500
500
  }
501
- function $e(e, t, n) {
501
+ function ke(e, t, n) {
502
502
  const r = !Array.isArray(e), i = r ? [e] : e;
503
503
  if (!i.every(Boolean))
504
504
  throw new Error("derived() expects stores as input, got a falsy value");
505
- const a = t.length < 2;
506
- return Ar(n, (l, s) => {
507
- let p = !1;
505
+ const o = t.length < 2;
506
+ return Ar(n, (u, s) => {
507
+ let d = !1;
508
508
  const h = [];
509
- let d = 0, m = oe;
510
- const g = () => {
511
- if (d)
509
+ let c = 0, g = oe;
510
+ const y = () => {
511
+ if (c)
512
512
  return;
513
- m();
514
- const T = t(r ? h[0] : h, l, s);
515
- a ? l(T) : m = Zt(T) ? T : oe;
513
+ g();
514
+ const T = t(r ? h[0] : h, u, s);
515
+ o ? u(T) : g = Qt(T) ? T : oe;
516
516
  }, x = i.map(
517
517
  (T, P) => wn(
518
518
  T,
519
- ($) => {
520
- h[P] = $, d &= ~(1 << P), p && g();
519
+ (j) => {
520
+ h[P] = j, c &= ~(1 << P), d && y();
521
521
  },
522
522
  () => {
523
- d |= 1 << P;
523
+ c |= 1 << P;
524
524
  }
525
525
  )
526
526
  );
527
- return p = !0, g(), function() {
528
- Ge(x), m(), p = !1;
527
+ return d = !0, y(), function() {
528
+ je(x), g(), d = !1;
529
529
  };
530
530
  });
531
531
  }
@@ -533,10 +533,10 @@ var Cr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
533
533
  function Hr(e) {
534
534
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
535
535
  }
536
- var Lr = function(t) {
537
- return Or(t) && !Rr(t);
536
+ var Or = function(t) {
537
+ return Lr(t) && !Rr(t);
538
538
  };
539
- function Or(e) {
539
+ function Lr(e) {
540
540
  return !!e && typeof e == "object";
541
541
  }
542
542
  function Rr(e) {
@@ -550,19 +550,19 @@ function Pr(e) {
550
550
  function Ir(e) {
551
551
  return Array.isArray(e) ? [] : {};
552
552
  }
553
- function Ke(e, t) {
554
- return t.clone !== !1 && t.isMergeableObject(e) ? Ie(Ir(e), e, t) : e;
553
+ function tt(e, t) {
554
+ return t.clone !== !1 && t.isMergeableObject(e) ? Fe(Ir(e), e, t) : e;
555
555
  }
556
556
  function Dr(e, t, n) {
557
557
  return e.concat(t).map(function(r) {
558
- return Ke(r, n);
558
+ return tt(r, n);
559
559
  });
560
560
  }
561
561
  function Fr(e, t) {
562
562
  if (!t.customMerge)
563
- return Ie;
563
+ return Fe;
564
564
  var n = t.customMerge(e);
565
- return typeof n == "function" ? n : Ie;
565
+ return typeof n == "function" ? n : Fe;
566
566
  }
567
567
  function Ur(e) {
568
568
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
@@ -585,65 +585,51 @@ function Gr(e, t) {
585
585
  function $r(e, t, n) {
586
586
  var r = {};
587
587
  return n.isMergeableObject(e) && nn(e).forEach(function(i) {
588
- r[i] = Ke(e[i], n);
588
+ r[i] = tt(e[i], n);
589
589
  }), nn(t).forEach(function(i) {
590
- Gr(e, i) || (Hn(e, i) && n.isMergeableObject(t[i]) ? r[i] = Fr(i, n)(e[i], t[i], n) : r[i] = Ke(t[i], n));
590
+ Gr(e, i) || (Hn(e, i) && n.isMergeableObject(t[i]) ? r[i] = Fr(i, n)(e[i], t[i], n) : r[i] = tt(t[i], n));
591
591
  }), r;
592
592
  }
593
- function Ie(e, t, n) {
594
- n = n || {}, n.arrayMerge = n.arrayMerge || Dr, n.isMergeableObject = n.isMergeableObject || Lr, n.cloneUnlessOtherwiseSpecified = Ke;
595
- var r = Array.isArray(t), i = Array.isArray(e), a = r === i;
596
- return a ? r ? n.arrayMerge(e, t, n) : $r(e, t, n) : Ke(t, n);
593
+ function Fe(e, t, n) {
594
+ n = n || {}, n.arrayMerge = n.arrayMerge || Dr, n.isMergeableObject = n.isMergeableObject || Or, n.cloneUnlessOtherwiseSpecified = tt;
595
+ var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
596
+ return o ? r ? n.arrayMerge(e, t, n) : $r(e, t, n) : tt(t, n);
597
597
  }
598
- Ie.all = function(t, n) {
598
+ Fe.all = function(t, n) {
599
599
  if (!Array.isArray(t))
600
600
  throw new Error("first argument should be an array");
601
601
  return t.reduce(function(r, i) {
602
- return Ie(r, i, n);
602
+ return Fe(r, i, n);
603
603
  }, {});
604
604
  };
605
- var kr = Ie, jr = kr;
606
- const Vr = /* @__PURE__ */ Hr(jr);
607
- /*! *****************************************************************************
608
- Copyright (c) Microsoft Corporation.
609
-
610
- Permission to use, copy, modify, and/or distribute this software for any
611
- purpose with or without fee is hereby granted.
612
-
613
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
614
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
615
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
616
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
617
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
618
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
619
- PERFORMANCE OF THIS SOFTWARE.
620
- ***************************************************************************** */
621
- var Ft = function(e, t) {
622
- return Ft = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
605
+ var jr = Fe, kr = jr;
606
+ const Vr = /* @__PURE__ */ Hr(kr);
607
+ var Gt = function(e, t) {
608
+ return Gt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
623
609
  n.__proto__ = r;
624
610
  } || function(n, r) {
625
611
  for (var i in r)
626
612
  Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
627
- }, Ft(e, t);
613
+ }, Gt(e, t);
628
614
  };
629
- function bt(e, t) {
615
+ function yt(e, t) {
630
616
  if (typeof t != "function" && t !== null)
631
617
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
632
- Ft(e, t);
618
+ Gt(e, t);
633
619
  function n() {
634
620
  this.constructor = e;
635
621
  }
636
622
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
637
623
  }
638
- var R = function() {
639
- return R = Object.assign || function(t) {
624
+ var he = function() {
625
+ return he = Object.assign || function(t) {
640
626
  for (var n, r = 1, i = arguments.length; r < i; r++) {
641
627
  n = arguments[r];
642
- for (var a in n)
643
- Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
628
+ for (var o in n)
629
+ Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
644
630
  }
645
631
  return t;
646
- }, R.apply(this, arguments);
632
+ }, he.apply(this, arguments);
647
633
  };
648
634
  function Xr(e, t) {
649
635
  var n = {};
@@ -654,14 +640,14 @@ function Xr(e, t) {
654
640
  t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
655
641
  return n;
656
642
  }
657
- function Ht(e, t, n) {
658
- if (arguments.length === 2)
659
- for (var r = 0, i = t.length, a; r < i; r++)
660
- (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
661
- return e.concat(a || t);
643
+ function Lt(e, t, n) {
644
+ if (n || arguments.length === 2)
645
+ for (var r = 0, i = t.length, o; r < i; r++)
646
+ (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
647
+ return e.concat(o || Array.prototype.slice.call(t));
662
648
  }
663
- function Lt(e, t) {
664
- var n = t && t.cache ? t.cache : Jr, r = t && t.serializer ? t.serializer : Qr, i = t && t.strategy ? t.strategy : Wr;
649
+ function Rt(e, t) {
650
+ var n = t && t.cache ? t.cache : Yr, r = t && t.serializer ? t.serializer : Qr, i = t && t.strategy ? t.strategy : Zr;
665
651
  return i(e, {
666
652
  cache: n,
667
653
  serializer: r
@@ -670,95 +656,103 @@ function Lt(e, t) {
670
656
  function zr(e) {
671
657
  return e == null || typeof e == "number" || typeof e == "boolean";
672
658
  }
673
- function Ln(e, t, n, r) {
674
- var i = zr(r) ? r : n(r), a = t.get(i);
675
- return typeof a > "u" && (a = e.call(this, r), t.set(i, a)), a;
659
+ function Wr(e, t, n, r) {
660
+ var i = zr(r) ? r : n(r), o = t.get(i);
661
+ return typeof o > "u" && (o = e.call(this, r), t.set(i, o)), o;
676
662
  }
677
663
  function On(e, t, n) {
678
- var r = Array.prototype.slice.call(arguments, 3), i = n(r), a = t.get(i);
679
- return typeof a > "u" && (a = e.apply(this, r), t.set(i, a)), a;
664
+ var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
665
+ return typeof o > "u" && (o = e.apply(this, r), t.set(i, o)), o;
680
666
  }
681
- function qt(e, t, n, r, i) {
667
+ function Ln(e, t, n, r, i) {
682
668
  return n.bind(t, e, r, i);
683
669
  }
684
- function Wr(e, t) {
685
- var n = e.length === 1 ? Ln : On;
686
- return qt(e, this, n, t.cache.create(), t.serializer);
687
- }
688
670
  function Zr(e, t) {
689
- return qt(e, this, On, t.cache.create(), t.serializer);
671
+ var n = e.length === 1 ? Wr : On;
672
+ return Ln(e, this, n, t.cache.create(), t.serializer);
690
673
  }
691
674
  function qr(e, t) {
692
- return qt(e, this, Ln, t.cache.create(), t.serializer);
675
+ return Ln(e, this, On, t.cache.create(), t.serializer);
693
676
  }
694
677
  var Qr = function() {
695
678
  return JSON.stringify(arguments);
696
- };
697
- function Qt() {
698
- this.cache = /* @__PURE__ */ Object.create(null);
699
- }
700
- Qt.prototype.get = function(e) {
701
- return this.cache[e];
702
- };
703
- Qt.prototype.set = function(e, t) {
704
- this.cache[e] = t;
705
- };
706
- var Jr = {
679
+ }, Jr = (
680
+ /** @class */
681
+ function() {
682
+ function e() {
683
+ this.cache = /* @__PURE__ */ Object.create(null);
684
+ }
685
+ return e.prototype.get = function(t) {
686
+ return this.cache[t];
687
+ }, e.prototype.set = function(t, n) {
688
+ this.cache[t] = n;
689
+ }, e;
690
+ }()
691
+ ), Yr = {
707
692
  create: function() {
708
- return new Qt();
693
+ return new Jr();
709
694
  }
710
- }, Ot = {
711
- variadic: Zr,
712
- monadic: qr
713
- }, H;
695
+ }, Nt = {
696
+ variadic: qr
697
+ }, pt = function() {
698
+ return pt = Object.assign || function(t) {
699
+ for (var n, r = 1, i = arguments.length; r < i; r++) {
700
+ n = arguments[r];
701
+ for (var o in n)
702
+ Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
703
+ }
704
+ return t;
705
+ }, pt.apply(this, arguments);
706
+ };
707
+ var C;
714
708
  (function(e) {
715
709
  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";
716
- })(H || (H = {}));
717
- var I;
710
+ })(C || (C = {}));
711
+ var D;
718
712
  (function(e) {
719
713
  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";
720
- })(I || (I = {}));
721
- var De;
714
+ })(D || (D = {}));
715
+ var Ue;
722
716
  (function(e) {
723
717
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
724
- })(De || (De = {}));
718
+ })(Ue || (Ue = {}));
725
719
  function rn(e) {
726
- return e.type === I.literal;
720
+ return e.type === D.literal;
727
721
  }
728
- function Yr(e) {
729
- return e.type === I.argument;
722
+ function Kr(e) {
723
+ return e.type === D.argument;
730
724
  }
731
725
  function Rn(e) {
732
- return e.type === I.number;
726
+ return e.type === D.number;
733
727
  }
734
728
  function Nn(e) {
735
- return e.type === I.date;
729
+ return e.type === D.date;
736
730
  }
737
731
  function Mn(e) {
738
- return e.type === I.time;
732
+ return e.type === D.time;
739
733
  }
740
734
  function Pn(e) {
741
- return e.type === I.select;
735
+ return e.type === D.select;
742
736
  }
743
737
  function In(e) {
744
- return e.type === I.plural;
738
+ return e.type === D.plural;
745
739
  }
746
- function Kr(e) {
747
- return e.type === I.pound;
740
+ function ei(e) {
741
+ return e.type === D.pound;
748
742
  }
749
743
  function Dn(e) {
750
- return e.type === I.tag;
744
+ return e.type === D.tag;
751
745
  }
752
746
  function Fn(e) {
753
- return !!(e && typeof e == "object" && e.type === De.number);
747
+ return !!(e && typeof e == "object" && e.type === Ue.number);
754
748
  }
755
- function Ut(e) {
756
- return !!(e && typeof e == "object" && e.type === De.dateTime);
749
+ function $t(e) {
750
+ return !!(e && typeof e == "object" && e.type === Ue.dateTime);
757
751
  }
758
- var Un = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ei = /(?:[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;
759
- function ti(e) {
752
+ var Un = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ti = /(?:[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;
753
+ function ni(e) {
760
754
  var t = {};
761
- return e.replace(ei, function(n) {
755
+ return e.replace(ti, function(n) {
762
756
  var r = n.length;
763
757
  switch (n[0]) {
764
758
  case "G":
@@ -847,36 +841,46 @@ function ti(e) {
847
841
  return "";
848
842
  }), t;
849
843
  }
850
- var ni = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
851
- function ri(e) {
844
+ var U = function() {
845
+ return U = Object.assign || function(t) {
846
+ for (var n, r = 1, i = arguments.length; r < i; r++) {
847
+ n = arguments[r];
848
+ for (var o in n)
849
+ Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
850
+ }
851
+ return t;
852
+ }, U.apply(this, arguments);
853
+ };
854
+ var ri = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
855
+ function ii(e) {
852
856
  if (e.length === 0)
853
857
  throw new Error("Number skeleton cannot be empty");
854
- for (var t = e.split(ni).filter(function(g) {
855
- return g.length > 0;
858
+ for (var t = e.split(ri).filter(function(y) {
859
+ return y.length > 0;
856
860
  }), n = [], r = 0, i = t; r < i.length; r++) {
857
- var a = i[r], l = a.split("/");
858
- if (l.length === 0)
861
+ var o = i[r], u = o.split("/");
862
+ if (u.length === 0)
859
863
  throw new Error("Invalid number skeleton");
860
- for (var s = l[0], p = l.slice(1), h = 0, d = p; h < d.length; h++) {
861
- var m = d[h];
862
- if (m.length === 0)
864
+ for (var s = u[0], d = u.slice(1), h = 0, c = d; h < c.length; h++) {
865
+ var g = c[h];
866
+ if (g.length === 0)
863
867
  throw new Error("Invalid number skeleton");
864
868
  }
865
- n.push({ stem: s, options: p });
869
+ n.push({ stem: s, options: d });
866
870
  }
867
871
  return n;
868
872
  }
869
- function ii(e) {
873
+ function oi(e) {
870
874
  return e.replace(/^(.*?)-/, "");
871
875
  }
872
- var on = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Gn = /^(@+)?(\+|#+)?[rs]?$/g, oi = /(\*)(0+)|(#+)(0+)|(0+)/g, $n = /^(0+)$/;
876
+ var on = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Gn = /^(@+)?(\+|#+)?[rs]?$/g, ai = /(\*)(0+)|(#+)(0+)|(0+)/g, $n = /^(0+)$/;
873
877
  function an(e) {
874
878
  var t = {};
875
879
  return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Gn, function(n, r, i) {
876
880
  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)), "";
877
881
  }), t;
878
882
  }
879
- function kn(e) {
883
+ function jn(e) {
880
884
  switch (e) {
881
885
  case "sign-auto":
882
886
  return {
@@ -916,7 +920,7 @@ function kn(e) {
916
920
  };
917
921
  }
918
922
  }
919
- function ai(e) {
923
+ function si(e) {
920
924
  var t;
921
925
  if (e[0] === "E" && e[1] === "E" ? (t = {
922
926
  notation: "engineering"
@@ -931,10 +935,10 @@ function ai(e) {
931
935
  return t;
932
936
  }
933
937
  function sn(e) {
934
- var t = {}, n = kn(e);
938
+ var t = {}, n = jn(e);
935
939
  return n || t;
936
940
  }
937
- function si(e) {
941
+ function ui(e) {
938
942
  for (var t = {}, n = 0, r = e; n < r.length; n++) {
939
943
  var i = r[n];
940
944
  switch (i.stem) {
@@ -958,7 +962,7 @@ function si(e) {
958
962
  continue;
959
963
  case "measure-unit":
960
964
  case "unit":
961
- t.style = "unit", t.unit = ii(i.options[0]);
965
+ t.style = "unit", t.unit = oi(i.options[0]);
962
966
  continue;
963
967
  case "compact-short":
964
968
  case "K":
@@ -969,13 +973,13 @@ function si(e) {
969
973
  t.notation = "compact", t.compactDisplay = "long";
970
974
  continue;
971
975
  case "scientific":
972
- t = R(R(R({}, t), { notation: "scientific" }), i.options.reduce(function(p, h) {
973
- return R(R({}, p), sn(h));
976
+ t = U(U(U({}, t), { notation: "scientific" }), i.options.reduce(function(d, h) {
977
+ return U(U({}, d), sn(h));
974
978
  }, {}));
975
979
  continue;
976
980
  case "engineering":
977
- t = R(R(R({}, t), { notation: "engineering" }), i.options.reduce(function(p, h) {
978
- return R(R({}, p), sn(h));
981
+ t = U(U(U({}, t), { notation: "engineering" }), i.options.reduce(function(d, h) {
982
+ return U(U({}, d), sn(h));
979
983
  }, {}));
980
984
  continue;
981
985
  case "notation-simple":
@@ -1020,11 +1024,11 @@ function si(e) {
1020
1024
  case "integer-width":
1021
1025
  if (i.options.length > 1)
1022
1026
  throw new RangeError("integer-width stems only accept a single optional option");
1023
- i.options[0].replace(oi, function(p, h, d, m, g, x) {
1027
+ i.options[0].replace(ai, function(d, h, c, g, y, x) {
1024
1028
  if (h)
1025
- t.minimumIntegerDigits = d.length;
1029
+ t.minimumIntegerDigits = c.length;
1026
1030
  else {
1027
- if (m && g)
1031
+ if (g && y)
1028
1032
  throw new Error("We currently do not support maximum integer digits");
1029
1033
  if (x)
1030
1034
  throw new Error("We currently do not support exact integer digits");
@@ -1040,25 +1044,25 @@ function si(e) {
1040
1044
  if (on.test(i.stem)) {
1041
1045
  if (i.options.length > 1)
1042
1046
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1043
- i.stem.replace(on, function(p, h, d, m, g, x) {
1044
- return d === "*" ? t.minimumFractionDigits = h.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : g && x ? (t.minimumFractionDigits = g.length, t.maximumFractionDigits = g.length + x.length) : (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length), "";
1047
+ i.stem.replace(on, function(d, h, c, g, y, x) {
1048
+ return c === "*" ? t.minimumFractionDigits = h.length : g && g[0] === "#" ? t.maximumFractionDigits = g.length : y && x ? (t.minimumFractionDigits = y.length, t.maximumFractionDigits = y.length + x.length) : (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length), "";
1045
1049
  });
1046
- var a = i.options[0];
1047
- a === "w" ? t = R(R({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = R(R({}, t), an(a)));
1050
+ var o = i.options[0];
1051
+ o === "w" ? t = U(U({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = U(U({}, t), an(o)));
1048
1052
  continue;
1049
1053
  }
1050
1054
  if (Gn.test(i.stem)) {
1051
- t = R(R({}, t), an(i.stem));
1055
+ t = U(U({}, t), an(i.stem));
1052
1056
  continue;
1053
1057
  }
1054
- var l = kn(i.stem);
1055
- l && (t = R(R({}, t), l));
1056
- var s = ai(i.stem);
1057
- s && (t = R(R({}, t), s));
1058
+ var u = jn(i.stem);
1059
+ u && (t = U(U({}, t), u));
1060
+ var s = si(i.stem);
1061
+ s && (t = U(U({}, t), s));
1058
1062
  }
1059
1063
  return t;
1060
1064
  }
1061
- var lt = {
1065
+ var ut = {
1062
1066
  "001": [
1063
1067
  "H",
1064
1068
  "h"
@@ -2477,19 +2481,19 @@ function li(e, t) {
2477
2481
  for (var n = "", r = 0; r < e.length; r++) {
2478
2482
  var i = e.charAt(r);
2479
2483
  if (i === "j") {
2480
- for (var a = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2481
- a++, r++;
2482
- var l = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), p = "a", h = ui(t);
2484
+ for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2485
+ o++, r++;
2486
+ var u = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), d = "a", h = hi(t);
2483
2487
  for ((h == "H" || h == "k") && (s = 0); s-- > 0; )
2484
- n += p;
2485
- for (; l-- > 0; )
2488
+ n += d;
2489
+ for (; u-- > 0; )
2486
2490
  n = h + n;
2487
2491
  } else
2488
2492
  i === "J" ? n += "H" : n += i;
2489
2493
  }
2490
2494
  return n;
2491
2495
  }
2492
- function ui(e) {
2496
+ function hi(e) {
2493
2497
  var t = e.hourCycle;
2494
2498
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2495
2499
  e.hourCycles && // @ts-ignore
@@ -2508,23 +2512,23 @@ function ui(e) {
2508
2512
  }
2509
2513
  var n = e.language, r;
2510
2514
  n !== "root" && (r = e.maximize().region);
2511
- var i = lt[r || ""] || lt[n || ""] || lt["".concat(n, "-001")] || lt["001"];
2515
+ var i = ut[r || ""] || ut[n || ""] || ut["".concat(n, "-001")] || ut["001"];
2512
2516
  return i[0];
2513
2517
  }
2514
- var Rt, hi = new RegExp("^".concat(Un.source, "*")), ci = new RegExp("".concat(Un.source, "*$"));
2515
- function L(e, t) {
2518
+ var Mt, ci = new RegExp("^".concat(Un.source, "*")), fi = new RegExp("".concat(Un.source, "*$"));
2519
+ function H(e, t) {
2516
2520
  return { start: e, end: t };
2517
2521
  }
2518
- var fi = !!String.prototype.startsWith && "_a".startsWith("a", 1), di = !!String.fromCodePoint, pi = !!Object.fromEntries, mi = !!String.prototype.codePointAt, gi = !!String.prototype.trimStart, bi = !!String.prototype.trimEnd, yi = !!Number.isSafeInteger, vi = yi ? Number.isSafeInteger : function(e) {
2522
+ var di = !!String.prototype.startsWith && "_a".startsWith("a", 1), pi = !!String.fromCodePoint, mi = !!Object.fromEntries, gi = !!String.prototype.codePointAt, bi = !!String.prototype.trimStart, yi = !!String.prototype.trimEnd, vi = !!Number.isSafeInteger, Ei = vi ? Number.isSafeInteger : function(e) {
2519
2523
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2520
- }, Gt = !0;
2524
+ }, jt = !0;
2521
2525
  try {
2522
- var Ei = Vn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2523
- Gt = ((Rt = Ei.exec("a")) === null || Rt === void 0 ? void 0 : Rt[0]) === "a";
2526
+ var xi = Vn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2527
+ jt = ((Mt = xi.exec("a")) === null || Mt === void 0 ? void 0 : Mt[0]) === "a";
2524
2528
  } catch {
2525
- Gt = !1;
2529
+ jt = !1;
2526
2530
  }
2527
- var ln = fi ? (
2531
+ var un = di ? (
2528
2532
  // Native
2529
2533
  function(t, n, r) {
2530
2534
  return t.startsWith(n, r);
@@ -2534,31 +2538,31 @@ var ln = fi ? (
2534
2538
  function(t, n, r) {
2535
2539
  return t.slice(r, r + n.length) === n;
2536
2540
  }
2537
- ), $t = di ? String.fromCodePoint : (
2541
+ ), kt = pi ? String.fromCodePoint : (
2538
2542
  // IE11
2539
2543
  function() {
2540
2544
  for (var t = [], n = 0; n < arguments.length; n++)
2541
2545
  t[n] = arguments[n];
2542
- for (var r = "", i = t.length, a = 0, l; i > a; ) {
2543
- if (l = t[a++], l > 1114111)
2544
- throw RangeError(l + " is not a valid code point");
2545
- r += l < 65536 ? String.fromCharCode(l) : String.fromCharCode(((l -= 65536) >> 10) + 55296, l % 1024 + 56320);
2546
+ for (var r = "", i = t.length, o = 0, u; i > o; ) {
2547
+ if (u = t[o++], u > 1114111)
2548
+ throw RangeError(u + " is not a valid code point");
2549
+ r += u < 65536 ? String.fromCharCode(u) : String.fromCharCode(((u -= 65536) >> 10) + 55296, u % 1024 + 56320);
2546
2550
  }
2547
2551
  return r;
2548
2552
  }
2549
- ), un = (
2553
+ ), ln = (
2550
2554
  // native
2551
- pi ? Object.fromEntries : (
2555
+ mi ? Object.fromEntries : (
2552
2556
  // Ponyfill
2553
2557
  function(t) {
2554
2558
  for (var n = {}, r = 0, i = t; r < i.length; r++) {
2555
- var a = i[r], l = a[0], s = a[1];
2556
- n[l] = s;
2559
+ var o = i[r], u = o[0], s = o[1];
2560
+ n[u] = s;
2557
2561
  }
2558
2562
  return n;
2559
2563
  }
2560
2564
  )
2561
- ), jn = mi ? (
2565
+ ), kn = gi ? (
2562
2566
  // Native
2563
2567
  function(t, n) {
2564
2568
  return t.codePointAt(n);
@@ -2568,11 +2572,11 @@ var ln = fi ? (
2568
2572
  function(t, n) {
2569
2573
  var r = t.length;
2570
2574
  if (!(n < 0 || n >= r)) {
2571
- var i = t.charCodeAt(n), a;
2572
- return i < 55296 || i > 56319 || n + 1 === r || (a = t.charCodeAt(n + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
2575
+ var i = t.charCodeAt(n), o;
2576
+ return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2573
2577
  }
2574
2578
  }
2575
- ), xi = gi ? (
2579
+ ), _i = bi ? (
2576
2580
  // Native
2577
2581
  function(t) {
2578
2582
  return t.trimStart();
@@ -2580,9 +2584,9 @@ var ln = fi ? (
2580
2584
  ) : (
2581
2585
  // Ponyfill
2582
2586
  function(t) {
2583
- return t.replace(hi, "");
2587
+ return t.replace(ci, "");
2584
2588
  }
2585
- ), _i = bi ? (
2589
+ ), Ti = yi ? (
2586
2590
  // Native
2587
2591
  function(t) {
2588
2592
  return t.trimEnd();
@@ -2590,32 +2594,32 @@ var ln = fi ? (
2590
2594
  ) : (
2591
2595
  // Ponyfill
2592
2596
  function(t) {
2593
- return t.replace(ci, "");
2597
+ return t.replace(fi, "");
2594
2598
  }
2595
2599
  );
2596
2600
  function Vn(e, t) {
2597
2601
  return new RegExp(e, t);
2598
2602
  }
2599
- var kt;
2600
- if (Gt) {
2603
+ var Vt;
2604
+ if (jt) {
2601
2605
  var hn = Vn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2602
- kt = function(t, n) {
2606
+ Vt = function(t, n) {
2603
2607
  var r;
2604
2608
  hn.lastIndex = n;
2605
2609
  var i = hn.exec(t);
2606
2610
  return (r = i[1]) !== null && r !== void 0 ? r : "";
2607
2611
  };
2608
2612
  } else
2609
- kt = function(t, n) {
2613
+ Vt = function(t, n) {
2610
2614
  for (var r = []; ; ) {
2611
- var i = jn(t, n);
2612
- if (i === void 0 || Xn(i) || wi(i))
2615
+ var i = kn(t, n);
2616
+ if (i === void 0 || Xn(i) || Ai(i))
2613
2617
  break;
2614
2618
  r.push(i), n += i >= 65536 ? 2 : 1;
2615
2619
  }
2616
- return $t.apply(void 0, r);
2620
+ return kt.apply(void 0, r);
2617
2621
  };
2618
- var Ti = (
2622
+ var Bi = (
2619
2623
  /** @class */
2620
2624
  function() {
2621
2625
  function e(t, n) {
@@ -2627,35 +2631,35 @@ var Ti = (
2627
2631
  return this.parseMessage(0, "", !1);
2628
2632
  }, e.prototype.parseMessage = function(t, n, r) {
2629
2633
  for (var i = []; !this.isEOF(); ) {
2630
- var a = this.char();
2631
- if (a === 123) {
2632
- var l = this.parseArgument(t, r);
2633
- if (l.err)
2634
- return l;
2635
- i.push(l.val);
2634
+ var o = this.char();
2635
+ if (o === 123) {
2636
+ var u = this.parseArgument(t, r);
2637
+ if (u.err)
2638
+ return u;
2639
+ i.push(u.val);
2636
2640
  } else {
2637
- if (a === 125 && t > 0)
2641
+ if (o === 125 && t > 0)
2638
2642
  break;
2639
- if (a === 35 && (n === "plural" || n === "selectordinal")) {
2643
+ if (o === 35 && (n === "plural" || n === "selectordinal")) {
2640
2644
  var s = this.clonePosition();
2641
2645
  this.bump(), i.push({
2642
- type: I.pound,
2643
- location: L(s, this.clonePosition())
2646
+ type: D.pound,
2647
+ location: H(s, this.clonePosition())
2644
2648
  });
2645
- } else if (a === 60 && !this.ignoreTag && this.peek() === 47) {
2649
+ } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2646
2650
  if (r)
2647
2651
  break;
2648
- return this.error(H.UNMATCHED_CLOSING_TAG, L(this.clonePosition(), this.clonePosition()));
2649
- } else if (a === 60 && !this.ignoreTag && jt(this.peek() || 0)) {
2650
- var l = this.parseTag(t, n);
2651
- if (l.err)
2652
- return l;
2653
- i.push(l.val);
2652
+ return this.error(C.UNMATCHED_CLOSING_TAG, H(this.clonePosition(), this.clonePosition()));
2653
+ } else if (o === 60 && !this.ignoreTag && Xt(this.peek() || 0)) {
2654
+ var u = this.parseTag(t, n);
2655
+ if (u.err)
2656
+ return u;
2657
+ i.push(u.val);
2654
2658
  } else {
2655
- var l = this.parseLiteral(t, n);
2656
- if (l.err)
2657
- return l;
2658
- i.push(l.val);
2659
+ var u = this.parseLiteral(t, n);
2660
+ if (u.err)
2661
+ return u;
2662
+ i.push(u.val);
2659
2663
  }
2660
2664
  }
2661
2665
  }
@@ -2667,49 +2671,49 @@ var Ti = (
2667
2671
  if (this.bumpSpace(), this.bumpIf("/>"))
2668
2672
  return {
2669
2673
  val: {
2670
- type: I.literal,
2674
+ type: D.literal,
2671
2675
  value: "<".concat(i, "/>"),
2672
- location: L(r, this.clonePosition())
2676
+ location: H(r, this.clonePosition())
2673
2677
  },
2674
2678
  err: null
2675
2679
  };
2676
2680
  if (this.bumpIf(">")) {
2677
- var a = this.parseMessage(t + 1, n, !0);
2678
- if (a.err)
2679
- return a;
2680
- var l = a.val, s = this.clonePosition();
2681
+ var o = this.parseMessage(t + 1, n, !0);
2682
+ if (o.err)
2683
+ return o;
2684
+ var u = o.val, s = this.clonePosition();
2681
2685
  if (this.bumpIf("</")) {
2682
- if (this.isEOF() || !jt(this.char()))
2683
- return this.error(H.INVALID_TAG, L(s, this.clonePosition()));
2684
- var p = this.clonePosition(), h = this.parseTagName();
2685
- return i !== h ? this.error(H.UNMATCHED_CLOSING_TAG, L(p, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2686
+ if (this.isEOF() || !Xt(this.char()))
2687
+ return this.error(C.INVALID_TAG, H(s, this.clonePosition()));
2688
+ var d = this.clonePosition(), h = this.parseTagName();
2689
+ return i !== h ? this.error(C.UNMATCHED_CLOSING_TAG, H(d, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2686
2690
  val: {
2687
- type: I.tag,
2691
+ type: D.tag,
2688
2692
  value: i,
2689
- children: l,
2690
- location: L(r, this.clonePosition())
2693
+ children: u,
2694
+ location: H(r, this.clonePosition())
2691
2695
  },
2692
2696
  err: null
2693
- } : this.error(H.INVALID_TAG, L(s, this.clonePosition())));
2697
+ } : this.error(C.INVALID_TAG, H(s, this.clonePosition())));
2694
2698
  } else
2695
- return this.error(H.UNCLOSED_TAG, L(r, this.clonePosition()));
2699
+ return this.error(C.UNCLOSED_TAG, H(r, this.clonePosition()));
2696
2700
  } else
2697
- return this.error(H.INVALID_TAG, L(r, this.clonePosition()));
2701
+ return this.error(C.INVALID_TAG, H(r, this.clonePosition()));
2698
2702
  }, e.prototype.parseTagName = function() {
2699
2703
  var t = this.offset();
2700
- for (this.bump(); !this.isEOF() && Si(this.char()); )
2704
+ for (this.bump(); !this.isEOF() && wi(this.char()); )
2701
2705
  this.bump();
2702
2706
  return this.message.slice(t, this.offset());
2703
2707
  }, e.prototype.parseLiteral = function(t, n) {
2704
2708
  for (var r = this.clonePosition(), i = ""; ; ) {
2705
- var a = this.tryParseQuote(n);
2706
- if (a) {
2707
- i += a;
2709
+ var o = this.tryParseQuote(n);
2710
+ if (o) {
2711
+ i += o;
2708
2712
  continue;
2709
2713
  }
2710
- var l = this.tryParseUnquoted(t, n);
2711
- if (l) {
2712
- i += l;
2714
+ var u = this.tryParseUnquoted(t, n);
2715
+ if (u) {
2716
+ i += u;
2713
2717
  continue;
2714
2718
  }
2715
2719
  var s = this.tryParseLeftAngleBracket();
@@ -2719,14 +2723,14 @@ var Ti = (
2719
2723
  }
2720
2724
  break;
2721
2725
  }
2722
- var p = L(r, this.clonePosition());
2726
+ var d = H(r, this.clonePosition());
2723
2727
  return {
2724
- val: { type: I.literal, value: i, location: p },
2728
+ val: { type: D.literal, value: i, location: d },
2725
2729
  err: null
2726
2730
  };
2727
2731
  }, e.prototype.tryParseLeftAngleBracket = function() {
2728
2732
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2729
- !Bi(this.peek() || 0)) ? (this.bump(), "<") : null;
2733
+ !Si(this.peek() || 0)) ? (this.bump(), "<") : null;
2730
2734
  }, e.prototype.tryParseQuote = function(t) {
2731
2735
  if (this.isEOF() || this.char() !== 39)
2732
2736
  return null;
@@ -2760,49 +2764,49 @@ var Ti = (
2760
2764
  n.push(r);
2761
2765
  this.bump();
2762
2766
  }
2763
- return $t.apply(void 0, n);
2767
+ return kt.apply(void 0, n);
2764
2768
  }, e.prototype.tryParseUnquoted = function(t, n) {
2765
2769
  if (this.isEOF())
2766
2770
  return null;
2767
2771
  var r = this.char();
2768
- return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), $t(r));
2772
+ return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), kt(r));
2769
2773
  }, e.prototype.parseArgument = function(t, n) {
2770
2774
  var r = this.clonePosition();
2771
2775
  if (this.bump(), this.bumpSpace(), this.isEOF())
2772
- return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition()));
2776
+ return this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE, H(r, this.clonePosition()));
2773
2777
  if (this.char() === 125)
2774
- return this.bump(), this.error(H.EMPTY_ARGUMENT, L(r, this.clonePosition()));
2778
+ return this.bump(), this.error(C.EMPTY_ARGUMENT, H(r, this.clonePosition()));
2775
2779
  var i = this.parseIdentifierIfPossible().value;
2776
2780
  if (!i)
2777
- return this.error(H.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
2781
+ return this.error(C.MALFORMED_ARGUMENT, H(r, this.clonePosition()));
2778
2782
  if (this.bumpSpace(), this.isEOF())
2779
- return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition()));
2783
+ return this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE, H(r, this.clonePosition()));
2780
2784
  switch (this.char()) {
2781
2785
  case 125:
2782
2786
  return this.bump(), {
2783
2787
  val: {
2784
- type: I.argument,
2788
+ type: D.argument,
2785
2789
  // value does not include the opening and closing braces.
2786
2790
  value: i,
2787
- location: L(r, this.clonePosition())
2791
+ location: H(r, this.clonePosition())
2788
2792
  },
2789
2793
  err: null
2790
2794
  };
2791
2795
  case 44:
2792
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2796
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE, H(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2793
2797
  default:
2794
- return this.error(H.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
2798
+ return this.error(C.MALFORMED_ARGUMENT, H(r, this.clonePosition()));
2795
2799
  }
2796
2800
  }, e.prototype.parseIdentifierIfPossible = function() {
2797
- var t = this.clonePosition(), n = this.offset(), r = kt(this.message, n), i = n + r.length;
2801
+ var t = this.clonePosition(), n = this.offset(), r = Vt(this.message, n), i = n + r.length;
2798
2802
  this.bumpTo(i);
2799
- var a = this.clonePosition(), l = L(t, a);
2800
- return { value: r, location: l };
2803
+ var o = this.clonePosition(), u = H(t, o);
2804
+ return { value: r, location: u };
2801
2805
  }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
2802
- var a, l = this.clonePosition(), s = this.parseIdentifierIfPossible().value, p = this.clonePosition();
2806
+ var o, u = this.clonePosition(), s = this.parseIdentifierIfPossible().value, d = this.clonePosition();
2803
2807
  switch (s) {
2804
2808
  case "":
2805
- return this.error(H.EXPECT_ARGUMENT_TYPE, L(l, p));
2809
+ return this.error(C.EXPECT_ARGUMENT_TYPE, H(u, d));
2806
2810
  case "number":
2807
2811
  case "date":
2808
2812
  case "time": {
@@ -2810,50 +2814,50 @@ var Ti = (
2810
2814
  var h = null;
2811
2815
  if (this.bumpIf(",")) {
2812
2816
  this.bumpSpace();
2813
- var d = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
2814
- if (m.err)
2815
- return m;
2816
- var g = _i(m.val);
2817
- if (g.length === 0)
2818
- return this.error(H.EXPECT_ARGUMENT_STYLE, L(this.clonePosition(), this.clonePosition()));
2819
- var x = L(d, this.clonePosition());
2820
- h = { style: g, styleLocation: x };
2817
+ var c = this.clonePosition(), g = this.parseSimpleArgStyleIfPossible();
2818
+ if (g.err)
2819
+ return g;
2820
+ var y = Ti(g.val);
2821
+ if (y.length === 0)
2822
+ return this.error(C.EXPECT_ARGUMENT_STYLE, H(this.clonePosition(), this.clonePosition()));
2823
+ var x = H(c, this.clonePosition());
2824
+ h = { style: y, styleLocation: x };
2821
2825
  }
2822
2826
  var T = this.tryParseArgumentClose(i);
2823
2827
  if (T.err)
2824
2828
  return T;
2825
- var P = L(i, this.clonePosition());
2826
- if (h && ln(h?.style, "::", 0)) {
2827
- var $ = xi(h.style.slice(2));
2829
+ var P = H(i, this.clonePosition());
2830
+ if (h && un(h?.style, "::", 0)) {
2831
+ var j = _i(h.style.slice(2));
2828
2832
  if (s === "number") {
2829
- var m = this.parseNumberSkeletonFromString($, h.styleLocation);
2830
- return m.err ? m : {
2831
- val: { type: I.number, value: r, location: P, style: m.val },
2833
+ var g = this.parseNumberSkeletonFromString(j, h.styleLocation);
2834
+ return g.err ? g : {
2835
+ val: { type: D.number, value: r, location: P, style: g.val },
2832
2836
  err: null
2833
2837
  };
2834
2838
  } else {
2835
- if ($.length === 0)
2836
- return this.error(H.EXPECT_DATE_TIME_SKELETON, P);
2837
- var X = $;
2838
- this.locale && (X = li($, this.locale));
2839
- var g = {
2840
- type: De.dateTime,
2841
- pattern: X,
2839
+ if (j.length === 0)
2840
+ return this.error(C.EXPECT_DATE_TIME_SKELETON, P);
2841
+ var z = j;
2842
+ this.locale && (z = li(j, this.locale));
2843
+ var y = {
2844
+ type: Ue.dateTime,
2845
+ pattern: z,
2842
2846
  location: h.styleLocation,
2843
- parsedOptions: this.shouldParseSkeletons ? ti(X) : {}
2844
- }, F = s === "date" ? I.date : I.time;
2847
+ parsedOptions: this.shouldParseSkeletons ? ni(z) : {}
2848
+ }, G = s === "date" ? D.date : D.time;
2845
2849
  return {
2846
- val: { type: F, value: r, location: P, style: g },
2850
+ val: { type: G, value: r, location: P, style: y },
2847
2851
  err: null
2848
2852
  };
2849
2853
  }
2850
2854
  }
2851
2855
  return {
2852
2856
  val: {
2853
- type: s === "number" ? I.number : s === "date" ? I.date : I.time,
2857
+ type: s === "number" ? D.number : s === "date" ? D.date : D.time,
2854
2858
  value: r,
2855
2859
  location: P,
2856
- style: (a = h?.style) !== null && a !== void 0 ? a : null
2860
+ style: (o = h?.style) !== null && o !== void 0 ? o : null
2857
2861
  },
2858
2862
  err: null
2859
2863
  };
@@ -2863,50 +2867,50 @@ var Ti = (
2863
2867
  case "select": {
2864
2868
  var B = this.clonePosition();
2865
2869
  if (this.bumpSpace(), !this.bumpIf(","))
2866
- return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS, L(B, R({}, B)));
2870
+ return this.error(C.EXPECT_SELECT_ARGUMENT_OPTIONS, H(B, pt({}, B)));
2867
2871
  this.bumpSpace();
2868
- var S = this.parseIdentifierIfPossible(), G = 0;
2869
- if (s !== "select" && S.value === "offset") {
2872
+ var w = this.parseIdentifierIfPossible(), I = 0;
2873
+ if (s !== "select" && w.value === "offset") {
2870
2874
  if (!this.bumpIf(":"))
2871
- return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, L(this.clonePosition(), this.clonePosition()));
2875
+ return this.error(C.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H(this.clonePosition(), this.clonePosition()));
2872
2876
  this.bumpSpace();
2873
- var m = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2874
- if (m.err)
2875
- return m;
2876
- this.bumpSpace(), S = this.parseIdentifierIfPossible(), G = m.val;
2877
+ var g = this.tryParseDecimalInteger(C.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, C.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2878
+ if (g.err)
2879
+ return g;
2880
+ this.bumpSpace(), w = this.parseIdentifierIfPossible(), I = g.val;
2877
2881
  }
2878
- var O = this.tryParsePluralOrSelectOptions(t, s, n, S);
2879
- if (O.err)
2880
- return O;
2882
+ var R = this.tryParsePluralOrSelectOptions(t, s, n, w);
2883
+ if (R.err)
2884
+ return R;
2881
2885
  var T = this.tryParseArgumentClose(i);
2882
2886
  if (T.err)
2883
2887
  return T;
2884
- var Y = L(i, this.clonePosition());
2888
+ var K = H(i, this.clonePosition());
2885
2889
  return s === "select" ? {
2886
2890
  val: {
2887
- type: I.select,
2891
+ type: D.select,
2888
2892
  value: r,
2889
- options: un(O.val),
2890
- location: Y
2893
+ options: ln(R.val),
2894
+ location: K
2891
2895
  },
2892
2896
  err: null
2893
2897
  } : {
2894
2898
  val: {
2895
- type: I.plural,
2899
+ type: D.plural,
2896
2900
  value: r,
2897
- options: un(O.val),
2898
- offset: G,
2901
+ options: ln(R.val),
2902
+ offset: I,
2899
2903
  pluralType: s === "plural" ? "cardinal" : "ordinal",
2900
- location: Y
2904
+ location: K
2901
2905
  },
2902
2906
  err: null
2903
2907
  };
2904
2908
  }
2905
2909
  default:
2906
- return this.error(H.INVALID_ARGUMENT_TYPE, L(l, p));
2910
+ return this.error(C.INVALID_ARGUMENT_TYPE, H(u, d));
2907
2911
  }
2908
2912
  }, e.prototype.tryParseArgumentClose = function(t) {
2909
- return this.isEOF() || this.char() !== 125 ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, L(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2913
+ return this.isEOF() || this.char() !== 125 ? this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE, H(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2910
2914
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2911
2915
  for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
2912
2916
  var r = this.char();
@@ -2915,7 +2919,7 @@ var Ti = (
2915
2919
  this.bump();
2916
2920
  var i = this.clonePosition();
2917
2921
  if (!this.bumpUntil("'"))
2918
- return this.error(H.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, L(i, this.clonePosition()));
2922
+ return this.error(C.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, H(i, this.clonePosition()));
2919
2923
  this.bump();
2920
2924
  break;
2921
2925
  }
@@ -2945,37 +2949,37 @@ var Ti = (
2945
2949
  }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
2946
2950
  var r = [];
2947
2951
  try {
2948
- r = ri(t);
2952
+ r = ii(t);
2949
2953
  } catch {
2950
- return this.error(H.INVALID_NUMBER_SKELETON, n);
2954
+ return this.error(C.INVALID_NUMBER_SKELETON, n);
2951
2955
  }
2952
2956
  return {
2953
2957
  val: {
2954
- type: De.number,
2958
+ type: Ue.number,
2955
2959
  tokens: r,
2956
2960
  location: n,
2957
- parsedOptions: this.shouldParseSkeletons ? si(r) : {}
2961
+ parsedOptions: this.shouldParseSkeletons ? ui(r) : {}
2958
2962
  },
2959
2963
  err: null
2960
2964
  };
2961
2965
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
2962
- for (var a, l = !1, s = [], p = /* @__PURE__ */ new Set(), h = i.value, d = i.location; ; ) {
2966
+ for (var o, u = !1, s = [], d = /* @__PURE__ */ new Set(), h = i.value, c = i.location; ; ) {
2963
2967
  if (h.length === 0) {
2964
- var m = this.clonePosition();
2968
+ var g = this.clonePosition();
2965
2969
  if (n !== "select" && this.bumpIf("=")) {
2966
- var g = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_SELECTOR, H.INVALID_PLURAL_ARGUMENT_SELECTOR);
2967
- if (g.err)
2968
- return g;
2969
- d = L(m, this.clonePosition()), h = this.message.slice(m.offset, this.offset());
2970
+ var y = this.tryParseDecimalInteger(C.EXPECT_PLURAL_ARGUMENT_SELECTOR, C.INVALID_PLURAL_ARGUMENT_SELECTOR);
2971
+ if (y.err)
2972
+ return y;
2973
+ c = H(g, this.clonePosition()), h = this.message.slice(g.offset, this.offset());
2970
2974
  } else
2971
2975
  break;
2972
2976
  }
2973
- if (p.has(h))
2974
- return this.error(n === "select" ? H.DUPLICATE_SELECT_ARGUMENT_SELECTOR : H.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, d);
2975
- h === "other" && (l = !0), this.bumpSpace();
2977
+ if (d.has(h))
2978
+ return this.error(n === "select" ? C.DUPLICATE_SELECT_ARGUMENT_SELECTOR : C.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
2979
+ h === "other" && (u = !0), this.bumpSpace();
2976
2980
  var x = this.clonePosition();
2977
2981
  if (!this.bumpIf("{"))
2978
- return this.error(n === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, L(this.clonePosition(), this.clonePosition()));
2982
+ return this.error(n === "select" ? C.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : C.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, H(this.clonePosition(), this.clonePosition()));
2979
2983
  var T = this.parseMessage(t + 1, n, r);
2980
2984
  if (T.err)
2981
2985
  return T;
@@ -2986,23 +2990,23 @@ var Ti = (
2986
2990
  h,
2987
2991
  {
2988
2992
  value: T.val,
2989
- location: L(x, this.clonePosition())
2993
+ location: H(x, this.clonePosition())
2990
2994
  }
2991
- ]), p.add(h), this.bumpSpace(), a = this.parseIdentifierIfPossible(), h = a.value, d = a.location;
2995
+ ]), d.add(h), this.bumpSpace(), o = this.parseIdentifierIfPossible(), h = o.value, c = o.location;
2992
2996
  }
2993
- return s.length === 0 ? this.error(n === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR : H.EXPECT_PLURAL_ARGUMENT_SELECTOR, L(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !l ? this.error(H.MISSING_OTHER_CLAUSE, L(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
2997
+ return s.length === 0 ? this.error(n === "select" ? C.EXPECT_SELECT_ARGUMENT_SELECTOR : C.EXPECT_PLURAL_ARGUMENT_SELECTOR, H(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !u ? this.error(C.MISSING_OTHER_CLAUSE, H(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
2994
2998
  }, e.prototype.tryParseDecimalInteger = function(t, n) {
2995
2999
  var r = 1, i = this.clonePosition();
2996
3000
  this.bumpIf("+") || this.bumpIf("-") && (r = -1);
2997
- for (var a = !1, l = 0; !this.isEOF(); ) {
3001
+ for (var o = !1, u = 0; !this.isEOF(); ) {
2998
3002
  var s = this.char();
2999
3003
  if (s >= 48 && s <= 57)
3000
- a = !0, l = l * 10 + (s - 48), this.bump();
3004
+ o = !0, u = u * 10 + (s - 48), this.bump();
3001
3005
  else
3002
3006
  break;
3003
3007
  }
3004
- var p = L(i, this.clonePosition());
3005
- return a ? (l *= r, vi(l) ? { val: l, err: null } : this.error(n, p)) : this.error(t, p);
3008
+ var d = H(i, this.clonePosition());
3009
+ return o ? (u *= r, Ei(u) ? { val: u, err: null } : this.error(n, d)) : this.error(t, d);
3006
3010
  }, e.prototype.offset = function() {
3007
3011
  return this.position.offset;
3008
3012
  }, e.prototype.isEOF = function() {
@@ -3017,7 +3021,7 @@ var Ti = (
3017
3021
  var t = this.position.offset;
3018
3022
  if (t >= this.message.length)
3019
3023
  throw Error("out of bound");
3020
- var n = jn(this.message, t);
3024
+ var n = kn(this.message, t);
3021
3025
  if (n === void 0)
3022
3026
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3023
3027
  return n;
@@ -3036,7 +3040,7 @@ var Ti = (
3036
3040
  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);
3037
3041
  }
3038
3042
  }, e.prototype.bumpIf = function(t) {
3039
- if (ln(this.message, t, this.offset())) {
3043
+ if (un(this.message, t, this.offset())) {
3040
3044
  for (var n = 0; n < t.length; n++)
3041
3045
  this.bump();
3042
3046
  return !0;
@@ -3068,50 +3072,50 @@ var Ti = (
3068
3072
  }, e;
3069
3073
  }()
3070
3074
  );
3071
- function jt(e) {
3075
+ function Xt(e) {
3072
3076
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3073
3077
  }
3074
- function Bi(e) {
3075
- return jt(e) || e === 47;
3076
- }
3077
3078
  function Si(e) {
3079
+ return Xt(e) || e === 47;
3080
+ }
3081
+ function wi(e) {
3078
3082
  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;
3079
3083
  }
3080
3084
  function Xn(e) {
3081
3085
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3082
3086
  }
3083
- function wi(e) {
3087
+ function Ai(e) {
3084
3088
  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;
3085
3089
  }
3086
- function Vt(e) {
3090
+ function zt(e) {
3087
3091
  e.forEach(function(t) {
3088
3092
  if (delete t.location, Pn(t) || In(t))
3089
3093
  for (var n in t.options)
3090
- delete t.options[n].location, Vt(t.options[n].value);
3094
+ delete t.options[n].location, zt(t.options[n].value);
3091
3095
  else
3092
- Rn(t) && Fn(t.style) || (Nn(t) || Mn(t)) && Ut(t.style) ? delete t.style.location : Dn(t) && Vt(t.children);
3096
+ Rn(t) && Fn(t.style) || (Nn(t) || Mn(t)) && $t(t.style) ? delete t.style.location : Dn(t) && zt(t.children);
3093
3097
  });
3094
3098
  }
3095
- function Ai(e, t) {
3096
- t === void 0 && (t = {}), t = R({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3097
- var n = new Ti(e, t).parse();
3099
+ function Ci(e, t) {
3100
+ t === void 0 && (t = {}), t = pt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3101
+ var n = new Bi(e, t).parse();
3098
3102
  if (n.err) {
3099
- var r = SyntaxError(H[n.err.kind]);
3103
+ var r = SyntaxError(C[n.err.kind]);
3100
3104
  throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3101
3105
  }
3102
- return t?.captureLocation || Vt(n.val), n.val;
3106
+ return t?.captureLocation || zt(n.val), n.val;
3103
3107
  }
3104
- var Fe;
3108
+ var Ge;
3105
3109
  (function(e) {
3106
3110
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3107
- })(Fe || (Fe = {}));
3108
- var yt = (
3111
+ })(Ge || (Ge = {}));
3112
+ var vt = (
3109
3113
  /** @class */
3110
3114
  function(e) {
3111
- bt(t, e);
3115
+ yt(t, e);
3112
3116
  function t(n, r, i) {
3113
- var a = e.call(this, n) || this;
3114
- return a.code = r, a.originalMessage = i, a;
3117
+ var o = e.call(this, n) || this;
3118
+ return o.code = r, o.originalMessage = i, o;
3115
3119
  }
3116
3120
  return t.prototype.toString = function() {
3117
3121
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
@@ -3120,152 +3124,152 @@ var yt = (
3120
3124
  ), cn = (
3121
3125
  /** @class */
3122
3126
  function(e) {
3123
- bt(t, e);
3124
- function t(n, r, i, a) {
3125
- return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Fe.INVALID_VALUE, a) || this;
3127
+ yt(t, e);
3128
+ function t(n, r, i, o) {
3129
+ return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ge.INVALID_VALUE, o) || this;
3126
3130
  }
3127
3131
  return t;
3128
- }(yt)
3129
- ), Ci = (
3132
+ }(vt)
3133
+ ), Hi = (
3130
3134
  /** @class */
3131
3135
  function(e) {
3132
- bt(t, e);
3136
+ yt(t, e);
3133
3137
  function t(n, r, i) {
3134
- return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Fe.INVALID_VALUE, i) || this;
3138
+ return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Ge.INVALID_VALUE, i) || this;
3135
3139
  }
3136
3140
  return t;
3137
- }(yt)
3138
- ), Hi = (
3141
+ }(vt)
3142
+ ), Oi = (
3139
3143
  /** @class */
3140
3144
  function(e) {
3141
- bt(t, e);
3145
+ yt(t, e);
3142
3146
  function t(n, r) {
3143
- return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Fe.MISSING_VALUE, r) || this;
3147
+ return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Ge.MISSING_VALUE, r) || this;
3144
3148
  }
3145
3149
  return t;
3146
- }(yt)
3147
- ), J;
3150
+ }(vt)
3151
+ ), Y;
3148
3152
  (function(e) {
3149
3153
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3150
- })(J || (J = {}));
3154
+ })(Y || (Y = {}));
3151
3155
  function Li(e) {
3152
3156
  return e.length < 2 ? e : e.reduce(function(t, n) {
3153
3157
  var r = t[t.length - 1];
3154
- return !r || r.type !== J.literal || n.type !== J.literal ? t.push(n) : r.value += n.value, t;
3158
+ return !r || r.type !== Y.literal || n.type !== Y.literal ? t.push(n) : r.value += n.value, t;
3155
3159
  }, []);
3156
3160
  }
3157
- function Oi(e) {
3161
+ function Ri(e) {
3158
3162
  return typeof e == "function";
3159
3163
  }
3160
- function ht(e, t, n, r, i, a, l) {
3164
+ function ht(e, t, n, r, i, o, u) {
3161
3165
  if (e.length === 1 && rn(e[0]))
3162
3166
  return [
3163
3167
  {
3164
- type: J.literal,
3168
+ type: Y.literal,
3165
3169
  value: e[0].value
3166
3170
  }
3167
3171
  ];
3168
- for (var s = [], p = 0, h = e; p < h.length; p++) {
3169
- var d = h[p];
3170
- if (rn(d)) {
3172
+ for (var s = [], d = 0, h = e; d < h.length; d++) {
3173
+ var c = h[d];
3174
+ if (rn(c)) {
3171
3175
  s.push({
3172
- type: J.literal,
3173
- value: d.value
3176
+ type: Y.literal,
3177
+ value: c.value
3174
3178
  });
3175
3179
  continue;
3176
3180
  }
3177
- if (Kr(d)) {
3178
- typeof a == "number" && s.push({
3179
- type: J.literal,
3180
- value: n.getNumberFormat(t).format(a)
3181
+ if (ei(c)) {
3182
+ typeof o == "number" && s.push({
3183
+ type: Y.literal,
3184
+ value: n.getNumberFormat(t).format(o)
3181
3185
  });
3182
3186
  continue;
3183
3187
  }
3184
- var m = d.value;
3185
- if (!(i && m in i))
3186
- throw new Hi(m, l);
3187
- var g = i[m];
3188
- if (Yr(d)) {
3189
- (!g || typeof g == "string" || typeof g == "number") && (g = typeof g == "string" || typeof g == "number" ? String(g) : ""), s.push({
3190
- type: typeof g == "string" ? J.literal : J.object,
3191
- value: g
3188
+ var g = c.value;
3189
+ if (!(i && g in i))
3190
+ throw new Oi(g, u);
3191
+ var y = i[g];
3192
+ if (Kr(c)) {
3193
+ (!y || typeof y == "string" || typeof y == "number") && (y = typeof y == "string" || typeof y == "number" ? String(y) : ""), s.push({
3194
+ type: typeof y == "string" ? Y.literal : Y.object,
3195
+ value: y
3192
3196
  });
3193
3197
  continue;
3194
3198
  }
3195
- if (Nn(d)) {
3196
- var x = typeof d.style == "string" ? r.date[d.style] : Ut(d.style) ? d.style.parsedOptions : void 0;
3199
+ if (Nn(c)) {
3200
+ var x = typeof c.style == "string" ? r.date[c.style] : $t(c.style) ? c.style.parsedOptions : void 0;
3197
3201
  s.push({
3198
- type: J.literal,
3199
- value: n.getDateTimeFormat(t, x).format(g)
3202
+ type: Y.literal,
3203
+ value: n.getDateTimeFormat(t, x).format(y)
3200
3204
  });
3201
3205
  continue;
3202
3206
  }
3203
- if (Mn(d)) {
3204
- var x = typeof d.style == "string" ? r.time[d.style] : Ut(d.style) ? d.style.parsedOptions : r.time.medium;
3207
+ if (Mn(c)) {
3208
+ var x = typeof c.style == "string" ? r.time[c.style] : $t(c.style) ? c.style.parsedOptions : r.time.medium;
3205
3209
  s.push({
3206
- type: J.literal,
3207
- value: n.getDateTimeFormat(t, x).format(g)
3210
+ type: Y.literal,
3211
+ value: n.getDateTimeFormat(t, x).format(y)
3208
3212
  });
3209
3213
  continue;
3210
3214
  }
3211
- if (Rn(d)) {
3212
- var x = typeof d.style == "string" ? r.number[d.style] : Fn(d.style) ? d.style.parsedOptions : void 0;
3213
- x && x.scale && (g = g * (x.scale || 1)), s.push({
3214
- type: J.literal,
3215
- value: n.getNumberFormat(t, x).format(g)
3215
+ if (Rn(c)) {
3216
+ var x = typeof c.style == "string" ? r.number[c.style] : Fn(c.style) ? c.style.parsedOptions : void 0;
3217
+ x && x.scale && (y = y * (x.scale || 1)), s.push({
3218
+ type: Y.literal,
3219
+ value: n.getNumberFormat(t, x).format(y)
3216
3220
  });
3217
3221
  continue;
3218
3222
  }
3219
- if (Dn(d)) {
3220
- var T = d.children, P = d.value, $ = i[P];
3221
- if (!Oi($))
3222
- throw new Ci(P, "function", l);
3223
- var X = ht(T, t, n, r, i, a), F = $(X.map(function(G) {
3224
- return G.value;
3223
+ if (Dn(c)) {
3224
+ var T = c.children, P = c.value, j = i[P];
3225
+ if (!Ri(j))
3226
+ throw new Hi(P, "function", u);
3227
+ var z = ht(T, t, n, r, i, o), G = j(z.map(function(I) {
3228
+ return I.value;
3225
3229
  }));
3226
- Array.isArray(F) || (F = [F]), s.push.apply(s, F.map(function(G) {
3230
+ Array.isArray(G) || (G = [G]), s.push.apply(s, G.map(function(I) {
3227
3231
  return {
3228
- type: typeof G == "string" ? J.literal : J.object,
3229
- value: G
3232
+ type: typeof I == "string" ? Y.literal : Y.object,
3233
+ value: I
3230
3234
  };
3231
3235
  }));
3232
3236
  }
3233
- if (Pn(d)) {
3234
- var B = d.options[g] || d.options.other;
3237
+ if (Pn(c)) {
3238
+ var B = c.options[y] || c.options.other;
3235
3239
  if (!B)
3236
- throw new cn(d.value, g, Object.keys(d.options), l);
3240
+ throw new cn(c.value, y, Object.keys(c.options), u);
3237
3241
  s.push.apply(s, ht(B.value, t, n, r, i));
3238
3242
  continue;
3239
3243
  }
3240
- if (In(d)) {
3241
- var B = d.options["=".concat(g)];
3244
+ if (In(c)) {
3245
+ var B = c.options["=".concat(y)];
3242
3246
  if (!B) {
3243
3247
  if (!Intl.PluralRules)
3244
- throw new yt(`Intl.PluralRules is not available in this environment.
3248
+ throw new vt(`Intl.PluralRules is not available in this environment.
3245
3249
  Try polyfilling it using "@formatjs/intl-pluralrules"
3246
- `, Fe.MISSING_INTL_API, l);
3247
- var S = n.getPluralRules(t, { type: d.pluralType }).select(g - (d.offset || 0));
3248
- B = d.options[S] || d.options.other;
3250
+ `, Ge.MISSING_INTL_API, u);
3251
+ var w = n.getPluralRules(t, { type: c.pluralType }).select(y - (c.offset || 0));
3252
+ B = c.options[w] || c.options.other;
3249
3253
  }
3250
3254
  if (!B)
3251
- throw new cn(d.value, g, Object.keys(d.options), l);
3252
- s.push.apply(s, ht(B.value, t, n, r, i, g - (d.offset || 0)));
3255
+ throw new cn(c.value, y, Object.keys(c.options), u);
3256
+ s.push.apply(s, ht(B.value, t, n, r, i, y - (c.offset || 0)));
3253
3257
  continue;
3254
3258
  }
3255
3259
  }
3256
3260
  return Li(s);
3257
3261
  }
3258
- function Ri(e, t) {
3259
- return t ? R(R(R({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3260
- return n[r] = R(R({}, e[r]), t[r] || {}), n;
3262
+ function Ni(e, t) {
3263
+ return t ? he(he(he({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3264
+ return n[r] = he(he({}, e[r]), t[r] || {}), n;
3261
3265
  }, {})) : e;
3262
3266
  }
3263
- function Ni(e, t) {
3267
+ function Mi(e, t) {
3264
3268
  return t ? Object.keys(e).reduce(function(n, r) {
3265
- return n[r] = Ri(e[r], t[r]), n;
3266
- }, R({}, e)) : e;
3269
+ return n[r] = Ni(e[r], t[r]), n;
3270
+ }, he({}, e)) : e;
3267
3271
  }
3268
- function Nt(e) {
3272
+ function Pt(e) {
3269
3273
  return {
3270
3274
  create: function() {
3271
3275
  return {
@@ -3279,77 +3283,77 @@ function Nt(e) {
3279
3283
  }
3280
3284
  };
3281
3285
  }
3282
- function Mi(e) {
3286
+ function Pi(e) {
3283
3287
  return e === void 0 && (e = {
3284
3288
  number: {},
3285
3289
  dateTime: {},
3286
3290
  pluralRules: {}
3287
3291
  }), {
3288
- getNumberFormat: Lt(function() {
3292
+ getNumberFormat: Rt(function() {
3289
3293
  for (var t, n = [], r = 0; r < arguments.length; r++)
3290
3294
  n[r] = arguments[r];
3291
- return new ((t = Intl.NumberFormat).bind.apply(t, Ht([void 0], n, !1)))();
3295
+ return new ((t = Intl.NumberFormat).bind.apply(t, Lt([void 0], n, !1)))();
3292
3296
  }, {
3293
- cache: Nt(e.number),
3294
- strategy: Ot.variadic
3297
+ cache: Pt(e.number),
3298
+ strategy: Nt.variadic
3295
3299
  }),
3296
- getDateTimeFormat: Lt(function() {
3300
+ getDateTimeFormat: Rt(function() {
3297
3301
  for (var t, n = [], r = 0; r < arguments.length; r++)
3298
3302
  n[r] = arguments[r];
3299
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Ht([void 0], n, !1)))();
3303
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Lt([void 0], n, !1)))();
3300
3304
  }, {
3301
- cache: Nt(e.dateTime),
3302
- strategy: Ot.variadic
3305
+ cache: Pt(e.dateTime),
3306
+ strategy: Nt.variadic
3303
3307
  }),
3304
- getPluralRules: Lt(function() {
3308
+ getPluralRules: Rt(function() {
3305
3309
  for (var t, n = [], r = 0; r < arguments.length; r++)
3306
3310
  n[r] = arguments[r];
3307
- return new ((t = Intl.PluralRules).bind.apply(t, Ht([void 0], n, !1)))();
3311
+ return new ((t = Intl.PluralRules).bind.apply(t, Lt([void 0], n, !1)))();
3308
3312
  }, {
3309
- cache: Nt(e.pluralRules),
3310
- strategy: Ot.variadic
3313
+ cache: Pt(e.pluralRules),
3314
+ strategy: Nt.variadic
3311
3315
  })
3312
3316
  };
3313
3317
  }
3314
- var Pi = (
3318
+ var Ii = (
3315
3319
  /** @class */
3316
3320
  function() {
3317
3321
  function e(t, n, r, i) {
3318
3322
  n === void 0 && (n = e.defaultLocale);
3319
- var a = this;
3323
+ var o = this;
3320
3324
  if (this.formatterCache = {
3321
3325
  number: {},
3322
3326
  dateTime: {},
3323
3327
  pluralRules: {}
3324
- }, this.format = function(p) {
3325
- var h = a.formatToParts(p);
3328
+ }, this.format = function(d) {
3329
+ var h = o.formatToParts(d);
3326
3330
  if (h.length === 1)
3327
3331
  return h[0].value;
3328
- var d = h.reduce(function(m, g) {
3329
- return !m.length || g.type !== J.literal || typeof m[m.length - 1] != "string" ? m.push(g.value) : m[m.length - 1] += g.value, m;
3332
+ var c = h.reduce(function(g, y) {
3333
+ return !g.length || y.type !== Y.literal || typeof g[g.length - 1] != "string" ? g.push(y.value) : g[g.length - 1] += y.value, g;
3330
3334
  }, []);
3331
- return d.length <= 1 ? d[0] || "" : d;
3332
- }, this.formatToParts = function(p) {
3333
- return ht(a.ast, a.locales, a.formatters, a.formats, p, void 0, a.message);
3335
+ return c.length <= 1 ? c[0] || "" : c;
3336
+ }, this.formatToParts = function(d) {
3337
+ return ht(o.ast, o.locales, o.formatters, o.formats, d, void 0, o.message);
3334
3338
  }, this.resolvedOptions = function() {
3335
- var p;
3339
+ var d;
3336
3340
  return {
3337
- locale: ((p = a.resolvedLocale) === null || p === void 0 ? void 0 : p.toString()) || Intl.NumberFormat.supportedLocalesOf(a.locales)[0]
3341
+ locale: ((d = o.resolvedLocale) === null || d === void 0 ? void 0 : d.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3338
3342
  };
3339
3343
  }, this.getAst = function() {
3340
- return a.ast;
3344
+ return o.ast;
3341
3345
  }, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
3342
3346
  if (this.message = t, !e.__parse)
3343
3347
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3344
- var l = i || {};
3345
- l.formatters;
3346
- var s = Xr(l, ["formatters"]);
3347
- this.ast = e.__parse(t, R(R({}, s), { locale: this.resolvedLocale }));
3348
+ var u = i || {};
3349
+ u.formatters;
3350
+ var s = Xr(u, ["formatters"]);
3351
+ this.ast = e.__parse(t, he(he({}, s), { locale: this.resolvedLocale }));
3348
3352
  } else
3349
3353
  this.ast = t;
3350
3354
  if (!Array.isArray(this.ast))
3351
3355
  throw new TypeError("A message must be provided as a String or AST.");
3352
- this.formats = Ni(e.formats, r), this.formatters = i && i.formatters || Mi(this.formatterCache);
3356
+ this.formats = Mi(e.formats, r), this.formatters = i && i.formatters || Pi(this.formatterCache);
3353
3357
  }
3354
3358
  return Object.defineProperty(e, "defaultLocale", {
3355
3359
  get: function() {
@@ -3362,7 +3366,7 @@ var Pi = (
3362
3366
  var n = Intl.NumberFormat.supportedLocalesOf(t);
3363
3367
  return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3364
3368
  }
3365
- }, e.__parse = Ai, e.formats = {
3369
+ }, e.__parse = Ci, e.formats = {
3366
3370
  number: {
3367
3371
  integer: {
3368
3372
  maximumFractionDigits: 0
@@ -3423,7 +3427,7 @@ var Pi = (
3423
3427
  }, e;
3424
3428
  }()
3425
3429
  );
3426
- function Ii(e, t) {
3430
+ function Di(e, t) {
3427
3431
  if (t == null)
3428
3432
  return;
3429
3433
  if (t in e)
@@ -3433,9 +3437,9 @@ function Ii(e, t) {
3433
3437
  for (let i = 0; i < n.length; i++)
3434
3438
  if (typeof r == "object") {
3435
3439
  if (i > 0) {
3436
- const a = n.slice(i, n.length).join(".");
3437
- if (a in r) {
3438
- r = r[a];
3440
+ const o = n.slice(i, n.length).join(".");
3441
+ if (o in r) {
3442
+ r = r[o];
3439
3443
  break;
3440
3444
  }
3441
3445
  }
@@ -3444,36 +3448,36 @@ function Ii(e, t) {
3444
3448
  r = void 0;
3445
3449
  return r;
3446
3450
  }
3447
- const Te = {}, Di = (e, t, n) => n && (t in Te || (Te[t] = {}), e in Te[t] || (Te[t][e] = n), n), zn = (e, t) => {
3451
+ const Se = {}, Fi = (e, t, n) => n && (t in Se || (Se[t] = {}), e in Se[t] || (Se[t][e] = n), n), zn = (e, t) => {
3448
3452
  if (t == null)
3449
3453
  return;
3450
- if (t in Te && e in Te[t])
3451
- return Te[t][e];
3452
- const n = vt(t);
3454
+ if (t in Se && e in Se[t])
3455
+ return Se[t][e];
3456
+ const n = Et(t);
3453
3457
  for (let r = 0; r < n.length; r++) {
3454
- const i = n[r], a = Ui(i, e);
3455
- if (a)
3456
- return Di(e, t, a);
3458
+ const i = n[r], o = Gi(i, e);
3459
+ if (o)
3460
+ return Fi(e, t, o);
3457
3461
  }
3458
3462
  };
3459
3463
  let Jt;
3460
- const tt = gt({});
3461
- function Fi(e) {
3464
+ const rt = bt({});
3465
+ function Ui(e) {
3462
3466
  return Jt[e] || null;
3463
3467
  }
3464
3468
  function Wn(e) {
3465
3469
  return e in Jt;
3466
3470
  }
3467
- function Ui(e, t) {
3471
+ function Gi(e, t) {
3468
3472
  if (!Wn(e))
3469
3473
  return null;
3470
- const n = Fi(e);
3471
- return Ii(n, t);
3474
+ const n = Ui(e);
3475
+ return Di(n, t);
3472
3476
  }
3473
- function Gi(e) {
3477
+ function $i(e) {
3474
3478
  if (e == null)
3475
3479
  return;
3476
- const t = vt(e);
3480
+ const t = Et(e);
3477
3481
  for (let n = 0; n < t.length; n++) {
3478
3482
  const r = t[n];
3479
3483
  if (Wn(r))
@@ -3481,55 +3485,55 @@ function Gi(e) {
3481
3485
  }
3482
3486
  }
3483
3487
  function Zn(e, ...t) {
3484
- delete Te[e], tt.update((n) => (n[e] = Vr.all([n[e] || {}, ...t]), n));
3488
+ delete Se[e], rt.update((n) => (n[e] = Vr.all([n[e] || {}, ...t]), n));
3485
3489
  }
3486
- $e(
3487
- [tt],
3490
+ ke(
3491
+ [rt],
3488
3492
  ([e]) => Object.keys(e)
3489
3493
  );
3490
- tt.subscribe((e) => Jt = e);
3494
+ rt.subscribe((e) => Jt = e);
3491
3495
  const ct = {};
3492
- function $i(e, t) {
3496
+ function ji(e, t) {
3493
3497
  ct[e].delete(t), ct[e].size === 0 && delete ct[e];
3494
3498
  }
3495
3499
  function qn(e) {
3496
3500
  return ct[e];
3497
3501
  }
3498
3502
  function ki(e) {
3499
- return vt(e).map((t) => {
3503
+ return Et(e).map((t) => {
3500
3504
  const n = qn(t);
3501
3505
  return [t, n ? [...n] : []];
3502
3506
  }).filter(([, t]) => t.length > 0);
3503
3507
  }
3504
- function Xt(e) {
3505
- return e == null ? !1 : vt(e).some(
3508
+ function Wt(e) {
3509
+ return e == null ? !1 : Et(e).some(
3506
3510
  (t) => {
3507
3511
  var n;
3508
3512
  return (n = qn(t)) == null ? void 0 : n.size;
3509
3513
  }
3510
3514
  );
3511
3515
  }
3512
- function ji(e, t) {
3516
+ function Vi(e, t) {
3513
3517
  return Promise.all(
3514
- t.map((r) => ($i(e, r), r().then((i) => i.default || i)))
3518
+ t.map((r) => (ji(e, r), r().then((i) => i.default || i)))
3515
3519
  ).then((r) => Zn(e, ...r));
3516
3520
  }
3517
- const Qe = {};
3521
+ const Ye = {};
3518
3522
  function Qn(e) {
3519
- if (!Xt(e))
3520
- return e in Qe ? Qe[e] : Promise.resolve();
3523
+ if (!Wt(e))
3524
+ return e in Ye ? Ye[e] : Promise.resolve();
3521
3525
  const t = ki(e);
3522
- return Qe[e] = Promise.all(
3526
+ return Ye[e] = Promise.all(
3523
3527
  t.map(
3524
- ([n, r]) => ji(n, r)
3528
+ ([n, r]) => Vi(n, r)
3525
3529
  )
3526
3530
  ).then(() => {
3527
- if (Xt(e))
3531
+ if (Wt(e))
3528
3532
  return Qn(e);
3529
- delete Qe[e];
3530
- }), Qe[e];
3533
+ delete Ye[e];
3534
+ }), Ye[e];
3531
3535
  }
3532
- const Vi = {
3536
+ const Xi = {
3533
3537
  number: {
3534
3538
  scientific: { notation: "scientific" },
3535
3539
  engineering: { notation: "engineering" },
@@ -3558,176 +3562,176 @@ const Vi = {
3558
3562
  timeZoneName: "short"
3559
3563
  }
3560
3564
  }
3561
- }, Xi = {
3565
+ }, zi = {
3562
3566
  fallbackLocale: null,
3563
3567
  loadingDelay: 200,
3564
- formats: Vi,
3568
+ formats: Xi,
3565
3569
  warnOnMissingMessages: !0,
3566
3570
  handleMissingMessage: void 0,
3567
3571
  ignoreTag: !0
3568
- }, zi = Xi;
3569
- function Ue() {
3570
- return zi;
3572
+ }, Wi = zi;
3573
+ function $e() {
3574
+ return Wi;
3571
3575
  }
3572
- const Mt = gt(!1);
3573
- var Wi = Object.defineProperty, Zi = Object.defineProperties, qi = Object.getOwnPropertyDescriptors, fn = Object.getOwnPropertySymbols, Qi = Object.prototype.hasOwnProperty, Ji = Object.prototype.propertyIsEnumerable, dn = (e, t, n) => t in e ? Wi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Yi = (e, t) => {
3576
+ const It = bt(!1);
3577
+ var Zi = Object.defineProperty, qi = Object.defineProperties, Qi = Object.getOwnPropertyDescriptors, fn = Object.getOwnPropertySymbols, Ji = Object.prototype.hasOwnProperty, Yi = Object.prototype.propertyIsEnumerable, dn = (e, t, n) => t in e ? Zi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ki = (e, t) => {
3574
3578
  for (var n in t || (t = {}))
3575
- Qi.call(t, n) && dn(e, n, t[n]);
3579
+ Ji.call(t, n) && dn(e, n, t[n]);
3576
3580
  if (fn)
3577
3581
  for (var n of fn(t))
3578
- Ji.call(t, n) && dn(e, n, t[n]);
3582
+ Yi.call(t, n) && dn(e, n, t[n]);
3579
3583
  return e;
3580
- }, Ki = (e, t) => Zi(e, qi(t));
3581
- let zt;
3582
- const pt = gt(null);
3584
+ }, eo = (e, t) => qi(e, Qi(t));
3585
+ let Zt;
3586
+ const mt = bt(null);
3583
3587
  function pn(e) {
3584
3588
  return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3585
3589
  }
3586
- function vt(e, t = Ue().fallbackLocale) {
3590
+ function Et(e, t = $e().fallbackLocale) {
3587
3591
  const n = pn(e);
3588
3592
  return t ? [.../* @__PURE__ */ new Set([...n, ...pn(t)])] : n;
3589
3593
  }
3590
- function Ce() {
3591
- return zt ?? void 0;
3594
+ function He() {
3595
+ return Zt ?? void 0;
3592
3596
  }
3593
- pt.subscribe((e) => {
3594
- zt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3597
+ mt.subscribe((e) => {
3598
+ Zt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3595
3599
  });
3596
- const eo = (e) => {
3597
- if (e && Gi(e) && Xt(e)) {
3598
- const { loadingDelay: t } = Ue();
3600
+ const to = (e) => {
3601
+ if (e && $i(e) && Wt(e)) {
3602
+ const { loadingDelay: t } = $e();
3599
3603
  let n;
3600
- return typeof window < "u" && Ce() != null && t ? n = window.setTimeout(
3601
- () => Mt.set(!0),
3604
+ return typeof window < "u" && He() != null && t ? n = window.setTimeout(
3605
+ () => It.set(!0),
3602
3606
  t
3603
- ) : Mt.set(!0), Qn(e).then(() => {
3604
- pt.set(e);
3607
+ ) : It.set(!0), Qn(e).then(() => {
3608
+ mt.set(e);
3605
3609
  }).finally(() => {
3606
- clearTimeout(n), Mt.set(!1);
3610
+ clearTimeout(n), It.set(!1);
3607
3611
  });
3608
3612
  }
3609
- return pt.set(e);
3610
- }, ke = Ki(Yi({}, pt), {
3611
- set: eo
3612
- }), Et = (e) => {
3613
+ return mt.set(e);
3614
+ }, Ve = eo(Ki({}, mt), {
3615
+ set: to
3616
+ }), xt = (e) => {
3613
3617
  const t = /* @__PURE__ */ Object.create(null);
3614
3618
  return (r) => {
3615
3619
  const i = JSON.stringify(r);
3616
3620
  return i in t ? t[i] : t[i] = e(r);
3617
3621
  };
3618
3622
  };
3619
- var to = Object.defineProperty, mt = Object.getOwnPropertySymbols, Jn = Object.prototype.hasOwnProperty, Yn = Object.prototype.propertyIsEnumerable, mn = (e, t, n) => t in e ? to(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Yt = (e, t) => {
3623
+ var no = Object.defineProperty, gt = Object.getOwnPropertySymbols, Jn = Object.prototype.hasOwnProperty, Yn = Object.prototype.propertyIsEnumerable, mn = (e, t, n) => t in e ? no(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Yt = (e, t) => {
3620
3624
  for (var n in t || (t = {}))
3621
3625
  Jn.call(t, n) && mn(e, n, t[n]);
3622
- if (mt)
3623
- for (var n of mt(t))
3626
+ if (gt)
3627
+ for (var n of gt(t))
3624
3628
  Yn.call(t, n) && mn(e, n, t[n]);
3625
3629
  return e;
3626
- }, je = (e, t) => {
3630
+ }, Xe = (e, t) => {
3627
3631
  var n = {};
3628
3632
  for (var r in e)
3629
3633
  Jn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3630
- if (e != null && mt)
3631
- for (var r of mt(e))
3634
+ if (e != null && gt)
3635
+ for (var r of gt(e))
3632
3636
  t.indexOf(r) < 0 && Yn.call(e, r) && (n[r] = e[r]);
3633
3637
  return n;
3634
3638
  };
3635
- const et = (e, t) => {
3636
- const { formats: n } = Ue();
3639
+ const nt = (e, t) => {
3640
+ const { formats: n } = $e();
3637
3641
  if (e in n && t in n[e])
3638
3642
  return n[e][t];
3639
3643
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3640
- }, no = Et(
3644
+ }, ro = xt(
3641
3645
  (e) => {
3642
- var t = e, { locale: n, format: r } = t, i = je(t, ["locale", "format"]);
3646
+ var t = e, { locale: n, format: r } = t, i = Xe(t, ["locale", "format"]);
3643
3647
  if (n == null)
3644
3648
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3645
- return r && (i = et("number", r)), new Intl.NumberFormat(n, i);
3649
+ return r && (i = nt("number", r)), new Intl.NumberFormat(n, i);
3646
3650
  }
3647
- ), ro = Et(
3651
+ ), io = xt(
3648
3652
  (e) => {
3649
- var t = e, { locale: n, format: r } = t, i = je(t, ["locale", "format"]);
3653
+ var t = e, { locale: n, format: r } = t, i = Xe(t, ["locale", "format"]);
3650
3654
  if (n == null)
3651
3655
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3652
- return r ? i = et("date", r) : Object.keys(i).length === 0 && (i = et("date", "short")), new Intl.DateTimeFormat(n, i);
3656
+ return r ? i = nt("date", r) : Object.keys(i).length === 0 && (i = nt("date", "short")), new Intl.DateTimeFormat(n, i);
3653
3657
  }
3654
- ), io = Et(
3658
+ ), oo = xt(
3655
3659
  (e) => {
3656
- var t = e, { locale: n, format: r } = t, i = je(t, ["locale", "format"]);
3660
+ var t = e, { locale: n, format: r } = t, i = Xe(t, ["locale", "format"]);
3657
3661
  if (n == null)
3658
3662
  throw new Error(
3659
3663
  '[svelte-i18n] A "locale" must be set to format time values'
3660
3664
  );
3661
- return r ? i = et("time", r) : Object.keys(i).length === 0 && (i = et("time", "short")), new Intl.DateTimeFormat(n, i);
3665
+ return r ? i = nt("time", r) : Object.keys(i).length === 0 && (i = nt("time", "short")), new Intl.DateTimeFormat(n, i);
3662
3666
  }
3663
- ), oo = (e = {}) => {
3667
+ ), ao = (e = {}) => {
3664
3668
  var t = e, {
3665
- locale: n = Ce()
3666
- } = t, r = je(t, [
3667
- "locale"
3668
- ]);
3669
- return no(Yt({ locale: n }, r));
3670
- }, ao = (e = {}) => {
3671
- var t = e, {
3672
- locale: n = Ce()
3673
- } = t, r = je(t, [
3669
+ locale: n = He()
3670
+ } = t, r = Xe(t, [
3674
3671
  "locale"
3675
3672
  ]);
3676
3673
  return ro(Yt({ locale: n }, r));
3677
3674
  }, so = (e = {}) => {
3678
3675
  var t = e, {
3679
- locale: n = Ce()
3680
- } = t, r = je(t, [
3676
+ locale: n = He()
3677
+ } = t, r = Xe(t, [
3681
3678
  "locale"
3682
3679
  ]);
3683
3680
  return io(Yt({ locale: n }, r));
3684
- }, lo = Et(
3681
+ }, uo = (e = {}) => {
3682
+ var t = e, {
3683
+ locale: n = He()
3684
+ } = t, r = Xe(t, [
3685
+ "locale"
3686
+ ]);
3687
+ return oo(Yt({ locale: n }, r));
3688
+ }, lo = xt(
3685
3689
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3686
- (e, t = Ce()) => new Pi(e, t, Ue().formats, {
3687
- ignoreTag: Ue().ignoreTag
3690
+ (e, t = He()) => new Ii(e, t, $e().formats, {
3691
+ ignoreTag: $e().ignoreTag
3688
3692
  })
3689
- ), uo = (e, t = {}) => {
3690
- var n, r, i, a;
3691
- let l = t;
3692
- typeof e == "object" && (l = e, e = l.id);
3693
+ ), ho = (e, t = {}) => {
3694
+ var n, r, i, o;
3695
+ let u = t;
3696
+ typeof e == "object" && (u = e, e = u.id);
3693
3697
  const {
3694
3698
  values: s,
3695
- locale: p = Ce(),
3699
+ locale: d = He(),
3696
3700
  default: h
3697
- } = l;
3698
- if (p == null)
3701
+ } = u;
3702
+ if (d == null)
3699
3703
  throw new Error(
3700
3704
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3701
3705
  );
3702
- let d = zn(e, p);
3703
- if (!d)
3704
- d = (a = (i = (r = (n = Ue()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: p, id: e, defaultValue: h })) != null ? i : h) != null ? a : e;
3705
- else if (typeof d != "string")
3706
+ let c = zn(e, d);
3707
+ if (!c)
3708
+ c = (o = (i = (r = (n = $e()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: d, id: e, defaultValue: h })) != null ? i : h) != null ? o : e;
3709
+ else if (typeof c != "string")
3706
3710
  return console.warn(
3707
- `[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.`
3708
- ), d;
3711
+ `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3712
+ ), c;
3709
3713
  if (!s)
3710
- return d;
3711
- let m = d;
3714
+ return c;
3715
+ let g = c;
3712
3716
  try {
3713
- m = lo(d, p).format(s);
3714
- } catch (g) {
3715
- g instanceof Error && console.warn(
3717
+ g = lo(c, d).format(s);
3718
+ } catch (y) {
3719
+ y instanceof Error && console.warn(
3716
3720
  `[svelte-i18n] Message "${e}" has syntax error:`,
3717
- g.message
3721
+ y.message
3718
3722
  );
3719
3723
  }
3720
- return m;
3721
- }, ho = (e, t) => so(t).format(e), co = (e, t) => ao(t).format(e), fo = (e, t) => oo(t).format(e), po = (e, t = Ce()) => zn(e, t), mo = $e([ke, tt], () => uo);
3722
- $e([ke], () => ho);
3723
- $e([ke], () => co);
3724
- $e([ke], () => fo);
3725
- $e([ke, tt], () => po);
3724
+ return g;
3725
+ }, co = (e, t) => uo(t).format(e), fo = (e, t) => so(t).format(e), po = (e, t) => ao(t).format(e), mo = (e, t = He()) => zn(e, t), go = ke([Ve, rt], () => ho);
3726
+ ke([Ve], () => co);
3727
+ ke([Ve], () => fo);
3728
+ ke([Ve], () => po);
3729
+ ke([Ve, rt], () => mo);
3726
3730
  function gn(e, t) {
3727
3731
  Zn(e, t);
3728
3732
  }
3729
- function go(e) {
3730
- ke.set(e);
3733
+ function bo(e) {
3734
+ Ve.set(e);
3731
3735
  }
3732
3736
  const bn = {
3733
3737
  en: {
@@ -3929,7 +3933,7 @@ const bn = {
3929
3933
  Loading: "Loading ..."
3930
3934
  }
3931
3935
  };
3932
- var Wt = { exports: {} };
3936
+ var qt = { exports: {} };
3933
3937
  /** @license
3934
3938
  * eventsource.js
3935
3939
  * Available under MIT License (MIT)
@@ -3937,30 +3941,30 @@ var Wt = { exports: {} };
3937
3941
  */
3938
3942
  (function(e, t) {
3939
3943
  (function(n) {
3940
- var r = n.setTimeout, i = n.clearTimeout, a = n.XMLHttpRequest, l = n.XDomainRequest, s = n.ActiveXObject, p = n.EventSource, h = n.document, d = n.Promise, m = n.fetch, g = n.Response, x = n.TextDecoder, T = n.TextEncoder, P = n.AbortController;
3941
- if (typeof window < "u" && typeof h < "u" && !("readyState" in h) && h.body == null && (h.readyState = "loading", window.addEventListener("load", function(o) {
3944
+ var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, u = n.XDomainRequest, s = n.ActiveXObject, d = n.EventSource, h = n.document, c = n.Promise, g = n.fetch, y = n.Response, x = n.TextDecoder, T = n.TextEncoder, P = n.AbortController;
3945
+ if (typeof window < "u" && typeof h < "u" && !("readyState" in h) && h.body == null && (h.readyState = "loading", window.addEventListener("load", function(a) {
3942
3946
  h.readyState = "complete";
3943
- }, !1)), a == null && s != null && (a = function() {
3947
+ }, !1)), o == null && s != null && (o = function() {
3944
3948
  return new s("Microsoft.XMLHTTP");
3945
- }), Object.create == null && (Object.create = function(o) {
3946
- function u() {
3949
+ }), Object.create == null && (Object.create = function(a) {
3950
+ function l() {
3947
3951
  }
3948
- return u.prototype = o, new u();
3952
+ return l.prototype = a, new l();
3949
3953
  }), Date.now || (Date.now = function() {
3950
3954
  return (/* @__PURE__ */ new Date()).getTime();
3951
3955
  }), P == null) {
3952
- var $ = m;
3953
- m = function(o, u) {
3954
- var f = u.signal;
3955
- return $(o, { headers: u.headers, credentials: u.credentials, cache: u.cache }).then(function(c) {
3956
- var v = c.body.getReader();
3957
- return f._reader = v, f._aborted && f._reader.cancel(), {
3958
- status: c.status,
3959
- statusText: c.statusText,
3960
- headers: c.headers,
3956
+ var j = g;
3957
+ g = function(a, l) {
3958
+ var f = l.signal;
3959
+ return j(a, { headers: l.headers, credentials: l.credentials, cache: l.cache }).then(function(p) {
3960
+ var E = p.body.getReader();
3961
+ return f._reader = E, f._aborted && f._reader.cancel(), {
3962
+ status: p.status,
3963
+ statusText: p.statusText,
3964
+ headers: p.headers,
3961
3965
  body: {
3962
3966
  getReader: function() {
3963
- return v;
3967
+ return E;
3964
3968
  }
3965
3969
  }
3966
3970
  };
@@ -3974,408 +3978,408 @@ var Wt = { exports: {} };
3974
3978
  };
3975
3979
  };
3976
3980
  }
3977
- function X() {
3981
+ function z() {
3978
3982
  this.bitsNeeded = 0, this.codePoint = 0;
3979
3983
  }
3980
- X.prototype.decode = function(o) {
3981
- function u(C, N, _) {
3982
- if (_ === 1)
3983
- return C >= 128 >> N && C << N <= 2047;
3984
- if (_ === 2)
3985
- return C >= 2048 >> N && C << N <= 55295 || C >= 57344 >> N && C << N <= 65535;
3986
- if (_ === 3)
3987
- return C >= 65536 >> N && C << N <= 1114111;
3984
+ z.prototype.decode = function(a) {
3985
+ function l(O, L, S) {
3986
+ if (S === 1)
3987
+ return O >= 128 >> L && O << L <= 2047;
3988
+ if (S === 2)
3989
+ return O >= 2048 >> L && O << L <= 55295 || O >= 57344 >> L && O << L <= 65535;
3990
+ if (S === 3)
3991
+ return O >= 65536 >> L && O << L <= 1114111;
3988
3992
  throw new Error();
3989
3993
  }
3990
- function f(C, N) {
3991
- if (C === 6 * 1)
3992
- return N >> 6 > 15 ? 3 : N > 31 ? 2 : 1;
3993
- if (C === 6 * 2)
3994
- return N > 15 ? 3 : 2;
3995
- if (C === 6 * 3)
3994
+ function f(O, L) {
3995
+ if (O === 6 * 1)
3996
+ return L >> 6 > 15 ? 3 : L > 31 ? 2 : 1;
3997
+ if (O === 6 * 2)
3998
+ return L > 15 ? 3 : 2;
3999
+ if (O === 6 * 3)
3996
4000
  return 3;
3997
4001
  throw new Error();
3998
4002
  }
3999
- for (var c = 65533, v = "", b = this.bitsNeeded, y = this.codePoint, A = 0; A < o.length; A += 1) {
4000
- var w = o[A];
4001
- b !== 0 && (w < 128 || w > 191 || !u(y << 6 | w & 63, b - 6, f(b, y))) && (b = 0, y = c, v += String.fromCharCode(y)), b === 0 ? (w >= 0 && w <= 127 ? (b = 0, y = w) : w >= 192 && w <= 223 ? (b = 6 * 1, y = w & 31) : w >= 224 && w <= 239 ? (b = 6 * 2, y = w & 15) : w >= 240 && w <= 247 ? (b = 6 * 3, y = w & 7) : (b = 0, y = c), b !== 0 && !u(y, b, f(b, y)) && (b = 0, y = c)) : (b -= 6, y = y << 6 | w & 63), b === 0 && (y <= 65535 ? v += String.fromCharCode(y) : (v += String.fromCharCode(55296 + (y - 65535 - 1 >> 10)), v += String.fromCharCode(56320 + (y - 65535 - 1 & 1023))));
4003
+ for (var p = 65533, E = "", m = this.bitsNeeded, _ = this.codePoint, N = 0; N < a.length; N += 1) {
4004
+ var A = a[N];
4005
+ m !== 0 && (A < 128 || A > 191 || !l(_ << 6 | A & 63, m - 6, f(m, _))) && (m = 0, _ = p, E += String.fromCharCode(_)), m === 0 ? (A >= 0 && A <= 127 ? (m = 0, _ = A) : A >= 192 && A <= 223 ? (m = 6 * 1, _ = A & 31) : A >= 224 && A <= 239 ? (m = 6 * 2, _ = A & 15) : A >= 240 && A <= 247 ? (m = 6 * 3, _ = A & 7) : (m = 0, _ = p), m !== 0 && !l(_, m, f(m, _)) && (m = 0, _ = p)) : (m -= 6, _ = _ << 6 | A & 63), m === 0 && (_ <= 65535 ? E += String.fromCharCode(_) : (E += String.fromCharCode(55296 + (_ - 65535 - 1 >> 10)), E += String.fromCharCode(56320 + (_ - 65535 - 1 & 1023))));
4002
4006
  }
4003
- return this.bitsNeeded = b, this.codePoint = y, v;
4007
+ return this.bitsNeeded = m, this.codePoint = _, E;
4004
4008
  };
4005
- var F = function() {
4009
+ var G = function() {
4006
4010
  try {
4007
4011
  return new x().decode(new T().encode("test"), { stream: !0 }) === "test";
4008
- } catch (o) {
4009
- console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + o);
4012
+ } catch (a) {
4013
+ console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + a);
4010
4014
  }
4011
4015
  return !1;
4012
4016
  };
4013
- (x == null || T == null || !F()) && (x = X);
4017
+ (x == null || T == null || !G()) && (x = z);
4014
4018
  var B = function() {
4015
4019
  };
4016
- function S(o) {
4017
- this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = B, this.onload = B, this.onerror = B, this.onreadystatechange = B, this._contentType = "", this._xhr = o, this._sendTimeout = 0, this._abort = B;
4020
+ function w(a) {
4021
+ this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = B, this.onload = B, this.onerror = B, this.onreadystatechange = B, this._contentType = "", this._xhr = a, this._sendTimeout = 0, this._abort = B;
4018
4022
  }
4019
- S.prototype.open = function(o, u) {
4023
+ w.prototype.open = function(a, l) {
4020
4024
  this._abort(!0);
4021
- var f = this, c = this._xhr, v = 1, b = 0;
4022
- this._abort = function(_) {
4023
- f._sendTimeout !== 0 && (i(f._sendTimeout), f._sendTimeout = 0), (v === 1 || v === 2 || v === 3) && (v = 4, c.onload = B, c.onerror = B, c.onabort = B, c.onprogress = B, c.onreadystatechange = B, c.abort(), b !== 0 && (i(b), b = 0), _ || (f.readyState = 4, f.onabort(null), f.onreadystatechange())), v = 0;
4025
+ var f = this, p = this._xhr, E = 1, m = 0;
4026
+ this._abort = function(S) {
4027
+ f._sendTimeout !== 0 && (i(f._sendTimeout), f._sendTimeout = 0), (E === 1 || E === 2 || E === 3) && (E = 4, p.onload = B, p.onerror = B, p.onabort = B, p.onprogress = B, p.onreadystatechange = B, p.abort(), m !== 0 && (i(m), m = 0), S || (f.readyState = 4, f.onabort(null), f.onreadystatechange())), E = 0;
4024
4028
  };
4025
- var y = function() {
4026
- if (v === 1) {
4027
- var _ = 0, D = "", me = void 0;
4028
- if ("contentType" in c)
4029
- _ = 200, D = "OK", me = c.contentType;
4029
+ var _ = function() {
4030
+ if (E === 1) {
4031
+ var S = 0, F = "", me = void 0;
4032
+ if ("contentType" in p)
4033
+ S = 200, F = "OK", me = p.contentType;
4030
4034
  else
4031
4035
  try {
4032
- _ = c.status, D = c.statusText, me = c.getResponseHeader("Content-Type");
4036
+ S = p.status, F = p.statusText, me = p.getResponseHeader("Content-Type");
4033
4037
  } catch {
4034
- _ = 0, D = "", me = void 0;
4038
+ S = 0, F = "", me = void 0;
4035
4039
  }
4036
- _ !== 0 && (v = 2, f.readyState = 2, f.status = _, f.statusText = D, f._contentType = me, f.onreadystatechange());
4040
+ S !== 0 && (E = 2, f.readyState = 2, f.status = S, f.statusText = F, f._contentType = me, f.onreadystatechange());
4037
4041
  }
4038
- }, A = function() {
4039
- if (y(), v === 2 || v === 3) {
4040
- v = 3;
4041
- var _ = "";
4042
+ }, N = function() {
4043
+ if (_(), E === 2 || E === 3) {
4044
+ E = 3;
4045
+ var S = "";
4042
4046
  try {
4043
- _ = c.responseText;
4047
+ S = p.responseText;
4044
4048
  } catch {
4045
4049
  }
4046
- f.readyState = 3, f.responseText = _, f.onprogress();
4050
+ f.readyState = 3, f.responseText = S, f.onprogress();
4047
4051
  }
4048
- }, w = function(_, D) {
4049
- if ((D == null || D.preventDefault == null) && (D = {
4052
+ }, A = function(S, F) {
4053
+ if ((F == null || F.preventDefault == null) && (F = {
4050
4054
  preventDefault: B
4051
- }), A(), v === 1 || v === 2 || v === 3) {
4052
- if (v = 4, b !== 0 && (i(b), b = 0), f.readyState = 4, _ === "load")
4053
- f.onload(D);
4054
- else if (_ === "error")
4055
- f.onerror(D);
4056
- else if (_ === "abort")
4057
- f.onabort(D);
4055
+ }), N(), E === 1 || E === 2 || E === 3) {
4056
+ if (E = 4, m !== 0 && (i(m), m = 0), f.readyState = 4, S === "load")
4057
+ f.onload(F);
4058
+ else if (S === "error")
4059
+ f.onerror(F);
4060
+ else if (S === "abort")
4061
+ f.onabort(F);
4058
4062
  else
4059
4063
  throw new TypeError();
4060
4064
  f.onreadystatechange();
4061
4065
  }
4062
- }, C = function(_) {
4063
- c != null && (c.readyState === 4 ? (!("onload" in c) || !("onerror" in c) || !("onabort" in c)) && w(c.responseText === "" ? "error" : "load", _) : c.readyState === 3 ? "onprogress" in c || A() : c.readyState === 2 && y());
4064
- }, N = function() {
4065
- b = r(function() {
4066
- N();
4067
- }, 500), c.readyState === 3 && A();
4066
+ }, O = function(S) {
4067
+ p != null && (p.readyState === 4 ? (!("onload" in p) || !("onerror" in p) || !("onabort" in p)) && A(p.responseText === "" ? "error" : "load", S) : p.readyState === 3 ? "onprogress" in p || N() : p.readyState === 2 && _());
4068
+ }, L = function() {
4069
+ m = r(function() {
4070
+ L();
4071
+ }, 500), p.readyState === 3 && N();
4068
4072
  };
4069
- "onload" in c && (c.onload = function(_) {
4070
- w("load", _);
4071
- }), "onerror" in c && (c.onerror = function(_) {
4072
- w("error", _);
4073
- }), "onabort" in c && (c.onabort = function(_) {
4074
- w("abort", _);
4075
- }), "onprogress" in c && (c.onprogress = A), "onreadystatechange" in c && (c.onreadystatechange = function(_) {
4076
- C(_);
4077
- }), ("contentType" in c || !("ontimeout" in a.prototype)) && (u += (u.indexOf("?") === -1 ? "?" : "&") + "padding=true"), c.open(o, u, !0), "readyState" in c && (b = r(function() {
4078
- N();
4073
+ "onload" in p && (p.onload = function(S) {
4074
+ A("load", S);
4075
+ }), "onerror" in p && (p.onerror = function(S) {
4076
+ A("error", S);
4077
+ }), "onabort" in p && (p.onabort = function(S) {
4078
+ A("abort", S);
4079
+ }), "onprogress" in p && (p.onprogress = N), "onreadystatechange" in p && (p.onreadystatechange = function(S) {
4080
+ O(S);
4081
+ }), ("contentType" in p || !("ontimeout" in o.prototype)) && (l += (l.indexOf("?") === -1 ? "?" : "&") + "padding=true"), p.open(a, l, !0), "readyState" in p && (m = r(function() {
4082
+ L();
4079
4083
  }, 0));
4080
- }, S.prototype.abort = function() {
4084
+ }, w.prototype.abort = function() {
4081
4085
  this._abort(!1);
4082
- }, S.prototype.getResponseHeader = function(o) {
4086
+ }, w.prototype.getResponseHeader = function(a) {
4083
4087
  return this._contentType;
4084
- }, S.prototype.setRequestHeader = function(o, u) {
4088
+ }, w.prototype.setRequestHeader = function(a, l) {
4085
4089
  var f = this._xhr;
4086
- "setRequestHeader" in f && f.setRequestHeader(o, u);
4087
- }, S.prototype.getAllResponseHeaders = function() {
4090
+ "setRequestHeader" in f && f.setRequestHeader(a, l);
4091
+ }, w.prototype.getAllResponseHeaders = function() {
4088
4092
  return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
4089
- }, S.prototype.send = function() {
4090
- if ((!("ontimeout" in a.prototype) || !("sendAsBinary" in a.prototype) && !("mozAnon" in a.prototype)) && h != null && h.readyState != null && h.readyState !== "complete") {
4091
- var o = this;
4092
- o._sendTimeout = r(function() {
4093
- o._sendTimeout = 0, o.send();
4093
+ }, w.prototype.send = function() {
4094
+ if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && h != null && h.readyState != null && h.readyState !== "complete") {
4095
+ var a = this;
4096
+ a._sendTimeout = r(function() {
4097
+ a._sendTimeout = 0, a.send();
4094
4098
  }, 4);
4095
4099
  return;
4096
4100
  }
4097
- var u = this._xhr;
4098
- "withCredentials" in u && (u.withCredentials = this.withCredentials);
4101
+ var l = this._xhr;
4102
+ "withCredentials" in l && (l.withCredentials = this.withCredentials);
4099
4103
  try {
4100
- u.send(void 0);
4104
+ l.send(void 0);
4101
4105
  } catch (f) {
4102
4106
  throw f;
4103
4107
  }
4104
4108
  };
4105
- function G(o) {
4106
- return o.replace(/[A-Z]/g, function(u) {
4107
- return String.fromCharCode(u.charCodeAt(0) + 32);
4109
+ function I(a) {
4110
+ return a.replace(/[A-Z]/g, function(l) {
4111
+ return String.fromCharCode(l.charCodeAt(0) + 32);
4108
4112
  });
4109
4113
  }
4110
- function O(o) {
4111
- for (var u = /* @__PURE__ */ Object.create(null), f = o.split(`\r
4112
- `), c = 0; c < f.length; c += 1) {
4113
- var v = f[c], b = v.split(": "), y = b.shift(), A = b.join(": ");
4114
- u[G(y)] = A;
4114
+ function R(a) {
4115
+ for (var l = /* @__PURE__ */ Object.create(null), f = a.split(`\r
4116
+ `), p = 0; p < f.length; p += 1) {
4117
+ var E = f[p], m = E.split(": "), _ = m.shift(), N = m.join(": ");
4118
+ l[I(_)] = N;
4115
4119
  }
4116
- this._map = u;
4120
+ this._map = l;
4117
4121
  }
4118
- O.prototype.get = function(o) {
4119
- return this._map[G(o)];
4120
- }, a != null && a.HEADERS_RECEIVED == null && (a.HEADERS_RECEIVED = 2);
4121
- function Y() {
4122
+ R.prototype.get = function(a) {
4123
+ return this._map[I(a)];
4124
+ }, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
4125
+ function K() {
4122
4126
  }
4123
- Y.prototype.open = function(o, u, f, c, v, b, y) {
4124
- o.open("GET", v);
4125
- var A = 0;
4126
- o.onprogress = function() {
4127
- var C = o.responseText, N = C.slice(A);
4128
- A += N.length, f(N);
4129
- }, o.onerror = function(C) {
4130
- C.preventDefault(), c(new Error("NetworkError"));
4131
- }, o.onload = function() {
4132
- c(null);
4133
- }, o.onabort = function() {
4134
- c(null);
4135
- }, o.onreadystatechange = function() {
4136
- if (o.readyState === a.HEADERS_RECEIVED) {
4137
- var C = o.status, N = o.statusText, _ = o.getResponseHeader("Content-Type"), D = o.getAllResponseHeaders();
4138
- u(C, N, _, new O(D));
4127
+ K.prototype.open = function(a, l, f, p, E, m, _) {
4128
+ a.open("GET", E);
4129
+ var N = 0;
4130
+ a.onprogress = function() {
4131
+ var O = a.responseText, L = O.slice(N);
4132
+ N += L.length, f(L);
4133
+ }, a.onerror = function(O) {
4134
+ O.preventDefault(), p(new Error("NetworkError"));
4135
+ }, a.onload = function() {
4136
+ p(null);
4137
+ }, a.onabort = function() {
4138
+ p(null);
4139
+ }, a.onreadystatechange = function() {
4140
+ if (a.readyState === o.HEADERS_RECEIVED) {
4141
+ var O = a.status, L = a.statusText, S = a.getResponseHeader("Content-Type"), F = a.getAllResponseHeaders();
4142
+ l(O, L, S, new R(F));
4139
4143
  }
4140
- }, o.withCredentials = b;
4141
- for (var w in y)
4142
- Object.prototype.hasOwnProperty.call(y, w) && o.setRequestHeader(w, y[w]);
4143
- return o.send(), o;
4144
+ }, a.withCredentials = m;
4145
+ for (var A in _)
4146
+ Object.prototype.hasOwnProperty.call(_, A) && a.setRequestHeader(A, _[A]);
4147
+ return a.send(), a;
4144
4148
  };
4145
- function xe(o) {
4146
- this._headers = o;
4149
+ function fe(a) {
4150
+ this._headers = a;
4147
4151
  }
4148
- xe.prototype.get = function(o) {
4149
- return this._headers.get(o);
4152
+ fe.prototype.get = function(a) {
4153
+ return this._headers.get(a);
4150
4154
  };
4151
- function fe() {
4155
+ function de() {
4152
4156
  }
4153
- fe.prototype.open = function(o, u, f, c, v, b, y) {
4154
- var A = null, w = new P(), C = w.signal, N = new x();
4155
- return m(v, {
4156
- headers: y,
4157
- credentials: b ? "include" : "same-origin",
4158
- signal: C,
4157
+ de.prototype.open = function(a, l, f, p, E, m, _) {
4158
+ var N = null, A = new P(), O = A.signal, L = new x();
4159
+ return g(E, {
4160
+ headers: _,
4161
+ credentials: m ? "include" : "same-origin",
4162
+ signal: O,
4159
4163
  cache: "no-store"
4160
- }).then(function(_) {
4161
- return A = _.body.getReader(), u(_.status, _.statusText, _.headers.get("Content-Type"), new xe(_.headers)), new d(function(D, me) {
4162
- var Ze = function() {
4163
- A.read().then(function(ee) {
4164
- if (ee.done)
4165
- D(void 0);
4164
+ }).then(function(S) {
4165
+ return N = S.body.getReader(), l(S.status, S.statusText, S.headers.get("Content-Type"), new fe(S.headers)), new c(function(F, me) {
4166
+ var Qe = function() {
4167
+ N.read().then(function(ne) {
4168
+ if (ne.done)
4169
+ F(void 0);
4166
4170
  else {
4167
- var Z = N.decode(ee.value, { stream: !0 });
4168
- f(Z), Ze();
4171
+ var q = L.decode(ne.value, { stream: !0 });
4172
+ f(q), Qe();
4169
4173
  }
4170
- }).catch(function(ee) {
4171
- me(ee);
4174
+ }).catch(function(ne) {
4175
+ me(ne);
4172
4176
  });
4173
4177
  };
4174
- Ze();
4178
+ Qe();
4175
4179
  });
4176
- }).catch(function(_) {
4177
- if (_.name !== "AbortError")
4178
- return _;
4179
- }).then(function(_) {
4180
- c(_);
4180
+ }).catch(function(S) {
4181
+ if (S.name !== "AbortError")
4182
+ return S;
4183
+ }).then(function(S) {
4184
+ p(S);
4181
4185
  }), {
4182
4186
  abort: function() {
4183
- A?.cancel(), w.abort();
4187
+ N?.cancel(), A.abort();
4184
4188
  }
4185
4189
  };
4186
4190
  };
4187
- function re() {
4191
+ function ee() {
4188
4192
  this._listeners = /* @__PURE__ */ Object.create(null);
4189
4193
  }
4190
- function ae(o) {
4194
+ function xe(a) {
4191
4195
  r(function() {
4192
- throw o;
4196
+ throw a;
4193
4197
  }, 0);
4194
4198
  }
4195
- re.prototype.dispatchEvent = function(o) {
4196
- o.target = this;
4197
- var u = this._listeners[o.type];
4198
- if (u != null)
4199
- for (var f = u.length, c = 0; c < f; c += 1) {
4200
- var v = u[c];
4199
+ ee.prototype.dispatchEvent = function(a) {
4200
+ a.target = this;
4201
+ var l = this._listeners[a.type];
4202
+ if (l != null)
4203
+ for (var f = l.length, p = 0; p < f; p += 1) {
4204
+ var E = l[p];
4201
4205
  try {
4202
- typeof v.handleEvent == "function" ? v.handleEvent(o) : v.call(this, o);
4203
- } catch (b) {
4204
- ae(b);
4206
+ typeof E.handleEvent == "function" ? E.handleEvent(a) : E.call(this, a);
4207
+ } catch (m) {
4208
+ xe(m);
4205
4209
  }
4206
4210
  }
4207
- }, re.prototype.addEventListener = function(o, u) {
4208
- o = String(o);
4209
- var f = this._listeners, c = f[o];
4210
- c == null && (c = [], f[o] = c);
4211
- for (var v = !1, b = 0; b < c.length; b += 1)
4212
- c[b] === u && (v = !0);
4213
- v || c.push(u);
4214
- }, re.prototype.removeEventListener = function(o, u) {
4215
- o = String(o);
4216
- var f = this._listeners, c = f[o];
4217
- if (c != null) {
4218
- for (var v = [], b = 0; b < c.length; b += 1)
4219
- c[b] !== u && v.push(c[b]);
4220
- v.length === 0 ? delete f[o] : f[o] = v;
4211
+ }, ee.prototype.addEventListener = function(a, l) {
4212
+ a = String(a);
4213
+ var f = this._listeners, p = f[a];
4214
+ p == null && (p = [], f[a] = p);
4215
+ for (var E = !1, m = 0; m < p.length; m += 1)
4216
+ p[m] === l && (E = !0);
4217
+ E || p.push(l);
4218
+ }, ee.prototype.removeEventListener = function(a, l) {
4219
+ a = String(a);
4220
+ var f = this._listeners, p = f[a];
4221
+ if (p != null) {
4222
+ for (var E = [], m = 0; m < p.length; m += 1)
4223
+ p[m] !== l && E.push(p[m]);
4224
+ E.length === 0 ? delete f[a] : f[a] = E;
4221
4225
  }
4222
4226
  };
4223
- function ie(o) {
4224
- this.type = o, this.target = void 0;
4227
+ function v(a) {
4228
+ this.type = a, this.target = void 0;
4225
4229
  }
4226
- function E(o, u) {
4227
- ie.call(this, o), this.data = u.data, this.lastEventId = u.lastEventId;
4230
+ function _e(a, l) {
4231
+ v.call(this, a), this.data = l.data, this.lastEventId = l.lastEventId;
4228
4232
  }
4229
- E.prototype = Object.create(ie.prototype);
4230
- function de(o, u) {
4231
- ie.call(this, o), this.status = u.status, this.statusText = u.statusText, this.headers = u.headers;
4233
+ _e.prototype = Object.create(v.prototype);
4234
+ function ze(a, l) {
4235
+ v.call(this, a), this.status = l.status, this.statusText = l.statusText, this.headers = l.headers;
4232
4236
  }
4233
- de.prototype = Object.create(ie.prototype);
4234
- function nt(o, u) {
4235
- ie.call(this, o), this.error = u.error;
4237
+ ze.prototype = Object.create(v.prototype);
4238
+ function it(a, l) {
4239
+ v.call(this, a), this.error = l.error;
4236
4240
  }
4237
- nt.prototype = Object.create(ie.prototype);
4238
- var Ve = -1, he = 0, _e = 1, Be = 2, Se = -1, se = 0, Xe = 1, He = 2, rt = 3, xt = /^text\/event\-stream(;.*)?$/i, it = 1e3, _t = 18e6, ze = function(o, u) {
4239
- var f = o == null ? u : parseInt(o, 10);
4240
- return f !== f && (f = u), We(f);
4241
- }, We = function(o) {
4242
- return Math.min(Math.max(o, it), _t);
4243
- }, pe = function(o, u, f) {
4241
+ it.prototype = Object.create(v.prototype);
4242
+ var We = -1, ue = 0, Te = 1, pe = 2, Oe = -1, le = 0, we = 1, Ze = 2, _t = 3, ot = /^text\/event\-stream(;.*)?$/i, Tt = 1e3, Bt = 18e6, qe = function(a, l) {
4243
+ var f = a == null ? l : parseInt(a, 10);
4244
+ return f !== f && (f = l), Le(f);
4245
+ }, Le = function(a) {
4246
+ return Math.min(Math.max(a, Tt), Bt);
4247
+ }, Be = function(a, l, f) {
4244
4248
  try {
4245
- typeof u == "function" && u.call(o, f);
4246
- } catch (c) {
4247
- ae(c);
4249
+ typeof l == "function" && l.call(a, f);
4250
+ } catch (p) {
4251
+ xe(p);
4248
4252
  }
4249
4253
  };
4250
- function K(o, u) {
4251
- re.call(this), u = u || {}, 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, St(this, o, u);
4254
+ function te(a, l) {
4255
+ ee.call(this), l = l || {}, 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, At(this, a, l);
4252
4256
  }
4253
- function Tt() {
4254
- return a != null && "withCredentials" in a.prototype || l == null ? new a() : new l();
4257
+ function St() {
4258
+ return o != null && "withCredentials" in o.prototype || u == null ? new o() : new u();
4255
4259
  }
4256
- var Bt = m != null && g != null && "body" in g.prototype;
4257
- function St(o, u, f) {
4258
- u = String(u);
4259
- var c = !!f.withCredentials, v = f.lastEventIdQueryParameterName || "lastEventId", b = We(1e3), y = ze(f.heartbeatTimeout, 45e3), A = "", w = b, C = !1, N = 0, _ = f.headers || {}, D = f.Transport, me = Bt && D == null ? void 0 : new S(D != null ? new D() : Tt()), Ze = D != null && typeof D != "string" ? new D() : me == null ? new fe() : new Y(), ee = void 0, Z = 0, le = Ve, Le = "", at = "", ge = "", st = "", q = se, wt = 0, we = 0, Kn = function(j, k, te, ne) {
4260
- if (le === he)
4261
- if (j === 200 && te != null && xt.test(te)) {
4262
- le = _e, C = Date.now(), w = b, o.readyState = _e;
4263
- var Q = new de("open", {
4264
- status: j,
4260
+ var wt = g != null && y != null && "body" in y.prototype;
4261
+ function At(a, l, f) {
4262
+ l = String(l);
4263
+ var p = !!f.withCredentials, E = f.lastEventIdQueryParameterName || "lastEventId", m = Le(1e3), _ = qe(f.heartbeatTimeout, 45e3), N = "", A = m, O = !1, L = 0, S = f.headers || {}, F = f.Transport, me = wt && F == null ? void 0 : new w(F != null ? new F() : St()), Qe = F != null && typeof F != "string" ? new F() : me == null ? new de() : new K(), ne = void 0, q = 0, ae = We, Re = "", at = "", ge = "", st = "", Q = le, Ct = 0, Ae = 0, Kn = function(V, k, re, ie) {
4264
+ if (ae === ue)
4265
+ if (V === 200 && re != null && ot.test(re)) {
4266
+ ae = Te, O = Date.now(), A = m, a.readyState = Te;
4267
+ var J = new ze("open", {
4268
+ status: V,
4265
4269
  statusText: k,
4266
- headers: ne
4270
+ headers: ie
4267
4271
  });
4268
- o.dispatchEvent(Q), pe(o, o.onopen, Q);
4272
+ a.dispatchEvent(J), Be(a, a.onopen, J);
4269
4273
  } else {
4270
- var z = "";
4271
- j !== 200 ? (k && (k = k.replace(/\s+/g, " ")), z = "EventSource's response has a status " + j + " " + k + " that is not 200. Aborting the connection.") : z = "EventSource's response has a Content-Type specifying an unsupported type: " + (te == null ? "-" : te.replace(/\s+/g, " ")) + ". Aborting the connection.", At();
4272
- var Q = new de("error", {
4273
- status: j,
4274
+ var W = "";
4275
+ V !== 200 ? (k && (k = k.replace(/\s+/g, " ")), W = "EventSource's response has a status " + V + " " + k + " that is not 200. Aborting the connection.") : W = "EventSource's response has a Content-Type specifying an unsupported type: " + (re == null ? "-" : re.replace(/\s+/g, " ")) + ". Aborting the connection.", Ht();
4276
+ var J = new ze("error", {
4277
+ status: V,
4274
4278
  statusText: k,
4275
- headers: ne
4279
+ headers: ie
4276
4280
  });
4277
- o.dispatchEvent(Q), pe(o, o.onerror, Q), console.error(z);
4281
+ a.dispatchEvent(J), Be(a, a.onerror, J), console.error(W);
4278
4282
  }
4279
- }, er = function(j) {
4280
- if (le === _e) {
4281
- for (var k = -1, te = 0; te < j.length; te += 1) {
4282
- var ne = j.charCodeAt(te);
4283
- (ne === 10 || ne === 13) && (k = te);
4283
+ }, er = function(V) {
4284
+ if (ae === Te) {
4285
+ for (var k = -1, re = 0; re < V.length; re += 1) {
4286
+ var ie = V.charCodeAt(re);
4287
+ (ie === 10 || ie === 13) && (k = re);
4284
4288
  }
4285
- var Q = (k !== -1 ? st : "") + j.slice(0, k + 1);
4286
- st = (k === -1 ? st : "") + j.slice(k + 1), j !== "" && (C = Date.now(), N += j.length);
4287
- for (var z = 0; z < Q.length; z += 1) {
4288
- var ne = Q.charCodeAt(z);
4289
- if (q === Se && ne === 10)
4290
- q = se;
4291
- else if (q === Se && (q = se), ne === 13 || ne === 10) {
4292
- if (q !== se) {
4293
- q === Xe && (we = z + 1);
4294
- var be = Q.slice(wt, we - 1), ye = Q.slice(we + (we < z && Q.charCodeAt(we) === 32 ? 1 : 0), z);
4295
- be === "data" ? (Le += `
4296
- `, Le += ye) : be === "id" ? at = ye : be === "event" ? ge = ye : be === "retry" ? (b = ze(ye, b), w = b) : be === "heartbeatTimeout" && (y = ze(ye, y), Z !== 0 && (i(Z), Z = r(function() {
4297
- qe();
4298
- }, y)));
4289
+ var J = (k !== -1 ? st : "") + V.slice(0, k + 1);
4290
+ st = (k === -1 ? st : "") + V.slice(k + 1), V !== "" && (O = Date.now(), L += V.length);
4291
+ for (var W = 0; W < J.length; W += 1) {
4292
+ var ie = J.charCodeAt(W);
4293
+ if (Q === Oe && ie === 10)
4294
+ Q = le;
4295
+ else if (Q === Oe && (Q = le), ie === 13 || ie === 10) {
4296
+ if (Q !== le) {
4297
+ Q === we && (Ae = W + 1);
4298
+ var be = J.slice(Ct, Ae - 1), ye = J.slice(Ae + (Ae < W && J.charCodeAt(Ae) === 32 ? 1 : 0), W);
4299
+ be === "data" ? (Re += `
4300
+ `, Re += ye) : be === "id" ? at = ye : be === "event" ? ge = ye : be === "retry" ? (m = qe(ye, m), A = m) : be === "heartbeatTimeout" && (_ = qe(ye, _), q !== 0 && (i(q), q = r(function() {
4301
+ Je();
4302
+ }, _)));
4299
4303
  }
4300
- if (q === se) {
4301
- if (Le !== "") {
4302
- A = at, ge === "" && (ge = "message");
4303
- var Oe = new E(ge, {
4304
- data: Le.slice(1),
4304
+ if (Q === le) {
4305
+ if (Re !== "") {
4306
+ N = at, ge === "" && (ge = "message");
4307
+ var Ne = new _e(ge, {
4308
+ data: Re.slice(1),
4305
4309
  lastEventId: at
4306
4310
  });
4307
- if (o.dispatchEvent(Oe), ge === "open" ? pe(o, o.onopen, Oe) : ge === "message" ? pe(o, o.onmessage, Oe) : ge === "error" && pe(o, o.onerror, Oe), le === Be)
4311
+ if (a.dispatchEvent(Ne), ge === "open" ? Be(a, a.onopen, Ne) : ge === "message" ? Be(a, a.onmessage, Ne) : ge === "error" && Be(a, a.onerror, Ne), ae === pe)
4308
4312
  return;
4309
4313
  }
4310
- Le = "", ge = "";
4314
+ Re = "", ge = "";
4311
4315
  }
4312
- q = ne === 13 ? Se : se;
4316
+ Q = ie === 13 ? Oe : le;
4313
4317
  } else
4314
- q === se && (wt = z, q = Xe), q === Xe ? ne === 58 && (we = z + 1, q = He) : q === He && (q = rt);
4318
+ Q === le && (Ct = W, Q = we), Q === we ? ie === 58 && (Ae = W + 1, Q = Ze) : Q === Ze && (Q = _t);
4315
4319
  }
4316
4320
  }
4317
- }, Kt = function(j) {
4318
- if (le === _e || le === he) {
4319
- le = Ve, Z !== 0 && (i(Z), Z = 0), Z = r(function() {
4320
- qe();
4321
- }, w), w = We(Math.min(b * 16, w * 2)), o.readyState = he;
4322
- var k = new nt("error", { error: j });
4323
- o.dispatchEvent(k), pe(o, o.onerror, k), j != null && console.error(j);
4321
+ }, Kt = function(V) {
4322
+ if (ae === Te || ae === ue) {
4323
+ ae = We, q !== 0 && (i(q), q = 0), q = r(function() {
4324
+ Je();
4325
+ }, A), A = Le(Math.min(m * 16, A * 2)), a.readyState = ue;
4326
+ var k = new it("error", { error: V });
4327
+ a.dispatchEvent(k), Be(a, a.onerror, k), V != null && console.error(V);
4324
4328
  }
4325
- }, At = function() {
4326
- le = Be, ee != null && (ee.abort(), ee = void 0), Z !== 0 && (i(Z), Z = 0), o.readyState = Be;
4327
- }, qe = function() {
4328
- if (Z = 0, le !== Ve) {
4329
- if (!C && ee != null)
4330
- Kt(new Error("No activity within " + y + " milliseconds. " + (le === he ? "No response received." : N + " chars received.") + " Reconnecting.")), ee != null && (ee.abort(), ee = void 0);
4329
+ }, Ht = function() {
4330
+ ae = pe, ne != null && (ne.abort(), ne = void 0), q !== 0 && (i(q), q = 0), a.readyState = pe;
4331
+ }, Je = function() {
4332
+ if (q = 0, ae !== We) {
4333
+ if (!O && ne != null)
4334
+ Kt(new Error("No activity within " + _ + " milliseconds. " + (ae === ue ? "No response received." : L + " chars received.") + " Reconnecting.")), ne != null && (ne.abort(), ne = void 0);
4331
4335
  else {
4332
- var j = Math.max((C || Date.now()) + y - Date.now(), 1);
4333
- C = !1, Z = r(function() {
4334
- qe();
4335
- }, j);
4336
+ var V = Math.max((O || Date.now()) + _ - Date.now(), 1);
4337
+ O = !1, q = r(function() {
4338
+ Je();
4339
+ }, V);
4336
4340
  }
4337
4341
  return;
4338
4342
  }
4339
- C = !1, N = 0, Z = r(function() {
4340
- qe();
4341
- }, y), le = he, Le = "", ge = "", at = A, st = "", wt = 0, we = 0, q = se;
4342
- var k = u;
4343
- if (u.slice(0, 5) !== "data:" && u.slice(0, 5) !== "blob:" && A !== "") {
4344
- var te = u.indexOf("?");
4345
- k = te === -1 ? u : u.slice(0, te + 1) + u.slice(te + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(ye, Oe) {
4346
- return Oe === v ? "" : ye;
4347
- }), k += (u.indexOf("?") === -1 ? "?" : "&") + v + "=" + encodeURIComponent(A);
4343
+ O = !1, L = 0, q = r(function() {
4344
+ Je();
4345
+ }, _), ae = ue, Re = "", ge = "", at = N, st = "", Ct = 0, Ae = 0, Q = le;
4346
+ var k = l;
4347
+ if (l.slice(0, 5) !== "data:" && l.slice(0, 5) !== "blob:" && N !== "") {
4348
+ var re = l.indexOf("?");
4349
+ k = re === -1 ? l : l.slice(0, re + 1) + l.slice(re + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(ye, Ne) {
4350
+ return Ne === E ? "" : ye;
4351
+ }), k += (l.indexOf("?") === -1 ? "?" : "&") + E + "=" + encodeURIComponent(N);
4348
4352
  }
4349
- var ne = o.withCredentials, Q = {};
4350
- Q.Accept = "text/event-stream";
4351
- var z = o.headers;
4352
- if (z != null)
4353
- for (var be in z)
4354
- Object.prototype.hasOwnProperty.call(z, be) && (Q[be] = z[be]);
4353
+ var ie = a.withCredentials, J = {};
4354
+ J.Accept = "text/event-stream";
4355
+ var W = a.headers;
4356
+ if (W != null)
4357
+ for (var be in W)
4358
+ Object.prototype.hasOwnProperty.call(W, be) && (J[be] = W[be]);
4355
4359
  try {
4356
- ee = Ze.open(me, Kn, er, Kt, k, ne, Q);
4360
+ ne = Qe.open(me, Kn, er, Kt, k, ie, J);
4357
4361
  } catch (ye) {
4358
- throw At(), ye;
4362
+ throw Ht(), ye;
4359
4363
  }
4360
4364
  };
4361
- o.url = u, o.readyState = he, o.withCredentials = c, o.headers = _, o._close = At, qe();
4365
+ a.url = l, a.readyState = ue, a.withCredentials = p, a.headers = S, a._close = Ht, Je();
4362
4366
  }
4363
- K.prototype = Object.create(re.prototype), K.prototype.CONNECTING = he, K.prototype.OPEN = _e, K.prototype.CLOSED = Be, K.prototype.close = function() {
4367
+ te.prototype = Object.create(ee.prototype), te.prototype.CONNECTING = ue, te.prototype.OPEN = Te, te.prototype.CLOSED = pe, te.prototype.close = function() {
4364
4368
  this._close();
4365
- }, K.CONNECTING = he, K.OPEN = _e, K.CLOSED = Be, K.prototype.withCredentials = void 0;
4366
- var ot = p;
4367
- a != null && (p == null || !("withCredentials" in p.prototype)) && (ot = K), function(o) {
4369
+ }, te.CONNECTING = ue, te.OPEN = Te, te.CLOSED = pe, te.prototype.withCredentials = void 0;
4370
+ var b = d;
4371
+ o != null && (d == null || !("withCredentials" in d.prototype)) && (b = te), function(a) {
4368
4372
  {
4369
- var u = o(t);
4370
- u !== void 0 && (e.exports = u);
4373
+ var l = a(t);
4374
+ l !== void 0 && (e.exports = l);
4371
4375
  }
4372
- }(function(o) {
4373
- o.EventSourcePolyfill = K, o.NativeEventSource = p, o.EventSource = ot;
4376
+ }(function(a) {
4377
+ a.EventSourcePolyfill = te, a.NativeEventSource = d, a.EventSource = b;
4374
4378
  });
4375
4379
  })(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : Cr : globalThis);
4376
- })(Wt, Wt.exports);
4377
- var bo = Wt.exports;
4378
- function yo(e) {
4380
+ })(qt, qt.exports);
4381
+ var yo = qt.exports;
4382
+ function vo(e) {
4379
4383
  rr(e, "svelte-gv6dm2", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap;background:transparent;border:none;font:inherit;color:inherit}.ShowBalance .BalanceValue svg{width:16px}.ShowBalance .BalanceValue span{padding-left:8px}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background-color:var(--emw--color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-60%);padding:10px;box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.BalanceModalWrapper:before{content:"";background:var(--emw--color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:60%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;font:inherit}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal{position:relative;width:280px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover,.BalanceModalFooter .BalanceModalActionactive{background:var(--emw--header-contrast, var(--emw--color-background, #07072A))}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}');
4380
4384
  }
4381
4385
  function yn(e, t, n) {
@@ -4386,7 +4390,7 @@ function vn(e, t, n) {
4386
4390
  const r = e.slice();
4387
4391
  return r[52] = t[n], r;
4388
4392
  }
4389
- function vo(e) {
4393
+ function Eo(e) {
4390
4394
  let t, n = (
4391
4395
  /*balances*/
4392
4396
  (e[3].Total ? (
@@ -4396,86 +4400,86 @@ function vo(e) {
4396
4400
  e[3].Total[0].amount
4397
4401
  )
4398
4402
  ) : "0") + ""
4399
- ), r, i, a, l, s, p, h, d = (
4403
+ ), r, i, o, u, s, d, h, c = (
4400
4404
  /*isModalDisplayed*/
4401
4405
  e[2] && En(e)
4402
4406
  );
4403
4407
  return {
4404
4408
  c() {
4405
- t = U("button"), r = ve(n), i = Ee(), a = U("span"), a.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>', l = Ee(), d && d.c(), s = ar(), W(t, "class", "BalanceValue");
4409
+ t = $("button"), r = ve(n), i = Ee(), o = $("span"), o.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>', u = Ee(), c && c.c(), s = ar(), Z(t, "class", "BalanceValue");
4406
4410
  },
4407
- m(m, g) {
4408
- ce(m, t, g), M(t, r), M(t, i), M(t, a), ce(m, l, g), d && d.m(m, g), ce(m, s, g), p || (h = ft(
4411
+ m(g, y) {
4412
+ ce(g, t, y), M(t, r), M(t, i), M(t, o), ce(g, u, y), c && c.m(g, y), ce(g, s, y), d || (h = ft(
4409
4413
  t,
4410
4414
  "click",
4411
4415
  /*click_handler*/
4412
4416
  e[23]
4413
- ), p = !0);
4417
+ ), d = !0);
4414
4418
  },
4415
- p(m, g) {
4416
- g[0] & /*balances*/
4419
+ p(g, y) {
4420
+ y[0] & /*balances*/
4417
4421
  8 && n !== (n = /*balances*/
4418
- (m[3].Total ? (
4422
+ (g[3].Total ? (
4419
4423
  /*formatBalance*/
4420
- m[5](
4424
+ g[5](
4421
4425
  /*balances*/
4422
- m[3].Total[0].amount
4426
+ g[3].Total[0].amount
4423
4427
  )
4424
- ) : "0") + "") && Ae(r, n), /*isModalDisplayed*/
4425
- m[2] ? d ? d.p(m, g) : (d = En(m), d.c(), d.m(s.parentNode, s)) : d && (d.d(1), d = null);
4428
+ ) : "0") + "") && Ce(r, n), /*isModalDisplayed*/
4429
+ g[2] ? c ? c.p(g, y) : (c = En(g), c.c(), c.m(s.parentNode, s)) : c && (c.d(1), c = null);
4426
4430
  },
4427
- d(m) {
4428
- m && (ue(t), ue(l), ue(s)), d && d.d(m), p = !1, h();
4431
+ d(g) {
4432
+ g && (se(t), se(u), se(s)), c && c.d(g), d = !1, h();
4429
4433
  }
4430
4434
  };
4431
4435
  }
4432
- function Eo(e) {
4436
+ function xo(e) {
4433
4437
  let t, n = (
4434
4438
  /*$_*/
4435
4439
  e[4]("Loading") + ""
4436
4440
  ), r;
4437
4441
  return {
4438
4442
  c() {
4439
- t = U("p"), r = ve(n);
4443
+ t = $("p"), r = ve(n);
4440
4444
  },
4441
- m(i, a) {
4442
- ce(i, t, a), M(t, r);
4445
+ m(i, o) {
4446
+ ce(i, t, o), M(t, r);
4443
4447
  },
4444
- p(i, a) {
4445
- a[0] & /*$_*/
4448
+ p(i, o) {
4449
+ o[0] & /*$_*/
4446
4450
  16 && n !== (n = /*$_*/
4447
- i[4]("Loading") + "") && Ae(r, n);
4451
+ i[4]("Loading") + "") && Ce(r, n);
4448
4452
  },
4449
4453
  d(i) {
4450
- i && ue(t);
4454
+ i && se(t);
4451
4455
  }
4452
4456
  };
4453
4457
  }
4454
4458
  function En(e) {
4455
- let t, n, r, i, a, l, s = (
4459
+ let t, n, r, i, o, u, s = (
4456
4460
  /*$_*/
4457
4461
  e[4]("Title") + ""
4458
- ), p, h, d, m, g, x, T = (
4462
+ ), d, h, c, g, y, x, T = (
4459
4463
  /*$_*/
4460
4464
  e[4]("DepositButton") + ""
4461
- ), P, $, X, F = dt(Object.keys(
4465
+ ), P, j, z, G = dt(Object.keys(
4462
4466
  /*balances*/
4463
4467
  e[3]
4464
4468
  )), B = [];
4465
- for (let S = 0; S < F.length; S += 1)
4466
- B[S] = _n(yn(e, F, S));
4469
+ for (let w = 0; w < G.length; w += 1)
4470
+ B[w] = _n(yn(e, G, w));
4467
4471
  return {
4468
4472
  c() {
4469
- t = U("div"), n = U("button"), r = Ee(), i = U("div"), a = U("div"), l = U("p"), p = ve(s), h = Ee(), d = U("div");
4470
- for (let S = 0; S < B.length; S += 1)
4471
- B[S].c();
4472
- m = Ee(), g = U("div"), x = U("button"), P = ve(T), W(n, "class", "BalanceModalClose"), W(l, "class", "BalanceModalTitle"), W(a, "class", "BalanceModalHeader"), W(d, "class", "BalanceModalBody"), W(x, "class", "BalanceModalAction"), W(g, "class", "BalanceModalFooter"), W(i, "class", "BalanceModal"), W(t, "class", "BalanceModalWrapper");
4473
+ t = $("div"), n = $("button"), r = Ee(), i = $("div"), o = $("div"), u = $("p"), d = ve(s), h = Ee(), c = $("div");
4474
+ for (let w = 0; w < B.length; w += 1)
4475
+ B[w].c();
4476
+ g = Ee(), y = $("div"), x = $("button"), P = ve(T), Z(n, "class", "BalanceModalClose"), Z(u, "class", "BalanceModalTitle"), Z(o, "class", "BalanceModalHeader"), Z(c, "class", "BalanceModalBody"), Z(x, "class", "BalanceModalAction"), Z(y, "class", "BalanceModalFooter"), Z(i, "class", "BalanceModal"), Z(t, "class", "BalanceModalWrapper");
4473
4477
  },
4474
- m(S, G) {
4475
- ce(S, t, G), M(t, n), M(t, r), M(t, i), M(i, a), M(a, l), M(l, p), M(i, h), M(i, d);
4476
- for (let O = 0; O < B.length; O += 1)
4477
- B[O] && B[O].m(d, null);
4478
- M(i, m), M(i, g), M(g, x), M(x, P), $ || (X = [
4478
+ m(w, I) {
4479
+ ce(w, t, I), M(t, n), M(t, r), M(t, i), M(i, o), M(o, u), M(u, d), M(i, h), M(i, c);
4480
+ for (let R = 0; R < B.length; R += 1)
4481
+ B[R] && B[R].m(c, null);
4482
+ M(i, g), M(i, y), M(y, x), M(x, P), j || (z = [
4479
4483
  ft(
4480
4484
  n,
4481
4485
  "click",
@@ -4488,32 +4492,32 @@ function En(e) {
4488
4492
  /*click_handler_2*/
4489
4493
  e[25]
4490
4494
  )
4491
- ], $ = !0);
4495
+ ], j = !0);
4492
4496
  },
4493
- p(S, G) {
4494
- if (G[0] & /*$_*/
4497
+ p(w, I) {
4498
+ if (I[0] & /*$_*/
4495
4499
  16 && s !== (s = /*$_*/
4496
- S[4]("Title") + "") && Ae(p, s), G[0] & /*balances, formatBalance, $_*/
4500
+ w[4]("Title") + "") && Ce(d, s), I[0] & /*balances, formatBalance, $_*/
4497
4501
  56) {
4498
- F = dt(Object.keys(
4502
+ G = dt(Object.keys(
4499
4503
  /*balances*/
4500
- S[3]
4504
+ w[3]
4501
4505
  ));
4502
- let O;
4503
- for (O = 0; O < F.length; O += 1) {
4504
- const Y = yn(S, F, O);
4505
- B[O] ? B[O].p(Y, G) : (B[O] = _n(Y), B[O].c(), B[O].m(d, null));
4506
+ let R;
4507
+ for (R = 0; R < G.length; R += 1) {
4508
+ const K = yn(w, G, R);
4509
+ B[R] ? B[R].p(K, I) : (B[R] = _n(K), B[R].c(), B[R].m(c, null));
4506
4510
  }
4507
- for (; O < B.length; O += 1)
4508
- B[O].d(1);
4509
- B.length = F.length;
4511
+ for (; R < B.length; R += 1)
4512
+ B[R].d(1);
4513
+ B.length = G.length;
4510
4514
  }
4511
- G[0] & /*$_*/
4515
+ I[0] & /*$_*/
4512
4516
  16 && T !== (T = /*$_*/
4513
- S[4]("DepositButton") + "") && Ae(P, T);
4517
+ w[4]("DepositButton") + "") && Ce(P, T);
4514
4518
  },
4515
- d(S) {
4516
- S && ue(t), An(B, S), $ = !1, Ge(X);
4519
+ d(w) {
4520
+ w && se(t), An(B, w), j = !1, je(z);
4517
4521
  }
4518
4522
  };
4519
4523
  }
@@ -4524,7 +4528,7 @@ function xn(e) {
4524
4528
  /*k*/
4525
4529
  e[49]
4526
4530
  ) + ""
4527
- ), i, a, l = (
4531
+ ), i, o, u = (
4528
4532
  /*b*/
4529
4533
  (e[52].productType ? (
4530
4534
  /*$_*/
@@ -4533,19 +4537,19 @@ function xn(e) {
4533
4537
  e[52].productType
4534
4538
  )
4535
4539
  ) : "") + ""
4536
- ), s, p, h, d, m = (
4540
+ ), s, d, h, c, g = (
4537
4541
  /*formatBalance*/
4538
4542
  e[5](
4539
4543
  /*b*/
4540
4544
  e[52].amount
4541
4545
  ) + ""
4542
- ), g;
4546
+ ), y;
4543
4547
  return {
4544
4548
  c() {
4545
- t = U("div"), n = U("p"), i = ve(r), a = Ee(), s = ve(l), p = Ee(), h = U("p"), d = U("span"), g = ve(m), W(n, "class", "BalanceModalText"), W(d, "class", "BalanceModalAmount"), W(h, "class", "BalanceModalValue"), W(t, "class", "BalanceModalRowLine");
4549
+ t = $("div"), n = $("p"), i = ve(r), o = Ee(), s = ve(u), d = Ee(), h = $("p"), c = $("span"), y = ve(g), Z(n, "class", "BalanceModalText"), Z(c, "class", "BalanceModalAmount"), Z(h, "class", "BalanceModalValue"), Z(t, "class", "BalanceModalRowLine");
4546
4550
  },
4547
4551
  m(x, T) {
4548
- ce(x, t, T), M(t, n), M(n, i), M(n, a), M(n, s), M(t, p), M(t, h), M(h, d), M(d, g);
4552
+ ce(x, t, T), M(t, n), M(n, i), M(n, o), M(n, s), M(t, d), M(t, h), M(h, c), M(c, y);
4549
4553
  },
4550
4554
  p(x, T) {
4551
4555
  T[0] & /*$_, balances*/
@@ -4553,23 +4557,23 @@ function xn(e) {
4553
4557
  x[4](
4554
4558
  /*k*/
4555
4559
  x[49]
4556
- ) + "") && Ae(i, r), T[0] & /*balances, $_*/
4557
- 24 && l !== (l = /*b*/
4560
+ ) + "") && Ce(i, r), T[0] & /*balances, $_*/
4561
+ 24 && u !== (u = /*b*/
4558
4562
  (x[52].productType ? (
4559
4563
  /*$_*/
4560
4564
  x[4](
4561
4565
  /*b*/
4562
4566
  x[52].productType
4563
4567
  )
4564
- ) : "") + "") && Ae(s, l), T[0] & /*balances*/
4565
- 8 && m !== (m = /*formatBalance*/
4568
+ ) : "") + "") && Ce(s, u), T[0] & /*balances*/
4569
+ 8 && g !== (g = /*formatBalance*/
4566
4570
  x[5](
4567
4571
  /*b*/
4568
4572
  x[52].amount
4569
- ) + "") && Ae(g, m);
4573
+ ) + "") && Ce(y, g);
4570
4574
  },
4571
4575
  d(x) {
4572
- x && ue(t);
4576
+ x && se(t);
4573
4577
  }
4574
4578
  };
4575
4579
  }
@@ -4581,43 +4585,43 @@ function _n(e) {
4581
4585
  e[49]
4582
4586
  ]
4583
4587
  ), i = [];
4584
- for (let a = 0; a < r.length; a += 1)
4585
- i[a] = xn(vn(e, r, a));
4588
+ for (let o = 0; o < r.length; o += 1)
4589
+ i[o] = xn(vn(e, r, o));
4586
4590
  return {
4587
4591
  c() {
4588
- t = U("div");
4589
- for (let a = 0; a < i.length; a += 1)
4590
- i[a].c();
4591
- n = Ee(), W(t, "class", "BalanceModalRowBoth");
4592
+ t = $("div");
4593
+ for (let o = 0; o < i.length; o += 1)
4594
+ i[o].c();
4595
+ n = Ee(), Z(t, "class", "BalanceModalRowBoth");
4592
4596
  },
4593
- m(a, l) {
4594
- ce(a, t, l);
4597
+ m(o, u) {
4598
+ ce(o, t, u);
4595
4599
  for (let s = 0; s < i.length; s += 1)
4596
4600
  i[s] && i[s].m(t, null);
4597
4601
  M(t, n);
4598
4602
  },
4599
- p(a, l) {
4600
- if (l[0] & /*formatBalance, balances, $_*/
4603
+ p(o, u) {
4604
+ if (u[0] & /*formatBalance, balances, $_*/
4601
4605
  56) {
4602
4606
  r = dt(
4603
4607
  /*balances*/
4604
- a[3][
4608
+ o[3][
4605
4609
  /*k*/
4606
- a[49]
4610
+ o[49]
4607
4611
  ]
4608
4612
  );
4609
4613
  let s;
4610
4614
  for (s = 0; s < r.length; s += 1) {
4611
- const p = vn(a, r, s);
4612
- i[s] ? i[s].p(p, l) : (i[s] = xn(p), i[s].c(), i[s].m(t, n));
4615
+ const d = vn(o, r, s);
4616
+ i[s] ? i[s].p(d, u) : (i[s] = xn(d), i[s].c(), i[s].m(t, n));
4613
4617
  }
4614
4618
  for (; s < i.length; s += 1)
4615
4619
  i[s].d(1);
4616
4620
  i.length = r.length;
4617
4621
  }
4618
4622
  },
4619
- d(a) {
4620
- a && ue(t), An(i, a);
4623
+ d(o) {
4624
+ o && se(t), An(i, o);
4621
4625
  }
4622
4626
  };
4623
4627
  }
@@ -4625,10 +4629,10 @@ function Tn(e) {
4625
4629
  let t, n, r;
4626
4630
  return {
4627
4631
  c() {
4628
- t = U("button"), W(t, "class", "ShowBalanceModalOverlay");
4632
+ t = $("button"), Z(t, "class", "ShowBalanceModalOverlay");
4629
4633
  },
4630
- m(i, a) {
4631
- ce(i, t, a), n || (r = ft(
4634
+ m(i, o) {
4635
+ ce(i, t, o), n || (r = ft(
4632
4636
  t,
4633
4637
  "click",
4634
4638
  /*click_handler_3*/
@@ -4637,149 +4641,149 @@ function Tn(e) {
4637
4641
  },
4638
4642
  p: oe,
4639
4643
  d(i) {
4640
- i && ue(t), n = !1, r();
4644
+ i && se(t), n = !1, r();
4641
4645
  }
4642
4646
  };
4643
4647
  }
4644
- function xo(e) {
4648
+ function _o(e) {
4645
4649
  let t, n, r;
4646
- function i(p, h) {
4650
+ function i(d, h) {
4647
4651
  return (
4648
4652
  /*isLoading*/
4649
- p[1] ? Eo : vo
4653
+ d[1] ? xo : Eo
4650
4654
  );
4651
4655
  }
4652
- let a = i(e), l = a(e), s = (
4656
+ let o = i(e), u = o(e), s = (
4653
4657
  /*isModalDisplayed*/
4654
4658
  e[2] && Tn(e)
4655
4659
  );
4656
4660
  return {
4657
4661
  c() {
4658
- t = U("div"), n = U("div"), l.c(), r = Ee(), s && s.c(), W(n, "class", "ShowBalance");
4662
+ t = $("div"), n = $("div"), u.c(), r = Ee(), s && s.c(), Z(n, "class", "ShowBalance");
4659
4663
  },
4660
- m(p, h) {
4661
- ce(p, t, h), M(t, n), l.m(n, null), M(t, r), s && s.m(t, null), e[27](t);
4664
+ m(d, h) {
4665
+ ce(d, t, h), M(t, n), u.m(n, null), M(t, r), s && s.m(t, null), e[27](t);
4662
4666
  },
4663
- p(p, h) {
4664
- a === (a = i(p)) && l ? l.p(p, h) : (l.d(1), l = a(p), l && (l.c(), l.m(n, null))), /*isModalDisplayed*/
4665
- p[2] ? s ? s.p(p, h) : (s = Tn(p), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
4667
+ p(d, h) {
4668
+ o === (o = i(d)) && u ? u.p(d, h) : (u.d(1), u = o(d), u && (u.c(), u.m(n, null))), /*isModalDisplayed*/
4669
+ d[2] ? s ? s.p(d, h) : (s = Tn(d), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
4666
4670
  },
4667
4671
  i: oe,
4668
4672
  o: oe,
4669
- d(p) {
4670
- p && ue(t), l.d(), s && s.d(), e[27](null);
4673
+ d(d) {
4674
+ d && se(t), u.d(), s && s.d(), e[27](null);
4671
4675
  }
4672
4676
  };
4673
4677
  }
4674
- function _o(e, t, n) {
4678
+ function To(e, t, n) {
4675
4679
  let r;
4676
- nr(e, mo, (o) => n(4, r = o));
4677
- let { userid: i = "" } = t, { session: a = "" } = t, { endpoint: l = "" } = t, { lang: s = "en" } = t, { mbsource: p } = t, { clientstyling: h = "" } = t, { clientstylingurl: d = "" } = t, { translationurl: m = "" } = t, { gmversion: g = "gm16" } = t, { displaybalanceoption: x = "All" } = t, { totalcalculationmode: T = "totalCashAmount" } = t, { currencylocale: P = "en" } = t, { currencydisplay: $ = "symbol" } = t, { maximumfractiondigits: X = "2" } = t, { minimumfractiondigits: F = "0" } = t, { customdisplayformat: B = "" } = t, S, G, O = !0, Y = !1, xe = !1, fe, re = "", ae = [], ie;
4678
- const E = {}, de = ["totalCashAmount", "totalRealAmount"], nt = () => {
4679
- fetch(m).then((o) => o.json()).then((o) => Object.keys(o).forEach((u) => gn(u, o[u]))).catch((o) => console.log(o));
4680
+ nr(e, go, (b) => n(4, r = b));
4681
+ let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: u = "" } = t, { lang: s = "en" } = t, { mbsource: d } = t, { clientstyling: h = "" } = t, { clientstylingurl: c = "" } = t, { translationurl: g = "" } = t, { gmversion: y = "gm16" } = t, { displaybalanceoption: x = "All" } = t, { totalcalculationmode: T = "totalCashAmount" } = t, { currencylocale: P = "en" } = t, { currencydisplay: j = "symbol" } = t, { maximumfractiondigits: z = "2" } = t, { minimumfractiondigits: G = "0" } = t, { customdisplayformat: B = "" } = t, w, I = !0, R = !1, K = !1, fe, de = "", ee = [], xe;
4682
+ const v = {}, _e = ["totalCashAmount", "totalRealAmount"], ze = () => {
4683
+ fetch(g).then((b) => b.json()).then((b) => Object.keys(b).forEach((a) => gn(a, b[a]))).catch((b) => console.log(b));
4680
4684
  };
4681
- Object.keys(bn).forEach((o) => gn(o, bn[o]));
4682
- const Ve = (o) => {
4685
+ Object.keys(bn).forEach((b) => gn(b, bn[b]));
4686
+ const it = (b) => {
4683
4687
  if (B)
4684
- return he(o);
4685
- const u = P || s, f = {
4688
+ return We(b);
4689
+ const a = P || s, l = {
4686
4690
  style: "currency",
4687
- currency: re,
4691
+ currency: de,
4688
4692
  useGrouping: !0,
4689
- currencyDisplay: $ || "code",
4690
- maximumFractionDigits: X === "" || isNaN(Number(X)) ? 2 : Number(X),
4691
- minimumFractionDigits: F === "" || isNaN(Number(F)) ? 0 : Number(F)
4693
+ currencyDisplay: j || "code",
4694
+ maximumFractionDigits: z === "" || isNaN(Number(z)) ? 2 : Number(z),
4695
+ minimumFractionDigits: G === "" || isNaN(Number(G)) ? 0 : Number(G)
4692
4696
  };
4693
- return new Intl.NumberFormat(u, f).format(o);
4694
- }, he = (o) => {
4695
- const u = [];
4696
- let f = "";
4697
- for (const c of B)
4698
- switch (c) {
4697
+ return new Intl.NumberFormat(a, l).format(b);
4698
+ }, We = (b) => {
4699
+ const a = [];
4700
+ let l = "";
4701
+ for (const f of B)
4702
+ switch (f) {
4699
4703
  default:
4700
- f += c;
4704
+ l += f;
4701
4705
  break;
4702
4706
  case "{":
4703
- f && u.push(f), f = "";
4707
+ l && a.push(l), l = "";
4704
4708
  break;
4705
4709
  case "}":
4706
- const [v, b] = f.split("|");
4707
- if (f = "", v.toLowerCase() === "currency")
4708
- f = re;
4709
- else if (v.toLowerCase() === "amount") {
4710
- let y = ",", A = ".", w = 2;
4711
- b && (b[0] !== " " && (y = b[0]), b[1] !== " " && (A = b[1]), b[2] !== " " && !isNaN(Number(b[2])) && (w = Number(b[2])));
4712
- let [C, N] = String(Math.floor(o * 10 ** w) / 10 ** w).split(".");
4713
- f += C[0];
4714
- for (let _ = 1; _ < C.length; ++_)
4715
- (C.length - _) % 3 === 0 ? f += y + C[_] : f += C[_];
4716
- N && (f += A + N);
4710
+ const [p, E] = l.split("|");
4711
+ if (l = "", p.toLowerCase() === "currency")
4712
+ l = de;
4713
+ else if (p.toLowerCase() === "amount") {
4714
+ let m = ",", _ = ".", N = 2;
4715
+ E && (E[0] !== " " && (m = E[0]), E[1] !== " " && (_ = E[1]), E[2] !== " " && !isNaN(Number(E[2])) && (N = Number(E[2])));
4716
+ let [A, O] = String(Math.floor(b * 10 ** N) / 10 ** N).split(".");
4717
+ l += A[0];
4718
+ for (let L = 1; L < A.length; ++L)
4719
+ (A.length - L) % 3 === 0 ? l += m + A[L] : l += A[L];
4720
+ O && (l += _ + O);
4717
4721
  }
4718
- f && u.push(f), f = "";
4722
+ l && a.push(l), l = "";
4719
4723
  break;
4720
4724
  }
4721
- return u.push(f), u.join("");
4722
- }, _e = async () => {
4723
- n(1, O = !0);
4724
- const o = new URL(`${l}/v1/player/${i}/account`);
4725
+ return a.push(l), a.join("");
4726
+ }, ue = async () => {
4727
+ n(1, I = !0);
4728
+ const b = new URL(`${u}/v1/player/${i}/account`);
4725
4729
  try {
4726
- const u = await fetch(o, {
4730
+ const a = await fetch(b, {
4727
4731
  method: "GET",
4728
- headers: { "X-SessionID": a }
4729
- }), f = await u.json();
4730
- if (u.ok)
4731
- ae = f.items, re = ae.find((c) => c.displayName === "Casino")?.currency, n(3, E.Total = [{ amount: f.totalAmount[re] }], E), n(
4732
+ headers: { "X-SessionID": o }
4733
+ }), l = await a.json();
4734
+ if (a.ok)
4735
+ ee = l.items, de = ee.find((f) => f.displayName === "Casino")?.currency, n(3, v.Total = [{ amount: l.totalAmount[de] }], v), n(
4732
4736
  3,
4733
- E.Real = [
4737
+ v.Real = [
4734
4738
  {
4735
- amount: ae.find((c) => c.displayName === "Casino")?.balanceAmount
4739
+ amount: ee.find((f) => f.displayName === "Casino")?.balanceAmount
4736
4740
  }
4737
4741
  ],
4738
- E
4742
+ v
4739
4743
  ), n(
4740
4744
  3,
4741
- E.Bonus = [
4745
+ v.Bonus = [
4742
4746
  {
4743
- amount: ae.find((c) => c.displayName === "UBS")?.balanceAmount
4747
+ amount: ee.find((f) => f.displayName === "UBS")?.balanceAmount
4744
4748
  }
4745
4749
  ],
4746
- E
4750
+ v
4747
4751
  );
4748
4752
  else
4749
4753
  throw new Error("Failed to fetch balance data !");
4750
- } catch (u) {
4751
- console.log("Balance error: ", u);
4754
+ } catch (a) {
4755
+ console.log("Balance error: ", a);
4752
4756
  } finally {
4753
- n(1, O = !1);
4757
+ n(1, I = !1);
4754
4758
  }
4755
- }, Be = () => {
4756
- n(1, O = !0);
4757
- const o = new URL(`${l}/v2/player/${i}/balance`), u = new Headers();
4758
- u.append("X-SessionID", a), fetch(o, { method: "GET", headers: u }).then((c) => c.json()).then((c) => {
4759
- c[T] || n(7, T = de[0]);
4760
- const v = c.items.find((y) => y.type === "Real" && y.walletAccountType === "Ordinary");
4761
- if (re = v.currency, xe = !!v.productType, n(3, E.Total = [{ amount: 0 }], E), n(3, E.Real = [], E), n(3, E.Bonus = [], E), n(3, E.Credit = [], E), !xe) {
4762
- ie = {
4759
+ }, Te = () => {
4760
+ n(1, I = !0);
4761
+ const b = new URL(`${u}/v2/player/${i}/balance`), a = new Headers();
4762
+ a.append("X-SessionID", o), fetch(b, { method: "GET", headers: a }).then((f) => f.json()).then((f) => {
4763
+ f[T] || n(7, T = _e[0]);
4764
+ const p = f.items.find((m) => m.type === "Real" && m.walletAccountType === "Ordinary");
4765
+ if (de = p.currency, K = !!p.productType, n(3, v.Total = [{ amount: 0 }], v), n(3, v.Real = [], v), n(3, v.Bonus = [], v), n(3, v.Credit = [], v), !K) {
4766
+ xe = {
4763
4767
  lastOrdinaryAfterAmount: 0,
4764
4768
  showCreditLineAfterAmount: !1
4765
- }, n(3, E.Total[0].amount = c[T][re], E);
4766
- for (const y of c.items)
4767
- switch (y.type) {
4769
+ }, n(3, v.Total[0].amount = f[T][de], v);
4770
+ for (const m of f.items)
4771
+ switch (m.type) {
4768
4772
  case "Bonus":
4769
- E.Bonus.length === 0 ? E.Bonus.push({ amount: y.amount }) : n(3, E.Bonus[0].amount += y.amount, E);
4773
+ v.Bonus.length === 0 ? v.Bonus.push({ amount: m.amount }) : n(3, v.Bonus[0].amount += m.amount, v);
4770
4774
  break;
4771
4775
  case "Real":
4772
- if (y.creditLine && E.Credit.length === 0 && E.Credit.push({ amount: y.creditLine }), T === "totalRealAmount")
4776
+ if (m.creditLine && v.Credit.length === 0 && v.Credit.push({ amount: m.creditLine }), T === "totalRealAmount")
4773
4777
  continue;
4774
- E.Real.length === 0 ? E.Real.push({ amount: y.amount }) : n(3, E.Real[0].amount += y.amount, E);
4778
+ v.Real.length === 0 ? v.Real.push({ amount: m.amount }) : n(3, v.Real[0].amount += m.amount, v);
4775
4779
  break;
4776
4780
  }
4777
- for (const [y, A] of Object.entries(E))
4778
- A.length < 1 && delete E[y];
4779
- n(1, O = !1);
4781
+ for (const [m, _] of Object.entries(v))
4782
+ _.length < 1 && delete v[m];
4783
+ n(1, I = !1);
4780
4784
  return;
4781
4785
  }
4782
- ie = {
4786
+ xe = {
4783
4787
  Casino: {
4784
4788
  lastOrdinaryAfterAmount: 0,
4785
4789
  showCreditLineAfterAmount: !1
@@ -4789,195 +4793,195 @@ function _o(e, t, n) {
4789
4793
  showCreditLineAfterAmount: !1
4790
4794
  }
4791
4795
  };
4792
- let b = c.items;
4793
- x && x !== "All" && (b = c.items.filter((y) => y.productType === x));
4794
- for (const y of b) {
4795
- let A;
4796
- switch (y.type) {
4796
+ let E = f.items;
4797
+ x && x !== "All" && (E = f.items.filter((m) => m.productType === x));
4798
+ for (const m of E) {
4799
+ let _;
4800
+ switch (m.type) {
4797
4801
  case "Bonus":
4798
- A = E.Bonus.findIndex((w) => w.productType === y.productType), A > 0 ? n(3, E.Bonus[A].amount += y.amount, E) : E.Bonus.push({
4799
- amount: y.amount,
4800
- productType: y.productType
4802
+ _ = v.Bonus.findIndex((N) => N.productType === m.productType), _ > 0 ? n(3, v.Bonus[_].amount += m.amount, v) : v.Bonus.push({
4803
+ amount: m.amount,
4804
+ productType: m.productType
4801
4805
  });
4802
4806
  break;
4803
4807
  case "Real":
4804
- y.creditLine && E.Credit.push({
4805
- amount: y.creditLine,
4806
- productType: y.productType
4807
- }), A = E.Real.findIndex((w) => w.productType === y.productType), A > 0 ? n(3, E.Real[A].amount += y.amount, E) : E.Real.push({
4808
- amount: y.amount,
4809
- productType: y.productType
4808
+ m.creditLine && v.Credit.push({
4809
+ amount: m.creditLine,
4810
+ productType: m.productType
4811
+ }), _ = v.Real.findIndex((N) => N.productType === m.productType), _ > 0 ? n(3, v.Real[_].amount += m.amount, v) : v.Real.push({
4812
+ amount: m.amount,
4813
+ productType: m.productType
4810
4814
  });
4811
4815
  break;
4812
4816
  }
4813
4817
  }
4814
- rt();
4815
- for (const [y, A] of Object.entries(E))
4816
- A.length < 1 && delete E[y];
4817
- n(1, O = !1);
4818
+ Ze();
4819
+ for (const [m, _] of Object.entries(v))
4820
+ _.length < 1 && delete v[m];
4821
+ n(1, I = !1);
4818
4822
  }).catch(() => {
4819
- throw n(1, O = !1), new Error("Failed to fetch balance data !");
4823
+ throw n(1, I = !1), new Error("Failed to fetch balance data !");
4820
4824
  });
4821
- }, Se = () => {
4822
- if (fe && fe.close(), a.length < 1)
4825
+ }, pe = () => {
4826
+ if (fe && fe.close(), o.length < 1)
4823
4827
  return;
4824
- let o, u;
4825
- switch (g) {
4828
+ let b, a;
4829
+ switch (y) {
4826
4830
  case "gm16":
4827
- o = new URL(`${l}/v2/player/${i}/information/updates`), u = (v) => xt(v);
4831
+ b = new URL(`${u}/v2/player/${i}/information/updates`), a = (p) => _t(p);
4828
4832
  break;
4829
4833
  case "gmcore":
4830
- o = new URL(`${l}/v1/player/${i}/balance/updates`), u = (v) => Xe(v);
4834
+ b = new URL(`${u}/v1/player/${i}/balance/updates`), a = (p) => le(p);
4831
4835
  break;
4832
4836
  }
4833
- const f = {
4837
+ const l = {
4834
4838
  accept: "text/event-stream",
4835
- "X-SessionId": a
4836
- }, c = new bo.EventSourcePolyfill(o, { headers: f });
4837
- fe = c, c.addEventListener("message", u);
4838
- }, se = (o) => {
4839
- let u;
4839
+ "X-SessionId": o
4840
+ }, f = new yo.EventSourcePolyfill(b, { headers: l });
4841
+ fe = f, f.addEventListener("message", a);
4842
+ }, Oe = (b) => {
4843
+ let a;
4840
4844
  try {
4841
- u = JSON.parse(o);
4842
- } catch (f) {
4843
- console.log("Balance stream failed: ", f);
4845
+ a = JSON.parse(b);
4846
+ } catch (l) {
4847
+ console.log("Balance stream failed: ", l);
4844
4848
  return;
4845
4849
  }
4846
- return u;
4847
- }, Xe = (o) => {
4848
- const u = se(o.data);
4849
- if (!u) {
4850
- Se();
4850
+ return a;
4851
+ }, le = (b) => {
4852
+ const a = Oe(b.data);
4853
+ if (!a) {
4854
+ pe();
4851
4855
  return;
4852
4856
  }
4853
- let f = "0";
4854
- const c = u.balanceChange;
4855
- ae = ae.map((v) => (c && c[v.id] && (v = {
4856
- ...v,
4857
- balanceAmount: c[v.id].afterAmount
4858
- }), f = (parseFloat(v?.balanceAmount) + parseFloat(f)).toString(), v)), n(3, E.Real = [{ amount: ae[0]?.balanceAmount }], E), n(3, E.Bonus = [{ amount: ae[1]?.balanceAmount }], E), n(3, E.Total = [{ amount: Number(f) }], E);
4859
- }, He = (o, u, f) => {
4860
- let c = null;
4861
- switch (f.walletAccountType) {
4857
+ let l = "0";
4858
+ const f = a.balanceChange;
4859
+ ee = ee.map((p) => (f && f[p.id] && (p = {
4860
+ ...p,
4861
+ balanceAmount: f[p.id].afterAmount
4862
+ }), l = (parseFloat(p?.balanceAmount) + parseFloat(l)).toString(), p)), n(3, v.Real = [{ amount: ee[0]?.balanceAmount }], v), n(3, v.Bonus = [{ amount: ee[1]?.balanceAmount }], v), n(3, v.Total = [{ amount: Number(l) }], v);
4863
+ }, we = (b, a, l) => {
4864
+ let f = null;
4865
+ switch (l.walletAccountType) {
4862
4866
  case "Ordinary":
4863
- (f.afterAmount !== f.affectedAmount || u.lastOrdinaryAfterAmount === 0) && (u.lastOrdinaryAfterAmount = f.afterAmount, u.showCreditLineAfterAmount || (c = f.afterAmount));
4867
+ (l.afterAmount !== l.affectedAmount || a.lastOrdinaryAfterAmount === 0) && (a.lastOrdinaryAfterAmount = l.afterAmount, a.showCreditLineAfterAmount || (f = l.afterAmount));
4864
4868
  break;
4865
4869
  case "CreditLine":
4866
- f.afterAmount !== 0 ? (c = f.afterAmount, u.showCreditLineAfterAmount = !0) : (c = u.lastOrdinaryAfterAmount, u.showCreditLineAfterAmount = !1);
4870
+ l.afterAmount !== 0 ? (f = l.afterAmount, a.showCreditLineAfterAmount = !0) : (f = a.lastOrdinaryAfterAmount, a.showCreditLineAfterAmount = !1);
4867
4871
  break;
4868
4872
  default:
4869
- c = f.afterAmount;
4873
+ f = l.afterAmount;
4870
4874
  }
4871
- return c === null ? o : c;
4872
- }, rt = () => {
4875
+ return f === null ? b : f;
4876
+ }, Ze = () => {
4873
4877
  switch (T) {
4874
4878
  case "totalCashAmount":
4875
- let o = 0;
4876
- for (const f of ["Real", "Bonus"])
4877
- for (const c of E[f])
4878
- o += Math.max(c.amount, 0);
4879
- n(3, E.Total[0].amount = o, E);
4879
+ let b = 0;
4880
+ for (const l of ["Real", "Bonus"])
4881
+ for (const f of v[l])
4882
+ b += Math.max(f.amount, 0);
4883
+ n(3, v.Total[0].amount = b, v);
4880
4884
  break;
4881
4885
  case "totalRealAmount":
4882
- if (!xe)
4886
+ if (!K)
4883
4887
  return;
4884
- let u = 0;
4885
- for (const f of E.Real)
4886
- u += f.amount;
4887
- n(3, E.Total[0].amount = u, E);
4888
+ let a = 0;
4889
+ for (const l of v.Real)
4890
+ a += l.amount;
4891
+ n(3, v.Total[0].amount = a, v);
4888
4892
  }
4889
- }, xt = (o) => {
4890
- const u = se(o.data);
4891
- if (!u) {
4892
- Se();
4893
+ }, _t = (b) => {
4894
+ const a = Oe(b.data);
4895
+ if (!a) {
4896
+ pe();
4893
4897
  return;
4894
4898
  }
4895
- if (_t(u?.type) || u.type !== "BALANCE_UPDATE_V2")
4899
+ if (Tt(a?.type) || a.type !== "BALANCE_UPDATE_V2")
4896
4900
  return;
4897
- const f = u.body.balanceChange;
4898
- for (const [c, v] of Object.entries(f))
4899
- if (T === "totalRealAmount" && c === "Real" && !xe && n(3, E.Total[0].amount = He(E.Total[0].amount, ie, v), E), !!E[c])
4900
- for (const b of E[c]) {
4901
- if (!xe) {
4902
- b.amount = c === "Real" ? He(b.amount, ie, v) : v.afterAmount;
4901
+ const l = a.body.balanceChange;
4902
+ for (const [f, p] of Object.entries(l))
4903
+ if (T === "totalRealAmount" && f === "Real" && !K && n(3, v.Total[0].amount = we(v.Total[0].amount, xe, p), v), !!v[f])
4904
+ for (const E of v[f]) {
4905
+ if (!K) {
4906
+ E.amount = f === "Real" ? we(E.amount, xe, p) : p.afterAmount;
4903
4907
  continue;
4904
4908
  }
4905
- v.productType === b.productType && (b.amount = c === "Real" ? He(b.amount, ie[b.productType], v) : v.afterAmount);
4909
+ p.productType === E.productType && (E.amount = f === "Real" ? we(E.amount, xe[E.productType], p) : p.afterAmount);
4906
4910
  }
4907
- rt();
4908
- }, it = () => {
4909
- n(2, Y = !1), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
4910
- }, _t = (o) => o === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, ze = () => {
4911
- de.includes(T) || (console.error(`Unsupported value ('${T}') for totalcalculationmode parameter. Only the following values are supported ${de}. Using default value ('${de[0]}').`), n(7, T = de[0]));
4912
- }, We = () => {
4913
- switch (go(s), ze(), g) {
4911
+ Ze();
4912
+ }, ot = () => {
4913
+ n(2, R = !1), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
4914
+ }, Tt = (b) => b === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, Bt = () => {
4915
+ _e.includes(T) || (console.error(`Unsupported value ('${T}') for totalcalculationmode parameter. Only the following values are supported ${_e}. Using default value ('${_e[0]}').`), n(7, T = _e[0]));
4916
+ }, qe = () => {
4917
+ switch (bo(s), Bt(), y) {
4914
4918
  case "gmcore":
4915
- _e();
4919
+ ue();
4916
4920
  break;
4917
4921
  case "gm16":
4918
- Be();
4922
+ Te();
4919
4923
  break;
4920
4924
  default:
4921
- throw Error(`Invalid apiversion attribute: ${g}`);
4925
+ throw Error(`Invalid apiversion attribute: ${y}`);
4922
4926
  }
4923
- }, pe = (o) => o.data && o.data.type === "LogoutSuccessfull" && fe.close();
4924
- hr(() => (window.addEventListener("message", pe, !1), () => {
4925
- window.emMessageBus && G && G.unsubscribe(), window.removeEventListener("message", pe), fe && fe.close();
4927
+ }, Le = (b) => b.data && b.data.type === "LogoutSuccessfull" && fe.close();
4928
+ hr(() => (window.addEventListener("message", Le, !1), () => {
4929
+ window.removeEventListener("message", Le), fe && fe.close();
4926
4930
  }));
4927
- const K = () => n(2, Y = !0), Tt = () => n(2, Y = !1), Bt = () => it(), St = () => n(2, Y = !1);
4928
- function ot(o) {
4929
- Pt[o ? "unshift" : "push"](() => {
4930
- S = o, n(0, S);
4931
+ const Be = () => n(2, R = !0), te = () => n(2, R = !1), St = () => ot(), wt = () => n(2, R = !1);
4932
+ function At(b) {
4933
+ Dt[b ? "unshift" : "push"](() => {
4934
+ w = b, n(0, w);
4931
4935
  });
4932
4936
  }
4933
- return e.$$set = (o) => {
4934
- "userid" in o && n(8, i = o.userid), "session" in o && n(9, a = o.session), "endpoint" in o && n(10, l = o.endpoint), "lang" in o && n(11, s = o.lang), "mbsource" in o && n(12, p = o.mbsource), "clientstyling" in o && n(13, h = o.clientstyling), "clientstylingurl" in o && n(14, d = o.clientstylingurl), "translationurl" in o && n(15, m = o.translationurl), "gmversion" in o && n(16, g = o.gmversion), "displaybalanceoption" in o && n(17, x = o.displaybalanceoption), "totalcalculationmode" in o && n(7, T = o.totalcalculationmode), "currencylocale" in o && n(18, P = o.currencylocale), "currencydisplay" in o && n(19, $ = o.currencydisplay), "maximumfractiondigits" in o && n(20, X = o.maximumfractiondigits), "minimumfractiondigits" in o && n(21, F = o.minimumfractiondigits), "customdisplayformat" in o && n(22, B = o.customdisplayformat);
4937
+ return e.$$set = (b) => {
4938
+ "userid" in b && n(8, i = b.userid), "session" in b && n(9, o = b.session), "endpoint" in b && n(10, u = b.endpoint), "lang" in b && n(11, s = b.lang), "mbsource" in b && n(12, d = b.mbsource), "clientstyling" in b && n(13, h = b.clientstyling), "clientstylingurl" in b && n(14, c = b.clientstylingurl), "translationurl" in b && n(15, g = b.translationurl), "gmversion" in b && n(16, y = b.gmversion), "displaybalanceoption" in b && n(17, x = b.displaybalanceoption), "totalcalculationmode" in b && n(7, T = b.totalcalculationmode), "currencylocale" in b && n(18, P = b.currencylocale), "currencydisplay" in b && n(19, j = b.currencydisplay), "maximumfractiondigits" in b && n(20, z = b.maximumfractiondigits), "minimumfractiondigits" in b && n(21, G = b.minimumfractiondigits), "customdisplayformat" in b && n(22, B = b.customdisplayformat);
4935
4939
  }, e.$$.update = () => {
4936
4940
  e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
4937
- 200448 && l && i && a && s && g && x && We(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
4938
- 67328 && l && i && a && g && Se(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4939
- 8193 && h && S && Br(S, h), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4940
- 16385 && d && S && Sr(S, d), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
4941
- 4097 && S && wr(S, `${p}.Style`), e.$$.dirty[0] & /*translationurl*/
4942
- 32768 && m && nt();
4941
+ 200448 && u && i && o && s && y && x && qe(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
4942
+ 67328 && u && i && o && y && pe(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4943
+ 8193 && h && w && Br(w, h), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4944
+ 16385 && c && w && Sr(w, c), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
4945
+ 4097 && w && wr(w, `${d}.Style`), e.$$.dirty[0] & /*translationurl*/
4946
+ 32768 && g && ze();
4943
4947
  }, [
4944
- S,
4945
- O,
4946
- Y,
4947
- E,
4948
+ w,
4949
+ I,
4950
+ R,
4951
+ v,
4948
4952
  r,
4949
- Ve,
4950
4953
  it,
4954
+ ot,
4951
4955
  T,
4952
4956
  i,
4953
- a,
4954
- l,
4957
+ o,
4958
+ u,
4955
4959
  s,
4956
- p,
4957
- h,
4958
4960
  d,
4959
- m,
4961
+ h,
4962
+ c,
4960
4963
  g,
4964
+ y,
4961
4965
  x,
4962
4966
  P,
4963
- $,
4964
- X,
4965
- F,
4967
+ j,
4968
+ z,
4969
+ G,
4966
4970
  B,
4967
- K,
4968
- Tt,
4969
- Bt,
4971
+ Be,
4972
+ te,
4970
4973
  St,
4971
- ot
4974
+ wt,
4975
+ At
4972
4976
  ];
4973
4977
  }
4974
- class To extends _r {
4978
+ class Bo extends _r {
4975
4979
  constructor(t) {
4976
4980
  super(), Er(
4977
4981
  this,
4978
4982
  t,
4983
+ To,
4979
4984
  _o,
4980
- xo,
4981
4985
  Sn,
4982
4986
  {
4983
4987
  userid: 8,
@@ -4997,7 +5001,7 @@ class To extends _r {
4997
5001
  minimumfractiondigits: 21,
4998
5002
  customdisplayformat: 22
4999
5003
  },
5000
- yo,
5004
+ vo,
5001
5005
  [-1, -1]
5002
5006
  );
5003
5007
  }
@@ -5005,100 +5009,100 @@ class To extends _r {
5005
5009
  return this.$$.ctx[8];
5006
5010
  }
5007
5011
  set userid(t) {
5008
- this.$$set({ userid: t }), V();
5012
+ this.$$set({ userid: t }), X();
5009
5013
  }
5010
5014
  get session() {
5011
5015
  return this.$$.ctx[9];
5012
5016
  }
5013
5017
  set session(t) {
5014
- this.$$set({ session: t }), V();
5018
+ this.$$set({ session: t }), X();
5015
5019
  }
5016
5020
  get endpoint() {
5017
5021
  return this.$$.ctx[10];
5018
5022
  }
5019
5023
  set endpoint(t) {
5020
- this.$$set({ endpoint: t }), V();
5024
+ this.$$set({ endpoint: t }), X();
5021
5025
  }
5022
5026
  get lang() {
5023
5027
  return this.$$.ctx[11];
5024
5028
  }
5025
5029
  set lang(t) {
5026
- this.$$set({ lang: t }), V();
5030
+ this.$$set({ lang: t }), X();
5027
5031
  }
5028
5032
  get mbsource() {
5029
5033
  return this.$$.ctx[12];
5030
5034
  }
5031
5035
  set mbsource(t) {
5032
- this.$$set({ mbsource: t }), V();
5036
+ this.$$set({ mbsource: t }), X();
5033
5037
  }
5034
5038
  get clientstyling() {
5035
5039
  return this.$$.ctx[13];
5036
5040
  }
5037
5041
  set clientstyling(t) {
5038
- this.$$set({ clientstyling: t }), V();
5042
+ this.$$set({ clientstyling: t }), X();
5039
5043
  }
5040
5044
  get clientstylingurl() {
5041
5045
  return this.$$.ctx[14];
5042
5046
  }
5043
5047
  set clientstylingurl(t) {
5044
- this.$$set({ clientstylingurl: t }), V();
5048
+ this.$$set({ clientstylingurl: t }), X();
5045
5049
  }
5046
5050
  get translationurl() {
5047
5051
  return this.$$.ctx[15];
5048
5052
  }
5049
5053
  set translationurl(t) {
5050
- this.$$set({ translationurl: t }), V();
5054
+ this.$$set({ translationurl: t }), X();
5051
5055
  }
5052
5056
  get gmversion() {
5053
5057
  return this.$$.ctx[16];
5054
5058
  }
5055
5059
  set gmversion(t) {
5056
- this.$$set({ gmversion: t }), V();
5060
+ this.$$set({ gmversion: t }), X();
5057
5061
  }
5058
5062
  get displaybalanceoption() {
5059
5063
  return this.$$.ctx[17];
5060
5064
  }
5061
5065
  set displaybalanceoption(t) {
5062
- this.$$set({ displaybalanceoption: t }), V();
5066
+ this.$$set({ displaybalanceoption: t }), X();
5063
5067
  }
5064
5068
  get totalcalculationmode() {
5065
5069
  return this.$$.ctx[7];
5066
5070
  }
5067
5071
  set totalcalculationmode(t) {
5068
- this.$$set({ totalcalculationmode: t }), V();
5072
+ this.$$set({ totalcalculationmode: t }), X();
5069
5073
  }
5070
5074
  get currencylocale() {
5071
5075
  return this.$$.ctx[18];
5072
5076
  }
5073
5077
  set currencylocale(t) {
5074
- this.$$set({ currencylocale: t }), V();
5078
+ this.$$set({ currencylocale: t }), X();
5075
5079
  }
5076
5080
  get currencydisplay() {
5077
5081
  return this.$$.ctx[19];
5078
5082
  }
5079
5083
  set currencydisplay(t) {
5080
- this.$$set({ currencydisplay: t }), V();
5084
+ this.$$set({ currencydisplay: t }), X();
5081
5085
  }
5082
5086
  get maximumfractiondigits() {
5083
5087
  return this.$$.ctx[20];
5084
5088
  }
5085
5089
  set maximumfractiondigits(t) {
5086
- this.$$set({ maximumfractiondigits: t }), V();
5090
+ this.$$set({ maximumfractiondigits: t }), X();
5087
5091
  }
5088
5092
  get minimumfractiondigits() {
5089
5093
  return this.$$.ctx[21];
5090
5094
  }
5091
5095
  set minimumfractiondigits(t) {
5092
- this.$$set({ minimumfractiondigits: t }), V();
5096
+ this.$$set({ minimumfractiondigits: t }), X();
5093
5097
  }
5094
5098
  get customdisplayformat() {
5095
5099
  return this.$$.ctx[22];
5096
5100
  }
5097
5101
  set customdisplayformat(t) {
5098
- this.$$set({ customdisplayformat: t }), V();
5102
+ this.$$set({ customdisplayformat: t }), X();
5099
5103
  }
5100
5104
  }
5101
- xr(To, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencylocale: {}, currencydisplay: {}, maximumfractiondigits: {}, minimumfractiondigits: {}, customdisplayformat: {} }, [], [], !0);
5105
+ xr(Bo, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencylocale: {}, currencydisplay: {}, maximumfractiondigits: {}, minimumfractiondigits: {}, customdisplayformat: {} }, [], [], !0);
5102
5106
  export {
5103
- To as P
5107
+ Bo as P
5104
5108
  };