@everymatrix/player-account-balance-modal 1.53.0 → 1.53.10

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