@everymatrix/casino-my-games 1.65.3 → 1.66.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/components/{CasinoFavoritesSection-W2PHpXHy.js → CasinoFavoritesSection-BM4d2-q9.js} +1183 -1217
  2. package/components/{CasinoFavoritesSection-6BTlzUj-.js → CasinoFavoritesSection-DH2fKB34.js} +1180 -1214
  3. package/components/CasinoFavoritesSection-maLLrq97.cjs +3 -0
  4. package/components/{CasinoFilter-B6R_avoJ.js → CasinoFilter-BAEbnhVg.js} +233 -169
  5. package/components/{CasinoFilter-CCymmiWX.js → CasinoFilter-BGZ--eT9.js} +316 -250
  6. package/components/CasinoFilter-DCNGt1dF.cjs +16 -0
  7. package/components/{CasinoGameThumbnail-BO2zA5QB.cjs → CasinoGameThumbnail-BMD5a0oW.cjs} +1 -1
  8. package/components/{CasinoGameThumbnail-BGUWXfUt.js → CasinoGameThumbnail-Br1cnarw.js} +167 -167
  9. package/components/{CasinoGameThumbnail-lT3_k2LM.js → CasinoGameThumbnail-JQ6V5ZV1.js} +169 -169
  10. package/components/{CasinoGamesCategorySection-uRhZwIcE.js → CasinoGamesCategorySection-BpJHekMR.js} +122 -122
  11. package/components/CasinoGamesCategorySection-DXsftfR-.cjs +1 -0
  12. package/components/{CasinoGamesCategorySection-QKGt6813.js → CasinoGamesCategorySection-s1yMyZKs.js} +121 -121
  13. package/components/{CasinoLastPlayedSection-BPqgFCKg.js → CasinoLastPlayedSection-BsM-J8uP.js} +28 -28
  14. package/components/{CasinoLastPlayedSection-BaDtVHOn.cjs → CasinoLastPlayedSection-Clmt9fUV.cjs} +1 -1
  15. package/components/{CasinoLastPlayedSection-BXjyhALv.js → CasinoLastPlayedSection-DG-yuUuf.js} +28 -28
  16. package/components/{CasinoMostPlayedSection-BkEd7mf-.js → CasinoMostPlayedSection-BLhR9by6.js} +51 -51
  17. package/components/{CasinoMostPlayedSection-Cnq1XL5d.cjs → CasinoMostPlayedSection-DZh4AlkB.cjs} +1 -1
  18. package/components/{CasinoMostPlayedSection-DYTjTChq.js → CasinoMostPlayedSection-hBp_fnyv.js} +51 -51
  19. package/components/{CasinoMyGames-DA_4tG2d.cjs → CasinoMyGames-BXc3rd_N.cjs} +1 -1
  20. package/components/{CasinoMyGames-BHDcga5h.js → CasinoMyGames-DMn2X7HK.js} +35 -35
  21. package/components/{CasinoMyGames-Dl3nVkz0.js → CasinoMyGames-DSCh978A.js} +28 -28
  22. package/components/{CasinoSort-CPzrgOd2.cjs → CasinoSort-DRepvDnr.cjs} +1 -1
  23. package/components/{CasinoSort-Cfggt4pd.js → CasinoSort-Dkz3rnBE.js} +22 -22
  24. package/components/{CasinoSort-N1dOvDKU.js → CasinoSort-vMgw94ys.js} +22 -22
  25. package/es2015/casino-my-games.cjs +1 -1
  26. package/es2015/casino-my-games.js +1 -1
  27. package/esnext/casino-my-games.js +1 -1
  28. package/package.json +1 -1
  29. package/stencil/{index-97d17652-ChRvzjAp.js → index-97d17652-BEnqZAxL.js} +186 -186
  30. package/stencil/index-97d17652-D5_8Vwfn.cjs +1 -0
  31. package/stencil/{index-97d17652-DKsTmN3Z.js → index-97d17652-WK_DbPS4.js} +175 -175
  32. package/stencil/{ui-image-B2ynFkLT.cjs → ui-image-CMb1eK44.cjs} +1 -1
  33. package/stencil/{ui-image-D7A7MInC.js → ui-image-CQQDA5b0.js} +1 -1
  34. package/stencil/{ui-image-D_Js9Evk.js → ui-image-CmwNU-jf.js} +1 -1
  35. package/stencil/{ui-image-b7b48fe5-B43lELFk.js → ui-image-b7b48fe5-Cf9Vq5pI.js} +1 -1
  36. package/stencil/{ui-image-b7b48fe5-CRQDt62Z.cjs → ui-image-b7b48fe5-DCck2kk1.cjs} +1 -1
  37. package/stencil/{ui-image-b7b48fe5-DVcK_myk.js → ui-image-b7b48fe5-V9vp4faA.js} +1 -1
  38. package/stencil/{ui-image_2-EP2dwjfi.js → ui-image_2-B56t6kXT.js} +2 -2
  39. package/stencil/{ui-image_2-Df0q0jE8.js → ui-image_2-BncuYpLi.js} +2 -2
  40. package/stencil/{ui-image_2-CyHaM9Na.cjs → ui-image_2-YkYxLKu7.cjs} +1 -1
  41. package/components/CasinoFavoritesSection-D8XZ4-VV.cjs +0 -16
  42. package/components/CasinoFilter-CcmRaOKg.cjs +0 -3
  43. package/components/CasinoGamesCategorySection-DuLUC85-.cjs +0 -1
  44. package/stencil/index-97d17652-qWThG1U9.cjs +0 -1
