@everymatrix/casino-lobby-mini-games 0.1.7 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/components/CasinoLobbyMiniGames-Bdk7n6JL.cjs +20 -0
  2. package/components/{CasinoLobbyMiniGames-Bh5LeG52.js → CasinoLobbyMiniGames-D1sxO4VS.js} +761 -782
  3. package/components/{CasinoLobbyMiniGames-BY57Q6t9.js → CasinoLobbyMiniGames-DzBHREnl.js} +787 -808
  4. package/components/{CasinoMysteryChestContainer-IiI_otYE.js → CasinoMysteryChestContainer-Bn5n50V5.js} +16 -16
  5. package/components/{CasinoMysteryChestContainer-wxjkuWy1.js → CasinoMysteryChestContainer-BnZD-4Un.js} +18 -18
  6. package/components/{CasinoMysteryChestContainer-Z25Fea_T.cjs → CasinoMysteryChestContainer-DAU5Oplt.cjs} +1 -1
  7. package/components/{CasinoMysteryChestDetails-Dqlj_CKW.js → CasinoMysteryChestDetails-B7bhsWuh.js} +37 -37
  8. package/components/{CasinoMysteryChestDetails-foimB6DB.cjs → CasinoMysteryChestDetails-Dbmb_MaI.cjs} +1 -1
  9. package/components/{CasinoMysteryChestDetails-Chfd66X8.js → CasinoMysteryChestDetails-qHXro0_t.js} +23 -23
  10. package/components/{CasinoMysteryChestModal-CC3ky83r.js → CasinoMysteryChestModal-CIbKo1x8.js} +13 -13
  11. package/components/{CasinoMysteryChestModal-a-4F-9oK.cjs → CasinoMysteryChestModal-DHnHUih2.cjs} +1 -1
  12. package/components/{CasinoMysteryChestModal-CePqroCF.js → CasinoMysteryChestModal-DVm5tmVE.js} +16 -16
  13. package/components/{CasinoMysteryChestsList-DK9sWaBi.js → CasinoMysteryChestsList-BX2a9-qE.js} +73 -71
  14. package/components/CasinoMysteryChestsList-DzLQUIN8.cjs +1 -0
  15. package/components/{CasinoMysteryChestsList-IyypXB58.js → CasinoMysteryChestsList-wNRg8m45.js} +73 -71
  16. package/components/{GeneralAnimationLoading-kV60Vm7G.js → GeneralAnimationLoading-B8IIGiV2.js} +13 -13
  17. package/components/{GeneralAnimationLoading-ie71G-dL.cjs → GeneralAnimationLoading-BywVusIV.cjs} +1 -1
  18. package/components/{GeneralAnimationLoading-C5zco7Jv.js → GeneralAnimationLoading-gYscime_.js} +17 -17
  19. package/es2015/casino-lobby-mini-games.cjs +1 -1
  20. package/es2015/casino-lobby-mini-games.js +1 -1
  21. package/esnext/casino-lobby-mini-games.js +1 -1
  22. package/package.json +1 -1
  23. package/components/CasinoLobbyMiniGames-CajMXLVl.cjs +0 -20
  24. package/components/CasinoMysteryChestsList-Bub2sm61.cjs +0 -1
@@ -1,28 +1,28 @@
1
1
  function I() {
2
2
  }
