@everymatrix/transaction-history-page 1.77.20 → 1.77.22

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 (45) hide show
  1. package/components/{CashierHeader-CEPv67Q_.js → CashierHeader-CUgpnoCW.js} +1216 -1210
  2. package/components/CashierHeader-CsXgw9y8.cjs +8 -0
  3. package/components/{CashierHeader-C6Dalf9Z.js → CashierHeader-kADi9sh0.js} +1198 -1192
  4. package/components/{CashierPagination-C4aOzj1-.js → CashierPagination-Bu-wR5N4.js} +1 -1
  5. package/components/{CashierPagination-BS0Mqy3T.cjs → CashierPagination-Cb_eFMfk.cjs} +1 -1
  6. package/components/{CashierPagination-DZcxRpOG.js → CashierPagination-D8ttNV9d.js} +1 -1
  7. package/components/{CashierTransactionHistory-yWIHnV5o.js → CashierTransactionHistory-C2-5f2J5.js} +4 -4
  8. package/components/{CashierTransactionHistory-BDGaTNg8.js → CashierTransactionHistory-Du1gV2Sw.js} +4 -4
  9. package/components/{CashierTransactionHistory-BHXbZ6uI.cjs → CashierTransactionHistory-WIfJ1Xtv.cjs} +1 -1
  10. package/components/{EmptyStateIcon-BeeSnRCv.js → EmptyStateIcon-0RA4Dspo.js} +1 -1
  11. package/components/{EmptyStateIcon-CJV1ozYb.cjs → EmptyStateIcon-Cn2-wB27.cjs} +1 -1
  12. package/components/{EmptyStateIcon-BtWrCQWU.js → EmptyStateIcon-CvUpVPA0.js} +1 -1
  13. package/components/{Tooltip-DyfcMqd0.js → Tooltip-0fNUG_Tc.js} +1 -1
  14. package/components/{Tooltip-JvNOyBbw.js → Tooltip-BvXFxBz_.js} +1 -1
  15. package/components/{Tooltip-CGc01sCw.cjs → Tooltip-Cm98OtNq.cjs} +1 -1
  16. package/components/{TransactionHistoryCalendar-eCSK-Pb_.js → TransactionHistoryCalendar-BqqAM0CU.js} +2 -2
  17. package/components/{TransactionHistoryCalendar-DvrhZw2C.cjs → TransactionHistoryCalendar-DF9F_BQi.cjs} +1 -1
  18. package/components/{TransactionHistoryCalendar-vXMdHFSD.js → TransactionHistoryCalendar-Dt9fdkvs.js} +2 -2
  19. package/components/{TransactionHistoryPage-DudYXZST.cjs → TransactionHistoryPage-BWoA9KNe.cjs} +1 -1
  20. package/components/{TransactionHistoryPage-DNEB83JK.js → TransactionHistoryPage-CNbdsA9u.js} +8 -8
  21. package/components/{TransactionHistoryPage-nmBFxwSl.js → TransactionHistoryPage-FE4AfBag.js} +8 -8
  22. package/components/{TxnStatusIcon-CCbuOVDa.cjs → TxnStatusIcon-C6Wg8N6q.cjs} +1 -1
  23. package/components/{TxnStatusIcon-BDIhW6JH.js → TxnStatusIcon-Ce7Ex1wq.js} +1 -1
  24. package/components/{TxnStatusIcon-DYQHhyNY.js → TxnStatusIcon-DRzT6S8w.js} +1 -1
  25. package/components/{TxnTypeIcons-D9D6izSn.cjs → TxnTypeIcons-CVpufflm.cjs} +1 -1
  26. package/components/{TxnTypeIcons-BeG0aQMn.js → TxnTypeIcons-Clr-VhEG.js} +1 -1
  27. package/components/{TxnTypeIcons-DiPW6uRQ.js → TxnTypeIcons-qbvAOfEf.js} +1 -1
  28. package/es2015/transaction-history-page.cjs +1 -1
  29. package/es2015/transaction-history-page.js +1 -1
  30. package/esnext/transaction-history-page.js +1 -1
  31. package/package.json +1 -1
  32. package/stencil/{index-97d17652-D6HPqRtr.js → index-97d17652--F7PvMq9.js} +2 -2
  33. package/stencil/index-97d17652-BhLhk_xz.cjs +1 -0
  34. package/stencil/{index-97d17652-B0NIExnR.js → index-97d17652-CCFHkzJw.js} +2 -2
  35. package/stencil/{ui-image-DJSOH8ZL.cjs → ui-image-BaHsVAxH.cjs} +1 -1
  36. package/stencil/{ui-image-DfVgiF6v.js → ui-image-C7s6Uvn5.js} +1 -1
  37. package/stencil/{ui-image-BY8ZO6br.js → ui-image-CHeV8e9p.js} +1 -1
  38. package/stencil/{ui-image-b7b48fe5-BXmf73Ou.js → ui-image-b7b48fe5-ByRuJtdE.js} +1 -1
  39. package/stencil/{ui-image-b7b48fe5-c0NIgcTj.js → ui-image-b7b48fe5-D6iig_uN.js} +1 -1
  40. package/stencil/{ui-image-b7b48fe5-DaWM2RbJ.cjs → ui-image-b7b48fe5-DG83WzAo.cjs} +1 -1
  41. package/stencil/{ui-image_2-L-CYescb.js → ui-image_2-Bm97-wkj.js} +2 -2
  42. package/stencil/{ui-image_2-Cdo33umq.cjs → ui-image_2-DdFjzzNO.cjs} +1 -1
  43. package/stencil/{ui-image_2-DbQ7SENq.js → ui-image_2-qO3reSlr.js} +2 -2
  44. package/components/CashierHeader-Dpo4YUaY.cjs +0 -21
  45. package/stencil/index-97d17652-DNpK20ur.cjs +0 -1