@@ -1,79 +1,79 @@
1
- var Ft = Object.defineProperty, jt = Object.defineProperties;
2
- var kt = Object.getOwnPropertyDescriptors;
3
- var je = Object.getOwnPropertySymbols;
4
- var Vt = Object.prototype.hasOwnProperty, Xt = Object.prototype.propertyIsEnumerable;
5
- var pe = (e, t, n) => t in e ? Ft(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ke = (e, t) => {
6
- for (var n in t || (t = {}))
7
- Vt.call(t, n) && pe(e, n, t[n]);
8
- if (je)
9
- for (var n of je(t))
10
- Xt.call(t, n) && pe(e, n, t[n]);
1
+ var jt = Object.defineProperty, kt = Object.defineProperties;
2
+ var Vt = Object.getOwnPropertyDescriptors;
3
+ var ke = Object.getOwnPropertySymbols;
4
+ var Xt = Object.prototype.hasOwnProperty, zt = Object.prototype.propertyIsEnumerable;
5
+ var Ee = (e, t, r) => t in e ? jt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ve = (e, t) => {
6
+ for (var r in t || (t = {}))
7
+ Xt.call(t, r) && Ee(e, r, t[r]);
8
+ if (ke)
9
+ for (var r of ke(t))
10
+ zt.call(t, r) && Ee(e, r, t[r]);
11
11
  return e;
12
- }, Ve = (e, t) => jt(e, kt(t));
13
- var S = (e, t, n) => (pe(e, typeof t != "symbol" ? t + "" : t, n), n);
14
- var Xe = (e, t, n) => new Promise((r, i) => {
12
+ }, Xe = (e, t) => kt(e, Vt(t));
13
+ var S = (e, t, r) => (Ee(e, typeof t != "symbol" ? t + "" : t, r), r);
14
+ var ze = (e, t, r) => new Promise((n, i) => {
15
15
  var s = (l) => {
16
16
  try {
17
- u(n.next(l));
18
- } catch (o) {
19
- i(o);
17
+ u(r.next(l));
18
+ } catch (a) {
19
+ i(a);
20
20
  }
21
- }, a = (l) => {
21
+ }, o = (l) => {
22
22
  try {
23
- u(n.throw(l));
24
- } catch (o) {
25
- i(o);
23
+ u(r.throw(l));
24
+ } catch (a) {
25
+ i(a);
26
26
  }
27
- }, u = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(s, a);
28
- u((n = n.apply(e, t)).next());
27
+ }, u = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(s, o);
28
+ u((r = r.apply(e, t)).next());
29
29
  });
30
- function O() {
30
+ function N() {
31
31
  }
32
- function ut(e) {
32
+ function ht(e) {
33
33
  return e();
34
34
  }
35
- function ze() {
35
+ function We() {
36
36
  return /* @__PURE__ */ Object.create(null);
37
37
  }
38
- function z(e) {
39
- e.forEach(ut);
38
+ function W(e) {
39
+ e.forEach(ht);
40
40
  }
41
- function $e(e) {
41
+ function De(e) {
42
42
  return typeof e == "function";
43
43
  }
44
- function ht(e, t) {
44
+ function lt(e, t) {
45
45
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
46
  }
47
- let ie;
48
- function ui(e, t) {
49
- return e === t ? !0 : (ie || (ie = document.createElement("a")), ie.href = t, e === ie.href);
47
+ let se;
48
+ function hi(e, t) {
49
+ return e === t ? !0 : (se || (se = document.createElement("a")), se.href = t, e === se.href);
50
50
  }
51
- function zt(e) {
51
+ function Wt(e) {
52
52
  return Object.keys(e).length === 0;
53
53
  }
54
- function lt(e, ...t) {
54
+ function ft(e, ...t) {
55
55
  if (e == null) {
56
- for (const r of t)
57
- r(void 0);
58
- return O;
56
+ for (const n of t)
57
+ n(void 0);
58
+ return N;
59
59
  }
60
- const n = e.subscribe(...t);
61
- return n.unsubscribe ? () => n.unsubscribe() : n;
60
+ const r = e.subscribe(...t);
61
+ return r.unsubscribe ? () => r.unsubscribe() : r;
62
62
  }
63
- function hi(e, t, n) {
64
- e.$$.on_destroy.push(lt(t, n));
63
+ function li(e, t, r) {
64
+ e.$$.on_destroy.push(ft(t, r));
65
65
  }
66
- function Wt(e, t) {
66
+ function Zt(e, t) {
67
67
  e.appendChild(t);
68
68
  }
69
- function Zt(e, t, n) {
70
- const r = Qt(e);
71
- if (!r.getElementById(t)) {
69
+ function Qt(e, t, r) {
70
+ const n = qt(e);
71
+ if (!n.getElementById(t)) {
72
72
  const i = ne("style");
73
- i.id = t, i.textContent = n, qt(r, i);
73
+ i.id = t, i.textContent = r, Jt(n, i);
74
74
  }
75
75
  }
76
- function Qt(e) {
76
+ function qt(e) {
77
77
  if (!e)
78
78
  return document;
79
79
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -83,62 +83,62 @@ function Qt(e) {
83
83
  t
84
84
  ) : e.ownerDocument;
85
85
  }
86
- function qt(e, t) {
87
- return Wt(
86
+ function Jt(e, t) {
87
+ return Zt(
88
88
  /** @type {Document} */
89
89
  e.head || e,
90
90
  t
91
91
  ), t.sheet;
92
92
  }
93
- function fe(e, t, n) {
94
- e.insertBefore(t, n || null);
93
+ function me(e, t, r) {
94
+ e.insertBefore(t, r || null);
95
95
  }
96
- function te(e) {
96
+ function re(e) {
97
97
  e.parentNode && e.parentNode.removeChild(e);
98
98
  }
99
- function li(e, t) {
100
- for (let n = 0; n < e.length; n += 1)
101
- e[n] && e[n].d(t);
99
+ function fi(e, t) {
100
+ for (let r = 0; r < e.length; r += 1)
101
+ e[r] && e[r].d(t);
102
102
  }
103
103
  function ne(e) {
104
104
  return document.createElement(e);
105
105
  }
106
- function Jt(e) {
106
+ function Yt(e) {
107
107
  return document.createElementNS("http://www.w3.org/2000/svg", e);
108
108
  }
109
- function ft(e) {
109
+ function ct(e) {
110
110
  return document.createTextNode(e);
111
111
  }
112
- function fi() {
113
- return ft(" ");
114
- }
115
112
  function ci() {
116
- return ft("");
113
+ return ct(" ");
117
114
  }
118
- function mi(e, t, n, r) {
119
- return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
115
+ function mi() {
116
+ return ct("");
120
117
  }
121
- function Ue(e, t, n) {
122
- n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
118
+ function gi(e, t, r, n) {
119
+ return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
123
120
  }
124
- function d(e, t, n) {
125
- const r = t.toLowerCase();
126
- r in e ? e[r] = typeof e[r] == "boolean" && n === "" ? !0 : n : t in e ? e[t] = typeof e[t] == "boolean" && n === "" ? !0 : n : Ue(e, t, n);
121
+ function Ge(e, t, r) {
122
+ r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
127
123
  }
128
- function Yt(e) {
124
+ function g(e, t, r) {
125
+ const n = t.toLowerCase();
126
+ n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : Ge(e, t, r);
127
+ }
128
+ function Kt(e) {
129
129
  return Array.from(e.childNodes);
130
130
  }
131
131
  function di(e, t) {
132
132
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
133
133
  t);
134
134
  }
135
- function gi(e, t) {
135
+ function bi(e, t) {
136
136
  e.value = t == null ? "" : t;
137
137
  }
138
- function bi(e, t, n) {
139
- e.classList.toggle(t, !!n);
138
+ function pi(e, t, r) {
139
+ e.classList.toggle(t, !!r);
140
140
  }
141
- class pi {
141
+ class yi {
142
142
  constructor(t = !1) {
143
143
  /**
144
144
  * @private
@@ -168,17 +168,17 @@ class pi {
168
168
  * @param {HTMLElement | SVGElement} anchor
169
169
  * @returns {void}
170
170
  */
171
- m(t, n, r = null) {
172
- this.e || (this.is_svg ? this.e = Jt(
171
+ m(t, r, n = null) {
172
+ this.e || (this.is_svg ? this.e = Yt(
173
173
  /** @type {keyof SVGElementTagNameMap} */
174
- n.nodeName
174
+ r.nodeName
175
175
  ) : this.e = ne(
176
176
  /** @type {keyof HTMLElementTagNameMap} */
177
- n.nodeType === 11 ? "TEMPLATE" : n.nodeName
178
- ), this.t = n.tagName !== "TEMPLATE" ? n : (
177
+ r.nodeType === 11 ? "TEMPLATE" : r.nodeName
178
+ ), this.t = r.tagName !== "TEMPLATE" ? r : (
179
179
  /** @type {HTMLTemplateElement} */
180
- n.content
181
- ), this.c(t)), this.i(r);
180
+ r.content
181
+ ), this.c(t)), this.i(n);
182
182
  }
183
183
  /**
184
184
  * @param {string} html
@@ -192,8 +192,8 @@ class pi {
192
192
  /**
193
193
  * @returns {void} */
194
194
  i(t) {
195
- for (let n = 0; n < this.n.length; n += 1)
196
- fe(this.t, this.n[n], t);
195
+ for (let r = 0; r < this.n.length; r += 1)
196
+ me(this.t, this.n[r], t);
197
197
  }
198
198
  /**
199
199
  * @param {string} html
@@ -205,87 +205,87 @@ class pi {
205
205
  /**
206
206
  * @returns {void} */
207
207
  d() {
208
- this.n.forEach(te);
208
+ this.n.forEach(re);
209
209
  }
210
210
  }
211
- function Kt(e) {
211
+ function er(e) {
212
212
  const t = {};
213
213
  return e.childNodes.forEach(
214
214
  /** @param {Element} node */
215
- (n) => {
216
- t[n.slot || "default"] = !0;
215
+ (r) => {
216
+ t[r.slot || "default"] = !0;
217
217
  }
218
218
  ), t;
219
219
  }
220
- let Y;
221
- function J(e) {
222
- Y = e;
220
+ let K;
221
+ function Y(e) {
222
+ K = e;
223
223
  }
224
- function ct() {
225
- if (!Y)
224
+ function mt() {
225
+ if (!K)
226
226
  throw new Error("Function called outside component initialization");
227
- return Y;
227
+ return K;
228
228
  }
229
- function en(e) {
230
- ct().$$.on_mount.push(e);
229
+ function tr(e) {
230
+ mt().$$.on_mount.push(e);
231
231
  }
232
- function yi(e) {
233
- ct().$$.on_destroy.push(e);
232
+ function Ei(e) {
233
+ mt().$$.on_destroy.push(e);
234
234
  }
235
- const G = [], Se = [];
236
- let F = [];
237
- const We = [], mt = /* @__PURE__ */ Promise.resolve();
238
- let Be = !1;
235
+ const F = [], Ae = [];
236
+ let j = [];
237
+ const Ze = [], gt = /* @__PURE__ */ Promise.resolve();
238
+ let we = !1;
239
239
  function dt() {
240
- Be || (Be = !0, mt.then(H));
240
+ we || (we = !0, gt.then(H));
241
241
  }
242
- function Ei() {
243
- return dt(), mt;
242
+ function vi() {
243
+ return dt(), gt;
244
244
  }
245
- function Ae(e) {
246
- F.push(e);
245
+ function Pe(e) {
246
+ j.push(e);
247
247
  }
248
- const ye = /* @__PURE__ */ new Set();
249
- let U = 0;
248
+ const ve = /* @__PURE__ */ new Set();
249
+ let D = 0;
250
250
  function H() {
251
- if (U !== 0)
251
+ if (D !== 0)
252
252
  return;
253
- const e = Y;
253
+ const e = K;
254
254
  do {
255
255
  try {
256
- for (; U < G.length; ) {
257
- const t = G[U];
258
- U++, J(t), tn(t.$$);
256
+ for (; D < F.length; ) {
257
+ const t = F[D];
258
+ D++, Y(t), rr(t.$$);
259
259
  }
260
260
  } catch (t) {
261
- throw G.length = 0, U = 0, t;
261
+ throw F.length = 0, D = 0, t;
262
262
  }
263
- for (J(null), G.length = 0, U = 0; Se.length; )
264
- Se.pop()();
265
- for (let t = 0; t < F.length; t += 1) {
266
- const n = F[t];
267
- ye.has(n) || (ye.add(n), n());
263
+ for (Y(null), F.length = 0, D = 0; Ae.length; )
264
+ Ae.pop()();
265
+ for (let t = 0; t < j.length; t += 1) {
266
+ const r = j[t];
267
+ ve.has(r) || (ve.add(r), r());
268
268
  }
269
- F.length = 0;
270
- } while (G.length);
271
- for (; We.length; )
272
- We.pop()();
273
- Be = !1, ye.clear(), J(e);
269
+ j.length = 0;
270
+ } while (F.length);
271
+ for (; Ze.length; )
272
+ Ze.pop()();
273
+ we = !1, ve.clear(), Y(e);
274
274
  }
275
- function tn(e) {
275
+ function rr(e) {
276
276
  if (e.fragment !== null) {
277
- e.update(), z(e.before_update);
277
+ e.update(), W(e.before_update);
278
278
  const t = e.dirty;
279
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ae);
279
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Pe);
280
280
  }
281
281
  }
282
- function nn(e) {
283
- const t = [], n = [];
284
- F.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), F = t;
282
+ function nr(e) {
283
+ const t = [], r = [];
284
+ j.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), j = t;
285
285
  }
286
- const rn = /* @__PURE__ */ new Set();
287
- function gt(e, t) {
288
- e && e.i && (rn.delete(e), e.i(t));
286
+ const ir = /* @__PURE__ */ new Set();
287
+ function bt(e, t) {
288
+ e && e.i && (ir.delete(e), e.i(t));
289
289
  }
290
290
  function _i(e) {
291
291
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
@@ -293,58 +293,58 @@ function _i(e) {
293
293
  function xi(e, t) {
294
294
  e.d(1), t.delete(e.key);
295
295
  }
296
- function vi(e, t, n, r, i, s, a, u, l, o, h, m) {
296
+ function Hi(e, t, r, n, i, s, o, u, l, a, h, m) {
297
297
  let f = e.length, b = s.length, y = f;
298
- const x = {};
298
+ const _ = {};
299
299
  for (; y--; )
300
- x[e[y].key] = y;
300
+ _[e[y].key] = y;
301
301
  const T = [], P = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map(), B = [];
302
302
  for (y = b; y--; ) {
303
- const c = m(i, s, y), L = n(c);
304
- let C = a.get(L);
305
- C ? B.push(() => C.p(c, t)) : (C = o(L, c), C.c()), P.set(L, T[y] = C), L in x && w.set(L, Math.abs(y - x[L]));
303
+ const c = m(i, s, y), L = r(c);
304
+ let C = o.get(L);
305
+ C ? B.push(() => C.p(c, t)) : (C = a(L, c), C.c()), P.set(L, T[y] = C), L in _ && w.set(L, Math.abs(y - _[L]));
306
306
  }
307
- const N = /* @__PURE__ */ new Set(), v = /* @__PURE__ */ new Set();
307
+ const O = /* @__PURE__ */ new Set(), x = /* @__PURE__ */ new Set();
308
308
  function I(c) {
309
- gt(c, 1), c.m(u, h), a.set(c.key, c), h = c.first, b--;
309
+ bt(c, 1), c.m(u, h), o.set(c.key, c), h = c.first, b--;
310
310
  }
311
311
  for (; f && b; ) {
312
- const c = T[b - 1], L = e[f - 1], C = c.key, re = L.key;
313
- c === L ? (h = c.first, f--, b--) : P.has(re) ? !a.has(C) || N.has(C) ? I(c) : v.has(re) ? f-- : w.get(C) > w.get(re) ? (v.add(C), I(c)) : (N.add(re), f--) : (l(L, a), f--);
312
+ const c = T[b - 1], L = e[f - 1], C = c.key, ie = L.key;
313
+ c === L ? (h = c.first, f--, b--) : P.has(ie) ? !o.has(C) || O.has(C) ? I(c) : x.has(ie) ? f-- : w.get(C) > w.get(ie) ? (x.add(C), I(c)) : (O.add(ie), f--) : (l(L, o), f--);
314
314
  }
315
315
  for (; f--; ) {
316
316
  const c = e[f];
317
- P.has(c.key) || l(c, a);
317
+ P.has(c.key) || l(c, o);
318
318
  }
319
319
  for (; b; )
320
320
  I(T[b - 1]);
321
- return z(B), T;
322
- }
323
- function sn(e, t, n) {
324
- const { fragment: r, after_update: i } = e.$$;
325
- r && r.m(t, n), Ae(() => {
326
- const s = e.$$.on_mount.map(ut).filter($e);
327
- e.$$.on_destroy ? e.$$.on_destroy.push(...s) : z(s), e.$$.on_mount = [];
328
- }), i.forEach(Ae);
329
- }
330
- function an(e, t) {
331
- const n = e.$$;
332
- n.fragment !== null && (nn(n.after_update), z(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
333
- }
334
- function on(e, t) {
335
- e.$$.dirty[0] === -1 && (G.push(e), dt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
336
- }
337
- function un(e, t, n, r, i, s, a = null, u = [-1]) {
338
- const l = Y;
339
- J(e);
340
- const o = e.$$ = {
321
+ return W(B), T;
322
+ }
323
+ function sr(e, t, r) {
324
+ const { fragment: n, after_update: i } = e.$$;
325
+ n && n.m(t, r), Pe(() => {
326
+ const s = e.$$.on_mount.map(ht).filter(De);
327
+ e.$$.on_destroy ? e.$$.on_destroy.push(...s) : W(s), e.$$.on_mount = [];
328
+ }), i.forEach(Pe);
329
+ }
330
+ function or(e, t) {
331
+ const r = e.$$;
332
+ r.fragment !== null && (nr(r.after_update), W(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
333
+ }
334
+ function ar(e, t) {
335
+ e.$$.dirty[0] === -1 && (F.push(e), dt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
336
+ }
337
+ function ur(e, t, r, n, i, s, o = null, u = [-1]) {
338
+ const l = K;
339
+ Y(e);
340
+ const a = e.$$ = {
341
341
  fragment: null,
342
342
  ctx: [],
343
343
  // state
344
344
  props: s,
345
- update: O,
345
+ update: N,
346
346
  not_equal: i,
347
- bound: ze(),
347
+ bound: We(),
348
348
  // lifecycle
349
349
  on_mount: [],
350
350
  on_destroy: [],
@@ -353,29 +353,29 @@ function un(e, t, n, r, i, s, a = null, u = [-1]) {
353
353
  after_update: [],
354
354
  context: new Map(t.context || (l ? l.$$.context : [])),
355
355
  // everything else
356
- callbacks: ze(),
356
+ callbacks: We(),
357
357
  dirty: u,
358
358
  skip_bound: !1,
359
359
  root: t.target || l.$$.root
360
360
  };
361
- a && a(o.root);
361
+ o && o(a.root);
362
362
  let h = !1;
363
- if (o.ctx = n ? n(e, t.props || {}, (m, f, ...b) => {
363
+ if (a.ctx = r ? r(e, t.props || {}, (m, f, ...b) => {
364
364
  const y = b.length ? b[0] : f;
365
- return o.ctx && i(o.ctx[m], o.ctx[m] = y) && (!o.skip_bound && o.bound[m] && o.bound[m](y), h && on(e, m)), f;
366
- }) : [], o.update(), h = !0, z(o.before_update), o.fragment = r ? r(o.ctx) : !1, t.target) {
365
+ return a.ctx && i(a.ctx[m], a.ctx[m] = y) && (!a.skip_bound && a.bound[m] && a.bound[m](y), h && ar(e, m)), f;
366
+ }) : [], a.update(), h = !0, W(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
367
367
  if (t.hydrate) {
368
- const m = Yt(t.target);
369
- o.fragment && o.fragment.l(m), m.forEach(te);
368
+ const m = Kt(t.target);
369
+ a.fragment && a.fragment.l(m), m.forEach(re);
370
370
  } else
371
- o.fragment && o.fragment.c();
372
- t.intro && gt(e.$$.fragment), sn(e, t.target, t.anchor), H();
371
+ a.fragment && a.fragment.c();
372
+ t.intro && bt(e.$$.fragment), sr(e, t.target, t.anchor), H();
373
373
  }
374
- J(l);
374
+ Y(l);
375
375
  }
376
- let bt;
377
- typeof HTMLElement == "function" && (bt = class extends HTMLElement {
378
- constructor(t, n, r) {
376
+ let pt;
377
+ typeof HTMLElement == "function" && (pt = class extends HTMLElement {
378
+ constructor(t, r, n) {
379
379
  super();
380
380
  /** The Svelte component constructor */
381
381
  S(this, "$$ctor");
@@ -395,59 +395,59 @@ typeof HTMLElement == "function" && (bt = class extends HTMLElement {
395
395
  S(this, "$$l", {});
396
396
  /** @type {Map<Function, Function>} Event listener unsubscribe functions */
397
397
  S(this, "$$l_u", /* @__PURE__ */ new Map());
398
- this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
398
+ this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
399
399
  }
400
- addEventListener(t, n, r) {
401
- if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(n), this.$$c) {
402
- const i = this.$$c.$on(t, n);
403
- this.$$l_u.set(n, i);
400
+ addEventListener(t, r, n) {
401
+ if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
402
+ const i = this.$$c.$on(t, r);
403
+ this.$$l_u.set(r, i);
404
404
  }
405
- super.addEventListener(t, n, r);
405
+ super.addEventListener(t, r, n);
406
406
  }
407
- removeEventListener(t, n, r) {
408
- if (super.removeEventListener(t, n, r), this.$$c) {
409
- const i = this.$$l_u.get(n);
410
- i && (i(), this.$$l_u.delete(n));
407
+ removeEventListener(t, r, n) {
408
+ if (super.removeEventListener(t, r, n), this.$$c) {
409
+ const i = this.$$l_u.get(r);
410
+ i && (i(), this.$$l_u.delete(r));
411
411
  }
412
412
  }
413
413
  connectedCallback() {
414
- return Xe(this, null, function* () {
414
+ return ze(this, null, function* () {
415
415
  if (this.$$cn = !0, !this.$$c) {
416
416
  let t = function(s) {
417
417
  return () => {
418
- let a;
418
+ let o;
419
419
  return {
420
420
  c: function() {
421
- a = ne("slot"), s !== "default" && Ue(a, "name", s);
421
+ o = ne("slot"), s !== "default" && Ge(o, "name", s);
422
422
  },
423
423
  /**
424
424
  * @param {HTMLElement} target
425
425
  * @param {HTMLElement} [anchor]
426
426
  */
427
- m: function(o, h) {
428
- fe(o, a, h);
427
+ m: function(a, h) {
428
+ me(a, o, h);
429
429
  },
430
- d: function(o) {
431
- o && te(a);
430
+ d: function(a) {
431
+ a && re(o);
432
432
  }
433
433
  };
434
434
  };
435
435
  };
436
436
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
437
437
  return;
438
- const n = {}, r = Kt(this);
438
+ const r = {}, n = er(this);
439
439
  for (const s of this.$$s)
440
- s in r && (n[s] = [t(s)]);
440
+ s in n && (r[s] = [t(s)]);
441
441
  for (const s of this.attributes) {
442
- const a = this.$$g_p(s.name);
443
- a in this.$$d || (this.$$d[a] = ae(a, s.value, this.$$p_d, "toProp"));
442
+ const o = this.$$g_p(s.name);
443
+ o in this.$$d || (this.$$d[o] = ae(o, s.value, this.$$p_d, "toProp"));
444
444
  }
445
445
  for (const s in this.$$p_d)
446
446
  !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
447
447
  this.$$c = new this.$$ctor({
448
448
  target: this.shadowRoot || this,
449
- props: Ve(ke({}, this.$$d), {
450
- $$slots: n,
449
+ props: Xe(Ve({}, this.$$d), {
450
+ $$slots: r,
451
451
  $$scope: {
452
452
  ctx: []
453
453
  }
@@ -457,21 +457,21 @@ typeof HTMLElement == "function" && (bt = class extends HTMLElement {
457
457
  this.$$r = !0;
458
458
  for (const s in this.$$p_d)
459
459
  if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
460
- const a = ae(
460
+ const o = ae(
461
461
  s,
462
462
  this.$$d[s],
463
463
  this.$$p_d,
464
464
  "toAttribute"
465
465
  );
466
- a == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, a);
466
+ o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
467
467
  }
468
468
  this.$$r = !1;
469
469
  };
470
470
  this.$$c.$$.after_update.push(i), i();
471
471
  for (const s in this.$$l)
472
- for (const a of this.$$l[s]) {
473
- const u = this.$$c.$on(s, a);
474
- this.$$l_u.set(a, u);
472
+ for (const o of this.$$l[s]) {
473
+ const u = this.$$c.$on(s, o);
474
+ this.$$l_u.set(o, u);
475
475
  }
476
476
  this.$$l = {};
477
477
  }
@@ -479,9 +479,9 @@ typeof HTMLElement == "function" && (bt = class extends HTMLElement {
479
479
  }
480
480
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
481
481
  // and setting attributes through setAttribute etc, this is helpful
482
- attributeChangedCallback(t, n, r) {
482
+ attributeChangedCallback(t, r, n) {
483
483
  var i;
484
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = ae(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
484
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = ae(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
485
485
  }
486
486
  disconnectedCallback() {
487
487
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -490,16 +490,16 @@ typeof HTMLElement == "function" && (bt = class extends HTMLElement {
490
490
  }
491
491
  $$g_p(t) {
492
492
  return Object.keys(this.$$p_d).find(
493
- (n) => this.$$p_d[n].attribute === t || !this.$$p_d[n].attribute && n.toLowerCase() === t
493
+ (r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
494
494
  ) || t;
495
495
  }
496
496
  });
497
- function ae(e, t, n, r) {
497
+ function ae(e, t, r, n) {
498
498
  var s;
499
- const i = (s = n[e]) == null ? void 0 : s.type;
500
- if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
499
+ const i = (s = r[e]) == null ? void 0 : s.type;
500
+ if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
501
501
  return t;
502
- if (r === "toAttribute")
502
+ if (n === "toAttribute")
503
503
  switch (i) {
504
504
  case "Object":
505
505
  case "Array":
@@ -524,10 +524,10 @@ function ae(e, t, n, r) {
524
524
  return t;
525
525
  }
526
526
  }
527
- function hn(e, t, n, r, i, s) {
528
- let a = class extends bt {
527
+ function hr(e, t, r, n, i, s) {
528
+ let o = class extends pt {
529
529
  constructor() {
530
- super(e, n, i), this.$$p_d = t;
530
+ super(e, r, i), this.$$p_d = t;
531
531
  }
532
532
  static get observedAttributes() {
533
533
  return Object.keys(t).map(
@@ -536,26 +536,26 @@ function hn(e, t, n, r, i, s) {
536
536
  }
537
537
  };
538
538
  return Object.keys(t).forEach((u) => {
539
- Object.defineProperty(a.prototype, u, {
539
+ Object.defineProperty(o.prototype, u, {
540
540
  get() {
541
541
  return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
542
542
  },
543
543
  set(l) {
544
- var o;
545
- l = ae(u, l, t), this.$$d[u] = l, (o = this.$$c) == null || o.$set({ [u]: l });
544
+ var a;
545
+ l = ae(u, l, t), this.$$d[u] = l, (a = this.$$c) == null || a.$set({ [u]: l });
546
546
  }
547
547
  });
548
- }), r.forEach((u) => {
549
- Object.defineProperty(a.prototype, u, {
548
+ }), n.forEach((u) => {
549
+ Object.defineProperty(o.prototype, u, {
550
550
  get() {
551
551
  var l;
552
552
  return (l = this.$$c) == null ? void 0 : l[u];
553
553
  }
554
554
  });
555
555
  }), e.element = /** @type {any} */
556
- a, a;
556
+ o, o;
557
557
  }
558
- class ln {
558
+ class lr {
559
559
  constructor() {
560
560
  /**
561
561
  * ### PRIVATE API
@@ -576,7 +576,7 @@ class ln {
576
576
  }
577
577
  /** @returns {void} */
578
578
  $destroy() {
579
- an(this, 1), this.$destroy = O;
579
+ or(this, 1), this.$destroy = N;
580
580
  }
581
581
  /**
582
582
  * @template {Extract<keyof Events, string>} K
@@ -584,13 +584,13 @@ class ln {
584
584
  * @param {((e: Events[K]) => void) | null | undefined} callback
585
585
  * @returns {() => void}
586
586
  */
587
- $on(t, n) {
588
- if (!$e(n))
589
- return O;
590
- const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
591
- return r.push(n), () => {
592
- const i = r.indexOf(n);
593
- i !== -1 && r.splice(i, 1);
587
+ $on(t, r) {
588
+ if (!De(r))
589
+ return N;
590
+ const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
591
+ return n.push(r), () => {
592
+ const i = n.indexOf(r);
593
+ i !== -1 && n.splice(i, 1);
594
594
  };
595
595
  }
596
596
  /**
@@ -598,270 +598,221 @@ class ln {
598
598
  * @returns {void}
599
599
  */
600
600
  $set(t) {
601
- this.$$set && !zt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
602
- }
603
- }
604
- const fn = "4";
605
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(fn);
606
- /*! *****************************************************************************
607
- Copyright (c) Microsoft Corporation.
608
-
609
- Permission to use, copy, modify, and/or distribute this software for any
610
- purpose with or without fee is hereby granted.
611
-
612
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
613
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
614
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
615
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
616
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
617
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
618
- PERFORMANCE OF THIS SOFTWARE.
619
- ***************************************************************************** */
620
- var we = function(e, t) {
621
- return we = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
622
- n.__proto__ = r;
623
- } || function(n, r) {
624
- for (var i in r)
625
- Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
626
- }, we(e, t);
627
- };
628
- function ce(e, t) {
629
- if (typeof t != "function" && t !== null)
630
- throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
631
- we(e, t);
632
- function n() {
633
- this.constructor = e;
634
- }
635
- e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
636
- }
637
- var E = function() {
638
- return E = Object.assign || function(t) {
639
- for (var n, r = 1, i = arguments.length; r < i; r++) {
640
- n = arguments[r];
641
- for (var s in n)
642
- Object.prototype.hasOwnProperty.call(n, s) && (t[s] = n[s]);
643
- }
644
- return t;
645
- }, E.apply(this, arguments);
646
- };
647
- function cn(e, t) {
648
- var n = {};
649
- for (var r in e)
650
- Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
651
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
652
- for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
653
- t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
654
- return n;
655
- }
656
- function Hi(e) {
657
- var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
658
- if (n)
659
- return n.call(e);
660
- if (e && typeof e.length == "number")
661
- return {
662
- next: function() {
663
- return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e };
664
- }
665
- };
666
- throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
667
- }
668
- function Ti(e, t) {
669
- var n = typeof Symbol == "function" && e[Symbol.iterator];
670
- if (!n)
671
- return e;
672
- var r = n.call(e), i, s = [], a;
673
- try {
674
- for (; (t === void 0 || t-- > 0) && !(i = r.next()).done; )
675
- s.push(i.value);
676
- } catch (u) {
677
- a = { error: u };
678
- } finally {
679
- try {
680
- i && !i.done && (n = r.return) && n.call(r);
681
- } finally {
682
- if (a)
683
- throw a.error;
684
- }
601
+ this.$$set && !Wt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
685
602
  }
686
- return s;
687
- }
688
- function Ee(e, t, n) {
689
- if (n || arguments.length === 2)
690
- for (var r = 0, i = t.length, s; r < i; r++)
691
- (s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
692
- return e.concat(s || t);
693
603
  }
694
- const D = [];
695
- function mn(e, t) {
604
+ const fr = "4";
605
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(fr);
606
+ const G = [];
607
+ function cr(e, t) {
696
608
  return {
697
- subscribe: me(e, t).subscribe
609
+ subscribe: ge(e, t).subscribe
698
610
  };
699
611
  }
700
- function me(e, t = O) {
701
- let n;
702
- const r = /* @__PURE__ */ new Set();
612
+ function ge(e, t = N) {
613
+ let r;
614
+ const n = /* @__PURE__ */ new Set();
703
615
  function i(u) {
704
- if (ht(e, u) && (e = u, n)) {
705
- const l = !D.length;
706
- for (const o of r)
707
- o[1](), D.push(o, e);
616
+ if (lt(e, u) && (e = u, r)) {
617
+ const l = !G.length;
618
+ for (const a of n)
619
+ a[1](), G.push(a, e);
708
620
  if (l) {
709
- for (let o = 0; o < D.length; o += 2)
710
- D[o][0](D[o + 1]);
711
- D.length = 0;
621
+ for (let a = 0; a < G.length; a += 2)
622
+ G[a][0](G[a + 1]);
623
+ G.length = 0;
712
624
  }
713
625
  }
714
626
  }
715
627
  function s(u) {
716
628
  i(u(e));
717
629
  }
718
- function a(u, l = O) {
719
- const o = [u, l];
720
- return r.add(o), r.size === 1 && (n = t(i, s) || O), u(e), () => {
721
- r.delete(o), r.size === 0 && n && (n(), n = null);
630
+ function o(u, l = N) {
631
+ const a = [u, l];
632
+ return n.add(a), n.size === 1 && (r = t(i, s) || N), u(e), () => {
633
+ n.delete(a), n.size === 0 && r && (r(), r = null);
722
634
  };
723
635
  }
724
- return { set: i, update: s, subscribe: a };
636
+ return { set: i, update: s, subscribe: o };
725
637
  }
726
- function W(e, t, n) {
727
- const r = !Array.isArray(e), i = r ? [e] : e;
638
+ function Z(e, t, r) {
639
+ const n = !Array.isArray(e), i = n ? [e] : e;
728
640
  if (!i.every(Boolean))
729
641
  throw new Error("derived() expects stores as input, got a falsy value");
730
642
  const s = t.length < 2;
731
- return mn(n, (a, u) => {
643
+ return cr(r, (o, u) => {
732
644
  let l = !1;
733
- const o = [];
734
- let h = 0, m = O;
645
+ const a = [];
646
+ let h = 0, m = N;
735
647
  const f = () => {
736
648
  if (h)
737
649
  return;
738
650
  m();
739
- const y = t(r ? o[0] : o, a, u);
740
- s ? a(y) : m = $e(y) ? y : O;
651
+ const y = t(n ? a[0] : a, o, u);
652
+ s ? o(y) : m = De(y) ? y : N;
741
653
  }, b = i.map(
742
- (y, x) => lt(
654
+ (y, _) => ft(
743
655
  y,
744
656
  (T) => {
745
- o[x] = T, h &= ~(1 << x), l && f();
657
+ a[_] = T, h &= ~(1 << _), l && f();
746
658
  },
747
659
  () => {
748
- h |= 1 << x;
660
+ h |= 1 << _;
749
661
  }
750
662
  )
751
663
  );
752
664
  return l = !0, f(), function() {
753
- z(b), m(), l = !1;
665
+ W(b), m(), l = !1;
754
666
  };
755
667
  });
756
668
  }
757
- function dn(e) {
758
- return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
669
+ function mr(e) {
670
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
759
671
  }
760
- var gn = function(t) {
761
- return bn(t) && !pn(t);
672
+ var gr = function(t) {
673
+ return dr(t) && !br(t);
762
674
  };
763
- function bn(e) {
675
+ function dr(e) {
764
676
  return !!e && typeof e == "object";
765
677
  }
766
- function pn(e) {
678
+ function br(e) {
767
679
  var t = Object.prototype.toString.call(e);
768
- return t === "[object RegExp]" || t === "[object Date]" || _n(e);
680
+ return t === "[object RegExp]" || t === "[object Date]" || Er(e);
769
681
  }
770
- var yn = typeof Symbol == "function" && Symbol.for, En = yn ? Symbol.for("react.element") : 60103;
771
- function _n(e) {
772
- return e.$$typeof === En;
682
+ var pr = typeof Symbol == "function" && Symbol.for, yr = pr ? Symbol.for("react.element") : 60103;
683
+ function Er(e) {
684
+ return e.$$typeof === yr;
773
685
  }
774
- function xn(e) {
686
+ function vr(e) {
775
687
  return Array.isArray(e) ? [] : {};
776
688
  }
777
- function K(e, t) {
778
- return t.clone !== !1 && t.isMergeableObject(e) ? j(xn(e), e, t) : e;
689
+ function ee(e, t) {
690
+ return t.clone !== !1 && t.isMergeableObject(e) ? k(vr(e), e, t) : e;
779
691
  }
780
- function vn(e, t, n) {
781
- return e.concat(t).map(function(r) {
782
- return K(r, n);
692
+ function _r(e, t, r) {
693
+ return e.concat(t).map(function(n) {
694
+ return ee(n, r);
783
695
  });
784
696
  }
785
- function Hn(e, t) {
697
+ function xr(e, t) {
786
698
  if (!t.customMerge)
787
- return j;
788
- var n = t.customMerge(e);
789
- return typeof n == "function" ? n : j;
699
+ return k;
700
+ var r = t.customMerge(e);
701
+ return typeof r == "function" ? r : k;
790
702
  }
791
- function Tn(e) {
703
+ function Hr(e) {
792
704
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
793
705
  return Object.propertyIsEnumerable.call(e, t);
794
706
  }) : [];
795
707
  }
796
- function Ze(e) {
797
- return Object.keys(e).concat(Tn(e));
708
+ function Qe(e) {
709
+ return Object.keys(e).concat(Hr(e));
798
710
  }
799
- function pt(e, t) {
711
+ function yt(e, t) {
800
712
  try {
801
713
  return t in e;
802
- } catch (n) {
714
+ } catch (r) {
803
715
  return !1;
804
716
  }
805
717
  }
806
- function Sn(e, t) {
807
- return pt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
718
+ function Tr(e, t) {
719
+ return yt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
808
720
  }
809
- function Bn(e, t, n) {
810
- var r = {};
811
- return n.isMergeableObject(e) && Ze(e).forEach(function(i) {
812
- r[i] = K(e[i], n);
813
- }), Ze(t).forEach(function(i) {
814
- Sn(e, i) || (pt(e, i) && n.isMergeableObject(t[i]) ? r[i] = Hn(i, n)(e[i], t[i], n) : r[i] = K(t[i], n));
815
- }), r;
816
- }
817
- function j(e, t, n) {
818
- n = n || {}, n.arrayMerge = n.arrayMerge || vn, n.isMergeableObject = n.isMergeableObject || gn, n.cloneUnlessOtherwiseSpecified = K;
819
- var r = Array.isArray(t), i = Array.isArray(e), s = r === i;
820
- return s ? r ? n.arrayMerge(e, t, n) : Bn(e, t, n) : K(t, n);
821
- }
822
- j.all = function(t, n) {
721
+ function Sr(e, t, r) {
722
+ var n = {};
723
+ return r.isMergeableObject(e) && Qe(e).forEach(function(i) {
724
+ n[i] = ee(e[i], r);
725
+ }), Qe(t).forEach(function(i) {
726
+ Tr(e, i) || (yt(e, i) && r.isMergeableObject(t[i]) ? n[i] = xr(i, r)(e[i], t[i], r) : n[i] = ee(t[i], r));
727
+ }), n;
728
+ }
729
+ function k(e, t, r) {
730
+ r = r || {}, r.arrayMerge = r.arrayMerge || _r, r.isMergeableObject = r.isMergeableObject || gr, r.cloneUnlessOtherwiseSpecified = ee;
731
+ var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
732
+ return s ? n ? r.arrayMerge(e, t, r) : Sr(e, t, r) : ee(t, r);
733
+ }
734
+ k.all = function(t, r) {
823
735
  if (!Array.isArray(t))
824
736
  throw new Error("first argument should be an array");
825
- return t.reduce(function(r, i) {
826
- return j(r, i, n);
737
+ return t.reduce(function(n, i) {
738
+ return k(n, i, r);
827
739
  }, {});
828
740
  };
829
- var An = j, wn = An;
830
- const Pn = /* @__PURE__ */ dn(wn);
831
- function _e(e, t) {
832
- var n = t && t.cache ? t.cache : Rn, r = t && t.serializer ? t.serializer : Cn, i = t && t.strategy ? t.strategy : On;
741
+ var Br = k, Ar = Br;
742
+ const wr = /* @__PURE__ */ mr(Ar);
743
+ var Oe = function(e, t) {
744
+ return Oe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
745
+ r.__proto__ = n;
746
+ } || function(r, n) {
747
+ for (var i in n)
748
+ Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
749
+ }, Oe(e, t);
750
+ };
751
+ function de(e, t) {
752
+ if (typeof t != "function" && t !== null)
753
+ throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
754
+ Oe(e, t);
755
+ function r() {
756
+ this.constructor = e;
757
+ }
758
+ e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
759
+ }
760
+ var M = function() {
761
+ return M = Object.assign || function(t) {
762
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
763
+ r = arguments[n];
764
+ for (var s in r)
765
+ Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
766
+ }
767
+ return t;
768
+ }, M.apply(this, arguments);
769
+ };
770
+ function Pr(e, t) {
771
+ var r = {};
772
+ for (var n in e)
773
+ Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
774
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
775
+ for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
776
+ t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
777
+ return r;
778
+ }
779
+ function _e(e, t, r) {
780
+ if (r || arguments.length === 2)
781
+ for (var n = 0, i = t.length, s; n < i; n++)
782
+ (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
783
+ return e.concat(s || Array.prototype.slice.call(t));
784
+ }
785
+ function xe(e, t) {
786
+ var r = t && t.cache ? t.cache : Rr, n = t && t.serializer ? t.serializer : Cr, i = t && t.strategy ? t.strategy : Ir;
833
787
  return i(e, {
834
- cache: n,
835
- serializer: r
788
+ cache: r,
789
+ serializer: n
836
790
  });
837
791
  }
838
- function Nn(e) {
792
+ function Or(e) {
839
793
  return e == null || typeof e == "number" || typeof e == "boolean";
840
794
  }
841
- function yt(e, t, n, r) {
842
- var i = Nn(r) ? r : n(r), s = t.get(i);
843
- return typeof s == "undefined" && (s = e.call(this, r), t.set(i, s)), s;
795
+ function Nr(e, t, r, n) {
796
+ var i = Or(n) ? n : r(n), s = t.get(i);
797
+ return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
844
798
  }
845
- function Et(e, t, n) {
846
- var r = Array.prototype.slice.call(arguments, 3), i = n(r), s = t.get(i);
847
- return typeof s == "undefined" && (s = e.apply(this, r), t.set(i, s)), s;
799
+ function Et(e, t, r) {
800
+ var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
801
+ return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
848
802
  }
849
- function De(e, t, n, r, i) {
850
- return n.bind(t, e, r, i);
803
+ function vt(e, t, r, n, i) {
804
+ return r.bind(t, e, n, i);
851
805
  }
852
- function On(e, t) {
853
- var n = e.length === 1 ? yt : Et;
854
- return De(e, this, n, t.cache.create(), t.serializer);
806
+ function Ir(e, t) {
807
+ var r = e.length === 1 ? Nr : Et;
808
+ return vt(e, this, r, t.cache.create(), t.serializer);
855
809
  }
856
- function In(e, t) {
857
- return De(e, this, Et, t.cache.create(), t.serializer);
810
+ function Lr(e, t) {
811
+ return vt(e, this, Et, t.cache.create(), t.serializer);
858
812
  }
859
- function Ln(e, t) {
860
- return De(e, this, yt, t.cache.create(), t.serializer);
861
- }
862
- var Cn = function() {
813
+ var Cr = function() {
863
814
  return JSON.stringify(arguments);
864
- }, Mn = (
815
+ }, Mr = (
865
816
  /** @class */
866
817
  function() {
867
818
  function e() {
@@ -869,73 +820,82 @@ var Cn = function() {
869
820
  }
870
821
  return e.prototype.get = function(t) {
871
822
  return this.cache[t];
872
- }, e.prototype.set = function(t, n) {
873
- this.cache[t] = n;
823
+ }, e.prototype.set = function(t, r) {
824
+ this.cache[t] = r;
874
825
  }, e;
875
826
  }()
876
- ), Rn = {
827
+ ), Rr = {
877
828
  create: function() {
878
- return new Mn();
829
+ return new Mr();
879
830
  }
880
- }, xe = {
881
- variadic: In,
882
- monadic: Ln
883
- }, g;
831
+ }, He = {
832
+ variadic: Lr
833
+ }, le = function() {
834
+ return le = Object.assign || function(t) {
835
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
836
+ r = arguments[n];
837
+ for (var s in r)
838
+ Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
839
+ }
840
+ return t;
841
+ }, le.apply(this, arguments);
842
+ };
843
+ var d;
884
844
  (function(e) {
885
845
  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";
886
- })(g || (g = {}));
887
- var _;
846
+ })(d || (d = {}));
847
+ var E;
888
848
  (function(e) {
889
849
  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";
890
- })(_ || (_ = {}));
891
- var k;
850
+ })(E || (E = {}));
851
+ var V;
892
852
  (function(e) {
893
853
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
894
- })(k || (k = {}));
895
- function Qe(e) {
896
- return e.type === _.literal;
854
+ })(V || (V = {}));
855
+ function qe(e) {
856
+ return e.type === E.literal;
897
857
  }
898
- function $n(e) {
899
- return e.type === _.argument;
858
+ function $r(e) {
859
+ return e.type === E.argument;
900
860
  }
901
861
  function _t(e) {
902
- return e.type === _.number;
862
+ return e.type === E.number;
903
863
  }
904
864
  function xt(e) {
905
- return e.type === _.date;
906
- }
907
- function vt(e) {
908
- return e.type === _.time;
865
+ return e.type === E.date;
909
866
  }
910
867
  function Ht(e) {
911
- return e.type === _.select;
868
+ return e.type === E.time;
912
869
  }
913
870
  function Tt(e) {
914
- return e.type === _.plural;
915
- }
916
- function Un(e) {
917
- return e.type === _.pound;
871
+ return e.type === E.select;
918
872
  }
919
873
  function St(e) {
920
- return e.type === _.tag;
874
+ return e.type === E.plural;
875
+ }
876
+ function Ur(e) {
877
+ return e.type === E.pound;
921
878
  }
922
879
  function Bt(e) {
923
- return !!(e && typeof e == "object" && e.type === k.number);
880
+ return e.type === E.tag;
924
881
  }
925
- function Pe(e) {
926
- return !!(e && typeof e == "object" && e.type === k.dateTime);
882
+ function At(e) {
883
+ return !!(e && typeof e == "object" && e.type === V.number);
927
884
  }
928
- var At = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Dn = /(?:[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;
929
- function Gn(e) {
885
+ function Ne(e) {
886
+ return !!(e && typeof e == "object" && e.type === V.dateTime);
887
+ }
888
+ var wt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Dr = /(?:[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;
889
+ function Gr(e) {
930
890
  var t = {};
931
- return e.replace(Dn, function(n) {
932
- var r = n.length;
933
- switch (n[0]) {
891
+ return e.replace(Dr, function(r) {
892
+ var n = r.length;
893
+ switch (r[0]) {
934
894
  case "G":
935
- t.era = r === 4 ? "long" : r === 5 ? "narrow" : "short";
895
+ t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
936
896
  break;
937
897
  case "y":
938
- t.year = r === 2 ? "2-digit" : "numeric";
898
+ t.year = n === 2 ? "2-digit" : "numeric";
939
899
  break;
940
900
  case "Y":
941
901
  case "u":
@@ -947,30 +907,30 @@ function Gn(e) {
947
907
  throw new RangeError("`q/Q` (quarter) patterns are not supported");
948
908
  case "M":
949
909
  case "L":
950
- t.month = ["numeric", "2-digit", "short", "long", "narrow"][r - 1];
910
+ t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
951
911
  break;
952
912
  case "w":
953
913
  case "W":
954
914
  throw new RangeError("`w/W` (week) patterns are not supported");
955
915
  case "d":
956
- t.day = ["numeric", "2-digit"][r - 1];
916
+ t.day = ["numeric", "2-digit"][n - 1];
957
917
  break;
958
918
  case "D":
959
919
  case "F":
960
920
  case "g":
961
921
  throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
962
922
  case "E":
963
- t.weekday = r === 4 ? "long" : r === 5 ? "narrow" : "short";
923
+ t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
964
924
  break;
965
925
  case "e":
966
- if (r < 4)
926
+ if (n < 4)
967
927
  throw new RangeError("`e..eee` (weekday) patterns are not supported");
968
- t.weekday = ["short", "long", "narrow", "short"][r - 4];
928
+ t.weekday = ["short", "long", "narrow", "short"][n - 4];
969
929
  break;
970
930
  case "c":
971
- if (r < 4)
931
+ if (n < 4)
972
932
  throw new RangeError("`c..ccc` (weekday) patterns are not supported");
973
- t.weekday = ["short", "long", "narrow", "short"][r - 4];
933
+ t.weekday = ["short", "long", "narrow", "short"][n - 4];
974
934
  break;
975
935
  case "a":
976
936
  t.hour12 = !0;
@@ -979,32 +939,32 @@ function Gn(e) {
979
939
  case "B":
980
940
  throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
981
941
  case "h":
982
- t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][r - 1];
942
+ t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
983
943
  break;
984
944
  case "H":
985
- t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][r - 1];
945
+ t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
986
946
  break;
987
947
  case "K":
988
- t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][r - 1];
948
+ t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
989
949
  break;
990
950
  case "k":
991
- t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][r - 1];
951
+ t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
992
952
  break;
993
953
  case "j":
994
954
  case "J":
995
955
  case "C":
996
956
  throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
997
957
  case "m":
998
- t.minute = ["numeric", "2-digit"][r - 1];
958
+ t.minute = ["numeric", "2-digit"][n - 1];
999
959
  break;
1000
960
  case "s":
1001
- t.second = ["numeric", "2-digit"][r - 1];
961
+ t.second = ["numeric", "2-digit"][n - 1];
1002
962
  break;
1003
963
  case "S":
1004
964
  case "A":
1005
965
  throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
1006
966
  case "z":
1007
- t.timeZoneName = r < 4 ? "short" : "long";
967
+ t.timeZoneName = n < 4 ? "short" : "long";
1008
968
  break;
1009
969
  case "Z":
1010
970
  case "O":
@@ -1017,33 +977,43 @@ function Gn(e) {
1017
977
  return "";
1018
978
  }), t;
1019
979
  }
1020
- var Fn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1021
- function jn(e) {
980
+ var v = function() {
981
+ return v = Object.assign || function(t) {
982
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
983
+ r = arguments[n];
984
+ for (var s in r)
985
+ Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
986
+ }
987
+ return t;
988
+ }, v.apply(this, arguments);
989
+ };
990
+ var Fr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
991
+ function jr(e) {
1022
992
  if (e.length === 0)
1023
993
  throw new Error("Number skeleton cannot be empty");
1024
- for (var t = e.split(Fn).filter(function(f) {
994
+ for (var t = e.split(Fr).filter(function(f) {
1025
995
  return f.length > 0;
1026
- }), n = [], r = 0, i = t; r < i.length; r++) {
1027
- var s = i[r], a = s.split("/");
1028
- if (a.length === 0)
996
+ }), r = [], n = 0, i = t; n < i.length; n++) {
997
+ var s = i[n], o = s.split("/");
998
+ if (o.length === 0)
1029
999
  throw new Error("Invalid number skeleton");
1030
- for (var u = a[0], l = a.slice(1), o = 0, h = l; o < h.length; o++) {
1031
- var m = h[o];
1000
+ for (var u = o[0], l = o.slice(1), a = 0, h = l; a < h.length; a++) {
1001
+ var m = h[a];
1032
1002
  if (m.length === 0)
1033
1003
  throw new Error("Invalid number skeleton");
1034
1004
  }
1035
- n.push({ stem: u, options: l });
1005
+ r.push({ stem: u, options: l });
1036
1006
  }
1037
- return n;
1007
+ return r;
1038
1008
  }
1039
- function kn(e) {
1009
+ function kr(e) {
1040
1010
  return e.replace(/^(.*?)-/, "");
1041
1011
  }
1042
- var qe = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, wt = /^(@+)?(\+|#+)?[rs]?$/g, Vn = /(\*)(0+)|(#+)(0+)|(0+)/g, Pt = /^(0+)$/;
1043
- function Je(e) {
1012
+ var Je = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Pt = /^(@+)?(\+|#+)?[rs]?$/g, Vr = /(\*)(0+)|(#+)(0+)|(0+)/g, Ot = /^(0+)$/;
1013
+ function Ye(e) {
1044
1014
  var t = {};
1045
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(wt, function(n, r, i) {
1046
- return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
1015
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Pt, function(r, n, i) {
1016
+ 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)), "";
1047
1017
  }), t;
1048
1018
  }
1049
1019
  function Nt(e) {
@@ -1086,27 +1056,27 @@ function Nt(e) {
1086
1056
  };
1087
1057
  }
1088
1058
  }
1089
- function Xn(e) {
1059
+ function Xr(e) {
1090
1060
  var t;
1091
1061
  if (e[0] === "E" && e[1] === "E" ? (t = {
1092
1062
  notation: "engineering"
1093
1063
  }, e = e.slice(2)) : e[0] === "E" && (t = {
1094
1064
  notation: "scientific"
1095
1065
  }, e = e.slice(1)), t) {
1096
- var n = e.slice(0, 2);
1097
- if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Pt.test(e))
1066
+ var r = e.slice(0, 2);
1067
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ot.test(e))
1098
1068
  throw new Error("Malformed concise eng/scientific notation");
1099
1069
  t.minimumIntegerDigits = e.length;
1100
1070
  }
1101
1071
  return t;
1102
1072
  }
1103
- function Ye(e) {
1104
- var t = {}, n = Nt(e);
1105
- return n || t;
1073
+ function Ke(e) {
1074
+ var t = {}, r = Nt(e);
1075
+ return r || t;
1106
1076
  }
1107
- function zn(e) {
1108
- for (var t = {}, n = 0, r = e; n < r.length; n++) {
1109
- var i = r[n];
1077
+ function zr(e) {
1078
+ for (var t = {}, r = 0, n = e; r < n.length; r++) {
1079
+ var i = n[r];
1110
1080
  switch (i.stem) {
1111
1081
  case "percent":
1112
1082
  case "%":
@@ -1128,7 +1098,7 @@ function zn(e) {
1128
1098
  continue;
1129
1099
  case "measure-unit":
1130
1100
  case "unit":
1131
- t.style = "unit", t.unit = kn(i.options[0]);
1101
+ t.style = "unit", t.unit = kr(i.options[0]);
1132
1102
  continue;
1133
1103
  case "compact-short":
1134
1104
  case "K":
@@ -1139,13 +1109,13 @@ function zn(e) {
1139
1109
  t.notation = "compact", t.compactDisplay = "long";
1140
1110
  continue;
1141
1111
  case "scientific":
1142
- t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(l, o) {
1143
- return E(E({}, l), Ye(o));
1112
+ t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(l, a) {
1113
+ return v(v({}, l), Ke(a));
1144
1114
  }, {}));
1145
1115
  continue;
1146
1116
  case "engineering":
1147
- t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(l, o) {
1148
- return E(E({}, l), Ye(o));
1117
+ t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(l, a) {
1118
+ return v(v({}, l), Ke(a));
1149
1119
  }, {}));
1150
1120
  continue;
1151
1121
  case "notation-simple":
@@ -1190,8 +1160,8 @@ function zn(e) {
1190
1160
  case "integer-width":
1191
1161
  if (i.options.length > 1)
1192
1162
  throw new RangeError("integer-width stems only accept a single optional option");
1193
- i.options[0].replace(Vn, function(l, o, h, m, f, b) {
1194
- if (o)
1163
+ i.options[0].replace(Vr, function(l, a, h, m, f, b) {
1164
+ if (a)
1195
1165
  t.minimumIntegerDigits = h.length;
1196
1166
  else {
1197
1167
  if (m && f)
@@ -1203,32 +1173,32 @@ function zn(e) {
1203
1173
  });
1204
1174
  continue;
1205
1175
  }
1206
- if (Pt.test(i.stem)) {
1176
+ if (Ot.test(i.stem)) {
1207
1177
  t.minimumIntegerDigits = i.stem.length;
1208
1178
  continue;
1209
1179
  }
1210
- if (qe.test(i.stem)) {
1180
+ if (Je.test(i.stem)) {
1211
1181
  if (i.options.length > 1)
1212
1182
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1213
- i.stem.replace(qe, function(l, o, h, m, f, b) {
1214
- return h === "*" ? t.minimumFractionDigits = o.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : f && b ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + b.length) : (t.minimumFractionDigits = o.length, t.maximumFractionDigits = o.length), "";
1183
+ i.stem.replace(Je, function(l, a, h, m, f, b) {
1184
+ return h === "*" ? t.minimumFractionDigits = a.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : f && b ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + b.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
1215
1185
  });
1216
1186
  var s = i.options[0];
1217
- s === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = E(E({}, t), Je(s)));
1187
+ s === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = v(v({}, t), Ye(s)));
1218
1188
  continue;
1219
1189
  }
1220
- if (wt.test(i.stem)) {
1221
- t = E(E({}, t), Je(i.stem));
1190
+ if (Pt.test(i.stem)) {
1191
+ t = v(v({}, t), Ye(i.stem));
1222
1192
  continue;
1223
1193
  }
1224
- var a = Nt(i.stem);
1225
- a && (t = E(E({}, t), a));
1226
- var u = Xn(i.stem);
1227
- u && (t = E(E({}, t), u));
1194
+ var o = Nt(i.stem);
1195
+ o && (t = v(v({}, t), o));
1196
+ var u = Xr(i.stem);
1197
+ u && (t = v(v({}, t), u));
1228
1198
  }
1229
1199
  return t;
1230
1200
  }
1231
- var se = {
1201
+ var oe = {
1232
1202
  "001": [
1233
1203
  "H",
1234
1204
  "h"
@@ -2643,23 +2613,23 @@ var se = {
2643
2613
  "h"
2644
2614
  ]
2645
2615
  };
2646
- function Wn(e, t) {
2647
- for (var n = "", r = 0; r < e.length; r++) {
2648
- var i = e.charAt(r);
2616
+ function Wr(e, t) {
2617
+ for (var r = "", n = 0; n < e.length; n++) {
2618
+ var i = e.charAt(n);
2649
2619
  if (i === "j") {
2650
- for (var s = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2651
- s++, r++;
2652
- var a = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), l = "a", o = Zn(t);
2653
- for ((o == "H" || o == "k") && (u = 0); u-- > 0; )
2654
- n += l;
2655
- for (; a-- > 0; )
2656
- n = o + n;
2620
+ for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2621
+ s++, n++;
2622
+ var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), l = "a", a = Zr(t);
2623
+ for ((a == "H" || a == "k") && (u = 0); u-- > 0; )
2624
+ r += l;
2625
+ for (; o-- > 0; )
2626
+ r = a + r;
2657
2627
  } else
2658
- i === "J" ? n += "H" : n += i;
2628
+ i === "J" ? r += "H" : r += i;
2659
2629
  }
2660
- return n;
2630
+ return r;
2661
2631
  }
2662
- function Zn(e) {
2632
+ function Zr(e) {
2663
2633
  var t = e.hourCycle;
2664
2634
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2665
2635
  e.hourCycles && // @ts-ignore
@@ -2676,73 +2646,73 @@ function Zn(e) {
2676
2646
  default:
2677
2647
  throw new Error("Invalid hourCycle");
2678
2648
  }
2679
- var n = e.language, r;
2680
- n !== "root" && (r = e.maximize().region);
2681
- var i = se[r || ""] || se[n || ""] || se["".concat(n, "-001")] || se["001"];
2649
+ var r = e.language, n;
2650
+ r !== "root" && (n = e.maximize().region);
2651
+ var i = oe[n || ""] || oe[r || ""] || oe["".concat(r, "-001")] || oe["001"];
2682
2652
  return i[0];
2683
2653
  }
2684
- var ve, Qn = new RegExp("^".concat(At.source, "*")), qn = new RegExp("".concat(At.source, "*$"));
2654
+ var Te, Qr = new RegExp("^".concat(wt.source, "*")), qr = new RegExp("".concat(wt.source, "*$"));
2685
2655
  function p(e, t) {
2686
2656
  return { start: e, end: t };
2687
2657
  }
2688
- var Jn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Yn = !!String.fromCodePoint, Kn = !!Object.fromEntries, er = !!String.prototype.codePointAt, tr = !!String.prototype.trimStart, nr = !!String.prototype.trimEnd, rr = !!Number.isSafeInteger, ir = rr ? Number.isSafeInteger : function(e) {
2658
+ var Jr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Yr = !!String.fromCodePoint, Kr = !!Object.fromEntries, en = !!String.prototype.codePointAt, tn = !!String.prototype.trimStart, rn = !!String.prototype.trimEnd, nn = !!Number.isSafeInteger, sn = nn ? Number.isSafeInteger : function(e) {
2689
2659
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2690
- }, Ne = !0;
2660
+ }, Ie = !0;
2691
2661
  try {
2692
- var sr = It("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2693
- Ne = ((ve = sr.exec("a")) === null || ve === void 0 ? void 0 : ve[0]) === "a";
2662
+ var on = Lt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2663
+ Ie = ((Te = on.exec("a")) === null || Te === void 0 ? void 0 : Te[0]) === "a";
2694
2664
  } catch (e) {
2695
- Ne = !1;
2665
+ Ie = !1;
2696
2666
  }
2697
- var Ke = Jn ? (
2667
+ var et = Jr ? (
2698
2668
  // Native
2699
- function(t, n, r) {
2700
- return t.startsWith(n, r);
2669
+ function(t, r, n) {
2670
+ return t.startsWith(r, n);
2701
2671
  }
2702
2672
  ) : (
2703
2673
  // For IE11
2704
- function(t, n, r) {
2705
- return t.slice(r, r + n.length) === n;
2674
+ function(t, r, n) {
2675
+ return t.slice(n, n + r.length) === r;
2706
2676
  }
2707
- ), Oe = Yn ? String.fromCodePoint : (
2677
+ ), Le = Yr ? String.fromCodePoint : (
2708
2678
  // IE11
2709
2679
  function() {
2710
- for (var t = [], n = 0; n < arguments.length; n++)
2711
- t[n] = arguments[n];
2712
- for (var r = "", i = t.length, s = 0, a; i > s; ) {
2713
- if (a = t[s++], a > 1114111)
2714
- throw RangeError(a + " is not a valid code point");
2715
- r += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
2680
+ for (var t = [], r = 0; r < arguments.length; r++)
2681
+ t[r] = arguments[r];
2682
+ for (var n = "", i = t.length, s = 0, o; i > s; ) {
2683
+ if (o = t[s++], o > 1114111)
2684
+ throw RangeError(o + " is not a valid code point");
2685
+ n += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
2716
2686
  }
2717
- return r;
2687
+ return n;
2718
2688
  }
2719
- ), et = (
2689
+ ), tt = (
2720
2690
  // native
2721
- Kn ? Object.fromEntries : (
2691
+ Kr ? Object.fromEntries : (
2722
2692
  // Ponyfill
2723
2693
  function(t) {
2724
- for (var n = {}, r = 0, i = t; r < i.length; r++) {
2725
- var s = i[r], a = s[0], u = s[1];
2726
- n[a] = u;
2694
+ for (var r = {}, n = 0, i = t; n < i.length; n++) {
2695
+ var s = i[n], o = s[0], u = s[1];
2696
+ r[o] = u;
2727
2697
  }
2728
- return n;
2698
+ return r;
2729
2699
  }
2730
2700
  )
2731
- ), Ot = er ? (
2701
+ ), It = en ? (
2732
2702
  // Native
2733
- function(t, n) {
2734
- return t.codePointAt(n);
2703
+ function(t, r) {
2704
+ return t.codePointAt(r);
2735
2705
  }
2736
2706
  ) : (
2737
2707
  // IE 11
2738
- function(t, n) {
2739
- var r = t.length;
2740
- if (!(n < 0 || n >= r)) {
2741
- var i = t.charCodeAt(n), s;
2742
- return i < 55296 || i > 56319 || n + 1 === r || (s = t.charCodeAt(n + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
2708
+ function(t, r) {
2709
+ var n = t.length;
2710
+ if (!(r < 0 || r >= n)) {
2711
+ var i = t.charCodeAt(r), s;
2712
+ return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
2743
2713
  }
2744
2714
  }
2745
- ), ar = tr ? (
2715
+ ), an = tn ? (
2746
2716
  // Native
2747
2717
  function(t) {
2748
2718
  return t.trimStart();
@@ -2750,9 +2720,9 @@ var Ke = Jn ? (
2750
2720
  ) : (
2751
2721
  // Ponyfill
2752
2722
  function(t) {
2753
- return t.replace(Qn, "");
2723
+ return t.replace(Qr, "");
2754
2724
  }
2755
- ), or = nr ? (
2725
+ ), un = rn ? (
2756
2726
  // Native
2757
2727
  function(t) {
2758
2728
  return t.trimEnd();
@@ -2760,126 +2730,126 @@ var Ke = Jn ? (
2760
2730
  ) : (
2761
2731
  // Ponyfill
2762
2732
  function(t) {
2763
- return t.replace(qn, "");
2733
+ return t.replace(qr, "");
2764
2734
  }
2765
2735
  );
2766
- function It(e, t) {
2736
+ function Lt(e, t) {
2767
2737
  return new RegExp(e, t);
2768
2738
  }
2769
- var Ie;
2770
- if (Ne) {
2771
- var tt = It("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2772
- Ie = function(t, n) {
2773
- var r;
2774
- tt.lastIndex = n;
2775
- var i = tt.exec(t);
2776
- return (r = i[1]) !== null && r !== void 0 ? r : "";
2739
+ var Ce;
2740
+ if (Ie) {
2741
+ var rt = Lt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2742
+ Ce = function(t, r) {
2743
+ var n;
2744
+ rt.lastIndex = r;
2745
+ var i = rt.exec(t);
2746
+ return (n = i[1]) !== null && n !== void 0 ? n : "";
2777
2747
  };
2778
2748
  } else
2779
- Ie = function(t, n) {
2780
- for (var r = []; ; ) {
2781
- var i = Ot(t, n);
2782
- if (i === void 0 || Lt(i) || fr(i))
2749
+ Ce = function(t, r) {
2750
+ for (var n = []; ; ) {
2751
+ var i = It(t, r);
2752
+ if (i === void 0 || Ct(i) || cn(i))
2783
2753
  break;
2784
- r.push(i), n += i >= 65536 ? 2 : 1;
2754
+ n.push(i), r += i >= 65536 ? 2 : 1;
2785
2755
  }
2786
- return Oe.apply(void 0, r);
2756
+ return Le.apply(void 0, n);
2787
2757
  };
2788
- var ur = (
2758
+ var hn = (
2789
2759
  /** @class */
2790
2760
  function() {
2791
- function e(t, n) {
2792
- n === void 0 && (n = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!n.ignoreTag, this.locale = n.locale, this.requiresOtherClause = !!n.requiresOtherClause, this.shouldParseSkeletons = !!n.shouldParseSkeletons;
2761
+ function e(t, r) {
2762
+ r === void 0 && (r = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
2793
2763
  }
2794
2764
  return e.prototype.parse = function() {
2795
2765
  if (this.offset() !== 0)
2796
2766
  throw Error("parser can only be used once");
2797
2767
  return this.parseMessage(0, "", !1);
2798
- }, e.prototype.parseMessage = function(t, n, r) {
2768
+ }, e.prototype.parseMessage = function(t, r, n) {
2799
2769
  for (var i = []; !this.isEOF(); ) {
2800
2770
  var s = this.char();
2801
2771
  if (s === 123) {
2802
- var a = this.parseArgument(t, r);
2803
- if (a.err)
2804
- return a;
2805
- i.push(a.val);
2772
+ var o = this.parseArgument(t, n);
2773
+ if (o.err)
2774
+ return o;
2775
+ i.push(o.val);
2806
2776
  } else {
2807
2777
  if (s === 125 && t > 0)
2808
2778
  break;
2809
- if (s === 35 && (n === "plural" || n === "selectordinal")) {
2779
+ if (s === 35 && (r === "plural" || r === "selectordinal")) {
2810
2780
  var u = this.clonePosition();
2811
2781
  this.bump(), i.push({
2812
- type: _.pound,
2782
+ type: E.pound,
2813
2783
  location: p(u, this.clonePosition())
2814
2784
  });
2815
2785
  } else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
2816
- if (r)
2786
+ if (n)
2817
2787
  break;
2818
- return this.error(g.UNMATCHED_CLOSING_TAG, p(this.clonePosition(), this.clonePosition()));
2819
- } else if (s === 60 && !this.ignoreTag && Le(this.peek() || 0)) {
2820
- var a = this.parseTag(t, n);
2821
- if (a.err)
2822
- return a;
2823
- i.push(a.val);
2788
+ return this.error(d.UNMATCHED_CLOSING_TAG, p(this.clonePosition(), this.clonePosition()));
2789
+ } else if (s === 60 && !this.ignoreTag && Me(this.peek() || 0)) {
2790
+ var o = this.parseTag(t, r);
2791
+ if (o.err)
2792
+ return o;
2793
+ i.push(o.val);
2824
2794
  } else {
2825
- var a = this.parseLiteral(t, n);
2826
- if (a.err)
2827
- return a;
2828
- i.push(a.val);
2795
+ var o = this.parseLiteral(t, r);
2796
+ if (o.err)
2797
+ return o;
2798
+ i.push(o.val);
2829
2799
  }
2830
2800
  }
2831
2801
  }
2832
2802
  return { val: i, err: null };
2833
- }, e.prototype.parseTag = function(t, n) {
2834
- var r = this.clonePosition();
2803
+ }, e.prototype.parseTag = function(t, r) {
2804
+ var n = this.clonePosition();
2835
2805
  this.bump();
2836
2806
  var i = this.parseTagName();
2837
2807
  if (this.bumpSpace(), this.bumpIf("/>"))
2838
2808
  return {
2839
2809
  val: {
2840
- type: _.literal,
2810
+ type: E.literal,
2841
2811
  value: "<".concat(i, "/>"),
2842
- location: p(r, this.clonePosition())
2812
+ location: p(n, this.clonePosition())
2843
2813
  },
2844
2814
  err: null
2845
2815
  };
2846
2816
  if (this.bumpIf(">")) {
2847
- var s = this.parseMessage(t + 1, n, !0);
2817
+ var s = this.parseMessage(t + 1, r, !0);
2848
2818
  if (s.err)
2849
2819
  return s;
2850
- var a = s.val, u = this.clonePosition();
2820
+ var o = s.val, u = this.clonePosition();
2851
2821
  if (this.bumpIf("</")) {
2852
- if (this.isEOF() || !Le(this.char()))
2853
- return this.error(g.INVALID_TAG, p(u, this.clonePosition()));
2854
- var l = this.clonePosition(), o = this.parseTagName();
2855
- return i !== o ? this.error(g.UNMATCHED_CLOSING_TAG, p(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2822
+ if (this.isEOF() || !Me(this.char()))
2823
+ return this.error(d.INVALID_TAG, p(u, this.clonePosition()));
2824
+ var l = this.clonePosition(), a = this.parseTagName();
2825
+ return i !== a ? this.error(d.UNMATCHED_CLOSING_TAG, p(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2856
2826
  val: {
2857
- type: _.tag,
2827
+ type: E.tag,
2858
2828
  value: i,
2859
- children: a,
2860
- location: p(r, this.clonePosition())
2829
+ children: o,
2830
+ location: p(n, this.clonePosition())
2861
2831
  },
2862
2832
  err: null
2863
- } : this.error(g.INVALID_TAG, p(u, this.clonePosition())));
2833
+ } : this.error(d.INVALID_TAG, p(u, this.clonePosition())));
2864
2834
  } else
2865
- return this.error(g.UNCLOSED_TAG, p(r, this.clonePosition()));
2835
+ return this.error(d.UNCLOSED_TAG, p(n, this.clonePosition()));
2866
2836
  } else
2867
- return this.error(g.INVALID_TAG, p(r, this.clonePosition()));
2837
+ return this.error(d.INVALID_TAG, p(n, this.clonePosition()));
2868
2838
  }, e.prototype.parseTagName = function() {
2869
2839
  var t = this.offset();
2870
- for (this.bump(); !this.isEOF() && lr(this.char()); )
2840
+ for (this.bump(); !this.isEOF() && fn(this.char()); )
2871
2841
  this.bump();
2872
2842
  return this.message.slice(t, this.offset());
2873
- }, e.prototype.parseLiteral = function(t, n) {
2874
- for (var r = this.clonePosition(), i = ""; ; ) {
2875
- var s = this.tryParseQuote(n);
2843
+ }, e.prototype.parseLiteral = function(t, r) {
2844
+ for (var n = this.clonePosition(), i = ""; ; ) {
2845
+ var s = this.tryParseQuote(r);
2876
2846
  if (s) {
2877
2847
  i += s;
2878
2848
  continue;
2879
2849
  }
2880
- var a = this.tryParseUnquoted(t, n);
2881
- if (a) {
2882
- i += a;
2850
+ var o = this.tryParseUnquoted(t, r);
2851
+ if (o) {
2852
+ i += o;
2883
2853
  continue;
2884
2854
  }
2885
2855
  var u = this.tryParseLeftAngleBracket();
@@ -2889,14 +2859,14 @@ var ur = (
2889
2859
  }
2890
2860
  break;
2891
2861
  }
2892
- var l = p(r, this.clonePosition());
2862
+ var l = p(n, this.clonePosition());
2893
2863
  return {
2894
- val: { type: _.literal, value: i, location: l },
2864
+ val: { type: E.literal, value: i, location: l },
2895
2865
  err: null
2896
2866
  };
2897
2867
  }, e.prototype.tryParseLeftAngleBracket = function() {
2898
2868
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2899
- !hr(this.peek() || 0)) ? (this.bump(), "<") : null;
2869
+ !ln(this.peek() || 0)) ? (this.bump(), "<") : null;
2900
2870
  }, e.prototype.tryParseQuote = function(t) {
2901
2871
  if (this.isEOF() || this.char() !== 39)
2902
2872
  return null;
@@ -2916,114 +2886,114 @@ var ur = (
2916
2886
  return null;
2917
2887
  }
2918
2888
  this.bump();
2919
- var n = [this.char()];
2889
+ var r = [this.char()];
2920
2890
  for (this.bump(); !this.isEOF(); ) {
2921
- var r = this.char();
2922
- if (r === 39)
2891
+ var n = this.char();
2892
+ if (n === 39)
2923
2893
  if (this.peek() === 39)
2924
- n.push(39), this.bump();
2894
+ r.push(39), this.bump();
2925
2895
  else {
2926
2896
  this.bump();
2927
2897
  break;
2928
2898
  }
2929
2899
  else
2930
- n.push(r);
2900
+ r.push(n);
2931
2901
  this.bump();
2932
2902
  }
2933
- return Oe.apply(void 0, n);
2934
- }, e.prototype.tryParseUnquoted = function(t, n) {
2903
+ return Le.apply(void 0, r);
2904
+ }, e.prototype.tryParseUnquoted = function(t, r) {
2935
2905
  if (this.isEOF())
2936
2906
  return null;
2937
- var r = this.char();
2938
- return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Oe(r));
2939
- }, e.prototype.parseArgument = function(t, n) {
2940
- var r = this.clonePosition();
2907
+ var n = this.char();
2908
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Le(n));
2909
+ }, e.prototype.parseArgument = function(t, r) {
2910
+ var n = this.clonePosition();
2941
2911
  if (this.bump(), this.bumpSpace(), this.isEOF())
2942
- return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, p(r, this.clonePosition()));
2912
+ return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition()));
2943
2913
  if (this.char() === 125)
2944
- return this.bump(), this.error(g.EMPTY_ARGUMENT, p(r, this.clonePosition()));
2914
+ return this.bump(), this.error(d.EMPTY_ARGUMENT, p(n, this.clonePosition()));
2945
2915
  var i = this.parseIdentifierIfPossible().value;
2946
2916
  if (!i)
2947
- return this.error(g.MALFORMED_ARGUMENT, p(r, this.clonePosition()));
2917
+ return this.error(d.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
2948
2918
  if (this.bumpSpace(), this.isEOF())
2949
- return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, p(r, this.clonePosition()));
2919
+ return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition()));
2950
2920
  switch (this.char()) {
2951
2921
  case 125:
2952
2922
  return this.bump(), {
2953
2923
  val: {
2954
- type: _.argument,
2924
+ type: E.argument,
2955
2925
  // value does not include the opening and closing braces.
2956
2926
  value: i,
2957
- location: p(r, this.clonePosition())
2927
+ location: p(n, this.clonePosition())
2958
2928
  },
2959
2929
  err: null
2960
2930
  };
2961
2931
  case 44:
2962
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, p(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2932
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2963
2933
  default:
2964
- return this.error(g.MALFORMED_ARGUMENT, p(r, this.clonePosition()));
2934
+ return this.error(d.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
2965
2935
  }
2966
2936
  }, e.prototype.parseIdentifierIfPossible = function() {
2967
- var t = this.clonePosition(), n = this.offset(), r = Ie(this.message, n), i = n + r.length;
2937
+ var t = this.clonePosition(), r = this.offset(), n = Ce(this.message, r), i = r + n.length;
2968
2938
  this.bumpTo(i);
2969
- var s = this.clonePosition(), a = p(t, s);
2970
- return { value: r, location: a };
2971
- }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
2972
- var s, a = this.clonePosition(), u = this.parseIdentifierIfPossible().value, l = this.clonePosition();
2939
+ var s = this.clonePosition(), o = p(t, s);
2940
+ return { value: n, location: o };
2941
+ }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2942
+ var s, o = this.clonePosition(), u = this.parseIdentifierIfPossible().value, l = this.clonePosition();
2973
2943
  switch (u) {
2974
2944
  case "":
2975
- return this.error(g.EXPECT_ARGUMENT_TYPE, p(a, l));
2945
+ return this.error(d.EXPECT_ARGUMENT_TYPE, p(o, l));
2976
2946
  case "number":
2977
2947
  case "date":
2978
2948
  case "time": {
2979
2949
  this.bumpSpace();
2980
- var o = null;
2950
+ var a = null;
2981
2951
  if (this.bumpIf(",")) {
2982
2952
  this.bumpSpace();
2983
2953
  var h = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
2984
2954
  if (m.err)
2985
2955
  return m;
2986
- var f = or(m.val);
2956
+ var f = un(m.val);
2987
2957
  if (f.length === 0)
2988
- return this.error(g.EXPECT_ARGUMENT_STYLE, p(this.clonePosition(), this.clonePosition()));
2958
+ return this.error(d.EXPECT_ARGUMENT_STYLE, p(this.clonePosition(), this.clonePosition()));
2989
2959
  var b = p(h, this.clonePosition());
2990
- o = { style: f, styleLocation: b };
2960
+ a = { style: f, styleLocation: b };
2991
2961
  }
2992
2962
  var y = this.tryParseArgumentClose(i);
2993
2963
  if (y.err)
2994
2964
  return y;
2995
- var x = p(i, this.clonePosition());
2996
- if (o && Ke(o == null ? void 0 : o.style, "::", 0)) {
2997
- var T = ar(o.style.slice(2));
2965
+ var _ = p(i, this.clonePosition());
2966
+ if (a && et(a == null ? void 0 : a.style, "::", 0)) {
2967
+ var T = an(a.style.slice(2));
2998
2968
  if (u === "number") {
2999
- var m = this.parseNumberSkeletonFromString(T, o.styleLocation);
2969
+ var m = this.parseNumberSkeletonFromString(T, a.styleLocation);
3000
2970
  return m.err ? m : {
3001
- val: { type: _.number, value: r, location: x, style: m.val },
2971
+ val: { type: E.number, value: n, location: _, style: m.val },
3002
2972
  err: null
3003
2973
  };
3004
2974
  } else {
3005
2975
  if (T.length === 0)
3006
- return this.error(g.EXPECT_DATE_TIME_SKELETON, x);
2976
+ return this.error(d.EXPECT_DATE_TIME_SKELETON, _);
3007
2977
  var P = T;
3008
- this.locale && (P = Wn(T, this.locale));
2978
+ this.locale && (P = Wr(T, this.locale));
3009
2979
  var f = {
3010
- type: k.dateTime,
2980
+ type: V.dateTime,
3011
2981
  pattern: P,
3012
- location: o.styleLocation,
3013
- parsedOptions: this.shouldParseSkeletons ? Gn(P) : {}
3014
- }, w = u === "date" ? _.date : _.time;
2982
+ location: a.styleLocation,
2983
+ parsedOptions: this.shouldParseSkeletons ? Gr(P) : {}
2984
+ }, w = u === "date" ? E.date : E.time;
3015
2985
  return {
3016
- val: { type: w, value: r, location: x, style: f },
2986
+ val: { type: w, value: n, location: _, style: f },
3017
2987
  err: null
3018
2988
  };
3019
2989
  }
3020
2990
  }
3021
2991
  return {
3022
2992
  val: {
3023
- type: u === "number" ? _.number : u === "date" ? _.date : _.time,
3024
- value: r,
3025
- location: x,
3026
- style: (s = o == null ? void 0 : o.style) !== null && s !== void 0 ? s : null
2993
+ type: u === "number" ? E.number : u === "date" ? E.date : E.time,
2994
+ value: n,
2995
+ location: _,
2996
+ style: (s = a == null ? void 0 : a.style) !== null && s !== void 0 ? s : null
3027
2997
  },
3028
2998
  err: null
3029
2999
  };
@@ -3033,19 +3003,19 @@ var ur = (
3033
3003
  case "select": {
3034
3004
  var B = this.clonePosition();
3035
3005
  if (this.bumpSpace(), !this.bumpIf(","))
3036
- return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, p(B, E({}, B)));
3006
+ return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, p(B, le({}, B)));
3037
3007
  this.bumpSpace();
3038
- var N = this.parseIdentifierIfPossible(), v = 0;
3039
- if (u !== "select" && N.value === "offset") {
3008
+ var O = this.parseIdentifierIfPossible(), x = 0;
3009
+ if (u !== "select" && O.value === "offset") {
3040
3010
  if (!this.bumpIf(":"))
3041
- return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p(this.clonePosition(), this.clonePosition()));
3011
+ return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p(this.clonePosition(), this.clonePosition()));
3042
3012
  this.bumpSpace();
3043
- var m = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3013
+ var m = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3044
3014
  if (m.err)
3045
3015
  return m;
3046
- this.bumpSpace(), N = this.parseIdentifierIfPossible(), v = m.val;
3016
+ this.bumpSpace(), O = this.parseIdentifierIfPossible(), x = m.val;
3047
3017
  }
3048
- var I = this.tryParsePluralOrSelectOptions(t, u, n, N);
3018
+ var I = this.tryParsePluralOrSelectOptions(t, u, r, O);
3049
3019
  if (I.err)
3050
3020
  return I;
3051
3021
  var y = this.tryParseArgumentClose(i);
@@ -3054,18 +3024,18 @@ var ur = (
3054
3024
  var c = p(i, this.clonePosition());
3055
3025
  return u === "select" ? {
3056
3026
  val: {
3057
- type: _.select,
3058
- value: r,
3059
- options: et(I.val),
3027
+ type: E.select,
3028
+ value: n,
3029
+ options: tt(I.val),
3060
3030
  location: c
3061
3031
  },
3062
3032
  err: null
3063
3033
  } : {
3064
3034
  val: {
3065
- type: _.plural,
3066
- value: r,
3067
- options: et(I.val),
3068
- offset: v,
3035
+ type: E.plural,
3036
+ value: n,
3037
+ options: tt(I.val),
3038
+ offset: x,
3069
3039
  pluralType: u === "plural" ? "cardinal" : "ordinal",
3070
3040
  location: c
3071
3041
  },
@@ -3073,19 +3043,19 @@ var ur = (
3073
3043
  };
3074
3044
  }
3075
3045
  default:
3076
- return this.error(g.INVALID_ARGUMENT_TYPE, p(a, l));
3046
+ return this.error(d.INVALID_ARGUMENT_TYPE, p(o, l));
3077
3047
  }
3078
3048
  }, e.prototype.tryParseArgumentClose = function(t) {
3079
- return this.isEOF() || this.char() !== 125 ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, p(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3049
+ return this.isEOF() || this.char() !== 125 ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, p(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3080
3050
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
3081
- for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
3082
- var r = this.char();
3083
- switch (r) {
3051
+ for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
3052
+ var n = this.char();
3053
+ switch (n) {
3084
3054
  case 39: {
3085
3055
  this.bump();
3086
3056
  var i = this.clonePosition();
3087
3057
  if (!this.bumpUntil("'"))
3088
- return this.error(g.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, p(i, this.clonePosition()));
3058
+ return this.error(d.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, p(i, this.clonePosition()));
3089
3059
  this.bump();
3090
3060
  break;
3091
3061
  }
@@ -3098,7 +3068,7 @@ var ur = (
3098
3068
  t -= 1;
3099
3069
  else
3100
3070
  return {
3101
- val: this.message.slice(n.offset, this.offset()),
3071
+ val: this.message.slice(r.offset, this.offset()),
3102
3072
  err: null
3103
3073
  };
3104
3074
  break;
@@ -3109,70 +3079,70 @@ var ur = (
3109
3079
  }
3110
3080
  }
3111
3081
  return {
3112
- val: this.message.slice(n.offset, this.offset()),
3082
+ val: this.message.slice(r.offset, this.offset()),
3113
3083
  err: null
3114
3084
  };
3115
- }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
3116
- var r = [];
3085
+ }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3086
+ var n = [];
3117
3087
  try {
3118
- r = jn(t);
3088
+ n = jr(t);
3119
3089
  } catch (i) {
3120
- return this.error(g.INVALID_NUMBER_SKELETON, n);
3090
+ return this.error(d.INVALID_NUMBER_SKELETON, r);
3121
3091
  }
3122
3092
  return {
3123
3093
  val: {
3124
- type: k.number,
3125
- tokens: r,
3126
- location: n,
3127
- parsedOptions: this.shouldParseSkeletons ? zn(r) : {}
3094
+ type: V.number,
3095
+ tokens: n,
3096
+ location: r,
3097
+ parsedOptions: this.shouldParseSkeletons ? zr(n) : {}
3128
3098
  },
3129
3099
  err: null
3130
3100
  };
3131
- }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
3132
- for (var s, a = !1, u = [], l = /* @__PURE__ */ new Set(), o = i.value, h = i.location; ; ) {
3133
- if (o.length === 0) {
3101
+ }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3102
+ for (var s, o = !1, u = [], l = /* @__PURE__ */ new Set(), a = i.value, h = i.location; ; ) {
3103
+ if (a.length === 0) {
3134
3104
  var m = this.clonePosition();
3135
- if (n !== "select" && this.bumpIf("=")) {
3136
- var f = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_SELECTOR, g.INVALID_PLURAL_ARGUMENT_SELECTOR);
3105
+ if (r !== "select" && this.bumpIf("=")) {
3106
+ var f = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
3137
3107
  if (f.err)
3138
3108
  return f;
3139
- h = p(m, this.clonePosition()), o = this.message.slice(m.offset, this.offset());
3109
+ h = p(m, this.clonePosition()), a = this.message.slice(m.offset, this.offset());
3140
3110
  } else
3141
3111
  break;
3142
3112
  }
3143
- if (l.has(o))
3144
- return this.error(n === "select" ? g.DUPLICATE_SELECT_ARGUMENT_SELECTOR : g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3145
- o === "other" && (a = !0), this.bumpSpace();
3113
+ if (l.has(a))
3114
+ return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3115
+ a === "other" && (o = !0), this.bumpSpace();
3146
3116
  var b = this.clonePosition();
3147
3117
  if (!this.bumpIf("{"))
3148
- return this.error(n === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, p(this.clonePosition(), this.clonePosition()));
3149
- var y = this.parseMessage(t + 1, n, r);
3118
+ return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, p(this.clonePosition(), this.clonePosition()));
3119
+ var y = this.parseMessage(t + 1, r, n);
3150
3120
  if (y.err)
3151
3121
  return y;
3152
- var x = this.tryParseArgumentClose(b);
3153
- if (x.err)
3154
- return x;
3122
+ var _ = this.tryParseArgumentClose(b);
3123
+ if (_.err)
3124
+ return _;
3155
3125
  u.push([
3156
- o,
3126
+ a,
3157
3127
  {
3158
3128
  value: y.val,
3159
3129
  location: p(b, this.clonePosition())
3160
3130
  }
3161
- ]), l.add(o), this.bumpSpace(), s = this.parseIdentifierIfPossible(), o = s.value, h = s.location;
3131
+ ]), l.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, h = s.location;
3162
3132
  }
3163
- return u.length === 0 ? this.error(n === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR : g.EXPECT_PLURAL_ARGUMENT_SELECTOR, p(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(g.MISSING_OTHER_CLAUSE, p(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
3164
- }, e.prototype.tryParseDecimalInteger = function(t, n) {
3165
- var r = 1, i = this.clonePosition();
3166
- this.bumpIf("+") || this.bumpIf("-") && (r = -1);
3167
- for (var s = !1, a = 0; !this.isEOF(); ) {
3133
+ return u.length === 0 ? this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR : d.EXPECT_PLURAL_ARGUMENT_SELECTOR, p(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(d.MISSING_OTHER_CLAUSE, p(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
3134
+ }, e.prototype.tryParseDecimalInteger = function(t, r) {
3135
+ var n = 1, i = this.clonePosition();
3136
+ this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3137
+ for (var s = !1, o = 0; !this.isEOF(); ) {
3168
3138
  var u = this.char();
3169
3139
  if (u >= 48 && u <= 57)
3170
- s = !0, a = a * 10 + (u - 48), this.bump();
3140
+ s = !0, o = o * 10 + (u - 48), this.bump();
3171
3141
  else
3172
3142
  break;
3173
3143
  }
3174
3144
  var l = p(i, this.clonePosition());
3175
- return s ? (a *= r, ir(a) ? { val: a, err: null } : this.error(n, l)) : this.error(t, l);
3145
+ return s ? (o *= n, sn(o) ? { val: o, err: null } : this.error(r, l)) : this.error(t, l);
3176
3146
  }, e.prototype.offset = function() {
3177
3147
  return this.position.offset;
3178
3148
  }, e.prototype.isEOF = function() {
@@ -3187,17 +3157,17 @@ var ur = (
3187
3157
  var t = this.position.offset;
3188
3158
  if (t >= this.message.length)
3189
3159
  throw Error("out of bound");
3190
- var n = Ot(this.message, t);
3191
- if (n === void 0)
3160
+ var r = It(this.message, t);
3161
+ if (r === void 0)
3192
3162
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3193
- return n;
3194
- }, e.prototype.error = function(t, n) {
3163
+ return r;
3164
+ }, e.prototype.error = function(t, r) {
3195
3165
  return {
3196
3166
  val: null,
3197
3167
  err: {
3198
3168
  kind: t,
3199
3169
  message: this.message,
3200
- location: n
3170
+ location: r
3201
3171
  }
3202
3172
  };
3203
3173
  }, e.prototype.bump = function() {
@@ -3206,82 +3176,82 @@ var ur = (
3206
3176
  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);
3207
3177
  }
3208
3178
  }, e.prototype.bumpIf = function(t) {
3209
- if (Ke(this.message, t, this.offset())) {
3210
- for (var n = 0; n < t.length; n++)
3179
+ if (et(this.message, t, this.offset())) {
3180
+ for (var r = 0; r < t.length; r++)
3211
3181
  this.bump();
3212
3182
  return !0;
3213
3183
  }
3214
3184
  return !1;
3215
3185
  }, e.prototype.bumpUntil = function(t) {
3216
- var n = this.offset(), r = this.message.indexOf(t, n);
3217
- return r >= 0 ? (this.bumpTo(r), !0) : (this.bumpTo(this.message.length), !1);
3186
+ var r = this.offset(), n = this.message.indexOf(t, r);
3187
+ return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
3218
3188
  }, e.prototype.bumpTo = function(t) {
3219
3189
  if (this.offset() > t)
3220
3190
  throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
3221
3191
  for (t = Math.min(t, this.message.length); ; ) {
3222
- var n = this.offset();
3223
- if (n === t)
3192
+ var r = this.offset();
3193
+ if (r === t)
3224
3194
  break;
3225
- if (n > t)
3195
+ if (r > t)
3226
3196
  throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3227
3197
  if (this.bump(), this.isEOF())
3228
3198
  break;
3229
3199
  }
3230
3200
  }, e.prototype.bumpSpace = function() {
3231
- for (; !this.isEOF() && Lt(this.char()); )
3201
+ for (; !this.isEOF() && Ct(this.char()); )
3232
3202
  this.bump();
3233
3203
  }, e.prototype.peek = function() {
3234
3204
  if (this.isEOF())
3235
3205
  return null;
3236
- var t = this.char(), n = this.offset(), r = this.message.charCodeAt(n + (t >= 65536 ? 2 : 1));
3237
- return r != null ? r : null;
3206
+ var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3207
+ return n != null ? n : null;
3238
3208
  }, e;
3239
3209
  }()
3240
3210
  );
3241
- function Le(e) {
3211
+ function Me(e) {
3242
3212
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3243
3213
  }
3244
- function hr(e) {
3245
- return Le(e) || e === 47;
3214
+ function ln(e) {
3215
+ return Me(e) || e === 47;
3246
3216
  }
3247
- function lr(e) {
3217
+ function fn(e) {
3248
3218
  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;
3249
3219
  }
3250
- function Lt(e) {
3220
+ function Ct(e) {
3251
3221
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3252
3222
  }
3253
- function fr(e) {
3223
+ function cn(e) {
3254
3224
  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;
3255
3225
  }
3256
- function Ce(e) {
3226
+ function Re(e) {
3257
3227
  e.forEach(function(t) {
3258
- if (delete t.location, Ht(t) || Tt(t))
3259
- for (var n in t.options)
3260
- delete t.options[n].location, Ce(t.options[n].value);
3228
+ if (delete t.location, Tt(t) || St(t))
3229
+ for (var r in t.options)
3230
+ delete t.options[r].location, Re(t.options[r].value);
3261
3231
  else
3262
- _t(t) && Bt(t.style) || (xt(t) || vt(t)) && Pe(t.style) ? delete t.style.location : St(t) && Ce(t.children);
3232
+ _t(t) && At(t.style) || (xt(t) || Ht(t)) && Ne(t.style) ? delete t.style.location : Bt(t) && Re(t.children);
3263
3233
  });
3264
3234
  }
3265
- function cr(e, t) {
3266
- t === void 0 && (t = {}), t = E({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3267
- var n = new ur(e, t).parse();
3268
- if (n.err) {
3269
- var r = SyntaxError(g[n.err.kind]);
3270
- throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3235
+ function mn(e, t) {
3236
+ t === void 0 && (t = {}), t = le({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3237
+ var r = new hn(e, t).parse();
3238
+ if (r.err) {
3239
+ var n = SyntaxError(d[r.err.kind]);
3240
+ throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3271
3241
  }
3272
- return t != null && t.captureLocation || Ce(n.val), n.val;
3242
+ return t != null && t.captureLocation || Re(r.val), r.val;
3273
3243
  }
3274
- var V;
3244
+ var X;
3275
3245
  (function(e) {
3276
3246
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3277
- })(V || (V = {}));
3278
- var de = (
3247
+ })(X || (X = {}));
3248
+ var be = (
3279
3249
  /** @class */
3280
3250
  function(e) {
3281
- ce(t, e);
3282
- function t(n, r, i) {
3283
- var s = e.call(this, n) || this;
3284
- return s.code = r, s.originalMessage = i, s;
3251
+ de(t, e);
3252
+ function t(r, n, i) {
3253
+ var s = e.call(this, r) || this;
3254
+ return s.code = n, s.originalMessage = i, s;
3285
3255
  }
3286
3256
  return t.prototype.toString = function() {
3287
3257
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
@@ -3290,72 +3260,72 @@ var de = (
3290
3260
  ), nt = (
3291
3261
  /** @class */
3292
3262
  function(e) {
3293
- ce(t, e);
3294
- function t(n, r, i, s) {
3295
- return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), V.INVALID_VALUE, s) || this;
3263
+ de(t, e);
3264
+ function t(r, n, i, s) {
3265
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), X.INVALID_VALUE, s) || this;
3296
3266
  }
3297
3267
  return t;
3298
- }(de)
3299
- ), mr = (
3268
+ }(be)
3269
+ ), gn = (
3300
3270
  /** @class */
3301
3271
  function(e) {
3302
- ce(t, e);
3303
- function t(n, r, i) {
3304
- return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), V.INVALID_VALUE, i) || this;
3272
+ de(t, e);
3273
+ function t(r, n, i) {
3274
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), X.INVALID_VALUE, i) || this;
3305
3275
  }
3306
3276
  return t;
3307
- }(de)
3308
- ), dr = (
3277
+ }(be)
3278
+ ), dn = (
3309
3279
  /** @class */
3310
3280
  function(e) {
3311
- ce(t, e);
3312
- function t(n, r) {
3313
- return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), V.MISSING_VALUE, r) || this;
3281
+ de(t, e);
3282
+ function t(r, n) {
3283
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), X.MISSING_VALUE, n) || this;
3314
3284
  }
3315
3285
  return t;
3316
- }(de)
3286
+ }(be)
3317
3287
  ), A;
3318
3288
  (function(e) {
3319
3289
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3320
3290
  })(A || (A = {}));
3321
- function gr(e) {
3322
- return e.length < 2 ? e : e.reduce(function(t, n) {
3323
- var r = t[t.length - 1];
3324
- return !r || r.type !== A.literal || n.type !== A.literal ? t.push(n) : r.value += n.value, t;
3291
+ function bn(e) {
3292
+ return e.length < 2 ? e : e.reduce(function(t, r) {
3293
+ var n = t[t.length - 1];
3294
+ return !n || n.type !== A.literal || r.type !== A.literal ? t.push(r) : n.value += r.value, t;
3325
3295
  }, []);
3326
3296
  }
3327
- function br(e) {
3297
+ function pn(e) {
3328
3298
  return typeof e == "function";
3329
3299
  }
3330
- function oe(e, t, n, r, i, s, a) {
3331
- if (e.length === 1 && Qe(e[0]))
3300
+ function ue(e, t, r, n, i, s, o) {
3301
+ if (e.length === 1 && qe(e[0]))
3332
3302
  return [
3333
3303
  {
3334
3304
  type: A.literal,
3335
3305
  value: e[0].value
3336
3306
  }
3337
3307
  ];
3338
- for (var u = [], l = 0, o = e; l < o.length; l++) {
3339
- var h = o[l];
3340
- if (Qe(h)) {
3308
+ for (var u = [], l = 0, a = e; l < a.length; l++) {
3309
+ var h = a[l];
3310
+ if (qe(h)) {
3341
3311
  u.push({
3342
3312
  type: A.literal,
3343
3313
  value: h.value
3344
3314
  });
3345
3315
  continue;
3346
3316
  }
3347
- if (Un(h)) {
3317
+ if (Ur(h)) {
3348
3318
  typeof s == "number" && u.push({
3349
3319
  type: A.literal,
3350
- value: n.getNumberFormat(t).format(s)
3320
+ value: r.getNumberFormat(t).format(s)
3351
3321
  });
3352
3322
  continue;
3353
3323
  }
3354
3324
  var m = h.value;
3355
3325
  if (!(i && m in i))
3356
- throw new dr(m, a);
3326
+ throw new dn(m, o);
3357
3327
  var f = i[m];
3358
- if ($n(h)) {
3328
+ if ($r(h)) {
3359
3329
  (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), u.push({
3360
3330
  type: typeof f == "string" ? A.literal : A.object,
3361
3331
  value: f
@@ -3363,144 +3333,144 @@ function oe(e, t, n, r, i, s, a) {
3363
3333
  continue;
3364
3334
  }
3365
3335
  if (xt(h)) {
3366
- var b = typeof h.style == "string" ? r.date[h.style] : Pe(h.style) ? h.style.parsedOptions : void 0;
3336
+ var b = typeof h.style == "string" ? n.date[h.style] : Ne(h.style) ? h.style.parsedOptions : void 0;
3367
3337
  u.push({
3368
3338
  type: A.literal,
3369
- value: n.getDateTimeFormat(t, b).format(f)
3339
+ value: r.getDateTimeFormat(t, b).format(f)
3370
3340
  });
3371
3341
  continue;
3372
3342
  }
3373
- if (vt(h)) {
3374
- var b = typeof h.style == "string" ? r.time[h.style] : Pe(h.style) ? h.style.parsedOptions : r.time.medium;
3343
+ if (Ht(h)) {
3344
+ var b = typeof h.style == "string" ? n.time[h.style] : Ne(h.style) ? h.style.parsedOptions : n.time.medium;
3375
3345
  u.push({
3376
3346
  type: A.literal,
3377
- value: n.getDateTimeFormat(t, b).format(f)
3347
+ value: r.getDateTimeFormat(t, b).format(f)
3378
3348
  });
3379
3349
  continue;
3380
3350
  }
3381
3351
  if (_t(h)) {
3382
- var b = typeof h.style == "string" ? r.number[h.style] : Bt(h.style) ? h.style.parsedOptions : void 0;
3352
+ var b = typeof h.style == "string" ? n.number[h.style] : At(h.style) ? h.style.parsedOptions : void 0;
3383
3353
  b && b.scale && (f = f * (b.scale || 1)), u.push({
3384
3354
  type: A.literal,
3385
- value: n.getNumberFormat(t, b).format(f)
3355
+ value: r.getNumberFormat(t, b).format(f)
3386
3356
  });
3387
3357
  continue;
3388
3358
  }
3389
- if (St(h)) {
3390
- var y = h.children, x = h.value, T = i[x];
3391
- if (!br(T))
3392
- throw new mr(x, "function", a);
3393
- var P = oe(y, t, n, r, i, s), w = T(P.map(function(v) {
3394
- return v.value;
3359
+ if (Bt(h)) {
3360
+ var y = h.children, _ = h.value, T = i[_];
3361
+ if (!pn(T))
3362
+ throw new gn(_, "function", o);
3363
+ var P = ue(y, t, r, n, i, s), w = T(P.map(function(x) {
3364
+ return x.value;
3395
3365
  }));
3396
- Array.isArray(w) || (w = [w]), u.push.apply(u, w.map(function(v) {
3366
+ Array.isArray(w) || (w = [w]), u.push.apply(u, w.map(function(x) {
3397
3367
  return {
3398
- type: typeof v == "string" ? A.literal : A.object,
3399
- value: v
3368
+ type: typeof x == "string" ? A.literal : A.object,
3369
+ value: x
3400
3370
  };
3401
3371
  }));
3402
3372
  }
3403
- if (Ht(h)) {
3373
+ if (Tt(h)) {
3404
3374
  var B = h.options[f] || h.options.other;
3405
3375
  if (!B)
3406
- throw new nt(h.value, f, Object.keys(h.options), a);
3407
- u.push.apply(u, oe(B.value, t, n, r, i));
3376
+ throw new nt(h.value, f, Object.keys(h.options), o);
3377
+ u.push.apply(u, ue(B.value, t, r, n, i));
3408
3378
  continue;
3409
3379
  }
3410
- if (Tt(h)) {
3380
+ if (St(h)) {
3411
3381
  var B = h.options["=".concat(f)];
3412
3382
  if (!B) {
3413
3383
  if (!Intl.PluralRules)
3414
- throw new de(`Intl.PluralRules is not available in this environment.
3384
+ throw new be(`Intl.PluralRules is not available in this environment.
3415
3385
  Try polyfilling it using "@formatjs/intl-pluralrules"
3416
- `, V.MISSING_INTL_API, a);
3417
- var N = n.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
3418
- B = h.options[N] || h.options.other;
3386
+ `, X.MISSING_INTL_API, o);
3387
+ var O = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
3388
+ B = h.options[O] || h.options.other;
3419
3389
  }
3420
3390
  if (!B)
3421
- throw new nt(h.value, f, Object.keys(h.options), a);
3422
- u.push.apply(u, oe(B.value, t, n, r, i, f - (h.offset || 0)));
3391
+ throw new nt(h.value, f, Object.keys(h.options), o);
3392
+ u.push.apply(u, ue(B.value, t, r, n, i, f - (h.offset || 0)));
3423
3393
  continue;
3424
3394
  }
3425
3395
  }
3426
- return gr(u);
3396
+ return bn(u);
3427
3397
  }
3428
- function pr(e, t) {
3429
- return t ? E(E(E({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3430
- return n[r] = E(E({}, e[r]), t[r] || {}), n;
3398
+ function yn(e, t) {
3399
+ return t ? M(M(M({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3400
+ return r[n] = M(M({}, e[n]), t[n] || {}), r;
3431
3401
  }, {})) : e;
3432
3402
  }
3433
- function yr(e, t) {
3434
- return t ? Object.keys(e).reduce(function(n, r) {
3435
- return n[r] = pr(e[r], t[r]), n;
3436
- }, E({}, e)) : e;
3403
+ function En(e, t) {
3404
+ return t ? Object.keys(e).reduce(function(r, n) {
3405
+ return r[n] = yn(e[n], t[n]), r;
3406
+ }, M({}, e)) : e;
3437
3407
  }
3438
- function He(e) {
3408
+ function Se(e) {
3439
3409
  return {
3440
3410
  create: function() {
3441
3411
  return {
3442
3412
  get: function(t) {
3443
3413
  return e[t];
3444
3414
  },
3445
- set: function(t, n) {
3446
- e[t] = n;
3415
+ set: function(t, r) {
3416
+ e[t] = r;
3447
3417
  }
3448
3418
  };
3449
3419
  }
3450
3420
  };
3451
3421
  }
3452
- function Er(e) {
3422
+ function vn(e) {
3453
3423
  return e === void 0 && (e = {
3454
3424
  number: {},
3455
3425
  dateTime: {},
3456
3426
  pluralRules: {}
3457
3427
  }), {
3458
- getNumberFormat: _e(function() {
3459
- for (var t, n = [], r = 0; r < arguments.length; r++)
3460
- n[r] = arguments[r];
3461
- return new ((t = Intl.NumberFormat).bind.apply(t, Ee([void 0], n, !1)))();
3428
+ getNumberFormat: xe(function() {
3429
+ for (var t, r = [], n = 0; n < arguments.length; n++)
3430
+ r[n] = arguments[n];
3431
+ return new ((t = Intl.NumberFormat).bind.apply(t, _e([void 0], r, !1)))();
3462
3432
  }, {
3463
- cache: He(e.number),
3464
- strategy: xe.variadic
3433
+ cache: Se(e.number),
3434
+ strategy: He.variadic
3465
3435
  }),
3466
- getDateTimeFormat: _e(function() {
3467
- for (var t, n = [], r = 0; r < arguments.length; r++)
3468
- n[r] = arguments[r];
3469
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Ee([void 0], n, !1)))();
3436
+ getDateTimeFormat: xe(function() {
3437
+ for (var t, r = [], n = 0; n < arguments.length; n++)
3438
+ r[n] = arguments[n];
3439
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, _e([void 0], r, !1)))();
3470
3440
  }, {
3471
- cache: He(e.dateTime),
3472
- strategy: xe.variadic
3441
+ cache: Se(e.dateTime),
3442
+ strategy: He.variadic
3473
3443
  }),
3474
- getPluralRules: _e(function() {
3475
- for (var t, n = [], r = 0; r < arguments.length; r++)
3476
- n[r] = arguments[r];
3477
- return new ((t = Intl.PluralRules).bind.apply(t, Ee([void 0], n, !1)))();
3444
+ getPluralRules: xe(function() {
3445
+ for (var t, r = [], n = 0; n < arguments.length; n++)
3446
+ r[n] = arguments[n];
3447
+ return new ((t = Intl.PluralRules).bind.apply(t, _e([void 0], r, !1)))();
3478
3448
  }, {
3479
- cache: He(e.pluralRules),
3480
- strategy: xe.variadic
3449
+ cache: Se(e.pluralRules),
3450
+ strategy: He.variadic
3481
3451
  })
3482
3452
  };
3483
3453
  }
3484
- var _r = (
3454
+ var _n = (
3485
3455
  /** @class */
3486
3456
  function() {
3487
- function e(t, n, r, i) {
3488
- n === void 0 && (n = e.defaultLocale);
3457
+ function e(t, r, n, i) {
3458
+ r === void 0 && (r = e.defaultLocale);
3489
3459
  var s = this;
3490
3460
  if (this.formatterCache = {
3491
3461
  number: {},
3492
3462
  dateTime: {},
3493
3463
  pluralRules: {}
3494
3464
  }, this.format = function(l) {
3495
- var o = s.formatToParts(l);
3496
- if (o.length === 1)
3497
- return o[0].value;
3498
- var h = o.reduce(function(m, f) {
3465
+ var a = s.formatToParts(l);
3466
+ if (a.length === 1)
3467
+ return a[0].value;
3468
+ var h = a.reduce(function(m, f) {
3499
3469
  return !m.length || f.type !== A.literal || typeof m[m.length - 1] != "string" ? m.push(f.value) : m[m.length - 1] += f.value, m;
3500
3470
  }, []);
3501
3471
  return h.length <= 1 ? h[0] || "" : h;
3502
3472
  }, this.formatToParts = function(l) {
3503
- return oe(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
3473
+ return ue(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
3504
3474
  }, this.resolvedOptions = function() {
3505
3475
  var l;
3506
3476
  return {
@@ -3508,18 +3478,18 @@ var _r = (
3508
3478
  };
3509
3479
  }, this.getAst = function() {
3510
3480
  return s.ast;
3511
- }, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
3481
+ }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3512
3482
  if (this.message = t, !e.__parse)
3513
3483
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3514
- var a = i || {};
3515
- a.formatters;
3516
- var u = cn(a, ["formatters"]);
3517
- this.ast = e.__parse(t, E(E({}, u), { locale: this.resolvedLocale }));
3484
+ var o = i || {};
3485
+ o.formatters;
3486
+ var u = Pr(o, ["formatters"]);
3487
+ this.ast = e.__parse(t, M(M({}, u), { locale: this.resolvedLocale }));
3518
3488
  } else
3519
3489
  this.ast = t;
3520
3490
  if (!Array.isArray(this.ast))
3521
3491
  throw new TypeError("A message must be provided as a String or AST.");
3522
- this.formats = yr(e.formats, r), this.formatters = i && i.formatters || Er(this.formatterCache);
3492
+ this.formats = En(e.formats, n), this.formatters = i && i.formatters || vn(this.formatterCache);
3523
3493
  }
3524
3494
  return Object.defineProperty(e, "defaultLocale", {
3525
3495
  get: function() {
@@ -3529,10 +3499,10 @@ var _r = (
3529
3499
  configurable: !0
3530
3500
  }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
3531
3501
  if (typeof Intl.Locale != "undefined") {
3532
- var n = Intl.NumberFormat.supportedLocalesOf(t);
3533
- return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3502
+ var r = Intl.NumberFormat.supportedLocalesOf(t);
3503
+ return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3534
3504
  }
3535
- }, e.__parse = cr, e.formats = {
3505
+ }, e.__parse = mn, e.formats = {
3536
3506
  number: {
3537
3507
  integer: {
3538
3508
  maximumFractionDigits: 0
@@ -3593,113 +3563,113 @@ var _r = (
3593
3563
  }, e;
3594
3564
  }()
3595
3565
  );
3596
- function xr(e, t) {
3566
+ function xn(e, t) {
3597
3567
  if (t == null)
3598
3568
  return;
3599
3569
  if (t in e)
3600
3570
  return e[t];
3601
- const n = t.split(".");
3602
- let r = e;
3603
- for (let i = 0; i < n.length; i++)
3604
- if (typeof r == "object") {
3571
+ const r = t.split(".");
3572
+ let n = e;
3573
+ for (let i = 0; i < r.length; i++)
3574
+ if (typeof n == "object") {
3605
3575
  if (i > 0) {
3606
- const s = n.slice(i, n.length).join(".");
3607
- if (s in r) {
3608
- r = r[s];
3576
+ const s = r.slice(i, r.length).join(".");
3577
+ if (s in n) {
3578
+ n = n[s];
3609
3579
  break;
3610
3580
  }
3611
3581
  }
3612
- r = r[n[i]];
3582
+ n = n[r[i]];
3613
3583
  } else
3614
- r = void 0;
3615
- return r;
3584
+ n = void 0;
3585
+ return n;
3616
3586
  }
3617
- const M = {}, vr = (e, t, n) => n && (t in M || (M[t] = {}), e in M[t] || (M[t][e] = n), n), Ct = (e, t) => {
3587
+ const R = {}, Hn = (e, t, r) => r && (t in R || (R[t] = {}), e in R[t] || (R[t][e] = r), r), Mt = (e, t) => {
3618
3588
  if (t == null)
3619
3589
  return;
3620
- if (t in M && e in M[t])
3621
- return M[t][e];
3622
- const n = ge(t);
3623
- for (let r = 0; r < n.length; r++) {
3624
- const i = n[r], s = Tr(i, e);
3590
+ if (t in R && e in R[t])
3591
+ return R[t][e];
3592
+ const r = pe(t);
3593
+ for (let n = 0; n < r.length; n++) {
3594
+ const i = r[n], s = Sn(i, e);
3625
3595
  if (s)
3626
- return vr(e, t, s);
3596
+ return Hn(e, t, s);
3627
3597
  }
3628
3598
  };
3629
- let Ge;
3630
- const Z = me({});
3631
- function Hr(e) {
3632
- return Ge[e] || null;
3599
+ let Fe;
3600
+ const Q = ge({});
3601
+ function Tn(e) {
3602
+ return Fe[e] || null;
3633
3603
  }
3634
- function Mt(e) {
3635
- return e in Ge;
3604
+ function Rt(e) {
3605
+ return e in Fe;
3636
3606
  }
3637
- function Tr(e, t) {
3638
- if (!Mt(e))
3607
+ function Sn(e, t) {
3608
+ if (!Rt(e))
3639
3609
  return null;
3640
- const n = Hr(e);
3641
- return xr(n, t);
3610
+ const r = Tn(e);
3611
+ return xn(r, t);
3642
3612
  }
3643
- function Sr(e) {
3613
+ function Bn(e) {
3644
3614
  if (e == null)
3645
3615
  return;
3646
- const t = ge(e);
3647
- for (let n = 0; n < t.length; n++) {
3648
- const r = t[n];
3649
- if (Mt(r))
3650
- return r;
3616
+ const t = pe(e);
3617
+ for (let r = 0; r < t.length; r++) {
3618
+ const n = t[r];
3619
+ if (Rt(n))
3620
+ return n;
3651
3621
  }
3652
3622
  }
3653
- function Br(e, ...t) {
3654
- delete M[e], Z.update((n) => (n[e] = Pn.all([n[e] || {}, ...t]), n));
3623
+ function An(e, ...t) {
3624
+ delete R[e], Q.update((r) => (r[e] = wr.all([r[e] || {}, ...t]), r));
3655
3625
  }
3656
- W(
3657
- [Z],
3626
+ Z(
3627
+ [Q],
3658
3628
  ([e]) => Object.keys(e)
3659
3629
  );
3660
- Z.subscribe((e) => Ge = e);
3661
- const ue = {};
3662
- function Ar(e, t) {
3663
- ue[e].delete(t), ue[e].size === 0 && delete ue[e];
3630
+ Q.subscribe((e) => Fe = e);
3631
+ const he = {};
3632
+ function wn(e, t) {
3633
+ he[e].delete(t), he[e].size === 0 && delete he[e];
3664
3634
  }
3665
- function Rt(e) {
3666
- return ue[e];
3635
+ function $t(e) {
3636
+ return he[e];
3667
3637
  }
3668
- function wr(e) {
3669
- return ge(e).map((t) => {
3670
- const n = Rt(t);
3671
- return [t, n ? [...n] : []];
3638
+ function Pn(e) {
3639
+ return pe(e).map((t) => {
3640
+ const r = $t(t);
3641
+ return [t, r ? [...r] : []];
3672
3642
  }).filter(([, t]) => t.length > 0);
3673
3643
  }
3674
- function Me(e) {
3675
- return e == null ? !1 : ge(e).some(
3644
+ function $e(e) {
3645
+ return e == null ? !1 : pe(e).some(
3676
3646
  (t) => {
3677
- var n;
3678
- return (n = Rt(t)) == null ? void 0 : n.size;
3647
+ var r;
3648
+ return (r = $t(t)) == null ? void 0 : r.size;
3679
3649
  }
3680
3650
  );
3681
3651
  }
3682
- function Pr(e, t) {
3652
+ function On(e, t) {
3683
3653
  return Promise.all(
3684
- t.map((r) => (Ar(e, r), r().then((i) => i.default || i)))
3685
- ).then((r) => Br(e, ...r));
3686
- }
3687
- const q = {};
3688
- function $t(e) {
3689
- if (!Me(e))
3690
- return e in q ? q[e] : Promise.resolve();
3691
- const t = wr(e);
3692
- return q[e] = Promise.all(
3654
+ t.map((n) => (wn(e, n), n().then((i) => i.default || i)))
3655
+ ).then((n) => An(e, ...n));
3656
+ }
3657
+ const J = {};
3658
+ function Ut(e) {
3659
+ if (!$e(e))
3660
+ return e in J ? J[e] : Promise.resolve();
3661
+ const t = Pn(e);
3662
+ return J[e] = Promise.all(
3693
3663
  t.map(
3694
- ([n, r]) => Pr(n, r)
3664
+ ([r, n]) => On(r, n)
3695
3665
  )
3696
3666
  ).then(() => {
3697
- if (Me(e))
3698
- return $t(e);
3699
- delete q[e];
3700
- }), q[e];
3667
+ if ($e(e))
3668
+ return Ut(e);
3669
+ delete J[e];
3670
+ }), J[e];
3701
3671
  }
3702
- const Nr = {
3672
+ const Nn = {
3703
3673
  number: {
3704
3674
  scientific: { notation: "scientific" },
3705
3675
  engineering: { notation: "engineering" },
@@ -3728,150 +3698,150 @@ const Nr = {
3728
3698
  timeZoneName: "short"
3729
3699
  }
3730
3700
  }
3731
- }, Or = {
3701
+ }, In = {
3732
3702
  fallbackLocale: null,
3733
3703
  loadingDelay: 200,
3734
- formats: Nr,
3704
+ formats: Nn,
3735
3705
  warnOnMissingMessages: !0,
3736
3706
  handleMissingMessage: void 0,
3737
3707
  ignoreTag: !0
3738
- }, Ir = Or;
3739
- function X() {
3740
- return Ir;
3741
- }
3742
- const Te = me(!1);
3743
- var Lr = Object.defineProperty, Cr = Object.defineProperties, Mr = Object.getOwnPropertyDescriptors, rt = Object.getOwnPropertySymbols, Rr = Object.prototype.hasOwnProperty, $r = Object.prototype.propertyIsEnumerable, it = (e, t, n) => t in e ? Lr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ur = (e, t) => {
3744
- for (var n in t)
3745
- Rr.call(t, n) && it(e, n, t[n]);
3746
- if (rt)
3747
- for (var n of rt(t))
3748
- $r.call(t, n) && it(e, n, t[n]);
3708
+ }, Ln = In;
3709
+ function z() {
3710
+ return Ln;
3711
+ }
3712
+ const Be = ge(!1);
3713
+ var Cn = Object.defineProperty, Mn = Object.defineProperties, Rn = Object.getOwnPropertyDescriptors, it = Object.getOwnPropertySymbols, $n = Object.prototype.hasOwnProperty, Un = Object.prototype.propertyIsEnumerable, st = (e, t, r) => t in e ? Cn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Dn = (e, t) => {
3714
+ for (var r in t || (t = {}))
3715
+ $n.call(t, r) && st(e, r, t[r]);
3716
+ if (it)
3717
+ for (var r of it(t))
3718
+ Un.call(t, r) && st(e, r, t[r]);
3749
3719
  return e;
3750
- }, Dr = (e, t) => Cr(e, Mr(t));
3751
- let Re;
3752
- const he = me(null);
3753
- function st(e) {
3754
- return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3720
+ }, Gn = (e, t) => Mn(e, Rn(t));
3721
+ let Ue;
3722
+ const fe = ge(null);
3723
+ function ot(e) {
3724
+ return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3755
3725
  }
3756
- function ge(e, t = X().fallbackLocale) {
3757
- const n = st(e);
3758
- return t ? [.../* @__PURE__ */ new Set([...n, ...st(t)])] : n;
3726
+ function pe(e, t = z().fallbackLocale) {
3727
+ const r = ot(e);
3728
+ return t ? [.../* @__PURE__ */ new Set([...r, ...ot(t)])] : r;
3759
3729
  }
3760
- function $() {
3761
- return Re != null ? Re : void 0;
3730
+ function U() {
3731
+ return Ue != null ? Ue : void 0;
3762
3732
  }
3763
- he.subscribe((e) => {
3764
- Re = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3733
+ fe.subscribe((e) => {
3734
+ Ue = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3765
3735
  });
3766
- const Gr = (e) => {
3767
- if (e && Sr(e) && Me(e)) {
3768
- const { loadingDelay: t } = X();
3769
- let n;
3770
- return typeof window != "undefined" && $() != null && t ? n = window.setTimeout(
3771
- () => Te.set(!0),
3736
+ const Fn = (e) => {
3737
+ if (e && Bn(e) && $e(e)) {
3738
+ const { loadingDelay: t } = z();
3739
+ let r;
3740
+ return typeof window != "undefined" && U() != null && t ? r = window.setTimeout(
3741
+ () => Be.set(!0),
3772
3742
  t
3773
- ) : Te.set(!0), $t(e).then(() => {
3774
- he.set(e);
3743
+ ) : Be.set(!0), Ut(e).then(() => {
3744
+ fe.set(e);
3775
3745
  }).finally(() => {
3776
- clearTimeout(n), Te.set(!1);
3746
+ clearTimeout(r), Be.set(!1);
3777
3747
  });
3778
3748
  }
3779
- return he.set(e);
3780
- }, R = Dr(Ur({}, he), {
3781
- set: Gr
3782
- }), be = (e) => {
3749
+ return fe.set(e);
3750
+ }, $ = Gn(Dn({}, fe), {
3751
+ set: Fn
3752
+ }), ye = (e) => {
3783
3753
  const t = /* @__PURE__ */ Object.create(null);
3784
- return (r) => {
3785
- const i = JSON.stringify(r);
3786
- return i in t ? t[i] : t[i] = e(r);
3754
+ return (n) => {
3755
+ const i = JSON.stringify(n);
3756
+ return i in t ? t[i] : t[i] = e(n);
3787
3757
  };
3788
3758
  };
3789
- var Fr = Object.defineProperty, le = Object.getOwnPropertySymbols, Ut = Object.prototype.hasOwnProperty, Dt = Object.prototype.propertyIsEnumerable, at = (e, t, n) => t in e ? Fr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Fe = (e, t) => {
3790
- for (var n in t || (t = {}))
3791
- Ut.call(t, n) && at(e, n, t[n]);
3792
- if (le)
3793
- for (var n of le(t))
3794
- Dt.call(t, n) && at(e, n, t[n]);
3759
+ var jn = Object.defineProperty, ce = Object.getOwnPropertySymbols, Dt = Object.prototype.hasOwnProperty, Gt = Object.prototype.propertyIsEnumerable, at = (e, t, r) => t in e ? jn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, je = (e, t) => {
3760
+ for (var r in t || (t = {}))
3761
+ Dt.call(t, r) && at(e, r, t[r]);
3762
+ if (ce)
3763
+ for (var r of ce(t))
3764
+ Gt.call(t, r) && at(e, r, t[r]);
3795
3765
  return e;
3796
- }, Q = (e, t) => {
3797
- var n = {};
3798
- for (var r in e)
3799
- Ut.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3800
- if (e != null && le)
3801
- for (var r of le(e))
3802
- t.indexOf(r) < 0 && Dt.call(e, r) && (n[r] = e[r]);
3803
- return n;
3766
+ }, q = (e, t) => {
3767
+ var r = {};
3768
+ for (var n in e)
3769
+ Dt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3770
+ if (e != null && ce)
3771
+ for (var n of ce(e))
3772
+ t.indexOf(n) < 0 && Gt.call(e, n) && (r[n] = e[n]);
3773
+ return r;
3804
3774
  };
3805
- const ee = (e, t) => {
3806
- const { formats: n } = X();
3807
- if (e in n && t in n[e])
3808
- return n[e][t];
3775
+ const te = (e, t) => {
3776
+ const { formats: r } = z();
3777
+ if (e in r && t in r[e])
3778
+ return r[e][t];
3809
3779
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3810
- }, jr = be(
3780
+ }, kn = ye(
3811
3781
  (e) => {
3812
- var t = e, { locale: n, format: r } = t, i = Q(t, ["locale", "format"]);
3813
- if (n == null)
3782
+ var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
3783
+ if (r == null)
3814
3784
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3815
- return r && (i = ee("number", r)), new Intl.NumberFormat(n, i);
3785
+ return n && (i = te("number", n)), new Intl.NumberFormat(r, i);
3816
3786
  }
3817
- ), kr = be(
3787
+ ), Vn = ye(
3818
3788
  (e) => {
3819
- var t = e, { locale: n, format: r } = t, i = Q(t, ["locale", "format"]);
3820
- if (n == null)
3789
+ var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
3790
+ if (r == null)
3821
3791
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3822
- return r ? i = ee("date", r) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(n, i);
3792
+ return n ? i = te("date", n) : Object.keys(i).length === 0 && (i = te("date", "short")), new Intl.DateTimeFormat(r, i);
3823
3793
  }
3824
- ), Vr = be(
3794
+ ), Xn = ye(
3825
3795
  (e) => {
3826
- var t = e, { locale: n, format: r } = t, i = Q(t, ["locale", "format"]);
3827
- if (n == null)
3796
+ var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
3797
+ if (r == null)
3828
3798
  throw new Error(
3829
3799
  '[svelte-i18n] A "locale" must be set to format time values'
3830
3800
  );
3831
- return r ? i = ee("time", r) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(n, i);
3801
+ return n ? i = te("time", n) : Object.keys(i).length === 0 && (i = te("time", "short")), new Intl.DateTimeFormat(r, i);
3832
3802
  }
3833
- ), Xr = (e = {}) => {
3803
+ ), zn = (e = {}) => {
3834
3804
  var t = e, {
3835
- locale: n = $()
3836
- } = t, r = Q(t, [
3805
+ locale: r = U()
3806
+ } = t, n = q(t, [
3837
3807
  "locale"
3838
3808
  ]);
3839
- return jr(Fe({ locale: n }, r));
3840
- }, zr = (e = {}) => {
3809
+ return kn(je({ locale: r }, n));
3810
+ }, Wn = (e = {}) => {
3841
3811
  var t = e, {
3842
- locale: n = $()
3843
- } = t, r = Q(t, [
3812
+ locale: r = U()
3813
+ } = t, n = q(t, [
3844
3814
  "locale"
3845
3815
  ]);
3846
- return kr(Fe({ locale: n }, r));
3847
- }, Wr = (e = {}) => {
3816
+ return Vn(je({ locale: r }, n));
3817
+ }, Zn = (e = {}) => {
3848
3818
  var t = e, {
3849
- locale: n = $()
3850
- } = t, r = Q(t, [
3819
+ locale: r = U()
3820
+ } = t, n = q(t, [
3851
3821
  "locale"
3852
3822
  ]);
3853
- return Vr(Fe({ locale: n }, r));
3854
- }, Zr = be(
3823
+ return Xn(je({ locale: r }, n));
3824
+ }, Qn = ye(
3855
3825
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3856
- (e, t = $()) => new _r(e, t, X().formats, {
3857
- ignoreTag: X().ignoreTag
3826
+ (e, t = U()) => new _n(e, t, z().formats, {
3827
+ ignoreTag: z().ignoreTag
3858
3828
  })
3859
- ), Qr = (e, t = {}) => {
3860
- var n, r, i, s;
3861
- let a = t;
3862
- typeof e == "object" && (a = e, e = a.id);
3829
+ ), qn = (e, t = {}) => {
3830
+ var r, n, i, s;
3831
+ let o = t;
3832
+ typeof e == "object" && (o = e, e = o.id);
3863
3833
  const {
3864
3834
  values: u,
3865
- locale: l = $(),
3866
- default: o
3867
- } = a;
3835
+ locale: l = U(),
3836
+ default: a
3837
+ } = o;
3868
3838
  if (l == null)
3869
3839
  throw new Error(
3870
3840
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3871
3841
  );
3872
- let h = Ct(e, l);
3842
+ let h = Mt(e, l);
3873
3843
  if (!h)
3874
- h = (s = (i = (r = (n = X()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: l, id: e, defaultValue: o })) != null ? i : o) != null ? s : e;
3844
+ h = (s = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
3875
3845
  else if (typeof h != "string")
3876
3846
  return console.warn(
3877
3847
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
@@ -3880,7 +3850,7 @@ const ee = (e, t) => {
3880
3850
  return h;
3881
3851
  let m = h;
3882
3852
  try {
3883
- m = Zr(h, l).format(u);
3853
+ m = Qn(h, l).format(u);
3884
3854
  } catch (f) {
3885
3855
  f instanceof Error && console.warn(
3886
3856
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3888,343 +3858,343 @@ const ee = (e, t) => {
3888
3858
  );
3889
3859
  }
3890
3860
  return m;
3891
- }, qr = (e, t) => Wr(t).format(e), Jr = (e, t) => zr(t).format(e), Yr = (e, t) => Xr(t).format(e), Kr = (e, t = $()) => Ct(e, t), Si = W([R, Z], () => Qr);
3892
- W([R], () => qr);
3893
- W([R], () => Jr);
3894
- W([R], () => Yr);
3895
- W([R, Z], () => Kr);
3896
- function ei(e, t) {
3861
+ }, Jn = (e, t) => Zn(t).format(e), Yn = (e, t) => Wn(t).format(e), Kn = (e, t) => zn(t).format(e), ei = (e, t = U()) => Mt(e, t), Ti = Z([$, Q], () => qn);
3862
+ Z([$], () => Jn);
3863
+ Z([$], () => Yn);
3864
+ Z([$], () => Kn);
3865
+ Z([$, Q], () => ei);
3866
+ function ti(e, t) {
3897
3867
  if (e) {
3898
- const n = document.createElement("style");
3899
- n.innerHTML = t, e.appendChild(n);
3868
+ const r = document.createElement("style");
3869
+ r.innerHTML = t, e.appendChild(r);
3900
3870
  }
3901
3871
  }
3902
- function ti(e, t) {
3903
- const n = new URL(t);
3904
- fetch(n.href).then((r) => r.text()).then((r) => {
3872
+ function ri(e, t) {
3873
+ const r = new URL(t);
3874
+ fetch(r.href).then((n) => n.text()).then((n) => {
3905
3875
  const i = document.createElement("style");
3906
- i.innerHTML = r, e && e.appendChild(i);
3907
- }).catch((r) => {
3908
- console.error("There was an error while trying to load client styling from URL", r);
3876
+ i.innerHTML = n, e && e.appendChild(i);
3877
+ }).catch((n) => {
3878
+ console.error("There was an error while trying to load client styling from URL", n);
3909
3879
  });
3910
3880
  }
3911
- function ni(e, t, n) {
3881
+ function ni(e, t, r) {
3912
3882
  if (window.emMessageBus) {
3913
- const r = document.createElement("style");
3883
+ const n = document.createElement("style");
3914
3884
  window.emMessageBus.subscribe(t, (i) => {
3915
- r.innerHTML = i, e && e.appendChild(r);
3885
+ n.innerHTML = i, e && e.appendChild(n);
3916
3886
  });
3917
3887
  }
3918
3888
  }
3919
- function ri({ withLocale: e, translations: t }) {
3920
- R.subscribe((n) => {
3921
- n == null && (Z.set(t), R.set(e));
3889
+ function ii({ withLocale: e, translations: t }) {
3890
+ $.subscribe((r) => {
3891
+ r == null && (Q.set(t), $.set(e));
3922
3892
  });
3923
3893
  }
3924
3894
  if (typeof window != "undefined") {
3925
3895
  let e = function(t) {
3926
- return function(...n) {
3896
+ return function(...r) {
3927
3897
  try {
3928
- return t.apply(this, n);
3929
- } catch (r) {
3930
- if (r instanceof DOMException && r.message.includes("has already been used with this registry") || r.message.includes("Cannot define multiple custom elements with the same tag name"))
3898
+ return t.apply(this, r);
3899
+ } catch (n) {
3900
+ if (n instanceof DOMException && n.message.includes("has already been used with this registry") || n.message.includes("Cannot define multiple custom elements with the same tag name"))
3931
3901
  return !1;
3932
- throw r;
3902
+ throw n;
3933
3903
  }
3934
3904
  };
3935
3905
  };
3936
- customElements.define = e(customElements.define), import("./CasinoGamesCategorySection-uRhZwIcE.js").then(({ default: t }) => {
3906
+ customElements.define = e(customElements.define), import("./CasinoGamesCategorySection-BpJHekMR.js").then(({ default: t }) => {
3937
3907
  !customElements.get("casino-games-category-section") && customElements.define("casino-games-category-section", t.element);
3938
3908
  });
3939
3909
  }
3940
- function ii(e) {
3941
- Zt(e, "svelte-nazqps", ".CasinoFavoritesSectionContainer{font-family:inherit;background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}");
3910
+ function si(e) {
3911
+ Qt(e, "svelte-nazqps", ".CasinoFavoritesSectionContainer{font-family:inherit;background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}");
3942
3912
  }
3943
- function ot(e) {
3913
+ function ut(e) {
3944
3914
  let t;
3945
3915
  return {
3946
3916
  c() {
3947
- t = ne("casino-games-category-section"), d(
3917
+ t = ne("casino-games-category-section"), g(
3948
3918
  t,
3949
3919
  "session",
3950
3920
  /*session*/
3951
3921
  e[4]
3952
- ), d(
3922
+ ), g(
3953
3923
  t,
3954
3924
  "userid",
3955
3925
  /*userid*/
3956
3926
  e[5]
3957
- ), d(
3927
+ ), g(
3958
3928
  t,
3959
3929
  "endpoint",
3960
3930
  /*endpoint*/
3961
3931
  e[0]
3962
- ), d(
3932
+ ), g(
3963
3933
  t,
3964
3934
  "datasource",
3965
3935
  /*datasource*/
3966
3936
  e[1]
3967
- ), d(
3937
+ ), g(
3968
3938
  t,
3969
3939
  "lang",
3970
3940
  /*lang*/
3971
3941
  e[3]
3972
- ), d(
3942
+ ), g(
3973
3943
  t,
3974
3944
  "currency",
3975
3945
  /*currency*/
3976
3946
  e[2]
3977
- ), d(
3947
+ ), g(
3978
3948
  t,
3979
3949
  "favorites",
3980
3950
  /*favorites*/
3981
3951
  e[14]
3982
- ), d(
3952
+ ), g(
3983
3953
  t,
3984
3954
  "fetchviaevent",
3985
3955
  /*fetchviaevent*/
3986
3956
  e[16]
3987
- ), d(
3957
+ ), g(
3988
3958
  t,
3989
3959
  "mbsource",
3990
3960
  /*mbsource*/
3991
3961
  e[17]
3992
- ), d(t, "categoryid", "FAVORITES"), d(t, "class", "CategoryContainer"), d(
3962
+ ), g(t, "categoryid", "FAVORITES"), g(t, "class", "CategoryContainer"), g(
3993
3963
  t,
3994
3964
  "showgamename",
3995
3965
  /*showgamename*/
3996
3966
  e[11]
3997
- ), d(
3967
+ ), g(
3998
3968
  t,
3999
3969
  "clientstyling",
4000
3970
  /*clientstyling*/
4001
3971
  e[6]
4002
- ), d(
3972
+ ), g(
4003
3973
  t,
4004
3974
  "clientstylingurl",
4005
3975
  /*clientstylingurl*/
4006
3976
  e[7]
4007
- ), d(
3977
+ ), g(
4008
3978
  t,
4009
3979
  "livecasino",
4010
3980
  /*livecasino*/
4011
3981
  e[8]
4012
- ), d(
3982
+ ), g(
4013
3983
  t,
4014
3984
  "visiblegames",
4015
3985
  /*visiblegames*/
4016
3986
  e[13]
4017
- ), d(
3987
+ ), g(
4018
3988
  t,
4019
3989
  "gamepagemodalurl",
4020
3990
  /*gamepagemodalurl*/
4021
3991
  e[12]
4022
- ), d(
3992
+ ), g(
4023
3993
  t,
4024
3994
  "integratedgameframedesktop",
4025
3995
  /*integratedgameframedesktop*/
4026
3996
  e[10]
4027
- ), d(
3997
+ ), g(
4028
3998
  t,
4029
3999
  "integratedgameframemobile",
4030
4000
  /*integratedgameframemobile*/
4031
4001
  e[9]
4032
- ), d(
4002
+ ), g(
4033
4003
  t,
4034
4004
  "casinomygames",
4035
4005
  /*casinomygames*/
4036
4006
  e[15]
4037
4007
  );
4038
4008
  },
4039
- m(n, r) {
4040
- fe(n, t, r);
4009
+ m(r, n) {
4010
+ me(r, t, n);
4041
4011
  },
4042
- p(n, r) {
4043
- r & /*session*/
4044
- 16 && d(
4012
+ p(r, n) {
4013
+ n & /*session*/
4014
+ 16 && g(
4045
4015
  t,
4046
4016
  "session",
4047
4017
  /*session*/
4048
- n[4]
4049
- ), r & /*userid*/
4050
- 32 && d(
4018
+ r[4]
4019
+ ), n & /*userid*/
4020
+ 32 && g(
4051
4021
  t,
4052
4022
  "userid",
4053
4023
  /*userid*/
4054
- n[5]
4055
- ), r & /*endpoint*/
4056
- 1 && d(
4024
+ r[5]
4025
+ ), n & /*endpoint*/
4026
+ 1 && g(
4057
4027
  t,
4058
4028
  "endpoint",
4059
4029
  /*endpoint*/
4060
- n[0]
4061
- ), r & /*datasource*/
4062
- 2 && d(
4030
+ r[0]
4031
+ ), n & /*datasource*/
4032
+ 2 && g(
4063
4033
  t,
4064
4034
  "datasource",
4065
4035
  /*datasource*/
4066
- n[1]
4067
- ), r & /*lang*/
4068
- 8 && d(
4036
+ r[1]
4037
+ ), n & /*lang*/
4038
+ 8 && g(
4069
4039
  t,
4070
4040
  "lang",
4071
4041
  /*lang*/
4072
- n[3]
4073
- ), r & /*currency*/
4074
- 4 && d(
4042
+ r[3]
4043
+ ), n & /*currency*/
4044
+ 4 && g(
4075
4045
  t,
4076
4046
  "currency",
4077
4047
  /*currency*/
4078
- n[2]
4079
- ), r & /*favorites*/
4080
- 16384 && d(
4048
+ r[2]
4049
+ ), n & /*favorites*/
4050
+ 16384 && g(
4081
4051
  t,
4082
4052
  "favorites",
4083
4053
  /*favorites*/
4084
- n[14]
4085
- ), r & /*fetchviaevent*/
4086
- 65536 && d(
4054
+ r[14]
4055
+ ), n & /*fetchviaevent*/
4056
+ 65536 && g(
4087
4057
  t,
4088
4058
  "fetchviaevent",
4089
4059
  /*fetchviaevent*/
4090
- n[16]
4091
- ), r & /*mbsource*/
4092
- 131072 && d(
4060
+ r[16]
4061
+ ), n & /*mbsource*/
4062
+ 131072 && g(
4093
4063
  t,
4094
4064
  "mbsource",
4095
4065
  /*mbsource*/
4096
- n[17]
4097
- ), r & /*showgamename*/
4098
- 2048 && d(
4066
+ r[17]
4067
+ ), n & /*showgamename*/
4068
+ 2048 && g(
4099
4069
  t,
4100
4070
  "showgamename",
4101
4071
  /*showgamename*/
4102
- n[11]
4103
- ), r & /*clientstyling*/
4104
- 64 && d(
4072
+ r[11]
4073
+ ), n & /*clientstyling*/
4074
+ 64 && g(
4105
4075
  t,
4106
4076
  "clientstyling",
4107
4077
  /*clientstyling*/
4108
- n[6]
4109
- ), r & /*clientstylingurl*/
4110
- 128 && d(
4078
+ r[6]
4079
+ ), n & /*clientstylingurl*/
4080
+ 128 && g(
4111
4081
  t,
4112
4082
  "clientstylingurl",
4113
4083
  /*clientstylingurl*/
4114
- n[7]
4115
- ), r & /*livecasino*/
4116
- 256 && d(
4084
+ r[7]
4085
+ ), n & /*livecasino*/
4086
+ 256 && g(
4117
4087
  t,
4118
4088
  "livecasino",
4119
4089
  /*livecasino*/
4120
- n[8]
4121
- ), r & /*visiblegames*/
4122
- 8192 && d(
4090
+ r[8]
4091
+ ), n & /*visiblegames*/
4092
+ 8192 && g(
4123
4093
  t,
4124
4094
  "visiblegames",
4125
4095
  /*visiblegames*/
4126
- n[13]
4127
- ), r & /*gamepagemodalurl*/
4128
- 4096 && d(
4096
+ r[13]
4097
+ ), n & /*gamepagemodalurl*/
4098
+ 4096 && g(
4129
4099
  t,
4130
4100
  "gamepagemodalurl",
4131
4101
  /*gamepagemodalurl*/
4132
- n[12]
4133
- ), r & /*integratedgameframedesktop*/
4134
- 1024 && d(
4102
+ r[12]
4103
+ ), n & /*integratedgameframedesktop*/
4104
+ 1024 && g(
4135
4105
  t,
4136
4106
  "integratedgameframedesktop",
4137
4107
  /*integratedgameframedesktop*/
4138
- n[10]
4139
- ), r & /*integratedgameframemobile*/
4140
- 512 && d(
4108
+ r[10]
4109
+ ), n & /*integratedgameframemobile*/
4110
+ 512 && g(
4141
4111
  t,
4142
4112
  "integratedgameframemobile",
4143
4113
  /*integratedgameframemobile*/
4144
- n[9]
4145
- ), r & /*casinomygames*/
4146
- 32768 && d(
4114
+ r[9]
4115
+ ), n & /*casinomygames*/
4116
+ 32768 && g(
4147
4117
  t,
4148
4118
  "casinomygames",
4149
4119
  /*casinomygames*/
4150
- n[15]
4120
+ r[15]
4151
4121
  );
4152
4122
  },
4153
- d(n) {
4154
- n && te(t);
4123
+ d(r) {
4124
+ r && re(t);
4155
4125
  }
4156
4126
  };
4157
4127
  }
4158
- function si(e) {
4159
- let t, n = (
4128
+ function oi(e) {
4129
+ let t, r = (
4160
4130
  /*session*/
4161
- e[4] && ot(e)
4131
+ e[4] && ut(e)
4162
4132
  );
4163
4133
  return {
4164
4134
  c() {
4165
- t = ne("div"), n && n.c(), Ue(t, "class", "CasinoFavoritesSectionContainer");
4135
+ t = ne("div"), r && r.c(), Ge(t, "class", "CasinoFavoritesSectionContainer");
4166
4136
  },
4167
- m(r, i) {
4168
- fe(r, t, i), n && n.m(t, null), e[19](t);
4137
+ m(n, i) {
4138
+ me(n, t, i), r && r.m(t, null), e[19](t);
4169
4139
  },
4170
- p(r, [i]) {
4140
+ p(n, [i]) {
4171
4141
  /*session*/
4172
- r[4] ? n ? n.p(r, i) : (n = ot(r), n.c(), n.m(t, null)) : n && (n.d(1), n = null);
4142
+ n[4] ? r ? r.p(n, i) : (r = ut(n), r.c(), r.m(t, null)) : r && (r.d(1), r = null);
4173
4143
  },
4174
- i: O,
4175
- o: O,
4176
- d(r) {
4177
- r && te(t), n && n.d(), e[19](null);
4144
+ i: N,
4145
+ o: N,
4146
+ d(n) {
4147
+ n && re(t), r && r.d(), e[19](null);
4178
4148
  }
4179
4149
  };
4180
4150
  }
4181
- function ai(e, t, n) {
4182
- let { endpoint: r = "" } = t, { datasource: i = "" } = t, { currency: s = "" } = t, { lang: a = "" } = t, { session: u = "" } = t, { userid: l = "" } = t, { clientstyling: o = "" } = t, { clientstylingurl: h = "" } = t, { livecasino: m = "false" } = t, { integratedgameframemobile: f = "false" } = t, { integratedgameframedesktop: b = "false" } = t, { showgamename: y = "" } = t, { gamepagemodalurl: x = "false" } = t, { visiblegames: T = "" } = t, { favorites: P = "" } = t, { casinomygames: w = "false" } = t, { fetchviaevent: B = "true" } = t, { mbsource: N } = t, v;
4183
- ri({ withLocale: "en", translations: {} }), en(() => () => {
4151
+ function ai(e, t, r) {
4152
+ let { endpoint: n = "" } = t, { datasource: i = "" } = t, { currency: s = "" } = t, { lang: o = "" } = t, { session: u = "" } = t, { userid: l = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: h = "" } = t, { livecasino: m = "false" } = t, { integratedgameframemobile: f = "false" } = t, { integratedgameframedesktop: b = "false" } = t, { showgamename: y = "" } = t, { gamepagemodalurl: _ = "false" } = t, { visiblegames: T = "" } = t, { favorites: P = "" } = t, { casinomygames: w = "false" } = t, { fetchviaevent: B = "true" } = t, { mbsource: O } = t, x;
4153
+ ii({ withLocale: "en", translations: {} }), tr(() => () => {
4184
4154
  });
4185
4155
  function I(c) {
4186
- Se[c ? "unshift" : "push"](() => {
4187
- v = c, n(18, v);
4156
+ Ae[c ? "unshift" : "push"](() => {
4157
+ x = c, r(18, x);
4188
4158
  });
4189
4159
  }
4190
4160
  return e.$$set = (c) => {
4191
- "endpoint" in c && n(0, r = c.endpoint), "datasource" in c && n(1, i = c.datasource), "currency" in c && n(2, s = c.currency), "lang" in c && n(3, a = c.lang), "session" in c && n(4, u = c.session), "userid" in c && n(5, l = c.userid), "clientstyling" in c && n(6, o = c.clientstyling), "clientstylingurl" in c && n(7, h = c.clientstylingurl), "livecasino" in c && n(8, m = c.livecasino), "integratedgameframemobile" in c && n(9, f = c.integratedgameframemobile), "integratedgameframedesktop" in c && n(10, b = c.integratedgameframedesktop), "showgamename" in c && n(11, y = c.showgamename), "gamepagemodalurl" in c && n(12, x = c.gamepagemodalurl), "visiblegames" in c && n(13, T = c.visiblegames), "favorites" in c && n(14, P = c.favorites), "casinomygames" in c && n(15, w = c.casinomygames), "fetchviaevent" in c && n(16, B = c.fetchviaevent), "mbsource" in c && n(17, N = c.mbsource);
4161
+ "endpoint" in c && r(0, n = c.endpoint), "datasource" in c && r(1, i = c.datasource), "currency" in c && r(2, s = c.currency), "lang" in c && r(3, o = c.lang), "session" in c && r(4, u = c.session), "userid" in c && r(5, l = c.userid), "clientstyling" in c && r(6, a = c.clientstyling), "clientstylingurl" in c && r(7, h = c.clientstylingurl), "livecasino" in c && r(8, m = c.livecasino), "integratedgameframemobile" in c && r(9, f = c.integratedgameframemobile), "integratedgameframedesktop" in c && r(10, b = c.integratedgameframedesktop), "showgamename" in c && r(11, y = c.showgamename), "gamepagemodalurl" in c && r(12, _ = c.gamepagemodalurl), "visiblegames" in c && r(13, T = c.visiblegames), "favorites" in c && r(14, P = c.favorites), "casinomygames" in c && r(15, w = c.casinomygames), "fetchviaevent" in c && r(16, B = c.fetchviaevent), "mbsource" in c && r(17, O = c.mbsource);
4192
4162
  }, e.$$.update = () => {
4193
4163
  e.$$.dirty & /*clientstyling, customStylingContainer*/
4194
- 262208 && o && v && ei(v, o), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4195
- 262272 && h && v && ti(v, h), e.$$.dirty & /*customStylingContainer, mbsource*/
4196
- 393216 && v && ni(v, `${N}.Style`);
4164
+ 262208 && a && x && ti(x, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4165
+ 262272 && h && x && ri(x, h), e.$$.dirty & /*customStylingContainer, mbsource*/
4166
+ 393216 && x && ni(x, `${O}.Style`);
4197
4167
  }, [
4198
- r,
4168
+ n,
4199
4169
  i,
4200
4170
  s,
4201
- a,
4171
+ o,
4202
4172
  u,
4203
4173
  l,
4204
- o,
4174
+ a,
4205
4175
  h,
4206
4176
  m,
4207
4177
  f,
4208
4178
  b,
4209
4179
  y,
4210
- x,
4180
+ _,
4211
4181
  T,
4212
4182
  P,
4213
4183
  w,
4214
4184
  B,
4215
- N,
4216
- v,
4185
+ O,
4186
+ x,
4217
4187
  I
4218
4188
  ];
4219
4189
  }
4220
- class Gt extends ln {
4190
+ class Ft extends lr {
4221
4191
  constructor(t) {
4222
- super(), un(
4192
+ super(), ur(
4223
4193
  this,
4224
4194
  t,
4225
4195
  ai,
4226
- si,
4227
- ht,
4196
+ oi,
4197
+ lt,
4228
4198
  {
4229
4199
  endpoint: 0,
4230
4200
  datasource: 1,
@@ -4245,7 +4215,7 @@ class Gt extends ln {
4245
4215
  fetchviaevent: 16,
4246
4216
  mbsource: 17
4247
4217
  },
4248
- ii
4218
+ si
4249
4219
  );
4250
4220
  }
4251
4221
  get endpoint() {
@@ -4357,55 +4327,51 @@ class Gt extends ln {
4357
4327
  this.$$set({ mbsource: t }), H();
4358
4328
  }
4359
4329
  }
4360
- hn(Gt, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, clientstyling: {}, clientstylingurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, showgamename: {}, gamepagemodalurl: {}, visiblegames: {}, favorites: {}, casinomygames: {}, fetchviaevent: {}, mbsource: {} }, [], [], !0);
4361
- const Bi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4330
+ hr(Ft, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, clientstyling: {}, clientstylingurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, showgamename: {}, gamepagemodalurl: {}, visiblegames: {}, favorites: {}, casinomygames: {}, fetchviaevent: {}, mbsource: {} }, [], [], !0);
4331
+ const Si = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4362
4332
  __proto__: null,
4363
- default: Gt
4333
+ default: Ft
4364
4334
  }, Symbol.toStringTag, { value: "Module" }));
4365
4335
  export {
4366
- R as $,
4367
- mi as A,
4368
- di as B,
4369
- li as C,
4370
- z as D,
4371
- gi as E,
4372
- Si as F,
4373
- ui as G,
4374
- d as H,
4375
- bi as I,
4376
- ci as J,
4377
- pi as K,
4378
- Ei as L,
4379
- yi as M,
4380
- vi as N,
4381
- xi as O,
4382
- Bi as P,
4383
- ln as S,
4384
- Hi as _,
4385
- Ee as a,
4386
- Ti as b,
4387
- ce as c,
4388
- Z as d,
4389
- Br as e,
4336
+ $,
4337
+ ri as A,
4338
+ ni as B,
4339
+ hr as C,
4340
+ Ti as D,
4341
+ g as E,
4342
+ pi as F,
4343
+ mi as G,
4344
+ yi as H,
4345
+ vi as I,
4346
+ Ei as J,
4347
+ Hi as K,
4348
+ xi as L,
4349
+ Si as M,
4350
+ lr as S,
4351
+ Q as a,
4352
+ An as b,
4353
+ Qt as c,
4354
+ re as d,
4355
+ me as e,
4390
4356
  H as f,
4391
- hn as g,
4392
- Zt as h,
4393
- un as i,
4394
- ne as j,
4395
- fe as k,
4396
- te as l,
4397
- hi as m,
4398
- O as n,
4399
- en as o,
4400
- Se as p,
4401
- ei as q,
4402
- ti as r,
4403
- ht as s,
4404
- ni as t,
4405
- _i as u,
4406
- Jt as v,
4407
- fi as w,
4408
- ft as x,
4409
- Ue as y,
4410
- Wt as z
4357
+ ne as g,
4358
+ li as h,
4359
+ ur as i,
4360
+ Ae as j,
4361
+ di as k,
4362
+ Zt as l,
4363
+ Ge as m,
4364
+ N as n,
4365
+ tr as o,
4366
+ _i as p,
4367
+ fi as q,
4368
+ W as r,
4369
+ lt as s,
4370
+ ct as t,
4371
+ gi as u,
4372
+ Yt as v,
4373
+ ci as w,
4374
+ bi as x,
4375
+ hi as y,
4376
+ ti as z
4411
4377
  };