3
- function Mt(e) {
3
+ function It(e) {
4
4
  return e();
5
5
  }
6
- function ht() {
6
+ function at() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
- function te(e) {
10
- e.forEach(Mt);
9
+ function re(e) {
10
+ e.forEach(It);
11
11
  }
12
- function st(e) {
12
+ function tt(e) {
13
13
  return typeof e == "function";
14
14
  }
15
- function Nt(e, t) {
15
+ function Lt(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
18
  let me;
19
- function ns(e, t) {
19
+ function ts(e, t) {
20
20
  return e === t ? !0 : (me || (me = document.createElement("a")), me.href = t, e === me.href);
21
21
  }
22
- function br(e) {
22
+ function mr(e) {
23
23
  return Object.keys(e).length === 0;
24
24
  }
25
- function $t(e, ...t) {
25
+ function Mt(e, ...t) {
26
26
  if (e == null) {
27
27
  for (const n of t)
28
28
  n(void 0);
@@ -31,20 +31,20 @@ function $t(e, ...t) {
31
31
  const r = e.subscribe(...t);
32
32
  return r.unsubscribe ? () => r.unsubscribe() : r;
33
33
  }
34
- function yr(e, t, r) {
35
- e.$$.on_destroy.push($t(t, r));
34
+ function br(e, t, r) {
35
+ e.$$.on_destroy.push(Mt(t, r));
36
36
  }
37
- function H(e, t) {
37
+ function w(e, t) {
38
38
  e.appendChild(t);
39
39
  }
40
- function gr(e, t, r) {
41
- const n = vr(e);
40
+ function yr(e, t, r) {
41
+ const n = gr(e);
42
42
  if (!n.getElementById(t)) {
43
43
  const i = C("style");
44
- i.id = t, i.textContent = r, _r(n, i);
44
+ i.id = t, i.textContent = r, vr(n, i);
45
45
  }
46
46
  }
47
- function vr(e) {
47
+ function gr(e) {
48
48
  if (!e)
49
49
  return document;
50
50
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -54,20 +54,20 @@ function vr(e) {
54
54
  t
55
55
  ) : e.ownerDocument;
56
56
  }
57
- function _r(e, t) {
58
- return H(
57
+ function vr(e, t) {
58
+ return w(
59
59
  /** @type {Document} */
60
60
  e.head || e,
61
61
  t
62
62
  ), t.sheet;
63
63
  }
64
- function re(e, t, r) {
64
+ function ne(e, t, r) {
65
65
  e.insertBefore(t, r || null);
66
66
  }
67
67
  function k(e) {
68
68
  e.parentNode && e.parentNode.removeChild(e);
69
69
  }
70
- function is(e, t) {
70
+ function rs(e, t) {
71
71
  for (let r = 0; r < e.length; r += 1)
72
72
  e[r] && e[r].d(t);
73
73
  }
@@ -80,20 +80,20 @@ function Q(e) {
80
80
  function be() {
81
81
  return Q(" ");
82
82
  }
83
- function ss() {
83
+ function ns() {
84
84
  return Q("");
85
85
  }
86
86
  function ye(e, t, r, n) {
87
87
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
88
88
  }
89
- function O(e, t, r) {
89
+ function B(e, t, r) {
90
90
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
91
91
  }
92
92
  function $(e, t, r) {
93
93
  const n = t.toLowerCase();
94
- n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : O(e, t, r);
94
+ n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : B(e, t, r);
95
95
  }
96
- function Er(e) {
96
+ function _r(e) {
97
97
  return Array.from(e.childNodes);
98
98
  }
99
99
  function ge(e, t) {
@@ -103,7 +103,7 @@ function ge(e, t) {
103
103
  function G(e, t, r) {
104
104
  e.classList.toggle(t, !!r);
105
105
  }
106
- function xr(e) {
106
+ function Er(e) {
107
107
  const t = {};
108
108
  return e.childNodes.forEach(
109
109
  /** @param {Element} node */
@@ -112,90 +112,90 @@ function xr(e) {
112
112
  }
113
113
  ), t;
114
114
  }
115
- let he;
116
- function ue(e) {
117
- he = e;
115
+ let le;
116
+ function he(e) {
117
+ le = e;
118
118
  }
119
- function Sr() {
120
- if (!he)
119
+ function xr() {
120
+ if (!le)
121
121
  throw new Error("Function called outside component initialization");
122
- return he;
122
+ return le;
123
123
  }
124
- function wr(e) {
125
- Sr().$$.on_mount.push(e);
124
+ function Sr(e) {
125
+ xr().$$.on_mount.push(e);
126
126
  }
127
- const Z = [], je = [];
127
+ const Z = [], Ge = [];
128
128
  let q = [];
129
- const lt = [], Tr = /* @__PURE__ */ Promise.resolve();
130
- let ke = !1;
129
+ const ut = [], Tr = /* @__PURE__ */ Promise.resolve();
130
+ let Fe = !1;
131
131
  function Hr() {
132
- ke || (ke = !0, Tr.then(U));
132
+ Fe || (Fe = !0, Tr.then(R));
133
133
  }
134
- function Ve(e) {
134
+ function je(e) {
135
135
  q.push(e);
136
136
  }
137
- const Me = /* @__PURE__ */ new Set();
137
+ const Ie = /* @__PURE__ */ new Set();
138
138
  let W = 0;
139
- function U() {
139
+ function R() {
140
140
  if (W !== 0)
141
141
  return;
142
- const e = he;
142
+ const e = le;
143
143
  do {
144
144
  try {
145
145
  for (; W < Z.length; ) {
146
146
  const t = Z[W];
147
- W++, ue(t), Or(t.$$);
147
+ W++, he(t), wr(t.$$);
148
148
  }
149
149
  } catch (t) {
150
150
  throw Z.length = 0, W = 0, t;
151
151
  }
152
- for (ue(null), Z.length = 0, W = 0; je.length; )
153
- je.pop()();
152
+ for (he(null), Z.length = 0, W = 0; Ge.length; )
153
+ Ge.pop()();
154
154
  for (let t = 0; t < q.length; t += 1) {
155
155
  const r = q[t];
156
- Me.has(r) || (Me.add(r), r());
156
+ Ie.has(r) || (Ie.add(r), r());
157
157
  }
158
158
  q.length = 0;
159
159
  } while (Z.length);
160
- for (; lt.length; )
161
- lt.pop()();
162
- ke = !1, Me.clear(), ue(e);
160
+ for (; ut.length; )
161
+ ut.pop()();
162
+ Fe = !1, Ie.clear(), he(e);
163
163
  }
164
- function Or(e) {
164
+ function wr(e) {
165
165
  if (e.fragment !== null) {
166
- e.update(), te(e.before_update);
166
+ e.update(), re(e.before_update);
167
167
  const t = e.dirty;
168
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ve);
168
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(je);
169
169
  }
170
170
  }
171
- function Ar(e) {
171
+ function Br(e) {
172
172
  const t = [], r = [];
173
173
  q.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), q = t;
174
174
  }
175
- const Br = /* @__PURE__ */ new Set();
175
+ const Ar = /* @__PURE__ */ new Set();
176
176
  function Pr(e, t) {
177
- e && e.i && (Br.delete(e), e.i(t));
177
+ e && e.i && (Ar.delete(e), e.i(t));
178
178
  }
179
- function os(e) {
179
+ function is(e) {
180
180
  return e?.length !== void 0 ? e : Array.from(e);
181
181
  }
182
- function Cr(e, t, r) {
182
+ function Or(e, t, r) {
183
183
  const { fragment: n, after_update: i } = e.$$;
184
- n && n.m(t, r), Ve(() => {
185
- const s = e.$$.on_mount.map(Mt).filter(st);
186
- e.$$.on_destroy ? e.$$.on_destroy.push(...s) : te(s), e.$$.on_mount = [];
187
- }), i.forEach(Ve);
184
+ n && n.m(t, r), je(() => {
185
+ const s = e.$$.on_mount.map(It).filter(tt);
186
+ e.$$.on_destroy ? e.$$.on_destroy.push(...s) : re(s), e.$$.on_mount = [];
187
+ }), i.forEach(je);
188
188
  }
189
- function Ir(e, t) {
189
+ function Cr(e, t) {
190
190
  const r = e.$$;
191
- r.fragment !== null && (Ar(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
191
+ r.fragment !== null && (Br(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
192
192
  }
193
- function Lr(e, t) {
193
+ function Ir(e, t) {
194
194
  e.$$.dirty[0] === -1 && (Z.push(e), Hr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
195
195
  }
196
- function Mr(e, t, r, n, i, s, o = null, a = [-1]) {
197
- const h = he;
198
- ue(e);
196
+ function Lr(e, t, r, n, i, s, o = null, a = [-1]) {
197
+ const h = le;
198
+ he(e);
199
199
  const u = e.$$ = {
200
200
  fragment: null,
201
201
  ctx: [],
@@ -203,7 +203,7 @@ function Mr(e, t, r, n, i, s, o = null, a = [-1]) {
203
203
  props: s,
204
204
  update: I,
205
205
  not_equal: i,
206
- bound: ht(),
206
+ bound: at(),
207
207
  // lifecycle
208
208
  on_mount: [],
209
209
  on_destroy: [],
@@ -212,28 +212,28 @@ function Mr(e, t, r, n, i, s, o = null, a = [-1]) {
212
212
  after_update: [],
213
213
  context: new Map(t.context || (h ? h.$$.context : [])),
214
214
  // everything else
215
- callbacks: ht(),
215
+ callbacks: at(),
216
216
  dirty: a,
217
217
  skip_bound: !1,
218
218
  root: t.target || h.$$.root
219
219
  };
220
220
  o && o(u.root);
221
221
  let l = !1;
222
- if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
223
- const y = p.length ? p[0] : f;
224
- return u.ctx && i(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), l && Lr(e, c)), f;
225
- }) : [], u.update(), l = !0, te(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
222
+ if (u.ctx = r ? r(e, t.props || {}, (c, f, ...d) => {
223
+ const y = d.length ? d[0] : f;
224
+ return u.ctx && i(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), l && Ir(e, c)), f;
225
+ }) : [], u.update(), l = !0, re(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
226
226
  if (t.hydrate) {
227
- const c = Er(t.target);
227
+ const c = _r(t.target);
228
228
  u.fragment && u.fragment.l(c), c.forEach(k);
229
229
  } else
230
230
  u.fragment && u.fragment.c();
231
- t.intro && Pr(e.$$.fragment), Cr(e, t.target, t.anchor), U();
231
+ t.intro && Pr(e.$$.fragment), Or(e, t.target, t.anchor), R();
232
232
  }
233
- ue(h);
233
+ he(h);
234
234
  }
235
- let Rt;
236
- typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
235
+ let Nt;
236
+ typeof HTMLElement == "function" && (Nt = class extends HTMLElement {
237
237
  /** The Svelte component constructor */
238
238
  $$ctor;
239
239
  /** Slots */
@@ -275,14 +275,14 @@ typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
275
275
  let s;
276
276
  return {
277
277
  c: function() {
278
- s = C("slot"), i !== "default" && O(s, "name", i);
278
+ s = C("slot"), i !== "default" && B(s, "name", i);
279
279
  },
280
280
  /**
281
281
  * @param {HTMLElement} target
282
282
  * @param {HTMLElement} [anchor]
283
283
  */
284
284
  m: function(h, u) {
285
- re(h, s, u);
285
+ ne(h, s, u);
286
286
  },
287
287
  d: function(h) {
288
288
  h && k(s);
@@ -292,7 +292,7 @@ typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
292
292
  };
293
293
  if (await Promise.resolve(), !this.$$cn || this.$$c)
294
294
  return;
295
- const t = {}, r = xr(this);
295
+ const t = {}, r = Er(this);
296
296
  for (const i of this.$$s)
297
297
  i in r && (t[i] = [e(i)]);
298
298
  for (const i of this.attributes) {
@@ -379,8 +379,8 @@ function Ee(e, t, r, n) {
379
379
  return t;
380
380
  }
381
381
  }
382
- function Nr(e, t, r, n, i, s) {
383
- let o = class extends Rt {
382
+ function Mr(e, t, r, n, i, s) {
383
+ let o = class extends Nt {
384
384
  constructor() {
385
385
  super(e, r, i), this.$$p_d = t;
386
386
  }
@@ -408,7 +408,7 @@ function Nr(e, t, r, n, i, s) {
408
408
  }), e.element = /** @type {any} */
409
409
  o, o;
410
410
  }
411
- class $r {
411
+ class Nr {
412
412
  /**
413
413
  * ### PRIVATE API
414
414
  *
@@ -427,7 +427,7 @@ class $r {
427
427
  $$set = void 0;
428
428
  /** @returns {void} */
429
429
  $destroy() {
430
- Ir(this, 1), this.$destroy = I;
430
+ Cr(this, 1), this.$destroy = I;
431
431
  }
432
432
  /**
433
433
  * @template {Extract<keyof Events, string>} K
@@ -436,7 +436,7 @@ class $r {
436
436
  * @returns {() => void}
437
437
  */
438
438
  $on(t, r) {
439
- if (!st(r))
439
+ if (!tt(r))
440
440
  return I;
441
441
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
442
442
  return n.push(r), () => {
@@ -449,11 +449,11 @@ class $r {
449
449
  * @returns {void}
450
450
  */
451
451
  $set(t) {
452
- this.$$set && !br(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
452
+ this.$$set && !mr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
453
453
  }
454
454
  }
455
- const Rr = "4";
456
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Rr);
455
+ const $r = "4";
456
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add($r);
457
457
  if (typeof window < "u") {
458
458
  let e = function(t) {
459
459
  return function(...r) {
@@ -466,7 +466,7 @@ if (typeof window < "u") {
466
466
  }
467
467
  };
468
468
  };
469
- customElements.define = e(customElements.define), import("./CasinoMysteryChestContainer-IiI_otYE.js").then(({ default: t }) => {
469
+ customElements.define = e(customElements.define), import("./CasinoMysteryChestContainer-Bn5n50V5.js").then(({ default: t }) => {
470
470
  !customElements.get("casino-mystery-chest-container") && customElements.define("casino-mystery-chest-container", t.element);
471
471
  });
472
472
  }
@@ -484,24 +484,43 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
484
484
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
485
485
  PERFORMANCE OF THIS SOFTWARE.
486
486
  ***************************************************************************** */
487
- var Xe = function(e, t) {
488
- return Xe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
487
+ var ke = function(e, t) {
488
+ return ke = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
489
489
  r.__proto__ = n;
490
490
  } || function(r, n) {
491
491
  for (var i in n)
492
492
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
493
- }, Xe(e, t);
493
+ }, ke(e, t);
494
494
  };
495
- function fe(e, t) {
495
+ function D(e, t) {
496
496
  if (typeof t != "function" && t !== null)
497
497
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
498
- Xe(e, t);
498
+ ke(e, t);
499
499
  function r() {
500
500
  this.constructor = e;
501
501
  }
502
502
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
503
503
  }
504
- function We(e) {
504
+ var v = function() {
505
+ return v = Object.assign || function(t) {
506
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
507
+ r = arguments[n];
508
+ for (var s in r)
509
+ Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
510
+ }
511
+ return t;
512
+ }, v.apply(this, arguments);
513
+ };
514
+ function Rr(e, t) {
515
+ var r = {};
516
+ for (var n in e)
517
+ Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
518
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
519
+ for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
520
+ t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
521
+ return r;
522
+ }
523
+ function Ve(e) {
505
524
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
506
525
  if (r)
507
526
  return r.call(e);
@@ -513,7 +532,7 @@ function We(e) {
513
532
  };
514
533
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
515
534
  }
516
- function ze(e, t) {
535
+ function Xe(e, t) {
517
536
  var r = typeof Symbol == "function" && e[Symbol.iterator];
518
537
  if (!r)
519
538
  return e;
@@ -533,22 +552,22 @@ function ze(e, t) {
533
552
  }
534
553
  return s;
535
554
  }
536
- function Ze(e, t, r) {
537
- if (arguments.length === 2)
555
+ function J(e, t, r) {
556
+ if (r || arguments.length === 2)
538
557
  for (var n = 0, i = t.length, s; n < i; n++)
539
558
  (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
540
559
  return e.concat(s || t);
541
560
  }
542
- function D(e) {
561
+ function U(e) {
543
562
  return typeof e == "function";
544
563
  }
545
- function Ut(e) {
564
+ function $t(e) {
546
565
  var t = function(n) {
547
566
  Error.call(n), n.stack = new Error().stack;
548
567
  }, r = e(t);
549
568
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
550
569
  }
551
- var Ne = Ut(function(e) {
570
+ var Le = $t(function(e) {
552
571
  return function(r) {
553
572
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
554
573
  ` + r.map(function(n, i) {
@@ -557,13 +576,13 @@ var Ne = Ut(function(e) {
557
576
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
558
577
  };
559
578
  });
560
- function Qe(e, t) {
579
+ function We(e, t) {
561
580
  if (e) {
562
581
  var r = e.indexOf(t);
563
582
  0 <= r && e.splice(r, 1);
564
583
  }
565
584
  }
566
- var Be = function() {
585
+ var Ae = function() {
567
586
  function e(t) {
568
587
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
569
588
  }
@@ -575,7 +594,7 @@ var Be = function() {
575
594
  if (o)
576
595
  if (this._parentage = null, Array.isArray(o))
577
596
  try {
578
- for (var a = We(o), h = a.next(); !h.done; h = a.next()) {
597
+ for (var a = Ve(o), h = a.next(); !h.done; h = a.next()) {
579
598
  var u = h.value;
580
599
  u.remove(this);
581
600
  }
@@ -592,29 +611,29 @@ var Be = function() {
592
611
  else
593
612
  o.remove(this);
594
613
  var l = this.initialTeardown;
595
- if (D(l))
614
+ if (U(l))
596
615
  try {
597
616
  l();
598
617
  } catch (g) {
599
- s = g instanceof Ne ? g.errors : [g];
618
+ s = g instanceof Le ? g.errors : [g];
600
619
  }
601
620
  var c = this._finalizers;
602
621
  if (c) {
603
622
  this._finalizers = null;
604
623
  try {
605
- for (var f = We(c), p = f.next(); !p.done; p = f.next()) {
606
- var y = p.value;
624
+ for (var f = Ve(c), d = f.next(); !d.done; d = f.next()) {
625
+ var y = d.value;
607
626
  try {
608
- ct(y);
627
+ ht(y);
609
628
  } catch (g) {
610
- s = s ?? [], g instanceof Ne ? s = Ze(Ze([], ze(s)), ze(g.errors)) : s.push(g);
629
+ s = s ?? [], g instanceof Le ? s = J(J([], Xe(s)), Xe(g.errors)) : s.push(g);
611
630
  }
612
631
  }
613
632
  } catch (g) {
614
633
  n = { error: g };
615
634
  } finally {
616
635
  try {
617
- p && !p.done && (i = f.return) && i.call(f);
636
+ d && !d.done && (i = f.return) && i.call(f);
618
637
  } finally {
619
638
  if (n)
620
639
  throw n.error;
@@ -622,13 +641,13 @@ var Be = function() {
622
641
  }
623
642
  }
624
643
  if (s)
625
- throw new Ne(s);
644
+ throw new Le(s);
626
645
  }
627
646
  }, e.prototype.add = function(t) {
628
647
  var r;
629
648
  if (t && t !== this)
630
649
  if (this.closed)
631
- ct(t);
650
+ ht(t);
632
651
  else {
633
652
  if (t instanceof e) {
634
653
  if (t.closed || t._hasParent(this))
@@ -645,52 +664,56 @@ var Be = function() {
645
664
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
646
665
  }, e.prototype._removeParent = function(t) {
647
666
  var r = this._parentage;
648
- r === t ? this._parentage = null : Array.isArray(r) && Qe(r, t);
667
+ r === t ? this._parentage = null : Array.isArray(r) && We(r, t);
649
668
  }, e.prototype.remove = function(t) {
650
669
  var r = this._finalizers;
651
- r && Qe(r, t), t instanceof e && t._removeParent(this);
670
+ r && We(r, t), t instanceof e && t._removeParent(this);
652
671
  }, e.EMPTY = function() {
653
672
  var t = new e();
654
673
  return t.closed = !0, t;
655
674
  }(), e;
656
- }(), Dt = Be.EMPTY;
657
- function Gt(e) {
658
- return e instanceof Be || e && "closed" in e && D(e.remove) && D(e.add) && D(e.unsubscribe);
659
- }
660
- function ct(e) {
661
- D(e) ? e() : e.unsubscribe();
662
- }
663
- var Ur = {
664
- Promise: void 0
665
- }, Dr = {
675
+ }(), Rt = Ae.EMPTY;
676
+ function Ut(e) {
677
+ return e instanceof Ae || e && "closed" in e && U(e.remove) && U(e.add) && U(e.unsubscribe);
678
+ }
679
+ function ht(e) {
680
+ U(e) ? e() : e.unsubscribe();
681
+ }
682
+ var Dt = {
683
+ onUnhandledError: null,
684
+ onStoppedNotification: null,
685
+ Promise: void 0,
686
+ useDeprecatedSynchronousErrorHandling: !1,
687
+ useDeprecatedNextContext: !1
688
+ }, Ur = {
666
689
  setTimeout: function(e, t) {
667
690
  for (var r = [], n = 2; n < arguments.length; n++)
668
691
  r[n - 2] = arguments[n];
669
- return setTimeout.apply(void 0, Ze([e, t], ze(r)));
692
+ return setTimeout.apply(void 0, J([e, t], Xe(r)));
670
693
  },
671
694
  clearTimeout: function(e) {
672
695
  return clearTimeout(e);
673
696
  },
674
697
  delegate: void 0
675
698
  };
676
- function Gr(e) {
677
- Dr.setTimeout(function() {
699
+ function Dr(e) {
700
+ Ur.setTimeout(function() {
678
701
  throw e;
679
702
  });
680
703
  }
681
- function ft() {
704
+ function lt() {
682
705
  }
683
706
  function xe(e) {
684
707
  e();
685
708
  }
686
- var Ft = function(e) {
687
- fe(t, e);
709
+ var Gt = function(e) {
710
+ D(t, e);
688
711
  function t(r) {
689
712
  var n = e.call(this) || this;
690
- return n.isStopped = !1, r ? (n.destination = r, Gt(r) && r.add(n)) : n.destination = kr, n;
713
+ return n.isStopped = !1, r ? (n.destination = r, Ut(r) && r.add(n)) : n.destination = kr, n;
691
714
  }
692
715
  return t.create = function(r, n, i) {
693
- return new qe(r, n, i);
716
+ return new ze(r, n, i);
694
717
  }, t.prototype.next = function(r) {
695
718
  this.isStopped || this._next(r);
696
719
  }, t.prototype.error = function(r) {
@@ -714,7 +737,11 @@ var Ft = function(e) {
714
737
  this.unsubscribe();
715
738
  }
716
739
  }, t;
717
- }(Be), Fr = function() {
740
+ }(Ae), Gr = Function.prototype.bind;
741
+ function Me(e, t) {
742
+ return Gr.call(e, t);
743
+ }
744
+ var Fr = function() {
718
745
  function e(t) {
719
746
  this.partialObserver = t;
720
747
  }
@@ -745,29 +772,41 @@ var Ft = function(e) {
745
772
  ve(r);
746
773
  }
747
774
  }, e;
748
- }(), qe = function(e) {
749
- fe(t, e);
775
+ }(), ze = function(e) {
776
+ D(t, e);
750
777
  function t(r, n, i) {
751
778
  var s = e.call(this) || this, o;
752
- return D(r) || !r ? o = {
753
- next: r ?? void 0,
754
- error: n ?? void 0,
755
- complete: i ?? void 0
756
- } : o = r, s.destination = new Fr(o), s;
779
+ if (U(r) || !r)
780
+ o = {
781
+ next: r ?? void 0,
782
+ error: n ?? void 0,
783
+ complete: i ?? void 0
784
+ };
785
+ else {
786
+ var a;
787
+ s && Dt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
788
+ return s.unsubscribe();
789
+ }, o = {
790
+ next: r.next && Me(r.next, a),
791
+ error: r.error && Me(r.error, a),
792
+ complete: r.complete && Me(r.complete, a)
793
+ }) : o = r;
794
+ }
795
+ return s.destination = new Fr(o), s;
757
796
  }
758
797
  return t;
759
- }(Ft);
798
+ }(Gt);
760
799
  function ve(e) {
761
- Gr(e);
800
+ Dr(e);
762
801
  }
763
802
  function jr(e) {
764
803
  throw e;
765
804
  }
766
805
  var kr = {
767
806
  closed: !0,
768
- next: ft,
807
+ next: lt,
769
808
  error: jr,
770
- complete: ft
809
+ complete: lt
771
810
  }, Vr = function() {
772
811
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
773
812
  }();
@@ -781,7 +820,7 @@ function Wr(e) {
781
820
  }, r);
782
821
  };
783
822
  }
784
- var pt = function() {
823
+ var ct = function() {
785
824
  function e(t) {
786
825
  t && (this._subscribe = t);
787
826
  }
@@ -789,7 +828,7 @@ var pt = function() {
789
828
  var r = new e();
790
829
  return r.source = this, r.operator = t, r;
791
830
  }, e.prototype.subscribe = function(t, r, n) {
792
- var i = this, s = Zr(t) ? t : new qe(t, r, n);
831
+ var i = this, s = Zr(t) ? t : new ze(t, r, n);
793
832
  return xe(function() {
794
833
  var o = i, a = o.operator, h = o.source;
795
834
  s.add(a ? a.call(s, h) : h ? i._subscribe(s) : i._trySubscribe(s));
@@ -802,8 +841,8 @@ var pt = function() {
802
841
  }
803
842
  }, e.prototype.forEach = function(t, r) {
804
843
  var n = this;
805
- return r = dt(r), new r(function(i, s) {
806
- var o = new qe({
844
+ return r = ft(r), new r(function(i, s) {
845
+ var o = new ze({
807
846
  next: function(a) {
808
847
  try {
809
848
  t(a);
@@ -827,7 +866,7 @@ var pt = function() {
827
866
  return Wr(t)(this);
828
867
  }, e.prototype.toPromise = function(t) {
829
868
  var r = this;
830
- return t = dt(t), new t(function(n, i) {
869
+ return t = ft(t), new t(function(n, i) {
831
870
  var s;
832
871
  r.subscribe(function(o) {
833
872
  return s = o;
@@ -841,28 +880,28 @@ var pt = function() {
841
880
  return new e(t);
842
881
  }, e;
843
882
  }();
844
- function dt(e) {
883
+ function ft(e) {
845
884
  var t;
846
- return (t = e ?? Ur.Promise) !== null && t !== void 0 ? t : Promise;
885
+ return (t = e ?? Dt.Promise) !== null && t !== void 0 ? t : Promise;
847
886
  }
848
887
  function zr(e) {
849
- return e && D(e.next) && D(e.error) && D(e.complete);
888
+ return e && U(e.next) && U(e.error) && U(e.complete);
850
889
  }
851
890
  function Zr(e) {
852
- return e && e instanceof Ft || zr(e) && Gt(e);
891
+ return e && e instanceof Gt || zr(e) && Ut(e);
853
892
  }
854
- var Qr = Ut(function(e) {
893
+ var Qr = $t(function(e) {
855
894
  return function() {
856
895
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
857
896
  };
858
- }), jt = function(e) {
859
- fe(t, e);
897
+ }), Ft = function(e) {
898
+ D(t, e);
860
899
  function t() {
861
900
  var r = e.call(this) || this;
862
901
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
863
902
  }
864
903
  return t.prototype.lift = function(r) {
865
- var n = new mt(this, this);
904
+ var n = new dt(this, this);
866
905
  return n.operator = r, n;
867
906
  }, t.prototype._throwIfClosed = function() {
868
907
  if (this.closed)
@@ -874,7 +913,7 @@ var Qr = Ut(function(e) {
874
913
  if (n._throwIfClosed(), !n.isStopped) {
875
914
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
876
915
  try {
877
- for (var o = We(n.currentObservers), a = o.next(); !a.done; a = o.next()) {
916
+ for (var o = Ve(n.currentObservers), a = o.next(); !a.done; a = o.next()) {
878
917
  var h = a.value;
879
918
  h.next(r);
880
919
  }
@@ -923,20 +962,20 @@ var Qr = Ut(function(e) {
923
962
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
924
963
  }, t.prototype._innerSubscribe = function(r) {
925
964
  var n = this, i = this, s = i.hasError, o = i.isStopped, a = i.observers;
926
- return s || o ? Dt : (this.currentObservers = null, a.push(r), new Be(function() {
927
- n.currentObservers = null, Qe(a, r);
965
+ return s || o ? Rt : (this.currentObservers = null, a.push(r), new Ae(function() {
966
+ n.currentObservers = null, We(a, r);
928
967
  }));
929
968
  }, t.prototype._checkFinalizedStatuses = function(r) {
930
969
  var n = this, i = n.hasError, s = n.thrownError, o = n.isStopped;
931
970
  i ? r.error(s) : o && r.complete();
932
971
  }, t.prototype.asObservable = function() {
933
- var r = new pt();
972
+ var r = new ct();
934
973
  return r.source = this, r;
935
974
  }, t.create = function(r, n) {
936
- return new mt(r, n);
975
+ return new dt(r, n);
937
976
  }, t;
938
- }(pt), mt = function(e) {
939
- fe(t, e);
977
+ }(ct), dt = function(e) {
978
+ D(t, e);
940
979
  function t(r, n) {
941
980
  var i = e.call(this) || this;
942
981
  return i.destination = r, i.source = n, i;
@@ -952,17 +991,17 @@ var Qr = Ut(function(e) {
952
991
  (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
953
992
  }, t.prototype._subscribe = function(r) {
954
993
  var n, i;
955
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Dt;
994
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Rt;
956
995
  }, t;
957
- }(jt), kt = {
996
+ }(Ft), jt = {
958
997
  now: function() {
959
- return (kt.delegate || Date).now();
998
+ return (jt.delegate || Date).now();
960
999
  },
961
1000
  delegate: void 0
962
1001
  }, qr = function(e) {
963
- fe(t, e);
1002
+ D(t, e);
964
1003
  function t(r, n, i) {
965
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = kt);
1004
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = jt);
966
1005
  var s = e.call(this) || this;
967
1006
  return s._bufferSize = r, s._windowTime = n, s._timestampProvider = i, s._buffer = [], s._infiniteTimeWindow = !0, s._infiniteTimeWindow = n === 1 / 0, s._bufferSize = Math.max(1, r), s._windowTime = Math.max(1, n), s;
968
1007
  }
@@ -982,13 +1021,13 @@ var Qr = Ut(function(e) {
982
1021
  u && s.splice(0, u + 1);
983
1022
  }
984
1023
  }, t;
985
- }(jt);
986
- const bt = [], yt = {}, Jr = (e, t = 0) => {
987
- if (bt.indexOf(e) == -1) {
1024
+ }(Ft);
1025
+ const pt = [], mt = {}, Jr = (e, t = 0) => {
1026
+ if (pt.indexOf(e) == -1) {
988
1027
  const r = new qr(t);
989
- yt[e] = r, bt.push(e);
1028
+ mt[e] = r, pt.push(e);
990
1029
  }
991
- return yt[e];
1030
+ return mt[e];
992
1031
  }, z = [];
993
1032
  function Yr(e, t) {
994
1033
  return {
@@ -999,7 +1038,7 @@ function Pe(e, t = I) {
999
1038
  let r;
1000
1039
  const n = /* @__PURE__ */ new Set();
1001
1040
  function i(a) {
1002
- if (Nt(e, a) && (e = a, r)) {
1041
+ if (Lt(e, a) && (e = a, r)) {
1003
1042
  const h = !z.length;
1004
1043
  for (const u of n)
1005
1044
  u[1](), z.push(u, e);
@@ -1021,7 +1060,7 @@ function Pe(e, t = I) {
1021
1060
  }
1022
1061
  return { set: i, update: s, subscribe: o };
1023
1062
  }
1024
- function ne(e, t, r) {
1063
+ function ie(e, t, r) {
1025
1064
  const n = !Array.isArray(e), i = n ? [e] : e;
1026
1065
  if (!i.every(Boolean))
1027
1066
  throw new Error("derived() expects stores as input, got a falsy value");
@@ -1035,12 +1074,12 @@ function ne(e, t, r) {
1035
1074
  return;
1036
1075
  c();
1037
1076
  const y = t(n ? u[0] : u, o, a);
1038
- s ? o(y) : c = st(y) ? y : I;
1039
- }, p = i.map(
1040
- (y, g) => $t(
1077
+ s ? o(y) : c = tt(y) ? y : I;
1078
+ }, d = i.map(
1079
+ (y, g) => Mt(
1041
1080
  y,
1042
- (B) => {
1043
- u[g] = B, l &= ~(1 << g), h && f();
1081
+ (P) => {
1082
+ u[g] = P, l &= ~(1 << g), h && f();
1044
1083
  },
1045
1084
  () => {
1046
1085
  l |= 1 << g;
@@ -1048,7 +1087,7 @@ function ne(e, t, r) {
1048
1087
  )
1049
1088
  );
1050
1089
  return h = !0, f(), function() {
1051
- te(p), c(), h = !1;
1090
+ re(d), c(), h = !1;
1052
1091
  };
1053
1092
  });
1054
1093
  }
@@ -1072,29 +1111,29 @@ function on(e) {
1072
1111
  function an(e) {
1073
1112
  return Array.isArray(e) ? [] : {};
1074
1113
  }
1075
- function le(e, t) {
1076
- return t.clone !== !1 && t.isMergeableObject(e) ? J(an(e), e, t) : e;
1114
+ function ce(e, t) {
1115
+ return t.clone !== !1 && t.isMergeableObject(e) ? Y(an(e), e, t) : e;
1077
1116
  }
1078
1117
  function un(e, t, r) {
1079
1118
  return e.concat(t).map(function(n) {
1080
- return le(n, r);
1119
+ return ce(n, r);
1081
1120
  });
1082
1121
  }
1083
1122
  function hn(e, t) {
1084
1123
  if (!t.customMerge)
1085
- return J;
1124
+ return Y;
1086
1125
  var r = t.customMerge(e);
1087
- return typeof r == "function" ? r : J;
1126
+ return typeof r == "function" ? r : Y;
1088
1127
  }
1089
1128
  function ln(e) {
1090
1129
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1091
1130
  return Object.propertyIsEnumerable.call(e, t);
1092
1131
  }) : [];
1093
1132
  }
1094
- function gt(e) {
1133
+ function bt(e) {
1095
1134
  return Object.keys(e).concat(ln(e));
1096
1135
  }
1097
- function Vt(e, t) {
1136
+ function kt(e, t) {
1098
1137
  try {
1099
1138
  return t in e;
1100
1139
  } catch {
@@ -1102,179 +1141,129 @@ function Vt(e, t) {
1102
1141
  }
1103
1142
  }
1104
1143
  function cn(e, t) {
1105
- return Vt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1144
+ return kt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1106
1145
  }
1107
1146
  function fn(e, t, r) {
1108
1147
  var n = {};
1109
- return r.isMergeableObject(e) && gt(e).forEach(function(i) {
1110
- n[i] = le(e[i], r);
1111
- }), gt(t).forEach(function(i) {
1112
- cn(e, i) || (Vt(e, i) && r.isMergeableObject(t[i]) ? n[i] = hn(i, r)(e[i], t[i], r) : n[i] = le(t[i], r));
1148
+ return r.isMergeableObject(e) && bt(e).forEach(function(i) {
1149
+ n[i] = ce(e[i], r);
1150
+ }), bt(t).forEach(function(i) {
1151
+ cn(e, i) || (kt(e, i) && r.isMergeableObject(t[i]) ? n[i] = hn(i, r)(e[i], t[i], r) : n[i] = ce(t[i], r));
1113
1152
  }), n;
1114
1153
  }
1115
- function J(e, t, r) {
1116
- r = r || {}, r.arrayMerge = r.arrayMerge || un, r.isMergeableObject = r.isMergeableObject || en, r.cloneUnlessOtherwiseSpecified = le;
1154
+ function Y(e, t, r) {
1155
+ r = r || {}, r.arrayMerge = r.arrayMerge || un, r.isMergeableObject = r.isMergeableObject || en, r.cloneUnlessOtherwiseSpecified = ce;
1117
1156
  var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
1118
- return s ? n ? r.arrayMerge(e, t, r) : fn(e, t, r) : le(t, r);
1157
+ return s ? n ? r.arrayMerge(e, t, r) : fn(e, t, r) : ce(t, r);
1119
1158
  }
1120
- J.all = function(t, r) {
1159
+ Y.all = function(t, r) {
1121
1160
  if (!Array.isArray(t))
1122
1161
  throw new Error("first argument should be an array");
1123
1162
  return t.reduce(function(n, i) {
1124
- return J(n, i, r);
1163
+ return Y(n, i, r);
1125
1164
  }, {});
1126
1165
  };
1127
- var pn = J, dn = pn;
1128
- const mn = /* @__PURE__ */ Kr(dn);
1129
- var Je = function(e, t) {
1130
- return Je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
1131
- r.__proto__ = n;
1132
- } || function(r, n) {
1133
- for (var i in n)
1134
- Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
1135
- }, Je(e, t);
1136
- };
1137
- function Ce(e, t) {
1138
- if (typeof t != "function" && t !== null)
1139
- throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
1140
- Je(e, t);
1141
- function r() {
1142
- this.constructor = e;
1143
- }
1144
- e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
1145
- }
1146
- var R = function() {
1147
- return R = Object.assign || function(t) {
1148
- for (var r, n = 1, i = arguments.length; n < i; n++) {
1149
- r = arguments[n];
1150
- for (var s in r)
1151
- Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
1152
- }
1153
- return t;
1154
- }, R.apply(this, arguments);
1155
- };
1156
- function bn(e, t) {
1157
- var r = {};
1158
- for (var n in e)
1159
- Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1160
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
1161
- for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
1162
- t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
1163
- return r;
1164
- }
1165
- function $e(e, t, r) {
1166
- if (r || arguments.length === 2)
1167
- for (var n = 0, i = t.length, s; n < i; n++)
1168
- (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
1169
- return e.concat(s || Array.prototype.slice.call(t));
1170
- }
1171
- function Re(e, t) {
1172
- var r = t && t.cache ? t.cache : Sn, n = t && t.serializer ? t.serializer : En, i = t && t.strategy ? t.strategy : vn;
1166
+ var dn = Y, pn = dn;
1167
+ const mn = /* @__PURE__ */ Kr(pn);
1168
+ function Ne(e, t) {
1169
+ var r = t && t.cache ? t.cache : En, n = t && t.serializer ? t.serializer : _n, i = t && t.strategy ? t.strategy : yn;
1173
1170
  return i(e, {
1174
1171
  cache: r,
1175
1172
  serializer: n
1176
1173
  });
1177
1174
  }
1178
- function yn(e) {
1175
+ function bn(e) {
1179
1176
  return e == null || typeof e == "number" || typeof e == "boolean";
1180
1177
  }
1181
- function gn(e, t, r, n) {
1182
- var i = yn(n) ? n : r(n), s = t.get(i);
1178
+ function Vt(e, t, r, n) {
1179
+ var i = bn(n) ? n : r(n), s = t.get(i);
1183
1180
  return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
1184
1181
  }
1185
1182
  function Xt(e, t, r) {
1186
1183
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
1187
1184
  return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
1188
1185
  }
1189
- function Wt(e, t, r, n, i) {
1186
+ function rt(e, t, r, n, i) {
1190
1187
  return r.bind(t, e, n, i);
1191
1188
  }
1192
- function vn(e, t) {
1193
- var r = e.length === 1 ? gn : Xt;
1194
- return Wt(e, this, r, t.cache.create(), t.serializer);
1189
+ function yn(e, t) {
1190
+ var r = e.length === 1 ? Vt : Xt;
1191
+ return rt(e, this, r, t.cache.create(), t.serializer);
1195
1192
  }
1196
- function _n(e, t) {
1197
- return Wt(e, this, Xt, t.cache.create(), t.serializer);
1193
+ function gn(e, t) {
1194
+ return rt(e, this, Xt, t.cache.create(), t.serializer);
1198
1195
  }
1199
- var En = function() {
1196
+ function vn(e, t) {
1197
+ return rt(e, this, Vt, t.cache.create(), t.serializer);
1198
+ }
1199
+ var _n = function() {
1200
1200
  return JSON.stringify(arguments);
1201
- }, xn = (
1202
- /** @class */
1203
- function() {
1204
- function e() {
1205
- this.cache = /* @__PURE__ */ Object.create(null);
1206
- }
1207
- return e.prototype.get = function(t) {
1208
- return this.cache[t];
1209
- }, e.prototype.set = function(t, r) {
1210
- this.cache[t] = r;
1211
- }, e;
1212
- }()
1213
- ), Sn = {
1201
+ };
1202
+ function nt() {
1203
+ this.cache = /* @__PURE__ */ Object.create(null);
1204
+ }
1205
+ nt.prototype.get = function(e) {
1206
+ return this.cache[e];
1207
+ };
1208
+ nt.prototype.set = function(e, t) {
1209
+ this.cache[e] = t;
1210
+ };
1211
+ var En = {
1214
1212
  create: function() {
1215
- return new xn();
1213
+ return new nt();
1216
1214
  }
1217
- }, Ue = {
1218
- variadic: _n
1219
- }, Te = function() {
1220
- return Te = Object.assign || function(t) {
1221
- for (var r, n = 1, i = arguments.length; n < i; n++) {
1222
- r = arguments[n];
1223
- for (var s in r)
1224
- Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
1225
- }
1226
- return t;
1227
- }, Te.apply(this, arguments);
1228
- };
1229
- var d;
1215
+ }, $e = {
1216
+ variadic: gn,
1217
+ monadic: vn
1218
+ }, p;
1230
1219
  (function(e) {
1231
1220
  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";
1232
- })(d || (d = {}));
1233
- var v;
1221
+ })(p || (p = {}));
1222
+ var _;
1234
1223
  (function(e) {
1235
1224
  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";
1236
- })(v || (v = {}));
1237
- var Y;
1225
+ })(_ || (_ = {}));
1226
+ var K;
1238
1227
  (function(e) {
1239
1228
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1240
- })(Y || (Y = {}));
1241
- function vt(e) {
1242
- return e.type === v.literal;
1229
+ })(K || (K = {}));
1230
+ function yt(e) {
1231
+ return e.type === _.literal;
1232
+ }
1233
+ function xn(e) {
1234
+ return e.type === _.argument;
1243
1235
  }
1244
- function wn(e) {
1245
- return e.type === v.argument;
1236
+ function Wt(e) {
1237
+ return e.type === _.number;
1246
1238
  }
1247
1239
  function zt(e) {
1248
- return e.type === v.number;
1240
+ return e.type === _.date;
1249
1241
  }
1250
1242
  function Zt(e) {
1251
- return e.type === v.date;
1243
+ return e.type === _.time;
1252
1244
  }
1253
1245
  function Qt(e) {
1254
- return e.type === v.time;
1246
+ return e.type === _.select;
1255
1247
  }
1256
1248
  function qt(e) {
1257
- return e.type === v.select;
1249
+ return e.type === _.plural;
1258
1250
  }
1259
- function Jt(e) {
1260
- return e.type === v.plural;
1251
+ function Sn(e) {
1252
+ return e.type === _.pound;
1261
1253
  }
1262
- function Tn(e) {
1263
- return e.type === v.pound;
1254
+ function Jt(e) {
1255
+ return e.type === _.tag;
1264
1256
  }
1265
1257
  function Yt(e) {
1266
- return e.type === v.tag;
1258
+ return !!(e && typeof e == "object" && e.type === K.number);
1267
1259
  }
1268
- function Kt(e) {
1269
- return !!(e && typeof e == "object" && e.type === Y.number);
1260
+ function Ze(e) {
1261
+ return !!(e && typeof e == "object" && e.type === K.dateTime);
1270
1262
  }
1271
- function Ye(e) {
1272
- return !!(e && typeof e == "object" && e.type === Y.dateTime);
1273
- }
1274
- var er = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Hn = /(?:[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;
1275
- function On(e) {
1263
+ var Kt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Tn = /(?:[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;
1264
+ function Hn(e) {
1276
1265
  var t = {};
1277
- return e.replace(Hn, function(r) {
1266
+ return e.replace(Tn, function(r) {
1278
1267
  var n = r.length;
1279
1268
  switch (r[0]) {
1280
1269
  case "G":
@@ -1363,21 +1352,11 @@ function On(e) {
1363
1352
  return "";
1364
1353
  }), t;
1365
1354
  }
1366
- var _ = function() {
1367
- return _ = Object.assign || function(t) {
1368
- for (var r, n = 1, i = arguments.length; n < i; n++) {
1369
- r = arguments[n];
1370
- for (var s in r)
1371
- Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
1372
- }
1373
- return t;
1374
- }, _.apply(this, arguments);
1375
- };
1376
- var An = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1355
+ var wn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1377
1356
  function Bn(e) {
1378
1357
  if (e.length === 0)
1379
1358
  throw new Error("Number skeleton cannot be empty");
1380
- for (var t = e.split(An).filter(function(f) {
1359
+ for (var t = e.split(wn).filter(function(f) {
1381
1360
  return f.length > 0;
1382
1361
  }), r = [], n = 0, i = t; n < i.length; n++) {
1383
1362
  var s = i[n], o = s.split("/");
@@ -1392,17 +1371,17 @@ function Bn(e) {
1392
1371
  }
1393
1372
  return r;
1394
1373
  }
1395
- function Pn(e) {
1374
+ function An(e) {
1396
1375
  return e.replace(/^(.*?)-/, "");
1397
1376
  }
1398
- var _t = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, tr = /^(@+)?(\+|#+)?[rs]?$/g, Cn = /(\*)(0+)|(#+)(0+)|(0+)/g, rr = /^(0+)$/;
1399
- function Et(e) {
1377
+ var gt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, er = /^(@+)?(\+|#+)?[rs]?$/g, Pn = /(\*)(0+)|(#+)(0+)|(0+)/g, tr = /^(0+)$/;
1378
+ function vt(e) {
1400
1379
  var t = {};
1401
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(tr, function(r, n, i) {
1380
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(er, function(r, n, i) {
1402
1381
  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)), "";
1403
1382
  }), t;
1404
1383
  }
1405
- function nr(e) {
1384
+ function rr(e) {
1406
1385
  switch (e) {
1407
1386
  case "sign-auto":
1408
1387
  return {
@@ -1442,7 +1421,7 @@ function nr(e) {
1442
1421
  };
1443
1422
  }
1444
1423
  }
1445
- function In(e) {
1424
+ function On(e) {
1446
1425
  var t;
1447
1426
  if (e[0] === "E" && e[1] === "E" ? (t = {
1448
1427
  notation: "engineering"
@@ -1450,17 +1429,17 @@ function In(e) {
1450
1429
  notation: "scientific"
1451
1430
  }, e = e.slice(1)), t) {
1452
1431
  var r = e.slice(0, 2);
1453
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !rr.test(e))
1432
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !tr.test(e))
1454
1433
  throw new Error("Malformed concise eng/scientific notation");
1455
1434
  t.minimumIntegerDigits = e.length;
1456
1435
  }
1457
1436
  return t;
1458
1437
  }
1459
- function xt(e) {
1460
- var t = {}, r = nr(e);
1438
+ function _t(e) {
1439
+ var t = {}, r = rr(e);
1461
1440
  return r || t;
1462
1441
  }
1463
- function Ln(e) {
1442
+ function Cn(e) {
1464
1443
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1465
1444
  var i = n[r];
1466
1445
  switch (i.stem) {
@@ -1484,7 +1463,7 @@ function Ln(e) {
1484
1463
  continue;
1485
1464
  case "measure-unit":
1486
1465
  case "unit":
1487
- t.style = "unit", t.unit = Pn(i.options[0]);
1466
+ t.style = "unit", t.unit = An(i.options[0]);
1488
1467
  continue;
1489
1468
  case "compact-short":
1490
1469
  case "K":
@@ -1495,13 +1474,13 @@ function Ln(e) {
1495
1474
  t.notation = "compact", t.compactDisplay = "long";
1496
1475
  continue;
1497
1476
  case "scientific":
1498
- t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
1499
- return _(_({}, h), xt(u));
1477
+ t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
1478
+ return v(v({}, h), _t(u));
1500
1479
  }, {}));
1501
1480
  continue;
1502
1481
  case "engineering":
1503
- t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
1504
- return _(_({}, h), xt(u));
1482
+ t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
1483
+ return v(v({}, h), _t(u));
1505
1484
  }, {}));
1506
1485
  continue;
1507
1486
  case "notation-simple":
@@ -1546,41 +1525,41 @@ function Ln(e) {
1546
1525
  case "integer-width":
1547
1526
  if (i.options.length > 1)
1548
1527
  throw new RangeError("integer-width stems only accept a single optional option");
1549
- i.options[0].replace(Cn, function(h, u, l, c, f, p) {
1528
+ i.options[0].replace(Pn, function(h, u, l, c, f, d) {
1550
1529
  if (u)
1551
1530
  t.minimumIntegerDigits = l.length;
1552
1531
  else {
1553
1532
  if (c && f)
1554
1533
  throw new Error("We currently do not support maximum integer digits");
1555
- if (p)
1534
+ if (d)
1556
1535
  throw new Error("We currently do not support exact integer digits");
1557
1536
  }
1558
1537
  return "";
1559
1538
  });
1560
1539
  continue;
1561
1540
  }
1562
- if (rr.test(i.stem)) {
1541
+ if (tr.test(i.stem)) {
1563
1542
  t.minimumIntegerDigits = i.stem.length;
1564
1543
  continue;
1565
1544
  }
1566
- if (_t.test(i.stem)) {
1545
+ if (gt.test(i.stem)) {
1567
1546
  if (i.options.length > 1)
1568
1547
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1569
- i.stem.replace(_t, function(h, u, l, c, f, p) {
1570
- return l === "*" ? 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), "";
1548
+ i.stem.replace(gt, function(h, u, l, c, f, d) {
1549
+ return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && d ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1571
1550
  });
1572
1551
  var s = i.options[0];
1573
- s === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = _(_({}, t), Et(s)));
1552
+ s === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = v(v({}, t), vt(s)));
1574
1553
  continue;
1575
1554
  }
1576
- if (tr.test(i.stem)) {
1577
- t = _(_({}, t), Et(i.stem));
1555
+ if (er.test(i.stem)) {
1556
+ t = v(v({}, t), vt(i.stem));
1578
1557
  continue;
1579
1558
  }
1580
- var o = nr(i.stem);
1581
- o && (t = _(_({}, t), o));
1582
- var a = In(i.stem);
1583
- a && (t = _(_({}, t), a));
1559
+ var o = rr(i.stem);
1560
+ o && (t = v(v({}, t), o));
1561
+ var a = On(i.stem);
1562
+ a && (t = v(v({}, t), a));
1584
1563
  }
1585
1564
  return t;
1586
1565
  }
@@ -2999,13 +2978,13 @@ var _e = {
2999
2978
  "h"
3000
2979
  ]
3001
2980
  };
3002
- function Mn(e, t) {
2981
+ function In(e, t) {
3003
2982
  for (var r = "", n = 0; n < e.length; n++) {
3004
2983
  var i = e.charAt(n);
3005
2984
  if (i === "j") {
3006
2985
  for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
3007
2986
  s++, n++;
3008
- var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u = Nn(t);
2987
+ var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u = Ln(t);
3009
2988
  for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
3010
2989
  r += h;
3011
2990
  for (; o-- > 0; )
@@ -3015,7 +2994,7 @@ function Mn(e, t) {
3015
2994
  }
3016
2995
  return r;
3017
2996
  }
3018
- function Nn(e) {
2997
+ function Ln(e) {
3019
2998
  var t = e.hourCycle;
3020
2999
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
3021
3000
  e.hourCycles && // @ts-ignore
@@ -3037,20 +3016,20 @@ function Nn(e) {
3037
3016
  var i = _e[n || ""] || _e[r || ""] || _e["".concat(r, "-001")] || _e["001"];
3038
3017
  return i[0];
3039
3018
  }
3040
- var De, $n = new RegExp("^".concat(er.source, "*")), Rn = new RegExp("".concat(er.source, "*$"));
3019
+ var Re, Mn = new RegExp("^".concat(Kt.source, "*")), Nn = new RegExp("".concat(Kt.source, "*$"));
3041
3020
  function b(e, t) {
3042
3021
  return { start: e, end: t };
3043
3022
  }
3044
- var Un = !!String.prototype.startsWith && "_a".startsWith("a", 1), Dn = !!String.fromCodePoint, Gn = !!Object.fromEntries, Fn = !!String.prototype.codePointAt, jn = !!String.prototype.trimStart, kn = !!String.prototype.trimEnd, Vn = !!Number.isSafeInteger, Xn = Vn ? Number.isSafeInteger : function(e) {
3023
+ var $n = !!String.prototype.startsWith && "_a".startsWith("a", 1), Rn = !!String.fromCodePoint, Un = !!Object.fromEntries, Dn = !!String.prototype.codePointAt, Gn = !!String.prototype.trimStart, Fn = !!String.prototype.trimEnd, jn = !!Number.isSafeInteger, kn = jn ? Number.isSafeInteger : function(e) {
3045
3024
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3046
- }, Ke = !0;
3025
+ }, Qe = !0;
3047
3026
  try {
3048
- var Wn = sr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3049
- Ke = ((De = Wn.exec("a")) === null || De === void 0 ? void 0 : De[0]) === "a";
3027
+ var Vn = ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3028
+ Qe = ((Re = Vn.exec("a")) === null || Re === void 0 ? void 0 : Re[0]) === "a";
3050
3029
  } catch {
3051
- Ke = !1;
3030
+ Qe = !1;
3052
3031
  }
3053
- var St = Un ? (
3032
+ var Et = $n ? (
3054
3033
  // Native
3055
3034
  function(t, r, n) {
3056
3035
  return t.startsWith(r, n);
@@ -3060,7 +3039,7 @@ var St = Un ? (
3060
3039
  function(t, r, n) {
3061
3040
  return t.slice(n, n + r.length) === r;
3062
3041
  }
3063
- ), et = Dn ? String.fromCodePoint : (
3042
+ ), qe = Rn ? String.fromCodePoint : (
3064
3043
  // IE11
3065
3044
  function() {
3066
3045
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -3072,9 +3051,9 @@ var St = Un ? (
3072
3051
  }
3073
3052
  return n;
3074
3053
  }
3075
- ), wt = (
3054
+ ), xt = (
3076
3055
  // native
3077
- Gn ? Object.fromEntries : (
3056
+ Un ? Object.fromEntries : (
3078
3057
  // Ponyfill
3079
3058
  function(t) {
3080
3059
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -3084,7 +3063,7 @@ var St = Un ? (
3084
3063
  return r;
3085
3064
  }
3086
3065
  )
3087
- ), ir = Fn ? (
3066
+ ), nr = Dn ? (
3088
3067
  // Native
3089
3068
  function(t, r) {
3090
3069
  return t.codePointAt(r);
@@ -3098,7 +3077,7 @@ var St = Un ? (
3098
3077
  return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
3099
3078
  }
3100
3079
  }
3101
- ), zn = jn ? (
3080
+ ), Xn = Gn ? (
3102
3081
  // Native
3103
3082
  function(t) {
3104
3083
  return t.trimStart();
@@ -3106,9 +3085,9 @@ var St = Un ? (
3106
3085
  ) : (
3107
3086
  // Ponyfill
3108
3087
  function(t) {
3109
- return t.replace($n, "");
3088
+ return t.replace(Mn, "");
3110
3089
  }
3111
- ), Zn = kn ? (
3090
+ ), Wn = Fn ? (
3112
3091
  // Native
3113
3092
  function(t) {
3114
3093
  return t.trimEnd();
@@ -3116,32 +3095,32 @@ var St = Un ? (
3116
3095
  ) : (
3117
3096
  // Ponyfill
3118
3097
  function(t) {
3119
- return t.replace(Rn, "");
3098
+ return t.replace(Nn, "");
3120
3099
  }
3121
3100
  );
3122
- function sr(e, t) {
3101
+ function ir(e, t) {
3123
3102
  return new RegExp(e, t);
3124
3103
  }
3125
- var tt;
3126
- if (Ke) {
3127
- var Tt = sr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3128
- tt = function(t, r) {
3104
+ var Je;
3105
+ if (Qe) {
3106
+ var St = ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3107
+ Je = function(t, r) {
3129
3108
  var n;
3130
- Tt.lastIndex = r;
3131
- var i = Tt.exec(t);
3109
+ St.lastIndex = r;
3110
+ var i = St.exec(t);
3132
3111
  return (n = i[1]) !== null && n !== void 0 ? n : "";
3133
3112
  };
3134
3113
  } else
3135
- tt = function(t, r) {
3114
+ Je = function(t, r) {
3136
3115
  for (var n = []; ; ) {
3137
- var i = ir(t, r);
3138
- if (i === void 0 || or(i) || Yn(i))
3116
+ var i = nr(t, r);
3117
+ if (i === void 0 || sr(i) || qn(i))
3139
3118
  break;
3140
3119
  n.push(i), r += i >= 65536 ? 2 : 1;
3141
3120
  }
3142
- return et.apply(void 0, n);
3121
+ return qe.apply(void 0, n);
3143
3122
  };
3144
- var Qn = (
3123
+ var zn = (
3145
3124
  /** @class */
3146
3125
  function() {
3147
3126
  function e(t, r) {
@@ -3165,14 +3144,14 @@ var Qn = (
3165
3144
  if (s === 35 && (r === "plural" || r === "selectordinal")) {
3166
3145
  var a = this.clonePosition();
3167
3146
  this.bump(), i.push({
3168
- type: v.pound,
3147
+ type: _.pound,
3169
3148
  location: b(a, this.clonePosition())
3170
3149
  });
3171
3150
  } else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
3172
3151
  if (n)
3173
3152
  break;
3174
- return this.error(d.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
3175
- } else if (s === 60 && !this.ignoreTag && rt(this.peek() || 0)) {
3153
+ return this.error(p.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
3154
+ } else if (s === 60 && !this.ignoreTag && Ye(this.peek() || 0)) {
3176
3155
  var o = this.parseTag(t, r);
3177
3156
  if (o.err)
3178
3157
  return o;
@@ -3193,7 +3172,7 @@ var Qn = (
3193
3172
  if (this.bumpSpace(), this.bumpIf("/>"))
3194
3173
  return {
3195
3174
  val: {
3196
- type: v.literal,
3175
+ type: _.literal,
3197
3176
  value: "<".concat(i, "/>"),
3198
3177
  location: b(n, this.clonePosition())
3199
3178
  },
@@ -3205,25 +3184,25 @@ var Qn = (
3205
3184
  return s;
3206
3185
  var o = s.val, a = this.clonePosition();
3207
3186
  if (this.bumpIf("</")) {
3208
- if (this.isEOF() || !rt(this.char()))
3209
- return this.error(d.INVALID_TAG, b(a, this.clonePosition()));
3187
+ if (this.isEOF() || !Ye(this.char()))
3188
+ return this.error(p.INVALID_TAG, b(a, this.clonePosition()));
3210
3189
  var h = this.clonePosition(), u = this.parseTagName();
3211
- return i !== u ? this.error(d.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3190
+ return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3212
3191
  val: {
3213
- type: v.tag,
3192
+ type: _.tag,
3214
3193
  value: i,
3215
3194
  children: o,
3216
3195
  location: b(n, this.clonePosition())
3217
3196
  },
3218
3197
  err: null
3219
- } : this.error(d.INVALID_TAG, b(a, this.clonePosition())));
3198
+ } : this.error(p.INVALID_TAG, b(a, this.clonePosition())));
3220
3199
  } else
3221
- return this.error(d.UNCLOSED_TAG, b(n, this.clonePosition()));
3200
+ return this.error(p.UNCLOSED_TAG, b(n, this.clonePosition()));
3222
3201
  } else
3223
- return this.error(d.INVALID_TAG, b(n, this.clonePosition()));
3202
+ return this.error(p.INVALID_TAG, b(n, this.clonePosition()));
3224
3203
  }, e.prototype.parseTagName = function() {
3225
3204
  var t = this.offset();
3226
- for (this.bump(); !this.isEOF() && Jn(this.char()); )
3205
+ for (this.bump(); !this.isEOF() && Qn(this.char()); )
3227
3206
  this.bump();
3228
3207
  return this.message.slice(t, this.offset());
3229
3208
  }, e.prototype.parseLiteral = function(t, r) {
@@ -3247,12 +3226,12 @@ var Qn = (
3247
3226
  }
3248
3227
  var h = b(n, this.clonePosition());
3249
3228
  return {
3250
- val: { type: v.literal, value: i, location: h },
3229
+ val: { type: _.literal, value: i, location: h },
3251
3230
  err: null
3252
3231
  };
3253
3232
  }, e.prototype.tryParseLeftAngleBracket = function() {
3254
3233
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3255
- !qn(this.peek() || 0)) ? (this.bump(), "<") : null;
3234
+ !Zn(this.peek() || 0)) ? (this.bump(), "<") : null;
3256
3235
  }, e.prototype.tryParseQuote = function(t) {
3257
3236
  if (this.isEOF() || this.char() !== 39)
3258
3237
  return null;
@@ -3286,28 +3265,28 @@ var Qn = (
3286
3265
  r.push(n);
3287
3266
  this.bump();
3288
3267
  }
3289
- return et.apply(void 0, r);
3268
+ return qe.apply(void 0, r);
3290
3269
  }, e.prototype.tryParseUnquoted = function(t, r) {
3291
3270
  if (this.isEOF())
3292
3271
  return null;
3293
3272
  var n = this.char();
3294
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), et(n));
3273
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), qe(n));
3295
3274
  }, e.prototype.parseArgument = function(t, r) {
3296
3275
  var n = this.clonePosition();
3297
3276
  if (this.bump(), this.bumpSpace(), this.isEOF())
3298
- return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
3277
+ return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
3299
3278
  if (this.char() === 125)
3300
- return this.bump(), this.error(d.EMPTY_ARGUMENT, b(n, this.clonePosition()));
3279
+ return this.bump(), this.error(p.EMPTY_ARGUMENT, b(n, this.clonePosition()));
3301
3280
  var i = this.parseIdentifierIfPossible().value;
3302
3281
  if (!i)
3303
- return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
3282
+ return this.error(p.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
3304
3283
  if (this.bumpSpace(), this.isEOF())
3305
- return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
3284
+ return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
3306
3285
  switch (this.char()) {
3307
3286
  case 125:
3308
3287
  return this.bump(), {
3309
3288
  val: {
3310
- type: v.argument,
3289
+ type: _.argument,
3311
3290
  // value does not include the opening and closing braces.
3312
3291
  value: i,
3313
3292
  location: b(n, this.clonePosition())
@@ -3315,12 +3294,12 @@ var Qn = (
3315
3294
  err: null
3316
3295
  };
3317
3296
  case 44:
3318
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3297
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3319
3298
  default:
3320
- return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
3299
+ return this.error(p.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
3321
3300
  }
3322
3301
  }, e.prototype.parseIdentifierIfPossible = function() {
3323
- var t = this.clonePosition(), r = this.offset(), n = tt(this.message, r), i = r + n.length;
3302
+ var t = this.clonePosition(), r = this.offset(), n = Je(this.message, r), i = r + n.length;
3324
3303
  this.bumpTo(i);
3325
3304
  var s = this.clonePosition(), o = b(t, s);
3326
3305
  return { value: n, location: o };
@@ -3328,7 +3307,7 @@ var Qn = (
3328
3307
  var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
3329
3308
  switch (a) {
3330
3309
  case "":
3331
- return this.error(d.EXPECT_ARGUMENT_TYPE, b(o, h));
3310
+ return this.error(p.EXPECT_ARGUMENT_TYPE, b(o, h));
3332
3311
  case "number":
3333
3312
  case "date":
3334
3313
  case "time": {
@@ -3339,35 +3318,35 @@ var Qn = (
3339
3318
  var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
3340
3319
  if (c.err)
3341
3320
  return c;
3342
- var f = Zn(c.val);
3321
+ var f = Wn(c.val);
3343
3322
  if (f.length === 0)
3344
- return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
3345
- var p = b(l, this.clonePosition());
3346
- u = { style: f, styleLocation: p };
3323
+ return this.error(p.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
3324
+ var d = b(l, this.clonePosition());
3325
+ u = { style: f, styleLocation: d };
3347
3326
  }
3348
3327
  var y = this.tryParseArgumentClose(i);
3349
3328
  if (y.err)
3350
3329
  return y;
3351
3330
  var g = b(i, this.clonePosition());
3352
- if (u && St(u?.style, "::", 0)) {
3353
- var B = zn(u.style.slice(2));
3331
+ if (u && Et(u?.style, "::", 0)) {
3332
+ var P = Xn(u.style.slice(2));
3354
3333
  if (a === "number") {
3355
- var c = this.parseNumberSkeletonFromString(B, u.styleLocation);
3334
+ var c = this.parseNumberSkeletonFromString(P, u.styleLocation);
3356
3335
  return c.err ? c : {
3357
- val: { type: v.number, value: n, location: g, style: c.val },
3336
+ val: { type: _.number, value: n, location: g, style: c.val },
3358
3337
  err: null
3359
3338
  };
3360
3339
  } else {
3361
- if (B.length === 0)
3362
- return this.error(d.EXPECT_DATE_TIME_SKELETON, g);
3363
- var w = B;
3364
- this.locale && (w = Mn(B, this.locale));
3340
+ if (P.length === 0)
3341
+ return this.error(p.EXPECT_DATE_TIME_SKELETON, g);
3342
+ var T = P;
3343
+ this.locale && (T = In(P, this.locale));
3365
3344
  var f = {
3366
- type: Y.dateTime,
3367
- pattern: w,
3345
+ type: K.dateTime,
3346
+ pattern: T,
3368
3347
  location: u.styleLocation,
3369
- parsedOptions: this.shouldParseSkeletons ? On(w) : {}
3370
- }, L = a === "date" ? v.date : v.time;
3348
+ parsedOptions: this.shouldParseSkeletons ? Hn(T) : {}
3349
+ }, L = a === "date" ? _.date : _.time;
3371
3350
  return {
3372
3351
  val: { type: L, value: n, location: g, style: f },
3373
3352
  err: null
@@ -3376,7 +3355,7 @@ var Qn = (
3376
3355
  }
3377
3356
  return {
3378
3357
  val: {
3379
- type: a === "number" ? v.number : a === "date" ? v.date : v.time,
3358
+ type: a === "number" ? _.number : a === "date" ? _.date : _.time,
3380
3359
  value: n,
3381
3360
  location: g,
3382
3361
  style: (s = u?.style) !== null && s !== void 0 ? s : null
@@ -3387,16 +3366,16 @@ var Qn = (
3387
3366
  case "plural":
3388
3367
  case "selectordinal":
3389
3368
  case "select": {
3390
- var T = this.clonePosition();
3369
+ var H = this.clonePosition();
3391
3370
  if (this.bumpSpace(), !this.bumpIf(","))
3392
- return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(T, Te({}, T)));
3371
+ return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, v({}, H)));
3393
3372
  this.bumpSpace();
3394
3373
  var m = this.parseIdentifierIfPossible(), S = 0;
3395
3374
  if (a !== "select" && m.value === "offset") {
3396
3375
  if (!this.bumpIf(":"))
3397
- return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
3376
+ return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
3398
3377
  this.bumpSpace();
3399
- var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3378
+ var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3400
3379
  if (c.err)
3401
3380
  return c;
3402
3381
  this.bumpSpace(), m = this.parseIdentifierIfPossible(), S = c.val;
@@ -3407,32 +3386,32 @@ var Qn = (
3407
3386
  var y = this.tryParseArgumentClose(i);
3408
3387
  if (y.err)
3409
3388
  return y;
3410
- var se = b(i, this.clonePosition());
3389
+ var oe = b(i, this.clonePosition());
3411
3390
  return a === "select" ? {
3412
3391
  val: {
3413
- type: v.select,
3392
+ type: _.select,
3414
3393
  value: n,
3415
- options: wt(N.val),
3416
- location: se
3394
+ options: xt(N.val),
3395
+ location: oe
3417
3396
  },
3418
3397
  err: null
3419
3398
  } : {
3420
3399
  val: {
3421
- type: v.plural,
3400
+ type: _.plural,
3422
3401
  value: n,
3423
- options: wt(N.val),
3402
+ options: xt(N.val),
3424
3403
  offset: S,
3425
3404
  pluralType: a === "plural" ? "cardinal" : "ordinal",
3426
- location: se
3405
+ location: oe
3427
3406
  },
3428
3407
  err: null
3429
3408
  };
3430
3409
  }
3431
3410
  default:
3432
- return this.error(d.INVALID_ARGUMENT_TYPE, b(o, h));
3411
+ return this.error(p.INVALID_ARGUMENT_TYPE, b(o, h));
3433
3412
  }
3434
3413
  }, e.prototype.tryParseArgumentClose = function(t) {
3435
- return this.isEOF() || this.char() !== 125 ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3414
+ return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3436
3415
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
3437
3416
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
3438
3417
  var n = this.char();
@@ -3441,7 +3420,7 @@ var Qn = (
3441
3420
  this.bump();
3442
3421
  var i = this.clonePosition();
3443
3422
  if (!this.bumpUntil("'"))
3444
- return this.error(d.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
3423
+ return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
3445
3424
  this.bump();
3446
3425
  break;
3447
3426
  }
@@ -3473,14 +3452,14 @@ var Qn = (
3473
3452
  try {
3474
3453
  n = Bn(t);
3475
3454
  } catch {
3476
- return this.error(d.INVALID_NUMBER_SKELETON, r);
3455
+ return this.error(p.INVALID_NUMBER_SKELETON, r);
3477
3456
  }
3478
3457
  return {
3479
3458
  val: {
3480
- type: Y.number,
3459
+ type: K.number,
3481
3460
  tokens: n,
3482
3461
  location: r,
3483
- parsedOptions: this.shouldParseSkeletons ? Ln(n) : {}
3462
+ parsedOptions: this.shouldParseSkeletons ? Cn(n) : {}
3484
3463
  },
3485
3464
  err: null
3486
3465
  };
@@ -3489,7 +3468,7 @@ var Qn = (
3489
3468
  if (u.length === 0) {
3490
3469
  var c = this.clonePosition();
3491
3470
  if (r !== "select" && this.bumpIf("=")) {
3492
- var f = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
3471
+ var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
3493
3472
  if (f.err)
3494
3473
  return f;
3495
3474
  l = b(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
@@ -3497,26 +3476,26 @@ var Qn = (
3497
3476
  break;
3498
3477
  }
3499
3478
  if (h.has(u))
3500
- return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
3479
+ return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
3501
3480
  u === "other" && (o = !0), this.bumpSpace();
3502
- var p = this.clonePosition();
3481
+ var d = this.clonePosition();
3503
3482
  if (!this.bumpIf("{"))
3504
- return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
3483
+ return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
3505
3484
  var y = this.parseMessage(t + 1, r, n);
3506
3485
  if (y.err)
3507
3486
  return y;
3508
- var g = this.tryParseArgumentClose(p);
3487
+ var g = this.tryParseArgumentClose(d);
3509
3488
  if (g.err)
3510
3489
  return g;
3511
3490
  a.push([
3512
3491
  u,
3513
3492
  {
3514
3493
  value: y.val,
3515
- location: b(p, this.clonePosition())
3494
+ location: b(d, this.clonePosition())
3516
3495
  }
3517
3496
  ]), h.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, l = s.location;
3518
3497
  }
3519
- return a.length === 0 ? this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR : d.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(d.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3498
+ return a.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(p.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3520
3499
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3521
3500
  var n = 1, i = this.clonePosition();
3522
3501
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
@@ -3528,7 +3507,7 @@ var Qn = (
3528
3507
  break;
3529
3508
  }
3530
3509
  var h = b(i, this.clonePosition());
3531
- return s ? (o *= n, Xn(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
3510
+ return s ? (o *= n, kn(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
3532
3511
  }, e.prototype.offset = function() {
3533
3512
  return this.position.offset;
3534
3513
  }, e.prototype.isEOF = function() {
@@ -3543,7 +3522,7 @@ var Qn = (
3543
3522
  var t = this.position.offset;
3544
3523
  if (t >= this.message.length)
3545
3524
  throw Error("out of bound");
3546
- var r = ir(this.message, t);
3525
+ var r = nr(this.message, t);
3547
3526
  if (r === void 0)
3548
3527
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3549
3528
  return r;
@@ -3562,7 +3541,7 @@ var Qn = (
3562
3541
  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);
3563
3542
  }
3564
3543
  }, e.prototype.bumpIf = function(t) {
3565
- if (St(this.message, t, this.offset())) {
3544
+ if (Et(this.message, t, this.offset())) {
3566
3545
  for (var r = 0; r < t.length; r++)
3567
3546
  this.bump();
3568
3547
  return !0;
@@ -3584,7 +3563,7 @@ var Qn = (
3584
3563
  break;
3585
3564
  }
3586
3565
  }, e.prototype.bumpSpace = function() {
3587
- for (; !this.isEOF() && or(this.char()); )
3566
+ for (; !this.isEOF() && sr(this.char()); )
3588
3567
  this.bump();
3589
3568
  }, e.prototype.peek = function() {
3590
3569
  if (this.isEOF())
@@ -3594,47 +3573,47 @@ var Qn = (
3594
3573
  }, e;
3595
3574
  }()
3596
3575
  );
3597
- function rt(e) {
3576
+ function Ye(e) {
3598
3577
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3599
3578
  }
3600
- function qn(e) {
3601
- return rt(e) || e === 47;
3579
+ function Zn(e) {
3580
+ return Ye(e) || e === 47;
3602
3581
  }
3603
- function Jn(e) {
3582
+ function Qn(e) {
3604
3583
  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;
3605
3584
  }
3606
- function or(e) {
3585
+ function sr(e) {
3607
3586
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3608
3587
  }
3609
- function Yn(e) {
3588
+ function qn(e) {
3610
3589
  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;
3611
3590
  }
3612
- function nt(e) {
3591
+ function Ke(e) {
3613
3592
  e.forEach(function(t) {
3614
- if (delete t.location, qt(t) || Jt(t))
3593
+ if (delete t.location, Qt(t) || qt(t))
3615
3594
  for (var r in t.options)
3616
- delete t.options[r].location, nt(t.options[r].value);
3595
+ delete t.options[r].location, Ke(t.options[r].value);
3617
3596
  else
3618
- zt(t) && Kt(t.style) || (Zt(t) || Qt(t)) && Ye(t.style) ? delete t.style.location : Yt(t) && nt(t.children);
3597
+ Wt(t) && Yt(t.style) || (zt(t) || Zt(t)) && Ze(t.style) ? delete t.style.location : Jt(t) && Ke(t.children);
3619
3598
  });
3620
3599
  }
3621
- function Kn(e, t) {
3622
- t === void 0 && (t = {}), t = Te({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3623
- var r = new Qn(e, t).parse();
3600
+ function Jn(e, t) {
3601
+ t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3602
+ var r = new zn(e, t).parse();
3624
3603
  if (r.err) {
3625
- var n = SyntaxError(d[r.err.kind]);
3604
+ var n = SyntaxError(p[r.err.kind]);
3626
3605
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3627
3606
  }
3628
- return t?.captureLocation || nt(r.val), r.val;
3607
+ return t?.captureLocation || Ke(r.val), r.val;
3629
3608
  }
3630
- var K;
3609
+ var ee;
3631
3610
  (function(e) {
3632
3611
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3633
- })(K || (K = {}));
3634
- var Ie = (
3612
+ })(ee || (ee = {}));
3613
+ var Oe = (
3635
3614
  /** @class */
3636
3615
  function(e) {
3637
- Ce(t, e);
3616
+ D(t, e);
3638
3617
  function t(r, n, i) {
3639
3618
  var s = e.call(this, r) || this;
3640
3619
  return s.code = n, s.originalMessage = i, s;
@@ -3643,48 +3622,48 @@ var Ie = (
3643
3622
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3644
3623
  }, t;
3645
3624
  }(Error)
3646
- ), Ht = (
3625
+ ), Tt = (
3647
3626
  /** @class */
3648
3627
  function(e) {
3649
- Ce(t, e);
3628
+ D(t, e);
3650
3629
  function t(r, n, i, s) {
3651
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), K.INVALID_VALUE, s) || this;
3630
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ee.INVALID_VALUE, s) || this;
3652
3631
  }
3653
3632
  return t;
3654
- }(Ie)
3655
- ), ei = (
3633
+ }(Oe)
3634
+ ), Yn = (
3656
3635
  /** @class */
3657
3636
  function(e) {
3658
- Ce(t, e);
3637
+ D(t, e);
3659
3638
  function t(r, n, i) {
3660
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), K.INVALID_VALUE, i) || this;
3639
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ee.INVALID_VALUE, i) || this;
3661
3640
  }
3662
3641
  return t;
3663
- }(Ie)
3664
- ), ti = (
3642
+ }(Oe)
3643
+ ), Kn = (
3665
3644
  /** @class */
3666
3645
  function(e) {
3667
- Ce(t, e);
3646
+ D(t, e);
3668
3647
  function t(r, n) {
3669
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), K.MISSING_VALUE, n) || this;
3648
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ee.MISSING_VALUE, n) || this;
3670
3649
  }
3671
3650
  return t;
3672
- }(Ie)
3651
+ }(Oe)
3673
3652
  ), A;
3674
3653
  (function(e) {
3675
3654
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3676
3655
  })(A || (A = {}));
3677
- function ri(e) {
3656
+ function ei(e) {
3678
3657
  return e.length < 2 ? e : e.reduce(function(t, r) {
3679
3658
  var n = t[t.length - 1];
3680
3659
  return !n || n.type !== A.literal || r.type !== A.literal ? t.push(r) : n.value += r.value, t;
3681
3660
  }, []);
3682
3661
  }
3683
- function ni(e) {
3662
+ function ti(e) {
3684
3663
  return typeof e == "function";
3685
3664
  }
3686
3665
  function Se(e, t, r, n, i, s, o) {
3687
- if (e.length === 1 && vt(e[0]))
3666
+ if (e.length === 1 && yt(e[0]))
3688
3667
  return [
3689
3668
  {
3690
3669
  type: A.literal,
@@ -3693,14 +3672,14 @@ function Se(e, t, r, n, i, s, o) {
3693
3672
  ];
3694
3673
  for (var a = [], h = 0, u = e; h < u.length; h++) {
3695
3674
  var l = u[h];
3696
- if (vt(l)) {
3675
+ if (yt(l)) {
3697
3676
  a.push({
3698
3677
  type: A.literal,
3699
3678
  value: l.value
3700
3679
  });
3701
3680
  continue;
3702
3681
  }
3703
- if (Tn(l)) {
3682
+ if (Sn(l)) {
3704
3683
  typeof s == "number" && a.push({
3705
3684
  type: A.literal,
3706
3685
  value: r.getNumberFormat(t).format(s)
@@ -3709,44 +3688,44 @@ function Se(e, t, r, n, i, s, o) {
3709
3688
  }
3710
3689
  var c = l.value;
3711
3690
  if (!(i && c in i))
3712
- throw new ti(c, o);
3691
+ throw new Kn(c, o);
3713
3692
  var f = i[c];
3714
- if (wn(l)) {
3693
+ if (xn(l)) {
3715
3694
  (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
3716
3695
  type: typeof f == "string" ? A.literal : A.object,
3717
3696
  value: f
3718
3697
  });
3719
3698
  continue;
3720
3699
  }
3721
- if (Zt(l)) {
3722
- var p = typeof l.style == "string" ? n.date[l.style] : Ye(l.style) ? l.style.parsedOptions : void 0;
3700
+ if (zt(l)) {
3701
+ var d = typeof l.style == "string" ? n.date[l.style] : Ze(l.style) ? l.style.parsedOptions : void 0;
3723
3702
  a.push({
3724
3703
  type: A.literal,
3725
- value: r.getDateTimeFormat(t, p).format(f)
3704
+ value: r.getDateTimeFormat(t, d).format(f)
3726
3705
  });
3727
3706
  continue;
3728
3707
  }
3729
- if (Qt(l)) {
3730
- var p = typeof l.style == "string" ? n.time[l.style] : Ye(l.style) ? l.style.parsedOptions : n.time.medium;
3708
+ if (Zt(l)) {
3709
+ var d = typeof l.style == "string" ? n.time[l.style] : Ze(l.style) ? l.style.parsedOptions : n.time.medium;
3731
3710
  a.push({
3732
3711
  type: A.literal,
3733
- value: r.getDateTimeFormat(t, p).format(f)
3712
+ value: r.getDateTimeFormat(t, d).format(f)
3734
3713
  });
3735
3714
  continue;
3736
3715
  }
3737
- if (zt(l)) {
3738
- var p = typeof l.style == "string" ? n.number[l.style] : Kt(l.style) ? l.style.parsedOptions : void 0;
3739
- p && p.scale && (f = f * (p.scale || 1)), a.push({
3716
+ if (Wt(l)) {
3717
+ var d = typeof l.style == "string" ? n.number[l.style] : Yt(l.style) ? l.style.parsedOptions : void 0;
3718
+ d && d.scale && (f = f * (d.scale || 1)), a.push({
3740
3719
  type: A.literal,
3741
- value: r.getNumberFormat(t, p).format(f)
3720
+ value: r.getNumberFormat(t, d).format(f)
3742
3721
  });
3743
3722
  continue;
3744
3723
  }
3745
- if (Yt(l)) {
3746
- var y = l.children, g = l.value, B = i[g];
3747
- if (!ni(B))
3748
- throw new ei(g, "function", o);
3749
- var w = Se(y, t, r, n, i, s), L = B(w.map(function(S) {
3724
+ if (Jt(l)) {
3725
+ var y = l.children, g = l.value, P = i[g];
3726
+ if (!ti(P))
3727
+ throw new Yn(g, "function", o);
3728
+ var T = Se(y, t, r, n, i, s), L = P(T.map(function(S) {
3750
3729
  return S.value;
3751
3730
  }));
3752
3731
  Array.isArray(L) || (L = [L]), a.push.apply(a, L.map(function(S) {
@@ -3756,42 +3735,42 @@ function Se(e, t, r, n, i, s, o) {
3756
3735
  };
3757
3736
  }));
3758
3737
  }
3759
- if (qt(l)) {
3760
- var T = l.options[f] || l.options.other;
3761
- if (!T)
3762
- throw new Ht(l.value, f, Object.keys(l.options), o);
3763
- a.push.apply(a, Se(T.value, t, r, n, i));
3738
+ if (Qt(l)) {
3739
+ var H = l.options[f] || l.options.other;
3740
+ if (!H)
3741
+ throw new Tt(l.value, f, Object.keys(l.options), o);
3742
+ a.push.apply(a, Se(H.value, t, r, n, i));
3764
3743
  continue;
3765
3744
  }
3766
- if (Jt(l)) {
3767
- var T = l.options["=".concat(f)];
3768
- if (!T) {
3745
+ if (qt(l)) {
3746
+ var H = l.options["=".concat(f)];
3747
+ if (!H) {
3769
3748
  if (!Intl.PluralRules)
3770
- throw new Ie(`Intl.PluralRules is not available in this environment.
3749
+ throw new Oe(`Intl.PluralRules is not available in this environment.
3771
3750
  Try polyfilling it using "@formatjs/intl-pluralrules"
3772
- `, K.MISSING_INTL_API, o);
3751
+ `, ee.MISSING_INTL_API, o);
3773
3752
  var m = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
3774
- T = l.options[m] || l.options.other;
3753
+ H = l.options[m] || l.options.other;
3775
3754
  }
3776
- if (!T)
3777
- throw new Ht(l.value, f, Object.keys(l.options), o);
3778
- a.push.apply(a, Se(T.value, t, r, n, i, f - (l.offset || 0)));
3755
+ if (!H)
3756
+ throw new Tt(l.value, f, Object.keys(l.options), o);
3757
+ a.push.apply(a, Se(H.value, t, r, n, i, f - (l.offset || 0)));
3779
3758
  continue;
3780
3759
  }
3781
3760
  }
3782
- return ri(a);
3761
+ return ei(a);
3783
3762
  }
3784
- function ii(e, t) {
3785
- return t ? R(R(R({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3786
- return r[n] = R(R({}, e[n]), t[n] || {}), r;
3763
+ function ri(e, t) {
3764
+ return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3765
+ return r[n] = v(v({}, e[n]), t[n] || {}), r;
3787
3766
  }, {})) : e;
3788
3767
  }
3789
- function si(e, t) {
3768
+ function ni(e, t) {
3790
3769
  return t ? Object.keys(e).reduce(function(r, n) {
3791
- return r[n] = ii(e[n], t[n]), r;
3792
- }, R({}, e)) : e;
3770
+ return r[n] = ri(e[n], t[n]), r;
3771
+ }, v({}, e)) : e;
3793
3772
  }
3794
- function Ge(e) {
3773
+ function Ue(e) {
3795
3774
  return {
3796
3775
  create: function() {
3797
3776
  return {
@@ -3805,39 +3784,39 @@ function Ge(e) {
3805
3784
  }
3806
3785
  };
3807
3786
  }
3808
- function oi(e) {
3787
+ function ii(e) {
3809
3788
  return e === void 0 && (e = {
3810
3789
  number: {},
3811
3790
  dateTime: {},
3812
3791
  pluralRules: {}
3813
3792
  }), {
3814
- getNumberFormat: Re(function() {
3793
+ getNumberFormat: Ne(function() {
3815
3794
  for (var t, r = [], n = 0; n < arguments.length; n++)
3816
3795
  r[n] = arguments[n];
3817
- return new ((t = Intl.NumberFormat).bind.apply(t, $e([void 0], r, !1)))();
3796
+ return new ((t = Intl.NumberFormat).bind.apply(t, J([void 0], r, !1)))();
3818
3797
  }, {
3819
- cache: Ge(e.number),
3820
- strategy: Ue.variadic
3798
+ cache: Ue(e.number),
3799
+ strategy: $e.variadic
3821
3800
  }),
3822
- getDateTimeFormat: Re(function() {
3801
+ getDateTimeFormat: Ne(function() {
3823
3802
  for (var t, r = [], n = 0; n < arguments.length; n++)
3824
3803
  r[n] = arguments[n];
3825
- return new ((t = Intl.DateTimeFormat).bind.apply(t, $e([void 0], r, !1)))();
3804
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, J([void 0], r, !1)))();
3826
3805
  }, {
3827
- cache: Ge(e.dateTime),
3828
- strategy: Ue.variadic
3806
+ cache: Ue(e.dateTime),
3807
+ strategy: $e.variadic
3829
3808
  }),
3830
- getPluralRules: Re(function() {
3809
+ getPluralRules: Ne(function() {
3831
3810
  for (var t, r = [], n = 0; n < arguments.length; n++)
3832
3811
  r[n] = arguments[n];
3833
- return new ((t = Intl.PluralRules).bind.apply(t, $e([void 0], r, !1)))();
3812
+ return new ((t = Intl.PluralRules).bind.apply(t, J([void 0], r, !1)))();
3834
3813
  }, {
3835
- cache: Ge(e.pluralRules),
3836
- strategy: Ue.variadic
3814
+ cache: Ue(e.pluralRules),
3815
+ strategy: $e.variadic
3837
3816
  })
3838
3817
  };
3839
3818
  }
3840
- var ar = (
3819
+ var or = (
3841
3820
  /** @class */
3842
3821
  function() {
3843
3822
  function e(t, r, n, i) {
@@ -3869,13 +3848,13 @@ var ar = (
3869
3848
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3870
3849
  var o = i || {};
3871
3850
  o.formatters;
3872
- var a = bn(o, ["formatters"]);
3873
- this.ast = e.__parse(t, R(R({}, a), { locale: this.resolvedLocale }));
3851
+ var a = Rr(o, ["formatters"]);
3852
+ this.ast = e.__parse(t, v(v({}, a), { locale: this.resolvedLocale }));
3874
3853
  } else
3875
3854
  this.ast = t;
3876
3855
  if (!Array.isArray(this.ast))
3877
3856
  throw new TypeError("A message must be provided as a String or AST.");
3878
- this.formats = si(e.formats, n), this.formatters = i && i.formatters || oi(this.formatterCache);
3857
+ this.formats = ni(e.formats, n), this.formatters = i && i.formatters || ii(this.formatterCache);
3879
3858
  }
3880
3859
  return Object.defineProperty(e, "defaultLocale", {
3881
3860
  get: function() {
@@ -3888,7 +3867,7 @@ var ar = (
3888
3867
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3889
3868
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3890
3869
  }
3891
- }, e.__parse = Kn, e.formats = {
3870
+ }, e.__parse = Jn, e.formats = {
3892
3871
  number: {
3893
3872
  integer: {
3894
3873
  maximumFractionDigits: 0
@@ -3949,7 +3928,7 @@ var ar = (
3949
3928
  }, e;
3950
3929
  }()
3951
3930
  );
3952
- function ai(e, t) {
3931
+ function si(e, t) {
3953
3932
  if (t == null)
3954
3933
  return;
3955
3934
  if (t in e)
@@ -3970,101 +3949,101 @@ function ai(e, t) {
3970
3949
  n = void 0;
3971
3950
  return n;
3972
3951
  }
3973
- const F = {}, ui = (e, t, r) => r && (t in F || (F[t] = {}), e in F[t] || (F[t][e] = r), r), ur = (e, t) => {
3952
+ const F = {}, oi = (e, t, r) => r && (t in F || (F[t] = {}), e in F[t] || (F[t][e] = r), r), ar = (e, t) => {
3974
3953
  if (t == null)
3975
3954
  return;
3976
3955
  if (t in F && e in F[t])
3977
3956
  return F[t][e];
3978
- const r = de(t);
3957
+ const r = pe(t);
3979
3958
  for (let n = 0; n < r.length; n++) {
3980
- const i = r[n], s = li(i, e);
3959
+ const i = r[n], s = ui(i, e);
3981
3960
  if (s)
3982
- return ui(e, t, s);
3961
+ return oi(e, t, s);
3983
3962
  }
3984
3963
  };
3985
- let ot;
3986
- const pe = Pe({});
3987
- function hi(e) {
3988
- return ot[e] || null;
3964
+ let it;
3965
+ const de = Pe({});
3966
+ function ai(e) {
3967
+ return it[e] || null;
3989
3968
  }
3990
- function hr(e) {
3991
- return e in ot;
3969
+ function ur(e) {
3970
+ return e in it;
3992
3971
  }
3993
- function li(e, t) {
3994
- if (!hr(e))
3972
+ function ui(e, t) {
3973
+ if (!ur(e))
3995
3974
  return null;
3996
- const r = hi(e);
3997
- return ai(r, t);
3975
+ const r = ai(e);
3976
+ return si(r, t);
3998
3977
  }
3999
- function ci(e) {
3978
+ function hi(e) {
4000
3979
  if (e == null)
4001
3980
  return;
4002
- const t = de(e);
3981
+ const t = pe(e);
4003
3982
  for (let r = 0; r < t.length; r++) {
4004
3983
  const n = t[r];
4005
- if (hr(n))
3984
+ if (ur(n))
4006
3985
  return n;
4007
3986
  }
4008
3987
  }
4009
- function lr(e, ...t) {
4010
- delete F[e], pe.update((r) => (r[e] = mn.all([r[e] || {}, ...t]), r));
3988
+ function hr(e, ...t) {
3989
+ delete F[e], de.update((r) => (r[e] = mn.all([r[e] || {}, ...t]), r));
4011
3990
  }
4012
- ne(
4013
- [pe],
3991
+ ie(
3992
+ [de],
4014
3993
  ([e]) => Object.keys(e)
4015
3994
  );
4016
- pe.subscribe((e) => ot = e);
4017
- const we = {};
4018
- function fi(e, t) {
4019
- we[e].delete(t), we[e].size === 0 && delete we[e];
3995
+ de.subscribe((e) => it = e);
3996
+ const Te = {};
3997
+ function li(e, t) {
3998
+ Te[e].delete(t), Te[e].size === 0 && delete Te[e];
4020
3999
  }
4021
- function cr(e) {
4022
- return we[e];
4000
+ function lr(e) {
4001
+ return Te[e];
4023
4002
  }
4024
- function pi(e) {
4025
- return de(e).map((t) => {
4026
- const r = cr(t);
4003
+ function ci(e) {
4004
+ return pe(e).map((t) => {
4005
+ const r = lr(t);
4027
4006
  return [t, r ? [...r] : []];
4028
4007
  }).filter(([, t]) => t.length > 0);
4029
4008
  }
4030
4009
  function He(e) {
4031
- return e == null ? !1 : de(e).some(
4010
+ return e == null ? !1 : pe(e).some(
4032
4011
  (t) => {
4033
4012
  var r;
4034
- return (r = cr(t)) == null ? void 0 : r.size;
4013
+ return (r = lr(t)) == null ? void 0 : r.size;
4035
4014
  }
4036
4015
  );
4037
4016
  }
4038
- function di(e, t) {
4017
+ function fi(e, t) {
4039
4018
  return Promise.all(
4040
- t.map((n) => (fi(e, n), n().then((i) => i.default || i)))
4041
- ).then((n) => lr(e, ...n));
4019
+ t.map((n) => (li(e, n), n().then((i) => i.default || i)))
4020
+ ).then((n) => hr(e, ...n));
4042
4021
  }
4043
- const oe = {};
4044
- function fr(e) {
4022
+ const ae = {};
4023
+ function cr(e) {
4045
4024
  if (!He(e))
4046
- return e in oe ? oe[e] : Promise.resolve();
4047
- const t = pi(e);
4048
- return oe[e] = Promise.all(
4025
+ return e in ae ? ae[e] : Promise.resolve();
4026
+ const t = ci(e);
4027
+ return ae[e] = Promise.all(
4049
4028
  t.map(
4050
- ([r, n]) => di(r, n)
4029
+ ([r, n]) => fi(r, n)
4051
4030
  )
4052
4031
  ).then(() => {
4053
4032
  if (He(e))
4054
- return fr(e);
4055
- delete oe[e];
4056
- }), oe[e];
4033
+ return cr(e);
4034
+ delete ae[e];
4035
+ }), ae[e];
4057
4036
  }
4058
- var Ot = Object.getOwnPropertySymbols, mi = Object.prototype.hasOwnProperty, bi = Object.prototype.propertyIsEnumerable, yi = (e, t) => {
4037
+ var Ht = Object.getOwnPropertySymbols, di = Object.prototype.hasOwnProperty, pi = Object.prototype.propertyIsEnumerable, mi = (e, t) => {
4059
4038
  var r = {};
4060
4039
  for (var n in e)
4061
- mi.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4062
- if (e != null && Ot)
4063
- for (var n of Ot(e))
4064
- t.indexOf(n) < 0 && bi.call(e, n) && (r[n] = e[n]);
4040
+ di.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4041
+ if (e != null && Ht)
4042
+ for (var n of Ht(e))
4043
+ t.indexOf(n) < 0 && pi.call(e, n) && (r[n] = e[n]);
4065
4044
  return r;
4066
4045
  };
4067
- const gi = {
4046
+ const bi = {
4068
4047
  number: {
4069
4048
  scientific: { notation: "scientific" },
4070
4049
  engineering: { notation: "engineering" },
@@ -4094,159 +4073,159 @@ const gi = {
4094
4073
  }
4095
4074
  }
4096
4075
  };
4097
- function vi({ locale: e, id: t }) {
4076
+ function yi({ locale: e, id: t }) {
4098
4077
  console.warn(
4099
- `[svelte-i18n] The message "${t}" was not found in "${de(
4078
+ `[svelte-i18n] The message "${t}" was not found in "${pe(
4100
4079
  e
4101
4080
  ).join('", "')}".${He(j()) ? `
4102
4081
 
4103
4082
  Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
4104
4083
  );
4105
4084
  }
4106
- const _i = {
4085
+ const gi = {
4107
4086
  fallbackLocale: null,
4108
4087
  loadingDelay: 200,
4109
- formats: gi,
4088
+ formats: bi,
4110
4089
  warnOnMissingMessages: !0,
4111
4090
  handleMissingMessage: void 0,
4112
4091
  ignoreTag: !0
4113
- }, ae = _i;
4114
- function ee() {
4115
- return ae;
4092
+ }, ue = gi;
4093
+ function te() {
4094
+ return ue;
4116
4095
  }
4117
- function Ei(e) {
4118
- const t = e, { formats: r } = t, n = yi(t, ["formats"]);
4096
+ function vi(e) {
4097
+ const t = e, { formats: r } = t, n = mi(t, ["formats"]);
4119
4098
  let i = e.fallbackLocale;
4120
4099
  if (e.initialLocale)
4121
4100
  try {
4122
- ar.resolveLocale(e.initialLocale) && (i = e.initialLocale);
4101
+ or.resolveLocale(e.initialLocale) && (i = e.initialLocale);
4123
4102
  } catch {
4124
4103
  console.warn(
4125
4104
  `[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
4126
4105
  );
4127
4106
  }
4128
- return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = vi : console.warn(
4107
+ return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = yi : console.warn(
4129
4108
  '[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
4130
- )), Object.assign(ae, n, { initialLocale: i }), r && ("number" in r && Object.assign(ae.formats.number, r.number), "date" in r && Object.assign(ae.formats.date, r.date), "time" in r && Object.assign(ae.formats.time, r.time)), V.set(i);
4109
+ )), Object.assign(ue, n, { initialLocale: i }), r && ("number" in r && Object.assign(ue.formats.number, r.number), "date" in r && Object.assign(ue.formats.date, r.date), "time" in r && Object.assign(ue.formats.time, r.time)), V.set(i);
4131
4110
  }
4132
- const Fe = Pe(!1);
4133
- var xi = Object.defineProperty, Si = Object.defineProperties, wi = Object.getOwnPropertyDescriptors, At = Object.getOwnPropertySymbols, Ti = Object.prototype.hasOwnProperty, Hi = Object.prototype.propertyIsEnumerable, Bt = (e, t, r) => t in e ? xi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Oi = (e, t) => {
4111
+ const De = Pe(!1);
4112
+ var _i = Object.defineProperty, Ei = Object.defineProperties, xi = Object.getOwnPropertyDescriptors, wt = Object.getOwnPropertySymbols, Si = Object.prototype.hasOwnProperty, Ti = Object.prototype.propertyIsEnumerable, Bt = (e, t, r) => t in e ? _i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Hi = (e, t) => {
4134
4113
  for (var r in t || (t = {}))
4135
- Ti.call(t, r) && Bt(e, r, t[r]);
4136
- if (At)
4137
- for (var r of At(t))
4138
- Hi.call(t, r) && Bt(e, r, t[r]);
4114
+ Si.call(t, r) && Bt(e, r, t[r]);
4115
+ if (wt)
4116
+ for (var r of wt(t))
4117
+ Ti.call(t, r) && Bt(e, r, t[r]);
4139
4118
  return e;
4140
- }, Ai = (e, t) => Si(e, wi(t));
4141
- let it;
4142
- const Oe = Pe(null);
4143
- function Pt(e) {
4119
+ }, wi = (e, t) => Ei(e, xi(t));
4120
+ let et;
4121
+ const we = Pe(null);
4122
+ function At(e) {
4144
4123
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4145
4124
  }
4146
- function de(e, t = ee().fallbackLocale) {
4147
- const r = Pt(e);
4148
- return t ? [.../* @__PURE__ */ new Set([...r, ...Pt(t)])] : r;
4125
+ function pe(e, t = te().fallbackLocale) {
4126
+ const r = At(e);
4127
+ return t ? [.../* @__PURE__ */ new Set([...r, ...At(t)])] : r;
4149
4128
  }
4150
4129
  function j() {
4151
- return it ?? void 0;
4130
+ return et ?? void 0;
4152
4131
  }
4153
- Oe.subscribe((e) => {
4154
- it = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4132
+ we.subscribe((e) => {
4133
+ et = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4155
4134
  });
4156
4135
  const Bi = (e) => {
4157
- if (e && ci(e) && He(e)) {
4158
- const { loadingDelay: t } = ee();
4136
+ if (e && hi(e) && He(e)) {
4137
+ const { loadingDelay: t } = te();
4159
4138
  let r;
4160
4139
  return typeof window < "u" && j() != null && t ? r = window.setTimeout(
4161
- () => Fe.set(!0),
4140
+ () => De.set(!0),
4162
4141
  t
4163
- ) : Fe.set(!0), fr(e).then(() => {
4164
- Oe.set(e);
4142
+ ) : De.set(!0), cr(e).then(() => {
4143
+ we.set(e);
4165
4144
  }).finally(() => {
4166
- clearTimeout(r), Fe.set(!1);
4145
+ clearTimeout(r), De.set(!1);
4167
4146
  });
4168
4147
  }
4169
- return Oe.set(e);
4170
- }, V = Ai(Oi({}, Oe), {
4148
+ return we.set(e);
4149
+ }, V = wi(Hi({}, we), {
4171
4150
  set: Bi
4172
- }), Le = (e) => {
4151
+ }), Ce = (e) => {
4173
4152
  const t = /* @__PURE__ */ Object.create(null);
4174
4153
  return (n) => {
4175
4154
  const i = JSON.stringify(n);
4176
4155
  return i in t ? t[i] : t[i] = e(n);
4177
4156
  };
4178
4157
  };
4179
- var Pi = Object.defineProperty, Ae = Object.getOwnPropertySymbols, pr = Object.prototype.hasOwnProperty, dr = Object.prototype.propertyIsEnumerable, Ct = (e, t, r) => t in e ? Pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, at = (e, t) => {
4158
+ var Ai = Object.defineProperty, Be = Object.getOwnPropertySymbols, fr = Object.prototype.hasOwnProperty, dr = Object.prototype.propertyIsEnumerable, Pt = (e, t, r) => t in e ? Ai(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, st = (e, t) => {
4180
4159
  for (var r in t || (t = {}))
4181
- pr.call(t, r) && Ct(e, r, t[r]);
4182
- if (Ae)
4183
- for (var r of Ae(t))
4184
- dr.call(t, r) && Ct(e, r, t[r]);
4160
+ fr.call(t, r) && Pt(e, r, t[r]);
4161
+ if (Be)
4162
+ for (var r of Be(t))
4163
+ dr.call(t, r) && Pt(e, r, t[r]);
4185
4164
  return e;
4186
- }, ie = (e, t) => {
4165
+ }, se = (e, t) => {
4187
4166
  var r = {};
4188
4167
  for (var n in e)
4189
- pr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4190
- if (e != null && Ae)
4191
- for (var n of Ae(e))
4168
+ fr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4169
+ if (e != null && Be)
4170
+ for (var n of Be(e))
4192
4171
  t.indexOf(n) < 0 && dr.call(e, n) && (r[n] = e[n]);
4193
4172
  return r;
4194
4173
  };
4195
- const ce = (e, t) => {
4196
- const { formats: r } = ee();
4174
+ const fe = (e, t) => {
4175
+ const { formats: r } = te();
4197
4176
  if (e in r && t in r[e])
4198
4177
  return r[e][t];
4199
4178
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4200
- }, Ci = Le(
4179
+ }, Pi = Ce(
4201
4180
  (e) => {
4202
- var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
4181
+ var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
4203
4182
  if (r == null)
4204
4183
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4205
- return n && (i = ce("number", n)), new Intl.NumberFormat(r, i);
4184
+ return n && (i = fe("number", n)), new Intl.NumberFormat(r, i);
4206
4185
  }
4207
- ), Ii = Le(
4186
+ ), Oi = Ce(
4208
4187
  (e) => {
4209
- var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
4188
+ var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
4210
4189
  if (r == null)
4211
4190
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4212
- return n ? i = ce("date", n) : Object.keys(i).length === 0 && (i = ce("date", "short")), new Intl.DateTimeFormat(r, i);
4191
+ return n ? i = fe("date", n) : Object.keys(i).length === 0 && (i = fe("date", "short")), new Intl.DateTimeFormat(r, i);
4213
4192
  }
4214
- ), Li = Le(
4193
+ ), Ci = Ce(
4215
4194
  (e) => {
4216
- var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
4195
+ var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
4217
4196
  if (r == null)
4218
4197
  throw new Error(
4219
4198
  '[svelte-i18n] A "locale" must be set to format time values'
4220
4199
  );
4221
- return n ? i = ce("time", n) : Object.keys(i).length === 0 && (i = ce("time", "short")), new Intl.DateTimeFormat(r, i);
4200
+ return n ? i = fe("time", n) : Object.keys(i).length === 0 && (i = fe("time", "short")), new Intl.DateTimeFormat(r, i);
4222
4201
  }
4223
- ), Mi = (e = {}) => {
4202
+ ), Ii = (e = {}) => {
4224
4203
  var t = e, {
4225
4204
  locale: r = j()
4226
- } = t, n = ie(t, [
4205
+ } = t, n = se(t, [
4227
4206
  "locale"
4228
4207
  ]);
4229
- return Ci(at({ locale: r }, n));
4230
- }, Ni = (e = {}) => {
4208
+ return Pi(st({ locale: r }, n));
4209
+ }, Li = (e = {}) => {
4231
4210
  var t = e, {
4232
4211
  locale: r = j()
4233
- } = t, n = ie(t, [
4212
+ } = t, n = se(t, [
4234
4213
  "locale"
4235
4214
  ]);
4236
- return Ii(at({ locale: r }, n));
4237
- }, $i = (e = {}) => {
4215
+ return Oi(st({ locale: r }, n));
4216
+ }, Mi = (e = {}) => {
4238
4217
  var t = e, {
4239
4218
  locale: r = j()
4240
- } = t, n = ie(t, [
4219
+ } = t, n = se(t, [
4241
4220
  "locale"
4242
4221
  ]);
4243
- return Li(at({ locale: r }, n));
4244
- }, Ri = Le(
4222
+ return Ci(st({ locale: r }, n));
4223
+ }, Ni = Ce(
4245
4224
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4246
- (e, t = j()) => new ar(e, t, ee().formats, {
4247
- ignoreTag: ee().ignoreTag
4225
+ (e, t = j()) => new or(e, t, te().formats, {
4226
+ ignoreTag: te().ignoreTag
4248
4227
  })
4249
- ), Ui = (e, t = {}) => {
4228
+ ), $i = (e, t = {}) => {
4250
4229
  var r, n, i, s;
4251
4230
  let o = t;
4252
4231
  typeof e == "object" && (o = e, e = o.id);
@@ -4259,9 +4238,9 @@ const ce = (e, t) => {
4259
4238
  throw new Error(
4260
4239
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4261
4240
  );
4262
- let l = ur(e, h);
4241
+ let l = ar(e, h);
4263
4242
  if (!l)
4264
- l = (s = (i = (n = (r = ee()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
4243
+ l = (s = (i = (n = (r = te()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
4265
4244
  else if (typeof l != "string")
4266
4245
  return console.warn(
4267
4246
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
@@ -4270,7 +4249,7 @@ const ce = (e, t) => {
4270
4249
  return l;
4271
4250
  let c = l;
4272
4251
  try {
4273
- c = Ri(l, h).format(a);
4252
+ c = Ni(l, h).format(a);
4274
4253
  } catch (f) {
4275
4254
  f instanceof Error && console.warn(
4276
4255
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -4278,20 +4257,20 @@ const ce = (e, t) => {
4278
4257
  );
4279
4258
  }
4280
4259
  return c;
4281
- }, Di = (e, t) => $i(t).format(e), Gi = (e, t) => Ni(t).format(e), Fi = (e, t) => Mi(t).format(e), ji = (e, t = j()) => ur(e, t), ki = ne([V, pe], () => Ui);
4282
- ne([V], () => Di);
4283
- ne([V], () => Gi);
4284
- ne([V], () => Fi);
4285
- ne([V, pe], () => ji);
4260
+ }, Ri = (e, t) => Mi(t).format(e), Ui = (e, t) => Li(t).format(e), Di = (e, t) => Ii(t).format(e), Gi = (e, t = j()) => ar(e, t), Fi = ie([V, de], () => $i);
4261
+ ie([V], () => Ri);
4262
+ ie([V], () => Ui);
4263
+ ie([V], () => Di);
4264
+ ie([V, de], () => Gi);
4286
4265
  window.emWidgets = { topic: Jr };
4287
- const Vi = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
4288
- function Xi(e, t) {
4266
+ const ji = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
4267
+ function ki(e, t) {
4289
4268
  if (e) {
4290
4269
  const r = document.createElement("style");
4291
4270
  r.innerHTML = t, e.appendChild(r);
4292
4271
  }
4293
4272
  }
4294
- function Wi(e, t) {
4273
+ function Vi(e, t) {
4295
4274
  const r = new URL(t);
4296
4275
  fetch(r.href).then((n) => n.text()).then((n) => {
4297
4276
  const i = document.createElement("style");
@@ -4300,7 +4279,7 @@ function Wi(e, t) {
4300
4279
  console.error("There was an error while trying to load client styling from URL", n);
4301
4280
  });
4302
4281
  }
4303
- function zi(e, t, r) {
4282
+ function Xi(e, t, r) {
4304
4283
  if (window.emMessageBus) {
4305
4284
  const n = document.createElement("style");
4306
4285
  window.emMessageBus.subscribe(t, (i) => {
@@ -4308,8 +4287,8 @@ function zi(e, t, r) {
4308
4287
  });
4309
4288
  }
4310
4289
  }
4311
- var x = /* @__PURE__ */ ((e) => (e.MysteryChests = "MysteryChests", e.FlipCoin = "FlipCoin", e.LuckyWheels = "LuckyWheels", e.Dices = "Dices", e))(x || {}), mr = /* @__PURE__ */ ((e) => (e.Showed = "Showed", e.Hiden = "Hiden", e))(mr || {});
4312
- const It = {
4290
+ var x = /* @__PURE__ */ ((e) => (e.MysteryChests = "MysteryChests", e.FlipCoin = "FlipCoin", e.LuckyWheels = "LuckyWheels", e.Dices = "Dices", e))(x || {}), pr = /* @__PURE__ */ ((e) => (e.Showed = "Showed", e.Hiden = "Hiden", e))(pr || {});
4291
+ const Ot = {
4313
4292
  en: {
4314
4293
  mysteryChest: "Mystery Chest",
4315
4294
  luckyWheel: "LuckyWheel",
@@ -4317,25 +4296,25 @@ const It = {
4317
4296
  flipCoin: "Flip Coin"
4318
4297
  }
4319
4298
  };
4320
- function Lt(e, t) {
4321
- lr(e, t);
4299
+ function Ct(e, t) {
4300
+ hr(e, t);
4322
4301
  }
4323
- function Zi(e) {
4324
- Ei({
4302
+ function Wi(e) {
4303
+ vi({
4325
4304
  fallbackLocale: "en"
4326
4305
  }), V.set(e);
4327
4306
  }
4328
- function Qi(e) {
4329
- gr(e, "svelte-dp9rm6", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.container{padding:0 16.5%}.container.mobile{padding:0 28px}.container.mobile .header{padding:16px 0 13px}.container.mobile .header .slider__container{gap:16px;justify-content:space-between;padding:0 24px}.container.mobile .header .slider__container__tab{font-size:var(--emw--font-size-2x-small, 10px)}.header{background:linear-gradient(89.94deg, var(--emw--color-background, #003e5c) 0.05%, var(--emw--color-background-secondary, #113b21) 87.69%);padding:23px 0 17px;border-radius:12px}.header .slider__container{display:flex;position:relative;gap:60px;justify-content:center}.header .slider__tab{padding:8px 0 13px;font-weight:var(--emw--font-weight-bold, 700);color:var(--emw--color-gray-300, #729787);cursor:pointer;text-align:center;background:transparent;border:none;font-size:var(--emw--font-size-x-small, 12px);line-height:15px}.header .slider__tab.active{color:var(--emw--color-typography, #fff);border-bottom:2px solid var(--emw--button-border-color, #00b74f);margin-bottom:-2px}");
4307
+ function zi(e) {
4308
+ yr(e, "svelte-dp9rm6", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.container{padding:0 16.5%}.container.mobile{padding:0 28px}.container.mobile .header{padding:16px 0 13px}.container.mobile .header .slider__container{gap:16px;justify-content:space-between;padding:0 24px}.container.mobile .header .slider__container__tab{font-size:var(--emw--font-size-2x-small, 10px)}.header{background:linear-gradient(89.94deg, var(--emw--color-background, #003e5c) 0.05%, var(--emw--color-background-secondary, #113b21) 87.69%);padding:23px 0 17px;border-radius:12px}.header .slider__container{display:flex;position:relative;gap:60px;justify-content:center}.header .slider__tab{padding:8px 0 13px;font-weight:var(--emw--font-weight-bold, 700);color:var(--emw--color-gray-300, #729787);cursor:pointer;text-align:center;background:transparent;border:none;font-size:var(--emw--font-size-x-small, 12px);line-height:15px}.header .slider__tab.active{color:var(--emw--color-typography, #fff);border-bottom:2px solid var(--emw--button-border-color, #00b74f);margin-bottom:-2px}");
4330
4309
  }
4331
- function qi(e) {
4310
+ function Zi(e) {
4332
4311
  let t;
4333
4312
  return {
4334
4313
  c() {
4335
4314
  t = C("div"), t.textContent = "Comming soon";
4336
4315
  },
4337
4316
  m(r, n) {
4338
- re(r, t, n);
4317
+ ne(r, t, n);
4339
4318
  },
4340
4319
  p: I,
4341
4320
  d(r) {
@@ -4343,14 +4322,14 @@ function qi(e) {
4343
4322
  }
4344
4323
  };
4345
4324
  }
4346
- function Ji(e) {
4325
+ function Qi(e) {
4347
4326
  let t;
4348
4327
  return {
4349
4328
  c() {
4350
4329
  t = C("div"), t.textContent = "Comming soon";
4351
4330
  },
4352
4331
  m(r, n) {
4353
- re(r, t, n);
4332
+ ne(r, t, n);
4354
4333
  },
4355
4334
  p: I,
4356
4335
  d(r) {
@@ -4358,14 +4337,14 @@ function Ji(e) {
4358
4337
  }
4359
4338
  };
4360
4339
  }
4361
- function Yi(e) {
4340
+ function qi(e) {
4362
4341
  let t;
4363
4342
  return {
4364
4343
  c() {
4365
4344
  t = C("div"), t.textContent = "Comming soon";
4366
4345
  },
4367
4346
  m(r, n) {
4368
- re(r, t, n);
4347
+ ne(r, t, n);
4369
4348
  },
4370
4349
  p: I,
4371
4350
  d(r) {
@@ -4373,7 +4352,7 @@ function Yi(e) {
4373
4352
  }
4374
4353
  };
4375
4354
  }
4376
- function Ki(e) {
4355
+ function Ji(e) {
4377
4356
  let t;
4378
4357
  return {
4379
4358
  c() {
@@ -4397,7 +4376,7 @@ function Ki(e) {
4397
4376
  "clientstylingurl",
4398
4377
  /*clientstylingurl*/
4399
4378
  e[0]
4400
- ), $(t, "gameoverlay", mr.Hiden), $(t, "openedbydefauls", !0), $(
4379
+ ), $(t, "gameoverlay", pr.Hiden), $(t, "openedbydefauls", !0), $(
4401
4380
  t,
4402
4381
  "clientstyling",
4403
4382
  /*mysteryChestDrawerStyles*/
@@ -4405,7 +4384,7 @@ function Ki(e) {
4405
4384
  );
4406
4385
  },
4407
4386
  m(r, n) {
4408
- re(r, t, n);
4387
+ ne(r, t, n);
4409
4388
  },
4410
4389
  p(r, n) {
4411
4390
  n & /*endpoint*/
@@ -4439,70 +4418,70 @@ function Ki(e) {
4439
4418
  }
4440
4419
  };
4441
4420
  }
4442
- function es(e) {
4421
+ function Yi(e) {
4443
4422
  let t, r, n, i, s, o = (
4444
4423
  /*$_*/
4445
4424
  e[7]("mysteryChest") + ""
4446
4425
  ), a, h, u, l = (
4447
4426
  /*$_*/
4448
4427
  e[7]("flipCoin") + ""
4449
- ), c, f, p, y = (
4428
+ ), c, f, d, y = (
4450
4429
  /*$_*/
4451
4430
  e[7]("luckyWheel") + ""
4452
- ), g, B, w, L = (
4431
+ ), g, P, T, L = (
4453
4432
  /*$_*/
4454
4433
  e[7]("dices") + ""
4455
- ), T, m, S, N, se;
4456
- function ut(E, M) {
4434
+ ), H, m, S, N, oe;
4435
+ function ot(E, M) {
4457
4436
  if (
4458
4437
  /*activeTab*/
4459
4438
  E[6] === x.MysteryChests
4460
4439
  )
4461
- return Ki;
4440
+ return Ji;
4462
4441
  if (
4463
4442
  /*activeTab*/
4464
4443
  E[6] === x.LuckyWheels
4465
4444
  )
4466
- return Yi;
4445
+ return qi;
4467
4446
  if (
4468
4447
  /*activeTab*/
4469
4448
  E[6] === x.FlipCoin
4470
4449
  )
4471
- return Ji;
4450
+ return Qi;
4472
4451
  if (
4473
4452
  /*activeTab*/
4474
4453
  E[6] === x.Dices
4475
4454
  )
4476
- return qi;
4455
+ return Zi;
4477
4456
  }
4478
- let X = ut(e), P = X && X(e);
4457
+ let X = ot(e), O = X && X(e);
4479
4458
  return {
4480
4459
  c() {
4481
- t = C("div"), r = C("div"), n = C("div"), i = C("div"), s = C("button"), a = Q(o), h = be(), u = C("button"), c = Q(l), f = be(), p = C("button"), g = Q(y), B = be(), w = C("button"), T = Q(L), m = be(), P && P.c(), O(s, "data-index", x.MysteryChests), O(s, "class", "slider__tab"), G(
4460
+ t = C("div"), r = C("div"), n = C("div"), i = C("div"), s = C("button"), a = Q(o), h = be(), u = C("button"), c = Q(l), f = be(), d = C("button"), g = Q(y), P = be(), T = C("button"), H = Q(L), m = be(), O && O.c(), B(s, "data-index", x.MysteryChests), B(s, "class", "slider__tab"), G(
4482
4461
  s,
4483
4462
  "active",
4484
4463
  /*activeTab*/
4485
4464
  e[6] === x.MysteryChests
4486
- ), O(u, "data-index", x.FlipCoin), O(u, "class", "slider__tab"), G(
4465
+ ), B(u, "data-index", x.FlipCoin), B(u, "class", "slider__tab"), G(
4487
4466
  u,
4488
4467
  "active",
4489
4468
  /*activeTab*/
4490
4469
  e[6] === x.FlipCoin
4491
- ), O(p, "data-index", x.LuckyWheels), O(p, "class", "slider__tab"), G(
4492
- p,
4470
+ ), B(d, "data-index", x.LuckyWheels), B(d, "class", "slider__tab"), G(
4471
+ d,
4493
4472
  "active",
4494
4473
  /*activeTab*/
4495
4474
  e[6] === x.LuckyWheels
4496
- ), O(w, "data-index", x.Dices), O(w, "class", "slider__tab"), G(
4497
- w,
4475
+ ), B(T, "data-index", x.Dices), B(T, "class", "slider__tab"), G(
4476
+ T,
4498
4477
  "active",
4499
4478
  /*activeTab*/
4500
4479
  e[6] === x.Dices
4501
- ), O(i, "class", "slider__container"), O(n, "class", "slider"), O(r, "class", "header"), O(t, "class", S = "container " + /*mobileView*/
4480
+ ), B(i, "class", "slider__container"), B(n, "class", "slider"), B(r, "class", "header"), B(t, "class", S = "container " + /*mobileView*/
4502
4481
  (e[5] ? "mobile" : ""));
4503
4482
  },
4504
4483
  m(E, M) {
4505
- re(E, t, M), H(t, r), H(r, n), H(n, i), H(i, s), H(s, a), H(i, h), H(i, u), H(u, c), H(i, f), H(i, p), H(p, g), H(i, B), H(i, w), H(w, T), H(t, m), P && P.m(t, null), e[13](t), N || (se = [
4484
+ ne(E, t, M), w(t, r), w(r, n), w(n, i), w(i, s), w(s, a), w(i, h), w(i, u), w(u, c), w(i, f), w(i, d), w(d, g), w(i, P), w(i, T), w(T, H), w(t, m), O && O.m(t, null), e[13](t), N || (oe = [
4506
4485
  ye(
4507
4486
  s,
4508
4487
  "click",
@@ -4516,13 +4495,13 @@ function es(e) {
4516
4495
  e[9]
4517
4496
  ),
4518
4497
  ye(
4519
- p,
4498
+ d,
4520
4499
  "click",
4521
4500
  /*handleTabChange*/
4522
4501
  e[9]
4523
4502
  ),
4524
4503
  ye(
4525
- w,
4504
+ T,
4526
4505
  "click",
4527
4506
  /*handleTabChange*/
4528
4507
  e[9]
@@ -4550,87 +4529,87 @@ function es(e) {
4550
4529
  128 && y !== (y = /*$_*/
4551
4530
  E[7]("luckyWheel") + "") && ge(g, y), M & /*activeTab*/
4552
4531
  64 && G(
4553
- p,
4532
+ d,
4554
4533
  "active",
4555
4534
  /*activeTab*/
4556
4535
  E[6] === x.LuckyWheels
4557
4536
  ), M & /*$_*/
4558
4537
  128 && L !== (L = /*$_*/
4559
- E[7]("dices") + "") && ge(T, L), M & /*activeTab*/
4538
+ E[7]("dices") + "") && ge(H, L), M & /*activeTab*/
4560
4539
  64 && G(
4561
- w,
4540
+ T,
4562
4541
  "active",
4563
4542
  /*activeTab*/
4564
4543
  E[6] === x.Dices
4565
- ), X === (X = ut(E)) && P ? P.p(E, M) : (P && P.d(1), P = X && X(E), P && (P.c(), P.m(t, null))), M & /*mobileView*/
4544
+ ), X === (X = ot(E)) && O ? O.p(E, M) : (O && O.d(1), O = X && X(E), O && (O.c(), O.m(t, null))), M & /*mobileView*/
4566
4545
  32 && S !== (S = "container " + /*mobileView*/
4567
- (E[5] ? "mobile" : "")) && O(t, "class", S);
4546
+ (E[5] ? "mobile" : "")) && B(t, "class", S);
4568
4547
  },
4569
4548
  i: I,
4570
4549
  o: I,
4571
4550
  d(E) {
4572
- E && k(t), P && P.d(), e[13](null), N = !1, te(se);
4551
+ E && k(t), O && O.d(), e[13](null), N = !1, re(oe);
4573
4552
  }
4574
4553
  };
4575
4554
  }
4576
- function ts(e, t, r) {
4555
+ function Ki(e, t, r) {
4577
4556
  let n;
4578
- yr(e, ki, (m) => r(7, n = m));
4579
- let { clientstyling: i = "" } = t, { clientstylingurl: s = "" } = t, { translationurl: o = "" } = t, { mbsource: a } = t, { endpoint: h = "" } = t, { session: u = "" } = t, { lang: l = "en" } = t, c = !0, f = window.navigator.userAgent, p, y = x.MysteryChests;
4580
- const g = ".overlay { display: none; } .drawer { position: unset; transform: none; background: transparent; width: initial; height: initial; padding: 0; border-radius: 0; } .chests-header,.close,.chest-header__title { display: none } .mobile.drawer { padding: 0 } .back { height: 40px; width: 40px;} .chest-header {padding: 20px 0 0}", B = async (m) => {
4557
+ br(e, Fi, (m) => r(7, n = m));
4558
+ let { clientstyling: i = "" } = t, { clientstylingurl: s = "" } = t, { translationurl: o = "" } = t, { mbsource: a } = t, { endpoint: h = "" } = t, { session: u = "" } = t, { lang: l = "en" } = t, c = !0, f = window.navigator.userAgent, d, y = x.MysteryChests;
4559
+ const g = ".overlay { display: none; } .drawer { position: unset; transform: none; background: transparent; width: initial; height: initial; padding: 0; border-radius: 0; } .chests-header,.close,.chest-header__title { display: none } .mobile.drawer { padding: 0 } .back { height: 40px; width: 40px;} .chest-header {padding: 20px 0 0}", P = async (m) => {
4581
4560
  r(6, y = m.target.getAttribute("data-index")), y === x.MysteryChests && window.postMessage({ type: "OpenMysteryChestDrawer" });
4582
- }, w = () => {
4583
- Zi(l);
4561
+ }, T = () => {
4562
+ Wi(l);
4584
4563
  }, L = () => {
4585
4564
  fetch(o).then((S) => S.json()).then((S) => {
4586
4565
  Object.keys(S).forEach((N) => {
4587
- Lt(N, S[N]);
4566
+ Ct(N, S[N]);
4588
4567
  });
4589
4568
  });
4590
4569
  };
4591
- Object.keys(It).forEach((m) => {
4592
- Lt(m, It[m]);
4593
- }), wr(() => (r(5, c = Vi(f)), () => {
4570
+ Object.keys(Ot).forEach((m) => {
4571
+ Ct(m, Ot[m]);
4572
+ }), Sr(() => (r(5, c = ji(f)), () => {
4594
4573
  }));
4595
- function T(m) {
4596
- je[m ? "unshift" : "push"](() => {
4597
- p = m, r(4, p);
4574
+ function H(m) {
4575
+ Ge[m ? "unshift" : "push"](() => {
4576
+ d = m, r(4, d);
4598
4577
  });
4599
4578
  }
4600
4579
  return e.$$set = (m) => {
4601
4580
  "clientstyling" in m && r(10, i = m.clientstyling), "clientstylingurl" in m && r(0, s = m.clientstylingurl), "translationurl" in m && r(11, o = m.translationurl), "mbsource" in m && r(12, a = m.mbsource), "endpoint" in m && r(1, h = m.endpoint), "session" in m && r(2, u = m.session), "lang" in m && r(3, l = m.lang);
4602
4581
  }, e.$$.update = () => {
4603
4582
  e.$$.dirty & /*lang*/
4604
- 8 && l && w(), e.$$.dirty & /*translationurl*/
4583
+ 8 && l && T(), e.$$.dirty & /*translationurl*/
4605
4584
  2048 && o && L(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4606
- 1040 && i && p && Xi(p, i), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4607
- 17 && s && p && Wi(p, s), e.$$.dirty & /*mbsource, customStylingContainer*/
4608
- 4112 && a && p && zi(p, `${a}.Style`);
4585
+ 1040 && i && d && ki(d, i), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4586
+ 17 && s && d && Vi(d, s), e.$$.dirty & /*mbsource, customStylingContainer*/
4587
+ 4112 && a && d && Xi(d, `${a}.Style`);
4609
4588
  }, [
4610
4589
  s,
4611
4590
  h,
4612
4591
  u,
4613
4592
  l,
4614
- p,
4593
+ d,
4615
4594
  c,
4616
4595
  y,
4617
4596
  n,
4618
4597
  g,
4619
- B,
4598
+ P,
4620
4599
  i,
4621
4600
  o,
4622
4601
  a,
4623
- T
4602
+ H
4624
4603
  ];
4625
4604
  }
4626
- class rs extends $r {
4605
+ class es extends Nr {
4627
4606
  constructor(t) {
4628
- super(), Mr(
4607
+ super(), Lr(
4629
4608
  this,
4630
4609
  t,
4631
- ts,
4632
- es,
4633
- Nt,
4610
+ Ki,
4611
+ Yi,
4612
+ Lt,
4634
4613
  {
4635
4614
  clientstyling: 10,
4636
4615
  clientstylingurl: 0,
@@ -4640,86 +4619,86 @@ class rs extends $r {
4640
4619
  session: 2,
4641
4620
  lang: 3
4642
4621
  },
4643
- Qi
4622
+ zi
4644
4623
  );
4645
4624
  }
4646
4625
  get clientstyling() {
4647
4626
  return this.$$.ctx[10];
4648
4627
  }
4649
4628
  set clientstyling(t) {
4650
- this.$$set({ clientstyling: t }), U();
4629
+ this.$$set({ clientstyling: t }), R();
4651
4630
  }
4652
4631
  get clientstylingurl() {
4653
4632
  return this.$$.ctx[0];
4654
4633
  }
4655
4634
  set clientstylingurl(t) {
4656
- this.$$set({ clientstylingurl: t }), U();
4635
+ this.$$set({ clientstylingurl: t }), R();
4657
4636
  }
4658
4637
  get translationurl() {
4659
4638
  return this.$$.ctx[11];
4660
4639
  }
4661
4640
  set translationurl(t) {
4662
- this.$$set({ translationurl: t }), U();
4641
+ this.$$set({ translationurl: t }), R();
4663
4642
  }
4664
4643
  get mbsource() {
4665
4644
  return this.$$.ctx[12];
4666
4645
  }
4667
4646
  set mbsource(t) {
4668
- this.$$set({ mbsource: t }), U();
4647
+ this.$$set({ mbsource: t }), R();
4669
4648
  }
4670
4649
  get endpoint() {
4671
4650
  return this.$$.ctx[1];
4672
4651
  }
4673
4652
  set endpoint(t) {
4674
- this.$$set({ endpoint: t }), U();
4653
+ this.$$set({ endpoint: t }), R();
4675
4654
  }
4676
4655
  get session() {
4677
4656
  return this.$$.ctx[2];
4678
4657
  }
4679
4658
  set session(t) {
4680
- this.$$set({ session: t }), U();
4659
+ this.$$set({ session: t }), R();
4681
4660
  }
4682
4661
  get lang() {
4683
4662
  return this.$$.ctx[3];
4684
4663
  }
4685
4664
  set lang(t) {
4686
- this.$$set({ lang: t }), U();
4665
+ this.$$set({ lang: t }), R();
4687
4666
  }
4688
4667
  }
4689
- Nr(rs, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {}, endpoint: {}, session: {}, lang: {} }, [], [], !0);
4668
+ Mr(es, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {}, endpoint: {}, session: {}, lang: {} }, [], [], !0);
4690
4669
  export {
4691
4670
  V as $,
4692
- os as A,
4693
- is as B,
4694
- Xi as C,
4695
- Wi as D,
4696
- zi as E,
4697
- rs as F,
4698
- $r as S,
4699
- gr as a,
4700
- re as b,
4701
- Nr as c,
4702
- k as d,
4703
- be as e,
4704
- U as f,
4705
- ss as g,
4706
- Vi as h,
4707
- Mr as i,
4708
- $ as j,
4709
- C as k,
4710
- O as l,
4711
- H as m,
4671
+ is as A,
4672
+ rs as B,
4673
+ Vi as C,
4674
+ Xi as D,
4675
+ ki as E,
4676
+ es as F,
4677
+ Nr as S,
4678
+ yr as a,
4679
+ be as b,
4680
+ Mr as c,
4681
+ ne as d,
4682
+ ns as e,
4683
+ R as f,
4684
+ k as g,
4685
+ ji as h,
4686
+ Lr as i,
4687
+ C as j,
4688
+ $ as k,
4689
+ B as l,
4690
+ ts as m,
4712
4691
  I as n,
4713
- wr as o,
4714
- ye as p,
4715
- ns as q,
4716
- lr as r,
4717
- Nt as s,
4718
- te as t,
4692
+ Sr as o,
4693
+ w as p,
4694
+ ye as q,
4695
+ hr as r,
4696
+ Lt as s,
4697
+ Q as t,
4719
4698
  ge as u,
4720
- Q as v,
4721
- yr as w,
4722
- je as x,
4723
- ki as y,
4699
+ re as v,
4700
+ br as w,
4701
+ Ge as x,
4702
+ Fi as y,
4724
4703
  G as z
4725
4704
  };