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

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