@@ -1,89 +1,89 @@
1
- var Tn = Object.defineProperty, Bn = Object.defineProperties;
2
- var Sn = Object.getOwnPropertyDescriptors;
3
- var it = Object.getOwnPropertySymbols;
4
- var An = Object.prototype.hasOwnProperty, On = Object.prototype.propertyIsEnumerable;
5
- var Ae = (e, t, n) => t in e ? Tn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, st = (e, t) => {
6
- for (var n in t || (t = {}))
7
- An.call(t, n) && Ae(e, n, t[n]);
8
- if (it)
9
- for (var n of it(t))
10
- On.call(t, n) && Ae(e, n, t[n]);
1
+ var Br = Object.defineProperty, Sr = Object.defineProperties;
2
+ var Ar = Object.getOwnPropertyDescriptors;
3
+ var ot = Object.getOwnPropertySymbols;
4
+ var Or = Object.prototype.hasOwnProperty, Pr = Object.prototype.propertyIsEnumerable;
5
+ var Pe = (e, t, r) => t in e ? Br(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, at = (e, t) => {
6
+ for (var r in t || (t = {}))
7
+ Or.call(t, r) && Pe(e, r, t[r]);
8
+ if (ot)
9
+ for (var r of ot(t))
10
+ Pr.call(t, r) && Pe(e, r, t[r]);
11
11
  return e;
12
- }, ot = (e, t) => Bn(e, Sn(t));
13
- var S = (e, t, n) => (Ae(e, typeof t != "symbol" ? t + "" : t, n), n);
14
- var at = (e, t, n) => new Promise((r, i) => {
12
+ }, ut = (e, t) => Sr(e, Ar(t));
13
+ var S = (e, t, r) => (Pe(e, typeof t != "symbol" ? t + "" : t, r), r);
14
+ var ht = (e, t, r) => new Promise((n, i) => {
15
15
  var s = (l) => {
16
16
  try {
17
- o(n.next(l));
17
+ o(r.next(l));
18
18
  } catch (u) {
19
19
  i(u);
20
20
  }
21
21
  }, a = (l) => {
22
22
  try {
23
- o(n.throw(l));
23
+ o(r.throw(l));
24
24
  } catch (u) {
25
25
  i(u);
26
26
  }
27
- }, o = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(s, a);
28
- o((n = n.apply(e, t)).next());
27
+ }, o = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(s, a);
28
+ o((r = r.apply(e, t)).next());
29
29
  });
30
30
  function T() {
31
31
  }
32
- const Lt = (e) => e;
33
- function Pn(e, t) {
34
- for (const n in t)
35
- e[n] = t[n];
32
+ const It = (e) => e;
33
+ function Cr(e, t) {
34
+ for (const r in t)
35
+ e[r] = t[r];
36
36
  return (
37
37
  /** @type {T & S} */
38
38
  e
39
39
  );
40
40
  }
41
- function Nt(e) {
41
+ function Mt(e) {
42
42
  return e();
43
43
  }
44
- function ut() {
44
+ function lt() {
45
45
  return /* @__PURE__ */ Object.create(null);
46
46
  }
47
- function M(e) {
48
- e.forEach(Nt);
47
+ function $(e) {
48
+ e.forEach(Mt);
49
49
  }
50
- function oe(e) {
50
+ function ae(e) {
51
51
  return typeof e == "function";
52
52
  }
53
- function It(e, t) {
53
+ function $t(e, t) {
54
54
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
55
55
  }
56
- let le;
57
- function is(e, t) {
58
- return e === t ? !0 : (le || (le = document.createElement("a")), le.href = t, e === le.href);
56
+ let fe;
57
+ function os(e, t) {
58
+ return e === t ? !0 : (fe || (fe = document.createElement("a")), fe.href = t, e === fe.href);
59
59
  }
60
- function Cn(e) {
60
+ function Lr(e) {
61
61
  return Object.keys(e).length === 0;
62
62
  }
63
- function Mt(e, ...t) {
63
+ function Rt(e, ...t) {
64
64
  if (e == null) {
65
- for (const r of t)
66
- r(void 0);
65
+ for (const n of t)
66
+ n(void 0);
67
67
  return T;
68
68
  }
69
- const n = e.subscribe(...t);
70
- return n.unsubscribe ? () => n.unsubscribe() : n;
69
+ const r = e.subscribe(...t);
70
+ return r.unsubscribe ? () => r.unsubscribe() : r;
71
71
  }
72
- function Ln(e, t, n) {
73
- e.$$.on_destroy.push(Mt(t, n));
72
+ function Nr(e, t, r) {
73
+ e.$$.on_destroy.push(Rt(t, r));
74
74
  }
75
- function Oe(e, t, n, r) {
75
+ function Ce(e, t, r, n) {
76
76
  if (e) {
77
- const i = $t(e, t, n, r);
77
+ const i = Ut(e, t, r, n);
78
78
  return e[0](i);
79
79
  }
80
80
  }
81
- function $t(e, t, n, r) {
82
- return e[1] && r ? Pn(n.ctx.slice(), e[1](r(t))) : n.ctx;
81
+ function Ut(e, t, r, n) {
82
+ return e[1] && n ? Cr(r.ctx.slice(), e[1](n(t))) : r.ctx;
83
83
  }
84
- function Pe(e, t, n, r) {
85
- if (e[2] && r) {
86
- const i = e[2](r(n));
84
+ function Le(e, t, r, n) {
85
+ if (e[2] && n) {
86
+ const i = e[2](n(r));
87
87
  if (t.dirty === void 0)
88
88
  return i;
89
89
  if (typeof i == "object") {
@@ -96,54 +96,54 @@ function Pe(e, t, n, r) {
96
96
  }
97
97
  return t.dirty;
98
98
  }
99
- function Ce(e, t, n, r, i, s) {
99
+ function Ne(e, t, r, n, i, s) {
100
100
  if (i) {
101
- const a = $t(t, n, r, s);
101
+ const a = Ut(t, r, n, s);
102
102
  e.p(a, i);
103
103
  }
104
104
  }
105
- function Le(e) {
105
+ function Ie(e) {
106
106
  if (e.ctx.length > 32) {
107
- const t = [], n = e.ctx.length / 32;
108
- for (let r = 0; r < n; r++)
109
- t[r] = -1;
107
+ const t = [], r = e.ctx.length / 32;
108
+ for (let n = 0; n < r; n++)
109
+ t[n] = -1;
110
110
  return t;
111
111
  }
112
112
  return -1;
113
113
  }
114
- function ss(e) {
114
+ function as(e) {
115
115
  return e == null ? "" : e;
116
116
  }
117
- const Rt = typeof window != "undefined";
118
- let Ut = Rt ? () => window.performance.now() : () => Date.now(), Ye = Rt ? (e) => requestAnimationFrame(e) : T;
119
- const k = /* @__PURE__ */ new Set();
120
- function Dt(e) {
121
- k.forEach((t) => {
122
- t.c(e) || (k.delete(t), t.f());
123
- }), k.size !== 0 && Ye(Dt);
117
+ const Dt = typeof window != "undefined";
118
+ let Gt = Dt ? () => window.performance.now() : () => Date.now(), et = Dt ? (e) => requestAnimationFrame(e) : T;
119
+ const V = /* @__PURE__ */ new Set();
120
+ function Ft(e) {
121
+ V.forEach((t) => {
122
+ t.c(e) || (V.delete(t), t.f());
123
+ }), V.size !== 0 && et(Ft);
124
124
  }
125
- function Gt(e) {
125
+ function jt(e) {
126
126
  let t;
127
- return k.size === 0 && Ye(Dt), {
128
- promise: new Promise((n) => {
129
- k.add(t = { c: e, f: n });
127
+ return V.size === 0 && et(Ft), {
128
+ promise: new Promise((r) => {
129
+ V.add(t = { c: e, f: r });
130
130
  }),
131
131
  abort() {
132
- k.delete(t);
132
+ V.delete(t);
133
133
  }
134
134
  };
135
135
  }
136
- function be(e, t) {
136
+ function _e(e, t) {
137
137
  e.appendChild(t);
138
138
  }
139
- function Nn(e, t, n) {
140
- const r = Ke(e);
141
- if (!r.getElementById(t)) {
142
- const i = R("style");
143
- i.id = t, i.textContent = n, Ft(r, i);
139
+ function Ir(e, t, r) {
140
+ const n = tt(e);
141
+ if (!n.getElementById(t)) {
142
+ const i = U("style");
143
+ i.id = t, i.textContent = r, kt(n, i);
144
144
  }
145
145
  }
146
- function Ke(e) {
146
+ function tt(e) {
147
147
  if (!e)
148
148
  return document;
149
149
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -153,241 +153,241 @@ function Ke(e) {
153
153
  t
154
154
  ) : e.ownerDocument;
155
155
  }
156
- function In(e) {
157
- const t = R("style");
158
- return t.textContent = "/* empty */", Ft(Ke(e), t), t.sheet;
156
+ function Mr(e) {
157
+ const t = U("style");
158
+ return t.textContent = "/* empty */", kt(tt(e), t), t.sheet;
159
159
  }
160
- function Ft(e, t) {
161
- return be(
160
+ function kt(e, t) {
161
+ return _e(
162
162
  /** @type {Document} */
163
163
  e.head || e,
164
164
  t
165
165
  ), t.sheet;
166
166
  }
167
- function $(e, t, n) {
168
- e.insertBefore(t, n || null);
167
+ function R(e, t, r) {
168
+ e.insertBefore(t, r || null);
169
169
  }
170
- function C(e) {
170
+ function L(e) {
171
171
  e.parentNode && e.parentNode.removeChild(e);
172
172
  }
173
- function os(e, t) {
174
- for (let n = 0; n < e.length; n += 1)
175
- e[n] && e[n].d(t);
173
+ function us(e, t) {
174
+ for (let r = 0; r < e.length; r += 1)
175
+ e[r] && e[r].d(t);
176
176
  }
177
- function R(e) {
177
+ function U(e) {
178
178
  return document.createElement(e);
179
179
  }
180
- function as(e) {
180
+ function hs(e) {
181
181
  return document.createElementNS("http://www.w3.org/2000/svg", e);
182
182
  }
183
- function et(e) {
183
+ function rt(e) {
184
184
  return document.createTextNode(e);
185
185
  }
186
- function ht() {
187
- return et(" ");
186
+ function ft() {
187
+ return rt(" ");
188
188
  }
189
- function jt() {
190
- return et("");
189
+ function Vt() {
190
+ return rt("");
191
191
  }
192
- function kt(e, t, n, r) {
193
- return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
192
+ function Xt(e, t, r, n) {
193
+ return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
194
194
  }
195
- function Q(e, t, n) {
196
- n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
195
+ function q(e, t, r) {
196
+ r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
197
197
  }
198
- function us(e, t, n) {
199
- const r = t.toLowerCase();
200
- r in e ? e[r] = typeof e[r] == "boolean" && n === "" ? !0 : n : t in e ? e[t] = typeof e[t] == "boolean" && n === "" ? !0 : n : Q(e, t, n);
198
+ function ls(e, t, r) {
199
+ const n = t.toLowerCase();
200
+ n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : q(e, t, r);
201
201
  }
202
- function Mn(e) {
202
+ function $r(e) {
203
203
  return Array.from(e.childNodes);
204
204
  }
205
- function $n(e, t) {
205
+ function Rr(e, t) {
206
206
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
207
207
  t);
208
208
  }
209
- function hs(e, t, n, r) {
210
- n == null ? e.style.removeProperty(t) : e.style.setProperty(t, n, "");
209
+ function fs(e, t, r, n) {
210
+ r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
211
211
  }
212
- function ls(e, t, n) {
213
- e.classList.toggle(t, !!n);
212
+ function cs(e, t, r) {
213
+ e.classList.toggle(t, !!r);
214
214
  }
215
- function Rn(e, t, { bubbles: n = !1, cancelable: r = !1 } = {}) {
216
- return new CustomEvent(e, { detail: t, bubbles: n, cancelable: r });
215
+ function Ur(e, t, { bubbles: r = !1, cancelable: n = !1 } = {}) {
216
+ return new CustomEvent(e, { detail: t, bubbles: r, cancelable: n });
217
217
  }
218
- function Un(e) {
218
+ function Dr(e) {
219
219
  const t = {};
220
220
  return e.childNodes.forEach(
221
221
  /** @param {Element} node */
222
- (n) => {
223
- t[n.slot || "default"] = !0;
222
+ (r) => {
223
+ t[r.slot || "default"] = !0;
224
224
  }
225
225
  ), t;
226
226
  }
227
- const _e = /* @__PURE__ */ new Map();
228
- let ye = 0;
229
- function Dn(e) {
230
- let t = 5381, n = e.length;
231
- for (; n--; )
232
- t = (t << 5) - t ^ e.charCodeAt(n);
227
+ const ye = /* @__PURE__ */ new Map();
228
+ let Ee = 0;
229
+ function Gr(e) {
230
+ let t = 5381, r = e.length;
231
+ for (; r--; )
232
+ t = (t << 5) - t ^ e.charCodeAt(r);
233
233
  return t >>> 0;
234
234
  }
235
- function Gn(e, t) {
236
- const n = { stylesheet: In(t), rules: {} };
237
- return _e.set(e, n), n;
235
+ function Fr(e, t) {
236
+ const r = { stylesheet: Mr(t), rules: {} };
237
+ return ye.set(e, r), r;
238
238
  }
239
- function Vt(e, t, n, r, i, s, a, o = 0) {
240
- const l = 16.666 / r;
239
+ function zt(e, t, r, n, i, s, a, o = 0) {
240
+ const l = 16.666 / n;
241
241
  let u = `{
242
242
  `;
243
243
  for (let E = 0; E <= 1; E += l) {
244
- const v = t + (n - t) * s(E);
244
+ const v = t + (r - t) * s(E);
245
245
  u += E * 100 + `%{${a(v, 1 - v)}}
246
246
  `;
247
247
  }
248
- const h = u + `100% {${a(n, 1 - n)}}
249
- }`, f = `__svelte_${Dn(h)}_${o}`, m = Ke(e), { stylesheet: d, rules: c } = _e.get(m) || Gn(m, e);
250
- c[f] || (c[f] = !0, d.insertRule(`@keyframes ${f} ${h}`, d.cssRules.length));
251
- const p = e.style.animation || "";
252
- return e.style.animation = `${p ? `${p}, ` : ""}${f} ${r}ms linear ${i}ms 1 both`, ye += 1, f;
253
- }
254
- function Fe(e, t) {
255
- const n = (e.style.animation || "").split(", "), r = n.filter(
248
+ const h = u + `100% {${a(r, 1 - r)}}
249
+ }`, f = `__svelte_${Gr(h)}_${o}`, m = tt(e), { stylesheet: p, rules: c } = ye.get(m) || Fr(m, e);
250
+ c[f] || (c[f] = !0, p.insertRule(`@keyframes ${f} ${h}`, p.cssRules.length));
251
+ const d = e.style.animation || "";
252
+ return e.style.animation = `${d ? `${d}, ` : ""}${f} ${n}ms linear ${i}ms 1 both`, Ee += 1, f;
253
+ }
254
+ function ke(e, t) {
255
+ const r = (e.style.animation || "").split(", "), n = r.filter(
256
256
  t ? (s) => s.indexOf(t) < 0 : (s) => s.indexOf("__svelte") === -1
257
257
  // remove all Svelte animations
258
- ), i = n.length - r.length;
259
- i && (e.style.animation = r.join(", "), ye -= i, ye || Fn());
258
+ ), i = r.length - n.length;
259
+ i && (e.style.animation = n.join(", "), Ee -= i, Ee || jr());
260
260
  }
261
- function Fn() {
262
- Ye(() => {
263
- ye || (_e.forEach((e) => {
261
+ function jr() {
262
+ et(() => {
263
+ Ee || (ye.forEach((e) => {
264
264
  const { ownerNode: t } = e.stylesheet;
265
- t && C(t);
266
- }), _e.clear());
265
+ t && L(t);
266
+ }), ye.clear());
267
267
  });
268
268
  }
269
269
  let ne;
270
- function te(e) {
270
+ function re(e) {
271
271
  ne = e;
272
272
  }
273
- function jn() {
273
+ function kr() {
274
274
  if (!ne)
275
275
  throw new Error("Function called outside component initialization");
276
276
  return ne;
277
277
  }
278
- function kn(e) {
279
- jn().$$.on_mount.push(e);
278
+ function Vr(e) {
279
+ kr().$$.on_mount.push(e);
280
280
  }
281
- const j = [], je = [];
282
- let V = [];
283
- const lt = [], Xt = /* @__PURE__ */ Promise.resolve();
284
- let ke = !1;
285
- function zt() {
286
- ke || (ke = !0, Xt.then(O));
281
+ const k = [], Ve = [];
282
+ let X = [];
283
+ const ct = [], Wt = /* @__PURE__ */ Promise.resolve();
284
+ let Xe = !1;
285
+ function Zt() {
286
+ Xe || (Xe = !0, Wt.then(O));
287
287
  }
288
- function fs() {
289
- return zt(), Xt;
288
+ function ms() {
289
+ return Zt(), Wt;
290
290
  }
291
- function re(e) {
292
- V.push(e);
291
+ function ie(e) {
292
+ X.push(e);
293
293
  }
294
- const Ne = /* @__PURE__ */ new Set();
295
- let G = 0;
294
+ const Me = /* @__PURE__ */ new Set();
295
+ let F = 0;
296
296
  function O() {
297
- if (G !== 0)
297
+ if (F !== 0)
298
298
  return;
299
299
  const e = ne;
300
300
  do {
301
301
  try {
302
- for (; G < j.length; ) {
303
- const t = j[G];
304
- G++, te(t), Vn(t.$$);
302
+ for (; F < k.length; ) {
303
+ const t = k[F];
304
+ F++, re(t), Xr(t.$$);
305
305
  }
306
306
  } catch (t) {
307
- throw j.length = 0, G = 0, t;
307
+ throw k.length = 0, F = 0, t;
308
308
  }
309
- for (te(null), j.length = 0, G = 0; je.length; )
310
- je.pop()();
311
- for (let t = 0; t < V.length; t += 1) {
312
- const n = V[t];
313
- Ne.has(n) || (Ne.add(n), n());
309
+ for (re(null), k.length = 0, F = 0; Ve.length; )
310
+ Ve.pop()();
311
+ for (let t = 0; t < X.length; t += 1) {
312
+ const r = X[t];
313
+ Me.has(r) || (Me.add(r), r());
314
314
  }
315
- V.length = 0;
316
- } while (j.length);
317
- for (; lt.length; )
318
- lt.pop()();
319
- ke = !1, Ne.clear(), te(e);
315
+ X.length = 0;
316
+ } while (k.length);
317
+ for (; ct.length; )
318
+ ct.pop()();
319
+ Xe = !1, Me.clear(), re(e);
320
320
  }
321
- function Vn(e) {
321
+ function Xr(e) {
322
322
  if (e.fragment !== null) {
323
- e.update(), M(e.before_update);
323
+ e.update(), $(e.before_update);
324
324
  const t = e.dirty;
325
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(re);
325
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ie);
326
326
  }
327
327
  }
328
- function Xn(e) {
329
- const t = [], n = [];
330
- V.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), V = t;
328
+ function zr(e) {
329
+ const t = [], r = [];
330
+ X.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), X = t;
331
331
  }
332
- let Y;
333
- function Wt() {
334
- return Y || (Y = Promise.resolve(), Y.then(() => {
335
- Y = null;
336
- })), Y;
332
+ let K;
333
+ function Qt() {
334
+ return K || (K = Promise.resolve(), K.then(() => {
335
+ K = null;
336
+ })), K;
337
337
  }
338
- function xe(e, t, n) {
339
- e.dispatchEvent(Rn(`${t ? "intro" : "outro"}${n}`));
338
+ function xe(e, t, r) {
339
+ e.dispatchEvent(Ur(`${t ? "intro" : "outro"}${r}`));
340
340
  }
341
- const ce = /* @__PURE__ */ new Set();
342
- let L;
343
- function cs() {
344
- L = {
341
+ const me = /* @__PURE__ */ new Set();
342
+ let N;
343
+ function ps() {
344
+ N = {
345
345
  r: 0,
346
346
  c: [],
347
- p: L
347
+ p: N
348
348
  // parent group
349
349
  };
350
350
  }
351
- function ms() {
352
- L.r || M(L.c), L = L.p;
351
+ function ds() {
352
+ N.r || $(N.c), N = N.p;
353
353
  }
354
- function me(e, t) {
355
- e && e.i && (ce.delete(e), e.i(t));
354
+ function pe(e, t) {
355
+ e && e.i && (me.delete(e), e.i(t));
356
356
  }
357
- function Ie(e, t, n, r) {
357
+ function $e(e, t, r, n) {
358
358
  if (e && e.o) {
359
- if (ce.has(e))
359
+ if (me.has(e))
360
360
  return;
361
- ce.add(e), L.c.push(() => {
362
- ce.delete(e), r && (n && e.d(1), r());
361
+ me.add(e), N.c.push(() => {
362
+ me.delete(e), n && (r && e.d(1), n());
363
363
  }), e.o(t);
364
364
  } else
365
- r && r();
365
+ n && n();
366
366
  }
367
- const Zt = { duration: 0 };
368
- function ds(e, t, n) {
369
- const r = { direction: "in" };
370
- let i = t(e, n, r), s = !1, a, o, l = 0;
367
+ const qt = { duration: 0 };
368
+ function gs(e, t, r) {
369
+ const n = { direction: "in" };
370
+ let i = t(e, r, n), s = !1, a, o, l = 0;
371
371
  function u() {
372
- a && Fe(e, a);
372
+ a && ke(e, a);
373
373
  }
374
374
  function h() {
375
375
  const {
376
376
  delay: m = 0,
377
- duration: d = 300,
378
- easing: c = Lt,
379
- tick: p = T,
377
+ duration: p = 300,
378
+ easing: c = It,
379
+ tick: d = T,
380
380
  css: E
381
- } = i || Zt;
382
- E && (a = Vt(e, 0, 1, d, m, c, E, l++)), p(0, 1);
383
- const v = Ut() + m, B = v + d;
384
- o && o.abort(), s = !0, re(() => xe(e, !0, "start")), o = Gt((H) => {
381
+ } = i || qt;
382
+ E && (a = zt(e, 0, 1, p, m, c, E, l++)), d(0, 1);
383
+ const v = Gt() + m, B = v + p;
384
+ o && o.abort(), s = !0, ie(() => xe(e, !0, "start")), o = jt((H) => {
385
385
  if (s) {
386
386
  if (H >= B)
387
- return p(1, 0), xe(e, !0, "end"), u(), s = !1;
387
+ return d(1, 0), xe(e, !0, "end"), u(), s = !1;
388
388
  if (H >= v) {
389
- const A = c((H - v) / d);
390
- p(A, 1 - A);
389
+ const A = c((H - v) / p);
390
+ d(A, 1 - A);
391
391
  }
392
392
  }
393
393
  return s;
@@ -396,7 +396,7 @@ function ds(e, t, n) {
396
396
  let f = !1;
397
397
  return {
398
398
  start() {
399
- f || (f = !0, Fe(e), oe(i) ? (i = i(r), Wt().then(h)) : h());
399
+ f || (f = !0, ke(e), ae(i) ? (i = i(n), Qt().then(h)) : h());
400
400
  },
401
401
  invalidate() {
402
402
  f = !1;
@@ -406,66 +406,66 @@ function ds(e, t, n) {
406
406
  }
407
407
  };
408
408
  }
409
- function ps(e, t, n) {
410
- const r = { direction: "out" };
411
- let i = t(e, n, r), s = !0, a;
412
- const o = L;
409
+ function bs(e, t, r) {
410
+ const n = { direction: "out" };
411
+ let i = t(e, r, n), s = !0, a;
412
+ const o = N;
413
413
  o.r += 1;
414
414
  let l;
415
415
  function u() {
416
416
  const {
417
417
  delay: h = 0,
418
418
  duration: f = 300,
419
- easing: m = Lt,
420
- tick: d = T,
419
+ easing: m = It,
420
+ tick: p = T,
421
421
  css: c
422
- } = i || Zt;
423
- c && (a = Vt(e, 1, 0, f, h, m, c));
424
- const p = Ut() + h, E = p + f;
425
- re(() => xe(e, !1, "start")), "inert" in e && (l = /** @type {HTMLElement} */
426
- e.inert, e.inert = !0), Gt((v) => {
422
+ } = i || qt;
423
+ c && (a = zt(e, 1, 0, f, h, m, c));
424
+ const d = Gt() + h, E = d + f;
425
+ ie(() => xe(e, !1, "start")), "inert" in e && (l = /** @type {HTMLElement} */
426
+ e.inert, e.inert = !0), jt((v) => {
427
427
  if (s) {
428
428
  if (v >= E)
429
- return d(0, 1), xe(e, !1, "end"), --o.r || M(o.c), !1;
430
- if (v >= p) {
431
- const B = m((v - p) / f);
432
- d(1 - B, B);
429
+ return p(0, 1), xe(e, !1, "end"), --o.r || $(o.c), !1;
430
+ if (v >= d) {
431
+ const B = m((v - d) / f);
432
+ p(1 - B, B);
433
433
  }
434
434
  }
435
435
  return s;
436
436
  });
437
437
  }
438
- return oe(i) ? Wt().then(() => {
439
- i = i(r), u();
438
+ return ae(i) ? Qt().then(() => {
439
+ i = i(n), u();
440
440
  }) : u(), {
441
441
  end(h) {
442
- h && "inert" in e && (e.inert = l), h && i.tick && i.tick(1, 0), s && (a && Fe(e, a), s = !1);
442
+ h && "inert" in e && (e.inert = l), h && i.tick && i.tick(1, 0), s && (a && ke(e, a), s = !1);
443
443
  }
444
444
  };
445
445
  }
446
- function gs(e) {
446
+ function _s(e) {
447
447
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
448
448
  }
449
- function bs(e) {
449
+ function ys(e) {
450
450
  e && e.c();
451
451
  }
452
- function zn(e, t, n) {
453
- const { fragment: r, after_update: i } = e.$$;
454
- r && r.m(t, n), re(() => {
455
- const s = e.$$.on_mount.map(Nt).filter(oe);
456
- e.$$.on_destroy ? e.$$.on_destroy.push(...s) : M(s), e.$$.on_mount = [];
457
- }), i.forEach(re);
452
+ function Wr(e, t, r) {
453
+ const { fragment: n, after_update: i } = e.$$;
454
+ n && n.m(t, r), ie(() => {
455
+ const s = e.$$.on_mount.map(Mt).filter(ae);
456
+ e.$$.on_destroy ? e.$$.on_destroy.push(...s) : $(s), e.$$.on_mount = [];
457
+ }), i.forEach(ie);
458
458
  }
459
- function Wn(e, t) {
460
- const n = e.$$;
461
- n.fragment !== null && (Xn(n.after_update), M(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
459
+ function Zr(e, t) {
460
+ const r = e.$$;
461
+ r.fragment !== null && (zr(r.after_update), $(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
462
462
  }
463
- function Zn(e, t) {
464
- e.$$.dirty[0] === -1 && (j.push(e), zt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
463
+ function Qr(e, t) {
464
+ e.$$.dirty[0] === -1 && (k.push(e), Zt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
465
465
  }
466
- function Qn(e, t, n, r, i, s, a = null, o = [-1]) {
466
+ function qr(e, t, r, n, i, s, a = null, o = [-1]) {
467
467
  const l = ne;
468
- te(e);
468
+ re(e);
469
469
  const u = e.$$ = {
470
470
  fragment: null,
471
471
  ctx: [],
@@ -473,7 +473,7 @@ function Qn(e, t, n, r, i, s, a = null, o = [-1]) {
473
473
  props: s,
474
474
  update: T,
475
475
  not_equal: i,
476
- bound: ut(),
476
+ bound: lt(),
477
477
  // lifecycle
478
478
  on_mount: [],
479
479
  on_destroy: [],
@@ -482,29 +482,29 @@ function Qn(e, t, n, r, i, s, a = null, o = [-1]) {
482
482
  after_update: [],
483
483
  context: new Map(t.context || (l ? l.$$.context : [])),
484
484
  // everything else
485
- callbacks: ut(),
485
+ callbacks: lt(),
486
486
  dirty: o,
487
487
  skip_bound: !1,
488
488
  root: t.target || l.$$.root
489
489
  };
490
490
  a && a(u.root);
491
491
  let h = !1;
492
- if (u.ctx = n ? n(e, t.props || {}, (f, m, ...d) => {
493
- const c = d.length ? d[0] : m;
494
- return u.ctx && i(u.ctx[f], u.ctx[f] = c) && (!u.skip_bound && u.bound[f] && u.bound[f](c), h && Zn(e, f)), m;
495
- }) : [], u.update(), h = !0, M(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
492
+ if (u.ctx = r ? r(e, t.props || {}, (f, m, ...p) => {
493
+ const c = p.length ? p[0] : m;
494
+ return u.ctx && i(u.ctx[f], u.ctx[f] = c) && (!u.skip_bound && u.bound[f] && u.bound[f](c), h && Qr(e, f)), m;
495
+ }) : [], u.update(), h = !0, $(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
496
496
  if (t.hydrate) {
497
- const f = Mn(t.target);
498
- u.fragment && u.fragment.l(f), f.forEach(C);
497
+ const f = $r(t.target);
498
+ u.fragment && u.fragment.l(f), f.forEach(L);
499
499
  } else
500
500
  u.fragment && u.fragment.c();
501
- t.intro && me(e.$$.fragment), zn(e, t.target, t.anchor), O();
501
+ t.intro && pe(e.$$.fragment), Wr(e, t.target, t.anchor), O();
502
502
  }
503
- te(l);
503
+ re(l);
504
504
  }
505
- let Qt;
506
- typeof HTMLElement == "function" && (Qt = class extends HTMLElement {
507
- constructor(t, n, r) {
505
+ let Jt;
506
+ typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
507
+ constructor(t, r, n) {
508
508
  super();
509
509
  /** The Svelte component constructor */
510
510
  S(this, "$$ctor");
@@ -524,49 +524,49 @@ typeof HTMLElement == "function" && (Qt = class extends HTMLElement {
524
524
  S(this, "$$l", {});
525
525
  /** @type {Map<Function, Function>} Event listener unsubscribe functions */
526
526
  S(this, "$$l_u", /* @__PURE__ */ new Map());
527
- this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
527
+ this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
528
528
  }
529
- addEventListener(t, n, r) {
530
- if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(n), this.$$c) {
531
- const i = this.$$c.$on(t, n);
532
- this.$$l_u.set(n, i);
529
+ addEventListener(t, r, n) {
530
+ if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
531
+ const i = this.$$c.$on(t, r);
532
+ this.$$l_u.set(r, i);
533
533
  }
534
- super.addEventListener(t, n, r);
534
+ super.addEventListener(t, r, n);
535
535
  }
536
- removeEventListener(t, n, r) {
537
- if (super.removeEventListener(t, n, r), this.$$c) {
538
- const i = this.$$l_u.get(n);
539
- i && (i(), this.$$l_u.delete(n));
536
+ removeEventListener(t, r, n) {
537
+ if (super.removeEventListener(t, r, n), this.$$c) {
538
+ const i = this.$$l_u.get(r);
539
+ i && (i(), this.$$l_u.delete(r));
540
540
  }
541
541
  }
542
542
  connectedCallback() {
543
- return at(this, null, function* () {
543
+ return ht(this, null, function* () {
544
544
  if (this.$$cn = !0, !this.$$c) {
545
545
  let t = function(s) {
546
546
  return () => {
547
547
  let a;
548
548
  return {
549
549
  c: function() {
550
- a = R("slot"), s !== "default" && Q(a, "name", s);
550
+ a = U("slot"), s !== "default" && q(a, "name", s);
551
551
  },
552
552
  /**
553
553
  * @param {HTMLElement} target
554
554
  * @param {HTMLElement} [anchor]
555
555
  */
556
556
  m: function(u, h) {
557
- $(u, a, h);
557
+ R(u, a, h);
558
558
  },
559
559
  d: function(u) {
560
- u && C(a);
560
+ u && L(a);
561
561
  }
562
562
  };
563
563
  };
564
564
  };
565
565
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
566
566
  return;
567
- const n = {}, r = Un(this);
567
+ const r = {}, n = Dr(this);
568
568
  for (const s of this.$$s)
569
- s in r && (n[s] = [t(s)]);
569
+ s in n && (r[s] = [t(s)]);
570
570
  for (const s of this.attributes) {
571
571
  const a = this.$$g_p(s.name);
572
572
  a in this.$$d || (this.$$d[a] = de(a, s.value, this.$$p_d, "toProp"));
@@ -575,8 +575,8 @@ typeof HTMLElement == "function" && (Qt = class extends HTMLElement {
575
575
  !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
576
576
  this.$$c = new this.$$ctor({
577
577
  target: this.shadowRoot || this,
578
- props: ot(st({}, this.$$d), {
579
- $$slots: n,
578
+ props: ut(at({}, this.$$d), {
579
+ $$slots: r,
580
580
  $$scope: {
581
581
  ctx: []
582
582
  }
@@ -608,9 +608,9 @@ typeof HTMLElement == "function" && (Qt = class extends HTMLElement {
608
608
  }
609
609
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
610
610
  // and setting attributes through setAttribute etc, this is helpful
611
- attributeChangedCallback(t, n, r) {
611
+ attributeChangedCallback(t, r, n) {
612
612
  var i;
613
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = de(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
613
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = de(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
614
614
  }
615
615
  disconnectedCallback() {
616
616
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -619,16 +619,16 @@ typeof HTMLElement == "function" && (Qt = class extends HTMLElement {
619
619
  }
620
620
  $$g_p(t) {
621
621
  return Object.keys(this.$$p_d).find(
622
- (n) => this.$$p_d[n].attribute === t || !this.$$p_d[n].attribute && n.toLowerCase() === t
622
+ (r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
623
623
  ) || t;
624
624
  }
625
625
  });
626
- function de(e, t, n, r) {
626
+ function de(e, t, r, n) {
627
627
  var s;
628
- const i = (s = n[e]) == null ? void 0 : s.type;
629
- if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
628
+ const i = (s = r[e]) == null ? void 0 : s.type;
629
+ if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
630
630
  return t;
631
- if (r === "toAttribute")
631
+ if (n === "toAttribute")
632
632
  switch (i) {
633
633
  case "Object":
634
634
  case "Array":
@@ -653,10 +653,10 @@ function de(e, t, n, r) {
653
653
  return t;
654
654
  }
655
655
  }
656
- function qn(e, t, n, r, i, s) {
657
- let a = class extends Qt {
656
+ function Jr(e, t, r, n, i, s) {
657
+ let a = class extends Jt {
658
658
  constructor() {
659
- super(e, n, i), this.$$p_d = t;
659
+ super(e, r, i), this.$$p_d = t;
660
660
  }
661
661
  static get observedAttributes() {
662
662
  return Object.keys(t).map(
@@ -674,7 +674,7 @@ function qn(e, t, n, r, i, s) {
674
674
  l = de(o, l, t), this.$$d[o] = l, (u = this.$$c) == null || u.$set({ [o]: l });
675
675
  }
676
676
  });
677
- }), r.forEach((o) => {
677
+ }), n.forEach((o) => {
678
678
  Object.defineProperty(a.prototype, o, {
679
679
  get() {
680
680
  var l;
@@ -684,7 +684,7 @@ function qn(e, t, n, r, i, s) {
684
684
  }), e.element = /** @type {any} */
685
685
  a, a;
686
686
  }
687
- class Jn {
687
+ class Yr {
688
688
  constructor() {
689
689
  /**
690
690
  * ### PRIVATE API
@@ -705,7 +705,7 @@ class Jn {
705
705
  }
706
706
  /** @returns {void} */
707
707
  $destroy() {
708
- Wn(this, 1), this.$destroy = T;
708
+ Zr(this, 1), this.$destroy = T;
709
709
  }
710
710
  /**
711
711
  * @template {Extract<keyof Events, string>} K
@@ -713,13 +713,13 @@ class Jn {
713
713
  * @param {((e: Events[K]) => void) | null | undefined} callback
714
714
  * @returns {() => void}
715
715
  */
716
- $on(t, n) {
717
- if (!oe(n))
716
+ $on(t, r) {
717
+ if (!ae(r))
718
718
  return T;
719
- const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
720
- return r.push(n), () => {
721
- const i = r.indexOf(n);
722
- i !== -1 && r.splice(i, 1);
719
+ const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
720
+ return n.push(r), () => {
721
+ const i = n.indexOf(r);
722
+ i !== -1 && n.splice(i, 1);
723
723
  };
724
724
  }
725
725
  /**
@@ -727,52 +727,52 @@ class Jn {
727
727
  * @returns {void}
728
728
  */
729
729
  $set(t) {
730
- this.$$set && !Cn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
730
+ this.$$set && !Lr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
731
731
  }
732
732
  }
733
- const Yn = "4";
734
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Yn);
735
- function Kn(e, t) {
733
+ const Kr = "4";
734
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Kr);
735
+ function en(e, t) {
736
736
  if (e) {
737
- const n = document.createElement("style");
738
- n.innerHTML = t, e.appendChild(n);
737
+ const r = document.createElement("style");
738
+ r.innerHTML = t, e.appendChild(r);
739
739
  }
740
740
  }
741
- function er(e, t) {
742
- const n = new URL(t);
743
- fetch(n.href).then((r) => r.text()).then((r) => {
741
+ function tn(e, t) {
742
+ const r = new URL(t);
743
+ fetch(r.href).then((n) => n.text()).then((n) => {
744
744
  const i = document.createElement("style");
745
- i.innerHTML = r, e && e.appendChild(i);
746
- }).catch((r) => {
747
- console.error("There was an error while trying to load client styling from URL", r);
745
+ i.innerHTML = n, e && e.appendChild(i);
746
+ }).catch((n) => {
747
+ console.error("There was an error while trying to load client styling from URL", n);
748
748
  });
749
749
  }
750
- function tr(e, t, n) {
750
+ function rn(e, t, r) {
751
751
  if (window.emMessageBus) {
752
- const r = document.createElement("style");
752
+ const n = document.createElement("style");
753
753
  window.emMessageBus.subscribe(t, (i) => {
754
- r.innerHTML = i, e && e.appendChild(r);
754
+ n.innerHTML = i, e && e.appendChild(n);
755
755
  });
756
756
  }
757
757
  }
758
- const F = [];
759
- function nr(e, t) {
758
+ const j = [];
759
+ function nn(e, t) {
760
760
  return {
761
- subscribe: we(e, t).subscribe
761
+ subscribe: Be(e, t).subscribe
762
762
  };
763
763
  }
764
- function we(e, t = T) {
765
- let n;
766
- const r = /* @__PURE__ */ new Set();
764
+ function Be(e, t = T) {
765
+ let r;
766
+ const n = /* @__PURE__ */ new Set();
767
767
  function i(o) {
768
- if (It(e, o) && (e = o, n)) {
769
- const l = !F.length;
770
- for (const u of r)
771
- u[1](), F.push(u, e);
768
+ if ($t(e, o) && (e = o, r)) {
769
+ const l = !j.length;
770
+ for (const u of n)
771
+ u[1](), j.push(u, e);
772
772
  if (l) {
773
- for (let u = 0; u < F.length; u += 2)
774
- F[u][0](F[u + 1]);
775
- F.length = 0;
773
+ for (let u = 0; u < j.length; u += 2)
774
+ j[u][0](j[u + 1]);
775
+ j.length = 0;
776
776
  }
777
777
  }
778
778
  }
@@ -781,18 +781,18 @@ function we(e, t = T) {
781
781
  }
782
782
  function a(o, l = T) {
783
783
  const u = [o, l];
784
- return r.add(u), r.size === 1 && (n = t(i, s) || T), o(e), () => {
785
- r.delete(u), r.size === 0 && n && (n(), n = null);
784
+ return n.add(u), n.size === 1 && (r = t(i, s) || T), o(e), () => {
785
+ n.delete(u), n.size === 0 && r && (r(), r = null);
786
786
  };
787
787
  }
788
788
  return { set: i, update: s, subscribe: a };
789
789
  }
790
- function q(e, t, n) {
791
- const r = !Array.isArray(e), i = r ? [e] : e;
790
+ function J(e, t, r) {
791
+ const n = !Array.isArray(e), i = n ? [e] : e;
792
792
  if (!i.every(Boolean))
793
793
  throw new Error("derived() expects stores as input, got a falsy value");
794
794
  const s = t.length < 2;
795
- return nr(n, (a, o) => {
795
+ return nn(r, (a, o) => {
796
796
  let l = !1;
797
797
  const u = [];
798
798
  let h = 0, f = T;
@@ -800,186 +800,172 @@ function q(e, t, n) {
800
800
  if (h)
801
801
  return;
802
802
  f();
803
- const c = t(r ? u[0] : u, a, o);
804
- s ? a(c) : f = oe(c) ? c : T;
805
- }, d = i.map(
806
- (c, p) => Mt(
803
+ const c = t(n ? u[0] : u, a, o);
804
+ s ? a(c) : f = ae(c) ? c : T;
805
+ }, p = i.map(
806
+ (c, d) => Rt(
807
807
  c,
808
808
  (E) => {
809
- u[p] = E, h &= ~(1 << p), l && m();
809
+ u[d] = E, h &= ~(1 << d), l && m();
810
810
  },
811
811
  () => {
812
- h |= 1 << p;
812
+ h |= 1 << d;
813
813
  }
814
814
  )
815
815
  );
816
816
  return l = !0, m(), function() {
817
- M(d), f(), l = !1;
817
+ $(p), f(), l = !1;
818
818
  };
819
819
  });
820
820
  }
821
- var _s = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
822
- function rr(e) {
821
+ var Es = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
822
+ function sn(e) {
823
823
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
824
824
  }
825
- var ir = function(t) {
826
- return sr(t) && !or(t);
825
+ var on = function(t) {
826
+ return an(t) && !un(t);
827
827
  };
828
- function sr(e) {
828
+ function an(e) {
829
829
  return !!e && typeof e == "object";
830
830
  }
831
- function or(e) {
831
+ function un(e) {
832
832
  var t = Object.prototype.toString.call(e);
833
- return t === "[object RegExp]" || t === "[object Date]" || hr(e);
833
+ return t === "[object RegExp]" || t === "[object Date]" || fn(e);
834
834
  }
835
- var ar = typeof Symbol == "function" && Symbol.for, ur = ar ? Symbol.for("react.element") : 60103;
836
- function hr(e) {
837
- return e.$$typeof === ur;
835
+ var hn = typeof Symbol == "function" && Symbol.for, ln = hn ? Symbol.for("react.element") : 60103;
836
+ function fn(e) {
837
+ return e.$$typeof === ln;
838
838
  }
839
- function lr(e) {
839
+ function cn(e) {
840
840
  return Array.isArray(e) ? [] : {};
841
841
  }
842
- function ie(e, t) {
843
- return t.clone !== !1 && t.isMergeableObject(e) ? X(lr(e), e, t) : e;
842
+ function se(e, t) {
843
+ return t.clone !== !1 && t.isMergeableObject(e) ? z(cn(e), e, t) : e;
844
844
  }
845
- function fr(e, t, n) {
846
- return e.concat(t).map(function(r) {
847
- return ie(r, n);
845
+ function mn(e, t, r) {
846
+ return e.concat(t).map(function(n) {
847
+ return se(n, r);
848
848
  });
849
849
  }
850
- function cr(e, t) {
850
+ function pn(e, t) {
851
851
  if (!t.customMerge)
852
- return X;
853
- var n = t.customMerge(e);
854
- return typeof n == "function" ? n : X;
852
+ return z;
853
+ var r = t.customMerge(e);
854
+ return typeof r == "function" ? r : z;
855
855
  }
856
- function mr(e) {
856
+ function dn(e) {
857
857
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
858
858
  return Object.propertyIsEnumerable.call(e, t);
859
859
  }) : [];
860
860
  }
861
- function ft(e) {
862
- return Object.keys(e).concat(mr(e));
861
+ function mt(e) {
862
+ return Object.keys(e).concat(dn(e));
863
863
  }
864
- function qt(e, t) {
864
+ function Yt(e, t) {
865
865
  try {
866
866
  return t in e;
867
- } catch (n) {
867
+ } catch (r) {
868
868
  return !1;
869
869
  }
870
870
  }
871
- function dr(e, t) {
872
- return qt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
871
+ function gn(e, t) {
872
+ return Yt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
873
873
  }
874
- function pr(e, t, n) {
875
- var r = {};
876
- return n.isMergeableObject(e) && ft(e).forEach(function(i) {
877
- r[i] = ie(e[i], n);
878
- }), ft(t).forEach(function(i) {
879
- dr(e, i) || (qt(e, i) && n.isMergeableObject(t[i]) ? r[i] = cr(i, n)(e[i], t[i], n) : r[i] = ie(t[i], n));
880
- }), r;
881
- }
882
- function X(e, t, n) {
883
- n = n || {}, n.arrayMerge = n.arrayMerge || fr, n.isMergeableObject = n.isMergeableObject || ir, n.cloneUnlessOtherwiseSpecified = ie;
884
- var r = Array.isArray(t), i = Array.isArray(e), s = r === i;
885
- return s ? r ? n.arrayMerge(e, t, n) : pr(e, t, n) : ie(t, n);
886
- }
887
- X.all = function(t, n) {
874
+ function bn(e, t, r) {
875
+ var n = {};
876
+ return r.isMergeableObject(e) && mt(e).forEach(function(i) {
877
+ n[i] = se(e[i], r);
878
+ }), mt(t).forEach(function(i) {
879
+ gn(e, i) || (Yt(e, i) && r.isMergeableObject(t[i]) ? n[i] = pn(i, r)(e[i], t[i], r) : n[i] = se(t[i], r));
880
+ }), n;
881
+ }
882
+ function z(e, t, r) {
883
+ r = r || {}, r.arrayMerge = r.arrayMerge || mn, r.isMergeableObject = r.isMergeableObject || on, r.cloneUnlessOtherwiseSpecified = se;
884
+ var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
885
+ return s ? n ? r.arrayMerge(e, t, r) : bn(e, t, r) : se(t, r);
886
+ }
887
+ z.all = function(t, r) {
888
888
  if (!Array.isArray(t))
889
889
  throw new Error("first argument should be an array");
890
- return t.reduce(function(r, i) {
891
- return X(r, i, n);
890
+ return t.reduce(function(n, i) {
891
+ return z(n, i, r);
892
892
  }, {});
893
893
  };
894
- var gr = X, br = gr;
895
- const _r = /* @__PURE__ */ rr(br);
896
- /*! *****************************************************************************
897
- Copyright (c) Microsoft Corporation.
898
-
899
- Permission to use, copy, modify, and/or distribute this software for any
900
- purpose with or without fee is hereby granted.
901
-
902
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
903
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
904
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
905
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
906
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
907
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
908
- PERFORMANCE OF THIS SOFTWARE.
909
- ***************************************************************************** */
910
- var Ve = function(e, t) {
911
- return Ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
912
- n.__proto__ = r;
913
- } || function(n, r) {
914
- for (var i in r)
915
- Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
916
- }, Ve(e, t);
894
+ var _n = z, yn = _n;
895
+ const En = /* @__PURE__ */ sn(yn);
896
+ var ze = function(e, t) {
897
+ return ze = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
898
+ r.__proto__ = n;
899
+ } || function(r, n) {
900
+ for (var i in n)
901
+ Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
902
+ }, ze(e, t);
917
903
  };
918
- function Te(e, t) {
904
+ function Se(e, t) {
919
905
  if (typeof t != "function" && t !== null)
920
906
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
921
- Ve(e, t);
922
- function n() {
907
+ ze(e, t);
908
+ function r() {
923
909
  this.constructor = e;
924
910
  }
925
- e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
926
- }
927
- var y = function() {
928
- return y = Object.assign || function(t) {
929
- for (var n, r = 1, i = arguments.length; r < i; r++) {
930
- n = arguments[r];
931
- for (var s in n)
932
- Object.prototype.hasOwnProperty.call(n, s) && (t[s] = n[s]);
911
+ e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
912
+ }
913
+ var P = function() {
914
+ return P = Object.assign || function(t) {
915
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
916
+ r = arguments[n];
917
+ for (var s in r)
918
+ Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
933
919
  }
934
920
  return t;
935
- }, y.apply(this, arguments);
921
+ }, P.apply(this, arguments);
936
922
  };
937
- function yr(e, t) {
938
- var n = {};
939
- for (var r in e)
940
- Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
923
+ function xn(e, t) {
924
+ var r = {};
925
+ for (var n in e)
926
+ Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
941
927
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
942
- for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
943
- t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
944
- return n;
928
+ for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
929
+ t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
930
+ return r;
945
931
  }
946
- function Me(e, t, n) {
947
- if (arguments.length === 2)
948
- for (var r = 0, i = t.length, s; r < i; r++)
949
- (s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
950
- return e.concat(s || t);
932
+ function Re(e, t, r) {
933
+ if (r || arguments.length === 2)
934
+ for (var n = 0, i = t.length, s; n < i; n++)
935
+ (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
936
+ return e.concat(s || Array.prototype.slice.call(t));
951
937
  }
952
- function $e(e, t) {
953
- var n = t && t.cache ? t.cache : Br, r = t && t.serializer ? t.serializer : wr, i = t && t.strategy ? t.strategy : vr;
938
+ function Ue(e, t) {
939
+ var r = t && t.cache ? t.cache : An, n = t && t.serializer ? t.serializer : Bn, i = t && t.strategy ? t.strategy : wn;
954
940
  return i(e, {
955
- cache: n,
956
- serializer: r
941
+ cache: r,
942
+ serializer: n
957
943
  });
958
944
  }
959
- function xr(e) {
945
+ function vn(e) {
960
946
  return e == null || typeof e == "number" || typeof e == "boolean";
961
947
  }
962
- function Er(e, t, n, r) {
963
- var i = xr(r) ? r : n(r), s = t.get(i);
964
- return typeof s == "undefined" && (s = e.call(this, r), t.set(i, s)), s;
948
+ function Hn(e, t, r, n) {
949
+ var i = vn(n) ? n : r(n), s = t.get(i);
950
+ return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
965
951
  }
966
- function Jt(e, t, n) {
967
- var r = Array.prototype.slice.call(arguments, 3), i = n(r), s = t.get(i);
968
- return typeof s == "undefined" && (s = e.apply(this, r), t.set(i, s)), s;
952
+ function Kt(e, t, r) {
953
+ var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
954
+ return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
969
955
  }
970
- function Yt(e, t, n, r, i) {
971
- return n.bind(t, e, r, i);
956
+ function er(e, t, r, n, i) {
957
+ return r.bind(t, e, n, i);
972
958
  }
973
- function vr(e, t) {
974
- var n = e.length === 1 ? Er : Jt;
975
- return Yt(e, this, n, t.cache.create(), t.serializer);
959
+ function wn(e, t) {
960
+ var r = e.length === 1 ? Hn : Kt;
961
+ return er(e, this, r, t.cache.create(), t.serializer);
976
962
  }
977
- function Hr(e, t) {
978
- return Yt(e, this, Jt, t.cache.create(), t.serializer);
963
+ function Tn(e, t) {
964
+ return er(e, this, Kt, t.cache.create(), t.serializer);
979
965
  }
980
- var wr = function() {
966
+ var Bn = function() {
981
967
  return JSON.stringify(arguments);
982
- }, Tr = (
968
+ }, Sn = (
983
969
  /** @class */
984
970
  function() {
985
971
  function e() {
@@ -987,72 +973,82 @@ var wr = function() {
987
973
  }
988
974
  return e.prototype.get = function(t) {
989
975
  return this.cache[t];
990
- }, e.prototype.set = function(t, n) {
991
- this.cache[t] = n;
976
+ }, e.prototype.set = function(t, r) {
977
+ this.cache[t] = r;
992
978
  }, e;
993
979
  }()
994
- ), Br = {
980
+ ), An = {
995
981
  create: function() {
996
- return new Tr();
982
+ return new Sn();
997
983
  }
998
- }, Re = {
999
- variadic: Hr
1000
- }, g;
984
+ }, De = {
985
+ variadic: Tn
986
+ }, ve = function() {
987
+ return ve = Object.assign || function(t) {
988
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
989
+ r = arguments[n];
990
+ for (var s in r)
991
+ Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
992
+ }
993
+ return t;
994
+ }, ve.apply(this, arguments);
995
+ };
996
+ var g;
1001
997
  (function(e) {
1002
998
  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";
1003
999
  })(g || (g = {}));
1004
- var x;
1000
+ var y;
1005
1001
  (function(e) {
1006
1002
  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";
1007
- })(x || (x = {}));
1008
- var z;
1003
+ })(y || (y = {}));
1004
+ var W;
1009
1005
  (function(e) {
1010
1006
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1011
- })(z || (z = {}));
1012
- function ct(e) {
1013
- return e.type === x.literal;
1007
+ })(W || (W = {}));
1008
+ function pt(e) {
1009
+ return e.type === y.literal;
1014
1010
  }
1015
- function Sr(e) {
1016
- return e.type === x.argument;
1011
+ function On(e) {
1012
+ return e.type === y.argument;
1017
1013
  }
1018
- function Kt(e) {
1019
- return e.type === x.number;
1014
+ function tr(e) {
1015
+ return e.type === y.number;
1020
1016
  }
1021
- function en(e) {
1022
- return e.type === x.date;
1017
+ function rr(e) {
1018
+ return e.type === y.date;
1023
1019
  }
1024
- function tn(e) {
1025
- return e.type === x.time;
1020
+ function nr(e) {
1021
+ return e.type === y.time;
1026
1022
  }
1027
- function nn(e) {
1028
- return e.type === x.select;
1023
+ function ir(e) {
1024
+ return e.type === y.select;
1029
1025
  }
1030
- function rn(e) {
1031
- return e.type === x.plural;
1026
+ function sr(e) {
1027
+ return e.type === y.plural;
1032
1028
  }
1033
- function Ar(e) {
1034
- return e.type === x.pound;
1029
+ function Pn(e) {
1030
+ return e.type === y.pound;
1035
1031
  }
1036
- function sn(e) {
1037
- return e.type === x.tag;
1032
+ function or(e) {
1033
+ return e.type === y.tag;
1038
1034
  }
1039
- function on(e) {
1040
- return !!(e && typeof e == "object" && e.type === z.number);
1035
+ function ar(e) {
1036
+ return !!(e && typeof e == "object" && e.type === W.number);
1041
1037
  }
1042
- function Xe(e) {
1043
- return !!(e && typeof e == "object" && e.type === z.dateTime);
1038
+ function We(e) {
1039
+ return !!(e && typeof e == "object" && e.type === W.dateTime);
1044
1040
  }
1045
- var an = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Or = /(?:[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;
1046
- function Pr(e) {
1041
+ var ur = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Cn = /(?:[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;
1042
+ function Ln(e) {
1047
1043
  var t = {};
1048
- return e.replace(Or, function(n) {
1049
- var r = n.length;
1050
- switch (n[0]) {
1044
+ return e.replace(Cn, function(r) {
1045
+ var n = r.length;
1046
+ switch (r[0]) {
1051
1047
  case "G":
1052
- t.era = r === 4 ? "long" : r === 5 ? "narrow" : "short";
1048
+ t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
1053
1049
  break;
1054
1050
  case "y":
1055
- t.year = r === 2 ? "2-digit" : "numeric";
1051
+ t.year = n === 2 ? "2-digit" : "numeric";
1056
1052
  break;
1057
1053
  case "Y":
1058
1054
  case "u":
@@ -1064,30 +1060,30 @@ function Pr(e) {
1064
1060
  throw new RangeError("`q/Q` (quarter) patterns are not supported");
1065
1061
  case "M":
1066
1062
  case "L":
1067
- t.month = ["numeric", "2-digit", "short", "long", "narrow"][r - 1];
1063
+ t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
1068
1064
  break;
1069
1065
  case "w":
1070
1066
  case "W":
1071
1067
  throw new RangeError("`w/W` (week) patterns are not supported");
1072
1068
  case "d":
1073
- t.day = ["numeric", "2-digit"][r - 1];
1069
+ t.day = ["numeric", "2-digit"][n - 1];
1074
1070
  break;
1075
1071
  case "D":
1076
1072
  case "F":
1077
1073
  case "g":
1078
1074
  throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
1079
1075
  case "E":
1080
- t.weekday = r === 4 ? "long" : r === 5 ? "narrow" : "short";
1076
+ t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
1081
1077
  break;
1082
1078
  case "e":
1083
- if (r < 4)
1079
+ if (n < 4)
1084
1080
  throw new RangeError("`e..eee` (weekday) patterns are not supported");
1085
- t.weekday = ["short", "long", "narrow", "short"][r - 4];
1081
+ t.weekday = ["short", "long", "narrow", "short"][n - 4];
1086
1082
  break;
1087
1083
  case "c":
1088
- if (r < 4)
1084
+ if (n < 4)
1089
1085
  throw new RangeError("`c..ccc` (weekday) patterns are not supported");
1090
- t.weekday = ["short", "long", "narrow", "short"][r - 4];
1086
+ t.weekday = ["short", "long", "narrow", "short"][n - 4];
1091
1087
  break;
1092
1088
  case "a":
1093
1089
  t.hour12 = !0;
@@ -1096,32 +1092,32 @@ function Pr(e) {
1096
1092
  case "B":
1097
1093
  throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
1098
1094
  case "h":
1099
- t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][r - 1];
1095
+ t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
1100
1096
  break;
1101
1097
  case "H":
1102
- t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][r - 1];
1098
+ t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
1103
1099
  break;
1104
1100
  case "K":
1105
- t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][r - 1];
1101
+ t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
1106
1102
  break;
1107
1103
  case "k":
1108
- t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][r - 1];
1104
+ t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
1109
1105
  break;
1110
1106
  case "j":
1111
1107
  case "J":
1112
1108
  case "C":
1113
1109
  throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
1114
1110
  case "m":
1115
- t.minute = ["numeric", "2-digit"][r - 1];
1111
+ t.minute = ["numeric", "2-digit"][n - 1];
1116
1112
  break;
1117
1113
  case "s":
1118
- t.second = ["numeric", "2-digit"][r - 1];
1114
+ t.second = ["numeric", "2-digit"][n - 1];
1119
1115
  break;
1120
1116
  case "S":
1121
1117
  case "A":
1122
1118
  throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
1123
1119
  case "z":
1124
- t.timeZoneName = r < 4 ? "short" : "long";
1120
+ t.timeZoneName = n < 4 ? "short" : "long";
1125
1121
  break;
1126
1122
  case "Z":
1127
1123
  case "O":
@@ -1134,14 +1130,24 @@ function Pr(e) {
1134
1130
  return "";
1135
1131
  }), t;
1136
1132
  }
1137
- var Cr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1138
- function Lr(e) {
1133
+ var x = function() {
1134
+ return x = Object.assign || function(t) {
1135
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
1136
+ r = arguments[n];
1137
+ for (var s in r)
1138
+ Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
1139
+ }
1140
+ return t;
1141
+ }, x.apply(this, arguments);
1142
+ };
1143
+ var Nn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1144
+ function In(e) {
1139
1145
  if (e.length === 0)
1140
1146
  throw new Error("Number skeleton cannot be empty");
1141
- for (var t = e.split(Cr).filter(function(m) {
1147
+ for (var t = e.split(Nn).filter(function(m) {
1142
1148
  return m.length > 0;
1143
- }), n = [], r = 0, i = t; r < i.length; r++) {
1144
- var s = i[r], a = s.split("/");
1149
+ }), r = [], n = 0, i = t; n < i.length; n++) {
1150
+ var s = i[n], a = s.split("/");
1145
1151
  if (a.length === 0)
1146
1152
  throw new Error("Invalid number skeleton");
1147
1153
  for (var o = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
@@ -1149,21 +1155,21 @@ function Lr(e) {
1149
1155
  if (f.length === 0)
1150
1156
  throw new Error("Invalid number skeleton");
1151
1157
  }
1152
- n.push({ stem: o, options: l });
1158
+ r.push({ stem: o, options: l });
1153
1159
  }
1154
- return n;
1160
+ return r;
1155
1161
  }
1156
- function Nr(e) {
1162
+ function Mn(e) {
1157
1163
  return e.replace(/^(.*?)-/, "");
1158
1164
  }
1159
- var mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, un = /^(@+)?(\+|#+)?[rs]?$/g, Ir = /(\*)(0+)|(#+)(0+)|(0+)/g, hn = /^(0+)$/;
1160
- function dt(e) {
1165
+ var dt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, hr = /^(@+)?(\+|#+)?[rs]?$/g, $n = /(\*)(0+)|(#+)(0+)|(0+)/g, lr = /^(0+)$/;
1166
+ function gt(e) {
1161
1167
  var t = {};
1162
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(un, function(n, r, i) {
1163
- 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)), "";
1168
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(hr, function(r, n, i) {
1169
+ 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)), "";
1164
1170
  }), t;
1165
1171
  }
1166
- function ln(e) {
1172
+ function fr(e) {
1167
1173
  switch (e) {
1168
1174
  case "sign-auto":
1169
1175
  return {
@@ -1203,27 +1209,27 @@ function ln(e) {
1203
1209
  };
1204
1210
  }
1205
1211
  }
1206
- function Mr(e) {
1212
+ function Rn(e) {
1207
1213
  var t;
1208
1214
  if (e[0] === "E" && e[1] === "E" ? (t = {
1209
1215
  notation: "engineering"
1210
1216
  }, e = e.slice(2)) : e[0] === "E" && (t = {
1211
1217
  notation: "scientific"
1212
1218
  }, e = e.slice(1)), t) {
1213
- var n = e.slice(0, 2);
1214
- if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !hn.test(e))
1219
+ var r = e.slice(0, 2);
1220
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !lr.test(e))
1215
1221
  throw new Error("Malformed concise eng/scientific notation");
1216
1222
  t.minimumIntegerDigits = e.length;
1217
1223
  }
1218
1224
  return t;
1219
1225
  }
1220
- function pt(e) {
1221
- var t = {}, n = ln(e);
1222
- return n || t;
1226
+ function bt(e) {
1227
+ var t = {}, r = fr(e);
1228
+ return r || t;
1223
1229
  }
1224
- function $r(e) {
1225
- for (var t = {}, n = 0, r = e; n < r.length; n++) {
1226
- var i = r[n];
1230
+ function Un(e) {
1231
+ for (var t = {}, r = 0, n = e; r < n.length; r++) {
1232
+ var i = n[r];
1227
1233
  switch (i.stem) {
1228
1234
  case "percent":
1229
1235
  case "%":
@@ -1245,7 +1251,7 @@ function $r(e) {
1245
1251
  continue;
1246
1252
  case "measure-unit":
1247
1253
  case "unit":
1248
- t.style = "unit", t.unit = Nr(i.options[0]);
1254
+ t.style = "unit", t.unit = Mn(i.options[0]);
1249
1255
  continue;
1250
1256
  case "compact-short":
1251
1257
  case "K":
@@ -1256,13 +1262,13 @@ function $r(e) {
1256
1262
  t.notation = "compact", t.compactDisplay = "long";
1257
1263
  continue;
1258
1264
  case "scientific":
1259
- t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1260
- return y(y({}, l), pt(u));
1265
+ t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1266
+ return x(x({}, l), bt(u));
1261
1267
  }, {}));
1262
1268
  continue;
1263
1269
  case "engineering":
1264
- t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1265
- return y(y({}, l), pt(u));
1270
+ t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1271
+ return x(x({}, l), bt(u));
1266
1272
  }, {}));
1267
1273
  continue;
1268
1274
  case "notation-simple":
@@ -1307,45 +1313,45 @@ function $r(e) {
1307
1313
  case "integer-width":
1308
1314
  if (i.options.length > 1)
1309
1315
  throw new RangeError("integer-width stems only accept a single optional option");
1310
- i.options[0].replace(Ir, function(l, u, h, f, m, d) {
1316
+ i.options[0].replace($n, function(l, u, h, f, m, p) {
1311
1317
  if (u)
1312
1318
  t.minimumIntegerDigits = h.length;
1313
1319
  else {
1314
1320
  if (f && m)
1315
1321
  throw new Error("We currently do not support maximum integer digits");
1316
- if (d)
1322
+ if (p)
1317
1323
  throw new Error("We currently do not support exact integer digits");
1318
1324
  }
1319
1325
  return "";
1320
1326
  });
1321
1327
  continue;
1322
1328
  }
1323
- if (hn.test(i.stem)) {
1329
+ if (lr.test(i.stem)) {
1324
1330
  t.minimumIntegerDigits = i.stem.length;
1325
1331
  continue;
1326
1332
  }
1327
- if (mt.test(i.stem)) {
1333
+ if (dt.test(i.stem)) {
1328
1334
  if (i.options.length > 1)
1329
1335
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1330
- i.stem.replace(mt, function(l, u, h, f, m, d) {
1331
- return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : m && d ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1336
+ i.stem.replace(dt, function(l, u, h, f, m, p) {
1337
+ return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : m && p ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1332
1338
  });
1333
1339
  var s = i.options[0];
1334
- s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t), dt(s)));
1340
+ s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t), gt(s)));
1335
1341
  continue;
1336
1342
  }
1337
- if (un.test(i.stem)) {
1338
- t = y(y({}, t), dt(i.stem));
1343
+ if (hr.test(i.stem)) {
1344
+ t = x(x({}, t), gt(i.stem));
1339
1345
  continue;
1340
1346
  }
1341
- var a = ln(i.stem);
1342
- a && (t = y(y({}, t), a));
1343
- var o = Mr(i.stem);
1344
- o && (t = y(y({}, t), o));
1347
+ var a = fr(i.stem);
1348
+ a && (t = x(x({}, t), a));
1349
+ var o = Rn(i.stem);
1350
+ o && (t = x(x({}, t), o));
1345
1351
  }
1346
1352
  return t;
1347
1353
  }
1348
- var fe = {
1354
+ var ce = {
1349
1355
  "001": [
1350
1356
  "H",
1351
1357
  "h"
@@ -2760,23 +2766,23 @@ var fe = {
2760
2766
  "h"
2761
2767
  ]
2762
2768
  };
2763
- function Rr(e, t) {
2764
- for (var n = "", r = 0; r < e.length; r++) {
2765
- var i = e.charAt(r);
2769
+ function Dn(e, t) {
2770
+ for (var r = "", n = 0; n < e.length; n++) {
2771
+ var i = e.charAt(n);
2766
2772
  if (i === "j") {
2767
- for (var s = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2768
- s++, r++;
2769
- var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = Ur(t);
2773
+ for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2774
+ s++, n++;
2775
+ var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = Gn(t);
2770
2776
  for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
2771
- n += l;
2777
+ r += l;
2772
2778
  for (; a-- > 0; )
2773
- n = u + n;
2779
+ r = u + r;
2774
2780
  } else
2775
- i === "J" ? n += "H" : n += i;
2781
+ i === "J" ? r += "H" : r += i;
2776
2782
  }
2777
- return n;
2783
+ return r;
2778
2784
  }
2779
- function Ur(e) {
2785
+ function Gn(e) {
2780
2786
  var t = e.hourCycle;
2781
2787
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2782
2788
  e.hourCycles && // @ts-ignore
@@ -2793,73 +2799,73 @@ function Ur(e) {
2793
2799
  default:
2794
2800
  throw new Error("Invalid hourCycle");
2795
2801
  }
2796
- var n = e.language, r;
2797
- n !== "root" && (r = e.maximize().region);
2798
- var i = fe[r || ""] || fe[n || ""] || fe["".concat(n, "-001")] || fe["001"];
2802
+ var r = e.language, n;
2803
+ r !== "root" && (n = e.maximize().region);
2804
+ var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
2799
2805
  return i[0];
2800
2806
  }
2801
- var Ue, Dr = new RegExp("^".concat(an.source, "*")), Gr = new RegExp("".concat(an.source, "*$"));
2807
+ var Ge, Fn = new RegExp("^".concat(ur.source, "*")), jn = new RegExp("".concat(ur.source, "*$"));
2802
2808
  function b(e, t) {
2803
2809
  return { start: e, end: t };
2804
2810
  }
2805
- var Fr = !!String.prototype.startsWith && "_a".startsWith("a", 1), jr = !!String.fromCodePoint, kr = !!Object.fromEntries, Vr = !!String.prototype.codePointAt, Xr = !!String.prototype.trimStart, zr = !!String.prototype.trimEnd, Wr = !!Number.isSafeInteger, Zr = Wr ? Number.isSafeInteger : function(e) {
2811
+ var kn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Vn = !!String.fromCodePoint, Xn = !!Object.fromEntries, zn = !!String.prototype.codePointAt, Wn = !!String.prototype.trimStart, Zn = !!String.prototype.trimEnd, Qn = !!Number.isSafeInteger, qn = Qn ? Number.isSafeInteger : function(e) {
2806
2812
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2807
- }, ze = !0;
2813
+ }, Ze = !0;
2808
2814
  try {
2809
- var Qr = cn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2810
- ze = ((Ue = Qr.exec("a")) === null || Ue === void 0 ? void 0 : Ue[0]) === "a";
2815
+ var Jn = mr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2816
+ Ze = ((Ge = Jn.exec("a")) === null || Ge === void 0 ? void 0 : Ge[0]) === "a";
2811
2817
  } catch (e) {
2812
- ze = !1;
2818
+ Ze = !1;
2813
2819
  }
2814
- var gt = Fr ? (
2820
+ var _t = kn ? (
2815
2821
  // Native
2816
- function(t, n, r) {
2817
- return t.startsWith(n, r);
2822
+ function(t, r, n) {
2823
+ return t.startsWith(r, n);
2818
2824
  }
2819
2825
  ) : (
2820
2826
  // For IE11
2821
- function(t, n, r) {
2822
- return t.slice(r, r + n.length) === n;
2827
+ function(t, r, n) {
2828
+ return t.slice(n, n + r.length) === r;
2823
2829
  }
2824
- ), We = jr ? String.fromCodePoint : (
2830
+ ), Qe = Vn ? String.fromCodePoint : (
2825
2831
  // IE11
2826
2832
  function() {
2827
- for (var t = [], n = 0; n < arguments.length; n++)
2828
- t[n] = arguments[n];
2829
- for (var r = "", i = t.length, s = 0, a; i > s; ) {
2833
+ for (var t = [], r = 0; r < arguments.length; r++)
2834
+ t[r] = arguments[r];
2835
+ for (var n = "", i = t.length, s = 0, a; i > s; ) {
2830
2836
  if (a = t[s++], a > 1114111)
2831
2837
  throw RangeError(a + " is not a valid code point");
2832
- r += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
2838
+ n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
2833
2839
  }
2834
- return r;
2840
+ return n;
2835
2841
  }
2836
- ), bt = (
2842
+ ), yt = (
2837
2843
  // native
2838
- kr ? Object.fromEntries : (
2844
+ Xn ? Object.fromEntries : (
2839
2845
  // Ponyfill
2840
2846
  function(t) {
2841
- for (var n = {}, r = 0, i = t; r < i.length; r++) {
2842
- var s = i[r], a = s[0], o = s[1];
2843
- n[a] = o;
2847
+ for (var r = {}, n = 0, i = t; n < i.length; n++) {
2848
+ var s = i[n], a = s[0], o = s[1];
2849
+ r[a] = o;
2844
2850
  }
2845
- return n;
2851
+ return r;
2846
2852
  }
2847
2853
  )
2848
- ), fn = Vr ? (
2854
+ ), cr = zn ? (
2849
2855
  // Native
2850
- function(t, n) {
2851
- return t.codePointAt(n);
2856
+ function(t, r) {
2857
+ return t.codePointAt(r);
2852
2858
  }
2853
2859
  ) : (
2854
2860
  // IE 11
2855
- function(t, n) {
2856
- var r = t.length;
2857
- if (!(n < 0 || n >= r)) {
2858
- var i = t.charCodeAt(n), s;
2859
- return i < 55296 || i > 56319 || n + 1 === r || (s = t.charCodeAt(n + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
2861
+ function(t, r) {
2862
+ var n = t.length;
2863
+ if (!(r < 0 || r >= n)) {
2864
+ var i = t.charCodeAt(r), s;
2865
+ return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
2860
2866
  }
2861
2867
  }
2862
- ), qr = Xr ? (
2868
+ ), Yn = Wn ? (
2863
2869
  // Native
2864
2870
  function(t) {
2865
2871
  return t.trimStart();
@@ -2867,9 +2873,9 @@ var gt = Fr ? (
2867
2873
  ) : (
2868
2874
  // Ponyfill
2869
2875
  function(t) {
2870
- return t.replace(Dr, "");
2876
+ return t.replace(Fn, "");
2871
2877
  }
2872
- ), Jr = zr ? (
2878
+ ), Kn = Zn ? (
2873
2879
  // Native
2874
2880
  function(t) {
2875
2881
  return t.trimEnd();
@@ -2877,69 +2883,69 @@ var gt = Fr ? (
2877
2883
  ) : (
2878
2884
  // Ponyfill
2879
2885
  function(t) {
2880
- return t.replace(Gr, "");
2886
+ return t.replace(jn, "");
2881
2887
  }
2882
2888
  );
2883
- function cn(e, t) {
2889
+ function mr(e, t) {
2884
2890
  return new RegExp(e, t);
2885
2891
  }
2886
- var Ze;
2887
- if (ze) {
2888
- var _t = cn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2889
- Ze = function(t, n) {
2890
- var r;
2891
- _t.lastIndex = n;
2892
- var i = _t.exec(t);
2893
- return (r = i[1]) !== null && r !== void 0 ? r : "";
2892
+ var qe;
2893
+ if (Ze) {
2894
+ var Et = mr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2895
+ qe = function(t, r) {
2896
+ var n;
2897
+ Et.lastIndex = r;
2898
+ var i = Et.exec(t);
2899
+ return (n = i[1]) !== null && n !== void 0 ? n : "";
2894
2900
  };
2895
2901
  } else
2896
- Ze = function(t, n) {
2897
- for (var r = []; ; ) {
2898
- var i = fn(t, n);
2899
- if (i === void 0 || mn(i) || ti(i))
2902
+ qe = function(t, r) {
2903
+ for (var n = []; ; ) {
2904
+ var i = cr(t, r);
2905
+ if (i === void 0 || pr(i) || ni(i))
2900
2906
  break;
2901
- r.push(i), n += i >= 65536 ? 2 : 1;
2907
+ n.push(i), r += i >= 65536 ? 2 : 1;
2902
2908
  }
2903
- return We.apply(void 0, r);
2909
+ return Qe.apply(void 0, n);
2904
2910
  };
2905
- var Yr = (
2911
+ var ei = (
2906
2912
  /** @class */
2907
2913
  function() {
2908
- function e(t, n) {
2909
- 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;
2914
+ function e(t, r) {
2915
+ 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;
2910
2916
  }
2911
2917
  return e.prototype.parse = function() {
2912
2918
  if (this.offset() !== 0)
2913
2919
  throw Error("parser can only be used once");
2914
2920
  return this.parseMessage(0, "", !1);
2915
- }, e.prototype.parseMessage = function(t, n, r) {
2921
+ }, e.prototype.parseMessage = function(t, r, n) {
2916
2922
  for (var i = []; !this.isEOF(); ) {
2917
2923
  var s = this.char();
2918
2924
  if (s === 123) {
2919
- var a = this.parseArgument(t, r);
2925
+ var a = this.parseArgument(t, n);
2920
2926
  if (a.err)
2921
2927
  return a;
2922
2928
  i.push(a.val);
2923
2929
  } else {
2924
2930
  if (s === 125 && t > 0)
2925
2931
  break;
2926
- if (s === 35 && (n === "plural" || n === "selectordinal")) {
2932
+ if (s === 35 && (r === "plural" || r === "selectordinal")) {
2927
2933
  var o = this.clonePosition();
2928
2934
  this.bump(), i.push({
2929
- type: x.pound,
2935
+ type: y.pound,
2930
2936
  location: b(o, this.clonePosition())
2931
2937
  });
2932
2938
  } else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
2933
- if (r)
2939
+ if (n)
2934
2940
  break;
2935
2941
  return this.error(g.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
2936
- } else if (s === 60 && !this.ignoreTag && Qe(this.peek() || 0)) {
2937
- var a = this.parseTag(t, n);
2942
+ } else if (s === 60 && !this.ignoreTag && Je(this.peek() || 0)) {
2943
+ var a = this.parseTag(t, r);
2938
2944
  if (a.err)
2939
2945
  return a;
2940
2946
  i.push(a.val);
2941
2947
  } else {
2942
- var a = this.parseLiteral(t, n);
2948
+ var a = this.parseLiteral(t, r);
2943
2949
  if (a.err)
2944
2950
  return a;
2945
2951
  i.push(a.val);
@@ -2947,54 +2953,54 @@ var Yr = (
2947
2953
  }
2948
2954
  }
2949
2955
  return { val: i, err: null };
2950
- }, e.prototype.parseTag = function(t, n) {
2951
- var r = this.clonePosition();
2956
+ }, e.prototype.parseTag = function(t, r) {
2957
+ var n = this.clonePosition();
2952
2958
  this.bump();
2953
2959
  var i = this.parseTagName();
2954
2960
  if (this.bumpSpace(), this.bumpIf("/>"))
2955
2961
  return {
2956
2962
  val: {
2957
- type: x.literal,
2963
+ type: y.literal,
2958
2964
  value: "<".concat(i, "/>"),
2959
- location: b(r, this.clonePosition())
2965
+ location: b(n, this.clonePosition())
2960
2966
  },
2961
2967
  err: null
2962
2968
  };
2963
2969
  if (this.bumpIf(">")) {
2964
- var s = this.parseMessage(t + 1, n, !0);
2970
+ var s = this.parseMessage(t + 1, r, !0);
2965
2971
  if (s.err)
2966
2972
  return s;
2967
2973
  var a = s.val, o = this.clonePosition();
2968
2974
  if (this.bumpIf("</")) {
2969
- if (this.isEOF() || !Qe(this.char()))
2975
+ if (this.isEOF() || !Je(this.char()))
2970
2976
  return this.error(g.INVALID_TAG, b(o, this.clonePosition()));
2971
2977
  var l = this.clonePosition(), u = this.parseTagName();
2972
2978
  return i !== u ? this.error(g.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2973
2979
  val: {
2974
- type: x.tag,
2980
+ type: y.tag,
2975
2981
  value: i,
2976
2982
  children: a,
2977
- location: b(r, this.clonePosition())
2983
+ location: b(n, this.clonePosition())
2978
2984
  },
2979
2985
  err: null
2980
2986
  } : this.error(g.INVALID_TAG, b(o, this.clonePosition())));
2981
2987
  } else
2982
- return this.error(g.UNCLOSED_TAG, b(r, this.clonePosition()));
2988
+ return this.error(g.UNCLOSED_TAG, b(n, this.clonePosition()));
2983
2989
  } else
2984
- return this.error(g.INVALID_TAG, b(r, this.clonePosition()));
2990
+ return this.error(g.INVALID_TAG, b(n, this.clonePosition()));
2985
2991
  }, e.prototype.parseTagName = function() {
2986
2992
  var t = this.offset();
2987
- for (this.bump(); !this.isEOF() && ei(this.char()); )
2993
+ for (this.bump(); !this.isEOF() && ri(this.char()); )
2988
2994
  this.bump();
2989
2995
  return this.message.slice(t, this.offset());
2990
- }, e.prototype.parseLiteral = function(t, n) {
2991
- for (var r = this.clonePosition(), i = ""; ; ) {
2992
- var s = this.tryParseQuote(n);
2996
+ }, e.prototype.parseLiteral = function(t, r) {
2997
+ for (var n = this.clonePosition(), i = ""; ; ) {
2998
+ var s = this.tryParseQuote(r);
2993
2999
  if (s) {
2994
3000
  i += s;
2995
3001
  continue;
2996
3002
  }
2997
- var a = this.tryParseUnquoted(t, n);
3003
+ var a = this.tryParseUnquoted(t, r);
2998
3004
  if (a) {
2999
3005
  i += a;
3000
3006
  continue;
@@ -3006,14 +3012,14 @@ var Yr = (
3006
3012
  }
3007
3013
  break;
3008
3014
  }
3009
- var l = b(r, this.clonePosition());
3015
+ var l = b(n, this.clonePosition());
3010
3016
  return {
3011
- val: { type: x.literal, value: i, location: l },
3017
+ val: { type: y.literal, value: i, location: l },
3012
3018
  err: null
3013
3019
  };
3014
3020
  }, e.prototype.tryParseLeftAngleBracket = function() {
3015
3021
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3016
- !Kr(this.peek() || 0)) ? (this.bump(), "<") : null;
3022
+ !ti(this.peek() || 0)) ? (this.bump(), "<") : null;
3017
3023
  }, e.prototype.tryParseQuote = function(t) {
3018
3024
  if (this.isEOF() || this.char() !== 39)
3019
3025
  return null;
@@ -3033,59 +3039,59 @@ var Yr = (
3033
3039
  return null;
3034
3040
  }
3035
3041
  this.bump();
3036
- var n = [this.char()];
3042
+ var r = [this.char()];
3037
3043
  for (this.bump(); !this.isEOF(); ) {
3038
- var r = this.char();
3039
- if (r === 39)
3044
+ var n = this.char();
3045
+ if (n === 39)
3040
3046
  if (this.peek() === 39)
3041
- n.push(39), this.bump();
3047
+ r.push(39), this.bump();
3042
3048
  else {
3043
3049
  this.bump();
3044
3050
  break;
3045
3051
  }
3046
3052
  else
3047
- n.push(r);
3053
+ r.push(n);
3048
3054
  this.bump();
3049
3055
  }
3050
- return We.apply(void 0, n);
3051
- }, e.prototype.tryParseUnquoted = function(t, n) {
3056
+ return Qe.apply(void 0, r);
3057
+ }, e.prototype.tryParseUnquoted = function(t, r) {
3052
3058
  if (this.isEOF())
3053
3059
  return null;
3054
- var r = this.char();
3055
- return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), We(r));
3056
- }, e.prototype.parseArgument = function(t, n) {
3057
- var r = this.clonePosition();
3060
+ var n = this.char();
3061
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Qe(n));
3062
+ }, e.prototype.parseArgument = function(t, r) {
3063
+ var n = this.clonePosition();
3058
3064
  if (this.bump(), this.bumpSpace(), this.isEOF())
3059
- return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, b(r, this.clonePosition()));
3065
+ return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
3060
3066
  if (this.char() === 125)
3061
- return this.bump(), this.error(g.EMPTY_ARGUMENT, b(r, this.clonePosition()));
3067
+ return this.bump(), this.error(g.EMPTY_ARGUMENT, b(n, this.clonePosition()));
3062
3068
  var i = this.parseIdentifierIfPossible().value;
3063
3069
  if (!i)
3064
- return this.error(g.MALFORMED_ARGUMENT, b(r, this.clonePosition()));
3070
+ return this.error(g.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
3065
3071
  if (this.bumpSpace(), this.isEOF())
3066
- return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, b(r, this.clonePosition()));
3072
+ return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
3067
3073
  switch (this.char()) {
3068
3074
  case 125:
3069
3075
  return this.bump(), {
3070
3076
  val: {
3071
- type: x.argument,
3077
+ type: y.argument,
3072
3078
  // value does not include the opening and closing braces.
3073
3079
  value: i,
3074
- location: b(r, this.clonePosition())
3080
+ location: b(n, this.clonePosition())
3075
3081
  },
3076
3082
  err: null
3077
3083
  };
3078
3084
  case 44:
3079
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, b(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
3085
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3080
3086
  default:
3081
- return this.error(g.MALFORMED_ARGUMENT, b(r, this.clonePosition()));
3087
+ return this.error(g.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
3082
3088
  }
3083
3089
  }, e.prototype.parseIdentifierIfPossible = function() {
3084
- var t = this.clonePosition(), n = this.offset(), r = Ze(this.message, n), i = n + r.length;
3090
+ var t = this.clonePosition(), r = this.offset(), n = qe(this.message, r), i = r + n.length;
3085
3091
  this.bumpTo(i);
3086
3092
  var s = this.clonePosition(), a = b(t, s);
3087
- return { value: r, location: a };
3088
- }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
3093
+ return { value: n, location: a };
3094
+ }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
3089
3095
  var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
3090
3096
  switch (o) {
3091
3097
  case "":
@@ -3100,46 +3106,46 @@ var Yr = (
3100
3106
  var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
3101
3107
  if (f.err)
3102
3108
  return f;
3103
- var m = Jr(f.val);
3109
+ var m = Kn(f.val);
3104
3110
  if (m.length === 0)
3105
3111
  return this.error(g.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
3106
- var d = b(h, this.clonePosition());
3107
- u = { style: m, styleLocation: d };
3112
+ var p = b(h, this.clonePosition());
3113
+ u = { style: m, styleLocation: p };
3108
3114
  }
3109
3115
  var c = this.tryParseArgumentClose(i);
3110
3116
  if (c.err)
3111
3117
  return c;
3112
- var p = b(i, this.clonePosition());
3113
- if (u && gt(u == null ? void 0 : u.style, "::", 0)) {
3114
- var E = qr(u.style.slice(2));
3118
+ var d = b(i, this.clonePosition());
3119
+ if (u && _t(u == null ? void 0 : u.style, "::", 0)) {
3120
+ var E = Yn(u.style.slice(2));
3115
3121
  if (o === "number") {
3116
3122
  var f = this.parseNumberSkeletonFromString(E, u.styleLocation);
3117
3123
  return f.err ? f : {
3118
- val: { type: x.number, value: r, location: p, style: f.val },
3124
+ val: { type: y.number, value: n, location: d, style: f.val },
3119
3125
  err: null
3120
3126
  };
3121
3127
  } else {
3122
3128
  if (E.length === 0)
3123
- return this.error(g.EXPECT_DATE_TIME_SKELETON, p);
3129
+ return this.error(g.EXPECT_DATE_TIME_SKELETON, d);
3124
3130
  var v = E;
3125
- this.locale && (v = Rr(E, this.locale));
3131
+ this.locale && (v = Dn(E, this.locale));
3126
3132
  var m = {
3127
- type: z.dateTime,
3133
+ type: W.dateTime,
3128
3134
  pattern: v,
3129
3135
  location: u.styleLocation,
3130
- parsedOptions: this.shouldParseSkeletons ? Pr(v) : {}
3131
- }, B = o === "date" ? x.date : x.time;
3136
+ parsedOptions: this.shouldParseSkeletons ? Ln(v) : {}
3137
+ }, B = o === "date" ? y.date : y.time;
3132
3138
  return {
3133
- val: { type: B, value: r, location: p, style: m },
3139
+ val: { type: B, value: n, location: d, style: m },
3134
3140
  err: null
3135
3141
  };
3136
3142
  }
3137
3143
  }
3138
3144
  return {
3139
3145
  val: {
3140
- type: o === "number" ? x.number : o === "date" ? x.date : x.time,
3141
- value: r,
3142
- location: p,
3146
+ type: o === "number" ? y.number : o === "date" ? y.date : y.time,
3147
+ value: n,
3148
+ location: d,
3143
3149
  style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
3144
3150
  },
3145
3151
  err: null
@@ -3150,9 +3156,9 @@ var Yr = (
3150
3156
  case "select": {
3151
3157
  var H = this.clonePosition();
3152
3158
  if (this.bumpSpace(), !this.bumpIf(","))
3153
- return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, y({}, H)));
3159
+ return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, ve({}, H)));
3154
3160
  this.bumpSpace();
3155
- var A = this.parseIdentifierIfPossible(), P = 0;
3161
+ var A = this.parseIdentifierIfPossible(), C = 0;
3156
3162
  if (o !== "select" && A.value === "offset") {
3157
3163
  if (!this.bumpIf(":"))
3158
3164
  return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
@@ -3160,31 +3166,31 @@ var Yr = (
3160
3166
  var f = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3161
3167
  if (f.err)
3162
3168
  return f;
3163
- this.bumpSpace(), A = this.parseIdentifierIfPossible(), P = f.val;
3169
+ this.bumpSpace(), A = this.parseIdentifierIfPossible(), C = f.val;
3164
3170
  }
3165
- var D = this.tryParsePluralOrSelectOptions(t, o, n, A);
3166
- if (D.err)
3167
- return D;
3171
+ var G = this.tryParsePluralOrSelectOptions(t, o, r, A);
3172
+ if (G.err)
3173
+ return G;
3168
3174
  var c = this.tryParseArgumentClose(i);
3169
3175
  if (c.err)
3170
3176
  return c;
3171
- var he = b(i, this.clonePosition());
3177
+ var le = b(i, this.clonePosition());
3172
3178
  return o === "select" ? {
3173
3179
  val: {
3174
- type: x.select,
3175
- value: r,
3176
- options: bt(D.val),
3177
- location: he
3180
+ type: y.select,
3181
+ value: n,
3182
+ options: yt(G.val),
3183
+ location: le
3178
3184
  },
3179
3185
  err: null
3180
3186
  } : {
3181
3187
  val: {
3182
- type: x.plural,
3183
- value: r,
3184
- options: bt(D.val),
3185
- offset: P,
3188
+ type: y.plural,
3189
+ value: n,
3190
+ options: yt(G.val),
3191
+ offset: C,
3186
3192
  pluralType: o === "plural" ? "cardinal" : "ordinal",
3187
- location: he
3193
+ location: le
3188
3194
  },
3189
3195
  err: null
3190
3196
  };
@@ -3195,9 +3201,9 @@ var Yr = (
3195
3201
  }, e.prototype.tryParseArgumentClose = function(t) {
3196
3202
  return this.isEOF() || this.char() !== 125 ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3197
3203
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
3198
- for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
3199
- var r = this.char();
3200
- switch (r) {
3204
+ for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
3205
+ var n = this.char();
3206
+ switch (n) {
3201
3207
  case 39: {
3202
3208
  this.bump();
3203
3209
  var i = this.clonePosition();
@@ -3215,7 +3221,7 @@ var Yr = (
3215
3221
  t -= 1;
3216
3222
  else
3217
3223
  return {
3218
- val: this.message.slice(n.offset, this.offset()),
3224
+ val: this.message.slice(r.offset, this.offset()),
3219
3225
  err: null
3220
3226
  };
3221
3227
  break;
@@ -3226,30 +3232,30 @@ var Yr = (
3226
3232
  }
3227
3233
  }
3228
3234
  return {
3229
- val: this.message.slice(n.offset, this.offset()),
3235
+ val: this.message.slice(r.offset, this.offset()),
3230
3236
  err: null
3231
3237
  };
3232
- }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
3233
- var r = [];
3238
+ }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3239
+ var n = [];
3234
3240
  try {
3235
- r = Lr(t);
3241
+ n = In(t);
3236
3242
  } catch (i) {
3237
- return this.error(g.INVALID_NUMBER_SKELETON, n);
3243
+ return this.error(g.INVALID_NUMBER_SKELETON, r);
3238
3244
  }
3239
3245
  return {
3240
3246
  val: {
3241
- type: z.number,
3242
- tokens: r,
3243
- location: n,
3244
- parsedOptions: this.shouldParseSkeletons ? $r(r) : {}
3247
+ type: W.number,
3248
+ tokens: n,
3249
+ location: r,
3250
+ parsedOptions: this.shouldParseSkeletons ? Un(n) : {}
3245
3251
  },
3246
3252
  err: null
3247
3253
  };
3248
- }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
3254
+ }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3249
3255
  for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
3250
3256
  if (u.length === 0) {
3251
3257
  var f = this.clonePosition();
3252
- if (n !== "select" && this.bumpIf("=")) {
3258
+ if (r !== "select" && this.bumpIf("=")) {
3253
3259
  var m = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_SELECTOR, g.INVALID_PLURAL_ARGUMENT_SELECTOR);
3254
3260
  if (m.err)
3255
3261
  return m;
@@ -3258,29 +3264,29 @@ var Yr = (
3258
3264
  break;
3259
3265
  }
3260
3266
  if (l.has(u))
3261
- return this.error(n === "select" ? g.DUPLICATE_SELECT_ARGUMENT_SELECTOR : g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3267
+ return this.error(r === "select" ? g.DUPLICATE_SELECT_ARGUMENT_SELECTOR : g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3262
3268
  u === "other" && (a = !0), this.bumpSpace();
3263
- var d = this.clonePosition();
3269
+ var p = this.clonePosition();
3264
3270
  if (!this.bumpIf("{"))
3265
- return this.error(n === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
3266
- var c = this.parseMessage(t + 1, n, r);
3271
+ return this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
3272
+ var c = this.parseMessage(t + 1, r, n);
3267
3273
  if (c.err)
3268
3274
  return c;
3269
- var p = this.tryParseArgumentClose(d);
3270
- if (p.err)
3271
- return p;
3275
+ var d = this.tryParseArgumentClose(p);
3276
+ if (d.err)
3277
+ return d;
3272
3278
  o.push([
3273
3279
  u,
3274
3280
  {
3275
3281
  value: c.val,
3276
- location: b(d, this.clonePosition())
3282
+ location: b(p, this.clonePosition())
3277
3283
  }
3278
3284
  ]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
3279
3285
  }
3280
- return o.length === 0 ? this.error(n === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR : g.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(g.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
3281
- }, e.prototype.tryParseDecimalInteger = function(t, n) {
3282
- var r = 1, i = this.clonePosition();
3283
- this.bumpIf("+") || this.bumpIf("-") && (r = -1);
3286
+ return o.length === 0 ? this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR : g.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(g.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
3287
+ }, e.prototype.tryParseDecimalInteger = function(t, r) {
3288
+ var n = 1, i = this.clonePosition();
3289
+ this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3284
3290
  for (var s = !1, a = 0; !this.isEOF(); ) {
3285
3291
  var o = this.char();
3286
3292
  if (o >= 48 && o <= 57)
@@ -3289,7 +3295,7 @@ var Yr = (
3289
3295
  break;
3290
3296
  }
3291
3297
  var l = b(i, this.clonePosition());
3292
- return s ? (a *= r, Zr(a) ? { val: a, err: null } : this.error(n, l)) : this.error(t, l);
3298
+ return s ? (a *= n, qn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
3293
3299
  }, e.prototype.offset = function() {
3294
3300
  return this.position.offset;
3295
3301
  }, e.prototype.isEOF = function() {
@@ -3304,17 +3310,17 @@ var Yr = (
3304
3310
  var t = this.position.offset;
3305
3311
  if (t >= this.message.length)
3306
3312
  throw Error("out of bound");
3307
- var n = fn(this.message, t);
3308
- if (n === void 0)
3313
+ var r = cr(this.message, t);
3314
+ if (r === void 0)
3309
3315
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3310
- return n;
3311
- }, e.prototype.error = function(t, n) {
3316
+ return r;
3317
+ }, e.prototype.error = function(t, r) {
3312
3318
  return {
3313
3319
  val: null,
3314
3320
  err: {
3315
3321
  kind: t,
3316
3322
  message: this.message,
3317
- location: n
3323
+ location: r
3318
3324
  }
3319
3325
  };
3320
3326
  }, e.prototype.bump = function() {
@@ -3323,129 +3329,129 @@ var Yr = (
3323
3329
  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);
3324
3330
  }
3325
3331
  }, e.prototype.bumpIf = function(t) {
3326
- if (gt(this.message, t, this.offset())) {
3327
- for (var n = 0; n < t.length; n++)
3332
+ if (_t(this.message, t, this.offset())) {
3333
+ for (var r = 0; r < t.length; r++)
3328
3334
  this.bump();
3329
3335
  return !0;
3330
3336
  }
3331
3337
  return !1;
3332
3338
  }, e.prototype.bumpUntil = function(t) {
3333
- var n = this.offset(), r = this.message.indexOf(t, n);
3334
- return r >= 0 ? (this.bumpTo(r), !0) : (this.bumpTo(this.message.length), !1);
3339
+ var r = this.offset(), n = this.message.indexOf(t, r);
3340
+ return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
3335
3341
  }, e.prototype.bumpTo = function(t) {
3336
3342
  if (this.offset() > t)
3337
3343
  throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
3338
3344
  for (t = Math.min(t, this.message.length); ; ) {
3339
- var n = this.offset();
3340
- if (n === t)
3345
+ var r = this.offset();
3346
+ if (r === t)
3341
3347
  break;
3342
- if (n > t)
3348
+ if (r > t)
3343
3349
  throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3344
3350
  if (this.bump(), this.isEOF())
3345
3351
  break;
3346
3352
  }
3347
3353
  }, e.prototype.bumpSpace = function() {
3348
- for (; !this.isEOF() && mn(this.char()); )
3354
+ for (; !this.isEOF() && pr(this.char()); )
3349
3355
  this.bump();
3350
3356
  }, e.prototype.peek = function() {
3351
3357
  if (this.isEOF())
3352
3358
  return null;
3353
- var t = this.char(), n = this.offset(), r = this.message.charCodeAt(n + (t >= 65536 ? 2 : 1));
3354
- return r != null ? r : null;
3359
+ var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3360
+ return n != null ? n : null;
3355
3361
  }, e;
3356
3362
  }()
3357
3363
  );
3358
- function Qe(e) {
3364
+ function Je(e) {
3359
3365
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3360
3366
  }
3361
- function Kr(e) {
3362
- return Qe(e) || e === 47;
3367
+ function ti(e) {
3368
+ return Je(e) || e === 47;
3363
3369
  }
3364
- function ei(e) {
3370
+ function ri(e) {
3365
3371
  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;
3366
3372
  }
3367
- function mn(e) {
3373
+ function pr(e) {
3368
3374
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3369
3375
  }
3370
- function ti(e) {
3376
+ function ni(e) {
3371
3377
  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;
3372
3378
  }
3373
- function qe(e) {
3379
+ function Ye(e) {
3374
3380
  e.forEach(function(t) {
3375
- if (delete t.location, nn(t) || rn(t))
3376
- for (var n in t.options)
3377
- delete t.options[n].location, qe(t.options[n].value);
3381
+ if (delete t.location, ir(t) || sr(t))
3382
+ for (var r in t.options)
3383
+ delete t.options[r].location, Ye(t.options[r].value);
3378
3384
  else
3379
- Kt(t) && on(t.style) || (en(t) || tn(t)) && Xe(t.style) ? delete t.style.location : sn(t) && qe(t.children);
3385
+ tr(t) && ar(t.style) || (rr(t) || nr(t)) && We(t.style) ? delete t.style.location : or(t) && Ye(t.children);
3380
3386
  });
3381
3387
  }
3382
- function ni(e, t) {
3383
- t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3384
- var n = new Yr(e, t).parse();
3385
- if (n.err) {
3386
- var r = SyntaxError(g[n.err.kind]);
3387
- throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3388
+ function ii(e, t) {
3389
+ t === void 0 && (t = {}), t = ve({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3390
+ var r = new ei(e, t).parse();
3391
+ if (r.err) {
3392
+ var n = SyntaxError(g[r.err.kind]);
3393
+ throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3388
3394
  }
3389
- return t != null && t.captureLocation || qe(n.val), n.val;
3395
+ return t != null && t.captureLocation || Ye(r.val), r.val;
3390
3396
  }
3391
- var W;
3397
+ var Z;
3392
3398
  (function(e) {
3393
3399
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3394
- })(W || (W = {}));
3395
- var Be = (
3400
+ })(Z || (Z = {}));
3401
+ var Ae = (
3396
3402
  /** @class */
3397
3403
  function(e) {
3398
- Te(t, e);
3399
- function t(n, r, i) {
3400
- var s = e.call(this, n) || this;
3401
- return s.code = r, s.originalMessage = i, s;
3404
+ Se(t, e);
3405
+ function t(r, n, i) {
3406
+ var s = e.call(this, r) || this;
3407
+ return s.code = n, s.originalMessage = i, s;
3402
3408
  }
3403
3409
  return t.prototype.toString = function() {
3404
3410
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3405
3411
  }, t;
3406
3412
  }(Error)
3407
- ), yt = (
3413
+ ), xt = (
3408
3414
  /** @class */
3409
3415
  function(e) {
3410
- Te(t, e);
3411
- function t(n, r, i, s) {
3412
- return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), W.INVALID_VALUE, s) || this;
3416
+ Se(t, e);
3417
+ function t(r, n, i, s) {
3418
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Z.INVALID_VALUE, s) || this;
3413
3419
  }
3414
3420
  return t;
3415
- }(Be)
3416
- ), ri = (
3421
+ }(Ae)
3422
+ ), si = (
3417
3423
  /** @class */
3418
3424
  function(e) {
3419
- Te(t, e);
3420
- function t(n, r, i) {
3421
- return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), W.INVALID_VALUE, i) || this;
3425
+ Se(t, e);
3426
+ function t(r, n, i) {
3427
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Z.INVALID_VALUE, i) || this;
3422
3428
  }
3423
3429
  return t;
3424
- }(Be)
3425
- ), ii = (
3430
+ }(Ae)
3431
+ ), oi = (
3426
3432
  /** @class */
3427
3433
  function(e) {
3428
- Te(t, e);
3429
- function t(n, r) {
3430
- return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), W.MISSING_VALUE, r) || this;
3434
+ Se(t, e);
3435
+ function t(r, n) {
3436
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Z.MISSING_VALUE, n) || this;
3431
3437
  }
3432
3438
  return t;
3433
- }(Be)
3439
+ }(Ae)
3434
3440
  ), w;
3435
3441
  (function(e) {
3436
3442
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3437
3443
  })(w || (w = {}));
3438
- function si(e) {
3439
- return e.length < 2 ? e : e.reduce(function(t, n) {
3440
- var r = t[t.length - 1];
3441
- return !r || r.type !== w.literal || n.type !== w.literal ? t.push(n) : r.value += n.value, t;
3444
+ function ai(e) {
3445
+ return e.length < 2 ? e : e.reduce(function(t, r) {
3446
+ var n = t[t.length - 1];
3447
+ return !n || n.type !== w.literal || r.type !== w.literal ? t.push(r) : n.value += r.value, t;
3442
3448
  }, []);
3443
3449
  }
3444
- function oi(e) {
3450
+ function ui(e) {
3445
3451
  return typeof e == "function";
3446
3452
  }
3447
- function pe(e, t, n, r, i, s, a) {
3448
- if (e.length === 1 && ct(e[0]))
3453
+ function ge(e, t, r, n, i, s, a) {
3454
+ if (e.length === 1 && pt(e[0]))
3449
3455
  return [
3450
3456
  {
3451
3457
  type: w.literal,
@@ -3454,155 +3460,155 @@ function pe(e, t, n, r, i, s, a) {
3454
3460
  ];
3455
3461
  for (var o = [], l = 0, u = e; l < u.length; l++) {
3456
3462
  var h = u[l];
3457
- if (ct(h)) {
3463
+ if (pt(h)) {
3458
3464
  o.push({
3459
3465
  type: w.literal,
3460
3466
  value: h.value
3461
3467
  });
3462
3468
  continue;
3463
3469
  }
3464
- if (Ar(h)) {
3470
+ if (Pn(h)) {
3465
3471
  typeof s == "number" && o.push({
3466
3472
  type: w.literal,
3467
- value: n.getNumberFormat(t).format(s)
3473
+ value: r.getNumberFormat(t).format(s)
3468
3474
  });
3469
3475
  continue;
3470
3476
  }
3471
3477
  var f = h.value;
3472
3478
  if (!(i && f in i))
3473
- throw new ii(f, a);
3479
+ throw new oi(f, a);
3474
3480
  var m = i[f];
3475
- if (Sr(h)) {
3481
+ if (On(h)) {
3476
3482
  (!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), o.push({
3477
3483
  type: typeof m == "string" ? w.literal : w.object,
3478
3484
  value: m
3479
3485
  });
3480
3486
  continue;
3481
3487
  }
3482
- if (en(h)) {
3483
- var d = typeof h.style == "string" ? r.date[h.style] : Xe(h.style) ? h.style.parsedOptions : void 0;
3488
+ if (rr(h)) {
3489
+ var p = typeof h.style == "string" ? n.date[h.style] : We(h.style) ? h.style.parsedOptions : void 0;
3484
3490
  o.push({
3485
3491
  type: w.literal,
3486
- value: n.getDateTimeFormat(t, d).format(m)
3492
+ value: r.getDateTimeFormat(t, p).format(m)
3487
3493
  });
3488
3494
  continue;
3489
3495
  }
3490
- if (tn(h)) {
3491
- var d = typeof h.style == "string" ? r.time[h.style] : Xe(h.style) ? h.style.parsedOptions : r.time.medium;
3496
+ if (nr(h)) {
3497
+ var p = typeof h.style == "string" ? n.time[h.style] : We(h.style) ? h.style.parsedOptions : n.time.medium;
3492
3498
  o.push({
3493
3499
  type: w.literal,
3494
- value: n.getDateTimeFormat(t, d).format(m)
3500
+ value: r.getDateTimeFormat(t, p).format(m)
3495
3501
  });
3496
3502
  continue;
3497
3503
  }
3498
- if (Kt(h)) {
3499
- var d = typeof h.style == "string" ? r.number[h.style] : on(h.style) ? h.style.parsedOptions : void 0;
3500
- d && d.scale && (m = m * (d.scale || 1)), o.push({
3504
+ if (tr(h)) {
3505
+ var p = typeof h.style == "string" ? n.number[h.style] : ar(h.style) ? h.style.parsedOptions : void 0;
3506
+ p && p.scale && (m = m * (p.scale || 1)), o.push({
3501
3507
  type: w.literal,
3502
- value: n.getNumberFormat(t, d).format(m)
3508
+ value: r.getNumberFormat(t, p).format(m)
3503
3509
  });
3504
3510
  continue;
3505
3511
  }
3506
- if (sn(h)) {
3507
- var c = h.children, p = h.value, E = i[p];
3508
- if (!oi(E))
3509
- throw new ri(p, "function", a);
3510
- var v = pe(c, t, n, r, i, s), B = E(v.map(function(P) {
3511
- return P.value;
3512
+ if (or(h)) {
3513
+ var c = h.children, d = h.value, E = i[d];
3514
+ if (!ui(E))
3515
+ throw new si(d, "function", a);
3516
+ var v = ge(c, t, r, n, i, s), B = E(v.map(function(C) {
3517
+ return C.value;
3512
3518
  }));
3513
- Array.isArray(B) || (B = [B]), o.push.apply(o, B.map(function(P) {
3519
+ Array.isArray(B) || (B = [B]), o.push.apply(o, B.map(function(C) {
3514
3520
  return {
3515
- type: typeof P == "string" ? w.literal : w.object,
3516
- value: P
3521
+ type: typeof C == "string" ? w.literal : w.object,
3522
+ value: C
3517
3523
  };
3518
3524
  }));
3519
3525
  }
3520
- if (nn(h)) {
3526
+ if (ir(h)) {
3521
3527
  var H = h.options[m] || h.options.other;
3522
3528
  if (!H)
3523
- throw new yt(h.value, m, Object.keys(h.options), a);
3524
- o.push.apply(o, pe(H.value, t, n, r, i));
3529
+ throw new xt(h.value, m, Object.keys(h.options), a);
3530
+ o.push.apply(o, ge(H.value, t, r, n, i));
3525
3531
  continue;
3526
3532
  }
3527
- if (rn(h)) {
3533
+ if (sr(h)) {
3528
3534
  var H = h.options["=".concat(m)];
3529
3535
  if (!H) {
3530
3536
  if (!Intl.PluralRules)
3531
- throw new Be(`Intl.PluralRules is not available in this environment.
3537
+ throw new Ae(`Intl.PluralRules is not available in this environment.
3532
3538
  Try polyfilling it using "@formatjs/intl-pluralrules"
3533
- `, W.MISSING_INTL_API, a);
3534
- var A = n.getPluralRules(t, { type: h.pluralType }).select(m - (h.offset || 0));
3539
+ `, Z.MISSING_INTL_API, a);
3540
+ var A = r.getPluralRules(t, { type: h.pluralType }).select(m - (h.offset || 0));
3535
3541
  H = h.options[A] || h.options.other;
3536
3542
  }
3537
3543
  if (!H)
3538
- throw new yt(h.value, m, Object.keys(h.options), a);
3539
- o.push.apply(o, pe(H.value, t, n, r, i, m - (h.offset || 0)));
3544
+ throw new xt(h.value, m, Object.keys(h.options), a);
3545
+ o.push.apply(o, ge(H.value, t, r, n, i, m - (h.offset || 0)));
3540
3546
  continue;
3541
3547
  }
3542
3548
  }
3543
- return si(o);
3549
+ return ai(o);
3544
3550
  }
3545
- function ai(e, t) {
3546
- return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3547
- return n[r] = y(y({}, e[r]), t[r] || {}), n;
3551
+ function hi(e, t) {
3552
+ return t ? P(P(P({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3553
+ return r[n] = P(P({}, e[n]), t[n] || {}), r;
3548
3554
  }, {})) : e;
3549
3555
  }
3550
- function ui(e, t) {
3551
- return t ? Object.keys(e).reduce(function(n, r) {
3552
- return n[r] = ai(e[r], t[r]), n;
3553
- }, y({}, e)) : e;
3556
+ function li(e, t) {
3557
+ return t ? Object.keys(e).reduce(function(r, n) {
3558
+ return r[n] = hi(e[n], t[n]), r;
3559
+ }, P({}, e)) : e;
3554
3560
  }
3555
- function De(e) {
3561
+ function Fe(e) {
3556
3562
  return {
3557
3563
  create: function() {
3558
3564
  return {
3559
3565
  get: function(t) {
3560
3566
  return e[t];
3561
3567
  },
3562
- set: function(t, n) {
3563
- e[t] = n;
3568
+ set: function(t, r) {
3569
+ e[t] = r;
3564
3570
  }
3565
3571
  };
3566
3572
  }
3567
3573
  };
3568
3574
  }
3569
- function hi(e) {
3575
+ function fi(e) {
3570
3576
  return e === void 0 && (e = {
3571
3577
  number: {},
3572
3578
  dateTime: {},
3573
3579
  pluralRules: {}
3574
3580
  }), {
3575
- getNumberFormat: $e(function() {
3576
- for (var t, n = [], r = 0; r < arguments.length; r++)
3577
- n[r] = arguments[r];
3578
- return new ((t = Intl.NumberFormat).bind.apply(t, Me([void 0], n, !1)))();
3581
+ getNumberFormat: Ue(function() {
3582
+ for (var t, r = [], n = 0; n < arguments.length; n++)
3583
+ r[n] = arguments[n];
3584
+ return new ((t = Intl.NumberFormat).bind.apply(t, Re([void 0], r, !1)))();
3579
3585
  }, {
3580
- cache: De(e.number),
3581
- strategy: Re.variadic
3586
+ cache: Fe(e.number),
3587
+ strategy: De.variadic
3582
3588
  }),
3583
- getDateTimeFormat: $e(function() {
3584
- for (var t, n = [], r = 0; r < arguments.length; r++)
3585
- n[r] = arguments[r];
3586
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Me([void 0], n, !1)))();
3589
+ getDateTimeFormat: Ue(function() {
3590
+ for (var t, r = [], n = 0; n < arguments.length; n++)
3591
+ r[n] = arguments[n];
3592
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Re([void 0], r, !1)))();
3587
3593
  }, {
3588
- cache: De(e.dateTime),
3589
- strategy: Re.variadic
3594
+ cache: Fe(e.dateTime),
3595
+ strategy: De.variadic
3590
3596
  }),
3591
- getPluralRules: $e(function() {
3592
- for (var t, n = [], r = 0; r < arguments.length; r++)
3593
- n[r] = arguments[r];
3594
- return new ((t = Intl.PluralRules).bind.apply(t, Me([void 0], n, !1)))();
3597
+ getPluralRules: Ue(function() {
3598
+ for (var t, r = [], n = 0; n < arguments.length; n++)
3599
+ r[n] = arguments[n];
3600
+ return new ((t = Intl.PluralRules).bind.apply(t, Re([void 0], r, !1)))();
3595
3601
  }, {
3596
- cache: De(e.pluralRules),
3597
- strategy: Re.variadic
3602
+ cache: Fe(e.pluralRules),
3603
+ strategy: De.variadic
3598
3604
  })
3599
3605
  };
3600
3606
  }
3601
- var dn = (
3607
+ var dr = (
3602
3608
  /** @class */
3603
3609
  function() {
3604
- function e(t, n, r, i) {
3605
- n === void 0 && (n = e.defaultLocale);
3610
+ function e(t, r, n, i) {
3611
+ r === void 0 && (r = e.defaultLocale);
3606
3612
  var s = this;
3607
3613
  if (this.formatterCache = {
3608
3614
  number: {},
@@ -3617,7 +3623,7 @@ var dn = (
3617
3623
  }, []);
3618
3624
  return h.length <= 1 ? h[0] || "" : h;
3619
3625
  }, this.formatToParts = function(l) {
3620
- return pe(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
3626
+ return ge(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
3621
3627
  }, this.resolvedOptions = function() {
3622
3628
  var l;
3623
3629
  return {
@@ -3625,18 +3631,18 @@ var dn = (
3625
3631
  };
3626
3632
  }, this.getAst = function() {
3627
3633
  return s.ast;
3628
- }, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
3634
+ }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3629
3635
  if (this.message = t, !e.__parse)
3630
3636
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3631
3637
  var a = i || {};
3632
3638
  a.formatters;
3633
- var o = yr(a, ["formatters"]);
3634
- this.ast = e.__parse(t, y(y({}, o), { locale: this.resolvedLocale }));
3639
+ var o = xn(a, ["formatters"]);
3640
+ this.ast = e.__parse(t, P(P({}, o), { locale: this.resolvedLocale }));
3635
3641
  } else
3636
3642
  this.ast = t;
3637
3643
  if (!Array.isArray(this.ast))
3638
3644
  throw new TypeError("A message must be provided as a String or AST.");
3639
- this.formats = ui(e.formats, r), this.formatters = i && i.formatters || hi(this.formatterCache);
3645
+ this.formats = li(e.formats, n), this.formatters = i && i.formatters || fi(this.formatterCache);
3640
3646
  }
3641
3647
  return Object.defineProperty(e, "defaultLocale", {
3642
3648
  get: function() {
@@ -3646,10 +3652,10 @@ var dn = (
3646
3652
  configurable: !0
3647
3653
  }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
3648
3654
  if (typeof Intl.Locale != "undefined") {
3649
- var n = Intl.NumberFormat.supportedLocalesOf(t);
3650
- return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3655
+ var r = Intl.NumberFormat.supportedLocalesOf(t);
3656
+ return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3651
3657
  }
3652
- }, e.__parse = ni, e.formats = {
3658
+ }, e.__parse = ii, e.formats = {
3653
3659
  number: {
3654
3660
  integer: {
3655
3661
  maximumFractionDigits: 0
@@ -3710,122 +3716,122 @@ var dn = (
3710
3716
  }, e;
3711
3717
  }()
3712
3718
  );
3713
- function li(e, t) {
3719
+ function ci(e, t) {
3714
3720
  if (t == null)
3715
3721
  return;
3716
3722
  if (t in e)
3717
3723
  return e[t];
3718
- const n = t.split(".");
3719
- let r = e;
3720
- for (let i = 0; i < n.length; i++)
3721
- if (typeof r == "object") {
3724
+ const r = t.split(".");
3725
+ let n = e;
3726
+ for (let i = 0; i < r.length; i++)
3727
+ if (typeof n == "object") {
3722
3728
  if (i > 0) {
3723
- const s = n.slice(i, n.length).join(".");
3724
- if (s in r) {
3725
- r = r[s];
3729
+ const s = r.slice(i, r.length).join(".");
3730
+ if (s in n) {
3731
+ n = n[s];
3726
3732
  break;
3727
3733
  }
3728
3734
  }
3729
- r = r[n[i]];
3735
+ n = n[r[i]];
3730
3736
  } else
3731
- r = void 0;
3732
- return r;
3737
+ n = void 0;
3738
+ return n;
3733
3739
  }
3734
- const N = {}, fi = (e, t, n) => n && (t in N || (N[t] = {}), e in N[t] || (N[t][e] = n), n), pn = (e, t) => {
3740
+ const I = {}, mi = (e, t, r) => r && (t in I || (I[t] = {}), e in I[t] || (I[t][e] = r), r), gr = (e, t) => {
3735
3741
  if (t == null)
3736
3742
  return;
3737
- if (t in N && e in N[t])
3738
- return N[t][e];
3739
- const n = ue(t);
3740
- for (let r = 0; r < n.length; r++) {
3741
- const i = n[r], s = mi(i, e);
3743
+ if (t in I && e in I[t])
3744
+ return I[t][e];
3745
+ const r = he(t);
3746
+ for (let n = 0; n < r.length; n++) {
3747
+ const i = r[n], s = di(i, e);
3742
3748
  if (s)
3743
- return fi(e, t, s);
3749
+ return mi(e, t, s);
3744
3750
  }
3745
3751
  };
3746
- let tt;
3747
- const ae = we({});
3748
- function ci(e) {
3749
- return tt[e] || null;
3752
+ let nt;
3753
+ const ue = Be({});
3754
+ function pi(e) {
3755
+ return nt[e] || null;
3750
3756
  }
3751
- function gn(e) {
3752
- return e in tt;
3757
+ function br(e) {
3758
+ return e in nt;
3753
3759
  }
3754
- function mi(e, t) {
3755
- if (!gn(e))
3760
+ function di(e, t) {
3761
+ if (!br(e))
3756
3762
  return null;
3757
- const n = ci(e);
3758
- return li(n, t);
3763
+ const r = pi(e);
3764
+ return ci(r, t);
3759
3765
  }
3760
- function di(e) {
3766
+ function gi(e) {
3761
3767
  if (e == null)
3762
3768
  return;
3763
- const t = ue(e);
3764
- for (let n = 0; n < t.length; n++) {
3765
- const r = t[n];
3766
- if (gn(r))
3767
- return r;
3769
+ const t = he(e);
3770
+ for (let r = 0; r < t.length; r++) {
3771
+ const n = t[r];
3772
+ if (br(n))
3773
+ return n;
3768
3774
  }
3769
3775
  }
3770
- function bn(e, ...t) {
3771
- delete N[e], ae.update((n) => (n[e] = _r.all([n[e] || {}, ...t]), n));
3776
+ function _r(e, ...t) {
3777
+ delete I[e], ue.update((r) => (r[e] = En.all([r[e] || {}, ...t]), r));
3772
3778
  }
3773
- q(
3774
- [ae],
3779
+ J(
3780
+ [ue],
3775
3781
  ([e]) => Object.keys(e)
3776
3782
  );
3777
- ae.subscribe((e) => tt = e);
3778
- const ge = {};
3779
- function pi(e, t) {
3780
- ge[e].delete(t), ge[e].size === 0 && delete ge[e];
3783
+ ue.subscribe((e) => nt = e);
3784
+ const be = {};
3785
+ function bi(e, t) {
3786
+ be[e].delete(t), be[e].size === 0 && delete be[e];
3781
3787
  }
3782
- function _n(e) {
3783
- return ge[e];
3788
+ function yr(e) {
3789
+ return be[e];
3784
3790
  }
3785
- function gi(e) {
3786
- return ue(e).map((t) => {
3787
- const n = _n(t);
3788
- return [t, n ? [...n] : []];
3791
+ function _i(e) {
3792
+ return he(e).map((t) => {
3793
+ const r = yr(t);
3794
+ return [t, r ? [...r] : []];
3789
3795
  }).filter(([, t]) => t.length > 0);
3790
3796
  }
3791
- function Ee(e) {
3792
- return e == null ? !1 : ue(e).some(
3797
+ function He(e) {
3798
+ return e == null ? !1 : he(e).some(
3793
3799
  (t) => {
3794
- var n;
3795
- return (n = _n(t)) == null ? void 0 : n.size;
3800
+ var r;
3801
+ return (r = yr(t)) == null ? void 0 : r.size;
3796
3802
  }
3797
3803
  );
3798
3804
  }
3799
- function bi(e, t) {
3805
+ function yi(e, t) {
3800
3806
  return Promise.all(
3801
- t.map((r) => (pi(e, r), r().then((i) => i.default || i)))
3802
- ).then((r) => bn(e, ...r));
3803
- }
3804
- const K = {};
3805
- function yn(e) {
3806
- if (!Ee(e))
3807
- return e in K ? K[e] : Promise.resolve();
3808
- const t = gi(e);
3809
- return K[e] = Promise.all(
3807
+ t.map((n) => (bi(e, n), n().then((i) => i.default || i)))
3808
+ ).then((n) => _r(e, ...n));
3809
+ }
3810
+ const ee = {};
3811
+ function Er(e) {
3812
+ if (!He(e))
3813
+ return e in ee ? ee[e] : Promise.resolve();
3814
+ const t = _i(e);
3815
+ return ee[e] = Promise.all(
3810
3816
  t.map(
3811
- ([n, r]) => bi(n, r)
3817
+ ([r, n]) => yi(r, n)
3812
3818
  )
3813
3819
  ).then(() => {
3814
- if (Ee(e))
3815
- return yn(e);
3816
- delete K[e];
3817
- }), K[e];
3820
+ if (He(e))
3821
+ return Er(e);
3822
+ delete ee[e];
3823
+ }), ee[e];
3818
3824
  }
3819
- var xt = Object.getOwnPropertySymbols, _i = Object.prototype.hasOwnProperty, yi = Object.prototype.propertyIsEnumerable, xi = (e, t) => {
3820
- var n = {};
3821
- for (var r in e)
3822
- _i.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3823
- if (e != null && xt)
3824
- for (var r of xt(e))
3825
- t.indexOf(r) < 0 && yi.call(e, r) && (n[r] = e[r]);
3826
- return n;
3825
+ var vt = Object.getOwnPropertySymbols, Ei = Object.prototype.hasOwnProperty, xi = Object.prototype.propertyIsEnumerable, vi = (e, t) => {
3826
+ var r = {};
3827
+ for (var n in e)
3828
+ Ei.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3829
+ if (e != null && vt)
3830
+ for (var n of vt(e))
3831
+ t.indexOf(n) < 0 && xi.call(e, n) && (r[n] = e[n]);
3832
+ return r;
3827
3833
  };
3828
- const Ei = {
3834
+ const Hi = {
3829
3835
  number: {
3830
3836
  scientific: { notation: "scientific" },
3831
3837
  engineering: { notation: "engineering" },
@@ -3855,174 +3861,174 @@ const Ei = {
3855
3861
  }
3856
3862
  }
3857
3863
  };
3858
- function vi({ locale: e, id: t }) {
3864
+ function wi({ locale: e, id: t }) {
3859
3865
  console.warn(
3860
- `[svelte-i18n] The message "${t}" was not found in "${ue(
3866
+ `[svelte-i18n] The message "${t}" was not found in "${he(
3861
3867
  e
3862
- ).join('", "')}".${Ee(I()) ? `
3868
+ ).join('", "')}".${He(M()) ? `
3863
3869
 
3864
3870
  Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
3865
3871
  );
3866
3872
  }
3867
- const Hi = {
3873
+ const Ti = {
3868
3874
  fallbackLocale: null,
3869
3875
  loadingDelay: 200,
3870
- formats: Ei,
3876
+ formats: Hi,
3871
3877
  warnOnMissingMessages: !0,
3872
3878
  handleMissingMessage: void 0,
3873
3879
  ignoreTag: !0
3874
- }, ee = Hi;
3875
- function Z() {
3876
- return ee;
3880
+ }, te = Ti;
3881
+ function Q() {
3882
+ return te;
3877
3883
  }
3878
- function wi(e) {
3879
- const t = e, { formats: n } = t, r = xi(t, ["formats"]);
3884
+ function Bi(e) {
3885
+ const t = e, { formats: r } = t, n = vi(t, ["formats"]);
3880
3886
  let i = e.fallbackLocale;
3881
3887
  if (e.initialLocale)
3882
3888
  try {
3883
- dn.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3889
+ dr.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3884
3890
  } catch (s) {
3885
3891
  console.warn(
3886
3892
  `[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
3887
3893
  );
3888
3894
  }
3889
- return r.warnOnMissingMessages && (delete r.warnOnMissingMessages, r.handleMissingMessage == null ? r.handleMissingMessage = vi : console.warn(
3895
+ return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = wi : console.warn(
3890
3896
  '[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
3891
- )), Object.assign(ee, r, { initialLocale: i }), n && ("number" in n && Object.assign(ee.formats.number, n.number), "date" in n && Object.assign(ee.formats.date, n.date), "time" in n && Object.assign(ee.formats.time, n.time)), U.set(i);
3892
- }
3893
- const Ge = we(!1);
3894
- var Ti = Object.defineProperty, Bi = Object.defineProperties, Si = Object.getOwnPropertyDescriptors, Et = Object.getOwnPropertySymbols, Ai = Object.prototype.hasOwnProperty, Oi = Object.prototype.propertyIsEnumerable, vt = (e, t, n) => t in e ? Ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Pi = (e, t) => {
3895
- for (var n in t || (t = {}))
3896
- Ai.call(t, n) && vt(e, n, t[n]);
3897
- if (Et)
3898
- for (var n of Et(t))
3899
- Oi.call(t, n) && vt(e, n, t[n]);
3897
+ )), Object.assign(te, n, { initialLocale: i }), r && ("number" in r && Object.assign(te.formats.number, r.number), "date" in r && Object.assign(te.formats.date, r.date), "time" in r && Object.assign(te.formats.time, r.time)), D.set(i);
3898
+ }
3899
+ const je = Be(!1);
3900
+ var Si = Object.defineProperty, Ai = Object.defineProperties, Oi = Object.getOwnPropertyDescriptors, Ht = Object.getOwnPropertySymbols, Pi = Object.prototype.hasOwnProperty, Ci = Object.prototype.propertyIsEnumerable, wt = (e, t, r) => t in e ? Si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Li = (e, t) => {
3901
+ for (var r in t || (t = {}))
3902
+ Pi.call(t, r) && wt(e, r, t[r]);
3903
+ if (Ht)
3904
+ for (var r of Ht(t))
3905
+ Ci.call(t, r) && wt(e, r, t[r]);
3900
3906
  return e;
3901
- }, Ci = (e, t) => Bi(e, Si(t));
3902
- let Je;
3903
- const ve = we(null);
3904
- function Ht(e) {
3905
- return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3907
+ }, Ni = (e, t) => Ai(e, Oi(t));
3908
+ let Ke;
3909
+ const we = Be(null);
3910
+ function Tt(e) {
3911
+ return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3906
3912
  }
3907
- function ue(e, t = Z().fallbackLocale) {
3908
- const n = Ht(e);
3909
- return t ? [.../* @__PURE__ */ new Set([...n, ...Ht(t)])] : n;
3913
+ function he(e, t = Q().fallbackLocale) {
3914
+ const r = Tt(e);
3915
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Tt(t)])] : r;
3910
3916
  }
3911
- function I() {
3912
- return Je != null ? Je : void 0;
3917
+ function M() {
3918
+ return Ke != null ? Ke : void 0;
3913
3919
  }
3914
- ve.subscribe((e) => {
3915
- Je = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3920
+ we.subscribe((e) => {
3921
+ Ke = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3916
3922
  });
3917
- const Li = (e) => {
3918
- if (e && di(e) && Ee(e)) {
3919
- const { loadingDelay: t } = Z();
3920
- let n;
3921
- return typeof window != "undefined" && I() != null && t ? n = window.setTimeout(
3922
- () => Ge.set(!0),
3923
+ const Ii = (e) => {
3924
+ if (e && gi(e) && He(e)) {
3925
+ const { loadingDelay: t } = Q();
3926
+ let r;
3927
+ return typeof window != "undefined" && M() != null && t ? r = window.setTimeout(
3928
+ () => je.set(!0),
3923
3929
  t
3924
- ) : Ge.set(!0), yn(e).then(() => {
3925
- ve.set(e);
3930
+ ) : je.set(!0), Er(e).then(() => {
3931
+ we.set(e);
3926
3932
  }).finally(() => {
3927
- clearTimeout(n), Ge.set(!1);
3933
+ clearTimeout(r), je.set(!1);
3928
3934
  });
3929
3935
  }
3930
- return ve.set(e);
3931
- }, U = Ci(Pi({}, ve), {
3932
- set: Li
3933
- }), Se = (e) => {
3936
+ return we.set(e);
3937
+ }, D = Ni(Li({}, we), {
3938
+ set: Ii
3939
+ }), Oe = (e) => {
3934
3940
  const t = /* @__PURE__ */ Object.create(null);
3935
- return (r) => {
3936
- const i = JSON.stringify(r);
3937
- return i in t ? t[i] : t[i] = e(r);
3941
+ return (n) => {
3942
+ const i = JSON.stringify(n);
3943
+ return i in t ? t[i] : t[i] = e(n);
3938
3944
  };
3939
3945
  };
3940
- var Ni = Object.defineProperty, He = Object.getOwnPropertySymbols, xn = Object.prototype.hasOwnProperty, En = Object.prototype.propertyIsEnumerable, wt = (e, t, n) => t in e ? Ni(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, nt = (e, t) => {
3941
- for (var n in t || (t = {}))
3942
- xn.call(t, n) && wt(e, n, t[n]);
3943
- if (He)
3944
- for (var n of He(t))
3945
- En.call(t, n) && wt(e, n, t[n]);
3946
+ var Mi = Object.defineProperty, Te = Object.getOwnPropertySymbols, xr = Object.prototype.hasOwnProperty, vr = Object.prototype.propertyIsEnumerable, Bt = (e, t, r) => t in e ? Mi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, it = (e, t) => {
3947
+ for (var r in t || (t = {}))
3948
+ xr.call(t, r) && Bt(e, r, t[r]);
3949
+ if (Te)
3950
+ for (var r of Te(t))
3951
+ vr.call(t, r) && Bt(e, r, t[r]);
3946
3952
  return e;
3947
- }, J = (e, t) => {
3948
- var n = {};
3949
- for (var r in e)
3950
- xn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3951
- if (e != null && He)
3952
- for (var r of He(e))
3953
- t.indexOf(r) < 0 && En.call(e, r) && (n[r] = e[r]);
3954
- return n;
3953
+ }, Y = (e, t) => {
3954
+ var r = {};
3955
+ for (var n in e)
3956
+ xr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3957
+ if (e != null && Te)
3958
+ for (var n of Te(e))
3959
+ t.indexOf(n) < 0 && vr.call(e, n) && (r[n] = e[n]);
3960
+ return r;
3955
3961
  };
3956
- const se = (e, t) => {
3957
- const { formats: n } = Z();
3958
- if (e in n && t in n[e])
3959
- return n[e][t];
3962
+ const oe = (e, t) => {
3963
+ const { formats: r } = Q();
3964
+ if (e in r && t in r[e])
3965
+ return r[e][t];
3960
3966
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3961
- }, Ii = Se(
3967
+ }, $i = Oe(
3962
3968
  (e) => {
3963
- var t = e, { locale: n, format: r } = t, i = J(t, ["locale", "format"]);
3964
- if (n == null)
3969
+ var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
3970
+ if (r == null)
3965
3971
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3966
- return r && (i = se("number", r)), new Intl.NumberFormat(n, i);
3972
+ return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
3967
3973
  }
3968
- ), Mi = Se(
3974
+ ), Ri = Oe(
3969
3975
  (e) => {
3970
- var t = e, { locale: n, format: r } = t, i = J(t, ["locale", "format"]);
3971
- if (n == null)
3976
+ var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
3977
+ if (r == null)
3972
3978
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3973
- return r ? i = se("date", r) : Object.keys(i).length === 0 && (i = se("date", "short")), new Intl.DateTimeFormat(n, i);
3979
+ return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
3974
3980
  }
3975
- ), $i = Se(
3981
+ ), Ui = Oe(
3976
3982
  (e) => {
3977
- var t = e, { locale: n, format: r } = t, i = J(t, ["locale", "format"]);
3978
- if (n == null)
3983
+ var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
3984
+ if (r == null)
3979
3985
  throw new Error(
3980
3986
  '[svelte-i18n] A "locale" must be set to format time values'
3981
3987
  );
3982
- return r ? i = se("time", r) : Object.keys(i).length === 0 && (i = se("time", "short")), new Intl.DateTimeFormat(n, i);
3988
+ return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
3983
3989
  }
3984
- ), Ri = (e = {}) => {
3990
+ ), Di = (e = {}) => {
3985
3991
  var t = e, {
3986
- locale: n = I()
3987
- } = t, r = J(t, [
3992
+ locale: r = M()
3993
+ } = t, n = Y(t, [
3988
3994
  "locale"
3989
3995
  ]);
3990
- return Ii(nt({ locale: n }, r));
3991
- }, Ui = (e = {}) => {
3996
+ return $i(it({ locale: r }, n));
3997
+ }, Gi = (e = {}) => {
3992
3998
  var t = e, {
3993
- locale: n = I()
3994
- } = t, r = J(t, [
3999
+ locale: r = M()
4000
+ } = t, n = Y(t, [
3995
4001
  "locale"
3996
4002
  ]);
3997
- return Mi(nt({ locale: n }, r));
3998
- }, Di = (e = {}) => {
4003
+ return Ri(it({ locale: r }, n));
4004
+ }, Fi = (e = {}) => {
3999
4005
  var t = e, {
4000
- locale: n = I()
4001
- } = t, r = J(t, [
4006
+ locale: r = M()
4007
+ } = t, n = Y(t, [
4002
4008
  "locale"
4003
4009
  ]);
4004
- return $i(nt({ locale: n }, r));
4005
- }, Gi = Se(
4010
+ return Ui(it({ locale: r }, n));
4011
+ }, ji = Oe(
4006
4012
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4007
- (e, t = I()) => new dn(e, t, Z().formats, {
4008
- ignoreTag: Z().ignoreTag
4013
+ (e, t = M()) => new dr(e, t, Q().formats, {
4014
+ ignoreTag: Q().ignoreTag
4009
4015
  })
4010
- ), Fi = (e, t = {}) => {
4011
- var n, r, i, s;
4016
+ ), ki = (e, t = {}) => {
4017
+ var r, n, i, s;
4012
4018
  let a = t;
4013
4019
  typeof e == "object" && (a = e, e = a.id);
4014
4020
  const {
4015
4021
  values: o,
4016
- locale: l = I(),
4022
+ locale: l = M(),
4017
4023
  default: u
4018
4024
  } = a;
4019
4025
  if (l == null)
4020
4026
  throw new Error(
4021
4027
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4022
4028
  );
4023
- let h = pn(e, l);
4029
+ let h = gr(e, l);
4024
4030
  if (!h)
4025
- h = (s = (i = (r = (n = Z()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
4031
+ h = (s = (i = (n = (r = Q()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
4026
4032
  else if (typeof h != "string")
4027
4033
  return console.warn(
4028
4034
  `[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.`
@@ -4031,7 +4037,7 @@ const se = (e, t) => {
4031
4037
  return h;
4032
4038
  let f = h;
4033
4039
  try {
4034
- f = Gi(h, l).format(o);
4040
+ f = ji(h, l).format(o);
4035
4041
  } catch (m) {
4036
4042
  m instanceof Error && console.warn(
4037
4043
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -4039,20 +4045,20 @@ const se = (e, t) => {
4039
4045
  );
4040
4046
  }
4041
4047
  return f;
4042
- }, ji = (e, t) => Di(t).format(e), ki = (e, t) => Ui(t).format(e), Vi = (e, t) => Ri(t).format(e), Xi = (e, t = I()) => pn(e, t), zi = q([U, ae], () => Fi);
4043
- q([U], () => ji);
4044
- q([U], () => ki);
4045
- q([U], () => Vi);
4046
- q([U, ae], () => Xi);
4047
- function Tt(e, t) {
4048
- bn(e, t);
4049
- }
4050
- function Wi(e) {
4051
- wi({
4048
+ }, Vi = (e, t) => Fi(t).format(e), Xi = (e, t) => Gi(t).format(e), zi = (e, t) => Di(t).format(e), Wi = (e, t = M()) => gr(e, t), Zi = J([D, ue], () => ki);
4049
+ J([D], () => Vi);
4050
+ J([D], () => Xi);
4051
+ J([D], () => zi);
4052
+ J([D, ue], () => Wi);
4053
+ function St(e, t) {
4054
+ _r(e, t);
4055
+ }
4056
+ function Qi(e) {
4057
+ Bi({
4052
4058
  fallbackLocale: "en"
4053
- }), U.set(e);
4059
+ }), D.set(e);
4054
4060
  }
4055
- const Bt = {
4061
+ const At = {
4056
4062
  en: {
4057
4063
  header: {
4058
4064
  general: "Cashier",
@@ -4075,284 +4081,284 @@ const Bt = {
4075
4081
  }
4076
4082
  }
4077
4083
  };
4078
- function Zi(e) {
4079
- Nn(e, "svelte-brbf89", ".CashierHeader{display:flex;position:relative;align-items:center;height:var(--emw--header-height, 40px);background-color:var(--emw--color-background, #F9FAFF);width:100%;padding:10px 0}.CashierHeaderLeftButton{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;display:flex;align-items:center;font-variant:all-small-caps;height:32px;margin-left:5px;gap:2px;cursor:pointer;stroke:var(--emw--color-primary, #3854FF)}.CashierHeaderLeftButton svg path{fill:var(--emw--color-primary, #3854FF)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--emw--color-primary, #3854FF);font-size:var(--emw--font-size-medium, 16px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin-left:15px;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer;stroke:var(--emw--color-primary, #3854FF)}");
4084
+ function qi(e) {
4085
+ Ir(e, "svelte-brbf89", ".CashierHeader{display:flex;position:relative;align-items:center;height:var(--emw--header-height, 40px);background-color:var(--emw--color-background, #F9FAFF);width:100%;padding:10px 0}.CashierHeaderLeftButton{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;display:flex;align-items:center;font-variant:all-small-caps;height:32px;margin-left:5px;gap:2px;cursor:pointer;stroke:var(--emw--color-primary, #3854FF)}.CashierHeaderLeftButton svg path{fill:var(--emw--color-primary, #3854FF)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--emw--color-primary, #3854FF);font-size:var(--emw--font-size-medium, 16px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin-left:15px;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer;stroke:var(--emw--color-primary, #3854FF)}");
4080
4086
  }
4081
- const Qi = (e) => ({}), St = (e) => ({}), qi = (e) => ({}), At = (e) => ({}), Ji = (e) => ({}), Ot = (e) => ({});
4082
- function Pt(e) {
4083
- let t, n, r;
4087
+ const Ji = (e) => ({}), Ot = (e) => ({}), Yi = (e) => ({}), Pt = (e) => ({}), Ki = (e) => ({}), Ct = (e) => ({});
4088
+ function Lt(e) {
4089
+ let t, r, n;
4084
4090
  return {
4085
4091
  c() {
4086
- t = R("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>', Q(t, "class", "CashierHeaderLeftButton");
4092
+ t = U("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>', q(t, "class", "CashierHeaderLeftButton");
4087
4093
  },
4088
4094
  m(i, s) {
4089
- $(i, t, s), n || (r = kt(
4095
+ R(i, t, s), r || (n = Xt(
4090
4096
  t,
4091
4097
  "click",
4092
4098
  /*back*/
4093
4099
  e[6]
4094
- ), n = !0);
4100
+ ), r = !0);
4095
4101
  },
4096
4102
  p: T,
4097
4103
  d(i) {
4098
- i && C(t), n = !1, r();
4104
+ i && L(t), r = !1, n();
4099
4105
  }
4100
4106
  };
4101
4107
  }
4102
- function Yi(e) {
4103
- let t, n = (
4108
+ function es(e) {
4109
+ let t, r = (
4104
4110
  /*backButton*/
4105
- e[1] && Pt(e)
4111
+ e[1] && Lt(e)
4106
4112
  );
4107
4113
  return {
4108
4114
  c() {
4109
- n && n.c(), t = jt();
4115
+ r && r.c(), t = Vt();
4110
4116
  },
4111
- m(r, i) {
4112
- n && n.m(r, i), $(r, t, i);
4117
+ m(n, i) {
4118
+ r && r.m(n, i), R(n, t, i);
4113
4119
  },
4114
- p(r, i) {
4120
+ p(n, i) {
4115
4121
  /*backButton*/
4116
- r[1] ? n ? n.p(r, i) : (n = Pt(r), n.c(), n.m(t.parentNode, t)) : n && (n.d(1), n = null);
4122
+ n[1] ? r ? r.p(n, i) : (r = Lt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
4117
4123
  },
4118
- d(r) {
4119
- r && C(t), n && n.d(r);
4124
+ d(n) {
4125
+ n && L(t), r && r.d(n);
4120
4126
  }
4121
4127
  };
4122
4128
  }
4123
- function Ki(e) {
4124
- let t, n = (
4129
+ function ts(e) {
4130
+ let t, r = (
4125
4131
  /*$_*/
4126
4132
  e[4](
4127
4133
  /*titleText*/
4128
4134
  e[2]
4129
4135
  ) + ""
4130
- ), r;
4136
+ ), n;
4131
4137
  return {
4132
4138
  c() {
4133
- t = R("span"), r = et(n), Q(t, "class", "CashierHeaderTitle");
4139
+ t = U("span"), n = rt(r), q(t, "class", "CashierHeaderTitle");
4134
4140
  },
4135
4141
  m(i, s) {
4136
- $(i, t, s), be(t, r);
4142
+ R(i, t, s), _e(t, n);
4137
4143
  },
4138
4144
  p(i, s) {
4139
4145
  s & /*$_, titleText*/
4140
- 20 && n !== (n = /*$_*/
4146
+ 20 && r !== (r = /*$_*/
4141
4147
  i[4](
4142
4148
  /*titleText*/
4143
4149
  i[2]
4144
- ) + "") && $n(r, n);
4150
+ ) + "") && Rr(n, r);
4145
4151
  },
4146
4152
  d(i) {
4147
- i && C(t);
4153
+ i && L(t);
4148
4154
  }
4149
4155
  };
4150
4156
  }
4151
- function Ct(e) {
4152
- let t, n, r;
4157
+ function Nt(e) {
4158
+ let t, r, n;
4153
4159
  return {
4154
4160
  c() {
4155
- t = R("span"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z" fill="#111111"></path></svg>', Q(t, "class", "CashierHeaderRightButton");
4161
+ t = U("span"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z" fill="#111111"></path></svg>', q(t, "class", "CashierHeaderRightButton");
4156
4162
  },
4157
4163
  m(i, s) {
4158
- $(i, t, s), n || (r = kt(
4164
+ R(i, t, s), r || (n = Xt(
4159
4165
  t,
4160
4166
  "click",
4161
4167
  /*close*/
4162
4168
  e[5]
4163
- ), n = !0);
4169
+ ), r = !0);
4164
4170
  },
4165
4171
  p: T,
4166
4172
  d(i) {
4167
- i && C(t), n = !1, r();
4173
+ i && L(t), r = !1, n();
4168
4174
  }
4169
4175
  };
4170
4176
  }
4171
- function es(e) {
4172
- let t, n = (
4177
+ function rs(e) {
4178
+ let t, r = (
4173
4179
  /*closeButton*/
4174
- e[3] && Ct(e)
4180
+ e[3] && Nt(e)
4175
4181
  );
4176
4182
  return {
4177
4183
  c() {
4178
- n && n.c(), t = jt();
4184
+ r && r.c(), t = Vt();
4179
4185
  },
4180
- m(r, i) {
4181
- n && n.m(r, i), $(r, t, i);
4186
+ m(n, i) {
4187
+ r && r.m(n, i), R(n, t, i);
4182
4188
  },
4183
- p(r, i) {
4189
+ p(n, i) {
4184
4190
  /*closeButton*/
4185
- r[3] ? n ? n.p(r, i) : (n = Ct(r), n.c(), n.m(t.parentNode, t)) : n && (n.d(1), n = null);
4191
+ n[3] ? r ? r.p(n, i) : (r = Nt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
4186
4192
  },
4187
- d(r) {
4188
- r && C(t), n && n.d(r);
4193
+ d(n) {
4194
+ n && L(t), r && r.d(n);
4189
4195
  }
4190
4196
  };
4191
4197
  }
4192
- function ts(e) {
4193
- let t, n, r, i;
4198
+ function ns(e) {
4199
+ let t, r, n, i;
4194
4200
  const s = (
4195
4201
  /*#slots*/
4196
4202
  e[16].leftButton
4197
- ), a = Oe(
4203
+ ), a = Ce(
4198
4204
  s,
4199
4205
  e,
4200
4206
  /*$$scope*/
4201
4207
  e[15],
4202
- Ot
4203
- ), o = a || Yi(e), l = (
4208
+ Ct
4209
+ ), o = a || es(e), l = (
4204
4210
  /*#slots*/
4205
4211
  e[16].title
4206
- ), u = Oe(
4212
+ ), u = Ce(
4207
4213
  l,
4208
4214
  e,
4209
4215
  /*$$scope*/
4210
4216
  e[15],
4211
- At
4212
- ), h = u || Ki(e), f = (
4217
+ Pt
4218
+ ), h = u || ts(e), f = (
4213
4219
  /*#slots*/
4214
4220
  e[16].rightButton
4215
- ), m = Oe(
4221
+ ), m = Ce(
4216
4222
  f,
4217
4223
  e,
4218
4224
  /*$$scope*/
4219
4225
  e[15],
4220
- St
4221
- ), d = m || es(e);
4226
+ Ot
4227
+ ), p = m || rs(e);
4222
4228
  return {
4223
4229
  c() {
4224
- t = R("div"), o && o.c(), n = ht(), h && h.c(), r = ht(), d && d.c(), Q(t, "class", "CashierHeader");
4230
+ t = U("div"), o && o.c(), r = ft(), h && h.c(), n = ft(), p && p.c(), q(t, "class", "CashierHeader");
4225
4231
  },
4226
- m(c, p) {
4227
- $(c, t, p), o && o.m(t, null), be(t, n), h && h.m(t, null), be(t, r), d && d.m(t, null), e[17](t), i = !0;
4232
+ m(c, d) {
4233
+ R(c, t, d), o && o.m(t, null), _e(t, r), h && h.m(t, null), _e(t, n), p && p.m(t, null), e[17](t), i = !0;
4228
4234
  },
4229
- p(c, [p]) {
4230
- a ? a.p && (!i || p & /*$$scope*/
4231
- 32768) && Ce(
4235
+ p(c, [d]) {
4236
+ a ? a.p && (!i || d & /*$$scope*/
4237
+ 32768) && Ne(
4232
4238
  a,
4233
4239
  s,
4234
4240
  c,
4235
4241
  /*$$scope*/
4236
4242
  c[15],
4237
- i ? Pe(
4243
+ i ? Le(
4238
4244
  s,
4239
4245
  /*$$scope*/
4240
4246
  c[15],
4241
- p,
4242
- Ji
4243
- ) : Le(
4247
+ d,
4248
+ Ki
4249
+ ) : Ie(
4244
4250
  /*$$scope*/
4245
4251
  c[15]
4246
4252
  ),
4247
- Ot
4248
- ) : o && o.p && (!i || p & /*backButton*/
4249
- 2) && o.p(c, i ? p : -1), u ? u.p && (!i || p & /*$$scope*/
4250
- 32768) && Ce(
4253
+ Ct
4254
+ ) : o && o.p && (!i || d & /*backButton*/
4255
+ 2) && o.p(c, i ? d : -1), u ? u.p && (!i || d & /*$$scope*/
4256
+ 32768) && Ne(
4251
4257
  u,
4252
4258
  l,
4253
4259
  c,
4254
4260
  /*$$scope*/
4255
4261
  c[15],
4256
- i ? Pe(
4262
+ i ? Le(
4257
4263
  l,
4258
4264
  /*$$scope*/
4259
4265
  c[15],
4260
- p,
4261
- qi
4262
- ) : Le(
4266
+ d,
4267
+ Yi
4268
+ ) : Ie(
4263
4269
  /*$$scope*/
4264
4270
  c[15]
4265
4271
  ),
4266
- At
4267
- ) : h && h.p && (!i || p & /*$_, titleText*/
4268
- 20) && h.p(c, i ? p : -1), m ? m.p && (!i || p & /*$$scope*/
4269
- 32768) && Ce(
4272
+ Pt
4273
+ ) : h && h.p && (!i || d & /*$_, titleText*/
4274
+ 20) && h.p(c, i ? d : -1), m ? m.p && (!i || d & /*$$scope*/
4275
+ 32768) && Ne(
4270
4276
  m,
4271
4277
  f,
4272
4278
  c,
4273
4279
  /*$$scope*/
4274
4280
  c[15],
4275
- i ? Pe(
4281
+ i ? Le(
4276
4282
  f,
4277
4283
  /*$$scope*/
4278
4284
  c[15],
4279
- p,
4280
- Qi
4281
- ) : Le(
4285
+ d,
4286
+ Ji
4287
+ ) : Ie(
4282
4288
  /*$$scope*/
4283
4289
  c[15]
4284
4290
  ),
4285
- St
4286
- ) : d && d.p && (!i || p & /*closeButton*/
4287
- 8) && d.p(c, i ? p : -1);
4291
+ Ot
4292
+ ) : p && p.p && (!i || d & /*closeButton*/
4293
+ 8) && p.p(c, i ? d : -1);
4288
4294
  },
4289
4295
  i(c) {
4290
- i || (me(o, c), me(h, c), me(d, c), i = !0);
4296
+ i || (pe(o, c), pe(h, c), pe(p, c), i = !0);
4291
4297
  },
4292
4298
  o(c) {
4293
- Ie(o, c), Ie(h, c), Ie(d, c), i = !1;
4299
+ $e(o, c), $e(h, c), $e(p, c), i = !1;
4294
4300
  },
4295
4301
  d(c) {
4296
- c && C(t), o && o.d(c), h && h.d(c), d && d.d(c), e[17](null);
4302
+ c && L(t), o && o.d(c), h && h.d(c), p && p.d(c), e[17](null);
4297
4303
  }
4298
4304
  };
4299
4305
  }
4300
- function ns(e, t, n) {
4301
- let r;
4302
- Ln(e, zi, (_) => n(4, r = _));
4303
- let { $$slots: i = {}, $$scope: s } = t, { clientstyling: a = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: u = "" } = t, { title: h = "header.general" } = t, { lang: f = "en" } = t, { showclosebutton: m = "" } = t, { mbsource: d = "" } = t, c, p = !1, E, v = !1;
4306
+ function is(e, t, r) {
4307
+ let n;
4308
+ Nr(e, Zi, (_) => r(4, n = _));
4309
+ let { $$slots: i = {}, $$scope: s } = t, { clientstyling: a = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: u = "" } = t, { title: h = "header.general" } = t, { lang: f = "en" } = t, { showclosebutton: m = "" } = t, { mbsource: p = "" } = t, c, d = !1, E, v = !1;
4304
4310
  const B = () => {
4305
4311
  fetch(l).then((_) => _.json()).then((_) => {
4306
- Object.keys(_).forEach((rt) => {
4307
- Tt(rt, _[rt]);
4312
+ Object.keys(_).forEach((st) => {
4313
+ St(st, _[st]);
4308
4314
  });
4309
4315
  }).catch((_) => {
4310
4316
  console.log(_);
4311
4317
  });
4312
4318
  };
4313
- Object.keys(Bt).forEach((_) => {
4314
- Tt(_, Bt[_]);
4319
+ Object.keys(At).forEach((_) => {
4320
+ St(_, At[_]);
4315
4321
  });
4316
4322
  const H = () => {
4317
- Wi(f);
4323
+ Qi(f);
4318
4324
  }, A = () => {
4319
4325
  window.postMessage({ type: "CloseCashier" }, window.location.href);
4320
- }, P = () => {
4326
+ }, C = () => {
4321
4327
  window.postMessage({ type: "BackCashier" }, window.location.href);
4322
- }, D = () => {
4323
- n(1, p = !!u && u !== "false");
4324
- }, he = () => {
4325
- n(3, v = !!m && m !== "false");
4326
- }, Hn = () => {
4327
- n(2, E = h || "header.general");
4328
+ }, G = () => {
4329
+ r(1, d = !!u && u !== "false");
4330
+ }, le = () => {
4331
+ r(3, v = !!m && m !== "false");
4332
+ }, wr = () => {
4333
+ r(2, E = h || "header.general");
4328
4334
  };
4329
- kn(() => () => {
4335
+ Vr(() => () => {
4330
4336
  });
4331
- function wn(_) {
4332
- je[_ ? "unshift" : "push"](() => {
4333
- c = _, n(0, c);
4337
+ function Tr(_) {
4338
+ Ve[_ ? "unshift" : "push"](() => {
4339
+ c = _, r(0, c);
4334
4340
  });
4335
4341
  }
4336
4342
  return e.$$set = (_) => {
4337
- "clientstyling" in _ && n(7, a = _.clientstyling), "clientstylingurl" in _ && n(8, o = _.clientstylingurl), "translationurl" in _ && n(9, l = _.translationurl), "showbackbutton" in _ && n(10, u = _.showbackbutton), "title" in _ && n(11, h = _.title), "lang" in _ && n(12, f = _.lang), "showclosebutton" in _ && n(13, m = _.showclosebutton), "mbsource" in _ && n(14, d = _.mbsource), "$$scope" in _ && n(15, s = _.$$scope);
4343
+ "clientstyling" in _ && r(7, a = _.clientstyling), "clientstylingurl" in _ && r(8, o = _.clientstylingurl), "translationurl" in _ && r(9, l = _.translationurl), "showbackbutton" in _ && r(10, u = _.showbackbutton), "title" in _ && r(11, h = _.title), "lang" in _ && r(12, f = _.lang), "showclosebutton" in _ && r(13, m = _.showclosebutton), "mbsource" in _ && r(14, p = _.mbsource), "$$scope" in _ && r(15, s = _.$$scope);
4338
4344
  }, e.$$.update = () => {
4339
4345
  e.$$.dirty & /*lang*/
4340
4346
  4096 && f && H(), e.$$.dirty & /*lang, title*/
4341
- 6144 && f && h && Hn(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4342
- 129 && a && c && Kn(c, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4343
- 257 && o && c && er(c, o), e.$$.dirty & /*mbsource, customStylingContainer*/
4344
- 16385 && d && c && tr(c, `${d}.Style`), e.$$.dirty & /*lang, translationurl*/
4347
+ 6144 && f && h && wr(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4348
+ 129 && a && c && en(c, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4349
+ 257 && o && c && tn(c, o), e.$$.dirty & /*mbsource, customStylingContainer*/
4350
+ 16385 && p && c && rn(c, `${p}.Style`), e.$$.dirty & /*lang, translationurl*/
4345
4351
  4608 && f && l && B(), e.$$.dirty & /*showbackbutton*/
4346
- 1024 && u && D(), e.$$.dirty & /*showclosebutton*/
4347
- 8192 && m && he();
4352
+ 1024 && u && G(), e.$$.dirty & /*showclosebutton*/
4353
+ 8192 && m && le();
4348
4354
  }, [
4349
4355
  c,
4350
- p,
4356
+ d,
4351
4357
  E,
4352
4358
  v,
4353
- r,
4359
+ n,
4354
4360
  A,
4355
- P,
4361
+ C,
4356
4362
  a,
4357
4363
  o,
4358
4364
  l,
@@ -4360,20 +4366,20 @@ function ns(e, t, n) {
4360
4366
  h,
4361
4367
  f,
4362
4368
  m,
4363
- d,
4369
+ p,
4364
4370
  s,
4365
4371
  i,
4366
- wn
4372
+ Tr
4367
4373
  ];
4368
4374
  }
4369
- class vn extends Jn {
4375
+ class Hr extends Yr {
4370
4376
  constructor(t) {
4371
- super(), Qn(
4377
+ super(), qr(
4372
4378
  this,
4373
4379
  t,
4380
+ is,
4374
4381
  ns,
4375
- ts,
4376
- It,
4382
+ $t,
4377
4383
  {
4378
4384
  clientstyling: 7,
4379
4385
  clientstylingurl: 8,
@@ -4384,7 +4390,7 @@ class vn extends Jn {
4384
4390
  showclosebutton: 13,
4385
4391
  mbsource: 14
4386
4392
  },
4387
- Zi
4393
+ qi
4388
4394
  );
4389
4395
  }
4390
4396
  get clientstyling() {
@@ -4436,61 +4442,61 @@ class vn extends Jn {
4436
4442
  this.$$set({ mbsource: t }), O();
4437
4443
  }
4438
4444
  }
4439
- qn(vn, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {}, mbsource: {} }, ["leftButton", "title", "rightButton"], [], !0);
4440
- const ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4445
+ Jr(Hr, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {}, mbsource: {} }, ["leftButton", "title", "rightButton"], [], !0);
4446
+ const xs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4441
4447
  __proto__: null,
4442
- default: vn
4448
+ default: Hr
4443
4449
  }, Symbol.toStringTag, { value: "Module" }));
4444
4450
  export {
4445
- U as $,
4446
- _s as A,
4447
- Lt as B,
4448
- bn as C,
4449
- wi as D,
4450
- Ie as E,
4451
- me as F,
4452
- cs as G,
4453
- ms as H,
4454
- Ln as I,
4455
- us as J,
4456
- ps as K,
4457
- re as L,
4458
- ds as M,
4459
- jt as N,
4460
- ss as O,
4461
- is as P,
4462
- Wn as Q,
4463
- zn as R,
4464
- Jn as S,
4465
- bs as T,
4466
- zi as U,
4467
- hs as V,
4468
- fs as W,
4469
- ys as X,
4470
- Nn as a,
4471
- os as b,
4472
- $ as c,
4473
- C as d,
4474
- gs as e,
4451
+ D as $,
4452
+ Es as A,
4453
+ It as B,
4454
+ _r as C,
4455
+ Bi as D,
4456
+ $e as E,
4457
+ pe as F,
4458
+ ps as G,
4459
+ ds as H,
4460
+ Nr as I,
4461
+ ls as J,
4462
+ bs as K,
4463
+ ie as L,
4464
+ gs as M,
4465
+ Vt as N,
4466
+ as as O,
4467
+ os as P,
4468
+ Zr as Q,
4469
+ Wr as R,
4470
+ Yr as S,
4471
+ ys as T,
4472
+ Zi as U,
4473
+ fs as V,
4474
+ ms as W,
4475
+ xs as X,
4476
+ Ir as a,
4477
+ us as b,
4478
+ R as c,
4479
+ L as d,
4480
+ _s as e,
4475
4481
  O as f,
4476
- be as g,
4477
- R as h,
4478
- Qn as i,
4479
- as as j,
4480
- ht as k,
4481
- kt as l,
4482
- Q as m,
4482
+ _e as g,
4483
+ U as h,
4484
+ qr as i,
4485
+ hs as j,
4486
+ ft as k,
4487
+ Xt as l,
4488
+ q as m,
4483
4489
  T as n,
4484
- kn as o,
4485
- $n as p,
4486
- et as q,
4487
- M as r,
4488
- It as s,
4489
- ls as t,
4490
- je as u,
4491
- Kn as v,
4492
- er as w,
4493
- tr as x,
4494
- qn as y,
4495
- rr as z
4490
+ Vr as o,
4491
+ Rr as p,
4492
+ rt as q,
4493
+ $ as r,
4494
+ $t as s,
4495
+ cs as t,
4496
+ Ve as u,
4497
+ en as v,
4498
+ tn as w,
4499
+ rn as x,
4500
+ Jr as y,
4501
+ sn as z
4496
4502
  };