@everymatrix/player-transaction-history 1.55.0 → 1.56.2

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,51 +1,52 @@
1
- function A() {
1
+ function w() {
2
2
  }
3
- function wt(e) {
3
+ function St(e) {
4
4
  return e();
5
5
  }
6
- function tt() {
6
+ function et() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
- function oe(e) {
10
- e.forEach(wt);
9
+ function se(e) {
10
+ e.forEach(St);
11
11
  }
12
12
  function Ze(e) {
13
13
  return typeof e == "function";
14
14
  }
15
- function Bt(e, t) {
15
+ function wt(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
18
  let he;
19
- function rt(e, t) {
19
+ function tt(e, t) {
20
20
  return e === t ? !0 : (he || (he = document.createElement("a")), he.href = t, e === he.href);
21
21
  }
22
- function ar(e) {
22
+ function sr(e) {
23
23
  return Object.keys(e).length === 0;
24
24
  }
25
- function At(e, ...t) {
25
+ function Bt(e, ...t) {
26
26
  if (e == null) {
27
27
  for (const n of t)
28
28
  n(void 0);
29
- return A;
29
+ return w;
30
30
  }
31
31
  const r = e.subscribe(...t);
32
32
  return r.unsubscribe ? () => r.unsubscribe() : r;
33
33
  }
34
- function ur(e, t, r) {
35
- e.$$.on_destroy.push(At(t, r));
34
+ function ar(e, t, r) {
35
+ e.$$.on_destroy.push(Bt(t, r));
36
36
  }
37
37
  function x(e, t) {
38
38
  e.appendChild(t);
39
39
  }
40
- function hr(e, t, r) {
41
- const n = lr(e);
40
+ function ur(e, t, r) {
41
+ const n = hr(e);
42
42
  if (!n.getElementById(t)) {
43
- const i = N("style");
44
- i.id = t, i.textContent = r, cr(n, i);
43
+ const i = I("style");
44
+ i.id = t, i.textContent = r, lr(n, i);
45
45
  }
46
46
  }
47
- function lr(e) {
48
- if (!e) return document;
47
+ function hr(e) {
48
+ if (!e)
49
+ return document;
49
50
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
50
51
  return t && /** @type {ShadowRoot} */
51
52
  t.host ? (
@@ -53,20 +54,20 @@ function lr(e) {
53
54
  t
54
55
  ) : e.ownerDocument;
55
56
  }
56
- function cr(e, t) {
57
+ function lr(e, t) {
57
58
  return x(
58
59
  /** @type {Document} */
59
60
  e.head || e,
60
61
  t
61
62
  ), t.sheet;
62
63
  }
63
- function se(e, t, r) {
64
+ function ae(e, t, r) {
64
65
  e.insertBefore(t, r || null);
65
66
  }
66
67
  function Q(e) {
67
68
  e.parentNode && e.parentNode.removeChild(e);
68
69
  }
69
- function N(e) {
70
+ function I(e) {
70
71
  return document.createElement(e);
71
72
  }
72
73
  function G(e) {
@@ -78,20 +79,20 @@ function re(e) {
78
79
  function Ie() {
79
80
  return re(" ");
80
81
  }
81
- function fr(e, t, r, n) {
82
+ function cr(e, t, r, n) {
82
83
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
83
84
  }
84
85
  function E(e, t, r) {
85
86
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
86
87
  }
87
- function pr(e) {
88
+ function fr(e) {
88
89
  return Array.from(e.childNodes);
89
90
  }
90
91
  function qe(e, t) {
91
92
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
92
93
  t);
93
94
  }
94
- function dr(e) {
95
+ function pr(e) {
95
96
  const t = {};
96
97
  return e.childNodes.forEach(
97
98
  /** @param {Element} node */
@@ -100,86 +101,95 @@ function dr(e) {
100
101
  }
101
102
  ), t;
102
103
  }
103
- let Qe;
104
+ let ne;
104
105
  function te(e) {
105
- Qe = e;
106
+ ne = e;
107
+ }
108
+ function mr() {
109
+ if (!ne)
110
+ throw new Error("Function called outside component initialization");
111
+ return ne;
112
+ }
113
+ function dr(e) {
114
+ mr().$$.on_mount.push(e);
106
115
  }
107
116
  const k = [], Ne = [];
108
117
  let V = [];
109
- const nt = [], mr = /* @__PURE__ */ Promise.resolve();
118
+ const rt = [], br = /* @__PURE__ */ Promise.resolve();
110
119
  let Le = !1;
111
- function br() {
112
- Le || (Le = !0, mr.then(O));
120
+ function yr() {
121
+ Le || (Le = !0, br.then(B));
113
122
  }
114
123
  function Ce(e) {
115
124
  V.push(e);
116
125
  }
117
126
  const Te = /* @__PURE__ */ new Set();
118
127
  let F = 0;
119
- function O() {
128
+ function B() {
120
129
  if (F !== 0)
121
130
  return;
122
- const e = Qe;
131
+ const e = ne;
123
132
  do {
124
133
  try {
125
134
  for (; F < k.length; ) {
126
135
  const t = k[F];
127
- F++, te(t), yr(t.$$);
136
+ F++, te(t), gr(t.$$);
128
137
  }
129
138
  } catch (t) {
130
139
  throw k.length = 0, F = 0, t;
131
140
  }
132
- for (te(null), k.length = 0, F = 0; Ne.length; ) Ne.pop()();
141
+ for (te(null), k.length = 0, F = 0; Ne.length; )
142
+ Ne.pop()();
133
143
  for (let t = 0; t < V.length; t += 1) {
134
144
  const r = V[t];
135
145
  Te.has(r) || (Te.add(r), r());
136
146
  }
137
147
  V.length = 0;
138
148
  } while (k.length);
139
- for (; nt.length; )
140
- nt.pop()();
149
+ for (; rt.length; )
150
+ rt.pop()();
141
151
  Le = !1, Te.clear(), te(e);
142
152
  }
143
- function yr(e) {
153
+ function gr(e) {
144
154
  if (e.fragment !== null) {
145
- e.update(), oe(e.before_update);
155
+ e.update(), se(e.before_update);
146
156
  const t = e.dirty;
147
157
  e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ce);
148
158
  }
149
159
  }
150
- function gr(e) {
160
+ function vr(e) {
151
161
  const t = [], r = [];
152
162
  V.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), V = t;
153
163
  }
154
- const vr = /* @__PURE__ */ new Set();
155
- function _r(e, t) {
156
- e && e.i && (vr.delete(e), e.i(t));
164
+ const _r = /* @__PURE__ */ new Set();
165
+ function Er(e, t) {
166
+ e && e.i && (_r.delete(e), e.i(t));
157
167
  }
158
- function Er(e, t, r) {
168
+ function xr(e, t, r) {
159
169
  const { fragment: n, after_update: i } = e.$$;
160
170
  n && n.m(t, r), Ce(() => {
161
- const o = e.$$.on_mount.map(wt).filter(Ze);
162
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : oe(o), e.$$.on_mount = [];
171
+ const o = e.$$.on_mount.map(St).filter(Ze);
172
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : se(o), e.$$.on_mount = [];
163
173
  }), i.forEach(Ce);
164
174
  }
165
- function xr(e, t) {
175
+ function Tr(e, t) {
166
176
  const r = e.$$;
167
- r.fragment !== null && (gr(r.after_update), oe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
177
+ r.fragment !== null && (vr(r.after_update), se(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
168
178
  }
169
- function Tr(e, t) {
170
- e.$$.dirty[0] === -1 && (k.push(e), br(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
179
+ function Hr(e, t) {
180
+ e.$$.dirty[0] === -1 && (k.push(e), yr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
171
181
  }
172
- function Hr(e, t, r, n, i, o, a = null, s = [-1]) {
173
- const l = Qe;
182
+ function Sr(e, t, r, n, i, o, a = null, s = [-1]) {
183
+ const l = ne;
174
184
  te(e);
175
185
  const u = e.$$ = {
176
186
  fragment: null,
177
187
  ctx: [],
178
188
  // state
179
189
  props: o,
180
- update: A,
190
+ update: w,
181
191
  not_equal: i,
182
- bound: tt(),
192
+ bound: et(),
183
193
  // lifecycle
184
194
  on_mount: [],
185
195
  on_destroy: [],
@@ -188,7 +198,7 @@ function Hr(e, t, r, n, i, o, a = null, s = [-1]) {
188
198
  after_update: [],
189
199
  context: new Map(t.context || (l ? l.$$.context : [])),
190
200
  // everything else
191
- callbacks: tt(),
201
+ callbacks: et(),
192
202
  dirty: s,
193
203
  skip_bound: !1,
194
204
  root: t.target || l.$$.root
@@ -197,19 +207,19 @@ function Hr(e, t, r, n, i, o, a = null, s = [-1]) {
197
207
  let h = !1;
198
208
  if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
199
209
  const v = p.length ? p[0] : f;
200
- return u.ctx && i(u.ctx[c], u.ctx[c] = v) && (!u.skip_bound && u.bound[c] && u.bound[c](v), h && Tr(e, c)), f;
201
- }) : [], u.update(), h = !0, oe(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
210
+ return u.ctx && i(u.ctx[c], u.ctx[c] = v) && (!u.skip_bound && u.bound[c] && u.bound[c](v), h && Hr(e, c)), f;
211
+ }) : [], u.update(), h = !0, se(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
202
212
  if (t.hydrate) {
203
- const c = pr(t.target);
213
+ const c = fr(t.target);
204
214
  u.fragment && u.fragment.l(c), c.forEach(Q);
205
215
  } else
206
216
  u.fragment && u.fragment.c();
207
- t.intro && _r(e.$$.fragment), Er(e, t.target, t.anchor), O();
217
+ t.intro && Er(e.$$.fragment), xr(e, t.target, t.anchor), B();
208
218
  }
209
219
  te(l);
210
220
  }
211
- let Pt;
212
- typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
221
+ let At;
222
+ typeof HTMLElement == "function" && (At = class extends HTMLElement {
213
223
  /** The Svelte component constructor */
214
224
  $$ctor;
215
225
  /** Slots */
@@ -251,14 +261,14 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
251
261
  let o;
252
262
  return {
253
263
  c: function() {
254
- o = N("slot"), i !== "default" && E(o, "name", i);
264
+ o = I("slot"), i !== "default" && E(o, "name", i);
255
265
  },
256
266
  /**
257
267
  * @param {HTMLElement} target
258
268
  * @param {HTMLElement} [anchor]
259
269
  */
260
270
  m: function(l, u) {
261
- se(l, o, u);
271
+ ae(l, o, u);
262
272
  },
263
273
  d: function(l) {
264
274
  l && Q(o);
@@ -268,7 +278,7 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
268
278
  };
269
279
  if (await Promise.resolve(), !this.$$cn || this.$$c)
270
280
  return;
271
- const t = {}, r = dr(this);
281
+ const t = {}, r = pr(this);
272
282
  for (const i of this.$$s)
273
283
  i in r && (t[i] = [e(i)]);
274
284
  for (const i of this.attributes) {
@@ -355,8 +365,8 @@ function fe(e, t, r, n) {
355
365
  return t;
356
366
  }
357
367
  }
358
- function Sr(e, t, r, n, i, o) {
359
- let a = class extends Pt {
368
+ function wr(e, t, r, n, i, o) {
369
+ let a = class extends At {
360
370
  constructor() {
361
371
  super(e, r, i), this.$$p_d = t;
362
372
  }
@@ -384,7 +394,7 @@ function Sr(e, t, r, n, i, o) {
384
394
  }), e.element = /** @type {any} */
385
395
  a, a;
386
396
  }
387
- class wr {
397
+ class Br {
388
398
  /**
389
399
  * ### PRIVATE API
390
400
  *
@@ -403,7 +413,7 @@ class wr {
403
413
  $$set = void 0;
404
414
  /** @returns {void} */
405
415
  $destroy() {
406
- xr(this, 1), this.$destroy = A;
416
+ Tr(this, 1), this.$destroy = w;
407
417
  }
408
418
  /**
409
419
  * @template {Extract<keyof Events, string>} K
@@ -413,7 +423,7 @@ class wr {
413
423
  */
414
424
  $on(t, r) {
415
425
  if (!Ze(r))
416
- return A;
426
+ return w;
417
427
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
418
428
  return n.push(r), () => {
419
429
  const i = n.indexOf(r);
@@ -425,19 +435,34 @@ class wr {
425
435
  * @returns {void}
426
436
  */
427
437
  $set(t) {
428
- this.$$set && !ar(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
438
+ this.$$set && !sr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
429
439
  }
430
440
  }
431
- const Br = "4";
432
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Br);
441
+ const Ar = "4";
442
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ar);
443
+ /*! *****************************************************************************
444
+ Copyright (c) Microsoft Corporation.
445
+
446
+ Permission to use, copy, modify, and/or distribute this software for any
447
+ purpose with or without fee is hereby granted.
448
+
449
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
450
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
451
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
452
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
453
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
454
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
455
+ PERFORMANCE OF THIS SOFTWARE.
456
+ ***************************************************************************** */
433
457
  var Me = function(e, t) {
434
458
  return Me = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
435
459
  r.__proto__ = n;
436
460
  } || function(r, n) {
437
- for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
461
+ for (var i in n)
462
+ Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
438
463
  }, Me(e, t);
439
464
  };
440
- function L(e, t) {
465
+ function N(e, t) {
441
466
  if (typeof t != "function" && t !== null)
442
467
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
443
468
  Me(e, t);
@@ -450,14 +475,16 @@ var y = function() {
450
475
  return y = Object.assign || function(t) {
451
476
  for (var r, n = 1, i = arguments.length; n < i; n++) {
452
477
  r = arguments[n];
453
- for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
478
+ for (var o in r)
479
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
454
480
  }
455
481
  return t;
456
482
  }, y.apply(this, arguments);
457
483
  };
458
- function Ar(e, t) {
484
+ function Pr(e, t) {
459
485
  var r = {};
460
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
486
+ for (var n in e)
487
+ Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
461
488
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
462
489
  for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
463
490
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
@@ -465,46 +492,52 @@ function Ar(e, t) {
465
492
  }
466
493
  function $e(e) {
467
494
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
468
- if (r) return r.call(e);
469
- if (e && typeof e.length == "number") return {
470
- next: function() {
471
- return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
472
- }
473
- };
495
+ if (r)
496
+ return r.call(e);
497
+ if (e && typeof e.length == "number")
498
+ return {
499
+ next: function() {
500
+ return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
501
+ }
502
+ };
474
503
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
475
504
  }
476
505
  function Re(e, t) {
477
506
  var r = typeof Symbol == "function" && e[Symbol.iterator];
478
- if (!r) return e;
507
+ if (!r)
508
+ return e;
479
509
  var n = r.call(e), i, o = [], a;
480
510
  try {
481
- for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; ) o.push(i.value);
511
+ for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
512
+ o.push(i.value);
482
513
  } catch (s) {
483
514
  a = { error: s };
484
515
  } finally {
485
516
  try {
486
517
  i && !i.done && (r = n.return) && r.call(n);
487
518
  } finally {
488
- if (a) throw a.error;
519
+ if (a)
520
+ throw a.error;
489
521
  }
490
522
  }
491
523
  return o;
492
524
  }
493
525
  function X(e, t, r) {
494
- if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
495
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
496
- return e.concat(o || Array.prototype.slice.call(t));
526
+ if (r || arguments.length === 2)
527
+ for (var n = 0, i = t.length, o; n < i; n++)
528
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
529
+ return e.concat(o || t);
497
530
  }
498
- function I(e) {
531
+ function O(e) {
499
532
  return typeof e == "function";
500
533
  }
501
- function Ot(e) {
534
+ function Pt(e) {
502
535
  var t = function(n) {
503
536
  Error.call(n), n.stack = new Error().stack;
504
537
  }, r = e(t);
505
538
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
506
539
  }
507
- var He = Ot(function(e) {
540
+ var He = Pt(function(e) {
508
541
  return function(r) {
509
542
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
510
543
  ` + r.map(function(n, i) {
@@ -535,23 +568,24 @@ var ge = function() {
535
568
  var u = l.value;
536
569
  u.remove(this);
537
570
  }
538
- } catch (d) {
539
- t = { error: d };
571
+ } catch (m) {
572
+ t = { error: m };
540
573
  } finally {
541
574
  try {
542
575
  l && !l.done && (r = s.return) && r.call(s);
543
576
  } finally {
544
- if (t) throw t.error;
577
+ if (t)
578
+ throw t.error;
545
579
  }
546
580
  }
547
581
  else
548
582
  a.remove(this);
549
583
  var h = this.initialTeardown;
550
- if (I(h))
584
+ if (O(h))
551
585
  try {
552
586
  h();
553
- } catch (d) {
554
- o = d instanceof He ? d.errors : [d];
587
+ } catch (m) {
588
+ o = m instanceof He ? m.errors : [m];
555
589
  }
556
590
  var c = this._finalizers;
557
591
  if (c) {
@@ -560,18 +594,19 @@ var ge = function() {
560
594
  for (var f = $e(c), p = f.next(); !p.done; p = f.next()) {
561
595
  var v = p.value;
562
596
  try {
563
- it(v);
564
- } catch (d) {
565
- o = o ?? [], d instanceof He ? o = X(X([], Re(o)), Re(d.errors)) : o.push(d);
597
+ nt(v);
598
+ } catch (m) {
599
+ o = o ?? [], m instanceof He ? o = X(X([], Re(o)), Re(m.errors)) : o.push(m);
566
600
  }
567
601
  }
568
- } catch (d) {
569
- n = { error: d };
602
+ } catch (m) {
603
+ n = { error: m };
570
604
  } finally {
571
605
  try {
572
606
  p && !p.done && (i = f.return) && i.call(f);
573
607
  } finally {
574
- if (n) throw n.error;
608
+ if (n)
609
+ throw n.error;
575
610
  }
576
611
  }
577
612
  }
@@ -582,7 +617,7 @@ var ge = function() {
582
617
  var r;
583
618
  if (t && t !== this)
584
619
  if (this.closed)
585
- it(t);
620
+ nt(t);
586
621
  else {
587
622
  if (t instanceof e) {
588
623
  if (t.closed || t._hasParent(this))
@@ -607,20 +642,20 @@ var ge = function() {
607
642
  var t = new e();
608
643
  return t.closed = !0, t;
609
644
  }(), e;
610
- }(), It = ge.EMPTY;
611
- function Nt(e) {
612
- return e instanceof ge || e && "closed" in e && I(e.remove) && I(e.add) && I(e.unsubscribe);
645
+ }(), Ot = ge.EMPTY;
646
+ function It(e) {
647
+ return e instanceof ge || e && "closed" in e && O(e.remove) && O(e.add) && O(e.unsubscribe);
613
648
  }
614
- function it(e) {
615
- I(e) ? e() : e.unsubscribe();
649
+ function nt(e) {
650
+ O(e) ? e() : e.unsubscribe();
616
651
  }
617
- var Lt = {
652
+ var Nt = {
618
653
  onUnhandledError: null,
619
654
  onStoppedNotification: null,
620
655
  Promise: void 0,
621
656
  useDeprecatedSynchronousErrorHandling: !1,
622
657
  useDeprecatedNextContext: !1
623
- }, Pr = {
658
+ }, Or = {
624
659
  setTimeout: function(e, t) {
625
660
  for (var r = [], n = 2; n < arguments.length; n++)
626
661
  r[n - 2] = arguments[n];
@@ -631,21 +666,21 @@ var Lt = {
631
666
  },
632
667
  delegate: void 0
633
668
  };
634
- function Or(e) {
635
- Pr.setTimeout(function() {
669
+ function Ir(e) {
670
+ Or.setTimeout(function() {
636
671
  throw e;
637
672
  });
638
673
  }
639
- function ot() {
674
+ function it() {
640
675
  }
641
676
  function pe(e) {
642
677
  e();
643
678
  }
644
- var Ct = function(e) {
645
- L(t, e);
679
+ var Lt = function(e) {
680
+ N(t, e);
646
681
  function t(r) {
647
682
  var n = e.call(this) || this;
648
- return n.isStopped = !1, r ? (n.destination = r, Nt(r) && r.add(n)) : n.destination = Cr, n;
683
+ return n.isStopped = !1, r ? (n.destination = r, It(r) && r.add(n)) : n.destination = Mr, n;
649
684
  }
650
685
  return t.create = function(r, n, i) {
651
686
  return new De(r, n, i);
@@ -672,11 +707,11 @@ var Ct = function(e) {
672
707
  this.unsubscribe();
673
708
  }
674
709
  }, t;
675
- }(ge), Ir = Function.prototype.bind;
710
+ }(ge), Nr = Function.prototype.bind;
676
711
  function Se(e, t) {
677
- return Ir.call(e, t);
712
+ return Nr.call(e, t);
678
713
  }
679
- var Nr = function() {
714
+ var Lr = function() {
680
715
  function e(t) {
681
716
  this.partialObserver = t;
682
717
  }
@@ -708,10 +743,10 @@ var Nr = function() {
708
743
  }
709
744
  }, e;
710
745
  }(), De = function(e) {
711
- L(t, e);
746
+ N(t, e);
712
747
  function t(r, n, i) {
713
748
  var o = e.call(this) || this, a;
714
- if (I(r) || !r)
749
+ if (O(r) || !r)
715
750
  a = {
716
751
  next: r ?? void 0,
717
752
  error: n ?? void 0,
@@ -719,7 +754,7 @@ var Nr = function() {
719
754
  };
720
755
  else {
721
756
  var s;
722
- o && Lt.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
757
+ o && Nt.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
723
758
  return o.unsubscribe();
724
759
  }, a = {
725
760
  next: r.next && Se(r.next, s),
@@ -727,35 +762,35 @@ var Nr = function() {
727
762
  complete: r.complete && Se(r.complete, s)
728
763
  }) : a = r;
729
764
  }
730
- return o.destination = new Nr(a), o;
765
+ return o.destination = new Lr(a), o;
731
766
  }
732
767
  return t;
733
- }(Ct);
768
+ }(Lt);
734
769
  function le(e) {
735
- Or(e);
770
+ Ir(e);
736
771
  }
737
- function Lr(e) {
772
+ function Cr(e) {
738
773
  throw e;
739
774
  }
740
- var Cr = {
775
+ var Mr = {
741
776
  closed: !0,
742
- next: ot,
743
- error: Lr,
744
- complete: ot
745
- }, Mr = function() {
777
+ next: it,
778
+ error: Cr,
779
+ complete: it
780
+ }, $r = function() {
746
781
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
747
782
  }();
748
- function $r(e) {
783
+ function Rr(e) {
749
784
  return e;
750
785
  }
751
- function Rr(e) {
752
- return e.length === 0 ? $r : e.length === 1 ? e[0] : function(r) {
786
+ function Ur(e) {
787
+ return e.length === 0 ? Rr : e.length === 1 ? e[0] : function(r) {
753
788
  return e.reduce(function(n, i) {
754
789
  return i(n);
755
790
  }, r);
756
791
  };
757
792
  }
758
- var st = function() {
793
+ var ot = function() {
759
794
  function e(t) {
760
795
  t && (this._subscribe = t);
761
796
  }
@@ -763,7 +798,7 @@ var st = function() {
763
798
  var r = new e();
764
799
  return r.source = this, r.operator = t, r;
765
800
  }, e.prototype.subscribe = function(t, r, n) {
766
- var i = this, o = Dr(t) ? t : new De(t, r, n);
801
+ var i = this, o = Gr(t) ? t : new De(t, r, n);
767
802
  return pe(function() {
768
803
  var a = i, s = a.operator, l = a.source;
769
804
  o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
@@ -776,7 +811,7 @@ var st = function() {
776
811
  }
777
812
  }, e.prototype.forEach = function(t, r) {
778
813
  var n = this;
779
- return r = at(r), new r(function(i, o) {
814
+ return r = st(r), new r(function(i, o) {
780
815
  var a = new De({
781
816
  next: function(s) {
782
817
  try {
@@ -793,15 +828,15 @@ var st = function() {
793
828
  }, e.prototype._subscribe = function(t) {
794
829
  var r;
795
830
  return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
796
- }, e.prototype[Mr] = function() {
831
+ }, e.prototype[$r] = function() {
797
832
  return this;
798
833
  }, e.prototype.pipe = function() {
799
834
  for (var t = [], r = 0; r < arguments.length; r++)
800
835
  t[r] = arguments[r];
801
- return Rr(t)(this);
836
+ return Ur(t)(this);
802
837
  }, e.prototype.toPromise = function(t) {
803
838
  var r = this;
804
- return t = at(t), new t(function(n, i) {
839
+ return t = st(t), new t(function(n, i) {
805
840
  var o;
806
841
  r.subscribe(function(a) {
807
842
  return o = a;
@@ -815,32 +850,32 @@ var st = function() {
815
850
  return new e(t);
816
851
  }, e;
817
852
  }();
818
- function at(e) {
853
+ function st(e) {
819
854
  var t;
820
- return (t = e ?? Lt.Promise) !== null && t !== void 0 ? t : Promise;
821
- }
822
- function Ur(e) {
823
- return e && I(e.next) && I(e.error) && I(e.complete);
855
+ return (t = e ?? Nt.Promise) !== null && t !== void 0 ? t : Promise;
824
856
  }
825
857
  function Dr(e) {
826
- return e && e instanceof Ct || Ur(e) && Nt(e);
858
+ return e && O(e.next) && O(e.error) && O(e.complete);
859
+ }
860
+ function Gr(e) {
861
+ return e && e instanceof Lt || Dr(e) && It(e);
827
862
  }
828
- var Gr = Ot(function(e) {
863
+ var Fr = Pt(function(e) {
829
864
  return function() {
830
865
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
831
866
  };
832
- }), Mt = function(e) {
833
- L(t, e);
867
+ }), Ct = function(e) {
868
+ N(t, e);
834
869
  function t() {
835
870
  var r = e.call(this) || this;
836
871
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
837
872
  }
838
873
  return t.prototype.lift = function(r) {
839
- var n = new ut(this, this);
874
+ var n = new at(this, this);
840
875
  return n.operator = r, n;
841
876
  }, t.prototype._throwIfClosed = function() {
842
877
  if (this.closed)
843
- throw new Gr();
878
+ throw new Fr();
844
879
  }, t.prototype.next = function(r) {
845
880
  var n = this;
846
881
  pe(function() {
@@ -858,7 +893,8 @@ var Gr = Ot(function(e) {
858
893
  try {
859
894
  s && !s.done && (o = a.return) && o.call(a);
860
895
  } finally {
861
- if (i) throw i.error;
896
+ if (i)
897
+ throw i.error;
862
898
  }
863
899
  }
864
900
  }
@@ -896,20 +932,20 @@ var Gr = Ot(function(e) {
896
932
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
897
933
  }, t.prototype._innerSubscribe = function(r) {
898
934
  var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
899
- return o || a ? It : (this.currentObservers = null, s.push(r), new ge(function() {
935
+ return o || a ? Ot : (this.currentObservers = null, s.push(r), new ge(function() {
900
936
  n.currentObservers = null, Ue(s, r);
901
937
  }));
902
938
  }, t.prototype._checkFinalizedStatuses = function(r) {
903
939
  var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
904
940
  i ? r.error(o) : a && r.complete();
905
941
  }, t.prototype.asObservable = function() {
906
- var r = new st();
942
+ var r = new ot();
907
943
  return r.source = this, r;
908
944
  }, t.create = function(r, n) {
909
- return new ut(r, n);
945
+ return new at(r, n);
910
946
  }, t;
911
- }(st), ut = function(e) {
912
- L(t, e);
947
+ }(ot), at = function(e) {
948
+ N(t, e);
913
949
  function t(r, n) {
914
950
  var i = e.call(this) || this;
915
951
  return i.destination = r, i.source = n, i;
@@ -925,17 +961,17 @@ var Gr = Ot(function(e) {
925
961
  (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
926
962
  }, t.prototype._subscribe = function(r) {
927
963
  var n, i;
928
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : It;
964
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ot;
929
965
  }, t;
930
- }(Mt), $t = {
966
+ }(Ct), Mt = {
931
967
  now: function() {
932
- return ($t.delegate || Date).now();
968
+ return (Mt.delegate || Date).now();
933
969
  },
934
970
  delegate: void 0
935
- }, Fr = function(e) {
936
- L(t, e);
971
+ }, jr = function(e) {
972
+ N(t, e);
937
973
  function t(r, n, i) {
938
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = $t);
974
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Mt);
939
975
  var o = e.call(this) || this;
940
976
  return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
941
977
  }
@@ -955,24 +991,24 @@ var Gr = Ot(function(e) {
955
991
  u && o.splice(0, u + 1);
956
992
  }
957
993
  }, t;
958
- }(Mt);
959
- const ht = [], lt = {}, jr = (e, t = 0) => {
960
- if (ht.indexOf(e) == -1) {
961
- const r = new Fr(t);
962
- lt[e] = r, ht.push(e);
994
+ }(Ct);
995
+ const ut = [], ht = {}, kr = (e, t = 0) => {
996
+ if (ut.indexOf(e) == -1) {
997
+ const r = new jr(t);
998
+ ht[e] = r, ut.push(e);
963
999
  }
964
- return lt[e];
1000
+ return ht[e];
965
1001
  }, j = [];
966
- function kr(e, t) {
1002
+ function Vr(e, t) {
967
1003
  return {
968
1004
  subscribe: ve(e, t).subscribe
969
1005
  };
970
1006
  }
971
- function ve(e, t = A) {
1007
+ function ve(e, t = w) {
972
1008
  let r;
973
1009
  const n = /* @__PURE__ */ new Set();
974
1010
  function i(s) {
975
- if (Bt(e, s) && (e = s, r)) {
1011
+ if (wt(e, s) && (e = s, r)) {
976
1012
  const l = !j.length;
977
1013
  for (const u of n)
978
1014
  u[1](), j.push(u, e);
@@ -986,9 +1022,9 @@ function ve(e, t = A) {
986
1022
  function o(s) {
987
1023
  i(s(e));
988
1024
  }
989
- function a(s, l = A) {
1025
+ function a(s, l = w) {
990
1026
  const u = [s, l];
991
- return n.add(u), n.size === 1 && (r = t(i, o) || A), s(e), () => {
1027
+ return n.add(u), n.size === 1 && (r = t(i, o) || w), s(e), () => {
992
1028
  n.delete(u), n.size === 0 && r && (r(), r = null);
993
1029
  };
994
1030
  }
@@ -999,96 +1035,96 @@ function J(e, t, r) {
999
1035
  if (!i.every(Boolean))
1000
1036
  throw new Error("derived() expects stores as input, got a falsy value");
1001
1037
  const o = t.length < 2;
1002
- return kr(r, (a, s) => {
1038
+ return Vr(r, (a, s) => {
1003
1039
  let l = !1;
1004
1040
  const u = [];
1005
- let h = 0, c = A;
1041
+ let h = 0, c = w;
1006
1042
  const f = () => {
1007
1043
  if (h)
1008
1044
  return;
1009
1045
  c();
1010
1046
  const v = t(n ? u[0] : u, a, s);
1011
- o ? a(v) : c = Ze(v) ? v : A;
1047
+ o ? a(v) : c = Ze(v) ? v : w;
1012
1048
  }, p = i.map(
1013
- (v, d) => At(
1049
+ (v, m) => Bt(
1014
1050
  v,
1015
1051
  (T) => {
1016
- u[d] = T, h &= ~(1 << d), l && f();
1052
+ u[m] = T, h &= ~(1 << m), l && f();
1017
1053
  },
1018
1054
  () => {
1019
- h |= 1 << d;
1055
+ h |= 1 << m;
1020
1056
  }
1021
1057
  )
1022
1058
  );
1023
1059
  return l = !0, f(), function() {
1024
- oe(p), c(), l = !1;
1060
+ se(p), c(), l = !1;
1025
1061
  };
1026
1062
  });
1027
1063
  }
1028
- function Vr(e) {
1064
+ function Xr(e) {
1029
1065
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1030
1066
  }
1031
- var Xr = function(t) {
1032
- return Wr(t) && !zr(t);
1067
+ var Wr = function(t) {
1068
+ return zr(t) && !Zr(t);
1033
1069
  };
1034
- function Wr(e) {
1070
+ function zr(e) {
1035
1071
  return !!e && typeof e == "object";
1036
1072
  }
1037
- function zr(e) {
1073
+ function Zr(e) {
1038
1074
  var t = Object.prototype.toString.call(e);
1039
- return t === "[object RegExp]" || t === "[object Date]" || Qr(e);
1040
- }
1041
- var Zr = typeof Symbol == "function" && Symbol.for, qr = Zr ? Symbol.for("react.element") : 60103;
1042
- function Qr(e) {
1043
- return e.$$typeof === qr;
1075
+ return t === "[object RegExp]" || t === "[object Date]" || Jr(e);
1044
1076
  }
1077
+ var qr = typeof Symbol == "function" && Symbol.for, Qr = qr ? Symbol.for("react.element") : 60103;
1045
1078
  function Jr(e) {
1079
+ return e.$$typeof === Qr;
1080
+ }
1081
+ function Yr(e) {
1046
1082
  return Array.isArray(e) ? [] : {};
1047
1083
  }
1048
- function ne(e, t) {
1049
- return t.clone !== !1 && t.isMergeableObject(e) ? W(Jr(e), e, t) : e;
1084
+ function ie(e, t) {
1085
+ return t.clone !== !1 && t.isMergeableObject(e) ? W(Yr(e), e, t) : e;
1050
1086
  }
1051
- function Yr(e, t, r) {
1087
+ function Kr(e, t, r) {
1052
1088
  return e.concat(t).map(function(n) {
1053
- return ne(n, r);
1089
+ return ie(n, r);
1054
1090
  });
1055
1091
  }
1056
- function Kr(e, t) {
1092
+ function en(e, t) {
1057
1093
  if (!t.customMerge)
1058
1094
  return W;
1059
1095
  var r = t.customMerge(e);
1060
1096
  return typeof r == "function" ? r : W;
1061
1097
  }
1062
- function en(e) {
1098
+ function tn(e) {
1063
1099
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1064
1100
  return Object.propertyIsEnumerable.call(e, t);
1065
1101
  }) : [];
1066
1102
  }
1067
- function ct(e) {
1068
- return Object.keys(e).concat(en(e));
1103
+ function lt(e) {
1104
+ return Object.keys(e).concat(tn(e));
1069
1105
  }
1070
- function Rt(e, t) {
1106
+ function $t(e, t) {
1071
1107
  try {
1072
1108
  return t in e;
1073
1109
  } catch {
1074
1110
  return !1;
1075
1111
  }
1076
1112
  }
1077
- function tn(e, t) {
1078
- return Rt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1113
+ function rn(e, t) {
1114
+ return $t(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1079
1115
  }
1080
- function rn(e, t, r) {
1116
+ function nn(e, t, r) {
1081
1117
  var n = {};
1082
- return r.isMergeableObject(e) && ct(e).forEach(function(i) {
1083
- n[i] = ne(e[i], r);
1084
- }), ct(t).forEach(function(i) {
1085
- tn(e, i) || (Rt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Kr(i, r)(e[i], t[i], r) : n[i] = ne(t[i], r));
1118
+ return r.isMergeableObject(e) && lt(e).forEach(function(i) {
1119
+ n[i] = ie(e[i], r);
1120
+ }), lt(t).forEach(function(i) {
1121
+ rn(e, i) || ($t(e, i) && r.isMergeableObject(t[i]) ? n[i] = en(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
1086
1122
  }), n;
1087
1123
  }
1088
1124
  function W(e, t, r) {
1089
- r = r || {}, r.arrayMerge = r.arrayMerge || Yr, r.isMergeableObject = r.isMergeableObject || Xr, r.cloneUnlessOtherwiseSpecified = ne;
1125
+ r = r || {}, r.arrayMerge = r.arrayMerge || Kr, r.isMergeableObject = r.isMergeableObject || Wr, r.cloneUnlessOtherwiseSpecified = ie;
1090
1126
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
1091
- return o ? n ? r.arrayMerge(e, t, r) : rn(e, t, r) : ne(t, r);
1127
+ return o ? n ? r.arrayMerge(e, t, r) : nn(e, t, r) : ie(t, r);
1092
1128
  }
1093
1129
  W.all = function(t, r) {
1094
1130
  if (!Array.isArray(t))
@@ -1097,62 +1133,62 @@ W.all = function(t, r) {
1097
1133
  return W(n, i, r);
1098
1134
  }, {});
1099
1135
  };
1100
- var nn = W, on = nn;
1101
- const sn = /* @__PURE__ */ Vr(on);
1136
+ var on = W, sn = on;
1137
+ const an = /* @__PURE__ */ Xr(sn);
1102
1138
  function we(e, t) {
1103
- var r = t && t.cache ? t.cache : fn, n = t && t.serializer ? t.serializer : cn, i = t && t.strategy ? t.strategy : un;
1139
+ var r = t && t.cache ? t.cache : pn, n = t && t.serializer ? t.serializer : fn, i = t && t.strategy ? t.strategy : hn;
1104
1140
  return i(e, {
1105
1141
  cache: r,
1106
1142
  serializer: n
1107
1143
  });
1108
1144
  }
1109
- function an(e) {
1145
+ function un(e) {
1110
1146
  return e == null || typeof e == "number" || typeof e == "boolean";
1111
1147
  }
1112
- function Ut(e, t, r, n) {
1113
- var i = an(n) ? n : r(n), o = t.get(i);
1148
+ function Rt(e, t, r, n) {
1149
+ var i = un(n) ? n : r(n), o = t.get(i);
1114
1150
  return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
1115
1151
  }
1116
- function Dt(e, t, r) {
1152
+ function Ut(e, t, r) {
1117
1153
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
1118
1154
  return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
1119
1155
  }
1120
- function Je(e, t, r, n, i) {
1156
+ function Qe(e, t, r, n, i) {
1121
1157
  return r.bind(t, e, n, i);
1122
1158
  }
1123
- function un(e, t) {
1124
- var r = e.length === 1 ? Ut : Dt;
1125
- return Je(e, this, r, t.cache.create(), t.serializer);
1126
- }
1127
1159
  function hn(e, t) {
1128
- return Je(e, this, Dt, t.cache.create(), t.serializer);
1160
+ var r = e.length === 1 ? Rt : Ut;
1161
+ return Qe(e, this, r, t.cache.create(), t.serializer);
1129
1162
  }
1130
1163
  function ln(e, t) {
1131
- return Je(e, this, Ut, t.cache.create(), t.serializer);
1164
+ return Qe(e, this, Ut, t.cache.create(), t.serializer);
1132
1165
  }
1133
- var cn = function() {
1166
+ function cn(e, t) {
1167
+ return Qe(e, this, Rt, t.cache.create(), t.serializer);
1168
+ }
1169
+ var fn = function() {
1134
1170
  return JSON.stringify(arguments);
1135
1171
  };
1136
- function Ye() {
1172
+ function Je() {
1137
1173
  this.cache = /* @__PURE__ */ Object.create(null);
1138
1174
  }
1139
- Ye.prototype.get = function(e) {
1175
+ Je.prototype.get = function(e) {
1140
1176
  return this.cache[e];
1141
1177
  };
1142
- Ye.prototype.set = function(e, t) {
1178
+ Je.prototype.set = function(e, t) {
1143
1179
  this.cache[e] = t;
1144
1180
  };
1145
- var fn = {
1181
+ var pn = {
1146
1182
  create: function() {
1147
- return new Ye();
1183
+ return new Je();
1148
1184
  }
1149
1185
  }, Be = {
1150
- variadic: hn,
1151
- monadic: ln
1152
- }, m;
1186
+ variadic: ln,
1187
+ monadic: cn
1188
+ }, d;
1153
1189
  (function(e) {
1154
1190
  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";
1155
- })(m || (m = {}));
1191
+ })(d || (d = {}));
1156
1192
  var _;
1157
1193
  (function(e) {
1158
1194
  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";
@@ -1161,43 +1197,43 @@ var z;
1161
1197
  (function(e) {
1162
1198
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1163
1199
  })(z || (z = {}));
1164
- function ft(e) {
1200
+ function ct(e) {
1165
1201
  return e.type === _.literal;
1166
1202
  }
1167
- function pn(e) {
1203
+ function mn(e) {
1168
1204
  return e.type === _.argument;
1169
1205
  }
1170
- function Gt(e) {
1206
+ function Dt(e) {
1171
1207
  return e.type === _.number;
1172
1208
  }
1173
- function Ft(e) {
1209
+ function Gt(e) {
1174
1210
  return e.type === _.date;
1175
1211
  }
1176
- function jt(e) {
1212
+ function Ft(e) {
1177
1213
  return e.type === _.time;
1178
1214
  }
1179
- function kt(e) {
1215
+ function jt(e) {
1180
1216
  return e.type === _.select;
1181
1217
  }
1182
- function Vt(e) {
1218
+ function kt(e) {
1183
1219
  return e.type === _.plural;
1184
1220
  }
1185
1221
  function dn(e) {
1186
1222
  return e.type === _.pound;
1187
1223
  }
1188
- function Xt(e) {
1224
+ function Vt(e) {
1189
1225
  return e.type === _.tag;
1190
1226
  }
1191
- function Wt(e) {
1227
+ function Xt(e) {
1192
1228
  return !!(e && typeof e == "object" && e.type === z.number);
1193
1229
  }
1194
1230
  function Ge(e) {
1195
1231
  return !!(e && typeof e == "object" && e.type === z.dateTime);
1196
1232
  }
1197
- var zt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, mn = /(?:[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;
1198
- function bn(e) {
1233
+ var Wt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, bn = /(?:[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;
1234
+ function yn(e) {
1199
1235
  var t = {};
1200
- return e.replace(mn, function(r) {
1236
+ return e.replace(bn, function(r) {
1201
1237
  var n = r.length;
1202
1238
  switch (r[0]) {
1203
1239
  case "G":
@@ -1286,11 +1322,11 @@ function bn(e) {
1286
1322
  return "";
1287
1323
  }), t;
1288
1324
  }
1289
- var yn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1290
- function gn(e) {
1325
+ var gn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1326
+ function vn(e) {
1291
1327
  if (e.length === 0)
1292
1328
  throw new Error("Number skeleton cannot be empty");
1293
- for (var t = e.split(yn).filter(function(f) {
1329
+ for (var t = e.split(gn).filter(function(f) {
1294
1330
  return f.length > 0;
1295
1331
  }), r = [], n = 0, i = t; n < i.length; n++) {
1296
1332
  var o = i[n], a = o.split("/");
@@ -1305,17 +1341,17 @@ function gn(e) {
1305
1341
  }
1306
1342
  return r;
1307
1343
  }
1308
- function vn(e) {
1344
+ function _n(e) {
1309
1345
  return e.replace(/^(.*?)-/, "");
1310
1346
  }
1311
- var pt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Zt = /^(@+)?(\+|#+)?[rs]?$/g, _n = /(\*)(0+)|(#+)(0+)|(0+)/g, qt = /^(0+)$/;
1312
- function dt(e) {
1347
+ var ft = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, zt = /^(@+)?(\+|#+)?[rs]?$/g, En = /(\*)(0+)|(#+)(0+)|(0+)/g, Zt = /^(0+)$/;
1348
+ function pt(e) {
1313
1349
  var t = {};
1314
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Zt, function(r, n, i) {
1350
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(zt, function(r, n, i) {
1315
1351
  return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
1316
1352
  }), t;
1317
1353
  }
1318
- function Qt(e) {
1354
+ function qt(e) {
1319
1355
  switch (e) {
1320
1356
  case "sign-auto":
1321
1357
  return {
@@ -1355,7 +1391,7 @@ function Qt(e) {
1355
1391
  };
1356
1392
  }
1357
1393
  }
1358
- function En(e) {
1394
+ function xn(e) {
1359
1395
  var t;
1360
1396
  if (e[0] === "E" && e[1] === "E" ? (t = {
1361
1397
  notation: "engineering"
@@ -1363,17 +1399,17 @@ function En(e) {
1363
1399
  notation: "scientific"
1364
1400
  }, e = e.slice(1)), t) {
1365
1401
  var r = e.slice(0, 2);
1366
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !qt.test(e))
1402
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Zt.test(e))
1367
1403
  throw new Error("Malformed concise eng/scientific notation");
1368
1404
  t.minimumIntegerDigits = e.length;
1369
1405
  }
1370
1406
  return t;
1371
1407
  }
1372
1408
  function mt(e) {
1373
- var t = {}, r = Qt(e);
1409
+ var t = {}, r = qt(e);
1374
1410
  return r || t;
1375
1411
  }
1376
- function xn(e) {
1412
+ function Tn(e) {
1377
1413
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1378
1414
  var i = n[r];
1379
1415
  switch (i.stem) {
@@ -1397,7 +1433,7 @@ function xn(e) {
1397
1433
  continue;
1398
1434
  case "measure-unit":
1399
1435
  case "unit":
1400
- t.style = "unit", t.unit = vn(i.options[0]);
1436
+ t.style = "unit", t.unit = _n(i.options[0]);
1401
1437
  continue;
1402
1438
  case "compact-short":
1403
1439
  case "K":
@@ -1459,7 +1495,7 @@ function xn(e) {
1459
1495
  case "integer-width":
1460
1496
  if (i.options.length > 1)
1461
1497
  throw new RangeError("integer-width stems only accept a single optional option");
1462
- i.options[0].replace(_n, function(l, u, h, c, f, p) {
1498
+ i.options[0].replace(En, function(l, u, h, c, f, p) {
1463
1499
  if (u)
1464
1500
  t.minimumIntegerDigits = h.length;
1465
1501
  else {
@@ -1472,27 +1508,27 @@ function xn(e) {
1472
1508
  });
1473
1509
  continue;
1474
1510
  }
1475
- if (qt.test(i.stem)) {
1511
+ if (Zt.test(i.stem)) {
1476
1512
  t.minimumIntegerDigits = i.stem.length;
1477
1513
  continue;
1478
1514
  }
1479
- if (pt.test(i.stem)) {
1515
+ if (ft.test(i.stem)) {
1480
1516
  if (i.options.length > 1)
1481
1517
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1482
- i.stem.replace(pt, function(l, u, h, c, f, p) {
1518
+ i.stem.replace(ft, function(l, u, h, c, f, p) {
1483
1519
  return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1484
1520
  });
1485
1521
  var o = i.options[0];
1486
- o === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = y(y({}, t), dt(o)));
1522
+ o === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = y(y({}, t), pt(o)));
1487
1523
  continue;
1488
1524
  }
1489
- if (Zt.test(i.stem)) {
1490
- t = y(y({}, t), dt(i.stem));
1525
+ if (zt.test(i.stem)) {
1526
+ t = y(y({}, t), pt(i.stem));
1491
1527
  continue;
1492
1528
  }
1493
- var a = Qt(i.stem);
1529
+ var a = qt(i.stem);
1494
1530
  a && (t = y(y({}, t), a));
1495
- var s = En(i.stem);
1531
+ var s = xn(i.stem);
1496
1532
  s && (t = y(y({}, t), s));
1497
1533
  }
1498
1534
  return t;
@@ -2912,22 +2948,23 @@ var ce = {
2912
2948
  "h"
2913
2949
  ]
2914
2950
  };
2915
- function Tn(e, t) {
2951
+ function Hn(e, t) {
2916
2952
  for (var r = "", n = 0; n < e.length; n++) {
2917
2953
  var i = e.charAt(n);
2918
2954
  if (i === "j") {
2919
2955
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2920
2956
  o++, n++;
2921
- var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Hn(t);
2957
+ var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Sn(t);
2922
2958
  for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
2923
2959
  r += l;
2924
2960
  for (; a-- > 0; )
2925
2961
  r = u + r;
2926
- } else i === "J" ? r += "H" : r += i;
2962
+ } else
2963
+ i === "J" ? r += "H" : r += i;
2927
2964
  }
2928
2965
  return r;
2929
2966
  }
2930
- function Hn(e) {
2967
+ function Sn(e) {
2931
2968
  var t = e.hourCycle;
2932
2969
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2933
2970
  e.hourCycles && // @ts-ignore
@@ -2949,20 +2986,20 @@ function Hn(e) {
2949
2986
  var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
2950
2987
  return i[0];
2951
2988
  }
2952
- var Ae, Sn = new RegExp("^".concat(zt.source, "*")), wn = new RegExp("".concat(zt.source, "*$"));
2989
+ var Ae, wn = new RegExp("^".concat(Wt.source, "*")), Bn = new RegExp("".concat(Wt.source, "*$"));
2953
2990
  function b(e, t) {
2954
2991
  return { start: e, end: t };
2955
2992
  }
2956
- var Bn = !!String.prototype.startsWith && "_a".startsWith("a", 1), An = !!String.fromCodePoint, Pn = !!Object.fromEntries, On = !!String.prototype.codePointAt, In = !!String.prototype.trimStart, Nn = !!String.prototype.trimEnd, Ln = !!Number.isSafeInteger, Cn = Ln ? Number.isSafeInteger : function(e) {
2993
+ var An = !!String.prototype.startsWith && "_a".startsWith("a", 1), Pn = !!String.fromCodePoint, On = !!Object.fromEntries, In = !!String.prototype.codePointAt, Nn = !!String.prototype.trimStart, Ln = !!String.prototype.trimEnd, Cn = !!Number.isSafeInteger, Mn = Cn ? Number.isSafeInteger : function(e) {
2957
2994
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2958
2995
  }, Fe = !0;
2959
2996
  try {
2960
- var Mn = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2961
- Fe = ((Ae = Mn.exec("a")) === null || Ae === void 0 ? void 0 : Ae[0]) === "a";
2997
+ var $n = Jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2998
+ Fe = ((Ae = $n.exec("a")) === null || Ae === void 0 ? void 0 : Ae[0]) === "a";
2962
2999
  } catch {
2963
3000
  Fe = !1;
2964
3001
  }
2965
- var bt = Bn ? (
3002
+ var dt = An ? (
2966
3003
  // Native
2967
3004
  function(t, r, n) {
2968
3005
  return t.startsWith(r, n);
@@ -2972,7 +3009,7 @@ var bt = Bn ? (
2972
3009
  function(t, r, n) {
2973
3010
  return t.slice(n, n + r.length) === r;
2974
3011
  }
2975
- ), je = An ? String.fromCodePoint : (
3012
+ ), je = Pn ? String.fromCodePoint : (
2976
3013
  // IE11
2977
3014
  function() {
2978
3015
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2984,9 +3021,9 @@ var bt = Bn ? (
2984
3021
  }
2985
3022
  return n;
2986
3023
  }
2987
- ), yt = (
3024
+ ), bt = (
2988
3025
  // native
2989
- Pn ? Object.fromEntries : (
3026
+ On ? Object.fromEntries : (
2990
3027
  // Ponyfill
2991
3028
  function(t) {
2992
3029
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -2996,7 +3033,7 @@ var bt = Bn ? (
2996
3033
  return r;
2997
3034
  }
2998
3035
  )
2999
- ), Jt = On ? (
3036
+ ), Qt = In ? (
3000
3037
  // Native
3001
3038
  function(t, r) {
3002
3039
  return t.codePointAt(r);
@@ -3010,7 +3047,7 @@ var bt = Bn ? (
3010
3047
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3011
3048
  }
3012
3049
  }
3013
- ), $n = In ? (
3050
+ ), Rn = Nn ? (
3014
3051
  // Native
3015
3052
  function(t) {
3016
3053
  return t.trimStart();
@@ -3018,9 +3055,9 @@ var bt = Bn ? (
3018
3055
  ) : (
3019
3056
  // Ponyfill
3020
3057
  function(t) {
3021
- return t.replace(Sn, "");
3058
+ return t.replace(wn, "");
3022
3059
  }
3023
- ), Rn = Nn ? (
3060
+ ), Un = Ln ? (
3024
3061
  // Native
3025
3062
  function(t) {
3026
3063
  return t.trimEnd();
@@ -3028,32 +3065,32 @@ var bt = Bn ? (
3028
3065
  ) : (
3029
3066
  // Ponyfill
3030
3067
  function(t) {
3031
- return t.replace(wn, "");
3068
+ return t.replace(Bn, "");
3032
3069
  }
3033
3070
  );
3034
- function Yt(e, t) {
3071
+ function Jt(e, t) {
3035
3072
  return new RegExp(e, t);
3036
3073
  }
3037
3074
  var ke;
3038
3075
  if (Fe) {
3039
- var gt = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3076
+ var yt = Jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3040
3077
  ke = function(t, r) {
3041
3078
  var n;
3042
- gt.lastIndex = r;
3043
- var i = gt.exec(t);
3079
+ yt.lastIndex = r;
3080
+ var i = yt.exec(t);
3044
3081
  return (n = i[1]) !== null && n !== void 0 ? n : "";
3045
3082
  };
3046
3083
  } else
3047
3084
  ke = function(t, r) {
3048
3085
  for (var n = []; ; ) {
3049
- var i = Jt(t, r);
3050
- if (i === void 0 || Kt(i) || Fn(i))
3086
+ var i = Qt(t, r);
3087
+ if (i === void 0 || Yt(i) || jn(i))
3051
3088
  break;
3052
3089
  n.push(i), r += i >= 65536 ? 2 : 1;
3053
3090
  }
3054
3091
  return je.apply(void 0, n);
3055
3092
  };
3056
- var Un = (
3093
+ var Dn = (
3057
3094
  /** @class */
3058
3095
  function() {
3059
3096
  function e(t, r) {
@@ -3083,7 +3120,7 @@ var Un = (
3083
3120
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
3084
3121
  if (n)
3085
3122
  break;
3086
- return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
3123
+ return this.error(d.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
3087
3124
  } else if (o === 60 && !this.ignoreTag && Ve(this.peek() || 0)) {
3088
3125
  var a = this.parseTag(t, r);
3089
3126
  if (a.err)
@@ -3118,9 +3155,9 @@ var Un = (
3118
3155
  var a = o.val, s = this.clonePosition();
3119
3156
  if (this.bumpIf("</")) {
3120
3157
  if (this.isEOF() || !Ve(this.char()))
3121
- return this.error(m.INVALID_TAG, b(s, this.clonePosition()));
3158
+ return this.error(d.INVALID_TAG, b(s, this.clonePosition()));
3122
3159
  var l = this.clonePosition(), u = this.parseTagName();
3123
- return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3160
+ return i !== u ? this.error(d.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3124
3161
  val: {
3125
3162
  type: _.tag,
3126
3163
  value: i,
@@ -3128,14 +3165,14 @@ var Un = (
3128
3165
  location: b(n, this.clonePosition())
3129
3166
  },
3130
3167
  err: null
3131
- } : this.error(m.INVALID_TAG, b(s, this.clonePosition())));
3168
+ } : this.error(d.INVALID_TAG, b(s, this.clonePosition())));
3132
3169
  } else
3133
- return this.error(m.UNCLOSED_TAG, b(n, this.clonePosition()));
3170
+ return this.error(d.UNCLOSED_TAG, b(n, this.clonePosition()));
3134
3171
  } else
3135
- return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
3172
+ return this.error(d.INVALID_TAG, b(n, this.clonePosition()));
3136
3173
  }, e.prototype.parseTagName = function() {
3137
3174
  var t = this.offset();
3138
- for (this.bump(); !this.isEOF() && Gn(this.char()); )
3175
+ for (this.bump(); !this.isEOF() && Fn(this.char()); )
3139
3176
  this.bump();
3140
3177
  return this.message.slice(t, this.offset());
3141
3178
  }, e.prototype.parseLiteral = function(t, r) {
@@ -3164,7 +3201,7 @@ var Un = (
3164
3201
  };
3165
3202
  }, e.prototype.tryParseLeftAngleBracket = function() {
3166
3203
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3167
- !Dn(this.peek() || 0)) ? (this.bump(), "<") : null;
3204
+ !Gn(this.peek() || 0)) ? (this.bump(), "<") : null;
3168
3205
  }, e.prototype.tryParseQuote = function(t) {
3169
3206
  if (this.isEOF() || this.char() !== 39)
3170
3207
  return null;
@@ -3207,14 +3244,14 @@ var Un = (
3207
3244
  }, e.prototype.parseArgument = function(t, r) {
3208
3245
  var n = this.clonePosition();
3209
3246
  if (this.bump(), this.bumpSpace(), this.isEOF())
3210
- return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
3247
+ return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
3211
3248
  if (this.char() === 125)
3212
- return this.bump(), this.error(m.EMPTY_ARGUMENT, b(n, this.clonePosition()));
3249
+ return this.bump(), this.error(d.EMPTY_ARGUMENT, b(n, this.clonePosition()));
3213
3250
  var i = this.parseIdentifierIfPossible().value;
3214
3251
  if (!i)
3215
- return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
3252
+ return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
3216
3253
  if (this.bumpSpace(), this.isEOF())
3217
- return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
3254
+ return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
3218
3255
  switch (this.char()) {
3219
3256
  case 125:
3220
3257
  return this.bump(), {
@@ -3227,9 +3264,9 @@ var Un = (
3227
3264
  err: null
3228
3265
  };
3229
3266
  case 44:
3230
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3267
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3231
3268
  default:
3232
- return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
3269
+ return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
3233
3270
  }
3234
3271
  }, e.prototype.parseIdentifierIfPossible = function() {
3235
3272
  var t = this.clonePosition(), r = this.offset(), n = ke(this.message, r), i = r + n.length;
@@ -3240,7 +3277,7 @@ var Un = (
3240
3277
  var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
3241
3278
  switch (s) {
3242
3279
  case "":
3243
- return this.error(m.EXPECT_ARGUMENT_TYPE, b(a, l));
3280
+ return this.error(d.EXPECT_ARGUMENT_TYPE, b(a, l));
3244
3281
  case "number":
3245
3282
  case "date":
3246
3283
  case "time": {
@@ -3251,37 +3288,37 @@ var Un = (
3251
3288
  var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
3252
3289
  if (c.err)
3253
3290
  return c;
3254
- var f = Rn(c.val);
3291
+ var f = Un(c.val);
3255
3292
  if (f.length === 0)
3256
- return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
3293
+ return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
3257
3294
  var p = b(h, this.clonePosition());
3258
3295
  u = { style: f, styleLocation: p };
3259
3296
  }
3260
3297
  var v = this.tryParseArgumentClose(i);
3261
3298
  if (v.err)
3262
3299
  return v;
3263
- var d = b(i, this.clonePosition());
3264
- if (u && bt(u?.style, "::", 0)) {
3265
- var T = $n(u.style.slice(2));
3300
+ var m = b(i, this.clonePosition());
3301
+ if (u && dt(u?.style, "::", 0)) {
3302
+ var T = Rn(u.style.slice(2));
3266
3303
  if (s === "number") {
3267
3304
  var c = this.parseNumberSkeletonFromString(T, u.styleLocation);
3268
3305
  return c.err ? c : {
3269
- val: { type: _.number, value: n, location: d, style: c.val },
3306
+ val: { type: _.number, value: n, location: m, style: c.val },
3270
3307
  err: null
3271
3308
  };
3272
3309
  } else {
3273
3310
  if (T.length === 0)
3274
- return this.error(m.EXPECT_DATE_TIME_SKELETON, d);
3275
- var C = T;
3276
- this.locale && (C = Tn(T, this.locale));
3311
+ return this.error(d.EXPECT_DATE_TIME_SKELETON, m);
3312
+ var $ = T;
3313
+ this.locale && ($ = Hn(T, this.locale));
3277
3314
  var f = {
3278
3315
  type: z.dateTime,
3279
- pattern: C,
3316
+ pattern: $,
3280
3317
  location: u.styleLocation,
3281
- parsedOptions: this.shouldParseSkeletons ? bn(C) : {}
3282
- }, M = s === "date" ? _.date : _.time;
3318
+ parsedOptions: this.shouldParseSkeletons ? yn($) : {}
3319
+ }, A = s === "date" ? _.date : _.time;
3283
3320
  return {
3284
- val: { type: M, value: n, location: d, style: f },
3321
+ val: { type: A, value: n, location: m, style: f },
3285
3322
  err: null
3286
3323
  };
3287
3324
  }
@@ -3290,7 +3327,7 @@ var Un = (
3290
3327
  val: {
3291
3328
  type: s === "number" ? _.number : s === "date" ? _.date : _.time,
3292
3329
  value: n,
3293
- location: d,
3330
+ location: m,
3294
3331
  style: (o = u?.style) !== null && o !== void 0 ? o : null
3295
3332
  },
3296
3333
  err: null
@@ -3301,14 +3338,14 @@ var Un = (
3301
3338
  case "select": {
3302
3339
  var S = this.clonePosition();
3303
3340
  if (this.bumpSpace(), !this.bumpIf(","))
3304
- return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(S, y({}, S)));
3341
+ return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(S, y({}, S)));
3305
3342
  this.bumpSpace();
3306
3343
  var R = this.parseIdentifierIfPossible(), P = 0;
3307
3344
  if (s !== "select" && R.value === "offset") {
3308
3345
  if (!this.bumpIf(":"))
3309
- return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
3346
+ return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
3310
3347
  this.bumpSpace();
3311
- var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3348
+ var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3312
3349
  if (c.err)
3313
3350
  return c;
3314
3351
  this.bumpSpace(), R = this.parseIdentifierIfPossible(), P = c.val;
@@ -3319,32 +3356,32 @@ var Un = (
3319
3356
  var v = this.tryParseArgumentClose(i);
3320
3357
  if (v.err)
3321
3358
  return v;
3322
- var ue = b(i, this.clonePosition());
3359
+ var g = b(i, this.clonePosition());
3323
3360
  return s === "select" ? {
3324
3361
  val: {
3325
3362
  type: _.select,
3326
3363
  value: n,
3327
- options: yt(D.val),
3328
- location: ue
3364
+ options: bt(D.val),
3365
+ location: g
3329
3366
  },
3330
3367
  err: null
3331
3368
  } : {
3332
3369
  val: {
3333
3370
  type: _.plural,
3334
3371
  value: n,
3335
- options: yt(D.val),
3372
+ options: bt(D.val),
3336
3373
  offset: P,
3337
3374
  pluralType: s === "plural" ? "cardinal" : "ordinal",
3338
- location: ue
3375
+ location: g
3339
3376
  },
3340
3377
  err: null
3341
3378
  };
3342
3379
  }
3343
3380
  default:
3344
- return this.error(m.INVALID_ARGUMENT_TYPE, b(a, l));
3381
+ return this.error(d.INVALID_ARGUMENT_TYPE, b(a, l));
3345
3382
  }
3346
3383
  }, e.prototype.tryParseArgumentClose = function(t) {
3347
- return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3384
+ return this.isEOF() || this.char() !== 125 ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3348
3385
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
3349
3386
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
3350
3387
  var n = this.char();
@@ -3353,7 +3390,7 @@ var Un = (
3353
3390
  this.bump();
3354
3391
  var i = this.clonePosition();
3355
3392
  if (!this.bumpUntil("'"))
3356
- return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
3393
+ return this.error(d.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
3357
3394
  this.bump();
3358
3395
  break;
3359
3396
  }
@@ -3383,16 +3420,16 @@ var Un = (
3383
3420
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3384
3421
  var n = [];
3385
3422
  try {
3386
- n = gn(t);
3423
+ n = vn(t);
3387
3424
  } catch {
3388
- return this.error(m.INVALID_NUMBER_SKELETON, r);
3425
+ return this.error(d.INVALID_NUMBER_SKELETON, r);
3389
3426
  }
3390
3427
  return {
3391
3428
  val: {
3392
3429
  type: z.number,
3393
3430
  tokens: n,
3394
3431
  location: r,
3395
- parsedOptions: this.shouldParseSkeletons ? xn(n) : {}
3432
+ parsedOptions: this.shouldParseSkeletons ? Tn(n) : {}
3396
3433
  },
3397
3434
  err: null
3398
3435
  };
@@ -3401,7 +3438,7 @@ var Un = (
3401
3438
  if (u.length === 0) {
3402
3439
  var c = this.clonePosition();
3403
3440
  if (r !== "select" && this.bumpIf("=")) {
3404
- var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
3441
+ var f = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
3405
3442
  if (f.err)
3406
3443
  return f;
3407
3444
  h = b(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
@@ -3409,17 +3446,17 @@ var Un = (
3409
3446
  break;
3410
3447
  }
3411
3448
  if (l.has(u))
3412
- return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3449
+ return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3413
3450
  u === "other" && (a = !0), this.bumpSpace();
3414
3451
  var p = this.clonePosition();
3415
3452
  if (!this.bumpIf("{"))
3416
- return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
3453
+ return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
3417
3454
  var v = this.parseMessage(t + 1, r, n);
3418
3455
  if (v.err)
3419
3456
  return v;
3420
- var d = this.tryParseArgumentClose(p);
3421
- if (d.err)
3422
- return d;
3457
+ var m = this.tryParseArgumentClose(p);
3458
+ if (m.err)
3459
+ return m;
3423
3460
  s.push([
3424
3461
  u,
3425
3462
  {
@@ -3428,7 +3465,7 @@ var Un = (
3428
3465
  }
3429
3466
  ]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
3430
3467
  }
3431
- return s.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(m.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3468
+ return s.length === 0 ? this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR : d.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(d.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3432
3469
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3433
3470
  var n = 1, i = this.clonePosition();
3434
3471
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
@@ -3440,7 +3477,7 @@ var Un = (
3440
3477
  break;
3441
3478
  }
3442
3479
  var l = b(i, this.clonePosition());
3443
- return o ? (a *= n, Cn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
3480
+ return o ? (a *= n, Mn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
3444
3481
  }, e.prototype.offset = function() {
3445
3482
  return this.position.offset;
3446
3483
  }, e.prototype.isEOF = function() {
@@ -3455,7 +3492,7 @@ var Un = (
3455
3492
  var t = this.position.offset;
3456
3493
  if (t >= this.message.length)
3457
3494
  throw Error("out of bound");
3458
- var r = Jt(this.message, t);
3495
+ var r = Qt(this.message, t);
3459
3496
  if (r === void 0)
3460
3497
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3461
3498
  return r;
@@ -3474,7 +3511,7 @@ var Un = (
3474
3511
  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);
3475
3512
  }
3476
3513
  }, e.prototype.bumpIf = function(t) {
3477
- if (bt(this.message, t, this.offset())) {
3514
+ if (dt(this.message, t, this.offset())) {
3478
3515
  for (var r = 0; r < t.length; r++)
3479
3516
  this.bump();
3480
3517
  return !0;
@@ -3496,7 +3533,7 @@ var Un = (
3496
3533
  break;
3497
3534
  }
3498
3535
  }, e.prototype.bumpSpace = function() {
3499
- for (; !this.isEOF() && Kt(this.char()); )
3536
+ for (; !this.isEOF() && Yt(this.char()); )
3500
3537
  this.bump();
3501
3538
  }, e.prototype.peek = function() {
3502
3539
  if (this.isEOF())
@@ -3509,31 +3546,32 @@ var Un = (
3509
3546
  function Ve(e) {
3510
3547
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3511
3548
  }
3512
- function Dn(e) {
3549
+ function Gn(e) {
3513
3550
  return Ve(e) || e === 47;
3514
3551
  }
3515
- function Gn(e) {
3552
+ function Fn(e) {
3516
3553
  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;
3517
3554
  }
3518
- function Kt(e) {
3555
+ function Yt(e) {
3519
3556
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3520
3557
  }
3521
- function Fn(e) {
3558
+ function jn(e) {
3522
3559
  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;
3523
3560
  }
3524
3561
  function Xe(e) {
3525
3562
  e.forEach(function(t) {
3526
- if (delete t.location, kt(t) || Vt(t))
3563
+ if (delete t.location, jt(t) || kt(t))
3527
3564
  for (var r in t.options)
3528
3565
  delete t.options[r].location, Xe(t.options[r].value);
3529
- else Gt(t) && Wt(t.style) || (Ft(t) || jt(t)) && Ge(t.style) ? delete t.style.location : Xt(t) && Xe(t.children);
3566
+ else
3567
+ Dt(t) && Xt(t.style) || (Gt(t) || Ft(t)) && Ge(t.style) ? delete t.style.location : Vt(t) && Xe(t.children);
3530
3568
  });
3531
3569
  }
3532
- function jn(e, t) {
3570
+ function kn(e, t) {
3533
3571
  t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3534
- var r = new Un(e, t).parse();
3572
+ var r = new Dn(e, t).parse();
3535
3573
  if (r.err) {
3536
- var n = SyntaxError(m[r.err.kind]);
3574
+ var n = SyntaxError(d[r.err.kind]);
3537
3575
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3538
3576
  }
3539
3577
  return t?.captureLocation || Xe(r.val), r.val;
@@ -3545,7 +3583,7 @@ var Z;
3545
3583
  var _e = (
3546
3584
  /** @class */
3547
3585
  function(e) {
3548
- L(t, e);
3586
+ N(t, e);
3549
3587
  function t(r, n, i) {
3550
3588
  var o = e.call(this, r) || this;
3551
3589
  return o.code = n, o.originalMessage = i, o;
@@ -3554,28 +3592,28 @@ var _e = (
3554
3592
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3555
3593
  }, t;
3556
3594
  }(Error)
3557
- ), vt = (
3595
+ ), gt = (
3558
3596
  /** @class */
3559
3597
  function(e) {
3560
- L(t, e);
3598
+ N(t, e);
3561
3599
  function t(r, n, i, o) {
3562
3600
  return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Z.INVALID_VALUE, o) || this;
3563
3601
  }
3564
3602
  return t;
3565
3603
  }(_e)
3566
- ), kn = (
3604
+ ), Vn = (
3567
3605
  /** @class */
3568
3606
  function(e) {
3569
- L(t, e);
3607
+ N(t, e);
3570
3608
  function t(r, n, i) {
3571
3609
  return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Z.INVALID_VALUE, i) || this;
3572
3610
  }
3573
3611
  return t;
3574
3612
  }(_e)
3575
- ), Vn = (
3613
+ ), Xn = (
3576
3614
  /** @class */
3577
3615
  function(e) {
3578
- L(t, e);
3616
+ N(t, e);
3579
3617
  function t(r, n) {
3580
3618
  return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Z.MISSING_VALUE, n) || this;
3581
3619
  }
@@ -3585,17 +3623,17 @@ var _e = (
3585
3623
  (function(e) {
3586
3624
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3587
3625
  })(H || (H = {}));
3588
- function Xn(e) {
3626
+ function Wn(e) {
3589
3627
  return e.length < 2 ? e : e.reduce(function(t, r) {
3590
3628
  var n = t[t.length - 1];
3591
3629
  return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
3592
3630
  }, []);
3593
3631
  }
3594
- function Wn(e) {
3632
+ function zn(e) {
3595
3633
  return typeof e == "function";
3596
3634
  }
3597
- function de(e, t, r, n, i, o, a) {
3598
- if (e.length === 1 && ft(e[0]))
3635
+ function me(e, t, r, n, i, o, a) {
3636
+ if (e.length === 1 && ct(e[0]))
3599
3637
  return [
3600
3638
  {
3601
3639
  type: H.literal,
@@ -3604,7 +3642,7 @@ function de(e, t, r, n, i, o, a) {
3604
3642
  ];
3605
3643
  for (var s = [], l = 0, u = e; l < u.length; l++) {
3606
3644
  var h = u[l];
3607
- if (ft(h)) {
3645
+ if (ct(h)) {
3608
3646
  s.push({
3609
3647
  type: H.literal,
3610
3648
  value: h.value
@@ -3620,16 +3658,16 @@ function de(e, t, r, n, i, o, a) {
3620
3658
  }
3621
3659
  var c = h.value;
3622
3660
  if (!(i && c in i))
3623
- throw new Vn(c, a);
3661
+ throw new Xn(c, a);
3624
3662
  var f = i[c];
3625
- if (pn(h)) {
3663
+ if (mn(h)) {
3626
3664
  (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
3627
3665
  type: typeof f == "string" ? H.literal : H.object,
3628
3666
  value: f
3629
3667
  });
3630
3668
  continue;
3631
3669
  }
3632
- if (Ft(h)) {
3670
+ if (Gt(h)) {
3633
3671
  var p = typeof h.style == "string" ? n.date[h.style] : Ge(h.style) ? h.style.parsedOptions : void 0;
3634
3672
  s.push({
3635
3673
  type: H.literal,
@@ -3637,7 +3675,7 @@ function de(e, t, r, n, i, o, a) {
3637
3675
  });
3638
3676
  continue;
3639
3677
  }
3640
- if (jt(h)) {
3678
+ if (Ft(h)) {
3641
3679
  var p = typeof h.style == "string" ? n.time[h.style] : Ge(h.style) ? h.style.parsedOptions : n.time.medium;
3642
3680
  s.push({
3643
3681
  type: H.literal,
@@ -3645,36 +3683,36 @@ function de(e, t, r, n, i, o, a) {
3645
3683
  });
3646
3684
  continue;
3647
3685
  }
3648
- if (Gt(h)) {
3649
- var p = typeof h.style == "string" ? n.number[h.style] : Wt(h.style) ? h.style.parsedOptions : void 0;
3686
+ if (Dt(h)) {
3687
+ var p = typeof h.style == "string" ? n.number[h.style] : Xt(h.style) ? h.style.parsedOptions : void 0;
3650
3688
  p && p.scale && (f = f * (p.scale || 1)), s.push({
3651
3689
  type: H.literal,
3652
3690
  value: r.getNumberFormat(t, p).format(f)
3653
3691
  });
3654
3692
  continue;
3655
3693
  }
3656
- if (Xt(h)) {
3657
- var v = h.children, d = h.value, T = i[d];
3658
- if (!Wn(T))
3659
- throw new kn(d, "function", a);
3660
- var C = de(v, t, r, n, i, o), M = T(C.map(function(P) {
3694
+ if (Vt(h)) {
3695
+ var v = h.children, m = h.value, T = i[m];
3696
+ if (!zn(T))
3697
+ throw new Vn(m, "function", a);
3698
+ var $ = me(v, t, r, n, i, o), A = T($.map(function(P) {
3661
3699
  return P.value;
3662
3700
  }));
3663
- Array.isArray(M) || (M = [M]), s.push.apply(s, M.map(function(P) {
3701
+ Array.isArray(A) || (A = [A]), s.push.apply(s, A.map(function(P) {
3664
3702
  return {
3665
3703
  type: typeof P == "string" ? H.literal : H.object,
3666
3704
  value: P
3667
3705
  };
3668
3706
  }));
3669
3707
  }
3670
- if (kt(h)) {
3708
+ if (jt(h)) {
3671
3709
  var S = h.options[f] || h.options.other;
3672
3710
  if (!S)
3673
- throw new vt(h.value, f, Object.keys(h.options), a);
3674
- s.push.apply(s, de(S.value, t, r, n, i));
3711
+ throw new gt(h.value, f, Object.keys(h.options), a);
3712
+ s.push.apply(s, me(S.value, t, r, n, i));
3675
3713
  continue;
3676
3714
  }
3677
- if (Vt(h)) {
3715
+ if (kt(h)) {
3678
3716
  var S = h.options["=".concat(f)];
3679
3717
  if (!S) {
3680
3718
  if (!Intl.PluralRules)
@@ -3685,21 +3723,21 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
3685
3723
  S = h.options[R] || h.options.other;
3686
3724
  }
3687
3725
  if (!S)
3688
- throw new vt(h.value, f, Object.keys(h.options), a);
3689
- s.push.apply(s, de(S.value, t, r, n, i, f - (h.offset || 0)));
3726
+ throw new gt(h.value, f, Object.keys(h.options), a);
3727
+ s.push.apply(s, me(S.value, t, r, n, i, f - (h.offset || 0)));
3690
3728
  continue;
3691
3729
  }
3692
3730
  }
3693
- return Xn(s);
3731
+ return Wn(s);
3694
3732
  }
3695
- function zn(e, t) {
3733
+ function Zn(e, t) {
3696
3734
  return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3697
3735
  return r[n] = y(y({}, e[n]), t[n] || {}), r;
3698
3736
  }, {})) : e;
3699
3737
  }
3700
- function Zn(e, t) {
3738
+ function qn(e, t) {
3701
3739
  return t ? Object.keys(e).reduce(function(r, n) {
3702
- return r[n] = zn(e[n], t[n]), r;
3740
+ return r[n] = Zn(e[n], t[n]), r;
3703
3741
  }, y({}, e)) : e;
3704
3742
  }
3705
3743
  function Pe(e) {
@@ -3716,7 +3754,7 @@ function Pe(e) {
3716
3754
  }
3717
3755
  };
3718
3756
  }
3719
- function qn(e) {
3757
+ function Qn(e) {
3720
3758
  return e === void 0 && (e = {
3721
3759
  number: {},
3722
3760
  dateTime: {},
@@ -3748,7 +3786,7 @@ function qn(e) {
3748
3786
  })
3749
3787
  };
3750
3788
  }
3751
- var Qn = (
3789
+ var Jn = (
3752
3790
  /** @class */
3753
3791
  function() {
3754
3792
  function e(t, r, n, i) {
@@ -3767,7 +3805,7 @@ var Qn = (
3767
3805
  }, []);
3768
3806
  return h.length <= 1 ? h[0] || "" : h;
3769
3807
  }, this.formatToParts = function(l) {
3770
- return de(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
3808
+ return me(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
3771
3809
  }, this.resolvedOptions = function() {
3772
3810
  var l;
3773
3811
  return {
@@ -3780,13 +3818,13 @@ var Qn = (
3780
3818
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3781
3819
  var a = i || {};
3782
3820
  a.formatters;
3783
- var s = Ar(a, ["formatters"]);
3821
+ var s = Pr(a, ["formatters"]);
3784
3822
  this.ast = e.__parse(t, y(y({}, s), { locale: this.resolvedLocale }));
3785
3823
  } else
3786
3824
  this.ast = t;
3787
3825
  if (!Array.isArray(this.ast))
3788
3826
  throw new TypeError("A message must be provided as a String or AST.");
3789
- this.formats = Zn(e.formats, n), this.formatters = i && i.formatters || qn(this.formatterCache);
3827
+ this.formats = qn(e.formats, n), this.formatters = i && i.formatters || Qn(this.formatterCache);
3790
3828
  }
3791
3829
  return Object.defineProperty(e, "defaultLocale", {
3792
3830
  get: function() {
@@ -3799,7 +3837,7 @@ var Qn = (
3799
3837
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3800
3838
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3801
3839
  }
3802
- }, e.__parse = jn, e.formats = {
3840
+ }, e.__parse = kn, e.formats = {
3803
3841
  number: {
3804
3842
  integer: {
3805
3843
  maximumFractionDigits: 0
@@ -3860,7 +3898,7 @@ var Qn = (
3860
3898
  }, e;
3861
3899
  }()
3862
3900
  );
3863
- function Jn(e, t) {
3901
+ function Yn(e, t) {
3864
3902
  if (t == null)
3865
3903
  return;
3866
3904
  if (t in e)
@@ -3881,60 +3919,60 @@ function Jn(e, t) {
3881
3919
  n = void 0;
3882
3920
  return n;
3883
3921
  }
3884
- const $ = {}, Yn = (e, t, r) => r && (t in $ || ($[t] = {}), e in $[t] || ($[t][e] = r), r), er = (e, t) => {
3922
+ const M = {}, Kn = (e, t, r) => r && (t in M || (M[t] = {}), e in M[t] || (M[t][e] = r), r), Kt = (e, t) => {
3885
3923
  if (t == null)
3886
3924
  return;
3887
- if (t in $ && e in $[t])
3888
- return $[t][e];
3925
+ if (t in M && e in M[t])
3926
+ return M[t][e];
3889
3927
  const r = Ee(t);
3890
3928
  for (let n = 0; n < r.length; n++) {
3891
- const i = r[n], o = ei(i, e);
3929
+ const i = r[n], o = ti(i, e);
3892
3930
  if (o)
3893
- return Yn(e, t, o);
3931
+ return Kn(e, t, o);
3894
3932
  }
3895
3933
  };
3896
- let Ke;
3897
- const ae = ve({});
3898
- function Kn(e) {
3899
- return Ke[e] || null;
3934
+ let Ye;
3935
+ const ue = ve({});
3936
+ function ei(e) {
3937
+ return Ye[e] || null;
3900
3938
  }
3901
- function tr(e) {
3902
- return e in Ke;
3939
+ function er(e) {
3940
+ return e in Ye;
3903
3941
  }
3904
- function ei(e, t) {
3905
- if (!tr(e))
3942
+ function ti(e, t) {
3943
+ if (!er(e))
3906
3944
  return null;
3907
- const r = Kn(e);
3908
- return Jn(r, t);
3945
+ const r = ei(e);
3946
+ return Yn(r, t);
3909
3947
  }
3910
- function ti(e) {
3948
+ function ri(e) {
3911
3949
  if (e == null)
3912
3950
  return;
3913
3951
  const t = Ee(e);
3914
3952
  for (let r = 0; r < t.length; r++) {
3915
3953
  const n = t[r];
3916
- if (tr(n))
3954
+ if (er(n))
3917
3955
  return n;
3918
3956
  }
3919
3957
  }
3920
- function rr(e, ...t) {
3921
- delete $[e], ae.update((r) => (r[e] = sn.all([r[e] || {}, ...t]), r));
3958
+ function tr(e, ...t) {
3959
+ delete M[e], ue.update((r) => (r[e] = an.all([r[e] || {}, ...t]), r));
3922
3960
  }
3923
3961
  J(
3924
- [ae],
3962
+ [ue],
3925
3963
  ([e]) => Object.keys(e)
3926
3964
  );
3927
- ae.subscribe((e) => Ke = e);
3928
- const me = {};
3929
- function ri(e, t) {
3930
- me[e].delete(t), me[e].size === 0 && delete me[e];
3965
+ ue.subscribe((e) => Ye = e);
3966
+ const de = {};
3967
+ function ni(e, t) {
3968
+ de[e].delete(t), de[e].size === 0 && delete de[e];
3931
3969
  }
3932
- function nr(e) {
3933
- return me[e];
3970
+ function rr(e) {
3971
+ return de[e];
3934
3972
  }
3935
- function ni(e) {
3973
+ function ii(e) {
3936
3974
  return Ee(e).map((t) => {
3937
- const r = nr(t);
3975
+ const r = rr(t);
3938
3976
  return [t, r ? [...r] : []];
3939
3977
  }).filter(([, t]) => t.length > 0);
3940
3978
  }
@@ -3942,31 +3980,31 @@ function We(e) {
3942
3980
  return e == null ? !1 : Ee(e).some(
3943
3981
  (t) => {
3944
3982
  var r;
3945
- return (r = nr(t)) == null ? void 0 : r.size;
3983
+ return (r = rr(t)) == null ? void 0 : r.size;
3946
3984
  }
3947
3985
  );
3948
3986
  }
3949
- function ii(e, t) {
3987
+ function oi(e, t) {
3950
3988
  return Promise.all(
3951
- t.map((n) => (ri(e, n), n().then((i) => i.default || i)))
3952
- ).then((n) => rr(e, ...n));
3989
+ t.map((n) => (ni(e, n), n().then((i) => i.default || i)))
3990
+ ).then((n) => tr(e, ...n));
3953
3991
  }
3954
3992
  const ee = {};
3955
- function ir(e) {
3993
+ function nr(e) {
3956
3994
  if (!We(e))
3957
3995
  return e in ee ? ee[e] : Promise.resolve();
3958
- const t = ni(e);
3996
+ const t = ii(e);
3959
3997
  return ee[e] = Promise.all(
3960
3998
  t.map(
3961
- ([r, n]) => ii(r, n)
3999
+ ([r, n]) => oi(r, n)
3962
4000
  )
3963
4001
  ).then(() => {
3964
4002
  if (We(e))
3965
- return ir(e);
4003
+ return nr(e);
3966
4004
  delete ee[e];
3967
4005
  }), ee[e];
3968
4006
  }
3969
- const oi = {
4007
+ const si = {
3970
4008
  number: {
3971
4009
  scientific: { notation: "scientific" },
3972
4010
  engineering: { notation: "engineering" },
@@ -3995,34 +4033,34 @@ const oi = {
3995
4033
  timeZoneName: "short"
3996
4034
  }
3997
4035
  }
3998
- }, si = {
4036
+ }, ai = {
3999
4037
  fallbackLocale: null,
4000
4038
  loadingDelay: 200,
4001
- formats: oi,
4039
+ formats: si,
4002
4040
  warnOnMissingMessages: !0,
4003
4041
  handleMissingMessage: void 0,
4004
4042
  ignoreTag: !0
4005
- }, ai = si;
4043
+ }, ui = ai;
4006
4044
  function q() {
4007
- return ai;
4045
+ return ui;
4008
4046
  }
4009
4047
  const Oe = ve(!1);
4010
- var ui = Object.defineProperty, hi = Object.defineProperties, li = Object.getOwnPropertyDescriptors, _t = Object.getOwnPropertySymbols, ci = Object.prototype.hasOwnProperty, fi = Object.prototype.propertyIsEnumerable, Et = (e, t, r) => t in e ? ui(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, pi = (e, t) => {
4048
+ var hi = Object.defineProperty, li = Object.defineProperties, ci = Object.getOwnPropertyDescriptors, vt = Object.getOwnPropertySymbols, fi = Object.prototype.hasOwnProperty, pi = Object.prototype.propertyIsEnumerable, _t = (e, t, r) => t in e ? hi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, mi = (e, t) => {
4011
4049
  for (var r in t || (t = {}))
4012
- ci.call(t, r) && Et(e, r, t[r]);
4013
- if (_t)
4014
- for (var r of _t(t))
4015
- fi.call(t, r) && Et(e, r, t[r]);
4050
+ fi.call(t, r) && _t(e, r, t[r]);
4051
+ if (vt)
4052
+ for (var r of vt(t))
4053
+ pi.call(t, r) && _t(e, r, t[r]);
4016
4054
  return e;
4017
- }, di = (e, t) => hi(e, li(t));
4055
+ }, di = (e, t) => li(e, ci(t));
4018
4056
  let ze;
4019
4057
  const be = ve(null);
4020
- function xt(e) {
4058
+ function Et(e) {
4021
4059
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4022
4060
  }
4023
4061
  function Ee(e, t = q().fallbackLocale) {
4024
- const r = xt(e);
4025
- return t ? [.../* @__PURE__ */ new Set([...r, ...xt(t)])] : r;
4062
+ const r = Et(e);
4063
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Et(t)])] : r;
4026
4064
  }
4027
4065
  function U() {
4028
4066
  return ze ?? void 0;
@@ -4030,22 +4068,22 @@ function U() {
4030
4068
  be.subscribe((e) => {
4031
4069
  ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4032
4070
  });
4033
- const mi = (e) => {
4034
- if (e && ti(e) && We(e)) {
4071
+ const bi = (e) => {
4072
+ if (e && ri(e) && We(e)) {
4035
4073
  const { loadingDelay: t } = q();
4036
4074
  let r;
4037
4075
  return typeof window < "u" && U() != null && t ? r = window.setTimeout(
4038
4076
  () => Oe.set(!0),
4039
4077
  t
4040
- ) : Oe.set(!0), ir(e).then(() => {
4078
+ ) : Oe.set(!0), nr(e).then(() => {
4041
4079
  be.set(e);
4042
4080
  }).finally(() => {
4043
4081
  clearTimeout(r), Oe.set(!1);
4044
4082
  });
4045
4083
  }
4046
4084
  return be.set(e);
4047
- }, Y = di(pi({}, be), {
4048
- set: mi
4085
+ }, Y = di(mi({}, be), {
4086
+ set: bi
4049
4087
  }), xe = (e) => {
4050
4088
  const t = /* @__PURE__ */ Object.create(null);
4051
4089
  return (n) => {
@@ -4053,77 +4091,77 @@ const mi = (e) => {
4053
4091
  return i in t ? t[i] : t[i] = e(n);
4054
4092
  };
4055
4093
  };
4056
- var bi = Object.defineProperty, ye = Object.getOwnPropertySymbols, or = Object.prototype.hasOwnProperty, sr = Object.prototype.propertyIsEnumerable, Tt = (e, t, r) => t in e ? bi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, et = (e, t) => {
4094
+ var yi = Object.defineProperty, ye = Object.getOwnPropertySymbols, ir = Object.prototype.hasOwnProperty, or = Object.prototype.propertyIsEnumerable, xt = (e, t, r) => t in e ? yi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
4057
4095
  for (var r in t || (t = {}))
4058
- or.call(t, r) && Tt(e, r, t[r]);
4096
+ ir.call(t, r) && xt(e, r, t[r]);
4059
4097
  if (ye)
4060
4098
  for (var r of ye(t))
4061
- sr.call(t, r) && Tt(e, r, t[r]);
4099
+ or.call(t, r) && xt(e, r, t[r]);
4062
4100
  return e;
4063
4101
  }, K = (e, t) => {
4064
4102
  var r = {};
4065
4103
  for (var n in e)
4066
- or.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4104
+ ir.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4067
4105
  if (e != null && ye)
4068
4106
  for (var n of ye(e))
4069
- t.indexOf(n) < 0 && sr.call(e, n) && (r[n] = e[n]);
4107
+ t.indexOf(n) < 0 && or.call(e, n) && (r[n] = e[n]);
4070
4108
  return r;
4071
4109
  };
4072
- const ie = (e, t) => {
4110
+ const oe = (e, t) => {
4073
4111
  const { formats: r } = q();
4074
4112
  if (e in r && t in r[e])
4075
4113
  return r[e][t];
4076
4114
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4077
- }, yi = xe(
4115
+ }, gi = xe(
4078
4116
  (e) => {
4079
4117
  var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
4080
4118
  if (r == null)
4081
4119
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4082
- return n && (i = ie("number", n)), new Intl.NumberFormat(r, i);
4120
+ return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
4083
4121
  }
4084
- ), gi = xe(
4122
+ ), vi = xe(
4085
4123
  (e) => {
4086
4124
  var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
4087
4125
  if (r == null)
4088
4126
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4089
- return n ? i = ie("date", n) : Object.keys(i).length === 0 && (i = ie("date", "short")), new Intl.DateTimeFormat(r, i);
4127
+ return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
4090
4128
  }
4091
- ), vi = xe(
4129
+ ), _i = xe(
4092
4130
  (e) => {
4093
4131
  var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
4094
4132
  if (r == null)
4095
4133
  throw new Error(
4096
4134
  '[svelte-i18n] A "locale" must be set to format time values'
4097
4135
  );
4098
- return n ? i = ie("time", n) : Object.keys(i).length === 0 && (i = ie("time", "short")), new Intl.DateTimeFormat(r, i);
4136
+ return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
4099
4137
  }
4100
- ), _i = (e = {}) => {
4138
+ ), Ei = (e = {}) => {
4101
4139
  var t = e, {
4102
4140
  locale: r = U()
4103
4141
  } = t, n = K(t, [
4104
4142
  "locale"
4105
4143
  ]);
4106
- return yi(et({ locale: r }, n));
4107
- }, Ei = (e = {}) => {
4144
+ return gi(Ke({ locale: r }, n));
4145
+ }, xi = (e = {}) => {
4108
4146
  var t = e, {
4109
4147
  locale: r = U()
4110
4148
  } = t, n = K(t, [
4111
4149
  "locale"
4112
4150
  ]);
4113
- return gi(et({ locale: r }, n));
4114
- }, xi = (e = {}) => {
4151
+ return vi(Ke({ locale: r }, n));
4152
+ }, Ti = (e = {}) => {
4115
4153
  var t = e, {
4116
4154
  locale: r = U()
4117
4155
  } = t, n = K(t, [
4118
4156
  "locale"
4119
4157
  ]);
4120
- return vi(et({ locale: r }, n));
4121
- }, Ti = xe(
4158
+ return _i(Ke({ locale: r }, n));
4159
+ }, Hi = xe(
4122
4160
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4123
- (e, t = U()) => new Qn(e, t, q().formats, {
4161
+ (e, t = U()) => new Jn(e, t, q().formats, {
4124
4162
  ignoreTag: q().ignoreTag
4125
4163
  })
4126
- ), Hi = (e, t = {}) => {
4164
+ ), Si = (e, t = {}) => {
4127
4165
  var r, n, i, o;
4128
4166
  let a = t;
4129
4167
  typeof e == "object" && (a = e, e = a.id);
@@ -4136,7 +4174,7 @@ const ie = (e, t) => {
4136
4174
  throw new Error(
4137
4175
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4138
4176
  );
4139
- let h = er(e, l);
4177
+ let h = Kt(e, l);
4140
4178
  if (!h)
4141
4179
  h = (o = (i = (n = (r = q()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
4142
4180
  else if (typeof h != "string")
@@ -4147,7 +4185,7 @@ const ie = (e, t) => {
4147
4185
  return h;
4148
4186
  let c = h;
4149
4187
  try {
4150
- c = Ti(h, l).format(s);
4188
+ c = Hi(h, l).format(s);
4151
4189
  } catch (f) {
4152
4190
  f instanceof Error && console.warn(
4153
4191
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -4155,20 +4193,20 @@ const ie = (e, t) => {
4155
4193
  );
4156
4194
  }
4157
4195
  return c;
4158
- }, Si = (e, t) => xi(t).format(e), wi = (e, t) => Ei(t).format(e), Bi = (e, t) => _i(t).format(e), Ai = (e, t = U()) => er(e, t), Pi = J([Y, ae], () => Hi);
4159
- J([Y], () => Si);
4196
+ }, wi = (e, t) => Ti(t).format(e), Bi = (e, t) => xi(t).format(e), Ai = (e, t) => Ei(t).format(e), Pi = (e, t = U()) => Kt(e, t), Oi = J([Y, ue], () => Si);
4160
4197
  J([Y], () => wi);
4161
4198
  J([Y], () => Bi);
4162
- J([Y, ae], () => Ai);
4163
- window.emWidgets = { topic: jr };
4164
- const Oi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4165
- function Ht(e, t) {
4166
- rr(e, t);
4199
+ J([Y], () => Ai);
4200
+ J([Y, ue], () => Pi);
4201
+ window.emWidgets = { topic: kr };
4202
+ const Ii = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4203
+ function Tt(e, t) {
4204
+ tr(e, t);
4167
4205
  }
4168
- function Ii(e) {
4206
+ function Ni(e) {
4169
4207
  Y.set(e);
4170
4208
  }
4171
- const St = {
4209
+ const Ht = {
4172
4210
  en: {
4173
4211
  titleTransactionHistory: "Transaction History",
4174
4212
  loading: "Loading, please wait ..."
@@ -4210,49 +4248,72 @@ const St = {
4210
4248
  loading: "Loading, please wait ..."
4211
4249
  }
4212
4250
  };
4213
- function Ni(e) {
4214
- hr(e, "svelte-1oqxq1j", ".TransactionHistoryWrapper{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px 50px 30px 50px;max-width:100%}.TransactionHistoryWrapper.TransactionHistoryWrapperMobile{padding:20px 15px;max-width:unset;border-radius:0}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.TransactionHistoryTitle{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.TransactionHistoryTitleMobile{font-size:var(--emw--size-standard, 16px)}.TransactionHistoryTitleNone{display:none}.TransactionHistoryIframeWrapper iframe{border:none;width:100%;height:85vh}");
4251
+ function Li(e, t) {
4252
+ if (e) {
4253
+ const r = document.createElement("style");
4254
+ r.innerHTML = t, e.appendChild(r);
4255
+ }
4256
+ }
4257
+ function Ci(e, t) {
4258
+ const r = new URL(t);
4259
+ fetch(r.href).then((n) => n.text()).then((n) => {
4260
+ const i = document.createElement("style");
4261
+ i.innerHTML = n, e && e.appendChild(i);
4262
+ }).catch((n) => {
4263
+ console.error("There was an error while trying to load client styling from URL", n);
4264
+ });
4265
+ }
4266
+ function Mi(e, t, r) {
4267
+ if (window.emMessageBus) {
4268
+ const n = document.createElement("style");
4269
+ window.emMessageBus.subscribe(t, (i) => {
4270
+ n.innerHTML = i, e && e.appendChild(n);
4271
+ });
4272
+ }
4273
+ }
4274
+ function $i(e) {
4275
+ ur(e, "svelte-1oqxq1j", ".TransactionHistoryWrapper{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px 50px 30px 50px;max-width:100%}.TransactionHistoryWrapper.TransactionHistoryWrapperMobile{padding:20px 15px;max-width:unset;border-radius:0}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.TransactionHistoryTitle{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.TransactionHistoryTitleMobile{font-size:var(--emw--size-standard, 16px)}.TransactionHistoryTitleNone{display:none}.TransactionHistoryIframeWrapper iframe{border:none;width:100%;height:85vh}");
4215
4276
  }
4216
- function Li(e) {
4277
+ function Ri(e) {
4217
4278
  let t, r, n, i, o, a, s, l, u, h, c = (
4218
4279
  /*$_*/
4219
4280
  e[3]("titleTransactionHistory") + ""
4220
4281
  ), f, p, v;
4221
4282
  return {
4222
4283
  c() {
4223
- t = N("div"), r = G("svg"), n = G("defs"), i = G("style"), o = re(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), a = G("g"), s = G("g"), l = G("path"), u = Ie(), h = N("h2"), f = re(c), E(l, "class", "aaa"), E(l, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), E(l, "transform", "translate(15 15) rotate(180)"), E(s, "transform", "translate(20 158)"), E(a, "transform", "translate(-20 -158)"), E(r, "xmlns", "http://www.w3.org/2000/svg"), E(r, "width", "15"), E(r, "height", "15"), E(r, "viewBox", "0 0 15 15"), E(h, "class", "TransactionHistoryTitleMobile"), E(t, "class", "MenuReturnButton");
4284
+ t = I("div"), r = G("svg"), n = G("defs"), i = G("style"), o = re(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), a = G("g"), s = G("g"), l = G("path"), u = Ie(), h = I("h2"), f = re(c), E(l, "class", "aaa"), E(l, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), E(l, "transform", "translate(15 15) rotate(180)"), E(s, "transform", "translate(20 158)"), E(a, "transform", "translate(-20 -158)"), E(r, "xmlns", "http://www.w3.org/2000/svg"), E(r, "width", "15"), E(r, "height", "15"), E(r, "viewBox", "0 0 15 15"), E(h, "class", "TransactionHistoryTitleMobile"), E(t, "class", "MenuReturnButton");
4224
4285
  },
4225
- m(d, T) {
4226
- se(d, t, T), x(t, r), x(r, n), x(n, i), x(i, o), x(r, a), x(a, s), x(s, l), x(t, u), x(t, h), x(h, f), p || (v = fr(
4286
+ m(m, T) {
4287
+ ae(m, t, T), x(t, r), x(r, n), x(n, i), x(i, o), x(r, a), x(a, s), x(s, l), x(t, u), x(t, h), x(h, f), p || (v = cr(
4227
4288
  t,
4228
4289
  "click",
4229
4290
  /*click_handler*/
4230
- e[13]
4291
+ e[14]
4231
4292
  ), p = !0);
4232
4293
  },
4233
- p(d, T) {
4294
+ p(m, T) {
4234
4295
  T & /*$_*/
4235
4296
  8 && c !== (c = /*$_*/
4236
- d[3]("titleTransactionHistory") + "") && qe(f, c);
4297
+ m[3]("titleTransactionHistory") + "") && qe(f, c);
4237
4298
  },
4238
- d(d) {
4239
- d && Q(t), p = !1, v();
4299
+ d(m) {
4300
+ m && Q(t), p = !1, v();
4240
4301
  }
4241
4302
  };
4242
4303
  }
4243
- function Ci(e) {
4304
+ function Ui(e) {
4244
4305
  let t, r, n;
4245
4306
  return {
4246
4307
  c() {
4247
- t = N("div"), r = N("iframe"), rt(r.src, n = /*iframeUrl*/
4308
+ t = I("div"), r = I("iframe"), tt(r.src, n = /*iframeUrl*/
4248
4309
  e[2]) || E(r, "src", n), E(r, "title", "Transaction History Iframe"), E(t, "class", "TransactionHistoryIframeWrapper");
4249
4310
  },
4250
4311
  m(i, o) {
4251
- se(i, t, o), x(t, r);
4312
+ ae(i, t, o), x(t, r);
4252
4313
  },
4253
4314
  p(i, o) {
4254
4315
  o & /*iframeUrl*/
4255
- 4 && !rt(r.src, n = /*iframeUrl*/
4316
+ 4 && !tt(r.src, n = /*iframeUrl*/
4256
4317
  i[2]) && E(r, "src", n);
4257
4318
  },
4258
4319
  d(i) {
@@ -4260,17 +4321,17 @@ function Ci(e) {
4260
4321
  }
4261
4322
  };
4262
4323
  }
4263
- function Mi(e) {
4324
+ function Di(e) {
4264
4325
  let t, r = (
4265
4326
  /*$_*/
4266
4327
  e[3]("loading") + ""
4267
4328
  ), n;
4268
4329
  return {
4269
4330
  c() {
4270
- t = N("p"), n = re(r);
4331
+ t = I("p"), n = re(r);
4271
4332
  },
4272
4333
  m(i, o) {
4273
- se(i, t, o), x(t, n);
4334
+ ae(i, t, o), x(t, n);
4274
4335
  },
4275
4336
  p(i, o) {
4276
4337
  o & /*$_*/
@@ -4282,29 +4343,29 @@ function Mi(e) {
4282
4343
  }
4283
4344
  };
4284
4345
  }
4285
- function $i(e) {
4346
+ function Gi(e) {
4286
4347
  let t, r, n, i = (
4287
4348
  /*$_*/
4288
4349
  e[3]("titleTransactionHistory") + ""
4289
4350
  ), o, a, s = (
4290
4351
  /*isMobile*/
4291
- e[4] && Li(e)
4352
+ e[4] && Ri(e)
4292
4353
  );
4293
4354
  function l(c, f) {
4294
4355
  return (
4295
4356
  /*isLoading*/
4296
- c[1] ? Mi : Ci
4357
+ c[1] ? Di : Ui
4297
4358
  );
4298
4359
  }
4299
4360
  let u = l(e), h = u(e);
4300
4361
  return {
4301
4362
  c() {
4302
- t = N("div"), s && s.c(), r = Ie(), n = N("h2"), o = re(i), a = Ie(), h.c(), E(n, "class", "TransactionHistoryTitle " + /*isMobile*/
4363
+ t = I("div"), s && s.c(), r = Ie(), n = I("h2"), o = re(i), a = Ie(), h.c(), E(n, "class", "TransactionHistoryTitle " + /*isMobile*/
4303
4364
  (e[4] ? "TransactionHistoryTitleNone" : "")), E(t, "class", "TransactionHistoryWrapper " + /*isMobile*/
4304
4365
  (e[4] ? "TransactionHistoryWrapperMobile" : ""));
4305
4366
  },
4306
4367
  m(c, f) {
4307
- se(c, t, f), s && s.m(t, null), x(t, r), x(t, n), x(n, o), x(t, a), h.m(t, null), e[14](t);
4368
+ ae(c, t, f), s && s.m(t, null), x(t, r), x(t, n), x(n, o), x(t, a), h.m(t, null), e[15](t);
4308
4369
  },
4309
4370
  p(c, [f]) {
4310
4371
  /*isMobile*/
@@ -4312,92 +4373,83 @@ function $i(e) {
4312
4373
  8 && i !== (i = /*$_*/
4313
4374
  c[3]("titleTransactionHistory") + "") && qe(o, i), u === (u = l(c)) && h ? h.p(c, f) : (h.d(1), h = u(c), h && (h.c(), h.m(t, null)));
4314
4375
  },
4315
- i: A,
4316
- o: A,
4376
+ i: w,
4377
+ o: w,
4317
4378
  d(c) {
4318
- c && Q(t), s && s.d(), h.d(), e[14](null);
4379
+ c && Q(t), s && s.d(), h.d(), e[15](null);
4319
4380
  }
4320
4381
  };
4321
4382
  }
4322
- function Ri(e, t, r) {
4383
+ function Fi(e, t, r) {
4323
4384
  let n;
4324
- ur(e, Pi, (g) => r(3, n = g));
4325
- let { endpoint: i = "" } = t, { session: o = "" } = t, { playerid: a = "" } = t, { lang: s = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: h = "" } = t, c, f = window.navigator.userAgent, p = Oi(f) !== "PC", v = !0, d = "";
4326
- const T = () => {
4327
- fetch(h).then((B) => B.json()).then((B) => {
4328
- Object.keys(B).forEach((w) => {
4329
- Ht(w, B[w]);
4385
+ ar(e, Oi, (g) => r(3, n = g));
4386
+ let { endpoint: i = "" } = t, { session: o = "" } = t, { playerid: a = "" } = t, { lang: s = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { mbsource: h } = t, { translationurl: c = "" } = t, f, p = window.navigator.userAgent, v = Ii(p) !== "PC", m = !0, T = "";
4387
+ const $ = () => {
4388
+ fetch(c).then((L) => L.json()).then((L) => {
4389
+ Object.keys(L).forEach((C) => {
4390
+ Tt(C, L[C]);
4330
4391
  });
4331
- }).catch((B) => {
4332
- console.log(B);
4392
+ }).catch((L) => {
4393
+ console.log(L);
4333
4394
  });
4334
4395
  };
4335
- Object.keys(St).forEach((g) => {
4336
- Ht(g, St[g]);
4396
+ Object.keys(Ht).forEach((g) => {
4397
+ Tt(g, Ht[g]);
4337
4398
  });
4338
- const C = () => {
4399
+ const A = () => {
4339
4400
  window.postMessage(
4340
4401
  {
4341
4402
  type: "PlayerAccountMenuActive",
4342
- isMobile: p
4403
+ isMobile: v
4343
4404
  },
4344
4405
  window.location.href
4345
4406
  );
4346
- }, M = () => {
4407
+ }, S = () => {
4347
4408
  let g = new URL(`${i}/v1/player/${a}/hostedcashier/customertransactionhistoryurl`);
4348
4409
  g.searchParams.append("language", s);
4349
- let B = {
4410
+ let L = {
4350
4411
  method: "GET",
4351
4412
  headers: {
4352
4413
  "X-SessionId": o,
4353
4414
  accept: "application/json"
4354
4415
  }
4355
4416
  };
4356
- fetch(g.href, B).then((w) => w.json()).then(
4357
- (w) => {
4358
- r(1, v = !1), r(2, d = w.CashierUrl);
4417
+ fetch(g.href, L).then((C) => C.json()).then(
4418
+ (C) => {
4419
+ r(1, m = !1), r(2, T = C.CashierUrl);
4359
4420
  },
4360
- (w) => {
4361
- console.error(w);
4421
+ (C) => {
4422
+ console.error(C);
4362
4423
  }
4363
4424
  );
4364
- }, S = () => {
4365
- Ii(s);
4366
4425
  }, R = () => {
4367
- let g = document.createElement("style");
4368
- g.innerHTML = l, c.appendChild(g);
4369
- }, P = () => {
4370
- let g = new URL(u), B = document.createElement("style");
4371
- fetch(g.href).then((w) => w.text()).then((w) => {
4372
- B.innerHTML = w, setTimeout(
4373
- () => {
4374
- c.appendChild(B);
4375
- },
4376
- 1
4377
- );
4378
- });
4379
- }, D = () => C();
4380
- function ue(g) {
4426
+ Ni(s);
4427
+ };
4428
+ dr(() => () => {
4429
+ });
4430
+ const P = () => A();
4431
+ function D(g) {
4381
4432
  Ne[g ? "unshift" : "push"](() => {
4382
- c = g, r(0, c);
4433
+ f = g, r(0, f);
4383
4434
  });
4384
4435
  }
4385
4436
  return e.$$set = (g) => {
4386
- "endpoint" in g && r(6, i = g.endpoint), "session" in g && r(7, o = g.session), "playerid" in g && r(8, a = g.playerid), "lang" in g && r(9, s = g.lang), "clientstyling" in g && r(10, l = g.clientstyling), "clientstylingurl" in g && r(11, u = g.clientstylingurl), "translationurl" in g && r(12, h = g.translationurl);
4437
+ "endpoint" in g && r(6, i = g.endpoint), "session" in g && r(7, o = g.session), "playerid" in g && r(8, a = g.playerid), "lang" in g && r(9, s = g.lang), "clientstyling" in g && r(10, l = g.clientstyling), "clientstylingurl" in g && r(11, u = g.clientstylingurl), "mbsource" in g && r(12, h = g.mbsource), "translationurl" in g && r(13, c = g.translationurl);
4387
4438
  }, e.$$.update = () => {
4388
4439
  e.$$.dirty & /*lang*/
4389
- 512 && s && S(), e.$$.dirty & /*session, playerid, endpoint, lang*/
4390
- 960 && o && a && i && s && M(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4391
- 2049 && u && c && P(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4392
- 1025 && l && c && R(), e.$$.dirty & /*translationurl*/
4393
- 4096 && h && T();
4440
+ 512 && s && R(), e.$$.dirty & /*session, playerid, endpoint, lang*/
4441
+ 960 && o && a && i && s && S(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4442
+ 1025 && l && f && Li(f, l), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4443
+ 2049 && u && f && Ci(f, u), e.$$.dirty & /*mbsource, customStylingContainer*/
4444
+ 4097 && h && f && Mi(f, `${h}.Style`), e.$$.dirty & /*translationurl*/
4445
+ 8192 && c && $();
4394
4446
  }, [
4395
- c,
4396
- v,
4397
- d,
4447
+ f,
4448
+ m,
4449
+ T,
4398
4450
  n,
4399
- p,
4400
- C,
4451
+ v,
4452
+ A,
4401
4453
  i,
4402
4454
  o,
4403
4455
  a,
@@ -4405,18 +4457,19 @@ function Ri(e, t, r) {
4405
4457
  l,
4406
4458
  u,
4407
4459
  h,
4408
- D,
4409
- ue
4460
+ c,
4461
+ P,
4462
+ D
4410
4463
  ];
4411
4464
  }
4412
- class Ui extends wr {
4465
+ class ji extends Br {
4413
4466
  constructor(t) {
4414
- super(), Hr(
4467
+ super(), Sr(
4415
4468
  this,
4416
4469
  t,
4417
- Ri,
4418
- $i,
4419
- Bt,
4470
+ Fi,
4471
+ Gi,
4472
+ wt,
4420
4473
  {
4421
4474
  endpoint: 6,
4422
4475
  session: 7,
@@ -4424,55 +4477,62 @@ class Ui extends wr {
4424
4477
  lang: 9,
4425
4478
  clientstyling: 10,
4426
4479
  clientstylingurl: 11,
4427
- translationurl: 12
4480
+ mbsource: 12,
4481
+ translationurl: 13
4428
4482
  },
4429
- Ni
4483
+ $i
4430
4484
  );
4431
4485
  }
4432
4486
  get endpoint() {
4433
4487
  return this.$$.ctx[6];
4434
4488
  }
4435
4489
  set endpoint(t) {
4436
- this.$$set({ endpoint: t }), O();
4490
+ this.$$set({ endpoint: t }), B();
4437
4491
  }
4438
4492
  get session() {
4439
4493
  return this.$$.ctx[7];
4440
4494
  }
4441
4495
  set session(t) {
4442
- this.$$set({ session: t }), O();
4496
+ this.$$set({ session: t }), B();
4443
4497
  }
4444
4498
  get playerid() {
4445
4499
  return this.$$.ctx[8];
4446
4500
  }
4447
4501
  set playerid(t) {
4448
- this.$$set({ playerid: t }), O();
4502
+ this.$$set({ playerid: t }), B();
4449
4503
  }
4450
4504
  get lang() {
4451
4505
  return this.$$.ctx[9];
4452
4506
  }
4453
4507
  set lang(t) {
4454
- this.$$set({ lang: t }), O();
4508
+ this.$$set({ lang: t }), B();
4455
4509
  }
4456
4510
  get clientstyling() {
4457
4511
  return this.$$.ctx[10];
4458
4512
  }
4459
4513
  set clientstyling(t) {
4460
- this.$$set({ clientstyling: t }), O();
4514
+ this.$$set({ clientstyling: t }), B();
4461
4515
  }
4462
4516
  get clientstylingurl() {
4463
4517
  return this.$$.ctx[11];
4464
4518
  }
4465
4519
  set clientstylingurl(t) {
4466
- this.$$set({ clientstylingurl: t }), O();
4520
+ this.$$set({ clientstylingurl: t }), B();
4467
4521
  }
4468
- get translationurl() {
4522
+ get mbsource() {
4469
4523
  return this.$$.ctx[12];
4470
4524
  }
4525
+ set mbsource(t) {
4526
+ this.$$set({ mbsource: t }), B();
4527
+ }
4528
+ get translationurl() {
4529
+ return this.$$.ctx[13];
4530
+ }
4471
4531
  set translationurl(t) {
4472
- this.$$set({ translationurl: t }), O();
4532
+ this.$$set({ translationurl: t }), B();
4473
4533
  }
4474
4534
  }
4475
- Sr(Ui, { endpoint: {}, session: {}, playerid: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4535
+ wr(ji, { endpoint: {}, session: {}, playerid: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
4476
4536
  export {
4477
- Ui as P
4537
+ ji as P
4478
4538
  };